blob: ca0fdd4fbc9840bdbd3a82e77bffe44b6ea24d29 [file] [log] [blame]
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001#! /bin/sh
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002# From configure.in Revision: 74044 .
Guido van Rossum627b2d71993-12-24 10:39:16 +00003# Guess values for system-dependent variables and create Makefiles.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00004# Generated by GNU Autoconf 2.63 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,
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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=:
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Skip Montanaro6dead952003-09-25 14:50:04 +000022 # 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
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000043as_nl='
44'
45export as_nl
46# Printing a long string crashes Solaris 7 /usr/bin/printf.
47as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73fi
74
Martin v. Löwis11437992002-04-12 09:54:03 +000075# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000077 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
Martin v. Löwis11437992002-04-12 09:54:03 +000082fi
83
Martin v. Löwiseba40652007-08-30 20:10:57 +000084# Support unset when possible.
85if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86 as_unset=unset
87else
88 as_unset=false
89fi
Martin v. Löwis11437992002-04-12 09:54:03 +000090
Martin v. Löwiseba40652007-08-30 20:10:57 +000091
92# IFS
93# We need space, tab and new line, in precisely that order. Quoting is
94# there to prevent editors from complaining about space-tab.
95# (If _AS_PATH_WALK were called with IFS unset, it would disable word
96# splitting by setting IFS to empty value.)
Martin v. Löwiseba40652007-08-30 20:10:57 +000097IFS=" "" $as_nl"
98
99# Find who we are. Look in the path if we contain no directory separator.
100case $0 in
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwis11437992002-04-12 09:54:03 +0000103for as_dir in $PATH
104do
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108done
Martin v. Löwiseba40652007-08-30 20:10:57 +0000109IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +0000110
Martin v. Löwiseba40652007-08-30 20:10:57 +0000111 ;;
112esac
113# We did not find ourselves, most probably we were run as `sh COMMAND'
114# in which case we are not to be found in the path.
115if test "x$as_myself" = x; then
116 as_myself=$0
117fi
118if test ! -f "$as_myself"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Martin v. Löwiseba40652007-08-30 20:10:57 +0000120 { (exit 1); exit 1; }
121fi
122
123# Work around bugs in pre-3.0 UWIN ksh.
124for as_var in ENV MAIL MAILPATH
125do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126done
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
Martin v. Löwiseba40652007-08-30 20:10:57 +0000136
137# Required to use basename.
138if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
140 as_expr=expr
141else
142 as_expr=false
143fi
144
145if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146 as_basename=basename
147else
148 as_basename=false
149fi
150
151
152# Name of the executable.
153as_me=`$as_basename -- "$0" ||
154$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000157$as_echo X/"$0" |
Martin v. Löwiseba40652007-08-30 20:10:57 +0000158 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 s//\1/
160 q
161 }
162 /^X\/\(\/\/\)$/{
163 s//\1/
164 q
165 }
166 /^X\/\(\/\).*/{
167 s//\1/
168 q
169 }
170 s/.*/./; q'`
171
172# CDPATH.
173$as_unset CDPATH
174
175
176if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000183 if test $as_have_required = yes && (eval ":
Martin v. Löwiseba40652007-08-30 20:10:57 +0000184(as_func_return () {
185 (exit \$1)
186}
187as_func_success () {
188 as_func_return 0
189}
190as_func_failure () {
191 as_func_return 1
192}
193as_func_ret_success () {
194 return 0
195}
196as_func_ret_failure () {
197 return 1
198}
199
200exitcode=0
201if as_func_success; then
202 :
203else
204 exitcode=1
205 echo as_func_success failed.
206fi
207
208if as_func_failure; then
209 exitcode=1
210 echo as_func_failure succeeded.
211fi
212
213if as_func_ret_success; then
214 :
215else
216 exitcode=1
217 echo as_func_ret_success failed.
218fi
219
220if as_func_ret_failure; then
221 exitcode=1
222 echo as_func_ret_failure succeeded.
223fi
224
225if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 :
227else
228 exitcode=1
229 echo positional parameters were not saved.
230fi
231
232test \$exitcode = 0) || { (exit 1); exit 1; }
233
234(
235 as_lineno_1=\$LINENO
236 as_lineno_2=\$LINENO
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239") 2> /dev/null; then
240 :
241else
242 as_candidate_shells=
Martin v. Löwis11437992002-04-12 09:54:03 +0000243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245do
246 IFS=$as_save_IFS
247 test -z "$as_dir" && as_dir=.
Martin v. Löwiseba40652007-08-30 20:10:57 +0000248 case $as_dir in
Martin v. Löwis11437992002-04-12 09:54:03 +0000249 /*)
Martin v. Löwiseba40652007-08-30 20:10:57 +0000250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252 done;;
253 esac
254done
255IFS=$as_save_IFS
256
257
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Martin v. Löwiseba40652007-08-30 20:10:57 +0000266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272esac
273
274fi
275
276
277:
278_ASEOF
279}; then
280 CONFIG_SHELL=$as_shell
281 as_have_required=yes
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284 emulate sh
285 NULLCMD=:
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Martin v. Löwiseba40652007-08-30 20:10:57 +0000287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
289 setopt NO_GLOB_SUBST
290else
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
293esac
294
295fi
296
297
298:
299(as_func_return () {
300 (exit $1)
301}
302as_func_success () {
303 as_func_return 0
304}
305as_func_failure () {
306 as_func_return 1
307}
308as_func_ret_success () {
309 return 0
310}
311as_func_ret_failure () {
312 return 1
313}
314
315exitcode=0
316if as_func_success; then
317 :
318else
319 exitcode=1
320 echo as_func_success failed.
321fi
322
323if as_func_failure; then
324 exitcode=1
325 echo as_func_failure succeeded.
326fi
327
328if as_func_ret_success; then
329 :
330else
331 exitcode=1
332 echo as_func_ret_success failed.
333fi
334
335if as_func_ret_failure; then
336 exitcode=1
337 echo as_func_ret_failure succeeded.
338fi
339
340if ( set x; as_func_ret_success y && test x = "$1" ); then
341 :
342else
343 exitcode=1
344 echo positional parameters were not saved.
345fi
346
347test $exitcode = 0) || { (exit 1); exit 1; }
348
349(
Skip Montanaro89e975f2007-08-22 19:05:21 +0000350 as_lineno_1=$LINENO
351 as_lineno_2=$LINENO
Skip Montanaro89e975f2007-08-22 19:05:21 +0000352 test "x$as_lineno_1" != "x$as_lineno_2" &&
Martin v. Löwiseba40652007-08-30 20:10:57 +0000353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354
355_ASEOF
356}; then
357 break
358fi
359
360fi
361
362 done
363
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367 done
368 export CONFIG_SHELL
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
Martin v. Löwiseba40652007-08-30 20:10:57 +0000370fi
371
372
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
379fi
380
381
382fi
383
384fi
385
386
387
388(eval "as_func_return () {
389 (exit \$1)
390}
391as_func_success () {
392 as_func_return 0
393}
394as_func_failure () {
395 as_func_return 1
396}
397as_func_ret_success () {
398 return 0
399}
400as_func_ret_failure () {
401 return 1
402}
403
404exitcode=0
405if as_func_success; then
406 :
407else
408 exitcode=1
409 echo as_func_success failed.
410fi
411
412if as_func_failure; then
413 exitcode=1
414 echo as_func_failure succeeded.
415fi
416
417if as_func_ret_success; then
418 :
419else
420 exitcode=1
421 echo as_func_ret_success failed.
422fi
423
424if as_func_ret_failure; then
425 exitcode=1
426 echo as_func_ret_failure succeeded.
427fi
428
429if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 :
431else
432 exitcode=1
433 echo positional parameters were not saved.
434fi
435
436test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
Martin v. Löwiseba40652007-08-30 20:10:57 +0000442}
443
444
445
446 as_lineno_1=$LINENO
447 as_lineno_2=$LINENO
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Martin v. Löwis11437992002-04-12 09:54:03 +0000450
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
Martin v. Löwiseba40652007-08-30 20:10:57 +0000453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
457 # case at line end.
Martin v. Löwis11437992002-04-12 09:54:03 +0000458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Martin v. Löwiseba40652007-08-30 20:10:57 +0000459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
461 sed -n '
462 p
463 /[$]LINENO/=
464 ' <$as_myself |
Martin v. Löwis11437992002-04-12 09:54:03 +0000465 sed '
Martin v. Löwiseba40652007-08-30 20:10:57 +0000466 s/[$]LINENO.*/&-/
467 t lineno
468 b
469 :lineno
Martin v. Löwis11437992002-04-12 09:54:03 +0000470 N
Martin v. Löwiseba40652007-08-30 20:10:57 +0000471 :loop
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Martin v. Löwis11437992002-04-12 09:54:03 +0000473 t loop
Martin v. Löwiseba40652007-08-30 20:10:57 +0000474 s/-\n.*//
Martin v. Löwis11437992002-04-12 09:54:03 +0000475 ' >$as_me.lineno &&
Martin v. Löwiseba40652007-08-30 20:10:57 +0000476 chmod +x "$as_me.lineno" ||
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Martin v. Löwis11437992002-04-12 09:54:03 +0000478 { (exit 1); exit 1; }; }
479
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
Martin v. Löwiseba40652007-08-30 20:10:57 +0000482 # original and so on. Autoconf is especially sensitive to this).
483 . "./$as_me.lineno"
Martin v. Löwis11437992002-04-12 09:54:03 +0000484 # Exit status is that of the last command.
485 exit
486}
487
488
Martin v. Löwiseba40652007-08-30 20:10:57 +0000489if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 as_dirname=dirname
491else
492 as_dirname=false
493fi
494
495ECHO_C= ECHO_N= ECHO_T=
496case `echo -n x` in
497-n*)
498 case `echo 'x\c'` in
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
500 *) ECHO_C='\c';;
501 esac;;
502*)
503 ECHO_N='-n';;
Martin v. Löwis11437992002-04-12 09:54:03 +0000504esac
Martin v. Löwiseba40652007-08-30 20:10:57 +0000505if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Martin v. Löwis11437992002-04-12 09:54:03 +0000507 as_expr=expr
508else
509 as_expr=false
510fi
511
512rm -f conf$$ conf$$.exe conf$$.file
Martin v. Löwiseba40652007-08-30 20:10:57 +0000513if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515else
516 rm -f conf$$.dir
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000517 mkdir conf$$.dir 2>/dev/null
Martin v. Löwiseba40652007-08-30 20:10:57 +0000518fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000519if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -p'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
Martin v. Löwis11437992002-04-12 09:54:03 +0000531 as_ln_s='cp -p'
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000532 fi
Martin v. Löwis11437992002-04-12 09:54:03 +0000533else
534 as_ln_s='cp -p'
535fi
Martin v. Löwiseba40652007-08-30 20:10:57 +0000536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537rmdir conf$$.dir 2>/dev/null
Martin v. Löwis11437992002-04-12 09:54:03 +0000538
Skip Montanaro6dead952003-09-25 14:50:04 +0000539if mkdir -p . 2>/dev/null; then
540 as_mkdir_p=:
541else
Skip Montanarof0d5f792004-08-15 14:08:23 +0000542 test -d ./-p && rmdir ./-p
Skip Montanaro6dead952003-09-25 14:50:04 +0000543 as_mkdir_p=false
544fi
545
Martin v. Löwiseba40652007-08-30 20:10:57 +0000546if test -x / >/dev/null 2>&1; then
547 as_test_x='test -x'
548else
549 if ls -dL / >/dev/null 2>&1; then
550 as_ls_L_option=L
551 else
552 as_ls_L_option=
553 fi
554 as_test_x='
555 eval sh -c '\''
556 if test -d "$1"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000557 test -d "$1/.";
Martin v. Löwiseba40652007-08-30 20:10:57 +0000558 else
559 case $1 in
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000560 -*)set "./$1";;
Martin v. Löwiseba40652007-08-30 20:10:57 +0000561 esac;
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
564 '\'' sh
565 '
566fi
567as_executable_p=$as_test_x
Martin v. Löwis11437992002-04-12 09:54:03 +0000568
569# Sed expression to map a string onto a valid CPP name.
Skip Montanarof0d5f792004-08-15 14:08:23 +0000570as_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 +0000571
572# Sed expression to map a string onto a valid variable name.
Skip Montanarof0d5f792004-08-15 14:08:23 +0000573as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:03 +0000574
575
Martin v. Löwis11437992002-04-12 09:54:03 +0000576
Martin v. Löwiseba40652007-08-30 20:10:57 +0000577exec 7<&0 </dev/null 6>&1
Martin v. Löwis11437992002-04-12 09:54:03 +0000578
579# Name of the host.
580# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581# so uname gets run too.
582ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
583
Martin v. Löwis11437992002-04-12 09:54:03 +0000584#
585# Initializations.
586#
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000587ac_default_prefix=/usr/local
Martin v. Löwiseba40652007-08-30 20:10:57 +0000588ac_clean_files=
Skip Montanaro6dead952003-09-25 14:50:04 +0000589ac_config_libobj_dir=.
Martin v. Löwiseba40652007-08-30 20:10:57 +0000590LIBOBJS=
Martin v. Löwis11437992002-04-12 09:54:03 +0000591cross_compiling=no
592subdirs=
593MFLAGS=
594MAKEFLAGS=
595SHELL=${CONFIG_SHELL-/bin/sh}
596
Martin v. Löwis11437992002-04-12 09:54:03 +0000597# Identity of this package.
Martin v. Löwis88afe662002-10-26 13:47:44 +0000598PACKAGE_NAME='python'
599PACKAGE_TARNAME='python'
Martin v. Löwis174440b2008-10-03 08:59:41 +0000600PACKAGE_VERSION='2.7'
601PACKAGE_STRING='python 2.7'
Georg Brandl464432d2009-05-20 18:24:08 +0000602PACKAGE_BUGREPORT='http://bugs.python.org/'
Martin v. Löwis11437992002-04-12 09:54:03 +0000603
604ac_unique_file="Include/object.h"
605# Factoring default headers for most tests.
606ac_includes_default="\
607#include <stdio.h>
Martin v. Löwiseba40652007-08-30 20:10:57 +0000608#ifdef HAVE_SYS_TYPES_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000609# include <sys/types.h>
610#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000611#ifdef HAVE_SYS_STAT_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000612# include <sys/stat.h>
613#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000614#ifdef STDC_HEADERS
Martin v. Löwis11437992002-04-12 09:54:03 +0000615# include <stdlib.h>
616# include <stddef.h>
617#else
Martin v. Löwiseba40652007-08-30 20:10:57 +0000618# ifdef HAVE_STDLIB_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000619# include <stdlib.h>
620# endif
621#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000622#ifdef HAVE_STRING_H
623# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000624# include <memory.h>
625# endif
626# include <string.h>
627#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000628#ifdef HAVE_STRINGS_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000629# include <strings.h>
630#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000631#ifdef HAVE_INTTYPES_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000632# include <inttypes.h>
Martin v. Löwis11437992002-04-12 09:54:03 +0000633#endif
Martin v. Löwiseba40652007-08-30 20:10:57 +0000634#ifdef HAVE_STDINT_H
635# include <stdint.h>
636#endif
637#ifdef HAVE_UNISTD_H
Martin v. Löwis11437992002-04-12 09:54:03 +0000638# include <unistd.h>
639#endif"
640
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000641ac_subst_vars='LTLIBOBJS
Ronald Oussoren450d5612009-06-08 21:12:41 +0000642SRCDIRS
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000643THREADHEADERS
644UNICODE_OBJS
645LIBC
646LIBM
647HAVE_GETHOSTBYNAME
648HAVE_GETHOSTBYNAME_R
649HAVE_GETHOSTBYNAME_R_3_ARG
650HAVE_GETHOSTBYNAME_R_5_ARG
651HAVE_GETHOSTBYNAME_R_6_ARG
652LIBOBJS
653TRUE
654MACHDEP_OBJS
655DYNLOADFILE
656DLINCLDIR
657THREADOBJ
658LDLAST
659USE_THREAD_MODULE
660SIGNAL_OBJS
661USE_SIGNAL_MODULE
662SHLIBS
663CFLAGSFORSHARED
664LINKFORSHARED
665CCSHARED
666BLDSHARED
667LDSHARED
668SO
669LIBTOOL_CRUFT
670OTHER_LIBTOOL_OPT
671UNIVERSAL_ARCH_FLAGS
672BASECFLAGS
673OPT
674LN
675INSTALL_DATA
676INSTALL_SCRIPT
677INSTALL_PROGRAM
678SVNVERSION
679ARFLAGS
680AR
681RANLIB
682GNULD
683LINKCC
684RUNSHARED
685INSTSONAME
686LDLIBRARYDIR
687BLDLIBRARY
688DLLLIBRARY
689LDLIBRARY
690LIBRARY
691BUILDEXEEXT
692EGREP
693GREP
694CPP
695MAINCC
696CXX
697OBJEXT
698EXEEXT
699ac_ct_CC
700CPPFLAGS
701LDFLAGS
702CFLAGS
703CC
704EXPORT_MACOSX_DEPLOYMENT_TARGET
705CONFIGURE_MACOSX_DEPLOYMENT_TARGET
706EXTRAMACHDEPPATH
707EXTRAPLATDIR
708SGI_ABI
709MACHDEP
710FRAMEWORKUNIXTOOLSPREFIX
711FRAMEWORKALTINSTALLLAST
712FRAMEWORKALTINSTALLFIRST
713FRAMEWORKINSTALLLAST
714FRAMEWORKINSTALLFIRST
715PYTHONFRAMEWORKINSTALLDIR
716PYTHONFRAMEWORKPREFIX
717PYTHONFRAMEWORKDIR
718PYTHONFRAMEWORKIDENTIFIER
719PYTHONFRAMEWORK
720ARCH_RUN_32BIT
721UNIVERSALSDK
722CONFIG_ARGS
723SOVERSION
724VERSION
725target_alias
726host_alias
727build_alias
728LIBS
729ECHO_T
730ECHO_N
731ECHO_C
732DEFS
733mandir
734localedir
735libdir
736psdir
737pdfdir
738dvidir
739htmldir
740infodir
741docdir
742oldincludedir
743includedir
744localstatedir
745sharedstatedir
746sysconfdir
747datadir
748datarootdir
749libexecdir
750sbindir
751bindir
752program_transform_name
753prefix
754exec_prefix
755PACKAGE_BUGREPORT
756PACKAGE_STRING
757PACKAGE_VERSION
758PACKAGE_TARNAME
759PACKAGE_NAME
760PATH_SEPARATOR
761SHELL'
Skip Montanaro6dead952003-09-25 14:50:04 +0000762ac_subst_files=''
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000763ac_user_opts='
764enable_option_checking
765enable_universalsdk
766with_universal_archs
767with_framework_name
768enable_framework
769with_gcc
770with_cxx_main
771with_suffix
772enable_shared
773enable_profiling
774with_pydebug
775enable_toolbox_glue
776with_libs
777with_system_ffi
778with_dbmliborder
779with_signal_module
780with_dec_threads
781with_threads
782with_thread
783with_pth
784enable_ipv6
785with_doc_strings
786with_tsc
787with_pymalloc
788with_wctype_functions
789with_fpectl
790with_libm
791with_libc
792enable_big_digits
793enable_unicode
794'
Martin v. Löwiseba40652007-08-30 20:10:57 +0000795 ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801LIBS
802CPPFLAGS
803CPP'
804
Guido van Rossum627b2d71993-12-24 10:39:16 +0000805
Guido van Rossum7f43da71994-08-01 12:15:30 +0000806# Initialize some variables set by options.
Martin v. Löwis11437992002-04-12 09:54:03 +0000807ac_init_help=
808ac_init_version=false
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000809ac_unrecognized_opts=
810ac_unrecognized_sep=
Guido van Rossum7f43da71994-08-01 12:15:30 +0000811# The variables have the same names as the options, with
812# dashes changed to underlines.
Martin v. Löwis11437992002-04-12 09:54:03 +0000813cache_file=/dev/null
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000814exec_prefix=NONE
Guido van Rossum7f43da71994-08-01 12:15:30 +0000815no_create=
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000816no_recursion=
817prefix=NONE
818program_prefix=NONE
819program_suffix=NONE
820program_transform_name=s,x,x,
Guido van Rossum7f43da71994-08-01 12:15:30 +0000821silent=
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000822site=
Guido van Rossum7f43da71994-08-01 12:15:30 +0000823srcdir=
Guido van Rossum7f43da71994-08-01 12:15:30 +0000824verbose=
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000825x_includes=NONE
826x_libraries=NONE
Martin v. Löwis11437992002-04-12 09:54:03 +0000827
828# Installation directory options.
829# These are left unexpanded so users can "make install exec_prefix=/foo"
830# and all the variables that are supposed to be based on exec_prefix
831# by default will actually change.
832# Use braces instead of parens because sh, perl, etc. also accept them.
Martin v. Löwiseba40652007-08-30 20:10:57 +0000833# (The list follows the same order as the GNU Coding Standards.)
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000834bindir='${exec_prefix}/bin'
835sbindir='${exec_prefix}/sbin'
836libexecdir='${exec_prefix}/libexec'
Martin v. Löwiseba40652007-08-30 20:10:57 +0000837datarootdir='${prefix}/share'
838datadir='${datarootdir}'
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000839sysconfdir='${prefix}/etc'
840sharedstatedir='${prefix}/com'
841localstatedir='${prefix}/var'
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000842includedir='${prefix}/include'
843oldincludedir='/usr/include'
Martin v. Löwiseba40652007-08-30 20:10:57 +0000844docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845infodir='${datarootdir}/info'
846htmldir='${docdir}'
847dvidir='${docdir}'
848pdfdir='${docdir}'
849psdir='${docdir}'
850libdir='${exec_prefix}/lib'
851localedir='${datarootdir}/locale'
852mandir='${datarootdir}/man'
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000853
Guido van Rossum7f43da71994-08-01 12:15:30 +0000854ac_prev=
Martin v. Löwiseba40652007-08-30 20:10:57 +0000855ac_dashdash=
Guido van Rossum7f43da71994-08-01 12:15:30 +0000856for ac_option
Guido van Rossum627b2d71993-12-24 10:39:16 +0000857do
Guido van Rossum7f43da71994-08-01 12:15:30 +0000858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +0000860 eval $ac_prev=\$ac_option
Guido van Rossum7f43da71994-08-01 12:15:30 +0000861 ac_prev=
862 continue
Guido van Rossum627b2d71993-12-24 10:39:16 +0000863 fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000864
Martin v. Löwiseba40652007-08-30 20:10:57 +0000865 case $ac_option in
866 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 *) ac_optarg=yes ;;
868 esac
Guido van Rossum7f43da71994-08-01 12:15:30 +0000869
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000870 # Accept the important Cygnus configure options, so we can diagnose typos.
871
Martin v. Löwiseba40652007-08-30 20:10:57 +0000872 case $ac_dashdash$ac_option in
873 --)
874 ac_dashdash=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000875
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000879 bindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000880
881 -build | --build | --buil | --bui | --bu)
Martin v. Löwis11437992002-04-12 09:54:03 +0000882 ac_prev=build_alias ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000884 build_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000885
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000891 cache_file=$ac_optarg ;;
892
893 --config-cache | -C)
894 cache_file=config.cache ;;
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000895
Martin v. Löwiseba40652007-08-30 20:10:57 +0000896 -datadir | --datadir | --datadi | --datad)
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000897 ac_prev=datadir ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +0000898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000899 datadir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000900
Martin v. Löwiseba40652007-08-30 20:10:57 +0000901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
907
Guido van Rossum7f43da71994-08-01 12:15:30 +0000908 -disable-* | --disable-*)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000910 # Reject names that are not valid shell variable names.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
Martin v. Löwis11437992002-04-12 09:54:03 +0000913 { (exit 1); exit 1; }; }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918"enable_$ac_useropt"
919"*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +0000924
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
929
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000934
935 -enable-* | --enable-*)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000937 # Reject names that are not valid shell variable names.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
Martin v. Löwis11437992002-04-12 09:54:03 +0000940 { (exit 1); exit 1; }; }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +0000941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945"enable_$ac_useropt"
946"*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=\$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000951
Guido van Rossum7f43da71994-08-01 12:15:30 +0000952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000959 exec_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000960
961 -gas | --gas | --ga | --g)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000964
Martin v. Löwis11437992002-04-12 09:54:03 +0000965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000971
972 -host | --host | --hos | --ho)
Martin v. Löwis11437992002-04-12 09:54:03 +0000973 ac_prev=host_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000974 -host=* | --host=* | --hos=* | --ho=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000975 host_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000976
Martin v. Löwiseba40652007-08-30 20:10:57 +0000977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
982
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000988 includedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000989
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000993 infodir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000994
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000998 libdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000999
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001005 libexecdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001006
Martin v. Löwiseba40652007-08-30 20:10:57 +00001007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1011
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001012 -localstatedir | --localstatedir | --localstatedi | --localstated \
Martin v. Löwiseba40652007-08-30 20:10:57 +00001013 | --localstate | --localstat | --localsta | --localst | --locals)
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Martin v. Löwiseba40652007-08-30 20:10:57 +00001016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001017 localstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001018
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001022 mandir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001023
Guido van Rossum7f43da71994-08-01 12:15:30 +00001024 -nfp | --nfp | --nf)
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001027
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Martin v. Löwis11437992002-04-12 09:54:03 +00001029 | --no-cr | --no-c | -n)
Guido van Rossum7f43da71994-08-01 12:15:30 +00001030 no_create=yes ;;
1031
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001035
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001043 oldincludedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001044
Guido van Rossum7f43da71994-08-01 12:15:30 +00001045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001048 prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001049
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001055 program_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001056
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001062 program_suffix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001063
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001079 program_transform_name=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001080
Martin v. Löwiseba40652007-08-30 20:10:57 +00001081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1085
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1090
Guido van Rossum7f43da71994-08-01 12:15:30 +00001091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1094
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001099 sbindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001100
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001110 sharedstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001111
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001115 site=$ac_optarg ;;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001116
Guido van Rossum7f43da71994-08-01 12:15:30 +00001117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001120 srcdir=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001121
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001127 sysconfdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001128
Guido van Rossum7f43da71994-08-01 12:15:30 +00001129 -target | --target | --targe | --targ | --tar | --ta | --t)
Martin v. Löwis11437992002-04-12 09:54:03 +00001130 ac_prev=target_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001132 target_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001133
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1136
Martin v. Löwis11437992002-04-12 09:54:03 +00001137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001139
1140 -with-* | --with-*)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001142 # Reject names that are not valid shell variable names.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
Martin v. Löwis11437992002-04-12 09:54:03 +00001145 { (exit 1); exit 1; }; }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150"with_$ac_useropt"
1151"*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=\$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001156
1157 -without-* | --without-*)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001159 # Reject names that are not valid shell variable names.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
Martin v. Löwis11437992002-04-12 09:54:03 +00001162 { (exit 1); exit 1; }; }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167"with_$ac_useropt"
1168"*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001173
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001183 x_includes=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Martin v. Löwis11437992002-04-12 09:54:03 +00001190 x_libraries=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001191
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001192 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
Martin v. Löwis11437992002-04-12 09:54:03 +00001193Try \`$0 --help' for more information." >&2
1194 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001195 ;;
1196
Martin v. Löwis11437992002-04-12 09:54:03 +00001197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001201 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
Martin v. Löwis11437992002-04-12 09:54:03 +00001202 { (exit 1); exit 1; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00001203 eval $ac_envvar=\$ac_optarg
Martin v. Löwis11437992002-04-12 09:54:03 +00001204 export $ac_envvar ;;
1205
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001206 *)
Martin v. Löwis11437992002-04-12 09:54:03 +00001207 # FIXME: should be removed in autoconf 3.0.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Martin v. Löwis11437992002-04-12 09:54:03 +00001209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Martin v. Löwis11437992002-04-12 09:54:03 +00001211 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Guido van Rossum7f43da71994-08-01 12:15:30 +00001212 ;;
1213
1214 esac
Guido van Rossum627b2d71993-12-24 10:39:16 +00001215done
1216
Guido van Rossum7f43da71994-08-01 12:15:30 +00001217if test -n "$ac_prev"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00001218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001219 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
Martin v. Löwis11437992002-04-12 09:54:03 +00001220 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001221fi
1222
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001223if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1225 no) ;;
1226 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1227 { (exit 1); exit 1; }; } ;;
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229 esac
1230fi
1231
1232# Check all directory arguments for consistency.
Martin v. Löwiseba40652007-08-30 20:10:57 +00001233for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001237do
Martin v. Löwiseba40652007-08-30 20:10:57 +00001238 eval ac_val=\$$ac_var
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001239 # Remove trailing slashes.
1240 case $ac_val in
1241 */ )
1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\$ac_val;;
1244 esac
1245 # Be sure to have absolute directory names.
Martin v. Löwis11437992002-04-12 09:54:03 +00001246 case $ac_val in
Martin v. Löwiseba40652007-08-30 20:10:57 +00001247 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001249 esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001250 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Martin v. Löwiseba40652007-08-30 20:10:57 +00001251 { (exit 1); exit 1; }; }
Martin v. Löwis11437992002-04-12 09:54:03 +00001252done
Guido van Rossum627b2d71993-12-24 10:39:16 +00001253
Martin v. Löwis11437992002-04-12 09:54:03 +00001254# There might be people who depend on the old broken behavior: `$host'
1255# used to hold the argument of --host etc.
1256# FIXME: To remove some day.
1257build=$build_alias
1258host=$host_alias
1259target=$target_alias
Guido van Rossum627b2d71993-12-24 10:39:16 +00001260
Martin v. Löwis11437992002-04-12 09:54:03 +00001261# FIXME: To remove some day.
1262if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001265 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Martin v. Löwis11437992002-04-12 09:54:03 +00001266 If a cross compiler is detected then cross compile mode will be used." >&2
1267 elif test "x$build_alias" != "x$host_alias"; then
1268 cross_compiling=yes
1269 fi
1270fi
1271
1272ac_tool_prefix=
1273test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275test "$silent" = yes && exec 6>/dev/null
1276
Guido van Rossum627b2d71993-12-24 10:39:16 +00001277
Martin v. Löwiseba40652007-08-30 20:10:57 +00001278ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279ac_ls_di=`ls -di .` &&
1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001281 { $as_echo "$as_me: error: working directory cannot be determined" >&2
Martin v. Löwiseba40652007-08-30 20:10:57 +00001282 { (exit 1); exit 1; }; }
1283test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001284 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
Martin v. Löwiseba40652007-08-30 20:10:57 +00001285 { (exit 1); exit 1; }; }
1286
1287
Guido van Rossum627b2d71993-12-24 10:39:16 +00001288# Find the source files, if location was not specified.
1289if test -z "$srcdir"; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00001290 ac_srcdir_defaulted=yes
Martin v. Löwiseba40652007-08-30 20:10:57 +00001291 # Try the directory containing this script, then the parent directory.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297$as_echo X"$as_myself" |
Martin v. Löwiseba40652007-08-30 20:10:57 +00001298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\).*/{
1311 s//\1/
1312 q
1313 }
1314 s/.*/./; q'`
Guido van Rossum7f43da71994-08-01 12:15:30 +00001315 srcdir=$ac_confdir
Martin v. Löwiseba40652007-08-30 20:10:57 +00001316 if test ! -r "$srcdir/$ac_unique_file"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001317 srcdir=..
1318 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001319else
1320 ac_srcdir_defaulted=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00001321fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00001322if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001324 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Martin v. Löwis11437992002-04-12 09:54:03 +00001325 { (exit 1); exit 1; }; }
Brett Cannon19fab762007-06-02 03:02:29 +00001326fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00001327ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328ac_abs_confdir=`(
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001329 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
Skip Montanaro89e975f2007-08-22 19:05:21 +00001330 { (exit 1); exit 1; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00001331 pwd)`
1332# When building in place, set srcdir=.
1333if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1335fi
1336# Remove unnecessary trailing slashes from srcdir.
1337# Double slashes in file names in object file debugging info
1338# mess up M-x gdb in Emacs.
1339case $srcdir in
1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341esac
1342for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347done
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001348
Martin v. Löwis11437992002-04-12 09:54:03 +00001349#
1350# Report the --help message.
1351#
1352if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
Martin v. Löwis174440b2008-10-03 08:59:41 +00001356\`configure' configures python 2.7 to adapt to many kinds of systems.
Martin v. Löwis11437992002-04-12 09:54:03 +00001357
1358Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361VAR=VALUE. See below for descriptions of some of the useful variables.
1362
1363Defaults for the options are specified in brackets.
1364
1365Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375
Martin v. Löwis11437992002-04-12 09:54:03 +00001376Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001378 [$ac_default_prefix]
Martin v. Löwis11437992002-04-12 09:54:03 +00001379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001380 [PREFIX]
Martin v. Löwis11437992002-04-12 09:54:03 +00001381
1382By default, \`make install' will install all the files in
1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385for instance \`--prefix=\$HOME'.
1386
1387For better control, use the options below.
1388
1389Fine tuning of the installation directories:
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
Martin v. Löwis11437992002-04-12 09:54:03 +00001409_ACEOF
1410
1411 cat <<\_ACEOF
1412_ACEOF
1413fi
1414
1415if test -n "$ac_init_help"; then
Martin v. Löwis88afe662002-10-26 13:47:44 +00001416 case $ac_init_help in
Martin v. Löwis174440b2008-10-03 08:59:41 +00001417 short | recursive ) echo "Configuration of python 2.7:";;
Martin v. Löwis88afe662002-10-26 13:47:44 +00001418 esac
Martin v. Löwis11437992002-04-12 09:54:03 +00001419 cat <<\_ACEOF
1420
1421Optional Features:
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001422 --disable-option-checking ignore unrecognized --enable/--with options
Martin v. Löwis11437992002-04-12 09:54:03 +00001423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Brett Cannon91a1dec2008-02-13 19:15:44 +00001425 --enable-universalsdk[=SDKDIR]
Brett Cannon9a8bb0e2008-02-03 02:07:55 +00001426 Build against Mac OS X 10.4u SDK (ppc/i386)
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001427 --enable-framework[=INSTALLDIR]
1428 Build (MacOSX|Darwin) framework
1429 --enable-shared disable/enable building shared python library
Skip Montanaro56f6a4f2004-06-18 02:47:22 +00001430 --enable-profiling enable C-level code profiling
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001431 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1432 --enable-ipv6 Enable ipv6 (with ipv4) support
1433 --disable-ipv6 Disable ipv6 support
Mark Dickinsonefc82f72009-03-20 15:51:55 +00001434 --enable-big-digits[=BITS]
1435 use big digits for Python longs [BITS=30]
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001436 --enable-unicode[=ucs[24]]
1437 Enable Unicode strings (default is yes)
Martin v. Löwis11437992002-04-12 09:54:03 +00001438
1439Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Ronald Oussoren5640ce22008-06-05 12:58:24 +00001442 --with-universal-archs=ARCH
1443 select architectures for universal build ("32-bit",
1444 "64-bit" or "all")
Ronald Oussoren580c7fe2008-05-02 19:45:11 +00001445 --with-framework-name=FRAMEWORK
1446 specify an alternate name of the framework built
1447 with --enable-framework
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001448 --without-gcc never use gcc
Martin v. Löwis0f48d982006-04-14 14:34:26 +00001449 --with-cxx-main=<compiler>
1450 compile main() and link python executable with C++
1451 compiler
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001452 --with-suffix=.exe set executable suffix
1453 --with-pydebug build with Py_DEBUG defined
1454 --with-libs='lib1 ...' link against additional libs
Martin v. Löwis9176fc12006-04-11 11:12:43 +00001455 --with-system-ffi build _ctypes module using an installed ffi library
Benjamin Peterson867475c2009-04-29 20:36:25 +00001456 --with-dbmliborder=db1:db2:...
1457 order to check db backends for dbm. Valid value is a
1458 colon separated string with the backend names
1459 `ndbm', `gdbm' and `bdb'.
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001460 --with-signal-module disable/enable signal module
1461 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1462 --with(out)-threads[=DIRECTORY]
1463 disable/enable thread support
1464 --with(out)-thread[=DIRECTORY]
1465 deprecated; use --with(out)-threads
1466 --with-pth use GNU pth threading libraries
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001467 --with(out)-doc-strings disable/enable documentation strings
Martin v. Löwisf30d60e2004-06-08 08:17:44 +00001468 --with(out)-tsc enable/disable timestamp counter profile
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001469 --with(out)-pymalloc disable/enable specialized mallocs
1470 --with-wctype-functions use wctype.h functions
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00001471 --with-fpectl enable SIGFPE catching
1472 --with-libm=STRING math library
1473 --with-libc=STRING C library
Martin v. Löwis11437992002-04-12 09:54:03 +00001474
1475Some influential environment variables:
1476 CC C compiler command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1479 nonstandard directory <lib dir>
Martin v. Löwiseba40652007-08-30 20:10:57 +00001480 LIBS libraries to pass to the linker, e.g. -l<library>
1481 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1482 you have headers in a nonstandard directory <include dir>
Martin v. Löwis11437992002-04-12 09:54:03 +00001483 CPP C preprocessor
1484
1485Use these variables to override the choices made by `configure' or to help
1486it to find libraries and programs with nonstandard names/locations.
1487
Georg Brandl464432d2009-05-20 18:24:08 +00001488Report bugs to <http://bugs.python.org/>.
Martin v. Löwis11437992002-04-12 09:54:03 +00001489_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00001490ac_status=$?
Martin v. Löwis11437992002-04-12 09:54:03 +00001491fi
1492
1493if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
Martin v. Löwis11437992002-04-12 09:54:03 +00001495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001496 test -d "$ac_dir" ||
1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498 continue
Martin v. Löwis11437992002-04-12 09:54:03 +00001499 ac_builddir=.
1500
Martin v. Löwiseba40652007-08-30 20:10:57 +00001501case "$ac_dir" in
1502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503*)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Martin v. Löwiseba40652007-08-30 20:10:57 +00001505 # A ".." for each directory in $ac_dir_suffix.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Martin v. Löwiseba40652007-08-30 20:10:57 +00001507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 esac ;;
1511esac
1512ac_abs_top_builddir=$ac_pwd
1513ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514# for backward compatibility:
1515ac_top_builddir=$ac_top_build_prefix
Martin v. Löwis11437992002-04-12 09:54:03 +00001516
1517case $srcdir in
Martin v. Löwiseba40652007-08-30 20:10:57 +00001518 .) # We are building in place.
Martin v. Löwis11437992002-04-12 09:54:03 +00001519 ac_srcdir=.
Martin v. Löwiseba40652007-08-30 20:10:57 +00001520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
Martin v. Löwis11437992002-04-12 09:54:03 +00001523 ac_srcdir=$srcdir$ac_dir_suffix;
Martin v. Löwiseba40652007-08-30 20:10:57 +00001524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1526 *) # Relative name.
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00001530esac
Martin v. Löwiseba40652007-08-30 20:10:57 +00001531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Skip Montanarof0d5f792004-08-15 14:08:23 +00001532
Martin v. Löwiseba40652007-08-30 20:10:57 +00001533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure" --help=recursive
Martin v. Löwis11437992002-04-12 09:54:03 +00001541 else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001542 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Martin v. Löwiseba40652007-08-30 20:10:57 +00001543 fi || ac_status=$?
1544 cd "$ac_pwd" || { ac_status=$?; break; }
Martin v. Löwis11437992002-04-12 09:54:03 +00001545 done
1546fi
1547
Martin v. Löwiseba40652007-08-30 20:10:57 +00001548test -n "$ac_init_help" && exit $ac_status
Martin v. Löwis11437992002-04-12 09:54:03 +00001549if $ac_init_version; then
1550 cat <<\_ACEOF
Martin v. Löwis174440b2008-10-03 08:59:41 +00001551python configure 2.7
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001552generated by GNU Autoconf 2.63
Martin v. Löwis11437992002-04-12 09:54:03 +00001553
Martin v. Löwiseba40652007-08-30 20:10:57 +00001554Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015552002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Martin v. Löwis11437992002-04-12 09:54:03 +00001556This configure script is free software; the Free Software Foundation
1557gives unlimited permission to copy, distribute and modify it.
1558_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00001559 exit
Martin v. Löwis11437992002-04-12 09:54:03 +00001560fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00001561cat >config.log <<_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +00001562This file contains any messages produced by compilers while
1563running configure, to aid debugging if configure makes a mistake.
1564
Martin v. Löwis174440b2008-10-03 08:59:41 +00001565It was created by python $as_me 2.7, which was
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001566generated by GNU Autoconf 2.63. Invocation command line was
Martin v. Löwis11437992002-04-12 09:54:03 +00001567
1568 $ $0 $@
1569
1570_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00001571exec 5>>config.log
Martin v. Löwis11437992002-04-12 09:54:03 +00001572{
1573cat <<_ASUNAME
1574## --------- ##
1575## Platform. ##
1576## --------- ##
1577
1578hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1579uname -m = `(uname -m) 2>/dev/null || echo unknown`
1580uname -r = `(uname -r) 2>/dev/null || echo unknown`
1581uname -s = `(uname -s) 2>/dev/null || echo unknown`
1582uname -v = `(uname -v) 2>/dev/null || echo unknown`
1583
1584/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1585/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1586
1587/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1588/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1589/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Martin v. Löwiseba40652007-08-30 20:10:57 +00001590/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Martin v. Löwis11437992002-04-12 09:54:03 +00001591/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1592/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1593/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1594
1595_ASUNAME
1596
1597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598for as_dir in $PATH
1599do
1600 IFS=$as_save_IFS
1601 test -z "$as_dir" && as_dir=.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001602 $as_echo "PATH: $as_dir"
Martin v. Löwis11437992002-04-12 09:54:03 +00001603done
Martin v. Löwiseba40652007-08-30 20:10:57 +00001604IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00001605
1606} >&5
1607
1608cat >&5 <<_ACEOF
1609
1610
1611## ----------- ##
1612## Core tests. ##
1613## ----------- ##
1614
1615_ACEOF
1616
1617
1618# Keep a trace of the command line.
1619# Strip out --no-create and --no-recursion so they do not pile up.
Skip Montanaro6dead952003-09-25 14:50:04 +00001620# Strip out --silent because we don't want to record it for future runs.
Martin v. Löwis11437992002-04-12 09:54:03 +00001621# Also quote any args containing shell meta-characters.
Skip Montanaro6dead952003-09-25 14:50:04 +00001622# Make two passes to allow for proper duplicate-argument suppression.
Martin v. Löwis11437992002-04-12 09:54:03 +00001623ac_configure_args=
Skip Montanaro6dead952003-09-25 14:50:04 +00001624ac_configure_args0=
1625ac_configure_args1=
Skip Montanaro6dead952003-09-25 14:50:04 +00001626ac_must_keep_next=false
1627for ac_pass in 1 2
Martin v. Löwis11437992002-04-12 09:54:03 +00001628do
Skip Montanaro6dead952003-09-25 14:50:04 +00001629 for ac_arg
1630 do
1631 case $ac_arg in
1632 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1634 | -silent | --silent | --silen | --sile | --sil)
1635 continue ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00001636 *\'*)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001637 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Skip Montanaro6dead952003-09-25 14:50:04 +00001638 esac
1639 case $ac_pass in
1640 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1641 2)
1642 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1643 if test $ac_must_keep_next = true; then
Skip Montanarof0d5f792004-08-15 14:08:23 +00001644 ac_must_keep_next=false # Got value, back to normal.
Skip Montanaro6dead952003-09-25 14:50:04 +00001645 else
Skip Montanarof0d5f792004-08-15 14:08:23 +00001646 case $ac_arg in
1647 *=* | --config-cache | -C | -disable-* | --disable-* \
1648 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1649 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1650 | -with-* | --with-* | -without-* | --without-* | --x)
1651 case "$ac_configure_args0 " in
1652 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1653 esac
1654 ;;
1655 -* ) ac_must_keep_next=true ;;
1656 esac
Skip Montanaro6dead952003-09-25 14:50:04 +00001657 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00001658 ac_configure_args="$ac_configure_args '$ac_arg'"
Skip Montanaro6dead952003-09-25 14:50:04 +00001659 ;;
1660 esac
1661 done
Martin v. Löwis11437992002-04-12 09:54:03 +00001662done
Skip Montanaro6dead952003-09-25 14:50:04 +00001663$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1664$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 +00001665
1666# When interrupted or exit'd, cleanup temporary files, and complete
1667# config.log. We remove comments because anyway the quotes in there
1668# would cause problems or look ugly.
Martin v. Löwiseba40652007-08-30 20:10:57 +00001669# WARNING: Use '\'' to represent an apostrophe within the trap.
1670# 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 +00001671trap 'exit_status=$?
1672 # Save into config.log some information that might help in debugging.
1673 {
1674 echo
Skip Montanaro6dead952003-09-25 14:50:04 +00001675
Martin v. Löwis11437992002-04-12 09:54:03 +00001676 cat <<\_ASBOX
1677## ---------------- ##
1678## Cache variables. ##
1679## ---------------- ##
1680_ASBOX
1681 echo
1682 # The following way of writing the cache mishandles newlines in values,
Martin v. Löwiseba40652007-08-30 20:10:57 +00001683(
1684 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1685 eval ac_val=\$$ac_var
1686 case $ac_val in #(
1687 *${as_nl}*)
1688 case $ac_var in #(
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001689 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1690$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00001691 esac
1692 case $ac_var in #(
1693 _ | IFS | as_nl) ;; #(
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001694 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Martin v. Löwiseba40652007-08-30 20:10:57 +00001695 *) $as_unset $ac_var ;;
1696 esac ;;
1697 esac
1698 done
Martin v. Löwis11437992002-04-12 09:54:03 +00001699 (set) 2>&1 |
Martin v. Löwiseba40652007-08-30 20:10:57 +00001700 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1701 *${as_nl}ac_space=\ *)
Martin v. Löwis11437992002-04-12 09:54:03 +00001702 sed -n \
Martin v. Löwiseba40652007-08-30 20:10:57 +00001703 "s/'\''/'\''\\\\'\'''\''/g;
1704 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1705 ;; #(
Skip Montanaro89e975f2007-08-22 19:05:21 +00001706 *)
Martin v. Löwiseba40652007-08-30 20:10:57 +00001707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Skip Montanaro89e975f2007-08-22 19:05:21 +00001708 ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00001709 esac |
1710 sort
1711)
Martin v. Löwis11437992002-04-12 09:54:03 +00001712 echo
Skip Montanaro6dead952003-09-25 14:50:04 +00001713
1714 cat <<\_ASBOX
1715## ----------------- ##
1716## Output variables. ##
1717## ----------------- ##
1718_ASBOX
1719 echo
1720 for ac_var in $ac_subst_vars
1721 do
Martin v. Löwiseba40652007-08-30 20:10:57 +00001722 eval ac_val=\$$ac_var
1723 case $ac_val in
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001724 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00001725 esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001726 $as_echo "$ac_var='\''$ac_val'\''"
Skip Montanaro6dead952003-09-25 14:50:04 +00001727 done | sort
1728 echo
1729
1730 if test -n "$ac_subst_files"; then
1731 cat <<\_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +00001732## ------------------- ##
1733## File substitutions. ##
1734## ------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +00001735_ASBOX
1736 echo
1737 for ac_var in $ac_subst_files
1738 do
Martin v. Löwiseba40652007-08-30 20:10:57 +00001739 eval ac_val=\$$ac_var
1740 case $ac_val in
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001741 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00001742 esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001743 $as_echo "$ac_var='\''$ac_val'\''"
Skip Montanaro6dead952003-09-25 14:50:04 +00001744 done | sort
1745 echo
1746 fi
1747
Martin v. Löwis11437992002-04-12 09:54:03 +00001748 if test -s confdefs.h; then
1749 cat <<\_ASBOX
1750## ----------- ##
1751## confdefs.h. ##
1752## ----------- ##
1753_ASBOX
1754 echo
Martin v. Löwiseba40652007-08-30 20:10:57 +00001755 cat confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +00001756 echo
1757 fi
1758 test "$ac_signal" != 0 &&
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001759 $as_echo "$as_me: caught signal $ac_signal"
1760 $as_echo "$as_me: exit $exit_status"
Martin v. Löwis11437992002-04-12 09:54:03 +00001761 } >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00001762 rm -f core *.core core.conftest.* &&
1763 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Martin v. Löwis11437992002-04-12 09:54:03 +00001764 exit $exit_status
Martin v. Löwiseba40652007-08-30 20:10:57 +00001765' 0
Martin v. Löwis11437992002-04-12 09:54:03 +00001766for ac_signal in 1 2 13 15; do
1767 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1768done
1769ac_signal=0
1770
1771# confdefs.h avoids OS command line length limits that DEFS can exceed.
Martin v. Löwiseba40652007-08-30 20:10:57 +00001772rm -f -r conftest* confdefs.h
Martin v. Löwis11437992002-04-12 09:54:03 +00001773
1774# Predefined preprocessor variables.
1775
1776cat >>confdefs.h <<_ACEOF
1777#define PACKAGE_NAME "$PACKAGE_NAME"
1778_ACEOF
1779
1780
1781cat >>confdefs.h <<_ACEOF
1782#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1783_ACEOF
1784
1785
1786cat >>confdefs.h <<_ACEOF
1787#define PACKAGE_VERSION "$PACKAGE_VERSION"
1788_ACEOF
1789
1790
1791cat >>confdefs.h <<_ACEOF
1792#define PACKAGE_STRING "$PACKAGE_STRING"
1793_ACEOF
1794
1795
1796cat >>confdefs.h <<_ACEOF
1797#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1798_ACEOF
1799
1800
1801# Let the site file select an alternate cache file if it wants to.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001802# Prefer an explicitly selected file to automatically selected ones.
1803ac_site_file1=NONE
1804ac_site_file2=NONE
Martin v. Löwiseba40652007-08-30 20:10:57 +00001805if test -n "$CONFIG_SITE"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001806 ac_site_file1=$CONFIG_SITE
Martin v. Löwiseba40652007-08-30 20:10:57 +00001807elif test "x$prefix" != xNONE; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001808 ac_site_file1=$prefix/share/config.site
1809 ac_site_file2=$prefix/etc/config.site
Martin v. Löwiseba40652007-08-30 20:10:57 +00001810else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001811 ac_site_file1=$ac_default_prefix/share/config.site
1812 ac_site_file2=$ac_default_prefix/etc/config.site
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001813fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001814for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Martin v. Löwiseba40652007-08-30 20:10:57 +00001815do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001816 test "x$ac_site_file" = xNONE && continue
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001817 if test -r "$ac_site_file"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001818 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:03 +00001820 sed 's/^/| /' "$ac_site_file" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001821 . "$ac_site_file"
1822 fi
1823done
1824
1825if test -r "$cache_file"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00001826 # Some versions of bash will fail to source /dev/null (special
1827 # files actually), so we avoid doing that.
1828 if test -f "$cache_file"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001829 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830$as_echo "$as_me: loading cache $cache_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:03 +00001831 case $cache_file in
Martin v. Löwiseba40652007-08-30 20:10:57 +00001832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833 *) . "./$cache_file";;
Martin v. Löwis11437992002-04-12 09:54:03 +00001834 esac
1835 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001836else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001837 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838$as_echo "$as_me: creating cache $cache_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:03 +00001839 >$cache_file
1840fi
1841
1842# Check that the precious variables saved in the cache have kept the same
1843# value.
1844ac_cache_corrupted=false
Martin v. Löwiseba40652007-08-30 20:10:57 +00001845for ac_var in $ac_precious_vars; do
Martin v. Löwis11437992002-04-12 09:54:03 +00001846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847 eval ac_new_set=\$ac_env_${ac_var}_set
Martin v. Löwiseba40652007-08-30 20:10:57 +00001848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849 eval ac_new_val=\$ac_env_${ac_var}_value
Martin v. Löwis11437992002-04-12 09:54:03 +00001850 case $ac_old_set,$ac_new_set in
1851 set,)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001852 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00001854 ac_cache_corrupted=: ;;
1855 ,set)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001856 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00001858 ac_cache_corrupted=: ;;
1859 ,);;
1860 *)
1861 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001862 # differences in whitespace do not lead to failure.
1863 ac_old_val_w=`echo x $ac_old_val`
1864 ac_new_val_w=`echo x $ac_new_val`
1865 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1866 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1867$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1868 ac_cache_corrupted=:
1869 else
1870 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1871$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1872 eval $ac_var=\$ac_old_val
1873 fi
1874 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1875$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1876 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1877$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00001878 fi;;
1879 esac
1880 # Pass precious variables to config.status.
1881 if test "$ac_new_set" = set; then
1882 case $ac_new_val in
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001883 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00001884 *) ac_arg=$ac_var=$ac_new_val ;;
1885 esac
1886 case " $ac_configure_args " in
1887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1888 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889 esac
1890 fi
1891done
1892if $ac_cache_corrupted; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00001893 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1895 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00001899 { (exit 1); exit 1; }; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001900fi
1901
Martin v. Löwiseba40652007-08-30 20:10:57 +00001902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
Guido van Rossum7f43da71994-08-01 12:15:30 +00001926ac_ext=c
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001927ac_cpp='$CPP $CPPFLAGS'
Martin v. Löwis11437992002-04-12 09:54:03 +00001928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001931
Guido van Rossum627b2d71993-12-24 10:39:16 +00001932
Michael W. Hudson54241132001-12-07 15:38:26 +00001933
Martin v. Löwiseba40652007-08-30 20:10:57 +00001934ac_config_headers="$ac_config_headers pyconfig.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00001935
1936
Martin v. Löwis11437992002-04-12 09:54:03 +00001937
Georg Brandlbcd64a32009-03-31 21:45:18 +00001938if test "$prefix" != "/"; then
1939 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
1940fi
1941
1942
Martin v. Löwis11437992002-04-12 09:54:03 +00001943
1944
Guido van Rossum1fd74a71997-07-19 19:36:02 +00001945
Martin v. Löwisbddf5a52002-11-11 13:37:28 +00001946
Martin v. Löwis8316feb2003-06-14 07:48:07 +00001947# We don't use PACKAGE_ variables, and they cause conflicts
1948# with other autoconf-based packages that include Python.h
1949grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1950rm confdefs.h
1951mv confdefs.h.new confdefs.h
1952
Martin v. Löwisbddf5a52002-11-11 13:37:28 +00001953
Martin v. Löwis174440b2008-10-03 08:59:41 +00001954VERSION=2.7
Guido van Rossum1fd74a71997-07-19 19:36:02 +00001955
Martin v. Löwis1142de32002-03-29 16:28:31 +00001956
1957SOVERSION=1.0
1958
Martin v. Löwis6f18a3c2002-07-20 08:51:52 +00001959# The later defininition of _XOPEN_SOURCE disables certain features
1960# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1961
1962cat >>confdefs.h <<\_ACEOF
1963#define _GNU_SOURCE 1
1964_ACEOF
1965
1966
Martin v. Löwisbcd93962003-05-03 10:32:18 +00001967# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1968# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1969# them.
1970
1971cat >>confdefs.h <<\_ACEOF
1972#define _NETBSD_SOURCE 1
1973_ACEOF
1974
1975
Andrew MacIntyreabccf412003-07-02 13:53:25 +00001976# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1977# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1978# them.
1979
1980cat >>confdefs.h <<\_ACEOF
1981#define __BSD_VISIBLE 1
1982_ACEOF
1983
1984
Martin v. Löwisd6320502004-08-12 13:45:08 +00001985# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1986# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1987
1988cat >>confdefs.h <<\_ACEOF
1989#define _BSD_TYPES 1
1990_ACEOF
1991
1992
Ronald Oussoren5640ce22008-06-05 12:58:24 +00001993# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1994# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1995# them.
1996
1997cat >>confdefs.h <<\_ACEOF
1998#define _DARWIN_C_SOURCE 1
1999_ACEOF
2000
2001
2002
Martin v. Löwis35195ad2002-11-11 13:26:51 +00002003define_xopen_source=yes
Martin v. Löwis6f18a3c2002-07-20 08:51:52 +00002004
Neil Schemenauer4edbc2a2001-03-22 00:34:03 +00002005# Arguments passed to configure.
2006
2007CONFIG_ARGS="$ac_configure_args"
2008
Martin v. Löwiseba40652007-08-30 20:10:57 +00002009# Check whether --enable-universalsdk was given.
Ronald Oussoren988117f2006-04-29 11:31:35 +00002010if test "${enable_universalsdk+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002011 enableval=$enable_universalsdk;
Ronald Oussoren988117f2006-04-29 11:31:35 +00002012 case $enableval in
2013 yes)
2014 enableval=/Developer/SDKs/MacOSX10.4u.sdk
2015 ;;
2016 esac
2017 case $enableval in
2018 no)
2019 UNIVERSALSDK=
2020 enable_universalsdk=
2021 ;;
2022 *)
2023 UNIVERSALSDK=$enableval
2024 ;;
2025 esac
2026
2027else
2028
2029 UNIVERSALSDK=
2030 enable_universalsdk=
2031
Martin v. Löwiseba40652007-08-30 20:10:57 +00002032fi
Ronald Oussoren988117f2006-04-29 11:31:35 +00002033
2034
Martin v. Löwiseba40652007-08-30 20:10:57 +00002035
Benjamin Peterson0e6ea5d2008-07-16 20:17:04 +00002036ARCH_RUN_32BIT=
2037
2038
Ronald Oussoren5640ce22008-06-05 12:58:24 +00002039UNIVERSAL_ARCHS="32-bit"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002040{ $as_echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
2041$as_echo_n "checking for --with-universal-archs... " >&6; }
Ronald Oussoren5640ce22008-06-05 12:58:24 +00002042
2043# Check whether --with-universal-archs was given.
2044if test "${with_universal_archs+set}" = set; then
2045 withval=$with_universal_archs;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002046 { $as_echo "$as_me:$LINENO: result: $withval" >&5
2047$as_echo "$withval" >&6; }
Ronald Oussoren5640ce22008-06-05 12:58:24 +00002048 UNIVERSAL_ARCHS="$withval"
2049
2050else
2051
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002052 { $as_echo "$as_me:$LINENO: result: 32-bit" >&5
2053$as_echo "32-bit" >&6; }
Ronald Oussoren5640ce22008-06-05 12:58:24 +00002054
2055fi
2056
2057
2058
2059
Ronald Oussoren580c7fe2008-05-02 19:45:11 +00002060
2061# Check whether --with-framework-name was given.
2062if test "${with_framework_name+set}" = set; then
2063 withval=$with_framework_name;
2064 PYTHONFRAMEWORK=${withval}
2065 PYTHONFRAMEWORKDIR=${withval}.framework
2066 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
2067
2068else
2069
2070 PYTHONFRAMEWORK=Python
2071 PYTHONFRAMEWORKDIR=Python.framework
2072 PYTHONFRAMEWORKIDENTIFIER=org.python.python
2073
2074fi
2075
Martin v. Löwiseba40652007-08-30 20:10:57 +00002076# Check whether --enable-framework was given.
Jack Jansene578a632001-08-15 01:27:14 +00002077if test "${enable_framework+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002078 enableval=$enable_framework;
Jack Jansene578a632001-08-15 01:27:14 +00002079 case $enableval in
Martin v. Löwis11437992002-04-12 09:54:03 +00002080 yes)
Jack Jansene578a632001-08-15 01:27:14 +00002081 enableval=/Library/Frameworks
Jack Jansen127e56e2001-09-11 14:41:54 +00002082 esac
2083 case $enableval in
2084 no)
2085 PYTHONFRAMEWORK=
2086 PYTHONFRAMEWORKDIR=no-framework
2087 PYTHONFRAMEWORKPREFIX=
2088 PYTHONFRAMEWORKINSTALLDIR=
Ronald Oussoren567a8ff2006-05-26 11:43:26 +00002089 FRAMEWORKINSTALLFIRST=
2090 FRAMEWORKINSTALLLAST=
Ronald Oussoren5b787322006-06-06 19:50:24 +00002091 FRAMEWORKALTINSTALLFIRST=
2092 FRAMEWORKALTINSTALLLAST=
Ronald Oussoren2db3a8f2006-06-07 19:06:01 +00002093 if test "x${prefix}" = "xNONE"; then
2094 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2095 else
2096 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2097 fi
Jack Jansen127e56e2001-09-11 14:41:54 +00002098 enable_framework=
Jack Jansene578a632001-08-15 01:27:14 +00002099 ;;
2100 *)
2101 PYTHONFRAMEWORKPREFIX=$enableval
Jack Jansen127e56e2001-09-11 14:41:54 +00002102 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
Ronald Oussoren567a8ff2006-05-26 11:43:26 +00002103 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
Ronald Oussoren5640ce22008-06-05 12:58:24 +00002104 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
2105 if test "$UNIVERSAL_ARCHS" = "all"
2106 then
2107 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
Ronald Oussorenbb8cb0e2009-03-30 17:53:39 +00002108 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
Ronald Oussoren5640ce22008-06-05 12:58:24 +00002109 else
Ronald Oussorenbb8cb0e2009-03-30 17:53:39 +00002110 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
Ronald Oussoren5640ce22008-06-05 12:58:24 +00002111 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2112 fi
2113
Ronald Oussoren2db3a8f2006-06-07 19:06:01 +00002114 if test "x${prefix}" = "xNONE" ; then
2115 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2116 else
2117 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2118 fi
Jack Jansen127e56e2001-09-11 14:41:54 +00002119 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
Ronald Oussoren836b0392006-05-14 19:56:34 +00002120
Ronald Oussoren580c7fe2008-05-02 19:45:11 +00002121 # Add files for Mac specific code to the list of output
Ronald Oussoren836b0392006-05-14 19:56:34 +00002122 # files:
Martin v. Löwiseba40652007-08-30 20:10:57 +00002123 ac_config_files="$ac_config_files Mac/Makefile"
Ronald Oussoren836b0392006-05-14 19:56:34 +00002124
Martin v. Löwiseba40652007-08-30 20:10:57 +00002125 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
Ronald Oussoren836b0392006-05-14 19:56:34 +00002126
Martin v. Löwiseba40652007-08-30 20:10:57 +00002127 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
Ronald Oussoren836b0392006-05-14 19:56:34 +00002128
Ronald Oussoren580c7fe2008-05-02 19:45:11 +00002129 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2130
2131 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2132
Jack Jansene578a632001-08-15 01:27:14 +00002133 esac
Martin v. Löwis11437992002-04-12 09:54:03 +00002134
Guido van Rossum563e7081996-09-10 18:20:48 +00002135else
Martin v. Löwis11437992002-04-12 09:54:03 +00002136
Jack Jansene578a632001-08-15 01:27:14 +00002137 PYTHONFRAMEWORK=
Jack Jansen127e56e2001-09-11 14:41:54 +00002138 PYTHONFRAMEWORKDIR=no-framework
Jack Jansene578a632001-08-15 01:27:14 +00002139 PYTHONFRAMEWORKPREFIX=
2140 PYTHONFRAMEWORKINSTALLDIR=
Ronald Oussoren567a8ff2006-05-26 11:43:26 +00002141 FRAMEWORKINSTALLFIRST=
2142 FRAMEWORKINSTALLLAST=
Ronald Oussoren5b787322006-06-06 19:50:24 +00002143 FRAMEWORKALTINSTALLFIRST=
2144 FRAMEWORKALTINSTALLLAST=
Ronald Oussoren2db3a8f2006-06-07 19:06:01 +00002145 if test "x${prefix}" = "xNONE" ; then
2146 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2147 else
2148 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2149 fi
Jack Jansene578a632001-08-15 01:27:14 +00002150 enable_framework=
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002151
Ronald Oussoren5640ce22008-06-05 12:58:24 +00002152 if test "$UNIVERSAL_ARCHS" = "all"
2153 then
2154 FRAMEWORKINSTALLLAST=update4wayuniversal
2155 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2156 fi
2157
Martin v. Löwiseba40652007-08-30 20:10:57 +00002158fi
2159
Michael W. Hudson54241132001-12-07 15:38:26 +00002160
2161
2162
2163
Jack Jansene578a632001-08-15 01:27:14 +00002164
Ronald Oussoren567a8ff2006-05-26 11:43:26 +00002165
2166
Ronald Oussoren5b787322006-06-06 19:50:24 +00002167
2168
2169
Ronald Oussoren580c7fe2008-05-02 19:45:11 +00002170
Jack Jansene578a632001-08-15 01:27:14 +00002171##AC_ARG_WITH(dyld,
Martin v. Löwis3e2c6322002-10-29 10:07:43 +00002172## AC_HELP_STRING(--with-dyld,
2173## Use (OpenStep|Rhapsody) dynamic linker))
Jack Jansene578a632001-08-15 01:27:14 +00002174##
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002175# Set name for machine-dependent library files
2176
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002177{ $as_echo "$as_me:$LINENO: checking MACHDEP" >&5
2178$as_echo_n "checking MACHDEP... " >&6; }
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002179if test -z "$MACHDEP"
2180then
Guido van Rossum563e7081996-09-10 18:20:48 +00002181 ac_sys_system=`uname -s`
Martin v. Löwis21ee4092002-09-30 16:19:48 +00002182 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2183 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
Guido van Rossum563e7081996-09-10 18:20:48 +00002184 ac_sys_release=`uname -v`
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002185 else
Guido van Rossum563e7081996-09-10 18:20:48 +00002186 ac_sys_release=`uname -r`
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002187 fi
Guido van Rossum563e7081996-09-10 18:20:48 +00002188 ac_md_system=`echo $ac_sys_system |
2189 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2190 ac_md_release=`echo $ac_sys_release |
Guido van Rossum67b26592001-10-20 14:21:45 +00002191 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
Guido van Rossumb97ef171997-09-28 05:44:03 +00002192 MACHDEP="$ac_md_system$ac_md_release"
Guido van Rossum563e7081996-09-10 18:20:48 +00002193
Guido van Rossum07397971997-04-29 21:49:50 +00002194 case $MACHDEP in
Andrew M. Kuchling5a3e4cb2001-07-20 19:29:04 +00002195 cygwin*) MACHDEP="cygwin";;
Jack Jansen8a97f4a2001-12-05 23:27:32 +00002196 darwin*) MACHDEP="darwin";;
Martin v. Löwisf90ae202002-06-11 06:22:31 +00002197 atheos*) MACHDEP="atheos";;
Martin v. Löwisf3322282003-07-13 09:46:13 +00002198 irix646) MACHDEP="irix6";;
Guido van Rossumb97ef171997-09-28 05:44:03 +00002199 '') MACHDEP="unknown";;
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002200 esac
2201fi
Guido van Rossum91922671997-10-09 20:24:13 +00002202
Martin v. Löwis35195ad2002-11-11 13:26:51 +00002203# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2204# disable features if it is defined, without any means to access these
2205# features as extensions. For these systems, we skip the definition of
2206# _XOPEN_SOURCE. Before adding a system to the list to gain access to
2207# some feature, make sure there is no alternative way to access this
2208# feature. Also, when using wildcards, make sure you have verified the
2209# need for not defining _XOPEN_SOURCE on all systems matching the
2210# wildcard, and that the wildcard does not include future systems
2211# (which may remove their limitations).
2212case $ac_sys_system/$ac_sys_release in
2213 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2214 # even though select is a POSIX function. Reported by J. Ribbens.
Martin v. Löwis76bafc62003-10-03 13:47:44 +00002215 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
Gregory P. Smithcc023f12008-09-07 05:15:58 +00002216 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
Martin v. Löwiscb78de62007-12-29 18:49:21 +00002217 define_xopen_source=no
2218 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2219 # also defined. This can be overridden by defining _BSD_SOURCE
2220 # As this has a different meaning on Linux, only define it on OpenBSD
2221
2222cat >>confdefs.h <<\_ACEOF
2223#define _BSD_SOURCE 1
2224_ACEOF
2225
2226 ;;
Martin v. Löwis4d542ec2006-11-25 15:39:19 +00002227 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2228 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2229 # Marc Recht
Benjamin Petersoneac68f42008-11-16 17:54:55 +00002230 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 +00002231 define_xopen_source=no;;
Martin v. Löwisa9d71422003-03-28 18:43:31 +00002232 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2233 # of union __?sigval. Reported by Stuart Bishop.
2234 SunOS/5.6)
2235 define_xopen_source=no;;
Martin v. Löwisc2409b42003-05-11 05:53:41 +00002236 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2237 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
Jack Jansen6b08a402004-06-03 12:41:45 +00002238 # Reconfirmed for 7.1.4 by Martin v. Loewis.
Martin v. Löwis253d1f42004-05-07 19:14:14 +00002239 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
Martin v. Löwisc2409b42003-05-11 05:53:41 +00002240 define_xopen_source=no;;
2241 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
Martin v. Löwis53e73c32003-05-05 05:13:18 +00002242 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
Martin v. Löwisc2409b42003-05-11 05:53:41 +00002243 SCO_SV/3.2)
Martin v. Löwis53e73c32003-05-05 05:13:18 +00002244 define_xopen_source=no;;
Martin v. Löwisbb86d832008-11-04 20:40:09 +00002245 # On FreeBSD 4, the math functions C89 does not cover are never defined
2246 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2247 FreeBSD/4.*)
2248 define_xopen_source=no;;
2249 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2250 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2251 # identifies itself as Darwin/7.*
2252 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2253 # disables platform specific features beyond repair.
2254 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2255 # has no effect, don't bother defining them
2256 Darwin/[6789].*)
Anthony Baxter6169c6b2003-10-04 07:46:23 +00002257 define_xopen_source=no;;
Trent Mickc5625ba2004-08-25 23:59:39 +00002258 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2259 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2260 # or has another value. By not (re)defining it, the defaults come in place.
Martin v. Löwisc19c5a62003-11-18 20:00:44 +00002261 AIX/4)
2262 define_xopen_source=no;;
Trent Mickc5625ba2004-08-25 23:59:39 +00002263 AIX/5)
2264 if test `uname -r` -eq 1; then
2265 define_xopen_source=no
2266 fi
2267 ;;
Martin v. Löwis8c255e42008-05-23 15:06:50 +00002268 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2269 # defining NI_NUMERICHOST.
2270 QNX/6.3.2)
2271 define_xopen_source=no
2272 ;;
Martin v. Löwisa0588362006-04-04 06:03:50 +00002273
Martin v. Löwis35195ad2002-11-11 13:26:51 +00002274esac
2275
2276if test $define_xopen_source = yes
2277then
Skip Montanarof0d5f792004-08-15 14:08:23 +00002278 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2279 # defined precisely as g++ defines it
Martin v. Löwis7dece662005-11-26 11:38:24 +00002280 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2281 # compiler
Skip Montanarof0d5f792004-08-15 14:08:23 +00002282 case $ac_sys_system/$ac_sys_release in
Martin v. Löwis7dece662005-11-26 11:38:24 +00002283 SunOS/5.8|SunOS/5.9|SunOS/5.10)
Skip Montanarof0d5f792004-08-15 14:08:23 +00002284
2285cat >>confdefs.h <<\_ACEOF
2286#define _XOPEN_SOURCE 500
2287_ACEOF
2288
2289 ;;
2290 *)
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00002291
2292cat >>confdefs.h <<\_ACEOF
2293#define _XOPEN_SOURCE 600
Martin v. Löwis35195ad2002-11-11 13:26:51 +00002294_ACEOF
2295
Skip Montanarof0d5f792004-08-15 14:08:23 +00002296 ;;
2297 esac
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00002298
2299 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2300 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2301 # several APIs are not declared. Since this is also needed in some
2302 # cases for HP-UX, we define it globally.
Martin v. Löwis7dece662005-11-26 11:38:24 +00002303 # except for Solaris 10, where it must not be defined,
2304 # as it implies XPG4.2
2305 case $ac_sys_system/$ac_sys_release in
2306 SunOS/5.10)
2307 ;;
2308 *)
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00002309
2310cat >>confdefs.h <<\_ACEOF
2311#define _XOPEN_SOURCE_EXTENDED 1
2312_ACEOF
2313
Martin v. Löwis7dece662005-11-26 11:38:24 +00002314 ;;
2315 esac
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00002316
Bob Ippolito7026a0a2005-03-28 23:23:47 +00002317
Martin v. Löwis678fc1e2002-11-12 06:04:39 +00002318cat >>confdefs.h <<\_ACEOF
2319#define _POSIX_C_SOURCE 200112L
2320_ACEOF
2321
2322
Martin v. Löwis35195ad2002-11-11 13:26:51 +00002323fi
2324
Guido van Rossum91922671997-10-09 20:24:13 +00002325#
2326# SGI compilers allow the specification of the both the ABI and the
2327# ISA on the command line. Depending on the values of these switches,
2328# different and often incompatable code will be generated.
2329#
2330# The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2331# thus supply support for various ABI/ISA combinations. The MACHDEP
2332# variable is also adjusted.
2333#
2334
2335if test ! -z "$SGI_ABI"
2336then
2337 CC="cc $SGI_ABI"
2338 LDFLAGS="$SGI_ABI $LDFLAGS"
2339 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
2340fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002341{ $as_echo "$as_me:$LINENO: result: $MACHDEP" >&5
2342$as_echo "$MACHDEP" >&6; }
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002343
Jack Jansen83f898c2002-12-30 22:23:40 +00002344# And add extra plat-mac for darwin
2345
Jack Jansen7b59b422003-03-17 15:44:10 +00002346
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002347{ $as_echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2348$as_echo_n "checking EXTRAPLATDIR... " >&6; }
Jack Jansen83f898c2002-12-30 22:23:40 +00002349if test -z "$EXTRAPLATDIR"
2350then
2351 case $MACHDEP in
Jack Jansen7b59b422003-03-17 15:44:10 +00002352 darwin)
2353 EXTRAPLATDIR="\$(PLATMACDIRS)"
2354 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2355 ;;
2356 *)
2357 EXTRAPLATDIR=""
2358 EXTRAMACHDEPPATH=""
2359 ;;
Jack Jansen83f898c2002-12-30 22:23:40 +00002360 esac
2361fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002362{ $as_echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2363$as_echo "$EXTRAPLATDIR" >&6; }
Jack Jansen83f898c2002-12-30 22:23:40 +00002364
Jack Jansen6b08a402004-06-03 12:41:45 +00002365# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2366# it may influence the way we can build extensions, so distutils
2367# needs to check it
2368
Ronald Oussoren988117f2006-04-29 11:31:35 +00002369
Jack Jansen6b08a402004-06-03 12:41:45 +00002370CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
Ronald Oussoren988117f2006-04-29 11:31:35 +00002371EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
Jack Jansen6b08a402004-06-03 12:41:45 +00002372
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002373{ $as_echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2374$as_echo_n "checking machine type as reported by uname -m... " >&6; }
Mark Dickinson65134662008-04-25 16:11:04 +00002375ac_sys_machine=`uname -m`
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002376{ $as_echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2377$as_echo "$ac_sys_machine" >&6; }
Mark Dickinson65134662008-04-25 16:11:04 +00002378
Guido van Rossum627b2d71993-12-24 10:39:16 +00002379# checks for alternative programs
Skip Montanarodecc6a42003-01-01 20:07:49 +00002380
2381# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2382# for debug/optimization stuff. BASECFLAGS is for flags that are required
2383# just to get things to compile and link. Users are free to override OPT
2384# when running configure or make. The build should not break if they do.
2385# BASECFLAGS should generally not be messed with, however.
2386
2387# XXX shouldn't some/most/all of this code be merged with the stuff later
2388# on that fiddles with OPT and BASECFLAGS?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002389{ $as_echo "$as_me:$LINENO: checking for --without-gcc" >&5
2390$as_echo_n "checking for --without-gcc... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002391
Martin v. Löwiseba40652007-08-30 20:10:57 +00002392# Check whether --with-gcc was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002393if test "${with_gcc+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002394 withval=$with_gcc;
Guido van Rossum7f43da71994-08-01 12:15:30 +00002395 case $withval in
Mark Dickinson04b27232009-01-04 12:29:36 +00002396 no) CC=${CC:-cc}
Guido van Rossumda88dad1995-01-26 00:46:29 +00002397 without_gcc=yes;;
2398 yes) CC=gcc
2399 without_gcc=no;;
2400 *) CC=$withval
2401 without_gcc=$withval;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00002402 esac
Guido van Rossumda88dad1995-01-26 00:46:29 +00002403else
Martin v. Löwis11437992002-04-12 09:54:03 +00002404
Guido van Rossum7b3853f1996-07-30 18:09:35 +00002405 case $ac_sys_system in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00002406 AIX*) CC=cc_r
2407 without_gcc=;;
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002408 BeOS*)
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002409 case $BE_HOST_CPU in
2410 ppc)
Fred Drake5790be12000-10-09 17:06:13 +00002411 CC=mwcc
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002412 without_gcc=yes
Skip Montanarodecc6a42003-01-01 20:07:49 +00002413 BASECFLAGS="$BASECFLAGS -export pragma"
2414 OPT="$OPT -O"
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002415 LDFLAGS="$LDFLAGS -nodup"
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002416 ;;
2417 x86)
Fred Drake5790be12000-10-09 17:06:13 +00002418 CC=gcc
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002419 without_gcc=no
Skip Montanarodecc6a42003-01-01 20:07:49 +00002420 OPT="$OPT -O"
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002421 ;;
2422 *)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002423 { { $as_echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2424$as_echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +00002425 { (exit 1); exit 1; }; }
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002426 ;;
2427 esac
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00002428 AR="\$(srcdir)/Modules/ar_beos"
2429 RANLIB=:
Guido van Rossum7a5f4201999-01-12 20:30:23 +00002430 ;;
Trent Mick635f6fb2000-08-23 21:33:05 +00002431 Monterey*)
2432 RANLIB=:
Martin v. Löwis130fb172001-07-19 11:00:41 +00002433 without_gcc=;;
2434 *) without_gcc=no;;
Guido van Rossume77438c1995-09-13 18:59:59 +00002435 esac
Martin v. Löwiseba40652007-08-30 20:10:57 +00002436fi
2437
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002438{ $as_echo "$as_me:$LINENO: result: $without_gcc" >&5
2439$as_echo "$without_gcc" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +00002440
Guido van Rossum8b131c51995-03-09 14:10:13 +00002441# If the user switches compilers, we can't believe the cache
2442if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2443then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002444 { { $as_echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
Martin v. Löwis11437992002-04-12 09:54:03 +00002445(it is also a good idea to do 'make clean' before compiling)" >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002446$as_echo "$as_me: error: cached CC is different -- throw away $cache_file
Martin v. Löwis11437992002-04-12 09:54:03 +00002447(it is also a good idea to do 'make clean' before compiling)" >&2;}
2448 { (exit 1); exit 1; }; }
Guido van Rossum8b131c51995-03-09 14:10:13 +00002449fi
2450
Martin v. Löwis11437992002-04-12 09:54:03 +00002451ac_ext=c
2452ac_cpp='$CPP $CPPFLAGS'
2453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456if test -n "$ac_tool_prefix"; then
2457 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2458set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002459{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2460$as_echo_n "checking for $ac_word... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002461if test "${ac_cv_prog_CC+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002462 $as_echo_n "(cached) " >&6
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002463else
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2466else
Martin v. Löwis11437992002-04-12 09:54:03 +00002467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468for as_dir in $PATH
2469do
2470 IFS=$as_save_IFS
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002473 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 +00002474 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002476 break 2
2477 fi
2478done
2479done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002480IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00002481
Jack Jansendd19cf82001-12-06 22:36:17 +00002482fi
2483fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002484CC=$ac_cv_prog_CC
Jack Jansendd19cf82001-12-06 22:36:17 +00002485if test -n "$CC"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002486 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2487$as_echo "$CC" >&6; }
Jack Jansendd19cf82001-12-06 22:36:17 +00002488else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002489 { $as_echo "$as_me:$LINENO: result: no" >&5
2490$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002491fi
2492
Martin v. Löwiseba40652007-08-30 20:10:57 +00002493
Martin v. Löwis11437992002-04-12 09:54:03 +00002494fi
2495if test -z "$ac_cv_prog_CC"; then
2496 ac_ct_CC=$CC
2497 # Extract the first word of "gcc", so it can be a program name with args.
2498set dummy gcc; ac_word=$2
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002499{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2500$as_echo_n "checking for $ac_word... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002501if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002502 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00002503else
2504 if test -n "$ac_ct_CC"; then
2505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2506else
2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002513 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 +00002514 ac_cv_prog_ac_ct_CC="gcc"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002516 break 2
2517 fi
2518done
2519done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002520IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00002521
2522fi
2523fi
2524ac_ct_CC=$ac_cv_prog_ac_ct_CC
2525if test -n "$ac_ct_CC"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002526 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2527$as_echo "$ac_ct_CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002528else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002529 { $as_echo "$as_me:$LINENO: result: no" >&5
2530$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002531fi
2532
Martin v. Löwiseba40652007-08-30 20:10:57 +00002533 if test "x$ac_ct_CC" = x; then
2534 CC=""
2535 else
2536 case $cross_compiling:$ac_tool_warned in
2537yes:)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002538{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00002540ac_tool_warned=yes ;;
2541esac
2542 CC=$ac_ct_CC
2543 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002544else
2545 CC="$ac_cv_prog_CC"
Jack Jansendd19cf82001-12-06 22:36:17 +00002546fi
2547
Jack Jansendd19cf82001-12-06 22:36:17 +00002548if test -z "$CC"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002549 if test -n "$ac_tool_prefix"; then
2550 # 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 +00002551set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002552{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2553$as_echo_n "checking for $ac_word... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002554if test "${ac_cv_prog_CC+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002555 $as_echo_n "(cached) " >&6
Jack Jansendd19cf82001-12-06 22:36:17 +00002556else
2557 if test -n "$CC"; then
2558 ac_cv_prog_CC="$CC" # Let the user override the test.
2559else
Martin v. Löwis11437992002-04-12 09:54:03 +00002560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561for as_dir in $PATH
2562do
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002566 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 +00002567 ac_cv_prog_CC="${ac_tool_prefix}cc"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002569 break 2
2570 fi
2571done
2572done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002573IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00002574
2575fi
2576fi
2577CC=$ac_cv_prog_CC
2578if test -n "$CC"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002579 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2580$as_echo "$CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002581else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002582 { $as_echo "$as_me:$LINENO: result: no" >&5
2583$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002584fi
2585
Martin v. Löwiseba40652007-08-30 20:10:57 +00002586
Martin v. Löwis11437992002-04-12 09:54:03 +00002587 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002588fi
2589if test -z "$CC"; then
2590 # Extract the first word of "cc", so it can be a program name with args.
2591set dummy cc; ac_word=$2
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002592{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2593$as_echo_n "checking for $ac_word... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002594if test "${ac_cv_prog_CC+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002595 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00002596else
2597 if test -n "$CC"; then
2598 ac_cv_prog_CC="$CC" # Let the user override the test.
2599else
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002600 ac_prog_rejected=no
Martin v. Löwis11437992002-04-12 09:54:03 +00002601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602for as_dir in $PATH
2603do
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002607 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 +00002608 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2609 ac_prog_rejected=yes
2610 continue
2611 fi
2612 ac_cv_prog_CC="cc"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002614 break 2
2615 fi
2616done
2617done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002618IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00002619
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002620if test $ac_prog_rejected = yes; then
2621 # We found a bogon in the path, so make sure we never use it.
2622 set dummy $ac_cv_prog_CC
2623 shift
Martin v. Löwis11437992002-04-12 09:54:03 +00002624 if test $# != 0; then
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002625 # We chose a different compiler from the bogus one.
2626 # However, it has the same basename, so the bogon will be chosen
2627 # first if we set CC to just the basename; use the full file name.
2628 shift
Skip Montanaro6dead952003-09-25 14:50:04 +00002629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002630 fi
2631fi
2632fi
2633fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002634CC=$ac_cv_prog_CC
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002635if test -n "$CC"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002636 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2637$as_echo "$CC" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002638else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002639 { $as_echo "$as_me:$LINENO: result: no" >&5
2640$as_echo "no" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002641fi
2642
Martin v. Löwiseba40652007-08-30 20:10:57 +00002643
Martin v. Löwis11437992002-04-12 09:54:03 +00002644fi
2645if test -z "$CC"; then
2646 if test -n "$ac_tool_prefix"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002647 for ac_prog in cl.exe
Martin v. Löwis11437992002-04-12 09:54:03 +00002648 do
2649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2650set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002651{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2652$as_echo_n "checking for $ac_word... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002653if test "${ac_cv_prog_CC+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002654 $as_echo_n "(cached) " >&6
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002655else
2656 if test -n "$CC"; then
2657 ac_cv_prog_CC="$CC" # Let the user override the test.
2658else
Martin v. Löwis11437992002-04-12 09:54:03 +00002659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002665 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 +00002666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002667 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002668 break 2
Guido van Rossumf78abae1997-01-21 22:02:36 +00002669 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002670done
2671done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002672IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +00002673
2674fi
2675fi
2676CC=$ac_cv_prog_CC
2677if test -n "$CC"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002678 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2679$as_echo "$CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002680else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002681 { $as_echo "$as_me:$LINENO: result: no" >&5
2682$as_echo "no" >&6; }
Jack Jansendd19cf82001-12-06 22:36:17 +00002683fi
2684
Martin v. Löwiseba40652007-08-30 20:10:57 +00002685
Martin v. Löwis11437992002-04-12 09:54:03 +00002686 test -n "$CC" && break
2687 done
2688fi
2689if test -z "$CC"; then
2690 ac_ct_CC=$CC
Martin v. Löwiseba40652007-08-30 20:10:57 +00002691 for ac_prog in cl.exe
Martin v. Löwis11437992002-04-12 09:54:03 +00002692do
2693 # Extract the first word of "$ac_prog", so it can be a program name with args.
2694set dummy $ac_prog; ac_word=$2
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002695{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2696$as_echo_n "checking for $ac_word... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002697if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002698 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00002699else
2700 if test -n "$ac_ct_CC"; then
2701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2702else
2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704for as_dir in $PATH
2705do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00002709 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 +00002710 ac_cv_prog_ac_ct_CC="$ac_prog"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002712 break 2
2713 fi
2714done
2715done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002716IFS=$as_save_IFS
Jack Jansendd19cf82001-12-06 22:36:17 +00002717
Martin v. Löwis11437992002-04-12 09:54:03 +00002718fi
2719fi
2720ac_ct_CC=$ac_cv_prog_ac_ct_CC
2721if test -n "$ac_ct_CC"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002722 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2723$as_echo "$ac_ct_CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002724else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002725 { $as_echo "$as_me:$LINENO: result: no" >&5
2726$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002727fi
Michael W. Hudson54241132001-12-07 15:38:26 +00002728
Martin v. Löwiseba40652007-08-30 20:10:57 +00002729
Martin v. Löwis11437992002-04-12 09:54:03 +00002730 test -n "$ac_ct_CC" && break
2731done
Michael W. Hudson54241132001-12-07 15:38:26 +00002732
Martin v. Löwiseba40652007-08-30 20:10:57 +00002733 if test "x$ac_ct_CC" = x; then
2734 CC=""
2735 else
2736 case $cross_compiling:$ac_tool_warned in
2737yes:)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002738{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00002740ac_tool_warned=yes ;;
2741esac
2742 CC=$ac_ct_CC
2743 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002744fi
2745
2746fi
2747
2748
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002749test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2751{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
Skip Montanaro6dead952003-09-25 14:50:04 +00002752See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002753$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
Skip Montanaro6dead952003-09-25 14:50:04 +00002754See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002755 { (exit 1); exit 1; }; }; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002756
2757# Provide some information about the compiler.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002758$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2759set X $ac_compile
2760ac_compiler=$2
Martin v. Löwiseba40652007-08-30 20:10:57 +00002761{ (ac_try="$ac_compiler --version >&5"
2762case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2767$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00002768 (eval "$ac_compiler --version >&5") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002769 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002771 (exit $ac_status); }
Martin v. Löwiseba40652007-08-30 20:10:57 +00002772{ (ac_try="$ac_compiler -v >&5"
2773case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2778$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00002779 (eval "$ac_compiler -v >&5") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002780 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002782 (exit $ac_status); }
Martin v. Löwiseba40652007-08-30 20:10:57 +00002783{ (ac_try="$ac_compiler -V >&5"
2784case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2787esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2789$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00002790 (eval "$ac_compiler -V >&5") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002791 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002793 (exit $ac_status); }
2794
2795cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00002796/* confdefs.h. */
2797_ACEOF
2798cat confdefs.h >>conftest.$ac_ext
2799cat >>conftest.$ac_ext <<_ACEOF
2800/* end confdefs.h. */
Jack Jansendd19cf82001-12-06 22:36:17 +00002801
Martin v. Löwis11437992002-04-12 09:54:03 +00002802int
2803main ()
2804{
2805
2806 ;
2807 return 0;
2808}
2809_ACEOF
2810ac_clean_files_save=$ac_clean_files
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002811ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Martin v. Löwis11437992002-04-12 09:54:03 +00002812# Try to create an executable without -o first, disregard a.out.
2813# It will help us diagnose broken compilers, and finding out an intuition
2814# of exeext.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002815{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2816$as_echo_n "checking for C compiler default output file name... " >&6; }
2817ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2818
2819# The possible output files:
2820ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2821
Martin v. Löwiseba40652007-08-30 20:10:57 +00002822ac_rmfiles=
2823for ac_file in $ac_files
2824do
2825 case $ac_file in
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00002827 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2828 esac
2829done
2830rm -f $ac_rmfiles
2831
2832if { (ac_try="$ac_link_default"
2833case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2838$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00002839 (eval "$ac_link_default") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002840 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002842 (exit $ac_status); }; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00002843 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2844# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2845# in a Makefile. We should not override ac_cv_exeext if it was cached,
2846# so that the user can short-circuit this test for compilers unknown to
2847# Autoconf.
2848for ac_file in $ac_files ''
Skip Montanaro6dead952003-09-25 14:50:04 +00002849do
2850 test -f "$ac_file" || continue
Martin v. Löwis11437992002-04-12 09:54:03 +00002851 case $ac_file in
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Skip Montanarof0d5f792004-08-15 14:08:23 +00002853 ;;
Skip Montanaro6dead952003-09-25 14:50:04 +00002854 [ab].out )
Skip Montanarof0d5f792004-08-15 14:08:23 +00002855 # We found the default executable, but exeext='' is most
2856 # certainly right.
2857 break;;
Skip Montanaro6dead952003-09-25 14:50:04 +00002858 *.* )
Martin v. Löwiseba40652007-08-30 20:10:57 +00002859 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2860 then :; else
2861 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2862 fi
2863 # We set ac_cv_exeext here because the later test for it is not
2864 # safe: cross compilers may not add the suffix if given an `-o'
2865 # argument, so we may need to know it at that point already.
2866 # Even if this section looks crufty: it has the advantage of
2867 # actually working.
Skip Montanarof0d5f792004-08-15 14:08:23 +00002868 break;;
Skip Montanaro6dead952003-09-25 14:50:04 +00002869 * )
Skip Montanarof0d5f792004-08-15 14:08:23 +00002870 break;;
Martin v. Löwis11437992002-04-12 09:54:03 +00002871 esac
2872done
Martin v. Löwiseba40652007-08-30 20:10:57 +00002873test "$ac_cv_exeext" = no && ac_cv_exeext=
2874
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002875else
Martin v. Löwiseba40652007-08-30 20:10:57 +00002876 ac_file=''
2877fi
2878
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002879{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2880$as_echo "$ac_file" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00002881if test -z "$ac_file"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002882 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00002883sed 's/^/| /' conftest.$ac_ext >&5
2884
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002885{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2887{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
Skip Montanaro6dead952003-09-25 14:50:04 +00002888See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002889$as_echo "$as_me: error: C compiler cannot create executables
Skip Montanaro6dead952003-09-25 14:50:04 +00002890See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002891 { (exit 77); exit 77; }; }; }
Michael W. Hudson54241132001-12-07 15:38:26 +00002892fi
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002893
Martin v. Löwis11437992002-04-12 09:54:03 +00002894ac_exeext=$ac_cv_exeext
Michael W. Hudson54241132001-12-07 15:38:26 +00002895
Martin v. Löwiseba40652007-08-30 20:10:57 +00002896# Check that the compiler produces executables we can run. If not, either
Martin v. Löwis11437992002-04-12 09:54:03 +00002897# the compiler is broken, or we cross compile.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002898{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2899$as_echo_n "checking whether the C compiler works... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002900# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2901# If not cross compiling, check that we can run a simple program.
2902if test "$cross_compiling" != yes; then
2903 if { ac_try='./$ac_file'
Martin v. Löwiseba40652007-08-30 20:10:57 +00002904 { (case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2909$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00002910 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002911 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002913 (exit $ac_status); }; }; then
2914 cross_compiling=no
2915 else
2916 if test "$cross_compiling" = maybe; then
2917 cross_compiling=yes
2918 else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002919 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2921{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
Skip Montanaro6dead952003-09-25 14:50:04 +00002922If you meant to cross compile, use \`--host'.
2923See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002924$as_echo "$as_me: error: cannot run C compiled programs.
Skip Montanaro6dead952003-09-25 14:50:04 +00002925If you meant to cross compile, use \`--host'.
2926See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002927 { (exit 1); exit 1; }; }; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002928 fi
2929 fi
2930fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002931{ $as_echo "$as_me:$LINENO: result: yes" >&5
2932$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002933
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002934rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Martin v. Löwis11437992002-04-12 09:54:03 +00002935ac_clean_files=$ac_clean_files_save
Martin v. Löwiseba40652007-08-30 20:10:57 +00002936# Check that the compiler produces executables we can run. If not, either
Martin v. Löwis11437992002-04-12 09:54:03 +00002937# the compiler is broken, or we cross compile.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002938{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2939$as_echo_n "checking whether we are cross compiling... " >&6; }
2940{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2941$as_echo "$cross_compiling" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002942
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002943{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2944$as_echo_n "checking for suffix of executables... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00002945if { (ac_try="$ac_link"
2946case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2951$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00002952 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002953 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002955 (exit $ac_status); }; then
2956 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2957# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2958# work properly (i.e., refer to `conftest.exe'), while it won't with
2959# `rm'.
Skip Montanaro6dead952003-09-25 14:50:04 +00002960for ac_file in conftest.exe conftest conftest.*; do
2961 test -f "$ac_file" || continue
Martin v. Löwis11437992002-04-12 09:54:03 +00002962 case $ac_file in
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00002964 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Skip Montanarof0d5f792004-08-15 14:08:23 +00002965 break;;
Martin v. Löwis11437992002-04-12 09:54:03 +00002966 * ) break;;
2967 esac
2968done
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002969else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002970 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
Skip Montanaro6dead952003-09-25 14:50:04 +00002973See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002974$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
Skip Montanaro6dead952003-09-25 14:50:04 +00002975See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002976 { (exit 1); exit 1; }; }; }
Michael W. Hudson54241132001-12-07 15:38:26 +00002977fi
Jack Jansendd19cf82001-12-06 22:36:17 +00002978
Martin v. Löwis11437992002-04-12 09:54:03 +00002979rm -f conftest$ac_cv_exeext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002980{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2981$as_echo "$ac_cv_exeext" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002982
2983rm -f conftest.$ac_ext
2984EXEEXT=$ac_cv_exeext
2985ac_exeext=$EXEEXT
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002986{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2987$as_echo_n "checking for suffix of object files... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00002988if test "${ac_cv_objext+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00002989 $as_echo_n "(cached) " >&6
Michael W. Hudson54241132001-12-07 15:38:26 +00002990else
Martin v. Löwis11437992002-04-12 09:54:03 +00002991 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00002992/* confdefs.h. */
2993_ACEOF
2994cat confdefs.h >>conftest.$ac_ext
2995cat >>conftest.$ac_ext <<_ACEOF
2996/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00002997
Martin v. Löwis11437992002-04-12 09:54:03 +00002998int
2999main ()
3000{
3001
3002 ;
3003 return 0;
3004}
3005_ACEOF
3006rm -f conftest.o conftest.obj
Martin v. Löwiseba40652007-08-30 20:10:57 +00003007if { (ac_try="$ac_compile"
3008case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3013$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003014 (eval "$ac_compile") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00003015 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00003017 (exit $ac_status); }; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003018 for ac_file in conftest.o conftest.obj conftest.*; do
3019 test -f "$ac_file" || continue;
Martin v. Löwis11437992002-04-12 09:54:03 +00003020 case $ac_file in
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00003022 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3023 break;;
3024 esac
3025done
3026else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003027 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003028sed 's/^/| /' conftest.$ac_ext >&5
3029
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003030{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
Skip Montanaro6dead952003-09-25 14:50:04 +00003033See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003034$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
Skip Montanaro6dead952003-09-25 14:50:04 +00003035See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003036 { (exit 1); exit 1; }; }; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003037fi
3038
3039rm -f conftest.$ac_cv_objext conftest.$ac_ext
3040fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003041{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3042$as_echo "$ac_cv_objext" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003043OBJEXT=$ac_cv_objext
3044ac_objext=$OBJEXT
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003045{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3046$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003047if test "${ac_cv_c_compiler_gnu+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003048 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00003049else
3050 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003051/* confdefs.h. */
3052_ACEOF
3053cat confdefs.h >>conftest.$ac_ext
3054cat >>conftest.$ac_ext <<_ACEOF
3055/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00003056
Martin v. Löwis11437992002-04-12 09:54:03 +00003057int
3058main ()
3059{
3060#ifndef __GNUC__
3061 choke me
3062#endif
3063
3064 ;
3065 return 0;
3066}
3067_ACEOF
3068rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00003069if { (ac_try="$ac_compile"
3070case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3075$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003076 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00003077 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00003078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003082 (exit $ac_status); } && {
3083 test -z "$ac_c_werror_flag" ||
3084 test ! -s conftest.err
3085 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003086 ac_compiler_gnu=yes
3087else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003088 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003089sed 's/^/| /' conftest.$ac_ext >&5
3090
Martin v. Löwiseba40652007-08-30 20:10:57 +00003091 ac_compiler_gnu=no
Martin v. Löwis11437992002-04-12 09:54:03 +00003092fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003093
3094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00003095ac_cv_c_compiler_gnu=$ac_compiler_gnu
3096
3097fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003098{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3099$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3100if test $ac_compiler_gnu = yes; then
3101 GCC=yes
3102else
3103 GCC=
3104fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003105ac_test_CFLAGS=${CFLAGS+set}
3106ac_save_CFLAGS=$CFLAGS
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003107{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3108$as_echo_n "checking whether $CC accepts -g... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003109if test "${ac_cv_prog_cc_g+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003110 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00003111else
Martin v. Löwiseba40652007-08-30 20:10:57 +00003112 ac_save_c_werror_flag=$ac_c_werror_flag
3113 ac_c_werror_flag=yes
3114 ac_cv_prog_cc_g=no
3115 CFLAGS="-g"
3116 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00003122
Martin v. Löwis11437992002-04-12 09:54:03 +00003123int
3124main ()
3125{
3126
3127 ;
3128 return 0;
3129}
3130_ACEOF
3131rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00003132if { (ac_try="$ac_compile"
3133case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3138$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003139 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00003140 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00003141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00003149 ac_cv_prog_cc_g=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003150else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003151 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003152sed 's/^/| /' conftest.$ac_ext >&5
3153
Martin v. Löwiseba40652007-08-30 20:10:57 +00003154 CFLAGS=""
3155 cat >conftest.$ac_ext <<_ACEOF
3156/* confdefs.h. */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
3160/* end confdefs.h. */
3161
3162int
3163main ()
3164{
3165
3166 ;
3167 return 0;
3168}
3169_ACEOF
3170rm -f conftest.$ac_objext
3171if { (ac_try="$ac_compile"
3172case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3177$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003178 (eval "$ac_compile") 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003184 (exit $ac_status); } && {
3185 test -z "$ac_c_werror_flag" ||
3186 test ! -s conftest.err
3187 } && test -s conftest.$ac_objext; then
3188 :
3189else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003190 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193 ac_c_werror_flag=$ac_save_c_werror_flag
3194 CFLAGS="-g"
3195 cat >conftest.$ac_ext <<_ACEOF
3196/* confdefs.h. */
3197_ACEOF
3198cat confdefs.h >>conftest.$ac_ext
3199cat >>conftest.$ac_ext <<_ACEOF
3200/* end confdefs.h. */
3201
3202int
3203main ()
3204{
3205
3206 ;
3207 return 0;
3208}
3209_ACEOF
3210rm -f conftest.$ac_objext
3211if { (ac_try="$ac_compile"
3212case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3217$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003218 (eval "$ac_compile") 2>conftest.er1
3219 ac_status=$?
3220 grep -v '^ *+' conftest.er1 >conftest.err
3221 rm -f conftest.er1
3222 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003224 (exit $ac_status); } && {
3225 test -z "$ac_c_werror_flag" ||
3226 test ! -s conftest.err
3227 } && test -s conftest.$ac_objext; then
3228 ac_cv_prog_cc_g=yes
3229else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003230 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003231sed 's/^/| /' conftest.$ac_ext >&5
3232
3233
Guido van Rossum627b2d71993-12-24 10:39:16 +00003234fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003235
3236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003237fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003238
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240fi
3241
3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_c_werror_flag=$ac_save_c_werror_flag
3244fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003245{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3246$as_echo "$ac_cv_prog_cc_g" >&6; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003247if test "$ac_test_CFLAGS" = set; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003248 CFLAGS=$ac_save_CFLAGS
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003249elif test $ac_cv_prog_cc_g = yes; then
3250 if test "$GCC" = yes; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00003251 CFLAGS="-g -O2"
3252 else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003253 CFLAGS="-g"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003254 fi
3255else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003256 if test "$GCC" = yes; then
3257 CFLAGS="-O2"
3258 else
3259 CFLAGS=
3260 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003261fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003262{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3263$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00003264if test "${ac_cv_prog_cc_c89+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003265 $as_echo_n "(cached) " >&6
Skip Montanaro6dead952003-09-25 14:50:04 +00003266else
Martin v. Löwiseba40652007-08-30 20:10:57 +00003267 ac_cv_prog_cc_c89=no
Skip Montanaro6dead952003-09-25 14:50:04 +00003268ac_save_CC=$CC
3269cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003270/* confdefs.h. */
3271_ACEOF
3272cat confdefs.h >>conftest.$ac_ext
3273cat >>conftest.$ac_ext <<_ACEOF
3274/* end confdefs.h. */
3275#include <stdarg.h>
3276#include <stdio.h>
3277#include <sys/types.h>
3278#include <sys/stat.h>
3279/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3280struct buf { int x; };
3281FILE * (*rcsopen) (struct buf *, struct stat *, int);
3282static char *e (p, i)
3283 char **p;
3284 int i;
3285{
3286 return p[i];
3287}
3288static char *f (char * (*g) (char **, int), char **p, ...)
3289{
3290 char *s;
3291 va_list v;
3292 va_start (v,p);
3293 s = g (p, va_arg (v,int));
3294 va_end (v);
3295 return s;
3296}
Skip Montanarof0d5f792004-08-15 14:08:23 +00003297
3298/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3299 function prototypes and stuff, but not '\xHH' hex character constants.
3300 These don't provoke an error unfortunately, instead are silently treated
Martin v. Löwiseba40652007-08-30 20:10:57 +00003301 as 'x'. The following induces an error, until -std is added to get
Skip Montanarof0d5f792004-08-15 14:08:23 +00003302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3303 array size at least. It's necessary to write '\x00'==0 to get something
Martin v. Löwiseba40652007-08-30 20:10:57 +00003304 that's true only with -std. */
Skip Montanarof0d5f792004-08-15 14:08:23 +00003305int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3306
Martin v. Löwiseba40652007-08-30 20:10:57 +00003307/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3308 inside strings and character constants. */
3309#define FOO(x) 'x'
3310int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3311
Skip Montanaro6dead952003-09-25 14:50:04 +00003312int test (int i, double x);
3313struct s1 {int (*f) (int a);};
3314struct s2 {int (*f) (double a);};
3315int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3316int argc;
3317char **argv;
3318int
3319main ()
3320{
3321return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3322 ;
3323 return 0;
3324}
3325_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00003326for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Skip Montanaro6dead952003-09-25 14:50:04 +00003328do
3329 CC="$ac_save_CC $ac_arg"
3330 rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00003331if { (ac_try="$ac_compile"
3332case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3337$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003338 (eval "$ac_compile") 2>conftest.er1
Skip Montanaro6dead952003-09-25 14:50:04 +00003339 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00003340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003344 (exit $ac_status); } && {
3345 test -z "$ac_c_werror_flag" ||
3346 test ! -s conftest.err
3347 } && test -s conftest.$ac_objext; then
3348 ac_cv_prog_cc_c89=$ac_arg
Skip Montanaro6dead952003-09-25 14:50:04 +00003349else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003350 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003351sed 's/^/| /' conftest.$ac_ext >&5
3352
Martin v. Löwiseba40652007-08-30 20:10:57 +00003353
Skip Montanaro6dead952003-09-25 14:50:04 +00003354fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003355
3356rm -f core conftest.err conftest.$ac_objext
3357 test "x$ac_cv_prog_cc_c89" != "xno" && break
Skip Montanaro6dead952003-09-25 14:50:04 +00003358done
Martin v. Löwiseba40652007-08-30 20:10:57 +00003359rm -f conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +00003360CC=$ac_save_CC
3361
3362fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003363# AC_CACHE_VAL
3364case "x$ac_cv_prog_cc_c89" in
3365 x)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003366 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3367$as_echo "none needed" >&6; } ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00003368 xno)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003369 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3370$as_echo "unsupported" >&6; } ;;
Skip Montanaro6dead952003-09-25 14:50:04 +00003371 *)
Martin v. Löwiseba40652007-08-30 20:10:57 +00003372 CC="$CC $ac_cv_prog_cc_c89"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003373 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3374$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Skip Montanaro6dead952003-09-25 14:50:04 +00003375esac
3376
Skip Montanaro6dead952003-09-25 14:50:04 +00003377
Martin v. Löwis11437992002-04-12 09:54:03 +00003378ac_ext=c
3379ac_cpp='$CPP $CPPFLAGS'
3380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003383
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003384
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003385
3386
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003387{ $as_echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3388$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003389
Martin v. Löwiseba40652007-08-30 20:10:57 +00003390# Check whether --with-cxx_main was given.
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003391if test "${with_cxx_main+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003392 withval=$with_cxx_main;
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003393
3394 case $withval in
3395 no) with_cxx_main=no
3396 MAINCC='$(CC)';;
3397 yes) with_cxx_main=yes
3398 MAINCC='$(CXX)';;
3399 *) with_cxx_main=yes
3400 MAINCC=$withval
3401 if test -z "$CXX"
3402 then
3403 CXX=$withval
3404 fi;;
3405 esac
3406else
3407
3408 with_cxx_main=no
3409 MAINCC='$(CC)'
3410
Martin v. Löwiseba40652007-08-30 20:10:57 +00003411fi
3412
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003413{ $as_echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3414$as_echo "$with_cxx_main" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003415
3416preset_cxx="$CXX"
3417if test -z "$CXX"
3418then
3419 case "$CC" in
3420 gcc) # Extract the first word of "g++", so it can be a program name with args.
3421set dummy g++; ac_word=$2
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003422{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3423$as_echo_n "checking for $ac_word... " >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003424if test "${ac_cv_path_CXX+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003425 $as_echo_n "(cached) " >&6
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003426else
3427 case $CXX in
3428 [\\/]* | ?:[\\/]*)
3429 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3430 ;;
3431 *)
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433for as_dir in notfound
3434do
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00003438 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 +00003439 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003441 break 2
3442 fi
3443done
3444done
Martin v. Löwiseba40652007-08-30 20:10:57 +00003445IFS=$as_save_IFS
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003446
3447 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
3448 ;;
3449esac
3450fi
3451CXX=$ac_cv_path_CXX
Skip Montanaro89e975f2007-08-22 19:05:21 +00003452if test -n "$CXX"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003453 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3454$as_echo "$CXX" >&6; }
Skip Montanaro89e975f2007-08-22 19:05:21 +00003455else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003456 { $as_echo "$as_me:$LINENO: result: no" >&5
3457$as_echo "no" >&6; }
Skip Montanaro89e975f2007-08-22 19:05:21 +00003458fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003459
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003460 ;;
3461 cc) # Extract the first word of "c++", so it can be a program name with args.
3462set dummy c++; ac_word=$2
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003463{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3464$as_echo_n "checking for $ac_word... " >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003465if test "${ac_cv_path_CXX+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003466 $as_echo_n "(cached) " >&6
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003467else
3468 case $CXX in
3469 [\\/]* | ?:[\\/]*)
3470 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3471 ;;
3472 *)
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474for as_dir in notfound
3475do
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00003479 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 +00003480 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003482 break 2
3483 fi
3484done
3485done
Martin v. Löwiseba40652007-08-30 20:10:57 +00003486IFS=$as_save_IFS
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003487
3488 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
3489 ;;
3490esac
3491fi
3492CXX=$ac_cv_path_CXX
Skip Montanaro89e975f2007-08-22 19:05:21 +00003493if test -n "$CXX"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003494 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3495$as_echo "$CXX" >&6; }
Skip Montanaro89e975f2007-08-22 19:05:21 +00003496else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003497 { $as_echo "$as_me:$LINENO: result: no" >&5
3498$as_echo "no" >&6; }
Skip Montanaro89e975f2007-08-22 19:05:21 +00003499fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003500
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003501 ;;
3502 esac
3503 if test "$CXX" = "notfound"
3504 then
3505 CXX=""
3506 fi
3507fi
3508if test -z "$CXX"
3509then
3510 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3511do
3512 # Extract the first word of "$ac_prog", so it can be a program name with args.
3513set dummy $ac_prog; ac_word=$2
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003514{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3515$as_echo_n "checking for $ac_word... " >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003516if test "${ac_cv_prog_CXX+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003517 $as_echo_n "(cached) " >&6
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003518else
3519 if test -n "$CXX"; then
3520 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3521else
3522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523for as_dir in $PATH
3524do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +00003528 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 +00003529 ac_cv_prog_CXX="$ac_prog"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003531 break 2
3532 fi
3533done
3534done
Martin v. Löwiseba40652007-08-30 20:10:57 +00003535IFS=$as_save_IFS
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003536
3537fi
3538fi
3539CXX=$ac_cv_prog_CXX
3540if test -n "$CXX"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003541 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3542$as_echo "$CXX" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003543else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003544 { $as_echo "$as_me:$LINENO: result: no" >&5
3545$as_echo "no" >&6; }
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003546fi
3547
Martin v. Löwiseba40652007-08-30 20:10:57 +00003548
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003549 test -n "$CXX" && break
3550done
3551test -n "$CXX" || CXX="notfound"
3552
3553 if test "$CXX" = "notfound"
3554 then
3555 CXX=""
3556 fi
3557fi
3558if test "$preset_cxx" != "$CXX"
3559then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003560 { $as_echo "$as_me:$LINENO: WARNING:
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003561
3562 By default, distutils will build C++ extension modules with \"$CXX\".
3563 If this is not intended, then set CXX on the configure command line.
3564 " >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003565$as_echo "$as_me: WARNING:
Martin v. Löwis0f48d982006-04-14 14:34:26 +00003566
3567 By default, distutils will build C++ extension modules with \"$CXX\".
3568 If this is not intended, then set CXX on the configure command line.
3569 " >&2;}
3570fi
3571
3572
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003573# checks for UNIX variants that set C preprocessor variables
Martin v. Löwis11437992002-04-12 09:54:03 +00003574
3575ac_ext=c
3576ac_cpp='$CPP $CPPFLAGS'
3577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003580{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3581$as_echo_n "checking how to run the C preprocessor... " >&6; }
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003582# On Suns, sometimes $CPP names a directory.
3583if test -n "$CPP" && test -d "$CPP"; then
3584 CPP=
3585fi
3586if test -z "$CPP"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003587 if test "${ac_cv_prog_CPP+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003588 $as_echo_n "(cached) " >&6
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003589else
Martin v. Löwis11437992002-04-12 09:54:03 +00003590 # Double quotes because CPP needs to be expanded
3591 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3592 do
3593 ac_preproc_ok=false
3594for ac_c_preproc_warn_flag in '' yes
3595do
3596 # Use a header file that comes with gcc, so configuring glibc
3597 # with a fresh cross-compiler works.
Skip Montanaro6dead952003-09-25 14:50:04 +00003598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3599 # <limits.h> exists even on freestanding compilers.
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003600 # On the NeXT, cc -E runs the code through the compiler's parser,
Martin v. Löwis11437992002-04-12 09:54:03 +00003601 # not just through cpp. "Syntax error" is here to catch this case.
3602 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003603/* confdefs.h. */
3604_ACEOF
3605cat confdefs.h >>conftest.$ac_ext
3606cat >>conftest.$ac_ext <<_ACEOF
3607/* end confdefs.h. */
3608#ifdef __STDC__
3609# include <limits.h>
3610#else
3611# include <assert.h>
3612#endif
Skip Montanarof0d5f792004-08-15 14:08:23 +00003613 Syntax error
Martin v. Löwis11437992002-04-12 09:54:03 +00003614_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00003615if { (ac_try="$ac_cpp conftest.$ac_ext"
3616case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00003623 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00003624 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +00003625 rm -f conftest.er1
3626 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003628 (exit $ac_status); } >/dev/null && {
3629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3630 test ! -s conftest.err
3631 }; then
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00003632 :
3633else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003634 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003635sed 's/^/| /' conftest.$ac_ext >&5
3636
Martin v. Löwis11437992002-04-12 09:54:03 +00003637 # Broken: fails on valid input.
3638continue
Jack Jansendd19cf82001-12-06 22:36:17 +00003639fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003640
Martin v. Löwis11437992002-04-12 09:54:03 +00003641rm -f conftest.err conftest.$ac_ext
Jack Jansendd19cf82001-12-06 22:36:17 +00003642
Martin v. Löwiseba40652007-08-30 20:10:57 +00003643 # OK, works on sane cases. Now check whether nonexistent headers
Martin v. Löwis11437992002-04-12 09:54:03 +00003644 # can be detected and how.
3645 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003646/* confdefs.h. */
3647_ACEOF
3648cat confdefs.h >>conftest.$ac_ext
3649cat >>conftest.$ac_ext <<_ACEOF
3650/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00003651#include <ac_nonexistent.h>
3652_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00003653if { (ac_try="$ac_cpp conftest.$ac_ext"
3654case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00003661 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00003662 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +00003663 rm -f conftest.er1
3664 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003666 (exit $ac_status); } >/dev/null && {
3667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003670 # Broken: success on invalid input.
3671continue
3672else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003673 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003674sed 's/^/| /' conftest.$ac_ext >&5
3675
Martin v. Löwis11437992002-04-12 09:54:03 +00003676 # Passes both tests.
3677ac_preproc_ok=:
3678break
3679fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003680
Martin v. Löwis11437992002-04-12 09:54:03 +00003681rm -f conftest.err conftest.$ac_ext
3682
3683done
3684# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3685rm -f conftest.err conftest.$ac_ext
3686if $ac_preproc_ok; then
3687 break
3688fi
3689
3690 done
3691 ac_cv_prog_CPP=$CPP
3692
3693fi
3694 CPP=$ac_cv_prog_CPP
3695else
3696 ac_cv_prog_CPP=$CPP
3697fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003698{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3699$as_echo "$CPP" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003700ac_preproc_ok=false
3701for ac_c_preproc_warn_flag in '' yes
3702do
3703 # Use a header file that comes with gcc, so configuring glibc
3704 # with a fresh cross-compiler works.
Skip Montanaro6dead952003-09-25 14:50:04 +00003705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3706 # <limits.h> exists even on freestanding compilers.
Martin v. Löwis11437992002-04-12 09:54:03 +00003707 # On the NeXT, cc -E runs the code through the compiler's parser,
3708 # not just through cpp. "Syntax error" is here to catch this case.
3709 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003710/* confdefs.h. */
3711_ACEOF
3712cat confdefs.h >>conftest.$ac_ext
3713cat >>conftest.$ac_ext <<_ACEOF
3714/* end confdefs.h. */
3715#ifdef __STDC__
3716# include <limits.h>
3717#else
3718# include <assert.h>
3719#endif
Skip Montanarof0d5f792004-08-15 14:08:23 +00003720 Syntax error
Martin v. Löwis11437992002-04-12 09:54:03 +00003721_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00003722if { (ac_try="$ac_cpp conftest.$ac_ext"
3723case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3728$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00003730 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00003731 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +00003732 rm -f conftest.er1
3733 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003735 (exit $ac_status); } >/dev/null && {
3736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3737 test ! -s conftest.err
3738 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003739 :
3740else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003741 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003742sed 's/^/| /' conftest.$ac_ext >&5
3743
Martin v. Löwis11437992002-04-12 09:54:03 +00003744 # Broken: fails on valid input.
3745continue
3746fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003747
Martin v. Löwis11437992002-04-12 09:54:03 +00003748rm -f conftest.err conftest.$ac_ext
3749
Martin v. Löwiseba40652007-08-30 20:10:57 +00003750 # OK, works on sane cases. Now check whether nonexistent headers
Martin v. Löwis11437992002-04-12 09:54:03 +00003751 # can be detected and how.
3752 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00003753/* confdefs.h. */
3754_ACEOF
3755cat confdefs.h >>conftest.$ac_ext
3756cat >>conftest.$ac_ext <<_ACEOF
3757/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00003758#include <ac_nonexistent.h>
3759_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00003760if { (ac_try="$ac_cpp conftest.$ac_ext"
3761case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3764esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3766$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00003768 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00003769 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +00003770 rm -f conftest.er1
3771 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00003773 (exit $ac_status); } >/dev/null && {
3774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3775 test ! -s conftest.err
3776 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003777 # Broken: success on invalid input.
3778continue
3779else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003780 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00003781sed 's/^/| /' conftest.$ac_ext >&5
3782
Martin v. Löwis11437992002-04-12 09:54:03 +00003783 # Passes both tests.
3784ac_preproc_ok=:
3785break
3786fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003787
Martin v. Löwis11437992002-04-12 09:54:03 +00003788rm -f conftest.err conftest.$ac_ext
3789
3790done
3791# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3792rm -f conftest.err conftest.$ac_ext
3793if $ac_preproc_ok; then
3794 :
3795else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003796 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
Skip Montanaro6dead952003-09-25 14:50:04 +00003799See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003800$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
Skip Montanaro6dead952003-09-25 14:50:04 +00003801See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003802 { (exit 1); exit 1; }; }; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003803fi
3804
3805ac_ext=c
3806ac_cpp='$CPP $CPPFLAGS'
3807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809ac_compiler_gnu=$ac_cv_c_compiler_gnu
3810
3811
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003812{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3813$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00003814if test "${ac_cv_path_GREP+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003815 $as_echo_n "(cached) " >&6
Skip Montanaro6dead952003-09-25 14:50:04 +00003816else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003817 if test -z "$GREP"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003818 ac_path_GREP_found=false
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003819 # Loop through the user's path and test for each of PROGNAME-LIST
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwiseba40652007-08-30 20:10:57 +00003821for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3822do
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for ac_prog in grep ggrep; do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3828 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3829# Check for GNU ac_path_GREP and select it if it is found.
Martin v. Löwiseba40652007-08-30 20:10:57 +00003830 # Check for GNU $ac_path_GREP
3831case `"$ac_path_GREP" --version 2>&1` in
3832*GNU*)
3833 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3834*)
3835 ac_count=0
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003836 $as_echo_n 0123456789 >"conftest.in"
Martin v. Löwiseba40652007-08-30 20:10:57 +00003837 while :
3838 do
3839 cat "conftest.in" "conftest.in" >"conftest.tmp"
3840 mv "conftest.tmp" "conftest.in"
3841 cp "conftest.in" "conftest.nl"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003842 $as_echo 'GREP' >> "conftest.nl"
Martin v. Löwiseba40652007-08-30 20:10:57 +00003843 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3845 ac_count=`expr $ac_count + 1`
3846 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3847 # Best one so far, save it but keep looking for a better one
3848 ac_cv_path_GREP="$ac_path_GREP"
3849 ac_path_GREP_max=$ac_count
Skip Montanaro6dead952003-09-25 14:50:04 +00003850 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003851 # 10*(2^10) chars as input seems more than enough
3852 test $ac_count -gt 10 && break
3853 done
3854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3855esac
3856
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003857 $ac_path_GREP_found && break 3
3858 done
Martin v. Löwiseba40652007-08-30 20:10:57 +00003859 done
3860done
Martin v. Löwiseba40652007-08-30 20:10:57 +00003861IFS=$as_save_IFS
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003862 if test -z "$ac_cv_path_GREP"; then
3863 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3864$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00003865 { (exit 1); exit 1; }; }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003866 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003867else
3868 ac_cv_path_GREP=$GREP
3869fi
3870
Martin v. Löwiseba40652007-08-30 20:10:57 +00003871fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003872{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3873$as_echo "$ac_cv_path_GREP" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00003874 GREP="$ac_cv_path_GREP"
3875
3876
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003877{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3878$as_echo_n "checking for egrep... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00003879if test "${ac_cv_path_EGREP+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003880 $as_echo_n "(cached) " >&6
Martin v. Löwiseba40652007-08-30 20:10:57 +00003881else
3882 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3883 then ac_cv_path_EGREP="$GREP -E"
3884 else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003885 if test -z "$EGREP"; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00003886 ac_path_EGREP_found=false
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003887 # Loop through the user's path and test for each of PROGNAME-LIST
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwiseba40652007-08-30 20:10:57 +00003889for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3890do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_prog in egrep; do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3896 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3897# Check for GNU ac_path_EGREP and select it if it is found.
Martin v. Löwiseba40652007-08-30 20:10:57 +00003898 # Check for GNU $ac_path_EGREP
3899case `"$ac_path_EGREP" --version 2>&1` in
3900*GNU*)
3901 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3902*)
3903 ac_count=0
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003904 $as_echo_n 0123456789 >"conftest.in"
Martin v. Löwiseba40652007-08-30 20:10:57 +00003905 while :
3906 do
3907 cat "conftest.in" "conftest.in" >"conftest.tmp"
3908 mv "conftest.tmp" "conftest.in"
3909 cp "conftest.in" "conftest.nl"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003910 $as_echo 'EGREP' >> "conftest.nl"
Martin v. Löwiseba40652007-08-30 20:10:57 +00003911 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3913 ac_count=`expr $ac_count + 1`
3914 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3915 # Best one so far, save it but keep looking for a better one
3916 ac_cv_path_EGREP="$ac_path_EGREP"
3917 ac_path_EGREP_max=$ac_count
3918 fi
3919 # 10*(2^10) chars as input seems more than enough
3920 test $ac_count -gt 10 && break
3921 done
3922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923esac
3924
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003925 $ac_path_EGREP_found && break 3
3926 done
Martin v. Löwiseba40652007-08-30 20:10:57 +00003927 done
3928done
Martin v. Löwiseba40652007-08-30 20:10:57 +00003929IFS=$as_save_IFS
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003930 if test -z "$ac_cv_path_EGREP"; then
3931 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3932$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00003933 { (exit 1); exit 1; }; }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003934 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00003935else
3936 ac_cv_path_EGREP=$EGREP
3937fi
3938
Martin v. Löwiseba40652007-08-30 20:10:57 +00003939 fi
3940fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003941{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3942$as_echo "$ac_cv_path_EGREP" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00003943 EGREP="$ac_cv_path_EGREP"
Skip Montanaro6dead952003-09-25 14:50:04 +00003944
3945
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003946{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3947$as_echo_n "checking for ANSI C header files... " >&6; }
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00003948if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003949 $as_echo_n "(cached) " >&6
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00003950else
3951 cat >conftest.$ac_ext <<_ACEOF
3952/* confdefs.h. */
3953_ACEOF
3954cat confdefs.h >>conftest.$ac_ext
3955cat >>conftest.$ac_ext <<_ACEOF
3956/* end confdefs.h. */
3957#include <stdlib.h>
3958#include <stdarg.h>
3959#include <string.h>
3960#include <float.h>
3961
3962int
3963main ()
3964{
3965
3966 ;
3967 return 0;
3968}
3969_ACEOF
3970rm -f conftest.$ac_objext
3971if { (ac_try="$ac_compile"
3972case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3977$as_echo "$ac_try_echo") >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00003978 (eval "$ac_compile") 2>conftest.er1
3979 ac_status=$?
3980 grep -v '^ *+' conftest.er1 >conftest.err
3981 rm -f conftest.er1
3982 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00003984 (exit $ac_status); } && {
3985 test -z "$ac_c_werror_flag" ||
3986 test ! -s conftest.err
3987 } && test -s conftest.$ac_objext; then
3988 ac_cv_header_stdc=yes
3989else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00003990 $as_echo "$as_me: failed program was:" >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00003991sed 's/^/| /' conftest.$ac_ext >&5
3992
3993 ac_cv_header_stdc=no
3994fi
3995
3996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997
3998if test $ac_cv_header_stdc = yes; then
3999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4000 cat >conftest.$ac_ext <<_ACEOF
4001/* confdefs.h. */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h. */
4006#include <string.h>
4007
4008_ACEOF
4009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4010 $EGREP "memchr" >/dev/null 2>&1; then
4011 :
4012else
4013 ac_cv_header_stdc=no
4014fi
4015rm -f conftest*
4016
4017fi
4018
4019if test $ac_cv_header_stdc = yes; then
4020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4021 cat >conftest.$ac_ext <<_ACEOF
4022/* confdefs.h. */
4023_ACEOF
4024cat confdefs.h >>conftest.$ac_ext
4025cat >>conftest.$ac_ext <<_ACEOF
4026/* end confdefs.h. */
4027#include <stdlib.h>
4028
4029_ACEOF
4030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4031 $EGREP "free" >/dev/null 2>&1; then
4032 :
4033else
4034 ac_cv_header_stdc=no
4035fi
4036rm -f conftest*
4037
4038fi
4039
4040if test $ac_cv_header_stdc = yes; then
4041 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4042 if test "$cross_compiling" = yes; then
4043 :
4044else
4045 cat >conftest.$ac_ext <<_ACEOF
4046/* confdefs.h. */
4047_ACEOF
4048cat confdefs.h >>conftest.$ac_ext
4049cat >>conftest.$ac_ext <<_ACEOF
4050/* end confdefs.h. */
4051#include <ctype.h>
4052#include <stdlib.h>
4053#if ((' ' & 0x0FF) == 0x020)
4054# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4055# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4056#else
4057# define ISLOWER(c) \
4058 (('a' <= (c) && (c) <= 'i') \
4059 || ('j' <= (c) && (c) <= 'r') \
4060 || ('s' <= (c) && (c) <= 'z'))
4061# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4062#endif
4063
4064#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4065int
4066main ()
4067{
4068 int i;
4069 for (i = 0; i < 256; i++)
4070 if (XOR (islower (i), ISLOWER (i))
4071 || toupper (i) != TOUPPER (i))
4072 return 2;
4073 return 0;
4074}
4075_ACEOF
4076rm -f conftest$ac_exeext
4077if { (ac_try="$ac_link"
4078case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00004082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4083$as_echo "$ac_try_echo") >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00004084 (eval "$ac_link") 2>&5
4085 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00004086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00004087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4088 { (case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00004092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4093$as_echo "$ac_try_echo") >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00004094 (eval "$ac_try") 2>&5
4095 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00004096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00004097 (exit $ac_status); }; }; then
4098 :
4099else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00004100 $as_echo "$as_me: program exited with status $ac_status" >&5
4101$as_echo "$as_me: failed program was:" >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00004102sed 's/^/| /' conftest.$ac_ext >&5
4103
4104( exit $ac_status )
4105ac_cv_header_stdc=no
4106fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00004107rm -rf conftest.dSYM
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00004108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4109fi
4110
4111
4112fi
4113fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00004114{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4115$as_echo "$ac_cv_header_stdc" >&6; }
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00004116if test $ac_cv_header_stdc = yes; then
4117
4118cat >>confdefs.h <<\_ACEOF
4119#define STDC_HEADERS 1
4120_ACEOF
4121
4122fi
4123
Ronald Oussoren450d5612009-06-08 21:12:41 +00004124# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4135 inttypes.h stdint.h unistd.h
4136do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00004137as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4138{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4139$as_echo_n "checking for $ac_header... " >&6; }
Ronald Oussoren450d5612009-06-08 21:12:41 +00004140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00004141 $as_echo_n "(cached) " >&6
Ronald Oussoren450d5612009-06-08 21:12:41 +00004142else
4143 cat >conftest.$ac_ext <<_ACEOF
4144/* confdefs.h. */
4145_ACEOF
4146cat confdefs.h >>conftest.$ac_ext
4147cat >>conftest.$ac_ext <<_ACEOF
4148/* end confdefs.h. */
4149$ac_includes_default
4150
4151#include <$ac_header>
4152_ACEOF
4153rm -f conftest.$ac_objext
4154if { (ac_try="$ac_compile"
4155case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00004159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4160$as_echo "$ac_try_echo") >&5
Ronald Oussoren450d5612009-06-08 21:12:41 +00004161 (eval "$ac_compile") 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00004166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Ronald Oussoren450d5612009-06-08 21:12:41 +00004167 (exit $ac_status); } && {
4168 test -z "$ac_c_werror_flag" ||
4169 test ! -s conftest.err
4170 } && test -s conftest.$ac_objext; then
4171 eval "$as_ac_Header=yes"
4172else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00004173 $as_echo "$as_me: failed program was:" >&5
Ronald Oussoren450d5612009-06-08 21:12:41 +00004174sed 's/^/| /' conftest.$ac_ext >&5
4175
4176 eval "$as_ac_Header=no"
4177fi
4178
4179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00004181ac_res=`eval 'as_val=${'$as_ac_Header'}
4182 $as_echo "$as_val"'`
4183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4184$as_echo "$ac_res" >&6; }
4185as_val=`eval 'as_val=${'$as_ac_Header'}
4186 $as_echo "$as_val"'`
4187 if test "x$as_val" = x""yes; then
Ronald Oussoren450d5612009-06-08 21:12:41 +00004188 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00004189#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Ronald Oussoren450d5612009-06-08 21:12:41 +00004190_ACEOF
4191
4192fi
4193
4194done
4195
4196
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00004197
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00004198 if test "${ac_cv_header_minix_config_h+set}" = set; then
4199 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4200$as_echo_n "checking for minix/config.h... " >&6; }
4201if test "${ac_cv_header_minix_config_h+set}" = set; then
4202 $as_echo_n "(cached) " >&6
4203fi
4204{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4205$as_echo "$ac_cv_header_minix_config_h" >&6; }
4206else
4207 # Is the header compilable?
4208{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4209$as_echo_n "checking minix/config.h usability... " >&6; }
4210cat >conftest.$ac_ext <<_ACEOF
4211/* confdefs.h. */
4212_ACEOF
4213cat confdefs.h >>conftest.$ac_ext
4214cat >>conftest.$ac_ext <<_ACEOF
4215/* end confdefs.h. */
4216$ac_includes_default
4217#include <minix/config.h>
4218_ACEOF
4219rm -f conftest.$ac_objext
4220if { (ac_try="$ac_compile"
4221case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224esac
4225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4226$as_echo "$ac_try_echo") >&5
4227 (eval "$ac_compile") 2>conftest.er1
4228 ac_status=$?
4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
4231 cat conftest.err >&5
4232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } && {
4234 test -z "$ac_c_werror_flag" ||
4235 test ! -s conftest.err
4236 } && test -s conftest.$ac_objext; then
4237 ac_header_compiler=yes
4238else
4239 $as_echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 ac_header_compiler=no
4243fi
4244
4245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4247$as_echo "$ac_header_compiler" >&6; }
4248
4249# Is the header present?
4250{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4251$as_echo_n "checking minix/config.h presence... " >&6; }
4252cat >conftest.$ac_ext <<_ACEOF
4253/* confdefs.h. */
4254_ACEOF
4255cat confdefs.h >>conftest.$ac_ext
4256cat >>conftest.$ac_ext <<_ACEOF
4257/* end confdefs.h. */
4258#include <minix/config.h>
4259_ACEOF
4260if { (ac_try="$ac_cpp conftest.$ac_ext"
4261case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264esac
4265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4266$as_echo "$ac_try_echo") >&5
4267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4268 ac_status=$?
4269 grep -v '^ *+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
4272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } >/dev/null && {
4274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4275 test ! -s conftest.err
4276 }; then
4277 ac_header_preproc=yes
4278else
4279 $as_echo "$as_me: failed program was:" >&5
4280sed 's/^/| /' conftest.$ac_ext >&5
4281
4282 ac_header_preproc=no
4283fi
4284
4285rm -f conftest.err conftest.$ac_ext
4286{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4287$as_echo "$ac_header_preproc" >&6; }
4288
4289# So? What about this header?
4290case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4291 yes:no: )
4292 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4293$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4294 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4295$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4296 ac_header_preproc=yes
4297 ;;
4298 no:yes:* )
4299 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4300$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4301 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4302$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4303 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4304$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4305 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4306$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4307 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4308$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4309 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4310$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4311 ( cat <<\_ASBOX
4312## -------------------------------------- ##
4313## Report this to http://bugs.python.org/ ##
4314## -------------------------------------- ##
4315_ASBOX
4316 ) | sed "s/^/$as_me: WARNING: /" >&2
4317 ;;
4318esac
4319{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4320$as_echo_n "checking for minix/config.h... " >&6; }
4321if test "${ac_cv_header_minix_config_h+set}" = set; then
4322 $as_echo_n "(cached) " >&6
4323else
4324 ac_cv_header_minix_config_h=$ac_header_preproc
4325fi
4326{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4327$as_echo "$ac_cv_header_minix_config_h" >&6; }
4328
4329fi
4330if test "x$ac_cv_header_minix_config_h" = x""yes; then
4331 MINIX=yes
4332else
4333 MINIX=
4334fi
4335
4336
4337 if test "$MINIX" = yes; then
4338
4339cat >>confdefs.h <<\_ACEOF
4340#define _POSIX_SOURCE 1
4341_ACEOF
4342
4343
4344cat >>confdefs.h <<\_ACEOF
4345#define _POSIX_1_SOURCE 2
4346_ACEOF
4347
4348
4349cat >>confdefs.h <<\_ACEOF
4350#define _MINIX 1
4351_ACEOF
4352
4353 fi
4354
4355
4356
4357 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4358$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4359if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4360 $as_echo_n "(cached) " >&6
4361else
4362 cat >conftest.$ac_ext <<_ACEOF
4363/* confdefs.h. */
4364_ACEOF
4365cat confdefs.h >>conftest.$ac_ext
4366cat >>conftest.$ac_ext <<_ACEOF
4367/* end confdefs.h. */
4368
4369# define __EXTENSIONS__ 1
4370 $ac_includes_default
4371int
4372main ()
4373{
4374
4375 ;
4376 return 0;
4377}
4378_ACEOF
4379rm -f conftest.$ac_objext
4380if { (ac_try="$ac_compile"
4381case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384esac
4385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4386$as_echo "$ac_try_echo") >&5
4387 (eval "$ac_compile") 2>conftest.er1
4388 ac_status=$?
4389 grep -v '^ *+' conftest.er1 >conftest.err
4390 rm -f conftest.er1
4391 cat conftest.err >&5
4392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && {
4394 test -z "$ac_c_werror_flag" ||
4395 test ! -s conftest.err
4396 } && test -s conftest.$ac_objext; then
4397 ac_cv_safe_to_define___extensions__=yes
4398else
4399 $as_echo "$as_me: failed program was:" >&5
4400sed 's/^/| /' conftest.$ac_ext >&5
4401
4402 ac_cv_safe_to_define___extensions__=no
4403fi
4404
4405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406fi
4407{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4408$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4409 test $ac_cv_safe_to_define___extensions__ = yes &&
4410 cat >>confdefs.h <<\_ACEOF
4411#define __EXTENSIONS__ 1
4412_ACEOF
4413
4414 cat >>confdefs.h <<\_ACEOF
4415#define _ALL_SOURCE 1
4416_ACEOF
4417
4418 cat >>confdefs.h <<\_ACEOF
4419#define _GNU_SOURCE 1
4420_ACEOF
4421
4422 cat >>confdefs.h <<\_ACEOF
4423#define _POSIX_PTHREAD_SEMANTICS 1
4424_ACEOF
4425
4426 cat >>confdefs.h <<\_ACEOF
4427#define _TANDEM_SOURCE 1
4428_ACEOF
4429
4430
4431
4432# Check for unsupported systems
4433case $ac_sys_system/$ac_sys_release in
4434atheos*|Linux*/1*)
4435 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
4436 echo See README for details.
4437 exit 1;;
4438esac
4439
4440
4441{ $as_echo "$as_me:$LINENO: checking for --with-suffix" >&5
4442$as_echo_n "checking for --with-suffix... " >&6; }
4443
4444# Check whether --with-suffix was given.
4445if test "${with_suffix+set}" = set; then
4446 withval=$with_suffix;
4447 case $withval in
4448 no) EXEEXT=;;
4449 yes) EXEEXT=.exe;;
4450 *) EXEEXT=$withval;;
4451 esac
4452fi
4453
4454{ $as_echo "$as_me:$LINENO: result: $EXEEXT" >&5
4455$as_echo "$EXEEXT" >&6; }
4456
4457# Test whether we're running on a non-case-sensitive system, in which
4458# case we give a warning if no ext is given
4459
4460{ $as_echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
4461$as_echo_n "checking for case-insensitive build directory... " >&6; }
4462if test ! -d CaseSensitiveTestDir; then
4463mkdir CaseSensitiveTestDir
4464fi
4465
4466if test -d casesensitivetestdir
4467then
4468 { $as_echo "$as_me:$LINENO: result: yes" >&5
4469$as_echo "yes" >&6; }
4470 BUILDEXEEXT=.exe
4471else
4472 { $as_echo "$as_me:$LINENO: result: no" >&5
4473$as_echo "no" >&6; }
4474 BUILDEXEEXT=$EXEEXT
4475fi
4476rmdir CaseSensitiveTestDir
4477
4478case $MACHDEP in
4479bsdos*)
4480 case $CC in
4481 gcc) CC="$CC -D_HAVE_BSDI";;
4482 esac;;
4483esac
4484
4485case $ac_sys_system in
4486hp*|HP*)
4487 case $CC in
4488 cc|*/cc) CC="$CC -Ae";;
4489 esac;;
4490Monterey*)
4491 case $CC in
4492 cc) CC="$CC -Wl,-Bexport";;
4493 esac;;
4494SunOS*)
4495 # Some functions have a prototype only with that define, e.g. confstr
4496
4497cat >>confdefs.h <<\_ACEOF
4498#define __EXTENSIONS__ 1
4499_ACEOF
4500
4501 ;;
4502esac
4503
4504
4505
4506{ $as_echo "$as_me:$LINENO: checking LIBRARY" >&5
4507$as_echo_n "checking LIBRARY... " >&6; }
4508if test -z "$LIBRARY"
4509then
4510 LIBRARY='libpython$(VERSION).a'
4511fi
4512{ $as_echo "$as_me:$LINENO: result: $LIBRARY" >&5
4513$as_echo "$LIBRARY" >&6; }
4514
4515# LDLIBRARY is the name of the library to link against (as opposed to the
4516# name of the library into which to insert object files). BLDLIBRARY is also
4517# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
4518# is blank as the main program is not linked directly against LDLIBRARY.
4519# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
4520# systems without shared libraries, LDLIBRARY is the same as LIBRARY
4521# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
4522# DLLLIBRARY is the shared (i.e., DLL) library.
4523#
4524# RUNSHARED is used to run shared python without installed libraries
4525#
4526# INSTSONAME is the name of the shared library that will be use to install
4527# on the system - some systems like version suffix, others don't
4528
4529
4530
4531
4532
4533
4534LDLIBRARY="$LIBRARY"
4535BLDLIBRARY='$(LDLIBRARY)'
4536INSTSONAME='$(LDLIBRARY)'
4537DLLLIBRARY=''
4538LDLIBRARYDIR=''
4539RUNSHARED=''
4540
4541# LINKCC is the command that links the python executable -- default is $(CC).
4542# If CXX is set, and if it is needed to link a main function that was
4543# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
4544# python might then depend on the C++ runtime
4545# This is altered for AIX in order to build the export list before
4546# linking.
4547
4548{ $as_echo "$as_me:$LINENO: checking LINKCC" >&5
4549$as_echo_n "checking LINKCC... " >&6; }
4550if test -z "$LINKCC"
4551then
4552 LINKCC='$(PURIFY) $(MAINCC)'
4553 case $ac_sys_system in
4554 AIX*)
4555 exp_extra="\"\""
4556 if test $ac_sys_release -ge 5 -o \
4557 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
4558 exp_extra="."
4559 fi
4560 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
4561 Monterey64*)
4562 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
4563 QNX*)
4564 # qcc must be used because the other compilers do not
4565 # support -N.
4566 LINKCC=qcc;;
4567 esac
4568fi
4569{ $as_echo "$as_me:$LINENO: result: $LINKCC" >&5
4570$as_echo "$LINKCC" >&6; }
4571
4572# GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4573# make sure we default having it set to "no": this is used by
4574# distutils.unixccompiler to know if it should add --enable-new-dtags
4575# to linker command lines, and failing to detect GNU ld simply results
4576# in the same bahaviour as before.
4577
4578{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4579$as_echo_n "checking for GNU ld... " >&6; }
4580ac_prog=ld
4581if test "$GCC" = yes; then
4582 ac_prog=`$CC -print-prog-name=ld`
4583fi
4584case `"$ac_prog" -V 2>&1 < /dev/null` in
4585 *GNU*)
4586 GNULD=yes;;
4587 *)
4588 GNULD=no;;
4589esac
4590{ $as_echo "$as_me:$LINENO: result: $GNULD" >&5
4591$as_echo "$GNULD" >&6; }
4592
4593{ $as_echo "$as_me:$LINENO: checking for --enable-shared" >&5
4594$as_echo_n "checking for --enable-shared... " >&6; }
4595# Check whether --enable-shared was given.
4596if test "${enable_shared+set}" = set; then
4597 enableval=$enable_shared;
4598fi
4599
4600
4601if test -z "$enable_shared"
4602then
4603 case $ac_sys_system in
4604 CYGWIN* | atheos*)
4605 enable_shared="yes";;
4606 *)
4607 enable_shared="no";;
4608 esac
4609fi
4610{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
4611$as_echo "$enable_shared" >&6; }
4612
4613{ $as_echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4614$as_echo_n "checking for --enable-profiling... " >&6; }
4615# Check whether --enable-profiling was given.
4616if test "${enable_profiling+set}" = set; then
4617 enableval=$enable_profiling; ac_save_cc="$CC"
4618 CC="$CC -pg"
4619 if test "$cross_compiling" = yes; then
4620 ac_enable_profiling="no"
4621else
4622 cat >conftest.$ac_ext <<_ACEOF
4623/* confdefs.h. */
4624_ACEOF
4625cat confdefs.h >>conftest.$ac_ext
4626cat >>conftest.$ac_ext <<_ACEOF
4627/* end confdefs.h. */
4628int main() { return 0; }
4629_ACEOF
4630rm -f conftest$ac_exeext
4631if { (ac_try="$ac_link"
4632case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635esac
4636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4637$as_echo "$ac_try_echo") >&5
4638 (eval "$ac_link") 2>&5
4639 ac_status=$?
4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4642 { (case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645esac
4646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4647$as_echo "$ac_try_echo") >&5
4648 (eval "$ac_try") 2>&5
4649 ac_status=$?
4650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; }; then
4652 ac_enable_profiling="yes"
4653else
4654 $as_echo "$as_me: program exited with status $ac_status" >&5
4655$as_echo "$as_me: failed program was:" >&5
4656sed 's/^/| /' conftest.$ac_ext >&5
4657
4658( exit $ac_status )
4659ac_enable_profiling="no"
4660fi
4661rm -rf conftest.dSYM
4662rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4663fi
4664
4665
4666 CC="$ac_save_cc"
4667fi
4668
4669{ $as_echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4670$as_echo "$ac_enable_profiling" >&6; }
4671
4672case "$ac_enable_profiling" in
4673 "yes")
4674 BASECFLAGS="-pg $BASECFLAGS"
4675 LDFLAGS="-pg $LDFLAGS"
4676 ;;
4677esac
4678
4679{ $as_echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4680$as_echo_n "checking LDLIBRARY... " >&6; }
4681
4682# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4683# library that we build, but we do not want to link against it (we
4684# will find it with a -framework option). For this reason there is an
4685# extra variable BLDLIBRARY against which Python and the extension
4686# modules are linked, BLDLIBRARY. This is normally the same as
4687# LDLIBRARY, but empty for MacOSX framework builds.
4688if test "$enable_framework"
4689then
4690 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4691 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4692 BLDLIBRARY=''
4693else
4694 BLDLIBRARY='$(LDLIBRARY)'
4695fi
4696
4697# Other platforms follow
4698if test $enable_shared = "yes"; then
4699
4700cat >>confdefs.h <<\_ACEOF
4701#define Py_ENABLE_SHARED 1
4702_ACEOF
4703
4704 case $ac_sys_system in
4705 BeOS*)
4706 LDLIBRARY='libpython$(VERSION).so'
4707 ;;
4708 CYGWIN*)
4709 LDLIBRARY='libpython$(VERSION).dll.a'
4710 DLLLIBRARY='libpython$(VERSION).dll'
4711 ;;
4712 SunOS*)
4713 LDLIBRARY='libpython$(VERSION).so'
4714 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4715 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4716 INSTSONAME="$LDLIBRARY".$SOVERSION
4717 ;;
4718 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
4719 LDLIBRARY='libpython$(VERSION).so'
4720 BLDLIBRARY='-L. -lpython$(VERSION)'
4721 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4722 case $ac_sys_system in
4723 FreeBSD*)
4724 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4725 ;;
4726 esac
4727 INSTSONAME="$LDLIBRARY".$SOVERSION
4728 ;;
4729 hp*|HP*)
4730 case `uname -m` in
4731 ia64)
4732 LDLIBRARY='libpython$(VERSION).so'
4733 ;;
4734 *)
4735 LDLIBRARY='libpython$(VERSION).sl'
4736 ;;
4737 esac
4738 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4739 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4740 ;;
4741 OSF*)
4742 LDLIBRARY='libpython$(VERSION).so'
4743 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4744 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4745 ;;
4746 atheos*)
4747 LDLIBRARY='libpython$(VERSION).so'
4748 BLDLIBRARY='-L. -lpython$(VERSION)'
4749 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4750 ;;
4751 Darwin*)
4752 LDLIBRARY='libpython$(VERSION).dylib'
4753 BLDLIBRARY='-L. -lpython$(VERSION)'
4754 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4755 ;;
4756
4757 esac
4758else # shared is disabled
4759 case $ac_sys_system in
4760 CYGWIN*)
4761 BLDLIBRARY='$(LIBRARY)'
4762 LDLIBRARY='libpython$(VERSION).dll.a'
4763 ;;
4764 esac
4765fi
4766
4767{ $as_echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4768$as_echo "$LDLIBRARY" >&6; }
4769
4770if test -n "$ac_tool_prefix"; then
4771 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4772set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4773{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4774$as_echo_n "checking for $ac_word... " >&6; }
4775if test "${ac_cv_prog_RANLIB+set}" = set; then
4776 $as_echo_n "(cached) " >&6
4777else
4778 if test -n "$RANLIB"; then
4779 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4780else
4781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4789 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 break 2
4791 fi
4792done
4793done
4794IFS=$as_save_IFS
4795
4796fi
4797fi
4798RANLIB=$ac_cv_prog_RANLIB
4799if test -n "$RANLIB"; then
4800 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4801$as_echo "$RANLIB" >&6; }
4802else
4803 { $as_echo "$as_me:$LINENO: result: no" >&5
4804$as_echo "no" >&6; }
4805fi
4806
4807
4808fi
4809if test -z "$ac_cv_prog_RANLIB"; then
4810 ac_ct_RANLIB=$RANLIB
4811 # Extract the first word of "ranlib", so it can be a program name with args.
4812set dummy ranlib; ac_word=$2
4813{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4814$as_echo_n "checking for $ac_word... " >&6; }
4815if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4816 $as_echo_n "(cached) " >&6
4817else
4818 if test -n "$ac_ct_RANLIB"; then
4819 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4820else
4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_ac_ct_RANLIB="ranlib"
4829 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4831 fi
4832done
4833done
4834IFS=$as_save_IFS
4835
4836fi
4837fi
4838ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4839if test -n "$ac_ct_RANLIB"; then
4840 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4841$as_echo "$ac_ct_RANLIB" >&6; }
4842else
4843 { $as_echo "$as_me:$LINENO: result: no" >&5
4844$as_echo "no" >&6; }
4845fi
4846
4847 if test "x$ac_ct_RANLIB" = x; then
4848 RANLIB=":"
4849 else
4850 case $cross_compiling:$ac_tool_warned in
4851yes:)
4852{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4854ac_tool_warned=yes ;;
4855esac
4856 RANLIB=$ac_ct_RANLIB
4857 fi
4858else
4859 RANLIB="$ac_cv_prog_RANLIB"
4860fi
4861
4862
4863for ac_prog in ar aal
4864do
4865 # Extract the first word of "$ac_prog", so it can be a program name with args.
4866set dummy $ac_prog; ac_word=$2
4867{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4868$as_echo_n "checking for $ac_word... " >&6; }
4869if test "${ac_cv_prog_AR+set}" = set; then
4870 $as_echo_n "(cached) " >&6
4871else
4872 if test -n "$AR"; then
4873 ac_cv_prog_AR="$AR" # Let the user override the test.
4874else
4875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876for as_dir in $PATH
4877do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882 ac_cv_prog_AR="$ac_prog"
4883 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4885 fi
4886done
4887done
4888IFS=$as_save_IFS
4889
4890fi
4891fi
4892AR=$ac_cv_prog_AR
4893if test -n "$AR"; then
4894 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4895$as_echo "$AR" >&6; }
4896else
4897 { $as_echo "$as_me:$LINENO: result: no" >&5
4898$as_echo "no" >&6; }
4899fi
4900
4901
4902 test -n "$AR" && break
4903done
4904test -n "$AR" || AR="ar"
4905
4906
4907# tweak ARFLAGS only if the user didn't set it on the command line
4908
4909if test -z "$ARFLAGS"
4910then
4911 ARFLAGS="rc"
4912fi
4913
4914
4915# Extract the first word of "svnversion", so it can be a program name with args.
4916set dummy svnversion; ac_word=$2
4917{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4918$as_echo_n "checking for $ac_word... " >&6; }
4919if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4920 $as_echo_n "(cached) " >&6
4921else
4922 if test -n "$SVNVERSION"; then
4923 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
4924else
4925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926for as_dir in $PATH
4927do
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_SVNVERSION="found"
4933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 break 2
4935 fi
4936done
4937done
4938IFS=$as_save_IFS
4939
4940 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
4941fi
4942fi
4943SVNVERSION=$ac_cv_prog_SVNVERSION
4944if test -n "$SVNVERSION"; then
4945 { $as_echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4946$as_echo "$SVNVERSION" >&6; }
4947else
4948 { $as_echo "$as_me:$LINENO: result: no" >&5
4949$as_echo "no" >&6; }
4950fi
4951
4952
4953if test $SVNVERSION = found
4954then
4955 SVNVERSION="svnversion \$(srcdir)"
4956else
4957 SVNVERSION="echo Unversioned directory"
4958fi
4959
4960case $MACHDEP in
4961bsdos*|hp*|HP*)
4962 # install -d does not work on BSDI or HP-UX
4963 if test -z "$INSTALL"
4964 then
4965 INSTALL="${srcdir}/install-sh -c"
4966 fi
4967esac
4968ac_aux_dir=
4969for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4970 if test -f "$ac_dir/install-sh"; then
4971 ac_aux_dir=$ac_dir
4972 ac_install_sh="$ac_aux_dir/install-sh -c"
4973 break
4974 elif test -f "$ac_dir/install.sh"; then
4975 ac_aux_dir=$ac_dir
4976 ac_install_sh="$ac_aux_dir/install.sh -c"
4977 break
4978 elif test -f "$ac_dir/shtool"; then
4979 ac_aux_dir=$ac_dir
4980 ac_install_sh="$ac_aux_dir/shtool install -c"
4981 break
4982 fi
4983done
4984if test -z "$ac_aux_dir"; then
4985 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4986$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4987 { (exit 1); exit 1; }; }
4988fi
4989
4990# These three variables are undocumented and unsupported,
4991# and are intended to be withdrawn in a future Autoconf release.
4992# They can cause serious problems if a builder's source tree is in a directory
4993# whose full name contains unusual characters.
4994ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4995ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4996ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4997
4998
4999# Find a good install program. We prefer a C program (faster),
5000# so one script is as good as another. But avoid the broken or
5001# incompatible versions:
5002# SysV /etc/install, /usr/sbin/install
5003# SunOS /usr/etc/install
5004# IRIX /sbin/install
5005# AIX /bin/install
5006# AmigaOS /C/install, which installs bootblocks on floppy discs
5007# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5008# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5009# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5010# OS/2's system install, which has a completely different semantic
5011# ./install, which can be erroneously created by make from ./install.sh.
5012# Reject install programs that cannot install multiple files.
5013{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5014$as_echo_n "checking for a BSD-compatible install... " >&6; }
5015if test -z "$INSTALL"; then
5016if test "${ac_cv_path_install+set}" = set; then
5017 $as_echo_n "(cached) " >&6
5018else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 # Account for people who put trailing slashes in PATH elements.
5025case $as_dir/ in
5026 ./ | .// | /cC/* | \
5027 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5028 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5029 /usr/ucb/* ) ;;
5030 *)
5031 # OSF1 and SCO ODT 3.0 have their own names for install.
5032 # Don't use installbsd from OSF since it installs stuff as root
5033 # by default.
5034 for ac_prog in ginstall scoinst install; do
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5037 if test $ac_prog = install &&
5038 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5039 # AIX install. It has an incompatible calling convention.
5040 :
5041 elif test $ac_prog = install &&
5042 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5043 # program-specific install script used by HP pwplus--don't use.
5044 :
5045 else
5046 rm -rf conftest.one conftest.two conftest.dir
5047 echo one > conftest.one
5048 echo two > conftest.two
5049 mkdir conftest.dir
5050 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5051 test -s conftest.one && test -s conftest.two &&
5052 test -s conftest.dir/conftest.one &&
5053 test -s conftest.dir/conftest.two
5054 then
5055 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5056 break 3
5057 fi
5058 fi
5059 fi
5060 done
5061 done
5062 ;;
5063esac
5064
5065done
5066IFS=$as_save_IFS
5067
5068rm -rf conftest.one conftest.two conftest.dir
5069
5070fi
5071 if test "${ac_cv_path_install+set}" = set; then
5072 INSTALL=$ac_cv_path_install
5073 else
5074 # As a last resort, use the slow shell script. Don't cache a
5075 # value for INSTALL within a source directory, because that will
5076 # break other packages using the cache if that directory is
5077 # removed, or if the value is a relative name.
5078 INSTALL=$ac_install_sh
5079 fi
5080fi
5081{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5082$as_echo "$INSTALL" >&6; }
5083
5084# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5085# It thinks the first close brace ends the variable substitution.
5086test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5087
5088test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5089
5090test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5091
5092
5093# Not every filesystem supports hard links
5094
5095if test -z "$LN" ; then
5096 case $ac_sys_system in
5097 BeOS*) LN="ln -s";;
5098 CYGWIN*) LN="ln -s";;
5099 atheos*) LN="ln -s";;
5100 *) LN=ln;;
5101 esac
5102fi
5103
5104# Check for --with-pydebug
5105{ $as_echo "$as_me:$LINENO: checking for --with-pydebug" >&5
5106$as_echo_n "checking for --with-pydebug... " >&6; }
5107
5108# Check whether --with-pydebug was given.
5109if test "${with_pydebug+set}" = set; then
5110 withval=$with_pydebug;
5111if test "$withval" != no
5112then
5113
5114cat >>confdefs.h <<\_ACEOF
5115#define Py_DEBUG 1
5116_ACEOF
5117
5118 { $as_echo "$as_me:$LINENO: result: yes" >&5
5119$as_echo "yes" >&6; };
5120 Py_DEBUG='true'
5121else { $as_echo "$as_me:$LINENO: result: no" >&5
5122$as_echo "no" >&6; }; Py_DEBUG='false'
5123fi
5124else
5125 { $as_echo "$as_me:$LINENO: result: no" >&5
5126$as_echo "no" >&6; }
5127fi
5128
5129
5130# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
5131# merged with this chunk of code?
5132
5133# Optimizer/debugger flags
5134# ------------------------
5135# (The following bit of code is complicated enough - please keep things
5136# indented properly. Just pretend you're editing Python code. ;-)
5137
5138# There are two parallel sets of case statements below, one that checks to
5139# see if OPT was set and one that does BASECFLAGS setting based upon
5140# compiler and platform. BASECFLAGS tweaks need to be made even if the
5141# user set OPT.
5142
5143# tweak OPT based on compiler and platform, only if the user didn't set
5144# it on the command line
5145
5146if test -z "$OPT"
5147then
5148 case $GCC in
5149 yes)
5150 if test "$CC" != 'g++' ; then
5151 STRICT_PROTO="-Wstrict-prototypes"
5152 fi
5153 # For gcc 4.x we need to use -fwrapv so lets check if its supported
5154 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
5155 WRAP="-fwrapv"
5156 fi
5157 case $ac_cv_prog_cc_g in
5158 yes)
5159 if test "$Py_DEBUG" = 'true' ; then
5160 # Optimization messes up debuggers, so turn it off for
5161 # debug builds.
5162 OPT="-g -Wall $STRICT_PROTO"
5163 else
5164 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
5165 fi
5166 ;;
5167 *)
5168 OPT="-O3 -Wall $STRICT_PROTO"
5169 ;;
5170 esac
5171 case $ac_sys_system in
5172 SCO_SV*) OPT="$OPT -m486 -DSCO5"
5173 ;;
5174 esac
5175 ;;
5176
5177 *)
5178 OPT="-O"
5179 ;;
5180 esac
5181
5182 # The current (beta) Monterey compiler dies with optimizations
5183 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
5184 case $ac_sys_system in
5185 Monterey*)
5186 OPT=""
5187 ;;
5188 esac
5189
5190fi
5191
5192
5193
5194# The -arch flags for universal builds on OSX
5195UNIVERSAL_ARCH_FLAGS=
5196
5197
5198# tweak BASECFLAGS based on compiler and platform
5199case $GCC in
5200yes)
5201 # Python violates C99 rules, by casting between incompatible
5202 # pointer types. GCC may generate bad code as a result of that,
5203 # so use -fno-strict-aliasing if supported.
5204 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
5205$as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; }
5206 ac_save_cc="$CC"
5207 CC="$CC -fno-strict-aliasing"
5208 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then
5209 $as_echo_n "(cached) " >&6
5210else
5211 if test "$cross_compiling" = yes; then
5212 ac_cv_no_strict_aliasing_ok=no
5213else
5214 cat >conftest.$ac_ext <<_ACEOF
5215/* confdefs.h. */
5216_ACEOF
5217cat confdefs.h >>conftest.$ac_ext
5218cat >>conftest.$ac_ext <<_ACEOF
5219/* end confdefs.h. */
5220int main() { return 0; }
5221_ACEOF
5222rm -f conftest$ac_exeext
5223if { (ac_try="$ac_link"
5224case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227esac
5228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5229$as_echo "$ac_try_echo") >&5
5230 (eval "$ac_link") 2>&5
5231 ac_status=$?
5232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5234 { (case "(($ac_try" in
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5237esac
5238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5239$as_echo "$ac_try_echo") >&5
5240 (eval "$ac_try") 2>&5
5241 ac_status=$?
5242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 ac_cv_no_strict_aliasing_ok=yes
5245else
5246 $as_echo "$as_me: program exited with status $ac_status" >&5
5247$as_echo "$as_me: failed program was:" >&5
5248sed 's/^/| /' conftest.$ac_ext >&5
5249
5250( exit $ac_status )
5251ac_cv_no_strict_aliasing_ok=no
5252fi
5253rm -rf conftest.dSYM
5254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5255fi
5256
5257
5258fi
5259
5260 CC="$ac_save_cc"
5261 { $as_echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
5262$as_echo "$ac_cv_no_strict_aliasing_ok" >&6; }
5263 if test $ac_cv_no_strict_aliasing_ok = yes
5264 then
5265 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
5266 fi
5267
5268 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
5269 # support. Without this, treatment of subnormals doesn't follow
5270 # the standard.
5271 case $ac_sys_machine in
5272 alpha*)
5273 BASECFLAGS="$BASECFLAGS -mieee"
5274 ;;
5275 esac
5276
5277 case $ac_sys_system in
5278 SCO_SV*)
5279 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
5280 ;;
5281 # is there any other compiler on Darwin besides gcc?
5282 Darwin*)
5283 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
5284 # used to be here, but non-Apple gcc doesn't accept them.
5285
5286
5287 if test "${enable_universalsdk}"; then
5288 UNIVERSAL_ARCH_FLAGS=""
5289 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
5290 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
5291 ARCH_RUN_32BIT=""
5292
5293 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
5294 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
5295
5296 elif test "$UNIVERSAL_ARCHS" = "all" ; then
5297 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
5298 ARCH_RUN_32BIT="arch -i386 -ppc"
5299
5300 else
5301 { { $as_echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
5302$as_echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
5303 { (exit 1); exit 1; }; }
5304
5305 fi
5306
5307
5308 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
5309 tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
5310 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
5311 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
5312 fi
5313 fi
5314
5315 # Calculate the right deployment target for this build.
5316 #
5317 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
5318 if test ${cur_target} '>' 10.2; then
5319 cur_target=10.3
5320 fi
5321 if test "${UNIVERSAL_ARCHS}" = "all"; then
5322 # Ensure that the default platform for a 4-way
5323 # universal build is OSX 10.5, that's the first
5324 # OS release where 4-way builds make sense.
5325 cur_target='10.5'
5326 fi
5327 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
5328
5329 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
5330 # environment with a value that is the same as what we'll use
5331 # in the Makefile to ensure that we'll get the same compiler
5332 # environment during configure and build time.
5333 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
5334 export MACOSX_DEPLOYMENT_TARGET
5335 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
5336
5337 ;;
5338 OSF*)
5339 BASECFLAGS="$BASECFLAGS -mieee"
5340 ;;
5341 esac
5342 ;;
5343
5344*)
5345 case $ac_sys_system in
5346 OpenUNIX*|UnixWare*)
5347 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
5348 ;;
5349 OSF*)
5350 BASECFLAGS="$BASECFLAGS -ieee -std"
5351 ;;
5352 SCO_SV*)
5353 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
5354 ;;
5355 esac
5356 ;;
5357esac
5358
5359if test "$Py_DEBUG" = 'true'; then
5360 :
5361else
5362 OPT="-DNDEBUG $OPT"
5363fi
5364
5365if test "$ac_arch_flags"
5366then
5367 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
5368fi
5369
5370# disable check for icc since it seems to pass, but generates a warning
5371if test "$CC" = icc
5372then
5373 ac_cv_opt_olimit_ok=no
5374fi
5375
5376{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
5377$as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
5378if test "${ac_cv_opt_olimit_ok+set}" = set; then
5379 $as_echo_n "(cached) " >&6
5380else
5381 ac_save_cc="$CC"
5382CC="$CC -OPT:Olimit=0"
5383if test "$cross_compiling" = yes; then
5384 ac_cv_opt_olimit_ok=no
5385else
5386 cat >conftest.$ac_ext <<_ACEOF
5387/* confdefs.h. */
5388_ACEOF
5389cat confdefs.h >>conftest.$ac_ext
5390cat >>conftest.$ac_ext <<_ACEOF
5391/* end confdefs.h. */
5392int main() { return 0; }
5393_ACEOF
5394rm -f conftest$ac_exeext
5395if { (ac_try="$ac_link"
5396case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399esac
5400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5401$as_echo "$ac_try_echo") >&5
5402 (eval "$ac_link") 2>&5
5403 ac_status=$?
5404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5406 { (case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5409esac
5410eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5411$as_echo "$ac_try_echo") >&5
5412 (eval "$ac_try") 2>&5
5413 ac_status=$?
5414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; }; then
5416 ac_cv_opt_olimit_ok=yes
5417else
5418 $as_echo "$as_me: program exited with status $ac_status" >&5
5419$as_echo "$as_me: failed program was:" >&5
5420sed 's/^/| /' conftest.$ac_ext >&5
5421
5422( exit $ac_status )
5423ac_cv_opt_olimit_ok=no
5424fi
5425rm -rf conftest.dSYM
5426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5427fi
5428
5429
5430CC="$ac_save_cc"
5431fi
5432
5433{ $as_echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
5434$as_echo "$ac_cv_opt_olimit_ok" >&6; }
5435if test $ac_cv_opt_olimit_ok = yes; then
5436 case $ac_sys_system in
5437 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
5438 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
5439 # environment?
5440 Darwin*)
5441 ;;
5442 *)
5443 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
5444 ;;
5445 esac
5446else
5447 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
5448$as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
5449 if test "${ac_cv_olimit_ok+set}" = set; then
5450 $as_echo_n "(cached) " >&6
5451else
5452 ac_save_cc="$CC"
5453 CC="$CC -Olimit 1500"
5454 if test "$cross_compiling" = yes; then
5455 ac_cv_olimit_ok=no
5456else
5457 cat >conftest.$ac_ext <<_ACEOF
5458/* confdefs.h. */
5459_ACEOF
5460cat confdefs.h >>conftest.$ac_ext
5461cat >>conftest.$ac_ext <<_ACEOF
5462/* end confdefs.h. */
5463int main() { return 0; }
5464_ACEOF
5465rm -f conftest$ac_exeext
5466if { (ac_try="$ac_link"
5467case "(($ac_try" in
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5470esac
5471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5472$as_echo "$ac_try_echo") >&5
5473 (eval "$ac_link") 2>&5
5474 ac_status=$?
5475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5477 { (case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480esac
5481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5482$as_echo "$ac_try_echo") >&5
5483 (eval "$ac_try") 2>&5
5484 ac_status=$?
5485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; }; then
5487 ac_cv_olimit_ok=yes
5488else
5489 $as_echo "$as_me: program exited with status $ac_status" >&5
5490$as_echo "$as_me: failed program was:" >&5
5491sed 's/^/| /' conftest.$ac_ext >&5
5492
5493( exit $ac_status )
5494ac_cv_olimit_ok=no
5495fi
5496rm -rf conftest.dSYM
5497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5498fi
5499
5500
5501 CC="$ac_save_cc"
5502fi
5503
5504 { $as_echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
5505$as_echo "$ac_cv_olimit_ok" >&6; }
5506 if test $ac_cv_olimit_ok = yes; then
5507 BASECFLAGS="$BASECFLAGS -Olimit 1500"
5508 fi
5509fi
5510
5511# Check whether GCC supports PyArg_ParseTuple format
5512if test "$GCC" = "yes"
5513then
5514 { $as_echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
5515$as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
5516 save_CFLAGS=$CFLAGS
5517 CFLAGS="$CFLAGS -Werror"
5518 cat >conftest.$ac_ext <<_ACEOF
5519/* confdefs.h. */
5520_ACEOF
5521cat confdefs.h >>conftest.$ac_ext
5522cat >>conftest.$ac_ext <<_ACEOF
5523/* end confdefs.h. */
5524
5525 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
5526
5527int
5528main ()
5529{
5530
5531 ;
5532 return 0;
5533}
5534_ACEOF
5535rm -f conftest.$ac_objext
5536if { (ac_try="$ac_compile"
5537case "(($ac_try" in
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5540esac
5541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5542$as_echo "$ac_try_echo") >&5
5543 (eval "$ac_compile") 2>conftest.er1
5544 ac_status=$?
5545 grep -v '^ *+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
5548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } && {
5550 test -z "$ac_c_werror_flag" ||
5551 test ! -s conftest.err
5552 } && test -s conftest.$ac_objext; then
5553
5554cat >>confdefs.h <<\_ACEOF
5555#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
5556_ACEOF
5557
5558 { $as_echo "$as_me:$LINENO: result: yes" >&5
5559$as_echo "yes" >&6; }
5560else
5561 $as_echo "$as_me: failed program was:" >&5
5562sed 's/^/| /' conftest.$ac_ext >&5
5563
5564 { $as_echo "$as_me:$LINENO: result: no" >&5
5565$as_echo "no" >&6; }
5566
5567fi
5568
5569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 CFLAGS=$save_CFLAGS
5571fi
5572
5573# On some compilers, pthreads are available without further options
5574# (e.g. MacOS X). On some of these systems, the compiler will not
5575# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
5576# So we have to see first whether pthreads are available without
5577# options before we can check whether -Kpthread improves anything.
5578{ $as_echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
5579$as_echo_n "checking whether pthreads are available without options... " >&6; }
5580if test "${ac_cv_pthread_is_default+set}" = set; then
5581 $as_echo_n "(cached) " >&6
5582else
5583 if test "$cross_compiling" = yes; then
5584 ac_cv_pthread_is_default=no
5585else
5586 cat >conftest.$ac_ext <<_ACEOF
5587/* confdefs.h. */
5588_ACEOF
5589cat confdefs.h >>conftest.$ac_ext
5590cat >>conftest.$ac_ext <<_ACEOF
5591/* end confdefs.h. */
5592
5593#include <pthread.h>
5594
5595void* routine(void* p){return NULL;}
5596
5597int main(){
5598 pthread_t p;
5599 if(pthread_create(&p,NULL,routine,NULL)!=0)
5600 return 1;
5601 (void)pthread_detach(p);
5602 return 0;
5603}
5604
5605_ACEOF
5606rm -f conftest$ac_exeext
5607if { (ac_try="$ac_link"
5608case "(($ac_try" in
5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5611esac
5612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5613$as_echo "$ac_try_echo") >&5
5614 (eval "$ac_link") 2>&5
5615 ac_status=$?
5616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5618 { (case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621esac
5622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5623$as_echo "$ac_try_echo") >&5
5624 (eval "$ac_try") 2>&5
5625 ac_status=$?
5626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; }; then
5628
5629 ac_cv_pthread_is_default=yes
5630 ac_cv_kthread=no
5631 ac_cv_pthread=no
5632
5633else
5634 $as_echo "$as_me: program exited with status $ac_status" >&5
5635$as_echo "$as_me: failed program was:" >&5
5636sed 's/^/| /' conftest.$ac_ext >&5
5637
5638( exit $ac_status )
5639ac_cv_pthread_is_default=no
5640fi
5641rm -rf conftest.dSYM
5642rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5643fi
5644
5645
5646
5647fi
5648
5649{ $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5650$as_echo "$ac_cv_pthread_is_default" >&6; }
5651
5652
5653if test $ac_cv_pthread_is_default = yes
5654then
5655 ac_cv_kpthread=no
5656else
5657# -Kpthread, if available, provides the right #defines
5658# and linker options to make pthread_create available
5659# Some compilers won't report that they do not support -Kpthread,
5660# so we need to run a program to see whether it really made the
5661# function available.
5662{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5663$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
5664if test "${ac_cv_kpthread+set}" = set; then
5665 $as_echo_n "(cached) " >&6
5666else
5667 ac_save_cc="$CC"
5668CC="$CC -Kpthread"
5669if test "$cross_compiling" = yes; then
5670 ac_cv_kpthread=no
5671else
5672 cat >conftest.$ac_ext <<_ACEOF
5673/* confdefs.h. */
5674_ACEOF
5675cat confdefs.h >>conftest.$ac_ext
5676cat >>conftest.$ac_ext <<_ACEOF
5677/* end confdefs.h. */
5678
5679#include <pthread.h>
5680
5681void* routine(void* p){return NULL;}
5682
5683int main(){
5684 pthread_t p;
5685 if(pthread_create(&p,NULL,routine,NULL)!=0)
5686 return 1;
5687 (void)pthread_detach(p);
5688 return 0;
5689}
5690
5691_ACEOF
5692rm -f conftest$ac_exeext
5693if { (ac_try="$ac_link"
5694case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697esac
5698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5699$as_echo "$ac_try_echo") >&5
5700 (eval "$ac_link") 2>&5
5701 ac_status=$?
5702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5704 { (case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707esac
5708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5709$as_echo "$ac_try_echo") >&5
5710 (eval "$ac_try") 2>&5
5711 ac_status=$?
5712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714 ac_cv_kpthread=yes
5715else
5716 $as_echo "$as_me: program exited with status $ac_status" >&5
5717$as_echo "$as_me: failed program was:" >&5
5718sed 's/^/| /' conftest.$ac_ext >&5
5719
5720( exit $ac_status )
5721ac_cv_kpthread=no
5722fi
5723rm -rf conftest.dSYM
5724rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5725fi
5726
5727
5728CC="$ac_save_cc"
5729fi
5730
5731{ $as_echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5732$as_echo "$ac_cv_kpthread" >&6; }
5733fi
5734
5735if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5736then
5737# -Kthread, if available, provides the right #defines
5738# and linker options to make pthread_create available
5739# Some compilers won't report that they do not support -Kthread,
5740# so we need to run a program to see whether it really made the
5741# function available.
5742{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5743$as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
5744if test "${ac_cv_kthread+set}" = set; then
5745 $as_echo_n "(cached) " >&6
5746else
5747 ac_save_cc="$CC"
5748CC="$CC -Kthread"
5749if test "$cross_compiling" = yes; then
5750 ac_cv_kthread=no
5751else
5752 cat >conftest.$ac_ext <<_ACEOF
5753/* confdefs.h. */
5754_ACEOF
5755cat confdefs.h >>conftest.$ac_ext
5756cat >>conftest.$ac_ext <<_ACEOF
5757/* end confdefs.h. */
5758
5759#include <pthread.h>
5760
5761void* routine(void* p){return NULL;}
5762
5763int main(){
5764 pthread_t p;
5765 if(pthread_create(&p,NULL,routine,NULL)!=0)
5766 return 1;
5767 (void)pthread_detach(p);
5768 return 0;
5769}
5770
5771_ACEOF
5772rm -f conftest$ac_exeext
5773if { (ac_try="$ac_link"
5774case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777esac
5778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5779$as_echo "$ac_try_echo") >&5
5780 (eval "$ac_link") 2>&5
5781 ac_status=$?
5782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5784 { (case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787esac
5788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5789$as_echo "$ac_try_echo") >&5
5790 (eval "$ac_try") 2>&5
5791 ac_status=$?
5792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5794 ac_cv_kthread=yes
5795else
5796 $as_echo "$as_me: program exited with status $ac_status" >&5
5797$as_echo "$as_me: failed program was:" >&5
5798sed 's/^/| /' conftest.$ac_ext >&5
5799
5800( exit $ac_status )
5801ac_cv_kthread=no
5802fi
5803rm -rf conftest.dSYM
5804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5805fi
5806
5807
5808CC="$ac_save_cc"
5809fi
5810
5811{ $as_echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5812$as_echo "$ac_cv_kthread" >&6; }
5813fi
5814
5815if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5816then
5817# -pthread, if available, provides the right #defines
5818# and linker options to make pthread_create available
5819# Some compilers won't report that they do not support -pthread,
5820# so we need to run a program to see whether it really made the
5821# function available.
5822{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5823$as_echo_n "checking whether $CC accepts -pthread... " >&6; }
5824if test "${ac_cv_thread+set}" = set; then
5825 $as_echo_n "(cached) " >&6
5826else
5827 ac_save_cc="$CC"
5828CC="$CC -pthread"
5829if test "$cross_compiling" = yes; then
5830 ac_cv_pthread=no
5831else
5832 cat >conftest.$ac_ext <<_ACEOF
5833/* confdefs.h. */
5834_ACEOF
5835cat confdefs.h >>conftest.$ac_ext
5836cat >>conftest.$ac_ext <<_ACEOF
5837/* end confdefs.h. */
5838
5839#include <pthread.h>
5840
5841void* routine(void* p){return NULL;}
5842
5843int main(){
5844 pthread_t p;
5845 if(pthread_create(&p,NULL,routine,NULL)!=0)
5846 return 1;
5847 (void)pthread_detach(p);
5848 return 0;
5849}
5850
5851_ACEOF
5852rm -f conftest$ac_exeext
5853if { (ac_try="$ac_link"
5854case "(($ac_try" in
5855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856 *) ac_try_echo=$ac_try;;
5857esac
5858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5859$as_echo "$ac_try_echo") >&5
5860 (eval "$ac_link") 2>&5
5861 ac_status=$?
5862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5864 { (case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867esac
5868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5869$as_echo "$ac_try_echo") >&5
5870 (eval "$ac_try") 2>&5
5871 ac_status=$?
5872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_pthread=yes
5875else
5876 $as_echo "$as_me: program exited with status $ac_status" >&5
5877$as_echo "$as_me: failed program was:" >&5
5878sed 's/^/| /' conftest.$ac_ext >&5
5879
5880( exit $ac_status )
5881ac_cv_pthread=no
5882fi
5883rm -rf conftest.dSYM
5884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5885fi
5886
5887
5888CC="$ac_save_cc"
5889fi
5890
5891{ $as_echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5892$as_echo "$ac_cv_pthread" >&6; }
5893fi
5894
5895# If we have set a CC compiler flag for thread support then
5896# check if it works for CXX, too.
5897ac_cv_cxx_thread=no
5898if test ! -z "$CXX"
5899then
5900{ $as_echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5901$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
5902ac_save_cxx="$CXX"
5903
5904if test "$ac_cv_kpthread" = "yes"
5905then
5906 CXX="$CXX -Kpthread"
5907 ac_cv_cxx_thread=yes
5908elif test "$ac_cv_kthread" = "yes"
5909then
5910 CXX="$CXX -Kthread"
5911 ac_cv_cxx_thread=yes
5912elif test "$ac_cv_pthread" = "yes"
5913then
5914 CXX="$CXX -pthread"
5915 ac_cv_cxx_thread=yes
5916fi
5917
5918if test $ac_cv_cxx_thread = yes
5919then
5920 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5921 $CXX -c conftest.$ac_ext 2>&5
5922 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5923 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5924 then
5925 ac_cv_cxx_thread=yes
5926 else
5927 ac_cv_cxx_thread=no
5928 fi
5929 rm -fr conftest*
5930fi
5931{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5932$as_echo "$ac_cv_cxx_thread" >&6; }
5933fi
5934CXX="$ac_save_cxx"
5935
5936
5937# checks for header files
5938{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5939$as_echo_n "checking for ANSI C header files... " >&6; }
5940if test "${ac_cv_header_stdc+set}" = set; then
5941 $as_echo_n "(cached) " >&6
5942else
5943 cat >conftest.$ac_ext <<_ACEOF
5944/* confdefs.h. */
5945_ACEOF
5946cat confdefs.h >>conftest.$ac_ext
5947cat >>conftest.$ac_ext <<_ACEOF
5948/* end confdefs.h. */
5949#include <stdlib.h>
5950#include <stdarg.h>
5951#include <string.h>
5952#include <float.h>
5953
5954int
5955main ()
5956{
5957
5958 ;
5959 return 0;
5960}
5961_ACEOF
5962rm -f conftest.$ac_objext
5963if { (ac_try="$ac_compile"
5964case "(($ac_try" in
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5967esac
5968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5969$as_echo "$ac_try_echo") >&5
5970 (eval "$ac_compile") 2>conftest.er1
5971 ac_status=$?
5972 grep -v '^ *+' conftest.er1 >conftest.err
5973 rm -f conftest.er1
5974 cat conftest.err >&5
5975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } && {
5977 test -z "$ac_c_werror_flag" ||
5978 test ! -s conftest.err
5979 } && test -s conftest.$ac_objext; then
5980 ac_cv_header_stdc=yes
5981else
5982 $as_echo "$as_me: failed program was:" >&5
5983sed 's/^/| /' conftest.$ac_ext >&5
5984
5985 ac_cv_header_stdc=no
5986fi
5987
5988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989
5990if test $ac_cv_header_stdc = yes; then
5991 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5992 cat >conftest.$ac_ext <<_ACEOF
5993/* confdefs.h. */
5994_ACEOF
5995cat confdefs.h >>conftest.$ac_ext
5996cat >>conftest.$ac_ext <<_ACEOF
5997/* end confdefs.h. */
5998#include <string.h>
5999
6000_ACEOF
6001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6002 $EGREP "memchr" >/dev/null 2>&1; then
6003 :
6004else
6005 ac_cv_header_stdc=no
6006fi
6007rm -f conftest*
6008
6009fi
6010
6011if test $ac_cv_header_stdc = yes; then
6012 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6013 cat >conftest.$ac_ext <<_ACEOF
6014/* confdefs.h. */
6015_ACEOF
6016cat confdefs.h >>conftest.$ac_ext
6017cat >>conftest.$ac_ext <<_ACEOF
6018/* end confdefs.h. */
6019#include <stdlib.h>
6020
6021_ACEOF
6022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6023 $EGREP "free" >/dev/null 2>&1; then
6024 :
6025else
6026 ac_cv_header_stdc=no
6027fi
6028rm -f conftest*
6029
6030fi
6031
6032if test $ac_cv_header_stdc = yes; then
6033 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6034 if test "$cross_compiling" = yes; then
6035 :
6036else
6037 cat >conftest.$ac_ext <<_ACEOF
6038/* confdefs.h. */
6039_ACEOF
6040cat confdefs.h >>conftest.$ac_ext
6041cat >>conftest.$ac_ext <<_ACEOF
6042/* end confdefs.h. */
6043#include <ctype.h>
6044#include <stdlib.h>
6045#if ((' ' & 0x0FF) == 0x020)
6046# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6047# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6048#else
6049# define ISLOWER(c) \
6050 (('a' <= (c) && (c) <= 'i') \
6051 || ('j' <= (c) && (c) <= 'r') \
6052 || ('s' <= (c) && (c) <= 'z'))
6053# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6054#endif
6055
6056#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6057int
6058main ()
6059{
6060 int i;
6061 for (i = 0; i < 256; i++)
6062 if (XOR (islower (i), ISLOWER (i))
6063 || toupper (i) != TOUPPER (i))
6064 return 2;
6065 return 0;
6066}
6067_ACEOF
6068rm -f conftest$ac_exeext
6069if { (ac_try="$ac_link"
6070case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6073esac
6074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6075$as_echo "$ac_try_echo") >&5
6076 (eval "$ac_link") 2>&5
6077 ac_status=$?
6078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6080 { (case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083esac
6084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6085$as_echo "$ac_try_echo") >&5
6086 (eval "$ac_try") 2>&5
6087 ac_status=$?
6088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 :
6091else
6092 $as_echo "$as_me: program exited with status $ac_status" >&5
6093$as_echo "$as_me: failed program was:" >&5
6094sed 's/^/| /' conftest.$ac_ext >&5
6095
6096( exit $ac_status )
6097ac_cv_header_stdc=no
6098fi
6099rm -rf conftest.dSYM
6100rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6101fi
6102
6103
6104fi
6105fi
6106{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6107$as_echo "$ac_cv_header_stdc" >&6; }
6108if test $ac_cv_header_stdc = yes; then
6109
6110cat >>confdefs.h <<\_ACEOF
6111#define STDC_HEADERS 1
6112_ACEOF
6113
6114fi
6115
6116
Martin v. Löwis11437992002-04-12 09:54:03 +00006117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
Anthony Baxter8a560de2004-10-13 15:30:56 +00006152
Martin v. Löwisc3001752005-01-23 09:27:24 +00006153
Martin v. Löwis11017b12006-01-14 18:12:57 +00006154
Martin v. Löwis5f5d99c2006-05-16 07:05:37 +00006155
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +00006156
6157
6158
6159
6160
6161
6162
6163
Martin v. Löwis40e9aed2006-10-02 15:20:37 +00006164
Christian Heimesfb2d25a2008-01-07 16:12:44 +00006165
Christian Heimes0e9ab5f2008-03-21 23:49:44 +00006166
6167
Neal Norwitz9fdfaaf2008-03-28 05:34:59 +00006168
Martin v. Löwis8c255e42008-05-23 15:06:50 +00006169
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +00006170for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
6171fcntl.h grp.h \
Neal Norwitz9fdfaaf2008-03-28 05:34:59 +00006172ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
Martin v. Löwis40e9aed2006-10-02 15:20:37 +00006173shadow.h signal.h stdint.h stropts.h termios.h thread.h \
Martin v. Löwis14e73b12003-01-01 09:51:12 +00006174unistd.h utime.h \
Christian Heimes0e9ab5f2008-03-21 23:49:44 +00006175sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
6176sys/lock.h sys/mkdev.h sys/modem.h \
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +00006177sys/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 +00006178sys/termio.h sys/time.h \
Martin v. Löwis0e8bd7e2006-06-10 12:23:46 +00006179sys/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 +00006180sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
Christian Heimesfb2d25a2008-01-07 16:12:44 +00006181bluetooth/bluetooth.h linux/tipc.h
Guido van Rossum627b2d71993-12-24 10:39:16 +00006182do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006183as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Martin v. Löwiseba40652007-08-30 20:10:57 +00006184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006185 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6186$as_echo_n "checking for $ac_header... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00006187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006188 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00006189fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006190ac_res=`eval 'as_val=${'$as_ac_Header'}
6191 $as_echo "$as_val"'`
6192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6193$as_echo "$ac_res" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006194else
Martin v. Löwis11437992002-04-12 09:54:03 +00006195 # Is the header compilable?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006196{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6197$as_echo_n "checking $ac_header usability... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006198cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006199/* confdefs.h. */
6200_ACEOF
6201cat confdefs.h >>conftest.$ac_ext
6202cat >>conftest.$ac_ext <<_ACEOF
6203/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00006204$ac_includes_default
6205#include <$ac_header>
6206_ACEOF
6207rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006208if { (ac_try="$ac_compile"
6209case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6212esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6214$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006215 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00006216 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006217 grep -v '^ *+' conftest.er1 >conftest.err
6218 rm -f conftest.er1
6219 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006221 (exit $ac_status); } && {
6222 test -z "$ac_c_werror_flag" ||
6223 test ! -s conftest.err
6224 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00006225 ac_header_compiler=yes
Michael W. Hudson54241132001-12-07 15:38:26 +00006226else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006227 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006228sed 's/^/| /' conftest.$ac_ext >&5
6229
Martin v. Löwiseba40652007-08-30 20:10:57 +00006230 ac_header_compiler=no
Martin v. Löwis11437992002-04-12 09:54:03 +00006231fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006232
6233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006234{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6235$as_echo "$ac_header_compiler" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006236
6237# Is the header present?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006238{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6239$as_echo_n "checking $ac_header presence... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006240cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006241/* confdefs.h. */
6242_ACEOF
6243cat confdefs.h >>conftest.$ac_ext
6244cat >>conftest.$ac_ext <<_ACEOF
6245/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00006246#include <$ac_header>
6247_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00006248if { (ac_try="$ac_cpp conftest.$ac_ext"
6249case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6254$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00006256 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00006257 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +00006258 rm -f conftest.er1
6259 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006261 (exit $ac_status); } >/dev/null && {
6262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6263 test ! -s conftest.err
6264 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +00006265 ac_header_preproc=yes
6266else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006267 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006268sed 's/^/| /' conftest.$ac_ext >&5
6269
Martin v. Löwis11437992002-04-12 09:54:03 +00006270 ac_header_preproc=no
Michael W. Hudson54241132001-12-07 15:38:26 +00006271fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006272
Martin v. Löwis11437992002-04-12 09:54:03 +00006273rm -f conftest.err conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006274{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6275$as_echo "$ac_header_preproc" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006276
6277# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6279 yes:no: )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6281$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6283$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00006284 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00006285 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +00006286 no:yes:* )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6288$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6290$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6292$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6294$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6296$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6298$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00006299 ( cat <<\_ASBOX
Georg Brandl464432d2009-05-20 18:24:08 +00006300## -------------------------------------- ##
6301## Report this to http://bugs.python.org/ ##
6302## -------------------------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +00006303_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +00006304 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +00006305 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00006306esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006307{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6308$as_echo_n "checking for $ac_header... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00006309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006310 $as_echo_n "(cached) " >&6
Michael W. Hudson54241132001-12-07 15:38:26 +00006311else
Skip Montanarof0d5f792004-08-15 14:08:23 +00006312 eval "$as_ac_Header=\$ac_header_preproc"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006313fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006314ac_res=`eval 'as_val=${'$as_ac_Header'}
6315 $as_echo "$as_val"'`
6316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6317$as_echo "$ac_res" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006318
6319fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006320as_val=`eval 'as_val=${'$as_ac_Header'}
6321 $as_echo "$as_val"'`
6322 if test "x$as_val" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00006323 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006324#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:03 +00006325_ACEOF
6326
6327fi
6328
Guido van Rossum627b2d71993-12-24 10:39:16 +00006329done
6330
Martin v. Löwis11437992002-04-12 09:54:03 +00006331
6332
6333
6334
6335
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006336ac_header_dirent=no
Martin v. Löwis11437992002-04-12 09:54:03 +00006337for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006338 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6339{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6340$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00006341if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006342 $as_echo_n "(cached) " >&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00006343else
Martin v. Löwis11437992002-04-12 09:54:03 +00006344 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006345/* confdefs.h. */
6346_ACEOF
6347cat confdefs.h >>conftest.$ac_ext
6348cat >>conftest.$ac_ext <<_ACEOF
6349/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006350#include <sys/types.h>
6351#include <$ac_hdr>
Martin v. Löwis11437992002-04-12 09:54:03 +00006352
Martin v. Löwis11437992002-04-12 09:54:03 +00006353int
6354main ()
6355{
6356if ((DIR *) 0)
6357return 0;
6358 ;
6359 return 0;
6360}
6361_ACEOF
6362rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006363if { (ac_try="$ac_compile"
6364case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6369$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006370 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00006371 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006372 grep -v '^ *+' conftest.er1 >conftest.err
6373 rm -f conftest.er1
6374 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006376 (exit $ac_status); } && {
6377 test -z "$ac_c_werror_flag" ||
6378 test ! -s conftest.err
6379 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00006380 eval "$as_ac_Header=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +00006381else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006382 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006383sed 's/^/| /' conftest.$ac_ext >&5
6384
Martin v. Löwiseba40652007-08-30 20:10:57 +00006385 eval "$as_ac_Header=no"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006386fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006387
6388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00006389fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006390ac_res=`eval 'as_val=${'$as_ac_Header'}
6391 $as_echo "$as_val"'`
6392 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6393$as_echo "$ac_res" >&6; }
6394as_val=`eval 'as_val=${'$as_ac_Header'}
6395 $as_echo "$as_val"'`
6396 if test "x$as_val" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00006397 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006398#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:03 +00006399_ACEOF
6400
6401ac_header_dirent=$ac_hdr; break
Michael W. Hudson54241132001-12-07 15:38:26 +00006402fi
Martin v. Löwis11437992002-04-12 09:54:03 +00006403
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006404done
6405# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6406if test $ac_header_dirent = dirent.h; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006407 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6408$as_echo_n "checking for library containing opendir... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006409if test "${ac_cv_search_opendir+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006410 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006411else
Martin v. Löwis11437992002-04-12 09:54:03 +00006412 ac_func_search_save_LIBS=$LIBS
Martin v. Löwis11437992002-04-12 09:54:03 +00006413cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006414/* confdefs.h. */
6415_ACEOF
6416cat confdefs.h >>conftest.$ac_ext
6417cat >>conftest.$ac_ext <<_ACEOF
6418/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00006419
Martin v. Löwiseba40652007-08-30 20:10:57 +00006420/* Override any GCC internal prototype to avoid an error.
6421 Use char because int might match the return type of a GCC
6422 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00006423#ifdef __cplusplus
6424extern "C"
6425#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00006426char opendir ();
Martin v. Löwis11437992002-04-12 09:54:03 +00006427int
6428main ()
6429{
Martin v. Löwiseba40652007-08-30 20:10:57 +00006430return opendir ();
Martin v. Löwis11437992002-04-12 09:54:03 +00006431 ;
6432 return 0;
6433}
6434_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00006435for ac_lib in '' dir; do
6436 if test -z "$ac_lib"; then
6437 ac_res="none required"
6438 else
6439 ac_res=-l$ac_lib
Skip Montanaro89e975f2007-08-22 19:05:21 +00006440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Martin v. Löwiseba40652007-08-30 20:10:57 +00006441 fi
6442 rm -f conftest.$ac_objext conftest$ac_exeext
6443if { (ac_try="$ac_link"
6444case "(($ac_try" in
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6447esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6449$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006450 (eval "$ac_link") 2>conftest.er1
Skip Montanaro89e975f2007-08-22 19:05:21 +00006451 ac_status=$?
6452 grep -v '^ *+' conftest.er1 >conftest.err
6453 rm -f conftest.er1
6454 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006456 (exit $ac_status); } && {
6457 test -z "$ac_c_werror_flag" ||
6458 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006459 } && test -s conftest$ac_exeext && {
6460 test "$cross_compiling" = yes ||
6461 $as_test_x conftest$ac_exeext
6462 }; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00006463 ac_cv_search_opendir=$ac_res
Brett Cannon19fab762007-06-02 03:02:29 +00006464else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006465 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro89e975f2007-08-22 19:05:21 +00006466sed 's/^/| /' conftest.$ac_ext >&5
6467
Martin v. Löwiseba40652007-08-30 20:10:57 +00006468
Brett Cannon19fab762007-06-02 03:02:29 +00006469fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006470
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006471rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +00006472rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6473 conftest$ac_exeext
6474 if test "${ac_cv_search_opendir+set}" = set; then
6475 break
Skip Montanaro89e975f2007-08-22 19:05:21 +00006476fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006477done
6478if test "${ac_cv_search_opendir+set}" = set; then
6479 :
6480else
6481 ac_cv_search_opendir=no
6482fi
6483rm conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00006484LIBS=$ac_func_search_save_LIBS
6485fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006486{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6487$as_echo "$ac_cv_search_opendir" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00006488ac_res=$ac_cv_search_opendir
6489if test "$ac_res" != no; then
6490 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Michael W. Hudson54241132001-12-07 15:38:26 +00006491
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006492fi
Martin v. Löwis11437992002-04-12 09:54:03 +00006493
Michael W. Hudson54241132001-12-07 15:38:26 +00006494else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006495 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6496$as_echo_n "checking for library containing opendir... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00006497if test "${ac_cv_search_opendir+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006498 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00006499else
6500 ac_func_search_save_LIBS=$LIBS
Martin v. Löwis11437992002-04-12 09:54:03 +00006501cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006502/* confdefs.h. */
6503_ACEOF
6504cat confdefs.h >>conftest.$ac_ext
6505cat >>conftest.$ac_ext <<_ACEOF
6506/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00006507
Martin v. Löwiseba40652007-08-30 20:10:57 +00006508/* Override any GCC internal prototype to avoid an error.
6509 Use char because int might match the return type of a GCC
6510 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +00006511#ifdef __cplusplus
6512extern "C"
6513#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00006514char opendir ();
Martin v. Löwis11437992002-04-12 09:54:03 +00006515int
6516main ()
6517{
Martin v. Löwiseba40652007-08-30 20:10:57 +00006518return opendir ();
Martin v. Löwis11437992002-04-12 09:54:03 +00006519 ;
6520 return 0;
6521}
6522_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00006523for ac_lib in '' x; do
6524 if test -z "$ac_lib"; then
6525 ac_res="none required"
6526 else
6527 ac_res=-l$ac_lib
Skip Montanaro89e975f2007-08-22 19:05:21 +00006528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Martin v. Löwiseba40652007-08-30 20:10:57 +00006529 fi
6530 rm -f conftest.$ac_objext conftest$ac_exeext
6531if { (ac_try="$ac_link"
6532case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6537$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006538 (eval "$ac_link") 2>conftest.er1
Skip Montanaro89e975f2007-08-22 19:05:21 +00006539 ac_status=$?
6540 grep -v '^ *+' conftest.er1 >conftest.err
6541 rm -f conftest.er1
6542 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006544 (exit $ac_status); } && {
6545 test -z "$ac_c_werror_flag" ||
6546 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006547 } && test -s conftest$ac_exeext && {
6548 test "$cross_compiling" = yes ||
6549 $as_test_x conftest$ac_exeext
6550 }; then
Martin v. Löwiseba40652007-08-30 20:10:57 +00006551 ac_cv_search_opendir=$ac_res
Brett Cannon19fab762007-06-02 03:02:29 +00006552else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006553 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro89e975f2007-08-22 19:05:21 +00006554sed 's/^/| /' conftest.$ac_ext >&5
6555
Martin v. Löwiseba40652007-08-30 20:10:57 +00006556
Brett Cannon19fab762007-06-02 03:02:29 +00006557fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006558
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006559rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +00006560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6561 conftest$ac_exeext
6562 if test "${ac_cv_search_opendir+set}" = set; then
6563 break
Skip Montanaro89e975f2007-08-22 19:05:21 +00006564fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006565done
6566if test "${ac_cv_search_opendir+set}" = set; then
6567 :
6568else
6569 ac_cv_search_opendir=no
6570fi
6571rm conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00006572LIBS=$ac_func_search_save_LIBS
6573fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006574{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6575$as_echo "$ac_cv_search_opendir" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00006576ac_res=$ac_cv_search_opendir
6577if test "$ac_res" != no; then
6578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +00006579
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006580fi
6581
6582fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00006583
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006584{ $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6585$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006586if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006587 $as_echo_n "(cached) " >&6
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006588else
6589 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006590/* confdefs.h. */
6591_ACEOF
6592cat confdefs.h >>conftest.$ac_ext
6593cat >>conftest.$ac_ext <<_ACEOF
6594/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006595#include <sys/types.h>
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006596int
6597main ()
6598{
6599return makedev(0, 0);
6600 ;
6601 return 0;
6602}
6603_ACEOF
6604rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006605if { (ac_try="$ac_link"
6606case "(($ac_try" in
6607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6608 *) ac_try_echo=$ac_try;;
6609esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6611$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006612 (eval "$ac_link") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006613 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006614 grep -v '^ *+' conftest.er1 >conftest.err
6615 rm -f conftest.er1
6616 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006618 (exit $ac_status); } && {
6619 test -z "$ac_c_werror_flag" ||
6620 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006621 } && test -s conftest$ac_exeext && {
6622 test "$cross_compiling" = yes ||
6623 $as_test_x conftest$ac_exeext
6624 }; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006625 ac_cv_header_sys_types_h_makedev=yes
6626else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006627 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006628sed 's/^/| /' conftest.$ac_ext >&5
6629
Martin v. Löwiseba40652007-08-30 20:10:57 +00006630 ac_cv_header_sys_types_h_makedev=no
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006631fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006632
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006633rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +00006634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +00006635 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006636
6637fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006638{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6639$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006640
6641if test $ac_cv_header_sys_types_h_makedev = no; then
6642if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006643 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6644$as_echo_n "checking for sys/mkdev.h... " >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006645if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006646 $as_echo_n "(cached) " >&6
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006647fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006648{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6649$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006650else
6651 # Is the header compilable?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006652{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6653$as_echo_n "checking sys/mkdev.h usability... " >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006654cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006655/* confdefs.h. */
6656_ACEOF
6657cat confdefs.h >>conftest.$ac_ext
6658cat >>conftest.$ac_ext <<_ACEOF
6659/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006660$ac_includes_default
6661#include <sys/mkdev.h>
6662_ACEOF
6663rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006664if { (ac_try="$ac_compile"
6665case "(($ac_try" in
6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667 *) ac_try_echo=$ac_try;;
6668esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6670$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006671 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006672 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006677 (exit $ac_status); } && {
6678 test -z "$ac_c_werror_flag" ||
6679 test ! -s conftest.err
6680 } && test -s conftest.$ac_objext; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006681 ac_header_compiler=yes
6682else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006683 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006684sed 's/^/| /' conftest.$ac_ext >&5
6685
Martin v. Löwiseba40652007-08-30 20:10:57 +00006686 ac_header_compiler=no
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006687fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006688
6689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006690{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6691$as_echo "$ac_header_compiler" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006692
6693# Is the header present?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006694{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6695$as_echo_n "checking sys/mkdev.h presence... " >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006696cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006697/* confdefs.h. */
6698_ACEOF
6699cat confdefs.h >>conftest.$ac_ext
6700cat >>conftest.$ac_ext <<_ACEOF
6701/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006702#include <sys/mkdev.h>
6703_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00006704if { (ac_try="$ac_cpp conftest.$ac_ext"
6705case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6708esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6710$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006712 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00006713 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006714 rm -f conftest.er1
6715 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006717 (exit $ac_status); } >/dev/null && {
6718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6719 test ! -s conftest.err
6720 }; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006721 ac_header_preproc=yes
6722else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006723 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006724sed 's/^/| /' conftest.$ac_ext >&5
6725
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006726 ac_header_preproc=no
6727fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006728
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006729rm -f conftest.err conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006730{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6731$as_echo "$ac_header_preproc" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006732
6733# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6735 yes:no: )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006736 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6737$as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6738 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6739$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00006740 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00006741 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +00006742 no:yes:* )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006743 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6744$as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6745 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6746$as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6747 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6748$as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6749 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6750$as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6751 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6752$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6753 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6754$as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00006755 ( cat <<\_ASBOX
Georg Brandl464432d2009-05-20 18:24:08 +00006756## -------------------------------------- ##
6757## Report this to http://bugs.python.org/ ##
6758## -------------------------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +00006759_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +00006760 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +00006761 ;;
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006762esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006763{ $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6764$as_echo_n "checking for sys/mkdev.h... " >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006765if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006766 $as_echo_n "(cached) " >&6
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006767else
6768 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6769fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006770{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6771$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006772
6773fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006774if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006775
6776cat >>confdefs.h <<\_ACEOF
6777#define MAJOR_IN_MKDEV 1
6778_ACEOF
6779
6780fi
6781
6782
6783
6784 if test $ac_cv_header_sys_mkdev_h = no; then
6785 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006786 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6787$as_echo_n "checking for sys/sysmacros.h... " >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006788if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006789 $as_echo_n "(cached) " >&6
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006790fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006791{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6792$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006793else
6794 # Is the header compilable?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006795{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6796$as_echo_n "checking sys/sysmacros.h usability... " >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006797cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006798/* confdefs.h. */
6799_ACEOF
6800cat confdefs.h >>conftest.$ac_ext
6801cat >>conftest.$ac_ext <<_ACEOF
6802/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006803$ac_includes_default
6804#include <sys/sysmacros.h>
6805_ACEOF
6806rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006807if { (ac_try="$ac_compile"
6808case "(($ac_try" in
6809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810 *) ac_try_echo=$ac_try;;
6811esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6813$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006814 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006815 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006816 grep -v '^ *+' conftest.er1 >conftest.err
6817 rm -f conftest.er1
6818 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006820 (exit $ac_status); } && {
6821 test -z "$ac_c_werror_flag" ||
6822 test ! -s conftest.err
6823 } && test -s conftest.$ac_objext; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006824 ac_header_compiler=yes
6825else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006826 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006827sed 's/^/| /' conftest.$ac_ext >&5
6828
Martin v. Löwiseba40652007-08-30 20:10:57 +00006829 ac_header_compiler=no
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006830fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006831
6832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006833{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6834$as_echo "$ac_header_compiler" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006835
6836# Is the header present?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006837{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6838$as_echo_n "checking sys/sysmacros.h presence... " >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006839cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00006840/* confdefs.h. */
6841_ACEOF
6842cat confdefs.h >>conftest.$ac_ext
6843cat >>conftest.$ac_ext <<_ACEOF
6844/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006845#include <sys/sysmacros.h>
6846_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00006847if { (ac_try="$ac_cpp conftest.$ac_ext"
6848case "(($ac_try" in
6849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850 *) ac_try_echo=$ac_try;;
6851esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6853$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006855 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +00006856 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006857 rm -f conftest.er1
6858 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006860 (exit $ac_status); } >/dev/null && {
6861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6862 test ! -s conftest.err
6863 }; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006864 ac_header_preproc=yes
6865else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006866 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00006867sed 's/^/| /' conftest.$ac_ext >&5
6868
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006869 ac_header_preproc=no
6870fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006871
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006872rm -f conftest.err conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006873{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6874$as_echo "$ac_header_preproc" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006875
6876# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +00006877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6878 yes:no: )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006879 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6880$as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6881 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6882$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +00006883 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +00006884 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +00006885 no:yes:* )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006886 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6887$as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6888 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6889$as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6890 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6891$as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6892 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6893$as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6894 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6895$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6896 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6897$as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +00006898 ( cat <<\_ASBOX
Georg Brandl464432d2009-05-20 18:24:08 +00006899## -------------------------------------- ##
6900## Report this to http://bugs.python.org/ ##
6901## -------------------------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +00006902_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +00006903 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +00006904 ;;
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006905esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006906{ $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6907$as_echo_n "checking for sys/sysmacros.h... " >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006908if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006909 $as_echo_n "(cached) " >&6
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006910else
6911 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6912fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006913{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6914$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006915
6916fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006917if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +00006918
6919cat >>confdefs.h <<\_ACEOF
6920#define MAJOR_IN_SYSMACROS 1
6921_ACEOF
6922
6923fi
6924
6925
6926 fi
6927fi
6928
Michael W. Hudson54241132001-12-07 15:38:26 +00006929
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006930# On Solaris, term.h requires curses.h
Martin v. Löwisfd1c69e2004-11-30 22:09:37 +00006931
6932for ac_header in term.h
6933do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006934as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6935{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6936$as_echo_n "checking for $ac_header... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00006937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006938 $as_echo_n "(cached) " >&6
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006939else
6940 cat >conftest.$ac_ext <<_ACEOF
6941/* confdefs.h. */
6942_ACEOF
6943cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h. */
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006946
Martin v. Löwis5d52e782004-09-18 10:07:03 +00006947#ifdef HAVE_CURSES_H
6948#include <curses.h>
6949#endif
6950
6951
Martin v. Löwisfd1c69e2004-11-30 22:09:37 +00006952#include <$ac_header>
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006953_ACEOF
6954rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00006955if { (ac_try="$ac_compile"
6956case "(($ac_try" in
6957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6958 *) ac_try_echo=$ac_try;;
6959esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6961$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006962 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00006968 (exit $ac_status); } && {
6969 test -z "$ac_c_werror_flag" ||
6970 test ! -s conftest.err
6971 } && test -s conftest.$ac_objext; then
Martin v. Löwisfd1c69e2004-11-30 22:09:37 +00006972 eval "$as_ac_Header=yes"
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006973else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006974 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006975sed 's/^/| /' conftest.$ac_ext >&5
6976
Martin v. Löwiseba40652007-08-30 20:10:57 +00006977 eval "$as_ac_Header=no"
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006978fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00006979
6980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006981fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006982ac_res=`eval 'as_val=${'$as_ac_Header'}
6983 $as_echo "$as_val"'`
6984 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6985$as_echo "$ac_res" >&6; }
6986as_val=`eval 'as_val=${'$as_ac_Header'}
6987 $as_echo "$as_val"'`
6988 if test "x$as_val" = x""yes; then
Martin v. Löwisfd1c69e2004-11-30 22:09:37 +00006989 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00006990#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Martin v. Löwisfd1c69e2004-11-30 22:09:37 +00006991_ACEOF
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006992
Martin v. Löwisfd1c69e2004-11-30 22:09:37 +00006993fi
6994
6995done
Martin v. Löwisae2830c2004-09-18 09:54:52 +00006996
6997
Martin v. Löwis11017b12006-01-14 18:12:57 +00006998# On Linux, netlink.h requires asm/types.h
6999
7000for ac_header in linux/netlink.h
7001do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007002as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7003{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7004$as_echo_n "checking for $ac_header... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00007005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007006 $as_echo_n "(cached) " >&6
Martin v. Löwis11017b12006-01-14 18:12:57 +00007007else
7008 cat >conftest.$ac_ext <<_ACEOF
7009/* confdefs.h. */
7010_ACEOF
7011cat confdefs.h >>conftest.$ac_ext
7012cat >>conftest.$ac_ext <<_ACEOF
7013/* end confdefs.h. */
7014
7015#ifdef HAVE_ASM_TYPES_H
7016#include <asm/types.h>
7017#endif
7018#ifdef HAVE_SYS_SOCKET_H
7019#include <sys/socket.h>
7020#endif
7021
7022
7023#include <$ac_header>
7024_ACEOF
7025rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007026if { (ac_try="$ac_compile"
7027case "(($ac_try" in
7028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7029 *) ac_try_echo=$ac_try;;
7030esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7032$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007033 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11017b12006-01-14 18:12:57 +00007034 ac_status=$?
7035 grep -v '^ *+' conftest.er1 >conftest.err
7036 rm -f conftest.er1
7037 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007039 (exit $ac_status); } && {
7040 test -z "$ac_c_werror_flag" ||
7041 test ! -s conftest.err
7042 } && test -s conftest.$ac_objext; then
Martin v. Löwis11017b12006-01-14 18:12:57 +00007043 eval "$as_ac_Header=yes"
7044else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007045 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwis11017b12006-01-14 18:12:57 +00007046sed 's/^/| /' conftest.$ac_ext >&5
7047
Martin v. Löwiseba40652007-08-30 20:10:57 +00007048 eval "$as_ac_Header=no"
Martin v. Löwis11017b12006-01-14 18:12:57 +00007049fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007050
7051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11017b12006-01-14 18:12:57 +00007052fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007053ac_res=`eval 'as_val=${'$as_ac_Header'}
7054 $as_echo "$as_val"'`
7055 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7056$as_echo "$ac_res" >&6; }
7057as_val=`eval 'as_val=${'$as_ac_Header'}
7058 $as_echo "$as_val"'`
7059 if test "x$as_val" = x""yes; then
Martin v. Löwis11017b12006-01-14 18:12:57 +00007060 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007061#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Martin v. Löwis11017b12006-01-14 18:12:57 +00007062_ACEOF
7063
7064fi
7065
7066done
7067
7068
Guido van Rossum627b2d71993-12-24 10:39:16 +00007069# checks for typedefs
Guido van Rossumda88dad1995-01-26 00:46:29 +00007070was_it_defined=no
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007071{ $as_echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
7072$as_echo_n "checking for clock_t in time.h... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007073cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007074/* confdefs.h. */
7075_ACEOF
7076cat confdefs.h >>conftest.$ac_ext
7077cat >>conftest.$ac_ext <<_ACEOF
7078/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007079#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00007080
7081_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +00007083 $EGREP "clock_t" >/dev/null 2>&1; then
Guido van Rossumda88dad1995-01-26 00:46:29 +00007084 was_it_defined=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00007085else
Martin v. Löwis11437992002-04-12 09:54:03 +00007086
7087
7088cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007089#define clock_t long
Martin v. Löwis11437992002-04-12 09:54:03 +00007090_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00007091
Martin v. Löwisc45929e2002-04-06 10:10:49 +00007092
Guido van Rossum627b2d71993-12-24 10:39:16 +00007093fi
7094rm -f conftest*
7095
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007096{ $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5
7097$as_echo "$was_it_defined" >&6; }
Guido van Rossumda88dad1995-01-26 00:46:29 +00007098
Neal Norwitz11690112002-07-30 01:08:28 +00007099# Check whether using makedev requires defining _OSF_SOURCE
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007100{ $as_echo "$as_me:$LINENO: checking for makedev" >&5
7101$as_echo_n "checking for makedev... " >&6; }
Neal Norwitz11690112002-07-30 01:08:28 +00007102cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007103/* confdefs.h. */
7104_ACEOF
7105cat confdefs.h >>conftest.$ac_ext
7106cat >>conftest.$ac_ext <<_ACEOF
7107/* end confdefs.h. */
Neal Norwitz6eb37f02003-02-23 23:28:15 +00007108#include <sys/types.h>
Neal Norwitz11690112002-07-30 01:08:28 +00007109int
7110main ()
7111{
7112 makedev(0, 0)
7113 ;
7114 return 0;
7115}
7116_ACEOF
7117rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007118if { (ac_try="$ac_link"
7119case "(($ac_try" in
7120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7121 *) ac_try_echo=$ac_try;;
7122esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7124$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007125 (eval "$ac_link") 2>conftest.er1
Neal Norwitz11690112002-07-30 01:08:28 +00007126 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007127 grep -v '^ *+' conftest.er1 >conftest.err
7128 rm -f conftest.er1
7129 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007131 (exit $ac_status); } && {
7132 test -z "$ac_c_werror_flag" ||
7133 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007134 } && test -s conftest$ac_exeext && {
7135 test "$cross_compiling" = yes ||
7136 $as_test_x conftest$ac_exeext
7137 }; then
Neal Norwitz11690112002-07-30 01:08:28 +00007138 ac_cv_has_makedev=yes
7139else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007140 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007141sed 's/^/| /' conftest.$ac_ext >&5
7142
Martin v. Löwiseba40652007-08-30 20:10:57 +00007143 ac_cv_has_makedev=no
Neal Norwitz11690112002-07-30 01:08:28 +00007144fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007145
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007146rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +00007147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +00007148 conftest$ac_exeext conftest.$ac_ext
Neal Norwitz11690112002-07-30 01:08:28 +00007149if test "$ac_cv_has_makedev" = "no"; then
7150 # we didn't link, try if _OSF_SOURCE will allow us to link
7151 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007152/* confdefs.h. */
7153_ACEOF
7154cat confdefs.h >>conftest.$ac_ext
7155cat >>conftest.$ac_ext <<_ACEOF
7156/* end confdefs.h. */
Neal Norwitz11690112002-07-30 01:08:28 +00007157
Neal Norwitz6eb37f02003-02-23 23:28:15 +00007158#define _OSF_SOURCE 1
7159#include <sys/types.h>
Neal Norwitz11690112002-07-30 01:08:28 +00007160
Neal Norwitz11690112002-07-30 01:08:28 +00007161int
7162main ()
7163{
7164 makedev(0, 0)
7165 ;
7166 return 0;
7167}
7168_ACEOF
7169rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007170if { (ac_try="$ac_link"
7171case "(($ac_try" in
7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7174esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7176$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007177 (eval "$ac_link") 2>conftest.er1
Neal Norwitz11690112002-07-30 01:08:28 +00007178 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007179 grep -v '^ *+' conftest.er1 >conftest.err
7180 rm -f conftest.er1
7181 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007183 (exit $ac_status); } && {
7184 test -z "$ac_c_werror_flag" ||
7185 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007186 } && test -s conftest$ac_exeext && {
7187 test "$cross_compiling" = yes ||
7188 $as_test_x conftest$ac_exeext
7189 }; then
Neal Norwitz11690112002-07-30 01:08:28 +00007190 ac_cv_has_makedev=yes
7191else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007192 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007193sed 's/^/| /' conftest.$ac_ext >&5
7194
Martin v. Löwiseba40652007-08-30 20:10:57 +00007195 ac_cv_has_makedev=no
Neal Norwitz11690112002-07-30 01:08:28 +00007196fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007197
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007198rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +00007199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +00007200 conftest$ac_exeext conftest.$ac_ext
Neal Norwitz11690112002-07-30 01:08:28 +00007201 if test "$ac_cv_has_makedev" = "yes"; then
7202
7203cat >>confdefs.h <<\_ACEOF
7204#define _OSF_SOURCE 1
7205_ACEOF
7206
7207 fi
7208fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007209{ $as_echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
7210$as_echo "$ac_cv_has_makedev" >&6; }
Neal Norwitz11690112002-07-30 01:08:28 +00007211if test "$ac_cv_has_makedev" = "yes"; then
7212
7213cat >>confdefs.h <<\_ACEOF
7214#define HAVE_MAKEDEV 1
7215_ACEOF
7216
7217fi
7218
Martin v. Löwis399a6892002-10-04 10:22:02 +00007219# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
7220# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
7221# defined, but the compiler does not support pragma redefine_extname,
7222# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
7223# structures (such as rlimit64) without declaring them. As a
7224# work-around, disable LFS on such configurations
7225
7226use_lfs=yes
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007227{ $as_echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
7228$as_echo_n "checking Solaris LFS bug... " >&6; }
Martin v. Löwis399a6892002-10-04 10:22:02 +00007229cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007230/* confdefs.h. */
7231_ACEOF
7232cat confdefs.h >>conftest.$ac_ext
7233cat >>conftest.$ac_ext <<_ACEOF
7234/* end confdefs.h. */
Martin v. Löwis399a6892002-10-04 10:22:02 +00007235
7236#define _LARGEFILE_SOURCE 1
7237#define _FILE_OFFSET_BITS 64
7238#include <sys/resource.h>
7239
Martin v. Löwis399a6892002-10-04 10:22:02 +00007240int
7241main ()
7242{
7243struct rlimit foo;
7244 ;
7245 return 0;
7246}
7247_ACEOF
7248rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007249if { (ac_try="$ac_compile"
7250case "(($ac_try" in
7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252 *) ac_try_echo=$ac_try;;
7253esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7255$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007256 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis399a6892002-10-04 10:22:02 +00007257 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007258 grep -v '^ *+' conftest.er1 >conftest.err
7259 rm -f conftest.er1
7260 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007262 (exit $ac_status); } && {
7263 test -z "$ac_c_werror_flag" ||
7264 test ! -s conftest.err
7265 } && test -s conftest.$ac_objext; then
Martin v. Löwis399a6892002-10-04 10:22:02 +00007266 sol_lfs_bug=no
7267else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007268 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007269sed 's/^/| /' conftest.$ac_ext >&5
7270
Martin v. Löwiseba40652007-08-30 20:10:57 +00007271 sol_lfs_bug=yes
Martin v. Löwis399a6892002-10-04 10:22:02 +00007272fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007273
7274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007275{ $as_echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
7276$as_echo "$sol_lfs_bug" >&6; }
Martin v. Löwis399a6892002-10-04 10:22:02 +00007277if test "$sol_lfs_bug" = "yes"; then
7278 use_lfs=no
7279fi
7280
7281if test "$use_lfs" = "yes"; then
Guido van Rossum810cc512001-09-09 23:51:39 +00007282# Two defines needed to enable largefile support on various platforms
7283# These may affect some typedefs
Guido van Rossum810cc512001-09-09 23:51:39 +00007284
Martin v. Löwis11437992002-04-12 09:54:03 +00007285cat >>confdefs.h <<\_ACEOF
7286#define _LARGEFILE_SOURCE 1
7287_ACEOF
7288
7289
7290cat >>confdefs.h <<\_ACEOF
Guido van Rossum810cc512001-09-09 23:51:39 +00007291#define _FILE_OFFSET_BITS 64
Martin v. Löwis11437992002-04-12 09:54:03 +00007292_ACEOF
Guido van Rossum810cc512001-09-09 23:51:39 +00007293
Martin v. Löwis399a6892002-10-04 10:22:02 +00007294fi
Michael W. Hudson54241132001-12-07 15:38:26 +00007295
Guido van Rossum84e7b241996-08-19 21:59:00 +00007296# Add some code to confdefs.h so that the test for off_t works on SCO
7297cat >> confdefs.h <<\EOF
7298#if defined(SCO_DS)
7299#undef _OFF_T
7300#endif
7301EOF
7302
Guido van Rossumef2255b2000-03-10 22:30:29 +00007303# Type availability checks
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007304{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
7305$as_echo_n "checking for mode_t... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007306if test "${ac_cv_type_mode_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007307 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007308else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007309 ac_cv_type_mode_t=no
7310cat >conftest.$ac_ext <<_ACEOF
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00007311/* confdefs.h. */
7312_ACEOF
7313cat confdefs.h >>conftest.$ac_ext
7314cat >>conftest.$ac_ext <<_ACEOF
7315/* end confdefs.h. */
7316$ac_includes_default
7317int
7318main ()
7319{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007320if (sizeof (mode_t))
7321 return 0;
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00007322 ;
7323 return 0;
7324}
7325_ACEOF
7326rm -f conftest.$ac_objext
7327if { (ac_try="$ac_compile"
7328case "(($ac_try" in
7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7331esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7333$as_echo "$ac_try_echo") >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00007334 (eval "$ac_compile") 2>conftest.er1
7335 ac_status=$?
7336 grep -v '^ *+' conftest.er1 >conftest.err
7337 rm -f conftest.er1
7338 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00007340 (exit $ac_status); } && {
7341 test -z "$ac_c_werror_flag" ||
7342 test ! -s conftest.err
7343 } && test -s conftest.$ac_objext; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007344 cat >conftest.$ac_ext <<_ACEOF
7345/* confdefs.h. */
7346_ACEOF
7347cat confdefs.h >>conftest.$ac_ext
7348cat >>conftest.$ac_ext <<_ACEOF
7349/* end confdefs.h. */
7350$ac_includes_default
7351int
7352main ()
7353{
7354if (sizeof ((mode_t)))
7355 return 0;
7356 ;
7357 return 0;
7358}
7359_ACEOF
7360rm -f conftest.$ac_objext
7361if { (ac_try="$ac_compile"
7362case "(($ac_try" in
7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7365esac
7366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7367$as_echo "$ac_try_echo") >&5
7368 (eval "$ac_compile") 2>conftest.er1
7369 ac_status=$?
7370 grep -v '^ *+' conftest.er1 >conftest.err
7371 rm -f conftest.er1
7372 cat conftest.err >&5
7373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } && {
7375 test -z "$ac_c_werror_flag" ||
7376 test ! -s conftest.err
7377 } && test -s conftest.$ac_objext; then
7378 :
Jack Jansendd19cf82001-12-06 22:36:17 +00007379else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007380 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007381sed 's/^/| /' conftest.$ac_ext >&5
7382
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007383 ac_cv_type_mode_t=yes
7384fi
7385
7386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7387else
7388 $as_echo "$as_me: failed program was:" >&5
7389sed 's/^/| /' conftest.$ac_ext >&5
7390
7391
Jack Jansendd19cf82001-12-06 22:36:17 +00007392fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007393
7394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00007395fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007396{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7397$as_echo "$ac_cv_type_mode_t" >&6; }
7398if test "x$ac_cv_type_mode_t" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007399 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007400else
Martin v. Löwis11437992002-04-12 09:54:03 +00007401
7402cat >>confdefs.h <<_ACEOF
7403#define mode_t int
7404_ACEOF
7405
7406fi
7407
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007408{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
7409$as_echo_n "checking for off_t... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007410if test "${ac_cv_type_off_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007411 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00007412else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007413 ac_cv_type_off_t=no
7414cat >conftest.$ac_ext <<_ACEOF
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00007415/* confdefs.h. */
7416_ACEOF
7417cat confdefs.h >>conftest.$ac_ext
7418cat >>conftest.$ac_ext <<_ACEOF
7419/* end confdefs.h. */
7420$ac_includes_default
7421int
7422main ()
7423{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007424if (sizeof (off_t))
7425 return 0;
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00007426 ;
7427 return 0;
7428}
7429_ACEOF
7430rm -f conftest.$ac_objext
7431if { (ac_try="$ac_compile"
7432case "(($ac_try" in
7433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7434 *) ac_try_echo=$ac_try;;
7435esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7437$as_echo "$ac_try_echo") >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00007438 (eval "$ac_compile") 2>conftest.er1
7439 ac_status=$?
7440 grep -v '^ *+' conftest.er1 >conftest.err
7441 rm -f conftest.er1
7442 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00007444 (exit $ac_status); } && {
7445 test -z "$ac_c_werror_flag" ||
7446 test ! -s conftest.err
7447 } && test -s conftest.$ac_objext; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007448 cat >conftest.$ac_ext <<_ACEOF
7449/* confdefs.h. */
7450_ACEOF
7451cat confdefs.h >>conftest.$ac_ext
7452cat >>conftest.$ac_ext <<_ACEOF
7453/* end confdefs.h. */
7454$ac_includes_default
7455int
7456main ()
7457{
7458if (sizeof ((off_t)))
7459 return 0;
7460 ;
7461 return 0;
7462}
7463_ACEOF
7464rm -f conftest.$ac_objext
7465if { (ac_try="$ac_compile"
7466case "(($ac_try" in
7467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468 *) ac_try_echo=$ac_try;;
7469esac
7470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7471$as_echo "$ac_try_echo") >&5
7472 (eval "$ac_compile") 2>conftest.er1
7473 ac_status=$?
7474 grep -v '^ *+' conftest.er1 >conftest.err
7475 rm -f conftest.er1
7476 cat conftest.err >&5
7477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); } && {
7479 test -z "$ac_c_werror_flag" ||
7480 test ! -s conftest.err
7481 } && test -s conftest.$ac_objext; then
7482 :
Guido van Rossum627b2d71993-12-24 10:39:16 +00007483else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007484 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007485sed 's/^/| /' conftest.$ac_ext >&5
7486
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007487 ac_cv_type_off_t=yes
7488fi
7489
7490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491else
7492 $as_echo "$as_me: failed program was:" >&5
7493sed 's/^/| /' conftest.$ac_ext >&5
7494
7495
Guido van Rossum627b2d71993-12-24 10:39:16 +00007496fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007497
7498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00007499fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007500{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7501$as_echo "$ac_cv_type_off_t" >&6; }
7502if test "x$ac_cv_type_off_t" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007503 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007504else
Martin v. Löwis11437992002-04-12 09:54:03 +00007505
7506cat >>confdefs.h <<_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00007507#define off_t long int
Martin v. Löwis11437992002-04-12 09:54:03 +00007508_ACEOF
7509
7510fi
7511
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007512{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7513$as_echo_n "checking for pid_t... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007514if test "${ac_cv_type_pid_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007515 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00007516else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007517 ac_cv_type_pid_t=no
7518cat >conftest.$ac_ext <<_ACEOF
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00007519/* confdefs.h. */
7520_ACEOF
7521cat confdefs.h >>conftest.$ac_ext
7522cat >>conftest.$ac_ext <<_ACEOF
7523/* end confdefs.h. */
7524$ac_includes_default
7525int
7526main ()
7527{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007528if (sizeof (pid_t))
7529 return 0;
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00007530 ;
7531 return 0;
7532}
7533_ACEOF
7534rm -f conftest.$ac_objext
7535if { (ac_try="$ac_compile"
7536case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7541$as_echo "$ac_try_echo") >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00007542 (eval "$ac_compile") 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00007548 (exit $ac_status); } && {
7549 test -z "$ac_c_werror_flag" ||
7550 test ! -s conftest.err
7551 } && test -s conftest.$ac_objext; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007552 cat >conftest.$ac_ext <<_ACEOF
7553/* confdefs.h. */
7554_ACEOF
7555cat confdefs.h >>conftest.$ac_ext
7556cat >>conftest.$ac_ext <<_ACEOF
7557/* end confdefs.h. */
7558$ac_includes_default
7559int
7560main ()
7561{
7562if (sizeof ((pid_t)))
7563 return 0;
7564 ;
7565 return 0;
7566}
7567_ACEOF
7568rm -f conftest.$ac_objext
7569if { (ac_try="$ac_compile"
7570case "(($ac_try" in
7571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572 *) ac_try_echo=$ac_try;;
7573esac
7574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7575$as_echo "$ac_try_echo") >&5
7576 (eval "$ac_compile") 2>conftest.er1
7577 ac_status=$?
7578 grep -v '^ *+' conftest.er1 >conftest.err
7579 rm -f conftest.er1
7580 cat conftest.err >&5
7581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } && {
7583 test -z "$ac_c_werror_flag" ||
7584 test ! -s conftest.err
7585 } && test -s conftest.$ac_objext; then
7586 :
Guido van Rossum627b2d71993-12-24 10:39:16 +00007587else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007588 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007589sed 's/^/| /' conftest.$ac_ext >&5
7590
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007591 ac_cv_type_pid_t=yes
7592fi
7593
7594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595else
7596 $as_echo "$as_me: failed program was:" >&5
7597sed 's/^/| /' conftest.$ac_ext >&5
7598
7599
Guido van Rossum627b2d71993-12-24 10:39:16 +00007600fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007601
7602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00007603fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007604{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7605$as_echo "$ac_cv_type_pid_t" >&6; }
7606if test "x$ac_cv_type_pid_t" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007607 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007608else
Martin v. Löwis11437992002-04-12 09:54:03 +00007609
7610cat >>confdefs.h <<_ACEOF
7611#define pid_t int
7612_ACEOF
7613
7614fi
7615
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007616{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7617$as_echo_n "checking return type of signal handlers... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007618if test "${ac_cv_type_signal+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007619 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00007620else
7621 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007622/* confdefs.h. */
7623_ACEOF
7624cat confdefs.h >>conftest.$ac_ext
7625cat >>conftest.$ac_ext <<_ACEOF
7626/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +00007627#include <sys/types.h>
7628#include <signal.h>
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00007629
Martin v. Löwis11437992002-04-12 09:54:03 +00007630int
7631main ()
7632{
Martin v. Löwiseba40652007-08-30 20:10:57 +00007633return *(signal (0, 0)) (0) == 1;
Martin v. Löwis11437992002-04-12 09:54:03 +00007634 ;
7635 return 0;
7636}
7637_ACEOF
7638rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00007639if { (ac_try="$ac_compile"
7640case "(($ac_try" in
7641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642 *) ac_try_echo=$ac_try;;
7643esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7645$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007646 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00007647 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00007648 grep -v '^ *+' conftest.er1 >conftest.err
7649 rm -f conftest.er1
7650 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00007652 (exit $ac_status); } && {
7653 test -z "$ac_c_werror_flag" ||
7654 test ! -s conftest.err
7655 } && test -s conftest.$ac_objext; then
7656 ac_cv_type_signal=int
Guido van Rossum627b2d71993-12-24 10:39:16 +00007657else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007658 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007659sed 's/^/| /' conftest.$ac_ext >&5
7660
Martin v. Löwiseba40652007-08-30 20:10:57 +00007661 ac_cv_type_signal=void
Guido van Rossum627b2d71993-12-24 10:39:16 +00007662fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007663
7664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007665fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007666{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7667$as_echo "$ac_cv_type_signal" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00007668
Martin v. Löwis11437992002-04-12 09:54:03 +00007669cat >>confdefs.h <<_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007670#define RETSIGTYPE $ac_cv_type_signal
Martin v. Löwis11437992002-04-12 09:54:03 +00007671_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00007672
Michael W. Hudson54241132001-12-07 15:38:26 +00007673
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007674{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
7675$as_echo_n "checking for size_t... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007676if test "${ac_cv_type_size_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007677 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007678else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007679 ac_cv_type_size_t=no
7680cat >conftest.$ac_ext <<_ACEOF
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00007681/* confdefs.h. */
7682_ACEOF
7683cat confdefs.h >>conftest.$ac_ext
7684cat >>conftest.$ac_ext <<_ACEOF
7685/* end confdefs.h. */
7686$ac_includes_default
7687int
7688main ()
7689{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007690if (sizeof (size_t))
7691 return 0;
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00007692 ;
7693 return 0;
7694}
7695_ACEOF
7696rm -f conftest.$ac_objext
7697if { (ac_try="$ac_compile"
7698case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7701esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7703$as_echo "$ac_try_echo") >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00007704 (eval "$ac_compile") 2>conftest.er1
7705 ac_status=$?
7706 grep -v '^ *+' conftest.er1 >conftest.err
7707 rm -f conftest.er1
7708 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00007710 (exit $ac_status); } && {
7711 test -z "$ac_c_werror_flag" ||
7712 test ! -s conftest.err
7713 } && test -s conftest.$ac_objext; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007714 cat >conftest.$ac_ext <<_ACEOF
7715/* confdefs.h. */
7716_ACEOF
7717cat confdefs.h >>conftest.$ac_ext
7718cat >>conftest.$ac_ext <<_ACEOF
7719/* end confdefs.h. */
7720$ac_includes_default
7721int
7722main ()
7723{
7724if (sizeof ((size_t)))
7725 return 0;
7726 ;
7727 return 0;
7728}
7729_ACEOF
7730rm -f conftest.$ac_objext
7731if { (ac_try="$ac_compile"
7732case "(($ac_try" in
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7735esac
7736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7737$as_echo "$ac_try_echo") >&5
7738 (eval "$ac_compile") 2>conftest.er1
7739 ac_status=$?
7740 grep -v '^ *+' conftest.er1 >conftest.err
7741 rm -f conftest.er1
7742 cat conftest.err >&5
7743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_c_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest.$ac_objext; then
7748 :
Guido van Rossum627b2d71993-12-24 10:39:16 +00007749else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007750 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00007751sed 's/^/| /' conftest.$ac_ext >&5
7752
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007753 ac_cv_type_size_t=yes
7754fi
7755
7756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757else
7758 $as_echo "$as_me: failed program was:" >&5
7759sed 's/^/| /' conftest.$ac_ext >&5
7760
7761
Guido van Rossum627b2d71993-12-24 10:39:16 +00007762fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00007763
7764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00007765fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007766{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7767$as_echo "$ac_cv_type_size_t" >&6; }
7768if test "x$ac_cv_type_size_t" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007769 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007770else
Martin v. Löwis11437992002-04-12 09:54:03 +00007771
7772cat >>confdefs.h <<_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +00007773#define size_t unsigned int
Martin v. Löwis11437992002-04-12 09:54:03 +00007774_ACEOF
7775
7776fi
7777
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007778{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7779$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00007780if test "${ac_cv_type_uid_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007781 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00007782else
7783 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00007784/* confdefs.h. */
7785_ACEOF
7786cat confdefs.h >>conftest.$ac_ext
7787cat >>conftest.$ac_ext <<_ACEOF
7788/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007789#include <sys/types.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00007790
7791_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +00007793 $EGREP "uid_t" >/dev/null 2>&1; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007794 ac_cv_type_uid_t=yes
7795else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007796 ac_cv_type_uid_t=no
7797fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00007798rm -f conftest*
7799
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007800fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007801{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7802$as_echo "$ac_cv_type_uid_t" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +00007803if test $ac_cv_type_uid_t = no; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007804
Martin v. Löwis11437992002-04-12 09:54:03 +00007805cat >>confdefs.h <<\_ACEOF
7806#define uid_t int
7807_ACEOF
7808
7809
7810cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007811#define gid_t int
Martin v. Löwis11437992002-04-12 09:54:03 +00007812_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00007813
7814fi
7815
Mark Dickinsonefc82f72009-03-20 15:51:55 +00007816
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007817 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7818$as_echo_n "checking for uint32_t... " >&6; }
Mark Dickinsonefc82f72009-03-20 15:51:55 +00007819if test "${ac_cv_c_uint32_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007820 $as_echo_n "(cached) " >&6
Mark Dickinsonefc82f72009-03-20 15:51:55 +00007821else
7822 ac_cv_c_uint32_t=no
7823 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7824 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7825 cat >conftest.$ac_ext <<_ACEOF
7826/* confdefs.h. */
7827_ACEOF
7828cat confdefs.h >>conftest.$ac_ext
7829cat >>conftest.$ac_ext <<_ACEOF
7830/* end confdefs.h. */
7831$ac_includes_default
7832int
7833main ()
7834{
7835static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7836test_array [0] = 0
7837
7838 ;
7839 return 0;
7840}
7841_ACEOF
7842rm -f conftest.$ac_objext
7843if { (ac_try="$ac_compile"
7844case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7847esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7849$as_echo "$ac_try_echo") >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00007850 (eval "$ac_compile") 2>conftest.er1
7851 ac_status=$?
7852 grep -v '^ *+' conftest.er1 >conftest.err
7853 rm -f conftest.er1
7854 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00007856 (exit $ac_status); } && {
7857 test -z "$ac_c_werror_flag" ||
7858 test ! -s conftest.err
7859 } && test -s conftest.$ac_objext; then
7860 case $ac_type in
7861 uint32_t) ac_cv_c_uint32_t=yes ;;
7862 *) ac_cv_c_uint32_t=$ac_type ;;
7863esac
7864
7865else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007866 $as_echo "$as_me: failed program was:" >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00007867sed 's/^/| /' conftest.$ac_ext >&5
7868
7869
7870fi
7871
7872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873 test "$ac_cv_c_uint32_t" != no && break
7874 done
7875fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007876{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7877$as_echo "$ac_cv_c_uint32_t" >&6; }
Mark Dickinsonefc82f72009-03-20 15:51:55 +00007878 case $ac_cv_c_uint32_t in #(
7879 no|yes) ;; #(
7880 *)
7881
7882cat >>confdefs.h <<\_ACEOF
7883#define _UINT32_T 1
7884_ACEOF
7885
7886
7887cat >>confdefs.h <<_ACEOF
7888#define uint32_t $ac_cv_c_uint32_t
7889_ACEOF
7890;;
7891 esac
7892
7893
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007894 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7895$as_echo_n "checking for uint64_t... " >&6; }
Mark Dickinsonefc82f72009-03-20 15:51:55 +00007896if test "${ac_cv_c_uint64_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007897 $as_echo_n "(cached) " >&6
Mark Dickinsonefc82f72009-03-20 15:51:55 +00007898else
7899 ac_cv_c_uint64_t=no
7900 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7901 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7902 cat >conftest.$ac_ext <<_ACEOF
7903/* confdefs.h. */
7904_ACEOF
7905cat confdefs.h >>conftest.$ac_ext
7906cat >>conftest.$ac_ext <<_ACEOF
7907/* end confdefs.h. */
7908$ac_includes_default
7909int
7910main ()
7911{
7912static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7913test_array [0] = 0
7914
7915 ;
7916 return 0;
7917}
7918_ACEOF
7919rm -f conftest.$ac_objext
7920if { (ac_try="$ac_compile"
7921case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7926$as_echo "$ac_try_echo") >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00007927 (eval "$ac_compile") 2>conftest.er1
7928 ac_status=$?
7929 grep -v '^ *+' conftest.er1 >conftest.err
7930 rm -f conftest.er1
7931 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00007933 (exit $ac_status); } && {
7934 test -z "$ac_c_werror_flag" ||
7935 test ! -s conftest.err
7936 } && test -s conftest.$ac_objext; then
7937 case $ac_type in
7938 uint64_t) ac_cv_c_uint64_t=yes ;;
7939 *) ac_cv_c_uint64_t=$ac_type ;;
7940esac
7941
7942else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007943 $as_echo "$as_me: failed program was:" >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00007944sed 's/^/| /' conftest.$ac_ext >&5
7945
7946
7947fi
7948
7949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950 test "$ac_cv_c_uint64_t" != no && break
7951 done
7952fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007953{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7954$as_echo "$ac_cv_c_uint64_t" >&6; }
Mark Dickinsonefc82f72009-03-20 15:51:55 +00007955 case $ac_cv_c_uint64_t in #(
7956 no|yes) ;; #(
7957 *)
7958
7959cat >>confdefs.h <<\_ACEOF
7960#define _UINT64_T 1
7961_ACEOF
7962
7963
7964cat >>confdefs.h <<_ACEOF
7965#define uint64_t $ac_cv_c_uint64_t
7966_ACEOF
7967;;
7968 esac
7969
7970
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007971 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7972$as_echo_n "checking for int32_t... " >&6; }
Mark Dickinsonefc82f72009-03-20 15:51:55 +00007973if test "${ac_cv_c_int32_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00007974 $as_echo_n "(cached) " >&6
Mark Dickinsonefc82f72009-03-20 15:51:55 +00007975else
7976 ac_cv_c_int32_t=no
7977 for ac_type in 'int32_t' 'int' 'long int' \
7978 'long long int' 'short int' 'signed char'; do
7979 cat >conftest.$ac_ext <<_ACEOF
7980/* confdefs.h. */
7981_ACEOF
7982cat confdefs.h >>conftest.$ac_ext
7983cat >>conftest.$ac_ext <<_ACEOF
7984/* end confdefs.h. */
7985$ac_includes_default
7986int
7987main ()
7988{
7989static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7990test_array [0] = 0
7991
7992 ;
7993 return 0;
7994}
7995_ACEOF
7996rm -f conftest.$ac_objext
7997if { (ac_try="$ac_compile"
7998case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8001esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8003$as_echo "$ac_try_echo") >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008004 (eval "$ac_compile") 2>conftest.er1
8005 ac_status=$?
8006 grep -v '^ *+' conftest.er1 >conftest.err
8007 rm -f conftest.er1
8008 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008010 (exit $ac_status); } && {
8011 test -z "$ac_c_werror_flag" ||
8012 test ! -s conftest.err
8013 } && test -s conftest.$ac_objext; then
8014 cat >conftest.$ac_ext <<_ACEOF
8015/* confdefs.h. */
8016_ACEOF
8017cat confdefs.h >>conftest.$ac_ext
8018cat >>conftest.$ac_ext <<_ACEOF
8019/* end confdefs.h. */
8020$ac_includes_default
8021int
8022main ()
8023{
8024static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008025 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008026test_array [0] = 0
8027
8028 ;
8029 return 0;
8030}
8031_ACEOF
8032rm -f conftest.$ac_objext
8033if { (ac_try="$ac_compile"
8034case "(($ac_try" in
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8037esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008038eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8039$as_echo "$ac_try_echo") >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008040 (eval "$ac_compile") 2>conftest.er1
8041 ac_status=$?
8042 grep -v '^ *+' conftest.er1 >conftest.err
8043 rm -f conftest.er1
8044 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008046 (exit $ac_status); } && {
8047 test -z "$ac_c_werror_flag" ||
8048 test ! -s conftest.err
8049 } && test -s conftest.$ac_objext; then
8050 :
8051else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008052 $as_echo "$as_me: failed program was:" >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008053sed 's/^/| /' conftest.$ac_ext >&5
8054
8055 case $ac_type in
8056 int32_t) ac_cv_c_int32_t=yes ;;
8057 *) ac_cv_c_int32_t=$ac_type ;;
8058esac
8059
8060fi
8061
8062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008064 $as_echo "$as_me: failed program was:" >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008065sed 's/^/| /' conftest.$ac_ext >&5
8066
8067
8068fi
8069
8070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071 test "$ac_cv_c_int32_t" != no && break
8072 done
8073fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008074{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8075$as_echo "$ac_cv_c_int32_t" >&6; }
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008076 case $ac_cv_c_int32_t in #(
8077 no|yes) ;; #(
8078 *)
8079
8080cat >>confdefs.h <<_ACEOF
8081#define int32_t $ac_cv_c_int32_t
8082_ACEOF
8083;;
8084 esac
8085
8086
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008087 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
8088$as_echo_n "checking for int64_t... " >&6; }
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008089if test "${ac_cv_c_int64_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008090 $as_echo_n "(cached) " >&6
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008091else
8092 ac_cv_c_int64_t=no
8093 for ac_type in 'int64_t' 'int' 'long int' \
8094 'long long int' 'short int' 'signed char'; do
8095 cat >conftest.$ac_ext <<_ACEOF
8096/* confdefs.h. */
8097_ACEOF
8098cat confdefs.h >>conftest.$ac_ext
8099cat >>conftest.$ac_ext <<_ACEOF
8100/* end confdefs.h. */
8101$ac_includes_default
8102int
8103main ()
8104{
8105static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
8106test_array [0] = 0
8107
8108 ;
8109 return 0;
8110}
8111_ACEOF
8112rm -f conftest.$ac_objext
8113if { (ac_try="$ac_compile"
8114case "(($ac_try" in
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8117esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8119$as_echo "$ac_try_echo") >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008120 (eval "$ac_compile") 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest.$ac_objext; then
8130 cat >conftest.$ac_ext <<_ACEOF
8131/* confdefs.h. */
8132_ACEOF
8133cat confdefs.h >>conftest.$ac_ext
8134cat >>conftest.$ac_ext <<_ACEOF
8135/* end confdefs.h. */
8136$ac_includes_default
8137int
8138main ()
8139{
8140static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008141 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008142test_array [0] = 0
8143
8144 ;
8145 return 0;
8146}
8147_ACEOF
8148rm -f conftest.$ac_objext
8149if { (ac_try="$ac_compile"
8150case "(($ac_try" in
8151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8152 *) ac_try_echo=$ac_try;;
8153esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8155$as_echo "$ac_try_echo") >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008156 (eval "$ac_compile") 2>conftest.er1
8157 ac_status=$?
8158 grep -v '^ *+' conftest.er1 >conftest.err
8159 rm -f conftest.er1
8160 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008162 (exit $ac_status); } && {
8163 test -z "$ac_c_werror_flag" ||
8164 test ! -s conftest.err
8165 } && test -s conftest.$ac_objext; then
8166 :
8167else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008168 $as_echo "$as_me: failed program was:" >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008169sed 's/^/| /' conftest.$ac_ext >&5
8170
8171 case $ac_type in
8172 int64_t) ac_cv_c_int64_t=yes ;;
8173 *) ac_cv_c_int64_t=$ac_type ;;
8174esac
8175
8176fi
8177
8178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008180 $as_echo "$as_me: failed program was:" >&5
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008181sed 's/^/| /' conftest.$ac_ext >&5
8182
8183
8184fi
8185
8186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 test "$ac_cv_c_int64_t" != no && break
8188 done
8189fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008190{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
8191$as_echo "$ac_cv_c_int64_t" >&6; }
Mark Dickinsonefc82f72009-03-20 15:51:55 +00008192 case $ac_cv_c_int64_t in #(
8193 no|yes) ;; #(
8194 *)
8195
8196cat >>confdefs.h <<_ACEOF
8197#define int64_t $ac_cv_c_int64_t
8198_ACEOF
8199;;
8200 esac
8201
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008202{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
8203$as_echo_n "checking for ssize_t... " >&6; }
Martin v. Löwis18e16552006-02-15 17:27:45 +00008204if test "${ac_cv_type_ssize_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008205 $as_echo_n "(cached) " >&6
Martin v. Löwis18e16552006-02-15 17:27:45 +00008206else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008207 ac_cv_type_ssize_t=no
8208cat >conftest.$ac_ext <<_ACEOF
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00008209/* confdefs.h. */
8210_ACEOF
8211cat confdefs.h >>conftest.$ac_ext
8212cat >>conftest.$ac_ext <<_ACEOF
8213/* end confdefs.h. */
8214$ac_includes_default
8215int
8216main ()
8217{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008218if (sizeof (ssize_t))
8219 return 0;
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00008220 ;
8221 return 0;
8222}
8223_ACEOF
8224rm -f conftest.$ac_objext
8225if { (ac_try="$ac_compile"
8226case "(($ac_try" in
8227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8228 *) ac_try_echo=$ac_try;;
8229esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8231$as_echo "$ac_try_echo") >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00008232 (eval "$ac_compile") 2>conftest.er1
8233 ac_status=$?
8234 grep -v '^ *+' conftest.er1 >conftest.err
8235 rm -f conftest.er1
8236 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Antoine Pitrouf2caeed2009-05-24 20:23:57 +00008238 (exit $ac_status); } && {
8239 test -z "$ac_c_werror_flag" ||
8240 test ! -s conftest.err
8241 } && test -s conftest.$ac_objext; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008242 cat >conftest.$ac_ext <<_ACEOF
8243/* confdefs.h. */
8244_ACEOF
8245cat confdefs.h >>conftest.$ac_ext
8246cat >>conftest.$ac_ext <<_ACEOF
8247/* end confdefs.h. */
8248$ac_includes_default
8249int
8250main ()
8251{
8252if (sizeof ((ssize_t)))
8253 return 0;
8254 ;
8255 return 0;
8256}
8257_ACEOF
8258rm -f conftest.$ac_objext
8259if { (ac_try="$ac_compile"
8260case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8263esac
8264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8265$as_echo "$ac_try_echo") >&5
8266 (eval "$ac_compile") 2>conftest.er1
8267 ac_status=$?
8268 grep -v '^ *+' conftest.er1 >conftest.err
8269 rm -f conftest.er1
8270 cat conftest.err >&5
8271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } && {
8273 test -z "$ac_c_werror_flag" ||
8274 test ! -s conftest.err
8275 } && test -s conftest.$ac_objext; then
8276 :
Martin v. Löwis18e16552006-02-15 17:27:45 +00008277else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008278 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwis18e16552006-02-15 17:27:45 +00008279sed 's/^/| /' conftest.$ac_ext >&5
8280
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008281 ac_cv_type_ssize_t=yes
8282fi
8283
8284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8285else
8286 $as_echo "$as_me: failed program was:" >&5
8287sed 's/^/| /' conftest.$ac_ext >&5
8288
8289
Martin v. Löwis18e16552006-02-15 17:27:45 +00008290fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008291
8292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +00008293fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008294{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8295$as_echo "$ac_cv_type_ssize_t" >&6; }
8296if test "x$ac_cv_type_ssize_t" = x""yes; then
Martin v. Löwis18e16552006-02-15 17:27:45 +00008297
8298cat >>confdefs.h <<\_ACEOF
8299#define HAVE_SSIZE_T 1
8300_ACEOF
8301
8302fi
8303
Jack Jansendd19cf82001-12-06 22:36:17 +00008304
Michael W. Hudson54241132001-12-07 15:38:26 +00008305# Sizes of various common basic types
Skip Montanarob9820a32004-01-17 00:16:12 +00008306# ANSI C requires sizeof(char) == 1, so no need to check it
Martin v. Löwiseba40652007-08-30 20:10:57 +00008307# The cast to long int works around a bug in the HP C Compiler
8308# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8309# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8310# This bug is HP SR number 8606223364.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008311{ $as_echo "$as_me:$LINENO: checking size of int" >&5
8312$as_echo_n "checking size of int... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00008313if test "${ac_cv_sizeof_int+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008314 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00008315else
Martin v. Löwis11437992002-04-12 09:54:03 +00008316 if test "$cross_compiling" = yes; then
8317 # Depending upon the size, compute the lo and hi bounds.
8318cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008319/* confdefs.h. */
8320_ACEOF
8321cat confdefs.h >>conftest.$ac_ext
8322cat >>conftest.$ac_ext <<_ACEOF
8323/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008324$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00008325int
8326main ()
8327{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008328static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008329test_array [0] = 0
8330
8331 ;
8332 return 0;
8333}
8334_ACEOF
8335rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008336if { (ac_try="$ac_compile"
8337case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8340esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8342$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008343 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008344 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008345 grep -v '^ *+' conftest.er1 >conftest.err
8346 rm -f conftest.er1
8347 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008349 (exit $ac_status); } && {
8350 test -z "$ac_c_werror_flag" ||
8351 test ! -s conftest.err
8352 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008353 ac_lo=0 ac_mid=0
8354 while :; do
8355 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008356/* confdefs.h. */
8357_ACEOF
8358cat confdefs.h >>conftest.$ac_ext
8359cat >>conftest.$ac_ext <<_ACEOF
8360/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008361$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00008362int
8363main ()
8364{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008365static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008366test_array [0] = 0
8367
8368 ;
8369 return 0;
8370}
8371_ACEOF
8372rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008373if { (ac_try="$ac_compile"
8374case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8377esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8379$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008380 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008381 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008382 grep -v '^ *+' conftest.er1 >conftest.err
8383 rm -f conftest.er1
8384 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008386 (exit $ac_status); } && {
8387 test -z "$ac_c_werror_flag" ||
8388 test ! -s conftest.err
8389 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008390 ac_hi=$ac_mid; break
8391else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008392 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008393sed 's/^/| /' conftest.$ac_ext >&5
8394
Martin v. Löwiseba40652007-08-30 20:10:57 +00008395 ac_lo=`expr $ac_mid + 1`
8396 if test $ac_lo -le $ac_mid; then
8397 ac_lo= ac_hi=
8398 break
8399 fi
8400 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00008401fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008402
8403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008404 done
8405else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008406 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008407sed 's/^/| /' conftest.$ac_ext >&5
8408
Martin v. Löwiseba40652007-08-30 20:10:57 +00008409 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008410/* confdefs.h. */
8411_ACEOF
8412cat confdefs.h >>conftest.$ac_ext
8413cat >>conftest.$ac_ext <<_ACEOF
8414/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008415$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00008416int
8417main ()
8418{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008419static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008420test_array [0] = 0
8421
8422 ;
8423 return 0;
8424}
8425_ACEOF
8426rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008427if { (ac_try="$ac_compile"
8428case "(($ac_try" in
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8431esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8433$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008434 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008435 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008444 ac_hi=-1 ac_mid=-1
8445 while :; do
8446 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008447/* confdefs.h. */
8448_ACEOF
8449cat confdefs.h >>conftest.$ac_ext
8450cat >>conftest.$ac_ext <<_ACEOF
8451/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008452$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00008453int
8454main ()
8455{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008456static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008457test_array [0] = 0
8458
8459 ;
8460 return 0;
8461}
8462_ACEOF
8463rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008464if { (ac_try="$ac_compile"
8465case "(($ac_try" in
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8468esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8470$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008471 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008472 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008473 grep -v '^ *+' conftest.er1 >conftest.err
8474 rm -f conftest.er1
8475 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008477 (exit $ac_status); } && {
8478 test -z "$ac_c_werror_flag" ||
8479 test ! -s conftest.err
8480 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008481 ac_lo=$ac_mid; break
8482else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008483 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008484sed 's/^/| /' conftest.$ac_ext >&5
8485
Martin v. Löwiseba40652007-08-30 20:10:57 +00008486 ac_hi=`expr '(' $ac_mid ')' - 1`
8487 if test $ac_mid -le $ac_hi; then
8488 ac_lo= ac_hi=
8489 break
8490 fi
8491 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00008492fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008493
8494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008495 done
8496else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008497 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008498sed 's/^/| /' conftest.$ac_ext >&5
8499
Martin v. Löwiseba40652007-08-30 20:10:57 +00008500 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00008501fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008502
8503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008504fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008505
8506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008507# Binary search between lo and hi bounds.
8508while test "x$ac_lo" != "x$ac_hi"; do
8509 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8510 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008511/* confdefs.h. */
8512_ACEOF
8513cat confdefs.h >>conftest.$ac_ext
8514cat >>conftest.$ac_ext <<_ACEOF
8515/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008516$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00008517int
8518main ()
8519{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008520static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008521test_array [0] = 0
8522
8523 ;
8524 return 0;
8525}
8526_ACEOF
8527rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008528if { (ac_try="$ac_compile"
8529case "(($ac_try" in
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8532esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8534$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008535 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008536 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008537 grep -v '^ *+' conftest.er1 >conftest.err
8538 rm -f conftest.er1
8539 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008541 (exit $ac_status); } && {
8542 test -z "$ac_c_werror_flag" ||
8543 test ! -s conftest.err
8544 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008545 ac_hi=$ac_mid
8546else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008547 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008548sed 's/^/| /' conftest.$ac_ext >&5
8549
Martin v. Löwiseba40652007-08-30 20:10:57 +00008550 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00008551fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008552
8553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008554done
8555case $ac_lo in
8556?*) ac_cv_sizeof_int=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00008557'') if test "$ac_cv_type_int" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008558 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8560{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Skip Montanaro6dead952003-09-25 14:50:04 +00008561See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008562$as_echo "$as_me: error: cannot compute sizeof (int)
Skip Montanaro6dead952003-09-25 14:50:04 +00008563See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008564 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00008565 else
8566 ac_cv_sizeof_int=0
8567 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00008568esac
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008569else
Martin v. Löwis11437992002-04-12 09:54:03 +00008570 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008571/* confdefs.h. */
8572_ACEOF
8573cat confdefs.h >>conftest.$ac_ext
8574cat >>conftest.$ac_ext <<_ACEOF
8575/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008576$ac_includes_default
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008577static long int longval () { return (long int) (sizeof (int)); }
8578static unsigned long int ulongval () { return (long int) (sizeof (int)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00008579#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00008580#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00008581int
8582main ()
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008583{
Martin v. Löwis11437992002-04-12 09:54:03 +00008584
8585 FILE *f = fopen ("conftest.val", "w");
8586 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +00008587 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008588 if (((long int) (sizeof (int))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00008589 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00008590 long int i = longval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008591 if (i != ((long int) (sizeof (int))))
Martin v. Löwiseba40652007-08-30 20:10:57 +00008592 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008593 fprintf (f, "%ld", i);
Martin v. Löwis11437992002-04-12 09:54:03 +00008594 }
8595 else
8596 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00008597 unsigned long int i = ulongval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008598 if (i != ((long int) (sizeof (int))))
Martin v. Löwiseba40652007-08-30 20:10:57 +00008599 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008600 fprintf (f, "%lu", i);
Martin v. Löwis11437992002-04-12 09:54:03 +00008601 }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008602 /* Do not output a trailing newline, as this causes \r\n confusion
8603 on some platforms. */
Martin v. Löwiseba40652007-08-30 20:10:57 +00008604 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00008605
8606 ;
8607 return 0;
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008608}
Martin v. Löwis11437992002-04-12 09:54:03 +00008609_ACEOF
8610rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008611if { (ac_try="$ac_link"
8612case "(($ac_try" in
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8615esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8617$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008618 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008619 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00008622 { (case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8625esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8627$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008628 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008629 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008631 (exit $ac_status); }; }; then
8632 ac_cv_sizeof_int=`cat conftest.val`
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008633else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008634 $as_echo "$as_me: program exited with status $ac_status" >&5
8635$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008636sed 's/^/| /' conftest.$ac_ext >&5
8637
Martin v. Löwis11437992002-04-12 09:54:03 +00008638( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +00008639if test "$ac_cv_type_int" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008640 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8642{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Skip Montanaro6dead952003-09-25 14:50:04 +00008643See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008644$as_echo "$as_me: error: cannot compute sizeof (int)
Skip Montanaro6dead952003-09-25 14:50:04 +00008645See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008646 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00008647 else
8648 ac_cv_sizeof_int=0
8649 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00008650fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008651rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +00008652rm -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 +00008653fi
8654rm -f conftest.val
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008655fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008656{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8657$as_echo "$ac_cv_sizeof_int" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00008658
8659
8660
Martin v. Löwis11437992002-04-12 09:54:03 +00008661cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008662#define SIZEOF_INT $ac_cv_sizeof_int
Martin v. Löwis11437992002-04-12 09:54:03 +00008663_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008664
8665
Martin v. Löwiseba40652007-08-30 20:10:57 +00008666# The cast to long int works around a bug in the HP C Compiler
8667# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8668# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8669# This bug is HP SR number 8606223364.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008670{ $as_echo "$as_me:$LINENO: checking size of long" >&5
8671$as_echo_n "checking size of long... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00008672if test "${ac_cv_sizeof_long+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008673 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00008674else
Martin v. Löwis11437992002-04-12 09:54:03 +00008675 if test "$cross_compiling" = yes; then
8676 # Depending upon the size, compute the lo and hi bounds.
8677cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008678/* confdefs.h. */
8679_ACEOF
8680cat confdefs.h >>conftest.$ac_ext
8681cat >>conftest.$ac_ext <<_ACEOF
8682/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008683$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00008684int
8685main ()
8686{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008687static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008688test_array [0] = 0
8689
8690 ;
8691 return 0;
8692}
8693_ACEOF
8694rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008695if { (ac_try="$ac_compile"
8696case "(($ac_try" in
8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698 *) ac_try_echo=$ac_try;;
8699esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8701$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008702 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008703 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008704 grep -v '^ *+' conftest.er1 >conftest.err
8705 rm -f conftest.er1
8706 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008708 (exit $ac_status); } && {
8709 test -z "$ac_c_werror_flag" ||
8710 test ! -s conftest.err
8711 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008712 ac_lo=0 ac_mid=0
8713 while :; do
8714 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008715/* confdefs.h. */
8716_ACEOF
8717cat confdefs.h >>conftest.$ac_ext
8718cat >>conftest.$ac_ext <<_ACEOF
8719/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008720$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00008721int
8722main ()
8723{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008724static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008725test_array [0] = 0
8726
8727 ;
8728 return 0;
8729}
8730_ACEOF
8731rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008732if { (ac_try="$ac_compile"
8733case "(($ac_try" in
8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8736esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8738$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008739 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008740 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008741 grep -v '^ *+' conftest.er1 >conftest.err
8742 rm -f conftest.er1
8743 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008745 (exit $ac_status); } && {
8746 test -z "$ac_c_werror_flag" ||
8747 test ! -s conftest.err
8748 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008749 ac_hi=$ac_mid; break
8750else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008751 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008752sed 's/^/| /' conftest.$ac_ext >&5
8753
Martin v. Löwiseba40652007-08-30 20:10:57 +00008754 ac_lo=`expr $ac_mid + 1`
8755 if test $ac_lo -le $ac_mid; then
8756 ac_lo= ac_hi=
8757 break
8758 fi
8759 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00008760fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008761
8762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008763 done
8764else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008765 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008766sed 's/^/| /' conftest.$ac_ext >&5
8767
Martin v. Löwiseba40652007-08-30 20:10:57 +00008768 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008769/* confdefs.h. */
8770_ACEOF
8771cat confdefs.h >>conftest.$ac_ext
8772cat >>conftest.$ac_ext <<_ACEOF
8773/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008774$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00008775int
8776main ()
8777{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008778static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008779test_array [0] = 0
8780
8781 ;
8782 return 0;
8783}
8784_ACEOF
8785rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008786if { (ac_try="$ac_compile"
8787case "(($ac_try" in
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8790esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8792$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008793 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008794 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008795 grep -v '^ *+' conftest.er1 >conftest.err
8796 rm -f conftest.er1
8797 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008799 (exit $ac_status); } && {
8800 test -z "$ac_c_werror_flag" ||
8801 test ! -s conftest.err
8802 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008803 ac_hi=-1 ac_mid=-1
8804 while :; do
8805 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008806/* confdefs.h. */
8807_ACEOF
8808cat confdefs.h >>conftest.$ac_ext
8809cat >>conftest.$ac_ext <<_ACEOF
8810/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008811$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00008812int
8813main ()
8814{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008815static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008816test_array [0] = 0
8817
8818 ;
8819 return 0;
8820}
8821_ACEOF
8822rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008823if { (ac_try="$ac_compile"
8824case "(($ac_try" in
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8827esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8829$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008830 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008831 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008832 grep -v '^ *+' conftest.er1 >conftest.err
8833 rm -f conftest.er1
8834 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008836 (exit $ac_status); } && {
8837 test -z "$ac_c_werror_flag" ||
8838 test ! -s conftest.err
8839 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008840 ac_lo=$ac_mid; break
8841else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008842 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008843sed 's/^/| /' conftest.$ac_ext >&5
8844
Martin v. Löwiseba40652007-08-30 20:10:57 +00008845 ac_hi=`expr '(' $ac_mid ')' - 1`
8846 if test $ac_mid -le $ac_hi; then
8847 ac_lo= ac_hi=
8848 break
8849 fi
8850 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00008851fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008852
8853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008854 done
8855else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008856 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008857sed 's/^/| /' conftest.$ac_ext >&5
8858
Martin v. Löwiseba40652007-08-30 20:10:57 +00008859 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00008860fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008861
8862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008863fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008864
8865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008866# Binary search between lo and hi bounds.
8867while test "x$ac_lo" != "x$ac_hi"; do
8868 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8869 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008870/* confdefs.h. */
8871_ACEOF
8872cat confdefs.h >>conftest.$ac_ext
8873cat >>conftest.$ac_ext <<_ACEOF
8874/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008875$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00008876int
8877main ()
8878{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008879static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00008880test_array [0] = 0
8881
8882 ;
8883 return 0;
8884}
8885_ACEOF
8886rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008887if { (ac_try="$ac_compile"
8888case "(($ac_try" in
8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8891esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8893$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008894 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00008895 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00008896 grep -v '^ *+' conftest.er1 >conftest.err
8897 rm -f conftest.er1
8898 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008900 (exit $ac_status); } && {
8901 test -z "$ac_c_werror_flag" ||
8902 test ! -s conftest.err
8903 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008904 ac_hi=$ac_mid
8905else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008906 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008907sed 's/^/| /' conftest.$ac_ext >&5
8908
Martin v. Löwiseba40652007-08-30 20:10:57 +00008909 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00008910fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00008911
8912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00008913done
8914case $ac_lo in
8915?*) ac_cv_sizeof_long=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00008916'') if test "$ac_cv_type_long" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008917 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8919{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Skip Montanaro6dead952003-09-25 14:50:04 +00008920See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008921$as_echo "$as_me: error: cannot compute sizeof (long)
Skip Montanaro6dead952003-09-25 14:50:04 +00008922See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008923 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00008924 else
8925 ac_cv_sizeof_long=0
8926 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00008927esac
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008928else
Martin v. Löwis11437992002-04-12 09:54:03 +00008929 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00008930/* confdefs.h. */
8931_ACEOF
8932cat confdefs.h >>conftest.$ac_ext
8933cat >>conftest.$ac_ext <<_ACEOF
8934/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00008935$ac_includes_default
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008936static long int longval () { return (long int) (sizeof (long)); }
8937static unsigned long int ulongval () { return (long int) (sizeof (long)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00008938#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00008939#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00008940int
8941main ()
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008942{
Martin v. Löwis11437992002-04-12 09:54:03 +00008943
8944 FILE *f = fopen ("conftest.val", "w");
8945 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +00008946 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008947 if (((long int) (sizeof (long))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00008948 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00008949 long int i = longval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008950 if (i != ((long int) (sizeof (long))))
Martin v. Löwiseba40652007-08-30 20:10:57 +00008951 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008952 fprintf (f, "%ld", i);
Martin v. Löwis11437992002-04-12 09:54:03 +00008953 }
8954 else
8955 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00008956 unsigned long int i = ulongval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008957 if (i != ((long int) (sizeof (long))))
Martin v. Löwiseba40652007-08-30 20:10:57 +00008958 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008959 fprintf (f, "%lu", i);
Martin v. Löwis11437992002-04-12 09:54:03 +00008960 }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008961 /* Do not output a trailing newline, as this causes \r\n confusion
8962 on some platforms. */
Martin v. Löwiseba40652007-08-30 20:10:57 +00008963 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00008964
8965 ;
8966 return 0;
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008967}
Martin v. Löwis11437992002-04-12 09:54:03 +00008968_ACEOF
8969rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00008970if { (ac_try="$ac_link"
8971case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8974esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8976$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008977 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008978 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00008981 { (case "(($ac_try" in
8982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983 *) ac_try_echo=$ac_try;;
8984esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8986$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00008987 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008988 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00008990 (exit $ac_status); }; }; then
8991 ac_cv_sizeof_long=`cat conftest.val`
Guido van Rossumccaf3b61996-12-06 21:19:16 +00008992else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008993 $as_echo "$as_me: program exited with status $ac_status" >&5
8994$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00008995sed 's/^/| /' conftest.$ac_ext >&5
8996
Martin v. Löwis11437992002-04-12 09:54:03 +00008997( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +00008998if test "$ac_cv_type_long" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00008999 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9001{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Skip Montanaro6dead952003-09-25 14:50:04 +00009002See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009003$as_echo "$as_me: error: cannot compute sizeof (long)
Skip Montanaro6dead952003-09-25 14:50:04 +00009004See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009005 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00009006 else
9007 ac_cv_sizeof_long=0
9008 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009009fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009010rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +00009011rm -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 +00009012fi
9013rm -f conftest.val
Guido van Rossumccaf3b61996-12-06 21:19:16 +00009014fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009015{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9016$as_echo "$ac_cv_sizeof_long" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00009017
9018
9019
Martin v. Löwis11437992002-04-12 09:54:03 +00009020cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00009021#define SIZEOF_LONG $ac_cv_sizeof_long
Martin v. Löwis11437992002-04-12 09:54:03 +00009022_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00009023
9024
Martin v. Löwiseba40652007-08-30 20:10:57 +00009025# The cast to long int works around a bug in the HP C Compiler
9026# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9027# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9028# This bug is HP SR number 8606223364.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009029{ $as_echo "$as_me:$LINENO: checking size of void *" >&5
9030$as_echo_n "checking size of void *... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00009031if test "${ac_cv_sizeof_void_p+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009032 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00009033else
Martin v. Löwis11437992002-04-12 09:54:03 +00009034 if test "$cross_compiling" = yes; then
9035 # Depending upon the size, compute the lo and hi bounds.
9036cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009037/* confdefs.h. */
9038_ACEOF
9039cat confdefs.h >>conftest.$ac_ext
9040cat >>conftest.$ac_ext <<_ACEOF
9041/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009042$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00009043int
9044main ()
9045{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009046static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009047test_array [0] = 0
9048
9049 ;
9050 return 0;
9051}
9052_ACEOF
9053rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009054if { (ac_try="$ac_compile"
9055case "(($ac_try" in
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9058esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9060$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009061 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009062 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009063 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -f conftest.er1
9065 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009067 (exit $ac_status); } && {
9068 test -z "$ac_c_werror_flag" ||
9069 test ! -s conftest.err
9070 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009071 ac_lo=0 ac_mid=0
9072 while :; do
9073 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009074/* confdefs.h. */
9075_ACEOF
9076cat confdefs.h >>conftest.$ac_ext
9077cat >>conftest.$ac_ext <<_ACEOF
9078/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009079$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00009080int
9081main ()
9082{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009083static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009084test_array [0] = 0
9085
9086 ;
9087 return 0;
9088}
9089_ACEOF
9090rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009091if { (ac_try="$ac_compile"
9092case "(($ac_try" in
9093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9094 *) ac_try_echo=$ac_try;;
9095esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9097$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009098 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009099 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009100 grep -v '^ *+' conftest.er1 >conftest.err
9101 rm -f conftest.er1
9102 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009104 (exit $ac_status); } && {
9105 test -z "$ac_c_werror_flag" ||
9106 test ! -s conftest.err
9107 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009108 ac_hi=$ac_mid; break
9109else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009110 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009111sed 's/^/| /' conftest.$ac_ext >&5
9112
Martin v. Löwiseba40652007-08-30 20:10:57 +00009113 ac_lo=`expr $ac_mid + 1`
9114 if test $ac_lo -le $ac_mid; then
9115 ac_lo= ac_hi=
9116 break
9117 fi
9118 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00009119fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009120
9121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009122 done
9123else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009124 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009125sed 's/^/| /' conftest.$ac_ext >&5
9126
Martin v. Löwiseba40652007-08-30 20:10:57 +00009127 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009128/* confdefs.h. */
9129_ACEOF
9130cat confdefs.h >>conftest.$ac_ext
9131cat >>conftest.$ac_ext <<_ACEOF
9132/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009133$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00009134int
9135main ()
9136{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009137static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009138test_array [0] = 0
9139
9140 ;
9141 return 0;
9142}
9143_ACEOF
9144rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009145if { (ac_try="$ac_compile"
9146case "(($ac_try" in
9147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9148 *) ac_try_echo=$ac_try;;
9149esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9151$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009152 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009153 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009154 grep -v '^ *+' conftest.er1 >conftest.err
9155 rm -f conftest.er1
9156 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009158 (exit $ac_status); } && {
9159 test -z "$ac_c_werror_flag" ||
9160 test ! -s conftest.err
9161 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009162 ac_hi=-1 ac_mid=-1
9163 while :; do
9164 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009165/* confdefs.h. */
9166_ACEOF
9167cat confdefs.h >>conftest.$ac_ext
9168cat >>conftest.$ac_ext <<_ACEOF
9169/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009170$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00009171int
9172main ()
9173{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009174static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009175test_array [0] = 0
9176
9177 ;
9178 return 0;
9179}
9180_ACEOF
9181rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009182if { (ac_try="$ac_compile"
9183case "(($ac_try" in
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9186esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9188$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009189 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009190 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009191 grep -v '^ *+' conftest.er1 >conftest.err
9192 rm -f conftest.er1
9193 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009195 (exit $ac_status); } && {
9196 test -z "$ac_c_werror_flag" ||
9197 test ! -s conftest.err
9198 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009199 ac_lo=$ac_mid; break
9200else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009201 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009202sed 's/^/| /' conftest.$ac_ext >&5
9203
Martin v. Löwiseba40652007-08-30 20:10:57 +00009204 ac_hi=`expr '(' $ac_mid ')' - 1`
9205 if test $ac_mid -le $ac_hi; then
9206 ac_lo= ac_hi=
9207 break
9208 fi
9209 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00009210fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009211
9212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009213 done
9214else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009215 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009216sed 's/^/| /' conftest.$ac_ext >&5
9217
Martin v. Löwiseba40652007-08-30 20:10:57 +00009218 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00009219fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009220
9221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009222fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009223
9224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009225# Binary search between lo and hi bounds.
9226while test "x$ac_lo" != "x$ac_hi"; do
9227 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9228 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009229/* confdefs.h. */
9230_ACEOF
9231cat confdefs.h >>conftest.$ac_ext
9232cat >>conftest.$ac_ext <<_ACEOF
9233/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009234$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00009235int
9236main ()
9237{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009238static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009239test_array [0] = 0
9240
9241 ;
9242 return 0;
9243}
9244_ACEOF
9245rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009246if { (ac_try="$ac_compile"
9247case "(($ac_try" in
9248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9250esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9252$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009253 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009254 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009259 (exit $ac_status); } && {
9260 test -z "$ac_c_werror_flag" ||
9261 test ! -s conftest.err
9262 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009263 ac_hi=$ac_mid
9264else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009265 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009266sed 's/^/| /' conftest.$ac_ext >&5
9267
Martin v. Löwiseba40652007-08-30 20:10:57 +00009268 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00009269fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009270
9271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009272done
9273case $ac_lo in
9274?*) ac_cv_sizeof_void_p=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00009275'') if test "$ac_cv_type_void_p" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009276 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9278{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
Skip Montanaro6dead952003-09-25 14:50:04 +00009279See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009280$as_echo "$as_me: error: cannot compute sizeof (void *)
Skip Montanaro6dead952003-09-25 14:50:04 +00009281See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009282 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00009283 else
9284 ac_cv_sizeof_void_p=0
9285 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00009286esac
Guido van Rossumad678af1998-10-02 14:42:15 +00009287else
Martin v. Löwis11437992002-04-12 09:54:03 +00009288 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009289/* confdefs.h. */
9290_ACEOF
9291cat confdefs.h >>conftest.$ac_ext
9292cat >>conftest.$ac_ext <<_ACEOF
9293/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009294$ac_includes_default
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009295static long int longval () { return (long int) (sizeof (void *)); }
9296static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00009297#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009298#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009299int
9300main ()
Guido van Rossumad678af1998-10-02 14:42:15 +00009301{
Martin v. Löwis11437992002-04-12 09:54:03 +00009302
9303 FILE *f = fopen ("conftest.val", "w");
9304 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +00009305 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009306 if (((long int) (sizeof (void *))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00009307 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00009308 long int i = longval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009309 if (i != ((long int) (sizeof (void *))))
Martin v. Löwiseba40652007-08-30 20:10:57 +00009310 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009311 fprintf (f, "%ld", i);
Martin v. Löwis11437992002-04-12 09:54:03 +00009312 }
9313 else
9314 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00009315 unsigned long int i = ulongval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009316 if (i != ((long int) (sizeof (void *))))
Martin v. Löwiseba40652007-08-30 20:10:57 +00009317 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009318 fprintf (f, "%lu", i);
Martin v. Löwis11437992002-04-12 09:54:03 +00009319 }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009320 /* Do not output a trailing newline, as this causes \r\n confusion
9321 on some platforms. */
Martin v. Löwiseba40652007-08-30 20:10:57 +00009322 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00009323
9324 ;
9325 return 0;
Guido van Rossumad678af1998-10-02 14:42:15 +00009326}
Martin v. Löwis11437992002-04-12 09:54:03 +00009327_ACEOF
9328rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009329if { (ac_try="$ac_link"
9330case "(($ac_try" in
9331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9332 *) ac_try_echo=$ac_try;;
9333esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9335$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009336 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009337 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00009340 { (case "(($ac_try" in
9341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342 *) ac_try_echo=$ac_try;;
9343esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9345$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009346 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009347 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009349 (exit $ac_status); }; }; then
9350 ac_cv_sizeof_void_p=`cat conftest.val`
Guido van Rossumad678af1998-10-02 14:42:15 +00009351else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009352 $as_echo "$as_me: program exited with status $ac_status" >&5
9353$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009354sed 's/^/| /' conftest.$ac_ext >&5
9355
Martin v. Löwis11437992002-04-12 09:54:03 +00009356( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +00009357if test "$ac_cv_type_void_p" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009358 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9360{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
Skip Montanaro6dead952003-09-25 14:50:04 +00009361See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009362$as_echo "$as_me: error: cannot compute sizeof (void *)
Skip Montanaro6dead952003-09-25 14:50:04 +00009363See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009364 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00009365 else
9366 ac_cv_sizeof_void_p=0
9367 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009368fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009369rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +00009370rm -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 +00009371fi
9372rm -f conftest.val
Guido van Rossumad678af1998-10-02 14:42:15 +00009373fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009374{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
9375$as_echo "$ac_cv_sizeof_void_p" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00009376
9377
9378
Martin v. Löwis11437992002-04-12 09:54:03 +00009379cat >>confdefs.h <<_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +00009380#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
Martin v. Löwis11437992002-04-12 09:54:03 +00009381_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +00009382
9383
Martin v. Löwiseba40652007-08-30 20:10:57 +00009384# The cast to long int works around a bug in the HP C Compiler
9385# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9386# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9387# This bug is HP SR number 8606223364.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009388{ $as_echo "$as_me:$LINENO: checking size of short" >&5
9389$as_echo_n "checking size of short... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00009390if test "${ac_cv_sizeof_short+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009391 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00009392else
Martin v. Löwis11437992002-04-12 09:54:03 +00009393 if test "$cross_compiling" = yes; then
9394 # Depending upon the size, compute the lo and hi bounds.
9395cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009396/* confdefs.h. */
9397_ACEOF
9398cat confdefs.h >>conftest.$ac_ext
9399cat >>conftest.$ac_ext <<_ACEOF
9400/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009401$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00009402int
9403main ()
9404{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009405static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009406test_array [0] = 0
9407
9408 ;
9409 return 0;
9410}
9411_ACEOF
9412rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009413if { (ac_try="$ac_compile"
9414case "(($ac_try" in
9415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9416 *) ac_try_echo=$ac_try;;
9417esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9419$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009420 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009421 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009422 grep -v '^ *+' conftest.er1 >conftest.err
9423 rm -f conftest.er1
9424 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009426 (exit $ac_status); } && {
9427 test -z "$ac_c_werror_flag" ||
9428 test ! -s conftest.err
9429 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009430 ac_lo=0 ac_mid=0
9431 while :; do
9432 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009433/* confdefs.h. */
9434_ACEOF
9435cat confdefs.h >>conftest.$ac_ext
9436cat >>conftest.$ac_ext <<_ACEOF
9437/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009438$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00009439int
9440main ()
9441{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009442static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009443test_array [0] = 0
9444
9445 ;
9446 return 0;
9447}
9448_ACEOF
9449rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009450if { (ac_try="$ac_compile"
9451case "(($ac_try" in
9452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453 *) ac_try_echo=$ac_try;;
9454esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9456$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009457 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009458 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009459 grep -v '^ *+' conftest.er1 >conftest.err
9460 rm -f conftest.er1
9461 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009463 (exit $ac_status); } && {
9464 test -z "$ac_c_werror_flag" ||
9465 test ! -s conftest.err
9466 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009467 ac_hi=$ac_mid; break
9468else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009469 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009470sed 's/^/| /' conftest.$ac_ext >&5
9471
Martin v. Löwiseba40652007-08-30 20:10:57 +00009472 ac_lo=`expr $ac_mid + 1`
9473 if test $ac_lo -le $ac_mid; then
9474 ac_lo= ac_hi=
9475 break
9476 fi
9477 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00009478fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009479
9480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009481 done
9482else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009483 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009484sed 's/^/| /' conftest.$ac_ext >&5
9485
Martin v. Löwiseba40652007-08-30 20:10:57 +00009486 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009487/* confdefs.h. */
9488_ACEOF
9489cat confdefs.h >>conftest.$ac_ext
9490cat >>conftest.$ac_ext <<_ACEOF
9491/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009492$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00009493int
9494main ()
9495{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009496static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009497test_array [0] = 0
9498
9499 ;
9500 return 0;
9501}
9502_ACEOF
9503rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009504if { (ac_try="$ac_compile"
9505case "(($ac_try" in
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9508esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9510$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009511 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009512 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009513 grep -v '^ *+' conftest.er1 >conftest.err
9514 rm -f conftest.er1
9515 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009517 (exit $ac_status); } && {
9518 test -z "$ac_c_werror_flag" ||
9519 test ! -s conftest.err
9520 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009521 ac_hi=-1 ac_mid=-1
9522 while :; do
9523 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009524/* confdefs.h. */
9525_ACEOF
9526cat confdefs.h >>conftest.$ac_ext
9527cat >>conftest.$ac_ext <<_ACEOF
9528/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009529$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00009530int
9531main ()
9532{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009533static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009534test_array [0] = 0
9535
9536 ;
9537 return 0;
9538}
9539_ACEOF
9540rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009541if { (ac_try="$ac_compile"
9542case "(($ac_try" in
9543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9545esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9547$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009548 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009549 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009550 grep -v '^ *+' conftest.er1 >conftest.err
9551 rm -f conftest.er1
9552 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009554 (exit $ac_status); } && {
9555 test -z "$ac_c_werror_flag" ||
9556 test ! -s conftest.err
9557 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009558 ac_lo=$ac_mid; break
9559else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009560 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009561sed 's/^/| /' conftest.$ac_ext >&5
9562
Martin v. Löwiseba40652007-08-30 20:10:57 +00009563 ac_hi=`expr '(' $ac_mid ')' - 1`
9564 if test $ac_mid -le $ac_hi; then
9565 ac_lo= ac_hi=
9566 break
9567 fi
9568 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00009569fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009570
9571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009572 done
9573else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009574 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009575sed 's/^/| /' conftest.$ac_ext >&5
9576
Martin v. Löwiseba40652007-08-30 20:10:57 +00009577 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00009578fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009579
9580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009581fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009582
9583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009584# Binary search between lo and hi bounds.
9585while test "x$ac_lo" != "x$ac_hi"; do
9586 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9587 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009588/* confdefs.h. */
9589_ACEOF
9590cat confdefs.h >>conftest.$ac_ext
9591cat >>conftest.$ac_ext <<_ACEOF
9592/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009593$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00009594int
9595main ()
9596{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009597static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009598test_array [0] = 0
9599
9600 ;
9601 return 0;
9602}
9603_ACEOF
9604rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009605if { (ac_try="$ac_compile"
9606case "(($ac_try" in
9607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9608 *) ac_try_echo=$ac_try;;
9609esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9611$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009612 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009613 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009614 grep -v '^ *+' conftest.er1 >conftest.err
9615 rm -f conftest.er1
9616 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009618 (exit $ac_status); } && {
9619 test -z "$ac_c_werror_flag" ||
9620 test ! -s conftest.err
9621 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009622 ac_hi=$ac_mid
9623else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009624 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009625sed 's/^/| /' conftest.$ac_ext >&5
9626
Martin v. Löwiseba40652007-08-30 20:10:57 +00009627 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00009628fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009629
9630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009631done
9632case $ac_lo in
9633?*) ac_cv_sizeof_short=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00009634'') if test "$ac_cv_type_short" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009635 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9637{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Skip Montanaro6dead952003-09-25 14:50:04 +00009638See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009639$as_echo "$as_me: error: cannot compute sizeof (short)
Skip Montanaro6dead952003-09-25 14:50:04 +00009640See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009641 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00009642 else
9643 ac_cv_sizeof_short=0
9644 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +00009645esac
Guido van Rossumef2255b2000-03-10 22:30:29 +00009646else
Martin v. Löwis11437992002-04-12 09:54:03 +00009647 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009648/* confdefs.h. */
9649_ACEOF
9650cat confdefs.h >>conftest.$ac_ext
9651cat >>conftest.$ac_ext <<_ACEOF
9652/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009653$ac_includes_default
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009654static long int longval () { return (long int) (sizeof (short)); }
9655static unsigned long int ulongval () { return (long int) (sizeof (short)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00009656#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009657#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009658int
9659main ()
Guido van Rossumef2255b2000-03-10 22:30:29 +00009660{
Martin v. Löwis11437992002-04-12 09:54:03 +00009661
9662 FILE *f = fopen ("conftest.val", "w");
9663 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +00009664 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009665 if (((long int) (sizeof (short))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +00009666 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00009667 long int i = longval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009668 if (i != ((long int) (sizeof (short))))
Martin v. Löwiseba40652007-08-30 20:10:57 +00009669 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009670 fprintf (f, "%ld", i);
Martin v. Löwis11437992002-04-12 09:54:03 +00009671 }
9672 else
9673 {
Martin v. Löwiseba40652007-08-30 20:10:57 +00009674 unsigned long int i = ulongval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009675 if (i != ((long int) (sizeof (short))))
Martin v. Löwiseba40652007-08-30 20:10:57 +00009676 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009677 fprintf (f, "%lu", i);
Martin v. Löwis11437992002-04-12 09:54:03 +00009678 }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009679 /* Do not output a trailing newline, as this causes \r\n confusion
9680 on some platforms. */
Martin v. Löwiseba40652007-08-30 20:10:57 +00009681 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +00009682
9683 ;
9684 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +00009685}
Martin v. Löwis11437992002-04-12 09:54:03 +00009686_ACEOF
9687rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009688if { (ac_try="$ac_link"
9689case "(($ac_try" in
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9692esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9694$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009695 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009696 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +00009699 { (case "(($ac_try" in
9700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701 *) ac_try_echo=$ac_try;;
9702esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9704$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009705 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009706 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009708 (exit $ac_status); }; }; then
9709 ac_cv_sizeof_short=`cat conftest.val`
Guido van Rossumef2255b2000-03-10 22:30:29 +00009710else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009711 $as_echo "$as_me: program exited with status $ac_status" >&5
9712$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009713sed 's/^/| /' conftest.$ac_ext >&5
9714
Martin v. Löwis11437992002-04-12 09:54:03 +00009715( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +00009716if test "$ac_cv_type_short" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009717 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9719{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Skip Montanaro6dead952003-09-25 14:50:04 +00009720See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009721$as_echo "$as_me: error: cannot compute sizeof (short)
Skip Montanaro6dead952003-09-25 14:50:04 +00009722See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009723 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00009724 else
9725 ac_cv_sizeof_short=0
9726 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009727fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009728rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +00009729rm -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 +00009730fi
9731rm -f conftest.val
Guido van Rossumef2255b2000-03-10 22:30:29 +00009732fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009733{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9734$as_echo "$ac_cv_sizeof_short" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +00009735
9736
9737
Martin v. Löwis11437992002-04-12 09:54:03 +00009738cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00009739#define SIZEOF_SHORT $ac_cv_sizeof_short
Martin v. Löwis11437992002-04-12 09:54:03 +00009740_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00009741
9742
Martin v. Löwiseba40652007-08-30 20:10:57 +00009743# The cast to long int works around a bug in the HP C Compiler
9744# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9745# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9746# This bug is HP SR number 8606223364.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009747{ $as_echo "$as_me:$LINENO: checking size of float" >&5
9748$as_echo_n "checking size of float... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +00009749if test "${ac_cv_sizeof_float+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009750 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +00009751else
Martin v. Löwis11437992002-04-12 09:54:03 +00009752 if test "$cross_compiling" = yes; then
9753 # Depending upon the size, compute the lo and hi bounds.
9754cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009755/* confdefs.h. */
9756_ACEOF
9757cat confdefs.h >>conftest.$ac_ext
9758cat >>conftest.$ac_ext <<_ACEOF
9759/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009760$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00009761int
9762main ()
9763{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009764static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009765test_array [0] = 0
9766
9767 ;
9768 return 0;
9769}
9770_ACEOF
9771rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009772if { (ac_try="$ac_compile"
9773case "(($ac_try" in
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9776esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9778$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009779 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009780 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009785 (exit $ac_status); } && {
9786 test -z "$ac_c_werror_flag" ||
9787 test ! -s conftest.err
9788 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009789 ac_lo=0 ac_mid=0
9790 while :; do
9791 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009792/* confdefs.h. */
9793_ACEOF
9794cat confdefs.h >>conftest.$ac_ext
9795cat >>conftest.$ac_ext <<_ACEOF
9796/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009797$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00009798int
9799main ()
9800{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009801static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $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
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9815$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009816 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009817 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009822 (exit $ac_status); } && {
9823 test -z "$ac_c_werror_flag" ||
9824 test ! -s conftest.err
9825 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009826 ac_hi=$ac_mid; break
9827else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009828 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009829sed 's/^/| /' conftest.$ac_ext >&5
9830
Martin v. Löwiseba40652007-08-30 20:10:57 +00009831 ac_lo=`expr $ac_mid + 1`
9832 if test $ac_lo -le $ac_mid; then
9833 ac_lo= ac_hi=
9834 break
9835 fi
9836 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00009837fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009838
9839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009840 done
9841else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009842 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009843sed 's/^/| /' conftest.$ac_ext >&5
9844
Martin v. Löwiseba40652007-08-30 20:10:57 +00009845 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009846/* confdefs.h. */
9847_ACEOF
9848cat confdefs.h >>conftest.$ac_ext
9849cat >>conftest.$ac_ext <<_ACEOF
9850/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009851$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00009852int
9853main ()
9854{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009855static int test_array [1 - 2 * !(((long int) (sizeof (float))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009856test_array [0] = 0
9857
9858 ;
9859 return 0;
9860}
9861_ACEOF
9862rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009863if { (ac_try="$ac_compile"
9864case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9867esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9869$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009870 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009871 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009876 (exit $ac_status); } && {
9877 test -z "$ac_c_werror_flag" ||
9878 test ! -s conftest.err
9879 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009880 ac_hi=-1 ac_mid=-1
9881 while :; do
9882 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009883/* confdefs.h. */
9884_ACEOF
9885cat confdefs.h >>conftest.$ac_ext
9886cat >>conftest.$ac_ext <<_ACEOF
9887/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009888$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00009889int
9890main ()
9891{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009892static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009893test_array [0] = 0
9894
9895 ;
9896 return 0;
9897}
9898_ACEOF
9899rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009900if { (ac_try="$ac_compile"
9901case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9904esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9906$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009907 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009908 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009909 grep -v '^ *+' conftest.er1 >conftest.err
9910 rm -f conftest.er1
9911 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009913 (exit $ac_status); } && {
9914 test -z "$ac_c_werror_flag" ||
9915 test ! -s conftest.err
9916 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009917 ac_lo=$ac_mid; break
9918else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009919 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009920sed 's/^/| /' conftest.$ac_ext >&5
9921
Martin v. Löwiseba40652007-08-30 20:10:57 +00009922 ac_hi=`expr '(' $ac_mid ')' - 1`
9923 if test $ac_mid -le $ac_hi; then
9924 ac_lo= ac_hi=
9925 break
9926 fi
9927 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +00009928fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009929
9930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009931 done
9932else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009933 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009934sed 's/^/| /' conftest.$ac_ext >&5
9935
Martin v. Löwiseba40652007-08-30 20:10:57 +00009936 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +00009937fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009938
9939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009940fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009941
9942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009943# Binary search between lo and hi bounds.
9944while test "x$ac_lo" != "x$ac_hi"; do
9945 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9946 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +00009947/* confdefs.h. */
9948_ACEOF
9949cat confdefs.h >>conftest.$ac_ext
9950cat >>conftest.$ac_ext <<_ACEOF
9951/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009952$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +00009953int
9954main ()
9955{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009956static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +00009957test_array [0] = 0
9958
9959 ;
9960 return 0;
9961}
9962_ACEOF
9963rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +00009964if { (ac_try="$ac_compile"
9965case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9968esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9970$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009971 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +00009972 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +00009973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +00009977 (exit $ac_status); } && {
9978 test -z "$ac_c_werror_flag" ||
9979 test ! -s conftest.err
9980 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009981 ac_hi=$ac_mid
9982else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009983 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +00009984sed 's/^/| /' conftest.$ac_ext >&5
9985
Martin v. Löwiseba40652007-08-30 20:10:57 +00009986 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +00009987fi
Martin v. Löwiseba40652007-08-30 20:10:57 +00009988
9989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +00009990done
9991case $ac_lo in
9992?*) ac_cv_sizeof_float=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +00009993'') if test "$ac_cv_type_float" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009994 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9996{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
Skip Montanaro6dead952003-09-25 14:50:04 +00009997See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +00009998$as_echo "$as_me: error: cannot compute sizeof (float)
Skip Montanaro6dead952003-09-25 14:50:04 +00009999See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010000 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000010001 else
10002 ac_cv_sizeof_float=0
10003 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000010004esac
Guido van Rossumef2255b2000-03-10 22:30:29 +000010005else
Martin v. Löwis11437992002-04-12 09:54:03 +000010006 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010007/* confdefs.h. */
10008_ACEOF
10009cat confdefs.h >>conftest.$ac_ext
10010cat >>conftest.$ac_ext <<_ACEOF
10011/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010012$ac_includes_default
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010013static long int longval () { return (long int) (sizeof (float)); }
10014static unsigned long int ulongval () { return (long int) (sizeof (float)); }
Michael W. Hudson54241132001-12-07 15:38:26 +000010015#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000010016#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000010017int
10018main ()
Guido van Rossumef2255b2000-03-10 22:30:29 +000010019{
Martin v. Löwis11437992002-04-12 09:54:03 +000010020
10021 FILE *f = fopen ("conftest.val", "w");
10022 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000010023 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010024 if (((long int) (sizeof (float))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000010025 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000010026 long int i = longval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010027 if (i != ((long int) (sizeof (float))))
Martin v. Löwiseba40652007-08-30 20:10:57 +000010028 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010029 fprintf (f, "%ld", i);
Martin v. Löwis11437992002-04-12 09:54:03 +000010030 }
10031 else
10032 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000010033 unsigned long int i = ulongval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010034 if (i != ((long int) (sizeof (float))))
Martin v. Löwiseba40652007-08-30 20:10:57 +000010035 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010036 fprintf (f, "%lu", i);
Martin v. Löwis11437992002-04-12 09:54:03 +000010037 }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010038 /* Do not output a trailing newline, as this causes \r\n confusion
10039 on some platforms. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000010040 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000010041
10042 ;
10043 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +000010044}
Martin v. Löwis11437992002-04-12 09:54:03 +000010045_ACEOF
10046rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010047if { (ac_try="$ac_link"
10048case "(($ac_try" in
10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10051esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10053$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010054 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010055 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000010058 { (case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10061esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10063$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010064 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010065 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010067 (exit $ac_status); }; }; then
10068 ac_cv_sizeof_float=`cat conftest.val`
Guido van Rossumef2255b2000-03-10 22:30:29 +000010069else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010070 $as_echo "$as_me: program exited with status $ac_status" >&5
10071$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010072sed 's/^/| /' conftest.$ac_ext >&5
10073
Martin v. Löwis11437992002-04-12 09:54:03 +000010074( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000010075if test "$ac_cv_type_float" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010076 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10078{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float)
Skip Montanaro6dead952003-09-25 14:50:04 +000010079See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010080$as_echo "$as_me: error: cannot compute sizeof (float)
Skip Montanaro6dead952003-09-25 14:50:04 +000010081See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010082 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000010083 else
10084 ac_cv_sizeof_float=0
10085 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010086fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010087rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000010088rm -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 +000010089fi
10090rm -f conftest.val
Guido van Rossumef2255b2000-03-10 22:30:29 +000010091fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010092{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
10093$as_echo "$ac_cv_sizeof_float" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000010094
10095
10096
Martin v. Löwis11437992002-04-12 09:54:03 +000010097cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +000010098#define SIZEOF_FLOAT $ac_cv_sizeof_float
Martin v. Löwis11437992002-04-12 09:54:03 +000010099_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +000010100
10101
Martin v. Löwiseba40652007-08-30 20:10:57 +000010102# The cast to long int works around a bug in the HP C Compiler
10103# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10104# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10105# This bug is HP SR number 8606223364.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010106{ $as_echo "$as_me:$LINENO: checking size of double" >&5
10107$as_echo_n "checking size of double... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000010108if test "${ac_cv_sizeof_double+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010109 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +000010110else
Martin v. Löwis11437992002-04-12 09:54:03 +000010111 if test "$cross_compiling" = yes; then
10112 # Depending upon the size, compute the lo and hi bounds.
10113cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010114/* confdefs.h. */
10115_ACEOF
10116cat confdefs.h >>conftest.$ac_ext
10117cat >>conftest.$ac_ext <<_ACEOF
10118/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010119$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000010120int
10121main ()
10122{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010123static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010124test_array [0] = 0
10125
10126 ;
10127 return 0;
10128}
10129_ACEOF
10130rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010131if { (ac_try="$ac_compile"
10132case "(($ac_try" in
10133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134 *) ac_try_echo=$ac_try;;
10135esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10137$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010138 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010139 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010144 (exit $ac_status); } && {
10145 test -z "$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010148 ac_lo=0 ac_mid=0
10149 while :; do
10150 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010151/* confdefs.h. */
10152_ACEOF
10153cat confdefs.h >>conftest.$ac_ext
10154cat >>conftest.$ac_ext <<_ACEOF
10155/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010156$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000010157int
10158main ()
10159{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010160static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010161test_array [0] = 0
10162
10163 ;
10164 return 0;
10165}
10166_ACEOF
10167rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010168if { (ac_try="$ac_compile"
10169case "(($ac_try" in
10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171 *) ac_try_echo=$ac_try;;
10172esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10174$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010175 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010176 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010181 (exit $ac_status); } && {
10182 test -z "$ac_c_werror_flag" ||
10183 test ! -s conftest.err
10184 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010185 ac_hi=$ac_mid; break
10186else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010187 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010188sed 's/^/| /' conftest.$ac_ext >&5
10189
Martin v. Löwiseba40652007-08-30 20:10:57 +000010190 ac_lo=`expr $ac_mid + 1`
10191 if test $ac_lo -le $ac_mid; then
10192 ac_lo= ac_hi=
10193 break
10194 fi
10195 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000010196fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010197
10198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000010199 done
10200else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010201 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010202sed 's/^/| /' conftest.$ac_ext >&5
10203
Martin v. Löwiseba40652007-08-30 20:10:57 +000010204 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010205/* confdefs.h. */
10206_ACEOF
10207cat confdefs.h >>conftest.$ac_ext
10208cat >>conftest.$ac_ext <<_ACEOF
10209/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010210$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000010211int
10212main ()
10213{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010214static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010215test_array [0] = 0
10216
10217 ;
10218 return 0;
10219}
10220_ACEOF
10221rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010222if { (ac_try="$ac_compile"
10223case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10226esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10228$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010229 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010230 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010231 grep -v '^ *+' conftest.er1 >conftest.err
10232 rm -f conftest.er1
10233 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010235 (exit $ac_status); } && {
10236 test -z "$ac_c_werror_flag" ||
10237 test ! -s conftest.err
10238 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010239 ac_hi=-1 ac_mid=-1
10240 while :; do
10241 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010242/* confdefs.h. */
10243_ACEOF
10244cat confdefs.h >>conftest.$ac_ext
10245cat >>conftest.$ac_ext <<_ACEOF
10246/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010247$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000010248int
10249main ()
10250{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010251static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010252test_array [0] = 0
10253
10254 ;
10255 return 0;
10256}
10257_ACEOF
10258rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010259if { (ac_try="$ac_compile"
10260case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10263esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10265$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010266 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010267 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010268 grep -v '^ *+' conftest.er1 >conftest.err
10269 rm -f conftest.er1
10270 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010272 (exit $ac_status); } && {
10273 test -z "$ac_c_werror_flag" ||
10274 test ! -s conftest.err
10275 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010276 ac_lo=$ac_mid; break
10277else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010278 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010279sed 's/^/| /' conftest.$ac_ext >&5
10280
Martin v. Löwiseba40652007-08-30 20:10:57 +000010281 ac_hi=`expr '(' $ac_mid ')' - 1`
10282 if test $ac_mid -le $ac_hi; then
10283 ac_lo= ac_hi=
10284 break
10285 fi
10286 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +000010287fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010288
10289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000010290 done
10291else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010292 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010293sed 's/^/| /' conftest.$ac_ext >&5
10294
Martin v. Löwiseba40652007-08-30 20:10:57 +000010295 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +000010296fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010297
10298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000010299fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010300
10301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000010302# Binary search between lo and hi bounds.
10303while test "x$ac_lo" != "x$ac_hi"; do
10304 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10305 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010306/* confdefs.h. */
10307_ACEOF
10308cat confdefs.h >>conftest.$ac_ext
10309cat >>conftest.$ac_ext <<_ACEOF
10310/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010311$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000010312int
10313main ()
10314{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010315static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010316test_array [0] = 0
10317
10318 ;
10319 return 0;
10320}
10321_ACEOF
10322rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010323if { (ac_try="$ac_compile"
10324case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10327esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10329$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010330 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010331 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010332 grep -v '^ *+' conftest.er1 >conftest.err
10333 rm -f conftest.er1
10334 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010340 ac_hi=$ac_mid
10341else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010342 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010343sed 's/^/| /' conftest.$ac_ext >&5
10344
Martin v. Löwiseba40652007-08-30 20:10:57 +000010345 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000010346fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010347
10348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000010349done
10350case $ac_lo in
10351?*) ac_cv_sizeof_double=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000010352'') if test "$ac_cv_type_double" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010353 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10355{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
Skip Montanaro6dead952003-09-25 14:50:04 +000010356See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010357$as_echo "$as_me: error: cannot compute sizeof (double)
Skip Montanaro6dead952003-09-25 14:50:04 +000010358See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010359 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000010360 else
10361 ac_cv_sizeof_double=0
10362 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000010363esac
Guido van Rossumef2255b2000-03-10 22:30:29 +000010364else
Martin v. Löwis11437992002-04-12 09:54:03 +000010365 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010366/* confdefs.h. */
10367_ACEOF
10368cat confdefs.h >>conftest.$ac_ext
10369cat >>conftest.$ac_ext <<_ACEOF
10370/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010371$ac_includes_default
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010372static long int longval () { return (long int) (sizeof (double)); }
10373static unsigned long int ulongval () { return (long int) (sizeof (double)); }
Michael W. Hudson54241132001-12-07 15:38:26 +000010374#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000010375#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000010376int
10377main ()
Guido van Rossumef2255b2000-03-10 22:30:29 +000010378{
Martin v. Löwis11437992002-04-12 09:54:03 +000010379
10380 FILE *f = fopen ("conftest.val", "w");
10381 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000010382 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010383 if (((long int) (sizeof (double))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000010384 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000010385 long int i = longval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010386 if (i != ((long int) (sizeof (double))))
Martin v. Löwiseba40652007-08-30 20:10:57 +000010387 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010388 fprintf (f, "%ld", i);
Martin v. Löwis11437992002-04-12 09:54:03 +000010389 }
10390 else
10391 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000010392 unsigned long int i = ulongval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010393 if (i != ((long int) (sizeof (double))))
Martin v. Löwiseba40652007-08-30 20:10:57 +000010394 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010395 fprintf (f, "%lu", i);
Martin v. Löwis11437992002-04-12 09:54:03 +000010396 }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010397 /* Do not output a trailing newline, as this causes \r\n confusion
10398 on some platforms. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000010399 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000010400
10401 ;
10402 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +000010403}
Martin v. Löwis11437992002-04-12 09:54:03 +000010404_ACEOF
10405rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010406if { (ac_try="$ac_link"
10407case "(($ac_try" in
10408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10409 *) ac_try_echo=$ac_try;;
10410esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10412$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010413 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010414 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000010417 { (case "(($ac_try" in
10418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419 *) ac_try_echo=$ac_try;;
10420esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10422$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010423 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010424 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010426 (exit $ac_status); }; }; then
10427 ac_cv_sizeof_double=`cat conftest.val`
Guido van Rossumef2255b2000-03-10 22:30:29 +000010428else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010429 $as_echo "$as_me: program exited with status $ac_status" >&5
10430$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010431sed 's/^/| /' conftest.$ac_ext >&5
10432
Martin v. Löwis11437992002-04-12 09:54:03 +000010433( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000010434if test "$ac_cv_type_double" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010435 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10437{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
Skip Montanaro6dead952003-09-25 14:50:04 +000010438See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010439$as_echo "$as_me: error: cannot compute sizeof (double)
Skip Montanaro6dead952003-09-25 14:50:04 +000010440See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010441 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000010442 else
10443 ac_cv_sizeof_double=0
10444 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010445fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010446rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000010447rm -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 +000010448fi
10449rm -f conftest.val
Guido van Rossumef2255b2000-03-10 22:30:29 +000010450fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010451{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
10452$as_echo "$ac_cv_sizeof_double" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000010453
10454
10455
Martin v. Löwis11437992002-04-12 09:54:03 +000010456cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +000010457#define SIZEOF_DOUBLE $ac_cv_sizeof_double
Martin v. Löwis11437992002-04-12 09:54:03 +000010458_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +000010459
10460
Martin v. Löwiseba40652007-08-30 20:10:57 +000010461# The cast to long int works around a bug in the HP C Compiler
10462# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10463# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10464# This bug is HP SR number 8606223364.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010465{ $as_echo "$as_me:$LINENO: checking size of fpos_t" >&5
10466$as_echo_n "checking size of fpos_t... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000010467if test "${ac_cv_sizeof_fpos_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010468 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +000010469else
Martin v. Löwis11437992002-04-12 09:54:03 +000010470 if test "$cross_compiling" = yes; then
10471 # Depending upon the size, compute the lo and hi bounds.
10472cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010473/* confdefs.h. */
10474_ACEOF
10475cat confdefs.h >>conftest.$ac_ext
10476cat >>conftest.$ac_ext <<_ACEOF
10477/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010478$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000010479int
10480main ()
10481{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010482static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010483test_array [0] = 0
10484
10485 ;
10486 return 0;
10487}
10488_ACEOF
10489rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010490if { (ac_try="$ac_compile"
10491case "(($ac_try" in
10492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10493 *) ac_try_echo=$ac_try;;
10494esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10496$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010497 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010498 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010499 grep -v '^ *+' conftest.er1 >conftest.err
10500 rm -f conftest.er1
10501 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010503 (exit $ac_status); } && {
10504 test -z "$ac_c_werror_flag" ||
10505 test ! -s conftest.err
10506 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010507 ac_lo=0 ac_mid=0
10508 while :; do
10509 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010510/* confdefs.h. */
10511_ACEOF
10512cat confdefs.h >>conftest.$ac_ext
10513cat >>conftest.$ac_ext <<_ACEOF
10514/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010515$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000010516int
10517main ()
10518{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010519static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010520test_array [0] = 0
10521
10522 ;
10523 return 0;
10524}
10525_ACEOF
10526rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010527if { (ac_try="$ac_compile"
10528case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10531esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10533$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010534 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010535 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010536 grep -v '^ *+' conftest.er1 >conftest.err
10537 rm -f conftest.er1
10538 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010540 (exit $ac_status); } && {
10541 test -z "$ac_c_werror_flag" ||
10542 test ! -s conftest.err
10543 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010544 ac_hi=$ac_mid; break
10545else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010546 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010547sed 's/^/| /' conftest.$ac_ext >&5
10548
Martin v. Löwiseba40652007-08-30 20:10:57 +000010549 ac_lo=`expr $ac_mid + 1`
10550 if test $ac_lo -le $ac_mid; then
10551 ac_lo= ac_hi=
10552 break
10553 fi
10554 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000010555fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010556
10557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000010558 done
10559else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010560 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010561sed 's/^/| /' conftest.$ac_ext >&5
10562
Martin v. Löwiseba40652007-08-30 20:10:57 +000010563 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010564/* confdefs.h. */
10565_ACEOF
10566cat confdefs.h >>conftest.$ac_ext
10567cat >>conftest.$ac_ext <<_ACEOF
10568/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010569$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000010570int
10571main ()
10572{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010573static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010574test_array [0] = 0
10575
10576 ;
10577 return 0;
10578}
10579_ACEOF
10580rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010581if { (ac_try="$ac_compile"
10582case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10585esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10587$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010588 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010589 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010590 grep -v '^ *+' conftest.er1 >conftest.err
10591 rm -f conftest.er1
10592 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010594 (exit $ac_status); } && {
10595 test -z "$ac_c_werror_flag" ||
10596 test ! -s conftest.err
10597 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010598 ac_hi=-1 ac_mid=-1
10599 while :; do
10600 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010601/* confdefs.h. */
10602_ACEOF
10603cat confdefs.h >>conftest.$ac_ext
10604cat >>conftest.$ac_ext <<_ACEOF
10605/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010606$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000010607int
10608main ()
10609{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010610static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010611test_array [0] = 0
10612
10613 ;
10614 return 0;
10615}
10616_ACEOF
10617rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010618if { (ac_try="$ac_compile"
10619case "(($ac_try" in
10620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10621 *) ac_try_echo=$ac_try;;
10622esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10624$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010625 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010626 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010627 grep -v '^ *+' conftest.er1 >conftest.err
10628 rm -f conftest.er1
10629 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010630 $as_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öwis11437992002-04-12 09:54:03 +000010635 ac_lo=$ac_mid; break
10636else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010637 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010638sed 's/^/| /' conftest.$ac_ext >&5
10639
Martin v. Löwiseba40652007-08-30 20:10:57 +000010640 ac_hi=`expr '(' $ac_mid ')' - 1`
10641 if test $ac_mid -le $ac_hi; then
10642 ac_lo= ac_hi=
10643 break
10644 fi
10645 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +000010646fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010647
10648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000010649 done
10650else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010651 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010652sed 's/^/| /' conftest.$ac_ext >&5
10653
Martin v. Löwiseba40652007-08-30 20:10:57 +000010654 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +000010655fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010656
10657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000010658fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010659
10660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000010661# Binary search between lo and hi bounds.
10662while test "x$ac_lo" != "x$ac_hi"; do
10663 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10664 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010665/* confdefs.h. */
10666_ACEOF
10667cat confdefs.h >>conftest.$ac_ext
10668cat >>conftest.$ac_ext <<_ACEOF
10669/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010670$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000010671int
10672main ()
10673{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010674static int test_array [1 - 2 * !(((long int) (sizeof (fpos_t))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000010675test_array [0] = 0
10676
10677 ;
10678 return 0;
10679}
10680_ACEOF
10681rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010682if { (ac_try="$ac_compile"
10683case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10686esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10688$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010689 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000010690 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000010691 grep -v '^ *+' conftest.er1 >conftest.err
10692 rm -f conftest.er1
10693 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010695 (exit $ac_status); } && {
10696 test -z "$ac_c_werror_flag" ||
10697 test ! -s conftest.err
10698 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010699 ac_hi=$ac_mid
10700else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010701 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010702sed 's/^/| /' conftest.$ac_ext >&5
10703
Martin v. Löwiseba40652007-08-30 20:10:57 +000010704 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000010705fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010706
10707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000010708done
10709case $ac_lo in
10710?*) ac_cv_sizeof_fpos_t=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000010711'') if test "$ac_cv_type_fpos_t" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010712 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10714{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000010715See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010716$as_echo "$as_me: error: cannot compute sizeof (fpos_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000010717See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010718 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000010719 else
10720 ac_cv_sizeof_fpos_t=0
10721 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000010722esac
Guido van Rossumb9a22a12000-06-30 02:48:53 +000010723else
Martin v. Löwis11437992002-04-12 09:54:03 +000010724 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000010725/* confdefs.h. */
10726_ACEOF
10727cat confdefs.h >>conftest.$ac_ext
10728cat >>conftest.$ac_ext <<_ACEOF
10729/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010730$ac_includes_default
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010731static long int longval () { return (long int) (sizeof (fpos_t)); }
10732static unsigned long int ulongval () { return (long int) (sizeof (fpos_t)); }
Michael W. Hudson54241132001-12-07 15:38:26 +000010733#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000010734#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000010735int
10736main ()
Guido van Rossumb9a22a12000-06-30 02:48:53 +000010737{
Martin v. Löwis11437992002-04-12 09:54:03 +000010738
10739 FILE *f = fopen ("conftest.val", "w");
10740 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000010741 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010742 if (((long int) (sizeof (fpos_t))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000010743 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000010744 long int i = longval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010745 if (i != ((long int) (sizeof (fpos_t))))
Martin v. Löwiseba40652007-08-30 20:10:57 +000010746 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010747 fprintf (f, "%ld", i);
Martin v. Löwis11437992002-04-12 09:54:03 +000010748 }
10749 else
10750 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000010751 unsigned long int i = ulongval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010752 if (i != ((long int) (sizeof (fpos_t))))
Martin v. Löwiseba40652007-08-30 20:10:57 +000010753 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010754 fprintf (f, "%lu", i);
Martin v. Löwis11437992002-04-12 09:54:03 +000010755 }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010756 /* Do not output a trailing newline, as this causes \r\n confusion
10757 on some platforms. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000010758 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000010759
10760 ;
10761 return 0;
Guido van Rossumb9a22a12000-06-30 02:48:53 +000010762}
Martin v. Löwis11437992002-04-12 09:54:03 +000010763_ACEOF
10764rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010765if { (ac_try="$ac_link"
10766case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10769esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10771$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010772 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010773 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000010776 { (case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10779esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10781$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010782 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010783 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010785 (exit $ac_status); }; }; then
10786 ac_cv_sizeof_fpos_t=`cat conftest.val`
Guido van Rossumb9a22a12000-06-30 02:48:53 +000010787else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010788 $as_echo "$as_me: program exited with status $ac_status" >&5
10789$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000010790sed 's/^/| /' conftest.$ac_ext >&5
10791
Martin v. Löwis11437992002-04-12 09:54:03 +000010792( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000010793if test "$ac_cv_type_fpos_t" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010794 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10796{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000010797See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010798$as_echo "$as_me: error: cannot compute sizeof (fpos_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000010799See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010800 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000010801 else
10802 ac_cv_sizeof_fpos_t=0
10803 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010804fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010805rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000010806rm -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 +000010807fi
10808rm -f conftest.val
Guido van Rossumb9a22a12000-06-30 02:48:53 +000010809fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010810{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10811$as_echo "$ac_cv_sizeof_fpos_t" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000010812
10813
10814
Martin v. Löwis11437992002-04-12 09:54:03 +000010815cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +000010816#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
Martin v. Löwis11437992002-04-12 09:54:03 +000010817_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +000010818
Michael W. Hudson54241132001-12-07 15:38:26 +000010819
Martin v. Löwiseba40652007-08-30 20:10:57 +000010820# The cast to long int works around a bug in the HP C Compiler
10821# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10822# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10823# This bug is HP SR number 8606223364.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010824{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
10825$as_echo_n "checking size of size_t... " >&6; }
Martin v. Löwis18e16552006-02-15 17:27:45 +000010826if test "${ac_cv_sizeof_size_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010827 $as_echo_n "(cached) " >&6
Martin v. Löwis18e16552006-02-15 17:27:45 +000010828else
Martin v. Löwis18e16552006-02-15 17:27:45 +000010829 if test "$cross_compiling" = yes; then
10830 # Depending upon the size, compute the lo and hi bounds.
10831cat >conftest.$ac_ext <<_ACEOF
10832/* confdefs.h. */
10833_ACEOF
10834cat confdefs.h >>conftest.$ac_ext
10835cat >>conftest.$ac_ext <<_ACEOF
10836/* end confdefs.h. */
10837$ac_includes_default
10838int
10839main ()
10840{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010841static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
Martin v. Löwis18e16552006-02-15 17:27:45 +000010842test_array [0] = 0
10843
10844 ;
10845 return 0;
10846}
10847_ACEOF
10848rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010849if { (ac_try="$ac_compile"
10850case "(($ac_try" in
10851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852 *) ac_try_echo=$ac_try;;
10853esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10855$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010856 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +000010857 ac_status=$?
10858 grep -v '^ *+' conftest.er1 >conftest.err
10859 rm -f conftest.er1
10860 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010862 (exit $ac_status); } && {
10863 test -z "$ac_c_werror_flag" ||
10864 test ! -s conftest.err
10865 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +000010866 ac_lo=0 ac_mid=0
10867 while :; do
10868 cat >conftest.$ac_ext <<_ACEOF
10869/* confdefs.h. */
10870_ACEOF
10871cat confdefs.h >>conftest.$ac_ext
10872cat >>conftest.$ac_ext <<_ACEOF
10873/* end confdefs.h. */
10874$ac_includes_default
10875int
10876main ()
10877{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010878static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
Martin v. Löwis18e16552006-02-15 17:27:45 +000010879test_array [0] = 0
10880
10881 ;
10882 return 0;
10883}
10884_ACEOF
10885rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010886if { (ac_try="$ac_compile"
10887case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10890esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10892$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010893 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +000010894 ac_status=$?
10895 grep -v '^ *+' conftest.er1 >conftest.err
10896 rm -f conftest.er1
10897 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010899 (exit $ac_status); } && {
10900 test -z "$ac_c_werror_flag" ||
10901 test ! -s conftest.err
10902 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +000010903 ac_hi=$ac_mid; break
10904else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010905 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwis18e16552006-02-15 17:27:45 +000010906sed 's/^/| /' conftest.$ac_ext >&5
10907
Martin v. Löwiseba40652007-08-30 20:10:57 +000010908 ac_lo=`expr $ac_mid + 1`
10909 if test $ac_lo -le $ac_mid; then
10910 ac_lo= ac_hi=
10911 break
10912 fi
10913 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis18e16552006-02-15 17:27:45 +000010914fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000010915
10916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +000010917 done
10918else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010919 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwis18e16552006-02-15 17:27:45 +000010920sed 's/^/| /' conftest.$ac_ext >&5
10921
Martin v. Löwiseba40652007-08-30 20:10:57 +000010922 cat >conftest.$ac_ext <<_ACEOF
Martin v. Löwis18e16552006-02-15 17:27:45 +000010923/* confdefs.h. */
10924_ACEOF
10925cat confdefs.h >>conftest.$ac_ext
10926cat >>conftest.$ac_ext <<_ACEOF
10927/* end confdefs.h. */
10928$ac_includes_default
10929int
10930main ()
10931{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010932static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
Martin v. Löwis18e16552006-02-15 17:27:45 +000010933test_array [0] = 0
10934
10935 ;
10936 return 0;
10937}
10938_ACEOF
10939rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010940if { (ac_try="$ac_compile"
10941case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10944esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10946$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010947 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +000010948 ac_status=$?
10949 grep -v '^ *+' conftest.er1 >conftest.err
10950 rm -f conftest.er1
10951 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010953 (exit $ac_status); } && {
10954 test -z "$ac_c_werror_flag" ||
10955 test ! -s conftest.err
10956 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +000010957 ac_hi=-1 ac_mid=-1
10958 while :; do
10959 cat >conftest.$ac_ext <<_ACEOF
10960/* confdefs.h. */
10961_ACEOF
10962cat confdefs.h >>conftest.$ac_ext
10963cat >>conftest.$ac_ext <<_ACEOF
10964/* end confdefs.h. */
10965$ac_includes_default
10966int
10967main ()
10968{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010969static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
Martin v. Löwis18e16552006-02-15 17:27:45 +000010970test_array [0] = 0
10971
10972 ;
10973 return 0;
10974}
10975_ACEOF
10976rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000010977if { (ac_try="$ac_compile"
10978case "(($ac_try" in
10979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10981esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10983$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010984 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +000010985 ac_status=$?
10986 grep -v '^ *+' conftest.er1 >conftest.err
10987 rm -f conftest.er1
10988 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000010990 (exit $ac_status); } && {
10991 test -z "$ac_c_werror_flag" ||
10992 test ! -s conftest.err
10993 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +000010994 ac_lo=$ac_mid; break
10995else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000010996 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwis18e16552006-02-15 17:27:45 +000010997sed 's/^/| /' conftest.$ac_ext >&5
10998
Martin v. Löwiseba40652007-08-30 20:10:57 +000010999 ac_hi=`expr '(' $ac_mid ')' - 1`
11000 if test $ac_mid -le $ac_hi; then
11001 ac_lo= ac_hi=
11002 break
11003 fi
11004 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis18e16552006-02-15 17:27:45 +000011005fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011006
11007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +000011008 done
11009else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011010 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwis18e16552006-02-15 17:27:45 +000011011sed 's/^/| /' conftest.$ac_ext >&5
11012
Martin v. Löwiseba40652007-08-30 20:10:57 +000011013 ac_lo= ac_hi=
Martin v. Löwis18e16552006-02-15 17:27:45 +000011014fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011015
11016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +000011017fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011018
11019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +000011020# Binary search between lo and hi bounds.
11021while test "x$ac_lo" != "x$ac_hi"; do
11022 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11023 cat >conftest.$ac_ext <<_ACEOF
11024/* confdefs.h. */
11025_ACEOF
11026cat confdefs.h >>conftest.$ac_ext
11027cat >>conftest.$ac_ext <<_ACEOF
11028/* end confdefs.h. */
11029$ac_includes_default
11030int
11031main ()
11032{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011033static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
Martin v. Löwis18e16552006-02-15 17:27:45 +000011034test_array [0] = 0
11035
11036 ;
11037 return 0;
11038}
11039_ACEOF
11040rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011041if { (ac_try="$ac_compile"
11042case "(($ac_try" in
11043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044 *) ac_try_echo=$ac_try;;
11045esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11047$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011048 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis18e16552006-02-15 17:27:45 +000011049 ac_status=$?
11050 grep -v '^ *+' conftest.er1 >conftest.err
11051 rm -f conftest.er1
11052 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011054 (exit $ac_status); } && {
11055 test -z "$ac_c_werror_flag" ||
11056 test ! -s conftest.err
11057 } && test -s conftest.$ac_objext; then
Martin v. Löwis18e16552006-02-15 17:27:45 +000011058 ac_hi=$ac_mid
11059else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011060 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwis18e16552006-02-15 17:27:45 +000011061sed 's/^/| /' conftest.$ac_ext >&5
11062
Martin v. Löwiseba40652007-08-30 20:10:57 +000011063 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis18e16552006-02-15 17:27:45 +000011064fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011065
11066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis18e16552006-02-15 17:27:45 +000011067done
11068case $ac_lo in
11069?*) ac_cv_sizeof_size_t=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000011070'') if test "$ac_cv_type_size_t" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011071 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11073{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
Martin v. Löwis18e16552006-02-15 17:27:45 +000011074See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011075$as_echo "$as_me: error: cannot compute sizeof (size_t)
Martin v. Löwis18e16552006-02-15 17:27:45 +000011076See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011077 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000011078 else
11079 ac_cv_sizeof_size_t=0
11080 fi ;;
Martin v. Löwis18e16552006-02-15 17:27:45 +000011081esac
11082else
Martin v. Löwis18e16552006-02-15 17:27:45 +000011083 cat >conftest.$ac_ext <<_ACEOF
11084/* confdefs.h. */
11085_ACEOF
11086cat confdefs.h >>conftest.$ac_ext
11087cat >>conftest.$ac_ext <<_ACEOF
11088/* end confdefs.h. */
11089$ac_includes_default
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011090static long int longval () { return (long int) (sizeof (size_t)); }
11091static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
Martin v. Löwis18e16552006-02-15 17:27:45 +000011092#include <stdio.h>
11093#include <stdlib.h>
11094int
11095main ()
11096{
11097
11098 FILE *f = fopen ("conftest.val", "w");
11099 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000011100 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011101 if (((long int) (sizeof (size_t))) < 0)
Martin v. Löwis18e16552006-02-15 17:27:45 +000011102 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000011103 long int i = longval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011104 if (i != ((long int) (sizeof (size_t))))
Martin v. Löwiseba40652007-08-30 20:10:57 +000011105 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011106 fprintf (f, "%ld", i);
Martin v. Löwis18e16552006-02-15 17:27:45 +000011107 }
11108 else
11109 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000011110 unsigned long int i = ulongval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011111 if (i != ((long int) (sizeof (size_t))))
Martin v. Löwiseba40652007-08-30 20:10:57 +000011112 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011113 fprintf (f, "%lu", i);
Martin v. Löwis18e16552006-02-15 17:27:45 +000011114 }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011115 /* Do not output a trailing newline, as this causes \r\n confusion
11116 on some platforms. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000011117 return ferror (f) || fclose (f) != 0;
Martin v. Löwis18e16552006-02-15 17:27:45 +000011118
11119 ;
11120 return 0;
11121}
11122_ACEOF
11123rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011124if { (ac_try="$ac_link"
11125case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11130$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011131 (eval "$ac_link") 2>&5
Martin v. Löwis18e16552006-02-15 17:27:45 +000011132 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis18e16552006-02-15 17:27:45 +000011134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000011135 { (case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11138esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11140$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011141 (eval "$ac_try") 2>&5
Martin v. Löwis18e16552006-02-15 17:27:45 +000011142 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis18e16552006-02-15 17:27:45 +000011144 (exit $ac_status); }; }; then
11145 ac_cv_sizeof_size_t=`cat conftest.val`
11146else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011147 $as_echo "$as_me: program exited with status $ac_status" >&5
11148$as_echo "$as_me: failed program was:" >&5
Martin v. Löwis18e16552006-02-15 17:27:45 +000011149sed 's/^/| /' conftest.$ac_ext >&5
11150
11151( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000011152if test "$ac_cv_type_size_t" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011153 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11155{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
Martin v. Löwis18e16552006-02-15 17:27:45 +000011156See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011157$as_echo "$as_me: error: cannot compute sizeof (size_t)
Martin v. Löwis18e16552006-02-15 17:27:45 +000011158See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011159 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000011160 else
11161 ac_cv_sizeof_size_t=0
11162 fi
Martin v. Löwis18e16552006-02-15 17:27:45 +000011163fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011164rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000011165rm -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 +000011166fi
11167rm -f conftest.val
Martin v. Löwis18e16552006-02-15 17:27:45 +000011168fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011169{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
11170$as_echo "$ac_cv_sizeof_size_t" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000011171
11172
11173
Martin v. Löwis18e16552006-02-15 17:27:45 +000011174cat >>confdefs.h <<_ACEOF
11175#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
11176_ACEOF
11177
11178
Christian Heimes951cc0f2008-01-31 23:08:23 +000011179# The cast to long int works around a bug in the HP C Compiler
11180# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11181# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11182# This bug is HP SR number 8606223364.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011183{ $as_echo "$as_me:$LINENO: checking size of pid_t" >&5
11184$as_echo_n "checking size of pid_t... " >&6; }
Christian Heimes951cc0f2008-01-31 23:08:23 +000011185if test "${ac_cv_sizeof_pid_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011186 $as_echo_n "(cached) " >&6
Christian Heimes951cc0f2008-01-31 23:08:23 +000011187else
11188 if test "$cross_compiling" = yes; then
11189 # Depending upon the size, compute the lo and hi bounds.
11190cat >conftest.$ac_ext <<_ACEOF
11191/* confdefs.h. */
11192_ACEOF
11193cat confdefs.h >>conftest.$ac_ext
11194cat >>conftest.$ac_ext <<_ACEOF
11195/* end confdefs.h. */
11196$ac_includes_default
Christian Heimes951cc0f2008-01-31 23:08:23 +000011197int
11198main ()
11199{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011200static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= 0)];
Christian Heimes951cc0f2008-01-31 23:08:23 +000011201test_array [0] = 0
11202
11203 ;
11204 return 0;
11205}
11206_ACEOF
11207rm -f conftest.$ac_objext
11208if { (ac_try="$ac_compile"
11209case "(($ac_try" in
11210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211 *) ac_try_echo=$ac_try;;
11212esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11214$as_echo "$ac_try_echo") >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011215 (eval "$ac_compile") 2>conftest.er1
11216 ac_status=$?
11217 grep -v '^ *+' conftest.er1 >conftest.err
11218 rm -f conftest.er1
11219 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011221 (exit $ac_status); } && {
11222 test -z "$ac_c_werror_flag" ||
11223 test ! -s conftest.err
11224 } && test -s conftest.$ac_objext; then
11225 ac_lo=0 ac_mid=0
11226 while :; do
11227 cat >conftest.$ac_ext <<_ACEOF
11228/* confdefs.h. */
11229_ACEOF
11230cat confdefs.h >>conftest.$ac_ext
11231cat >>conftest.$ac_ext <<_ACEOF
11232/* end confdefs.h. */
11233$ac_includes_default
Christian Heimes951cc0f2008-01-31 23:08:23 +000011234int
11235main ()
11236{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011237static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)];
Christian Heimes951cc0f2008-01-31 23:08:23 +000011238test_array [0] = 0
11239
11240 ;
11241 return 0;
11242}
11243_ACEOF
11244rm -f conftest.$ac_objext
11245if { (ac_try="$ac_compile"
11246case "(($ac_try" in
11247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248 *) ac_try_echo=$ac_try;;
11249esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11251$as_echo "$ac_try_echo") >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011252 (eval "$ac_compile") 2>conftest.er1
11253 ac_status=$?
11254 grep -v '^ *+' conftest.er1 >conftest.err
11255 rm -f conftest.er1
11256 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011258 (exit $ac_status); } && {
11259 test -z "$ac_c_werror_flag" ||
11260 test ! -s conftest.err
11261 } && test -s conftest.$ac_objext; then
11262 ac_hi=$ac_mid; break
11263else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011264 $as_echo "$as_me: failed program was:" >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011265sed 's/^/| /' conftest.$ac_ext >&5
11266
11267 ac_lo=`expr $ac_mid + 1`
11268 if test $ac_lo -le $ac_mid; then
11269 ac_lo= ac_hi=
11270 break
11271 fi
11272 ac_mid=`expr 2 '*' $ac_mid + 1`
11273fi
11274
11275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11276 done
11277else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011278 $as_echo "$as_me: failed program was:" >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011279sed 's/^/| /' conftest.$ac_ext >&5
11280
11281 cat >conftest.$ac_ext <<_ACEOF
11282/* confdefs.h. */
11283_ACEOF
11284cat confdefs.h >>conftest.$ac_ext
11285cat >>conftest.$ac_ext <<_ACEOF
11286/* end confdefs.h. */
11287$ac_includes_default
Christian Heimes951cc0f2008-01-31 23:08:23 +000011288int
11289main ()
11290{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011291static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) < 0)];
Christian Heimes951cc0f2008-01-31 23:08:23 +000011292test_array [0] = 0
11293
11294 ;
11295 return 0;
11296}
11297_ACEOF
11298rm -f conftest.$ac_objext
11299if { (ac_try="$ac_compile"
11300case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11303esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11305$as_echo "$ac_try_echo") >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011306 (eval "$ac_compile") 2>conftest.er1
11307 ac_status=$?
11308 grep -v '^ *+' conftest.er1 >conftest.err
11309 rm -f conftest.er1
11310 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011312 (exit $ac_status); } && {
11313 test -z "$ac_c_werror_flag" ||
11314 test ! -s conftest.err
11315 } && test -s conftest.$ac_objext; then
11316 ac_hi=-1 ac_mid=-1
11317 while :; do
11318 cat >conftest.$ac_ext <<_ACEOF
11319/* confdefs.h. */
11320_ACEOF
11321cat confdefs.h >>conftest.$ac_ext
11322cat >>conftest.$ac_ext <<_ACEOF
11323/* end confdefs.h. */
11324$ac_includes_default
Christian Heimes951cc0f2008-01-31 23:08:23 +000011325int
11326main ()
11327{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011328static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) >= $ac_mid)];
Christian Heimes951cc0f2008-01-31 23:08:23 +000011329test_array [0] = 0
11330
11331 ;
11332 return 0;
11333}
11334_ACEOF
11335rm -f conftest.$ac_objext
11336if { (ac_try="$ac_compile"
11337case "(($ac_try" in
11338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339 *) ac_try_echo=$ac_try;;
11340esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11342$as_echo "$ac_try_echo") >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011343 (eval "$ac_compile") 2>conftest.er1
11344 ac_status=$?
11345 grep -v '^ *+' conftest.er1 >conftest.err
11346 rm -f conftest.er1
11347 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011349 (exit $ac_status); } && {
11350 test -z "$ac_c_werror_flag" ||
11351 test ! -s conftest.err
11352 } && test -s conftest.$ac_objext; then
11353 ac_lo=$ac_mid; break
11354else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011355 $as_echo "$as_me: failed program was:" >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011356sed 's/^/| /' conftest.$ac_ext >&5
11357
11358 ac_hi=`expr '(' $ac_mid ')' - 1`
11359 if test $ac_mid -le $ac_hi; then
11360 ac_lo= ac_hi=
11361 break
11362 fi
11363 ac_mid=`expr 2 '*' $ac_mid`
11364fi
11365
11366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11367 done
11368else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011369 $as_echo "$as_me: failed program was:" >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011370sed 's/^/| /' conftest.$ac_ext >&5
11371
11372 ac_lo= ac_hi=
11373fi
11374
11375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11376fi
11377
11378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379# Binary search between lo and hi bounds.
11380while test "x$ac_lo" != "x$ac_hi"; do
11381 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11382 cat >conftest.$ac_ext <<_ACEOF
11383/* confdefs.h. */
11384_ACEOF
11385cat confdefs.h >>conftest.$ac_ext
11386cat >>conftest.$ac_ext <<_ACEOF
11387/* end confdefs.h. */
11388$ac_includes_default
Christian Heimes951cc0f2008-01-31 23:08:23 +000011389int
11390main ()
11391{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011392static int test_array [1 - 2 * !(((long int) (sizeof (pid_t))) <= $ac_mid)];
Christian Heimes951cc0f2008-01-31 23:08:23 +000011393test_array [0] = 0
11394
11395 ;
11396 return 0;
11397}
11398_ACEOF
11399rm -f conftest.$ac_objext
11400if { (ac_try="$ac_compile"
11401case "(($ac_try" in
11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403 *) ac_try_echo=$ac_try;;
11404esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11406$as_echo "$ac_try_echo") >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011407 (eval "$ac_compile") 2>conftest.er1
11408 ac_status=$?
11409 grep -v '^ *+' conftest.er1 >conftest.err
11410 rm -f conftest.er1
11411 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011413 (exit $ac_status); } && {
11414 test -z "$ac_c_werror_flag" ||
11415 test ! -s conftest.err
11416 } && test -s conftest.$ac_objext; then
11417 ac_hi=$ac_mid
11418else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011419 $as_echo "$as_me: failed program was:" >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011420sed 's/^/| /' conftest.$ac_ext >&5
11421
11422 ac_lo=`expr '(' $ac_mid ')' + 1`
11423fi
11424
11425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426done
11427case $ac_lo in
11428?*) ac_cv_sizeof_pid_t=$ac_lo;;
11429'') if test "$ac_cv_type_pid_t" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011430 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11432{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
Christian Heimes951cc0f2008-01-31 23:08:23 +000011433See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011434$as_echo "$as_me: error: cannot compute sizeof (pid_t)
Christian Heimes951cc0f2008-01-31 23:08:23 +000011435See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011436 { (exit 77); exit 77; }; }; }
Christian Heimes951cc0f2008-01-31 23:08:23 +000011437 else
11438 ac_cv_sizeof_pid_t=0
11439 fi ;;
11440esac
11441else
11442 cat >conftest.$ac_ext <<_ACEOF
11443/* confdefs.h. */
11444_ACEOF
11445cat confdefs.h >>conftest.$ac_ext
11446cat >>conftest.$ac_ext <<_ACEOF
11447/* end confdefs.h. */
11448$ac_includes_default
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011449static long int longval () { return (long int) (sizeof (pid_t)); }
11450static unsigned long int ulongval () { return (long int) (sizeof (pid_t)); }
Christian Heimes951cc0f2008-01-31 23:08:23 +000011451#include <stdio.h>
11452#include <stdlib.h>
11453int
11454main ()
11455{
11456
11457 FILE *f = fopen ("conftest.val", "w");
11458 if (! f)
11459 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011460 if (((long int) (sizeof (pid_t))) < 0)
Christian Heimes951cc0f2008-01-31 23:08:23 +000011461 {
11462 long int i = longval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011463 if (i != ((long int) (sizeof (pid_t))))
Christian Heimes951cc0f2008-01-31 23:08:23 +000011464 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011465 fprintf (f, "%ld", i);
Christian Heimes951cc0f2008-01-31 23:08:23 +000011466 }
11467 else
11468 {
11469 unsigned long int i = ulongval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011470 if (i != ((long int) (sizeof (pid_t))))
Christian Heimes951cc0f2008-01-31 23:08:23 +000011471 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011472 fprintf (f, "%lu", i);
Christian Heimes951cc0f2008-01-31 23:08:23 +000011473 }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011474 /* Do not output a trailing newline, as this causes \r\n confusion
11475 on some platforms. */
Christian Heimes951cc0f2008-01-31 23:08:23 +000011476 return ferror (f) || fclose (f) != 0;
11477
11478 ;
11479 return 0;
11480}
11481_ACEOF
11482rm -f conftest$ac_exeext
11483if { (ac_try="$ac_link"
11484case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11487esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11489$as_echo "$ac_try_echo") >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011490 (eval "$ac_link") 2>&5
11491 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11494 { (case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11497esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11499$as_echo "$ac_try_echo") >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011500 (eval "$ac_try") 2>&5
11501 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011503 (exit $ac_status); }; }; then
11504 ac_cv_sizeof_pid_t=`cat conftest.val`
11505else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011506 $as_echo "$as_me: program exited with status $ac_status" >&5
11507$as_echo "$as_me: failed program was:" >&5
Christian Heimes951cc0f2008-01-31 23:08:23 +000011508sed 's/^/| /' conftest.$ac_ext >&5
11509
11510( exit $ac_status )
11511if test "$ac_cv_type_pid_t" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011512 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11514{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
Christian Heimes951cc0f2008-01-31 23:08:23 +000011515See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011516$as_echo "$as_me: error: cannot compute sizeof (pid_t)
Christian Heimes951cc0f2008-01-31 23:08:23 +000011517See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011518 { (exit 77); exit 77; }; }; }
Christian Heimes951cc0f2008-01-31 23:08:23 +000011519 else
11520 ac_cv_sizeof_pid_t=0
11521 fi
11522fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011523rm -rf conftest.dSYM
Christian Heimes951cc0f2008-01-31 23:08:23 +000011524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11525fi
11526rm -f conftest.val
11527fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011528{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11529$as_echo "$ac_cv_sizeof_pid_t" >&6; }
Christian Heimes951cc0f2008-01-31 23:08:23 +000011530
11531
11532
11533cat >>confdefs.h <<_ACEOF
11534#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11535_ACEOF
11536
11537
Michael W. Hudson54241132001-12-07 15:38:26 +000011538
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011539{ $as_echo "$as_me:$LINENO: checking for long long support" >&5
11540$as_echo_n "checking for long long support... " >&6; }
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011541have_long_long=no
Martin v. Löwis11437992002-04-12 09:54:03 +000011542cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000011543/* confdefs.h. */
11544_ACEOF
11545cat confdefs.h >>conftest.$ac_ext
11546cat >>conftest.$ac_ext <<_ACEOF
11547/* end confdefs.h. */
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011548
Martin v. Löwis11437992002-04-12 09:54:03 +000011549int
11550main ()
11551{
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011552long long x; x = (long long)0;
Martin v. Löwis11437992002-04-12 09:54:03 +000011553 ;
11554 return 0;
11555}
11556_ACEOF
11557rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011558if { (ac_try="$ac_compile"
11559case "(($ac_try" in
11560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561 *) ac_try_echo=$ac_try;;
11562esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11564$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011565 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000011566 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000011567 grep -v '^ *+' conftest.er1 >conftest.err
11568 rm -f conftest.er1
11569 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011571 (exit $ac_status); } && {
11572 test -z "$ac_c_werror_flag" ||
11573 test ! -s conftest.err
11574 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011575
11576
11577cat >>confdefs.h <<\_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011578#define HAVE_LONG_LONG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000011579_ACEOF
11580
Martin v. Löwisc45929e2002-04-06 10:10:49 +000011581 have_long_long=yes
11582
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011583else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011584 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011585sed 's/^/| /' conftest.$ac_ext >&5
11586
Martin v. Löwiseba40652007-08-30 20:10:57 +000011587
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011588fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011589
11590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011591{ $as_echo "$as_me:$LINENO: result: $have_long_long" >&5
11592$as_echo "$have_long_long" >&6; }
Guido van Rossum96f2eb91999-04-10 16:02:18 +000011593if test "$have_long_long" = yes ; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000011594# The cast to long int works around a bug in the HP C Compiler
11595# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11596# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11597# This bug is HP SR number 8606223364.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011598{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
11599$as_echo_n "checking size of long long... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000011600if test "${ac_cv_sizeof_long_long+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011601 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +000011602else
Martin v. Löwis11437992002-04-12 09:54:03 +000011603 if test "$cross_compiling" = yes; then
11604 # Depending upon the size, compute the lo and hi bounds.
11605cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000011606/* confdefs.h. */
11607_ACEOF
11608cat confdefs.h >>conftest.$ac_ext
11609cat >>conftest.$ac_ext <<_ACEOF
11610/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011611$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000011612int
11613main ()
11614{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011615static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000011616test_array [0] = 0
11617
11618 ;
11619 return 0;
11620}
11621_ACEOF
11622rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011623if { (ac_try="$ac_compile"
11624case "(($ac_try" in
11625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626 *) ac_try_echo=$ac_try;;
11627esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11629$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011630 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000011631 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000011632 grep -v '^ *+' conftest.er1 >conftest.err
11633 rm -f conftest.er1
11634 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011636 (exit $ac_status); } && {
11637 test -z "$ac_c_werror_flag" ||
11638 test ! -s conftest.err
11639 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011640 ac_lo=0 ac_mid=0
11641 while :; do
11642 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000011643/* confdefs.h. */
11644_ACEOF
11645cat confdefs.h >>conftest.$ac_ext
11646cat >>conftest.$ac_ext <<_ACEOF
11647/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011648$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000011649int
11650main ()
11651{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011652static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000011653test_array [0] = 0
11654
11655 ;
11656 return 0;
11657}
11658_ACEOF
11659rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011660if { (ac_try="$ac_compile"
11661case "(($ac_try" in
11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 *) ac_try_echo=$ac_try;;
11664esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11666$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011667 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000011668 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000011669 grep -v '^ *+' conftest.er1 >conftest.err
11670 rm -f conftest.er1
11671 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011673 (exit $ac_status); } && {
11674 test -z "$ac_c_werror_flag" ||
11675 test ! -s conftest.err
11676 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011677 ac_hi=$ac_mid; break
11678else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011679 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011680sed 's/^/| /' conftest.$ac_ext >&5
11681
Martin v. Löwiseba40652007-08-30 20:10:57 +000011682 ac_lo=`expr $ac_mid + 1`
11683 if test $ac_lo -le $ac_mid; then
11684 ac_lo= ac_hi=
11685 break
11686 fi
11687 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000011688fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011689
11690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011691 done
11692else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011693 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011694sed 's/^/| /' conftest.$ac_ext >&5
11695
Martin v. Löwiseba40652007-08-30 20:10:57 +000011696 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000011697/* confdefs.h. */
11698_ACEOF
11699cat confdefs.h >>conftest.$ac_ext
11700cat >>conftest.$ac_ext <<_ACEOF
11701/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011702$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000011703int
11704main ()
11705{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011706static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000011707test_array [0] = 0
11708
11709 ;
11710 return 0;
11711}
11712_ACEOF
11713rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011714if { (ac_try="$ac_compile"
11715case "(($ac_try" in
11716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717 *) ac_try_echo=$ac_try;;
11718esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11720$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011721 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000011722 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000011723 grep -v '^ *+' conftest.er1 >conftest.err
11724 rm -f conftest.er1
11725 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011727 (exit $ac_status); } && {
11728 test -z "$ac_c_werror_flag" ||
11729 test ! -s conftest.err
11730 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011731 ac_hi=-1 ac_mid=-1
11732 while :; do
11733 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000011734/* confdefs.h. */
11735_ACEOF
11736cat confdefs.h >>conftest.$ac_ext
11737cat >>conftest.$ac_ext <<_ACEOF
11738/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011739$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000011740int
11741main ()
11742{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011743static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000011744test_array [0] = 0
11745
11746 ;
11747 return 0;
11748}
11749_ACEOF
11750rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011751if { (ac_try="$ac_compile"
11752case "(($ac_try" in
11753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754 *) ac_try_echo=$ac_try;;
11755esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11757$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011758 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000011759 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000011760 grep -v '^ *+' conftest.er1 >conftest.err
11761 rm -f conftest.er1
11762 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011764 (exit $ac_status); } && {
11765 test -z "$ac_c_werror_flag" ||
11766 test ! -s conftest.err
11767 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011768 ac_lo=$ac_mid; break
11769else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011770 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011771sed 's/^/| /' conftest.$ac_ext >&5
11772
Martin v. Löwiseba40652007-08-30 20:10:57 +000011773 ac_hi=`expr '(' $ac_mid ')' - 1`
11774 if test $ac_mid -le $ac_hi; then
11775 ac_lo= ac_hi=
11776 break
11777 fi
11778 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +000011779fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011780
11781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011782 done
11783else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011784 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011785sed 's/^/| /' conftest.$ac_ext >&5
11786
Martin v. Löwiseba40652007-08-30 20:10:57 +000011787 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +000011788fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011789
11790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011791fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011792
11793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011794# Binary search between lo and hi bounds.
11795while test "x$ac_lo" != "x$ac_hi"; do
11796 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11797 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000011798/* confdefs.h. */
11799_ACEOF
11800cat confdefs.h >>conftest.$ac_ext
11801cat >>conftest.$ac_ext <<_ACEOF
11802/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011803$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000011804int
11805main ()
11806{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011807static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000011808test_array [0] = 0
11809
11810 ;
11811 return 0;
11812}
11813_ACEOF
11814rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011815if { (ac_try="$ac_compile"
11816case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11821$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011822 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000011823 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000011824 grep -v '^ *+' conftest.er1 >conftest.err
11825 rm -f conftest.er1
11826 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011828 (exit $ac_status); } && {
11829 test -z "$ac_c_werror_flag" ||
11830 test ! -s conftest.err
11831 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011832 ac_hi=$ac_mid
11833else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011834 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011835sed 's/^/| /' conftest.$ac_ext >&5
11836
Martin v. Löwiseba40652007-08-30 20:10:57 +000011837 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000011838fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000011839
11840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000011841done
11842case $ac_lo in
11843?*) ac_cv_sizeof_long_long=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000011844'') if test "$ac_cv_type_long_long" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011845 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11847{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Skip Montanaro6dead952003-09-25 14:50:04 +000011848See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011849$as_echo "$as_me: error: cannot compute sizeof (long long)
Skip Montanaro6dead952003-09-25 14:50:04 +000011850See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011851 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000011852 else
11853 ac_cv_sizeof_long_long=0
11854 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000011855esac
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011856else
Martin v. Löwis11437992002-04-12 09:54:03 +000011857 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000011858/* confdefs.h. */
11859_ACEOF
11860cat confdefs.h >>conftest.$ac_ext
11861cat >>conftest.$ac_ext <<_ACEOF
11862/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011863$ac_includes_default
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011864static long int longval () { return (long int) (sizeof (long long)); }
11865static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
Michael W. Hudson54241132001-12-07 15:38:26 +000011866#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000011867#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000011868int
11869main ()
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011870{
Martin v. Löwis11437992002-04-12 09:54:03 +000011871
11872 FILE *f = fopen ("conftest.val", "w");
11873 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000011874 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011875 if (((long int) (sizeof (long long))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000011876 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000011877 long int i = longval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011878 if (i != ((long int) (sizeof (long long))))
Martin v. Löwiseba40652007-08-30 20:10:57 +000011879 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011880 fprintf (f, "%ld", i);
Martin v. Löwis11437992002-04-12 09:54:03 +000011881 }
11882 else
11883 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000011884 unsigned long int i = ulongval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011885 if (i != ((long int) (sizeof (long long))))
Martin v. Löwiseba40652007-08-30 20:10:57 +000011886 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011887 fprintf (f, "%lu", i);
Martin v. Löwis11437992002-04-12 09:54:03 +000011888 }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011889 /* Do not output a trailing newline, as this causes \r\n confusion
11890 on some platforms. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000011891 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000011892
11893 ;
11894 return 0;
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011895}
Martin v. Löwis11437992002-04-12 09:54:03 +000011896_ACEOF
11897rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000011898if { (ac_try="$ac_link"
11899case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11902esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11904$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011905 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000011906 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000011908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000011909 { (case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11912esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11914$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000011915 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000011916 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000011918 (exit $ac_status); }; }; then
11919 ac_cv_sizeof_long_long=`cat conftest.val`
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011920else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011921 $as_echo "$as_me: program exited with status $ac_status" >&5
11922$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000011923sed 's/^/| /' conftest.$ac_ext >&5
11924
Martin v. Löwis11437992002-04-12 09:54:03 +000011925( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000011926if test "$ac_cv_type_long_long" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011927 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11929{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Skip Montanaro6dead952003-09-25 14:50:04 +000011930See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011931$as_echo "$as_me: error: cannot compute sizeof (long long)
Skip Montanaro6dead952003-09-25 14:50:04 +000011932See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011933 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000011934 else
11935 ac_cv_sizeof_long_long=0
11936 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011937fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011938rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000011939rm -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 +000011940fi
11941rm -f conftest.val
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011942fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011943{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11944$as_echo "$ac_cv_sizeof_long_long" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000011945
11946
11947
Martin v. Löwis11437992002-04-12 09:54:03 +000011948cat >>confdefs.h <<_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011949#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Martin v. Löwis11437992002-04-12 09:54:03 +000011950_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011951
Michael W. Hudson54241132001-12-07 15:38:26 +000011952
Guido van Rossumec95c7b1998-08-04 17:59:56 +000011953fi
11954
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011955{ $as_echo "$as_me:$LINENO: checking for long double support" >&5
11956$as_echo_n "checking for long double support... " >&6; }
Mark Dickinsondc1688a2008-06-27 22:20:14 +000011957have_long_double=no
11958cat >conftest.$ac_ext <<_ACEOF
11959/* confdefs.h. */
11960_ACEOF
11961cat confdefs.h >>conftest.$ac_ext
11962cat >>conftest.$ac_ext <<_ACEOF
11963/* end confdefs.h. */
11964
11965int
11966main ()
11967{
11968long double x; x = (long double)0.;
11969 ;
11970 return 0;
11971}
11972_ACEOF
11973rm -f conftest.$ac_objext
11974if { (ac_try="$ac_compile"
11975case "(($ac_try" in
11976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977 *) ac_try_echo=$ac_try;;
11978esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11980$as_echo "$ac_try_echo") >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000011981 (eval "$ac_compile") 2>conftest.er1
11982 ac_status=$?
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000011986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000011987 (exit $ac_status); } && {
11988 test -z "$ac_c_werror_flag" ||
11989 test ! -s conftest.err
11990 } && test -s conftest.$ac_objext; then
11991
11992
11993cat >>confdefs.h <<\_ACEOF
11994#define HAVE_LONG_DOUBLE 1
11995_ACEOF
11996
11997 have_long_double=yes
11998
11999else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012000 $as_echo "$as_me: failed program was:" >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012001sed 's/^/| /' conftest.$ac_ext >&5
12002
12003
12004fi
12005
12006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012007{ $as_echo "$as_me:$LINENO: result: $have_long_double" >&5
12008$as_echo "$have_long_double" >&6; }
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012009if test "$have_long_double" = yes ; then
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012010# The cast to long int works around a bug in the HP C Compiler
12011# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12012# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12013# This bug is HP SR number 8606223364.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012014{ $as_echo "$as_me:$LINENO: checking size of long double" >&5
12015$as_echo_n "checking size of long double... " >&6; }
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012016if test "${ac_cv_sizeof_long_double+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012017 $as_echo_n "(cached) " >&6
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012018else
12019 if test "$cross_compiling" = yes; then
12020 # Depending upon the size, compute the lo and hi bounds.
12021cat >conftest.$ac_ext <<_ACEOF
12022/* confdefs.h. */
12023_ACEOF
12024cat confdefs.h >>conftest.$ac_ext
12025cat >>conftest.$ac_ext <<_ACEOF
12026/* end confdefs.h. */
12027$ac_includes_default
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012028int
12029main ()
12030{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012031static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012032test_array [0] = 0
12033
12034 ;
12035 return 0;
12036}
12037_ACEOF
12038rm -f conftest.$ac_objext
12039if { (ac_try="$ac_compile"
12040case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12045$as_echo "$ac_try_echo") >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012046 (eval "$ac_compile") 2>conftest.er1
12047 ac_status=$?
12048 grep -v '^ *+' conftest.er1 >conftest.err
12049 rm -f conftest.er1
12050 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012052 (exit $ac_status); } && {
12053 test -z "$ac_c_werror_flag" ||
12054 test ! -s conftest.err
12055 } && test -s conftest.$ac_objext; then
12056 ac_lo=0 ac_mid=0
12057 while :; do
12058 cat >conftest.$ac_ext <<_ACEOF
12059/* confdefs.h. */
12060_ACEOF
12061cat confdefs.h >>conftest.$ac_ext
12062cat >>conftest.$ac_ext <<_ACEOF
12063/* end confdefs.h. */
12064$ac_includes_default
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012065int
12066main ()
12067{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012068static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012069test_array [0] = 0
12070
12071 ;
12072 return 0;
12073}
12074_ACEOF
12075rm -f conftest.$ac_objext
12076if { (ac_try="$ac_compile"
12077case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12080esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12082$as_echo "$ac_try_echo") >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012083 (eval "$ac_compile") 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012089 (exit $ac_status); } && {
12090 test -z "$ac_c_werror_flag" ||
12091 test ! -s conftest.err
12092 } && test -s conftest.$ac_objext; then
12093 ac_hi=$ac_mid; break
12094else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012095 $as_echo "$as_me: failed program was:" >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012096sed 's/^/| /' conftest.$ac_ext >&5
12097
12098 ac_lo=`expr $ac_mid + 1`
12099 if test $ac_lo -le $ac_mid; then
12100 ac_lo= ac_hi=
12101 break
12102 fi
12103 ac_mid=`expr 2 '*' $ac_mid + 1`
12104fi
12105
12106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12107 done
12108else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012109 $as_echo "$as_me: failed program was:" >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012110sed 's/^/| /' conftest.$ac_ext >&5
12111
12112 cat >conftest.$ac_ext <<_ACEOF
12113/* confdefs.h. */
12114_ACEOF
12115cat confdefs.h >>conftest.$ac_ext
12116cat >>conftest.$ac_ext <<_ACEOF
12117/* end confdefs.h. */
12118$ac_includes_default
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012119int
12120main ()
12121{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012122static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012123test_array [0] = 0
12124
12125 ;
12126 return 0;
12127}
12128_ACEOF
12129rm -f conftest.$ac_objext
12130if { (ac_try="$ac_compile"
12131case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12134esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12136$as_echo "$ac_try_echo") >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012137 (eval "$ac_compile") 2>conftest.er1
12138 ac_status=$?
12139 grep -v '^ *+' conftest.er1 >conftest.err
12140 rm -f conftest.er1
12141 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012143 (exit $ac_status); } && {
12144 test -z "$ac_c_werror_flag" ||
12145 test ! -s conftest.err
12146 } && test -s conftest.$ac_objext; then
12147 ac_hi=-1 ac_mid=-1
12148 while :; do
12149 cat >conftest.$ac_ext <<_ACEOF
12150/* confdefs.h. */
12151_ACEOF
12152cat confdefs.h >>conftest.$ac_ext
12153cat >>conftest.$ac_ext <<_ACEOF
12154/* end confdefs.h. */
12155$ac_includes_default
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012156int
12157main ()
12158{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012159static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012160test_array [0] = 0
12161
12162 ;
12163 return 0;
12164}
12165_ACEOF
12166rm -f conftest.$ac_objext
12167if { (ac_try="$ac_compile"
12168case "(($ac_try" in
12169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12170 *) ac_try_echo=$ac_try;;
12171esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12173$as_echo "$ac_try_echo") >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012174 (eval "$ac_compile") 2>conftest.er1
12175 ac_status=$?
12176 grep -v '^ *+' conftest.er1 >conftest.err
12177 rm -f conftest.er1
12178 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012180 (exit $ac_status); } && {
12181 test -z "$ac_c_werror_flag" ||
12182 test ! -s conftest.err
12183 } && test -s conftest.$ac_objext; then
12184 ac_lo=$ac_mid; break
12185else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012186 $as_echo "$as_me: failed program was:" >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012187sed 's/^/| /' conftest.$ac_ext >&5
12188
12189 ac_hi=`expr '(' $ac_mid ')' - 1`
12190 if test $ac_mid -le $ac_hi; then
12191 ac_lo= ac_hi=
12192 break
12193 fi
12194 ac_mid=`expr 2 '*' $ac_mid`
12195fi
12196
12197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12198 done
12199else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012200 $as_echo "$as_me: failed program was:" >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012201sed 's/^/| /' conftest.$ac_ext >&5
12202
12203 ac_lo= ac_hi=
12204fi
12205
12206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207fi
12208
12209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12210# Binary search between lo and hi bounds.
12211while test "x$ac_lo" != "x$ac_hi"; do
12212 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12213 cat >conftest.$ac_ext <<_ACEOF
12214/* confdefs.h. */
12215_ACEOF
12216cat confdefs.h >>conftest.$ac_ext
12217cat >>conftest.$ac_ext <<_ACEOF
12218/* end confdefs.h. */
12219$ac_includes_default
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012220int
12221main ()
12222{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012223static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012224test_array [0] = 0
12225
12226 ;
12227 return 0;
12228}
12229_ACEOF
12230rm -f conftest.$ac_objext
12231if { (ac_try="$ac_compile"
12232case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12235esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12237$as_echo "$ac_try_echo") >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012238 (eval "$ac_compile") 2>conftest.er1
12239 ac_status=$?
12240 grep -v '^ *+' conftest.er1 >conftest.err
12241 rm -f conftest.er1
12242 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012244 (exit $ac_status); } && {
12245 test -z "$ac_c_werror_flag" ||
12246 test ! -s conftest.err
12247 } && test -s conftest.$ac_objext; then
12248 ac_hi=$ac_mid
12249else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012250 $as_echo "$as_me: failed program was:" >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012251sed 's/^/| /' conftest.$ac_ext >&5
12252
12253 ac_lo=`expr '(' $ac_mid ')' + 1`
12254fi
12255
12256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12257done
12258case $ac_lo in
12259?*) ac_cv_sizeof_long_double=$ac_lo;;
12260'') if test "$ac_cv_type_long_double" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012261 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12263{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012264See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012265$as_echo "$as_me: error: cannot compute sizeof (long double)
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012266See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012267 { (exit 77); exit 77; }; }; }
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012268 else
12269 ac_cv_sizeof_long_double=0
12270 fi ;;
12271esac
12272else
12273 cat >conftest.$ac_ext <<_ACEOF
12274/* confdefs.h. */
12275_ACEOF
12276cat confdefs.h >>conftest.$ac_ext
12277cat >>conftest.$ac_ext <<_ACEOF
12278/* end confdefs.h. */
12279$ac_includes_default
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012280static long int longval () { return (long int) (sizeof (long double)); }
12281static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012282#include <stdio.h>
12283#include <stdlib.h>
12284int
12285main ()
12286{
12287
12288 FILE *f = fopen ("conftest.val", "w");
12289 if (! f)
12290 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012291 if (((long int) (sizeof (long double))) < 0)
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012292 {
12293 long int i = longval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012294 if (i != ((long int) (sizeof (long double))))
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012295 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012296 fprintf (f, "%ld", i);
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012297 }
12298 else
12299 {
12300 unsigned long int i = ulongval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012301 if (i != ((long int) (sizeof (long double))))
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012302 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012303 fprintf (f, "%lu", i);
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012304 }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012305 /* Do not output a trailing newline, as this causes \r\n confusion
12306 on some platforms. */
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012307 return ferror (f) || fclose (f) != 0;
12308
12309 ;
12310 return 0;
12311}
12312_ACEOF
12313rm -f conftest$ac_exeext
12314if { (ac_try="$ac_link"
12315case "(($ac_try" in
12316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317 *) ac_try_echo=$ac_try;;
12318esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12320$as_echo "$ac_try_echo") >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012321 (eval "$ac_link") 2>&5
12322 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12325 { (case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12328esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12330$as_echo "$ac_try_echo") >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012331 (eval "$ac_try") 2>&5
12332 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012334 (exit $ac_status); }; }; then
12335 ac_cv_sizeof_long_double=`cat conftest.val`
12336else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012337 $as_echo "$as_me: program exited with status $ac_status" >&5
12338$as_echo "$as_me: failed program was:" >&5
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012339sed 's/^/| /' conftest.$ac_ext >&5
12340
12341( exit $ac_status )
12342if test "$ac_cv_type_long_double" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012343 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12345{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012346See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012347$as_echo "$as_me: error: cannot compute sizeof (long double)
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012348See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012349 { (exit 77); exit 77; }; }; }
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012350 else
12351 ac_cv_sizeof_long_double=0
12352 fi
12353fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012354rm -rf conftest.dSYM
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12356fi
12357rm -f conftest.val
12358fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012359{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12360$as_echo "$ac_cv_sizeof_long_double" >&6; }
Mark Dickinsondc1688a2008-06-27 22:20:14 +000012361
12362
12363
12364cat >>confdefs.h <<_ACEOF
12365#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12366_ACEOF
12367
12368
12369fi
12370
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012371{ $as_echo "$as_me:$LINENO: checking for _Bool support" >&5
12372$as_echo_n "checking for _Bool support... " >&6; }
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012373have_c99_bool=no
12374cat >conftest.$ac_ext <<_ACEOF
12375/* confdefs.h. */
12376_ACEOF
12377cat confdefs.h >>conftest.$ac_ext
12378cat >>conftest.$ac_ext <<_ACEOF
12379/* end confdefs.h. */
12380
12381int
12382main ()
12383{
12384_Bool x; x = (_Bool)0;
12385 ;
12386 return 0;
12387}
12388_ACEOF
12389rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012390if { (ac_try="$ac_compile"
12391case "(($ac_try" in
12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393 *) ac_try_echo=$ac_try;;
12394esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12396$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012397 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012403 (exit $ac_status); } && {
12404 test -z "$ac_c_werror_flag" ||
12405 test ! -s conftest.err
12406 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012407
12408
12409cat >>confdefs.h <<\_ACEOF
12410#define HAVE_C99_BOOL 1
12411_ACEOF
12412
12413 have_c99_bool=yes
12414
12415else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012416 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012417sed 's/^/| /' conftest.$ac_ext >&5
12418
Martin v. Löwiseba40652007-08-30 20:10:57 +000012419
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012420fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012421
12422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012423{ $as_echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12424$as_echo "$have_c99_bool" >&6; }
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012425if test "$have_c99_bool" = yes ; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000012426# The cast to long int works around a bug in the HP C Compiler
12427# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12428# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12429# This bug is HP SR number 8606223364.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012430{ $as_echo "$as_me:$LINENO: checking size of _Bool" >&5
12431$as_echo_n "checking size of _Bool... " >&6; }
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012432if test "${ac_cv_sizeof__Bool+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012433 $as_echo_n "(cached) " >&6
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012434else
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012435 if test "$cross_compiling" = yes; then
12436 # Depending upon the size, compute the lo and hi bounds.
12437cat >conftest.$ac_ext <<_ACEOF
12438/* confdefs.h. */
12439_ACEOF
12440cat confdefs.h >>conftest.$ac_ext
12441cat >>conftest.$ac_ext <<_ACEOF
12442/* end confdefs.h. */
12443$ac_includes_default
12444int
12445main ()
12446{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012447static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= 0)];
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012448test_array [0] = 0
12449
12450 ;
12451 return 0;
12452}
12453_ACEOF
12454rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012455if { (ac_try="$ac_compile"
12456case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12459esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12461$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012462 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012463 ac_status=$?
12464 grep -v '^ *+' conftest.er1 >conftest.err
12465 rm -f conftest.er1
12466 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012468 (exit $ac_status); } && {
12469 test -z "$ac_c_werror_flag" ||
12470 test ! -s conftest.err
12471 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012472 ac_lo=0 ac_mid=0
12473 while :; do
12474 cat >conftest.$ac_ext <<_ACEOF
12475/* confdefs.h. */
12476_ACEOF
12477cat confdefs.h >>conftest.$ac_ext
12478cat >>conftest.$ac_ext <<_ACEOF
12479/* end confdefs.h. */
12480$ac_includes_default
12481int
12482main ()
12483{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012484static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)];
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012485test_array [0] = 0
12486
12487 ;
12488 return 0;
12489}
12490_ACEOF
12491rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012492if { (ac_try="$ac_compile"
12493case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12496esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12498$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012499 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012500 ac_status=$?
12501 grep -v '^ *+' conftest.er1 >conftest.err
12502 rm -f conftest.er1
12503 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012505 (exit $ac_status); } && {
12506 test -z "$ac_c_werror_flag" ||
12507 test ! -s conftest.err
12508 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012509 ac_hi=$ac_mid; break
12510else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012511 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012512sed 's/^/| /' conftest.$ac_ext >&5
12513
Martin v. Löwiseba40652007-08-30 20:10:57 +000012514 ac_lo=`expr $ac_mid + 1`
12515 if test $ac_lo -le $ac_mid; then
12516 ac_lo= ac_hi=
12517 break
12518 fi
12519 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012520fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012521
12522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012523 done
12524else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012525 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012526sed 's/^/| /' conftest.$ac_ext >&5
12527
Martin v. Löwiseba40652007-08-30 20:10:57 +000012528 cat >conftest.$ac_ext <<_ACEOF
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012529/* confdefs.h. */
12530_ACEOF
12531cat confdefs.h >>conftest.$ac_ext
12532cat >>conftest.$ac_ext <<_ACEOF
12533/* end confdefs.h. */
12534$ac_includes_default
12535int
12536main ()
12537{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012538static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) < 0)];
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012539test_array [0] = 0
12540
12541 ;
12542 return 0;
12543}
12544_ACEOF
12545rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012546if { (ac_try="$ac_compile"
12547case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12552$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012553 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012554 ac_status=$?
12555 grep -v '^ *+' conftest.er1 >conftest.err
12556 rm -f conftest.er1
12557 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012559 (exit $ac_status); } && {
12560 test -z "$ac_c_werror_flag" ||
12561 test ! -s conftest.err
12562 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012563 ac_hi=-1 ac_mid=-1
12564 while :; do
12565 cat >conftest.$ac_ext <<_ACEOF
12566/* confdefs.h. */
12567_ACEOF
12568cat confdefs.h >>conftest.$ac_ext
12569cat >>conftest.$ac_ext <<_ACEOF
12570/* end confdefs.h. */
12571$ac_includes_default
12572int
12573main ()
12574{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012575static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) >= $ac_mid)];
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012576test_array [0] = 0
12577
12578 ;
12579 return 0;
12580}
12581_ACEOF
12582rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012583if { (ac_try="$ac_compile"
12584case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12587esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12589$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012590 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012591 ac_status=$?
12592 grep -v '^ *+' conftest.er1 >conftest.err
12593 rm -f conftest.er1
12594 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012596 (exit $ac_status); } && {
12597 test -z "$ac_c_werror_flag" ||
12598 test ! -s conftest.err
12599 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012600 ac_lo=$ac_mid; break
12601else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012602 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012603sed 's/^/| /' conftest.$ac_ext >&5
12604
Martin v. Löwiseba40652007-08-30 20:10:57 +000012605 ac_hi=`expr '(' $ac_mid ')' - 1`
12606 if test $ac_mid -le $ac_hi; then
12607 ac_lo= ac_hi=
12608 break
12609 fi
12610 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012611fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012612
12613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012614 done
12615else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012616 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012617sed 's/^/| /' conftest.$ac_ext >&5
12618
Martin v. Löwiseba40652007-08-30 20:10:57 +000012619 ac_lo= ac_hi=
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012620fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012621
12622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012623fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012624
12625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012626# Binary search between lo and hi bounds.
12627while test "x$ac_lo" != "x$ac_hi"; do
12628 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12629 cat >conftest.$ac_ext <<_ACEOF
12630/* confdefs.h. */
12631_ACEOF
12632cat confdefs.h >>conftest.$ac_ext
12633cat >>conftest.$ac_ext <<_ACEOF
12634/* end confdefs.h. */
12635$ac_includes_default
12636int
12637main ()
12638{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012639static int test_array [1 - 2 * !(((long int) (sizeof (_Bool))) <= $ac_mid)];
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012640test_array [0] = 0
12641
12642 ;
12643 return 0;
12644}
12645_ACEOF
12646rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012647if { (ac_try="$ac_compile"
12648case "(($ac_try" in
12649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650 *) ac_try_echo=$ac_try;;
12651esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12653$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012654 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012655 ac_status=$?
12656 grep -v '^ *+' conftest.er1 >conftest.err
12657 rm -f conftest.er1
12658 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012660 (exit $ac_status); } && {
12661 test -z "$ac_c_werror_flag" ||
12662 test ! -s conftest.err
12663 } && test -s conftest.$ac_objext; then
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012664 ac_hi=$ac_mid
12665else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012666 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012667sed 's/^/| /' conftest.$ac_ext >&5
12668
Martin v. Löwiseba40652007-08-30 20:10:57 +000012669 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012670fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012671
12672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012673done
12674case $ac_lo in
12675?*) ac_cv_sizeof__Bool=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000012676'') if test "$ac_cv_type__Bool" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012677 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12679{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012680See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012681$as_echo "$as_me: error: cannot compute sizeof (_Bool)
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012682See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012683 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000012684 else
12685 ac_cv_sizeof__Bool=0
12686 fi ;;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012687esac
12688else
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012689 cat >conftest.$ac_ext <<_ACEOF
12690/* confdefs.h. */
12691_ACEOF
12692cat confdefs.h >>conftest.$ac_ext
12693cat >>conftest.$ac_ext <<_ACEOF
12694/* end confdefs.h. */
12695$ac_includes_default
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012696static long int longval () { return (long int) (sizeof (_Bool)); }
12697static unsigned long int ulongval () { return (long int) (sizeof (_Bool)); }
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012698#include <stdio.h>
12699#include <stdlib.h>
12700int
12701main ()
12702{
12703
12704 FILE *f = fopen ("conftest.val", "w");
12705 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000012706 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012707 if (((long int) (sizeof (_Bool))) < 0)
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012708 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000012709 long int i = longval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012710 if (i != ((long int) (sizeof (_Bool))))
Martin v. Löwiseba40652007-08-30 20:10:57 +000012711 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012712 fprintf (f, "%ld", i);
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012713 }
12714 else
12715 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000012716 unsigned long int i = ulongval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012717 if (i != ((long int) (sizeof (_Bool))))
Martin v. Löwiseba40652007-08-30 20:10:57 +000012718 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012719 fprintf (f, "%lu", i);
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012720 }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012721 /* Do not output a trailing newline, as this causes \r\n confusion
12722 on some platforms. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000012723 return ferror (f) || fclose (f) != 0;
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012724
12725 ;
12726 return 0;
12727}
12728_ACEOF
12729rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012730if { (ac_try="$ac_link"
12731case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12734esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12736$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012737 (eval "$ac_link") 2>&5
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012738 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000012741 { (case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12744esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12746$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012747 (eval "$ac_try") 2>&5
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012748 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012750 (exit $ac_status); }; }; then
12751 ac_cv_sizeof__Bool=`cat conftest.val`
12752else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012753 $as_echo "$as_me: program exited with status $ac_status" >&5
12754$as_echo "$as_me: failed program was:" >&5
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012755sed 's/^/| /' conftest.$ac_ext >&5
12756
12757( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000012758if test "$ac_cv_type__Bool" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012759 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12761{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012762See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012763$as_echo "$as_me: error: cannot compute sizeof (_Bool)
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012764See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012765 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000012766 else
12767 ac_cv_sizeof__Bool=0
12768 fi
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012769fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012770rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000012771rm -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 +000012772fi
12773rm -f conftest.val
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012774fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012775{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12776$as_echo "$ac_cv_sizeof__Bool" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000012777
12778
12779
Martin v. Löwisaef4c6b2007-01-21 09:33:07 +000012780cat >>confdefs.h <<_ACEOF
12781#define SIZEOF__BOOL $ac_cv_sizeof__Bool
12782_ACEOF
12783
12784
12785fi
12786
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012787{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
12788$as_echo_n "checking for uintptr_t... " >&6; }
Martin v. Löwisebe26702006-10-02 14:55:51 +000012789if test "${ac_cv_type_uintptr_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012790 $as_echo_n "(cached) " >&6
Martin v. Löwisebe26702006-10-02 14:55:51 +000012791else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012792 ac_cv_type_uintptr_t=no
12793cat >conftest.$ac_ext <<_ACEOF
12794/* confdefs.h. */
12795_ACEOF
12796cat confdefs.h >>conftest.$ac_ext
12797cat >>conftest.$ac_ext <<_ACEOF
12798/* end confdefs.h. */
12799#ifdef HAVE_STDINT_H
12800 #include <stdint.h>
12801 #endif
12802
12803int
12804main ()
12805{
12806if (sizeof (uintptr_t))
12807 return 0;
12808 ;
12809 return 0;
12810}
12811_ACEOF
12812rm -f conftest.$ac_objext
12813if { (ac_try="$ac_compile"
12814case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12817esac
12818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12819$as_echo "$ac_try_echo") >&5
12820 (eval "$ac_compile") 2>conftest.er1
12821 ac_status=$?
12822 grep -v '^ *+' conftest.er1 >conftest.err
12823 rm -f conftest.er1
12824 cat conftest.err >&5
12825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } && {
12827 test -z "$ac_c_werror_flag" ||
12828 test ! -s conftest.err
12829 } && test -s conftest.$ac_objext; then
Martin v. Löwisebe26702006-10-02 14:55:51 +000012830 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012831/* confdefs.h. */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
12835/* end confdefs.h. */
Martin v. Löwis40e9aed2006-10-02 15:20:37 +000012836#ifdef HAVE_STDINT_H
12837 #include <stdint.h>
12838 #endif
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012839
Martin v. Löwis11437992002-04-12 09:54:03 +000012840int
12841main ()
12842{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012843if (sizeof ((uintptr_t)))
12844 return 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000012845 ;
12846 return 0;
12847}
12848_ACEOF
12849rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012850if { (ac_try="$ac_compile"
12851case "(($ac_try" in
12852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12854esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012855eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12856$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012857 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012858 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012859 grep -v '^ *+' conftest.er1 >conftest.err
12860 rm -f conftest.er1
12861 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012863 (exit $ac_status); } && {
12864 test -z "$ac_c_werror_flag" ||
12865 test ! -s conftest.err
12866 } && test -s conftest.$ac_objext; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012867 :
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012868else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012869 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012870sed 's/^/| /' conftest.$ac_ext >&5
12871
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012872 ac_cv_type_uintptr_t=yes
12873fi
12874
12875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12876else
12877 $as_echo "$as_me: failed program was:" >&5
12878sed 's/^/| /' conftest.$ac_ext >&5
12879
12880
Barry Warsawbc7c7f92000-08-18 04:53:33 +000012881fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012882
12883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisebe26702006-10-02 14:55:51 +000012884fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012885{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12886$as_echo "$ac_cv_type_uintptr_t" >&6; }
12887if test "x$ac_cv_type_uintptr_t" = x""yes; then
Martin v. Löwisebe26702006-10-02 14:55:51 +000012888
12889cat >>confdefs.h <<_ACEOF
12890#define HAVE_UINTPTR_T 1
12891_ACEOF
12892
Martin v. Löwiseba40652007-08-30 20:10:57 +000012893# The cast to long int works around a bug in the HP C Compiler
12894# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12895# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12896# This bug is HP SR number 8606223364.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012897{ $as_echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12898$as_echo_n "checking size of uintptr_t... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000012899if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012900 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +000012901else
Martin v. Löwis11437992002-04-12 09:54:03 +000012902 if test "$cross_compiling" = yes; then
12903 # Depending upon the size, compute the lo and hi bounds.
12904cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012905/* confdefs.h. */
12906_ACEOF
12907cat confdefs.h >>conftest.$ac_ext
12908cat >>conftest.$ac_ext <<_ACEOF
12909/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012910$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000012911int
12912main ()
12913{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012914static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000012915test_array [0] = 0
12916
12917 ;
12918 return 0;
12919}
12920_ACEOF
12921rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012922if { (ac_try="$ac_compile"
12923case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12926esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12928$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012929 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012930 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012931 grep -v '^ *+' conftest.er1 >conftest.err
12932 rm -f conftest.er1
12933 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012935 (exit $ac_status); } && {
12936 test -z "$ac_c_werror_flag" ||
12937 test ! -s conftest.err
12938 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012939 ac_lo=0 ac_mid=0
12940 while :; do
12941 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012942/* confdefs.h. */
12943_ACEOF
12944cat confdefs.h >>conftest.$ac_ext
12945cat >>conftest.$ac_ext <<_ACEOF
12946/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012947$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000012948int
12949main ()
12950{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012951static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000012952test_array [0] = 0
12953
12954 ;
12955 return 0;
12956}
12957_ACEOF
12958rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000012959if { (ac_try="$ac_compile"
12960case "(($ac_try" in
12961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12962 *) ac_try_echo=$ac_try;;
12963esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12965$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012966 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000012967 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000012968 grep -v '^ *+' conftest.er1 >conftest.err
12969 rm -f conftest.er1
12970 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000012972 (exit $ac_status); } && {
12973 test -z "$ac_c_werror_flag" ||
12974 test ! -s conftest.err
12975 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012976 ac_hi=$ac_mid; break
12977else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012978 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012979sed 's/^/| /' conftest.$ac_ext >&5
12980
Martin v. Löwiseba40652007-08-30 20:10:57 +000012981 ac_lo=`expr $ac_mid + 1`
12982 if test $ac_lo -le $ac_mid; then
12983 ac_lo= ac_hi=
12984 break
12985 fi
12986 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000012987fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000012988
12989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000012990 done
12991else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000012992 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000012993sed 's/^/| /' conftest.$ac_ext >&5
12994
Martin v. Löwiseba40652007-08-30 20:10:57 +000012995 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000012996/* confdefs.h. */
12997_ACEOF
12998cat confdefs.h >>conftest.$ac_ext
12999cat >>conftest.$ac_ext <<_ACEOF
13000/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013001$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000013002int
13003main ()
13004{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013005static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000013006test_array [0] = 0
13007
13008 ;
13009 return 0;
13010}
13011_ACEOF
13012rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013013if { (ac_try="$ac_compile"
13014case "(($ac_try" in
13015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016 *) ac_try_echo=$ac_try;;
13017esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13019$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013020 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000013021 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000013022 grep -v '^ *+' conftest.er1 >conftest.err
13023 rm -f conftest.er1
13024 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013026 (exit $ac_status); } && {
13027 test -z "$ac_c_werror_flag" ||
13028 test ! -s conftest.err
13029 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000013030 ac_hi=-1 ac_mid=-1
13031 while :; do
13032 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013033/* confdefs.h. */
13034_ACEOF
13035cat confdefs.h >>conftest.$ac_ext
13036cat >>conftest.$ac_ext <<_ACEOF
13037/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013038$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000013039int
13040main ()
13041{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013042static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000013043test_array [0] = 0
13044
13045 ;
13046 return 0;
13047}
13048_ACEOF
13049rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013050if { (ac_try="$ac_compile"
13051case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13054esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13056$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013057 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000013058 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000013059 grep -v '^ *+' conftest.er1 >conftest.err
13060 rm -f conftest.er1
13061 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013063 (exit $ac_status); } && {
13064 test -z "$ac_c_werror_flag" ||
13065 test ! -s conftest.err
13066 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000013067 ac_lo=$ac_mid; break
13068else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013069 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013070sed 's/^/| /' conftest.$ac_ext >&5
13071
Martin v. Löwiseba40652007-08-30 20:10:57 +000013072 ac_hi=`expr '(' $ac_mid ')' - 1`
13073 if test $ac_mid -le $ac_hi; then
13074 ac_lo= ac_hi=
13075 break
13076 fi
13077 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +000013078fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013079
13080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000013081 done
13082else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013083 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013084sed 's/^/| /' conftest.$ac_ext >&5
13085
Martin v. Löwiseba40652007-08-30 20:10:57 +000013086 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +000013087fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013088
13089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000013090fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013091
13092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000013093# Binary search between lo and hi bounds.
13094while test "x$ac_lo" != "x$ac_hi"; do
13095 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13096 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013097/* confdefs.h. */
13098_ACEOF
13099cat confdefs.h >>conftest.$ac_ext
13100cat >>conftest.$ac_ext <<_ACEOF
13101/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013102$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000013103int
13104main ()
13105{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013106static int test_array [1 - 2 * !(((long int) (sizeof (uintptr_t))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000013107test_array [0] = 0
13108
13109 ;
13110 return 0;
13111}
13112_ACEOF
13113rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013114if { (ac_try="$ac_compile"
13115case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13118esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13120$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013121 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000013122 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000013123 grep -v '^ *+' conftest.er1 >conftest.err
13124 rm -f conftest.er1
13125 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013127 (exit $ac_status); } && {
13128 test -z "$ac_c_werror_flag" ||
13129 test ! -s conftest.err
13130 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000013131 ac_hi=$ac_mid
13132else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013133 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013134sed 's/^/| /' conftest.$ac_ext >&5
13135
Martin v. Löwiseba40652007-08-30 20:10:57 +000013136 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000013137fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000013138
13139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000013140done
13141case $ac_lo in
13142?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000013143'') if test "$ac_cv_type_uintptr_t" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013144 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13146{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000013147See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013148$as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000013149See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013150 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000013151 else
13152 ac_cv_sizeof_uintptr_t=0
13153 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000013154esac
Barry Warsawbc7c7f92000-08-18 04:53:33 +000013155else
Martin v. Löwis11437992002-04-12 09:54:03 +000013156 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013157/* confdefs.h. */
13158_ACEOF
13159cat confdefs.h >>conftest.$ac_ext
13160cat >>conftest.$ac_ext <<_ACEOF
13161/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000013162$ac_includes_default
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013163static long int longval () { return (long int) (sizeof (uintptr_t)); }
13164static unsigned long int ulongval () { return (long int) (sizeof (uintptr_t)); }
Michael W. Hudson54241132001-12-07 15:38:26 +000013165#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000013166#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000013167int
13168main ()
Barry Warsawbc7c7f92000-08-18 04:53:33 +000013169{
Martin v. Löwis11437992002-04-12 09:54:03 +000013170
13171 FILE *f = fopen ("conftest.val", "w");
13172 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000013173 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013174 if (((long int) (sizeof (uintptr_t))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000013175 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000013176 long int i = longval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013177 if (i != ((long int) (sizeof (uintptr_t))))
Martin v. Löwiseba40652007-08-30 20:10:57 +000013178 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013179 fprintf (f, "%ld", i);
Martin v. Löwis11437992002-04-12 09:54:03 +000013180 }
13181 else
13182 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000013183 unsigned long int i = ulongval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013184 if (i != ((long int) (sizeof (uintptr_t))))
Martin v. Löwiseba40652007-08-30 20:10:57 +000013185 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013186 fprintf (f, "%lu", i);
Martin v. Löwis11437992002-04-12 09:54:03 +000013187 }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013188 /* Do not output a trailing newline, as this causes \r\n confusion
13189 on some platforms. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000013190 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000013191
13192 ;
13193 return 0;
Barry Warsawbc7c7f92000-08-18 04:53:33 +000013194}
Martin v. Löwis11437992002-04-12 09:54:03 +000013195_ACEOF
13196rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013197if { (ac_try="$ac_link"
13198case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13201esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13203$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013204 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013205 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000013208 { (case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13211esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13213$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013214 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013215 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013217 (exit $ac_status); }; }; then
13218 ac_cv_sizeof_uintptr_t=`cat conftest.val`
Barry Warsawbc7c7f92000-08-18 04:53:33 +000013219else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013220 $as_echo "$as_me: program exited with status $ac_status" >&5
13221$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013222sed 's/^/| /' conftest.$ac_ext >&5
13223
Martin v. Löwis11437992002-04-12 09:54:03 +000013224( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000013225if test "$ac_cv_type_uintptr_t" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013226 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13228{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000013229See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013230$as_echo "$as_me: error: cannot compute sizeof (uintptr_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000013231See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013232 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000013233 else
13234 ac_cv_sizeof_uintptr_t=0
13235 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013236fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013237rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000013238rm -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 +000013239fi
13240rm -f conftest.val
Barry Warsawbc7c7f92000-08-18 04:53:33 +000013241fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013242{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13243$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000013244
13245
13246
Martin v. Löwis11437992002-04-12 09:54:03 +000013247cat >>confdefs.h <<_ACEOF
Barry Warsawbc7c7f92000-08-18 04:53:33 +000013248#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
Martin v. Löwis11437992002-04-12 09:54:03 +000013249_ACEOF
Barry Warsawbc7c7f92000-08-18 04:53:33 +000013250
Michael W. Hudson54241132001-12-07 15:38:26 +000013251
Barry Warsawbc7c7f92000-08-18 04:53:33 +000013252fi
13253
Martin v. Löwisebe26702006-10-02 14:55:51 +000013254
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013255# The cast to long int works around a bug in the HP C Compiler
13256# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13257# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13258# This bug is HP SR number 8606223364.
13259{ $as_echo "$as_me:$LINENO: checking size of off_t" >&5
13260$as_echo_n "checking size of off_t... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013261if test "${ac_cv_sizeof_off_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013262 $as_echo_n "(cached) " >&6
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013263else
13264 if test "$cross_compiling" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013265 # Depending upon the size, compute the lo and hi bounds.
13266cat >conftest.$ac_ext <<_ACEOF
13267/* confdefs.h. */
13268_ACEOF
13269cat confdefs.h >>conftest.$ac_ext
13270cat >>conftest.$ac_ext <<_ACEOF
13271/* end confdefs.h. */
13272
13273#ifdef HAVE_SYS_TYPES_H
13274#include <sys/types.h>
13275#endif
13276
13277
13278int
13279main ()
13280{
13281static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
13282test_array [0] = 0
13283
13284 ;
13285 return 0;
13286}
13287_ACEOF
13288rm -f conftest.$ac_objext
13289if { (ac_try="$ac_compile"
13290case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13293esac
13294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13295$as_echo "$ac_try_echo") >&5
13296 (eval "$ac_compile") 2>conftest.er1
13297 ac_status=$?
13298 grep -v '^ *+' conftest.er1 >conftest.err
13299 rm -f conftest.er1
13300 cat conftest.err >&5
13301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } && {
13303 test -z "$ac_c_werror_flag" ||
13304 test ! -s conftest.err
13305 } && test -s conftest.$ac_objext; then
13306 ac_lo=0 ac_mid=0
13307 while :; do
13308 cat >conftest.$ac_ext <<_ACEOF
13309/* confdefs.h. */
13310_ACEOF
13311cat confdefs.h >>conftest.$ac_ext
13312cat >>conftest.$ac_ext <<_ACEOF
13313/* end confdefs.h. */
13314
13315#ifdef HAVE_SYS_TYPES_H
13316#include <sys/types.h>
13317#endif
13318
13319
13320int
13321main ()
13322{
13323static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
13324test_array [0] = 0
13325
13326 ;
13327 return 0;
13328}
13329_ACEOF
13330rm -f conftest.$ac_objext
13331if { (ac_try="$ac_compile"
13332case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13335esac
13336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13337$as_echo "$ac_try_echo") >&5
13338 (eval "$ac_compile") 2>conftest.er1
13339 ac_status=$?
13340 grep -v '^ *+' conftest.er1 >conftest.err
13341 rm -f conftest.er1
13342 cat conftest.err >&5
13343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } && {
13345 test -z "$ac_c_werror_flag" ||
13346 test ! -s conftest.err
13347 } && test -s conftest.$ac_objext; then
13348 ac_hi=$ac_mid; break
13349else
13350 $as_echo "$as_me: failed program was:" >&5
13351sed 's/^/| /' conftest.$ac_ext >&5
13352
13353 ac_lo=`expr $ac_mid + 1`
13354 if test $ac_lo -le $ac_mid; then
13355 ac_lo= ac_hi=
13356 break
13357 fi
13358 ac_mid=`expr 2 '*' $ac_mid + 1`
13359fi
13360
13361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13362 done
13363else
13364 $as_echo "$as_me: failed program was:" >&5
13365sed 's/^/| /' conftest.$ac_ext >&5
13366
13367 cat >conftest.$ac_ext <<_ACEOF
13368/* confdefs.h. */
13369_ACEOF
13370cat confdefs.h >>conftest.$ac_ext
13371cat >>conftest.$ac_ext <<_ACEOF
13372/* end confdefs.h. */
13373
13374#ifdef HAVE_SYS_TYPES_H
13375#include <sys/types.h>
13376#endif
13377
13378
13379int
13380main ()
13381{
13382static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
13383test_array [0] = 0
13384
13385 ;
13386 return 0;
13387}
13388_ACEOF
13389rm -f conftest.$ac_objext
13390if { (ac_try="$ac_compile"
13391case "(($ac_try" in
13392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393 *) ac_try_echo=$ac_try;;
13394esac
13395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13396$as_echo "$ac_try_echo") >&5
13397 (eval "$ac_compile") 2>conftest.er1
13398 ac_status=$?
13399 grep -v '^ *+' conftest.er1 >conftest.err
13400 rm -f conftest.er1
13401 cat conftest.err >&5
13402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } && {
13404 test -z "$ac_c_werror_flag" ||
13405 test ! -s conftest.err
13406 } && test -s conftest.$ac_objext; then
13407 ac_hi=-1 ac_mid=-1
13408 while :; do
13409 cat >conftest.$ac_ext <<_ACEOF
13410/* confdefs.h. */
13411_ACEOF
13412cat confdefs.h >>conftest.$ac_ext
13413cat >>conftest.$ac_ext <<_ACEOF
13414/* end confdefs.h. */
13415
13416#ifdef HAVE_SYS_TYPES_H
13417#include <sys/types.h>
13418#endif
13419
13420
13421int
13422main ()
13423{
13424static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
13425test_array [0] = 0
13426
13427 ;
13428 return 0;
13429}
13430_ACEOF
13431rm -f conftest.$ac_objext
13432if { (ac_try="$ac_compile"
13433case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13436esac
13437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13438$as_echo "$ac_try_echo") >&5
13439 (eval "$ac_compile") 2>conftest.er1
13440 ac_status=$?
13441 grep -v '^ *+' conftest.er1 >conftest.err
13442 rm -f conftest.er1
13443 cat conftest.err >&5
13444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); } && {
13446 test -z "$ac_c_werror_flag" ||
13447 test ! -s conftest.err
13448 } && test -s conftest.$ac_objext; then
13449 ac_lo=$ac_mid; break
13450else
13451 $as_echo "$as_me: failed program was:" >&5
13452sed 's/^/| /' conftest.$ac_ext >&5
13453
13454 ac_hi=`expr '(' $ac_mid ')' - 1`
13455 if test $ac_mid -le $ac_hi; then
13456 ac_lo= ac_hi=
13457 break
13458 fi
13459 ac_mid=`expr 2 '*' $ac_mid`
13460fi
13461
13462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13463 done
13464else
13465 $as_echo "$as_me: failed program was:" >&5
13466sed 's/^/| /' conftest.$ac_ext >&5
13467
13468 ac_lo= ac_hi=
13469fi
13470
13471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13472fi
13473
13474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13475# Binary search between lo and hi bounds.
13476while test "x$ac_lo" != "x$ac_hi"; do
13477 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13478 cat >conftest.$ac_ext <<_ACEOF
13479/* confdefs.h. */
13480_ACEOF
13481cat confdefs.h >>conftest.$ac_ext
13482cat >>conftest.$ac_ext <<_ACEOF
13483/* end confdefs.h. */
13484
13485#ifdef HAVE_SYS_TYPES_H
13486#include <sys/types.h>
13487#endif
13488
13489
13490int
13491main ()
13492{
13493static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
13494test_array [0] = 0
13495
13496 ;
13497 return 0;
13498}
13499_ACEOF
13500rm -f conftest.$ac_objext
13501if { (ac_try="$ac_compile"
13502case "(($ac_try" in
13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13505esac
13506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13507$as_echo "$ac_try_echo") >&5
13508 (eval "$ac_compile") 2>conftest.er1
13509 ac_status=$?
13510 grep -v '^ *+' conftest.er1 >conftest.err
13511 rm -f conftest.er1
13512 cat conftest.err >&5
13513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } && {
13515 test -z "$ac_c_werror_flag" ||
13516 test ! -s conftest.err
13517 } && test -s conftest.$ac_objext; then
13518 ac_hi=$ac_mid
13519else
13520 $as_echo "$as_me: failed program was:" >&5
13521sed 's/^/| /' conftest.$ac_ext >&5
13522
13523 ac_lo=`expr '(' $ac_mid ')' + 1`
13524fi
13525
13526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13527done
13528case $ac_lo in
13529?*) ac_cv_sizeof_off_t=$ac_lo;;
13530'') if test "$ac_cv_type_off_t" = yes; then
13531 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13533{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13534See \`config.log' for more details." >&5
13535$as_echo "$as_me: error: cannot compute sizeof (off_t)
13536See \`config.log' for more details." >&2;}
13537 { (exit 77); exit 77; }; }; }
13538 else
13539 ac_cv_sizeof_off_t=0
13540 fi ;;
13541esac
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013542else
Martin v. Löwis11437992002-04-12 09:54:03 +000013543 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013544/* confdefs.h. */
13545_ACEOF
13546cat confdefs.h >>conftest.$ac_ext
13547cat >>conftest.$ac_ext <<_ACEOF
13548/* end confdefs.h. */
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013549
13550#ifdef HAVE_SYS_TYPES_H
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013551#include <sys/types.h>
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013552#endif
13553
13554
13555static long int longval () { return (long int) (sizeof (off_t)); }
13556static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
13557#include <stdio.h>
13558#include <stdlib.h>
13559int
13560main ()
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013561{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013562
13563 FILE *f = fopen ("conftest.val", "w");
13564 if (! f)
13565 return 1;
13566 if (((long int) (sizeof (off_t))) < 0)
13567 {
13568 long int i = longval ();
13569 if (i != ((long int) (sizeof (off_t))))
13570 return 1;
13571 fprintf (f, "%ld", i);
13572 }
13573 else
13574 {
13575 unsigned long int i = ulongval ();
13576 if (i != ((long int) (sizeof (off_t))))
13577 return 1;
13578 fprintf (f, "%lu", i);
13579 }
13580 /* Do not output a trailing newline, as this causes \r\n confusion
13581 on some platforms. */
13582 return ferror (f) || fclose (f) != 0;
13583
13584 ;
13585 return 0;
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013586}
Martin v. Löwis11437992002-04-12 09:54:03 +000013587_ACEOF
13588rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000013589if { (ac_try="$ac_link"
13590case "(($ac_try" in
13591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13592 *) ac_try_echo=$ac_try;;
13593esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13595$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013596 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013597 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000013600 { (case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13603esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13605$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000013606 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013607 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000013609 (exit $ac_status); }; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013610 ac_cv_sizeof_off_t=`cat conftest.val`
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013611else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013612 $as_echo "$as_me: program exited with status $ac_status" >&5
13613$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000013614sed 's/^/| /' conftest.$ac_ext >&5
13615
Martin v. Löwis11437992002-04-12 09:54:03 +000013616( exit $ac_status )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013617if test "$ac_cv_type_off_t" = yes; then
13618 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13620{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13621See \`config.log' for more details." >&5
13622$as_echo "$as_me: error: cannot compute sizeof (off_t)
13623See \`config.log' for more details." >&2;}
13624 { (exit 77); exit 77; }; }; }
13625 else
13626 ac_cv_sizeof_off_t=0
13627 fi
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013628fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013629rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000013630rm -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 +000013631fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013632rm -f conftest.val
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013633fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013634{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13635$as_echo "$ac_cv_sizeof_off_t" >&6; }
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013636
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013637
Martin v. Löwis11437992002-04-12 09:54:03 +000013638
13639cat >>confdefs.h <<_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013640#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
Martin v. Löwis11437992002-04-12 09:54:03 +000013641_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013642
Michael W. Hudson54241132001-12-07 15:38:26 +000013643
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013644
13645{ $as_echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13646$as_echo_n "checking whether to enable large file support... " >&6; }
Guido van Rossum96f2eb91999-04-10 16:02:18 +000013647if test "$have_long_long" = yes -a \
13648 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13649 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013650
Martin v. Löwis11437992002-04-12 09:54:03 +000013651cat >>confdefs.h <<\_ACEOF
13652#define HAVE_LARGEFILE_SUPPORT 1
13653_ACEOF
13654
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013655 { $as_echo "$as_me:$LINENO: result: yes" >&5
13656$as_echo "yes" >&6; }
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013657else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013658 { $as_echo "$as_me:$LINENO: result: no" >&5
13659$as_echo "no" >&6; }
Guido van Rossumf98e2a71999-01-06 18:53:34 +000013660fi
13661
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013662# The cast to long int works around a bug in the HP C Compiler
13663# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13664# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13665# This bug is HP SR number 8606223364.
13666{ $as_echo "$as_me:$LINENO: checking size of time_t" >&5
13667$as_echo_n "checking size of time_t... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013668if test "${ac_cv_sizeof_time_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013669 $as_echo_n "(cached) " >&6
Guido van Rossumb9a22a12000-06-30 02:48:53 +000013670else
13671 if test "$cross_compiling" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013672 # Depending upon the size, compute the lo and hi bounds.
13673cat >conftest.$ac_ext <<_ACEOF
13674/* confdefs.h. */
13675_ACEOF
13676cat confdefs.h >>conftest.$ac_ext
13677cat >>conftest.$ac_ext <<_ACEOF
13678/* end confdefs.h. */
13679
13680#ifdef HAVE_SYS_TYPES_H
13681#include <sys/types.h>
13682#endif
13683#ifdef HAVE_TIME_H
13684#include <time.h>
13685#endif
13686
13687
13688int
13689main ()
13690{
13691static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
13692test_array [0] = 0
13693
13694 ;
13695 return 0;
13696}
13697_ACEOF
13698rm -f conftest.$ac_objext
13699if { (ac_try="$ac_compile"
13700case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703esac
13704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13705$as_echo "$ac_try_echo") >&5
13706 (eval "$ac_compile") 2>conftest.er1
13707 ac_status=$?
13708 grep -v '^ *+' conftest.er1 >conftest.err
13709 rm -f conftest.er1
13710 cat conftest.err >&5
13711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } && {
13713 test -z "$ac_c_werror_flag" ||
13714 test ! -s conftest.err
13715 } && test -s conftest.$ac_objext; then
13716 ac_lo=0 ac_mid=0
13717 while :; do
13718 cat >conftest.$ac_ext <<_ACEOF
13719/* confdefs.h. */
13720_ACEOF
13721cat confdefs.h >>conftest.$ac_ext
13722cat >>conftest.$ac_ext <<_ACEOF
13723/* end confdefs.h. */
13724
13725#ifdef HAVE_SYS_TYPES_H
13726#include <sys/types.h>
13727#endif
13728#ifdef HAVE_TIME_H
13729#include <time.h>
13730#endif
13731
13732
13733int
13734main ()
13735{
13736static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
13737test_array [0] = 0
13738
13739 ;
13740 return 0;
13741}
13742_ACEOF
13743rm -f conftest.$ac_objext
13744if { (ac_try="$ac_compile"
13745case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13748esac
13749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13750$as_echo "$ac_try_echo") >&5
13751 (eval "$ac_compile") 2>conftest.er1
13752 ac_status=$?
13753 grep -v '^ *+' conftest.er1 >conftest.err
13754 rm -f conftest.er1
13755 cat conftest.err >&5
13756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } && {
13758 test -z "$ac_c_werror_flag" ||
13759 test ! -s conftest.err
13760 } && test -s conftest.$ac_objext; then
13761 ac_hi=$ac_mid; break
13762else
13763 $as_echo "$as_me: failed program was:" >&5
13764sed 's/^/| /' conftest.$ac_ext >&5
13765
13766 ac_lo=`expr $ac_mid + 1`
13767 if test $ac_lo -le $ac_mid; then
13768 ac_lo= ac_hi=
13769 break
13770 fi
13771 ac_mid=`expr 2 '*' $ac_mid + 1`
13772fi
13773
13774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13775 done
13776else
13777 $as_echo "$as_me: failed program was:" >&5
13778sed 's/^/| /' conftest.$ac_ext >&5
13779
13780 cat >conftest.$ac_ext <<_ACEOF
13781/* confdefs.h. */
13782_ACEOF
13783cat confdefs.h >>conftest.$ac_ext
13784cat >>conftest.$ac_ext <<_ACEOF
13785/* end confdefs.h. */
13786
13787#ifdef HAVE_SYS_TYPES_H
13788#include <sys/types.h>
13789#endif
13790#ifdef HAVE_TIME_H
13791#include <time.h>
13792#endif
13793
13794
13795int
13796main ()
13797{
13798static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
13799test_array [0] = 0
13800
13801 ;
13802 return 0;
13803}
13804_ACEOF
13805rm -f conftest.$ac_objext
13806if { (ac_try="$ac_compile"
13807case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13810esac
13811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13812$as_echo "$ac_try_echo") >&5
13813 (eval "$ac_compile") 2>conftest.er1
13814 ac_status=$?
13815 grep -v '^ *+' conftest.er1 >conftest.err
13816 rm -f conftest.er1
13817 cat conftest.err >&5
13818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } && {
13820 test -z "$ac_c_werror_flag" ||
13821 test ! -s conftest.err
13822 } && test -s conftest.$ac_objext; then
13823 ac_hi=-1 ac_mid=-1
13824 while :; do
13825 cat >conftest.$ac_ext <<_ACEOF
13826/* confdefs.h. */
13827_ACEOF
13828cat confdefs.h >>conftest.$ac_ext
13829cat >>conftest.$ac_ext <<_ACEOF
13830/* end confdefs.h. */
13831
13832#ifdef HAVE_SYS_TYPES_H
13833#include <sys/types.h>
13834#endif
13835#ifdef HAVE_TIME_H
13836#include <time.h>
13837#endif
13838
13839
13840int
13841main ()
13842{
13843static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
13844test_array [0] = 0
13845
13846 ;
13847 return 0;
13848}
13849_ACEOF
13850rm -f conftest.$ac_objext
13851if { (ac_try="$ac_compile"
13852case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13855esac
13856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13857$as_echo "$ac_try_echo") >&5
13858 (eval "$ac_compile") 2>conftest.er1
13859 ac_status=$?
13860 grep -v '^ *+' conftest.er1 >conftest.err
13861 rm -f conftest.er1
13862 cat conftest.err >&5
13863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } && {
13865 test -z "$ac_c_werror_flag" ||
13866 test ! -s conftest.err
13867 } && test -s conftest.$ac_objext; then
13868 ac_lo=$ac_mid; break
13869else
13870 $as_echo "$as_me: failed program was:" >&5
13871sed 's/^/| /' conftest.$ac_ext >&5
13872
13873 ac_hi=`expr '(' $ac_mid ')' - 1`
13874 if test $ac_mid -le $ac_hi; then
13875 ac_lo= ac_hi=
13876 break
13877 fi
13878 ac_mid=`expr 2 '*' $ac_mid`
13879fi
13880
13881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13882 done
13883else
13884 $as_echo "$as_me: failed program was:" >&5
13885sed 's/^/| /' conftest.$ac_ext >&5
13886
13887 ac_lo= ac_hi=
13888fi
13889
13890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13891fi
13892
13893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13894# Binary search between lo and hi bounds.
13895while test "x$ac_lo" != "x$ac_hi"; do
13896 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13897 cat >conftest.$ac_ext <<_ACEOF
13898/* confdefs.h. */
13899_ACEOF
13900cat confdefs.h >>conftest.$ac_ext
13901cat >>conftest.$ac_ext <<_ACEOF
13902/* end confdefs.h. */
13903
13904#ifdef HAVE_SYS_TYPES_H
13905#include <sys/types.h>
13906#endif
13907#ifdef HAVE_TIME_H
13908#include <time.h>
13909#endif
13910
13911
13912int
13913main ()
13914{
13915static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
13916test_array [0] = 0
13917
13918 ;
13919 return 0;
13920}
13921_ACEOF
13922rm -f conftest.$ac_objext
13923if { (ac_try="$ac_compile"
13924case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13927esac
13928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13929$as_echo "$ac_try_echo") >&5
13930 (eval "$ac_compile") 2>conftest.er1
13931 ac_status=$?
13932 grep -v '^ *+' conftest.er1 >conftest.err
13933 rm -f conftest.er1
13934 cat conftest.err >&5
13935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } && {
13937 test -z "$ac_c_werror_flag" ||
13938 test ! -s conftest.err
13939 } && test -s conftest.$ac_objext; then
13940 ac_hi=$ac_mid
13941else
13942 $as_echo "$as_me: failed program was:" >&5
13943sed 's/^/| /' conftest.$ac_ext >&5
13944
13945 ac_lo=`expr '(' $ac_mid ')' + 1`
13946fi
13947
13948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13949done
13950case $ac_lo in
13951?*) ac_cv_sizeof_time_t=$ac_lo;;
13952'') if test "$ac_cv_type_time_t" = yes; then
13953 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13954$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13955{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13956See \`config.log' for more details." >&5
13957$as_echo "$as_me: error: cannot compute sizeof (time_t)
13958See \`config.log' for more details." >&2;}
13959 { (exit 77); exit 77; }; }; }
13960 else
13961 ac_cv_sizeof_time_t=0
13962 fi ;;
13963esac
Guido van Rossumb9a22a12000-06-30 02:48:53 +000013964else
Martin v. Löwis11437992002-04-12 09:54:03 +000013965 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000013966/* confdefs.h. */
13967_ACEOF
13968cat confdefs.h >>conftest.$ac_ext
13969cat >>conftest.$ac_ext <<_ACEOF
13970/* end confdefs.h. */
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013971
13972#ifdef HAVE_SYS_TYPES_H
13973#include <sys/types.h>
13974#endif
13975#ifdef HAVE_TIME_H
Guido van Rossumb9a22a12000-06-30 02:48:53 +000013976#include <time.h>
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013977#endif
13978
13979
13980static long int longval () { return (long int) (sizeof (time_t)); }
13981static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
13982#include <stdio.h>
13983#include <stdlib.h>
13984int
13985main ()
Guido van Rossumb9a22a12000-06-30 02:48:53 +000013986{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000013987
13988 FILE *f = fopen ("conftest.val", "w");
13989 if (! f)
13990 return 1;
13991 if (((long int) (sizeof (time_t))) < 0)
13992 {
13993 long int i = longval ();
13994 if (i != ((long int) (sizeof (time_t))))
13995 return 1;
13996 fprintf (f, "%ld", i);
13997 }
13998 else
13999 {
14000 unsigned long int i = ulongval ();
14001 if (i != ((long int) (sizeof (time_t))))
14002 return 1;
14003 fprintf (f, "%lu", i);
14004 }
14005 /* Do not output a trailing newline, as this causes \r\n confusion
14006 on some platforms. */
14007 return ferror (f) || fclose (f) != 0;
14008
14009 ;
14010 return 0;
Guido van Rossumb9a22a12000-06-30 02:48:53 +000014011}
Martin v. Löwis11437992002-04-12 09:54:03 +000014012_ACEOF
14013rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014014if { (ac_try="$ac_link"
14015case "(($ac_try" in
14016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017 *) ac_try_echo=$ac_try;;
14018esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14020$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014021 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014022 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000014025 { (case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14028esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14030$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014031 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014032 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014034 (exit $ac_status); }; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014035 ac_cv_sizeof_time_t=`cat conftest.val`
Guido van Rossumb9a22a12000-06-30 02:48:53 +000014036else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014037 $as_echo "$as_me: program exited with status $ac_status" >&5
14038$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014039sed 's/^/| /' conftest.$ac_ext >&5
14040
Martin v. Löwis11437992002-04-12 09:54:03 +000014041( exit $ac_status )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014042if test "$ac_cv_type_time_t" = yes; then
14043 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14045{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
14046See \`config.log' for more details." >&5
14047$as_echo "$as_me: error: cannot compute sizeof (time_t)
14048See \`config.log' for more details." >&2;}
14049 { (exit 77); exit 77; }; }; }
14050 else
14051 ac_cv_sizeof_time_t=0
14052 fi
Guido van Rossumb9a22a12000-06-30 02:48:53 +000014053fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014054rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000014055rm -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 +000014056fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014057rm -f conftest.val
Guido van Rossumb9a22a12000-06-30 02:48:53 +000014058fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014059{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
14060$as_echo "$ac_cv_sizeof_time_t" >&6; }
Guido van Rossumb9a22a12000-06-30 02:48:53 +000014061
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014062
Martin v. Löwis11437992002-04-12 09:54:03 +000014063
14064cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +000014065#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
Martin v. Löwis11437992002-04-12 09:54:03 +000014066_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +000014067
Michael W. Hudson54241132001-12-07 15:38:26 +000014068
14069
Trent Mick635f6fb2000-08-23 21:33:05 +000014070# if have pthread_t then define SIZEOF_PTHREAD_T
Martin v. Löwis123cbd22001-07-19 14:21:10 +000014071ac_save_cc="$CC"
14072if test "$ac_cv_kpthread" = "yes"
14073then CC="$CC -Kpthread"
Martin v. Löwis5f433f02003-05-05 05:05:30 +000014074elif test "$ac_cv_kthread" = "yes"
14075then CC="$CC -Kthread"
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000014076elif test "$ac_cv_pthread" = "yes"
14077then CC="$CC -pthread"
Martin v. Löwis123cbd22001-07-19 14:21:10 +000014078fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014079{ $as_echo "$as_me:$LINENO: checking for pthread_t" >&5
14080$as_echo_n "checking for pthread_t... " >&6; }
Trent Mick635f6fb2000-08-23 21:33:05 +000014081have_pthread_t=no
Martin v. Löwis11437992002-04-12 09:54:03 +000014082cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014083/* confdefs.h. */
14084_ACEOF
14085cat confdefs.h >>conftest.$ac_ext
14086cat >>conftest.$ac_ext <<_ACEOF
14087/* end confdefs.h. */
Trent Mick635f6fb2000-08-23 21:33:05 +000014088#include <pthread.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000014089int
14090main ()
14091{
Guido van Rossum12580492000-09-24 16:47:19 +000014092pthread_t x; x = *(pthread_t*)0;
Martin v. Löwis11437992002-04-12 09:54:03 +000014093 ;
14094 return 0;
14095}
14096_ACEOF
14097rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014098if { (ac_try="$ac_compile"
14099case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14102esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014103eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14104$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014105 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014106 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014107 grep -v '^ *+' conftest.er1 >conftest.err
14108 rm -f conftest.er1
14109 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014111 (exit $ac_status); } && {
14112 test -z "$ac_c_werror_flag" ||
14113 test ! -s conftest.err
14114 } && test -s conftest.$ac_objext; then
Trent Mick635f6fb2000-08-23 21:33:05 +000014115 have_pthread_t=yes
14116else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014117 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014118sed 's/^/| /' conftest.$ac_ext >&5
14119
Martin v. Löwiseba40652007-08-30 20:10:57 +000014120
Trent Mick635f6fb2000-08-23 21:33:05 +000014121fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014122
14123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014124{ $as_echo "$as_me:$LINENO: result: $have_pthread_t" >&5
14125$as_echo "$have_pthread_t" >&6; }
Trent Mick635f6fb2000-08-23 21:33:05 +000014126if test "$have_pthread_t" = yes ; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014127 # The cast to long int works around a bug in the HP C Compiler
14128# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14129# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14130# This bug is HP SR number 8606223364.
14131{ $as_echo "$as_me:$LINENO: checking size of pthread_t" >&5
14132$as_echo_n "checking size of pthread_t... " >&6; }
14133if test "${ac_cv_sizeof_pthread_t+set}" = set; then
14134 $as_echo_n "(cached) " >&6
Trent Mick635f6fb2000-08-23 21:33:05 +000014135else
14136 if test "$cross_compiling" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014137 # Depending upon the size, compute the lo and hi bounds.
14138cat >conftest.$ac_ext <<_ACEOF
14139/* confdefs.h. */
14140_ACEOF
14141cat confdefs.h >>conftest.$ac_ext
14142cat >>conftest.$ac_ext <<_ACEOF
14143/* end confdefs.h. */
14144
14145#ifdef HAVE_PTHREAD_H
14146#include <pthread.h>
14147#endif
14148
14149
14150int
14151main ()
14152{
14153static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) >= 0)];
14154test_array [0] = 0
14155
14156 ;
14157 return 0;
14158}
14159_ACEOF
14160rm -f conftest.$ac_objext
14161if { (ac_try="$ac_compile"
14162case "(($ac_try" in
14163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164 *) ac_try_echo=$ac_try;;
14165esac
14166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14167$as_echo "$ac_try_echo") >&5
14168 (eval "$ac_compile") 2>conftest.er1
14169 ac_status=$?
14170 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1
14172 cat conftest.err >&5
14173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } && {
14175 test -z "$ac_c_werror_flag" ||
14176 test ! -s conftest.err
14177 } && test -s conftest.$ac_objext; then
14178 ac_lo=0 ac_mid=0
14179 while :; do
14180 cat >conftest.$ac_ext <<_ACEOF
14181/* confdefs.h. */
14182_ACEOF
14183cat confdefs.h >>conftest.$ac_ext
14184cat >>conftest.$ac_ext <<_ACEOF
14185/* end confdefs.h. */
14186
14187#ifdef HAVE_PTHREAD_H
14188#include <pthread.h>
14189#endif
14190
14191
14192int
14193main ()
14194{
14195static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) <= $ac_mid)];
14196test_array [0] = 0
14197
14198 ;
14199 return 0;
14200}
14201_ACEOF
14202rm -f conftest.$ac_objext
14203if { (ac_try="$ac_compile"
14204case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14207esac
14208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14209$as_echo "$ac_try_echo") >&5
14210 (eval "$ac_compile") 2>conftest.er1
14211 ac_status=$?
14212 grep -v '^ *+' conftest.er1 >conftest.err
14213 rm -f conftest.er1
14214 cat conftest.err >&5
14215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } && {
14217 test -z "$ac_c_werror_flag" ||
14218 test ! -s conftest.err
14219 } && test -s conftest.$ac_objext; then
14220 ac_hi=$ac_mid; break
14221else
14222 $as_echo "$as_me: failed program was:" >&5
14223sed 's/^/| /' conftest.$ac_ext >&5
14224
14225 ac_lo=`expr $ac_mid + 1`
14226 if test $ac_lo -le $ac_mid; then
14227 ac_lo= ac_hi=
14228 break
14229 fi
14230 ac_mid=`expr 2 '*' $ac_mid + 1`
14231fi
14232
14233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14234 done
14235else
14236 $as_echo "$as_me: failed program was:" >&5
14237sed 's/^/| /' conftest.$ac_ext >&5
14238
14239 cat >conftest.$ac_ext <<_ACEOF
14240/* confdefs.h. */
14241_ACEOF
14242cat confdefs.h >>conftest.$ac_ext
14243cat >>conftest.$ac_ext <<_ACEOF
14244/* end confdefs.h. */
14245
14246#ifdef HAVE_PTHREAD_H
14247#include <pthread.h>
14248#endif
14249
14250
14251int
14252main ()
14253{
14254static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) < 0)];
14255test_array [0] = 0
14256
14257 ;
14258 return 0;
14259}
14260_ACEOF
14261rm -f conftest.$ac_objext
14262if { (ac_try="$ac_compile"
14263case "(($ac_try" in
14264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265 *) ac_try_echo=$ac_try;;
14266esac
14267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14268$as_echo "$ac_try_echo") >&5
14269 (eval "$ac_compile") 2>conftest.er1
14270 ac_status=$?
14271 grep -v '^ *+' conftest.er1 >conftest.err
14272 rm -f conftest.er1
14273 cat conftest.err >&5
14274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } && {
14276 test -z "$ac_c_werror_flag" ||
14277 test ! -s conftest.err
14278 } && test -s conftest.$ac_objext; then
14279 ac_hi=-1 ac_mid=-1
14280 while :; do
14281 cat >conftest.$ac_ext <<_ACEOF
14282/* confdefs.h. */
14283_ACEOF
14284cat confdefs.h >>conftest.$ac_ext
14285cat >>conftest.$ac_ext <<_ACEOF
14286/* end confdefs.h. */
14287
14288#ifdef HAVE_PTHREAD_H
14289#include <pthread.h>
14290#endif
14291
14292
14293int
14294main ()
14295{
14296static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) >= $ac_mid)];
14297test_array [0] = 0
14298
14299 ;
14300 return 0;
14301}
14302_ACEOF
14303rm -f conftest.$ac_objext
14304if { (ac_try="$ac_compile"
14305case "(($ac_try" in
14306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307 *) ac_try_echo=$ac_try;;
14308esac
14309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14310$as_echo "$ac_try_echo") >&5
14311 (eval "$ac_compile") 2>conftest.er1
14312 ac_status=$?
14313 grep -v '^ *+' conftest.er1 >conftest.err
14314 rm -f conftest.er1
14315 cat conftest.err >&5
14316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } && {
14318 test -z "$ac_c_werror_flag" ||
14319 test ! -s conftest.err
14320 } && test -s conftest.$ac_objext; then
14321 ac_lo=$ac_mid; break
14322else
14323 $as_echo "$as_me: failed program was:" >&5
14324sed 's/^/| /' conftest.$ac_ext >&5
14325
14326 ac_hi=`expr '(' $ac_mid ')' - 1`
14327 if test $ac_mid -le $ac_hi; then
14328 ac_lo= ac_hi=
14329 break
14330 fi
14331 ac_mid=`expr 2 '*' $ac_mid`
14332fi
14333
14334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 done
14336else
14337 $as_echo "$as_me: failed program was:" >&5
14338sed 's/^/| /' conftest.$ac_ext >&5
14339
14340 ac_lo= ac_hi=
14341fi
14342
14343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344fi
14345
14346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347# Binary search between lo and hi bounds.
14348while test "x$ac_lo" != "x$ac_hi"; do
14349 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14350 cat >conftest.$ac_ext <<_ACEOF
14351/* confdefs.h. */
14352_ACEOF
14353cat confdefs.h >>conftest.$ac_ext
14354cat >>conftest.$ac_ext <<_ACEOF
14355/* end confdefs.h. */
14356
14357#ifdef HAVE_PTHREAD_H
14358#include <pthread.h>
14359#endif
14360
14361
14362int
14363main ()
14364{
14365static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) <= $ac_mid)];
14366test_array [0] = 0
14367
14368 ;
14369 return 0;
14370}
14371_ACEOF
14372rm -f conftest.$ac_objext
14373if { (ac_try="$ac_compile"
14374case "(($ac_try" in
14375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376 *) ac_try_echo=$ac_try;;
14377esac
14378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14379$as_echo "$ac_try_echo") >&5
14380 (eval "$ac_compile") 2>conftest.er1
14381 ac_status=$?
14382 grep -v '^ *+' conftest.er1 >conftest.err
14383 rm -f conftest.er1
14384 cat conftest.err >&5
14385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } && {
14387 test -z "$ac_c_werror_flag" ||
14388 test ! -s conftest.err
14389 } && test -s conftest.$ac_objext; then
14390 ac_hi=$ac_mid
14391else
14392 $as_echo "$as_me: failed program was:" >&5
14393sed 's/^/| /' conftest.$ac_ext >&5
14394
14395 ac_lo=`expr '(' $ac_mid ')' + 1`
14396fi
14397
14398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14399done
14400case $ac_lo in
14401?*) ac_cv_sizeof_pthread_t=$ac_lo;;
14402'') if test "$ac_cv_type_pthread_t" = yes; then
14403 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14405{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14406See \`config.log' for more details." >&5
14407$as_echo "$as_me: error: cannot compute sizeof (pthread_t)
14408See \`config.log' for more details." >&2;}
14409 { (exit 77); exit 77; }; }; }
14410 else
14411 ac_cv_sizeof_pthread_t=0
14412 fi ;;
14413esac
Trent Mick635f6fb2000-08-23 21:33:05 +000014414else
Martin v. Löwis11437992002-04-12 09:54:03 +000014415 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014416/* confdefs.h. */
14417_ACEOF
14418cat confdefs.h >>conftest.$ac_ext
14419cat >>conftest.$ac_ext <<_ACEOF
14420/* end confdefs.h. */
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014421
14422#ifdef HAVE_PTHREAD_H
Neal Norwitz6eb37f02003-02-23 23:28:15 +000014423#include <pthread.h>
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014424#endif
14425
14426
14427static long int longval () { return (long int) (sizeof (pthread_t)); }
14428static unsigned long int ulongval () { return (long int) (sizeof (pthread_t)); }
14429#include <stdio.h>
14430#include <stdlib.h>
14431int
14432main ()
14433{
14434
14435 FILE *f = fopen ("conftest.val", "w");
14436 if (! f)
14437 return 1;
14438 if (((long int) (sizeof (pthread_t))) < 0)
14439 {
14440 long int i = longval ();
14441 if (i != ((long int) (sizeof (pthread_t))))
14442 return 1;
14443 fprintf (f, "%ld", i);
14444 }
14445 else
14446 {
14447 unsigned long int i = ulongval ();
14448 if (i != ((long int) (sizeof (pthread_t))))
14449 return 1;
14450 fprintf (f, "%lu", i);
14451 }
14452 /* Do not output a trailing newline, as this causes \r\n confusion
14453 on some platforms. */
14454 return ferror (f) || fclose (f) != 0;
14455
14456 ;
14457 return 0;
14458}
Martin v. Löwis11437992002-04-12 09:54:03 +000014459_ACEOF
14460rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014461if { (ac_try="$ac_link"
14462case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14465esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14467$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014468 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014469 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000014472 { (case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14475esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14477$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014478 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014479 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014481 (exit $ac_status); }; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014482 ac_cv_sizeof_pthread_t=`cat conftest.val`
Trent Mick635f6fb2000-08-23 21:33:05 +000014483else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014484 $as_echo "$as_me: program exited with status $ac_status" >&5
14485$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014486sed 's/^/| /' conftest.$ac_ext >&5
14487
Martin v. Löwis11437992002-04-12 09:54:03 +000014488( exit $ac_status )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014489if test "$ac_cv_type_pthread_t" = yes; then
14490 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14492{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14493See \`config.log' for more details." >&5
14494$as_echo "$as_me: error: cannot compute sizeof (pthread_t)
14495See \`config.log' for more details." >&2;}
14496 { (exit 77); exit 77; }; }; }
14497 else
14498 ac_cv_sizeof_pthread_t=0
14499 fi
Trent Mick635f6fb2000-08-23 21:33:05 +000014500fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014501rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000014502rm -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 +000014503fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014504rm -f conftest.val
Trent Mick635f6fb2000-08-23 21:33:05 +000014505fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014506{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
14507$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
Trent Mick635f6fb2000-08-23 21:33:05 +000014508
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014509
Martin v. Löwis11437992002-04-12 09:54:03 +000014510
14511cat >>confdefs.h <<_ACEOF
Trent Mick635f6fb2000-08-23 21:33:05 +000014512#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
Martin v. Löwis11437992002-04-12 09:54:03 +000014513_ACEOF
Trent Mick635f6fb2000-08-23 21:33:05 +000014514
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014515
Trent Mick635f6fb2000-08-23 21:33:05 +000014516fi
Martin v. Löwis123cbd22001-07-19 14:21:10 +000014517CC="$ac_save_cc"
Trent Mick635f6fb2000-08-23 21:33:05 +000014518
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014519{ $as_echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
14520$as_echo_n "checking for --enable-toolbox-glue... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000014521# Check whether --enable-toolbox-glue was given.
Jack Jansene578a632001-08-15 01:27:14 +000014522if test "${enable_toolbox_glue+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000014523 enableval=$enable_toolbox_glue;
14524fi
Jack Jansene578a632001-08-15 01:27:14 +000014525
14526
14527if test -z "$enable_toolbox_glue"
Martin v. Löwis11437992002-04-12 09:54:03 +000014528then
Jack Jansene578a632001-08-15 01:27:14 +000014529 case $ac_sys_system/$ac_sys_release in
14530 Darwin/*)
14531 enable_toolbox_glue="yes";;
14532 *)
14533 enable_toolbox_glue="no";;
14534 esac
14535fi
14536case "$enable_toolbox_glue" in
14537yes)
Jack Jansene578a632001-08-15 01:27:14 +000014538 extra_machdep_objs="Python/mactoolboxglue.o"
Anthony Baxtereef2d3b2004-11-06 04:45:33 +000014539 extra_undefs="-u _PyMac_Error"
Martin v. Löwis11437992002-04-12 09:54:03 +000014540
14541cat >>confdefs.h <<\_ACEOF
Jack Jansene578a632001-08-15 01:27:14 +000014542#define USE_TOOLBOX_OBJECT_GLUE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014543_ACEOF
Jack Jansene578a632001-08-15 01:27:14 +000014544
14545 ;;
14546*)
Jack Jansene578a632001-08-15 01:27:14 +000014547 extra_machdep_objs=""
Jack Jansen591cbed2001-08-15 13:55:15 +000014548 extra_undefs=""
Jack Jansene578a632001-08-15 01:27:14 +000014549 ;;
14550esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014551{ $as_echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
14552$as_echo "$enable_toolbox_glue" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000014553
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000014554
Ronald Oussoren0d236eb2008-06-06 21:31:33 +000014555
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000014556case $ac_sys_system/$ac_sys_release in
Anthony Baxter82201742006-04-09 15:07:40 +000014557 Darwin/[01567]\..*)
Bob Ippolito7026a0a2005-03-28 23:23:47 +000014558 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
14559 ;;
14560 Darwin/*)
14561 OTHER_LIBTOOL_OPT=""
14562 ;;
14563esac
14564
14565
14566case $ac_sys_system/$ac_sys_release in
Anthony Baxter82201742006-04-09 15:07:40 +000014567 Darwin/[01567]\..*)
Ronald Oussoren988117f2006-04-29 11:31:35 +000014568 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
14569 if test "${enable_universalsdk}"; then
14570 :
14571 else
14572 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
14573 fi
Jack Jansenb36687a2004-07-16 08:43:47 +000014574 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansena3891ea2001-09-07 14:25:12 +000014575 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum5839e582000-10-09 19:52:35 +000014576 Darwin/*)
Bob Ippolito7026a0a2005-03-28 23:23:47 +000014577 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
14578 if test ${gcc_version} '<' 4.0
14579 then
14580 LIBTOOL_CRUFT="-lcc_dynamic"
14581 else
14582 LIBTOOL_CRUFT=""
14583 fi
Jack Jansen39fd2312006-02-23 15:12:19 +000014584 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
Jack Jansenb36687a2004-07-16 08:43:47 +000014585 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:14 +000014586 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000014587esac
14588
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014589{ $as_echo "$as_me:$LINENO: checking for --enable-framework" >&5
14590$as_echo_n "checking for --enable-framework... " >&6; }
Jack Jansene578a632001-08-15 01:27:14 +000014591if test "$enable_framework"
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000014592then
Skip Montanarodecc6a42003-01-01 20:07:49 +000014593 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
Martin v. Löwis11437992002-04-12 09:54:03 +000014594 # -F. is needed to allow linking to the framework while
Jack Jansene578a632001-08-15 01:27:14 +000014595 # in the build location.
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000014596
Martin v. Löwis11437992002-04-12 09:54:03 +000014597cat >>confdefs.h <<\_ACEOF
14598#define WITH_NEXT_FRAMEWORK 1
14599_ACEOF
14600
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014601 { $as_echo "$as_me:$LINENO: result: yes" >&5
14602$as_echo "yes" >&6; }
Ronald Oussoren450d5612009-06-08 21:12:41 +000014603 if test $enable_shared = "yes"
14604 then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014605 { { $as_echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
14606$as_echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
Ronald Oussoren450d5612009-06-08 21:12:41 +000014607 { (exit 1); exit 1; }; }
14608 fi
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000014609else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014610 { $as_echo "$as_me:$LINENO: result: no" >&5
14611$as_echo "no" >&6; }
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000014612fi
14613
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014614{ $as_echo "$as_me:$LINENO: checking for dyld" >&5
14615$as_echo_n "checking for dyld... " >&6; }
Jack Jansen9a66b6d2001-08-08 13:56:14 +000014616case $ac_sys_system/$ac_sys_release in
14617 Darwin/*)
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000014618
Martin v. Löwis11437992002-04-12 09:54:03 +000014619cat >>confdefs.h <<\_ACEOF
14620#define WITH_DYLD 1
14621_ACEOF
14622
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014623 { $as_echo "$as_me:$LINENO: result: always on for Darwin" >&5
14624$as_echo "always on for Darwin" >&6; }
Jack Jansen9a66b6d2001-08-08 13:56:14 +000014625 ;;
14626 *)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014627 { $as_echo "$as_me:$LINENO: result: no" >&5
14628$as_echo "no" >&6; }
Jack Jansene578a632001-08-15 01:27:14 +000014629 ;;
Jack Jansen9a66b6d2001-08-08 13:56:14 +000014630esac
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000014631
Guido van Rossum0a516c91994-09-12 10:58:40 +000014632# Set info about shared libraries.
Guido van Rossum0a516c91994-09-12 10:58:40 +000014633
Michael W. Hudson54241132001-12-07 15:38:26 +000014634
14635
14636
14637
Guido van Rossum0a516c91994-09-12 10:58:40 +000014638# SO is the extension of shared libraries `(including the dot!)
Guido van Rossumaef734b2001-01-10 21:09:12 +000014639# -- usually .so, .sl on HP-UX, .dll on Cygwin
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014640{ $as_echo "$as_me:$LINENO: checking SO" >&5
14641$as_echo_n "checking SO... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000014642if test -z "$SO"
14643then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000014644 case $ac_sys_system in
Neal Norwitz58e28882006-05-19 07:00:58 +000014645 hp*|HP*)
14646 case `uname -m` in
14647 ia64) SO=.so;;
14648 *) SO=.sl;;
14649 esac
14650 ;;
Guido van Rossumaef734b2001-01-10 21:09:12 +000014651 CYGWIN*) SO=.dll;;
Guido van Rossum563e7081996-09-10 18:20:48 +000014652 *) SO=.so;;
Guido van Rossum0a516c91994-09-12 10:58:40 +000014653 esac
Martin v. Löwis368de8f2003-06-14 14:46:38 +000014654else
14655 # this might also be a termcap variable, see #610332
14656 echo
14657 echo '====================================================================='
14658 echo '+ +'
14659 echo '+ WARNING: You have set SO in your environment. +'
14660 echo '+ Do you really mean to change the extension for shared libraries? +'
14661 echo '+ Continuing in 10 seconds to let you to ponder. +'
14662 echo '+ +'
14663 echo '====================================================================='
14664 sleep 10
Guido van Rossum0a516c91994-09-12 10:58:40 +000014665fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014666{ $as_echo "$as_me:$LINENO: result: $SO" >&5
14667$as_echo "$SO" >&6; }
Neal Norwitz58e28882006-05-19 07:00:58 +000014668
Ronald Oussoren79f90492009-01-02 10:44:46 +000014669
Neal Norwitz58e28882006-05-19 07:00:58 +000014670cat >>confdefs.h <<_ACEOF
14671#define SHLIB_EXT "$SO"
14672_ACEOF
14673
Guido van Rossum0a516c91994-09-12 10:58:40 +000014674# LDSHARED is the ld *command* used to create shared library
Martin v. Löwis12af0482004-01-31 12:34:17 +000014675# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000014676# (Shared libraries in this instance are shared modules to be loaded into
14677# Python, as opposed to building Python itself as a shared library.)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014678{ $as_echo "$as_me:$LINENO: checking LDSHARED" >&5
14679$as_echo_n "checking LDSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000014680if test -z "$LDSHARED"
14681then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000014682 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +000014683 AIX*)
14684 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
Guido van Rossumce608b02001-09-28 15:59:38 +000014685 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +000014686 ;;
14687 BeOS*)
14688 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
Guido van Rossumce608b02001-09-28 15:59:38 +000014689 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +000014690 ;;
Guido van Rossum07397971997-04-29 21:49:50 +000014691 IRIX/5*) LDSHARED="ld -shared";;
Guido van Rossum91922671997-10-09 20:24:13 +000014692 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
Martin v. Löwis11437992002-04-12 09:54:03 +000014693 SunOS/5*)
Greg Ward57c9a662000-05-26 12:22:54 +000014694 if test "$GCC" = "yes"
Neil Schemenauer8ba94452001-02-19 18:18:48 +000014695 then LDSHARED='$(CC) -shared'
Martin v. Löwisaa5afe12002-10-07 06:21:41 +000014696 else LDSHARED='$(CC) -G';
Greg Ward57c9a662000-05-26 12:22:54 +000014697 fi ;;
Thomas Hellerdc96a772008-04-04 10:07:55 +000014698 hp*|HP*)
14699 if test "$GCC" = "yes"
14700 then LDSHARED='$(CC) -shared'
14701 else LDSHARED='ld -b';
14702 fi ;;
Guido van Rossumda88dad1995-01-26 00:46:29 +000014703 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
Jack Jansen418c3b12001-11-14 10:59:57 +000014704 Darwin/1.3*)
Jack Jansena3891ea2001-09-07 14:25:12 +000014705 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14706 if test "$enable_framework" ; then
14707 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:22 +000014708 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14709 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansena3891ea2001-09-07 14:25:12 +000014710 else
14711 # No framework. Ignore undefined symbols, assuming they come from Python
Jack Jansen418c3b12001-11-14 10:59:57 +000014712 LDSHARED="$LDSHARED -undefined suppress"
Jack Jansena3891ea2001-09-07 14:25:12 +000014713 fi ;;
Jack Jansen6b08a402004-06-03 12:41:45 +000014714 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
Jack Jansene578a632001-08-15 01:27:14 +000014715 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14716 if test "$enable_framework" ; then
14717 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:22 +000014718 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14719 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:14 +000014720 else
Michael W. Hudson594bc802002-03-07 09:59:15 +000014721 # No framework, use the Python app as bundle-loader
14722 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
Jack Jansenc28fc372003-02-25 13:14:43 +000014723 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000014724 fi ;;
Jack Jansen6b08a402004-06-03 12:41:45 +000014725 Darwin/*)
14726 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
14727 # This allows an extension to be used in any Python
Ronald Oussoren38f1b982007-09-02 09:46:07 +000014728
Ronald Oussoren5640ce22008-06-05 12:58:24 +000014729 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
Jack Jansen6b08a402004-06-03 12:41:45 +000014730 then
Ronald Oussoren988117f2006-04-29 11:31:35 +000014731 if test "${enable_universalsdk}"; then
Ronald Oussoren5640ce22008-06-05 12:58:24 +000014732 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
Ronald Oussoren988117f2006-04-29 11:31:35 +000014733 fi
Jack Jansen6b08a402004-06-03 12:41:45 +000014734 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
14735 BLDSHARED="$LDSHARED"
Jack Jansen6b08a402004-06-03 12:41:45 +000014736 else
14737 LDSHARED='$(CC) $(LDFLAGS) -bundle'
14738 if test "$enable_framework" ; then
14739 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:22 +000014740 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
14741 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansen6b08a402004-06-03 12:41:45 +000014742 else
14743 # No framework, use the Python app as bundle-loader
14744 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
14745 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
14746 fi
14747 fi
14748 ;;
Martin v. Löwis8c255e42008-05-23 15:06:50 +000014749 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
Guido van Rossum458e7fa1999-09-17 15:40:40 +000014750 BSD/OS*/4*) LDSHARED="gcc -shared";;
Martin v. Löwis222c5152006-06-03 07:37:13 +000014751 FreeBSD*)
Jeremy Hylton4bcc7c52000-08-31 17:45:35 +000014752 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
Guido van Rossum0286ae82000-08-29 15:06:49 +000014753 then
Hye-Shik Chang33761492004-10-26 09:53:46 +000014754 LDSHARED="$CC -shared ${LDFLAGS}"
Guido van Rossum0286ae82000-08-29 15:06:49 +000014755 else
14756 LDSHARED="ld -Bshareable ${LDFLAGS}"
14757 fi;;
Martin v. Löwis222c5152006-06-03 07:37:13 +000014758 OpenBSD*)
14759 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14760 then
14761 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14762 else
14763 case `uname -r` in
14764 [01].* | 2.[0-7] | 2.[0-7].*)
14765 LDSHARED="ld -Bshareable ${LDFLAGS}"
14766 ;;
14767 *)
14768 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
14769 ;;
14770 esac
14771 fi;;
Martin v. Löwis86d66262006-02-17 08:40:11 +000014772 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
Martin v. Löwis25ae43b2001-10-07 08:39:18 +000014773 OpenUNIX*|UnixWare*)
Martin v. Löwisbec19582001-03-21 15:57:54 +000014774 if test "$GCC" = "yes"
Martin v. Löwis79f3c532002-12-11 12:51:58 +000014775 then LDSHARED='$(CC) -shared'
14776 else LDSHARED='$(CC) -G'
Martin v. Löwisbec19582001-03-21 15:57:54 +000014777 fi;;
Martin v. Löwis79f3c532002-12-11 12:51:58 +000014778 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
Trent Mick635f6fb2000-08-23 21:33:05 +000014779 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
Guido van Rossumaef734b2001-01-10 21:09:12 +000014780 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014781 atheos*) LDSHARED="gcc -shared";;
Guido van Rossum0a516c91994-09-12 10:58:40 +000014782 *) LDSHARED="ld";;
14783 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +000014784fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014785{ $as_echo "$as_me:$LINENO: result: $LDSHARED" >&5
14786$as_echo "$LDSHARED" >&6; }
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +000014787BLDSHARED=${BLDSHARED-$LDSHARED}
Guido van Rossum0a516c91994-09-12 10:58:40 +000014788# CCSHARED are the C *flags* used to create objects to go into a shared
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000014789# library (module) -- this is only needed for a few systems
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014790{ $as_echo "$as_me:$LINENO: checking CCSHARED" >&5
14791$as_echo_n "checking CCSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000014792if test -z "$CCSHARED"
14793then
Guido van Rossum07397971997-04-29 21:49:50 +000014794 case $ac_sys_system/$ac_sys_release in
Neil Schemenauerc761fc82001-02-19 04:50:49 +000014795 SunOS*) if test "$GCC" = yes;
Martin v. Löwiseb623572007-03-12 10:50:39 +000014796 then CCSHARED="-fPIC";
14797 elif test `uname -p` = sparc;
14798 then CCSHARED="-xcode=pic32";
14799 else CCSHARED="-Kpic";
14800 fi;;
Guido van Rossumaf07a441995-02-13 19:45:27 +000014801 hp*|HP*) if test "$GCC" = yes;
Martin v. Löwis703ad702001-09-05 08:36:52 +000014802 then CCSHARED="-fPIC";
Guido van Rossumaf07a441995-02-13 19:45:27 +000014803 else CCSHARED="+z";
14804 fi;;
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014805 Linux*|GNU*) CCSHARED="-fPIC";;
Guido van Rossumf5957ea1999-10-05 21:59:33 +000014806 BSD/OS*/4*) CCSHARED="-fpic";;
Martin v. Löwis86d66262006-02-17 08:40:11 +000014807 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
Martin v. Löwis25ae43b2001-10-07 08:39:18 +000014808 OpenUNIX*|UnixWare*)
Martin v. Löwisbec19582001-03-21 15:57:54 +000014809 if test "$GCC" = "yes"
14810 then CCSHARED="-fPIC"
Martin v. Löwis130fb172001-07-19 11:00:41 +000014811 else CCSHARED="-KPIC"
Martin v. Löwisbec19582001-03-21 15:57:54 +000014812 fi;;
Martin v. Löwis21ee4092002-09-30 16:19:48 +000014813 SCO_SV*)
14814 if test "$GCC" = "yes"
14815 then CCSHARED="-fPIC"
14816 else CCSHARED="-Kpic -belf"
14817 fi;;
Trent Mick635f6fb2000-08-23 21:33:05 +000014818 Monterey*) CCSHARED="-G";;
Guido van Rossum2b5ca001998-03-05 15:41:09 +000014819 IRIX*/6*) case $CC in
14820 *gcc*) CCSHARED="-shared";;
Guido van Rossumee21f411998-04-20 18:51:54 +000014821 *) CCSHARED="";;
Guido van Rossum2b5ca001998-03-05 15:41:09 +000014822 esac;;
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014823 atheos*) CCSHARED="-fPIC";;
Guido van Rossum0a516c91994-09-12 10:58:40 +000014824 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +000014825fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014826{ $as_echo "$as_me:$LINENO: result: $CCSHARED" >&5
14827$as_echo "$CCSHARED" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000014828# LINKFORSHARED are the flags passed to the $(CC) command that links
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000014829# the python executable -- this is only needed for a few systems
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014830{ $as_echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
14831$as_echo_n "checking LINKFORSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000014832if test -z "$LINKFORSHARED"
14833then
Guido van Rossum07397971997-04-29 21:49:50 +000014834 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +000014835 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
Guido van Rossumccaf3b61996-12-06 21:19:16 +000014836 hp*|HP*)
Martin v. Löwis1142de32002-03-29 16:28:31 +000014837 LINKFORSHARED="-Wl,-E -Wl,+s";;
14838# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
Guido van Rossumf5957ea1999-10-05 21:59:33 +000014839 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
Martin v. Löwisa6e97582002-01-01 18:41:33 +000014840 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000014841 # -u libsys_s pulls in all symbols in libsys
Martin v. Löwis11437992002-04-12 09:54:03 +000014842 Darwin/*)
Anthony Baxtereef2d3b2004-11-06 04:45:33 +000014843 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
14844 # which is
Jack Jansene578a632001-08-15 01:27:14 +000014845 # not used by the core itself but which needs to be in the core so
14846 # that dynamically loaded extension modules have access to it.
Jack Jansen97e3f002003-02-23 22:59:01 +000014847 # -prebind is no longer used, because it actually seems to give a
14848 # slowdown in stead of a speedup, maybe due to the large number of
14849 # dynamic loads Python does.
Anthony Baxtereef2d3b2004-11-06 04:45:33 +000014850
14851 LINKFORSHARED="$extra_undefs"
Jack Jansene578a632001-08-15 01:27:14 +000014852 if test "$enable_framework"
14853 then
Jack Jansenda49e192005-01-07 13:08:22 +000014854 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:14 +000014855 fi
Anthony Baxtereef2d3b2004-11-06 04:45:33 +000014856 LINKFORSHARED="$LINKFORSHARED";;
Martin v. Löwis25ae43b2001-10-07 08:39:18 +000014857 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
Martin v. Löwis21ee4092002-09-30 16:19:48 +000014858 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
Fred Drake02706f52000-09-25 15:08:46 +000014859 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
Martin v. Löwis86d66262006-02-17 08:40:11 +000014860 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
Guido van Rossumdf693651999-01-07 21:50:41 +000014861 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14862 then
14863 LINKFORSHARED="-Wl,--export-dynamic"
14864 fi;;
Guido van Rossum2b5ca001998-03-05 15:41:09 +000014865 SunOS/5*) case $CC in
14866 *gcc*)
Martin v. Löwisa4548572002-04-18 14:51:36 +000014867 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
Guido van Rossum8f4ceb11997-12-18 23:42:19 +000014868 then
14869 LINKFORSHARED="-Xlinker --export-dynamic"
Guido van Rossum2b5ca001998-03-05 15:41:09 +000014870 fi;;
14871 esac;;
Jason Tishler30765592003-09-04 11:04:06 +000014872 CYGWIN*)
14873 if test $enable_shared = "no"
14874 then
14875 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
14876 fi;;
Martin v. Löwis8c255e42008-05-23 15:06:50 +000014877 QNX*)
14878 # -Wl,-E causes the symbols to be added to the dynamic
14879 # symbol table so that they can be found when a module
14880 # is loaded. -N 2048K causes the stack size to be set
14881 # to 2048 kilobytes so that the stack doesn't overflow
14882 # when running test_compile.py.
14883 LINKFORSHARED='-Wl,-E -N 2048K';;
Guido van Rossum0a516c91994-09-12 10:58:40 +000014884 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +000014885fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014886{ $as_echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
14887$as_echo "$LINKFORSHARED" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:40 +000014888
Michael W. Hudson54241132001-12-07 15:38:26 +000014889
Ronald Oussoren0d236eb2008-06-06 21:31:33 +000014890
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014891{ $as_echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
14892$as_echo_n "checking CFLAGSFORSHARED... " >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000014893if test ! "$LIBRARY" = "$LDLIBRARY"
14894then
Neil Schemenauer0c6141f2001-01-27 21:40:54 +000014895 case $ac_sys_system in
14896 CYGWIN*)
14897 # Cygwin needs CCSHARED when building extension DLLs
14898 # but not when building the interpreter DLL.
14899 CFLAGSFORSHARED='';;
14900 *)
14901 CFLAGSFORSHARED='$(CCSHARED)'
14902 esac
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000014903fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014904{ $as_echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14905$as_echo "$CFLAGSFORSHARED" >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000014906
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014907# SHLIBS are libraries (except -lc and -lm) to link to the python shared
14908# library (with --enable-shared).
14909# For platforms on which shared libraries are not allowed to have unresolved
Martin v. Löwisd6359c52002-08-04 12:38:50 +000014910# symbols, this must be set to $(LIBS) (expanded by make). We do this even
14911# if it is not required, since it creates a dependency of the shared library
14912# to LIBS. This, in turn, means that applications linking the shared libpython
14913# don't need to link LIBS explicitly. The default should be only changed
14914# on systems where this approach causes problems.
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014915
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014916{ $as_echo "$as_me:$LINENO: checking SHLIBS" >&5
14917$as_echo_n "checking SHLIBS... " >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014918case "$ac_sys_system" in
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014919 *)
Martin v. Löwisd6359c52002-08-04 12:38:50 +000014920 SHLIBS='$(LIBS)';;
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014921esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014922{ $as_echo "$as_me:$LINENO: result: $SHLIBS" >&5
14923$as_echo "$SHLIBS" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000014924
14925
Guido van Rossum627b2d71993-12-24 10:39:16 +000014926# checks for libraries
Martin v. Löwis11437992002-04-12 09:54:03 +000014927
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014928{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14929$as_echo_n "checking for dlopen in -ldl... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000014930if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014931 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000014932else
Martin v. Löwis11437992002-04-12 09:54:03 +000014933 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000014934LIBS="-ldl $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000014935cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000014936/* confdefs.h. */
14937_ACEOF
14938cat confdefs.h >>conftest.$ac_ext
14939cat >>conftest.$ac_ext <<_ACEOF
14940/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014941
Martin v. Löwiseba40652007-08-30 20:10:57 +000014942/* Override any GCC internal prototype to avoid an error.
14943 Use char because int might match the return type of a GCC
14944 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014945#ifdef __cplusplus
14946extern "C"
14947#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000014948char dlopen ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014949int
14950main ()
14951{
Martin v. Löwiseba40652007-08-30 20:10:57 +000014952return dlopen ();
Martin v. Löwis11437992002-04-12 09:54:03 +000014953 ;
14954 return 0;
14955}
14956_ACEOF
14957rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000014958if { (ac_try="$ac_link"
14959case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14962esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14964$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014965 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000014966 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000014967 grep -v '^ *+' conftest.er1 >conftest.err
14968 rm -f conftest.er1
14969 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000014971 (exit $ac_status); } && {
14972 test -z "$ac_c_werror_flag" ||
14973 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014974 } && test -s conftest$ac_exeext && {
14975 test "$cross_compiling" = yes ||
14976 $as_test_x conftest$ac_exeext
14977 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014978 ac_cv_lib_dl_dlopen=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000014979else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014980 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000014981sed 's/^/| /' conftest.$ac_ext >&5
14982
Martin v. Löwiseba40652007-08-30 20:10:57 +000014983 ac_cv_lib_dl_dlopen=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000014984fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000014985
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014986rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000014987rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000014988 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000014989LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:16 +000014990fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000014991{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14992$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14993if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000014994 cat >>confdefs.h <<_ACEOF
14995#define HAVE_LIBDL 1
14996_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000014997
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000014998 LIBS="-ldl $LIBS"
Guido van Rossum7f43da71994-08-01 12:15:30 +000014999
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015000fi
15001 # Dynamic linking for SunOS/Solaris and SYSV
Martin v. Löwis11437992002-04-12 09:54:03 +000015002
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015003{ $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15004$as_echo_n "checking for shl_load in -ldld... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015005if test "${ac_cv_lib_dld_shl_load+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015006 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015007else
Martin v. Löwis11437992002-04-12 09:54:03 +000015008 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000015009LIBS="-ldld $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000015010cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015011/* confdefs.h. */
15012_ACEOF
15013cat confdefs.h >>conftest.$ac_ext
15014cat >>conftest.$ac_ext <<_ACEOF
15015/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015016
Martin v. Löwiseba40652007-08-30 20:10:57 +000015017/* Override any GCC internal prototype to avoid an error.
15018 Use char because int might match the return type of a GCC
15019 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015020#ifdef __cplusplus
15021extern "C"
15022#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015023char shl_load ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015024int
15025main ()
15026{
Martin v. Löwiseba40652007-08-30 20:10:57 +000015027return shl_load ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015028 ;
15029 return 0;
15030}
15031_ACEOF
15032rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015033if { (ac_try="$ac_link"
15034case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15037esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015038eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15039$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015040 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015041 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015042 grep -v '^ *+' conftest.er1 >conftest.err
15043 rm -f conftest.er1
15044 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015046 (exit $ac_status); } && {
15047 test -z "$ac_c_werror_flag" ||
15048 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015049 } && test -s conftest$ac_exeext && {
15050 test "$cross_compiling" = yes ||
15051 $as_test_x conftest$ac_exeext
15052 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015053 ac_cv_lib_dld_shl_load=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015054else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015055 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015056sed 's/^/| /' conftest.$ac_ext >&5
15057
Martin v. Löwiseba40652007-08-30 20:10:57 +000015058 ac_cv_lib_dld_shl_load=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000015059fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015060
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015061rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000015062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015063 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000015064LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:16 +000015065fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015066{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15067$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15068if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015069 cat >>confdefs.h <<_ACEOF
15070#define HAVE_LIBDLD 1
15071_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000015072
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000015073 LIBS="-ldld $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015074
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015075fi
15076 # Dynamic linking for HP-UX
Martin v. Löwis519adae2003-09-20 10:47:47 +000015077
Ronald Oussoren79f90492009-01-02 10:44:46 +000015078# only check for sem_init if thread support is requested
Martin v. Löwis519adae2003-09-20 10:47:47 +000015079if test "$with_threads" = "yes" -o -z "$with_threads"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015080 { $as_echo "$as_me:$LINENO: checking for library containing sem_init" >&5
15081$as_echo_n "checking for library containing sem_init... " >&6; }
Martin v. Löwis82c19a72002-10-06 11:48:09 +000015082if test "${ac_cv_search_sem_init+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015083 $as_echo_n "(cached) " >&6
Martin v. Löwis41933dd2002-03-21 15:10:58 +000015084else
Martin v. Löwis82c19a72002-10-06 11:48:09 +000015085 ac_func_search_save_LIBS=$LIBS
Martin v. Löwis11437992002-04-12 09:54:03 +000015086cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015087/* confdefs.h. */
15088_ACEOF
15089cat confdefs.h >>conftest.$ac_ext
15090cat >>conftest.$ac_ext <<_ACEOF
15091/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015092
Martin v. Löwiseba40652007-08-30 20:10:57 +000015093/* Override any GCC internal prototype to avoid an error.
15094 Use char because int might match the return type of a GCC
15095 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015096#ifdef __cplusplus
15097extern "C"
15098#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015099char sem_init ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015100int
15101main ()
15102{
Martin v. Löwiseba40652007-08-30 20:10:57 +000015103return sem_init ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015104 ;
15105 return 0;
15106}
15107_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000015108for ac_lib in '' pthread rt posix4; do
15109 if test -z "$ac_lib"; then
15110 ac_res="none required"
15111 else
15112 ac_res=-l$ac_lib
Skip Montanaro89e975f2007-08-22 19:05:21 +000015113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Martin v. Löwiseba40652007-08-30 20:10:57 +000015114 fi
15115 rm -f conftest.$ac_objext conftest$ac_exeext
15116if { (ac_try="$ac_link"
15117case "(($ac_try" in
15118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119 *) ac_try_echo=$ac_try;;
15120esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15122$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015123 (eval "$ac_link") 2>conftest.er1
Skip Montanaro89e975f2007-08-22 19:05:21 +000015124 ac_status=$?
15125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015128 $as_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
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015132 } && test -s conftest$ac_exeext && {
15133 test "$cross_compiling" = yes ||
15134 $as_test_x conftest$ac_exeext
15135 }; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015136 ac_cv_search_sem_init=$ac_res
Brett Cannon19fab762007-06-02 03:02:29 +000015137else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015138 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro89e975f2007-08-22 19:05:21 +000015139sed 's/^/| /' conftest.$ac_ext >&5
15140
Martin v. Löwiseba40652007-08-30 20:10:57 +000015141
Brett Cannon19fab762007-06-02 03:02:29 +000015142fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015143
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015144rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000015145rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15146 conftest$ac_exeext
15147 if test "${ac_cv_search_sem_init+set}" = set; then
15148 break
Skip Montanaro89e975f2007-08-22 19:05:21 +000015149fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015150done
15151if test "${ac_cv_search_sem_init+set}" = set; then
15152 :
15153else
15154 ac_cv_search_sem_init=no
15155fi
15156rm conftest.$ac_ext
Martin v. Löwis82c19a72002-10-06 11:48:09 +000015157LIBS=$ac_func_search_save_LIBS
15158fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015159{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
15160$as_echo "$ac_cv_search_sem_init" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000015161ac_res=$ac_cv_search_sem_init
15162if test "$ac_res" != no; then
15163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Martin v. Löwis41933dd2002-03-21 15:10:58 +000015164
Martin v. Löwis41933dd2002-03-21 15:10:58 +000015165fi
Martin v. Löwisd3545ec2003-05-03 11:25:43 +000015166 # 'Real Time' functions on Solaris
Martin v. Löwis519adae2003-09-20 10:47:47 +000015167 # posix4 on Solaris 2.6
15168 # pthread (first!) on Linux
15169fi
15170
Martin v. Löwis19d17342003-06-14 21:03:05 +000015171# check if we need libintl for locale functions
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015172{ $as_echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
15173$as_echo_n "checking for textdomain in -lintl... " >&6; }
Martin v. Löwis19d17342003-06-14 21:03:05 +000015174if test "${ac_cv_lib_intl_textdomain+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015175 $as_echo_n "(cached) " >&6
Martin v. Löwis19d17342003-06-14 21:03:05 +000015176else
15177 ac_check_lib_save_LIBS=$LIBS
15178LIBS="-lintl $LIBS"
15179cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015180/* confdefs.h. */
15181_ACEOF
15182cat confdefs.h >>conftest.$ac_ext
15183cat >>conftest.$ac_ext <<_ACEOF
15184/* end confdefs.h. */
Martin v. Löwis19d17342003-06-14 21:03:05 +000015185
Martin v. Löwiseba40652007-08-30 20:10:57 +000015186/* Override any GCC internal prototype to avoid an error.
15187 Use char because int might match the return type of a GCC
15188 builtin and then its argument prototype would still apply. */
Martin v. Löwis19d17342003-06-14 21:03:05 +000015189#ifdef __cplusplus
15190extern "C"
15191#endif
Martin v. Löwis19d17342003-06-14 21:03:05 +000015192char textdomain ();
Martin v. Löwis19d17342003-06-14 21:03:05 +000015193int
15194main ()
15195{
Martin v. Löwiseba40652007-08-30 20:10:57 +000015196return textdomain ();
Martin v. Löwis19d17342003-06-14 21:03:05 +000015197 ;
15198 return 0;
15199}
15200_ACEOF
15201rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015202if { (ac_try="$ac_link"
15203case "(($ac_try" in
15204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205 *) ac_try_echo=$ac_try;;
15206esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15208$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015209 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis19d17342003-06-14 21:03:05 +000015210 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015211 grep -v '^ *+' conftest.er1 >conftest.err
15212 rm -f conftest.er1
15213 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015215 (exit $ac_status); } && {
15216 test -z "$ac_c_werror_flag" ||
15217 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015218 } && test -s conftest$ac_exeext && {
15219 test "$cross_compiling" = yes ||
15220 $as_test_x conftest$ac_exeext
15221 }; then
Martin v. Löwis19d17342003-06-14 21:03:05 +000015222 ac_cv_lib_intl_textdomain=yes
15223else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015224 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015225sed 's/^/| /' conftest.$ac_ext >&5
15226
Martin v. Löwiseba40652007-08-30 20:10:57 +000015227 ac_cv_lib_intl_textdomain=no
Martin v. Löwis19d17342003-06-14 21:03:05 +000015228fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015229
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015230rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000015231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015232 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis19d17342003-06-14 21:03:05 +000015233LIBS=$ac_check_lib_save_LIBS
15234fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015235{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
15236$as_echo "$ac_cv_lib_intl_textdomain" >&6; }
15237if test "x$ac_cv_lib_intl_textdomain" = x""yes; then
Martin v. Löwis19d17342003-06-14 21:03:05 +000015238
15239cat >>confdefs.h <<\_ACEOF
15240#define WITH_LIBINTL 1
15241_ACEOF
15242
15243fi
15244
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000015245
15246# checks for system dependent C++ extensions support
15247case "$ac_sys_system" in
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015248 AIX*) { $as_echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
15249$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015250 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015251/* confdefs.h. */
15252_ACEOF
15253cat confdefs.h >>conftest.$ac_ext
15254cat >>conftest.$ac_ext <<_ACEOF
15255/* end confdefs.h. */
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000015256#include "/usr/lpp/xlC/include/load.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000015257int
15258main ()
15259{
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000015260loadAndInit("", 0, "")
Martin v. Löwis11437992002-04-12 09:54:03 +000015261 ;
15262 return 0;
15263}
15264_ACEOF
15265rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015266if { (ac_try="$ac_link"
15267case "(($ac_try" in
15268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15269 *) ac_try_echo=$ac_try;;
15270esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15272$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015273 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015274 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015275 grep -v '^ *+' conftest.er1 >conftest.err
15276 rm -f conftest.er1
15277 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015279 (exit $ac_status); } && {
15280 test -z "$ac_c_werror_flag" ||
15281 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015282 } && test -s conftest$ac_exeext && {
15283 test "$cross_compiling" = yes ||
15284 $as_test_x conftest$ac_exeext
15285 }; then
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000015286
Martin v. Löwis11437992002-04-12 09:54:03 +000015287cat >>confdefs.h <<\_ACEOF
15288#define AIX_GENUINE_CPLUSPLUS 1
15289_ACEOF
15290
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015291 { $as_echo "$as_me:$LINENO: result: yes" >&5
15292$as_echo "yes" >&6; }
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000015293else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015294 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015295sed 's/^/| /' conftest.$ac_ext >&5
15296
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015297 { $as_echo "$as_me:$LINENO: result: no" >&5
15298$as_echo "no" >&6; }
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000015299fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015300
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015301rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000015302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015303 conftest$ac_exeext conftest.$ac_ext;;
Guido van Rossum0eefa3f1999-11-16 15:57:37 +000015304 *) ;;
15305esac
15306
Guido van Rossum70c7f481998-03-26 18:44:10 +000015307# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
Guido van Rossumec95c7b1998-08-04 17:59:56 +000015308# BeOS' sockets are stashed in libnet.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015309{ $as_echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15310$as_echo_n "checking for t_open in -lnsl... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015311if test "${ac_cv_lib_nsl_t_open+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015312 $as_echo_n "(cached) " >&6
Guido van Rossum79dddcb1995-01-12 12:25:42 +000015313else
Martin v. Löwis11437992002-04-12 09:54:03 +000015314 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000015315LIBS="-lnsl $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 t_open ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015330int
15331main ()
15332{
Martin v. Löwiseba40652007-08-30 20:10:57 +000015333return t_open ();
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
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15345$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015346 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015347 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015348 grep -v '^ *+' conftest.er1 >conftest.err
15349 rm -f conftest.er1
15350 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015352 (exit $ac_status); } && {
15353 test -z "$ac_c_werror_flag" ||
15354 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015355 } && test -s conftest$ac_exeext && {
15356 test "$cross_compiling" = yes ||
15357 $as_test_x conftest$ac_exeext
15358 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015359 ac_cv_lib_nsl_t_open=yes
Guido van Rossum79dddcb1995-01-12 12:25:42 +000015360else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015361 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015362sed 's/^/| /' conftest.$ac_ext >&5
15363
Martin v. Löwiseba40652007-08-30 20:10:57 +000015364 ac_cv_lib_nsl_t_open=no
Guido van Rossum79dddcb1995-01-12 12:25:42 +000015365fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015366
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015367rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000015368rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015369 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000015370LIBS=$ac_check_lib_save_LIBS
Guido van Rossum79dddcb1995-01-12 12:25:42 +000015371fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015372{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15373$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
15374if test "x$ac_cv_lib_nsl_t_open" = x""yes; then
Guido van Rossum79dddcb1995-01-12 12:25:42 +000015375 LIBS="-lnsl $LIBS"
Guido van Rossum79dddcb1995-01-12 12:25:42 +000015376fi
Guido van Rossum0ddb0281995-01-17 16:46:14 +000015377 # SVR4
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015378{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15379$as_echo_n "checking for socket in -lsocket... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015380if test "${ac_cv_lib_socket_socket+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015381 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000015382else
Martin v. Löwis11437992002-04-12 09:54:03 +000015383 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000015384LIBS="-lsocket $LIBS $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000015385cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015386/* confdefs.h. */
15387_ACEOF
15388cat confdefs.h >>conftest.$ac_ext
15389cat >>conftest.$ac_ext <<_ACEOF
15390/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015391
Martin v. Löwiseba40652007-08-30 20:10:57 +000015392/* Override any GCC internal prototype to avoid an error.
15393 Use char because int might match the return type of a GCC
15394 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015395#ifdef __cplusplus
15396extern "C"
15397#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015398char socket ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015399int
15400main ()
15401{
Martin v. Löwiseba40652007-08-30 20:10:57 +000015402return socket ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015403 ;
15404 return 0;
15405}
15406_ACEOF
15407rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015408if { (ac_try="$ac_link"
15409case "(($ac_try" in
15410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411 *) ac_try_echo=$ac_try;;
15412esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15414$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015415 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015416 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015417 grep -v '^ *+' conftest.er1 >conftest.err
15418 rm -f conftest.er1
15419 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015421 (exit $ac_status); } && {
15422 test -z "$ac_c_werror_flag" ||
15423 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015424 } && test -s conftest$ac_exeext && {
15425 test "$cross_compiling" = yes ||
15426 $as_test_x conftest$ac_exeext
15427 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015428 ac_cv_lib_socket_socket=yes
Guido van Rossumec95c7b1998-08-04 17:59:56 +000015429else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015430 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015431sed 's/^/| /' conftest.$ac_ext >&5
15432
Martin v. Löwiseba40652007-08-30 20:10:57 +000015433 ac_cv_lib_socket_socket=no
Guido van Rossumec95c7b1998-08-04 17:59:56 +000015434fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015435
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015436rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000015437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015438 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000015439LIBS=$ac_check_lib_save_LIBS
Guido van Rossumec95c7b1998-08-04 17:59:56 +000015440fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015441{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15442$as_echo "$ac_cv_lib_socket_socket" >&6; }
15443if test "x$ac_cv_lib_socket_socket" = x""yes; then
Guido van Rossumad678af1998-10-02 14:42:15 +000015444 LIBS="-lsocket $LIBS"
Guido van Rossumad678af1998-10-02 14:42:15 +000015445fi
15446 # SVR4 sockets
Skip Montanarob9949db2004-01-17 04:04:13 +000015447
Jeremy Hyltoncb25d5e2000-07-27 21:23:28 +000015448case "$ac_sys_system" in
15449BeOS*)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015450{ $as_echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15451$as_echo_n "checking for socket in -lnet... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015452if test "${ac_cv_lib_net_socket+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015453 $as_echo_n "(cached) " >&6
Guido van Rossumad678af1998-10-02 14:42:15 +000015454else
Martin v. Löwis11437992002-04-12 09:54:03 +000015455 ac_check_lib_save_LIBS=$LIBS
Guido van Rossumad678af1998-10-02 14:42:15 +000015456LIBS="-lnet $LIBS $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000015457cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015458/* confdefs.h. */
15459_ACEOF
15460cat confdefs.h >>conftest.$ac_ext
15461cat >>conftest.$ac_ext <<_ACEOF
15462/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015463
Martin v. Löwiseba40652007-08-30 20:10:57 +000015464/* Override any GCC internal prototype to avoid an error.
15465 Use char because int might match the return type of a GCC
15466 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015467#ifdef __cplusplus
15468extern "C"
15469#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015470char socket ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015471int
15472main ()
15473{
Martin v. Löwiseba40652007-08-30 20:10:57 +000015474return socket ();
Martin v. Löwis11437992002-04-12 09:54:03 +000015475 ;
15476 return 0;
15477}
15478_ACEOF
15479rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015480if { (ac_try="$ac_link"
15481case "(($ac_try" in
15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15484esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15486$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015487 (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
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015492 $as_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
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015496 } && test -s conftest$ac_exeext && {
15497 test "$cross_compiling" = yes ||
15498 $as_test_x conftest$ac_exeext
15499 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015500 ac_cv_lib_net_socket=yes
Guido van Rossumad678af1998-10-02 14:42:15 +000015501else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015502 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015503sed 's/^/| /' conftest.$ac_ext >&5
15504
Martin v. Löwiseba40652007-08-30 20:10:57 +000015505 ac_cv_lib_net_socket=no
Guido van Rossumad678af1998-10-02 14:42:15 +000015506fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015507
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015508rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000015509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000015510 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000015511LIBS=$ac_check_lib_save_LIBS
Guido van Rossumad678af1998-10-02 14:42:15 +000015512fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015513{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15514$as_echo "$ac_cv_lib_net_socket" >&6; }
15515if test "x$ac_cv_lib_net_socket" = x""yes; then
Guido van Rossumec95c7b1998-08-04 17:59:56 +000015516 LIBS="-lnet $LIBS"
Guido van Rossumec95c7b1998-08-04 17:59:56 +000015517fi
15518 # BeOS
15519;;
15520esac
Guido van Rossum70c7f481998-03-26 18:44:10 +000015521
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015522{ $as_echo "$as_me:$LINENO: checking for --with-libs" >&5
15523$as_echo_n "checking for --with-libs... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015524
Martin v. Löwiseba40652007-08-30 20:10:57 +000015525# Check whether --with-libs was given.
Guido van Rossuma68acba1996-07-31 17:36:39 +000015526if test "${with_libs+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015527 withval=$with_libs;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015528{ $as_echo "$as_me:$LINENO: result: $withval" >&5
15529$as_echo "$withval" >&6; }
Guido van Rossuma68acba1996-07-31 17:36:39 +000015530LIBS="$withval $LIBS"
15531
15532else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015533 { $as_echo "$as_me:$LINENO: result: no" >&5
15534$as_echo "no" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000015535fi
15536
Guido van Rossum7f43da71994-08-01 12:15:30 +000015537
Martin v. Löwis9176fc12006-04-11 11:12:43 +000015538# Check for use of the system libffi library
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015539{ $as_echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
15540$as_echo_n "checking for --with-system-ffi... " >&6; }
Martin v. Löwis9176fc12006-04-11 11:12:43 +000015541
Martin v. Löwiseba40652007-08-30 20:10:57 +000015542# Check whether --with-system_ffi was given.
Martin v. Löwis9176fc12006-04-11 11:12:43 +000015543if test "${with_system_ffi+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015544 withval=$with_system_ffi;
15545fi
Martin v. Löwis9176fc12006-04-11 11:12:43 +000015546
Martin v. Löwis9176fc12006-04-11 11:12:43 +000015547
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015548{ $as_echo "$as_me:$LINENO: result: $with_system_ffi" >&5
15549$as_echo "$with_system_ffi" >&6; }
Martin v. Löwis9176fc12006-04-11 11:12:43 +000015550
Benjamin Peterson867475c2009-04-29 20:36:25 +000015551# Check for --with-dbmliborder
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015552{ $as_echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
15553$as_echo_n "checking for --with-dbmliborder... " >&6; }
Benjamin Peterson867475c2009-04-29 20:36:25 +000015554
15555# Check whether --with-dbmliborder was given.
15556if test "${with_dbmliborder+set}" = set; then
15557 withval=$with_dbmliborder;
15558if test x$with_dbmliborder = xyes
15559then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015560{ { $as_echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15561$as_echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
Benjamin Peterson867475c2009-04-29 20:36:25 +000015562 { (exit 1); exit 1; }; }
15563else
15564 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
15565 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
15566 then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015567 { { $as_echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15568$as_echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
Benjamin Peterson867475c2009-04-29 20:36:25 +000015569 { (exit 1); exit 1; }; }
15570 fi
15571 done
15572fi
15573fi
15574
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015575{ $as_echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
15576$as_echo "$with_dbmliborder" >&6; }
Benjamin Peterson867475c2009-04-29 20:36:25 +000015577
Martin v. Löwis3e2c6322002-10-29 10:07:43 +000015578# Determine if signalmodule should be used.
Neil Schemenauerd32c2492001-01-24 17:25:28 +000015579
15580
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015581{ $as_echo "$as_me:$LINENO: checking for --with-signal-module" >&5
15582$as_echo_n "checking for --with-signal-module... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015583
Martin v. Löwiseba40652007-08-30 20:10:57 +000015584# Check whether --with-signal-module was given.
Neil Schemenauerd32c2492001-01-24 17:25:28 +000015585if test "${with_signal_module+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015586 withval=$with_signal_module;
15587fi
Neil Schemenauerd32c2492001-01-24 17:25:28 +000015588
15589
15590if test -z "$with_signal_module"
15591then with_signal_module="yes"
15592fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015593{ $as_echo "$as_me:$LINENO: result: $with_signal_module" >&5
15594$as_echo "$with_signal_module" >&6; }
Neil Schemenauerd32c2492001-01-24 17:25:28 +000015595
15596if test "${with_signal_module}" = "yes"; then
15597 USE_SIGNAL_MODULE=""
15598 SIGNAL_OBJS=""
15599else
15600 USE_SIGNAL_MODULE="#"
15601 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
15602fi
15603
Guido van Rossum3d15bd82001-01-10 18:53:48 +000015604# This is used to generate Setup.config
Guido van Rossum009f7871997-12-04 00:51:42 +000015605
Barry Warsawc0d24d82000-06-29 16:12:00 +000015606USE_THREAD_MODULE=""
Guido van Rossum009f7871997-12-04 00:51:42 +000015607
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015608{ $as_echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
15609$as_echo_n "checking for --with-dec-threads... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015610
Guido van Rossumec2f0731997-01-22 20:54:01 +000015611
Martin v. Löwiseba40652007-08-30 20:10:57 +000015612# Check whether --with-dec-threads was given.
Guido van Rossumec2f0731997-01-22 20:54:01 +000015613if test "${with_dec_threads+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015614 withval=$with_dec_threads;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015615{ $as_echo "$as_me:$LINENO: result: $withval" >&5
15616$as_echo "$withval" >&6; }
Guido van Rossumec2f0731997-01-22 20:54:01 +000015617LDLAST=-threads
Guido van Rossumf78abae1997-01-21 22:02:36 +000015618if test "${with_thread+set}" != set; then
Guido van Rossumec2f0731997-01-22 20:54:01 +000015619 with_thread="$withval";
Guido van Rossumf78abae1997-01-21 22:02:36 +000015620fi
Guido van Rossumec2f0731997-01-22 20:54:01 +000015621else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015622 { $as_echo "$as_me:$LINENO: result: no" >&5
15623$as_echo "no" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000015624fi
15625
Martin v. Löwis11437992002-04-12 09:54:03 +000015626
15627# Templates for things AC_DEFINEd more than once.
15628# For a single AC_DEFINE, no template is needed.
Guido van Rossumec2f0731997-01-22 20:54:01 +000015629
15630
Martin v. Löwis11437992002-04-12 09:54:03 +000015631
15632
15633
15634
15635
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015636{ $as_echo "$as_me:$LINENO: checking for --with-threads" >&5
15637$as_echo_n "checking for --with-threads... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015638
Martin v. Löwiseba40652007-08-30 20:10:57 +000015639# Check whether --with-threads was given.
Guido van Rossumec2f0731997-01-22 20:54:01 +000015640if test "${with_threads+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015641 withval=$with_threads;
15642fi
Guido van Rossumec2f0731997-01-22 20:54:01 +000015643
15644
Barry Warsawc0d24d82000-06-29 16:12:00 +000015645# --with-thread is deprecated, but check for it anyway
Martin v. Löwis11437992002-04-12 09:54:03 +000015646
Martin v. Löwiseba40652007-08-30 20:10:57 +000015647# Check whether --with-thread was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000015648if test "${with_thread+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000015649 withval=$with_thread; with_threads=$with_thread
15650fi
15651
Barry Warsawc0d24d82000-06-29 16:12:00 +000015652
15653if test -z "$with_threads"
15654then with_threads="yes"
15655fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015656{ $as_echo "$as_me:$LINENO: result: $with_threads" >&5
15657$as_echo "$with_threads" >&6; }
Barry Warsawc0d24d82000-06-29 16:12:00 +000015658
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000015659
Barry Warsawc0d24d82000-06-29 16:12:00 +000015660if test "$with_threads" = "no"
15661then
15662 USE_THREAD_MODULE="#"
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000015663elif test "$ac_cv_pthread_is_default" = yes
15664then
Martin v. Löwis11437992002-04-12 09:54:03 +000015665 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000015666#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015667_ACEOF
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000015668
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000015669 # Defining _REENTRANT on system with POSIX threads should not hurt.
Martin v. Löwis11437992002-04-12 09:54:03 +000015670 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000015671#define _REENTRANT 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015672_ACEOF
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000015673
15674 posix_threads=yes
Martin v. Löwis11437992002-04-12 09:54:03 +000015675 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:41 +000015676elif test "$ac_cv_kpthread" = "yes"
15677then
15678 CC="$CC -Kpthread"
Martin v. Löwis519adae2003-09-20 10:47:47 +000015679 if test "$ac_cv_cxx_thread" = "yes"; then
15680 CXX="$CXX -Kpthread"
15681 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000015682 cat >>confdefs.h <<\_ACEOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +000015683#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015684_ACEOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +000015685
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000015686 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000015687 THREADOBJ="Python/thread.o"
Martin v. Löwis5f433f02003-05-05 05:05:30 +000015688elif test "$ac_cv_kthread" = "yes"
15689then
15690 CC="$CC -Kthread"
Martin v. Löwis519adae2003-09-20 10:47:47 +000015691 if test "$ac_cv_cxx_thread" = "yes"; then
15692 CXX="$CXX -Kthread"
15693 fi
Martin v. Löwis5f433f02003-05-05 05:05:30 +000015694 cat >>confdefs.h <<\_ACEOF
15695#define WITH_THREAD 1
15696_ACEOF
15697
15698 posix_threads=yes
15699 THREADOBJ="Python/thread.o"
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015700elif test "$ac_cv_pthread" = "yes"
15701then
15702 CC="$CC -pthread"
Martin v. Löwis519adae2003-09-20 10:47:47 +000015703 if test "$ac_cv_cxx_thread" = "yes"; then
15704 CXX="$CXX -pthread"
15705 fi
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000015706 cat >>confdefs.h <<\_ACEOF
15707#define WITH_THREAD 1
15708_ACEOF
15709
15710 posix_threads=yes
15711 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:41 +000015712else
15713 if test ! -z "$with_threads" -a -d "$with_threads"
15714 then LDFLAGS="$LDFLAGS -L$with_threads"
15715 fi
15716 if test ! -z "$withval" -a -d "$withval"
15717 then LDFLAGS="$LDFLAGS -L$withval"
15718 fi
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000015719
15720 # According to the POSIX spec, a pthreads implementation must
Matthias Klosea2542be2004-08-16 11:35:51 +000015721 # define _POSIX_THREADS in unistd.h. Some apparently don't
15722 # (e.g. gnu pth with pthread emulation)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015723 { $as_echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
15724$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015725 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015726/* confdefs.h. */
15727_ACEOF
15728cat confdefs.h >>conftest.$ac_ext
15729cat >>conftest.$ac_ext <<_ACEOF
15730/* end confdefs.h. */
Neal Norwitz6eb37f02003-02-23 23:28:15 +000015731
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000015732#include <unistd.h>
Neal Norwitz6eb37f02003-02-23 23:28:15 +000015733#ifdef _POSIX_THREADS
15734yes
15735#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015736
15737_ACEOF
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000015738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000015739 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000015740 unistd_defines_pthreads=yes
15741else
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000015742 unistd_defines_pthreads=no
15743fi
15744rm -f conftest*
15745
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015746 { $as_echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
15747$as_echo "$unistd_defines_pthreads" >&6; }
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000015748
Martin v. Löwis11437992002-04-12 09:54:03 +000015749 cat >>confdefs.h <<\_ACEOF
Guido van Rossum9caf77a1996-08-01 00:52:26 +000015750#define _REENTRANT 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015751_ACEOF
Guido van Rossum9caf77a1996-08-01 00:52:26 +000015752
Martin v. Löwis11437992002-04-12 09:54:03 +000015753 if test "${ac_cv_header_cthreads_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015754 { $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5
15755$as_echo_n "checking for cthreads.h... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015756if test "${ac_cv_header_cthreads_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015757 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +000015758fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015759{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15760$as_echo "$ac_cv_header_cthreads_h" >&6; }
Guido van Rossum7b3853f1996-07-30 18:09:35 +000015761else
Martin v. Löwis11437992002-04-12 09:54:03 +000015762 # Is the header compilable?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015763{ $as_echo "$as_me:$LINENO: checking cthreads.h usability" >&5
15764$as_echo_n "checking cthreads.h usability... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015765cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015766/* confdefs.h. */
15767_ACEOF
15768cat confdefs.h >>conftest.$ac_ext
15769cat >>conftest.$ac_ext <<_ACEOF
15770/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015771$ac_includes_default
15772#include <cthreads.h>
15773_ACEOF
15774rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015775if { (ac_try="$ac_compile"
15776case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15779esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15781$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015782 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015783 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015784 grep -v '^ *+' conftest.er1 >conftest.err
15785 rm -f conftest.er1
15786 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015788 (exit $ac_status); } && {
15789 test -z "$ac_c_werror_flag" ||
15790 test ! -s conftest.err
15791 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015792 ac_header_compiler=yes
15793else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015794 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015795sed 's/^/| /' conftest.$ac_ext >&5
15796
Martin v. Löwiseba40652007-08-30 20:10:57 +000015797 ac_header_compiler=no
Martin v. Löwis11437992002-04-12 09:54:03 +000015798fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015799
15800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015801{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15802$as_echo "$ac_header_compiler" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015803
15804# Is the header present?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015805{ $as_echo "$as_me:$LINENO: checking cthreads.h presence" >&5
15806$as_echo_n "checking cthreads.h presence... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015807cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015808/* confdefs.h. */
15809_ACEOF
15810cat confdefs.h >>conftest.$ac_ext
15811cat >>conftest.$ac_ext <<_ACEOF
15812/* end confdefs.h. */
Martin v. Löwisa6e97582002-01-01 18:41:33 +000015813#include <cthreads.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000015814_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000015815if { (ac_try="$ac_cpp conftest.$ac_ext"
15816case "(($ac_try" in
15817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818 *) ac_try_echo=$ac_try;;
15819esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15821$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015823 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000015824 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +000015825 rm -f conftest.er1
15826 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015828 (exit $ac_status); } >/dev/null && {
15829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15830 test ! -s conftest.err
15831 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015832 ac_header_preproc=yes
15833else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015834 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015835sed 's/^/| /' conftest.$ac_ext >&5
15836
Martin v. Löwis11437992002-04-12 09:54:03 +000015837 ac_header_preproc=no
Guido van Rossum7b3853f1996-07-30 18:09:35 +000015838fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015839
Martin v. Löwis11437992002-04-12 09:54:03 +000015840rm -f conftest.err conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015841{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15842$as_echo "$ac_header_preproc" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015843
15844# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15846 yes:no: )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015847 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15848$as_echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15849 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
15850$as_echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000015851 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000015852 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000015853 no:yes:* )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015854 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15855$as_echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15856 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15857$as_echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15858 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15859$as_echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15860 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15861$as_echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15862 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15863$as_echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15864 { $as_echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15865$as_echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000015866 ( cat <<\_ASBOX
Georg Brandl464432d2009-05-20 18:24:08 +000015867## -------------------------------------- ##
15868## Report this to http://bugs.python.org/ ##
15869## -------------------------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +000015870_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +000015871 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +000015872 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000015873esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015874{ $as_echo "$as_me:$LINENO: checking for cthreads.h" >&5
15875$as_echo_n "checking for cthreads.h... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015876if test "${ac_cv_header_cthreads_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015877 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +000015878else
15879 ac_cv_header_cthreads_h=$ac_header_preproc
Guido van Rossum7b3853f1996-07-30 18:09:35 +000015880fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015881{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15882$as_echo "$ac_cv_header_cthreads_h" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015883
15884fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015885if test "x$ac_cv_header_cthreads_h" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015886 cat >>confdefs.h <<\_ACEOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +000015887#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015888_ACEOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +000015889
Martin v. Löwis11437992002-04-12 09:54:03 +000015890 cat >>confdefs.h <<\_ACEOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +000015891#define C_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015892_ACEOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +000015893
Martin v. Löwis11437992002-04-12 09:54:03 +000015894
15895cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000015896#define HURD_C_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015897_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000015898
15899 LIBS="$LIBS -lthreads"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000015900 THREADOBJ="Python/thread.o"
Martin v. Löwisa6e97582002-01-01 18:41:33 +000015901else
Martin v. Löwisa6e97582002-01-01 18:41:33 +000015902
Martin v. Löwis11437992002-04-12 09:54:03 +000015903 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015904 { $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15905$as_echo_n "checking for mach/cthreads.h... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015906if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015907 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +000015908fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015909{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15910$as_echo "$ac_cv_header_mach_cthreads_h" >&6; }
Martin v. Löwisa6e97582002-01-01 18:41:33 +000015911else
Martin v. Löwis11437992002-04-12 09:54:03 +000015912 # Is the header compilable?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015913{ $as_echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
15914$as_echo_n "checking mach/cthreads.h usability... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015915cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015916/* confdefs.h. */
15917_ACEOF
15918cat confdefs.h >>conftest.$ac_ext
15919cat >>conftest.$ac_ext <<_ACEOF
15920/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015921$ac_includes_default
15922#include <mach/cthreads.h>
15923_ACEOF
15924rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000015925if { (ac_try="$ac_compile"
15926case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15929esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15931$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015932 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015933 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015934 grep -v '^ *+' conftest.er1 >conftest.err
15935 rm -f conftest.er1
15936 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015938 (exit $ac_status); } && {
15939 test -z "$ac_c_werror_flag" ||
15940 test ! -s conftest.err
15941 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015942 ac_header_compiler=yes
15943else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015944 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015945sed 's/^/| /' conftest.$ac_ext >&5
15946
Martin v. Löwiseba40652007-08-30 20:10:57 +000015947 ac_header_compiler=no
Martin v. Löwis11437992002-04-12 09:54:03 +000015948fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015949
15950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015951{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15952$as_echo "$ac_header_compiler" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015953
15954# Is the header present?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015955{ $as_echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
15956$as_echo_n "checking mach/cthreads.h presence... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015957cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000015958/* confdefs.h. */
15959_ACEOF
15960cat confdefs.h >>conftest.$ac_ext
15961cat >>conftest.$ac_ext <<_ACEOF
15962/* end confdefs.h. */
Martin v. Löwisa6e97582002-01-01 18:41:33 +000015963#include <mach/cthreads.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000015964_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000015965if { (ac_try="$ac_cpp conftest.$ac_ext"
15966case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15969esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15971$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000015973 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000015974 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +000015975 rm -f conftest.er1
15976 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000015978 (exit $ac_status); } >/dev/null && {
15979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15980 test ! -s conftest.err
15981 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015982 ac_header_preproc=yes
15983else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015984 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000015985sed 's/^/| /' conftest.$ac_ext >&5
15986
Martin v. Löwis11437992002-04-12 09:54:03 +000015987 ac_header_preproc=no
Martin v. Löwisa6e97582002-01-01 18:41:33 +000015988fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000015989
Martin v. Löwis11437992002-04-12 09:54:03 +000015990rm -f conftest.err conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015991{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15992$as_echo "$ac_header_preproc" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000015993
15994# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +000015995case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15996 yes:no: )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000015997 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15998$as_echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15999 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
16000$as_echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000016001 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000016002 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000016003 no:yes:* )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016004 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
16005$as_echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
16006 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
16007$as_echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
16008 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
16009$as_echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
16010 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
16011$as_echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16012 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
16013$as_echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
16014 { $as_echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
16015$as_echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000016016 ( cat <<\_ASBOX
Georg Brandl464432d2009-05-20 18:24:08 +000016017## -------------------------------------- ##
16018## Report this to http://bugs.python.org/ ##
16019## -------------------------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +000016020_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +000016021 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +000016022 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000016023esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016024{ $as_echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
16025$as_echo_n "checking for mach/cthreads.h... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016026if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016027 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +000016028else
16029 ac_cv_header_mach_cthreads_h=$ac_header_preproc
Martin v. Löwisa6e97582002-01-01 18:41:33 +000016030fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016031{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
16032$as_echo "$ac_cv_header_mach_cthreads_h" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016033
16034fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016035if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016036 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000016037#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016038_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000016039
Martin v. Löwis11437992002-04-12 09:54:03 +000016040 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000016041#define C_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016042_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000016043
Martin v. Löwis11437992002-04-12 09:54:03 +000016044
16045cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000016046#define MACH_C_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016047_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +000016048
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000016049 THREADOBJ="Python/thread.o"
Guido van Rossum7b3853f1996-07-30 18:09:35 +000016050else
Guido van Rossum7b3853f1996-07-30 18:09:35 +000016051
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016052 { $as_echo "$as_me:$LINENO: checking for --with-pth" >&5
16053$as_echo_n "checking for --with-pth... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016054
Martin v. Löwiseba40652007-08-30 20:10:57 +000016055# Check whether --with-pth was given.
Guido van Rossum9e8181b2000-09-19 00:46:46 +000016056if test "${with_pth+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016057 withval=$with_pth; { $as_echo "$as_me:$LINENO: result: $withval" >&5
16058$as_echo "$withval" >&6; }
Martin v. Löwis3e2c6322002-10-29 10:07:43 +000016059 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000016060#define WITH_THREAD 1
16061_ACEOF
16062
16063
16064cat >>confdefs.h <<\_ACEOF
Guido van Rossum9e8181b2000-09-19 00:46:46 +000016065#define HAVE_PTH 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016066_ACEOF
Guido van Rossum9e8181b2000-09-19 00:46:46 +000016067
Martin v. Löwis3e2c6322002-10-29 10:07:43 +000016068 LIBS="-lpth $LIBS"
16069 THREADOBJ="Python/thread.o"
Guido van Rossum9e8181b2000-09-19 00:46:46 +000016070else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016071 { $as_echo "$as_me:$LINENO: result: no" >&5
16072$as_echo "no" >&6; }
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000016073
16074 # Just looking for pthread_create in libpthread is not enough:
16075 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16076 # So we really have to include pthread.h, and then link.
16077 _libs=$LIBS
16078 LIBS="$LIBS -lpthread"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016079 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16080$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016081 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016082/* confdefs.h. */
16083_ACEOF
16084cat confdefs.h >>conftest.$ac_ext
16085cat >>conftest.$ac_ext <<_ACEOF
16086/* end confdefs.h. */
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000016087#include <pthread.h>
Guido van Rossum02a1c402000-02-25 19:26:31 +000016088
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000016089void * start_routine (void *arg) { exit (0); }
Martin v. Löwis11437992002-04-12 09:54:03 +000016090int
16091main ()
16092{
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000016093
16094pthread_create (NULL, NULL, start_routine, NULL)
Martin v. Löwis11437992002-04-12 09:54:03 +000016095 ;
16096 return 0;
16097}
16098_ACEOF
16099rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016100if { (ac_try="$ac_link"
16101case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16104esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16106$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016107 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000016108 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016109 grep -v '^ *+' conftest.er1 >conftest.err
16110 rm -f conftest.er1
16111 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016113 (exit $ac_status); } && {
16114 test -z "$ac_c_werror_flag" ||
16115 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016116 } && test -s conftest$ac_exeext && {
16117 test "$cross_compiling" = yes ||
16118 $as_test_x conftest$ac_exeext
16119 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016120
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016121 { $as_echo "$as_me:$LINENO: result: yes" >&5
16122$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016123 cat >>confdefs.h <<\_ACEOF
Guido van Rossum02a1c402000-02-25 19:26:31 +000016124#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016125_ACEOF
Guido van Rossum02a1c402000-02-25 19:26:31 +000016126
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000016127 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000016128 THREADOBJ="Python/thread.o"
Guido van Rossum02a1c402000-02-25 19:26:31 +000016129else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016130 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016131sed 's/^/| /' conftest.$ac_ext >&5
16132
Martin v. Löwis11437992002-04-12 09:54:03 +000016133
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000016134 LIBS=$_libs
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016135 { $as_echo "$as_me:$LINENO: checking for pthread_detach" >&5
16136$as_echo_n "checking for pthread_detach... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016137if test "${ac_cv_func_pthread_detach+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016138 $as_echo_n "(cached) " >&6
Guido van Rossumad678af1998-10-02 14:42:15 +000016139else
Martin v. Löwis11437992002-04-12 09:54:03 +000016140 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016141/* confdefs.h. */
16142_ACEOF
16143cat confdefs.h >>conftest.$ac_ext
16144cat >>conftest.$ac_ext <<_ACEOF
16145/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000016146/* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
16147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16148#define pthread_detach innocuous_pthread_detach
16149
Guido van Rossumad678af1998-10-02 14:42:15 +000016150/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000016151 which can conflict with char pthread_detach (); below.
16152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000016153 <limits.h> exists even on freestanding compilers. */
16154
16155#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000016156# include <limits.h>
16157#else
16158# include <assert.h>
16159#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000016160
16161#undef pthread_detach
16162
Martin v. Löwiseba40652007-08-30 20:10:57 +000016163/* Override any GCC internal prototype to avoid an error.
16164 Use char because int might match the return type of a GCC
16165 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000016166#ifdef __cplusplus
16167extern "C"
16168#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000016169char pthread_detach ();
Guido van Rossumad678af1998-10-02 14:42:15 +000016170/* The GNU C library defines this for functions which it implements
16171 to always fail with ENOSYS. Some functions are actually named
16172 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000016173#if defined __stub_pthread_detach || defined __stub___pthread_detach
Guido van Rossumad678af1998-10-02 14:42:15 +000016174choke me
Guido van Rossumad678af1998-10-02 14:42:15 +000016175#endif
16176
Skip Montanaro6dead952003-09-25 14:50:04 +000016177int
16178main ()
16179{
Martin v. Löwiseba40652007-08-30 20:10:57 +000016180return pthread_detach ();
Martin v. Löwis11437992002-04-12 09:54:03 +000016181 ;
16182 return 0;
16183}
16184_ACEOF
16185rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016186if { (ac_try="$ac_link"
16187case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16190esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16192$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016193 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000016194 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016195 grep -v '^ *+' conftest.er1 >conftest.err
16196 rm -f conftest.er1
16197 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016199 (exit $ac_status); } && {
16200 test -z "$ac_c_werror_flag" ||
16201 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016202 } && test -s conftest$ac_exeext && {
16203 test "$cross_compiling" = yes ||
16204 $as_test_x conftest$ac_exeext
16205 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016206 ac_cv_func_pthread_detach=yes
Guido van Rossumad678af1998-10-02 14:42:15 +000016207else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016208 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016209sed 's/^/| /' conftest.$ac_ext >&5
16210
Martin v. Löwiseba40652007-08-30 20:10:57 +000016211 ac_cv_func_pthread_detach=no
Guido van Rossumad678af1998-10-02 14:42:15 +000016212fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016213
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016214rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000016215rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000016216 conftest$ac_exeext conftest.$ac_ext
Guido van Rossumad678af1998-10-02 14:42:15 +000016217fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016218{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
16219$as_echo "$ac_cv_func_pthread_detach" >&6; }
16220if test "x$ac_cv_func_pthread_detach" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016221 cat >>confdefs.h <<\_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +000016222#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016223_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +000016224
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000016225 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000016226 THREADOBJ="Python/thread.o"
Guido van Rossumad678af1998-10-02 14:42:15 +000016227else
Guido van Rossumad678af1998-10-02 14:42:15 +000016228
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016229 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016230 { $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16231$as_echo_n "checking for atheos/threads.h... " >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016232if test "${ac_cv_header_atheos_threads_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016233 $as_echo_n "(cached) " >&6
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016234fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016235{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16236$as_echo "$ac_cv_header_atheos_threads_h" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016237else
16238 # Is the header compilable?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016239{ $as_echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
16240$as_echo_n "checking atheos/threads.h usability... " >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016241cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016242/* confdefs.h. */
16243_ACEOF
16244cat confdefs.h >>conftest.$ac_ext
16245cat >>conftest.$ac_ext <<_ACEOF
16246/* end confdefs.h. */
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016247$ac_includes_default
16248#include <atheos/threads.h>
16249_ACEOF
16250rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016251if { (ac_try="$ac_compile"
16252case "(($ac_try" in
16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16255esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16257$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016258 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016259 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016260 grep -v '^ *+' conftest.er1 >conftest.err
16261 rm -f conftest.er1
16262 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016264 (exit $ac_status); } && {
16265 test -z "$ac_c_werror_flag" ||
16266 test ! -s conftest.err
16267 } && test -s conftest.$ac_objext; then
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016268 ac_header_compiler=yes
16269else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016270 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016271sed 's/^/| /' conftest.$ac_ext >&5
16272
Martin v. Löwiseba40652007-08-30 20:10:57 +000016273 ac_header_compiler=no
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016274fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016275
16276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016277{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16278$as_echo "$ac_header_compiler" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016279
16280# Is the header present?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016281{ $as_echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
16282$as_echo_n "checking atheos/threads.h presence... " >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016283cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016284/* confdefs.h. */
16285_ACEOF
16286cat confdefs.h >>conftest.$ac_ext
16287cat >>conftest.$ac_ext <<_ACEOF
16288/* end confdefs.h. */
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016289#include <atheos/threads.h>
16290_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000016291if { (ac_try="$ac_cpp conftest.$ac_ext"
16292case "(($ac_try" in
16293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16294 *) ac_try_echo=$ac_try;;
16295esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16297$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016299 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000016300 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016301 rm -f conftest.er1
16302 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016304 (exit $ac_status); } >/dev/null && {
16305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16306 test ! -s conftest.err
16307 }; then
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016308 ac_header_preproc=yes
16309else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016310 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016311sed 's/^/| /' conftest.$ac_ext >&5
16312
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016313 ac_header_preproc=no
16314fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016315
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016316rm -f conftest.err conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016317{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16318$as_echo "$ac_header_preproc" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016319
16320# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016321case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16322 yes:no: )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016323 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16324$as_echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16325 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
16326$as_echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000016327 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000016328 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000016329 no:yes:* )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016330 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
16331$as_echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
16332 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
16333$as_echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
16334 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
16335$as_echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
16336 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
16337$as_echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16338 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
16339$as_echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
16340 { $as_echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
16341$as_echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000016342 ( cat <<\_ASBOX
Georg Brandl464432d2009-05-20 18:24:08 +000016343## -------------------------------------- ##
16344## Report this to http://bugs.python.org/ ##
16345## -------------------------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +000016346_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +000016347 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +000016348 ;;
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016349esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016350{ $as_echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16351$as_echo_n "checking for atheos/threads.h... " >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016352if test "${ac_cv_header_atheos_threads_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016353 $as_echo_n "(cached) " >&6
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016354else
16355 ac_cv_header_atheos_threads_h=$ac_header_preproc
16356fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016357{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16358$as_echo "$ac_cv_header_atheos_threads_h" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016359
16360fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016361if test "x$ac_cv_header_atheos_threads_h" = x""yes; then
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016362 cat >>confdefs.h <<\_ACEOF
16363#define WITH_THREAD 1
16364_ACEOF
16365
16366
16367cat >>confdefs.h <<\_ACEOF
16368#define ATHEOS_THREADS 1
16369_ACEOF
16370
16371 THREADOBJ="Python/thread.o"
16372else
16373
Martin v. Löwis11437992002-04-12 09:54:03 +000016374 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016375 { $as_echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16376$as_echo_n "checking for kernel/OS.h... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016377if test "${ac_cv_header_kernel_OS_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016378 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +000016379fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016380{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16381$as_echo "$ac_cv_header_kernel_OS_h" >&6; }
Guido van Rossumec95c7b1998-08-04 17:59:56 +000016382else
Martin v. Löwis11437992002-04-12 09:54:03 +000016383 # Is the header compilable?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016384{ $as_echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
16385$as_echo_n "checking kernel/OS.h usability... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016386cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016387/* confdefs.h. */
16388_ACEOF
16389cat confdefs.h >>conftest.$ac_ext
16390cat >>conftest.$ac_ext <<_ACEOF
16391/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000016392$ac_includes_default
16393#include <kernel/OS.h>
16394_ACEOF
16395rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016396if { (ac_try="$ac_compile"
16397case "(($ac_try" in
16398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399 *) ac_try_echo=$ac_try;;
16400esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16402$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016403 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000016404 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016409 (exit $ac_status); } && {
16410 test -z "$ac_c_werror_flag" ||
16411 test ! -s conftest.err
16412 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016413 ac_header_compiler=yes
16414else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016415 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016416sed 's/^/| /' conftest.$ac_ext >&5
16417
Martin v. Löwiseba40652007-08-30 20:10:57 +000016418 ac_header_compiler=no
Martin v. Löwis11437992002-04-12 09:54:03 +000016419fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016420
16421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016422{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16423$as_echo "$ac_header_compiler" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016424
16425# Is the header present?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016426{ $as_echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
16427$as_echo_n "checking kernel/OS.h presence... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016428cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016429/* confdefs.h. */
16430_ACEOF
16431cat confdefs.h >>conftest.$ac_ext
16432cat >>conftest.$ac_ext <<_ACEOF
16433/* end confdefs.h. */
Guido van Rossumec95c7b1998-08-04 17:59:56 +000016434#include <kernel/OS.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000016435_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000016436if { (ac_try="$ac_cpp conftest.$ac_ext"
16437case "(($ac_try" in
16438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439 *) ac_try_echo=$ac_try;;
16440esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16442$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000016444 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000016445 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +000016446 rm -f conftest.er1
16447 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016449 (exit $ac_status); } >/dev/null && {
16450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16451 test ! -s conftest.err
16452 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016453 ac_header_preproc=yes
16454else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016455 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016456sed 's/^/| /' conftest.$ac_ext >&5
16457
Martin v. Löwis11437992002-04-12 09:54:03 +000016458 ac_header_preproc=no
Guido van Rossumec95c7b1998-08-04 17:59:56 +000016459fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016460
Martin v. Löwis11437992002-04-12 09:54:03 +000016461rm -f conftest.err conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016462{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16463$as_echo "$ac_header_preproc" >&6; }
Guido van Rossumec95c7b1998-08-04 17:59:56 +000016464
Martin v. Löwis11437992002-04-12 09:54:03 +000016465# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016466case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16467 yes:no: )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016468 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
16469$as_echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16470 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
16471$as_echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000016472 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000016473 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000016474 no:yes:* )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016475 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
16476$as_echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
16477 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
16478$as_echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
16479 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
16480$as_echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
16481 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
16482$as_echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
16483 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
16484$as_echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
16485 { $as_echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
16486$as_echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000016487 ( cat <<\_ASBOX
Georg Brandl464432d2009-05-20 18:24:08 +000016488## -------------------------------------- ##
16489## Report this to http://bugs.python.org/ ##
16490## -------------------------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +000016491_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +000016492 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +000016493 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000016494esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016495{ $as_echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16496$as_echo_n "checking for kernel/OS.h... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016497if test "${ac_cv_header_kernel_OS_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016498 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +000016499else
16500 ac_cv_header_kernel_OS_h=$ac_header_preproc
16501fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016502{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16503$as_echo "$ac_cv_header_kernel_OS_h" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016504
16505fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016506if test "x$ac_cv_header_kernel_OS_h" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016507 cat >>confdefs.h <<\_ACEOF
16508#define WITH_THREAD 1
16509_ACEOF
16510
16511
16512cat >>confdefs.h <<\_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +000016513#define BEOS_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016514_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +000016515
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000016516 THREADOBJ="Python/thread.o"
Guido van Rossumec95c7b1998-08-04 17:59:56 +000016517else
Guido van Rossumec95c7b1998-08-04 17:59:56 +000016518
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016519 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16520$as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016521if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016522 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016523else
Martin v. Löwis11437992002-04-12 09:54:03 +000016524 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000016525LIBS="-lpthreads $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000016526cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016527/* confdefs.h. */
16528_ACEOF
16529cat confdefs.h >>conftest.$ac_ext
16530cat >>conftest.$ac_ext <<_ACEOF
16531/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000016532
Martin v. Löwiseba40652007-08-30 20:10:57 +000016533/* Override any GCC internal prototype to avoid an error.
16534 Use char because int might match the return type of a GCC
16535 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000016536#ifdef __cplusplus
16537extern "C"
16538#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000016539char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000016540int
16541main ()
16542{
Martin v. Löwiseba40652007-08-30 20:10:57 +000016543return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000016544 ;
16545 return 0;
16546}
16547_ACEOF
16548rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016549if { (ac_try="$ac_link"
16550case "(($ac_try" in
16551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16552 *) ac_try_echo=$ac_try;;
16553esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16555$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016556 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000016557 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016558 grep -v '^ *+' conftest.er1 >conftest.err
16559 rm -f conftest.er1
16560 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016562 (exit $ac_status); } && {
16563 test -z "$ac_c_werror_flag" ||
16564 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016565 } && test -s conftest$ac_exeext && {
16566 test "$cross_compiling" = yes ||
16567 $as_test_x conftest$ac_exeext
16568 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016569 ac_cv_lib_pthreads_pthread_create=yes
Greg Steinadf63d62000-07-05 10:38:09 +000016570else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016571 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016572sed 's/^/| /' conftest.$ac_ext >&5
16573
Martin v. Löwiseba40652007-08-30 20:10:57 +000016574 ac_cv_lib_pthreads_pthread_create=no
Greg Steinadf63d62000-07-05 10:38:09 +000016575fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016576
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016577rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000016578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000016579 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000016580LIBS=$ac_check_lib_save_LIBS
Greg Steinadf63d62000-07-05 10:38:09 +000016581fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016582{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
16583$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
16584if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016585 cat >>confdefs.h <<\_ACEOF
Greg Steinadf63d62000-07-05 10:38:09 +000016586#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016587_ACEOF
Greg Steinadf63d62000-07-05 10:38:09 +000016588
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000016589 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +000016590 LIBS="$LIBS -lpthreads"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000016591 THREADOBJ="Python/thread.o"
Greg Steinadf63d62000-07-05 10:38:09 +000016592else
Greg Steinadf63d62000-07-05 10:38:09 +000016593
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016594 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
16595$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016596if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016597 $as_echo_n "(cached) " >&6
Greg Steinadf63d62000-07-05 10:38:09 +000016598else
Martin v. Löwis11437992002-04-12 09:54:03 +000016599 ac_check_lib_save_LIBS=$LIBS
Greg Steinadf63d62000-07-05 10:38:09 +000016600LIBS="-lc_r $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000016601cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016602/* confdefs.h. */
16603_ACEOF
16604cat confdefs.h >>conftest.$ac_ext
16605cat >>conftest.$ac_ext <<_ACEOF
16606/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000016607
Martin v. Löwiseba40652007-08-30 20:10:57 +000016608/* Override any GCC internal prototype to avoid an error.
16609 Use char because int might match the return type of a GCC
16610 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000016611#ifdef __cplusplus
16612extern "C"
16613#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000016614char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000016615int
16616main ()
16617{
Martin v. Löwiseba40652007-08-30 20:10:57 +000016618return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000016619 ;
16620 return 0;
16621}
16622_ACEOF
16623rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016624if { (ac_try="$ac_link"
16625case "(($ac_try" in
16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16628esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16630$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016631 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000016632 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016633 grep -v '^ *+' conftest.er1 >conftest.err
16634 rm -f conftest.er1
16635 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016637 (exit $ac_status); } && {
16638 test -z "$ac_c_werror_flag" ||
16639 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016640 } && test -s conftest$ac_exeext && {
16641 test "$cross_compiling" = yes ||
16642 $as_test_x conftest$ac_exeext
16643 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016644 ac_cv_lib_c_r_pthread_create=yes
Guido van Rossum49545951997-12-02 19:28:29 +000016645else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016646 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016647sed 's/^/| /' conftest.$ac_ext >&5
16648
Martin v. Löwiseba40652007-08-30 20:10:57 +000016649 ac_cv_lib_c_r_pthread_create=no
Guido van Rossum49545951997-12-02 19:28:29 +000016650fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016651
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016652rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000016653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000016654 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000016655LIBS=$ac_check_lib_save_LIBS
Guido van Rossum49545951997-12-02 19:28:29 +000016656fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016657{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
16658$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
16659if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016660 cat >>confdefs.h <<\_ACEOF
Guido van Rossum49545951997-12-02 19:28:29 +000016661#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016662_ACEOF
Guido van Rossum49545951997-12-02 19:28:29 +000016663
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000016664 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +000016665 LIBS="$LIBS -lc_r"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000016666 THREADOBJ="Python/thread.o"
Guido van Rossum07bd90e2000-05-08 13:41:38 +000016667else
Guido van Rossum07bd90e2000-05-08 13:41:38 +000016668
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016669 { $as_echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
16670$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016671if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016672 $as_echo_n "(cached) " >&6
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000016673else
Martin v. Löwis11437992002-04-12 09:54:03 +000016674 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000016675LIBS="-lpthread $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000016676cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016677/* confdefs.h. */
16678_ACEOF
16679cat confdefs.h >>conftest.$ac_ext
16680cat >>conftest.$ac_ext <<_ACEOF
16681/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000016682
Martin v. Löwiseba40652007-08-30 20:10:57 +000016683/* Override any GCC internal prototype to avoid an error.
16684 Use char because int might match the return type of a GCC
16685 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000016686#ifdef __cplusplus
16687extern "C"
16688#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000016689char __pthread_create_system ();
Martin v. Löwis11437992002-04-12 09:54:03 +000016690int
16691main ()
16692{
Martin v. Löwiseba40652007-08-30 20:10:57 +000016693return __pthread_create_system ();
Martin v. Löwis11437992002-04-12 09:54:03 +000016694 ;
16695 return 0;
16696}
16697_ACEOF
16698rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016699if { (ac_try="$ac_link"
16700case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16703esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16705$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016706 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000016707 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016708 grep -v '^ *+' conftest.er1 >conftest.err
16709 rm -f conftest.er1
16710 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016712 (exit $ac_status); } && {
16713 test -z "$ac_c_werror_flag" ||
16714 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016715 } && test -s conftest$ac_exeext && {
16716 test "$cross_compiling" = yes ||
16717 $as_test_x conftest$ac_exeext
16718 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016719 ac_cv_lib_pthread___pthread_create_system=yes
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000016720else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016721 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016722sed 's/^/| /' conftest.$ac_ext >&5
16723
Martin v. Löwiseba40652007-08-30 20:10:57 +000016724 ac_cv_lib_pthread___pthread_create_system=no
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000016725fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016726
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016727rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000016728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000016729 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000016730LIBS=$ac_check_lib_save_LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000016731fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016732{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16733$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
16734if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016735 cat >>confdefs.h <<\_ACEOF
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000016736#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016737_ACEOF
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000016738
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000016739 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +000016740 LIBS="$LIBS -lpthread"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000016741 THREADOBJ="Python/thread.o"
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000016742else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000016743
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016744 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
16745$as_echo_n "checking for pthread_create in -lcma... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016746if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016747 $as_echo_n "(cached) " >&6
Guido van Rossumb93a8621998-05-07 13:27:32 +000016748else
Martin v. Löwis11437992002-04-12 09:54:03 +000016749 ac_check_lib_save_LIBS=$LIBS
Guido van Rossumb93a8621998-05-07 13:27:32 +000016750LIBS="-lcma $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000016751cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016752/* confdefs.h. */
16753_ACEOF
16754cat confdefs.h >>conftest.$ac_ext
16755cat >>conftest.$ac_ext <<_ACEOF
16756/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000016757
Martin v. Löwiseba40652007-08-30 20:10:57 +000016758/* Override any GCC internal prototype to avoid an error.
16759 Use char because int might match the return type of a GCC
16760 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000016761#ifdef __cplusplus
16762extern "C"
16763#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000016764char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000016765int
16766main ()
16767{
Martin v. Löwiseba40652007-08-30 20:10:57 +000016768return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000016769 ;
16770 return 0;
16771}
16772_ACEOF
16773rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016774if { (ac_try="$ac_link"
16775case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16778esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16780$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016781 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000016782 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016783 grep -v '^ *+' conftest.er1 >conftest.err
16784 rm -f conftest.er1
16785 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016787 (exit $ac_status); } && {
16788 test -z "$ac_c_werror_flag" ||
16789 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016790 } && test -s conftest$ac_exeext && {
16791 test "$cross_compiling" = yes ||
16792 $as_test_x conftest$ac_exeext
16793 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016794 ac_cv_lib_cma_pthread_create=yes
Guido van Rossumb93a8621998-05-07 13:27:32 +000016795else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016796 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016797sed 's/^/| /' conftest.$ac_ext >&5
16798
Martin v. Löwiseba40652007-08-30 20:10:57 +000016799 ac_cv_lib_cma_pthread_create=no
Guido van Rossumb93a8621998-05-07 13:27:32 +000016800fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016801
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016802rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000016803rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000016804 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000016805LIBS=$ac_check_lib_save_LIBS
Guido van Rossumb93a8621998-05-07 13:27:32 +000016806fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016807{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
16808$as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
16809if test "x$ac_cv_lib_cma_pthread_create" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016810 cat >>confdefs.h <<\_ACEOF
Guido van Rossumb93a8621998-05-07 13:27:32 +000016811#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016812_ACEOF
Guido van Rossumb93a8621998-05-07 13:27:32 +000016813
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000016814 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +000016815 LIBS="$LIBS -lcma"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000016816 THREADOBJ="Python/thread.o"
Guido van Rossumb93a8621998-05-07 13:27:32 +000016817else
Thomas Wouters0db2b2b2000-08-26 11:33:43 +000016818
Martin v. Löwis130fb172001-07-19 11:00:41 +000016819 USE_THREAD_MODULE="#"
Guido van Rossum2d38f911996-06-26 19:47:01 +000016820fi
16821
Guido van Rossum627b2d71993-12-24 10:39:16 +000016822
Guido van Rossum7b3853f1996-07-30 18:09:35 +000016823fi
16824
Guido van Rossum0be3e491997-05-22 20:33:33 +000016825fi
16826
Guido van Rossum49545951997-12-02 19:28:29 +000016827fi
16828
Guido van Rossumb93a8621998-05-07 13:27:32 +000016829fi
16830
Guido van Rossum07bd90e2000-05-08 13:41:38 +000016831
Michael W. Hudson54241132001-12-07 15:38:26 +000016832fi
16833
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016834
16835fi
16836
Martin v. Löwisa6e97582002-01-01 18:41:33 +000016837fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016838
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016839rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000016840rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000016841 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016842fi
16843
Martin v. Löwis11437992002-04-12 09:54:03 +000016844fi
16845
16846
16847fi
16848
Martin v. Löwisa6e97582002-01-01 18:41:33 +000016849
Michael W. Hudson54241132001-12-07 15:38:26 +000016850
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016851 { $as_echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
16852$as_echo_n "checking for usconfig in -lmpc... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016853if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016854 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016855else
Martin v. Löwis11437992002-04-12 09:54:03 +000016856 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000016857LIBS="-lmpc $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000016858cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016859/* confdefs.h. */
16860_ACEOF
16861cat confdefs.h >>conftest.$ac_ext
16862cat >>conftest.$ac_ext <<_ACEOF
16863/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000016864
Martin v. Löwiseba40652007-08-30 20:10:57 +000016865/* Override any GCC internal prototype to avoid an error.
16866 Use char because int might match the return type of a GCC
16867 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000016868#ifdef __cplusplus
16869extern "C"
16870#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000016871char usconfig ();
Martin v. Löwis11437992002-04-12 09:54:03 +000016872int
16873main ()
16874{
Martin v. Löwiseba40652007-08-30 20:10:57 +000016875return usconfig ();
Martin v. Löwis11437992002-04-12 09:54:03 +000016876 ;
16877 return 0;
16878}
16879_ACEOF
16880rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016881if { (ac_try="$ac_link"
16882case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16885esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16887$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016888 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000016889 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016890 grep -v '^ *+' conftest.er1 >conftest.err
16891 rm -f conftest.er1
16892 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016894 (exit $ac_status); } && {
16895 test -z "$ac_c_werror_flag" ||
16896 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016897 } && test -s conftest$ac_exeext && {
16898 test "$cross_compiling" = yes ||
16899 $as_test_x conftest$ac_exeext
16900 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016901 ac_cv_lib_mpc_usconfig=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016902else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016903 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016904sed 's/^/| /' conftest.$ac_ext >&5
16905
Martin v. Löwiseba40652007-08-30 20:10:57 +000016906 ac_cv_lib_mpc_usconfig=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000016907fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016908
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016909rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000016910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000016911 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000016912LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016913fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016914{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16915$as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
16916if test "x$ac_cv_lib_mpc_usconfig" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016917 cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016918#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016919_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000016920
Martin v. Löwis130fb172001-07-19 11:00:41 +000016921 LIBS="$LIBS -lmpc"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000016922 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:41 +000016923 USE_THREAD_MODULE=""
Guido van Rossum627b2d71993-12-24 10:39:16 +000016924fi
16925
Martin v. Löwis3d2b5492002-03-15 13:48:21 +000016926
Neal Norwitza978ab02002-11-02 16:58:05 +000016927 if test "$posix_threads" != "yes"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016928 { $as_echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
16929$as_echo_n "checking for thr_create in -lthread... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000016930if test "${ac_cv_lib_thread_thr_create+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016931 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016932else
Martin v. Löwis11437992002-04-12 09:54:03 +000016933 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000016934LIBS="-lthread $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000016935cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000016936/* confdefs.h. */
16937_ACEOF
16938cat confdefs.h >>conftest.$ac_ext
16939cat >>conftest.$ac_ext <<_ACEOF
16940/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000016941
Martin v. Löwiseba40652007-08-30 20:10:57 +000016942/* Override any GCC internal prototype to avoid an error.
16943 Use char because int might match the return type of a GCC
16944 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000016945#ifdef __cplusplus
16946extern "C"
16947#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000016948char thr_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000016949int
16950main ()
16951{
Martin v. Löwiseba40652007-08-30 20:10:57 +000016952return thr_create ();
Martin v. Löwis11437992002-04-12 09:54:03 +000016953 ;
16954 return 0;
16955}
16956_ACEOF
16957rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000016958if { (ac_try="$ac_link"
16959case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16962esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16964$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016965 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000016966 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000016967 grep -v '^ *+' conftest.er1 >conftest.err
16968 rm -f conftest.er1
16969 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000016971 (exit $ac_status); } && {
16972 test -z "$ac_c_werror_flag" ||
16973 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016974 } && test -s conftest$ac_exeext && {
16975 test "$cross_compiling" = yes ||
16976 $as_test_x conftest$ac_exeext
16977 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016978 ac_cv_lib_thread_thr_create=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016979else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016980 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000016981sed 's/^/| /' conftest.$ac_ext >&5
16982
Martin v. Löwiseba40652007-08-30 20:10:57 +000016983 ac_cv_lib_thread_thr_create=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000016984fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000016985
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016986rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000016987rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000016988 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000016989LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016990fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000016991{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16992$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
16993if test "x$ac_cv_lib_thread_thr_create" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016994 cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016995#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016996_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000016997
Martin v. Löwis3d2b5492002-03-15 13:48:21 +000016998 LIBS="$LIBS -lthread"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000016999 THREADOBJ="Python/thread.o"
Martin v. Löwis3d2b5492002-03-15 13:48:21 +000017000 USE_THREAD_MODULE=""
Guido van Rossum627b2d71993-12-24 10:39:16 +000017001fi
17002
Martin v. Löwis3d2b5492002-03-15 13:48:21 +000017003 fi
Michael W. Hudson54241132001-12-07 15:38:26 +000017004
Martin v. Löwis130fb172001-07-19 11:00:41 +000017005 if test "$USE_THREAD_MODULE" != "#"
17006 then
17007 # If the above checks didn't disable threads, (at least) OSF1
17008 # needs this '-threads' argument during linking.
17009 case $ac_sys_system in
17010 OSF1) LDLAST=-threads;;
17011 esac
Jeremy Hylton1a2ca862000-10-16 16:59:12 +000017012 fi
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017013fi
Martin v. Löwisa7a76d32002-10-04 07:21:24 +000017014
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017015if test "$posix_threads" = "yes"; then
17016 if test "$unistd_defines_pthreads" = "no"; then
Martin v. Löwisa7a76d32002-10-04 07:21:24 +000017017
17018cat >>confdefs.h <<\_ACEOF
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017019#define _POSIX_THREADS 1
17020_ACEOF
17021
17022 fi
17023
17024 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
17025 case $ac_sys_system/$ac_sys_release in
17026 SunOS/5.6)
17027cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa7a76d32002-10-04 07:21:24 +000017028#define HAVE_PTHREAD_DESTRUCTOR 1
17029_ACEOF
17030
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017031 ;;
17032 SunOS/5.8)
17033cat >>confdefs.h <<\_ACEOF
17034#define HAVE_BROKEN_POSIX_SEMAPHORES 1
17035_ACEOF
17036
17037 ;;
Christian Heimescba36bb2008-01-30 22:54:18 +000017038 AIX/5)
17039cat >>confdefs.h <<\_ACEOF
17040#define HAVE_BROKEN_POSIX_SEMAPHORES 1
17041_ACEOF
17042
17043 ;;
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017044 esac
17045
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017046 { $as_echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
17047$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017048 if test "${ac_cv_pthread_system_supported+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017049 $as_echo_n "(cached) " >&6
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017050else
17051 if test "$cross_compiling" = yes; then
17052 ac_cv_pthread_system_supported=no
17053else
17054 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017055/* confdefs.h. */
17056_ACEOF
17057cat confdefs.h >>conftest.$ac_ext
17058cat >>conftest.$ac_ext <<_ACEOF
17059/* end confdefs.h. */
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017060#include <pthread.h>
17061 void *foo(void *parm) {
17062 return NULL;
17063 }
17064 main() {
17065 pthread_attr_t attr;
17066 pthread_t id;
17067 if (pthread_attr_init(&attr)) exit(-1);
17068 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
17069 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
17070 exit(0);
17071 }
17072_ACEOF
17073rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017074if { (ac_try="$ac_link"
17075case "(($ac_try" in
17076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17077 *) ac_try_echo=$ac_try;;
17078esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17080$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017081 (eval "$ac_link") 2>&5
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017082 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000017085 { (case "(($ac_try" in
17086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087 *) ac_try_echo=$ac_try;;
17088esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17090$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017091 (eval "$ac_try") 2>&5
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017092 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017094 (exit $ac_status); }; }; then
17095 ac_cv_pthread_system_supported=yes
17096else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017097 $as_echo "$as_me: program exited with status $ac_status" >&5
17098$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017099sed 's/^/| /' conftest.$ac_ext >&5
17100
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017101( exit $ac_status )
17102ac_cv_pthread_system_supported=no
17103fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017104rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000017105rm -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 +000017106fi
Martin v. Löwisa7a76d32002-10-04 07:21:24 +000017107
Martin v. Löwiseba40652007-08-30 20:10:57 +000017108
17109
Guido van Rossum627b2d71993-12-24 10:39:16 +000017110fi
17111
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017112 { $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
17113$as_echo "$ac_cv_pthread_system_supported" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017114 if test "$ac_cv_pthread_system_supported" = "yes"; then
17115
17116cat >>confdefs.h <<\_ACEOF
17117#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
17118_ACEOF
17119
17120 fi
17121
17122for ac_func in pthread_sigmask
17123do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017124as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17125{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17126$as_echo_n "checking for $ac_func... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000017127if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017128 $as_echo_n "(cached) " >&6
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017129else
17130 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017131/* confdefs.h. */
17132_ACEOF
17133cat confdefs.h >>conftest.$ac_ext
17134cat >>conftest.$ac_ext <<_ACEOF
17135/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000017136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17138#define $ac_func innocuous_$ac_func
17139
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017140/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000017141 which can conflict with char $ac_func (); below.
17142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000017143 <limits.h> exists even on freestanding compilers. */
17144
17145#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000017146# include <limits.h>
17147#else
17148# include <assert.h>
17149#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000017150
17151#undef $ac_func
17152
Martin v. Löwiseba40652007-08-30 20:10:57 +000017153/* Override any GCC internal prototype to avoid an error.
17154 Use char because int might match the return type of a GCC
17155 builtin and then its argument prototype would still apply. */
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017156#ifdef __cplusplus
17157extern "C"
17158#endif
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017159char $ac_func ();
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017160/* The GNU C library defines this for functions which it implements
17161 to always fail with ENOSYS. Some functions are actually named
17162 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000017163#if defined __stub_$ac_func || defined __stub___$ac_func
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017164choke me
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017165#endif
17166
Skip Montanaro6dead952003-09-25 14:50:04 +000017167int
17168main ()
17169{
Martin v. Löwiseba40652007-08-30 20:10:57 +000017170return $ac_func ();
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017171 ;
17172 return 0;
17173}
17174_ACEOF
17175rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017176if { (ac_try="$ac_link"
17177case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017181eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17182$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017183 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017184 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017185 grep -v '^ *+' conftest.er1 >conftest.err
17186 rm -f conftest.er1
17187 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017189 (exit $ac_status); } && {
17190 test -z "$ac_c_werror_flag" ||
17191 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017192 } && test -s conftest$ac_exeext && {
17193 test "$cross_compiling" = yes ||
17194 $as_test_x conftest$ac_exeext
17195 }; then
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017196 eval "$as_ac_var=yes"
17197else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017198 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017199sed 's/^/| /' conftest.$ac_ext >&5
17200
Martin v. Löwiseba40652007-08-30 20:10:57 +000017201 eval "$as_ac_var=no"
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017202fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017203
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017204rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000017205rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000017206 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017207fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017208ac_res=`eval 'as_val=${'$as_ac_var'}
17209 $as_echo "$as_val"'`
17210 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17211$as_echo "$ac_res" >&6; }
17212as_val=`eval 'as_val=${'$as_ac_var'}
17213 $as_echo "$as_val"'`
17214 if test "x$as_val" = x""yes; then
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017215 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017216#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017217_ACEOF
Jason Tishlerfac083d2003-07-22 15:20:49 +000017218 case $ac_sys_system in
17219 CYGWIN*)
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017220
Jason Tishlerfac083d2003-07-22 15:20:49 +000017221cat >>confdefs.h <<\_ACEOF
17222#define HAVE_BROKEN_PTHREAD_SIGMASK 1
17223_ACEOF
17224
17225 ;;
17226 esac
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000017227fi
17228done
17229
17230fi
17231
17232
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017233# Check for enable-ipv6
Martin v. Löwis11437992002-04-12 09:54:03 +000017234
17235
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017236{ $as_echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
17237$as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000017238# Check whether --enable-ipv6 was given.
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017239if test "${enable_ipv6+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000017240 enableval=$enable_ipv6; case "$enableval" in
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017241 no)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017242 { $as_echo "$as_me:$LINENO: result: no" >&5
17243$as_echo "no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017244 ipv6=no
17245 ;;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017246 *) { $as_echo "$as_me:$LINENO: result: yes" >&5
17247$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000017248 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017249#define ENABLE_IPV6 1
Martin v. Löwis11437992002-04-12 09:54:03 +000017250_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017251
17252 ipv6=yes
17253 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000017254 esac
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017255else
Martin v. Löwis11437992002-04-12 09:54:03 +000017256
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017257 if test "$cross_compiling" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017258 { $as_echo "$as_me:$LINENO: result: no" >&5
17259$as_echo "no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017260 ipv6=no
17261
17262else
Martin v. Löwis11437992002-04-12 09:54:03 +000017263 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017264/* confdefs.h. */
17265_ACEOF
17266cat confdefs.h >>conftest.$ac_ext
17267cat >>conftest.$ac_ext <<_ACEOF
17268/* end confdefs.h. */
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017269 /* AF_INET6 available check */
17270#include <sys/types.h>
17271#include <sys/socket.h>
17272main()
17273{
17274 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
17275 exit(1);
17276 else
17277 exit(0);
17278}
17279
Martin v. Löwis11437992002-04-12 09:54:03 +000017280_ACEOF
17281rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017282if { (ac_try="$ac_link"
17283case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17286esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017287eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17288$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017289 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000017290 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000017292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000017293 { (case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17296esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17298$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017299 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000017300 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000017302 (exit $ac_status); }; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017303 { $as_echo "$as_me:$LINENO: result: yes" >&5
17304$as_echo "yes" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017305 ipv6=yes
17306else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017307 $as_echo "$as_me: program exited with status $ac_status" >&5
17308$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017309sed 's/^/| /' conftest.$ac_ext >&5
17310
Martin v. Löwis11437992002-04-12 09:54:03 +000017311( exit $ac_status )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017312{ $as_echo "$as_me:$LINENO: result: no" >&5
17313$as_echo "no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017314 ipv6=no
17315fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017316rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000017317rm -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 +000017318fi
17319
Martin v. Löwiseba40652007-08-30 20:10:57 +000017320
17321
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000017322if test "$ipv6" = "yes"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017323 { $as_echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
17324$as_echo_n "checking if RFC2553 API is available... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000017325 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017326/* confdefs.h. */
17327_ACEOF
17328cat confdefs.h >>conftest.$ac_ext
17329cat >>conftest.$ac_ext <<_ACEOF
17330/* end confdefs.h. */
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000017331#include <sys/types.h>
17332#include <netinet/in.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000017333int
17334main ()
17335{
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000017336struct sockaddr_in6 x;
17337x.sin6_scope_id;
Martin v. Löwis11437992002-04-12 09:54:03 +000017338 ;
17339 return 0;
17340}
17341_ACEOF
17342rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017343if { (ac_try="$ac_compile"
17344case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17347esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17349$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017350 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000017351 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017356 (exit $ac_status); } && {
17357 test -z "$ac_c_werror_flag" ||
17358 test ! -s conftest.err
17359 } && test -s conftest.$ac_objext; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017360 { $as_echo "$as_me:$LINENO: result: yes" >&5
17361$as_echo "yes" >&6; }
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000017362 ipv6=yes
17363else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017364 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017365sed 's/^/| /' conftest.$ac_ext >&5
17366
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017367 { $as_echo "$as_me:$LINENO: result: no" >&5
17368$as_echo "no" >&6; }
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000017369 ipv6=no
17370fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017371
17372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000017373fi
17374
17375if test "$ipv6" = "yes"; then
Martin v. Löwis11437992002-04-12 09:54:03 +000017376 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000017377#define ENABLE_IPV6 1
Martin v. Löwis11437992002-04-12 09:54:03 +000017378_ACEOF
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000017379
17380fi
17381
Martin v. Löwiseba40652007-08-30 20:10:57 +000017382fi
17383
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017384
17385ipv6type=unknown
17386ipv6lib=none
17387ipv6trylibc=no
17388
17389if test "$ipv6" = "yes"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017390 { $as_echo "$as_me:$LINENO: checking ipv6 stack type" >&5
17391$as_echo_n "checking ipv6 stack type... " >&6; }
Guido van Rossumb8552162001-09-05 14:58:11 +000017392 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
17393 do
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017394 case $i in
17395 inria)
Martin v. Löwis11437992002-04-12 09:54:03 +000017396 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017397/* confdefs.h. */
17398_ACEOF
17399cat confdefs.h >>conftest.$ac_ext
17400cat >>conftest.$ac_ext <<_ACEOF
17401/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000017402
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017403#include <netinet/in.h>
17404#ifdef IPV6_INRIA_VERSION
17405yes
17406#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000017407_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000017409 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwis44ddbde2001-12-02 10:15:37 +000017410 ipv6type=$i
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017411fi
17412rm -f conftest*
17413
17414 ;;
17415 kame)
Martin v. Löwis11437992002-04-12 09:54:03 +000017416 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017417/* confdefs.h. */
17418_ACEOF
17419cat confdefs.h >>conftest.$ac_ext
17420cat >>conftest.$ac_ext <<_ACEOF
17421/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000017422
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017423#include <netinet/in.h>
17424#ifdef __KAME__
17425yes
17426#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000017427_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000017429 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017430 ipv6type=$i;
17431 ipv6lib=inet6
17432 ipv6libdir=/usr/local/v6/lib
17433 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017434fi
17435rm -f conftest*
17436
17437 ;;
17438 linux-glibc)
Martin v. Löwis11437992002-04-12 09:54:03 +000017439 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017440/* confdefs.h. */
17441_ACEOF
17442cat confdefs.h >>conftest.$ac_ext
17443cat >>conftest.$ac_ext <<_ACEOF
17444/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000017445
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017446#include <features.h>
17447#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
17448yes
17449#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000017450_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000017452 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017453 ipv6type=$i;
17454 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017455fi
17456rm -f conftest*
17457
17458 ;;
17459 linux-inet6)
17460 if test -d /usr/inet6; then
17461 ipv6type=$i
17462 ipv6lib=inet6
17463 ipv6libdir=/usr/inet6/lib
Skip Montanarodecc6a42003-01-01 20:07:49 +000017464 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017465 fi
17466 ;;
17467 solaris)
17468 if test -f /etc/netconfig; then
17469 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
17470 ipv6type=$i
17471 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017472 fi
17473 fi
17474 ;;
17475 toshiba)
Martin v. Löwis11437992002-04-12 09:54:03 +000017476 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017477/* confdefs.h. */
17478_ACEOF
17479cat confdefs.h >>conftest.$ac_ext
17480cat >>conftest.$ac_ext <<_ACEOF
17481/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000017482
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017483#include <sys/param.h>
17484#ifdef _TOSHIBA_INET6
17485yes
17486#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000017487_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000017489 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017490 ipv6type=$i;
17491 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:37 +000017492 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017493fi
17494rm -f conftest*
17495
17496 ;;
17497 v6d)
Martin v. Löwis11437992002-04-12 09:54:03 +000017498 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017499/* confdefs.h. */
17500_ACEOF
17501cat confdefs.h >>conftest.$ac_ext
17502cat >>conftest.$ac_ext <<_ACEOF
17503/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000017504
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017505#include </usr/local/v6/include/sys/v6config.h>
17506#ifdef __V6D__
17507yes
17508#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000017509_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000017511 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017512 ipv6type=$i;
17513 ipv6lib=v6;
17514 ipv6libdir=/usr/local/v6/lib;
Skip Montanarodecc6a42003-01-01 20:07:49 +000017515 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017516fi
17517rm -f conftest*
17518
17519 ;;
17520 zeta)
Martin v. Löwis11437992002-04-12 09:54:03 +000017521 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017522/* confdefs.h. */
17523_ACEOF
17524cat confdefs.h >>conftest.$ac_ext
17525cat >>conftest.$ac_ext <<_ACEOF
17526/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000017527
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017528#include <sys/param.h>
17529#ifdef _ZETA_MINAMI_INET6
17530yes
17531#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000017532_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000017534 $EGREP "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017535 ipv6type=$i;
17536 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:37 +000017537 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017538fi
17539rm -f conftest*
17540
17541 ;;
17542 esac
17543 if test "$ipv6type" != "unknown"; then
17544 break
17545 fi
17546 done
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017547 { $as_echo "$as_me:$LINENO: result: $ipv6type" >&5
17548$as_echo "$ipv6type" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000017549fi
17550
17551if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17552 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
17553 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
17554 echo "using lib$ipv6lib"
17555 else
17556 if test $ipv6trylibc = "yes"; then
17557 echo "using libc"
17558 else
17559 echo 'Fatal: no $ipv6lib library found. cannot continue.'
17560 echo "You need to fetch lib$ipv6lib.a from appropriate"
17561 echo 'ipv6 kit and compile beforehand.'
17562 exit 1
17563 fi
17564 fi
17565fi
17566
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017567{ $as_echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
17568$as_echo_n "checking for OSX 10.5 SDK or later... " >&6; }
Ronald Oussoren0d236eb2008-06-06 21:31:33 +000017569cat >conftest.$ac_ext <<_ACEOF
17570/* confdefs.h. */
17571_ACEOF
17572cat confdefs.h >>conftest.$ac_ext
17573cat >>conftest.$ac_ext <<_ACEOF
17574/* end confdefs.h. */
17575#include <Carbon/Carbon.h>
17576int
17577main ()
17578{
17579FSIORefNum fRef = 0
17580 ;
17581 return 0;
17582}
17583_ACEOF
17584rm -f conftest.$ac_objext
17585if { (ac_try="$ac_compile"
17586case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17589esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17591$as_echo "$ac_try_echo") >&5
Ronald Oussoren0d236eb2008-06-06 21:31:33 +000017592 (eval "$ac_compile") 2>conftest.er1
17593 ac_status=$?
17594 grep -v '^ *+' conftest.er1 >conftest.err
17595 rm -f conftest.er1
17596 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Ronald Oussoren0d236eb2008-06-06 21:31:33 +000017598 (exit $ac_status); } && {
17599 test -z "$ac_c_werror_flag" ||
17600 test ! -s conftest.err
17601 } && test -s conftest.$ac_objext; then
17602
17603cat >>confdefs.h <<\_ACEOF
17604#define HAVE_OSX105_SDK 1
17605_ACEOF
17606
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017607 { $as_echo "$as_me:$LINENO: result: yes" >&5
17608$as_echo "yes" >&6; }
Ronald Oussoren0d236eb2008-06-06 21:31:33 +000017609else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017610 $as_echo "$as_me: failed program was:" >&5
Ronald Oussoren0d236eb2008-06-06 21:31:33 +000017611sed 's/^/| /' conftest.$ac_ext >&5
17612
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017613 { $as_echo "$as_me:$LINENO: result: no" >&5
17614$as_echo "no" >&6; }
Ronald Oussoren0d236eb2008-06-06 21:31:33 +000017615
17616fi
17617
17618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17619
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000017620# Check for --with-doc-strings
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017621{ $as_echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
17622$as_echo_n "checking for --with-doc-strings... " >&6; }
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000017623
Martin v. Löwiseba40652007-08-30 20:10:57 +000017624# Check whether --with-doc-strings was given.
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000017625if test "${with_doc_strings+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000017626 withval=$with_doc_strings;
17627fi
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000017628
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000017629
17630if test -z "$with_doc_strings"
17631then with_doc_strings="yes"
17632fi
17633if test "$with_doc_strings" != "no"
17634then
17635
17636cat >>confdefs.h <<\_ACEOF
17637#define WITH_DOC_STRINGS 1
17638_ACEOF
17639
17640fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017641{ $as_echo "$as_me:$LINENO: result: $with_doc_strings" >&5
17642$as_echo "$with_doc_strings" >&6; }
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000017643
Neil Schemenauera35c6882001-02-27 04:45:05 +000017644# Check for Python-specific malloc support
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017645{ $as_echo "$as_me:$LINENO: checking for --with-tsc" >&5
17646$as_echo_n "checking for --with-tsc... " >&6; }
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000017647
Martin v. Löwiseba40652007-08-30 20:10:57 +000017648# Check whether --with-tsc was given.
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000017649if test "${with_tsc+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000017650 withval=$with_tsc;
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000017651if test "$withval" != no
17652then
17653
17654cat >>confdefs.h <<\_ACEOF
17655#define WITH_TSC 1
17656_ACEOF
17657
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017658 { $as_echo "$as_me:$LINENO: result: yes" >&5
17659$as_echo "yes" >&6; }
17660else { $as_echo "$as_me:$LINENO: result: no" >&5
17661$as_echo "no" >&6; }
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000017662fi
17663else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017664 { $as_echo "$as_me:$LINENO: result: no" >&5
17665$as_echo "no" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000017666fi
17667
Martin v. Löwisf30d60e2004-06-08 08:17:44 +000017668
17669# Check for Python-specific malloc support
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017670{ $as_echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
17671$as_echo_n "checking for --with-pymalloc... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000017672
Martin v. Löwiseba40652007-08-30 20:10:57 +000017673# Check whether --with-pymalloc was given.
Neil Schemenauera35c6882001-02-27 04:45:05 +000017674if test "${with_pymalloc+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000017675 withval=$with_pymalloc;
17676fi
Michael W. Hudson54241132001-12-07 15:38:26 +000017677
Neil Schemenauera35c6882001-02-27 04:45:05 +000017678
Neil Schemenauer16c22972002-03-22 15:34:49 +000017679if test -z "$with_pymalloc"
17680then with_pymalloc="yes"
17681fi
17682if test "$with_pymalloc" != "no"
17683then
Martin v. Löwis11437992002-04-12 09:54:03 +000017684
17685cat >>confdefs.h <<\_ACEOF
Neil Schemenauer16c22972002-03-22 15:34:49 +000017686#define WITH_PYMALLOC 1
Martin v. Löwis11437992002-04-12 09:54:03 +000017687_ACEOF
Neil Schemenauer16c22972002-03-22 15:34:49 +000017688
17689fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017690{ $as_echo "$as_me:$LINENO: result: $with_pymalloc" >&5
17691$as_echo "$with_pymalloc" >&6; }
Neil Schemenauer16c22972002-03-22 15:34:49 +000017692
Barry Warsawef82cd72000-06-30 16:21:01 +000017693# Check for --with-wctype-functions
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017694{ $as_echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
17695$as_echo_n "checking for --with-wctype-functions... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000017696
Martin v. Löwiseba40652007-08-30 20:10:57 +000017697# Check whether --with-wctype-functions was given.
Barry Warsawef82cd72000-06-30 16:21:01 +000017698if test "${with_wctype_functions+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000017699 withval=$with_wctype_functions;
Barry Warsawef82cd72000-06-30 16:21:01 +000017700if test "$withval" != no
Martin v. Löwis11437992002-04-12 09:54:03 +000017701then
17702
17703cat >>confdefs.h <<\_ACEOF
Barry Warsawef82cd72000-06-30 16:21:01 +000017704#define WANT_WCTYPE_FUNCTIONS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000017705_ACEOF
17706
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017707 { $as_echo "$as_me:$LINENO: result: yes" >&5
17708$as_echo "yes" >&6; }
17709else { $as_echo "$as_me:$LINENO: result: no" >&5
17710$as_echo "no" >&6; }
Barry Warsawef82cd72000-06-30 16:21:01 +000017711fi
17712else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017713 { $as_echo "$as_me:$LINENO: result: no" >&5
17714$as_echo "no" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000017715fi
17716
Barry Warsawef82cd72000-06-30 16:21:01 +000017717
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000017718# -I${DLINCLDIR} is added to the compile rule for importdl.o
Guido van Rossum7f43da71994-08-01 12:15:30 +000017719
Guido van Rossum98935bf2001-09-05 19:13:16 +000017720DLINCLDIR=.
Guido van Rossum7f43da71994-08-01 12:15:30 +000017721
Guido van Rossume97ee181999-12-20 21:27:22 +000017722# the dlopen() function means we might want to use dynload_shlib.o. some
17723# platforms, such as AIX, have dlopen(), but don't want to use it.
Martin v. Löwis11437992002-04-12 09:54:03 +000017724
Thomas Wouters3a584202000-08-05 23:28:51 +000017725for ac_func in dlopen
17726do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017727as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17728{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17729$as_echo_n "checking for $ac_func... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000017730if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017731 $as_echo_n "(cached) " >&6
Guido van Rossume97ee181999-12-20 21:27:22 +000017732else
Martin v. Löwis11437992002-04-12 09:54:03 +000017733 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017734/* confdefs.h. */
17735_ACEOF
17736cat confdefs.h >>conftest.$ac_ext
17737cat >>conftest.$ac_ext <<_ACEOF
17738/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000017739/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17741#define $ac_func innocuous_$ac_func
17742
Guido van Rossume97ee181999-12-20 21:27:22 +000017743/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000017744 which can conflict with char $ac_func (); below.
17745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000017746 <limits.h> exists even on freestanding compilers. */
17747
17748#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000017749# include <limits.h>
17750#else
17751# include <assert.h>
17752#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000017753
17754#undef $ac_func
17755
Martin v. Löwiseba40652007-08-30 20:10:57 +000017756/* Override any GCC internal prototype to avoid an error.
17757 Use char because int might match the return type of a GCC
17758 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000017759#ifdef __cplusplus
17760extern "C"
17761#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000017762char $ac_func ();
Guido van Rossume97ee181999-12-20 21:27:22 +000017763/* The GNU C library defines this for functions which it implements
17764 to always fail with ENOSYS. Some functions are actually named
17765 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000017766#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossume97ee181999-12-20 21:27:22 +000017767choke me
Guido van Rossume97ee181999-12-20 21:27:22 +000017768#endif
17769
Skip Montanaro6dead952003-09-25 14:50:04 +000017770int
17771main ()
17772{
Martin v. Löwiseba40652007-08-30 20:10:57 +000017773return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000017774 ;
17775 return 0;
17776}
17777_ACEOF
17778rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000017779if { (ac_try="$ac_link"
17780case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17783esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17785$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017786 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000017787 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000017788 grep -v '^ *+' conftest.er1 >conftest.err
17789 rm -f conftest.er1
17790 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000017792 (exit $ac_status); } && {
17793 test -z "$ac_c_werror_flag" ||
17794 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017795 } && test -s conftest$ac_exeext && {
17796 test "$cross_compiling" = yes ||
17797 $as_test_x conftest$ac_exeext
17798 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000017799 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000017800else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017801 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000017802sed 's/^/| /' conftest.$ac_ext >&5
17803
Martin v. Löwiseba40652007-08-30 20:10:57 +000017804 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000017805fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000017806
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017807rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000017808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000017809 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000017810fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017811ac_res=`eval 'as_val=${'$as_ac_var'}
17812 $as_echo "$as_val"'`
17813 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17814$as_echo "$ac_res" >&6; }
17815as_val=`eval 'as_val=${'$as_ac_var'}
17816 $as_echo "$as_val"'`
17817 if test "x$as_val" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000017818 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017819#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:03 +000017820_ACEOF
Guido van Rossume97ee181999-12-20 21:27:22 +000017821
Guido van Rossume97ee181999-12-20 21:27:22 +000017822fi
Thomas Wouters3a584202000-08-05 23:28:51 +000017823done
Guido van Rossume97ee181999-12-20 21:27:22 +000017824
Michael W. Hudson54241132001-12-07 15:38:26 +000017825
Guido van Rossume97ee181999-12-20 21:27:22 +000017826# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
17827# loading of modules.
17828
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017829{ $as_echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
17830$as_echo_n "checking DYNLOADFILE... " >&6; }
Guido van Rossume97ee181999-12-20 21:27:22 +000017831if test -z "$DYNLOADFILE"
17832then
17833 case $ac_sys_system/$ac_sys_release in
Martin v. Löwisc19c5a62003-11-18 20:00:44 +000017834 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
17835 if test "$ac_cv_func_dlopen" = yes
17836 then DYNLOADFILE="dynload_shlib.o"
17837 else DYNLOADFILE="dynload_aix.o"
17838 fi
17839 ;;
Guido van Rossume97ee181999-12-20 21:27:22 +000017840 BeOS*) DYNLOADFILE="dynload_beos.o";;
17841 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
Anthony Baxter82201742006-04-09 15:07:40 +000017842 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
17843 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
Martin v. Löwisf90ae202002-06-11 06:22:31 +000017844 atheos*) DYNLOADFILE="dynload_atheos.o";;
Guido van Rossume97ee181999-12-20 21:27:22 +000017845 *)
17846 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
17847 # out any dynamic loading
17848 if test "$ac_cv_func_dlopen" = yes
17849 then DYNLOADFILE="dynload_shlib.o"
17850 else DYNLOADFILE="dynload_stub.o"
17851 fi
17852 ;;
17853 esac
17854fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017855{ $as_echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
17856$as_echo "$DYNLOADFILE" >&6; }
Guido van Rossume97ee181999-12-20 21:27:22 +000017857if test "$DYNLOADFILE" != "dynload_stub.o"
17858then
Martin v. Löwis11437992002-04-12 09:54:03 +000017859
17860cat >>confdefs.h <<\_ACEOF
Guido van Rossume97ee181999-12-20 21:27:22 +000017861#define HAVE_DYNAMIC_LOADING 1
Martin v. Löwis11437992002-04-12 09:54:03 +000017862_ACEOF
Guido van Rossume97ee181999-12-20 21:27:22 +000017863
17864fi
17865
Neil Schemenauer4e425612001-06-19 15:44:15 +000017866# MACHDEP_OBJS can be set to platform-specific object files needed by Python
17867
Michael W. Hudson54241132001-12-07 15:38:26 +000017868
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017869{ $as_echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
17870$as_echo_n "checking MACHDEP_OBJS... " >&6; }
Neil Schemenauer4e425612001-06-19 15:44:15 +000017871if test -z "$MACHDEP_OBJS"
17872then
Jack Jansene578a632001-08-15 01:27:14 +000017873 MACHDEP_OBJS=$extra_machdep_objs
17874else
17875 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
Neil Schemenauer4e425612001-06-19 15:44:15 +000017876fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017877{ $as_echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
17878$as_echo "MACHDEP_OBJS" >&6; }
Neil Schemenauer4e425612001-06-19 15:44:15 +000017879
Guido van Rossum627b2d71993-12-24 10:39:16 +000017880# checks for library functions
Martin v. Löwis11437992002-04-12 09:54:03 +000017881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
Martin v. Löwisd6320502004-08-12 13:45:08 +000017952
Martin v. Löwisc3001752005-01-23 09:27:24 +000017953
17954
Neal Norwitz05a45592006-03-20 06:30:08 +000017955
17956
Martin v. Löwis382abef2007-02-19 10:55:19 +000017957
17958
Christian Heimes36281872007-11-30 21:11:28 +000017959
Martin v. Löwisaef18b12008-03-24 13:31:16 +000017960
17961
Jesse Noller355b1262009-04-02 00:03:28 +000017962
17963
17964
17965
Martin v. Löwisaef18b12008-03-24 13:31:16 +000017966for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
17967 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
Martin v. Löwis438b5342002-12-27 10:16:42 +000017968 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
Martin v. Löwisc3001752005-01-23 09:27:24 +000017969 getpriority getpwent getspnam getspent getsid getwd \
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000017970 kill killpg lchmod lchown lstat mkfifo mknod mktime \
Martin v. Löwisa5f09072002-10-11 05:37:59 +000017971 mremap nice pathconf pause plock poll pthread_init \
Guido van Rossum162e38c2003-02-19 15:25:10 +000017972 putenv readlink realpath \
Jesse Noller355b1262009-04-02 00:03:28 +000017973 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
17974 setgid \
Martin v. Löwis4daacb12003-03-28 18:37:01 +000017975 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
Skip Montanaro7e11a012004-02-07 12:55:46 +000017976 sigaction siginterrupt sigrelse strftime \
Michael W. Hudson34f20ea2002-05-27 15:08:24 +000017977 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
Neal Norwitz05a45592006-03-20 06:30:08 +000017978 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
Guido van Rossum627b2d71993-12-24 10:39:16 +000017979do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017980as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17981{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17982$as_echo_n "checking for $ac_func... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000017983if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000017984 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000017985else
Martin v. Löwis11437992002-04-12 09:54:03 +000017986 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000017987/* confdefs.h. */
17988_ACEOF
17989cat confdefs.h >>conftest.$ac_ext
17990cat >>conftest.$ac_ext <<_ACEOF
17991/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000017992/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17994#define $ac_func innocuous_$ac_func
17995
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000017996/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000017997 which can conflict with char $ac_func (); below.
17998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000017999 <limits.h> exists even on freestanding compilers. */
18000
18001#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000018002# include <limits.h>
18003#else
18004# include <assert.h>
18005#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000018006
18007#undef $ac_func
18008
Martin v. Löwiseba40652007-08-30 20:10:57 +000018009/* Override any GCC internal prototype to avoid an error.
18010 Use char because int might match the return type of a GCC
18011 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000018012#ifdef __cplusplus
18013extern "C"
18014#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000018015char $ac_func ();
Guido van Rossum627b2d71993-12-24 10:39:16 +000018016/* The GNU C library defines this for functions which it implements
18017 to always fail with ENOSYS. Some functions are actually named
18018 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000018019#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossum627b2d71993-12-24 10:39:16 +000018020choke me
Guido van Rossum627b2d71993-12-24 10:39:16 +000018021#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +000018022
Skip Montanaro6dead952003-09-25 14:50:04 +000018023int
18024main ()
18025{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018026return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000018027 ;
18028 return 0;
18029}
18030_ACEOF
18031rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018032if { (ac_try="$ac_link"
18033case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18036esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18038$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018039 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000018040 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018041 grep -v '^ *+' conftest.er1 >conftest.err
18042 rm -f conftest.er1
18043 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018045 (exit $ac_status); } && {
18046 test -z "$ac_c_werror_flag" ||
18047 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018048 } && test -s conftest$ac_exeext && {
18049 test "$cross_compiling" = yes ||
18050 $as_test_x conftest$ac_exeext
18051 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018052 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000018053else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018054 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018055sed 's/^/| /' conftest.$ac_ext >&5
18056
Martin v. Löwiseba40652007-08-30 20:10:57 +000018057 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000018058fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018059
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018060rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000018061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018062 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000018063fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018064ac_res=`eval 'as_val=${'$as_ac_var'}
18065 $as_echo "$as_val"'`
18066 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18067$as_echo "$ac_res" >&6; }
18068as_val=`eval 'as_val=${'$as_ac_var'}
18069 $as_echo "$as_val"'`
18070 if test "x$as_val" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000018071 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018072#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:03 +000018073_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000018074
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000018075fi
18076done
18077
Michael W. Hudson54241132001-12-07 15:38:26 +000018078
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018079# For some functions, having a definition is not sufficient, since
18080# we want to take their address.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018081{ $as_echo "$as_me:$LINENO: checking for chroot" >&5
18082$as_echo_n "checking for chroot... " >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018083cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018084/* confdefs.h. */
18085_ACEOF
18086cat confdefs.h >>conftest.$ac_ext
18087cat >>conftest.$ac_ext <<_ACEOF
18088/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018089#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018090int
18091main ()
18092{
18093void *x=chroot
18094 ;
18095 return 0;
18096}
18097_ACEOF
18098rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018099if { (ac_try="$ac_compile"
18100case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18103esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18105$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018106 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018107 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018112 (exit $ac_status); } && {
18113 test -z "$ac_c_werror_flag" ||
18114 test ! -s conftest.err
18115 } && test -s conftest.$ac_objext; then
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018116
18117cat >>confdefs.h <<\_ACEOF
18118#define HAVE_CHROOT 1
18119_ACEOF
18120
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018121 { $as_echo "$as_me:$LINENO: result: yes" >&5
18122$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018123else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018124 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018125sed 's/^/| /' conftest.$ac_ext >&5
18126
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018127 { $as_echo "$as_me:$LINENO: result: no" >&5
18128$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018129
18130fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018131
18132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018133{ $as_echo "$as_me:$LINENO: checking for link" >&5
18134$as_echo_n "checking for link... " >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018135cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018136/* confdefs.h. */
18137_ACEOF
18138cat confdefs.h >>conftest.$ac_ext
18139cat >>conftest.$ac_ext <<_ACEOF
18140/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018141#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018142int
18143main ()
18144{
18145void *x=link
18146 ;
18147 return 0;
18148}
18149_ACEOF
18150rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018151if { (ac_try="$ac_compile"
18152case "(($ac_try" in
18153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154 *) ac_try_echo=$ac_try;;
18155esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18157$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018158 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018159 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018160 grep -v '^ *+' conftest.er1 >conftest.err
18161 rm -f conftest.er1
18162 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018164 (exit $ac_status); } && {
18165 test -z "$ac_c_werror_flag" ||
18166 test ! -s conftest.err
18167 } && test -s conftest.$ac_objext; then
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018168
18169cat >>confdefs.h <<\_ACEOF
18170#define HAVE_LINK 1
18171_ACEOF
18172
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018173 { $as_echo "$as_me:$LINENO: result: yes" >&5
18174$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018175else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018176 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018177sed 's/^/| /' conftest.$ac_ext >&5
18178
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018179 { $as_echo "$as_me:$LINENO: result: no" >&5
18180$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018181
18182fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018183
18184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018185{ $as_echo "$as_me:$LINENO: checking for symlink" >&5
18186$as_echo_n "checking for symlink... " >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018187cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018188/* confdefs.h. */
18189_ACEOF
18190cat confdefs.h >>conftest.$ac_ext
18191cat >>conftest.$ac_ext <<_ACEOF
18192/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018193#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018194int
18195main ()
18196{
18197void *x=symlink
18198 ;
18199 return 0;
18200}
18201_ACEOF
18202rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018203if { (ac_try="$ac_compile"
18204case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18207esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18209$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018210 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018211 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018212 grep -v '^ *+' conftest.er1 >conftest.err
18213 rm -f conftest.er1
18214 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018216 (exit $ac_status); } && {
18217 test -z "$ac_c_werror_flag" ||
18218 test ! -s conftest.err
18219 } && test -s conftest.$ac_objext; then
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018220
18221cat >>confdefs.h <<\_ACEOF
18222#define HAVE_SYMLINK 1
18223_ACEOF
18224
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018225 { $as_echo "$as_me:$LINENO: result: yes" >&5
18226$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018227else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018228 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018229sed 's/^/| /' conftest.$ac_ext >&5
18230
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018231 { $as_echo "$as_me:$LINENO: result: no" >&5
18232$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018233
18234fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018235
18236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018237{ $as_echo "$as_me:$LINENO: checking for fchdir" >&5
18238$as_echo_n "checking for fchdir... " >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018239cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018240/* confdefs.h. */
18241_ACEOF
18242cat confdefs.h >>conftest.$ac_ext
18243cat >>conftest.$ac_ext <<_ACEOF
18244/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018245#include <unistd.h>
18246int
18247main ()
18248{
18249void *x=fchdir
18250 ;
18251 return 0;
18252}
18253_ACEOF
18254rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018255if { (ac_try="$ac_compile"
18256case "(($ac_try" in
18257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18259esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18261$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018262 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018263 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018264 grep -v '^ *+' conftest.er1 >conftest.err
18265 rm -f conftest.er1
18266 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018268 (exit $ac_status); } && {
18269 test -z "$ac_c_werror_flag" ||
18270 test ! -s conftest.err
18271 } && test -s conftest.$ac_objext; then
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018272
18273cat >>confdefs.h <<\_ACEOF
18274#define HAVE_FCHDIR 1
18275_ACEOF
18276
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018277 { $as_echo "$as_me:$LINENO: result: yes" >&5
18278$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018279else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018280 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018281sed 's/^/| /' conftest.$ac_ext >&5
18282
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018283 { $as_echo "$as_me:$LINENO: result: no" >&5
18284$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018285
18286fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018287
18288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018289{ $as_echo "$as_me:$LINENO: checking for fsync" >&5
18290$as_echo_n "checking for fsync... " >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018291cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018292/* confdefs.h. */
18293_ACEOF
18294cat confdefs.h >>conftest.$ac_ext
18295cat >>conftest.$ac_ext <<_ACEOF
18296/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018297#include <unistd.h>
18298int
18299main ()
18300{
18301void *x=fsync
18302 ;
18303 return 0;
18304}
18305_ACEOF
18306rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018307if { (ac_try="$ac_compile"
18308case "(($ac_try" in
18309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18310 *) ac_try_echo=$ac_try;;
18311esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18313$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018314 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018315 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018316 grep -v '^ *+' conftest.er1 >conftest.err
18317 rm -f conftest.er1
18318 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018320 (exit $ac_status); } && {
18321 test -z "$ac_c_werror_flag" ||
18322 test ! -s conftest.err
18323 } && test -s conftest.$ac_objext; then
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018324
18325cat >>confdefs.h <<\_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018326#define HAVE_FSYNC 1
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018327_ACEOF
18328
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018329 { $as_echo "$as_me:$LINENO: result: yes" >&5
18330$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018331else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018332 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018333sed 's/^/| /' conftest.$ac_ext >&5
18334
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018335 { $as_echo "$as_me:$LINENO: result: no" >&5
18336$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018337
18338fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018339
18340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018341{ $as_echo "$as_me:$LINENO: checking for fdatasync" >&5
18342$as_echo_n "checking for fdatasync... " >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018343cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018344/* confdefs.h. */
18345_ACEOF
18346cat confdefs.h >>conftest.$ac_ext
18347cat >>conftest.$ac_ext <<_ACEOF
18348/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018349#include <unistd.h>
18350int
18351main ()
18352{
18353void *x=fdatasync
18354 ;
18355 return 0;
18356}
18357_ACEOF
18358rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018359if { (ac_try="$ac_compile"
18360case "(($ac_try" in
18361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362 *) ac_try_echo=$ac_try;;
18363esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18365$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018366 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018367 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018368 grep -v '^ *+' conftest.er1 >conftest.err
18369 rm -f conftest.er1
18370 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018372 (exit $ac_status); } && {
18373 test -z "$ac_c_werror_flag" ||
18374 test ! -s conftest.err
18375 } && test -s conftest.$ac_objext; then
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018376
18377cat >>confdefs.h <<\_ACEOF
18378#define HAVE_FDATASYNC 1
18379_ACEOF
18380
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018381 { $as_echo "$as_me:$LINENO: result: yes" >&5
18382$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018383else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018384 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018385sed 's/^/| /' conftest.$ac_ext >&5
18386
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018387 { $as_echo "$as_me:$LINENO: result: no" >&5
18388$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:20 +000018389
18390fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018391
18392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018393{ $as_echo "$as_me:$LINENO: checking for epoll" >&5
18394$as_echo_n "checking for epoll... " >&6; }
Christian Heimes0e9ab5f2008-03-21 23:49:44 +000018395cat >conftest.$ac_ext <<_ACEOF
18396/* confdefs.h. */
18397_ACEOF
18398cat confdefs.h >>conftest.$ac_ext
18399cat >>conftest.$ac_ext <<_ACEOF
18400/* end confdefs.h. */
18401#include <sys/epoll.h>
18402int
18403main ()
18404{
18405void *x=epoll_create
18406 ;
18407 return 0;
18408}
18409_ACEOF
18410rm -f conftest.$ac_objext
18411if { (ac_try="$ac_compile"
18412case "(($ac_try" in
18413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414 *) ac_try_echo=$ac_try;;
18415esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18417$as_echo "$ac_try_echo") >&5
Christian Heimes0e9ab5f2008-03-21 23:49:44 +000018418 (eval "$ac_compile") 2>conftest.er1
18419 ac_status=$?
18420 grep -v '^ *+' conftest.er1 >conftest.err
18421 rm -f conftest.er1
18422 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Christian Heimes0e9ab5f2008-03-21 23:49:44 +000018424 (exit $ac_status); } && {
18425 test -z "$ac_c_werror_flag" ||
18426 test ! -s conftest.err
18427 } && test -s conftest.$ac_objext; then
Martin v. Löwisc8ad7cc2002-11-11 13:23:45 +000018428
Christian Heimes0e9ab5f2008-03-21 23:49:44 +000018429cat >>confdefs.h <<\_ACEOF
18430#define HAVE_EPOLL 1
18431_ACEOF
18432
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018433 { $as_echo "$as_me:$LINENO: result: yes" >&5
18434$as_echo "yes" >&6; }
Christian Heimes0e9ab5f2008-03-21 23:49:44 +000018435else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018436 $as_echo "$as_me: failed program was:" >&5
Christian Heimes0e9ab5f2008-03-21 23:49:44 +000018437sed 's/^/| /' conftest.$ac_ext >&5
18438
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018439 { $as_echo "$as_me:$LINENO: result: no" >&5
18440$as_echo "no" >&6; }
Christian Heimes0e9ab5f2008-03-21 23:49:44 +000018441
18442fi
18443
18444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018445{ $as_echo "$as_me:$LINENO: checking for kqueue" >&5
18446$as_echo_n "checking for kqueue... " >&6; }
Christian Heimes0e9ab5f2008-03-21 23:49:44 +000018447cat >conftest.$ac_ext <<_ACEOF
18448/* confdefs.h. */
18449_ACEOF
18450cat confdefs.h >>conftest.$ac_ext
18451cat >>conftest.$ac_ext <<_ACEOF
18452/* end confdefs.h. */
18453
18454#include <sys/types.h>
18455#include <sys/event.h>
18456
18457int
18458main ()
18459{
18460int x=kqueue()
18461 ;
18462 return 0;
18463}
18464_ACEOF
18465rm -f conftest.$ac_objext
18466if { (ac_try="$ac_compile"
18467case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18470esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18472$as_echo "$ac_try_echo") >&5
Christian Heimes0e9ab5f2008-03-21 23:49:44 +000018473 (eval "$ac_compile") 2>conftest.er1
18474 ac_status=$?
18475 grep -v '^ *+' conftest.er1 >conftest.err
18476 rm -f conftest.er1
18477 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Christian Heimes0e9ab5f2008-03-21 23:49:44 +000018479 (exit $ac_status); } && {
18480 test -z "$ac_c_werror_flag" ||
18481 test ! -s conftest.err
18482 } && test -s conftest.$ac_objext; then
18483
18484cat >>confdefs.h <<\_ACEOF
18485#define HAVE_KQUEUE 1
18486_ACEOF
18487
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018488 { $as_echo "$as_me:$LINENO: result: yes" >&5
18489$as_echo "yes" >&6; }
Christian Heimes0e9ab5f2008-03-21 23:49:44 +000018490else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018491 $as_echo "$as_me: failed program was:" >&5
Christian Heimes0e9ab5f2008-03-21 23:49:44 +000018492sed 's/^/| /' conftest.$ac_ext >&5
18493
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018494 { $as_echo "$as_me:$LINENO: result: no" >&5
18495$as_echo "no" >&6; }
Christian Heimes0e9ab5f2008-03-21 23:49:44 +000018496
18497fi
18498
18499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd5843682002-11-21 20:41:28 +000018500# On some systems (eg. FreeBSD 5), we would find a definition of the
18501# functions ctermid_r, setgroups in the library, but no prototype
18502# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
18503# address to avoid compiler warnings and potential miscompilations
18504# because of the missing prototypes.
18505
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018506{ $as_echo "$as_me:$LINENO: checking for ctermid_r" >&5
18507$as_echo_n "checking for ctermid_r... " >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000018508cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018509/* confdefs.h. */
18510_ACEOF
18511cat confdefs.h >>conftest.$ac_ext
18512cat >>conftest.$ac_ext <<_ACEOF
18513/* end confdefs.h. */
Martin v. Löwisd5843682002-11-21 20:41:28 +000018514
18515#include "confdefs.h"
18516#include <stdio.h>
18517
Martin v. Löwisd5843682002-11-21 20:41:28 +000018518int
18519main ()
18520{
18521void* p = ctermid_r
18522 ;
18523 return 0;
18524}
18525_ACEOF
18526rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018527if { (ac_try="$ac_compile"
18528case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18531esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18533$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018534 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisd5843682002-11-21 20:41:28 +000018535 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018536 grep -v '^ *+' conftest.er1 >conftest.err
18537 rm -f conftest.er1
18538 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018540 (exit $ac_status); } && {
18541 test -z "$ac_c_werror_flag" ||
18542 test ! -s conftest.err
18543 } && test -s conftest.$ac_objext; then
Martin v. Löwisd5843682002-11-21 20:41:28 +000018544
18545cat >>confdefs.h <<\_ACEOF
18546#define HAVE_CTERMID_R 1
18547_ACEOF
18548
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018549 { $as_echo "$as_me:$LINENO: result: yes" >&5
18550$as_echo "yes" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000018551else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018552 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018553sed 's/^/| /' conftest.$ac_ext >&5
18554
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018555 { $as_echo "$as_me:$LINENO: result: no" >&5
18556$as_echo "no" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000018557
18558fi
Martin v. Löwisd5843682002-11-21 20:41:28 +000018559
Martin v. Löwiseba40652007-08-30 20:10:57 +000018560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18561
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018562{ $as_echo "$as_me:$LINENO: checking for flock" >&5
18563$as_echo_n "checking for flock... " >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000018564cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018565/* confdefs.h. */
18566_ACEOF
18567cat confdefs.h >>conftest.$ac_ext
18568cat >>conftest.$ac_ext <<_ACEOF
18569/* end confdefs.h. */
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000018570
18571#include "confdefs.h"
18572#include <sys/file.h>
18573
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000018574int
18575main ()
18576{
18577void* p = flock
18578 ;
18579 return 0;
18580}
18581_ACEOF
18582rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018583if { (ac_try="$ac_compile"
18584case "(($ac_try" in
18585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18586 *) ac_try_echo=$ac_try;;
18587esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18589$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018590 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000018591 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018592 grep -v '^ *+' conftest.er1 >conftest.err
18593 rm -f conftest.er1
18594 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018596 (exit $ac_status); } && {
18597 test -z "$ac_c_werror_flag" ||
18598 test ! -s conftest.err
18599 } && test -s conftest.$ac_objext; then
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000018600
18601cat >>confdefs.h <<\_ACEOF
18602#define HAVE_FLOCK 1
18603_ACEOF
18604
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018605 { $as_echo "$as_me:$LINENO: result: yes" >&5
18606$as_echo "yes" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000018607else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018608 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018609sed 's/^/| /' conftest.$ac_ext >&5
18610
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018611 { $as_echo "$as_me:$LINENO: result: no" >&5
18612$as_echo "no" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000018613
18614fi
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000018615
Martin v. Löwiseba40652007-08-30 20:10:57 +000018616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18617
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018618{ $as_echo "$as_me:$LINENO: checking for getpagesize" >&5
18619$as_echo_n "checking for getpagesize... " >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000018620cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018621/* confdefs.h. */
18622_ACEOF
18623cat confdefs.h >>conftest.$ac_ext
18624cat >>conftest.$ac_ext <<_ACEOF
18625/* end confdefs.h. */
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000018626
18627#include "confdefs.h"
18628#include <unistd.h>
18629
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000018630int
18631main ()
18632{
18633void* p = getpagesize
18634 ;
18635 return 0;
18636}
18637_ACEOF
18638rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018639if { (ac_try="$ac_compile"
18640case "(($ac_try" in
18641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642 *) ac_try_echo=$ac_try;;
18643esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18645$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018646 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000018647 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018648 grep -v '^ *+' conftest.er1 >conftest.err
18649 rm -f conftest.er1
18650 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018652 (exit $ac_status); } && {
18653 test -z "$ac_c_werror_flag" ||
18654 test ! -s conftest.err
18655 } && test -s conftest.$ac_objext; then
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000018656
18657cat >>confdefs.h <<\_ACEOF
18658#define HAVE_GETPAGESIZE 1
18659_ACEOF
18660
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018661 { $as_echo "$as_me:$LINENO: result: yes" >&5
18662$as_echo "yes" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000018663else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018664 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018665sed 's/^/| /' conftest.$ac_ext >&5
18666
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018667 { $as_echo "$as_me:$LINENO: result: no" >&5
18668$as_echo "no" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000018669
18670fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018671
18672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisf26d63b2003-03-30 17:23:49 +000018673
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000018674for ac_prog in true
18675do
18676 # Extract the first word of "$ac_prog", so it can be a program name with args.
18677set dummy $ac_prog; ac_word=$2
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018678{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18679$as_echo_n "checking for $ac_word... " >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000018680if test "${ac_cv_prog_TRUE+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018681 $as_echo_n "(cached) " >&6
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000018682else
18683 if test -n "$TRUE"; then
18684 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
18685else
18686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18687for as_dir in $PATH
18688do
18689 IFS=$as_save_IFS
18690 test -z "$as_dir" && as_dir=.
18691 for ac_exec_ext in '' $ac_executable_extensions; do
Martin v. Löwiseba40652007-08-30 20:10:57 +000018692 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 +000018693 ac_cv_prog_TRUE="$ac_prog"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000018695 break 2
18696 fi
18697done
18698done
Martin v. Löwiseba40652007-08-30 20:10:57 +000018699IFS=$as_save_IFS
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000018700
18701fi
18702fi
18703TRUE=$ac_cv_prog_TRUE
18704if test -n "$TRUE"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018705 { $as_echo "$as_me:$LINENO: result: $TRUE" >&5
18706$as_echo "$TRUE" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000018707else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018708 { $as_echo "$as_me:$LINENO: result: no" >&5
18709$as_echo "no" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000018710fi
18711
Martin v. Löwiseba40652007-08-30 20:10:57 +000018712
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000018713 test -n "$TRUE" && break
18714done
18715test -n "$TRUE" || TRUE="/bin/true"
18716
18717
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018718{ $as_echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
18719$as_echo_n "checking for inet_aton in -lc... " >&6; }
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018720if test "${ac_cv_lib_c_inet_aton+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018721 $as_echo_n "(cached) " >&6
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018722else
18723 ac_check_lib_save_LIBS=$LIBS
18724LIBS="-lc $LIBS"
18725cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018726/* confdefs.h. */
18727_ACEOF
18728cat confdefs.h >>conftest.$ac_ext
18729cat >>conftest.$ac_ext <<_ACEOF
18730/* end confdefs.h. */
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018731
Martin v. Löwiseba40652007-08-30 20:10:57 +000018732/* Override any GCC internal prototype to avoid an error.
18733 Use char because int might match the return type of a GCC
18734 builtin and then its argument prototype would still apply. */
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018735#ifdef __cplusplus
18736extern "C"
18737#endif
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018738char inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018739int
18740main ()
18741{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018742return inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018743 ;
18744 return 0;
18745}
18746_ACEOF
18747rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018748if { (ac_try="$ac_link"
18749case "(($ac_try" in
18750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751 *) ac_try_echo=$ac_try;;
18752esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18754$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018755 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018756 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018757 grep -v '^ *+' conftest.er1 >conftest.err
18758 rm -f conftest.er1
18759 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018761 (exit $ac_status); } && {
18762 test -z "$ac_c_werror_flag" ||
18763 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018764 } && test -s conftest$ac_exeext && {
18765 test "$cross_compiling" = yes ||
18766 $as_test_x conftest$ac_exeext
18767 }; then
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018768 ac_cv_lib_c_inet_aton=yes
18769else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018770 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018771sed 's/^/| /' conftest.$ac_ext >&5
18772
Martin v. Löwiseba40652007-08-30 20:10:57 +000018773 ac_cv_lib_c_inet_aton=no
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018774fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018775
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018776rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000018777rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018778 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018779LIBS=$ac_check_lib_save_LIBS
18780fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018781{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
18782$as_echo "$ac_cv_lib_c_inet_aton" >&6; }
18783if test "x$ac_cv_lib_c_inet_aton" = x""yes; then
Martin v. Löwis4ee6eef2003-05-26 05:37:51 +000018784 $ac_cv_prog_TRUE
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018785else
18786
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018787{ $as_echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18788$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018789if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018790 $as_echo_n "(cached) " >&6
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018791else
18792 ac_check_lib_save_LIBS=$LIBS
18793LIBS="-lresolv $LIBS"
18794cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000018795/* confdefs.h. */
18796_ACEOF
18797cat confdefs.h >>conftest.$ac_ext
18798cat >>conftest.$ac_ext <<_ACEOF
18799/* end confdefs.h. */
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018800
Martin v. Löwiseba40652007-08-30 20:10:57 +000018801/* Override any GCC internal prototype to avoid an error.
18802 Use char because int might match the return type of a GCC
18803 builtin and then its argument prototype would still apply. */
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018804#ifdef __cplusplus
18805extern "C"
18806#endif
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018807char inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018808int
18809main ()
18810{
Martin v. Löwiseba40652007-08-30 20:10:57 +000018811return inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018812 ;
18813 return 0;
18814}
18815_ACEOF
18816rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000018817if { (ac_try="$ac_link"
18818case "(($ac_try" in
18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820 *) ac_try_echo=$ac_try;;
18821esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18823$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018824 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018825 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000018826 grep -v '^ *+' conftest.er1 >conftest.err
18827 rm -f conftest.er1
18828 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000018830 (exit $ac_status); } && {
18831 test -z "$ac_c_werror_flag" ||
18832 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018833 } && test -s conftest$ac_exeext && {
18834 test "$cross_compiling" = yes ||
18835 $as_test_x conftest$ac_exeext
18836 }; then
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018837 ac_cv_lib_resolv_inet_aton=yes
18838else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018839 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000018840sed 's/^/| /' conftest.$ac_ext >&5
18841
Martin v. Löwiseba40652007-08-30 20:10:57 +000018842 ac_cv_lib_resolv_inet_aton=no
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018843fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000018844
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018845rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000018846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000018847 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018848LIBS=$ac_check_lib_save_LIBS
18849fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018850{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18851$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
18852if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then
Martin v. Löwis95c419b2003-05-03 12:10:48 +000018853 cat >>confdefs.h <<_ACEOF
18854#define HAVE_LIBRESOLV 1
18855_ACEOF
18856
18857 LIBS="-lresolv $LIBS"
18858
18859fi
18860
18861
18862fi
18863
18864
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000018865# On Tru64, chflags seems to be present, but calling it will
18866# exit Python
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018867{ $as_echo "$as_me:$LINENO: checking for chflags" >&5
18868$as_echo_n "checking for chflags... " >&6; }
18869if test "${ac_cv_have_chflags+set}" = set; then
18870 $as_echo_n "(cached) " >&6
18871else
18872 if test "$cross_compiling" = yes; then
18873 ac_cv_have_chflags=no
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000018874else
18875 cat >conftest.$ac_ext <<_ACEOF
18876/* confdefs.h. */
18877_ACEOF
18878cat confdefs.h >>conftest.$ac_ext
18879cat >>conftest.$ac_ext <<_ACEOF
18880/* end confdefs.h. */
18881
18882#include <sys/stat.h>
18883#include <unistd.h>
18884int main(int argc, char*argv[])
18885{
18886 if(chflags(argv[0], 0) != 0)
18887 return 1;
18888 return 0;
18889}
18890
18891_ACEOF
18892rm -f conftest$ac_exeext
18893if { (ac_try="$ac_link"
18894case "(($ac_try" in
18895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896 *) ac_try_echo=$ac_try;;
18897esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18899$as_echo "$ac_try_echo") >&5
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000018900 (eval "$ac_link") 2>&5
18901 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000018903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18904 { (case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18907esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18909$as_echo "$ac_try_echo") >&5
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000018910 (eval "$ac_try") 2>&5
18911 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000018913 (exit $ac_status); }; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018914 ac_cv_have_chflags=yes
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000018915else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018916 $as_echo "$as_me: program exited with status $ac_status" >&5
18917$as_echo "$as_me: failed program was:" >&5
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000018918sed 's/^/| /' conftest.$ac_ext >&5
18919
18920( exit $ac_status )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018921ac_cv_have_chflags=no
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000018922fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018923rm -rf conftest.dSYM
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000018924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18925fi
18926
18927
18928
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018929fi
18930
18931{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
18932$as_echo "$ac_cv_have_chflags" >&6; }
18933if test $ac_cv_have_chflags = yes
18934then
18935
18936cat >>confdefs.h <<\_ACEOF
18937#define HAVE_CHFLAGS 1
18938_ACEOF
18939
18940fi
18941
18942{ $as_echo "$as_me:$LINENO: checking for lchflags" >&5
18943$as_echo_n "checking for lchflags... " >&6; }
18944if test "${ac_cv_have_lchflags+set}" = set; then
18945 $as_echo_n "(cached) " >&6
18946else
18947 if test "$cross_compiling" = yes; then
18948 ac_cv_have_lchflags=no
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000018949else
18950 cat >conftest.$ac_ext <<_ACEOF
18951/* confdefs.h. */
18952_ACEOF
18953cat confdefs.h >>conftest.$ac_ext
18954cat >>conftest.$ac_ext <<_ACEOF
18955/* end confdefs.h. */
18956
18957#include <sys/stat.h>
18958#include <unistd.h>
18959int main(int argc, char*argv[])
18960{
18961 if(lchflags(argv[0], 0) != 0)
18962 return 1;
18963 return 0;
18964}
18965
18966_ACEOF
18967rm -f conftest$ac_exeext
18968if { (ac_try="$ac_link"
18969case "(($ac_try" in
18970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971 *) ac_try_echo=$ac_try;;
18972esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18974$as_echo "$ac_try_echo") >&5
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000018975 (eval "$ac_link") 2>&5
18976 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000018978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18979 { (case "(($ac_try" in
18980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18981 *) ac_try_echo=$ac_try;;
18982esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18984$as_echo "$ac_try_echo") >&5
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000018985 (eval "$ac_try") 2>&5
18986 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000018988 (exit $ac_status); }; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000018989 ac_cv_have_lchflags=yes
18990else
18991 $as_echo "$as_me: program exited with status $ac_status" >&5
18992$as_echo "$as_me: failed program was:" >&5
18993sed 's/^/| /' conftest.$ac_ext >&5
18994
18995( exit $ac_status )
18996ac_cv_have_lchflags=no
18997fi
18998rm -rf conftest.dSYM
18999rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19000fi
19001
19002
19003
19004fi
19005
19006{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
19007$as_echo "$ac_cv_have_lchflags" >&6; }
19008if test $ac_cv_have_lchflags = yes
19009then
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000019010
19011cat >>confdefs.h <<\_ACEOF
19012#define HAVE_LCHFLAGS 1
19013_ACEOF
19014
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000019015fi
Martin v. Löwisa51d5c82007-12-04 08:37:59 +000019016
Ronald Oussorenf8752642006-07-06 10:13:35 +000019017case $ac_sys_system/$ac_sys_release in
19018Darwin/*)
19019 _CUR_CFLAGS="${CFLAGS}"
19020 _CUR_LDFLAGS="${LDFLAGS}"
19021 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
19022 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
19023 ;;
19024esac
19025
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019026{ $as_echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
19027$as_echo_n "checking for inflateCopy in -lz... " >&6; }
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000019028if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019029 $as_echo_n "(cached) " >&6
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000019030else
19031 ac_check_lib_save_LIBS=$LIBS
19032LIBS="-lz $LIBS"
19033cat >conftest.$ac_ext <<_ACEOF
19034/* confdefs.h. */
19035_ACEOF
19036cat confdefs.h >>conftest.$ac_ext
19037cat >>conftest.$ac_ext <<_ACEOF
19038/* end confdefs.h. */
19039
Martin v. Löwiseba40652007-08-30 20:10:57 +000019040/* Override any GCC internal prototype to avoid an error.
19041 Use char because int might match the return type of a GCC
19042 builtin and then its argument prototype would still apply. */
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000019043#ifdef __cplusplus
19044extern "C"
19045#endif
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000019046char inflateCopy ();
19047int
19048main ()
19049{
Martin v. Löwiseba40652007-08-30 20:10:57 +000019050return inflateCopy ();
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000019051 ;
19052 return 0;
19053}
19054_ACEOF
19055rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019056if { (ac_try="$ac_link"
19057case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19060esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19062$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019063 (eval "$ac_link") 2>conftest.er1
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000019064 ac_status=$?
19065 grep -v '^ *+' conftest.er1 >conftest.err
19066 rm -f conftest.er1
19067 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019069 (exit $ac_status); } && {
19070 test -z "$ac_c_werror_flag" ||
19071 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019072 } && test -s conftest$ac_exeext && {
19073 test "$cross_compiling" = yes ||
19074 $as_test_x conftest$ac_exeext
19075 }; then
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000019076 ac_cv_lib_z_inflateCopy=yes
19077else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019078 $as_echo "$as_me: failed program was:" >&5
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000019079sed 's/^/| /' conftest.$ac_ext >&5
19080
Martin v. Löwiseba40652007-08-30 20:10:57 +000019081 ac_cv_lib_z_inflateCopy=no
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000019082fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019083
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019084rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000019085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000019086 conftest$ac_exeext conftest.$ac_ext
19087LIBS=$ac_check_lib_save_LIBS
19088fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019089{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
19090$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
19091if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then
Neal Norwitz6e73aaa2006-06-12 03:33:09 +000019092
19093cat >>confdefs.h <<\_ACEOF
19094#define HAVE_ZLIB_COPY 1
19095_ACEOF
19096
19097fi
19098
19099
Ronald Oussorenf8752642006-07-06 10:13:35 +000019100case $ac_sys_system/$ac_sys_release in
19101Darwin/*)
19102 CFLAGS="${_CUR_CFLAGS}"
19103 LDFLAGS="${_CUR_LDFLAGS}"
19104 ;;
19105esac
19106
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019107{ $as_echo "$as_me:$LINENO: checking for hstrerror" >&5
19108$as_echo_n "checking for hstrerror... " >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000019109cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019110/* confdefs.h. */
19111_ACEOF
19112cat confdefs.h >>conftest.$ac_ext
19113cat >>conftest.$ac_ext <<_ACEOF
19114/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:45 +000019115
19116#include "confdefs.h"
19117#include <netdb.h>
19118
Martin v. Löwise9416172003-05-03 10:12:45 +000019119int
19120main ()
19121{
Martin v. Löwis95c419b2003-05-03 12:10:48 +000019122void* p = hstrerror; hstrerror(0)
Martin v. Löwise9416172003-05-03 10:12:45 +000019123 ;
19124 return 0;
19125}
19126_ACEOF
Martin v. Löwis95c419b2003-05-03 12:10:48 +000019127rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019128if { (ac_try="$ac_link"
19129case "(($ac_try" in
19130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131 *) ac_try_echo=$ac_try;;
19132esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19134$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019135 (eval "$ac_link") 2>conftest.er1
Martin v. Löwise9416172003-05-03 10:12:45 +000019136 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019141 (exit $ac_status); } && {
19142 test -z "$ac_c_werror_flag" ||
19143 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019144 } && test -s conftest$ac_exeext && {
19145 test "$cross_compiling" = yes ||
19146 $as_test_x conftest$ac_exeext
19147 }; then
Martin v. Löwise9416172003-05-03 10:12:45 +000019148
19149cat >>confdefs.h <<\_ACEOF
19150#define HAVE_HSTRERROR 1
19151_ACEOF
19152
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019153 { $as_echo "$as_me:$LINENO: result: yes" >&5
19154$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000019155else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019156 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019157sed 's/^/| /' conftest.$ac_ext >&5
19158
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019159 { $as_echo "$as_me:$LINENO: result: no" >&5
19160$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000019161
19162fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019163
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019164rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000019165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000019166 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwise9416172003-05-03 10:12:45 +000019167
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019168{ $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
19169$as_echo_n "checking for inet_aton... " >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000019170cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019171/* confdefs.h. */
19172_ACEOF
19173cat confdefs.h >>conftest.$ac_ext
19174cat >>conftest.$ac_ext <<_ACEOF
19175/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:45 +000019176
19177#include "confdefs.h"
Martin v. Löwis86d66262006-02-17 08:40:11 +000019178#include <sys/types.h>
Martin v. Löwise9416172003-05-03 10:12:45 +000019179#include <sys/socket.h>
19180#include <netinet/in.h>
19181#include <arpa/inet.h>
19182
Martin v. Löwise9416172003-05-03 10:12:45 +000019183int
19184main ()
19185{
Martin v. Löwis95c419b2003-05-03 12:10:48 +000019186void* p = inet_aton;inet_aton(0,0)
Martin v. Löwise9416172003-05-03 10:12:45 +000019187 ;
19188 return 0;
19189}
19190_ACEOF
Martin v. Löwis95c419b2003-05-03 12:10:48 +000019191rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019192if { (ac_try="$ac_link"
19193case "(($ac_try" in
19194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195 *) ac_try_echo=$ac_try;;
19196esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19198$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019199 (eval "$ac_link") 2>conftest.er1
Martin v. Löwise9416172003-05-03 10:12:45 +000019200 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019201 grep -v '^ *+' conftest.er1 >conftest.err
19202 rm -f conftest.er1
19203 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019205 (exit $ac_status); } && {
19206 test -z "$ac_c_werror_flag" ||
19207 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019208 } && test -s conftest$ac_exeext && {
19209 test "$cross_compiling" = yes ||
19210 $as_test_x conftest$ac_exeext
19211 }; then
Martin v. Löwise9416172003-05-03 10:12:45 +000019212
19213cat >>confdefs.h <<\_ACEOF
19214#define HAVE_INET_ATON 1
19215_ACEOF
19216
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019217 { $as_echo "$as_me:$LINENO: result: yes" >&5
19218$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000019219else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019220 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019221sed 's/^/| /' conftest.$ac_ext >&5
19222
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019223 { $as_echo "$as_me:$LINENO: result: no" >&5
19224$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000019225
19226fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019227
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019228rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000019229rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000019230 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwise9416172003-05-03 10:12:45 +000019231
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019232{ $as_echo "$as_me:$LINENO: checking for inet_pton" >&5
19233$as_echo_n "checking for inet_pton... " >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000019234cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019235/* confdefs.h. */
19236_ACEOF
19237cat confdefs.h >>conftest.$ac_ext
19238cat >>conftest.$ac_ext <<_ACEOF
19239/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:45 +000019240
19241#include "confdefs.h"
Martin v. Löwisf2e488d2003-05-05 22:00:11 +000019242#include <sys/types.h>
Martin v. Löwise9416172003-05-03 10:12:45 +000019243#include <sys/socket.h>
19244#include <netinet/in.h>
19245#include <arpa/inet.h>
19246
Martin v. Löwise9416172003-05-03 10:12:45 +000019247int
19248main ()
19249{
19250void* p = inet_pton
19251 ;
19252 return 0;
19253}
19254_ACEOF
19255rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019256if { (ac_try="$ac_compile"
19257case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19260esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19262$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019263 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwise9416172003-05-03 10:12:45 +000019264 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019265 grep -v '^ *+' conftest.er1 >conftest.err
19266 rm -f conftest.er1
19267 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019269 (exit $ac_status); } && {
19270 test -z "$ac_c_werror_flag" ||
19271 test ! -s conftest.err
19272 } && test -s conftest.$ac_objext; then
Martin v. Löwise9416172003-05-03 10:12:45 +000019273
19274cat >>confdefs.h <<\_ACEOF
19275#define HAVE_INET_PTON 1
19276_ACEOF
19277
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019278 { $as_echo "$as_me:$LINENO: result: yes" >&5
19279$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000019280else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019281 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019282sed 's/^/| /' conftest.$ac_ext >&5
19283
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019284 { $as_echo "$as_me:$LINENO: result: no" >&5
19285$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:45 +000019286
19287fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019288
19289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwise9416172003-05-03 10:12:45 +000019290
Martin v. Löwisd6640d42003-07-06 09:29:52 +000019291# On some systems, setgroups is in unistd.h, on others, in grp.h
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019292{ $as_echo "$as_me:$LINENO: checking for setgroups" >&5
19293$as_echo_n "checking for setgroups... " >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000019294cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019295/* confdefs.h. */
19296_ACEOF
19297cat confdefs.h >>conftest.$ac_ext
19298cat >>conftest.$ac_ext <<_ACEOF
19299/* end confdefs.h. */
Martin v. Löwisd5843682002-11-21 20:41:28 +000019300
19301#include "confdefs.h"
Martin v. Löwisf2e488d2003-05-05 22:00:11 +000019302#include <unistd.h>
Martin v. Löwisd6640d42003-07-06 09:29:52 +000019303#ifdef HAVE_GRP_H
19304#include <grp.h>
19305#endif
Martin v. Löwisd5843682002-11-21 20:41:28 +000019306
Martin v. Löwisd5843682002-11-21 20:41:28 +000019307int
19308main ()
19309{
19310void* p = setgroups
19311 ;
19312 return 0;
19313}
19314_ACEOF
19315rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019316if { (ac_try="$ac_compile"
19317case "(($ac_try" in
19318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19319 *) ac_try_echo=$ac_try;;
19320esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19322$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019323 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisd5843682002-11-21 20:41:28 +000019324 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019325 grep -v '^ *+' conftest.er1 >conftest.err
19326 rm -f conftest.er1
19327 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019329 (exit $ac_status); } && {
19330 test -z "$ac_c_werror_flag" ||
19331 test ! -s conftest.err
19332 } && test -s conftest.$ac_objext; then
Martin v. Löwisd5843682002-11-21 20:41:28 +000019333
19334cat >>confdefs.h <<\_ACEOF
19335#define HAVE_SETGROUPS 1
19336_ACEOF
19337
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019338 { $as_echo "$as_me:$LINENO: result: yes" >&5
19339$as_echo "yes" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000019340else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019341 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019342sed 's/^/| /' conftest.$ac_ext >&5
19343
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019344 { $as_echo "$as_me:$LINENO: result: no" >&5
19345$as_echo "no" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:28 +000019346
19347fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019348
19349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd5843682002-11-21 20:41:28 +000019350
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000019351# check for openpty and forkpty
19352
Martin v. Löwis11437992002-04-12 09:54:03 +000019353
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000019354for ac_func in openpty
19355do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019356as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19357{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19358$as_echo_n "checking for $ac_func... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000019359if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019360 $as_echo_n "(cached) " >&6
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000019361else
Martin v. Löwis11437992002-04-12 09:54:03 +000019362 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019363/* confdefs.h. */
19364_ACEOF
19365cat confdefs.h >>conftest.$ac_ext
19366cat >>conftest.$ac_ext <<_ACEOF
19367/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019368/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19370#define $ac_func innocuous_$ac_func
19371
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000019372/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000019373 which can conflict with char $ac_func (); below.
19374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019375 <limits.h> exists even on freestanding compilers. */
19376
19377#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000019378# include <limits.h>
19379#else
19380# include <assert.h>
19381#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019382
19383#undef $ac_func
19384
Martin v. Löwiseba40652007-08-30 20:10:57 +000019385/* Override any GCC internal prototype to avoid an error.
19386 Use char because int might match the return type of a GCC
19387 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000019388#ifdef __cplusplus
19389extern "C"
19390#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000019391char $ac_func ();
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000019392/* The GNU C library defines this for functions which it implements
19393 to always fail with ENOSYS. Some functions are actually named
19394 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000019395#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000019396choke me
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000019397#endif
19398
Skip Montanaro6dead952003-09-25 14:50:04 +000019399int
19400main ()
19401{
Martin v. Löwiseba40652007-08-30 20:10:57 +000019402return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000019403 ;
19404 return 0;
19405}
19406_ACEOF
19407rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019408if { (ac_try="$ac_link"
19409case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19412esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19414$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019415 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019416 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019417 grep -v '^ *+' conftest.er1 >conftest.err
19418 rm -f conftest.er1
19419 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019421 (exit $ac_status); } && {
19422 test -z "$ac_c_werror_flag" ||
19423 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019424 } && test -s conftest$ac_exeext && {
19425 test "$cross_compiling" = yes ||
19426 $as_test_x conftest$ac_exeext
19427 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019428 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000019429else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019430 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019431sed 's/^/| /' conftest.$ac_ext >&5
19432
Martin v. Löwiseba40652007-08-30 20:10:57 +000019433 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000019434fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019435
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019436rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000019437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000019438 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000019439fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019440ac_res=`eval 'as_val=${'$as_ac_var'}
19441 $as_echo "$as_val"'`
19442 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19443$as_echo "$ac_res" >&6; }
19444as_val=`eval 'as_val=${'$as_ac_var'}
19445 $as_echo "$as_val"'`
19446 if test "x$as_val" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019447 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019448#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:03 +000019449_ACEOF
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000019450
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000019451else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019452 { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
19453$as_echo_n "checking for openpty in -lutil... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019454if test "${ac_cv_lib_util_openpty+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019455 $as_echo_n "(cached) " >&6
Fred Drake8cef4cf2000-06-28 16:40:38 +000019456else
Martin v. Löwis11437992002-04-12 09:54:03 +000019457 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000019458LIBS="-lutil $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000019459cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019460/* confdefs.h. */
19461_ACEOF
19462cat confdefs.h >>conftest.$ac_ext
19463cat >>conftest.$ac_ext <<_ACEOF
19464/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000019465
Martin v. Löwiseba40652007-08-30 20:10:57 +000019466/* Override any GCC internal prototype to avoid an error.
19467 Use char because int might match the return type of a GCC
19468 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000019469#ifdef __cplusplus
19470extern "C"
19471#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000019472char openpty ();
Martin v. Löwis11437992002-04-12 09:54:03 +000019473int
19474main ()
19475{
Martin v. Löwiseba40652007-08-30 20:10:57 +000019476return openpty ();
Martin v. Löwis11437992002-04-12 09:54:03 +000019477 ;
19478 return 0;
19479}
19480_ACEOF
19481rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019482if { (ac_try="$ac_link"
19483case "(($ac_try" in
19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485 *) ac_try_echo=$ac_try;;
19486esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19488$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019489 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019490 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019491 grep -v '^ *+' conftest.er1 >conftest.err
19492 rm -f conftest.er1
19493 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019495 (exit $ac_status); } && {
19496 test -z "$ac_c_werror_flag" ||
19497 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019498 } && test -s conftest$ac_exeext && {
19499 test "$cross_compiling" = yes ||
19500 $as_test_x conftest$ac_exeext
19501 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019502 ac_cv_lib_util_openpty=yes
Fred Drake8cef4cf2000-06-28 16:40:38 +000019503else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019504 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019505sed 's/^/| /' conftest.$ac_ext >&5
19506
Martin v. Löwiseba40652007-08-30 20:10:57 +000019507 ac_cv_lib_util_openpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000019508fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019509
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019510rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000019511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000019512 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000019513LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000019514fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019515{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
19516$as_echo "$ac_cv_lib_util_openpty" >&6; }
19517if test "x$ac_cv_lib_util_openpty" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019518 cat >>confdefs.h <<\_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000019519#define HAVE_OPENPTY 1
Martin v. Löwis11437992002-04-12 09:54:03 +000019520_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000019521 LIBS="$LIBS -lutil"
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019522else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019523 { $as_echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
19524$as_echo_n "checking for openpty in -lbsd... " >&6; }
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019525if test "${ac_cv_lib_bsd_openpty+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019526 $as_echo_n "(cached) " >&6
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019527else
19528 ac_check_lib_save_LIBS=$LIBS
19529LIBS="-lbsd $LIBS"
19530cat >conftest.$ac_ext <<_ACEOF
19531/* confdefs.h. */
19532_ACEOF
19533cat confdefs.h >>conftest.$ac_ext
19534cat >>conftest.$ac_ext <<_ACEOF
19535/* end confdefs.h. */
19536
Martin v. Löwiseba40652007-08-30 20:10:57 +000019537/* Override any GCC internal prototype to avoid an error.
19538 Use char because int might match the return type of a GCC
19539 builtin and then its argument prototype would still apply. */
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019540#ifdef __cplusplus
19541extern "C"
19542#endif
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019543char openpty ();
19544int
19545main ()
19546{
Martin v. Löwiseba40652007-08-30 20:10:57 +000019547return openpty ();
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019548 ;
19549 return 0;
19550}
19551_ACEOF
19552rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019553if { (ac_try="$ac_link"
19554case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19557esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19559$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019560 (eval "$ac_link") 2>conftest.er1
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019561 ac_status=$?
19562 grep -v '^ *+' conftest.er1 >conftest.err
19563 rm -f conftest.er1
19564 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019566 (exit $ac_status); } && {
19567 test -z "$ac_c_werror_flag" ||
19568 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019569 } && test -s conftest$ac_exeext && {
19570 test "$cross_compiling" = yes ||
19571 $as_test_x conftest$ac_exeext
19572 }; then
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019573 ac_cv_lib_bsd_openpty=yes
19574else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019575 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019576sed 's/^/| /' conftest.$ac_ext >&5
19577
Martin v. Löwiseba40652007-08-30 20:10:57 +000019578 ac_cv_lib_bsd_openpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000019579fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019580
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019581rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000019582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019583 conftest$ac_exeext conftest.$ac_ext
19584LIBS=$ac_check_lib_save_LIBS
19585fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019586{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
19587$as_echo "$ac_cv_lib_bsd_openpty" >&6; }
19588if test "x$ac_cv_lib_bsd_openpty" = x""yes; then
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019589 cat >>confdefs.h <<\_ACEOF
19590#define HAVE_OPENPTY 1
19591_ACEOF
19592 LIBS="$LIBS -lbsd"
19593fi
19594
19595
19596fi
19597
Fred Drake8cef4cf2000-06-28 16:40:38 +000019598
19599fi
19600done
19601
Martin v. Löwis11437992002-04-12 09:54:03 +000019602
Fred Drake8cef4cf2000-06-28 16:40:38 +000019603for ac_func in forkpty
19604do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019605as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19606{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19607$as_echo_n "checking for $ac_func... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000019608if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019609 $as_echo_n "(cached) " >&6
Fred Drake8cef4cf2000-06-28 16:40:38 +000019610else
Martin v. Löwis11437992002-04-12 09:54:03 +000019611 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019612/* confdefs.h. */
19613_ACEOF
19614cat confdefs.h >>conftest.$ac_ext
19615cat >>conftest.$ac_ext <<_ACEOF
19616/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019617/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19619#define $ac_func innocuous_$ac_func
19620
Fred Drake8cef4cf2000-06-28 16:40:38 +000019621/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000019622 which can conflict with char $ac_func (); below.
19623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019624 <limits.h> exists even on freestanding compilers. */
19625
19626#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000019627# include <limits.h>
19628#else
19629# include <assert.h>
19630#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019631
19632#undef $ac_func
19633
Martin v. Löwiseba40652007-08-30 20:10:57 +000019634/* Override any GCC internal prototype to avoid an error.
19635 Use char because int might match the return type of a GCC
19636 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000019637#ifdef __cplusplus
19638extern "C"
19639#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000019640char $ac_func ();
Fred Drake8cef4cf2000-06-28 16:40:38 +000019641/* The GNU C library defines this for functions which it implements
19642 to always fail with ENOSYS. Some functions are actually named
19643 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000019644#if defined __stub_$ac_func || defined __stub___$ac_func
Fred Drake8cef4cf2000-06-28 16:40:38 +000019645choke me
Fred Drake8cef4cf2000-06-28 16:40:38 +000019646#endif
19647
Skip Montanaro6dead952003-09-25 14:50:04 +000019648int
19649main ()
19650{
Martin v. Löwiseba40652007-08-30 20:10:57 +000019651return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000019652 ;
19653 return 0;
19654}
19655_ACEOF
19656rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019657if { (ac_try="$ac_link"
19658case "(($ac_try" in
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19661esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19663$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019664 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019665 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019666 grep -v '^ *+' conftest.er1 >conftest.err
19667 rm -f conftest.er1
19668 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019670 (exit $ac_status); } && {
19671 test -z "$ac_c_werror_flag" ||
19672 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019673 } && test -s conftest$ac_exeext && {
19674 test "$cross_compiling" = yes ||
19675 $as_test_x conftest$ac_exeext
19676 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019677 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000019678else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019679 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019680sed 's/^/| /' conftest.$ac_ext >&5
19681
Martin v. Löwiseba40652007-08-30 20:10:57 +000019682 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000019683fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019684
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019685rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000019686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000019687 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000019688fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019689ac_res=`eval 'as_val=${'$as_ac_var'}
19690 $as_echo "$as_val"'`
19691 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19692$as_echo "$ac_res" >&6; }
19693as_val=`eval 'as_val=${'$as_ac_var'}
19694 $as_echo "$as_val"'`
19695 if test "x$as_val" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019696 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019697#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:03 +000019698_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000019699
Fred Drake8cef4cf2000-06-28 16:40:38 +000019700else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019701 { $as_echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19702$as_echo_n "checking for forkpty in -lutil... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000019703if test "${ac_cv_lib_util_forkpty+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019704 $as_echo_n "(cached) " >&6
Fred Drake8cef4cf2000-06-28 16:40:38 +000019705else
Martin v. Löwis11437992002-04-12 09:54:03 +000019706 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000019707LIBS="-lutil $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000019708cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019709/* confdefs.h. */
19710_ACEOF
19711cat confdefs.h >>conftest.$ac_ext
19712cat >>conftest.$ac_ext <<_ACEOF
19713/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000019714
Martin v. Löwiseba40652007-08-30 20:10:57 +000019715/* Override any GCC internal prototype to avoid an error.
19716 Use char because int might match the return type of a GCC
19717 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000019718#ifdef __cplusplus
19719extern "C"
19720#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000019721char forkpty ();
Martin v. Löwis11437992002-04-12 09:54:03 +000019722int
19723main ()
19724{
Martin v. Löwiseba40652007-08-30 20:10:57 +000019725return forkpty ();
Martin v. Löwis11437992002-04-12 09:54:03 +000019726 ;
19727 return 0;
19728}
19729_ACEOF
19730rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019731if { (ac_try="$ac_link"
19732case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19737$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019738 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000019739 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000019740 grep -v '^ *+' conftest.er1 >conftest.err
19741 rm -f conftest.er1
19742 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019747 } && test -s conftest$ac_exeext && {
19748 test "$cross_compiling" = yes ||
19749 $as_test_x conftest$ac_exeext
19750 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019751 ac_cv_lib_util_forkpty=yes
Fred Drake8cef4cf2000-06-28 16:40:38 +000019752else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019753 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000019754sed 's/^/| /' conftest.$ac_ext >&5
19755
Martin v. Löwiseba40652007-08-30 20:10:57 +000019756 ac_cv_lib_util_forkpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000019757fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019758
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019759rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000019760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000019761 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000019762LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000019763fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019764{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19765$as_echo "$ac_cv_lib_util_forkpty" >&6; }
19766if test "x$ac_cv_lib_util_forkpty" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000019767 cat >>confdefs.h <<\_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000019768#define HAVE_FORKPTY 1
Martin v. Löwis11437992002-04-12 09:54:03 +000019769_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000019770 LIBS="$LIBS -lutil"
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019771else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019772 { $as_echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
19773$as_echo_n "checking for forkpty in -lbsd... " >&6; }
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019774if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019775 $as_echo_n "(cached) " >&6
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019776else
19777 ac_check_lib_save_LIBS=$LIBS
19778LIBS="-lbsd $LIBS"
19779cat >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
Martin v. Löwiseba40652007-08-30 20:10:57 +000019786/* Override any GCC internal prototype to avoid an error.
19787 Use char because int might match the return type of a GCC
19788 builtin and then its argument prototype would still apply. */
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019789#ifdef __cplusplus
19790extern "C"
19791#endif
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019792char forkpty ();
19793int
19794main ()
19795{
Martin v. Löwiseba40652007-08-30 20:10:57 +000019796return forkpty ();
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019797 ;
19798 return 0;
19799}
19800_ACEOF
19801rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000019802if { (ac_try="$ac_link"
19803case "(($ac_try" in
19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805 *) ac_try_echo=$ac_try;;
19806esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19808$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019809 (eval "$ac_link") 2>conftest.er1
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019810 ac_status=$?
19811 grep -v '^ *+' conftest.er1 >conftest.err
19812 rm -f conftest.er1
19813 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000019815 (exit $ac_status); } && {
19816 test -z "$ac_c_werror_flag" ||
19817 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019818 } && test -s conftest$ac_exeext && {
19819 test "$cross_compiling" = yes ||
19820 $as_test_x conftest$ac_exeext
19821 }; then
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019822 ac_cv_lib_bsd_forkpty=yes
19823else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019824 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019825sed 's/^/| /' conftest.$ac_ext >&5
19826
Martin v. Löwiseba40652007-08-30 20:10:57 +000019827 ac_cv_lib_bsd_forkpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000019828fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000019829
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019830rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000019831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019832 conftest$ac_exeext conftest.$ac_ext
19833LIBS=$ac_check_lib_save_LIBS
19834fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019835{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
19836$as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
19837if test "x$ac_cv_lib_bsd_forkpty" = x""yes; then
Martin v. Löwisfd9a72a2006-01-08 10:07:33 +000019838 cat >>confdefs.h <<\_ACEOF
19839#define HAVE_FORKPTY 1
19840_ACEOF
19841 LIBS="$LIBS -lbsd"
19842fi
19843
19844
19845fi
19846
Fred Drake8cef4cf2000-06-28 16:40:38 +000019847
19848fi
19849done
19850
Jack Jansendd19cf82001-12-06 22:36:17 +000019851
Brett Cannonaa5778d2008-03-18 04:09:00 +000019852# Stuff for expat.
19853
19854for ac_func in memmove
19855do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019856as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19857{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19858$as_echo_n "checking for $ac_func... " >&6; }
Brett Cannonaa5778d2008-03-18 04:09:00 +000019859if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019860 $as_echo_n "(cached) " >&6
Brett Cannonaa5778d2008-03-18 04:09:00 +000019861else
19862 cat >conftest.$ac_ext <<_ACEOF
19863/* confdefs.h. */
19864_ACEOF
19865cat confdefs.h >>conftest.$ac_ext
19866cat >>conftest.$ac_ext <<_ACEOF
19867/* end confdefs.h. */
19868/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19870#define $ac_func innocuous_$ac_func
19871
19872/* System header to define __stub macros and hopefully few prototypes,
19873 which can conflict with char $ac_func (); below.
19874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19875 <limits.h> exists even on freestanding compilers. */
19876
19877#ifdef __STDC__
19878# include <limits.h>
19879#else
19880# include <assert.h>
19881#endif
19882
19883#undef $ac_func
19884
19885/* Override any GCC internal prototype to avoid an error.
19886 Use char because int might match the return type of a GCC
19887 builtin and then its argument prototype would still apply. */
19888#ifdef __cplusplus
19889extern "C"
19890#endif
19891char $ac_func ();
19892/* The GNU C library defines this for functions which it implements
19893 to always fail with ENOSYS. Some functions are actually named
19894 something starting with __ and the normal name is an alias. */
19895#if defined __stub_$ac_func || defined __stub___$ac_func
19896choke me
19897#endif
19898
19899int
19900main ()
19901{
19902return $ac_func ();
19903 ;
19904 return 0;
19905}
19906_ACEOF
19907rm -f conftest.$ac_objext conftest$ac_exeext
19908if { (ac_try="$ac_link"
19909case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19912esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19914$as_echo "$ac_try_echo") >&5
Brett Cannonaa5778d2008-03-18 04:09:00 +000019915 (eval "$ac_link") 2>conftest.er1
19916 ac_status=$?
19917 grep -v '^ *+' conftest.er1 >conftest.err
19918 rm -f conftest.er1
19919 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Brett Cannonaa5778d2008-03-18 04:09:00 +000019921 (exit $ac_status); } && {
19922 test -z "$ac_c_werror_flag" ||
19923 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019924 } && test -s conftest$ac_exeext && {
19925 test "$cross_compiling" = yes ||
19926 $as_test_x conftest$ac_exeext
19927 }; then
Brett Cannonaa5778d2008-03-18 04:09:00 +000019928 eval "$as_ac_var=yes"
19929else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019930 $as_echo "$as_me: failed program was:" >&5
Brett Cannonaa5778d2008-03-18 04:09:00 +000019931sed 's/^/| /' conftest.$ac_ext >&5
19932
19933 eval "$as_ac_var=no"
19934fi
19935
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019936rm -rf conftest.dSYM
Brett Cannonaa5778d2008-03-18 04:09:00 +000019937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19938 conftest$ac_exeext conftest.$ac_ext
19939fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019940ac_res=`eval 'as_val=${'$as_ac_var'}
19941 $as_echo "$as_val"'`
19942 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19943$as_echo "$ac_res" >&6; }
19944as_val=`eval 'as_val=${'$as_ac_var'}
19945 $as_echo "$as_val"'`
19946 if test "x$as_val" = x""yes; then
Brett Cannonaa5778d2008-03-18 04:09:00 +000019947 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019948#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Brett Cannonaa5778d2008-03-18 04:09:00 +000019949_ACEOF
19950
19951fi
19952done
19953
19954
Michael W. Hudson54241132001-12-07 15:38:26 +000019955# check for long file support functions
Martin v. Löwis11437992002-04-12 09:54:03 +000019956
19957
19958
19959
19960
19961
Fred Drake8cef4cf2000-06-28 16:40:38 +000019962for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
19963do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019964as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19965{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19966$as_echo_n "checking for $ac_func... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000019967if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000019968 $as_echo_n "(cached) " >&6
Guido van Rossumf98e2a71999-01-06 18:53:34 +000019969else
Martin v. Löwis11437992002-04-12 09:54:03 +000019970 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000019971/* confdefs.h. */
19972_ACEOF
19973cat confdefs.h >>conftest.$ac_ext
19974cat >>conftest.$ac_ext <<_ACEOF
19975/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019976/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19978#define $ac_func innocuous_$ac_func
19979
Guido van Rossumf98e2a71999-01-06 18:53:34 +000019980/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000019981 which can conflict with char $ac_func (); below.
19982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019983 <limits.h> exists even on freestanding compilers. */
19984
19985#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000019986# include <limits.h>
19987#else
19988# include <assert.h>
19989#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000019990
19991#undef $ac_func
19992
Martin v. Löwiseba40652007-08-30 20:10:57 +000019993/* Override any GCC internal prototype to avoid an error.
19994 Use char because int might match the return type of a GCC
19995 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000019996#ifdef __cplusplus
19997extern "C"
19998#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000019999char $ac_func ();
Guido van Rossumf98e2a71999-01-06 18:53:34 +000020000/* The GNU C library defines this for functions which it implements
20001 to always fail with ENOSYS. Some functions are actually named
20002 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000020003#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossumf98e2a71999-01-06 18:53:34 +000020004choke me
Guido van Rossumf98e2a71999-01-06 18:53:34 +000020005#endif
20006
Skip Montanaro6dead952003-09-25 14:50:04 +000020007int
20008main ()
20009{
Martin v. Löwiseba40652007-08-30 20:10:57 +000020010return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000020011 ;
20012 return 0;
20013}
20014_ACEOF
20015rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020016if { (ac_try="$ac_link"
20017case "(($ac_try" in
20018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019 *) ac_try_echo=$ac_try;;
20020esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020021eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20022$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020023 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020024 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020025 grep -v '^ *+' conftest.er1 >conftest.err
20026 rm -f conftest.er1
20027 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020029 (exit $ac_status); } && {
20030 test -z "$ac_c_werror_flag" ||
20031 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020032 } && test -s conftest$ac_exeext && {
20033 test "$cross_compiling" = yes ||
20034 $as_test_x conftest$ac_exeext
20035 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020036 eval "$as_ac_var=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020037else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020038 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020039sed 's/^/| /' conftest.$ac_ext >&5
20040
Martin v. Löwiseba40652007-08-30 20:10:57 +000020041 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000020042fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020043
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020044rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000020045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000020046 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000020047fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020048ac_res=`eval 'as_val=${'$as_ac_var'}
20049 $as_echo "$as_val"'`
20050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20051$as_echo "$ac_res" >&6; }
20052as_val=`eval 'as_val=${'$as_ac_var'}
20053 $as_echo "$as_val"'`
20054 if test "x$as_val" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020055 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020056#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020057_ACEOF
Michael W. Hudson54241132001-12-07 15:38:26 +000020058
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020059fi
Guido van Rossum627b2d71993-12-24 10:39:16 +000020060done
20061
Michael W. Hudson54241132001-12-07 15:38:26 +000020062
Martin v. Löwis11437992002-04-12 09:54:03 +000020063
20064
20065
Brett Cannonaa5778d2008-03-18 04:09:00 +000020066for ac_func in dup2 getcwd strdup
Thomas Wouters3a584202000-08-05 23:28:51 +000020067do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020068as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20069{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20070$as_echo_n "checking for $ac_func... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000020071if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020072 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020073else
Martin v. Löwis11437992002-04-12 09:54:03 +000020074 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020075/* confdefs.h. */
20076_ACEOF
20077cat confdefs.h >>conftest.$ac_ext
20078cat >>conftest.$ac_ext <<_ACEOF
20079/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20082#define $ac_func innocuous_$ac_func
20083
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000020084/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000020085 which can conflict with char $ac_func (); below.
20086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020087 <limits.h> exists even on freestanding compilers. */
20088
20089#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000020090# include <limits.h>
20091#else
20092# include <assert.h>
20093#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020094
20095#undef $ac_func
20096
Martin v. Löwiseba40652007-08-30 20:10:57 +000020097/* Override any GCC internal prototype to avoid an error.
20098 Use char because int might match the return type of a GCC
20099 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000020100#ifdef __cplusplus
20101extern "C"
20102#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000020103char $ac_func ();
Guido van Rossum627b2d71993-12-24 10:39:16 +000020104/* The GNU C library defines this for functions which it implements
20105 to always fail with ENOSYS. Some functions are actually named
20106 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000020107#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossum627b2d71993-12-24 10:39:16 +000020108choke me
Guido van Rossum627b2d71993-12-24 10:39:16 +000020109#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020110
Skip Montanaro6dead952003-09-25 14:50:04 +000020111int
20112main ()
20113{
Martin v. Löwiseba40652007-08-30 20:10:57 +000020114return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000020115 ;
20116 return 0;
20117}
20118_ACEOF
20119rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020120if { (ac_try="$ac_link"
20121case "(($ac_try" in
20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123 *) ac_try_echo=$ac_try;;
20124esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20126$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020127 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020128 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020129 grep -v '^ *+' conftest.er1 >conftest.err
20130 rm -f conftest.er1
20131 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020133 (exit $ac_status); } && {
20134 test -z "$ac_c_werror_flag" ||
20135 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020136 } && test -s conftest$ac_exeext && {
20137 test "$cross_compiling" = yes ||
20138 $as_test_x conftest$ac_exeext
20139 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020140 eval "$as_ac_var=yes"
Martin v. Löwis1142de32002-03-29 16:28:31 +000020141else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020142 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020143sed 's/^/| /' conftest.$ac_ext >&5
20144
Martin v. Löwiseba40652007-08-30 20:10:57 +000020145 eval "$as_ac_var=no"
Martin v. Löwis1142de32002-03-29 16:28:31 +000020146fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020147
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020148rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000020149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000020150 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis1142de32002-03-29 16:28:31 +000020151fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020152ac_res=`eval 'as_val=${'$as_ac_var'}
20153 $as_echo "$as_val"'`
20154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20155$as_echo "$ac_res" >&6; }
20156as_val=`eval 'as_val=${'$as_ac_var'}
20157 $as_echo "$as_val"'`
20158 if test "x$as_val" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020159 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020160#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020161_ACEOF
Martin v. Löwis1142de32002-03-29 16:28:31 +000020162
Martin v. Löwis1142de32002-03-29 16:28:31 +000020163else
Martin v. Löwiseba40652007-08-30 20:10:57 +000020164 case " $LIBOBJS " in
Skip Montanarof0d5f792004-08-15 14:08:23 +000020165 *" $ac_func.$ac_objext "* ) ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000020166 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20167 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000020168esac
20169
Martin v. Löwis1142de32002-03-29 16:28:31 +000020170fi
20171done
20172
20173
Martin v. Löwis11437992002-04-12 09:54:03 +000020174
Martin v. Löwis1142de32002-03-29 16:28:31 +000020175for ac_func in getpgrp
20176do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020177as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20178{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20179$as_echo_n "checking for $ac_func... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000020180if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020181 $as_echo_n "(cached) " >&6
Martin v. Löwis1142de32002-03-29 16:28:31 +000020182else
Martin v. Löwis11437992002-04-12 09:54:03 +000020183 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020184/* confdefs.h. */
20185_ACEOF
20186cat confdefs.h >>conftest.$ac_ext
20187cat >>conftest.$ac_ext <<_ACEOF
20188/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020189/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20191#define $ac_func innocuous_$ac_func
20192
Martin v. Löwis1142de32002-03-29 16:28:31 +000020193/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000020194 which can conflict with char $ac_func (); below.
20195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020196 <limits.h> exists even on freestanding compilers. */
20197
20198#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000020199# include <limits.h>
20200#else
20201# include <assert.h>
20202#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020203
20204#undef $ac_func
20205
Martin v. Löwiseba40652007-08-30 20:10:57 +000020206/* Override any GCC internal prototype to avoid an error.
20207 Use char because int might match the return type of a GCC
20208 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000020209#ifdef __cplusplus
20210extern "C"
20211#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000020212char $ac_func ();
Martin v. Löwis1142de32002-03-29 16:28:31 +000020213/* The GNU C library defines this for functions which it implements
20214 to always fail with ENOSYS. Some functions are actually named
20215 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000020216#if defined __stub_$ac_func || defined __stub___$ac_func
Martin v. Löwis1142de32002-03-29 16:28:31 +000020217choke me
Martin v. Löwis1142de32002-03-29 16:28:31 +000020218#endif
20219
Skip Montanaro6dead952003-09-25 14:50:04 +000020220int
20221main ()
20222{
Martin v. Löwiseba40652007-08-30 20:10:57 +000020223return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000020224 ;
20225 return 0;
20226}
20227_ACEOF
20228rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020229if { (ac_try="$ac_link"
20230case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20233esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20235$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020236 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020237 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020238 grep -v '^ *+' conftest.er1 >conftest.err
20239 rm -f conftest.er1
20240 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020242 (exit $ac_status); } && {
20243 test -z "$ac_c_werror_flag" ||
20244 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020245 } && test -s conftest$ac_exeext && {
20246 test "$cross_compiling" = yes ||
20247 $as_test_x conftest$ac_exeext
20248 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020249 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000020250else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020251 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020252sed 's/^/| /' conftest.$ac_ext >&5
20253
Martin v. Löwiseba40652007-08-30 20:10:57 +000020254 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000020255fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020256
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020257rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000020258rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000020259 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000020260fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020261ac_res=`eval 'as_val=${'$as_ac_var'}
20262 $as_echo "$as_val"'`
20263 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20264$as_echo "$ac_res" >&6; }
20265as_val=`eval 'as_val=${'$as_ac_var'}
20266 $as_echo "$as_val"'`
20267 if test "x$as_val" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020268 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020269#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020270_ACEOF
20271 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020272/* confdefs.h. */
20273_ACEOF
20274cat confdefs.h >>conftest.$ac_ext
20275cat >>conftest.$ac_ext <<_ACEOF
20276/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020277#include <unistd.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000020278int
20279main ()
20280{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020281getpgrp(0);
Martin v. Löwis11437992002-04-12 09:54:03 +000020282 ;
20283 return 0;
20284}
20285_ACEOF
20286rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020287if { (ac_try="$ac_compile"
20288case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20291esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20293$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020294 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020295 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020296 grep -v '^ *+' conftest.er1 >conftest.err
20297 rm -f conftest.er1
20298 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020300 (exit $ac_status); } && {
20301 test -z "$ac_c_werror_flag" ||
20302 test ! -s conftest.err
20303 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020304
20305cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020306#define GETPGRP_HAVE_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020307_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000020308
Martin v. Löwis11437992002-04-12 09:54:03 +000020309
Guido van Rossumf78abae1997-01-21 22:02:36 +000020310else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020311 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020312sed 's/^/| /' conftest.$ac_ext >&5
20313
Martin v. Löwiseba40652007-08-30 20:10:57 +000020314
Guido van Rossum627b2d71993-12-24 10:39:16 +000020315fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020316
20317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:49 +000020318
Guido van Rossum627b2d71993-12-24 10:39:16 +000020319fi
Thomas Wouters3a584202000-08-05 23:28:51 +000020320done
Guido van Rossum627b2d71993-12-24 10:39:16 +000020321
Jack Jansen150753c2003-03-29 22:07:47 +000020322
20323for ac_func in setpgrp
20324do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020325as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20326{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20327$as_echo_n "checking for $ac_func... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000020328if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020329 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020330else
Martin v. Löwis11437992002-04-12 09:54:03 +000020331 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020332/* confdefs.h. */
20333_ACEOF
20334cat confdefs.h >>conftest.$ac_ext
20335cat >>conftest.$ac_ext <<_ACEOF
20336/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20339#define $ac_func innocuous_$ac_func
20340
Jack Jansen150753c2003-03-29 22:07:47 +000020341/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000020342 which can conflict with char $ac_func (); below.
20343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020344 <limits.h> exists even on freestanding compilers. */
20345
20346#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000020347# include <limits.h>
20348#else
20349# include <assert.h>
20350#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020351
20352#undef $ac_func
20353
Martin v. Löwiseba40652007-08-30 20:10:57 +000020354/* Override any GCC internal prototype to avoid an error.
20355 Use char because int might match the return type of a GCC
20356 builtin and then its argument prototype would still apply. */
Jack Jansen150753c2003-03-29 22:07:47 +000020357#ifdef __cplusplus
20358extern "C"
Martin v. Löwis11437992002-04-12 09:54:03 +000020359#endif
Jack Jansen150753c2003-03-29 22:07:47 +000020360char $ac_func ();
Jack Jansen150753c2003-03-29 22:07:47 +000020361/* The GNU C library defines this for functions which it implements
20362 to always fail with ENOSYS. Some functions are actually named
20363 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000020364#if defined __stub_$ac_func || defined __stub___$ac_func
Jack Jansen150753c2003-03-29 22:07:47 +000020365choke me
Jack Jansen150753c2003-03-29 22:07:47 +000020366#endif
20367
Skip Montanaro6dead952003-09-25 14:50:04 +000020368int
20369main ()
20370{
Martin v. Löwiseba40652007-08-30 20:10:57 +000020371return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000020372 ;
20373 return 0;
20374}
20375_ACEOF
Jack Jansen150753c2003-03-29 22:07:47 +000020376rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020377if { (ac_try="$ac_link"
20378case "(($ac_try" in
20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380 *) ac_try_echo=$ac_try;;
20381esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20383$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020384 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020385 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020386 grep -v '^ *+' conftest.er1 >conftest.err
20387 rm -f conftest.er1
20388 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020390 (exit $ac_status); } && {
20391 test -z "$ac_c_werror_flag" ||
20392 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020393 } && test -s conftest$ac_exeext && {
20394 test "$cross_compiling" = yes ||
20395 $as_test_x conftest$ac_exeext
20396 }; then
Jack Jansen150753c2003-03-29 22:07:47 +000020397 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000020398else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020399 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020400sed 's/^/| /' conftest.$ac_ext >&5
20401
Martin v. Löwiseba40652007-08-30 20:10:57 +000020402 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000020403fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020404
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020405rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000020406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000020407 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000020408fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020409ac_res=`eval 'as_val=${'$as_ac_var'}
20410 $as_echo "$as_val"'`
20411 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20412$as_echo "$ac_res" >&6; }
20413as_val=`eval 'as_val=${'$as_ac_var'}
20414 $as_echo "$as_val"'`
20415 if test "x$as_val" = x""yes; then
Jack Jansen150753c2003-03-29 22:07:47 +000020416 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020417#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jack Jansen150753c2003-03-29 22:07:47 +000020418_ACEOF
20419 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020420/* confdefs.h. */
20421_ACEOF
20422cat confdefs.h >>conftest.$ac_ext
20423cat >>conftest.$ac_ext <<_ACEOF
20424/* end confdefs.h. */
Jack Jansen150753c2003-03-29 22:07:47 +000020425#include <unistd.h>
Jack Jansen150753c2003-03-29 22:07:47 +000020426int
20427main ()
20428{
20429setpgrp(0,0);
20430 ;
20431 return 0;
20432}
20433_ACEOF
20434rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020435if { (ac_try="$ac_compile"
20436case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20439esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20441$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020442 (eval "$ac_compile") 2>conftest.er1
Jack Jansen150753c2003-03-29 22:07:47 +000020443 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020444 grep -v '^ *+' conftest.er1 >conftest.err
20445 rm -f conftest.er1
20446 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020448 (exit $ac_status); } && {
20449 test -z "$ac_c_werror_flag" ||
20450 test ! -s conftest.err
20451 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020452
20453cat >>confdefs.h <<\_ACEOF
Jack Jansen150753c2003-03-29 22:07:47 +000020454#define SETPGRP_HAVE_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020455_ACEOF
Guido van Rossum8eee56f1994-10-20 22:18:37 +000020456
Jack Jansen150753c2003-03-29 22:07:47 +000020457
20458else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020459 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020460sed 's/^/| /' conftest.$ac_ext >&5
20461
Martin v. Löwiseba40652007-08-30 20:10:57 +000020462
Guido van Rossum8eee56f1994-10-20 22:18:37 +000020463fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020464
20465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jack Jansen150753c2003-03-29 22:07:47 +000020466
20467fi
20468done
Guido van Rossum8eee56f1994-10-20 22:18:37 +000020469
Martin v. Löwis11437992002-04-12 09:54:03 +000020470
Thomas Wouters3a584202000-08-05 23:28:51 +000020471for ac_func in gettimeofday
20472do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020473as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20474{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20475$as_echo_n "checking for $ac_func... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000020476if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020477 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020478else
Martin v. Löwis11437992002-04-12 09:54:03 +000020479 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020480/* confdefs.h. */
20481_ACEOF
20482cat confdefs.h >>conftest.$ac_ext
20483cat >>conftest.$ac_ext <<_ACEOF
20484/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020485/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20487#define $ac_func innocuous_$ac_func
20488
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000020489/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000020490 which can conflict with char $ac_func (); below.
20491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020492 <limits.h> exists even on freestanding compilers. */
20493
20494#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000020495# include <limits.h>
20496#else
20497# include <assert.h>
20498#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020499
20500#undef $ac_func
20501
Martin v. Löwiseba40652007-08-30 20:10:57 +000020502/* Override any GCC internal prototype to avoid an error.
20503 Use char because int might match the return type of a GCC
20504 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000020505#ifdef __cplusplus
20506extern "C"
20507#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000020508char $ac_func ();
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020509/* The GNU C library defines this for functions which it implements
20510 to always fail with ENOSYS. Some functions are actually named
20511 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000020512#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020513choke me
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020514#endif
20515
Skip Montanaro6dead952003-09-25 14:50:04 +000020516int
20517main ()
20518{
Martin v. Löwiseba40652007-08-30 20:10:57 +000020519return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000020520 ;
20521 return 0;
20522}
20523_ACEOF
20524rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020525if { (ac_try="$ac_link"
20526case "(($ac_try" in
20527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528 *) ac_try_echo=$ac_try;;
20529esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20531$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020532 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020533 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020534 grep -v '^ *+' conftest.er1 >conftest.err
20535 rm -f conftest.er1
20536 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020538 (exit $ac_status); } && {
20539 test -z "$ac_c_werror_flag" ||
20540 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020541 } && test -s conftest$ac_exeext && {
20542 test "$cross_compiling" = yes ||
20543 $as_test_x conftest$ac_exeext
20544 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020545 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000020546else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020547 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020548sed 's/^/| /' conftest.$ac_ext >&5
20549
Martin v. Löwiseba40652007-08-30 20:10:57 +000020550 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000020551fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020552
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020553rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000020554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000020555 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000020556fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020557ac_res=`eval 'as_val=${'$as_ac_var'}
20558 $as_echo "$as_val"'`
20559 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20560$as_echo "$ac_res" >&6; }
20561as_val=`eval 'as_val=${'$as_ac_var'}
20562 $as_echo "$as_val"'`
20563 if test "x$as_val" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020564 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020565#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020566_ACEOF
20567 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020568/* confdefs.h. */
20569_ACEOF
20570cat confdefs.h >>conftest.$ac_ext
20571cat >>conftest.$ac_ext <<_ACEOF
20572/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +000020573#include <sys/time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000020574int
20575main ()
20576{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020577gettimeofday((struct timeval*)0,(struct timezone*)0);
Martin v. Löwis11437992002-04-12 09:54:03 +000020578 ;
20579 return 0;
20580}
20581_ACEOF
20582rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020583if { (ac_try="$ac_compile"
20584case "(($ac_try" in
20585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20586 *) ac_try_echo=$ac_try;;
20587esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20589$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020590 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020591 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020592 grep -v '^ *+' conftest.er1 >conftest.err
20593 rm -f conftest.er1
20594 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020596 (exit $ac_status); } && {
20597 test -z "$ac_c_werror_flag" ||
20598 test ! -s conftest.err
20599 } && test -s conftest.$ac_objext; then
Guido van Rossum627b2d71993-12-24 10:39:16 +000020600 :
20601else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020602 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020603sed 's/^/| /' conftest.$ac_ext >&5
20604
Martin v. Löwis11437992002-04-12 09:54:03 +000020605
20606cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020607#define GETTIMEOFDAY_NO_TZ 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020608_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000020609
Martin v. Löwis11437992002-04-12 09:54:03 +000020610
Guido van Rossum627b2d71993-12-24 10:39:16 +000020611fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020612
20613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:49 +000020614
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020615fi
Thomas Wouters3a584202000-08-05 23:28:51 +000020616done
Guido van Rossum76be6ed1995-01-02 18:33:54 +000020617
Michael W. Hudson54241132001-12-07 15:38:26 +000020618
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020619{ $as_echo "$as_me:$LINENO: checking for major" >&5
20620$as_echo_n "checking for major... " >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000020621cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020622/* confdefs.h. */
20623_ACEOF
20624cat confdefs.h >>conftest.$ac_ext
20625cat >>conftest.$ac_ext <<_ACEOF
20626/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000020627
Neal Norwitz6eb37f02003-02-23 23:28:15 +000020628#if defined(MAJOR_IN_MKDEV)
20629#include <sys/mkdev.h>
20630#elif defined(MAJOR_IN_SYSMACROS)
20631#include <sys/sysmacros.h>
20632#else
20633#include <sys/types.h>
20634#endif
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000020635
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000020636int
20637main ()
20638{
20639
20640 makedev(major(0),minor(0));
20641
20642 ;
20643 return 0;
20644}
20645_ACEOF
Martin v. Löwise3271202002-11-07 07:42:30 +000020646rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020647if { (ac_try="$ac_link"
20648case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20651esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20653$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020654 (eval "$ac_link") 2>conftest.er1
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000020655 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020656 grep -v '^ *+' conftest.er1 >conftest.err
20657 rm -f conftest.er1
20658 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020660 (exit $ac_status); } && {
20661 test -z "$ac_c_werror_flag" ||
20662 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020663 } && test -s conftest$ac_exeext && {
20664 test "$cross_compiling" = yes ||
20665 $as_test_x conftest$ac_exeext
20666 }; then
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000020667
20668
20669cat >>confdefs.h <<\_ACEOF
20670#define HAVE_DEVICE_MACROS 1
20671_ACEOF
20672
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020673 { $as_echo "$as_me:$LINENO: result: yes" >&5
20674$as_echo "yes" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000020675
20676else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020677 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020678sed 's/^/| /' conftest.$ac_ext >&5
20679
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000020680
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020681 { $as_echo "$as_me:$LINENO: result: no" >&5
20682$as_echo "no" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:30 +000020683
20684fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020685
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020686rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000020687rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000020688 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000020689
Martin v. Löwis861a65b2001-10-24 14:36:00 +000020690# On OSF/1 V5.1, getaddrinfo is available, but a define
Martin v. Löwis11437992002-04-12 09:54:03 +000020691# for [no]getaddrinfo in netdb.h.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020692{ $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20693$as_echo_n "checking for getaddrinfo... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000020694cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020695/* confdefs.h. */
20696_ACEOF
20697cat confdefs.h >>conftest.$ac_ext
20698cat >>conftest.$ac_ext <<_ACEOF
20699/* end confdefs.h. */
Martin v. Löwis861a65b2001-10-24 14:36:00 +000020700
Martin v. Löwisc010b6d2001-11-09 17:50:52 +000020701#include <sys/types.h>
Martin v. Löwis861a65b2001-10-24 14:36:00 +000020702#include <sys/socket.h>
20703#include <netdb.h>
Martin v. Löwisc010b6d2001-11-09 17:50:52 +000020704#include <stdio.h>
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020705
Martin v. Löwis11437992002-04-12 09:54:03 +000020706int
20707main ()
20708{
Martin v. Löwis861a65b2001-10-24 14:36:00 +000020709getaddrinfo(NULL, NULL, NULL, NULL);
Martin v. Löwis11437992002-04-12 09:54:03 +000020710 ;
20711 return 0;
20712}
20713_ACEOF
20714rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020715if { (ac_try="$ac_link"
20716case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20719esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20721$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020722 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020723 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020724 grep -v '^ *+' conftest.er1 >conftest.err
20725 rm -f conftest.er1
20726 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020728 (exit $ac_status); } && {
20729 test -z "$ac_c_werror_flag" ||
20730 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020731 } && test -s conftest$ac_exeext && {
20732 test "$cross_compiling" = yes ||
20733 $as_test_x conftest$ac_exeext
20734 }; then
20735 have_getaddrinfo=yes
20736else
20737 $as_echo "$as_me: failed program was:" >&5
20738sed 's/^/| /' conftest.$ac_ext >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020739
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020740 have_getaddrinfo=no
20741fi
20742
20743rm -rf conftest.dSYM
20744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20745 conftest$ac_exeext conftest.$ac_ext
20746{ $as_echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5
20747$as_echo "$have_getaddrinfo" >&6; }
20748if test $have_getaddrinfo = yes
20749then
20750 { $as_echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
20751$as_echo_n "checking getaddrinfo bug... " >&6; }
20752 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then
20753 $as_echo_n "(cached) " >&6
20754else
20755 if test "$cross_compiling" = yes; then
20756 ac_cv_buggy_getaddrinfo=yes
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020757else
Martin v. Löwis11437992002-04-12 09:54:03 +000020758 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020759/* confdefs.h. */
20760_ACEOF
20761cat confdefs.h >>conftest.$ac_ext
20762cat >>conftest.$ac_ext <<_ACEOF
20763/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020764
20765#include <sys/types.h>
20766#include <netdb.h>
20767#include <string.h>
20768#include <sys/socket.h>
20769#include <netinet/in.h>
20770
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020771int main()
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020772{
20773 int passive, gaierr, inet4 = 0, inet6 = 0;
20774 struct addrinfo hints, *ai, *aitop;
20775 char straddr[INET6_ADDRSTRLEN], strport[16];
20776
20777 for (passive = 0; passive <= 1; passive++) {
20778 memset(&hints, 0, sizeof(hints));
20779 hints.ai_family = AF_UNSPEC;
20780 hints.ai_flags = passive ? AI_PASSIVE : 0;
20781 hints.ai_socktype = SOCK_STREAM;
Hye-Shik Chang54f94392004-04-14 07:55:31 +000020782 hints.ai_protocol = IPPROTO_TCP;
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020783 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
20784 (void)gai_strerror(gaierr);
20785 goto bad;
20786 }
20787 for (ai = aitop; ai; ai = ai->ai_next) {
20788 if (ai->ai_addr == NULL ||
20789 ai->ai_addrlen == 0 ||
20790 getnameinfo(ai->ai_addr, ai->ai_addrlen,
20791 straddr, sizeof(straddr), strport, sizeof(strport),
20792 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
20793 goto bad;
20794 }
20795 switch (ai->ai_family) {
20796 case AF_INET:
20797 if (strcmp(strport, "54321") != 0) {
20798 goto bad;
20799 }
20800 if (passive) {
20801 if (strcmp(straddr, "0.0.0.0") != 0) {
20802 goto bad;
20803 }
20804 } else {
20805 if (strcmp(straddr, "127.0.0.1") != 0) {
20806 goto bad;
20807 }
20808 }
20809 inet4++;
20810 break;
20811 case AF_INET6:
20812 if (strcmp(strport, "54321") != 0) {
20813 goto bad;
20814 }
20815 if (passive) {
20816 if (strcmp(straddr, "::") != 0) {
20817 goto bad;
20818 }
20819 } else {
20820 if (strcmp(straddr, "::1") != 0) {
20821 goto bad;
20822 }
20823 }
20824 inet6++;
20825 break;
20826 case AF_UNSPEC:
20827 goto bad;
20828 break;
20829 default:
20830 /* another family support? */
20831 break;
20832 }
20833 }
20834 }
20835
20836 if (!(inet4 == 0 || inet4 == 2))
20837 goto bad;
20838 if (!(inet6 == 0 || inet6 == 2))
20839 goto bad;
20840
20841 if (aitop)
20842 freeaddrinfo(aitop);
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020843 return 0;
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020844
20845 bad:
20846 if (aitop)
20847 freeaddrinfo(aitop);
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020848 return 1;
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020849}
20850
Martin v. Löwis11437992002-04-12 09:54:03 +000020851_ACEOF
20852rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020853if { (ac_try="$ac_link"
20854case "(($ac_try" in
20855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20856 *) ac_try_echo=$ac_try;;
20857esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20859$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020860 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020861 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000020864 { (case "(($ac_try" in
20865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866 *) ac_try_echo=$ac_try;;
20867esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20869$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020870 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020871 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000020873 (exit $ac_status); }; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020874 ac_cv_buggy_getaddrinfo=no
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020875else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020876 $as_echo "$as_me: program exited with status $ac_status" >&5
20877$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020878sed 's/^/| /' conftest.$ac_ext >&5
20879
Martin v. Löwis11437992002-04-12 09:54:03 +000020880( exit $ac_status )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020881ac_cv_buggy_getaddrinfo=yes
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020882fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020883rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000020884rm -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 +000020885fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020886
20887
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020888fi
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020889
Martin v. Löwis861a65b2001-10-24 14:36:00 +000020890fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020891
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020892if test $have_getaddrinfo = no -o $ac_cv_buggy_getaddrinfo = yes
20893then
20894 if test $ipv6 = yes
20895 then
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020896 echo 'Fatal: You must get working getaddrinfo() function.'
20897 echo ' or you can specify "--disable-ipv6"'.
20898 exit 1
20899 fi
Martin v. Löwis861a65b2001-10-24 14:36:00 +000020900else
Martin v. Löwis11437992002-04-12 09:54:03 +000020901
20902cat >>confdefs.h <<\_ACEOF
Martin v. Löwis861a65b2001-10-24 14:36:00 +000020903#define HAVE_GETADDRINFO 1
Martin v. Löwis11437992002-04-12 09:54:03 +000020904_ACEOF
Martin v. Löwis861a65b2001-10-24 14:36:00 +000020905
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020906fi
Martin v. Löwis11437992002-04-12 09:54:03 +000020907
Jack Jansen9a66b6d2001-08-08 13:56:14 +000020908for ac_func in getnameinfo
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020909do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020910as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20911{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20912$as_echo_n "checking for $ac_func... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000020913if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020914 $as_echo_n "(cached) " >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020915else
Martin v. Löwis11437992002-04-12 09:54:03 +000020916 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000020917/* confdefs.h. */
20918_ACEOF
20919cat confdefs.h >>conftest.$ac_ext
20920cat >>conftest.$ac_ext <<_ACEOF
20921/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020922/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20924#define $ac_func innocuous_$ac_func
20925
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020926/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000020927 which can conflict with char $ac_func (); below.
20928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020929 <limits.h> exists even on freestanding compilers. */
20930
20931#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000020932# include <limits.h>
20933#else
20934# include <assert.h>
20935#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000020936
20937#undef $ac_func
20938
Martin v. Löwiseba40652007-08-30 20:10:57 +000020939/* Override any GCC internal prototype to avoid an error.
20940 Use char because int might match the return type of a GCC
20941 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000020942#ifdef __cplusplus
20943extern "C"
20944#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000020945char $ac_func ();
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020946/* The GNU C library defines this for functions which it implements
20947 to always fail with ENOSYS. Some functions are actually named
20948 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000020949#if defined __stub_$ac_func || defined __stub___$ac_func
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020950choke me
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000020951#endif
20952
Skip Montanaro6dead952003-09-25 14:50:04 +000020953int
20954main ()
20955{
Martin v. Löwiseba40652007-08-30 20:10:57 +000020956return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000020957 ;
20958 return 0;
20959}
20960_ACEOF
20961rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000020962if { (ac_try="$ac_link"
20963case "(($ac_try" in
20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20966esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20968$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020969 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000020970 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000020971 grep -v '^ *+' conftest.er1 >conftest.err
20972 rm -f conftest.er1
20973 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000020975 (exit $ac_status); } && {
20976 test -z "$ac_c_werror_flag" ||
20977 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020978 } && test -s conftest$ac_exeext && {
20979 test "$cross_compiling" = yes ||
20980 $as_test_x conftest$ac_exeext
20981 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000020982 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000020983else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020984 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000020985sed 's/^/| /' conftest.$ac_ext >&5
20986
Martin v. Löwiseba40652007-08-30 20:10:57 +000020987 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000020988fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000020989
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020990rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000020991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000020992 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000020993fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000020994ac_res=`eval 'as_val=${'$as_ac_var'}
20995 $as_echo "$as_val"'`
20996 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20997$as_echo "$ac_res" >&6; }
20998as_val=`eval 'as_val=${'$as_ac_var'}
20999 $as_echo "$as_val"'`
21000 if test "x$as_val" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021001 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021002#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021003_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000021004
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000021005fi
21006done
21007
Michael W. Hudson54241132001-12-07 15:38:26 +000021008
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021009# checks for structures
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021010{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21011$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021012if test "${ac_cv_header_time+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021013 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021014else
Martin v. Löwis11437992002-04-12 09:54:03 +000021015 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021016/* confdefs.h. */
21017_ACEOF
21018cat confdefs.h >>conftest.$ac_ext
21019cat >>conftest.$ac_ext <<_ACEOF
21020/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021021#include <sys/types.h>
21022#include <sys/time.h>
21023#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000021024
Martin v. Löwis11437992002-04-12 09:54:03 +000021025int
21026main ()
21027{
21028if ((struct tm *) 0)
21029return 0;
21030 ;
21031 return 0;
21032}
21033_ACEOF
21034rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021035if { (ac_try="$ac_compile"
21036case "(($ac_try" in
21037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038 *) ac_try_echo=$ac_try;;
21039esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21041$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021042 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021043 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021044 grep -v '^ *+' conftest.er1 >conftest.err
21045 rm -f conftest.er1
21046 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021048 (exit $ac_status); } && {
21049 test -z "$ac_c_werror_flag" ||
21050 test ! -s conftest.err
21051 } && test -s conftest.$ac_objext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021052 ac_cv_header_time=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +000021053else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021054 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021055sed 's/^/| /' conftest.$ac_ext >&5
21056
Martin v. Löwiseba40652007-08-30 20:10:57 +000021057 ac_cv_header_time=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000021058fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021059
21060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021061fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021062{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21063$as_echo "$ac_cv_header_time" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000021064if test $ac_cv_header_time = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021065
21066cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021067#define TIME_WITH_SYS_TIME 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021068_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021069
21070fi
21071
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021072{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21073$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021074if test "${ac_cv_struct_tm+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021075 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021076else
Martin v. Löwis11437992002-04-12 09:54:03 +000021077 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021078/* confdefs.h. */
21079_ACEOF
21080cat confdefs.h >>conftest.$ac_ext
21081cat >>conftest.$ac_ext <<_ACEOF
21082/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021083#include <sys/types.h>
21084#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000021085
Martin v. Löwis11437992002-04-12 09:54:03 +000021086int
21087main ()
21088{
Martin v. Löwiseba40652007-08-30 20:10:57 +000021089struct tm tm;
21090 int *p = &tm.tm_sec;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021091 return !p;
Martin v. Löwis11437992002-04-12 09:54:03 +000021092 ;
21093 return 0;
21094}
21095_ACEOF
21096rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021097if { (ac_try="$ac_compile"
21098case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21101esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21103$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021104 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021105 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021106 grep -v '^ *+' conftest.er1 >conftest.err
21107 rm -f conftest.er1
21108 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021110 (exit $ac_status); } && {
21111 test -z "$ac_c_werror_flag" ||
21112 test ! -s conftest.err
21113 } && test -s conftest.$ac_objext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021114 ac_cv_struct_tm=time.h
21115else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021116 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021117sed 's/^/| /' conftest.$ac_ext >&5
21118
Martin v. Löwiseba40652007-08-30 20:10:57 +000021119 ac_cv_struct_tm=sys/time.h
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021120fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021121
21122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021123fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021124{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21125$as_echo "$ac_cv_struct_tm" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000021126if test $ac_cv_struct_tm = sys/time.h; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021127
21128cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021129#define TM_IN_SYS_TIME 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021130_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021131
21132fi
21133
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021134{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21135$as_echo_n "checking for struct tm.tm_zone... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021136if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021137 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021138else
Martin v. Löwis11437992002-04-12 09:54:03 +000021139 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021140/* confdefs.h. */
21141_ACEOF
21142cat confdefs.h >>conftest.$ac_ext
21143cat >>conftest.$ac_ext <<_ACEOF
21144/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021145#include <sys/types.h>
21146#include <$ac_cv_struct_tm>
Martin v. Löwis11437992002-04-12 09:54:03 +000021147
21148
Martin v. Löwis11437992002-04-12 09:54:03 +000021149int
21150main ()
21151{
21152static struct tm ac_aggr;
21153if (ac_aggr.tm_zone)
21154return 0;
21155 ;
21156 return 0;
21157}
21158_ACEOF
21159rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021160if { (ac_try="$ac_compile"
21161case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21164esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21166$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021167 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021168 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021169 grep -v '^ *+' conftest.er1 >conftest.err
21170 rm -f conftest.er1
21171 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021173 (exit $ac_status); } && {
21174 test -z "$ac_c_werror_flag" ||
21175 test ! -s conftest.err
21176 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021177 ac_cv_member_struct_tm_tm_zone=yes
Michael W. Hudson54241132001-12-07 15:38:26 +000021178else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021179 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021180sed 's/^/| /' conftest.$ac_ext >&5
21181
Martin v. Löwiseba40652007-08-30 20:10:57 +000021182 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021183/* confdefs.h. */
21184_ACEOF
21185cat confdefs.h >>conftest.$ac_ext
21186cat >>conftest.$ac_ext <<_ACEOF
21187/* end confdefs.h. */
21188#include <sys/types.h>
21189#include <$ac_cv_struct_tm>
21190
21191
21192int
21193main ()
21194{
21195static struct tm ac_aggr;
21196if (sizeof ac_aggr.tm_zone)
21197return 0;
21198 ;
21199 return 0;
21200}
21201_ACEOF
21202rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021203if { (ac_try="$ac_compile"
21204case "(($ac_try" in
21205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21206 *) ac_try_echo=$ac_try;;
21207esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21209$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021210 (eval "$ac_compile") 2>conftest.er1
Skip Montanaro6dead952003-09-25 14:50:04 +000021211 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021212 grep -v '^ *+' conftest.er1 >conftest.err
21213 rm -f conftest.er1
21214 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021216 (exit $ac_status); } && {
21217 test -z "$ac_c_werror_flag" ||
21218 test ! -s conftest.err
21219 } && test -s conftest.$ac_objext; then
Skip Montanaro6dead952003-09-25 14:50:04 +000021220 ac_cv_member_struct_tm_tm_zone=yes
21221else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021222 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021223sed 's/^/| /' conftest.$ac_ext >&5
21224
Martin v. Löwiseba40652007-08-30 20:10:57 +000021225 ac_cv_member_struct_tm_tm_zone=no
Michael W. Hudson54241132001-12-07 15:38:26 +000021226fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021227
21228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000021229fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021230
21231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000021232fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021233{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21234$as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
21235if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021236
21237cat >>confdefs.h <<_ACEOF
21238#define HAVE_STRUCT_TM_TM_ZONE 1
21239_ACEOF
21240
21241
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021242fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000021243
Martin v. Löwis11437992002-04-12 09:54:03 +000021244if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21245
21246cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021247#define HAVE_TM_ZONE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021248_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021249
21250else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021251 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21252$as_echo_n "checking whether tzname is declared... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000021253if test "${ac_cv_have_decl_tzname+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021254 $as_echo_n "(cached) " >&6
Martin v. Löwiseba40652007-08-30 20:10:57 +000021255else
21256 cat >conftest.$ac_ext <<_ACEOF
21257/* confdefs.h. */
21258_ACEOF
21259cat confdefs.h >>conftest.$ac_ext
21260cat >>conftest.$ac_ext <<_ACEOF
21261/* end confdefs.h. */
21262#include <time.h>
21263
21264int
21265main ()
21266{
21267#ifndef tzname
21268 (void) tzname;
21269#endif
21270
21271 ;
21272 return 0;
21273}
21274_ACEOF
21275rm -f conftest.$ac_objext
21276if { (ac_try="$ac_compile"
21277case "(($ac_try" in
21278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279 *) ac_try_echo=$ac_try;;
21280esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21282$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021283 (eval "$ac_compile") 2>conftest.er1
21284 ac_status=$?
21285 grep -v '^ *+' conftest.er1 >conftest.err
21286 rm -f conftest.er1
21287 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021289 (exit $ac_status); } && {
21290 test -z "$ac_c_werror_flag" ||
21291 test ! -s conftest.err
21292 } && test -s conftest.$ac_objext; then
21293 ac_cv_have_decl_tzname=yes
21294else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021295 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021296sed 's/^/| /' conftest.$ac_ext >&5
21297
21298 ac_cv_have_decl_tzname=no
21299fi
21300
21301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21302fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021303{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21304$as_echo "$ac_cv_have_decl_tzname" >&6; }
21305if test "x$ac_cv_have_decl_tzname" = x""yes; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000021306
21307cat >>confdefs.h <<_ACEOF
21308#define HAVE_DECL_TZNAME 1
21309_ACEOF
21310
21311
21312else
21313 cat >>confdefs.h <<_ACEOF
21314#define HAVE_DECL_TZNAME 0
21315_ACEOF
21316
21317
21318fi
21319
21320
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021321 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
21322$as_echo_n "checking for tzname... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021323if test "${ac_cv_var_tzname+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021324 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021325else
Martin v. Löwis11437992002-04-12 09:54:03 +000021326 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021327/* confdefs.h. */
21328_ACEOF
21329cat confdefs.h >>conftest.$ac_ext
21330cat >>conftest.$ac_ext <<_ACEOF
21331/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +000021332#include <time.h>
Martin v. Löwiseba40652007-08-30 20:10:57 +000021333#if !HAVE_DECL_TZNAME
21334extern char *tzname[];
Guido van Rossum627b2d71993-12-24 10:39:16 +000021335#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000021336
Martin v. Löwis11437992002-04-12 09:54:03 +000021337int
21338main ()
21339{
Martin v. Löwiseba40652007-08-30 20:10:57 +000021340return tzname[0][0];
Martin v. Löwis11437992002-04-12 09:54:03 +000021341 ;
21342 return 0;
21343}
21344_ACEOF
21345rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021346if { (ac_try="$ac_link"
21347case "(($ac_try" in
21348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349 *) ac_try_echo=$ac_try;;
21350esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21352$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021353 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021354 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021355 grep -v '^ *+' conftest.er1 >conftest.err
21356 rm -f conftest.er1
21357 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021359 (exit $ac_status); } && {
21360 test -z "$ac_c_werror_flag" ||
21361 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021362 } && test -s conftest$ac_exeext && {
21363 test "$cross_compiling" = yes ||
21364 $as_test_x conftest$ac_exeext
21365 }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021366 ac_cv_var_tzname=yes
21367else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021368 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021369sed 's/^/| /' conftest.$ac_ext >&5
21370
Martin v. Löwiseba40652007-08-30 20:10:57 +000021371 ac_cv_var_tzname=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000021372fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021373
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021374rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000021375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000021376 conftest$ac_exeext conftest.$ac_ext
Guido van Rossum627b2d71993-12-24 10:39:16 +000021377fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021378{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21379$as_echo "$ac_cv_var_tzname" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000021380 if test $ac_cv_var_tzname = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021381
21382cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021383#define HAVE_TZNAME 1
Martin v. Löwis11437992002-04-12 09:54:03 +000021384_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000021385
Guido van Rossum76be6ed1995-01-02 18:33:54 +000021386 fi
21387fi
21388
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021389{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21390$as_echo_n "checking for struct stat.st_rdev... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021391if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021392 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +000021393else
21394 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021395/* confdefs.h. */
21396_ACEOF
21397cat confdefs.h >>conftest.$ac_ext
21398cat >>conftest.$ac_ext <<_ACEOF
21399/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000021400$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000021401int
21402main ()
21403{
21404static struct stat ac_aggr;
21405if (ac_aggr.st_rdev)
21406return 0;
21407 ;
21408 return 0;
21409}
21410_ACEOF
21411rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021412if { (ac_try="$ac_compile"
21413case "(($ac_try" in
21414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415 *) ac_try_echo=$ac_try;;
21416esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21418$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021419 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021420 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021421 grep -v '^ *+' conftest.er1 >conftest.err
21422 rm -f conftest.er1
21423 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021425 (exit $ac_status); } && {
21426 test -z "$ac_c_werror_flag" ||
21427 test ! -s conftest.err
21428 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021429 ac_cv_member_struct_stat_st_rdev=yes
21430else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021431 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021432sed 's/^/| /' conftest.$ac_ext >&5
21433
Martin v. Löwiseba40652007-08-30 20:10:57 +000021434 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021435/* confdefs.h. */
21436_ACEOF
21437cat confdefs.h >>conftest.$ac_ext
21438cat >>conftest.$ac_ext <<_ACEOF
21439/* end confdefs.h. */
21440$ac_includes_default
21441int
21442main ()
21443{
21444static struct stat ac_aggr;
21445if (sizeof ac_aggr.st_rdev)
21446return 0;
21447 ;
21448 return 0;
21449}
21450_ACEOF
21451rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021452if { (ac_try="$ac_compile"
21453case "(($ac_try" in
21454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21455 *) ac_try_echo=$ac_try;;
21456esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21458$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021459 (eval "$ac_compile") 2>conftest.er1
Skip Montanaro6dead952003-09-25 14:50:04 +000021460 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021461 grep -v '^ *+' conftest.er1 >conftest.err
21462 rm -f conftest.er1
21463 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021465 (exit $ac_status); } && {
21466 test -z "$ac_c_werror_flag" ||
21467 test ! -s conftest.err
21468 } && test -s conftest.$ac_objext; then
Skip Montanaro6dead952003-09-25 14:50:04 +000021469 ac_cv_member_struct_stat_st_rdev=yes
21470else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021471 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021472sed 's/^/| /' conftest.$ac_ext >&5
21473
Martin v. Löwiseba40652007-08-30 20:10:57 +000021474 ac_cv_member_struct_stat_st_rdev=no
Martin v. Löwis11437992002-04-12 09:54:03 +000021475fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021476
21477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000021478fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021479
21480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000021481fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021482{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21483$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
21484if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021485
21486cat >>confdefs.h <<_ACEOF
21487#define HAVE_STRUCT_STAT_ST_RDEV 1
21488_ACEOF
21489
21490
Guido van Rossum98bf58f2001-10-18 20:34:25 +000021491fi
21492
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021493{ $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21494$as_echo_n "checking for struct stat.st_blksize... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021495if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021496 $as_echo_n "(cached) " >&6
Guido van Rossum98bf58f2001-10-18 20:34:25 +000021497else
Martin v. Löwis11437992002-04-12 09:54:03 +000021498 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021499/* confdefs.h. */
21500_ACEOF
21501cat confdefs.h >>conftest.$ac_ext
21502cat >>conftest.$ac_ext <<_ACEOF
21503/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000021504$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000021505int
21506main ()
21507{
21508static struct stat ac_aggr;
21509if (ac_aggr.st_blksize)
21510return 0;
21511 ;
21512 return 0;
21513}
21514_ACEOF
21515rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021516if { (ac_try="$ac_compile"
21517case "(($ac_try" in
21518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519 *) ac_try_echo=$ac_try;;
21520esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21522$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021523 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021524 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021525 grep -v '^ *+' conftest.er1 >conftest.err
21526 rm -f conftest.er1
21527 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021529 (exit $ac_status); } && {
21530 test -z "$ac_c_werror_flag" ||
21531 test ! -s conftest.err
21532 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021533 ac_cv_member_struct_stat_st_blksize=yes
Michael W. Hudson54241132001-12-07 15:38:26 +000021534else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021535 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021536sed 's/^/| /' conftest.$ac_ext >&5
21537
Martin v. Löwiseba40652007-08-30 20:10:57 +000021538 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021539/* confdefs.h. */
21540_ACEOF
21541cat confdefs.h >>conftest.$ac_ext
21542cat >>conftest.$ac_ext <<_ACEOF
21543/* end confdefs.h. */
21544$ac_includes_default
21545int
21546main ()
21547{
21548static struct stat ac_aggr;
21549if (sizeof ac_aggr.st_blksize)
21550return 0;
21551 ;
21552 return 0;
21553}
21554_ACEOF
21555rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021556if { (ac_try="$ac_compile"
21557case "(($ac_try" in
21558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21559 *) ac_try_echo=$ac_try;;
21560esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21562$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021563 (eval "$ac_compile") 2>conftest.er1
Skip Montanaro6dead952003-09-25 14:50:04 +000021564 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021565 grep -v '^ *+' conftest.er1 >conftest.err
21566 rm -f conftest.er1
21567 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021569 (exit $ac_status); } && {
21570 test -z "$ac_c_werror_flag" ||
21571 test ! -s conftest.err
21572 } && test -s conftest.$ac_objext; then
Skip Montanaro6dead952003-09-25 14:50:04 +000021573 ac_cv_member_struct_stat_st_blksize=yes
21574else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021575 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021576sed 's/^/| /' conftest.$ac_ext >&5
21577
Martin v. Löwiseba40652007-08-30 20:10:57 +000021578 ac_cv_member_struct_stat_st_blksize=no
Michael W. Hudson54241132001-12-07 15:38:26 +000021579fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021580
21581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000021582fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021583
21584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000021585fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021586{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21587$as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
21588if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
Jack Jansendd19cf82001-12-06 22:36:17 +000021589
Martin v. Löwis11437992002-04-12 09:54:03 +000021590cat >>confdefs.h <<_ACEOF
21591#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21592_ACEOF
21593
21594
Guido van Rossum98bf58f2001-10-18 20:34:25 +000021595fi
21596
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021597{ $as_echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21598$as_echo_n "checking for struct stat.st_flags... " >&6; }
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000021599if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021600 $as_echo_n "(cached) " >&6
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000021601else
21602 cat >conftest.$ac_ext <<_ACEOF
21603/* confdefs.h. */
21604_ACEOF
21605cat confdefs.h >>conftest.$ac_ext
21606cat >>conftest.$ac_ext <<_ACEOF
21607/* end confdefs.h. */
21608$ac_includes_default
21609int
21610main ()
21611{
21612static struct stat ac_aggr;
21613if (ac_aggr.st_flags)
21614return 0;
21615 ;
21616 return 0;
21617}
21618_ACEOF
21619rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021620if { (ac_try="$ac_compile"
21621case "(($ac_try" in
21622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21623 *) ac_try_echo=$ac_try;;
21624esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21626$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021627 (eval "$ac_compile") 2>conftest.er1
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000021628 ac_status=$?
21629 grep -v '^ *+' conftest.er1 >conftest.err
21630 rm -f conftest.er1
21631 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021633 (exit $ac_status); } && {
21634 test -z "$ac_c_werror_flag" ||
21635 test ! -s conftest.err
21636 } && test -s conftest.$ac_objext; then
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000021637 ac_cv_member_struct_stat_st_flags=yes
21638else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021639 $as_echo "$as_me: failed program was:" >&5
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000021640sed 's/^/| /' conftest.$ac_ext >&5
21641
Martin v. Löwiseba40652007-08-30 20:10:57 +000021642 cat >conftest.$ac_ext <<_ACEOF
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000021643/* confdefs.h. */
21644_ACEOF
21645cat confdefs.h >>conftest.$ac_ext
21646cat >>conftest.$ac_ext <<_ACEOF
21647/* end confdefs.h. */
21648$ac_includes_default
21649int
21650main ()
21651{
21652static struct stat ac_aggr;
21653if (sizeof ac_aggr.st_flags)
21654return 0;
21655 ;
21656 return 0;
21657}
21658_ACEOF
21659rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021660if { (ac_try="$ac_compile"
21661case "(($ac_try" in
21662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663 *) ac_try_echo=$ac_try;;
21664esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21666$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021667 (eval "$ac_compile") 2>conftest.er1
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000021668 ac_status=$?
21669 grep -v '^ *+' conftest.er1 >conftest.err
21670 rm -f conftest.er1
21671 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021673 (exit $ac_status); } && {
21674 test -z "$ac_c_werror_flag" ||
21675 test ! -s conftest.err
21676 } && test -s conftest.$ac_objext; then
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000021677 ac_cv_member_struct_stat_st_flags=yes
21678else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021679 $as_echo "$as_me: failed program was:" >&5
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000021680sed 's/^/| /' conftest.$ac_ext >&5
21681
Martin v. Löwiseba40652007-08-30 20:10:57 +000021682 ac_cv_member_struct_stat_st_flags=no
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000021683fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021684
21685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000021686fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021687
21688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000021689fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021690{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21691$as_echo "$ac_cv_member_struct_stat_st_flags" >&6; }
21692if test "x$ac_cv_member_struct_stat_st_flags" = x""yes; then
Hye-Shik Chang5f937a72005-06-02 13:09:30 +000021693
21694cat >>confdefs.h <<_ACEOF
21695#define HAVE_STRUCT_STAT_ST_FLAGS 1
21696_ACEOF
21697
21698
21699fi
21700
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021701{ $as_echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21702$as_echo_n "checking for struct stat.st_gen... " >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021703if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021704 $as_echo_n "(cached) " >&6
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021705else
21706 cat >conftest.$ac_ext <<_ACEOF
21707/* confdefs.h. */
21708_ACEOF
21709cat confdefs.h >>conftest.$ac_ext
21710cat >>conftest.$ac_ext <<_ACEOF
21711/* end confdefs.h. */
21712$ac_includes_default
21713int
21714main ()
21715{
21716static struct stat ac_aggr;
21717if (ac_aggr.st_gen)
21718return 0;
21719 ;
21720 return 0;
21721}
21722_ACEOF
21723rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021724if { (ac_try="$ac_compile"
21725case "(($ac_try" in
21726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21727 *) ac_try_echo=$ac_try;;
21728esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21730$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021731 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021732 ac_status=$?
21733 grep -v '^ *+' conftest.er1 >conftest.err
21734 rm -f conftest.er1
21735 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021737 (exit $ac_status); } && {
21738 test -z "$ac_c_werror_flag" ||
21739 test ! -s conftest.err
21740 } && test -s conftest.$ac_objext; then
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021741 ac_cv_member_struct_stat_st_gen=yes
21742else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021743 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021744sed 's/^/| /' conftest.$ac_ext >&5
21745
Martin v. Löwiseba40652007-08-30 20:10:57 +000021746 cat >conftest.$ac_ext <<_ACEOF
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021747/* confdefs.h. */
21748_ACEOF
21749cat confdefs.h >>conftest.$ac_ext
21750cat >>conftest.$ac_ext <<_ACEOF
21751/* end confdefs.h. */
21752$ac_includes_default
21753int
21754main ()
21755{
21756static struct stat ac_aggr;
21757if (sizeof ac_aggr.st_gen)
21758return 0;
21759 ;
21760 return 0;
21761}
21762_ACEOF
21763rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021764if { (ac_try="$ac_compile"
21765case "(($ac_try" in
21766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767 *) ac_try_echo=$ac_try;;
21768esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21770$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021771 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021772 ac_status=$?
21773 grep -v '^ *+' conftest.er1 >conftest.err
21774 rm -f conftest.er1
21775 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021777 (exit $ac_status); } && {
21778 test -z "$ac_c_werror_flag" ||
21779 test ! -s conftest.err
21780 } && test -s conftest.$ac_objext; then
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021781 ac_cv_member_struct_stat_st_gen=yes
21782else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021783 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021784sed 's/^/| /' conftest.$ac_ext >&5
21785
Martin v. Löwiseba40652007-08-30 20:10:57 +000021786 ac_cv_member_struct_stat_st_gen=no
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021787fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021788
21789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021790fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021791
21792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021793fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021794{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
21795$as_echo "$ac_cv_member_struct_stat_st_gen" >&6; }
21796if test "x$ac_cv_member_struct_stat_st_gen" = x""yes; then
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021797
21798cat >>confdefs.h <<_ACEOF
21799#define HAVE_STRUCT_STAT_ST_GEN 1
21800_ACEOF
21801
21802
21803fi
21804
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021805{ $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
21806$as_echo_n "checking for struct stat.st_birthtime... " >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021807if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021808 $as_echo_n "(cached) " >&6
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021809else
21810 cat >conftest.$ac_ext <<_ACEOF
21811/* confdefs.h. */
21812_ACEOF
21813cat confdefs.h >>conftest.$ac_ext
21814cat >>conftest.$ac_ext <<_ACEOF
21815/* end confdefs.h. */
21816$ac_includes_default
21817int
21818main ()
21819{
21820static struct stat ac_aggr;
21821if (ac_aggr.st_birthtime)
21822return 0;
21823 ;
21824 return 0;
21825}
21826_ACEOF
21827rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021828if { (ac_try="$ac_compile"
21829case "(($ac_try" in
21830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21831 *) ac_try_echo=$ac_try;;
21832esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21834$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021835 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021836 ac_status=$?
21837 grep -v '^ *+' conftest.er1 >conftest.err
21838 rm -f conftest.er1
21839 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021841 (exit $ac_status); } && {
21842 test -z "$ac_c_werror_flag" ||
21843 test ! -s conftest.err
21844 } && test -s conftest.$ac_objext; then
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021845 ac_cv_member_struct_stat_st_birthtime=yes
21846else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021847 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021848sed 's/^/| /' conftest.$ac_ext >&5
21849
Martin v. Löwiseba40652007-08-30 20:10:57 +000021850 cat >conftest.$ac_ext <<_ACEOF
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021851/* confdefs.h. */
21852_ACEOF
21853cat confdefs.h >>conftest.$ac_ext
21854cat >>conftest.$ac_ext <<_ACEOF
21855/* end confdefs.h. */
21856$ac_includes_default
21857int
21858main ()
21859{
21860static struct stat ac_aggr;
21861if (sizeof ac_aggr.st_birthtime)
21862return 0;
21863 ;
21864 return 0;
21865}
21866_ACEOF
21867rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021868if { (ac_try="$ac_compile"
21869case "(($ac_try" in
21870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21871 *) ac_try_echo=$ac_try;;
21872esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21874$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021875 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021876 ac_status=$?
21877 grep -v '^ *+' conftest.er1 >conftest.err
21878 rm -f conftest.er1
21879 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021881 (exit $ac_status); } && {
21882 test -z "$ac_c_werror_flag" ||
21883 test ! -s conftest.err
21884 } && test -s conftest.$ac_objext; then
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021885 ac_cv_member_struct_stat_st_birthtime=yes
21886else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021887 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021888sed 's/^/| /' conftest.$ac_ext >&5
21889
Martin v. Löwiseba40652007-08-30 20:10:57 +000021890 ac_cv_member_struct_stat_st_birthtime=no
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021891fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021892
21893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021894fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021895
21896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021897fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021898{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
21899$as_echo "$ac_cv_member_struct_stat_st_birthtime" >&6; }
21900if test "x$ac_cv_member_struct_stat_st_birthtime" = x""yes; then
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000021901
21902cat >>confdefs.h <<_ACEOF
21903#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
21904_ACEOF
21905
21906
21907fi
21908
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021909{ $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21910$as_echo_n "checking for struct stat.st_blocks... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000021911if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021912 $as_echo_n "(cached) " >&6
Guido van Rossum98bf58f2001-10-18 20:34:25 +000021913else
Martin v. Löwis11437992002-04-12 09:54:03 +000021914 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021915/* confdefs.h. */
21916_ACEOF
21917cat confdefs.h >>conftest.$ac_ext
21918cat >>conftest.$ac_ext <<_ACEOF
21919/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000021920$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000021921int
21922main ()
21923{
21924static struct stat ac_aggr;
21925if (ac_aggr.st_blocks)
21926return 0;
21927 ;
21928 return 0;
21929}
21930_ACEOF
21931rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021932if { (ac_try="$ac_compile"
21933case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21936esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21938$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021939 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000021940 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021941 grep -v '^ *+' conftest.er1 >conftest.err
21942 rm -f conftest.er1
21943 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021945 (exit $ac_status); } && {
21946 test -z "$ac_c_werror_flag" ||
21947 test ! -s conftest.err
21948 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000021949 ac_cv_member_struct_stat_st_blocks=yes
Michael W. Hudson54241132001-12-07 15:38:26 +000021950else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021951 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021952sed 's/^/| /' conftest.$ac_ext >&5
21953
Martin v. Löwiseba40652007-08-30 20:10:57 +000021954 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000021955/* confdefs.h. */
21956_ACEOF
21957cat confdefs.h >>conftest.$ac_ext
21958cat >>conftest.$ac_ext <<_ACEOF
21959/* end confdefs.h. */
21960$ac_includes_default
21961int
21962main ()
21963{
21964static struct stat ac_aggr;
21965if (sizeof ac_aggr.st_blocks)
21966return 0;
21967 ;
21968 return 0;
21969}
21970_ACEOF
21971rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000021972if { (ac_try="$ac_compile"
21973case "(($ac_try" in
21974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21975 *) ac_try_echo=$ac_try;;
21976esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21978$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021979 (eval "$ac_compile") 2>conftest.er1
Skip Montanaro6dead952003-09-25 14:50:04 +000021980 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000021981 grep -v '^ *+' conftest.er1 >conftest.err
21982 rm -f conftest.er1
21983 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000021985 (exit $ac_status); } && {
21986 test -z "$ac_c_werror_flag" ||
21987 test ! -s conftest.err
21988 } && test -s conftest.$ac_objext; then
Skip Montanaro6dead952003-09-25 14:50:04 +000021989 ac_cv_member_struct_stat_st_blocks=yes
21990else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000021991 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000021992sed 's/^/| /' conftest.$ac_ext >&5
21993
Martin v. Löwiseba40652007-08-30 20:10:57 +000021994 ac_cv_member_struct_stat_st_blocks=no
Michael W. Hudson54241132001-12-07 15:38:26 +000021995fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021996
21997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000021998fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000021999
22000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:04 +000022001fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022002{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22003$as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
22004if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
Jack Jansendd19cf82001-12-06 22:36:17 +000022005
Martin v. Löwis11437992002-04-12 09:54:03 +000022006cat >>confdefs.h <<_ACEOF
22007#define HAVE_STRUCT_STAT_ST_BLOCKS 1
22008_ACEOF
22009
22010
22011cat >>confdefs.h <<\_ACEOF
Guido van Rossum98bf58f2001-10-18 20:34:25 +000022012#define HAVE_ST_BLOCKS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000022013_ACEOF
Guido van Rossum98bf58f2001-10-18 20:34:25 +000022014
22015else
Martin v. Löwiseba40652007-08-30 20:10:57 +000022016 case " $LIBOBJS " in
Skip Montanarof0d5f792004-08-15 14:08:23 +000022017 *" fileblocks.$ac_objext "* ) ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000022018 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22019 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000022020esac
22021
Guido van Rossum98bf58f2001-10-18 20:34:25 +000022022fi
22023
Michael W. Hudson54241132001-12-07 15:38:26 +000022024
Martin v. Löwis11437992002-04-12 09:54:03 +000022025
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022026{ $as_echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
22027$as_echo_n "checking for time.h that defines altzone... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022028if test "${ac_cv_header_time_altzone+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022029 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022030else
Martin v. Löwis11437992002-04-12 09:54:03 +000022031 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022032/* confdefs.h. */
22033_ACEOF
22034cat confdefs.h >>conftest.$ac_ext
22035cat >>conftest.$ac_ext <<_ACEOF
22036/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:30 +000022037#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000022038int
22039main ()
22040{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022041return altzone;
Martin v. Löwis11437992002-04-12 09:54:03 +000022042 ;
22043 return 0;
22044}
22045_ACEOF
22046rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022047if { (ac_try="$ac_compile"
22048case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050 *) ac_try_echo=$ac_try;;
22051esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22053$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022054 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022055 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022056 grep -v '^ *+' conftest.er1 >conftest.err
22057 rm -f conftest.er1
22058 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022060 (exit $ac_status); } && {
22061 test -z "$ac_c_werror_flag" ||
22062 test ! -s conftest.err
22063 } && test -s conftest.$ac_objext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022064 ac_cv_header_time_altzone=yes
22065else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022066 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022067sed 's/^/| /' conftest.$ac_ext >&5
22068
Martin v. Löwiseba40652007-08-30 20:10:57 +000022069 ac_cv_header_time_altzone=no
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022070fi
22071
Martin v. Löwiseba40652007-08-30 20:10:57 +000022072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22073fi
22074
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022075{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
22076$as_echo "$ac_cv_header_time_altzone" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022077if test $ac_cv_header_time_altzone = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022078
22079cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022080#define HAVE_ALTZONE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000022081_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022082
22083fi
22084
Guido van Rossumda88dad1995-01-26 00:46:29 +000022085was_it_defined=no
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022086{ $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
22087$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022088cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022089/* confdefs.h. */
22090_ACEOF
22091cat confdefs.h >>conftest.$ac_ext
22092cat >>conftest.$ac_ext <<_ACEOF
22093/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:30 +000022094
22095#include <sys/types.h>
22096#include <sys/select.h>
22097#include <sys/time.h>
22098
Martin v. Löwis11437992002-04-12 09:54:03 +000022099int
22100main ()
22101{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022102;
Martin v. Löwis11437992002-04-12 09:54:03 +000022103 ;
22104 return 0;
22105}
22106_ACEOF
22107rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022108if { (ac_try="$ac_compile"
22109case "(($ac_try" in
22110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111 *) ac_try_echo=$ac_try;;
22112esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22114$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022115 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022116 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022117 grep -v '^ *+' conftest.er1 >conftest.err
22118 rm -f conftest.er1
22119 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022121 (exit $ac_status); } && {
22122 test -z "$ac_c_werror_flag" ||
22123 test ! -s conftest.err
22124 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022125
22126
22127cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022128#define SYS_SELECT_WITH_SYS_TIME 1
Martin v. Löwis11437992002-04-12 09:54:03 +000022129_ACEOF
22130
Martin v. Löwisc45929e2002-04-06 10:10:49 +000022131 was_it_defined=yes
22132
Guido van Rossumf78abae1997-01-21 22:02:36 +000022133else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022134 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022135sed 's/^/| /' conftest.$ac_ext >&5
22136
Brett Cannon19fab762007-06-02 03:02:29 +000022137
Martin v. Löwiseba40652007-08-30 20:10:57 +000022138fi
22139
22140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022141{ $as_echo "$as_me:$LINENO: result: $was_it_defined" >&5
22142$as_echo "$was_it_defined" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000022143
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022144{ $as_echo "$as_me:$LINENO: checking for addrinfo" >&5
22145$as_echo_n "checking for addrinfo... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022146if test "${ac_cv_struct_addrinfo+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022147 $as_echo_n "(cached) " >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022148else
Martin v. Löwis11437992002-04-12 09:54:03 +000022149 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022150/* confdefs.h. */
22151_ACEOF
22152cat confdefs.h >>conftest.$ac_ext
22153cat >>conftest.$ac_ext <<_ACEOF
22154/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022155
22156# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000022157int
22158main ()
22159{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022160struct addrinfo a
Martin v. Löwis11437992002-04-12 09:54:03 +000022161 ;
22162 return 0;
22163}
22164_ACEOF
22165rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022166if { (ac_try="$ac_compile"
22167case "(($ac_try" in
22168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169 *) ac_try_echo=$ac_try;;
22170esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22172$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022173 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022174 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022175 grep -v '^ *+' conftest.er1 >conftest.err
22176 rm -f conftest.er1
22177 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022179 (exit $ac_status); } && {
22180 test -z "$ac_c_werror_flag" ||
22181 test ! -s conftest.err
22182 } && test -s conftest.$ac_objext; then
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022183 ac_cv_struct_addrinfo=yes
22184else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022185 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022186sed 's/^/| /' conftest.$ac_ext >&5
22187
Martin v. Löwiseba40652007-08-30 20:10:57 +000022188 ac_cv_struct_addrinfo=no
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022189fi
22190
Martin v. Löwiseba40652007-08-30 20:10:57 +000022191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22192fi
22193
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022194{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
22195$as_echo "$ac_cv_struct_addrinfo" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022196if test $ac_cv_struct_addrinfo = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022197
22198cat >>confdefs.h <<\_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022199#define HAVE_ADDRINFO 1
Martin v. Löwis11437992002-04-12 09:54:03 +000022200_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022201
22202fi
22203
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022204{ $as_echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
22205$as_echo_n "checking for sockaddr_storage... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022206if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022207 $as_echo_n "(cached) " >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022208else
Martin v. Löwis11437992002-04-12 09:54:03 +000022209 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022210/* confdefs.h. */
22211_ACEOF
22212cat confdefs.h >>conftest.$ac_ext
22213cat >>conftest.$ac_ext <<_ACEOF
22214/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022215
22216# include <sys/types.h>
22217# include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000022218int
22219main ()
22220{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022221struct sockaddr_storage s
Martin v. Löwis11437992002-04-12 09:54:03 +000022222 ;
22223 return 0;
22224}
22225_ACEOF
22226rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022227if { (ac_try="$ac_compile"
22228case "(($ac_try" in
22229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22230 *) ac_try_echo=$ac_try;;
22231esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22233$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022234 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022235 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022236 grep -v '^ *+' conftest.er1 >conftest.err
22237 rm -f conftest.er1
22238 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022240 (exit $ac_status); } && {
22241 test -z "$ac_c_werror_flag" ||
22242 test ! -s conftest.err
22243 } && test -s conftest.$ac_objext; then
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022244 ac_cv_struct_sockaddr_storage=yes
22245else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022246 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022247sed 's/^/| /' conftest.$ac_ext >&5
22248
Martin v. Löwiseba40652007-08-30 20:10:57 +000022249 ac_cv_struct_sockaddr_storage=no
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022250fi
22251
Martin v. Löwiseba40652007-08-30 20:10:57 +000022252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22253fi
22254
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022255{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
22256$as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022257if test $ac_cv_struct_sockaddr_storage = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022258
22259cat >>confdefs.h <<\_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022260#define HAVE_SOCKADDR_STORAGE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000022261_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022262
22263fi
22264
Guido van Rossum627b2d71993-12-24 10:39:16 +000022265# checks for compiler characteristics
Guido van Rossum7f43da71994-08-01 12:15:30 +000022266
Michael W. Hudson54241132001-12-07 15:38:26 +000022267
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022268{ $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
22269$as_echo_n "checking whether char is unsigned... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022270if test "${ac_cv_c_char_unsigned+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022271 $as_echo_n "(cached) " >&6
Jack Jansendd19cf82001-12-06 22:36:17 +000022272else
Martin v. Löwis11437992002-04-12 09:54:03 +000022273 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022274/* confdefs.h. */
22275_ACEOF
22276cat confdefs.h >>conftest.$ac_ext
22277cat >>conftest.$ac_ext <<_ACEOF
22278/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000022279$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000022280int
22281main ()
22282{
22283static int test_array [1 - 2 * !(((char) -1) < 0)];
22284test_array [0] = 0
22285
22286 ;
22287 return 0;
Michael W. Hudson54241132001-12-07 15:38:26 +000022288}
Martin v. Löwis11437992002-04-12 09:54:03 +000022289_ACEOF
22290rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022291if { (ac_try="$ac_compile"
22292case "(($ac_try" in
22293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294 *) ac_try_echo=$ac_try;;
22295esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22297$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022298 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022299 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022300 grep -v '^ *+' conftest.er1 >conftest.err
22301 rm -f conftest.er1
22302 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022304 (exit $ac_status); } && {
22305 test -z "$ac_c_werror_flag" ||
22306 test ! -s conftest.err
22307 } && test -s conftest.$ac_objext; then
Michael W. Hudson54241132001-12-07 15:38:26 +000022308 ac_cv_c_char_unsigned=no
Martin v. Löwis11437992002-04-12 09:54:03 +000022309else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022310 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022311sed 's/^/| /' conftest.$ac_ext >&5
22312
Martin v. Löwiseba40652007-08-30 20:10:57 +000022313 ac_cv_c_char_unsigned=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022314fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022315
22316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000022317fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022318{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
22319$as_echo "$ac_cv_c_char_unsigned" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022320if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022321 cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022322#define __CHAR_UNSIGNED__ 1
Martin v. Löwis11437992002-04-12 09:54:03 +000022323_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022324
22325fi
Guido van Rossum7f43da71994-08-01 12:15:30 +000022326
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022327{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22328$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022329if test "${ac_cv_c_const+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022330 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +000022331else
22332 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022333/* confdefs.h. */
22334_ACEOF
22335cat confdefs.h >>conftest.$ac_ext
22336cat >>conftest.$ac_ext <<_ACEOF
22337/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022338
Martin v. Löwis11437992002-04-12 09:54:03 +000022339int
22340main ()
22341{
22342/* FIXME: Include the comments suggested by Paul. */
22343#ifndef __cplusplus
22344 /* Ultrix mips cc rejects this. */
22345 typedef int charset[2];
Martin v. Löwiseba40652007-08-30 20:10:57 +000022346 const charset cs;
Martin v. Löwis11437992002-04-12 09:54:03 +000022347 /* SunOS 4.1.1 cc rejects this. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000022348 char const *const *pcpcc;
22349 char **ppc;
Martin v. Löwis11437992002-04-12 09:54:03 +000022350 /* NEC SVR4.0.2 mips cc rejects this. */
22351 struct point {int x, y;};
22352 static struct point const zero = {0,0};
22353 /* AIX XL C 1.02.0.0 rejects this.
22354 It does not let you subtract one const X* pointer from another in
22355 an arm of an if-expression whose if-part is not a constant
22356 expression */
22357 const char *g = "string";
Martin v. Löwiseba40652007-08-30 20:10:57 +000022358 pcpcc = &g + (g ? g-g : 0);
Martin v. Löwis11437992002-04-12 09:54:03 +000022359 /* HPUX 7.0 cc rejects these. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000022360 ++pcpcc;
22361 ppc = (char**) pcpcc;
22362 pcpcc = (char const *const *) ppc;
Martin v. Löwis11437992002-04-12 09:54:03 +000022363 { /* SCO 3.2v4 cc rejects this. */
22364 char *t;
22365 char const *s = 0 ? (char *) 0 : (char const *) 0;
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022366
Martin v. Löwis11437992002-04-12 09:54:03 +000022367 *t++ = 0;
Martin v. Löwiseba40652007-08-30 20:10:57 +000022368 if (s) return 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000022369 }
22370 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22371 int x[] = {25, 17};
22372 const int *foo = &x[0];
22373 ++foo;
22374 }
22375 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22376 typedef const int *iptr;
22377 iptr p = 0;
22378 ++p;
22379 }
22380 { /* AIX XL C 1.02.0.0 rejects this saying
22381 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22382 struct s { int j; const int *ap[3]; };
22383 struct s *b; b->j = 5;
22384 }
22385 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22386 const int foo = 10;
Martin v. Löwiseba40652007-08-30 20:10:57 +000022387 if (!foo) return 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000022388 }
Martin v. Löwiseba40652007-08-30 20:10:57 +000022389 return !cs[0] && !zero.x;
Martin v. Löwis11437992002-04-12 09:54:03 +000022390#endif
Guido van Rossum627b2d71993-12-24 10:39:16 +000022391
Martin v. Löwis11437992002-04-12 09:54:03 +000022392 ;
22393 return 0;
Guido van Rossum627b2d71993-12-24 10:39:16 +000022394}
Martin v. Löwis11437992002-04-12 09:54:03 +000022395_ACEOF
22396rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022397if { (ac_try="$ac_compile"
22398case "(($ac_try" in
22399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22401esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22403$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022404 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022405 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022406 grep -v '^ *+' conftest.er1 >conftest.err
22407 rm -f conftest.er1
22408 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022410 (exit $ac_status); } && {
22411 test -z "$ac_c_werror_flag" ||
22412 test ! -s conftest.err
22413 } && test -s conftest.$ac_objext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022414 ac_cv_c_const=yes
22415else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022416 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022417sed 's/^/| /' conftest.$ac_ext >&5
22418
Martin v. Löwiseba40652007-08-30 20:10:57 +000022419 ac_cv_c_const=no
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022420fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022421
22422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022423fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022424{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22425$as_echo "$ac_cv_c_const" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022426if test $ac_cv_c_const = no; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022427
22428cat >>confdefs.h <<\_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022429#define const /**/
Martin v. Löwis11437992002-04-12 09:54:03 +000022430_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022431
22432fi
22433
Michael W. Hudson54241132001-12-07 15:38:26 +000022434
Guido van Rossumda88dad1995-01-26 00:46:29 +000022435works=no
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022436{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
22437$as_echo_n "checking for working volatile... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022438cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022439/* confdefs.h. */
22440_ACEOF
22441cat confdefs.h >>conftest.$ac_ext
22442cat >>conftest.$ac_ext <<_ACEOF
22443/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:16 +000022444
Martin v. Löwis11437992002-04-12 09:54:03 +000022445int
22446main ()
22447{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022448volatile int x; x = 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000022449 ;
22450 return 0;
22451}
22452_ACEOF
22453rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022454if { (ac_try="$ac_compile"
22455case "(($ac_try" in
22456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457 *) ac_try_echo=$ac_try;;
22458esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22460$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022461 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022462 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022463 grep -v '^ *+' conftest.er1 >conftest.err
22464 rm -f conftest.er1
22465 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022467 (exit $ac_status); } && {
22468 test -z "$ac_c_werror_flag" ||
22469 test ! -s conftest.err
22470 } && test -s conftest.$ac_objext; then
Guido van Rossumda88dad1995-01-26 00:46:29 +000022471 works=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +000022472else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022473 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022474sed 's/^/| /' conftest.$ac_ext >&5
22475
Martin v. Löwis11437992002-04-12 09:54:03 +000022476
22477cat >>confdefs.h <<\_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022478#define volatile /**/
Martin v. Löwis11437992002-04-12 09:54:03 +000022479_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000022480
Martin v. Löwisc45929e2002-04-06 10:10:49 +000022481
Guido van Rossum627b2d71993-12-24 10:39:16 +000022482fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022483
22484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022485{ $as_echo "$as_me:$LINENO: result: $works" >&5
22486$as_echo "$works" >&6; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000022487
Guido van Rossumda88dad1995-01-26 00:46:29 +000022488works=no
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022489{ $as_echo "$as_me:$LINENO: checking for working signed char" >&5
22490$as_echo_n "checking for working signed char... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022491cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022492/* confdefs.h. */
22493_ACEOF
22494cat confdefs.h >>conftest.$ac_ext
22495cat >>conftest.$ac_ext <<_ACEOF
22496/* end confdefs.h. */
Guido van Rossumdabb11b1994-10-11 15:04:27 +000022497
Martin v. Löwis11437992002-04-12 09:54:03 +000022498int
22499main ()
22500{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022501signed char c;
Martin v. Löwis11437992002-04-12 09:54:03 +000022502 ;
22503 return 0;
22504}
22505_ACEOF
22506rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022507if { (ac_try="$ac_compile"
22508case "(($ac_try" in
22509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510 *) ac_try_echo=$ac_try;;
22511esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22513$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022514 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022515 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022516 grep -v '^ *+' conftest.er1 >conftest.err
22517 rm -f conftest.er1
22518 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022520 (exit $ac_status); } && {
22521 test -z "$ac_c_werror_flag" ||
22522 test ! -s conftest.err
22523 } && test -s conftest.$ac_objext; then
Guido van Rossumda88dad1995-01-26 00:46:29 +000022524 works=yes
Guido van Rossumdabb11b1994-10-11 15:04:27 +000022525else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022526 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022527sed 's/^/| /' conftest.$ac_ext >&5
22528
Martin v. Löwis11437992002-04-12 09:54:03 +000022529
22530cat >>confdefs.h <<\_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022531#define signed /**/
Martin v. Löwis11437992002-04-12 09:54:03 +000022532_ACEOF
Guido van Rossum7f43da71994-08-01 12:15:30 +000022533
Martin v. Löwisc45929e2002-04-06 10:10:49 +000022534
Guido van Rossum7f43da71994-08-01 12:15:30 +000022535fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022536
22537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022538{ $as_echo "$as_me:$LINENO: result: $works" >&5
22539$as_echo "$works" >&6; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000022540
Guido van Rossumda88dad1995-01-26 00:46:29 +000022541have_prototypes=no
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022542{ $as_echo "$as_me:$LINENO: checking for prototypes" >&5
22543$as_echo_n "checking for prototypes... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022544cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022545/* confdefs.h. */
22546_ACEOF
22547cat confdefs.h >>conftest.$ac_ext
22548cat >>conftest.$ac_ext <<_ACEOF
22549/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:30 +000022550int foo(int x) { return 0; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022551int
22552main ()
22553{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022554return foo(10);
Martin v. Löwis11437992002-04-12 09:54:03 +000022555 ;
22556 return 0;
22557}
22558_ACEOF
22559rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022560if { (ac_try="$ac_compile"
22561case "(($ac_try" in
22562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563 *) ac_try_echo=$ac_try;;
22564esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22566$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022567 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022568 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022569 grep -v '^ *+' conftest.er1 >conftest.err
22570 rm -f conftest.er1
22571 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022573 (exit $ac_status); } && {
22574 test -z "$ac_c_werror_flag" ||
22575 test ! -s conftest.err
22576 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022577
22578
22579cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022580#define HAVE_PROTOTYPES 1
Martin v. Löwis11437992002-04-12 09:54:03 +000022581_ACEOF
22582
Martin v. Löwisc45929e2002-04-06 10:10:49 +000022583 have_prototypes=yes
22584
Guido van Rossumf78abae1997-01-21 22:02:36 +000022585else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022586 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022587sed 's/^/| /' conftest.$ac_ext >&5
22588
Martin v. Löwiseba40652007-08-30 20:10:57 +000022589
Guido van Rossum7f43da71994-08-01 12:15:30 +000022590fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022591
22592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022593{ $as_echo "$as_me:$LINENO: result: $have_prototypes" >&5
22594$as_echo "$have_prototypes" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022595
Guido van Rossumda88dad1995-01-26 00:46:29 +000022596works=no
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022597{ $as_echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
22598$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022599cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022600/* confdefs.h. */
22601_ACEOF
22602cat confdefs.h >>conftest.$ac_ext
22603cat >>conftest.$ac_ext <<_ACEOF
22604/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:30 +000022605
22606#include <stdarg.h>
Guido van Rossum90eea071996-08-30 20:58:57 +000022607int foo(int x, ...) {
22608 va_list va;
22609 va_start(va, x);
22610 va_arg(va, int);
22611 va_arg(va, char *);
22612 va_arg(va, double);
22613 return 0;
22614}
Guido van Rossum7f43da71994-08-01 12:15:30 +000022615
Martin v. Löwis11437992002-04-12 09:54:03 +000022616int
22617main ()
22618{
Guido van Rossum90eea071996-08-30 20:58:57 +000022619return foo(10, "", 3.14);
Martin v. Löwis11437992002-04-12 09:54:03 +000022620 ;
22621 return 0;
22622}
22623_ACEOF
22624rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022625if { (ac_try="$ac_compile"
22626case "(($ac_try" in
22627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22628 *) ac_try_echo=$ac_try;;
22629esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22631$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022632 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022633 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022634 grep -v '^ *+' conftest.er1 >conftest.err
22635 rm -f conftest.er1
22636 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022638 (exit $ac_status); } && {
22639 test -z "$ac_c_werror_flag" ||
22640 test ! -s conftest.err
22641 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022642
22643
22644cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022645#define HAVE_STDARG_PROTOTYPES 1
Martin v. Löwis11437992002-04-12 09:54:03 +000022646_ACEOF
22647
Martin v. Löwisc45929e2002-04-06 10:10:49 +000022648 works=yes
22649
Guido van Rossumf78abae1997-01-21 22:02:36 +000022650else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022651 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022652sed 's/^/| /' conftest.$ac_ext >&5
22653
Martin v. Löwiseba40652007-08-30 20:10:57 +000022654
Guido van Rossum627b2d71993-12-24 10:39:16 +000022655fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022656
22657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022658{ $as_echo "$as_me:$LINENO: result: $works" >&5
22659$as_echo "$works" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022660
Martin v. Löwisd6320502004-08-12 13:45:08 +000022661# check for socketpair
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022662{ $as_echo "$as_me:$LINENO: checking for socketpair" >&5
22663$as_echo_n "checking for socketpair... " >&6; }
Martin v. Löwisd6320502004-08-12 13:45:08 +000022664cat >conftest.$ac_ext <<_ACEOF
Martin v. Löwisd6320502004-08-12 13:45:08 +000022665/* confdefs.h. */
22666_ACEOF
22667cat confdefs.h >>conftest.$ac_ext
22668cat >>conftest.$ac_ext <<_ACEOF
22669/* end confdefs.h. */
22670
22671#include <sys/types.h>
22672#include <sys/socket.h>
22673
22674int
22675main ()
22676{
22677void *x=socketpair
22678 ;
22679 return 0;
22680}
22681_ACEOF
22682rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022683if { (ac_try="$ac_compile"
22684case "(($ac_try" in
22685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22686 *) ac_try_echo=$ac_try;;
22687esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22689$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022690 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisd6320502004-08-12 13:45:08 +000022691 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022692 grep -v '^ *+' conftest.er1 >conftest.err
22693 rm -f conftest.er1
22694 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022696 (exit $ac_status); } && {
22697 test -z "$ac_c_werror_flag" ||
22698 test ! -s conftest.err
22699 } && test -s conftest.$ac_objext; then
Martin v. Löwisd6320502004-08-12 13:45:08 +000022700
22701cat >>confdefs.h <<\_ACEOF
22702#define HAVE_SOCKETPAIR 1
22703_ACEOF
22704
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022705 { $as_echo "$as_me:$LINENO: result: yes" >&5
22706$as_echo "yes" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:08 +000022707else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022708 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwisd6320502004-08-12 13:45:08 +000022709sed 's/^/| /' conftest.$ac_ext >&5
22710
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022711 { $as_echo "$as_me:$LINENO: result: no" >&5
22712$as_echo "no" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:08 +000022713
22714fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022715
22716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd6320502004-08-12 13:45:08 +000022717
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022718# check if sockaddr has sa_len member
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022719{ $as_echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
22720$as_echo_n "checking if sockaddr has sa_len member... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022721cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022722/* confdefs.h. */
22723_ACEOF
22724cat confdefs.h >>conftest.$ac_ext
22725cat >>conftest.$ac_ext <<_ACEOF
22726/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022727#include <sys/types.h>
22728#include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000022729int
22730main ()
22731{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022732struct sockaddr x;
22733x.sa_len = 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000022734 ;
22735 return 0;
22736}
22737_ACEOF
22738rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022739if { (ac_try="$ac_compile"
22740case "(($ac_try" in
22741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22742 *) ac_try_echo=$ac_try;;
22743esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22745$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022746 (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
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022751 $as_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
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022756 { $as_echo "$as_me:$LINENO: result: yes" >&5
22757$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022758
22759cat >>confdefs.h <<\_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022760#define HAVE_SOCKADDR_SA_LEN 1
Martin v. Löwis11437992002-04-12 09:54:03 +000022761_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022762
22763else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022764 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022765sed 's/^/| /' conftest.$ac_ext >&5
22766
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022767 { $as_echo "$as_me:$LINENO: result: no" >&5
22768$as_echo "no" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022769fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022770
22771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000022772
Guido van Rossumda88dad1995-01-26 00:46:29 +000022773va_list_is_array=no
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022774{ $as_echo "$as_me:$LINENO: checking whether va_list is an array" >&5
22775$as_echo_n "checking whether va_list is an array... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022776cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022777/* confdefs.h. */
22778_ACEOF
22779cat confdefs.h >>conftest.$ac_ext
22780cat >>conftest.$ac_ext <<_ACEOF
22781/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022782
22783#ifdef HAVE_STDARG_PROTOTYPES
22784#include <stdarg.h>
22785#else
22786#include <varargs.h>
22787#endif
22788
Martin v. Löwis11437992002-04-12 09:54:03 +000022789int
22790main ()
22791{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022792va_list list1, list2; list1 = list2;
Martin v. Löwis11437992002-04-12 09:54:03 +000022793 ;
22794 return 0;
22795}
22796_ACEOF
22797rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022798if { (ac_try="$ac_compile"
22799case "(($ac_try" in
22800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22801 *) ac_try_echo=$ac_try;;
22802esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22804$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022805 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022806 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022807 grep -v '^ *+' conftest.er1 >conftest.err
22808 rm -f conftest.er1
22809 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022811 (exit $ac_status); } && {
22812 test -z "$ac_c_werror_flag" ||
22813 test ! -s conftest.err
22814 } && test -s conftest.$ac_objext; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022815 :
22816else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022817 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022818sed 's/^/| /' conftest.$ac_ext >&5
22819
Martin v. Löwis11437992002-04-12 09:54:03 +000022820
22821
22822cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022823#define VA_LIST_IS_ARRAY 1
Martin v. Löwis11437992002-04-12 09:54:03 +000022824_ACEOF
22825
Guido van Rossumda88dad1995-01-26 00:46:29 +000022826 va_list_is_array=yes
Martin v. Löwisc45929e2002-04-06 10:10:49 +000022827
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022828fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022829
22830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022831{ $as_echo "$as_me:$LINENO: result: $va_list_is_array" >&5
22832$as_echo "$va_list_is_array" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000022833
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022834# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
Martin v. Löwis11437992002-04-12 09:54:03 +000022835
22836
22837
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022838{ $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
22839$as_echo_n "checking for gethostbyname_r... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022840if test "${ac_cv_func_gethostbyname_r+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022841 $as_echo_n "(cached) " >&6
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022842else
Martin v. Löwis11437992002-04-12 09:54:03 +000022843 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022844/* confdefs.h. */
22845_ACEOF
22846cat confdefs.h >>conftest.$ac_ext
22847cat >>conftest.$ac_ext <<_ACEOF
22848/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000022849/* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
22850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22851#define gethostbyname_r innocuous_gethostbyname_r
22852
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022853/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000022854 which can conflict with char gethostbyname_r (); below.
22855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000022856 <limits.h> exists even on freestanding compilers. */
22857
22858#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000022859# include <limits.h>
22860#else
22861# include <assert.h>
22862#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000022863
22864#undef gethostbyname_r
22865
Martin v. Löwiseba40652007-08-30 20:10:57 +000022866/* Override any GCC internal prototype to avoid an error.
22867 Use char because int might match the return type of a GCC
22868 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000022869#ifdef __cplusplus
22870extern "C"
22871#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000022872char gethostbyname_r ();
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022873/* The GNU C library defines this for functions which it implements
22874 to always fail with ENOSYS. Some functions are actually named
22875 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000022876#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022877choke me
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022878#endif
22879
Skip Montanaro6dead952003-09-25 14:50:04 +000022880int
22881main ()
22882{
Martin v. Löwiseba40652007-08-30 20:10:57 +000022883return gethostbyname_r ();
Martin v. Löwis11437992002-04-12 09:54:03 +000022884 ;
22885 return 0;
22886}
22887_ACEOF
22888rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022889if { (ac_try="$ac_link"
22890case "(($ac_try" in
22891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22892 *) ac_try_echo=$ac_try;;
22893esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22895$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022896 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022897 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022898 grep -v '^ *+' conftest.er1 >conftest.err
22899 rm -f conftest.er1
22900 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022902 (exit $ac_status); } && {
22903 test -z "$ac_c_werror_flag" ||
22904 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022905 } && test -s conftest$ac_exeext && {
22906 test "$cross_compiling" = yes ||
22907 $as_test_x conftest$ac_exeext
22908 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022909 ac_cv_func_gethostbyname_r=yes
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022910else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022911 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022912sed 's/^/| /' conftest.$ac_ext >&5
22913
Martin v. Löwiseba40652007-08-30 20:10:57 +000022914 ac_cv_func_gethostbyname_r=no
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022915fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000022916
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022917rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000022918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000022919 conftest$ac_exeext conftest.$ac_ext
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022920fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022921{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
22922$as_echo "$ac_cv_func_gethostbyname_r" >&6; }
22923if test "x$ac_cv_func_gethostbyname_r" = x""yes; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022924
Martin v. Löwis11437992002-04-12 09:54:03 +000022925 cat >>confdefs.h <<\_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022926#define HAVE_GETHOSTBYNAME_R 1
Martin v. Löwis11437992002-04-12 09:54:03 +000022927_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022928
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022929 { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
22930$as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022931 OLD_CFLAGS=$CFLAGS
22932 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
Martin v. Löwis11437992002-04-12 09:54:03 +000022933 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022934/* confdefs.h. */
22935_ACEOF
22936cat confdefs.h >>conftest.$ac_ext
22937cat >>conftest.$ac_ext <<_ACEOF
22938/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022939
22940# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000022941
Martin v. Löwis11437992002-04-12 09:54:03 +000022942int
22943main ()
22944{
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022945
22946 char *name;
22947 struct hostent *he, *res;
22948 char buffer[2048];
22949 int buflen = 2048;
22950 int h_errnop;
22951
22952 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:03 +000022953
22954 ;
22955 return 0;
22956}
22957_ACEOF
22958rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000022959if { (ac_try="$ac_compile"
22960case "(($ac_try" in
22961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22962 *) ac_try_echo=$ac_try;;
22963esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22965$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022966 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000022967 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000022968 grep -v '^ *+' conftest.er1 >conftest.err
22969 rm -f conftest.er1
22970 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000022972 (exit $ac_status); } && {
22973 test -z "$ac_c_werror_flag" ||
22974 test ! -s conftest.err
22975 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000022976
22977 cat >>confdefs.h <<\_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000022978#define HAVE_GETHOSTBYNAME_R 1
Martin v. Löwis11437992002-04-12 09:54:03 +000022979_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000022980
Martin v. Löwis11437992002-04-12 09:54:03 +000022981
22982cat >>confdefs.h <<\_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022983#define HAVE_GETHOSTBYNAME_R_6_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000022984_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022985
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022986 { $as_echo "$as_me:$LINENO: result: yes" >&5
22987$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022988
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000022989else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022990 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000022991sed 's/^/| /' conftest.$ac_ext >&5
22992
Martin v. Löwis11437992002-04-12 09:54:03 +000022993
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000022994 { $as_echo "$as_me:$LINENO: result: no" >&5
22995$as_echo "no" >&6; }
22996 { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
22997$as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000022998 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000022999/* confdefs.h. */
23000_ACEOF
23001cat confdefs.h >>conftest.$ac_ext
23002cat >>conftest.$ac_ext <<_ACEOF
23003/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023004
23005# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000023006
Martin v. Löwis11437992002-04-12 09:54:03 +000023007int
23008main ()
23009{
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023010
23011 char *name;
23012 struct hostent *he;
23013 char buffer[2048];
23014 int buflen = 2048;
23015 int h_errnop;
23016
23017 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:03 +000023018
23019 ;
23020 return 0;
23021}
23022_ACEOF
23023rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023024if { (ac_try="$ac_compile"
23025case "(($ac_try" in
23026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23027 *) ac_try_echo=$ac_try;;
23028esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23030$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023031 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000023032 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000023033 grep -v '^ *+' conftest.er1 >conftest.err
23034 rm -f conftest.er1
23035 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023037 (exit $ac_status); } && {
23038 test -z "$ac_c_werror_flag" ||
23039 test ! -s conftest.err
23040 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000023041
23042 cat >>confdefs.h <<\_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000023043#define HAVE_GETHOSTBYNAME_R 1
Martin v. Löwis11437992002-04-12 09:54:03 +000023044_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000023045
Martin v. Löwis11437992002-04-12 09:54:03 +000023046
23047cat >>confdefs.h <<\_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023048#define HAVE_GETHOSTBYNAME_R_5_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000023049_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023050
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023051 { $as_echo "$as_me:$LINENO: result: yes" >&5
23052$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023053
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023054else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023055 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023056sed 's/^/| /' conftest.$ac_ext >&5
23057
Martin v. Löwis11437992002-04-12 09:54:03 +000023058
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023059 { $as_echo "$as_me:$LINENO: result: no" >&5
23060$as_echo "no" >&6; }
23061 { $as_echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
23062$as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023063 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023064/* confdefs.h. */
23065_ACEOF
23066cat confdefs.h >>conftest.$ac_ext
23067cat >>conftest.$ac_ext <<_ACEOF
23068/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023069
23070# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000023071
Martin v. Löwis11437992002-04-12 09:54:03 +000023072int
23073main ()
23074{
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023075
23076 char *name;
23077 struct hostent *he;
23078 struct hostent_data data;
23079
23080 (void) gethostbyname_r(name, he, &data);
Martin v. Löwis11437992002-04-12 09:54:03 +000023081
23082 ;
23083 return 0;
23084}
23085_ACEOF
23086rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023087if { (ac_try="$ac_compile"
23088case "(($ac_try" in
23089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23090 *) ac_try_echo=$ac_try;;
23091esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23093$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023094 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000023095 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000023096 grep -v '^ *+' conftest.er1 >conftest.err
23097 rm -f conftest.er1
23098 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023100 (exit $ac_status); } && {
23101 test -z "$ac_c_werror_flag" ||
23102 test ! -s conftest.err
23103 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000023104
23105 cat >>confdefs.h <<\_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000023106#define HAVE_GETHOSTBYNAME_R 1
Martin v. Löwis11437992002-04-12 09:54:03 +000023107_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000023108
Martin v. Löwis11437992002-04-12 09:54:03 +000023109
23110cat >>confdefs.h <<\_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023111#define HAVE_GETHOSTBYNAME_R_3_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000023112_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023113
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023114 { $as_echo "$as_me:$LINENO: result: yes" >&5
23115$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023116
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023117else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023118 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023119sed 's/^/| /' conftest.$ac_ext >&5
23120
Martin v. Löwis11437992002-04-12 09:54:03 +000023121
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023122 { $as_echo "$as_me:$LINENO: result: no" >&5
23123$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023124
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023125fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023126
23127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000023128
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023129fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023130
23131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000023132
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023133fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023134
23135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023136 CFLAGS=$OLD_CFLAGS
23137
23138else
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023139
Martin v. Löwis11437992002-04-12 09:54:03 +000023140
23141for ac_func in gethostbyname
Thomas Wouters3a584202000-08-05 23:28:51 +000023142do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023143as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23144{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23145$as_echo_n "checking for $ac_func... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000023146if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023147 $as_echo_n "(cached) " >&6
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023148else
Martin v. Löwis11437992002-04-12 09:54:03 +000023149 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023150/* confdefs.h. */
23151_ACEOF
23152cat confdefs.h >>conftest.$ac_ext
23153cat >>conftest.$ac_ext <<_ACEOF
23154/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000023155/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23157#define $ac_func innocuous_$ac_func
23158
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023159/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000023160 which can conflict with char $ac_func (); below.
23161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000023162 <limits.h> exists even on freestanding compilers. */
23163
23164#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000023165# include <limits.h>
23166#else
23167# include <assert.h>
23168#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000023169
23170#undef $ac_func
23171
Martin v. Löwiseba40652007-08-30 20:10:57 +000023172/* Override any GCC internal prototype to avoid an error.
23173 Use char because int might match the return type of a GCC
23174 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000023175#ifdef __cplusplus
23176extern "C"
23177#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000023178char $ac_func ();
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023179/* The GNU C library defines this for functions which it implements
23180 to always fail with ENOSYS. Some functions are actually named
23181 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000023182#if defined __stub_$ac_func || defined __stub___$ac_func
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023183choke me
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023184#endif
23185
Skip Montanaro6dead952003-09-25 14:50:04 +000023186int
23187main ()
23188{
Martin v. Löwiseba40652007-08-30 20:10:57 +000023189return $ac_func ();
Martin v. Löwis11437992002-04-12 09:54:03 +000023190 ;
23191 return 0;
23192}
23193_ACEOF
23194rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023195if { (ac_try="$ac_link"
23196case "(($ac_try" in
23197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23198 *) ac_try_echo=$ac_try;;
23199esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23201$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023202 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000023203 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000023204 grep -v '^ *+' conftest.er1 >conftest.err
23205 rm -f conftest.er1
23206 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023208 (exit $ac_status); } && {
23209 test -z "$ac_c_werror_flag" ||
23210 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023211 } && test -s conftest$ac_exeext && {
23212 test "$cross_compiling" = yes ||
23213 $as_test_x conftest$ac_exeext
23214 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000023215 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000023216else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023217 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023218sed 's/^/| /' conftest.$ac_ext >&5
23219
Martin v. Löwiseba40652007-08-30 20:10:57 +000023220 eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000023221fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023222
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023223rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000023224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000023225 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000023226fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023227ac_res=`eval 'as_val=${'$as_ac_var'}
23228 $as_echo "$as_val"'`
23229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23230$as_echo "$ac_res" >&6; }
23231as_val=`eval 'as_val=${'$as_ac_var'}
23232 $as_echo "$as_val"'`
23233 if test "x$as_val" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000023234 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023235#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:03 +000023236_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023237
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023238fi
Thomas Wouters3a584202000-08-05 23:28:51 +000023239done
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023240
Michael W. Hudson54241132001-12-07 15:38:26 +000023241
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000023242fi
23243
Michael W. Hudson54241132001-12-07 15:38:26 +000023244
23245
23246
23247
23248
23249
Guido van Rossum627b2d71993-12-24 10:39:16 +000023250# checks for system services
23251# (none yet)
23252
Guido van Rossum76be6ed1995-01-02 18:33:54 +000023253# Linux requires this for correct f.p. operations
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023254{ $as_echo "$as_me:$LINENO: checking for __fpu_control" >&5
23255$as_echo_n "checking for __fpu_control... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023256if test "${ac_cv_func___fpu_control+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023257 $as_echo_n "(cached) " >&6
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000023258else
Martin v. Löwis11437992002-04-12 09:54:03 +000023259 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000023260/* confdefs.h. */
23261_ACEOF
23262cat confdefs.h >>conftest.$ac_ext
23263cat >>conftest.$ac_ext <<_ACEOF
23264/* end confdefs.h. */
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000023265/* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
23266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23267#define __fpu_control innocuous___fpu_control
23268
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000023269/* System header to define __stub macros and hopefully few prototypes,
Skip Montanaro6dead952003-09-25 14:50:04 +000023270 which can conflict with char __fpu_control (); below.
23271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000023272 <limits.h> exists even on freestanding compilers. */
23273
23274#ifdef __STDC__
Skip Montanaro6dead952003-09-25 14:50:04 +000023275# include <limits.h>
23276#else
23277# include <assert.h>
23278#endif
Martin v. Löwis4ddc78a2006-01-29 09:53:44 +000023279
23280#undef __fpu_control
23281
Martin v. Löwiseba40652007-08-30 20:10:57 +000023282/* Override any GCC internal prototype to avoid an error.
23283 Use char because int might match the return type of a GCC
23284 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000023285#ifdef __cplusplus
23286extern "C"
23287#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000023288char __fpu_control ();
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000023289/* The GNU C library defines this for functions which it implements
23290 to always fail with ENOSYS. Some functions are actually named
23291 something starting with __ and the normal name is an alias. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000023292#if defined __stub___fpu_control || defined __stub_____fpu_control
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000023293choke me
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000023294#endif
23295
Skip Montanaro6dead952003-09-25 14:50:04 +000023296int
23297main ()
23298{
Martin v. Löwiseba40652007-08-30 20:10:57 +000023299return __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:03 +000023300 ;
23301 return 0;
23302}
23303_ACEOF
23304rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023305if { (ac_try="$ac_link"
23306case "(($ac_try" in
23307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23308 *) ac_try_echo=$ac_try;;
23309esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23311$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023312 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000023313 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000023314 grep -v '^ *+' conftest.er1 >conftest.err
23315 rm -f conftest.er1
23316 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023318 (exit $ac_status); } && {
23319 test -z "$ac_c_werror_flag" ||
23320 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023321 } && test -s conftest$ac_exeext && {
23322 test "$cross_compiling" = yes ||
23323 $as_test_x conftest$ac_exeext
23324 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000023325 ac_cv_func___fpu_control=yes
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000023326else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023327 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023328sed 's/^/| /' conftest.$ac_ext >&5
23329
Martin v. Löwiseba40652007-08-30 20:10:57 +000023330 ac_cv_func___fpu_control=no
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000023331fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023332
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023333rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000023334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000023335 conftest$ac_exeext conftest.$ac_ext
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000023336fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023337{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
23338$as_echo "$ac_cv_func___fpu_control" >&6; }
23339if test "x$ac_cv_func___fpu_control" = x""yes; then
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000023340 :
23341else
Martin v. Löwis11437992002-04-12 09:54:03 +000023342
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023343{ $as_echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
23344$as_echo_n "checking for __fpu_control in -lieee... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023345if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023346 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000023347else
Martin v. Löwis11437992002-04-12 09:54:03 +000023348 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000023349LIBS="-lieee $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000023350cat >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. */
Martin v. Löwis11437992002-04-12 09:54:03 +000023356
Martin v. Löwiseba40652007-08-30 20:10:57 +000023357/* Override any GCC internal prototype to avoid an error.
23358 Use char because int might match the return type of a GCC
23359 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000023360#ifdef __cplusplus
23361extern "C"
23362#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000023363char __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:03 +000023364int
23365main ()
23366{
Martin v. Löwiseba40652007-08-30 20:10:57 +000023367return __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:03 +000023368 ;
23369 return 0;
23370}
23371_ACEOF
23372rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000023373if { (ac_try="$ac_link"
23374case "(($ac_try" in
23375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23376 *) ac_try_echo=$ac_try;;
23377esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23379$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023380 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000023381 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000023382 grep -v '^ *+' conftest.er1 >conftest.err
23383 rm -f conftest.er1
23384 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000023386 (exit $ac_status); } && {
23387 test -z "$ac_c_werror_flag" ||
23388 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023389 } && test -s conftest$ac_exeext && {
23390 test "$cross_compiling" = yes ||
23391 $as_test_x conftest$ac_exeext
23392 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000023393 ac_cv_lib_ieee___fpu_control=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +000023394else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023395 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000023396sed 's/^/| /' conftest.$ac_ext >&5
23397
Martin v. Löwiseba40652007-08-30 20:10:57 +000023398 ac_cv_lib_ieee___fpu_control=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000023399fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000023400
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023401rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000023402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000023403 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000023404LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:54 +000023405fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023406{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
23407$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
23408if test "x$ac_cv_lib_ieee___fpu_control" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000023409 cat >>confdefs.h <<_ACEOF
23410#define HAVE_LIBIEEE 1
23411_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000023412
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000023413 LIBS="-lieee $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000023414
Guido van Rossum627b2d71993-12-24 10:39:16 +000023415fi
23416
Michael W. Hudson54241132001-12-07 15:38:26 +000023417
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000023418fi
23419
Michael W. Hudson54241132001-12-07 15:38:26 +000023420
Guido van Rossum7f253911997-05-09 02:42:48 +000023421# Check for --with-fpectl
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023422{ $as_echo "$as_me:$LINENO: checking for --with-fpectl" >&5
23423$as_echo_n "checking for --with-fpectl... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023424
Martin v. Löwiseba40652007-08-30 20:10:57 +000023425# Check whether --with-fpectl was given.
Guido van Rossum7f253911997-05-09 02:42:48 +000023426if test "${with_fpectl+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000023427 withval=$with_fpectl;
Guido van Rossum7f253911997-05-09 02:42:48 +000023428if test "$withval" != no
Martin v. Löwis11437992002-04-12 09:54:03 +000023429then
23430
23431cat >>confdefs.h <<\_ACEOF
Guido van Rossum7f253911997-05-09 02:42:48 +000023432#define WANT_SIGFPE_HANDLER 1
Martin v. Löwis11437992002-04-12 09:54:03 +000023433_ACEOF
23434
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023435 { $as_echo "$as_me:$LINENO: result: yes" >&5
23436$as_echo "yes" >&6; }
23437else { $as_echo "$as_me:$LINENO: result: no" >&5
23438$as_echo "no" >&6; }
Guido van Rossum7f253911997-05-09 02:42:48 +000023439fi
Guido van Rossumef2255b2000-03-10 22:30:29 +000023440else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023441 { $as_echo "$as_me:$LINENO: result: no" >&5
23442$as_echo "no" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000023443fi
23444
Guido van Rossum7f253911997-05-09 02:42:48 +000023445
Guido van Rossum7f43da71994-08-01 12:15:30 +000023446# check for --with-libm=...
23447
Guido van Rossum563e7081996-09-10 18:20:48 +000023448case $ac_sys_system in
Guido van Rossum3dc0a512000-10-05 18:00:06 +000023449Darwin) ;;
Guido van Rossumec95c7b1998-08-04 17:59:56 +000023450BeOS) ;;
Guido van Rossum563e7081996-09-10 18:20:48 +000023451*) LIBM=-lm
23452esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023453{ $as_echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
23454$as_echo_n "checking for --with-libm=STRING... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023455
Martin v. Löwiseba40652007-08-30 20:10:57 +000023456# Check whether --with-libm was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000023457if test "${with_libm+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000023458 withval=$with_libm;
Guido van Rossum7f253911997-05-09 02:42:48 +000023459if test "$withval" = no
23460then LIBM=
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023461 { $as_echo "$as_me:$LINENO: result: force LIBM empty" >&5
23462$as_echo "force LIBM empty" >&6; }
Guido van Rossum7f253911997-05-09 02:42:48 +000023463elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +000023464then LIBM=$withval
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023465 { $as_echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
23466$as_echo "set LIBM=\"$withval\"" >&6; }
23467else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
23468$as_echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +000023469 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000023470fi
Guido van Rossum7f253911997-05-09 02:42:48 +000023471else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023472 { $as_echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
23473$as_echo "default LIBM=\"$LIBM\"" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000023474fi
23475
Guido van Rossum7f43da71994-08-01 12:15:30 +000023476
23477# check for --with-libc=...
23478
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023479{ $as_echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
23480$as_echo_n "checking for --with-libc=STRING... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000023481
Martin v. Löwiseba40652007-08-30 20:10:57 +000023482# Check whether --with-libc was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000023483if test "${with_libc+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000023484 withval=$with_libc;
Guido van Rossum7f253911997-05-09 02:42:48 +000023485if test "$withval" = no
23486then LIBC=
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023487 { $as_echo "$as_me:$LINENO: result: force LIBC empty" >&5
23488$as_echo "force LIBC empty" >&6; }
Guido van Rossum7f253911997-05-09 02:42:48 +000023489elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +000023490then LIBC=$withval
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023491 { $as_echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
23492$as_echo "set LIBC=\"$withval\"" >&6; }
23493else { { $as_echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
23494$as_echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +000023495 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000023496fi
Guido van Rossum7f253911997-05-09 02:42:48 +000023497else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023498 { $as_echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
23499$as_echo "default LIBC=\"$LIBC\"" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000023500fi
23501
Guido van Rossum7f43da71994-08-01 12:15:30 +000023502
Christian Heimes0a8143f2007-12-18 23:22:54 +000023503# ************************************
23504# * Check for mathematical functions *
23505# ************************************
Mark Dickinson265d7382008-04-21 22:32:24 +000023506
Mark Dickinson7a3d8642008-04-22 00:54:27 +000023507LIBS_SAVE=$LIBS
23508LIBS="$LIBS $LIBM"
23509
Mark Dickinson04b27232009-01-04 12:29:36 +000023510# Detect whether system arithmetic is subject to x87-style double
23511# rounding issues. The result of this test has little meaning on non
23512# IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
23513# mode is round-to-nearest and double rounding issues are present, and
23514# 0 otherwise. See http://bugs.python.org/issue2937 for more info.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023515{ $as_echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
23516$as_echo_n "checking for x87-style double rounding... " >&6; }
Mark Dickinson04b27232009-01-04 12:29:36 +000023517if test "${ac_cv_x87_double_rounding+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023518 $as_echo_n "(cached) " >&6
Mark Dickinson04b27232009-01-04 12:29:36 +000023519else
23520
23521if test "$cross_compiling" = yes; then
23522 ac_cv_x87_double_rounding=no
23523else
23524 cat >conftest.$ac_ext <<_ACEOF
23525/* confdefs.h. */
23526_ACEOF
23527cat confdefs.h >>conftest.$ac_ext
23528cat >>conftest.$ac_ext <<_ACEOF
23529/* end confdefs.h. */
23530
23531#include <stdlib.h>
23532#include <math.h>
23533int main() {
23534 volatile double x, y, z;
23535 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
23536 x = 0.99999999999999989; /* 1-2**-53 */
23537 y = 1./x;
23538 if (y != 1.)
23539 exit(0);
23540 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
23541 x = 1e16;
23542 y = 2.99999;
23543 z = x + y;
23544 if (z != 1e16+4.)
23545 exit(0);
23546 /* both tests show evidence of double rounding */
23547 exit(1);
23548}
23549
23550_ACEOF
23551rm -f conftest$ac_exeext
23552if { (ac_try="$ac_link"
23553case "(($ac_try" in
23554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23555 *) ac_try_echo=$ac_try;;
23556esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23558$as_echo "$ac_try_echo") >&5
Mark Dickinson04b27232009-01-04 12:29:36 +000023559 (eval "$ac_link") 2>&5
23560 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinson04b27232009-01-04 12:29:36 +000023562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23563 { (case "(($ac_try" in
23564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565 *) ac_try_echo=$ac_try;;
23566esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23568$as_echo "$ac_try_echo") >&5
Mark Dickinson04b27232009-01-04 12:29:36 +000023569 (eval "$ac_try") 2>&5
23570 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinson04b27232009-01-04 12:29:36 +000023572 (exit $ac_status); }; }; then
23573 ac_cv_x87_double_rounding=no
23574else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023575 $as_echo "$as_me: program exited with status $ac_status" >&5
23576$as_echo "$as_me: failed program was:" >&5
Mark Dickinson04b27232009-01-04 12:29:36 +000023577sed 's/^/| /' conftest.$ac_ext >&5
23578
23579( exit $ac_status )
23580ac_cv_x87_double_rounding=yes
23581fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023582rm -rf conftest.dSYM
Mark Dickinson04b27232009-01-04 12:29:36 +000023583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23584fi
23585
23586
23587fi
23588
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023589{ $as_echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
23590$as_echo "$ac_cv_x87_double_rounding" >&6; }
Mark Dickinson04b27232009-01-04 12:29:36 +000023591if test "$ac_cv_x87_double_rounding" = yes
23592then
23593
23594cat >>confdefs.h <<\_ACEOF
23595#define X87_DOUBLE_ROUNDING 1
23596_ACEOF
23597
23598fi
23599
Jesse Noller355b1262009-04-02 00:03:28 +000023600# Multiprocessing check for broken sem_getvalue
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023601{ $as_echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
23602$as_echo_n "checking for broken sem_getvalue... " >&6; }
23603if test "${ac_cv_broken_sem_getvalue+set}" = set; then
23604 $as_echo_n "(cached) " >&6
23605else
23606 if test "$cross_compiling" = yes; then
23607 ac_cv_broken_sem_getvalue=yes
Jesse Noller355b1262009-04-02 00:03:28 +000023608else
23609 cat >conftest.$ac_ext <<_ACEOF
23610/* confdefs.h. */
23611_ACEOF
23612cat confdefs.h >>conftest.$ac_ext
23613cat >>conftest.$ac_ext <<_ACEOF
23614/* end confdefs.h. */
23615
23616#include <unistd.h>
23617#include <fcntl.h>
23618#include <stdio.h>
23619#include <semaphore.h>
23620#include <sys/stat.h>
23621
23622int main(void){
23623 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
23624 int count;
23625 int res;
23626 if(a==SEM_FAILED){
23627 perror("sem_open");
23628 return 1;
23629
23630 }
23631 res = sem_getvalue(a, &count);
23632 sem_close(a);
23633 return res==-1 ? 1 : 0;
23634}
23635
Jesse Noller355b1262009-04-02 00:03:28 +000023636_ACEOF
23637rm -f conftest$ac_exeext
23638if { (ac_try="$ac_link"
23639case "(($ac_try" in
23640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23641 *) ac_try_echo=$ac_try;;
23642esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23644$as_echo "$ac_try_echo") >&5
Jesse Noller355b1262009-04-02 00:03:28 +000023645 (eval "$ac_link") 2>&5
23646 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jesse Noller355b1262009-04-02 00:03:28 +000023648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23649 { (case "(($ac_try" in
23650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23651 *) ac_try_echo=$ac_try;;
23652esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23654$as_echo "$ac_try_echo") >&5
Jesse Noller355b1262009-04-02 00:03:28 +000023655 (eval "$ac_try") 2>&5
23656 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jesse Noller355b1262009-04-02 00:03:28 +000023658 (exit $ac_status); }; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023659 ac_cv_broken_sem_getvalue=no
Jesse Noller355b1262009-04-02 00:03:28 +000023660else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023661 $as_echo "$as_me: program exited with status $ac_status" >&5
23662$as_echo "$as_me: failed program was:" >&5
Jesse Noller355b1262009-04-02 00:03:28 +000023663sed 's/^/| /' conftest.$ac_ext >&5
23664
23665( exit $ac_status )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023666ac_cv_broken_sem_getvalue=yes
Jesse Noller355b1262009-04-02 00:03:28 +000023667fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023668rm -rf conftest.dSYM
Jesse Noller355b1262009-04-02 00:03:28 +000023669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23670fi
23671
23672
Mark Dickinson04b27232009-01-04 12:29:36 +000023673
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023674fi
23675
23676{ $as_echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
23677$as_echo "$ac_cv_broken_sem_getvalue" >&6; }
23678if test $ac_cv_broken_sem_getvalue = yes
23679then
23680
23681cat >>confdefs.h <<\_ACEOF
23682#define HAVE_BROKEN_SEM_GETVALUE 1
23683_ACEOF
23684
23685fi
23686
Mark Dickinson265d7382008-04-21 22:32:24 +000023687# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
23688# -0. on some architectures.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023689{ $as_echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
23690$as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
Mark Dickinson265d7382008-04-21 22:32:24 +000023691if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023692 $as_echo_n "(cached) " >&6
Mark Dickinson265d7382008-04-21 22:32:24 +000023693else
23694
23695if test "$cross_compiling" = yes; then
23696 ac_cv_tanh_preserves_zero_sign=no
23697else
23698 cat >conftest.$ac_ext <<_ACEOF
23699/* confdefs.h. */
23700_ACEOF
23701cat confdefs.h >>conftest.$ac_ext
23702cat >>conftest.$ac_ext <<_ACEOF
23703/* end confdefs.h. */
23704
23705#include <math.h>
Mark Dickinson7a3d8642008-04-22 00:54:27 +000023706#include <stdlib.h>
Mark Dickinson265d7382008-04-21 22:32:24 +000023707int main() {
23708 /* return 0 if either negative zeros don't exist
23709 on this platform or if negative zeros exist
23710 and tanh(-0.) == -0. */
23711 if (atan2(0., -1.) == atan2(-0., -1.) ||
23712 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
23713 else exit(1);
23714}
23715
23716_ACEOF
23717rm -f conftest$ac_exeext
23718if { (ac_try="$ac_link"
23719case "(($ac_try" in
23720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721 *) ac_try_echo=$ac_try;;
23722esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23724$as_echo "$ac_try_echo") >&5
Mark Dickinson265d7382008-04-21 22:32:24 +000023725 (eval "$ac_link") 2>&5
23726 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinson265d7382008-04-21 22:32:24 +000023728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23729 { (case "(($ac_try" in
23730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23731 *) ac_try_echo=$ac_try;;
23732esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23734$as_echo "$ac_try_echo") >&5
Mark Dickinson265d7382008-04-21 22:32:24 +000023735 (eval "$ac_try") 2>&5
23736 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinson265d7382008-04-21 22:32:24 +000023738 (exit $ac_status); }; }; then
23739 ac_cv_tanh_preserves_zero_sign=yes
23740else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023741 $as_echo "$as_me: program exited with status $ac_status" >&5
23742$as_echo "$as_me: failed program was:" >&5
Mark Dickinson265d7382008-04-21 22:32:24 +000023743sed 's/^/| /' conftest.$ac_ext >&5
23744
23745( exit $ac_status )
23746ac_cv_tanh_preserves_zero_sign=no
23747fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023748rm -rf conftest.dSYM
Mark Dickinson265d7382008-04-21 22:32:24 +000023749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23750fi
23751
23752
23753fi
23754
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023755{ $as_echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
23756$as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
Mark Dickinson265d7382008-04-21 22:32:24 +000023757if test "$ac_cv_tanh_preserves_zero_sign" = yes
23758then
23759
23760cat >>confdefs.h <<\_ACEOF
23761#define TANH_PRESERVES_ZERO_SIGN 1
23762_ACEOF
23763
23764fi
23765
Martin v. Löwis11437992002-04-12 09:54:03 +000023766
Guido van Rossum2b3ac691996-08-30 15:18:41 +000023767
Michael W. Hudson54241132001-12-07 15:38:26 +000023768
Christian Heimes0a8143f2007-12-18 23:22:54 +000023769
23770
23771
23772
23773
Mark Dickinson8e5446f2009-04-18 14:41:37 +000023774
23775for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
Christian Heimes0a8143f2007-12-18 23:22:54 +000023776do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023777as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23778{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23779$as_echo_n "checking for $ac_func... " >&6; }
Christian Heimes0a8143f2007-12-18 23:22:54 +000023780if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023781 $as_echo_n "(cached) " >&6
Christian Heimes0a8143f2007-12-18 23:22:54 +000023782else
23783 cat >conftest.$ac_ext <<_ACEOF
23784/* confdefs.h. */
23785_ACEOF
23786cat confdefs.h >>conftest.$ac_ext
23787cat >>conftest.$ac_ext <<_ACEOF
23788/* end confdefs.h. */
23789/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23791#define $ac_func innocuous_$ac_func
23792
23793/* System header to define __stub macros and hopefully few prototypes,
23794 which can conflict with char $ac_func (); below.
23795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23796 <limits.h> exists even on freestanding compilers. */
23797
23798#ifdef __STDC__
23799# include <limits.h>
23800#else
23801# include <assert.h>
23802#endif
23803
23804#undef $ac_func
23805
23806/* Override any GCC internal prototype to avoid an error.
23807 Use char because int might match the return type of a GCC
23808 builtin and then its argument prototype would still apply. */
23809#ifdef __cplusplus
23810extern "C"
23811#endif
23812char $ac_func ();
23813/* The GNU C library defines this for functions which it implements
23814 to always fail with ENOSYS. Some functions are actually named
23815 something starting with __ and the normal name is an alias. */
23816#if defined __stub_$ac_func || defined __stub___$ac_func
23817choke me
23818#endif
23819
23820int
23821main ()
23822{
23823return $ac_func ();
23824 ;
23825 return 0;
23826}
23827_ACEOF
23828rm -f conftest.$ac_objext conftest$ac_exeext
23829if { (ac_try="$ac_link"
23830case "(($ac_try" in
23831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23832 *) ac_try_echo=$ac_try;;
23833esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23835$as_echo "$ac_try_echo") >&5
Christian Heimes0a8143f2007-12-18 23:22:54 +000023836 (eval "$ac_link") 2>conftest.er1
23837 ac_status=$?
23838 grep -v '^ *+' conftest.er1 >conftest.err
23839 rm -f conftest.er1
23840 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Christian Heimes0a8143f2007-12-18 23:22:54 +000023842 (exit $ac_status); } && {
23843 test -z "$ac_c_werror_flag" ||
23844 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023845 } && test -s conftest$ac_exeext && {
23846 test "$cross_compiling" = yes ||
23847 $as_test_x conftest$ac_exeext
23848 }; then
Christian Heimes0a8143f2007-12-18 23:22:54 +000023849 eval "$as_ac_var=yes"
23850else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023851 $as_echo "$as_me: failed program was:" >&5
Christian Heimes0a8143f2007-12-18 23:22:54 +000023852sed 's/^/| /' conftest.$ac_ext >&5
23853
23854 eval "$as_ac_var=no"
23855fi
23856
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023857rm -rf conftest.dSYM
Christian Heimes0a8143f2007-12-18 23:22:54 +000023858rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23859 conftest$ac_exeext conftest.$ac_ext
23860fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023861ac_res=`eval 'as_val=${'$as_ac_var'}
23862 $as_echo "$as_val"'`
23863 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23864$as_echo "$ac_res" >&6; }
23865as_val=`eval 'as_val=${'$as_ac_var'}
23866 $as_echo "$as_val"'`
23867 if test "x$as_val" = x""yes; then
Christian Heimes0a8143f2007-12-18 23:22:54 +000023868 cat >>confdefs.h <<_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023869#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Christian Heimes0a8143f2007-12-18 23:22:54 +000023870_ACEOF
23871
23872fi
23873done
23874
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023875{ $as_echo "$as_me:$LINENO: checking whether isinf is declared" >&5
23876$as_echo_n "checking whether isinf is declared... " >&6; }
Mark Dickinsond181e3a2009-01-04 13:57:26 +000023877if test "${ac_cv_have_decl_isinf+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023878 $as_echo_n "(cached) " >&6
Mark Dickinsond181e3a2009-01-04 13:57:26 +000023879else
23880 cat >conftest.$ac_ext <<_ACEOF
23881/* confdefs.h. */
23882_ACEOF
23883cat confdefs.h >>conftest.$ac_ext
23884cat >>conftest.$ac_ext <<_ACEOF
23885/* end confdefs.h. */
23886#include <math.h>
23887
23888int
23889main ()
23890{
23891#ifndef isinf
23892 (void) isinf;
23893#endif
23894
23895 ;
23896 return 0;
23897}
23898_ACEOF
23899rm -f conftest.$ac_objext
23900if { (ac_try="$ac_compile"
23901case "(($ac_try" in
23902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23903 *) ac_try_echo=$ac_try;;
23904esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23906$as_echo "$ac_try_echo") >&5
Mark Dickinsond181e3a2009-01-04 13:57:26 +000023907 (eval "$ac_compile") 2>conftest.er1
23908 ac_status=$?
23909 grep -v '^ *+' conftest.er1 >conftest.err
23910 rm -f conftest.er1
23911 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinsond181e3a2009-01-04 13:57:26 +000023913 (exit $ac_status); } && {
23914 test -z "$ac_c_werror_flag" ||
23915 test ! -s conftest.err
23916 } && test -s conftest.$ac_objext; then
23917 ac_cv_have_decl_isinf=yes
23918else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023919 $as_echo "$as_me: failed program was:" >&5
Mark Dickinsond181e3a2009-01-04 13:57:26 +000023920sed 's/^/| /' conftest.$ac_ext >&5
23921
23922 ac_cv_have_decl_isinf=no
23923fi
23924
23925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23926fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023927{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
23928$as_echo "$ac_cv_have_decl_isinf" >&6; }
23929if test "x$ac_cv_have_decl_isinf" = x""yes; then
Mark Dickinsond181e3a2009-01-04 13:57:26 +000023930
23931cat >>confdefs.h <<_ACEOF
23932#define HAVE_DECL_ISINF 1
23933_ACEOF
23934
23935
23936else
23937 cat >>confdefs.h <<_ACEOF
23938#define HAVE_DECL_ISINF 0
23939_ACEOF
23940
23941
23942fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023943{ $as_echo "$as_me:$LINENO: checking whether isnan is declared" >&5
23944$as_echo_n "checking whether isnan is declared... " >&6; }
Mark Dickinsond181e3a2009-01-04 13:57:26 +000023945if test "${ac_cv_have_decl_isnan+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023946 $as_echo_n "(cached) " >&6
Mark Dickinsond181e3a2009-01-04 13:57:26 +000023947else
23948 cat >conftest.$ac_ext <<_ACEOF
23949/* confdefs.h. */
23950_ACEOF
23951cat confdefs.h >>conftest.$ac_ext
23952cat >>conftest.$ac_ext <<_ACEOF
23953/* end confdefs.h. */
23954#include <math.h>
23955
23956int
23957main ()
23958{
23959#ifndef isnan
23960 (void) isnan;
23961#endif
23962
23963 ;
23964 return 0;
23965}
23966_ACEOF
23967rm -f conftest.$ac_objext
23968if { (ac_try="$ac_compile"
23969case "(($ac_try" in
23970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23971 *) ac_try_echo=$ac_try;;
23972esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23974$as_echo "$ac_try_echo") >&5
Mark Dickinsond181e3a2009-01-04 13:57:26 +000023975 (eval "$ac_compile") 2>conftest.er1
23976 ac_status=$?
23977 grep -v '^ *+' conftest.er1 >conftest.err
23978 rm -f conftest.er1
23979 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinsond181e3a2009-01-04 13:57:26 +000023981 (exit $ac_status); } && {
23982 test -z "$ac_c_werror_flag" ||
23983 test ! -s conftest.err
23984 } && test -s conftest.$ac_objext; then
23985 ac_cv_have_decl_isnan=yes
23986else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023987 $as_echo "$as_me: failed program was:" >&5
Mark Dickinsond181e3a2009-01-04 13:57:26 +000023988sed 's/^/| /' conftest.$ac_ext >&5
23989
23990 ac_cv_have_decl_isnan=no
23991fi
23992
23993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23994fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000023995{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
23996$as_echo "$ac_cv_have_decl_isnan" >&6; }
23997if test "x$ac_cv_have_decl_isnan" = x""yes; then
Mark Dickinsond181e3a2009-01-04 13:57:26 +000023998
23999cat >>confdefs.h <<_ACEOF
24000#define HAVE_DECL_ISNAN 1
24001_ACEOF
24002
24003
24004else
24005 cat >>confdefs.h <<_ACEOF
24006#define HAVE_DECL_ISNAN 0
24007_ACEOF
24008
24009
24010fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024011{ $as_echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
24012$as_echo_n "checking whether isfinite is declared... " >&6; }
Mark Dickinsond181e3a2009-01-04 13:57:26 +000024013if test "${ac_cv_have_decl_isfinite+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024014 $as_echo_n "(cached) " >&6
Mark Dickinsond181e3a2009-01-04 13:57:26 +000024015else
24016 cat >conftest.$ac_ext <<_ACEOF
24017/* confdefs.h. */
24018_ACEOF
24019cat confdefs.h >>conftest.$ac_ext
24020cat >>conftest.$ac_ext <<_ACEOF
24021/* end confdefs.h. */
24022#include <math.h>
24023
24024int
24025main ()
24026{
24027#ifndef isfinite
24028 (void) isfinite;
24029#endif
24030
24031 ;
24032 return 0;
24033}
24034_ACEOF
24035rm -f conftest.$ac_objext
24036if { (ac_try="$ac_compile"
24037case "(($ac_try" in
24038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24039 *) ac_try_echo=$ac_try;;
24040esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24042$as_echo "$ac_try_echo") >&5
Mark Dickinsond181e3a2009-01-04 13:57:26 +000024043 (eval "$ac_compile") 2>conftest.er1
24044 ac_status=$?
24045 grep -v '^ *+' conftest.er1 >conftest.err
24046 rm -f conftest.er1
24047 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Mark Dickinsond181e3a2009-01-04 13:57:26 +000024049 (exit $ac_status); } && {
24050 test -z "$ac_c_werror_flag" ||
24051 test ! -s conftest.err
24052 } && test -s conftest.$ac_objext; then
24053 ac_cv_have_decl_isfinite=yes
24054else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024055 $as_echo "$as_me: failed program was:" >&5
Mark Dickinsond181e3a2009-01-04 13:57:26 +000024056sed 's/^/| /' conftest.$ac_ext >&5
24057
24058 ac_cv_have_decl_isfinite=no
24059fi
24060
24061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24062fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024063{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
24064$as_echo "$ac_cv_have_decl_isfinite" >&6; }
24065if test "x$ac_cv_have_decl_isfinite" = x""yes; then
Mark Dickinsond181e3a2009-01-04 13:57:26 +000024066
24067cat >>confdefs.h <<_ACEOF
24068#define HAVE_DECL_ISFINITE 1
24069_ACEOF
24070
24071
24072else
24073 cat >>confdefs.h <<_ACEOF
24074#define HAVE_DECL_ISFINITE 0
24075_ACEOF
24076
24077
24078fi
24079
24080
Christian Heimes0a8143f2007-12-18 23:22:54 +000024081
Guido van Rossumaf5b83e1995-01-04 19:02:35 +000024082LIBS=$LIBS_SAVE
24083
Mark Dickinsonefc82f72009-03-20 15:51:55 +000024084# determine what size digit to use for Python's longs
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024085{ $as_echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
24086$as_echo_n "checking digit size for Python's longs... " >&6; }
Mark Dickinsonefc82f72009-03-20 15:51:55 +000024087# Check whether --enable-big-digits was given.
24088if test "${enable_big_digits+set}" = set; then
24089 enableval=$enable_big_digits; case $enable_big_digits in
24090yes)
24091 enable_big_digits=30 ;;
24092no)
24093 enable_big_digits=15 ;;
2409415|30)
24095 ;;
24096*)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024097 { { $as_echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
24098$as_echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
Mark Dickinsonefc82f72009-03-20 15:51:55 +000024099 { (exit 1); exit 1; }; } ;;
24100esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024101{ $as_echo "$as_me:$LINENO: result: $enable_big_digits" >&5
24102$as_echo "$enable_big_digits" >&6; }
Mark Dickinsonefc82f72009-03-20 15:51:55 +000024103
24104cat >>confdefs.h <<_ACEOF
24105#define PYLONG_BITS_IN_DIGIT $enable_big_digits
24106_ACEOF
24107
24108
24109else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024110 { $as_echo "$as_me:$LINENO: result: no value specified" >&5
24111$as_echo "no value specified" >&6; }
Mark Dickinsonefc82f72009-03-20 15:51:55 +000024112fi
24113
24114
Guido van Rossumef2255b2000-03-10 22:30:29 +000024115# check for wchar.h
Martin v. Löwis11437992002-04-12 09:54:03 +000024116if test "${ac_cv_header_wchar_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024117 { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5
24118$as_echo_n "checking for wchar.h... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024119if test "${ac_cv_header_wchar_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024120 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +000024121fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024122{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24123$as_echo "$ac_cv_header_wchar_h" >&6; }
Guido van Rossumef2255b2000-03-10 22:30:29 +000024124else
Martin v. Löwis11437992002-04-12 09:54:03 +000024125 # Is the header compilable?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024126{ $as_echo "$as_me:$LINENO: checking wchar.h usability" >&5
24127$as_echo_n "checking wchar.h usability... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024128cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024129/* confdefs.h. */
24130_ACEOF
24131cat confdefs.h >>conftest.$ac_ext
24132cat >>conftest.$ac_ext <<_ACEOF
24133/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000024134$ac_includes_default
24135#include <wchar.h>
24136_ACEOF
24137rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024138if { (ac_try="$ac_compile"
24139case "(($ac_try" in
24140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24141 *) ac_try_echo=$ac_try;;
24142esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24144$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024145 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000024146 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024147 grep -v '^ *+' conftest.er1 >conftest.err
24148 rm -f conftest.er1
24149 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024151 (exit $ac_status); } && {
24152 test -z "$ac_c_werror_flag" ||
24153 test ! -s conftest.err
24154 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000024155 ac_header_compiler=yes
24156else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024157 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024158sed 's/^/| /' conftest.$ac_ext >&5
24159
Martin v. Löwiseba40652007-08-30 20:10:57 +000024160 ac_header_compiler=no
Martin v. Löwis11437992002-04-12 09:54:03 +000024161fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024162
24163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024164{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24165$as_echo "$ac_header_compiler" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024166
24167# Is the header present?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024168{ $as_echo "$as_me:$LINENO: checking wchar.h presence" >&5
24169$as_echo_n "checking wchar.h presence... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024170cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024171/* confdefs.h. */
24172_ACEOF
24173cat confdefs.h >>conftest.$ac_ext
24174cat >>conftest.$ac_ext <<_ACEOF
24175/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:29 +000024176#include <wchar.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000024177_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000024178if { (ac_try="$ac_cpp conftest.$ac_ext"
24179case "(($ac_try" in
24180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24181 *) ac_try_echo=$ac_try;;
24182esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24184$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000024186 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000024187 grep -v '^ *+' conftest.er1 >conftest.err
Martin v. Löwis11437992002-04-12 09:54:03 +000024188 rm -f conftest.er1
24189 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024191 (exit $ac_status); } >/dev/null && {
24192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24193 test ! -s conftest.err
24194 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000024195 ac_header_preproc=yes
24196else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024197 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024198sed 's/^/| /' conftest.$ac_ext >&5
24199
Martin v. Löwis11437992002-04-12 09:54:03 +000024200 ac_header_preproc=no
Guido van Rossumef2255b2000-03-10 22:30:29 +000024201fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024202
Martin v. Löwis11437992002-04-12 09:54:03 +000024203rm -f conftest.err conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024204{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24205$as_echo "$ac_header_preproc" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024206
24207# So? What about this header?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024208case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24209 yes:no: )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024210 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
24211$as_echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24212 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
24213$as_echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
Skip Montanarof0d5f792004-08-15 14:08:23 +000024214 ac_header_preproc=yes
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000024215 ;;
Skip Montanarof0d5f792004-08-15 14:08:23 +000024216 no:yes:* )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024217 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
24218$as_echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
24219 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
24220$as_echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
24221 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
24222$as_echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
24223 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
24224$as_echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
24225 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
24226$as_echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
24227 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
24228$as_echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000024229 ( cat <<\_ASBOX
Georg Brandl464432d2009-05-20 18:24:08 +000024230## -------------------------------------- ##
24231## Report this to http://bugs.python.org/ ##
24232## -------------------------------------- ##
Skip Montanaro6dead952003-09-25 14:50:04 +000024233_ASBOX
Martin v. Löwiseba40652007-08-30 20:10:57 +000024234 ) | sed "s/^/$as_me: WARNING: /" >&2
Skip Montanaro6dead952003-09-25 14:50:04 +000024235 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000024236esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024237{ $as_echo "$as_me:$LINENO: checking for wchar.h" >&5
24238$as_echo_n "checking for wchar.h... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024239if test "${ac_cv_header_wchar_h+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024240 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +000024241else
24242 ac_cv_header_wchar_h=$ac_header_preproc
Guido van Rossumef2255b2000-03-10 22:30:29 +000024243fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024244{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24245$as_echo "$ac_cv_header_wchar_h" >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024246
24247fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024248if test "x$ac_cv_header_wchar_h" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000024249
24250
24251cat >>confdefs.h <<\_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +000024252#define HAVE_WCHAR_H 1
Martin v. Löwis11437992002-04-12 09:54:03 +000024253_ACEOF
24254
Martin v. Löwisc45929e2002-04-06 10:10:49 +000024255 wchar_h="yes"
24256
Guido van Rossumef2255b2000-03-10 22:30:29 +000024257else
Martin v. Löwis11437992002-04-12 09:54:03 +000024258 wchar_h="no"
Guido van Rossumef2255b2000-03-10 22:30:29 +000024259
24260fi
24261
Michael W. Hudson54241132001-12-07 15:38:26 +000024262
Martin v. Löwis11437992002-04-12 09:54:03 +000024263
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024264# determine wchar_t size
24265if test "$wchar_h" = yes
24266then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024267 # The cast to long int works around a bug in the HP C Compiler
Martin v. Löwiseba40652007-08-30 20:10:57 +000024268# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24269# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24270# This bug is HP SR number 8606223364.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024271{ $as_echo "$as_me:$LINENO: checking size of wchar_t" >&5
24272$as_echo_n "checking size of wchar_t... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024273if test "${ac_cv_sizeof_wchar_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024274 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:03 +000024275else
Martin v. Löwis11437992002-04-12 09:54:03 +000024276 if test "$cross_compiling" = yes; then
24277 # Depending upon the size, compute the lo and hi bounds.
24278cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024279/* confdefs.h. */
24280_ACEOF
24281cat confdefs.h >>conftest.$ac_ext
24282cat >>conftest.$ac_ext <<_ACEOF
24283/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000024284#include <wchar.h>
24285
Martin v. Löwis11437992002-04-12 09:54:03 +000024286int
24287main ()
24288{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024289static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000024290test_array [0] = 0
24291
24292 ;
24293 return 0;
24294}
24295_ACEOF
24296rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024297if { (ac_try="$ac_compile"
24298case "(($ac_try" in
24299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24300 *) ac_try_echo=$ac_try;;
24301esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24303$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024304 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000024305 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024306 grep -v '^ *+' conftest.er1 >conftest.err
24307 rm -f conftest.er1
24308 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024310 (exit $ac_status); } && {
24311 test -z "$ac_c_werror_flag" ||
24312 test ! -s conftest.err
24313 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000024314 ac_lo=0 ac_mid=0
24315 while :; do
24316 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024317/* confdefs.h. */
24318_ACEOF
24319cat confdefs.h >>conftest.$ac_ext
24320cat >>conftest.$ac_ext <<_ACEOF
24321/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000024322#include <wchar.h>
24323
Martin v. Löwis11437992002-04-12 09:54:03 +000024324int
24325main ()
24326{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024327static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000024328test_array [0] = 0
24329
24330 ;
24331 return 0;
24332}
24333_ACEOF
24334rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024335if { (ac_try="$ac_compile"
24336case "(($ac_try" in
24337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24338 *) ac_try_echo=$ac_try;;
24339esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24341$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024342 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000024343 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024344 grep -v '^ *+' conftest.er1 >conftest.err
24345 rm -f conftest.er1
24346 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024348 (exit $ac_status); } && {
24349 test -z "$ac_c_werror_flag" ||
24350 test ! -s conftest.err
24351 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000024352 ac_hi=$ac_mid; break
24353else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024354 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024355sed 's/^/| /' conftest.$ac_ext >&5
24356
Martin v. Löwiseba40652007-08-30 20:10:57 +000024357 ac_lo=`expr $ac_mid + 1`
24358 if test $ac_lo -le $ac_mid; then
24359 ac_lo= ac_hi=
24360 break
24361 fi
24362 ac_mid=`expr 2 '*' $ac_mid + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000024363fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024364
24365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000024366 done
24367else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024368 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024369sed 's/^/| /' conftest.$ac_ext >&5
24370
Martin v. Löwiseba40652007-08-30 20:10:57 +000024371 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024372/* confdefs.h. */
24373_ACEOF
24374cat confdefs.h >>conftest.$ac_ext
24375cat >>conftest.$ac_ext <<_ACEOF
24376/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000024377#include <wchar.h>
24378
Martin v. Löwis11437992002-04-12 09:54:03 +000024379int
24380main ()
24381{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024382static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) < 0)];
Martin v. Löwis11437992002-04-12 09:54:03 +000024383test_array [0] = 0
24384
24385 ;
24386 return 0;
24387}
24388_ACEOF
24389rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024390if { (ac_try="$ac_compile"
24391case "(($ac_try" in
24392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24393 *) ac_try_echo=$ac_try;;
24394esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24396$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024397 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000024398 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024399 grep -v '^ *+' conftest.er1 >conftest.err
24400 rm -f conftest.er1
24401 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024403 (exit $ac_status); } && {
24404 test -z "$ac_c_werror_flag" ||
24405 test ! -s conftest.err
24406 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000024407 ac_hi=-1 ac_mid=-1
24408 while :; do
24409 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024410/* confdefs.h. */
24411_ACEOF
24412cat confdefs.h >>conftest.$ac_ext
24413cat >>conftest.$ac_ext <<_ACEOF
24414/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000024415#include <wchar.h>
24416
Martin v. Löwis11437992002-04-12 09:54:03 +000024417int
24418main ()
24419{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024420static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000024421test_array [0] = 0
24422
24423 ;
24424 return 0;
24425}
24426_ACEOF
24427rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024428if { (ac_try="$ac_compile"
24429case "(($ac_try" in
24430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24431 *) ac_try_echo=$ac_try;;
24432esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24434$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024435 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000024436 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024437 grep -v '^ *+' conftest.er1 >conftest.err
24438 rm -f conftest.er1
24439 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024440 $as_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
Martin v. Löwis11437992002-04-12 09:54:03 +000024445 ac_lo=$ac_mid; break
24446else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024447 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024448sed 's/^/| /' conftest.$ac_ext >&5
24449
Martin v. Löwiseba40652007-08-30 20:10:57 +000024450 ac_hi=`expr '(' $ac_mid ')' - 1`
24451 if test $ac_mid -le $ac_hi; then
24452 ac_lo= ac_hi=
24453 break
24454 fi
24455 ac_mid=`expr 2 '*' $ac_mid`
Martin v. Löwis11437992002-04-12 09:54:03 +000024456fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024457
24458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000024459 done
24460else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024461 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024462sed 's/^/| /' conftest.$ac_ext >&5
24463
Martin v. Löwiseba40652007-08-30 20:10:57 +000024464 ac_lo= ac_hi=
Martin v. Löwis11437992002-04-12 09:54:03 +000024465fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024466
24467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000024468fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024469
24470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000024471# Binary search between lo and hi bounds.
24472while test "x$ac_lo" != "x$ac_hi"; do
24473 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24474 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024475/* confdefs.h. */
24476_ACEOF
24477cat confdefs.h >>conftest.$ac_ext
24478cat >>conftest.$ac_ext <<_ACEOF
24479/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000024480#include <wchar.h>
24481
Martin v. Löwis11437992002-04-12 09:54:03 +000024482int
24483main ()
24484{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024485static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
Martin v. Löwis11437992002-04-12 09:54:03 +000024486test_array [0] = 0
24487
24488 ;
24489 return 0;
24490}
24491_ACEOF
24492rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024493if { (ac_try="$ac_compile"
24494case "(($ac_try" in
24495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24496 *) ac_try_echo=$ac_try;;
24497esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24499$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024500 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000024501 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024502 grep -v '^ *+' conftest.er1 >conftest.err
24503 rm -f conftest.er1
24504 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024506 (exit $ac_status); } && {
24507 test -z "$ac_c_werror_flag" ||
24508 test ! -s conftest.err
24509 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000024510 ac_hi=$ac_mid
24511else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024512 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024513sed 's/^/| /' conftest.$ac_ext >&5
24514
Martin v. Löwiseba40652007-08-30 20:10:57 +000024515 ac_lo=`expr '(' $ac_mid ')' + 1`
Martin v. Löwis11437992002-04-12 09:54:03 +000024516fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024517
24518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000024519done
24520case $ac_lo in
24521?*) ac_cv_sizeof_wchar_t=$ac_lo;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000024522'') if test "$ac_cv_type_wchar_t" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024523 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24525{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000024526See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024527$as_echo "$as_me: error: cannot compute sizeof (wchar_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000024528See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024529 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000024530 else
24531 ac_cv_sizeof_wchar_t=0
24532 fi ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000024533esac
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024534else
Martin v. Löwis11437992002-04-12 09:54:03 +000024535 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024536/* confdefs.h. */
24537_ACEOF
24538cat confdefs.h >>conftest.$ac_ext
24539cat >>conftest.$ac_ext <<_ACEOF
24540/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000024541#include <wchar.h>
24542
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024543static long int longval () { return (long int) (sizeof (wchar_t)); }
24544static unsigned long int ulongval () { return (long int) (sizeof (wchar_t)); }
Michael W. Hudson54241132001-12-07 15:38:26 +000024545#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000024546#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000024547int
24548main ()
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024549{
Martin v. Löwis11437992002-04-12 09:54:03 +000024550
24551 FILE *f = fopen ("conftest.val", "w");
24552 if (! f)
Martin v. Löwiseba40652007-08-30 20:10:57 +000024553 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024554 if (((long int) (sizeof (wchar_t))) < 0)
Martin v. Löwis11437992002-04-12 09:54:03 +000024555 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000024556 long int i = longval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024557 if (i != ((long int) (sizeof (wchar_t))))
Martin v. Löwiseba40652007-08-30 20:10:57 +000024558 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024559 fprintf (f, "%ld", i);
Martin v. Löwis11437992002-04-12 09:54:03 +000024560 }
24561 else
24562 {
Martin v. Löwiseba40652007-08-30 20:10:57 +000024563 unsigned long int i = ulongval ();
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024564 if (i != ((long int) (sizeof (wchar_t))))
Martin v. Löwiseba40652007-08-30 20:10:57 +000024565 return 1;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024566 fprintf (f, "%lu", i);
Martin v. Löwis11437992002-04-12 09:54:03 +000024567 }
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024568 /* Do not output a trailing newline, as this causes \r\n confusion
24569 on some platforms. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000024570 return ferror (f) || fclose (f) != 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000024571
24572 ;
24573 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +000024574}
Martin v. Löwis11437992002-04-12 09:54:03 +000024575_ACEOF
24576rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024577if { (ac_try="$ac_link"
24578case "(($ac_try" in
24579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24580 *) ac_try_echo=$ac_try;;
24581esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24583$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024584 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000024585 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000024587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000024588 { (case "(($ac_try" in
24589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590 *) ac_try_echo=$ac_try;;
24591esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24593$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024594 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000024595 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000024597 (exit $ac_status); }; }; then
24598 ac_cv_sizeof_wchar_t=`cat conftest.val`
Guido van Rossumef2255b2000-03-10 22:30:29 +000024599else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024600 $as_echo "$as_me: program exited with status $ac_status" >&5
24601$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024602sed 's/^/| /' conftest.$ac_ext >&5
24603
Martin v. Löwis11437992002-04-12 09:54:03 +000024604( exit $ac_status )
Martin v. Löwiseba40652007-08-30 20:10:57 +000024605if test "$ac_cv_type_wchar_t" = yes; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024606 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24608{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000024609See \`config.log' for more details." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024610$as_echo "$as_me: error: cannot compute sizeof (wchar_t)
Skip Montanaro6dead952003-09-25 14:50:04 +000024611See \`config.log' for more details." >&2;}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024612 { (exit 77); exit 77; }; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000024613 else
24614 ac_cv_sizeof_wchar_t=0
24615 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000024616fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024617rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000024618rm -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 +000024619fi
24620rm -f conftest.val
Guido van Rossumef2255b2000-03-10 22:30:29 +000024621fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024622{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24623$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000024624
24625
24626
Martin v. Löwis11437992002-04-12 09:54:03 +000024627cat >>confdefs.h <<_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024628#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
Martin v. Löwis11437992002-04-12 09:54:03 +000024629_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024630
Michael W. Hudson54241132001-12-07 15:38:26 +000024631
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024632fi
24633
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024634{ $as_echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
24635$as_echo_n "checking for UCS-4 tcl... " >&6; }
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000024636have_ucs4_tcl=no
24637cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024638/* confdefs.h. */
24639_ACEOF
24640cat confdefs.h >>conftest.$ac_ext
24641cat >>conftest.$ac_ext <<_ACEOF
24642/* end confdefs.h. */
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000024643
24644#include <tcl.h>
24645#if TCL_UTF_MAX != 6
24646# error "NOT UCS4_TCL"
24647#endif
24648int
24649main ()
24650{
24651
24652 ;
24653 return 0;
24654}
24655_ACEOF
24656rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024657if { (ac_try="$ac_compile"
24658case "(($ac_try" in
24659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24660 *) ac_try_echo=$ac_try;;
24661esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24663$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024664 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000024665 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024666 grep -v '^ *+' conftest.er1 >conftest.err
24667 rm -f conftest.er1
24668 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024670 (exit $ac_status); } && {
24671 test -z "$ac_c_werror_flag" ||
24672 test ! -s conftest.err
24673 } && test -s conftest.$ac_objext; then
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000024674
24675
24676cat >>confdefs.h <<\_ACEOF
24677#define HAVE_UCS4_TCL 1
24678_ACEOF
24679
24680 have_ucs4_tcl=yes
24681
24682else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024683 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024684sed 's/^/| /' conftest.$ac_ext >&5
24685
Martin v. Löwiseba40652007-08-30 20:10:57 +000024686
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000024687fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024688
24689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024690{ $as_echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
24691$as_echo "$have_ucs4_tcl" >&6; }
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000024692
Skip Montanaro6dead952003-09-25 14:50:04 +000024693# check whether wchar_t is signed or not
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000024694if test "$wchar_h" = yes
24695then
24696 # check whether wchar_t is signed or not
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024697 { $as_echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
24698$as_echo_n "checking whether wchar_t is signed... " >&6; }
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000024699 if test "${ac_cv_wchar_t_signed+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024700 $as_echo_n "(cached) " >&6
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000024701else
24702
24703 if test "$cross_compiling" = yes; then
24704 ac_cv_wchar_t_signed=yes
24705else
24706 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024707/* confdefs.h. */
24708_ACEOF
24709cat confdefs.h >>conftest.$ac_ext
24710cat >>conftest.$ac_ext <<_ACEOF
24711/* end confdefs.h. */
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000024712
24713 #include <wchar.h>
24714 int main()
24715 {
Martin v. Löwis44fe0e42006-04-11 07:15:30 +000024716 /* Success: exit code 0 */
24717 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000024718 }
24719
24720_ACEOF
24721rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024722if { (ac_try="$ac_link"
24723case "(($ac_try" in
24724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24725 *) ac_try_echo=$ac_try;;
24726esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24728$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024729 (eval "$ac_link") 2>&5
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000024730 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000024732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000024733 { (case "(($ac_try" in
24734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24735 *) ac_try_echo=$ac_try;;
24736esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24738$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024739 (eval "$ac_try") 2>&5
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000024740 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000024742 (exit $ac_status); }; }; then
24743 ac_cv_wchar_t_signed=yes
24744else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024745 $as_echo "$as_me: program exited with status $ac_status" >&5
24746$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024747sed 's/^/| /' conftest.$ac_ext >&5
24748
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000024749( exit $ac_status )
24750ac_cv_wchar_t_signed=no
24751fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024752rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000024753rm -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 +000024754fi
24755
Martin v. Löwiseba40652007-08-30 20:10:57 +000024756
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000024757fi
24758
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024759 { $as_echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
24760$as_echo "$ac_cv_wchar_t_signed" >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000024761fi
24762
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024763{ $as_echo "$as_me:$LINENO: checking what type to use for unicode" >&5
24764$as_echo_n "checking what type to use for unicode... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000024765# Check whether --enable-unicode was given.
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024766if test "${enable_unicode+set}" = set; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000024767 enableval=$enable_unicode;
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024768else
24769 enable_unicode=yes
Martin v. Löwiseba40652007-08-30 20:10:57 +000024770fi
24771
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024772
24773if test $enable_unicode = yes
24774then
Martin v. Löwisfd917792001-06-27 20:22:04 +000024775 # Without any arguments, Py_UNICODE defaults to two-byte mode
Martin v. Löwisfa3bdea2003-09-04 18:50:54 +000024776 case "$have_ucs4_tcl" in
24777 yes) enable_unicode="ucs4"
24778 ;;
24779 *) enable_unicode="ucs2"
24780 ;;
24781 esac
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024782fi
24783
Martin v. Löwis0036cba2002-04-12 09:58:45 +000024784
24785
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024786case "$enable_unicode" in
24787ucs2) unicode_size="2"
Martin v. Löwis11437992002-04-12 09:54:03 +000024788 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024789#define Py_UNICODE_SIZE 2
Martin v. Löwis11437992002-04-12 09:54:03 +000024790_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024791
24792 ;;
24793ucs4) unicode_size="4"
Martin v. Löwis11437992002-04-12 09:54:03 +000024794 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024795#define Py_UNICODE_SIZE 4
Martin v. Löwis11437992002-04-12 09:54:03 +000024796_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024797
24798 ;;
24799esac
24800
Michael W. Hudson54241132001-12-07 15:38:26 +000024801
Martin v. Löwis11437992002-04-12 09:54:03 +000024802
24803
Martin v. Löwis0036cba2002-04-12 09:58:45 +000024804
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024805if test "$enable_unicode" = "no"
24806then
Martin v. Löwis339d0f72001-08-17 18:39:25 +000024807 UNICODE_OBJS=""
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024808 { $as_echo "$as_me:$LINENO: result: not used" >&5
24809$as_echo "not used" >&6; }
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024810else
Martin v. Löwis339d0f72001-08-17 18:39:25 +000024811 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
Martin v. Löwis11437992002-04-12 09:54:03 +000024812
24813cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024814#define Py_USING_UNICODE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000024815_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024816
Marc-André Lemburgd7160f82003-09-22 11:14:40 +000024817
24818 # wchar_t is only usable if it maps to an unsigned type
24819 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
Matthias Klose7dbeed72004-12-24 08:22:17 +000024820 -a "$ac_cv_wchar_t_signed" = "no"
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024821 then
24822 PY_UNICODE_TYPE="wchar_t"
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024823
Martin v. Löwis11437992002-04-12 09:54:03 +000024824cat >>confdefs.h <<\_ACEOF
24825#define HAVE_USABLE_WCHAR_T 1
24826_ACEOF
24827
24828 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024829#define PY_UNICODE_TYPE wchar_t
Martin v. Löwis11437992002-04-12 09:54:03 +000024830_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024831
24832 elif test "$ac_cv_sizeof_short" = "$unicode_size"
24833 then
24834 PY_UNICODE_TYPE="unsigned short"
Martin v. Löwis11437992002-04-12 09:54:03 +000024835 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024836#define PY_UNICODE_TYPE unsigned short
Martin v. Löwis11437992002-04-12 09:54:03 +000024837_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024838
24839 elif test "$ac_cv_sizeof_long" = "$unicode_size"
24840 then
24841 PY_UNICODE_TYPE="unsigned long"
Martin v. Löwis11437992002-04-12 09:54:03 +000024842 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024843#define PY_UNICODE_TYPE unsigned long
Martin v. Löwis11437992002-04-12 09:54:03 +000024844_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024845
24846 else
24847 PY_UNICODE_TYPE="no type found"
24848 fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024849 { $as_echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
24850$as_echo "$PY_UNICODE_TYPE" >&6; }
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000024851fi
Guido van Rossumef2255b2000-03-10 22:30:29 +000024852
24853# check for endianness
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024854
24855 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24856$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000024857if test "${ac_cv_c_bigendian+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024858 $as_echo_n "(cached) " >&6
Guido van Rossumef2255b2000-03-10 22:30:29 +000024859else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024860 ac_cv_c_bigendian=unknown
24861 # See if we're dealing with a universal compiler.
24862 cat >conftest.$ac_ext <<_ACEOF
24863/* confdefs.h. */
24864_ACEOF
24865cat confdefs.h >>conftest.$ac_ext
24866cat >>conftest.$ac_ext <<_ACEOF
24867/* end confdefs.h. */
24868#ifndef __APPLE_CC__
24869 not a universal capable compiler
24870 #endif
24871 typedef int dummy;
24872
24873_ACEOF
24874rm -f conftest.$ac_objext
24875if { (ac_try="$ac_compile"
24876case "(($ac_try" in
24877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24878 *) ac_try_echo=$ac_try;;
24879esac
24880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24881$as_echo "$ac_try_echo") >&5
24882 (eval "$ac_compile") 2>conftest.er1
24883 ac_status=$?
24884 grep -v '^ *+' conftest.er1 >conftest.err
24885 rm -f conftest.er1
24886 cat conftest.err >&5
24887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 (exit $ac_status); } && {
24889 test -z "$ac_c_werror_flag" ||
24890 test ! -s conftest.err
24891 } && test -s conftest.$ac_objext; then
24892
24893 # Check for potential -arch flags. It is not universal unless
24894 # there are some -arch flags. Note that *ppc* also matches
24895 # ppc64. This check is also rather less than ideal.
24896 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
24897 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
24898 esac
24899else
24900 $as_echo "$as_me: failed program was:" >&5
24901sed 's/^/| /' conftest.$ac_ext >&5
24902
24903
24904fi
24905
24906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24907 if test $ac_cv_c_bigendian = unknown; then
24908 # See if sys/param.h defines the BYTE_ORDER macro.
24909 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024910/* confdefs.h. */
24911_ACEOF
24912cat confdefs.h >>conftest.$ac_ext
24913cat >>conftest.$ac_ext <<_ACEOF
24914/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:29 +000024915#include <sys/types.h>
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024916 #include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:29 +000024917
Martin v. Löwis11437992002-04-12 09:54:03 +000024918int
24919main ()
24920{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024921#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24922 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24923 && LITTLE_ENDIAN)
24924 bogus endian macros
24925 #endif
Martin v. Löwis11437992002-04-12 09:54:03 +000024926
24927 ;
24928 return 0;
24929}
24930_ACEOF
24931rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024932if { (ac_try="$ac_compile"
24933case "(($ac_try" in
24934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24935 *) ac_try_echo=$ac_try;;
24936esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24938$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024939 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000024940 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024941 grep -v '^ *+' conftest.er1 >conftest.err
24942 rm -f conftest.er1
24943 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024945 (exit $ac_status); } && {
24946 test -z "$ac_c_werror_flag" ||
24947 test ! -s conftest.err
24948 } && test -s conftest.$ac_objext; then
Guido van Rossumef2255b2000-03-10 22:30:29 +000024949 # It does; now see whether it defined to BIG_ENDIAN or not.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024950 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000024951/* confdefs.h. */
24952_ACEOF
24953cat confdefs.h >>conftest.$ac_ext
24954cat >>conftest.$ac_ext <<_ACEOF
24955/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:29 +000024956#include <sys/types.h>
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024957 #include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:29 +000024958
Martin v. Löwis11437992002-04-12 09:54:03 +000024959int
24960main ()
24961{
Guido van Rossumef2255b2000-03-10 22:30:29 +000024962#if BYTE_ORDER != BIG_ENDIAN
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024963 not big endian
24964 #endif
Martin v. Löwis11437992002-04-12 09:54:03 +000024965
24966 ;
24967 return 0;
24968}
24969_ACEOF
24970rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000024971if { (ac_try="$ac_compile"
24972case "(($ac_try" in
24973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24974 *) ac_try_echo=$ac_try;;
24975esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24977$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024978 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000024979 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000024980 grep -v '^ *+' conftest.er1 >conftest.err
24981 rm -f conftest.er1
24982 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000024984 (exit $ac_status); } && {
24985 test -z "$ac_c_werror_flag" ||
24986 test ! -s conftest.err
24987 } && test -s conftest.$ac_objext; then
Guido van Rossumef2255b2000-03-10 22:30:29 +000024988 ac_cv_c_bigendian=yes
24989else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024990 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024991sed 's/^/| /' conftest.$ac_ext >&5
24992
Martin v. Löwiseba40652007-08-30 20:10:57 +000024993 ac_cv_c_bigendian=no
Guido van Rossumef2255b2000-03-10 22:30:29 +000024994fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000024995
24996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossumef2255b2000-03-10 22:30:29 +000024997else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000024998 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000024999sed 's/^/| /' conftest.$ac_ext >&5
25000
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025001
25002fi
25003
25004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25005 fi
25006 if test $ac_cv_c_bigendian = unknown; then
25007 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25008 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000025009/* confdefs.h. */
25010_ACEOF
25011cat confdefs.h >>conftest.$ac_ext
25012cat >>conftest.$ac_ext <<_ACEOF
25013/* end confdefs.h. */
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025014#include <limits.h>
25015
Martin v. Löwis11437992002-04-12 09:54:03 +000025016int
25017main ()
25018{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025019#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25020 bogus endian macros
25021 #endif
25022
Martin v. Löwis11437992002-04-12 09:54:03 +000025023 ;
25024 return 0;
25025}
25026_ACEOF
25027rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000025028if { (ac_try="$ac_compile"
25029case "(($ac_try" in
25030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25031 *) ac_try_echo=$ac_try;;
25032esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25034$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025035 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000025036 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000025037 grep -v '^ *+' conftest.er1 >conftest.err
25038 rm -f conftest.er1
25039 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025041 (exit $ac_status); } && {
25042 test -z "$ac_c_werror_flag" ||
25043 test ! -s conftest.err
25044 } && test -s conftest.$ac_objext; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025045 # It does; now see whether it defined to _BIG_ENDIAN or not.
25046 cat >conftest.$ac_ext <<_ACEOF
25047/* confdefs.h. */
25048_ACEOF
25049cat confdefs.h >>conftest.$ac_ext
25050cat >>conftest.$ac_ext <<_ACEOF
25051/* end confdefs.h. */
25052#include <limits.h>
25053
25054int
25055main ()
25056{
25057#ifndef _BIG_ENDIAN
25058 not big endian
25059 #endif
25060
25061 ;
25062 return 0;
25063}
25064_ACEOF
25065rm -f conftest.$ac_objext
25066if { (ac_try="$ac_compile"
25067case "(($ac_try" in
25068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25069 *) ac_try_echo=$ac_try;;
25070esac
25071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25072$as_echo "$ac_try_echo") >&5
25073 (eval "$ac_compile") 2>conftest.er1
25074 ac_status=$?
25075 grep -v '^ *+' conftest.er1 >conftest.err
25076 rm -f conftest.er1
25077 cat conftest.err >&5
25078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); } && {
25080 test -z "$ac_c_werror_flag" ||
25081 test ! -s conftest.err
25082 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000025083 ac_cv_c_bigendian=yes
Antoine Pitrouf2caeed2009-05-24 20:23:57 +000025084else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025085 $as_echo "$as_me: failed program was:" >&5
25086sed 's/^/| /' conftest.$ac_ext >&5
25087
25088 ac_cv_c_bigendian=no
25089fi
25090
25091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25092else
25093 $as_echo "$as_me: failed program was:" >&5
25094sed 's/^/| /' conftest.$ac_ext >&5
25095
25096
25097fi
25098
25099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25100 fi
25101 if test $ac_cv_c_bigendian = unknown; then
25102 # Compile a test program.
25103 if test "$cross_compiling" = yes; then
25104 # Try to guess by grepping values from an object file.
25105 cat >conftest.$ac_ext <<_ACEOF
25106/* confdefs.h. */
25107_ACEOF
25108cat confdefs.h >>conftest.$ac_ext
25109cat >>conftest.$ac_ext <<_ACEOF
25110/* end confdefs.h. */
25111short int ascii_mm[] =
25112 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25113 short int ascii_ii[] =
25114 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25115 int use_ascii (int i) {
25116 return ascii_mm[i] + ascii_ii[i];
25117 }
25118 short int ebcdic_ii[] =
25119 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25120 short int ebcdic_mm[] =
25121 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25122 int use_ebcdic (int i) {
25123 return ebcdic_mm[i] + ebcdic_ii[i];
25124 }
25125 extern int foo;
25126
25127int
25128main ()
25129{
25130return use_ascii (foo) == use_ebcdic (foo);
25131 ;
25132 return 0;
25133}
25134_ACEOF
25135rm -f conftest.$ac_objext
25136if { (ac_try="$ac_compile"
25137case "(($ac_try" in
25138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25139 *) ac_try_echo=$ac_try;;
25140esac
25141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25142$as_echo "$ac_try_echo") >&5
25143 (eval "$ac_compile") 2>conftest.er1
25144 ac_status=$?
25145 grep -v '^ *+' conftest.er1 >conftest.err
25146 rm -f conftest.er1
25147 cat conftest.err >&5
25148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); } && {
25150 test -z "$ac_c_werror_flag" ||
25151 test ! -s conftest.err
25152 } && test -s conftest.$ac_objext; then
25153 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25154 ac_cv_c_bigendian=yes
25155 fi
25156 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25157 if test "$ac_cv_c_bigendian" = unknown; then
25158 ac_cv_c_bigendian=no
25159 else
25160 # finding both strings is unlikely to happen, but who knows?
25161 ac_cv_c_bigendian=unknown
25162 fi
25163 fi
25164else
25165 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000025166sed 's/^/| /' conftest.$ac_ext >&5
25167
Martin v. Löwiseba40652007-08-30 20:10:57 +000025168
Martin v. Löwis11437992002-04-12 09:54:03 +000025169fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000025170
25171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000025172else
25173 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000025174/* confdefs.h. */
25175_ACEOF
25176cat confdefs.h >>conftest.$ac_ext
25177cat >>conftest.$ac_ext <<_ACEOF
25178/* end confdefs.h. */
Martin v. Löwiseba40652007-08-30 20:10:57 +000025179$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:03 +000025180int
25181main ()
25182{
Martin v. Löwiseba40652007-08-30 20:10:57 +000025183
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025184 /* Are we little or big endian? From Harbison&Steele. */
25185 union
25186 {
25187 long int l;
25188 char c[sizeof (long int)];
25189 } u;
25190 u.l = 1;
25191 return u.c[sizeof (long int) - 1] == 1;
Martin v. Löwiseba40652007-08-30 20:10:57 +000025192
25193 ;
25194 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +000025195}
Martin v. Löwis11437992002-04-12 09:54:03 +000025196_ACEOF
25197rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000025198if { (ac_try="$ac_link"
25199case "(($ac_try" in
25200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25201 *) ac_try_echo=$ac_try;;
25202esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25204$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025205 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000025206 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000025208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000025209 { (case "(($ac_try" in
25210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211 *) ac_try_echo=$ac_try;;
25212esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25214$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025215 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000025216 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000025218 (exit $ac_status); }; }; then
Guido van Rossumef2255b2000-03-10 22:30:29 +000025219 ac_cv_c_bigendian=no
25220else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025221 $as_echo "$as_me: program exited with status $ac_status" >&5
25222$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000025223sed 's/^/| /' conftest.$ac_ext >&5
25224
Martin v. Löwis11437992002-04-12 09:54:03 +000025225( exit $ac_status )
25226ac_cv_c_bigendian=yes
Guido van Rossumef2255b2000-03-10 22:30:29 +000025227fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025228rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000025229rm -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 +000025230fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000025231
25232
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025233 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000025234fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025235{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25236$as_echo "$ac_cv_c_bigendian" >&6; }
25237 case $ac_cv_c_bigendian in #(
25238 yes)
25239 cat >>confdefs.h <<\_ACEOF
Ronald Oussoren450d5612009-06-08 21:12:41 +000025240#define WORDS_BIGENDIAN 1
Antoine Pitrouf2caeed2009-05-24 20:23:57 +000025241_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025242;; #(
25243 no)
25244 ;; #(
25245 universal)
25246
25247cat >>confdefs.h <<\_ACEOF
25248#define AC_APPLE_UNIVERSAL_BUILD 1
25249_ACEOF
25250
25251 ;; #(
25252 *)
25253 { { $as_echo "$as_me:$LINENO: error: unknown endianness
25254 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25255$as_echo "$as_me: error: unknown endianness
25256 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +000025257 { (exit 1); exit 1; }; } ;;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025258 esac
Guido van Rossumef2255b2000-03-10 22:30:29 +000025259
Michael W. Hudson54241132001-12-07 15:38:26 +000025260
Vladimir Marangozov676aa882000-07-12 03:02:43 +000025261# Check whether right shifting a negative integer extends the sign bit
25262# or fills with zeros (like the Cray J90, according to Tim Peters).
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025263{ $as_echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
25264$as_echo_n "checking whether right shift extends the sign bit... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000025265if test "${ac_cv_rshift_extends_sign+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025266 $as_echo_n "(cached) " >&6
Vladimir Marangozova6180282000-07-12 05:05:06 +000025267else
Martin v. Löwis11437992002-04-12 09:54:03 +000025268
Vladimir Marangozov676aa882000-07-12 03:02:43 +000025269if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +000025270 ac_cv_rshift_extends_sign=yes
Vladimir Marangozov676aa882000-07-12 03:02:43 +000025271else
Martin v. Löwis11437992002-04-12 09:54:03 +000025272 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000025273/* confdefs.h. */
25274_ACEOF
25275cat confdefs.h >>conftest.$ac_ext
25276cat >>conftest.$ac_ext <<_ACEOF
25277/* end confdefs.h. */
Vladimir Marangozov676aa882000-07-12 03:02:43 +000025278
25279int main()
25280{
Vladimir Marangozova6180282000-07-12 05:05:06 +000025281 exit(((-1)>>3 == -1) ? 0 : 1);
Vladimir Marangozov676aa882000-07-12 03:02:43 +000025282}
25283
Martin v. Löwis11437992002-04-12 09:54:03 +000025284_ACEOF
25285rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000025286if { (ac_try="$ac_link"
25287case "(($ac_try" in
25288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25289 *) ac_try_echo=$ac_try;;
25290esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25292$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025293 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000025294 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000025296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000025297 { (case "(($ac_try" in
25298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25299 *) ac_try_echo=$ac_try;;
25300esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25302$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025303 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000025304 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000025306 (exit $ac_status); }; }; then
Vladimir Marangozova6180282000-07-12 05:05:06 +000025307 ac_cv_rshift_extends_sign=yes
25308else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025309 $as_echo "$as_me: program exited with status $ac_status" >&5
25310$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000025311sed 's/^/| /' conftest.$ac_ext >&5
25312
Martin v. Löwis11437992002-04-12 09:54:03 +000025313( exit $ac_status )
25314ac_cv_rshift_extends_sign=no
Vladimir Marangozova6180282000-07-12 05:05:06 +000025315fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025316rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000025317rm -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 +000025318fi
25319
Martin v. Löwiseba40652007-08-30 20:10:57 +000025320
25321fi
25322
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025323{ $as_echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
25324$as_echo "$ac_cv_rshift_extends_sign" >&6; }
Vladimir Marangozova6180282000-07-12 05:05:06 +000025325if test "$ac_cv_rshift_extends_sign" = no
Vladimir Marangozov676aa882000-07-12 03:02:43 +000025326then
Martin v. Löwis11437992002-04-12 09:54:03 +000025327
25328cat >>confdefs.h <<\_ACEOF
Vladimir Marangozov676aa882000-07-12 03:02:43 +000025329#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000025330_ACEOF
Vladimir Marangozov676aa882000-07-12 03:02:43 +000025331
Vladimir Marangozov676aa882000-07-12 03:02:43 +000025332fi
25333
Guido van Rossumcadfaec2001-01-05 14:45:49 +000025334# check for getc_unlocked and related locking functions
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025335{ $as_echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
25336$as_echo_n "checking for getc_unlocked() and friends... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000025337if test "${ac_cv_have_getc_unlocked+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025338 $as_echo_n "(cached) " >&6
Guido van Rossumcadfaec2001-01-05 14:45:49 +000025339else
Martin v. Löwis11437992002-04-12 09:54:03 +000025340
25341cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000025342/* confdefs.h. */
25343_ACEOF
25344cat confdefs.h >>conftest.$ac_ext
25345cat >>conftest.$ac_ext <<_ACEOF
25346/* end confdefs.h. */
Guido van Rossumcadfaec2001-01-05 14:45:49 +000025347#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000025348int
25349main ()
25350{
Guido van Rossumcadfaec2001-01-05 14:45:49 +000025351
25352 FILE *f = fopen("/dev/null", "r");
25353 flockfile(f);
25354 getc_unlocked(f);
25355 funlockfile(f);
25356
Martin v. Löwis11437992002-04-12 09:54:03 +000025357 ;
25358 return 0;
25359}
25360_ACEOF
25361rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000025362if { (ac_try="$ac_link"
25363case "(($ac_try" in
25364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25365 *) ac_try_echo=$ac_try;;
25366esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25368$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025369 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000025370 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000025371 grep -v '^ *+' conftest.er1 >conftest.err
25372 rm -f conftest.er1
25373 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025375 (exit $ac_status); } && {
25376 test -z "$ac_c_werror_flag" ||
25377 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025378 } && test -s conftest$ac_exeext && {
25379 test "$cross_compiling" = yes ||
25380 $as_test_x conftest$ac_exeext
25381 }; then
Guido van Rossumcadfaec2001-01-05 14:45:49 +000025382 ac_cv_have_getc_unlocked=yes
25383else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025384 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000025385sed 's/^/| /' conftest.$ac_ext >&5
25386
Martin v. Löwiseba40652007-08-30 20:10:57 +000025387 ac_cv_have_getc_unlocked=no
Guido van Rossumcadfaec2001-01-05 14:45:49 +000025388fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000025389
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025390rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000025391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000025392 conftest$ac_exeext conftest.$ac_ext
Guido van Rossumcadfaec2001-01-05 14:45:49 +000025393fi
25394
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025395{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
25396$as_echo "$ac_cv_have_getc_unlocked" >&6; }
Guido van Rossumcadfaec2001-01-05 14:45:49 +000025397if test "$ac_cv_have_getc_unlocked" = yes
25398then
Martin v. Löwis11437992002-04-12 09:54:03 +000025399
25400cat >>confdefs.h <<\_ACEOF
Guido van Rossumcadfaec2001-01-05 14:45:49 +000025401#define HAVE_GETC_UNLOCKED 1
Martin v. Löwis11437992002-04-12 09:54:03 +000025402_ACEOF
Guido van Rossumcadfaec2001-01-05 14:45:49 +000025403
25404fi
Vladimir Marangozov676aa882000-07-12 03:02:43 +000025405
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000025406# check where readline lives
Martin v. Löwis82bca632006-02-10 20:49:30 +000025407# save the value of LIBS so we don't actually link Python with readline
25408LIBS_no_readline=$LIBS
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000025409
Gregory P. Smithcc023f12008-09-07 05:15:58 +000025410# On some systems we need to link readline to a termcap compatible
25411# library. NOTE: Keep the precedence of listed libraries synchronised
25412# with setup.py.
25413py_cv_lib_readline=no
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025414{ $as_echo "$as_me:$LINENO: checking how to link readline libs" >&5
25415$as_echo_n "checking how to link readline libs... " >&6; }
Gregory P. Smithcc023f12008-09-07 05:15:58 +000025416for py_libtermcap in "" ncursesw ncurses curses termcap; do
25417 if test -z "$py_libtermcap"; then
25418 READLINE_LIBS="-lreadline"
25419 else
25420 READLINE_LIBS="-lreadline -l$py_libtermcap"
25421 fi
25422 LIBS="$READLINE_LIBS $LIBS_no_readline"
25423 cat >conftest.$ac_ext <<_ACEOF
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000025424/* confdefs.h. */
25425_ACEOF
25426cat confdefs.h >>conftest.$ac_ext
25427cat >>conftest.$ac_ext <<_ACEOF
25428/* end confdefs.h. */
25429
Martin v. Löwiseba40652007-08-30 20:10:57 +000025430/* Override any GCC internal prototype to avoid an error.
25431 Use char because int might match the return type of a GCC
25432 builtin and then its argument prototype would still apply. */
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000025433#ifdef __cplusplus
25434extern "C"
25435#endif
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000025436char readline ();
25437int
25438main ()
25439{
Martin v. Löwiseba40652007-08-30 20:10:57 +000025440return readline ();
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000025441 ;
25442 return 0;
25443}
25444_ACEOF
25445rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000025446if { (ac_try="$ac_link"
25447case "(($ac_try" in
25448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25449 *) ac_try_echo=$ac_try;;
25450esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25452$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025453 (eval "$ac_link") 2>conftest.er1
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000025454 ac_status=$?
25455 grep -v '^ *+' conftest.er1 >conftest.err
25456 rm -f conftest.er1
25457 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025459 (exit $ac_status); } && {
25460 test -z "$ac_c_werror_flag" ||
25461 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025462 } && test -s conftest$ac_exeext && {
25463 test "$cross_compiling" = yes ||
25464 $as_test_x conftest$ac_exeext
25465 }; then
Gregory P. Smithcc023f12008-09-07 05:15:58 +000025466 py_cv_lib_readline=yes
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000025467else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025468 $as_echo "$as_me: failed program was:" >&5
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000025469sed 's/^/| /' conftest.$ac_ext >&5
25470
Gregory P. Smithcc023f12008-09-07 05:15:58 +000025471
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000025472fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000025473
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025474rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000025475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000025476 conftest$ac_exeext conftest.$ac_ext
Gregory P. Smithcc023f12008-09-07 05:15:58 +000025477 if test $py_cv_lib_readline = yes; then
25478 break
25479 fi
25480done
25481# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
25482#AC_SUBST([READLINE_LIBS])
Gregory P. Smithe080cdf2008-09-07 19:19:04 +000025483if test $py_cv_lib_readline = no; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025484 { $as_echo "$as_me:$LINENO: result: none" >&5
25485$as_echo "none" >&6; }
Gregory P. Smithcc023f12008-09-07 05:15:58 +000025486else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025487 { $as_echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
25488$as_echo "$READLINE_LIBS" >&6; }
Gregory P. Smithcc023f12008-09-07 05:15:58 +000025489
25490cat >>confdefs.h <<\_ACEOF
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000025491#define HAVE_LIBREADLINE 1
25492_ACEOF
25493
Neal Norwitzfe8e3d92006-01-07 21:07:20 +000025494fi
25495
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025496# check for readline 2.1
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025497{ $as_echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
25498$as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025499if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025500 $as_echo_n "(cached) " >&6
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025501else
25502 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smithff7b2d52008-09-03 05:57:48 +000025503LIBS="-lreadline $READLINE_LIBS $LIBS"
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025504cat >conftest.$ac_ext <<_ACEOF
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025505/* confdefs.h. */
25506_ACEOF
25507cat confdefs.h >>conftest.$ac_ext
25508cat >>conftest.$ac_ext <<_ACEOF
25509/* end confdefs.h. */
25510
Martin v. Löwiseba40652007-08-30 20:10:57 +000025511/* Override any GCC internal prototype to avoid an error.
25512 Use char because int might match the return type of a GCC
25513 builtin and then its argument prototype would still apply. */
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025514#ifdef __cplusplus
25515extern "C"
25516#endif
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025517char rl_callback_handler_install ();
25518int
25519main ()
25520{
Martin v. Löwiseba40652007-08-30 20:10:57 +000025521return rl_callback_handler_install ();
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025522 ;
25523 return 0;
25524}
25525_ACEOF
25526rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000025527if { (ac_try="$ac_link"
25528case "(($ac_try" in
25529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25530 *) ac_try_echo=$ac_try;;
25531esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25533$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025534 (eval "$ac_link") 2>conftest.er1
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025535 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000025536 grep -v '^ *+' conftest.er1 >conftest.err
25537 rm -f conftest.er1
25538 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025540 (exit $ac_status); } && {
25541 test -z "$ac_c_werror_flag" ||
25542 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025543 } && test -s conftest$ac_exeext && {
25544 test "$cross_compiling" = yes ||
25545 $as_test_x conftest$ac_exeext
25546 }; then
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025547 ac_cv_lib_readline_rl_callback_handler_install=yes
25548else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025549 $as_echo "$as_me: failed program was:" >&5
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025550sed 's/^/| /' conftest.$ac_ext >&5
25551
Martin v. Löwiseba40652007-08-30 20:10:57 +000025552 ac_cv_lib_readline_rl_callback_handler_install=no
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025553fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000025554
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025555rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000025556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000025557 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025558LIBS=$ac_check_lib_save_LIBS
25559fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025560{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
25561$as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
25562if test "x$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025563
25564cat >>confdefs.h <<\_ACEOF
25565#define HAVE_RL_CALLBACK 1
25566_ACEOF
25567
25568fi
25569
25570
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000025571# check for readline 2.2
25572cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000025573/* confdefs.h. */
25574_ACEOF
25575cat confdefs.h >>conftest.$ac_ext
25576cat >>conftest.$ac_ext <<_ACEOF
25577/* end confdefs.h. */
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000025578#include <readline/readline.h>
25579_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000025580if { (ac_try="$ac_cpp conftest.$ac_ext"
25581case "(($ac_try" in
25582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25583 *) ac_try_echo=$ac_try;;
25584esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25586$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000025588 ac_status=$?
Skip Montanaro6dead952003-09-25 14:50:04 +000025589 grep -v '^ *+' conftest.er1 >conftest.err
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000025590 rm -f conftest.er1
25591 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025593 (exit $ac_status); } >/dev/null && {
25594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25595 test ! -s conftest.err
25596 }; then
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000025597 have_readline=yes
25598else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025599 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000025600sed 's/^/| /' conftest.$ac_ext >&5
25601
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000025602 have_readline=no
25603fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000025604
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000025605rm -f conftest.err conftest.$ac_ext
25606if test $have_readline = yes
25607then
25608 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000025609/* confdefs.h. */
25610_ACEOF
25611cat confdefs.h >>conftest.$ac_ext
25612cat >>conftest.$ac_ext <<_ACEOF
25613/* end confdefs.h. */
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000025614#include <readline/readline.h>
25615
25616_ACEOF
25617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Skip Montanaro6dead952003-09-25 14:50:04 +000025618 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
Guido van Rossumfaf5e4d2002-12-30 16:25:41 +000025619
25620cat >>confdefs.h <<\_ACEOF
25621#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
25622_ACEOF
25623
25624fi
25625rm -f conftest*
25626
25627fi
25628
Martin v. Löwis0daad592001-09-30 21:09:59 +000025629# check for readline 4.0
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025630{ $as_echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
25631$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000025632if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025633 $as_echo_n "(cached) " >&6
Guido van Rossum353ae582001-07-10 16:45:32 +000025634else
Martin v. Löwis11437992002-04-12 09:54:03 +000025635 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smithff7b2d52008-09-03 05:57:48 +000025636LIBS="-lreadline $READLINE_LIBS $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000025637cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000025638/* confdefs.h. */
25639_ACEOF
25640cat confdefs.h >>conftest.$ac_ext
25641cat >>conftest.$ac_ext <<_ACEOF
25642/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000025643
Martin v. Löwiseba40652007-08-30 20:10:57 +000025644/* Override any GCC internal prototype to avoid an error.
25645 Use char because int might match the return type of a GCC
25646 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000025647#ifdef __cplusplus
25648extern "C"
25649#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000025650char rl_pre_input_hook ();
Martin v. Löwis11437992002-04-12 09:54:03 +000025651int
25652main ()
25653{
Martin v. Löwiseba40652007-08-30 20:10:57 +000025654return rl_pre_input_hook ();
Martin v. Löwis11437992002-04-12 09:54:03 +000025655 ;
25656 return 0;
25657}
25658_ACEOF
25659rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000025660if { (ac_try="$ac_link"
25661case "(($ac_try" in
25662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25663 *) ac_try_echo=$ac_try;;
25664esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25666$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025667 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000025668 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000025669 grep -v '^ *+' conftest.er1 >conftest.err
25670 rm -f conftest.er1
25671 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025673 (exit $ac_status); } && {
25674 test -z "$ac_c_werror_flag" ||
25675 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025676 } && test -s conftest$ac_exeext && {
25677 test "$cross_compiling" = yes ||
25678 $as_test_x conftest$ac_exeext
25679 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000025680 ac_cv_lib_readline_rl_pre_input_hook=yes
Martin v. Löwis0daad592001-09-30 21:09:59 +000025681else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025682 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000025683sed 's/^/| /' conftest.$ac_ext >&5
25684
Martin v. Löwiseba40652007-08-30 20:10:57 +000025685 ac_cv_lib_readline_rl_pre_input_hook=no
Martin v. Löwis0daad592001-09-30 21:09:59 +000025686fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000025687
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025688rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000025689rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000025690 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000025691LIBS=$ac_check_lib_save_LIBS
25692fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025693{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
25694$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
25695if test "x$ac_cv_lib_readline_rl_pre_input_hook" = x""yes; then
Michael W. Hudson54241132001-12-07 15:38:26 +000025696
Martin v. Löwis11437992002-04-12 09:54:03 +000025697cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0daad592001-09-30 21:09:59 +000025698#define HAVE_RL_PRE_INPUT_HOOK 1
Martin v. Löwis11437992002-04-12 09:54:03 +000025699_ACEOF
Martin v. Löwis0daad592001-09-30 21:09:59 +000025700
Martin v. Löwis0daad592001-09-30 21:09:59 +000025701fi
25702
Michael W. Hudson54241132001-12-07 15:38:26 +000025703
Martin v. Löwis58bd49f2007-09-04 13:13:14 +000025704# also in 4.0
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025705{ $as_echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
25706$as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
Martin v. Löwis58bd49f2007-09-04 13:13:14 +000025707if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025708 $as_echo_n "(cached) " >&6
Martin v. Löwis58bd49f2007-09-04 13:13:14 +000025709else
25710 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smithff7b2d52008-09-03 05:57:48 +000025711LIBS="-lreadline $READLINE_LIBS $LIBS"
Martin v. Löwis58bd49f2007-09-04 13:13:14 +000025712cat >conftest.$ac_ext <<_ACEOF
25713/* confdefs.h. */
25714_ACEOF
25715cat confdefs.h >>conftest.$ac_ext
25716cat >>conftest.$ac_ext <<_ACEOF
25717/* end confdefs.h. */
25718
25719/* Override any GCC internal prototype to avoid an error.
25720 Use char because int might match the return type of a GCC
25721 builtin and then its argument prototype would still apply. */
25722#ifdef __cplusplus
25723extern "C"
25724#endif
25725char rl_completion_display_matches_hook ();
25726int
25727main ()
25728{
25729return rl_completion_display_matches_hook ();
25730 ;
25731 return 0;
25732}
25733_ACEOF
25734rm -f conftest.$ac_objext conftest$ac_exeext
25735if { (ac_try="$ac_link"
25736case "(($ac_try" in
25737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25738 *) ac_try_echo=$ac_try;;
25739esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25741$as_echo "$ac_try_echo") >&5
Martin v. Löwis58bd49f2007-09-04 13:13:14 +000025742 (eval "$ac_link") 2>conftest.er1
25743 ac_status=$?
25744 grep -v '^ *+' conftest.er1 >conftest.err
25745 rm -f conftest.er1
25746 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis58bd49f2007-09-04 13:13:14 +000025748 (exit $ac_status); } && {
25749 test -z "$ac_c_werror_flag" ||
25750 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025751 } && test -s conftest$ac_exeext && {
25752 test "$cross_compiling" = yes ||
25753 $as_test_x conftest$ac_exeext
25754 }; then
Martin v. Löwis58bd49f2007-09-04 13:13:14 +000025755 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
25756else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025757 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwis58bd49f2007-09-04 13:13:14 +000025758sed 's/^/| /' conftest.$ac_ext >&5
25759
25760 ac_cv_lib_readline_rl_completion_display_matches_hook=no
25761fi
25762
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025763rm -rf conftest.dSYM
Martin v. Löwis58bd49f2007-09-04 13:13:14 +000025764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25765 conftest$ac_exeext conftest.$ac_ext
25766LIBS=$ac_check_lib_save_LIBS
25767fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025768{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
25769$as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
25770if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = x""yes; then
Martin v. Löwis58bd49f2007-09-04 13:13:14 +000025771
25772cat >>confdefs.h <<\_ACEOF
25773#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
25774_ACEOF
25775
25776fi
25777
25778
Martin v. Löwis0daad592001-09-30 21:09:59 +000025779# check for readline 4.2
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025780{ $as_echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
25781$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000025782if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025783 $as_echo_n "(cached) " >&6
Martin v. Löwis0daad592001-09-30 21:09:59 +000025784else
Martin v. Löwis11437992002-04-12 09:54:03 +000025785 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smithff7b2d52008-09-03 05:57:48 +000025786LIBS="-lreadline $READLINE_LIBS $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000025787cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000025788/* confdefs.h. */
25789_ACEOF
25790cat confdefs.h >>conftest.$ac_ext
25791cat >>conftest.$ac_ext <<_ACEOF
25792/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:03 +000025793
Martin v. Löwiseba40652007-08-30 20:10:57 +000025794/* Override any GCC internal prototype to avoid an error.
25795 Use char because int might match the return type of a GCC
25796 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:03 +000025797#ifdef __cplusplus
25798extern "C"
25799#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000025800char rl_completion_matches ();
Martin v. Löwis11437992002-04-12 09:54:03 +000025801int
25802main ()
25803{
Martin v. Löwiseba40652007-08-30 20:10:57 +000025804return rl_completion_matches ();
Martin v. Löwis11437992002-04-12 09:54:03 +000025805 ;
25806 return 0;
25807}
25808_ACEOF
25809rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000025810if { (ac_try="$ac_link"
25811case "(($ac_try" in
25812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25813 *) ac_try_echo=$ac_try;;
25814esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25816$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025817 (eval "$ac_link") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000025818 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000025819 grep -v '^ *+' conftest.er1 >conftest.err
25820 rm -f conftest.er1
25821 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025823 (exit $ac_status); } && {
25824 test -z "$ac_c_werror_flag" ||
25825 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025826 } && test -s conftest$ac_exeext && {
25827 test "$cross_compiling" = yes ||
25828 $as_test_x conftest$ac_exeext
25829 }; then
Martin v. Löwis11437992002-04-12 09:54:03 +000025830 ac_cv_lib_readline_rl_completion_matches=yes
Guido van Rossum353ae582001-07-10 16:45:32 +000025831else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025832 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000025833sed 's/^/| /' conftest.$ac_ext >&5
25834
Martin v. Löwiseba40652007-08-30 20:10:57 +000025835 ac_cv_lib_readline_rl_completion_matches=no
Guido van Rossum353ae582001-07-10 16:45:32 +000025836fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000025837
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025838rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000025839rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Skip Montanarof0d5f792004-08-15 14:08:23 +000025840 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000025841LIBS=$ac_check_lib_save_LIBS
25842fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025843{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
25844$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
25845if test "x$ac_cv_lib_readline_rl_completion_matches" = x""yes; then
Michael W. Hudson54241132001-12-07 15:38:26 +000025846
Martin v. Löwis11437992002-04-12 09:54:03 +000025847cat >>confdefs.h <<\_ACEOF
Guido van Rossum353ae582001-07-10 16:45:32 +000025848#define HAVE_RL_COMPLETION_MATCHES 1
Martin v. Löwis11437992002-04-12 09:54:03 +000025849_ACEOF
Guido van Rossum353ae582001-07-10 16:45:32 +000025850
Guido van Rossum353ae582001-07-10 16:45:32 +000025851fi
25852
Jack Jansendd19cf82001-12-06 22:36:17 +000025853
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025854# also in readline 4.2
25855cat >conftest.$ac_ext <<_ACEOF
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025856/* confdefs.h. */
25857_ACEOF
25858cat confdefs.h >>conftest.$ac_ext
25859cat >>conftest.$ac_ext <<_ACEOF
25860/* end confdefs.h. */
25861#include <readline/readline.h>
25862_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000025863if { (ac_try="$ac_cpp conftest.$ac_ext"
25864case "(($ac_try" in
25865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866 *) ac_try_echo=$ac_try;;
25867esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25869$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025871 ac_status=$?
25872 grep -v '^ *+' conftest.er1 >conftest.err
25873 rm -f conftest.er1
25874 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025876 (exit $ac_status); } >/dev/null && {
25877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25878 test ! -s conftest.err
25879 }; then
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025880 have_readline=yes
25881else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025882 $as_echo "$as_me: failed program was:" >&5
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025883sed 's/^/| /' conftest.$ac_ext >&5
25884
25885 have_readline=no
25886fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000025887
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025888rm -f conftest.err conftest.$ac_ext
25889if test $have_readline = yes
25890then
25891 cat >conftest.$ac_ext <<_ACEOF
Michael W. Hudson30ea2f22004-07-07 17:44:12 +000025892/* confdefs.h. */
25893_ACEOF
25894cat confdefs.h >>conftest.$ac_ext
25895cat >>conftest.$ac_ext <<_ACEOF
25896/* end confdefs.h. */
25897#include <readline/readline.h>
25898
25899_ACEOF
25900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25901 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
25902
25903cat >>confdefs.h <<\_ACEOF
25904#define HAVE_RL_CATCH_SIGNAL 1
25905_ACEOF
25906
25907fi
25908rm -f conftest*
25909
25910fi
25911
Martin v. Löwis82bca632006-02-10 20:49:30 +000025912# End of readline checks: restore LIBS
25913LIBS=$LIBS_no_readline
25914
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025915{ $as_echo "$as_me:$LINENO: checking for broken nice()" >&5
25916$as_echo_n "checking for broken nice()... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000025917if test "${ac_cv_broken_nice+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025918 $as_echo_n "(cached) " >&6
Michael W. Hudson54241132001-12-07 15:38:26 +000025919else
Martin v. Löwis11437992002-04-12 09:54:03 +000025920
Thomas Wouterse38b2f12001-07-11 22:35:31 +000025921if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +000025922 ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:31 +000025923else
Martin v. Löwis11437992002-04-12 09:54:03 +000025924 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000025925/* confdefs.h. */
25926_ACEOF
25927cat confdefs.h >>conftest.$ac_ext
25928cat >>conftest.$ac_ext <<_ACEOF
25929/* end confdefs.h. */
Thomas Wouterse38b2f12001-07-11 22:35:31 +000025930
25931int main()
25932{
25933 int val1 = nice(1);
25934 if (val1 != -1 && val1 == nice(2))
25935 exit(0);
25936 exit(1);
25937}
25938
Martin v. Löwis11437992002-04-12 09:54:03 +000025939_ACEOF
25940rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000025941if { (ac_try="$ac_link"
25942case "(($ac_try" in
25943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25944 *) ac_try_echo=$ac_try;;
25945esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25947$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025948 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000025949 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000025951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000025952 { (case "(($ac_try" in
25953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25954 *) ac_try_echo=$ac_try;;
25955esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25957$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000025958 (eval "$ac_try") 2>&5
Martin v. Löwis11437992002-04-12 09:54:03 +000025959 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000025961 (exit $ac_status); }; }; then
Thomas Wouterse38b2f12001-07-11 22:35:31 +000025962 ac_cv_broken_nice=yes
25963else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025964 $as_echo "$as_me: program exited with status $ac_status" >&5
25965$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000025966sed 's/^/| /' conftest.$ac_ext >&5
25967
Martin v. Löwis11437992002-04-12 09:54:03 +000025968( exit $ac_status )
25969ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:31 +000025970fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025971rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000025972rm -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 +000025973fi
25974
Martin v. Löwiseba40652007-08-30 20:10:57 +000025975
25976fi
25977
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025978{ $as_echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
25979$as_echo "$ac_cv_broken_nice" >&6; }
Thomas Wouterse38b2f12001-07-11 22:35:31 +000025980if test "$ac_cv_broken_nice" = yes
25981then
Martin v. Löwis11437992002-04-12 09:54:03 +000025982
25983cat >>confdefs.h <<\_ACEOF
Thomas Wouterse38b2f12001-07-11 22:35:31 +000025984#define HAVE_BROKEN_NICE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000025985_ACEOF
Thomas Wouterse38b2f12001-07-11 22:35:31 +000025986
25987fi
25988
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000025989{ $as_echo "$as_me:$LINENO: checking for broken poll()" >&5
25990$as_echo_n "checking for broken poll()... " >&6; }
25991if test "${ac_cv_broken_poll+set}" = set; then
25992 $as_echo_n "(cached) " >&6
25993else
25994 if test "$cross_compiling" = yes; then
Nicholas Bastine62c5c82004-03-21 23:45:42 +000025995 ac_cv_broken_poll=no
25996else
25997 cat >conftest.$ac_ext <<_ACEOF
Nicholas Bastine62c5c82004-03-21 23:45:42 +000025998/* confdefs.h. */
25999_ACEOF
26000cat confdefs.h >>conftest.$ac_ext
26001cat >>conftest.$ac_ext <<_ACEOF
26002/* end confdefs.h. */
26003
26004#include <poll.h>
26005
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026006int main()
26007{
Nicholas Bastine62c5c82004-03-21 23:45:42 +000026008 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026009 int poll_test;
Nicholas Bastine62c5c82004-03-21 23:45:42 +000026010
26011 close (42);
26012
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026013 poll_test = poll(&poll_struct, 1, 0);
Nicholas Bastine62c5c82004-03-21 23:45:42 +000026014 if (poll_test < 0)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026015 return 0;
Nicholas Bastine62c5c82004-03-21 23:45:42 +000026016 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026017 return 0;
Nicholas Bastine62c5c82004-03-21 23:45:42 +000026018 else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026019 return 1;
26020}
Nicholas Bastine62c5c82004-03-21 23:45:42 +000026021
26022_ACEOF
26023rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000026024if { (ac_try="$ac_link"
26025case "(($ac_try" in
26026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26027 *) ac_try_echo=$ac_try;;
26028esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26030$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026031 (eval "$ac_link") 2>&5
Nicholas Bastine62c5c82004-03-21 23:45:42 +000026032 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nicholas Bastine62c5c82004-03-21 23:45:42 +000026034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000026035 { (case "(($ac_try" in
26036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26037 *) ac_try_echo=$ac_try;;
26038esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26040$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026041 (eval "$ac_try") 2>&5
Nicholas Bastine62c5c82004-03-21 23:45:42 +000026042 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Nicholas Bastine62c5c82004-03-21 23:45:42 +000026044 (exit $ac_status); }; }; then
26045 ac_cv_broken_poll=yes
26046else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026047 $as_echo "$as_me: program exited with status $ac_status" >&5
26048$as_echo "$as_me: failed program was:" >&5
Nicholas Bastine62c5c82004-03-21 23:45:42 +000026049sed 's/^/| /' conftest.$ac_ext >&5
26050
26051( exit $ac_status )
26052ac_cv_broken_poll=no
26053fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026054rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000026055rm -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 +000026056fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000026057
26058
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026059fi
26060
26061{ $as_echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
26062$as_echo "$ac_cv_broken_poll" >&6; }
Nicholas Bastine62c5c82004-03-21 23:45:42 +000026063if test "$ac_cv_broken_poll" = yes
26064then
26065
26066cat >>confdefs.h <<\_ACEOF
26067#define HAVE_BROKEN_POLL 1
26068_ACEOF
26069
26070fi
26071
Brett Cannon43802422005-02-10 20:48:03 +000026072# 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 +000026073# (which is not required by ISO C or UNIX spec) and/or if we support
26074# tzname[]
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026075{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26076$as_echo_n "checking for struct tm.tm_zone... " >&6; }
Brett Cannon43802422005-02-10 20:48:03 +000026077if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026078 $as_echo_n "(cached) " >&6
Brett Cannon43802422005-02-10 20:48:03 +000026079else
26080 cat >conftest.$ac_ext <<_ACEOF
26081/* confdefs.h. */
26082_ACEOF
26083cat confdefs.h >>conftest.$ac_ext
26084cat >>conftest.$ac_ext <<_ACEOF
26085/* end confdefs.h. */
26086#include <sys/types.h>
26087#include <$ac_cv_struct_tm>
26088
26089
26090int
26091main ()
26092{
26093static struct tm ac_aggr;
26094if (ac_aggr.tm_zone)
26095return 0;
26096 ;
26097 return 0;
26098}
26099_ACEOF
26100rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000026101if { (ac_try="$ac_compile"
26102case "(($ac_try" in
26103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26104 *) ac_try_echo=$ac_try;;
26105esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26107$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026108 (eval "$ac_compile") 2>conftest.er1
Brett Cannon43802422005-02-10 20:48:03 +000026109 ac_status=$?
26110 grep -v '^ *+' conftest.er1 >conftest.err
26111 rm -f conftest.er1
26112 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026114 (exit $ac_status); } && {
26115 test -z "$ac_c_werror_flag" ||
26116 test ! -s conftest.err
26117 } && test -s conftest.$ac_objext; then
Brett Cannon43802422005-02-10 20:48:03 +000026118 ac_cv_member_struct_tm_tm_zone=yes
26119else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026120 $as_echo "$as_me: failed program was:" >&5
Brett Cannon43802422005-02-10 20:48:03 +000026121sed 's/^/| /' conftest.$ac_ext >&5
26122
Martin v. Löwiseba40652007-08-30 20:10:57 +000026123 cat >conftest.$ac_ext <<_ACEOF
Brett Cannon43802422005-02-10 20:48:03 +000026124/* confdefs.h. */
26125_ACEOF
26126cat confdefs.h >>conftest.$ac_ext
26127cat >>conftest.$ac_ext <<_ACEOF
26128/* end confdefs.h. */
26129#include <sys/types.h>
26130#include <$ac_cv_struct_tm>
26131
26132
26133int
26134main ()
26135{
26136static struct tm ac_aggr;
26137if (sizeof ac_aggr.tm_zone)
26138return 0;
26139 ;
26140 return 0;
26141}
26142_ACEOF
26143rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000026144if { (ac_try="$ac_compile"
26145case "(($ac_try" in
26146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26147 *) ac_try_echo=$ac_try;;
26148esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26150$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026151 (eval "$ac_compile") 2>conftest.er1
Brett Cannon43802422005-02-10 20:48:03 +000026152 ac_status=$?
26153 grep -v '^ *+' conftest.er1 >conftest.err
26154 rm -f conftest.er1
26155 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026157 (exit $ac_status); } && {
26158 test -z "$ac_c_werror_flag" ||
26159 test ! -s conftest.err
26160 } && test -s conftest.$ac_objext; then
Brett Cannon43802422005-02-10 20:48:03 +000026161 ac_cv_member_struct_tm_tm_zone=yes
26162else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026163 $as_echo "$as_me: failed program was:" >&5
Brett Cannon43802422005-02-10 20:48:03 +000026164sed 's/^/| /' conftest.$ac_ext >&5
26165
Martin v. Löwiseba40652007-08-30 20:10:57 +000026166 ac_cv_member_struct_tm_tm_zone=no
Brett Cannon43802422005-02-10 20:48:03 +000026167fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000026168
26169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brett Cannon43802422005-02-10 20:48:03 +000026170fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000026171
26172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brett Cannon43802422005-02-10 20:48:03 +000026173fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026174{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26175$as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
26176if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
Brett Cannon43802422005-02-10 20:48:03 +000026177
26178cat >>confdefs.h <<_ACEOF
26179#define HAVE_STRUCT_TM_TM_ZONE 1
26180_ACEOF
26181
26182
26183fi
26184
26185if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26186
26187cat >>confdefs.h <<\_ACEOF
26188#define HAVE_TM_ZONE 1
26189_ACEOF
26190
26191else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026192 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
26193$as_echo_n "checking whether tzname is declared... " >&6; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000026194if test "${ac_cv_have_decl_tzname+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026195 $as_echo_n "(cached) " >&6
Martin v. Löwiseba40652007-08-30 20:10:57 +000026196else
26197 cat >conftest.$ac_ext <<_ACEOF
26198/* confdefs.h. */
26199_ACEOF
26200cat confdefs.h >>conftest.$ac_ext
26201cat >>conftest.$ac_ext <<_ACEOF
26202/* end confdefs.h. */
26203#include <time.h>
26204
26205int
26206main ()
26207{
26208#ifndef tzname
26209 (void) tzname;
26210#endif
26211
26212 ;
26213 return 0;
26214}
26215_ACEOF
26216rm -f conftest.$ac_objext
26217if { (ac_try="$ac_compile"
26218case "(($ac_try" in
26219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26220 *) ac_try_echo=$ac_try;;
26221esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26223$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026224 (eval "$ac_compile") 2>conftest.er1
26225 ac_status=$?
26226 grep -v '^ *+' conftest.er1 >conftest.err
26227 rm -f conftest.er1
26228 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026230 (exit $ac_status); } && {
26231 test -z "$ac_c_werror_flag" ||
26232 test ! -s conftest.err
26233 } && test -s conftest.$ac_objext; then
26234 ac_cv_have_decl_tzname=yes
26235else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026236 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026237sed 's/^/| /' conftest.$ac_ext >&5
26238
26239 ac_cv_have_decl_tzname=no
26240fi
26241
26242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26243fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026244{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
26245$as_echo "$ac_cv_have_decl_tzname" >&6; }
26246if test "x$ac_cv_have_decl_tzname" = x""yes; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000026247
26248cat >>confdefs.h <<_ACEOF
26249#define HAVE_DECL_TZNAME 1
26250_ACEOF
26251
26252
26253else
26254 cat >>confdefs.h <<_ACEOF
26255#define HAVE_DECL_TZNAME 0
26256_ACEOF
26257
26258
26259fi
26260
26261
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026262 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
26263$as_echo_n "checking for tzname... " >&6; }
Brett Cannon43802422005-02-10 20:48:03 +000026264if test "${ac_cv_var_tzname+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026265 $as_echo_n "(cached) " >&6
Brett Cannon43802422005-02-10 20:48:03 +000026266else
26267 cat >conftest.$ac_ext <<_ACEOF
26268/* confdefs.h. */
26269_ACEOF
26270cat confdefs.h >>conftest.$ac_ext
26271cat >>conftest.$ac_ext <<_ACEOF
26272/* end confdefs.h. */
26273#include <time.h>
Martin v. Löwiseba40652007-08-30 20:10:57 +000026274#if !HAVE_DECL_TZNAME
26275extern char *tzname[];
Brett Cannon43802422005-02-10 20:48:03 +000026276#endif
26277
26278int
26279main ()
26280{
Martin v. Löwiseba40652007-08-30 20:10:57 +000026281return tzname[0][0];
Brett Cannon43802422005-02-10 20:48:03 +000026282 ;
26283 return 0;
26284}
26285_ACEOF
26286rm -f conftest.$ac_objext conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000026287if { (ac_try="$ac_link"
26288case "(($ac_try" in
26289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26290 *) ac_try_echo=$ac_try;;
26291esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26293$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026294 (eval "$ac_link") 2>conftest.er1
Brett Cannon43802422005-02-10 20:48:03 +000026295 ac_status=$?
26296 grep -v '^ *+' conftest.er1 >conftest.err
26297 rm -f conftest.er1
26298 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026300 (exit $ac_status); } && {
26301 test -z "$ac_c_werror_flag" ||
26302 test ! -s conftest.err
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026303 } && test -s conftest$ac_exeext && {
26304 test "$cross_compiling" = yes ||
26305 $as_test_x conftest$ac_exeext
26306 }; then
Brett Cannon43802422005-02-10 20:48:03 +000026307 ac_cv_var_tzname=yes
26308else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026309 $as_echo "$as_me: failed program was:" >&5
Brett Cannon43802422005-02-10 20:48:03 +000026310sed 's/^/| /' conftest.$ac_ext >&5
26311
Martin v. Löwiseba40652007-08-30 20:10:57 +000026312 ac_cv_var_tzname=no
Brett Cannon43802422005-02-10 20:48:03 +000026313fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000026314
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026315rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000026316rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Brett Cannon43802422005-02-10 20:48:03 +000026317 conftest$ac_exeext conftest.$ac_ext
26318fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026319{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26320$as_echo "$ac_cv_var_tzname" >&6; }
Brett Cannon43802422005-02-10 20:48:03 +000026321 if test $ac_cv_var_tzname = yes; then
26322
26323cat >>confdefs.h <<\_ACEOF
26324#define HAVE_TZNAME 1
26325_ACEOF
26326
26327 fi
26328fi
26329
Nicholas Bastine62c5c82004-03-21 23:45:42 +000026330
Martin v. Löwis1d459062005-03-14 21:23:33 +000026331# check tzset(3) exists and works like we expect it to
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026332{ $as_echo "$as_me:$LINENO: checking for working tzset()" >&5
26333$as_echo_n "checking for working tzset()... " >&6; }
Guido van Rossumd11b62e2003-03-14 21:51:36 +000026334if test "${ac_cv_working_tzset+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026335 $as_echo_n "(cached) " >&6
Guido van Rossumd11b62e2003-03-14 21:51:36 +000026336else
26337
26338if test "$cross_compiling" = yes; then
26339 ac_cv_working_tzset=no
26340else
26341 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000026342/* confdefs.h. */
26343_ACEOF
26344cat confdefs.h >>conftest.$ac_ext
26345cat >>conftest.$ac_ext <<_ACEOF
26346/* end confdefs.h. */
Guido van Rossumd11b62e2003-03-14 21:51:36 +000026347
26348#include <stdlib.h>
26349#include <time.h>
Brett Cannon18367812003-09-19 00:59:16 +000026350#include <string.h>
Brett Cannon43802422005-02-10 20:48:03 +000026351
26352#if HAVE_TZNAME
26353extern char *tzname[];
26354#endif
26355
Guido van Rossumd11b62e2003-03-14 21:51:36 +000026356int main()
26357{
Brett Cannon18367812003-09-19 00:59:16 +000026358 /* Note that we need to ensure that not only does tzset(3)
26359 do 'something' with localtime, but it works as documented
26360 in the library reference and as expected by the test suite.
Martin v. Löwis1d459062005-03-14 21:23:33 +000026361 This includes making sure that tzname is set properly if
26362 tm->tm_zone does not exist since it is the alternative way
26363 of getting timezone info.
Brett Cannon18367812003-09-19 00:59:16 +000026364
26365 Red Hat 6.2 doesn't understand the southern hemisphere
Martin v. Löwis1d459062005-03-14 21:23:33 +000026366 after New Year's Day.
Brett Cannon18367812003-09-19 00:59:16 +000026367 */
26368
Martin v. Löwis1d459062005-03-14 21:23:33 +000026369 time_t groundhogday = 1044144000; /* GMT-based */
Brett Cannon18367812003-09-19 00:59:16 +000026370 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
26371
Neal Norwitz7f2588c2003-04-11 15:35:53 +000026372 putenv("TZ=UTC+0");
Guido van Rossumd11b62e2003-03-14 21:51:36 +000026373 tzset();
Brett Cannon18367812003-09-19 00:59:16 +000026374 if (localtime(&groundhogday)->tm_hour != 0)
26375 exit(1);
Brett Cannon43802422005-02-10 20:48:03 +000026376#if HAVE_TZNAME
26377 /* For UTC, tzname[1] is sometimes "", sometimes " " */
26378 if (strcmp(tzname[0], "UTC") ||
26379 (tzname[1][0] != 0 && tzname[1][0] != ' '))
26380 exit(1);
26381#endif
Brett Cannon18367812003-09-19 00:59:16 +000026382
Neal Norwitz7f2588c2003-04-11 15:35:53 +000026383 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
Guido van Rossumd11b62e2003-03-14 21:51:36 +000026384 tzset();
Brett Cannon18367812003-09-19 00:59:16 +000026385 if (localtime(&groundhogday)->tm_hour != 19)
Guido van Rossumd11b62e2003-03-14 21:51:36 +000026386 exit(1);
Brett Cannon43802422005-02-10 20:48:03 +000026387#if HAVE_TZNAME
26388 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
26389 exit(1);
26390#endif
Brett Cannon18367812003-09-19 00:59:16 +000026391
26392 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
26393 tzset();
26394 if (localtime(&groundhogday)->tm_hour != 11)
26395 exit(1);
Brett Cannon43802422005-02-10 20:48:03 +000026396#if HAVE_TZNAME
26397 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
26398 exit(1);
26399#endif
26400
26401#if HAVE_STRUCT_TM_TM_ZONE
Brett Cannon18367812003-09-19 00:59:16 +000026402 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
26403 exit(1);
26404 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
26405 exit(1);
Brett Cannon43802422005-02-10 20:48:03 +000026406#endif
Brett Cannon18367812003-09-19 00:59:16 +000026407
Guido van Rossumd11b62e2003-03-14 21:51:36 +000026408 exit(0);
26409}
26410
26411_ACEOF
26412rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000026413if { (ac_try="$ac_link"
26414case "(($ac_try" in
26415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26416 *) ac_try_echo=$ac_try;;
26417esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26419$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026420 (eval "$ac_link") 2>&5
Guido van Rossumd11b62e2003-03-14 21:51:36 +000026421 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Guido van Rossumd11b62e2003-03-14 21:51:36 +000026423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000026424 { (case "(($ac_try" in
26425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26426 *) ac_try_echo=$ac_try;;
26427esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26429$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026430 (eval "$ac_try") 2>&5
Guido van Rossumd11b62e2003-03-14 21:51:36 +000026431 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Guido van Rossumd11b62e2003-03-14 21:51:36 +000026433 (exit $ac_status); }; }; then
26434 ac_cv_working_tzset=yes
26435else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026436 $as_echo "$as_me: program exited with status $ac_status" >&5
26437$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000026438sed 's/^/| /' conftest.$ac_ext >&5
26439
Guido van Rossumd11b62e2003-03-14 21:51:36 +000026440( exit $ac_status )
26441ac_cv_working_tzset=no
26442fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026443rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000026444rm -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 +000026445fi
26446
Martin v. Löwiseba40652007-08-30 20:10:57 +000026447
26448fi
26449
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026450{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
26451$as_echo "$ac_cv_working_tzset" >&6; }
Guido van Rossumd11b62e2003-03-14 21:51:36 +000026452if test "$ac_cv_working_tzset" = yes
26453then
26454
26455cat >>confdefs.h <<\_ACEOF
26456#define HAVE_WORKING_TZSET 1
26457_ACEOF
26458
26459fi
26460
Martin v. Löwis94717ed2002-09-09 14:24:16 +000026461# Look for subsecond timestamps in struct stat
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026462{ $as_echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
26463$as_echo_n "checking for tv_nsec in struct stat... " >&6; }
Martin v. Löwis94717ed2002-09-09 14:24:16 +000026464if test "${ac_cv_stat_tv_nsec+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026465 $as_echo_n "(cached) " >&6
Martin v. Löwis94717ed2002-09-09 14:24:16 +000026466else
26467 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000026468/* confdefs.h. */
26469_ACEOF
26470cat confdefs.h >>conftest.$ac_ext
26471cat >>conftest.$ac_ext <<_ACEOF
26472/* end confdefs.h. */
Martin v. Löwis94717ed2002-09-09 14:24:16 +000026473#include <sys/stat.h>
Martin v. Löwis94717ed2002-09-09 14:24:16 +000026474int
26475main ()
26476{
26477
26478struct stat st;
26479st.st_mtim.tv_nsec = 1;
26480
26481 ;
26482 return 0;
26483}
26484_ACEOF
26485rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000026486if { (ac_try="$ac_compile"
26487case "(($ac_try" in
26488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26489 *) ac_try_echo=$ac_try;;
26490esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26492$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026493 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis94717ed2002-09-09 14:24:16 +000026494 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000026495 grep -v '^ *+' conftest.er1 >conftest.err
26496 rm -f conftest.er1
26497 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026499 (exit $ac_status); } && {
26500 test -z "$ac_c_werror_flag" ||
26501 test ! -s conftest.err
26502 } && test -s conftest.$ac_objext; then
Martin v. Löwisa32c9942002-09-09 16:17:47 +000026503 ac_cv_stat_tv_nsec=yes
Martin v. Löwis94717ed2002-09-09 14:24:16 +000026504else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026505 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000026506sed 's/^/| /' conftest.$ac_ext >&5
26507
Martin v. Löwiseba40652007-08-30 20:10:57 +000026508 ac_cv_stat_tv_nsec=no
Martin v. Löwis94717ed2002-09-09 14:24:16 +000026509fi
26510
Martin v. Löwiseba40652007-08-30 20:10:57 +000026511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26512fi
26513
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026514{ $as_echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
26515$as_echo "$ac_cv_stat_tv_nsec" >&6; }
Martin v. Löwis94717ed2002-09-09 14:24:16 +000026516if test "$ac_cv_stat_tv_nsec" = yes
26517then
26518
26519cat >>confdefs.h <<\_ACEOF
26520#define HAVE_STAT_TV_NSEC 1
26521_ACEOF
26522
26523fi
26524
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000026525# Look for BSD style subsecond timestamps in struct stat
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026526{ $as_echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
26527$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000026528if test "${ac_cv_stat_tv_nsec2+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026529 $as_echo_n "(cached) " >&6
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000026530else
26531 cat >conftest.$ac_ext <<_ACEOF
26532/* confdefs.h. */
26533_ACEOF
26534cat confdefs.h >>conftest.$ac_ext
26535cat >>conftest.$ac_ext <<_ACEOF
26536/* end confdefs.h. */
26537#include <sys/stat.h>
26538int
26539main ()
26540{
26541
26542struct stat st;
26543st.st_mtimespec.tv_nsec = 1;
26544
26545 ;
26546 return 0;
26547}
26548_ACEOF
26549rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000026550if { (ac_try="$ac_compile"
26551case "(($ac_try" in
26552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26553 *) ac_try_echo=$ac_try;;
26554esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26556$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026557 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000026558 ac_status=$?
26559 grep -v '^ *+' conftest.er1 >conftest.err
26560 rm -f conftest.er1
26561 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026563 (exit $ac_status); } && {
26564 test -z "$ac_c_werror_flag" ||
26565 test ! -s conftest.err
26566 } && test -s conftest.$ac_objext; then
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000026567 ac_cv_stat_tv_nsec2=yes
26568else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026569 $as_echo "$as_me: failed program was:" >&5
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000026570sed 's/^/| /' conftest.$ac_ext >&5
26571
Martin v. Löwiseba40652007-08-30 20:10:57 +000026572 ac_cv_stat_tv_nsec2=no
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000026573fi
26574
Martin v. Löwiseba40652007-08-30 20:10:57 +000026575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26576fi
26577
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026578{ $as_echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
26579$as_echo "$ac_cv_stat_tv_nsec2" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:59 +000026580if test "$ac_cv_stat_tv_nsec2" = yes
26581then
26582
26583cat >>confdefs.h <<\_ACEOF
26584#define HAVE_STAT_TV_NSEC2 1
26585_ACEOF
26586
26587fi
26588
Jack Jansen666b1e72001-10-31 12:11:48 +000026589# On HP/UX 11.0, mvwdelch is a block with a return statement
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026590{ $as_echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
26591$as_echo_n "checking whether mvwdelch is an expression... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000026592if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026593 $as_echo_n "(cached) " >&6
Jack Jansen666b1e72001-10-31 12:11:48 +000026594else
Martin v. Löwis11437992002-04-12 09:54:03 +000026595 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000026596/* confdefs.h. */
26597_ACEOF
26598cat confdefs.h >>conftest.$ac_ext
26599cat >>conftest.$ac_ext <<_ACEOF
26600/* end confdefs.h. */
Jack Jansen666b1e72001-10-31 12:11:48 +000026601#include <curses.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000026602int
26603main ()
26604{
Jack Jansen666b1e72001-10-31 12:11:48 +000026605
26606 int rtn;
26607 rtn = mvwdelch(0,0,0);
26608
Martin v. Löwis11437992002-04-12 09:54:03 +000026609 ;
26610 return 0;
26611}
26612_ACEOF
26613rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000026614if { (ac_try="$ac_compile"
26615case "(($ac_try" in
26616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26617 *) ac_try_echo=$ac_try;;
26618esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26620$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026621 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000026622 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000026623 grep -v '^ *+' conftest.er1 >conftest.err
26624 rm -f conftest.er1
26625 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026627 (exit $ac_status); } && {
26628 test -z "$ac_c_werror_flag" ||
26629 test ! -s conftest.err
26630 } && test -s conftest.$ac_objext; then
Jack Jansen666b1e72001-10-31 12:11:48 +000026631 ac_cv_mvwdelch_is_expression=yes
26632else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026633 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000026634sed 's/^/| /' conftest.$ac_ext >&5
26635
Martin v. Löwiseba40652007-08-30 20:10:57 +000026636 ac_cv_mvwdelch_is_expression=no
Jack Jansen666b1e72001-10-31 12:11:48 +000026637fi
26638
Martin v. Löwiseba40652007-08-30 20:10:57 +000026639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26640fi
26641
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026642{ $as_echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
26643$as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
Jack Jansen666b1e72001-10-31 12:11:48 +000026644
26645if test "$ac_cv_mvwdelch_is_expression" = yes
26646then
Martin v. Löwis11437992002-04-12 09:54:03 +000026647
26648cat >>confdefs.h <<\_ACEOF
Jack Jansen666b1e72001-10-31 12:11:48 +000026649#define MVWDELCH_IS_EXPRESSION 1
Martin v. Löwis11437992002-04-12 09:54:03 +000026650_ACEOF
Jack Jansen666b1e72001-10-31 12:11:48 +000026651
26652fi
26653
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026654{ $as_echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
26655$as_echo_n "checking whether WINDOW has _flags... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000026656if test "${ac_cv_window_has_flags+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026657 $as_echo_n "(cached) " >&6
Jack Jansen666b1e72001-10-31 12:11:48 +000026658else
Martin v. Löwis11437992002-04-12 09:54:03 +000026659 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000026660/* confdefs.h. */
26661_ACEOF
26662cat confdefs.h >>conftest.$ac_ext
26663cat >>conftest.$ac_ext <<_ACEOF
26664/* end confdefs.h. */
Jack Jansen666b1e72001-10-31 12:11:48 +000026665#include <curses.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000026666int
26667main ()
26668{
Jack Jansen666b1e72001-10-31 12:11:48 +000026669
26670 WINDOW *w;
26671 w->_flags = 0;
26672
Martin v. Löwis11437992002-04-12 09:54:03 +000026673 ;
26674 return 0;
26675}
26676_ACEOF
26677rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000026678if { (ac_try="$ac_compile"
26679case "(($ac_try" in
26680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26681 *) ac_try_echo=$ac_try;;
26682esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26684$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026685 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000026686 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000026687 grep -v '^ *+' conftest.er1 >conftest.err
26688 rm -f conftest.er1
26689 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026691 (exit $ac_status); } && {
26692 test -z "$ac_c_werror_flag" ||
26693 test ! -s conftest.err
26694 } && test -s conftest.$ac_objext; then
Jack Jansen666b1e72001-10-31 12:11:48 +000026695 ac_cv_window_has_flags=yes
26696else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026697 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000026698sed 's/^/| /' conftest.$ac_ext >&5
26699
Martin v. Löwiseba40652007-08-30 20:10:57 +000026700 ac_cv_window_has_flags=no
Jack Jansen666b1e72001-10-31 12:11:48 +000026701fi
26702
Martin v. Löwiseba40652007-08-30 20:10:57 +000026703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26704fi
26705
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026706{ $as_echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
26707$as_echo "$ac_cv_window_has_flags" >&6; }
Michael W. Hudson54241132001-12-07 15:38:26 +000026708
Jack Jansen666b1e72001-10-31 12:11:48 +000026709
26710if test "$ac_cv_window_has_flags" = yes
26711then
Martin v. Löwis11437992002-04-12 09:54:03 +000026712
26713cat >>confdefs.h <<\_ACEOF
Jack Jansen666b1e72001-10-31 12:11:48 +000026714#define WINDOW_HAS_FLAGS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000026715_ACEOF
Jack Jansen666b1e72001-10-31 12:11:48 +000026716
26717fi
26718
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026719{ $as_echo "$as_me:$LINENO: checking for is_term_resized" >&5
26720$as_echo_n "checking for is_term_resized... " >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000026721cat >conftest.$ac_ext <<_ACEOF
26722/* confdefs.h. */
26723_ACEOF
26724cat confdefs.h >>conftest.$ac_ext
26725cat >>conftest.$ac_ext <<_ACEOF
26726/* end confdefs.h. */
26727#include <curses.h>
26728int
26729main ()
26730{
26731void *x=is_term_resized
26732 ;
26733 return 0;
26734}
26735_ACEOF
26736rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000026737if { (ac_try="$ac_compile"
26738case "(($ac_try" in
26739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26740 *) ac_try_echo=$ac_try;;
26741esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26743$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026744 (eval "$ac_compile") 2>conftest.er1
Walter Dörwald4994d952006-06-19 08:07:50 +000026745 ac_status=$?
26746 grep -v '^ *+' conftest.er1 >conftest.err
26747 rm -f conftest.er1
26748 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026750 (exit $ac_status); } && {
26751 test -z "$ac_c_werror_flag" ||
26752 test ! -s conftest.err
26753 } && test -s conftest.$ac_objext; then
Walter Dörwald4994d952006-06-19 08:07:50 +000026754
26755cat >>confdefs.h <<\_ACEOF
26756#define HAVE_CURSES_IS_TERM_RESIZED 1
26757_ACEOF
26758
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026759 { $as_echo "$as_me:$LINENO: result: yes" >&5
26760$as_echo "yes" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000026761else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026762 $as_echo "$as_me: failed program was:" >&5
Walter Dörwald4994d952006-06-19 08:07:50 +000026763sed 's/^/| /' conftest.$ac_ext >&5
26764
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026765 { $as_echo "$as_me:$LINENO: result: no" >&5
26766$as_echo "no" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000026767
26768fi
Walter Dörwald4994d952006-06-19 08:07:50 +000026769
Martin v. Löwiseba40652007-08-30 20:10:57 +000026770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26771
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026772{ $as_echo "$as_me:$LINENO: checking for resize_term" >&5
26773$as_echo_n "checking for resize_term... " >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000026774cat >conftest.$ac_ext <<_ACEOF
26775/* confdefs.h. */
26776_ACEOF
26777cat confdefs.h >>conftest.$ac_ext
26778cat >>conftest.$ac_ext <<_ACEOF
26779/* end confdefs.h. */
26780#include <curses.h>
26781int
26782main ()
26783{
26784void *x=resize_term
26785 ;
26786 return 0;
26787}
26788_ACEOF
26789rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000026790if { (ac_try="$ac_compile"
26791case "(($ac_try" in
26792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26793 *) ac_try_echo=$ac_try;;
26794esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26796$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026797 (eval "$ac_compile") 2>conftest.er1
Walter Dörwald4994d952006-06-19 08:07:50 +000026798 ac_status=$?
26799 grep -v '^ *+' conftest.er1 >conftest.err
26800 rm -f conftest.er1
26801 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026803 (exit $ac_status); } && {
26804 test -z "$ac_c_werror_flag" ||
26805 test ! -s conftest.err
26806 } && test -s conftest.$ac_objext; then
Walter Dörwald4994d952006-06-19 08:07:50 +000026807
26808cat >>confdefs.h <<\_ACEOF
26809#define HAVE_CURSES_RESIZE_TERM 1
26810_ACEOF
26811
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026812 { $as_echo "$as_me:$LINENO: result: yes" >&5
26813$as_echo "yes" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000026814else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026815 $as_echo "$as_me: failed program was:" >&5
Walter Dörwald4994d952006-06-19 08:07:50 +000026816sed 's/^/| /' conftest.$ac_ext >&5
26817
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026818 { $as_echo "$as_me:$LINENO: result: no" >&5
26819$as_echo "no" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000026820
26821fi
Walter Dörwald4994d952006-06-19 08:07:50 +000026822
Martin v. Löwiseba40652007-08-30 20:10:57 +000026823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26824
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026825{ $as_echo "$as_me:$LINENO: checking for resizeterm" >&5
26826$as_echo_n "checking for resizeterm... " >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000026827cat >conftest.$ac_ext <<_ACEOF
26828/* confdefs.h. */
26829_ACEOF
26830cat confdefs.h >>conftest.$ac_ext
26831cat >>conftest.$ac_ext <<_ACEOF
26832/* end confdefs.h. */
26833#include <curses.h>
26834int
26835main ()
26836{
26837void *x=resizeterm
26838 ;
26839 return 0;
26840}
26841_ACEOF
26842rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000026843if { (ac_try="$ac_compile"
26844case "(($ac_try" in
26845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26846 *) ac_try_echo=$ac_try;;
26847esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26849$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026850 (eval "$ac_compile") 2>conftest.er1
Walter Dörwald4994d952006-06-19 08:07:50 +000026851 ac_status=$?
26852 grep -v '^ *+' conftest.er1 >conftest.err
26853 rm -f conftest.er1
26854 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026856 (exit $ac_status); } && {
26857 test -z "$ac_c_werror_flag" ||
26858 test ! -s conftest.err
26859 } && test -s conftest.$ac_objext; then
Walter Dörwald4994d952006-06-19 08:07:50 +000026860
26861cat >>confdefs.h <<\_ACEOF
26862#define HAVE_CURSES_RESIZETERM 1
26863_ACEOF
26864
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026865 { $as_echo "$as_me:$LINENO: result: yes" >&5
26866$as_echo "yes" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000026867else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026868 $as_echo "$as_me: failed program was:" >&5
Walter Dörwald4994d952006-06-19 08:07:50 +000026869sed 's/^/| /' conftest.$ac_ext >&5
26870
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026871 { $as_echo "$as_me:$LINENO: result: no" >&5
26872$as_echo "no" >&6; }
Walter Dörwald4994d952006-06-19 08:07:50 +000026873
26874fi
Walter Dörwald4994d952006-06-19 08:07:50 +000026875
Martin v. Löwiseba40652007-08-30 20:10:57 +000026876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26877
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026878{ $as_echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
26879$as_echo_n "checking for /dev/ptmx... " >&6; }
Martin v. Löwisfefbc202006-10-17 18:59:23 +000026880
26881if test -r /dev/ptmx
26882then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026883 { $as_echo "$as_me:$LINENO: result: yes" >&5
26884$as_echo "yes" >&6; }
Martin v. Löwis24a880b2002-12-31 12:55:15 +000026885
26886cat >>confdefs.h <<\_ACEOF
26887#define HAVE_DEV_PTMX 1
26888_ACEOF
26889
Martin v. Löwisfefbc202006-10-17 18:59:23 +000026890else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026891 { $as_echo "$as_me:$LINENO: result: no" >&5
26892$as_echo "no" >&6; }
Martin v. Löwis24a880b2002-12-31 12:55:15 +000026893fi
26894
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026895{ $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
26896$as_echo_n "checking for /dev/ptc... " >&6; }
Martin v. Löwisfefbc202006-10-17 18:59:23 +000026897
26898if test -r /dev/ptc
26899then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026900 { $as_echo "$as_me:$LINENO: result: yes" >&5
26901$as_echo "yes" >&6; }
Neal Norwitz865400f2003-03-21 01:42:58 +000026902
26903cat >>confdefs.h <<\_ACEOF
26904#define HAVE_DEV_PTC 1
26905_ACEOF
26906
Martin v. Löwisfefbc202006-10-17 18:59:23 +000026907else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026908 { $as_echo "$as_me:$LINENO: result: no" >&5
26909$as_echo "no" >&6; }
Neal Norwitz865400f2003-03-21 01:42:58 +000026910fi
26911
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026912{ $as_echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
26913$as_echo_n "checking for %zd printf() format support... " >&6; }
26914if test "${ac_cv_have_size_t_format+set}" = set; then
26915 $as_echo_n "(cached) " >&6
26916else
26917 if test "$cross_compiling" = yes; then
26918 ac_cv_have_size_t_format=no
Brett Cannon09d12362006-05-11 05:11:33 +000026919else
26920 cat >conftest.$ac_ext <<_ACEOF
26921/* confdefs.h. */
26922_ACEOF
26923cat confdefs.h >>conftest.$ac_ext
26924cat >>conftest.$ac_ext <<_ACEOF
26925/* end confdefs.h. */
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026926
Brett Cannon09d12362006-05-11 05:11:33 +000026927#include <stdio.h>
26928#include <stddef.h>
26929#include <string.h>
26930
Christian Heimesdb3d6cb2007-12-16 21:39:43 +000026931#ifdef HAVE_SYS_TYPES_H
26932#include <sys/types.h>
26933#endif
Neal Norwitz4a8fbdb2006-09-22 08:16:26 +000026934
26935#ifdef HAVE_SSIZE_T
26936typedef ssize_t Py_ssize_t;
26937#elif SIZEOF_VOID_P == SIZEOF_LONG
26938typedef long Py_ssize_t;
26939#else
26940typedef int Py_ssize_t;
26941#endif
Brett Cannon09d12362006-05-11 05:11:33 +000026942
Christian Heimesdb3d6cb2007-12-16 21:39:43 +000026943int main()
26944{
26945 char buffer[256];
26946
Brett Cannon09d12362006-05-11 05:11:33 +000026947 if(sprintf(buffer, "%zd", (size_t)123) < 0)
26948 return 1;
26949
Neal Norwitz4a8fbdb2006-09-22 08:16:26 +000026950 if (strcmp(buffer, "123"))
26951 return 1;
26952
26953 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
26954 return 1;
26955
26956 if (strcmp(buffer, "-123"))
Brett Cannon09d12362006-05-11 05:11:33 +000026957 return 1;
26958
26959 return 0;
26960}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026961
Brett Cannon09d12362006-05-11 05:11:33 +000026962_ACEOF
26963rm -f conftest$ac_exeext
Martin v. Löwiseba40652007-08-30 20:10:57 +000026964if { (ac_try="$ac_link"
26965case "(($ac_try" in
26966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26967 *) ac_try_echo=$ac_try;;
26968esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26970$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026971 (eval "$ac_link") 2>&5
Brett Cannon09d12362006-05-11 05:11:33 +000026972 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Brett Cannon09d12362006-05-11 05:11:33 +000026974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwiseba40652007-08-30 20:10:57 +000026975 { (case "(($ac_try" in
26976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26977 *) ac_try_echo=$ac_try;;
26978esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26980$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000026981 (eval "$ac_try") 2>&5
Brett Cannon09d12362006-05-11 05:11:33 +000026982 ac_status=$?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Brett Cannon09d12362006-05-11 05:11:33 +000026984 (exit $ac_status); }; }; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026985 ac_cv_have_size_t_format=yes
Brett Cannon09d12362006-05-11 05:11:33 +000026986else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026987 $as_echo "$as_me: program exited with status $ac_status" >&5
26988$as_echo "$as_me: failed program was:" >&5
Brett Cannon09d12362006-05-11 05:11:33 +000026989sed 's/^/| /' conftest.$ac_ext >&5
26990
26991( exit $ac_status )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026992ac_cv_have_size_t_format=no
Brett Cannon09d12362006-05-11 05:11:33 +000026993fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000026994rm -rf conftest.dSYM
Martin v. Löwiseba40652007-08-30 20:10:57 +000026995rm -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 +000026996fi
26997
Martin v. Löwiseba40652007-08-30 20:10:57 +000026998
26999
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027000fi
27001
27002{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5
27003$as_echo "$ac_cv_have_size_t_format" >&6; }
27004if test $ac_cv_have_size_t_format = yes
27005then
27006
27007cat >>confdefs.h <<\_ACEOF
27008#define PY_FORMAT_SIZE_T "z"
27009_ACEOF
27010
27011fi
27012
27013{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
27014$as_echo_n "checking for socklen_t... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:03 +000027015if test "${ac_cv_type_socklen_t+set}" = set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027016 $as_echo_n "(cached) " >&6
Guido van Rossum95713eb2000-05-18 20:53:31 +000027017else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027018 ac_cv_type_socklen_t=no
27019cat >conftest.$ac_ext <<_ACEOF
27020/* confdefs.h. */
27021_ACEOF
27022cat confdefs.h >>conftest.$ac_ext
27023cat >>conftest.$ac_ext <<_ACEOF
27024/* end confdefs.h. */
27025
27026#ifdef HAVE_SYS_TYPES_H
27027#include <sys/types.h>
27028#endif
27029#ifdef HAVE_SYS_SOCKET_H
27030#include <sys/socket.h>
27031#endif
27032
27033
27034int
27035main ()
27036{
27037if (sizeof (socklen_t))
27038 return 0;
27039 ;
27040 return 0;
27041}
27042_ACEOF
27043rm -f conftest.$ac_objext
27044if { (ac_try="$ac_compile"
27045case "(($ac_try" in
27046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27047 *) ac_try_echo=$ac_try;;
27048esac
27049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27050$as_echo "$ac_try_echo") >&5
27051 (eval "$ac_compile") 2>conftest.er1
27052 ac_status=$?
27053 grep -v '^ *+' conftest.er1 >conftest.err
27054 rm -f conftest.er1
27055 cat conftest.err >&5
27056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057 (exit $ac_status); } && {
27058 test -z "$ac_c_werror_flag" ||
27059 test ! -s conftest.err
27060 } && test -s conftest.$ac_objext; then
Martin v. Löwis11437992002-04-12 09:54:03 +000027061 cat >conftest.$ac_ext <<_ACEOF
Skip Montanaro6dead952003-09-25 14:50:04 +000027062/* confdefs.h. */
27063_ACEOF
27064cat confdefs.h >>conftest.$ac_ext
27065cat >>conftest.$ac_ext <<_ACEOF
27066/* end confdefs.h. */
Martin v. Löwis01c04012002-11-11 14:58:44 +000027067
27068#ifdef HAVE_SYS_TYPES_H
27069#include <sys/types.h>
27070#endif
27071#ifdef HAVE_SYS_SOCKET_H
27072#include <sys/socket.h>
27073#endif
27074
27075
Martin v. Löwis11437992002-04-12 09:54:03 +000027076int
27077main ()
27078{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027079if (sizeof ((socklen_t)))
27080 return 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000027081 ;
27082 return 0;
27083}
27084_ACEOF
27085rm -f conftest.$ac_objext
Martin v. Löwiseba40652007-08-30 20:10:57 +000027086if { (ac_try="$ac_compile"
27087case "(($ac_try" in
27088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27089 *) ac_try_echo=$ac_try;;
27090esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27092$as_echo "$ac_try_echo") >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000027093 (eval "$ac_compile") 2>conftest.er1
Martin v. Löwis11437992002-04-12 09:54:03 +000027094 ac_status=$?
Skip Montanarof0d5f792004-08-15 14:08:23 +000027095 grep -v '^ *+' conftest.er1 >conftest.err
27096 rm -f conftest.er1
27097 cat conftest.err >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Martin v. Löwiseba40652007-08-30 20:10:57 +000027099 (exit $ac_status); } && {
27100 test -z "$ac_c_werror_flag" ||
27101 test ! -s conftest.err
27102 } && test -s conftest.$ac_objext; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027103 :
Guido van Rossum95713eb2000-05-18 20:53:31 +000027104else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027105 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:04 +000027106sed 's/^/| /' conftest.$ac_ext >&5
27107
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027108 ac_cv_type_socklen_t=yes
27109fi
27110
27111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27112else
27113 $as_echo "$as_me: failed program was:" >&5
27114sed 's/^/| /' conftest.$ac_ext >&5
27115
27116
Guido van Rossum95713eb2000-05-18 20:53:31 +000027117fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000027118
27119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:03 +000027120fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027121{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27122$as_echo "$ac_cv_type_socklen_t" >&6; }
27123if test "x$ac_cv_type_socklen_t" = x""yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000027124 :
27125else
Guido van Rossum95713eb2000-05-18 20:53:31 +000027126
Martin v. Löwis01c04012002-11-11 14:58:44 +000027127cat >>confdefs.h <<\_ACEOF
Guido van Rossum95713eb2000-05-18 20:53:31 +000027128#define socklen_t int
Martin v. Löwis11437992002-04-12 09:54:03 +000027129_ACEOF
Guido van Rossum95713eb2000-05-18 20:53:31 +000027130
27131fi
27132
Michael W. Hudson54241132001-12-07 15:38:26 +000027133
Michael W. Hudson54241132001-12-07 15:38:26 +000027134
27135
Martin v. Löwis06f15bb2001-12-02 13:02:32 +000027136for h in `(cd $srcdir;echo Python/thread_*.h)`
27137do
27138 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
27139done
27140
Michael W. Hudson54241132001-12-07 15:38:26 +000027141
Neal Norwitzd24499d2005-12-18 21:36:39 +000027142SRCDIRS="Parser Grammar Objects Python Modules Mac"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027143{ $as_echo "$as_me:$LINENO: checking for build directories" >&5
27144$as_echo_n "checking for build directories... " >&6; }
Neil Schemenauerd32c2492001-01-24 17:25:28 +000027145for dir in $SRCDIRS; do
27146 if test ! -d $dir; then
27147 mkdir $dir
Guido van Rossum262cf202000-11-02 19:33:53 +000027148 fi
Neil Schemenauerd32c2492001-01-24 17:25:28 +000027149done
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027150{ $as_echo "$as_me:$LINENO: result: done" >&5
27151$as_echo "done" >&6; }
Fred Drake036144d2000-10-26 17:09:35 +000027152
Guido van Rossum627b2d71993-12-24 10:39:16 +000027153# generate output files
Antoine Pitrouf2caeed2009-05-24 20:23:57 +000027154ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
Martin v. Löwis88afe662002-10-26 13:47:44 +000027155
Martin v. Löwis11437992002-04-12 09:54:03 +000027156cat >confcache <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000027157# This file is a shell script that caches the results of configure
27158# tests run on this system so they can be shared between configure
Martin v. Löwis11437992002-04-12 09:54:03 +000027159# scripts and configure runs, see configure's option --config-cache.
27160# It is not useful on other systems. If it contains results you don't
27161# want to keep, you may remove or edit it.
Guido van Rossum76be6ed1995-01-02 18:33:54 +000027162#
Martin v. Löwis11437992002-04-12 09:54:03 +000027163# config.status only pays attention to the cache file if you give it
27164# the --recheck option to rerun configure.
Guido van Rossum76be6ed1995-01-02 18:33:54 +000027165#
Skip Montanaro6dead952003-09-25 14:50:04 +000027166# `ac_cv_env_foo' variables (set or unset) will be overridden when
Martin v. Löwis11437992002-04-12 09:54:03 +000027167# loading this file, other *unset* `ac_cv_foo' will be assigned the
27168# following values.
27169
27170_ACEOF
27171
Guido van Rossumf78abae1997-01-21 22:02:36 +000027172# The following way of writing the cache mishandles newlines in values,
27173# but we know of no workaround that is simple, portable, and efficient.
Martin v. Löwiseba40652007-08-30 20:10:57 +000027174# So, we kill variables containing newlines.
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000027175# Ultrix sh set writes to stderr and can't be redirected directly,
27176# and sets the high bit in the cache file unless we assign to the vars.
Martin v. Löwiseba40652007-08-30 20:10:57 +000027177(
27178 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27179 eval ac_val=\$$ac_var
27180 case $ac_val in #(
27181 *${as_nl}*)
27182 case $ac_var in #(
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027183 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
27184$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000027185 esac
27186 case $ac_var in #(
27187 _ | IFS | as_nl) ;; #(
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027188 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Martin v. Löwiseba40652007-08-30 20:10:57 +000027189 *) $as_unset $ac_var ;;
27190 esac ;;
27191 esac
27192 done
27193
Martin v. Löwis11437992002-04-12 09:54:03 +000027194 (set) 2>&1 |
Martin v. Löwiseba40652007-08-30 20:10:57 +000027195 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27196 *${as_nl}ac_space=\ *)
Martin v. Löwis11437992002-04-12 09:54:03 +000027197 # `set' does not quote correctly, so add quotes (double-quote
27198 # substitution turns \\\\ into \\, and sed turns \\ into \).
27199 sed -n \
Skip Montanarof0d5f792004-08-15 14:08:23 +000027200 "s/'/'\\\\''/g;
27201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Martin v. Löwiseba40652007-08-30 20:10:57 +000027202 ;; #(
Martin v. Löwis11437992002-04-12 09:54:03 +000027203 *)
27204 # `set' quotes correctly as required by POSIX, so do not add quotes.
Martin v. Löwiseba40652007-08-30 20:10:57 +000027205 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Martin v. Löwis11437992002-04-12 09:54:03 +000027206 ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000027207 esac |
27208 sort
27209) |
Martin v. Löwis11437992002-04-12 09:54:03 +000027210 sed '
Martin v. Löwiseba40652007-08-30 20:10:57 +000027211 /^ac_cv_env_/b end
Martin v. Löwis11437992002-04-12 09:54:03 +000027212 t clear
Martin v. Löwiseba40652007-08-30 20:10:57 +000027213 :clear
Martin v. Löwis11437992002-04-12 09:54:03 +000027214 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27215 t end
Martin v. Löwiseba40652007-08-30 20:10:57 +000027216 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27217 :end' >>confcache
27218if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27219 if test -w "$cache_file"; then
27220 test "x$cache_file" != "x/dev/null" &&
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027221 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
27222$as_echo "$as_me: updating cache $cache_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:03 +000027223 cat confcache >$cache_file
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000027224 else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027225 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27226$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000027227 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +000027228fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000027229rm -f confcache
Guido van Rossum0a516c91994-09-12 10:58:40 +000027230
Guido van Rossum76be6ed1995-01-02 18:33:54 +000027231test "x$prefix" = xNONE && prefix=$ac_default_prefix
27232# Let make expand exec_prefix.
27233test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Guido van Rossum0a516c91994-09-12 10:58:40 +000027234
Guido van Rossum76be6ed1995-01-02 18:33:54 +000027235DEFS=-DHAVE_CONFIG_H
27236
Skip Montanaro6dead952003-09-25 14:50:04 +000027237ac_libobjs=
27238ac_ltlibobjs=
27239for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27240 # 1. Remove the extension, and $U if already installed.
Martin v. Löwiseba40652007-08-30 20:10:57 +000027241 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027242 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Martin v. Löwiseba40652007-08-30 20:10:57 +000027243 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27244 # will be set to the directory where LIBOBJS objects are built.
27245 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27246 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Skip Montanaro6dead952003-09-25 14:50:04 +000027247done
27248LIBOBJS=$ac_libobjs
27249
27250LTLIBOBJS=$ac_ltlibobjs
27251
27252
Martin v. Löwis11437992002-04-12 09:54:03 +000027253
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027254
Guido van Rossum76be6ed1995-01-02 18:33:54 +000027255: ${CONFIG_STATUS=./config.status}
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027256ac_write_fail=0
Martin v. Löwis11437992002-04-12 09:54:03 +000027257ac_clean_files_save=$ac_clean_files
27258ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027259{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27260$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27261cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:03 +000027262#! $SHELL
27263# Generated by $as_me.
Guido van Rossum627b2d71993-12-24 10:39:16 +000027264# Run this file to recreate the current configuration.
Guido van Rossum76be6ed1995-01-02 18:33:54 +000027265# Compiler output produced by configure, useful for debugging
Martin v. Löwis11437992002-04-12 09:54:03 +000027266# configure, is in config.log if it exists.
Guido van Rossum627b2d71993-12-24 10:39:16 +000027267
Martin v. Löwis11437992002-04-12 09:54:03 +000027268debug=false
Skip Montanaro6dead952003-09-25 14:50:04 +000027269ac_cs_recheck=false
27270ac_cs_silent=false
Martin v. Löwis11437992002-04-12 09:54:03 +000027271SHELL=\${CONFIG_SHELL-$SHELL}
27272_ACEOF
Jack Jansendd19cf82001-12-06 22:36:17 +000027273
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:03 +000027275## --------------------- ##
27276## M4sh Initialization. ##
27277## --------------------- ##
Jack Jansendd19cf82001-12-06 22:36:17 +000027278
Martin v. Löwiseba40652007-08-30 20:10:57 +000027279# Be more Bourne compatible
27280DUALCASE=1; export DUALCASE # for MKS sh
Martin v. Löwis11437992002-04-12 09:54:03 +000027281if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27282 emulate sh
27283 NULLCMD=:
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027284 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Skip Montanaro6dead952003-09-25 14:50:04 +000027285 # is contrary to our usage. Disable this feature.
27286 alias -g '${1+"$@"}'='"$@"'
Martin v. Löwiseba40652007-08-30 20:10:57 +000027287 setopt NO_GLOB_SUBST
Skip Montanaro89e975f2007-08-22 19:05:21 +000027288else
Martin v. Löwiseba40652007-08-30 20:10:57 +000027289 case `(set -o) 2>/dev/null` in
27290 *posix*) set -o posix ;;
27291esac
27292
Martin v. Löwis11437992002-04-12 09:54:03 +000027293fi
Michael W. Hudson54241132001-12-07 15:38:26 +000027294
Skip Montanaro6dead952003-09-25 14:50:04 +000027295
Martin v. Löwis11437992002-04-12 09:54:03 +000027296
27297
Martin v. Löwiseba40652007-08-30 20:10:57 +000027298# PATH needs CR
Martin v. Löwis11437992002-04-12 09:54:03 +000027299# Avoid depending upon Character Ranges.
27300as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27301as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27302as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27303as_cr_digits='0123456789'
27304as_cr_alnum=$as_cr_Letters$as_cr_digits
27305
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027306as_nl='
27307'
27308export as_nl
27309# Printing a long string crashes Solaris 7 /usr/bin/printf.
27310as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27311as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27312as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27313if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27314 as_echo='printf %s\n'
27315 as_echo_n='printf %s'
27316else
27317 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27318 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27319 as_echo_n='/usr/ucb/echo -n'
27320 else
27321 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27322 as_echo_n_body='eval
27323 arg=$1;
27324 case $arg in
27325 *"$as_nl"*)
27326 expr "X$arg" : "X\\(.*\\)$as_nl";
27327 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27328 esac;
27329 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27330 '
27331 export as_echo_n_body
27332 as_echo_n='sh -c $as_echo_n_body as_echo'
27333 fi
27334 export as_echo_body
27335 as_echo='sh -c $as_echo_body as_echo'
27336fi
27337
Martin v. Löwis11437992002-04-12 09:54:03 +000027338# The user is always right.
27339if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027340 PATH_SEPARATOR=:
27341 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27342 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27343 PATH_SEPARATOR=';'
27344 }
Martin v. Löwis11437992002-04-12 09:54:03 +000027345fi
27346
Martin v. Löwiseba40652007-08-30 20:10:57 +000027347# Support unset when possible.
27348if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27349 as_unset=unset
27350else
27351 as_unset=false
27352fi
Martin v. Löwis11437992002-04-12 09:54:03 +000027353
Martin v. Löwiseba40652007-08-30 20:10:57 +000027354
27355# IFS
27356# We need space, tab and new line, in precisely that order. Quoting is
27357# there to prevent editors from complaining about space-tab.
27358# (If _AS_PATH_WALK were called with IFS unset, it would disable word
27359# splitting by setting IFS to empty value.)
Martin v. Löwiseba40652007-08-30 20:10:57 +000027360IFS=" "" $as_nl"
27361
27362# Find who we are. Look in the path if we contain no directory separator.
27363case $0 in
27364 *[\\/]* ) as_myself=$0 ;;
27365 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwis11437992002-04-12 09:54:03 +000027366for as_dir in $PATH
27367do
27368 IFS=$as_save_IFS
27369 test -z "$as_dir" && as_dir=.
27370 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27371done
Martin v. Löwiseba40652007-08-30 20:10:57 +000027372IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03 +000027373
Martin v. Löwiseba40652007-08-30 20:10:57 +000027374 ;;
27375esac
27376# We did not find ourselves, most probably we were run as `sh COMMAND'
27377# in which case we are not to be found in the path.
27378if test "x$as_myself" = x; then
27379 as_myself=$0
27380fi
27381if test ! -f "$as_myself"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027382 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Martin v. Löwiseba40652007-08-30 20:10:57 +000027383 { (exit 1); exit 1; }
27384fi
27385
27386# Work around bugs in pre-3.0 UWIN ksh.
27387for as_var in ENV MAIL MAILPATH
27388do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27389done
27390PS1='$ '
27391PS2='> '
27392PS4='+ '
27393
27394# NLS nuisances.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027395LC_ALL=C
27396export LC_ALL
27397LANGUAGE=C
27398export LANGUAGE
Martin v. Löwiseba40652007-08-30 20:10:57 +000027399
27400# Required to use basename.
27401if expr a : '\(a\)' >/dev/null 2>&1 &&
27402 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27403 as_expr=expr
27404else
27405 as_expr=false
27406fi
27407
27408if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27409 as_basename=basename
27410else
27411 as_basename=false
27412fi
27413
27414
27415# Name of the executable.
27416as_me=`$as_basename -- "$0" ||
27417$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27418 X"$0" : 'X\(//\)$' \| \
27419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027420$as_echo X/"$0" |
Martin v. Löwiseba40652007-08-30 20:10:57 +000027421 sed '/^.*\/\([^/][^/]*\)\/*$/{
27422 s//\1/
27423 q
27424 }
27425 /^X\/\(\/\/\)$/{
27426 s//\1/
27427 q
27428 }
27429 /^X\/\(\/\).*/{
27430 s//\1/
27431 q
27432 }
27433 s/.*/./; q'`
27434
27435# CDPATH.
27436$as_unset CDPATH
27437
27438
27439
Martin v. Löwis11437992002-04-12 09:54:03 +000027440 as_lineno_1=$LINENO
27441 as_lineno_2=$LINENO
Martin v. Löwis11437992002-04-12 09:54:03 +000027442 test "x$as_lineno_1" != "x$as_lineno_2" &&
Martin v. Löwiseba40652007-08-30 20:10:57 +000027443 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Jack Jansendd19cf82001-12-06 22:36:17 +000027444
Martin v. Löwis11437992002-04-12 09:54:03 +000027445 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27446 # uniformly replaced by the line number. The first 'sed' inserts a
Martin v. Löwiseba40652007-08-30 20:10:57 +000027447 # line-number line after each line using $LINENO; the second 'sed'
27448 # does the real work. The second script uses 'N' to pair each
27449 # line-number line with the line containing $LINENO, and appends
27450 # trailing '-' during substitution so that $LINENO is not a special
27451 # case at line end.
Martin v. Löwis11437992002-04-12 09:54:03 +000027452 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Martin v. Löwiseba40652007-08-30 20:10:57 +000027453 # scripts with optimization help from Paolo Bonzini. Blame Lee
27454 # E. McMahon (1931-1989) for sed's syntax. :-)
27455 sed -n '
27456 p
27457 /[$]LINENO/=
27458 ' <$as_myself |
Martin v. Löwis11437992002-04-12 09:54:03 +000027459 sed '
Martin v. Löwiseba40652007-08-30 20:10:57 +000027460 s/[$]LINENO.*/&-/
27461 t lineno
27462 b
27463 :lineno
Martin v. Löwis11437992002-04-12 09:54:03 +000027464 N
Martin v. Löwiseba40652007-08-30 20:10:57 +000027465 :loop
27466 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Martin v. Löwis11437992002-04-12 09:54:03 +000027467 t loop
Martin v. Löwiseba40652007-08-30 20:10:57 +000027468 s/-\n.*//
Martin v. Löwis11437992002-04-12 09:54:03 +000027469 ' >$as_me.lineno &&
Martin v. Löwiseba40652007-08-30 20:10:57 +000027470 chmod +x "$as_me.lineno" ||
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027471 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Martin v. Löwis11437992002-04-12 09:54:03 +000027472 { (exit 1); exit 1; }; }
Michael W. Hudson54241132001-12-07 15:38:26 +000027473
Martin v. Löwis11437992002-04-12 09:54:03 +000027474 # Don't try to exec as it changes $[0], causing all sort of problems
27475 # (the dirname of $[0] is not the place where we might find the
Martin v. Löwiseba40652007-08-30 20:10:57 +000027476 # original and so on. Autoconf is especially sensitive to this).
27477 . "./$as_me.lineno"
Martin v. Löwis11437992002-04-12 09:54:03 +000027478 # Exit status is that of the last command.
27479 exit
27480}
27481
27482
Martin v. Löwiseba40652007-08-30 20:10:57 +000027483if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27484 as_dirname=dirname
27485else
27486 as_dirname=false
27487fi
27488
27489ECHO_C= ECHO_N= ECHO_T=
27490case `echo -n x` in
27491-n*)
27492 case `echo 'x\c'` in
27493 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27494 *) ECHO_C='\c';;
27495 esac;;
27496*)
27497 ECHO_N='-n';;
Martin v. Löwis11437992002-04-12 09:54:03 +000027498esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000027499if expr a : '\(a\)' >/dev/null 2>&1 &&
27500 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Martin v. Löwis11437992002-04-12 09:54:03 +000027501 as_expr=expr
27502else
27503 as_expr=false
27504fi
27505
27506rm -f conf$$ conf$$.exe conf$$.file
Martin v. Löwiseba40652007-08-30 20:10:57 +000027507if test -d conf$$.dir; then
27508 rm -f conf$$.dir/conf$$.file
27509else
27510 rm -f conf$$.dir
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027511 mkdir conf$$.dir 2>/dev/null
Martin v. Löwiseba40652007-08-30 20:10:57 +000027512fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027513if (echo >conf$$.file) 2>/dev/null; then
27514 if ln -s conf$$.file conf$$ 2>/dev/null; then
27515 as_ln_s='ln -s'
27516 # ... but there are two gotchas:
27517 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27518 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27519 # In both cases, we have to default to `cp -p'.
27520 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27521 as_ln_s='cp -p'
27522 elif ln conf$$.file conf$$ 2>/dev/null; then
27523 as_ln_s=ln
27524 else
Martin v. Löwis11437992002-04-12 09:54:03 +000027525 as_ln_s='cp -p'
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027526 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000027527else
27528 as_ln_s='cp -p'
27529fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000027530rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27531rmdir conf$$.dir 2>/dev/null
Martin v. Löwis11437992002-04-12 09:54:03 +000027532
Skip Montanaro6dead952003-09-25 14:50:04 +000027533if mkdir -p . 2>/dev/null; then
27534 as_mkdir_p=:
27535else
Skip Montanarof0d5f792004-08-15 14:08:23 +000027536 test -d ./-p && rmdir ./-p
Skip Montanaro6dead952003-09-25 14:50:04 +000027537 as_mkdir_p=false
27538fi
27539
Martin v. Löwiseba40652007-08-30 20:10:57 +000027540if test -x / >/dev/null 2>&1; then
27541 as_test_x='test -x'
27542else
27543 if ls -dL / >/dev/null 2>&1; then
27544 as_ls_L_option=L
27545 else
27546 as_ls_L_option=
27547 fi
27548 as_test_x='
27549 eval sh -c '\''
27550 if test -d "$1"; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027551 test -d "$1/.";
Martin v. Löwiseba40652007-08-30 20:10:57 +000027552 else
27553 case $1 in
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027554 -*)set "./$1";;
Martin v. Löwiseba40652007-08-30 20:10:57 +000027555 esac;
27556 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27557 ???[sx]*):;;*)false;;esac;fi
27558 '\'' sh
27559 '
27560fi
27561as_executable_p=$as_test_x
Martin v. Löwis11437992002-04-12 09:54:03 +000027562
27563# Sed expression to map a string onto a valid CPP name.
Skip Montanarof0d5f792004-08-15 14:08:23 +000027564as_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 +000027565
27566# Sed expression to map a string onto a valid variable name.
Skip Montanarof0d5f792004-08-15 14:08:23 +000027567as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:03 +000027568
27569
Martin v. Löwis11437992002-04-12 09:54:03 +000027570exec 6>&1
27571
Martin v. Löwiseba40652007-08-30 20:10:57 +000027572# Save the log message, to keep $[0] and so on meaningful, and to
Martin v. Löwis11437992002-04-12 09:54:03 +000027573# report actual input values of CONFIG_FILES etc. instead of their
Martin v. Löwiseba40652007-08-30 20:10:57 +000027574# values after options handling.
27575ac_log="
Martin v. Löwis174440b2008-10-03 08:59:41 +000027576This file was extended by python $as_me 2.7, which was
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027577generated by GNU Autoconf 2.63. Invocation command line was
Martin v. Löwis11437992002-04-12 09:54:03 +000027578
27579 CONFIG_FILES = $CONFIG_FILES
27580 CONFIG_HEADERS = $CONFIG_HEADERS
27581 CONFIG_LINKS = $CONFIG_LINKS
27582 CONFIG_COMMANDS = $CONFIG_COMMANDS
27583 $ $0 $@
27584
Martin v. Löwiseba40652007-08-30 20:10:57 +000027585on `(hostname || uname -n) 2>/dev/null | sed 1q`
27586"
27587
Martin v. Löwis11437992002-04-12 09:54:03 +000027588_ACEOF
27589
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027590case $ac_config_files in *"
27591"*) set x $ac_config_files; shift; ac_config_files=$*;;
27592esac
27593
27594case $ac_config_headers in *"
27595"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27596esac
27597
27598
27599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:03 +000027600# Files that config.status was made for.
Ronald Oussoren450d5612009-06-08 21:12:41 +000027601config_files="$ac_config_files"
27602config_headers="$ac_config_headers"
Martin v. Löwis11437992002-04-12 09:54:03 +000027603
Martin v. Löwiseba40652007-08-30 20:10:57 +000027604_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000027605
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:03 +000027607ac_cs_usage="\
27608\`$as_me' instantiates files from templates according to the
27609current configuration.
27610
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027611Usage: $0 [OPTION]... [FILE]...
Martin v. Löwis11437992002-04-12 09:54:03 +000027612
27613 -h, --help print this help, then exit
Martin v. Löwiseba40652007-08-30 20:10:57 +000027614 -V, --version print version number and configuration settings, then exit
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027615 -q, --quiet, --silent
27616 do not print progress messages
Martin v. Löwis11437992002-04-12 09:54:03 +000027617 -d, --debug don't remove temporary files
27618 --recheck update $as_me by reconfiguring in the same conditions
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027619 --file=FILE[:TEMPLATE]
27620 instantiate the configuration file FILE
27621 --header=FILE[:TEMPLATE]
27622 instantiate the configuration header FILE
Martin v. Löwis11437992002-04-12 09:54:03 +000027623
27624Configuration files:
27625$config_files
27626
27627Configuration headers:
27628$config_headers
27629
27630Report bugs to <bug-autoconf@gnu.org>."
Skip Montanaro89e975f2007-08-22 19:05:21 +000027631
Martin v. Löwiseba40652007-08-30 20:10:57 +000027632_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:03 +000027634ac_cs_version="\\
Martin v. Löwis174440b2008-10-03 08:59:41 +000027635python config.status 2.7
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027636configured by $0, generated by GNU Autoconf 2.63,
27637 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Martin v. Löwis11437992002-04-12 09:54:03 +000027638
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027639Copyright (C) 2008 Free Software Foundation, Inc.
Martin v. Löwis11437992002-04-12 09:54:03 +000027640This config.status script is free software; the Free Software Foundation
27641gives unlimited permission to copy, distribute and modify it."
Martin v. Löwiseba40652007-08-30 20:10:57 +000027642
27643ac_pwd='$ac_pwd'
27644srcdir='$srcdir'
27645INSTALL='$INSTALL'
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027646test -n "\$AWK" || AWK=awk
Martin v. Löwis11437992002-04-12 09:54:03 +000027647_ACEOF
27648
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27650# The default lists apply if the user does not specify any file.
Martin v. Löwis11437992002-04-12 09:54:03 +000027651ac_need_defaults=:
27652while test $# != 0
27653do
27654 case $1 in
27655 --*=*)
Martin v. Löwiseba40652007-08-30 20:10:57 +000027656 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27657 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Skip Montanaro6dead952003-09-25 14:50:04 +000027658 ac_shift=:
Martin v. Löwis11437992002-04-12 09:54:03 +000027659 ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000027660 *)
Skip Montanaro6dead952003-09-25 14:50:04 +000027661 ac_option=$1
27662 ac_optarg=$2
27663 ac_shift=shift
27664 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000027665 esac
27666
Skip Montanaro6dead952003-09-25 14:50:04 +000027667 case $ac_option in
Martin v. Löwis11437992002-04-12 09:54:03 +000027668 # Handling of the options.
Skip Montanaro6dead952003-09-25 14:50:04 +000027669 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27670 ac_cs_recheck=: ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000027671 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027672 $as_echo "$ac_cs_version"; exit ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000027673 --debug | --debu | --deb | --de | --d | -d )
Martin v. Löwis11437992002-04-12 09:54:03 +000027674 debug=: ;;
27675 --file | --fil | --fi | --f )
Skip Montanaro6dead952003-09-25 14:50:04 +000027676 $ac_shift
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027677 case $ac_optarg in
27678 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27679 esac
27680 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
Martin v. Löwis11437992002-04-12 09:54:03 +000027681 ac_need_defaults=false;;
27682 --header | --heade | --head | --hea )
Skip Montanaro6dead952003-09-25 14:50:04 +000027683 $ac_shift
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027684 case $ac_optarg in
27685 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27686 esac
27687 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
Martin v. Löwis11437992002-04-12 09:54:03 +000027688 ac_need_defaults=false;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000027689 --he | --h)
27690 # Conflict between --help and --header
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027691 { $as_echo "$as_me: error: ambiguous option: $1
Martin v. Löwiseba40652007-08-30 20:10:57 +000027692Try \`$0 --help' for more information." >&2
27693 { (exit 1); exit 1; }; };;
27694 --help | --hel | -h )
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027695 $as_echo "$ac_cs_usage"; exit ;;
Skip Montanaro6dead952003-09-25 14:50:04 +000027696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27697 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27698 ac_cs_silent=: ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000027699
27700 # This is an error.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027701 -*) { $as_echo "$as_me: error: unrecognized option: $1
Martin v. Löwiseba40652007-08-30 20:10:57 +000027702Try \`$0 --help' for more information." >&2
Martin v. Löwis11437992002-04-12 09:54:03 +000027703 { (exit 1); exit 1; }; } ;;
27704
Martin v. Löwiseba40652007-08-30 20:10:57 +000027705 *) ac_config_targets="$ac_config_targets $1"
27706 ac_need_defaults=false ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000027707
27708 esac
27709 shift
27710done
27711
Skip Montanaro6dead952003-09-25 14:50:04 +000027712ac_configure_extra_args=
27713
27714if $ac_cs_silent; then
27715 exec 6>/dev/null
27716 ac_configure_extra_args="$ac_configure_extra_args --silent"
27717fi
27718
27719_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Skip Montanaro6dead952003-09-25 14:50:04 +000027721if \$ac_cs_recheck; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027722 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27723 shift
27724 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27725 CONFIG_SHELL='$SHELL'
Martin v. Löwiseba40652007-08-30 20:10:57 +000027726 export CONFIG_SHELL
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027727 exec "\$@"
Skip Montanaro6dead952003-09-25 14:50:04 +000027728fi
27729
Martin v. Löwis11437992002-04-12 09:54:03 +000027730_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwiseba40652007-08-30 20:10:57 +000027732exec 5>>config.log
27733{
27734 echo
27735 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27736## Running $as_me. ##
27737_ASBOX
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027738 $as_echo "$ac_log"
Martin v. Löwiseba40652007-08-30 20:10:57 +000027739} >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000027740
Martin v. Löwiseba40652007-08-30 20:10:57 +000027741_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Martin v. Löwiseba40652007-08-30 20:10:57 +000027743_ACEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000027744
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwiseba40652007-08-30 20:10:57 +000027746
27747# Handling of arguments.
Martin v. Löwis11437992002-04-12 09:54:03 +000027748for ac_config_target in $ac_config_targets
27749do
Martin v. Löwiseba40652007-08-30 20:10:57 +000027750 case $ac_config_target in
27751 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
27752 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
27753 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
27754 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
Ronald Oussoren580c7fe2008-05-02 19:45:11 +000027755 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
27756 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000027757 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
27758 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
Antoine Pitrouf2caeed2009-05-24 20:23:57 +000027759 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000027760
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027761 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27762$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
Martin v. Löwis11437992002-04-12 09:54:03 +000027763 { (exit 1); exit 1; }; };;
27764 esac
27765done
27766
Martin v. Löwiseba40652007-08-30 20:10:57 +000027767
Martin v. Löwis11437992002-04-12 09:54:03 +000027768# If the user did not use the arguments to specify the items to instantiate,
27769# then the envvar interface is used. Set only those that are not.
27770# We use the long form for the default assignment because of an extremely
27771# bizarre bug on SunOS 4.1.3.
27772if $ac_need_defaults; then
27773 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27774 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27775fi
27776
Skip Montanaro6dead952003-09-25 14:50:04 +000027777# Have a temporary directory for convenience. Make it in the build tree
Martin v. Löwiseba40652007-08-30 20:10:57 +000027778# simply because there is no reason against having it here, and in addition,
Skip Montanaro6dead952003-09-25 14:50:04 +000027779# creating and moving files from /tmp can sometimes cause problems.
Martin v. Löwiseba40652007-08-30 20:10:57 +000027780# Hook for its removal unless debugging.
27781# Note that there is a small window in which the directory will not be cleaned:
27782# after its creation but before its name has been assigned to `$tmp'.
Martin v. Löwis11437992002-04-12 09:54:03 +000027783$debug ||
27784{
Martin v. Löwiseba40652007-08-30 20:10:57 +000027785 tmp=
27786 trap 'exit_status=$?
27787 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27788' 0
Martin v. Löwis11437992002-04-12 09:54:03 +000027789 trap '{ (exit 1); exit 1; }' 1 2 13 15
27790}
Martin v. Löwis11437992002-04-12 09:54:03 +000027791# Create a (secure) tmp directory for tmp files.
Skip Montanaro6dead952003-09-25 14:50:04 +000027792
Martin v. Löwis11437992002-04-12 09:54:03 +000027793{
Martin v. Löwiseba40652007-08-30 20:10:57 +000027794 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Martin v. Löwis11437992002-04-12 09:54:03 +000027795 test -n "$tmp" && test -d "$tmp"
27796} ||
27797{
Martin v. Löwiseba40652007-08-30 20:10:57 +000027798 tmp=./conf$$-$RANDOM
27799 (umask 077 && mkdir "$tmp")
Martin v. Löwis11437992002-04-12 09:54:03 +000027800} ||
27801{
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027802 $as_echo "$as_me: cannot create a temporary directory in ." >&2
Martin v. Löwis11437992002-04-12 09:54:03 +000027803 { (exit 1); exit 1; }
27804}
27805
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027806# Set up the scripts for CONFIG_FILES section.
27807# No need to generate them if there are no CONFIG_FILES.
27808# This happens for instance with `./config.status config.h'.
Martin v. Löwiseba40652007-08-30 20:10:57 +000027809if test -n "$CONFIG_FILES"; then
Martin v. Löwis11437992002-04-12 09:54:03 +000027810
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027811
27812ac_cr=`echo X | tr X '\015'`
27813ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27814if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27815 ac_cs_awk_cr='\\r'
27816else
27817 ac_cs_awk_cr=$ac_cr
27818fi
27819
27820echo 'BEGIN {' >"$tmp/subs1.awk" &&
Martin v. Löwis11437992002-04-12 09:54:03 +000027821_ACEOF
27822
Martin v. Löwiseba40652007-08-30 20:10:57 +000027823
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027824{
27825 echo "cat >conf$$subs.awk <<_ACEOF" &&
27826 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27827 echo "_ACEOF"
27828} >conf$$subs.sh ||
27829 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27830$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27831 { (exit 1); exit 1; }; }
27832ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Martin v. Löwiseba40652007-08-30 20:10:57 +000027833ac_delim='%!_!# '
27834for ac_last_try in false false false false false :; do
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027835 . ./conf$$subs.sh ||
27836 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27837$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27838 { (exit 1); exit 1; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000027839
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027840 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27841 if test $ac_delim_n = $ac_delim_num; then
Martin v. Löwiseba40652007-08-30 20:10:57 +000027842 break
27843 elif $ac_last_try; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027844 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27845$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000027846 { (exit 1); exit 1; }; }
27847 else
27848 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Martin v. Löwis11437992002-04-12 09:54:03 +000027849 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000027850done
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027851rm -f conf$$subs.sh
Martin v. Löwiseba40652007-08-30 20:10:57 +000027852
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27854cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Martin v. Löwiseba40652007-08-30 20:10:57 +000027855_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027856sed -n '
27857h
27858s/^/S["/; s/!.*/"]=/
27859p
27860g
27861s/^[^!]*!//
27862:repl
27863t repl
27864s/'"$ac_delim"'$//
27865t delim
27866:nl
27867h
27868s/\(.\{148\}\).*/\1/
27869t more1
27870s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27871p
27872n
27873b repl
27874:more1
27875s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27876p
27877g
27878s/.\{148\}//
27879t nl
27880:delim
27881h
27882s/\(.\{148\}\).*/\1/
27883t more2
27884s/["\\]/\\&/g; s/^/"/; s/$/"/
27885p
27886b
27887:more2
27888s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27889p
27890g
27891s/.\{148\}//
27892t delim
27893' <conf$$subs.awk | sed '
27894/^[^""]/{
27895 N
27896 s/\n//
27897}
27898' >>$CONFIG_STATUS || ac_write_fail=1
27899rm -f conf$$subs.awk
27900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27901_ACAWK
27902cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27903 for (key in S) S_is_set[key] = 1
27904 FS = ""
27905
27906}
27907{
27908 line = $ 0
27909 nfields = split(line, field, "@")
27910 substed = 0
27911 len = length(field[1])
27912 for (i = 2; i < nfields; i++) {
27913 key = field[i]
27914 keylen = length(key)
27915 if (S_is_set[key]) {
27916 value = S[key]
27917 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27918 len += length(value) + length(field[++i])
27919 substed = 1
27920 } else
27921 len += 1 + keylen
27922 }
27923
27924 print line
27925}
27926
27927_ACAWK
Martin v. Löwiseba40652007-08-30 20:10:57 +000027928_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27930if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27931 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27932else
27933 cat
27934fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27935 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27936$as_echo "$as_me: error: could not setup config files machinery" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000027937 { (exit 1); exit 1; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000027938_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000027939
27940# VPATH may cause trouble with some makes, so we remove $(srcdir),
27941# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27942# trailing colons and then remove the whole line if VPATH becomes empty
27943# (actually we leave an empty line to preserve line numbers).
27944if test "x$srcdir" = x.; then
27945 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27946s/:*\$(srcdir):*/:/
27947s/:*\${srcdir}:*/:/
27948s/:*@srcdir@:*/:/
27949s/^\([^=]*=[ ]*\):*/\1/
27950s/:*$//
27951s/^[^=]*=[ ]*$//
27952}'
27953fi
27954
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:03 +000027956fi # test -n "$CONFIG_FILES"
27957
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027958# Set up the scripts for CONFIG_HEADERS section.
27959# No need to generate them if there are no CONFIG_HEADERS.
27960# This happens for instance with `./config.status Makefile'.
27961if test -n "$CONFIG_HEADERS"; then
27962cat >"$tmp/defines.awk" <<\_ACAWK ||
27963BEGIN {
27964_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000027965
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000027966# Transform confdefs.h into an awk script `defines.awk', embedded as
27967# here-document in config.status, that substitutes the proper values into
27968# config.h.in to produce config.h.
27969
27970# Create a delimiter string that does not exist in confdefs.h, to ease
27971# handling of long lines.
27972ac_delim='%!_!# '
27973for ac_last_try in false false :; do
27974 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27975 if test -z "$ac_t"; then
27976 break
27977 elif $ac_last_try; then
27978 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27979$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27980 { (exit 1); exit 1; }; }
27981 else
27982 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27983 fi
27984done
27985
27986# For the awk script, D is an array of macro values keyed by name,
27987# likewise P contains macro parameters if any. Preserve backslash
27988# newline sequences.
27989
27990ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27991sed -n '
27992s/.\{148\}/&'"$ac_delim"'/g
27993t rset
27994:rset
27995s/^[ ]*#[ ]*define[ ][ ]*/ /
27996t def
27997d
27998:def
27999s/\\$//
28000t bsnl
28001s/["\\]/\\&/g
28002s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28003D["\1"]=" \3"/p
28004s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28005d
28006:bsnl
28007s/["\\]/\\&/g
28008s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28009D["\1"]=" \3\\\\\\n"\\/p
28010t cont
28011s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28012t cont
28013d
28014:cont
28015n
28016s/.\{148\}/&'"$ac_delim"'/g
28017t clear
28018:clear
28019s/\\$//
28020t bsnlc
28021s/["\\]/\\&/g; s/^/"/; s/$/"/p
28022d
28023:bsnlc
28024s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28025b cont
28026' <confdefs.h | sed '
28027s/'"$ac_delim"'/"\\\
28028"/g' >>$CONFIG_STATUS || ac_write_fail=1
28029
28030cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28031 for (key in D) D_is_set[key] = 1
28032 FS = ""
28033}
28034/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28035 line = \$ 0
28036 split(line, arg, " ")
28037 if (arg[1] == "#") {
28038 defundef = arg[2]
28039 mac1 = arg[3]
28040 } else {
28041 defundef = substr(arg[1], 2)
28042 mac1 = arg[2]
28043 }
28044 split(mac1, mac2, "(") #)
28045 macro = mac2[1]
28046 prefix = substr(line, 1, index(line, defundef) - 1)
28047 if (D_is_set[macro]) {
28048 # Preserve the white space surrounding the "#".
28049 print prefix "define", macro P[macro] D[macro]
28050 next
28051 } else {
28052 # Replace #undef with comments. This is necessary, for example,
28053 # in the case of _POSIX_SOURCE, which is predefined and required
28054 # on some systems where configure will not decide to define it.
28055 if (defundef == "undef") {
28056 print "/*", prefix defundef, macro, "*/"
28057 next
28058 }
28059 }
28060}
28061{ print }
28062_ACAWK
28063_ACEOF
28064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28065 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
28066$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
28067 { (exit 1); exit 1; }; }
28068fi # test -n "$CONFIG_HEADERS"
28069
28070
28071eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
28072shift
28073for ac_tag
Martin v. Löwiseba40652007-08-30 20:10:57 +000028074do
28075 case $ac_tag in
28076 :[FHLC]) ac_mode=$ac_tag; continue;;
28077 esac
28078 case $ac_mode$ac_tag in
28079 :[FHL]*:*);;
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028080 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
28081$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000028082 { (exit 1); exit 1; }; };;
28083 :[FH]-) ac_tag=-:-;;
28084 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28085 esac
28086 ac_save_IFS=$IFS
28087 IFS=:
28088 set x $ac_tag
28089 IFS=$ac_save_IFS
28090 shift
28091 ac_file=$1
28092 shift
28093
28094 case $ac_mode in
28095 :L) ac_source=$1;;
28096 :[FH])
28097 ac_file_inputs=
28098 for ac_f
28099 do
28100 case $ac_f in
28101 -) ac_f="$tmp/stdin";;
28102 *) # Look for the file first in the build tree, then in the source tree
28103 # (if the path is not absolute). The absolute path cannot be DOS-style,
28104 # because $ac_f cannot contain `:'.
28105 test -f "$ac_f" ||
28106 case $ac_f in
28107 [\\/$]*) false;;
28108 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28109 esac ||
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028110 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28111$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000028112 { (exit 1); exit 1; }; };;
28113 esac
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028114 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28115 ac_file_inputs="$ac_file_inputs '$ac_f'"
Martin v. Löwiseba40652007-08-30 20:10:57 +000028116 done
28117
28118 # Let's still pretend it is `configure' which instantiates (i.e., don't
28119 # use $as_me), people would be surprised to read:
28120 # /* config.h. Generated by config.status. */
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028121 configure_input='Generated from '`
28122 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28123 `' by configure.'
Martin v. Löwiseba40652007-08-30 20:10:57 +000028124 if test x"$ac_file" != x-; then
28125 configure_input="$ac_file. $configure_input"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028126 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
28127$as_echo "$as_me: creating $ac_file" >&6;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000028128 fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028129 # Neutralize special characters interpreted by sed in replacement strings.
28130 case $configure_input in #(
28131 *\&* | *\|* | *\\* )
28132 ac_sed_conf_input=`$as_echo "$configure_input" |
28133 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28134 *) ac_sed_conf_input=$configure_input;;
28135 esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000028136
28137 case $ac_tag in
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028138 *:-:* | *:-) cat >"$tmp/stdin" \
28139 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28140$as_echo "$as_me: error: could not create $ac_file" >&2;}
28141 { (exit 1); exit 1; }; } ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000028142 esac
28143 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000028144 esac
28145
Martin v. Löwiseba40652007-08-30 20:10:57 +000028146 ac_dir=`$as_dirname -- "$ac_file" ||
Martin v. Löwis11437992002-04-12 09:54:03 +000028147$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Skip Montanarof0d5f792004-08-15 14:08:23 +000028148 X"$ac_file" : 'X\(//\)[^/]' \| \
28149 X"$ac_file" : 'X\(//\)$' \| \
Martin v. Löwiseba40652007-08-30 20:10:57 +000028150 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028151$as_echo X"$ac_file" |
Martin v. Löwiseba40652007-08-30 20:10:57 +000028152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28153 s//\1/
28154 q
28155 }
28156 /^X\(\/\/\)[^/].*/{
28157 s//\1/
28158 q
28159 }
28160 /^X\(\/\/\)$/{
28161 s//\1/
28162 q
28163 }
28164 /^X\(\/\).*/{
28165 s//\1/
28166 q
28167 }
28168 s/.*/./; q'`
28169 { as_dir="$ac_dir"
28170 case $as_dir in #(
28171 -*) as_dir=./$as_dir;;
28172 esac
28173 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Skip Montanaro6dead952003-09-25 14:50:04 +000028174 as_dirs=
Martin v. Löwiseba40652007-08-30 20:10:57 +000028175 while :; do
28176 case $as_dir in #(
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028177 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Martin v. Löwiseba40652007-08-30 20:10:57 +000028178 *) as_qdir=$as_dir;;
28179 esac
28180 as_dirs="'$as_qdir' $as_dirs"
28181 as_dir=`$as_dirname -- "$as_dir" ||
Skip Montanaro6dead952003-09-25 14:50:04 +000028182$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Skip Montanarof0d5f792004-08-15 14:08:23 +000028183 X"$as_dir" : 'X\(//\)[^/]' \| \
28184 X"$as_dir" : 'X\(//\)$' \| \
Martin v. Löwiseba40652007-08-30 20:10:57 +000028185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028186$as_echo X"$as_dir" |
Martin v. Löwiseba40652007-08-30 20:10:57 +000028187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28188 s//\1/
28189 q
28190 }
28191 /^X\(\/\/\)[^/].*/{
28192 s//\1/
28193 q
28194 }
28195 /^X\(\/\/\)$/{
28196 s//\1/
28197 q
28198 }
28199 /^X\(\/\).*/{
28200 s//\1/
28201 q
28202 }
28203 s/.*/./; q'`
28204 test -d "$as_dir" && break
Skip Montanaro6dead952003-09-25 14:50:04 +000028205 done
Martin v. Löwiseba40652007-08-30 20:10:57 +000028206 test -z "$as_dirs" || eval "mkdir $as_dirs"
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028207 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28208$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
Skip Montanaro6dead952003-09-25 14:50:04 +000028209 { (exit 1); exit 1; }; }; }
Martin v. Löwis11437992002-04-12 09:54:03 +000028210 ac_builddir=.
28211
Martin v. Löwiseba40652007-08-30 20:10:57 +000028212case "$ac_dir" in
28213.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28214*)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028215 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Martin v. Löwiseba40652007-08-30 20:10:57 +000028216 # A ".." for each directory in $ac_dir_suffix.
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028217 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Martin v. Löwiseba40652007-08-30 20:10:57 +000028218 case $ac_top_builddir_sub in
28219 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28220 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28221 esac ;;
28222esac
28223ac_abs_top_builddir=$ac_pwd
28224ac_abs_builddir=$ac_pwd$ac_dir_suffix
28225# for backward compatibility:
28226ac_top_builddir=$ac_top_build_prefix
Martin v. Löwis11437992002-04-12 09:54:03 +000028227
28228case $srcdir in
Martin v. Löwiseba40652007-08-30 20:10:57 +000028229 .) # We are building in place.
Martin v. Löwis11437992002-04-12 09:54:03 +000028230 ac_srcdir=.
Martin v. Löwiseba40652007-08-30 20:10:57 +000028231 ac_top_srcdir=$ac_top_builddir_sub
28232 ac_abs_top_srcdir=$ac_pwd ;;
28233 [\\/]* | ?:[\\/]* ) # Absolute name.
Martin v. Löwis11437992002-04-12 09:54:03 +000028234 ac_srcdir=$srcdir$ac_dir_suffix;
Martin v. Löwiseba40652007-08-30 20:10:57 +000028235 ac_top_srcdir=$srcdir
28236 ac_abs_top_srcdir=$srcdir ;;
28237 *) # Relative name.
28238 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28239 ac_top_srcdir=$ac_top_build_prefix$srcdir
28240 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000028241esac
Martin v. Löwiseba40652007-08-30 20:10:57 +000028242ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Skip Montanarof0d5f792004-08-15 14:08:23 +000028243
Martin v. Löwis11437992002-04-12 09:54:03 +000028244
Martin v. Löwiseba40652007-08-30 20:10:57 +000028245 case $ac_mode in
28246 :F)
28247 #
28248 # CONFIG_FILE
28249 #
Martin v. Löwis11437992002-04-12 09:54:03 +000028250
28251 case $INSTALL in
28252 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Martin v. Löwiseba40652007-08-30 20:10:57 +000028253 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000028254 esac
Brett Cannon19fab762007-06-02 03:02:29 +000028255_ACEOF
Martin v. Löwiseba40652007-08-30 20:10:57 +000028256
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwiseba40652007-08-30 20:10:57 +000028258# If the template does not know about datarootdir, expand it.
28259# FIXME: This hack should be removed a few years after 2.60.
28260ac_datarootdir_hack=; ac_datarootdir_seen=
28261
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028262ac_sed_dataroot='
28263/datarootdir/ {
Martin v. Löwiseba40652007-08-30 20:10:57 +000028264 p
28265 q
28266}
28267/@datadir@/p
28268/@docdir@/p
28269/@infodir@/p
28270/@localedir@/p
28271/@mandir@/p
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028272'
28273case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Martin v. Löwiseba40652007-08-30 20:10:57 +000028274*datarootdir*) ac_datarootdir_seen=yes;;
28275*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028276 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28277$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Martin v. Löwiseba40652007-08-30 20:10:57 +000028278_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Martin v. Löwiseba40652007-08-30 20:10:57 +000028280 ac_datarootdir_hack='
28281 s&@datadir@&$datadir&g
28282 s&@docdir@&$docdir&g
28283 s&@infodir@&$infodir&g
28284 s&@localedir@&$localedir&g
28285 s&@mandir@&$mandir&g
28286 s&\\\${datarootdir}&$datarootdir&g' ;;
28287esac
28288_ACEOF
28289
28290# Neutralize VPATH when `$srcdir' = `.'.
28291# Shell code in configure.ac might set extrasub.
28292# FIXME: do we really want to maintain this feature?
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28294ac_sed_extra="$ac_vpsub
Martin v. Löwis11437992002-04-12 09:54:03 +000028295$extrasub
28296_ACEOF
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:03 +000028298:t
28299/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028300s|@configure_input@|$ac_sed_conf_input|;t t
Martin v. Löwiseba40652007-08-30 20:10:57 +000028301s&@top_builddir@&$ac_top_builddir_sub&;t t
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028302s&@top_build_prefix@&$ac_top_build_prefix&;t t
Martin v. Löwiseba40652007-08-30 20:10:57 +000028303s&@srcdir@&$ac_srcdir&;t t
28304s&@abs_srcdir@&$ac_abs_srcdir&;t t
28305s&@top_srcdir@&$ac_top_srcdir&;t t
28306s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28307s&@builddir@&$ac_builddir&;t t
28308s&@abs_builddir@&$ac_abs_builddir&;t t
28309s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28310s&@INSTALL@&$ac_INSTALL&;t t
28311$ac_datarootdir_hack
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028312"
28313eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28314 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28315$as_echo "$as_me: error: could not create $ac_file" >&2;}
28316 { (exit 1); exit 1; }; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +000028317
Martin v. Löwiseba40652007-08-30 20:10:57 +000028318test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28319 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28320 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028321 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Martin v. Löwiseba40652007-08-30 20:10:57 +000028322which seems to be undefined. Please make sure it is defined." >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028323$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Martin v. Löwiseba40652007-08-30 20:10:57 +000028324which seems to be undefined. Please make sure it is defined." >&2;}
Guido van Rossum76be6ed1995-01-02 18:33:54 +000028325
Martin v. Löwiseba40652007-08-30 20:10:57 +000028326 rm -f "$tmp/stdin"
Martin v. Löwis11437992002-04-12 09:54:03 +000028327 case $ac_file in
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028328 -) cat "$tmp/out" && rm -f "$tmp/out";;
28329 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28330 esac \
28331 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28332$as_echo "$as_me: error: could not create $ac_file" >&2;}
28333 { (exit 1); exit 1; }; }
Martin v. Löwiseba40652007-08-30 20:10:57 +000028334 ;;
28335 :H)
28336 #
28337 # CONFIG_HEADER
28338 #
Martin v. Löwis11437992002-04-12 09:54:03 +000028339 if test x"$ac_file" != x-; then
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028340 {
28341 $as_echo "/* $configure_input */" \
28342 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28343 } >"$tmp/config.h" \
28344 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28345$as_echo "$as_me: error: could not create $ac_file" >&2;}
28346 { (exit 1); exit 1; }; }
28347 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28348 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28349$as_echo "$as_me: $ac_file is unchanged" >&6;}
Martin v. Löwis11437992002-04-12 09:54:03 +000028350 else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028351 rm -f "$ac_file"
28352 mv "$tmp/config.h" "$ac_file" \
28353 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28354$as_echo "$as_me: error: could not create $ac_file" >&2;}
28355 { (exit 1); exit 1; }; }
Martin v. Löwis11437992002-04-12 09:54:03 +000028356 fi
28357 else
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028358 $as_echo "/* $configure_input */" \
28359 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28360 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
28361$as_echo "$as_me: error: could not create -" >&2;}
28362 { (exit 1); exit 1; }; }
Martin v. Löwis11437992002-04-12 09:54:03 +000028363 fi
Martin v. Löwiseba40652007-08-30 20:10:57 +000028364 ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +000028365
Martin v. Löwiseba40652007-08-30 20:10:57 +000028366
28367 esac
28368
28369done # for ac_tag
28370
Guido van Rossum627b2d71993-12-24 10:39:16 +000028371
Martin v. Löwis11437992002-04-12 09:54:03 +000028372{ (exit 0); exit 0; }
28373_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000028374chmod +x $CONFIG_STATUS
Martin v. Löwis11437992002-04-12 09:54:03 +000028375ac_clean_files=$ac_clean_files_save
28376
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028377test $ac_write_fail = 0 ||
28378 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28379$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28380 { (exit 1); exit 1; }; }
28381
Martin v. Löwis11437992002-04-12 09:54:03 +000028382
28383# configure is writing to config.log, and then calls config.status.
28384# config.status does its own redirection, appending to config.log.
28385# Unfortunately, on DOS this fails, as config.log is still kept open
28386# by configure, so config.status won't be able to write to it; its
28387# output is simply discarded. So we exec the FD to /dev/null,
28388# effectively closing config.log, so it can be properly (re)opened and
28389# appended to by config.status. When coming back to configure, we
28390# need to make the FD available again.
28391if test "$no_create" != yes; then
28392 ac_cs_success=:
Skip Montanaro6dead952003-09-25 14:50:04 +000028393 ac_config_status_args=
28394 test "$silent" = yes &&
28395 ac_config_status_args="$ac_config_status_args --quiet"
Martin v. Löwis11437992002-04-12 09:54:03 +000028396 exec 5>/dev/null
Skip Montanaro6dead952003-09-25 14:50:04 +000028397 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Martin v. Löwis11437992002-04-12 09:54:03 +000028398 exec 5>>config.log
28399 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28400 # would make configure fail if this is the last instruction.
28401 $ac_cs_success || { (exit 1); exit 1; }
28402fi
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028403if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28404 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28405$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28406fi
Guido van Rossum627b2d71993-12-24 10:39:16 +000028407
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000028408
Martin v. Löwisf7afe952006-04-14 15:16:15 +000028409echo "creating Modules/Setup"
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000028410if test ! -f Modules/Setup
28411then
28412 cp $srcdir/Modules/Setup.dist Modules/Setup
28413fi
28414
Martin v. Löwisf7afe952006-04-14 15:16:15 +000028415echo "creating Modules/Setup.local"
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000028416if test ! -f Modules/Setup.local
28417then
28418 echo "# Edit this file for local setup changes" >Modules/Setup.local
28419fi
28420
28421echo "creating Makefile"
28422$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
28423 -s Modules Modules/Setup.config \
Neil Schemenauerf8b71c52001-04-21 17:41:16 +000028424 Modules/Setup.local Modules/Setup
Skip Montanaro89e975f2007-08-22 19:05:21 +000028425
28426case $ac_sys_system in
28427BeOS)
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028428 { $as_echo "$as_me:$LINENO: WARNING:
Skip Montanaro89e975f2007-08-22 19:05:21 +000028429
28430 Support for BeOS is deprecated as of Python 2.6.
28431 See PEP 11 for the gory details.
28432 " >&5
Alexandre Vassalottia2db6872009-07-17 07:46:46 +000028433$as_echo "$as_me: WARNING:
Skip Montanaro89e975f2007-08-22 19:05:21 +000028434
28435 Support for BeOS is deprecated as of Python 2.6.
28436 See PEP 11 for the gory details.
28437 " >&2;}
28438 ;;
28439*) ;;
28440esac
28441
Neil Schemenauerc761fc82001-02-19 04:50:49 +000028442mv config.c Modules