Use Py_SAFE_DOWNCAST for safety. Fix format strings. Remove 2 more stray | in comment
[python.git] / configure
blob02ab57a214df8264023c2a6844a5c6d2338c58ac
1 #! /bin/sh
2 # From configure.in Revision: 46046 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.5.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
52 done
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
99 rm -f conf$$.sh
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
157 esac
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
241 IFS=" $as_nl"
243 # CDPATH.
244 $as_unset CDPATH
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252 exec 6>&1
255 # Initializations.
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME='python'
272 PACKAGE_TARNAME='python'
273 PACKAGE_VERSION='2.5'
274 PACKAGE_STRING='python 2.5'
275 PACKAGE_BUGREPORT='http://www.python.org/python-bugs'
277 ac_unique_file="Include/object.h"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS UNIVERSALSDK PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR FRAMEWORKINSTALLFIRST FRAMEWORKINSTALLLAST MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET EXPORT_MACOSX_DEPLOYMENT_TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX MAINCC CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS'
316 ac_subst_files=''
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
356 ac_prev=
357 for ac_option
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
370 case $ac_option in
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
389 --config-cache | -C)
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 esac
653 done
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
728 else
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784 \`configure' configures python 2.5 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
793 Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 _ACEOF
806 cat <<_ACEOF
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833 _ACEOF
835 cat <<\_ACEOF
836 _ACEOF
839 if test -n "$ac_init_help"; then
840 case $ac_init_help in
841 short | recursive ) echo "Configuration of python 2.5:";;
842 esac
843 cat <<\_ACEOF
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-universalsdk[SDKDIR]
849 Build agains Mac OS X 10.4u SDK (ppc/i386)
850 --enable-framework[=INSTALLDIR]
851 Build (MacOSX|Darwin) framework
852 --enable-shared disable/enable building shared python library
853 --enable-profiling enable C-level code profiling
854 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
855 --enable-ipv6 Enable ipv6 (with ipv4) support
856 --disable-ipv6 Disable ipv6 support
857 --enable-unicode[=ucs[24]]
858 Enable Unicode strings (default is yes)
860 Optional Packages:
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --without-gcc never use gcc
864 --with-cxx-main=<compiler>
865 compile main() and link python executable with C++
866 compiler
867 --with-suffix=.exe set executable suffix
868 --with-pydebug build with Py_DEBUG defined
869 --with-libs='lib1 ...' link against additional libs
870 --with-system-ffi build _ctypes module using an installed ffi library
871 --with-signal-module disable/enable signal module
872 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
873 --with(out)-threads[=DIRECTORY]
874 disable/enable thread support
875 --with(out)-thread[=DIRECTORY]
876 deprecated; use --with(out)-threads
877 --with-pth use GNU pth threading libraries
878 --with(out)-doc-strings disable/enable documentation strings
879 --with(out)-tsc enable/disable timestamp counter profile
880 --with(out)-pymalloc disable/enable specialized mallocs
881 --with-wctype-functions use wctype.h functions
882 --with-fpectl enable SIGFPE catching
883 --with-libm=STRING math library
884 --with-libc=STRING C library
886 Some influential environment variables:
887 CC C compiler command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
890 nonstandard directory <lib dir>
891 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
892 headers in a nonstandard directory <include dir>
893 CPP C preprocessor
895 Use these variables to override the choices made by `configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
898 Report bugs to <http://www.python.org/python-bugs>.
899 _ACEOF
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 else
914 ac_dir_suffix= ac_top_builddir=
917 case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 esac
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
935 case `pwd` in
936 .) ac_abs_builddir="$ac_dir";;
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970 esac
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 cd $ac_popdir
988 done
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993 cat <<\_ACEOF
994 python configure 2.5
995 generated by GNU Autoconf 2.59
997 Copyright (C) 2003 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1000 _ACEOF
1001 exit 0
1003 exec 5>config.log
1004 cat >&5 <<_ACEOF
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by python $as_me 2.5, which was
1009 generated by GNU Autoconf 2.59. Invocation command line was
1011 $ $0 $@
1013 _ACEOF
1015 cat <<_ASUNAME
1016 ## --------- ##
1017 ## Platform. ##
1018 ## --------- ##
1020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1029 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1030 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1033 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1034 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1035 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1037 _ASUNAME
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 for as_dir in $PATH
1042 IFS=$as_save_IFS
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1045 done
1047 } >&5
1049 cat >&5 <<_ACEOF
1052 ## ----------- ##
1053 ## Core tests. ##
1054 ## ----------- ##
1056 _ACEOF
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_configure_args=
1065 ac_configure_args0=
1066 ac_configure_args1=
1067 ac_sep=
1068 ac_must_keep_next=false
1069 for ac_pass in 1 2
1071 for ac_arg
1073 case $ac_arg in
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 continue ;;
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080 esac
1081 case $ac_pass in
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1087 else
1088 case $ac_arg in
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 esac
1097 -* ) ac_must_keep_next=true ;;
1098 esac
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1102 ac_sep=" "
1104 esac
1105 done
1106 done
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close' the trap.
1115 trap 'exit_status=$?
1116 # Save into config.log some information that might help in debugging.
1118 echo
1120 cat <<\_ASBOX
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1124 _ASBOX
1125 echo
1126 # The following way of writing the cache mishandles newlines in values,
1128 (set) 2>&1 |
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 *ac_space=\ *)
1131 sed -n \
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 sed -n \
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 esac;
1141 echo
1143 cat <<\_ASBOX
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1147 _ASBOX
1148 echo
1149 for ac_var in $ac_subst_vars
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1156 if test -n "$ac_subst_files"; then
1157 cat <<\_ASBOX
1158 ## ------------- ##
1159 ## Output files. ##
1160 ## ------------- ##
1161 _ASBOX
1162 echo
1163 for ac_var in $ac_subst_files
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1167 done | sort
1168 echo
1171 if test -s confdefs.h; then
1172 cat <<\_ASBOX
1173 ## ----------- ##
1174 ## confdefs.h. ##
1175 ## ----------- ##
1176 _ASBOX
1177 echo
1178 sed "/^$/d" confdefs.h | sort
1179 echo
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1184 } >&5
1185 rm -f core *.core &&
1186 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187 exit $exit_status
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 done
1192 ac_signal=0
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 echo >confdefs.h
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 _ACEOF
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 _ACEOF
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231 else
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's/^/| /' "$ac_site_file" >&5
1240 . "$ac_site_file"
1242 done
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1250 case $cache_file in
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1253 esac
1255 else
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1258 >$cache_file
1261 # Check that the precious variables saved in the cache have kept the same
1262 # value.
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1271 set,)
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1275 ,set)
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1279 ,);;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1289 fi;;
1290 esac
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1293 case $ac_new_val in
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1297 esac
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 esac
1303 done
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1312 ac_ext=c
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_config_headers="$ac_config_headers pyconfig.h"
1353 # We don't use PACKAGE_ variables, and they cause conflicts
1354 # with other autoconf-based packages that include Python.h
1355 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1356 rm confdefs.h
1357 mv confdefs.h.new confdefs.h
1360 VERSION=2.5
1363 SOVERSION=1.0
1365 # The later defininition of _XOPEN_SOURCE disables certain features
1366 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1368 cat >>confdefs.h <<\_ACEOF
1369 #define _GNU_SOURCE 1
1370 _ACEOF
1373 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1374 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1375 # them.
1377 cat >>confdefs.h <<\_ACEOF
1378 #define _NETBSD_SOURCE 1
1379 _ACEOF
1382 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1383 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1384 # them.
1386 cat >>confdefs.h <<\_ACEOF
1387 #define __BSD_VISIBLE 1
1388 _ACEOF
1391 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1392 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1394 cat >>confdefs.h <<\_ACEOF
1395 #define _BSD_TYPES 1
1396 _ACEOF
1399 define_xopen_source=yes
1401 # Arguments passed to configure.
1403 CONFIG_ARGS="$ac_configure_args"
1405 # Check whether --enable-universalsdk or --disable-universalsdk was given.
1406 if test "${enable_universalsdk+set}" = set; then
1407 enableval="$enable_universalsdk"
1409 case $enableval in
1410 yes)
1411 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1413 esac
1414 case $enableval in
1416 UNIVERSALSDK=
1417 enable_universalsdk=
1420 UNIVERSALSDK=$enableval
1422 esac
1424 else
1426 UNIVERSALSDK=
1427 enable_universalsdk=
1432 # Check whether --enable-framework or --disable-framework was given.
1433 if test "${enable_framework+set}" = set; then
1434 enableval="$enable_framework"
1436 case $enableval in
1437 yes)
1438 enableval=/Library/Frameworks
1439 esac
1440 case $enableval in
1442 PYTHONFRAMEWORK=
1443 PYTHONFRAMEWORKDIR=no-framework
1444 PYTHONFRAMEWORKPREFIX=
1445 PYTHONFRAMEWORKINSTALLDIR=
1446 FRAMEWORKINSTALLFIRST=
1447 FRAMEWORKINSTALLLAST=
1448 enable_framework=
1451 PYTHONFRAMEWORK=Python
1452 PYTHONFRAMEWORKDIR=Python.framework
1453 PYTHONFRAMEWORKPREFIX=$enableval
1454 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1455 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1456 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1457 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1459 # Add makefiles for Mac specific code to the list of output
1460 # files:
1461 ac_config_files="$ac_config_files Mac/OSX/Makefile"
1463 ac_config_files="$ac_config_files Mac/OSX/PythonLauncher/Makefile"
1465 ac_config_files="$ac_config_files Mac/OSX/IDLE/Makefile"
1467 esac
1469 else
1471 PYTHONFRAMEWORK=
1472 PYTHONFRAMEWORKDIR=no-framework
1473 PYTHONFRAMEWORKPREFIX=
1474 PYTHONFRAMEWORKINSTALLDIR=
1475 FRAMEWORKINSTALLFIRST=
1476 FRAMEWORKINSTALLLAST=
1477 enable_framework=
1487 ##AC_ARG_WITH(dyld,
1488 ## AC_HELP_STRING(--with-dyld,
1489 ## Use (OpenStep|Rhapsody) dynamic linker))
1491 # Set name for machine-dependent library files
1493 echo "$as_me:$LINENO: checking MACHDEP" >&5
1494 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1495 if test -z "$MACHDEP"
1496 then
1497 ac_sys_system=`uname -s`
1498 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1499 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1500 ac_sys_release=`uname -v`
1501 else
1502 ac_sys_release=`uname -r`
1504 ac_md_system=`echo $ac_sys_system |
1505 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1506 ac_md_release=`echo $ac_sys_release |
1507 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1508 MACHDEP="$ac_md_system$ac_md_release"
1510 case $MACHDEP in
1511 cygwin*) MACHDEP="cygwin";;
1512 darwin*) MACHDEP="darwin";;
1513 atheos*) MACHDEP="atheos";;
1514 irix646) MACHDEP="irix6";;
1515 '') MACHDEP="unknown";;
1516 esac
1519 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1520 # disable features if it is defined, without any means to access these
1521 # features as extensions. For these systems, we skip the definition of
1522 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1523 # some feature, make sure there is no alternative way to access this
1524 # feature. Also, when using wildcards, make sure you have verified the
1525 # need for not defining _XOPEN_SOURCE on all systems matching the
1526 # wildcard, and that the wildcard does not include future systems
1527 # (which may remove their limitations).
1528 case $ac_sys_system/$ac_sys_release in
1529 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1530 # even though select is a POSIX function. Reported by J. Ribbens.
1531 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1532 OpenBSD/2.* | OpenBSD/3.[012345678])
1533 define_xopen_source=no;;
1534 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1535 # of union __?sigval. Reported by Stuart Bishop.
1536 SunOS/5.6)
1537 define_xopen_source=no;;
1538 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1539 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1540 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1541 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1542 define_xopen_source=no;;
1543 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1544 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1545 SCO_SV/3.2)
1546 define_xopen_source=no;;
1547 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1548 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1549 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1550 # This should hopefully be fixed in FreeBSD 4.9
1551 FreeBSD/4.8* | Darwin/6* )
1552 define_xopen_source=no;;
1553 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1554 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1555 # or has another value. By not (re)defining it, the defaults come in place.
1556 AIX/4)
1557 define_xopen_source=no;;
1558 AIX/5)
1559 if test `uname -r` -eq 1; then
1560 define_xopen_source=no
1563 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1564 # disables platform specific features beyond repair.
1565 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1566 # has no effect, don't bother defineing them
1567 Darwin/[78].*)
1568 define_xopen_source=no
1571 esac
1573 if test $define_xopen_source = yes
1574 then
1575 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1576 # defined precisely as g++ defines it
1577 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1578 # compiler
1579 case $ac_sys_system/$ac_sys_release in
1580 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1582 cat >>confdefs.h <<\_ACEOF
1583 #define _XOPEN_SOURCE 500
1584 _ACEOF
1589 cat >>confdefs.h <<\_ACEOF
1590 #define _XOPEN_SOURCE 600
1591 _ACEOF
1594 esac
1596 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1597 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1598 # several APIs are not declared. Since this is also needed in some
1599 # cases for HP-UX, we define it globally.
1600 # except for Solaris 10, where it must not be defined,
1601 # as it implies XPG4.2
1602 case $ac_sys_system/$ac_sys_release in
1603 SunOS/5.10)
1607 cat >>confdefs.h <<\_ACEOF
1608 #define _XOPEN_SOURCE_EXTENDED 1
1609 _ACEOF
1612 esac
1615 cat >>confdefs.h <<\_ACEOF
1616 #define _POSIX_C_SOURCE 200112L
1617 _ACEOF
1623 # SGI compilers allow the specification of the both the ABI and the
1624 # ISA on the command line. Depending on the values of these switches,
1625 # different and often incompatable code will be generated.
1627 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1628 # thus supply support for various ABI/ISA combinations. The MACHDEP
1629 # variable is also adjusted.
1632 if test ! -z "$SGI_ABI"
1633 then
1634 CC="cc $SGI_ABI"
1635 LDFLAGS="$SGI_ABI $LDFLAGS"
1636 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1638 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1639 echo "${ECHO_T}$MACHDEP" >&6
1641 # And add extra plat-mac for darwin
1644 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1645 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1646 if test -z "$EXTRAPLATDIR"
1647 then
1648 case $MACHDEP in
1649 darwin)
1650 EXTRAPLATDIR="\$(PLATMACDIRS)"
1651 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1654 EXTRAPLATDIR=""
1655 EXTRAMACHDEPPATH=""
1657 esac
1659 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1660 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1662 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1663 # it may influence the way we can build extensions, so distutils
1664 # needs to check it
1667 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1668 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
1670 # checks for alternative programs
1672 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1673 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1674 # just to get things to compile and link. Users are free to override OPT
1675 # when running configure or make. The build should not break if they do.
1676 # BASECFLAGS should generally not be messed with, however.
1678 # XXX shouldn't some/most/all of this code be merged with the stuff later
1679 # on that fiddles with OPT and BASECFLAGS?
1680 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1681 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1683 # Check whether --with-gcc or --without-gcc was given.
1684 if test "${with_gcc+set}" = set; then
1685 withval="$with_gcc"
1687 case $withval in
1688 no) CC=cc
1689 without_gcc=yes;;
1690 yes) CC=gcc
1691 without_gcc=no;;
1692 *) CC=$withval
1693 without_gcc=$withval;;
1694 esac
1695 else
1697 case $ac_sys_system in
1698 AIX*) CC=cc_r
1699 without_gcc=;;
1700 BeOS*)
1701 case $BE_HOST_CPU in
1702 ppc)
1703 CC=mwcc
1704 without_gcc=yes
1705 BASECFLAGS="$BASECFLAGS -export pragma"
1706 OPT="$OPT -O"
1707 LDFLAGS="$LDFLAGS -nodup"
1709 x86)
1710 CC=gcc
1711 without_gcc=no
1712 OPT="$OPT -O"
1715 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1716 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1717 { (exit 1); exit 1; }; }
1719 esac
1720 AR="\$(srcdir)/Modules/ar_beos"
1721 RANLIB=:
1723 Monterey*)
1724 RANLIB=:
1725 without_gcc=;;
1726 *) without_gcc=no;;
1727 esac
1729 echo "$as_me:$LINENO: result: $without_gcc" >&5
1730 echo "${ECHO_T}$without_gcc" >&6
1732 # If the user switches compilers, we can't believe the cache
1733 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1734 then
1735 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1736 (it is also a good idea to do 'make clean' before compiling)" >&5
1737 echo "$as_me: error: cached CC is different -- throw away $cache_file
1738 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1739 { (exit 1); exit 1; }; }
1742 ac_ext=c
1743 ac_cpp='$CPP $CPPFLAGS'
1744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1747 if test -n "$ac_tool_prefix"; then
1748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1749 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_CC+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755 if test -n "$CC"; then
1756 ac_cv_prog_CC="$CC" # Let the user override the test.
1757 else
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 for as_dir in $PATH
1761 IFS=$as_save_IFS
1762 test -z "$as_dir" && as_dir=.
1763 for ac_exec_ext in '' $ac_executable_extensions; do
1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767 break 2
1769 done
1770 done
1774 CC=$ac_cv_prog_CC
1775 if test -n "$CC"; then
1776 echo "$as_me:$LINENO: result: $CC" >&5
1777 echo "${ECHO_T}$CC" >&6
1778 else
1779 echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1784 if test -z "$ac_cv_prog_CC"; then
1785 ac_ct_CC=$CC
1786 # Extract the first word of "gcc", so it can be a program name with args.
1787 set dummy gcc; ac_word=$2
1788 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793 if test -n "$ac_ct_CC"; then
1794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1795 else
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 for as_dir in $PATH
1799 IFS=$as_save_IFS
1800 test -z "$as_dir" && as_dir=.
1801 for ac_exec_ext in '' $ac_executable_extensions; do
1802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 ac_cv_prog_ac_ct_CC="gcc"
1804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805 break 2
1807 done
1808 done
1812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1813 if test -n "$ac_ct_CC"; then
1814 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1815 echo "${ECHO_T}$ac_ct_CC" >&6
1816 else
1817 echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1821 CC=$ac_ct_CC
1822 else
1823 CC="$ac_cv_prog_CC"
1826 if test -z "$CC"; then
1827 if test -n "$ac_tool_prefix"; then
1828 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1829 set dummy ${ac_tool_prefix}cc; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC="$CC" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_CC="${ac_tool_prefix}cc"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 break 2
1849 done
1850 done
1854 CC=$ac_cv_prog_CC
1855 if test -n "$CC"; then
1856 echo "$as_me:$LINENO: result: $CC" >&5
1857 echo "${ECHO_T}$CC" >&6
1858 else
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1864 if test -z "$ac_cv_prog_CC"; then
1865 ac_ct_CC=$CC
1866 # Extract the first word of "cc", so it can be a program name with args.
1867 set dummy cc; ac_word=$2
1868 echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 else
1873 if test -n "$ac_ct_CC"; then
1874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1875 else
1876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 for as_dir in $PATH
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 for ac_exec_ext in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_ac_ct_CC="cc"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885 break 2
1887 done
1888 done
1892 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1893 if test -n "$ac_ct_CC"; then
1894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895 echo "${ECHO_T}$ac_ct_CC" >&6
1896 else
1897 echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1901 CC=$ac_ct_CC
1902 else
1903 CC="$ac_cv_prog_CC"
1907 if test -z "$CC"; then
1908 # Extract the first word of "cc", so it can be a program name with args.
1909 set dummy cc; ac_word=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_CC+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 else
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1917 else
1918 ac_prog_rejected=no
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1927 ac_prog_rejected=yes
1928 continue
1930 ac_cv_prog_CC="cc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 break 2
1934 done
1935 done
1937 if test $ac_prog_rejected = yes; then
1938 # We found a bogon in the path, so make sure we never use it.
1939 set dummy $ac_cv_prog_CC
1940 shift
1941 if test $# != 0; then
1942 # We chose a different compiler from the bogus one.
1943 # However, it has the same basename, so the bogon will be chosen
1944 # first if we set CC to just the basename; use the full file name.
1945 shift
1946 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1951 CC=$ac_cv_prog_CC
1952 if test -n "$CC"; then
1953 echo "$as_me:$LINENO: result: $CC" >&5
1954 echo "${ECHO_T}$CC" >&6
1955 else
1956 echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1961 if test -z "$CC"; then
1962 if test -n "$ac_tool_prefix"; then
1963 for ac_prog in cl
1965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972 if test -n "$CC"; then
1973 ac_cv_prog_CC="$CC" # Let the user override the test.
1974 else
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1978 IFS=$as_save_IFS
1979 test -z "$as_dir" && as_dir=.
1980 for ac_exec_ext in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 break 2
1986 done
1987 done
1991 CC=$ac_cv_prog_CC
1992 if test -n "$CC"; then
1993 echo "$as_me:$LINENO: result: $CC" >&5
1994 echo "${ECHO_T}$CC" >&6
1995 else
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
2000 test -n "$CC" && break
2001 done
2003 if test -z "$CC"; then
2004 ac_ct_CC=$CC
2005 for ac_prog in cl
2007 # Extract the first word of "$ac_prog", so it can be a program name with args.
2008 set dummy $ac_prog; ac_word=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014 if test -n "$ac_ct_CC"; then
2015 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2016 else
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2020 IFS=$as_save_IFS
2021 test -z "$as_dir" && as_dir=.
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024 ac_cv_prog_ac_ct_CC="$ac_prog"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 break 2
2028 done
2029 done
2033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6
2037 else
2038 echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2042 test -n "$ac_ct_CC" && break
2043 done
2045 CC=$ac_ct_CC
2051 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2052 See \`config.log' for more details." >&5
2053 echo "$as_me: error: no acceptable C compiler found in \$PATH
2054 See \`config.log' for more details." >&2;}
2055 { (exit 1); exit 1; }; }
2057 # Provide some information about the compiler.
2058 echo "$as_me:$LINENO:" \
2059 "checking for C compiler version" >&5
2060 ac_compiler=`set X $ac_compile; echo $2`
2061 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2062 (eval $ac_compiler --version </dev/null >&5) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }
2066 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2067 (eval $ac_compiler -v </dev/null >&5) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2072 (eval $ac_compiler -V </dev/null >&5) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }
2077 cat >conftest.$ac_ext <<_ACEOF
2078 /* confdefs.h. */
2079 _ACEOF
2080 cat confdefs.h >>conftest.$ac_ext
2081 cat >>conftest.$ac_ext <<_ACEOF
2082 /* end confdefs.h. */
2085 main ()
2089 return 0;
2091 _ACEOF
2092 ac_clean_files_save=$ac_clean_files
2093 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2094 # Try to create an executable without -o first, disregard a.out.
2095 # It will help us diagnose broken compilers, and finding out an intuition
2096 # of exeext.
2097 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2098 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2099 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2100 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2101 (eval $ac_link_default) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; then
2105 # Find the output, starting from the most likely. This scheme is
2106 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2107 # resort.
2109 # Be careful to initialize this variable, since it used to be cached.
2110 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2111 ac_cv_exeext=
2112 # b.out is created by i960 compilers.
2113 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2115 test -f "$ac_file" || continue
2116 case $ac_file in
2117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2119 conftest.$ac_ext )
2120 # This is the source file.
2122 [ab].out )
2123 # We found the default executable, but exeext='' is most
2124 # certainly right.
2125 break;;
2126 *.* )
2127 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128 # FIXME: I believe we export ac_cv_exeext for Libtool,
2129 # but it would be cool to find out if it's true. Does anybody
2130 # maintain Libtool? --akim.
2131 export ac_cv_exeext
2132 break;;
2134 break;;
2135 esac
2136 done
2137 else
2138 echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2141 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2142 See \`config.log' for more details." >&5
2143 echo "$as_me: error: C compiler cannot create executables
2144 See \`config.log' for more details." >&2;}
2145 { (exit 77); exit 77; }; }
2148 ac_exeext=$ac_cv_exeext
2149 echo "$as_me:$LINENO: result: $ac_file" >&5
2150 echo "${ECHO_T}$ac_file" >&6
2152 # Check the compiler produces executables we can run. If not, either
2153 # the compiler is broken, or we cross compile.
2154 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2155 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2156 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2157 # If not cross compiling, check that we can run a simple program.
2158 if test "$cross_compiling" != yes; then
2159 if { ac_try='./$ac_file'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 (eval $ac_try) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; }; then
2165 cross_compiling=no
2166 else
2167 if test "$cross_compiling" = maybe; then
2168 cross_compiling=yes
2169 else
2170 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2171 If you meant to cross compile, use \`--host'.
2172 See \`config.log' for more details." >&5
2173 echo "$as_me: error: cannot run C compiled programs.
2174 If you meant to cross compile, use \`--host'.
2175 See \`config.log' for more details." >&2;}
2176 { (exit 1); exit 1; }; }
2180 echo "$as_me:$LINENO: result: yes" >&5
2181 echo "${ECHO_T}yes" >&6
2183 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2184 ac_clean_files=$ac_clean_files_save
2185 # Check the compiler produces executables we can run. If not, either
2186 # the compiler is broken, or we cross compile.
2187 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2188 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2189 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2190 echo "${ECHO_T}$cross_compiling" >&6
2192 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2193 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2195 (eval $ac_link) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; then
2199 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2200 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2201 # work properly (i.e., refer to `conftest.exe'), while it won't with
2202 # `rm'.
2203 for ac_file in conftest.exe conftest conftest.*; do
2204 test -f "$ac_file" || continue
2205 case $ac_file in
2206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2207 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208 export ac_cv_exeext
2209 break;;
2210 * ) break;;
2211 esac
2212 done
2213 else
2214 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2217 See \`config.log' for more details." >&2;}
2218 { (exit 1); exit 1; }; }
2221 rm -f conftest$ac_cv_exeext
2222 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2223 echo "${ECHO_T}$ac_cv_exeext" >&6
2225 rm -f conftest.$ac_ext
2226 EXEEXT=$ac_cv_exeext
2227 ac_exeext=$EXEEXT
2228 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2229 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2230 if test "${ac_cv_objext+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 cat >conftest.$ac_ext <<_ACEOF
2234 /* confdefs.h. */
2235 _ACEOF
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h. */
2241 main ()
2245 return 0;
2247 _ACEOF
2248 rm -f conftest.o conftest.obj
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; then
2254 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2255 case $ac_file in
2256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2257 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2258 break;;
2259 esac
2260 done
2261 else
2262 echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2265 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2268 See \`config.log' for more details." >&2;}
2269 { (exit 1); exit 1; }; }
2272 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2274 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2275 echo "${ECHO_T}$ac_cv_objext" >&6
2276 OBJEXT=$ac_cv_objext
2277 ac_objext=$OBJEXT
2278 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2279 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2280 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283 cat >conftest.$ac_ext <<_ACEOF
2284 /* confdefs.h. */
2285 _ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2291 main ()
2293 #ifndef __GNUC__
2294 choke me
2295 #endif
2298 return 0;
2300 _ACEOF
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>conftest.er1
2304 ac_status=$?
2305 grep -v '^ *+' conftest.er1 >conftest.err
2306 rm -f conftest.er1
2307 cat conftest.err >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); } &&
2310 { ac_try='test -z "$ac_c_werror_flag"
2311 || test ! -s conftest.err'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313 (eval $ac_try) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; } &&
2317 { ac_try='test -s conftest.$ac_objext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2323 ac_compiler_gnu=yes
2324 else
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2328 ac_compiler_gnu=no
2330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2334 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2335 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2336 GCC=`test $ac_compiler_gnu = yes && echo yes`
2337 ac_test_CFLAGS=${CFLAGS+set}
2338 ac_save_CFLAGS=$CFLAGS
2339 CFLAGS="-g"
2340 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2341 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2342 if test "${ac_cv_prog_cc_g+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345 cat >conftest.$ac_ext <<_ACEOF
2346 /* confdefs.h. */
2347 _ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h. */
2353 main ()
2357 return 0;
2359 _ACEOF
2360 rm -f conftest.$ac_objext
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362 (eval $ac_compile) 2>conftest.er1
2363 ac_status=$?
2364 grep -v '^ *+' conftest.er1 >conftest.err
2365 rm -f conftest.er1
2366 cat conftest.err >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); } &&
2369 { ac_try='test -z "$ac_c_werror_flag"
2370 || test ! -s conftest.err'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; } &&
2376 { ac_try='test -s conftest.$ac_objext'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 (eval $ac_try) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2382 ac_cv_prog_cc_g=yes
2383 else
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2387 ac_cv_prog_cc_g=no
2389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2391 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2392 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2393 if test "$ac_test_CFLAGS" = set; then
2394 CFLAGS=$ac_save_CFLAGS
2395 elif test $ac_cv_prog_cc_g = yes; then
2396 if test "$GCC" = yes; then
2397 CFLAGS="-g -O2"
2398 else
2399 CFLAGS="-g"
2401 else
2402 if test "$GCC" = yes; then
2403 CFLAGS="-O2"
2404 else
2405 CFLAGS=
2408 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2409 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2410 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413 ac_cv_prog_cc_stdc=no
2414 ac_save_CC=$CC
2415 cat >conftest.$ac_ext <<_ACEOF
2416 /* confdefs.h. */
2417 _ACEOF
2418 cat confdefs.h >>conftest.$ac_ext
2419 cat >>conftest.$ac_ext <<_ACEOF
2420 /* end confdefs.h. */
2421 #include <stdarg.h>
2422 #include <stdio.h>
2423 #include <sys/types.h>
2424 #include <sys/stat.h>
2425 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2426 struct buf { int x; };
2427 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2428 static char *e (p, i)
2429 char **p;
2430 int i;
2432 return p[i];
2434 static char *f (char * (*g) (char **, int), char **p, ...)
2436 char *s;
2437 va_list v;
2438 va_start (v,p);
2439 s = g (p, va_arg (v,int));
2440 va_end (v);
2441 return s;
2444 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2445 function prototypes and stuff, but not '\xHH' hex character constants.
2446 These don't provoke an error unfortunately, instead are silently treated
2447 as 'x'. The following induces an error, until -std1 is added to get
2448 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2449 array size at least. It's necessary to write '\x00'==0 to get something
2450 that's true only with -std1. */
2451 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2453 int test (int i, double x);
2454 struct s1 {int (*f) (int a);};
2455 struct s2 {int (*f) (double a);};
2456 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2457 int argc;
2458 char **argv;
2460 main ()
2462 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2464 return 0;
2466 _ACEOF
2467 # Don't try gcc -ansi; that turns off useful extensions and
2468 # breaks some systems' header files.
2469 # AIX -qlanglvl=ansi
2470 # Ultrix and OSF/1 -std1
2471 # HP-UX 10.20 and later -Ae
2472 # HP-UX older versions -Aa -D_HPUX_SOURCE
2473 # SVR4 -Xc -D__EXTENSIONS__
2474 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2476 CC="$ac_save_CC $ac_arg"
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479 (eval $ac_compile) 2>conftest.er1
2480 ac_status=$?
2481 grep -v '^ *+' conftest.er1 >conftest.err
2482 rm -f conftest.er1
2483 cat conftest.err >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } &&
2486 { ac_try='test -z "$ac_c_werror_flag"
2487 || test ! -s conftest.err'
2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 (eval $ac_try) 2>&5
2490 ac_status=$?
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; } &&
2493 { ac_try='test -s conftest.$ac_objext'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 (eval $ac_try) 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2499 ac_cv_prog_cc_stdc=$ac_arg
2500 break
2501 else
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2506 rm -f conftest.err conftest.$ac_objext
2507 done
2508 rm -f conftest.$ac_ext conftest.$ac_objext
2509 CC=$ac_save_CC
2513 case "x$ac_cv_prog_cc_stdc" in
2514 x|xno)
2515 echo "$as_me:$LINENO: result: none needed" >&5
2516 echo "${ECHO_T}none needed" >&6 ;;
2518 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2519 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2520 CC="$CC $ac_cv_prog_cc_stdc" ;;
2521 esac
2523 # Some people use a C++ compiler to compile C. Since we use `exit',
2524 # in C++ we need to declare it. In case someone uses the same compiler
2525 # for both compiling C and C++ we need to have the C++ compiler decide
2526 # the declaration of exit, since it's the most demanding environment.
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #ifndef __cplusplus
2529 choke me
2530 #endif
2531 _ACEOF
2532 rm -f conftest.$ac_objext
2533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2534 (eval $ac_compile) 2>conftest.er1
2535 ac_status=$?
2536 grep -v '^ *+' conftest.er1 >conftest.err
2537 rm -f conftest.er1
2538 cat conftest.err >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); } &&
2541 { ac_try='test -z "$ac_c_werror_flag"
2542 || test ! -s conftest.err'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; } &&
2548 { ac_try='test -s conftest.$ac_objext'
2549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550 (eval $ac_try) 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; }; then
2554 for ac_declaration in \
2555 '' \
2556 'extern "C" void std::exit (int) throw (); using std::exit;' \
2557 'extern "C" void std::exit (int); using std::exit;' \
2558 'extern "C" void exit (int) throw ();' \
2559 'extern "C" void exit (int);' \
2560 'void exit (int);'
2562 cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h. */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2568 $ac_declaration
2569 #include <stdlib.h>
2571 main ()
2573 exit (42);
2575 return 0;
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>conftest.er1
2581 ac_status=$?
2582 grep -v '^ *+' conftest.er1 >conftest.err
2583 rm -f conftest.er1
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try='test -s conftest.$ac_objext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2601 else
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2605 continue
2607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2608 cat >conftest.$ac_ext <<_ACEOF
2609 /* confdefs.h. */
2610 _ACEOF
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h. */
2614 $ac_declaration
2616 main ()
2618 exit (42);
2620 return 0;
2622 _ACEOF
2623 rm -f conftest.$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625 (eval $ac_compile) 2>conftest.er1
2626 ac_status=$?
2627 grep -v '^ *+' conftest.er1 >conftest.err
2628 rm -f conftest.er1
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -z "$ac_c_werror_flag"
2633 || test ! -s conftest.err'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; } &&
2639 { ac_try='test -s conftest.$ac_objext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 (eval $ac_try) 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2645 break
2646 else
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2652 done
2653 rm -f conftest*
2654 if test -n "$ac_declaration"; then
2655 echo '#ifdef __cplusplus' >>confdefs.h
2656 echo $ac_declaration >>confdefs.h
2657 echo '#endif' >>confdefs.h
2660 else
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2666 ac_ext=c
2667 ac_cpp='$CPP $CPPFLAGS'
2668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2676 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2678 # Check whether --with-cxx_main or --without-cxx_main was given.
2679 if test "${with_cxx_main+set}" = set; then
2680 withval="$with_cxx_main"
2683 case $withval in
2684 no) with_cxx_main=no
2685 MAINCC='$(CC)';;
2686 yes) with_cxx_main=yes
2687 MAINCC='$(CXX)';;
2688 *) with_cxx_main=yes
2689 MAINCC=$withval
2690 if test -z "$CXX"
2691 then
2692 CXX=$withval
2693 fi;;
2694 esac
2695 else
2697 with_cxx_main=no
2698 MAINCC='$(CC)'
2701 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2702 echo "${ECHO_T}$with_cxx_main" >&6
2704 preset_cxx="$CXX"
2705 if test -z "$CXX"
2706 then
2707 case "$CC" in
2708 gcc) # Extract the first word of "g++", so it can be a program name with args.
2709 set dummy g++; ac_word=$2
2710 echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2712 if test "${ac_cv_path_CXX+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715 case $CXX in
2716 [\\/]* | ?:[\\/]*)
2717 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in notfound
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2731 done
2732 done
2734 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
2736 esac
2738 CXX=$ac_cv_path_CXX
2740 if test -n "$CXX"; then
2741 echo "$as_me:$LINENO: result: $CXX" >&5
2742 echo "${ECHO_T}$CXX" >&6
2743 else
2744 echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2748 cc) # Extract the first word of "c++", so it can be a program name with args.
2749 set dummy c++; ac_word=$2
2750 echo "$as_me:$LINENO: checking for $ac_word" >&5
2751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2752 if test "${ac_cv_path_CXX+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755 case $CXX in
2756 [\\/]* | ?:[\\/]*)
2757 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in notfound
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2771 done
2772 done
2774 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
2776 esac
2778 CXX=$ac_cv_path_CXX
2780 if test -n "$CXX"; then
2781 echo "$as_me:$LINENO: result: $CXX" >&5
2782 echo "${ECHO_T}$CXX" >&6
2783 else
2784 echo "$as_me:$LINENO: result: no" >&5
2785 echo "${ECHO_T}no" >&6
2788 esac
2789 if test "$CXX" = "notfound"
2790 then
2791 CXX=""
2794 if test -z "$CXX"
2795 then
2796 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2798 # Extract the first word of "$ac_prog", so it can be a program name with args.
2799 set dummy $ac_prog; ac_word=$2
2800 echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2802 if test "${ac_cv_prog_CXX+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805 if test -n "$CXX"; then
2806 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815 ac_cv_prog_CXX="$ac_prog"
2816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 break 2
2819 done
2820 done
2824 CXX=$ac_cv_prog_CXX
2825 if test -n "$CXX"; then
2826 echo "$as_me:$LINENO: result: $CXX" >&5
2827 echo "${ECHO_T}$CXX" >&6
2828 else
2829 echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6
2833 test -n "$CXX" && break
2834 done
2835 test -n "$CXX" || CXX="notfound"
2837 if test "$CXX" = "notfound"
2838 then
2839 CXX=""
2842 if test "$preset_cxx" != "$CXX"
2843 then
2844 { echo "$as_me:$LINENO: WARNING:
2846 By default, distutils will build C++ extension modules with \"$CXX\".
2847 If this is not intended, then set CXX on the configure command line.
2848 " >&5
2849 echo "$as_me: WARNING:
2851 By default, distutils will build C++ extension modules with \"$CXX\".
2852 If this is not intended, then set CXX on the configure command line.
2853 " >&2;}
2857 # checks for UNIX variants that set C preprocessor variables
2859 ac_ext=c
2860 ac_cpp='$CPP $CPPFLAGS'
2861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2864 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2865 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2866 # On Suns, sometimes $CPP names a directory.
2867 if test -n "$CPP" && test -d "$CPP"; then
2868 CPP=
2870 if test -z "$CPP"; then
2871 if test "${ac_cv_prog_CPP+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874 # Double quotes because CPP needs to be expanded
2875 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2877 ac_preproc_ok=false
2878 for ac_c_preproc_warn_flag in '' yes
2880 # Use a header file that comes with gcc, so configuring glibc
2881 # with a fresh cross-compiler works.
2882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2883 # <limits.h> exists even on freestanding compilers.
2884 # On the NeXT, cc -E runs the code through the compiler's parser,
2885 # not just through cpp. "Syntax error" is here to catch this case.
2886 cat >conftest.$ac_ext <<_ACEOF
2887 /* confdefs.h. */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2892 #ifdef __STDC__
2893 # include <limits.h>
2894 #else
2895 # include <assert.h>
2896 #endif
2897 Syntax error
2898 _ACEOF
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2901 ac_status=$?
2902 grep -v '^ *+' conftest.er1 >conftest.err
2903 rm -f conftest.er1
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } >/dev/null; then
2907 if test -s conftest.err; then
2908 ac_cpp_err=$ac_c_preproc_warn_flag
2909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2910 else
2911 ac_cpp_err=
2913 else
2914 ac_cpp_err=yes
2916 if test -z "$ac_cpp_err"; then
2918 else
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2922 # Broken: fails on valid input.
2923 continue
2925 rm -f conftest.err conftest.$ac_ext
2927 # OK, works on sane cases. Now check whether non-existent headers
2928 # can be detected and how.
2929 cat >conftest.$ac_ext <<_ACEOF
2930 /* confdefs.h. */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2935 #include <ac_nonexistent.h>
2936 _ACEOF
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2939 ac_status=$?
2940 grep -v '^ *+' conftest.er1 >conftest.err
2941 rm -f conftest.er1
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } >/dev/null; then
2945 if test -s conftest.err; then
2946 ac_cpp_err=$ac_c_preproc_warn_flag
2947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2948 else
2949 ac_cpp_err=
2951 else
2952 ac_cpp_err=yes
2954 if test -z "$ac_cpp_err"; then
2955 # Broken: success on invalid input.
2956 continue
2957 else
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 # Passes both tests.
2962 ac_preproc_ok=:
2963 break
2965 rm -f conftest.err conftest.$ac_ext
2967 done
2968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2969 rm -f conftest.err conftest.$ac_ext
2970 if $ac_preproc_ok; then
2971 break
2974 done
2975 ac_cv_prog_CPP=$CPP
2978 CPP=$ac_cv_prog_CPP
2979 else
2980 ac_cv_prog_CPP=$CPP
2982 echo "$as_me:$LINENO: result: $CPP" >&5
2983 echo "${ECHO_T}$CPP" >&6
2984 ac_preproc_ok=false
2985 for ac_c_preproc_warn_flag in '' yes
2987 # Use a header file that comes with gcc, so configuring glibc
2988 # with a fresh cross-compiler works.
2989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2990 # <limits.h> exists even on freestanding compilers.
2991 # On the NeXT, cc -E runs the code through the compiler's parser,
2992 # not just through cpp. "Syntax error" is here to catch this case.
2993 cat >conftest.$ac_ext <<_ACEOF
2994 /* confdefs.h. */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
2999 #ifdef __STDC__
3000 # include <limits.h>
3001 #else
3002 # include <assert.h>
3003 #endif
3004 Syntax error
3005 _ACEOF
3006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3008 ac_status=$?
3009 grep -v '^ *+' conftest.er1 >conftest.err
3010 rm -f conftest.er1
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } >/dev/null; then
3014 if test -s conftest.err; then
3015 ac_cpp_err=$ac_c_preproc_warn_flag
3016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3017 else
3018 ac_cpp_err=
3020 else
3021 ac_cpp_err=yes
3023 if test -z "$ac_cpp_err"; then
3025 else
3026 echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3029 # Broken: fails on valid input.
3030 continue
3032 rm -f conftest.err conftest.$ac_ext
3034 # OK, works on sane cases. Now check whether non-existent headers
3035 # can be detected and how.
3036 cat >conftest.$ac_ext <<_ACEOF
3037 /* confdefs.h. */
3038 _ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3042 #include <ac_nonexistent.h>
3043 _ACEOF
3044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } >/dev/null; then
3052 if test -s conftest.err; then
3053 ac_cpp_err=$ac_c_preproc_warn_flag
3054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3055 else
3056 ac_cpp_err=
3058 else
3059 ac_cpp_err=yes
3061 if test -z "$ac_cpp_err"; then
3062 # Broken: success on invalid input.
3063 continue
3064 else
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3068 # Passes both tests.
3069 ac_preproc_ok=:
3070 break
3072 rm -f conftest.err conftest.$ac_ext
3074 done
3075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3076 rm -f conftest.err conftest.$ac_ext
3077 if $ac_preproc_ok; then
3079 else
3080 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3081 See \`config.log' for more details." >&5
3082 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3083 See \`config.log' for more details." >&2;}
3084 { (exit 1); exit 1; }; }
3087 ac_ext=c
3088 ac_cpp='$CPP $CPPFLAGS'
3089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094 echo "$as_me:$LINENO: checking for egrep" >&5
3095 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3096 if test "${ac_cv_prog_egrep+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3100 then ac_cv_prog_egrep='grep -E'
3101 else ac_cv_prog_egrep='egrep'
3104 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3105 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3106 EGREP=$ac_cv_prog_egrep
3110 echo "$as_me:$LINENO: checking for AIX" >&5
3111 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3112 cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h. */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3118 #ifdef _AIX
3120 #endif
3122 _ACEOF
3123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3124 $EGREP "yes" >/dev/null 2>&1; then
3125 echo "$as_me:$LINENO: result: yes" >&5
3126 echo "${ECHO_T}yes" >&6
3127 cat >>confdefs.h <<\_ACEOF
3128 #define _ALL_SOURCE 1
3129 _ACEOF
3131 else
3132 echo "$as_me:$LINENO: result: no" >&5
3133 echo "${ECHO_T}no" >&6
3135 rm -f conftest*
3139 # Check for unsupported systems
3140 case $ac_sys_system/$ac_sys_release in
3141 Linux*/1*)
3142 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3143 echo See README for details.
3144 exit 1;;
3145 esac
3148 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3149 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3151 # Check whether --with-suffix or --without-suffix was given.
3152 if test "${with_suffix+set}" = set; then
3153 withval="$with_suffix"
3155 case $withval in
3156 no) EXEEXT=;;
3157 yes) EXEEXT=.exe;;
3158 *) EXEEXT=$withval;;
3159 esac
3161 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3162 echo "${ECHO_T}$EXEEXT" >&6
3164 # Test whether we're running on a non-case-sensitive system, in which
3165 # case we give a warning if no ext is given
3167 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3168 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3169 if test ! -d CaseSensitiveTestDir; then
3170 mkdir CaseSensitiveTestDir
3173 if test -d casesensitivetestdir
3174 then
3175 echo "$as_me:$LINENO: result: yes" >&5
3176 echo "${ECHO_T}yes" >&6
3177 BUILDEXEEXT=.exe
3178 else
3179 echo "$as_me:$LINENO: result: no" >&5
3180 echo "${ECHO_T}no" >&6
3181 BUILDEXEEXT=$EXEEXT
3183 rmdir CaseSensitiveTestDir
3185 case $MACHDEP in
3186 bsdos*)
3187 case $CC in
3188 gcc) CC="$CC -D_HAVE_BSDI";;
3189 esac;;
3190 esac
3192 case $ac_sys_system in
3193 hp*|HP*)
3194 case $CC in
3195 cc|*/cc) CC="$CC -Ae";;
3196 esac;;
3197 Monterey*)
3198 case $CC in
3199 cc) CC="$CC -Wl,-Bexport";;
3200 esac;;
3201 SunOS*)
3202 # Some functions have a prototype only with that define, e.g. confstr
3204 cat >>confdefs.h <<\_ACEOF
3205 #define __EXTENSIONS__ 1
3206 _ACEOF
3209 esac
3213 echo "$as_me:$LINENO: checking LIBRARY" >&5
3214 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3215 if test -z "$LIBRARY"
3216 then
3217 LIBRARY='libpython$(VERSION).a'
3219 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3220 echo "${ECHO_T}$LIBRARY" >&6
3222 # LDLIBRARY is the name of the library to link against (as opposed to the
3223 # name of the library into which to insert object files). BLDLIBRARY is also
3224 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3225 # is blank as the main program is not linked directly against LDLIBRARY.
3226 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3227 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3228 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3229 # DLLLIBRARY is the shared (i.e., DLL) library.
3231 # RUNSHARED is used to run shared python without installed libraries
3233 # INSTSONAME is the name of the shared library that will be use to install
3234 # on the system - some systems like version suffix, others don't
3241 LDLIBRARY="$LIBRARY"
3242 BLDLIBRARY='$(LDLIBRARY)'
3243 INSTSONAME='$(LDLIBRARY)'
3244 DLLLIBRARY=''
3245 LDLIBRARYDIR=''
3246 RUNSHARED=''
3248 # LINKCC is the command that links the python executable -- default is $(CC).
3249 # If CXX is set, and if it is needed to link a main function that was
3250 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3251 # python might then depend on the C++ runtime
3252 # This is altered for AIX in order to build the export list before
3253 # linking.
3255 echo "$as_me:$LINENO: checking LINKCC" >&5
3256 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3257 if test -z "$LINKCC"
3258 then
3259 LINKCC='$(PURIFY) $(MAINCC)'
3260 case $ac_sys_system in
3261 AIX*)
3262 exp_extra="\"\""
3263 if test $ac_sys_release -ge 5 -o \
3264 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3265 exp_extra="."
3267 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3268 Monterey64*)
3269 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3270 esac
3272 echo "$as_me:$LINENO: result: $LINKCC" >&5
3273 echo "${ECHO_T}$LINKCC" >&6
3275 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3276 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3277 # Check whether --enable-shared or --disable-shared was given.
3278 if test "${enable_shared+set}" = set; then
3279 enableval="$enable_shared"
3283 if test -z "$enable_shared"
3284 then
3285 case $ac_sys_system in
3286 CYGWIN* | atheos*)
3287 enable_shared="yes";;
3289 enable_shared="no";;
3290 esac
3292 echo "$as_me:$LINENO: result: $enable_shared" >&5
3293 echo "${ECHO_T}$enable_shared" >&6
3295 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3296 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3297 # Check whether --enable-profiling or --disable-profiling was given.
3298 if test "${enable_profiling+set}" = set; then
3299 enableval="$enable_profiling"
3300 ac_save_cc="$CC"
3301 CC="$CC -pg"
3302 if test "$cross_compiling" = yes; then
3303 ac_enable_profiling="no"
3304 else
3305 cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h. */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 int main() { return 0; }
3312 _ACEOF
3313 rm -f conftest$ac_exeext
3314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3315 (eval $ac_link) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 (eval $ac_try) 2>&5
3321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
3324 ac_enable_profiling="yes"
3325 else
3326 echo "$as_me: program exited with status $ac_status" >&5
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 ( exit $ac_status )
3331 ac_enable_profiling="no"
3333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3335 CC="$ac_save_cc"
3337 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3338 echo "${ECHO_T}$ac_enable_profiling" >&6
3340 case "$ac_enable_profiling" in
3341 "yes")
3342 BASECFLAGS="-pg $BASECFLAGS"
3343 LDFLAGS="-pg $LDFLAGS"
3345 esac
3347 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3348 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3350 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3351 # library that we build, but we do not want to link against it (we
3352 # will find it with a -framework option). For this reason there is an
3353 # extra variable BLDLIBRARY against which Python and the extension
3354 # modules are linked, BLDLIBRARY. This is normally the same as
3355 # LDLIBRARY, but empty for MacOSX framework builds.
3356 if test "$enable_framework"
3357 then
3358 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3359 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3360 BLDLIBRARY=''
3361 else
3362 BLDLIBRARY='$(LDLIBRARY)'
3365 # Other platforms follow
3366 if test $enable_shared = "yes"; then
3368 cat >>confdefs.h <<\_ACEOF
3369 #define Py_ENABLE_SHARED 1
3370 _ACEOF
3372 case $ac_sys_system in
3373 BeOS*)
3374 LDLIBRARY='libpython$(VERSION).so'
3376 CYGWIN*)
3377 LDLIBRARY='libpython$(VERSION).dll.a'
3378 DLLLIBRARY='libpython$(VERSION).dll'
3380 SunOS*)
3381 LDLIBRARY='libpython$(VERSION).so'
3382 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3383 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3384 INSTSONAME="$LDLIBRARY".$SOVERSION
3386 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
3387 LDLIBRARY='libpython$(VERSION).so'
3388 BLDLIBRARY='-L. -lpython$(VERSION)'
3389 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3390 case $ac_sys_system in
3391 FreeBSD*)
3392 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3394 esac
3395 INSTSONAME="$LDLIBRARY".$SOVERSION
3397 hp*|HP*)
3398 case `uname -m` in
3399 ia64)
3400 LDLIBRARY='libpython$(VERSION).so'
3403 LDLIBRARY='libpython$(VERSION).sl'
3405 esac
3406 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3407 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3409 OSF*)
3410 LDLIBRARY='libpython$(VERSION).so'
3411 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3412 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3414 atheos*)
3415 LDLIBRARY='libpython$(VERSION).so'
3416 BLDLIBRARY='-L. -lpython$(VERSION)'
3417 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3419 esac
3420 else # shared is disabled
3421 case $ac_sys_system in
3422 CYGWIN*)
3423 BLDLIBRARY='$(LIBRARY)'
3424 LDLIBRARY='libpython$(VERSION).dll.a'
3426 esac
3429 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3430 echo "${ECHO_T}$LDLIBRARY" >&6
3432 if test -n "$ac_tool_prefix"; then
3433 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3434 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3435 echo "$as_me:$LINENO: checking for $ac_word" >&5
3436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3437 if test "${ac_cv_prog_RANLIB+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440 if test -n "$RANLIB"; then
3441 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 break 2
3454 done
3455 done
3459 RANLIB=$ac_cv_prog_RANLIB
3460 if test -n "$RANLIB"; then
3461 echo "$as_me:$LINENO: result: $RANLIB" >&5
3462 echo "${ECHO_T}$RANLIB" >&6
3463 else
3464 echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3469 if test -z "$ac_cv_prog_RANLIB"; then
3470 ac_ct_RANLIB=$RANLIB
3471 # Extract the first word of "ranlib", so it can be a program name with args.
3472 set dummy ranlib; ac_word=$2
3473 echo "$as_me:$LINENO: checking for $ac_word" >&5
3474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3475 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478 if test -n "$ac_ct_RANLIB"; then
3479 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488 ac_cv_prog_ac_ct_RANLIB="ranlib"
3489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 break 2
3492 done
3493 done
3495 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3498 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3499 if test -n "$ac_ct_RANLIB"; then
3500 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3501 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3502 else
3503 echo "$as_me:$LINENO: result: no" >&5
3504 echo "${ECHO_T}no" >&6
3507 RANLIB=$ac_ct_RANLIB
3508 else
3509 RANLIB="$ac_cv_prog_RANLIB"
3513 for ac_prog in ar aal
3515 # Extract the first word of "$ac_prog", so it can be a program name with args.
3516 set dummy $ac_prog; ac_word=$2
3517 echo "$as_me:$LINENO: checking for $ac_word" >&5
3518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519 if test "${ac_cv_prog_AR+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522 if test -n "$AR"; then
3523 ac_cv_prog_AR="$AR" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532 ac_cv_prog_AR="$ac_prog"
3533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3536 done
3537 done
3541 AR=$ac_cv_prog_AR
3542 if test -n "$AR"; then
3543 echo "$as_me:$LINENO: result: $AR" >&5
3544 echo "${ECHO_T}$AR" >&6
3545 else
3546 echo "$as_me:$LINENO: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3550 test -n "$AR" && break
3551 done
3552 test -n "$AR" || AR="ar"
3556 # Extract the first word of "svnversion", so it can be a program name with args.
3557 set dummy svnversion; ac_word=$2
3558 echo "$as_me:$LINENO: checking for $ac_word" >&5
3559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3560 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563 if test -n "$SVNVERSION"; then
3564 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_SVNVERSION="found"
3574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3577 done
3578 done
3580 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
3583 SVNVERSION=$ac_cv_prog_SVNVERSION
3584 if test -n "$SVNVERSION"; then
3585 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3586 echo "${ECHO_T}$SVNVERSION" >&6
3587 else
3588 echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3592 if test $SVNVERSION = found
3593 then
3594 SVNVERSION="svnversion \$(srcdir)"
3595 else
3596 SVNVERSION="echo exported"
3599 case $MACHDEP in
3600 bsdos*|hp*|HP*)
3601 # install -d does not work on BSDI or HP-UX
3602 if test -z "$INSTALL"
3603 then
3604 INSTALL="${srcdir}/install-sh -c"
3606 esac
3607 ac_aux_dir=
3608 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3609 if test -f $ac_dir/install-sh; then
3610 ac_aux_dir=$ac_dir
3611 ac_install_sh="$ac_aux_dir/install-sh -c"
3612 break
3613 elif test -f $ac_dir/install.sh; then
3614 ac_aux_dir=$ac_dir
3615 ac_install_sh="$ac_aux_dir/install.sh -c"
3616 break
3617 elif test -f $ac_dir/shtool; then
3618 ac_aux_dir=$ac_dir
3619 ac_install_sh="$ac_aux_dir/shtool install -c"
3620 break
3622 done
3623 if test -z "$ac_aux_dir"; then
3624 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3625 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3626 { (exit 1); exit 1; }; }
3628 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3629 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3630 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3632 # Find a good install program. We prefer a C program (faster),
3633 # so one script is as good as another. But avoid the broken or
3634 # incompatible versions:
3635 # SysV /etc/install, /usr/sbin/install
3636 # SunOS /usr/etc/install
3637 # IRIX /sbin/install
3638 # AIX /bin/install
3639 # AmigaOS /C/install, which installs bootblocks on floppy discs
3640 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3641 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3642 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3643 # OS/2's system install, which has a completely different semantic
3644 # ./install, which can be erroneously created by make from ./install.sh.
3645 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3646 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3647 if test -z "$INSTALL"; then
3648 if test "${ac_cv_path_install+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 # Account for people who put trailing slashes in PATH elements.
3657 case $as_dir/ in
3658 ./ | .// | /cC/* | \
3659 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3660 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3661 /usr/ucb/* ) ;;
3663 # OSF1 and SCO ODT 3.0 have their own names for install.
3664 # Don't use installbsd from OSF since it installs stuff as root
3665 # by default.
3666 for ac_prog in ginstall scoinst install; do
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3669 if test $ac_prog = install &&
3670 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3671 # AIX install. It has an incompatible calling convention.
3673 elif test $ac_prog = install &&
3674 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3675 # program-specific install script used by HP pwplus--don't use.
3677 else
3678 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3679 break 3
3682 done
3683 done
3685 esac
3686 done
3690 if test "${ac_cv_path_install+set}" = set; then
3691 INSTALL=$ac_cv_path_install
3692 else
3693 # As a last resort, use the slow shell script. We don't cache a
3694 # path for INSTALL within a source directory, because that will
3695 # break other packages using the cache if that directory is
3696 # removed, or if the path is relative.
3697 INSTALL=$ac_install_sh
3700 echo "$as_me:$LINENO: result: $INSTALL" >&5
3701 echo "${ECHO_T}$INSTALL" >&6
3703 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3704 # It thinks the first close brace ends the variable substitution.
3705 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3707 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3709 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3712 # Not every filesystem supports hard links
3714 if test -z "$LN" ; then
3715 case $ac_sys_system in
3716 BeOS*) LN="ln -s";;
3717 CYGWIN*) LN="ln -s";;
3718 atheos*) LN="ln -s";;
3719 *) LN=ln;;
3720 esac
3723 # Check for --with-pydebug
3724 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3725 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3727 # Check whether --with-pydebug or --without-pydebug was given.
3728 if test "${with_pydebug+set}" = set; then
3729 withval="$with_pydebug"
3731 if test "$withval" != no
3732 then
3734 cat >>confdefs.h <<\_ACEOF
3735 #define Py_DEBUG 1
3736 _ACEOF
3738 echo "$as_me:$LINENO: result: yes" >&5
3739 echo "${ECHO_T}yes" >&6;
3740 Py_DEBUG='true'
3741 else echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3744 else
3745 echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3749 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3750 # merged with this chunk of code?
3752 # Optimizer/debugger flags
3753 # ------------------------
3754 # (The following bit of code is complicated enough - please keep things
3755 # indented properly. Just pretend you're editing Python code. ;-)
3757 # There are two parallel sets of case statements below, one that checks to
3758 # see if OPT was set and one that does BASECFLAGS setting based upon
3759 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3760 # user set OPT.
3762 # tweak OPT based on compiler and platform, only if the user didn't set
3763 # it on the command line
3765 if test -z "$OPT"
3766 then
3767 case $GCC in
3768 yes)
3769 if test "$CC" != 'g++' ; then
3770 STRICT_PROTO="-Wstrict-prototypes"
3772 case $ac_cv_prog_cc_g in
3773 yes)
3774 if test "$Py_DEBUG" = 'true' ; then
3775 # Optimization messes up debuggers, so turn it off for
3776 # debug builds.
3777 OPT="-g -Wall $STRICT_PROTO"
3778 else
3779 OPT="-g -O3 -Wall $STRICT_PROTO"
3783 OPT="-O3 -Wall $STRICT_PROTO"
3785 esac
3786 case $ac_sys_system in
3787 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3789 esac
3793 OPT="-O"
3795 esac
3797 # The current (beta) Monterey compiler dies with optimizations
3798 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3799 case $ac_sys_system in
3800 Monterey*)
3801 OPT=""
3803 esac
3808 # tweak BASECFLAGS based on compiler and platform
3809 case $GCC in
3810 yes)
3811 # Python violates C99 rules, by casting between incompatible
3812 # pointer types. GCC may generate bad code as a result of that,
3813 # so use -fno-strict-aliasing if supported.
3814 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3815 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3816 ac_save_cc="$CC"
3817 CC="$CC -fno-strict-aliasing"
3818 if test "$cross_compiling" = yes; then
3819 ac_cv_no_strict_aliasing_ok=no
3820 else
3821 cat >conftest.$ac_ext <<_ACEOF
3822 /* confdefs.h. */
3823 _ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3827 int main() { return 0; }
3828 _ACEOF
3829 rm -f conftest$ac_exeext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3831 (eval $ac_link) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836 (eval $ac_try) 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3840 ac_cv_no_strict_aliasing_ok=yes
3841 else
3842 echo "$as_me: program exited with status $ac_status" >&5
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3846 ( exit $ac_status )
3847 ac_cv_no_strict_aliasing_ok=no
3849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3851 CC="$ac_save_cc"
3852 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3853 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3854 if test $ac_cv_no_strict_aliasing_ok = yes
3855 then
3856 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3858 case $ac_sys_system in
3859 SCO_SV*)
3860 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3862 # is there any other compiler on Darwin besides gcc?
3863 Darwin*)
3864 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3865 if test "${enable_universalsdk}"; then
3866 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3870 OSF*)
3871 BASECFLAGS="$BASECFLAGS -mieee"
3873 esac
3877 case $ac_sys_system in
3878 OpenUNIX*|UnixWare*)
3879 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3881 OSF*)
3882 BASECFLAGS="$BASECFLAGS -ieee -std"
3884 SCO_SV*)
3885 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3887 esac
3889 esac
3891 if test "$Py_DEBUG" = 'true'; then
3893 else
3894 OPT="-DNDEBUG $OPT"
3897 if test "$ac_arch_flags"
3898 then
3899 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3902 # disable check for icc since it seems to pass, but generates a warning
3903 if test "$CC" = icc
3904 then
3905 ac_cv_opt_olimit_ok=no
3908 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3909 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3910 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913 ac_save_cc="$CC"
3914 CC="$CC -OPT:Olimit=0"
3915 if test "$cross_compiling" = yes; then
3916 ac_cv_opt_olimit_ok=no
3917 else
3918 cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h. */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3924 int main() { return 0; }
3925 _ACEOF
3926 rm -f conftest$ac_exeext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3928 (eval $ac_link) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 (eval $ac_try) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3937 ac_cv_opt_olimit_ok=yes
3938 else
3939 echo "$as_me: program exited with status $ac_status" >&5
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3943 ( exit $ac_status )
3944 ac_cv_opt_olimit_ok=no
3946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3948 CC="$ac_save_cc"
3951 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3952 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3953 if test $ac_cv_opt_olimit_ok = yes; then
3954 case $ac_sys_system in
3955 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3956 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3957 # environment?
3958 Darwin*)
3961 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3963 esac
3964 else
3965 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3966 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3967 if test "${ac_cv_olimit_ok+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970 ac_save_cc="$CC"
3971 CC="$CC -Olimit 1500"
3972 if test "$cross_compiling" = yes; then
3973 ac_cv_olimit_ok=no
3974 else
3975 cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h. */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 int main() { return 0; }
3982 _ACEOF
3983 rm -f conftest$ac_exeext
3984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3985 (eval $ac_link) 2>&5
3986 ac_status=$?
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 (eval $ac_try) 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3994 ac_cv_olimit_ok=yes
3995 else
3996 echo "$as_me: program exited with status $ac_status" >&5
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 ( exit $ac_status )
4001 ac_cv_olimit_ok=no
4003 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4005 CC="$ac_save_cc"
4008 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4009 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4010 if test $ac_cv_olimit_ok = yes; then
4011 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4015 # On some compilers, pthreads are available without further options
4016 # (e.g. MacOS X). On some of these systems, the compiler will not
4017 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4018 # So we have to see first whether pthreads are available without
4019 # options before we can check whether -Kpthread improves anything.
4020 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4021 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4022 if test "${ac_cv_pthread_is_default+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025 if test "$cross_compiling" = yes; then
4026 ac_cv_pthread_is_default=no
4027 else
4028 cat >conftest.$ac_ext <<_ACEOF
4029 /* confdefs.h. */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4035 #include <pthread.h>
4037 void* routine(void* p){return NULL;}
4039 int main(){
4040 pthread_t p;
4041 if(pthread_create(&p,NULL,routine,NULL)!=0)
4042 return 1;
4043 (void)pthread_detach(p);
4044 return 0;
4047 _ACEOF
4048 rm -f conftest$ac_exeext
4049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4050 (eval $ac_link) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
4060 ac_cv_pthread_is_default=yes
4061 ac_cv_kthread=no
4062 ac_cv_pthread=no
4064 else
4065 echo "$as_me: program exited with status $ac_status" >&5
4066 echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4069 ( exit $ac_status )
4070 ac_cv_pthread_is_default=no
4072 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4077 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4078 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4081 if test $ac_cv_pthread_is_default = yes
4082 then
4083 ac_cv_kpthread=no
4084 else
4085 # -Kpthread, if available, provides the right #defines
4086 # and linker options to make pthread_create available
4087 # Some compilers won't report that they do not support -Kpthread,
4088 # so we need to run a program to see whether it really made the
4089 # function available.
4090 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4091 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4092 if test "${ac_cv_kpthread+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095 ac_save_cc="$CC"
4096 CC="$CC -Kpthread"
4097 if test "$cross_compiling" = yes; then
4098 ac_cv_kpthread=no
4099 else
4100 cat >conftest.$ac_ext <<_ACEOF
4101 /* confdefs.h. */
4102 _ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4107 #include <pthread.h>
4109 void* routine(void* p){return NULL;}
4111 int main(){
4112 pthread_t p;
4113 if(pthread_create(&p,NULL,routine,NULL)!=0)
4114 return 1;
4115 (void)pthread_detach(p);
4116 return 0;
4119 _ACEOF
4120 rm -f conftest$ac_exeext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4122 (eval $ac_link) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 ac_cv_kpthread=yes
4132 else
4133 echo "$as_me: program exited with status $ac_status" >&5
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4137 ( exit $ac_status )
4138 ac_cv_kpthread=no
4140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4142 CC="$ac_save_cc"
4145 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4146 echo "${ECHO_T}$ac_cv_kpthread" >&6
4149 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4150 then
4151 # -Kthread, if available, provides the right #defines
4152 # and linker options to make pthread_create available
4153 # Some compilers won't report that they do not support -Kthread,
4154 # so we need to run a program to see whether it really made the
4155 # function available.
4156 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4157 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4158 if test "${ac_cv_kthread+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161 ac_save_cc="$CC"
4162 CC="$CC -Kthread"
4163 if test "$cross_compiling" = yes; then
4164 ac_cv_kthread=no
4165 else
4166 cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h. */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4173 #include <pthread.h>
4175 void* routine(void* p){return NULL;}
4177 int main(){
4178 pthread_t p;
4179 if(pthread_create(&p,NULL,routine,NULL)!=0)
4180 return 1;
4181 (void)pthread_detach(p);
4182 return 0;
4185 _ACEOF
4186 rm -f conftest$ac_exeext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4188 (eval $ac_link) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 (eval $ac_try) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4197 ac_cv_kthread=yes
4198 else
4199 echo "$as_me: program exited with status $ac_status" >&5
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4203 ( exit $ac_status )
4204 ac_cv_kthread=no
4206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4208 CC="$ac_save_cc"
4211 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4212 echo "${ECHO_T}$ac_cv_kthread" >&6
4215 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4216 then
4217 # -pthread, if available, provides the right #defines
4218 # and linker options to make pthread_create available
4219 # Some compilers won't report that they do not support -pthread,
4220 # so we need to run a program to see whether it really made the
4221 # function available.
4222 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4223 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4224 if test "${ac_cv_thread+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227 ac_save_cc="$CC"
4228 CC="$CC -pthread"
4229 if test "$cross_compiling" = yes; then
4230 ac_cv_pthread=no
4231 else
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4239 #include <pthread.h>
4241 void* routine(void* p){return NULL;}
4243 int main(){
4244 pthread_t p;
4245 if(pthread_create(&p,NULL,routine,NULL)!=0)
4246 return 1;
4247 (void)pthread_detach(p);
4248 return 0;
4251 _ACEOF
4252 rm -f conftest$ac_exeext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4254 (eval $ac_link) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 (eval $ac_try) 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 ac_cv_pthread=yes
4264 else
4265 echo "$as_me: program exited with status $ac_status" >&5
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4269 ( exit $ac_status )
4270 ac_cv_pthread=no
4272 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4274 CC="$ac_save_cc"
4277 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4278 echo "${ECHO_T}$ac_cv_pthread" >&6
4281 # If we have set a CC compiler flag for thread support then
4282 # check if it works for CXX, too.
4283 ac_cv_cxx_thread=no
4284 if test ! -z "$CXX"
4285 then
4286 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4287 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4288 ac_save_cxx="$CXX"
4290 if test "$ac_cv_kpthread" = "yes"
4291 then
4292 CXX="$CXX -Kpthread"
4293 ac_cv_cxx_thread=yes
4294 elif test "$ac_cv_kthread" = "yes"
4295 then
4296 CXX="$CXX -Kthread"
4297 ac_cv_cxx_thread=yes
4298 elif test "$ac_cv_pthread" = "yes"
4299 then
4300 CXX="$CXX -pthread"
4301 ac_cv_cxx_thread=yes
4304 if test $ac_cv_cxx_thread = yes
4305 then
4306 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4307 $CXX -c conftest.$ac_ext 2>&5
4308 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4309 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4310 then
4311 ac_cv_cxx_thread=yes
4312 else
4313 ac_cv_cxx_thread=no
4315 rm -fr conftest*
4317 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4318 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4320 CXX="$ac_save_cxx"
4323 # checks for header files
4324 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4325 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4326 if test "${ac_cv_header_stdc+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329 cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h. */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335 #include <stdlib.h>
4336 #include <stdarg.h>
4337 #include <string.h>
4338 #include <float.h>
4341 main ()
4345 return 0;
4347 _ACEOF
4348 rm -f conftest.$ac_objext
4349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4350 (eval $ac_compile) 2>conftest.er1
4351 ac_status=$?
4352 grep -v '^ *+' conftest.er1 >conftest.err
4353 rm -f conftest.er1
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try='test -z "$ac_c_werror_flag"
4358 || test ! -s conftest.err'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 (eval $ac_try) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; } &&
4364 { ac_try='test -s conftest.$ac_objext'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 (eval $ac_try) 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; }; then
4370 ac_cv_header_stdc=yes
4371 else
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 ac_cv_header_stdc=no
4377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4379 if test $ac_cv_header_stdc = yes; then
4380 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4387 #include <string.h>
4389 _ACEOF
4390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4391 $EGREP "memchr" >/dev/null 2>&1; then
4393 else
4394 ac_cv_header_stdc=no
4396 rm -f conftest*
4400 if test $ac_cv_header_stdc = yes; then
4401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h. */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 #include <stdlib.h>
4410 _ACEOF
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 $EGREP "free" >/dev/null 2>&1; then
4414 else
4415 ac_cv_header_stdc=no
4417 rm -f conftest*
4421 if test $ac_cv_header_stdc = yes; then
4422 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4423 if test "$cross_compiling" = yes; then
4425 else
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <ctype.h>
4433 #if ((' ' & 0x0FF) == 0x020)
4434 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4435 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4436 #else
4437 # define ISLOWER(c) \
4438 (('a' <= (c) && (c) <= 'i') \
4439 || ('j' <= (c) && (c) <= 'r') \
4440 || ('s' <= (c) && (c) <= 'z'))
4441 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4442 #endif
4444 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4446 main ()
4448 int i;
4449 for (i = 0; i < 256; i++)
4450 if (XOR (islower (i), ISLOWER (i))
4451 || toupper (i) != TOUPPER (i))
4452 exit(2);
4453 exit (0);
4455 _ACEOF
4456 rm -f conftest$ac_exeext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4458 (eval $ac_link) 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 (eval $ac_try) 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4468 else
4469 echo "$as_me: program exited with status $ac_status" >&5
4470 echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4473 ( exit $ac_status )
4474 ac_cv_header_stdc=no
4476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4480 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4481 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4482 if test $ac_cv_header_stdc = yes; then
4484 cat >>confdefs.h <<\_ACEOF
4485 #define STDC_HEADERS 1
4486 _ACEOF
4490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4500 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4501 inttypes.h stdint.h unistd.h
4503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4504 echo "$as_me:$LINENO: checking for $ac_header" >&5
4505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509 cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h. */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 $ac_includes_default
4517 #include <$ac_header>
4518 _ACEOF
4519 rm -f conftest.$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4522 ac_status=$?
4523 grep -v '^ *+' conftest.er1 >conftest.err
4524 rm -f conftest.er1
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag"
4529 || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 (eval $ac_try) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 eval "$as_ac_Header=yes"
4542 else
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4546 eval "$as_ac_Header=no"
4548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4553 cat >>confdefs.h <<_ACEOF
4554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4555 _ACEOF
4559 done
4602 for ac_header in asm/types.h curses.h dlfcn.h fcntl.h grp.h \
4603 shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \
4604 stropts.h termios.h thread.h \
4605 unistd.h utime.h \
4606 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4607 sys/modem.h \
4608 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h \
4609 sys/times.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4610 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4611 bluetooth/bluetooth.h
4613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4615 echo "$as_me:$LINENO: checking for $ac_header" >&5
4616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4622 else
4623 # Is the header compilable?
4624 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4626 cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h. */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4632 $ac_includes_default
4633 #include <$ac_header>
4634 _ACEOF
4635 rm -f conftest.$ac_objext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637 (eval $ac_compile) 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try='test -z "$ac_c_werror_flag"
4645 || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_header_compiler=yes
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4662 ac_header_compiler=no
4664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4666 echo "${ECHO_T}$ac_header_compiler" >&6
4668 # Is the header present?
4669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4671 cat >conftest.$ac_ext <<_ACEOF
4672 /* confdefs.h. */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4677 #include <$ac_header>
4678 _ACEOF
4679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4681 ac_status=$?
4682 grep -v '^ *+' conftest.er1 >conftest.err
4683 rm -f conftest.er1
4684 cat conftest.err >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } >/dev/null; then
4687 if test -s conftest.err; then
4688 ac_cpp_err=$ac_c_preproc_warn_flag
4689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4690 else
4691 ac_cpp_err=
4693 else
4694 ac_cpp_err=yes
4696 if test -z "$ac_cpp_err"; then
4697 ac_header_preproc=yes
4698 else
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 ac_header_preproc=no
4704 rm -f conftest.err conftest.$ac_ext
4705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4706 echo "${ECHO_T}$ac_header_preproc" >&6
4708 # So? What about this header?
4709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4710 yes:no: )
4711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4715 ac_header_preproc=yes
4717 no:yes:* )
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4731 cat <<\_ASBOX
4732 ## ------------------------------------------------ ##
4733 ## Report this to http://www.python.org/python-bugs ##
4734 ## ------------------------------------------------ ##
4735 _ASBOX
4737 sed "s/^/$as_me: WARNING: /" >&2
4739 esac
4740 echo "$as_me:$LINENO: checking for $ac_header" >&5
4741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745 eval "$as_ac_Header=\$ac_header_preproc"
4747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4752 cat >>confdefs.h <<_ACEOF
4753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4754 _ACEOF
4758 done
4765 ac_header_dirent=no
4766 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4767 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4768 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4769 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773 cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h. */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 #include <sys/types.h>
4780 #include <$ac_hdr>
4783 main ()
4785 if ((DIR *) 0)
4786 return 0;
4788 return 0;
4790 _ACEOF
4791 rm -f conftest.$ac_objext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>conftest.er1
4794 ac_status=$?
4795 grep -v '^ *+' conftest.er1 >conftest.err
4796 rm -f conftest.er1
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -z "$ac_c_werror_flag"
4801 || test ! -s conftest.err'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 (eval $ac_try) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; } &&
4807 { ac_try='test -s conftest.$ac_objext'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 (eval $ac_try) 2>&5
4810 ac_status=$?
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4813 eval "$as_ac_Header=yes"
4814 else
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4818 eval "$as_ac_Header=no"
4820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4825 cat >>confdefs.h <<_ACEOF
4826 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4827 _ACEOF
4829 ac_header_dirent=$ac_hdr; break
4832 done
4833 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4834 if test $ac_header_dirent = dirent.h; then
4835 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4836 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4837 if test "${ac_cv_search_opendir+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840 ac_func_search_save_LIBS=$LIBS
4841 ac_cv_search_opendir=no
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4849 /* Override any gcc2 internal prototype to avoid an error. */
4850 #ifdef __cplusplus
4851 extern "C"
4852 #endif
4853 /* We use char because int might match the return type of a gcc2
4854 builtin and then its argument prototype would still apply. */
4855 char opendir ();
4857 main ()
4859 opendir ();
4861 return 0;
4863 _ACEOF
4864 rm -f conftest.$ac_objext conftest$ac_exeext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866 (eval $ac_link) 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try='test -z "$ac_c_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest$ac_exeext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 (eval $ac_try) 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_search_opendir="none required"
4887 else
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4892 rm -f conftest.err conftest.$ac_objext \
4893 conftest$ac_exeext conftest.$ac_ext
4894 if test "$ac_cv_search_opendir" = no; then
4895 for ac_lib in dir; do
4896 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4897 cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h. */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4904 /* Override any gcc2 internal prototype to avoid an error. */
4905 #ifdef __cplusplus
4906 extern "C"
4907 #endif
4908 /* We use char because int might match the return type of a gcc2
4909 builtin and then its argument prototype would still apply. */
4910 char opendir ();
4912 main ()
4914 opendir ();
4916 return 0;
4918 _ACEOF
4919 rm -f conftest.$ac_objext conftest$ac_exeext
4920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4921 (eval $ac_link) 2>conftest.er1
4922 ac_status=$?
4923 grep -v '^ *+' conftest.er1 >conftest.err
4924 rm -f conftest.er1
4925 cat conftest.err >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } &&
4928 { ac_try='test -z "$ac_c_werror_flag"
4929 || test ! -s conftest.err'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 (eval $ac_try) 2>&5
4932 ac_status=$?
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; } &&
4935 { ac_try='test -s conftest$ac_exeext'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 (eval $ac_try) 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4941 ac_cv_search_opendir="-l$ac_lib"
4942 break
4943 else
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4948 rm -f conftest.err conftest.$ac_objext \
4949 conftest$ac_exeext conftest.$ac_ext
4950 done
4952 LIBS=$ac_func_search_save_LIBS
4954 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4955 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4956 if test "$ac_cv_search_opendir" != no; then
4957 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4961 else
4962 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4963 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4964 if test "${ac_cv_search_opendir+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 else
4967 ac_func_search_save_LIBS=$LIBS
4968 ac_cv_search_opendir=no
4969 cat >conftest.$ac_ext <<_ACEOF
4970 /* confdefs.h. */
4971 _ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h. */
4976 /* Override any gcc2 internal prototype to avoid an error. */
4977 #ifdef __cplusplus
4978 extern "C"
4979 #endif
4980 /* We use char because int might match the return type of a gcc2
4981 builtin and then its argument prototype would still apply. */
4982 char opendir ();
4984 main ()
4986 opendir ();
4988 return 0;
4990 _ACEOF
4991 rm -f conftest.$ac_objext conftest$ac_exeext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4993 (eval $ac_link) 2>conftest.er1
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try='test -z "$ac_c_werror_flag"
5001 || test ! -s conftest.err'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 (eval $ac_try) 2>&5
5004 ac_status=$?
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; } &&
5007 { ac_try='test -s conftest$ac_exeext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 (eval $ac_try) 2>&5
5010 ac_status=$?
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 ac_cv_search_opendir="none required"
5014 else
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5019 rm -f conftest.err conftest.$ac_objext \
5020 conftest$ac_exeext conftest.$ac_ext
5021 if test "$ac_cv_search_opendir" = no; then
5022 for ac_lib in x; do
5023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5024 cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h. */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5031 /* Override any gcc2 internal prototype to avoid an error. */
5032 #ifdef __cplusplus
5033 extern "C"
5034 #endif
5035 /* We use char because int might match the return type of a gcc2
5036 builtin and then its argument prototype would still apply. */
5037 char opendir ();
5039 main ()
5041 opendir ();
5043 return 0;
5045 _ACEOF
5046 rm -f conftest.$ac_objext conftest$ac_exeext
5047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5048 (eval $ac_link) 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
5055 { ac_try='test -z "$ac_c_werror_flag"
5056 || test ! -s conftest.err'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 (eval $ac_try) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; } &&
5062 { ac_try='test -s conftest$ac_exeext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 (eval $ac_try) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 ac_cv_search_opendir="-l$ac_lib"
5069 break
5070 else
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5075 rm -f conftest.err conftest.$ac_objext \
5076 conftest$ac_exeext conftest.$ac_ext
5077 done
5079 LIBS=$ac_func_search_save_LIBS
5081 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5082 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5083 if test "$ac_cv_search_opendir" != no; then
5084 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5090 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5091 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5092 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095 cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h. */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 #include <sys/types.h>
5103 main ()
5105 return makedev(0, 0);
5107 return 0;
5109 _ACEOF
5110 rm -f conftest.$ac_objext conftest$ac_exeext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5112 (eval $ac_link) 2>conftest.er1
5113 ac_status=$?
5114 grep -v '^ *+' conftest.er1 >conftest.err
5115 rm -f conftest.er1
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try='test -z "$ac_c_werror_flag"
5120 || test ! -s conftest.err'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 (eval $ac_try) 2>&5
5123 ac_status=$?
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; } &&
5126 { ac_try='test -s conftest$ac_exeext'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 (eval $ac_try) 2>&5
5129 ac_status=$?
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; }; then
5132 ac_cv_header_sys_types_h_makedev=yes
5133 else
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5137 ac_cv_header_sys_types_h_makedev=no
5139 rm -f conftest.err conftest.$ac_objext \
5140 conftest$ac_exeext conftest.$ac_ext
5143 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5144 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5146 if test $ac_cv_header_sys_types_h_makedev = no; then
5147 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5148 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5149 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5150 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5154 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5155 else
5156 # Is the header compilable?
5157 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5158 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5159 cat >conftest.$ac_ext <<_ACEOF
5160 /* confdefs.h. */
5161 _ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5165 $ac_includes_default
5166 #include <sys/mkdev.h>
5167 _ACEOF
5168 rm -f conftest.$ac_objext
5169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5170 (eval $ac_compile) 2>conftest.er1
5171 ac_status=$?
5172 grep -v '^ *+' conftest.er1 >conftest.err
5173 rm -f conftest.er1
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } &&
5177 { ac_try='test -z "$ac_c_werror_flag"
5178 || test ! -s conftest.err'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; } &&
5184 { ac_try='test -s conftest.$ac_objext'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 ac_header_compiler=yes
5191 else
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5195 ac_header_compiler=no
5197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5199 echo "${ECHO_T}$ac_header_compiler" >&6
5201 # Is the header present?
5202 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5203 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5204 cat >conftest.$ac_ext <<_ACEOF
5205 /* confdefs.h. */
5206 _ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5210 #include <sys/mkdev.h>
5211 _ACEOF
5212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5214 ac_status=$?
5215 grep -v '^ *+' conftest.er1 >conftest.err
5216 rm -f conftest.er1
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } >/dev/null; then
5220 if test -s conftest.err; then
5221 ac_cpp_err=$ac_c_preproc_warn_flag
5222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5223 else
5224 ac_cpp_err=
5226 else
5227 ac_cpp_err=yes
5229 if test -z "$ac_cpp_err"; then
5230 ac_header_preproc=yes
5231 else
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5235 ac_header_preproc=no
5237 rm -f conftest.err conftest.$ac_ext
5238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5239 echo "${ECHO_T}$ac_header_preproc" >&6
5241 # So? What about this header?
5242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5243 yes:no: )
5244 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5245 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5246 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5247 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5248 ac_header_preproc=yes
5250 no:yes:* )
5251 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5252 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5253 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5254 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5255 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5256 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5257 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5258 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5259 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5260 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5261 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5262 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5264 cat <<\_ASBOX
5265 ## ------------------------------------------------ ##
5266 ## Report this to http://www.python.org/python-bugs ##
5267 ## ------------------------------------------------ ##
5268 _ASBOX
5270 sed "s/^/$as_me: WARNING: /" >&2
5272 esac
5273 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5274 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5275 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5280 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5281 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5284 if test $ac_cv_header_sys_mkdev_h = yes; then
5286 cat >>confdefs.h <<\_ACEOF
5287 #define MAJOR_IN_MKDEV 1
5288 _ACEOF
5294 if test $ac_cv_header_sys_mkdev_h = no; then
5295 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5296 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5297 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5298 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5302 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5303 else
5304 # Is the header compilable?
5305 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5306 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5307 cat >conftest.$ac_ext <<_ACEOF
5308 /* confdefs.h. */
5309 _ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 $ac_includes_default
5314 #include <sys/sysmacros.h>
5315 _ACEOF
5316 rm -f conftest.$ac_objext
5317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5318 (eval $ac_compile) 2>conftest.er1
5319 ac_status=$?
5320 grep -v '^ *+' conftest.er1 >conftest.err
5321 rm -f conftest.er1
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try='test -z "$ac_c_werror_flag"
5326 || test ! -s conftest.err'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 (eval $ac_try) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; } &&
5332 { ac_try='test -s conftest.$ac_objext'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 (eval $ac_try) 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_header_compiler=yes
5339 else
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5343 ac_header_compiler=no
5345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5347 echo "${ECHO_T}$ac_header_compiler" >&6
5349 # Is the header present?
5350 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5351 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5352 cat >conftest.$ac_ext <<_ACEOF
5353 /* confdefs.h. */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5358 #include <sys/sysmacros.h>
5359 _ACEOF
5360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } >/dev/null; then
5368 if test -s conftest.err; then
5369 ac_cpp_err=$ac_c_preproc_warn_flag
5370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5371 else
5372 ac_cpp_err=
5374 else
5375 ac_cpp_err=yes
5377 if test -z "$ac_cpp_err"; then
5378 ac_header_preproc=yes
5379 else
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 ac_header_preproc=no
5385 rm -f conftest.err conftest.$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5387 echo "${ECHO_T}$ac_header_preproc" >&6
5389 # So? What about this header?
5390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5391 yes:no: )
5392 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5393 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5394 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5395 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5396 ac_header_preproc=yes
5398 no:yes:* )
5399 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5400 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5402 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5403 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5404 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5406 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5407 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5408 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5410 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5412 cat <<\_ASBOX
5413 ## ------------------------------------------------ ##
5414 ## Report this to http://www.python.org/python-bugs ##
5415 ## ------------------------------------------------ ##
5416 _ASBOX
5418 sed "s/^/$as_me: WARNING: /" >&2
5420 esac
5421 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5422 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5423 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5428 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5429 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5432 if test $ac_cv_header_sys_sysmacros_h = yes; then
5434 cat >>confdefs.h <<\_ACEOF
5435 #define MAJOR_IN_SYSMACROS 1
5436 _ACEOF
5445 # On Solaris, term.h requires curses.h
5447 for ac_header in term.h
5449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450 echo "$as_me:$LINENO: checking for $ac_header" >&5
5451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5462 #ifdef HAVE_CURSES_H
5463 #include <curses.h>
5464 #endif
5467 #include <$ac_header>
5468 _ACEOF
5469 rm -f conftest.$ac_objext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471 (eval $ac_compile) 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try='test -z "$ac_c_werror_flag"
5479 || test ! -s conftest.err'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 (eval $ac_try) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try='test -s conftest.$ac_objext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 eval "$as_ac_Header=yes"
5492 else
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 eval "$as_ac_Header=no"
5498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5503 cat >>confdefs.h <<_ACEOF
5504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5505 _ACEOF
5509 done
5512 # On Linux, netlink.h requires asm/types.h
5514 for ac_header in linux/netlink.h
5516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5517 echo "$as_me:$LINENO: checking for $ac_header" >&5
5518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522 cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h. */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5529 #ifdef HAVE_ASM_TYPES_H
5530 #include <asm/types.h>
5531 #endif
5532 #ifdef HAVE_SYS_SOCKET_H
5533 #include <sys/socket.h>
5534 #endif
5537 #include <$ac_header>
5538 _ACEOF
5539 rm -f conftest.$ac_objext
5540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5541 (eval $ac_compile) 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } &&
5548 { ac_try='test -z "$ac_c_werror_flag"
5549 || test ! -s conftest.err'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 (eval $ac_try) 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; } &&
5555 { ac_try='test -s conftest.$ac_objext'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 (eval $ac_try) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5561 eval "$as_ac_Header=yes"
5562 else
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5566 eval "$as_ac_Header=no"
5568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5573 cat >>confdefs.h <<_ACEOF
5574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5575 _ACEOF
5579 done
5582 # checks for typedefs
5583 was_it_defined=no
5584 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5585 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5586 cat >conftest.$ac_ext <<_ACEOF
5587 /* confdefs.h. */
5588 _ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5592 #include <time.h>
5594 _ACEOF
5595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5596 $EGREP "clock_t" >/dev/null 2>&1; then
5597 was_it_defined=yes
5598 else
5601 cat >>confdefs.h <<\_ACEOF
5602 #define clock_t long
5603 _ACEOF
5607 rm -f conftest*
5609 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5610 echo "${ECHO_T}$was_it_defined" >&6
5612 # Check whether using makedev requires defining _OSF_SOURCE
5613 echo "$as_me:$LINENO: checking for makedev" >&5
5614 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5615 cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h. */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5621 #include <sys/types.h>
5623 main ()
5625 makedev(0, 0)
5627 return 0;
5629 _ACEOF
5630 rm -f conftest.$ac_objext conftest$ac_exeext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5632 (eval $ac_link) 2>conftest.er1
5633 ac_status=$?
5634 grep -v '^ *+' conftest.er1 >conftest.err
5635 rm -f conftest.er1
5636 cat conftest.err >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } &&
5639 { ac_try='test -z "$ac_c_werror_flag"
5640 || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 (eval $ac_try) 2>&5
5643 ac_status=$?
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try='test -s conftest$ac_exeext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 ac_cv_has_makedev=yes
5653 else
5654 echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5657 ac_cv_has_makedev=no
5659 rm -f conftest.err conftest.$ac_objext \
5660 conftest$ac_exeext conftest.$ac_ext
5661 if test "$ac_cv_has_makedev" = "no"; then
5662 # we didn't link, try if _OSF_SOURCE will allow us to link
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5670 #define _OSF_SOURCE 1
5671 #include <sys/types.h>
5674 main ()
5676 makedev(0, 0)
5678 return 0;
5680 _ACEOF
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try='test -z "$ac_c_werror_flag"
5691 || test ! -s conftest.err'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; } &&
5697 { ac_try='test -s conftest$ac_exeext'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 (eval $ac_try) 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; }; then
5703 ac_cv_has_makedev=yes
5704 else
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5708 ac_cv_has_makedev=no
5710 rm -f conftest.err conftest.$ac_objext \
5711 conftest$ac_exeext conftest.$ac_ext
5712 if test "$ac_cv_has_makedev" = "yes"; then
5714 cat >>confdefs.h <<\_ACEOF
5715 #define _OSF_SOURCE 1
5716 _ACEOF
5720 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5721 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5722 if test "$ac_cv_has_makedev" = "yes"; then
5724 cat >>confdefs.h <<\_ACEOF
5725 #define HAVE_MAKEDEV 1
5726 _ACEOF
5730 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5731 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5732 # defined, but the compiler does not support pragma redefine_extname,
5733 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5734 # structures (such as rlimit64) without declaring them. As a
5735 # work-around, disable LFS on such configurations
5737 use_lfs=yes
5738 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5739 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h. */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5747 #define _LARGEFILE_SOURCE 1
5748 #define _FILE_OFFSET_BITS 64
5749 #include <sys/resource.h>
5752 main ()
5754 struct rlimit foo;
5756 return 0;
5758 _ACEOF
5759 rm -f conftest.$ac_objext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5761 (eval $ac_compile) 2>conftest.er1
5762 ac_status=$?
5763 grep -v '^ *+' conftest.er1 >conftest.err
5764 rm -f conftest.er1
5765 cat conftest.err >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } &&
5768 { ac_try='test -z "$ac_c_werror_flag"
5769 || test ! -s conftest.err'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; } &&
5775 { ac_try='test -s conftest.$ac_objext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 sol_lfs_bug=no
5782 else
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5786 sol_lfs_bug=yes
5788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5789 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5790 echo "${ECHO_T}$sol_lfs_bug" >&6
5791 if test "$sol_lfs_bug" = "yes"; then
5792 use_lfs=no
5795 if test "$use_lfs" = "yes"; then
5796 # Two defines needed to enable largefile support on various platforms
5797 # These may affect some typedefs
5799 cat >>confdefs.h <<\_ACEOF
5800 #define _LARGEFILE_SOURCE 1
5801 _ACEOF
5804 cat >>confdefs.h <<\_ACEOF
5805 #define _FILE_OFFSET_BITS 64
5806 _ACEOF
5810 # Add some code to confdefs.h so that the test for off_t works on SCO
5811 cat >> confdefs.h <<\EOF
5812 #if defined(SCO_DS)
5813 #undef _OFF_T
5814 #endif
5817 # Type availability checks
5818 echo "$as_me:$LINENO: checking for mode_t" >&5
5819 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5820 if test "${ac_cv_type_mode_t+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h. */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5831 main ()
5833 if ((mode_t *) 0)
5834 return 0;
5835 if (sizeof (mode_t))
5836 return 0;
5838 return 0;
5840 _ACEOF
5841 rm -f conftest.$ac_objext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5843 (eval $ac_compile) 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try='test -z "$ac_c_werror_flag"
5851 || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 (eval $ac_try) 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try='test -s conftest.$ac_objext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 ac_cv_type_mode_t=yes
5864 else
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5868 ac_cv_type_mode_t=no
5870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5873 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5874 if test $ac_cv_type_mode_t = yes; then
5876 else
5878 cat >>confdefs.h <<_ACEOF
5879 #define mode_t int
5880 _ACEOF
5884 echo "$as_me:$LINENO: checking for off_t" >&5
5885 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5886 if test "${ac_cv_type_off_t+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889 cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h. */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 $ac_includes_default
5897 main ()
5899 if ((off_t *) 0)
5900 return 0;
5901 if (sizeof (off_t))
5902 return 0;
5904 return 0;
5906 _ACEOF
5907 rm -f conftest.$ac_objext
5908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5909 (eval $ac_compile) 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } &&
5916 { ac_try='test -z "$ac_c_werror_flag"
5917 || test ! -s conftest.err'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 (eval $ac_try) 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try='test -s conftest.$ac_objext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 (eval $ac_try) 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_type_off_t=yes
5930 else
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5934 ac_cv_type_off_t=no
5936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5938 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5939 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5940 if test $ac_cv_type_off_t = yes; then
5942 else
5944 cat >>confdefs.h <<_ACEOF
5945 #define off_t long
5946 _ACEOF
5950 echo "$as_me:$LINENO: checking for pid_t" >&5
5951 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5952 if test "${ac_cv_type_pid_t+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955 cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h. */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 $ac_includes_default
5963 main ()
5965 if ((pid_t *) 0)
5966 return 0;
5967 if (sizeof (pid_t))
5968 return 0;
5970 return 0;
5972 _ACEOF
5973 rm -f conftest.$ac_objext
5974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975 (eval $ac_compile) 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try='test -z "$ac_c_werror_flag"
5983 || test ! -s conftest.err'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 (eval $ac_try) 2>&5
5986 ac_status=$?
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; } &&
5989 { ac_try='test -s conftest.$ac_objext'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 (eval $ac_try) 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_type_pid_t=yes
5996 else
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6000 ac_cv_type_pid_t=no
6002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6005 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6006 if test $ac_cv_type_pid_t = yes; then
6008 else
6010 cat >>confdefs.h <<_ACEOF
6011 #define pid_t int
6012 _ACEOF
6016 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6017 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6018 if test "${ac_cv_type_signal+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 cat >conftest.$ac_ext <<_ACEOF
6022 /* confdefs.h. */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 #include <sys/types.h>
6028 #include <signal.h>
6029 #ifdef signal
6030 # undef signal
6031 #endif
6032 #ifdef __cplusplus
6033 extern "C" void (*signal (int, void (*)(int)))(int);
6034 #else
6035 void (*signal ()) ();
6036 #endif
6039 main ()
6041 int i;
6043 return 0;
6045 _ACEOF
6046 rm -f conftest.$ac_objext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>conftest.er1
6049 ac_status=$?
6050 grep -v '^ *+' conftest.er1 >conftest.err
6051 rm -f conftest.er1
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try='test -z "$ac_c_werror_flag"
6056 || test ! -s conftest.err'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 (eval $ac_try) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; } &&
6062 { ac_try='test -s conftest.$ac_objext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 (eval $ac_try) 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 ac_cv_type_signal=void
6069 else
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 ac_cv_type_signal=int
6075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6077 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6078 echo "${ECHO_T}$ac_cv_type_signal" >&6
6080 cat >>confdefs.h <<_ACEOF
6081 #define RETSIGTYPE $ac_cv_type_signal
6082 _ACEOF
6085 echo "$as_me:$LINENO: checking for size_t" >&5
6086 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6087 if test "${ac_cv_type_size_t+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090 cat >conftest.$ac_ext <<_ACEOF
6091 /* confdefs.h. */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 $ac_includes_default
6098 main ()
6100 if ((size_t *) 0)
6101 return 0;
6102 if (sizeof (size_t))
6103 return 0;
6105 return 0;
6107 _ACEOF
6108 rm -f conftest.$ac_objext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6110 (eval $ac_compile) 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } &&
6117 { ac_try='test -z "$ac_c_werror_flag"
6118 || test ! -s conftest.err'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; } &&
6124 { ac_try='test -s conftest.$ac_objext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 ac_cv_type_size_t=yes
6131 else
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6135 ac_cv_type_size_t=no
6137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6139 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6140 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6141 if test $ac_cv_type_size_t = yes; then
6143 else
6145 cat >>confdefs.h <<_ACEOF
6146 #define size_t unsigned
6147 _ACEOF
6151 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6152 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6153 if test "${ac_cv_type_uid_t+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156 cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h. */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6162 #include <sys/types.h>
6164 _ACEOF
6165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6166 $EGREP "uid_t" >/dev/null 2>&1; then
6167 ac_cv_type_uid_t=yes
6168 else
6169 ac_cv_type_uid_t=no
6171 rm -f conftest*
6174 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6175 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6176 if test $ac_cv_type_uid_t = no; then
6178 cat >>confdefs.h <<\_ACEOF
6179 #define uid_t int
6180 _ACEOF
6183 cat >>confdefs.h <<\_ACEOF
6184 #define gid_t int
6185 _ACEOF
6189 echo "$as_me:$LINENO: checking for ssize_t" >&5
6190 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6191 if test "${ac_cv_type_ssize_t+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194 cat >conftest.$ac_ext <<_ACEOF
6195 /* confdefs.h. */
6196 _ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6200 $ac_includes_default
6202 main ()
6204 if ((ssize_t *) 0)
6205 return 0;
6206 if (sizeof (ssize_t))
6207 return 0;
6209 return 0;
6211 _ACEOF
6212 rm -f conftest.$ac_objext
6213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6214 (eval $ac_compile) 2>conftest.er1
6215 ac_status=$?
6216 grep -v '^ *+' conftest.er1 >conftest.err
6217 rm -f conftest.er1
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } &&
6221 { ac_try='test -z "$ac_c_werror_flag"
6222 || test ! -s conftest.err'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 (eval $ac_try) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; } &&
6228 { ac_try='test -s conftest.$ac_objext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 (eval $ac_try) 2>&5
6231 ac_status=$?
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 ac_cv_type_ssize_t=yes
6235 else
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6239 ac_cv_type_ssize_t=no
6241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6243 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6244 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6245 if test $ac_cv_type_ssize_t = yes; then
6247 cat >>confdefs.h <<\_ACEOF
6248 #define HAVE_SSIZE_T 1
6249 _ACEOF
6254 # Sizes of various common basic types
6255 # ANSI C requires sizeof(char) == 1, so no need to check it
6256 echo "$as_me:$LINENO: checking for int" >&5
6257 echo $ECHO_N "checking for int... $ECHO_C" >&6
6258 if test "${ac_cv_type_int+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261 cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h. */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 $ac_includes_default
6269 main ()
6271 if ((int *) 0)
6272 return 0;
6273 if (sizeof (int))
6274 return 0;
6276 return 0;
6278 _ACEOF
6279 rm -f conftest.$ac_objext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281 (eval $ac_compile) 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_c_werror_flag"
6289 || test ! -s conftest.err'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 (eval $ac_try) 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; } &&
6295 { ac_try='test -s conftest.$ac_objext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 (eval $ac_try) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 ac_cv_type_int=yes
6302 else
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6306 ac_cv_type_int=no
6308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6310 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6311 echo "${ECHO_T}$ac_cv_type_int" >&6
6313 echo "$as_me:$LINENO: checking size of int" >&5
6314 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6315 if test "${ac_cv_sizeof_int+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318 if test "$ac_cv_type_int" = yes; then
6319 # The cast to unsigned long works around a bug in the HP C Compiler
6320 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6321 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6322 # This bug is HP SR number 8606223364.
6323 if test "$cross_compiling" = yes; then
6324 # Depending upon the size, compute the lo and hi bounds.
6325 cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h. */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 $ac_includes_default
6333 main ()
6335 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6336 test_array [0] = 0
6339 return 0;
6341 _ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6345 ac_status=$?
6346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try='test -z "$ac_c_werror_flag"
6352 || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 (eval $ac_try) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 (eval $ac_try) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_lo=0 ac_mid=0
6365 while :; do
6366 cat >conftest.$ac_ext <<_ACEOF
6367 /* confdefs.h. */
6368 _ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 $ac_includes_default
6374 main ()
6376 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6377 test_array [0] = 0
6380 return 0;
6382 _ACEOF
6383 rm -f conftest.$ac_objext
6384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6385 (eval $ac_compile) 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -z "$ac_c_werror_flag"
6393 || test ! -s conftest.err'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; } &&
6399 { ac_try='test -s conftest.$ac_objext'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 (eval $ac_try) 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 ac_hi=$ac_mid; break
6406 else
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6410 ac_lo=`expr $ac_mid + 1`
6411 if test $ac_lo -le $ac_mid; then
6412 ac_lo= ac_hi=
6413 break
6415 ac_mid=`expr 2 '*' $ac_mid + 1`
6417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6418 done
6419 else
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6423 cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h. */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 $ac_includes_default
6431 main ()
6433 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6434 test_array [0] = 0
6437 return 0;
6439 _ACEOF
6440 rm -f conftest.$ac_objext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6442 (eval $ac_compile) 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_c_werror_flag"
6450 || test ! -s conftest.err'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 (eval $ac_try) 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; } &&
6456 { ac_try='test -s conftest.$ac_objext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 (eval $ac_try) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 ac_hi=-1 ac_mid=-1
6463 while :; do
6464 cat >conftest.$ac_ext <<_ACEOF
6465 /* confdefs.h. */
6466 _ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6470 $ac_includes_default
6472 main ()
6474 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6475 test_array [0] = 0
6478 return 0;
6480 _ACEOF
6481 rm -f conftest.$ac_objext
6482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6483 (eval $ac_compile) 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } &&
6490 { ac_try='test -z "$ac_c_werror_flag"
6491 || test ! -s conftest.err'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 (eval $ac_try) 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; } &&
6497 { ac_try='test -s conftest.$ac_objext'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 (eval $ac_try) 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
6503 ac_lo=$ac_mid; break
6504 else
6505 echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6508 ac_hi=`expr '(' $ac_mid ')' - 1`
6509 if test $ac_mid -le $ac_hi; then
6510 ac_lo= ac_hi=
6511 break
6513 ac_mid=`expr 2 '*' $ac_mid`
6515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6516 done
6517 else
6518 echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.$ac_ext >&5
6521 ac_lo= ac_hi=
6523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6526 # Binary search between lo and hi bounds.
6527 while test "x$ac_lo" != "x$ac_hi"; do
6528 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6529 cat >conftest.$ac_ext <<_ACEOF
6530 /* confdefs.h. */
6531 _ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6535 $ac_includes_default
6537 main ()
6539 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6540 test_array [0] = 0
6543 return 0;
6545 _ACEOF
6546 rm -f conftest.$ac_objext
6547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6548 (eval $ac_compile) 2>conftest.er1
6549 ac_status=$?
6550 grep -v '^ *+' conftest.er1 >conftest.err
6551 rm -f conftest.er1
6552 cat conftest.err >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } &&
6555 { ac_try='test -z "$ac_c_werror_flag"
6556 || test ! -s conftest.err'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 (eval $ac_try) 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; } &&
6562 { ac_try='test -s conftest.$ac_objext'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 (eval $ac_try) 2>&5
6565 ac_status=$?
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; }; then
6568 ac_hi=$ac_mid
6569 else
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6573 ac_lo=`expr '(' $ac_mid ')' + 1`
6575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6576 done
6577 case $ac_lo in
6578 ?*) ac_cv_sizeof_int=$ac_lo;;
6579 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6580 See \`config.log' for more details." >&5
6581 echo "$as_me: error: cannot compute sizeof (int), 77
6582 See \`config.log' for more details." >&2;}
6583 { (exit 1); exit 1; }; } ;;
6584 esac
6585 else
6586 if test "$cross_compiling" = yes; then
6587 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6588 See \`config.log' for more details." >&5
6589 echo "$as_me: error: cannot run test program while cross compiling
6590 See \`config.log' for more details." >&2;}
6591 { (exit 1); exit 1; }; }
6592 else
6593 cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h. */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6599 $ac_includes_default
6600 long longval () { return (long) (sizeof (int)); }
6601 unsigned long ulongval () { return (long) (sizeof (int)); }
6602 #include <stdio.h>
6603 #include <stdlib.h>
6605 main ()
6608 FILE *f = fopen ("conftest.val", "w");
6609 if (! f)
6610 exit (1);
6611 if (((long) (sizeof (int))) < 0)
6613 long i = longval ();
6614 if (i != ((long) (sizeof (int))))
6615 exit (1);
6616 fprintf (f, "%ld\n", i);
6618 else
6620 unsigned long i = ulongval ();
6621 if (i != ((long) (sizeof (int))))
6622 exit (1);
6623 fprintf (f, "%lu\n", i);
6625 exit (ferror (f) || fclose (f) != 0);
6628 return 0;
6630 _ACEOF
6631 rm -f conftest$ac_exeext
6632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6633 (eval $ac_link) 2>&5
6634 ac_status=$?
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 (eval $ac_try) 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; }; then
6642 ac_cv_sizeof_int=`cat conftest.val`
6643 else
6644 echo "$as_me: program exited with status $ac_status" >&5
6645 echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6648 ( exit $ac_status )
6649 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6650 See \`config.log' for more details." >&5
6651 echo "$as_me: error: cannot compute sizeof (int), 77
6652 See \`config.log' for more details." >&2;}
6653 { (exit 1); exit 1; }; }
6655 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6658 rm -f conftest.val
6659 else
6660 ac_cv_sizeof_int=0
6663 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6664 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6665 cat >>confdefs.h <<_ACEOF
6666 #define SIZEOF_INT $ac_cv_sizeof_int
6667 _ACEOF
6670 echo "$as_me:$LINENO: checking for long" >&5
6671 echo $ECHO_N "checking for long... $ECHO_C" >&6
6672 if test "${ac_cv_type_long+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675 cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h. */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 $ac_includes_default
6683 main ()
6685 if ((long *) 0)
6686 return 0;
6687 if (sizeof (long))
6688 return 0;
6690 return 0;
6692 _ACEOF
6693 rm -f conftest.$ac_objext
6694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6695 (eval $ac_compile) 2>conftest.er1
6696 ac_status=$?
6697 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -f conftest.er1
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } &&
6702 { ac_try='test -z "$ac_c_werror_flag"
6703 || test ! -s conftest.err'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 (eval $ac_try) 2>&5
6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; } &&
6709 { ac_try='test -s conftest.$ac_objext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 ac_cv_type_long=yes
6716 else
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 ac_cv_type_long=no
6722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6724 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6725 echo "${ECHO_T}$ac_cv_type_long" >&6
6727 echo "$as_me:$LINENO: checking size of long" >&5
6728 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6729 if test "${ac_cv_sizeof_long+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732 if test "$ac_cv_type_long" = yes; then
6733 # The cast to unsigned long works around a bug in the HP C Compiler
6734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6736 # This bug is HP SR number 8606223364.
6737 if test "$cross_compiling" = yes; then
6738 # Depending upon the size, compute the lo and hi bounds.
6739 cat >conftest.$ac_ext <<_ACEOF
6740 /* confdefs.h. */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 $ac_includes_default
6747 main ()
6749 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6750 test_array [0] = 0
6753 return 0;
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_lo=0 ac_mid=0
6779 while :; do
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 $ac_includes_default
6788 main ()
6790 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6791 test_array [0] = 0
6794 return 0;
6796 _ACEOF
6797 rm -f conftest.$ac_objext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6799 (eval $ac_compile) 2>conftest.er1
6800 ac_status=$?
6801 grep -v '^ *+' conftest.er1 >conftest.err
6802 rm -f conftest.er1
6803 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try='test -z "$ac_c_werror_flag"
6807 || test ! -s conftest.err'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 (eval $ac_try) 2>&5
6810 ac_status=$?
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; } &&
6813 { ac_try='test -s conftest.$ac_objext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 (eval $ac_try) 2>&5
6816 ac_status=$?
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6819 ac_hi=$ac_mid; break
6820 else
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6824 ac_lo=`expr $ac_mid + 1`
6825 if test $ac_lo -le $ac_mid; then
6826 ac_lo= ac_hi=
6827 break
6829 ac_mid=`expr 2 '*' $ac_mid + 1`
6831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6832 done
6833 else
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6837 cat >conftest.$ac_ext <<_ACEOF
6838 /* confdefs.h. */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 $ac_includes_default
6845 main ()
6847 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6848 test_array [0] = 0
6851 return 0;
6853 _ACEOF
6854 rm -f conftest.$ac_objext
6855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6856 (eval $ac_compile) 2>conftest.er1
6857 ac_status=$?
6858 grep -v '^ *+' conftest.er1 >conftest.err
6859 rm -f conftest.er1
6860 cat conftest.err >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try='test -z "$ac_c_werror_flag"
6864 || test ! -s conftest.err'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 (eval $ac_try) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; } &&
6870 { ac_try='test -s conftest.$ac_objext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6876 ac_hi=-1 ac_mid=-1
6877 while :; do
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 $ac_includes_default
6886 main ()
6888 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6889 test_array [0] = 0
6892 return 0;
6894 _ACEOF
6895 rm -f conftest.$ac_objext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897 (eval $ac_compile) 2>conftest.er1
6898 ac_status=$?
6899 grep -v '^ *+' conftest.er1 >conftest.err
6900 rm -f conftest.er1
6901 cat conftest.err >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try='test -z "$ac_c_werror_flag"
6905 || test ! -s conftest.err'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 (eval $ac_try) 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; } &&
6911 { ac_try='test -s conftest.$ac_objext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 ac_lo=$ac_mid; break
6918 else
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6922 ac_hi=`expr '(' $ac_mid ')' - 1`
6923 if test $ac_mid -le $ac_hi; then
6924 ac_lo= ac_hi=
6925 break
6927 ac_mid=`expr 2 '*' $ac_mid`
6929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6930 done
6931 else
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6935 ac_lo= ac_hi=
6937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6940 # Binary search between lo and hi bounds.
6941 while test "x$ac_lo" != "x$ac_hi"; do
6942 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6943 cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h. */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 $ac_includes_default
6951 main ()
6953 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6954 test_array [0] = 0
6957 return 0;
6959 _ACEOF
6960 rm -f conftest.$ac_objext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6962 (eval $ac_compile) 2>conftest.er1
6963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } &&
6969 { ac_try='test -z "$ac_c_werror_flag"
6970 || test ! -s conftest.err'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 (eval $ac_try) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; } &&
6976 { ac_try='test -s conftest.$ac_objext'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 (eval $ac_try) 2>&5
6979 ac_status=$?
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6982 ac_hi=$ac_mid
6983 else
6984 echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6987 ac_lo=`expr '(' $ac_mid ')' + 1`
6989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6990 done
6991 case $ac_lo in
6992 ?*) ac_cv_sizeof_long=$ac_lo;;
6993 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6994 See \`config.log' for more details." >&5
6995 echo "$as_me: error: cannot compute sizeof (long), 77
6996 See \`config.log' for more details." >&2;}
6997 { (exit 1); exit 1; }; } ;;
6998 esac
6999 else
7000 if test "$cross_compiling" = yes; then
7001 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7002 See \`config.log' for more details." >&5
7003 echo "$as_me: error: cannot run test program while cross compiling
7004 See \`config.log' for more details." >&2;}
7005 { (exit 1); exit 1; }; }
7006 else
7007 cat >conftest.$ac_ext <<_ACEOF
7008 /* confdefs.h. */
7009 _ACEOF
7010 cat confdefs.h >>conftest.$ac_ext
7011 cat >>conftest.$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7013 $ac_includes_default
7014 long longval () { return (long) (sizeof (long)); }
7015 unsigned long ulongval () { return (long) (sizeof (long)); }
7016 #include <stdio.h>
7017 #include <stdlib.h>
7019 main ()
7022 FILE *f = fopen ("conftest.val", "w");
7023 if (! f)
7024 exit (1);
7025 if (((long) (sizeof (long))) < 0)
7027 long i = longval ();
7028 if (i != ((long) (sizeof (long))))
7029 exit (1);
7030 fprintf (f, "%ld\n", i);
7032 else
7034 unsigned long i = ulongval ();
7035 if (i != ((long) (sizeof (long))))
7036 exit (1);
7037 fprintf (f, "%lu\n", i);
7039 exit (ferror (f) || fclose (f) != 0);
7042 return 0;
7044 _ACEOF
7045 rm -f conftest$ac_exeext
7046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7047 (eval $ac_link) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 (eval $ac_try) 2>&5
7053 ac_status=$?
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; }; then
7056 ac_cv_sizeof_long=`cat conftest.val`
7057 else
7058 echo "$as_me: program exited with status $ac_status" >&5
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7062 ( exit $ac_status )
7063 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7064 See \`config.log' for more details." >&5
7065 echo "$as_me: error: cannot compute sizeof (long), 77
7066 See \`config.log' for more details." >&2;}
7067 { (exit 1); exit 1; }; }
7069 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7072 rm -f conftest.val
7073 else
7074 ac_cv_sizeof_long=0
7077 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7078 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7079 cat >>confdefs.h <<_ACEOF
7080 #define SIZEOF_LONG $ac_cv_sizeof_long
7081 _ACEOF
7084 echo "$as_me:$LINENO: checking for void *" >&5
7085 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7086 if test "${ac_cv_type_void_p+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089 cat >conftest.$ac_ext <<_ACEOF
7090 /* confdefs.h. */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095 $ac_includes_default
7097 main ()
7099 if ((void * *) 0)
7100 return 0;
7101 if (sizeof (void *))
7102 return 0;
7104 return 0;
7106 _ACEOF
7107 rm -f conftest.$ac_objext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7109 (eval $ac_compile) 2>conftest.er1
7110 ac_status=$?
7111 grep -v '^ *+' conftest.er1 >conftest.err
7112 rm -f conftest.er1
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try='test -z "$ac_c_werror_flag"
7117 || test ! -s conftest.err'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 (eval $ac_try) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; } &&
7123 { ac_try='test -s conftest.$ac_objext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 ac_cv_type_void_p=yes
7130 else
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 ac_cv_type_void_p=no
7136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7138 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7139 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7141 echo "$as_me:$LINENO: checking size of void *" >&5
7142 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7143 if test "${ac_cv_sizeof_void_p+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146 if test "$ac_cv_type_void_p" = yes; then
7147 # The cast to unsigned long works around a bug in the HP C Compiler
7148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7150 # This bug is HP SR number 8606223364.
7151 if test "$cross_compiling" = yes; then
7152 # Depending upon the size, compute the lo and hi bounds.
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 $ac_includes_default
7161 main ()
7163 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7164 test_array [0] = 0
7167 return 0;
7169 _ACEOF
7170 rm -f conftest.$ac_objext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7172 (eval $ac_compile) 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try='test -z "$ac_c_werror_flag"
7180 || test ! -s conftest.err'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 (eval $ac_try) 2>&5
7183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try='test -s conftest.$ac_objext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 (eval $ac_try) 2>&5
7189 ac_status=$?
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7192 ac_lo=0 ac_mid=0
7193 while :; do
7194 cat >conftest.$ac_ext <<_ACEOF
7195 /* confdefs.h. */
7196 _ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 $ac_includes_default
7202 main ()
7204 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7205 test_array [0] = 0
7208 return 0;
7210 _ACEOF
7211 rm -f conftest.$ac_objext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7213 (eval $ac_compile) 2>conftest.er1
7214 ac_status=$?
7215 grep -v '^ *+' conftest.er1 >conftest.err
7216 rm -f conftest.er1
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try='test -z "$ac_c_werror_flag"
7221 || test ! -s conftest.err'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 (eval $ac_try) 2>&5
7224 ac_status=$?
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; } &&
7227 { ac_try='test -s conftest.$ac_objext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 (eval $ac_try) 2>&5
7230 ac_status=$?
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 ac_hi=$ac_mid; break
7234 else
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.$ac_ext >&5
7238 ac_lo=`expr $ac_mid + 1`
7239 if test $ac_lo -le $ac_mid; then
7240 ac_lo= ac_hi=
7241 break
7243 ac_mid=`expr 2 '*' $ac_mid + 1`
7245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7246 done
7247 else
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7251 cat >conftest.$ac_ext <<_ACEOF
7252 /* confdefs.h. */
7253 _ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h. */
7257 $ac_includes_default
7259 main ()
7261 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7262 test_array [0] = 0
7265 return 0;
7267 _ACEOF
7268 rm -f conftest.$ac_objext
7269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270 (eval $ac_compile) 2>conftest.er1
7271 ac_status=$?
7272 grep -v '^ *+' conftest.er1 >conftest.err
7273 rm -f conftest.er1
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try='test -z "$ac_c_werror_flag"
7278 || test ! -s conftest.err'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; } &&
7284 { ac_try='test -s conftest.$ac_objext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 (eval $ac_try) 2>&5
7287 ac_status=$?
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 ac_hi=-1 ac_mid=-1
7291 while :; do
7292 cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h. */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 $ac_includes_default
7300 main ()
7302 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7303 test_array [0] = 0
7306 return 0;
7308 _ACEOF
7309 rm -f conftest.$ac_objext
7310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7311 (eval $ac_compile) 2>conftest.er1
7312 ac_status=$?
7313 grep -v '^ *+' conftest.er1 >conftest.err
7314 rm -f conftest.er1
7315 cat conftest.err >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } &&
7318 { ac_try='test -z "$ac_c_werror_flag"
7319 || test ! -s conftest.err'
7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321 (eval $ac_try) 2>&5
7322 ac_status=$?
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); }; } &&
7325 { ac_try='test -s conftest.$ac_objext'
7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327 (eval $ac_try) 2>&5
7328 ac_status=$?
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; }; then
7331 ac_lo=$ac_mid; break
7332 else
7333 echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7336 ac_hi=`expr '(' $ac_mid ')' - 1`
7337 if test $ac_mid -le $ac_hi; then
7338 ac_lo= ac_hi=
7339 break
7341 ac_mid=`expr 2 '*' $ac_mid`
7343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7344 done
7345 else
7346 echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7349 ac_lo= ac_hi=
7351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7354 # Binary search between lo and hi bounds.
7355 while test "x$ac_lo" != "x$ac_hi"; do
7356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7357 cat >conftest.$ac_ext <<_ACEOF
7358 /* confdefs.h. */
7359 _ACEOF
7360 cat confdefs.h >>conftest.$ac_ext
7361 cat >>conftest.$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7363 $ac_includes_default
7365 main ()
7367 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7368 test_array [0] = 0
7371 return 0;
7373 _ACEOF
7374 rm -f conftest.$ac_objext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376 (eval $ac_compile) 2>conftest.er1
7377 ac_status=$?
7378 grep -v '^ *+' conftest.er1 >conftest.err
7379 rm -f conftest.er1
7380 cat conftest.err >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } &&
7383 { ac_try='test -z "$ac_c_werror_flag"
7384 || test ! -s conftest.err'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 (eval $ac_try) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; } &&
7390 { ac_try='test -s conftest.$ac_objext'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 (eval $ac_try) 2>&5
7393 ac_status=$?
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; }; then
7396 ac_hi=$ac_mid
7397 else
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7401 ac_lo=`expr '(' $ac_mid ')' + 1`
7403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7404 done
7405 case $ac_lo in
7406 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7407 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7408 See \`config.log' for more details." >&5
7409 echo "$as_me: error: cannot compute sizeof (void *), 77
7410 See \`config.log' for more details." >&2;}
7411 { (exit 1); exit 1; }; } ;;
7412 esac
7413 else
7414 if test "$cross_compiling" = yes; then
7415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7416 See \`config.log' for more details." >&5
7417 echo "$as_me: error: cannot run test program while cross compiling
7418 See \`config.log' for more details." >&2;}
7419 { (exit 1); exit 1; }; }
7420 else
7421 cat >conftest.$ac_ext <<_ACEOF
7422 /* confdefs.h. */
7423 _ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427 $ac_includes_default
7428 long longval () { return (long) (sizeof (void *)); }
7429 unsigned long ulongval () { return (long) (sizeof (void *)); }
7430 #include <stdio.h>
7431 #include <stdlib.h>
7433 main ()
7436 FILE *f = fopen ("conftest.val", "w");
7437 if (! f)
7438 exit (1);
7439 if (((long) (sizeof (void *))) < 0)
7441 long i = longval ();
7442 if (i != ((long) (sizeof (void *))))
7443 exit (1);
7444 fprintf (f, "%ld\n", i);
7446 else
7448 unsigned long i = ulongval ();
7449 if (i != ((long) (sizeof (void *))))
7450 exit (1);
7451 fprintf (f, "%lu\n", i);
7453 exit (ferror (f) || fclose (f) != 0);
7456 return 0;
7458 _ACEOF
7459 rm -f conftest$ac_exeext
7460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7461 (eval $ac_link) 2>&5
7462 ac_status=$?
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; }; then
7470 ac_cv_sizeof_void_p=`cat conftest.val`
7471 else
7472 echo "$as_me: program exited with status $ac_status" >&5
7473 echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7476 ( exit $ac_status )
7477 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7478 See \`config.log' for more details." >&5
7479 echo "$as_me: error: cannot compute sizeof (void *), 77
7480 See \`config.log' for more details." >&2;}
7481 { (exit 1); exit 1; }; }
7483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7486 rm -f conftest.val
7487 else
7488 ac_cv_sizeof_void_p=0
7491 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7492 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7493 cat >>confdefs.h <<_ACEOF
7494 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7495 _ACEOF
7498 echo "$as_me:$LINENO: checking for short" >&5
7499 echo $ECHO_N "checking for short... $ECHO_C" >&6
7500 if test "${ac_cv_type_short+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503 cat >conftest.$ac_ext <<_ACEOF
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 $ac_includes_default
7511 main ()
7513 if ((short *) 0)
7514 return 0;
7515 if (sizeof (short))
7516 return 0;
7518 return 0;
7520 _ACEOF
7521 rm -f conftest.$ac_objext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>conftest.er1
7524 ac_status=$?
7525 grep -v '^ *+' conftest.er1 >conftest.err
7526 rm -f conftest.er1
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try='test -z "$ac_c_werror_flag"
7531 || test ! -s conftest.err'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 (eval $ac_try) 2>&5
7534 ac_status=$?
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; } &&
7537 { ac_try='test -s conftest.$ac_objext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 (eval $ac_try) 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_cv_type_short=yes
7544 else
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7548 ac_cv_type_short=no
7550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7552 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7553 echo "${ECHO_T}$ac_cv_type_short" >&6
7555 echo "$as_me:$LINENO: checking size of short" >&5
7556 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7557 if test "${ac_cv_sizeof_short+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560 if test "$ac_cv_type_short" = yes; then
7561 # The cast to unsigned long works around a bug in the HP C Compiler
7562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7564 # This bug is HP SR number 8606223364.
7565 if test "$cross_compiling" = yes; then
7566 # Depending upon the size, compute the lo and hi bounds.
7567 cat >conftest.$ac_ext <<_ACEOF
7568 /* confdefs.h. */
7569 _ACEOF
7570 cat confdefs.h >>conftest.$ac_ext
7571 cat >>conftest.$ac_ext <<_ACEOF
7572 /* end confdefs.h. */
7573 $ac_includes_default
7575 main ()
7577 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7578 test_array [0] = 0
7581 return 0;
7583 _ACEOF
7584 rm -f conftest.$ac_objext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7586 (eval $ac_compile) 2>conftest.er1
7587 ac_status=$?
7588 grep -v '^ *+' conftest.er1 >conftest.err
7589 rm -f conftest.er1
7590 cat conftest.err >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } &&
7593 { ac_try='test -z "$ac_c_werror_flag"
7594 || test ! -s conftest.err'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 (eval $ac_try) 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try='test -s conftest.$ac_objext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 (eval $ac_try) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_lo=0 ac_mid=0
7607 while :; do
7608 cat >conftest.$ac_ext <<_ACEOF
7609 /* confdefs.h. */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7614 $ac_includes_default
7616 main ()
7618 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7619 test_array [0] = 0
7622 return 0;
7624 _ACEOF
7625 rm -f conftest.$ac_objext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7627 (eval $ac_compile) 2>conftest.er1
7628 ac_status=$?
7629 grep -v '^ *+' conftest.er1 >conftest.err
7630 rm -f conftest.er1
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -z "$ac_c_werror_flag"
7635 || test ! -s conftest.err'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 (eval $ac_try) 2>&5
7638 ac_status=$?
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; } &&
7641 { ac_try='test -s conftest.$ac_objext'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 (eval $ac_try) 2>&5
7644 ac_status=$?
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; }; then
7647 ac_hi=$ac_mid; break
7648 else
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7652 ac_lo=`expr $ac_mid + 1`
7653 if test $ac_lo -le $ac_mid; then
7654 ac_lo= ac_hi=
7655 break
7657 ac_mid=`expr 2 '*' $ac_mid + 1`
7659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7660 done
7661 else
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7665 cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h. */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 $ac_includes_default
7673 main ()
7675 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7676 test_array [0] = 0
7679 return 0;
7681 _ACEOF
7682 rm -f conftest.$ac_objext
7683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7684 (eval $ac_compile) 2>conftest.er1
7685 ac_status=$?
7686 grep -v '^ *+' conftest.er1 >conftest.err
7687 rm -f conftest.er1
7688 cat conftest.err >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } &&
7691 { ac_try='test -z "$ac_c_werror_flag"
7692 || test ! -s conftest.err'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 (eval $ac_try) 2>&5
7695 ac_status=$?
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; } &&
7698 { ac_try='test -s conftest.$ac_objext'
7699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700 (eval $ac_try) 2>&5
7701 ac_status=$?
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; }; then
7704 ac_hi=-1 ac_mid=-1
7705 while :; do
7706 cat >conftest.$ac_ext <<_ACEOF
7707 /* confdefs.h. */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 $ac_includes_default
7714 main ()
7716 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7717 test_array [0] = 0
7720 return 0;
7722 _ACEOF
7723 rm -f conftest.$ac_objext
7724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7725 (eval $ac_compile) 2>conftest.er1
7726 ac_status=$?
7727 grep -v '^ *+' conftest.er1 >conftest.err
7728 rm -f conftest.er1
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } &&
7732 { ac_try='test -z "$ac_c_werror_flag"
7733 || test ! -s conftest.err'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; } &&
7739 { ac_try='test -s conftest.$ac_objext'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 (eval $ac_try) 2>&5
7742 ac_status=$?
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; }; then
7745 ac_lo=$ac_mid; break
7746 else
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7750 ac_hi=`expr '(' $ac_mid ')' - 1`
7751 if test $ac_mid -le $ac_hi; then
7752 ac_lo= ac_hi=
7753 break
7755 ac_mid=`expr 2 '*' $ac_mid`
7757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7758 done
7759 else
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7763 ac_lo= ac_hi=
7765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7768 # Binary search between lo and hi bounds.
7769 while test "x$ac_lo" != "x$ac_hi"; do
7770 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7771 cat >conftest.$ac_ext <<_ACEOF
7772 /* confdefs.h. */
7773 _ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7777 $ac_includes_default
7779 main ()
7781 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7782 test_array [0] = 0
7785 return 0;
7787 _ACEOF
7788 rm -f conftest.$ac_objext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790 (eval $ac_compile) 2>conftest.er1
7791 ac_status=$?
7792 grep -v '^ *+' conftest.er1 >conftest.err
7793 rm -f conftest.er1
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try='test -z "$ac_c_werror_flag"
7798 || test ! -s conftest.err'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 (eval $ac_try) 2>&5
7801 ac_status=$?
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; } &&
7804 { ac_try='test -s conftest.$ac_objext'
7805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806 (eval $ac_try) 2>&5
7807 ac_status=$?
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); }; }; then
7810 ac_hi=$ac_mid
7811 else
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7815 ac_lo=`expr '(' $ac_mid ')' + 1`
7817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7818 done
7819 case $ac_lo in
7820 ?*) ac_cv_sizeof_short=$ac_lo;;
7821 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7822 See \`config.log' for more details." >&5
7823 echo "$as_me: error: cannot compute sizeof (short), 77
7824 See \`config.log' for more details." >&2;}
7825 { (exit 1); exit 1; }; } ;;
7826 esac
7827 else
7828 if test "$cross_compiling" = yes; then
7829 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7830 See \`config.log' for more details." >&5
7831 echo "$as_me: error: cannot run test program while cross compiling
7832 See \`config.log' for more details." >&2;}
7833 { (exit 1); exit 1; }; }
7834 else
7835 cat >conftest.$ac_ext <<_ACEOF
7836 /* confdefs.h. */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 $ac_includes_default
7842 long longval () { return (long) (sizeof (short)); }
7843 unsigned long ulongval () { return (long) (sizeof (short)); }
7844 #include <stdio.h>
7845 #include <stdlib.h>
7847 main ()
7850 FILE *f = fopen ("conftest.val", "w");
7851 if (! f)
7852 exit (1);
7853 if (((long) (sizeof (short))) < 0)
7855 long i = longval ();
7856 if (i != ((long) (sizeof (short))))
7857 exit (1);
7858 fprintf (f, "%ld\n", i);
7860 else
7862 unsigned long i = ulongval ();
7863 if (i != ((long) (sizeof (short))))
7864 exit (1);
7865 fprintf (f, "%lu\n", i);
7867 exit (ferror (f) || fclose (f) != 0);
7870 return 0;
7872 _ACEOF
7873 rm -f conftest$ac_exeext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7875 (eval $ac_link) 2>&5
7876 ac_status=$?
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880 (eval $ac_try) 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 ac_cv_sizeof_short=`cat conftest.val`
7885 else
7886 echo "$as_me: program exited with status $ac_status" >&5
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 ( exit $ac_status )
7891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7892 See \`config.log' for more details." >&5
7893 echo "$as_me: error: cannot compute sizeof (short), 77
7894 See \`config.log' for more details." >&2;}
7895 { (exit 1); exit 1; }; }
7897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7900 rm -f conftest.val
7901 else
7902 ac_cv_sizeof_short=0
7905 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7906 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7907 cat >>confdefs.h <<_ACEOF
7908 #define SIZEOF_SHORT $ac_cv_sizeof_short
7909 _ACEOF
7912 echo "$as_me:$LINENO: checking for float" >&5
7913 echo $ECHO_N "checking for float... $ECHO_C" >&6
7914 if test "${ac_cv_type_float+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917 cat >conftest.$ac_ext <<_ACEOF
7918 /* confdefs.h. */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7923 $ac_includes_default
7925 main ()
7927 if ((float *) 0)
7928 return 0;
7929 if (sizeof (float))
7930 return 0;
7932 return 0;
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937 (eval $ac_compile) 2>conftest.er1
7938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try='test -z "$ac_c_werror_flag"
7945 || test ! -s conftest.err'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 (eval $ac_try) 2>&5
7948 ac_status=$?
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; } &&
7951 { ac_try='test -s conftest.$ac_objext'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 (eval $ac_try) 2>&5
7954 ac_status=$?
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7957 ac_cv_type_float=yes
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 ac_cv_type_float=no
7964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7966 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
7967 echo "${ECHO_T}$ac_cv_type_float" >&6
7969 echo "$as_me:$LINENO: checking size of float" >&5
7970 echo $ECHO_N "checking size of float... $ECHO_C" >&6
7971 if test "${ac_cv_sizeof_float+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974 if test "$ac_cv_type_float" = yes; then
7975 # The cast to unsigned long works around a bug in the HP C Compiler
7976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7978 # This bug is HP SR number 8606223364.
7979 if test "$cross_compiling" = yes; then
7980 # Depending upon the size, compute the lo and hi bounds.
7981 cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h. */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 $ac_includes_default
7989 main ()
7991 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
7992 test_array [0] = 0
7995 return 0;
7997 _ACEOF
7998 rm -f conftest.$ac_objext
7999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8000 (eval $ac_compile) 2>conftest.er1
8001 ac_status=$?
8002 grep -v '^ *+' conftest.er1 >conftest.err
8003 rm -f conftest.er1
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try='test -z "$ac_c_werror_flag"
8008 || test ! -s conftest.err'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; } &&
8014 { ac_try='test -s conftest.$ac_objext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 ac_lo=0 ac_mid=0
8021 while :; do
8022 cat >conftest.$ac_ext <<_ACEOF
8023 /* confdefs.h. */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 $ac_includes_default
8030 main ()
8032 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8033 test_array [0] = 0
8036 return 0;
8038 _ACEOF
8039 rm -f conftest.$ac_objext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8041 (eval $ac_compile) 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try='test -z "$ac_c_werror_flag"
8049 || test ! -s conftest.err'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 (eval $ac_try) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest.$ac_objext'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 (eval $ac_try) 2>&5
8058 ac_status=$?
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; }; then
8061 ac_hi=$ac_mid; break
8062 else
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 ac_lo=`expr $ac_mid + 1`
8067 if test $ac_lo -le $ac_mid; then
8068 ac_lo= ac_hi=
8069 break
8071 ac_mid=`expr 2 '*' $ac_mid + 1`
8073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8074 done
8075 else
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8079 cat >conftest.$ac_ext <<_ACEOF
8080 /* confdefs.h. */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 $ac_includes_default
8087 main ()
8089 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8090 test_array [0] = 0
8093 return 0;
8095 _ACEOF
8096 rm -f conftest.$ac_objext
8097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8098 (eval $ac_compile) 2>conftest.er1
8099 ac_status=$?
8100 grep -v '^ *+' conftest.er1 >conftest.err
8101 rm -f conftest.er1
8102 cat conftest.err >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } &&
8105 { ac_try='test -z "$ac_c_werror_flag"
8106 || test ! -s conftest.err'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 (eval $ac_try) 2>&5
8109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; } &&
8112 { ac_try='test -s conftest.$ac_objext'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 (eval $ac_try) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; }; then
8118 ac_hi=-1 ac_mid=-1
8119 while :; do
8120 cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h. */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8126 $ac_includes_default
8128 main ()
8130 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8131 test_array [0] = 0
8134 return 0;
8136 _ACEOF
8137 rm -f conftest.$ac_objext
8138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8139 (eval $ac_compile) 2>conftest.er1
8140 ac_status=$?
8141 grep -v '^ *+' conftest.er1 >conftest.err
8142 rm -f conftest.er1
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try='test -z "$ac_c_werror_flag"
8147 || test ! -s conftest.err'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 (eval $ac_try) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; } &&
8153 { ac_try='test -s conftest.$ac_objext'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155 (eval $ac_try) 2>&5
8156 ac_status=$?
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8159 ac_lo=$ac_mid; break
8160 else
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8164 ac_hi=`expr '(' $ac_mid ')' - 1`
8165 if test $ac_mid -le $ac_hi; then
8166 ac_lo= ac_hi=
8167 break
8169 ac_mid=`expr 2 '*' $ac_mid`
8171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8172 done
8173 else
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8177 ac_lo= ac_hi=
8179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8182 # Binary search between lo and hi bounds.
8183 while test "x$ac_lo" != "x$ac_hi"; do
8184 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8185 cat >conftest.$ac_ext <<_ACEOF
8186 /* confdefs.h. */
8187 _ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8191 $ac_includes_default
8193 main ()
8195 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8196 test_array [0] = 0
8199 return 0;
8201 _ACEOF
8202 rm -f conftest.$ac_objext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8204 (eval $ac_compile) 2>conftest.er1
8205 ac_status=$?
8206 grep -v '^ *+' conftest.er1 >conftest.err
8207 rm -f conftest.er1
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try='test -z "$ac_c_werror_flag"
8212 || test ! -s conftest.err'
8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214 (eval $ac_try) 2>&5
8215 ac_status=$?
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; } &&
8218 { ac_try='test -s conftest.$ac_objext'
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220 (eval $ac_try) 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8224 ac_hi=$ac_mid
8225 else
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8229 ac_lo=`expr '(' $ac_mid ')' + 1`
8231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8232 done
8233 case $ac_lo in
8234 ?*) ac_cv_sizeof_float=$ac_lo;;
8235 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8236 See \`config.log' for more details." >&5
8237 echo "$as_me: error: cannot compute sizeof (float), 77
8238 See \`config.log' for more details." >&2;}
8239 { (exit 1); exit 1; }; } ;;
8240 esac
8241 else
8242 if test "$cross_compiling" = yes; then
8243 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8244 See \`config.log' for more details." >&5
8245 echo "$as_me: error: cannot run test program while cross compiling
8246 See \`config.log' for more details." >&2;}
8247 { (exit 1); exit 1; }; }
8248 else
8249 cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h. */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 $ac_includes_default
8256 long longval () { return (long) (sizeof (float)); }
8257 unsigned long ulongval () { return (long) (sizeof (float)); }
8258 #include <stdio.h>
8259 #include <stdlib.h>
8261 main ()
8264 FILE *f = fopen ("conftest.val", "w");
8265 if (! f)
8266 exit (1);
8267 if (((long) (sizeof (float))) < 0)
8269 long i = longval ();
8270 if (i != ((long) (sizeof (float))))
8271 exit (1);
8272 fprintf (f, "%ld\n", i);
8274 else
8276 unsigned long i = ulongval ();
8277 if (i != ((long) (sizeof (float))))
8278 exit (1);
8279 fprintf (f, "%lu\n", i);
8281 exit (ferror (f) || fclose (f) != 0);
8284 return 0;
8286 _ACEOF
8287 rm -f conftest$ac_exeext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8289 (eval $ac_link) 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 (eval $ac_try) 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 ac_cv_sizeof_float=`cat conftest.val`
8299 else
8300 echo "$as_me: program exited with status $ac_status" >&5
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 ( exit $ac_status )
8305 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8306 See \`config.log' for more details." >&5
8307 echo "$as_me: error: cannot compute sizeof (float), 77
8308 See \`config.log' for more details." >&2;}
8309 { (exit 1); exit 1; }; }
8311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8314 rm -f conftest.val
8315 else
8316 ac_cv_sizeof_float=0
8319 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8320 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8321 cat >>confdefs.h <<_ACEOF
8322 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8323 _ACEOF
8326 echo "$as_me:$LINENO: checking for double" >&5
8327 echo $ECHO_N "checking for double... $ECHO_C" >&6
8328 if test "${ac_cv_type_double+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 else
8331 cat >conftest.$ac_ext <<_ACEOF
8332 /* confdefs.h. */
8333 _ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 $ac_includes_default
8339 main ()
8341 if ((double *) 0)
8342 return 0;
8343 if (sizeof (double))
8344 return 0;
8346 return 0;
8348 _ACEOF
8349 rm -f conftest.$ac_objext
8350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8351 (eval $ac_compile) 2>conftest.er1
8352 ac_status=$?
8353 grep -v '^ *+' conftest.er1 >conftest.err
8354 rm -f conftest.er1
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -z "$ac_c_werror_flag"
8359 || test ! -s conftest.err'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 (eval $ac_try) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; } &&
8365 { ac_try='test -s conftest.$ac_objext'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 (eval $ac_try) 2>&5
8368 ac_status=$?
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; }; then
8371 ac_cv_type_double=yes
8372 else
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8376 ac_cv_type_double=no
8378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8380 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8381 echo "${ECHO_T}$ac_cv_type_double" >&6
8383 echo "$as_me:$LINENO: checking size of double" >&5
8384 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8385 if test "${ac_cv_sizeof_double+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388 if test "$ac_cv_type_double" = yes; then
8389 # The cast to unsigned long works around a bug in the HP C Compiler
8390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8392 # This bug is HP SR number 8606223364.
8393 if test "$cross_compiling" = yes; then
8394 # Depending upon the size, compute the lo and hi bounds.
8395 cat >conftest.$ac_ext <<_ACEOF
8396 /* confdefs.h. */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 $ac_includes_default
8403 main ()
8405 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8406 test_array [0] = 0
8409 return 0;
8411 _ACEOF
8412 rm -f conftest.$ac_objext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8414 (eval $ac_compile) 2>conftest.er1
8415 ac_status=$?
8416 grep -v '^ *+' conftest.er1 >conftest.err
8417 rm -f conftest.er1
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try='test -z "$ac_c_werror_flag"
8422 || test ! -s conftest.err'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 (eval $ac_try) 2>&5
8425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; } &&
8428 { ac_try='test -s conftest.$ac_objext'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430 (eval $ac_try) 2>&5
8431 ac_status=$?
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8434 ac_lo=0 ac_mid=0
8435 while :; do
8436 cat >conftest.$ac_ext <<_ACEOF
8437 /* confdefs.h. */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 $ac_includes_default
8444 main ()
8446 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8447 test_array [0] = 0
8450 return 0;
8452 _ACEOF
8453 rm -f conftest.$ac_objext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8455 (eval $ac_compile) 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
8462 { ac_try='test -z "$ac_c_werror_flag"
8463 || test ! -s conftest.err'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 (eval $ac_try) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; } &&
8469 { ac_try='test -s conftest.$ac_objext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 (eval $ac_try) 2>&5
8472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_hi=$ac_mid; break
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 ac_lo=`expr $ac_mid + 1`
8481 if test $ac_lo -le $ac_mid; then
8482 ac_lo= ac_hi=
8483 break
8485 ac_mid=`expr 2 '*' $ac_mid + 1`
8487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8488 done
8489 else
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8493 cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h. */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 $ac_includes_default
8501 main ()
8503 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8504 test_array [0] = 0
8507 return 0;
8509 _ACEOF
8510 rm -f conftest.$ac_objext
8511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8512 (eval $ac_compile) 2>conftest.er1
8513 ac_status=$?
8514 grep -v '^ *+' conftest.er1 >conftest.err
8515 rm -f conftest.er1
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } &&
8519 { ac_try='test -z "$ac_c_werror_flag"
8520 || test ! -s conftest.err'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 (eval $ac_try) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; } &&
8526 { ac_try='test -s conftest.$ac_objext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 (eval $ac_try) 2>&5
8529 ac_status=$?
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 ac_hi=-1 ac_mid=-1
8533 while :; do
8534 cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h. */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 $ac_includes_default
8542 main ()
8544 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8545 test_array [0] = 0
8548 return 0;
8550 _ACEOF
8551 rm -f conftest.$ac_objext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8553 (eval $ac_compile) 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_c_werror_flag"
8561 || test ! -s conftest.err'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 (eval $ac_try) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try='test -s conftest.$ac_objext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 (eval $ac_try) 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_lo=$ac_mid; break
8574 else
8575 echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8578 ac_hi=`expr '(' $ac_mid ')' - 1`
8579 if test $ac_mid -le $ac_hi; then
8580 ac_lo= ac_hi=
8581 break
8583 ac_mid=`expr 2 '*' $ac_mid`
8585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8586 done
8587 else
8588 echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8591 ac_lo= ac_hi=
8593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8596 # Binary search between lo and hi bounds.
8597 while test "x$ac_lo" != "x$ac_hi"; do
8598 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8599 cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h. */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 $ac_includes_default
8607 main ()
8609 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8610 test_array [0] = 0
8613 return 0;
8615 _ACEOF
8616 rm -f conftest.$ac_objext
8617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8618 (eval $ac_compile) 2>conftest.er1
8619 ac_status=$?
8620 grep -v '^ *+' conftest.er1 >conftest.err
8621 rm -f conftest.er1
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try='test -z "$ac_c_werror_flag"
8626 || test ! -s conftest.err'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 (eval $ac_try) 2>&5
8629 ac_status=$?
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; } &&
8632 { ac_try='test -s conftest.$ac_objext'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 (eval $ac_try) 2>&5
8635 ac_status=$?
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8638 ac_hi=$ac_mid
8639 else
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8643 ac_lo=`expr '(' $ac_mid ')' + 1`
8645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8646 done
8647 case $ac_lo in
8648 ?*) ac_cv_sizeof_double=$ac_lo;;
8649 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8650 See \`config.log' for more details." >&5
8651 echo "$as_me: error: cannot compute sizeof (double), 77
8652 See \`config.log' for more details." >&2;}
8653 { (exit 1); exit 1; }; } ;;
8654 esac
8655 else
8656 if test "$cross_compiling" = yes; then
8657 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8658 See \`config.log' for more details." >&5
8659 echo "$as_me: error: cannot run test program while cross compiling
8660 See \`config.log' for more details." >&2;}
8661 { (exit 1); exit 1; }; }
8662 else
8663 cat >conftest.$ac_ext <<_ACEOF
8664 /* confdefs.h. */
8665 _ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 $ac_includes_default
8670 long longval () { return (long) (sizeof (double)); }
8671 unsigned long ulongval () { return (long) (sizeof (double)); }
8672 #include <stdio.h>
8673 #include <stdlib.h>
8675 main ()
8678 FILE *f = fopen ("conftest.val", "w");
8679 if (! f)
8680 exit (1);
8681 if (((long) (sizeof (double))) < 0)
8683 long i = longval ();
8684 if (i != ((long) (sizeof (double))))
8685 exit (1);
8686 fprintf (f, "%ld\n", i);
8688 else
8690 unsigned long i = ulongval ();
8691 if (i != ((long) (sizeof (double))))
8692 exit (1);
8693 fprintf (f, "%lu\n", i);
8695 exit (ferror (f) || fclose (f) != 0);
8698 return 0;
8700 _ACEOF
8701 rm -f conftest$ac_exeext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703 (eval $ac_link) 2>&5
8704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 (eval $ac_try) 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_sizeof_double=`cat conftest.val`
8713 else
8714 echo "$as_me: program exited with status $ac_status" >&5
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8718 ( exit $ac_status )
8719 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8720 See \`config.log' for more details." >&5
8721 echo "$as_me: error: cannot compute sizeof (double), 77
8722 See \`config.log' for more details." >&2;}
8723 { (exit 1); exit 1; }; }
8725 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8728 rm -f conftest.val
8729 else
8730 ac_cv_sizeof_double=0
8733 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8734 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8735 cat >>confdefs.h <<_ACEOF
8736 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8737 _ACEOF
8740 echo "$as_me:$LINENO: checking for fpos_t" >&5
8741 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8742 if test "${ac_cv_type_fpos_t+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745 cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h. */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 $ac_includes_default
8753 main ()
8755 if ((fpos_t *) 0)
8756 return 0;
8757 if (sizeof (fpos_t))
8758 return 0;
8760 return 0;
8762 _ACEOF
8763 rm -f conftest.$ac_objext
8764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8765 (eval $ac_compile) 2>conftest.er1
8766 ac_status=$?
8767 grep -v '^ *+' conftest.er1 >conftest.err
8768 rm -f conftest.er1
8769 cat conftest.err >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } &&
8772 { ac_try='test -z "$ac_c_werror_flag"
8773 || test ! -s conftest.err'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 (eval $ac_try) 2>&5
8776 ac_status=$?
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; } &&
8779 { ac_try='test -s conftest.$ac_objext'
8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 (eval $ac_try) 2>&5
8782 ac_status=$?
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; }; then
8785 ac_cv_type_fpos_t=yes
8786 else
8787 echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.$ac_ext >&5
8790 ac_cv_type_fpos_t=no
8792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8794 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8795 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8797 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8798 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8799 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 else
8802 if test "$ac_cv_type_fpos_t" = yes; then
8803 # The cast to unsigned long works around a bug in the HP C Compiler
8804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8806 # This bug is HP SR number 8606223364.
8807 if test "$cross_compiling" = yes; then
8808 # Depending upon the size, compute the lo and hi bounds.
8809 cat >conftest.$ac_ext <<_ACEOF
8810 /* confdefs.h. */
8811 _ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h. */
8815 $ac_includes_default
8817 main ()
8819 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8820 test_array [0] = 0
8823 return 0;
8825 _ACEOF
8826 rm -f conftest.$ac_objext
8827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8828 (eval $ac_compile) 2>conftest.er1
8829 ac_status=$?
8830 grep -v '^ *+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } &&
8835 { ac_try='test -z "$ac_c_werror_flag"
8836 || test ! -s conftest.err'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 (eval $ac_try) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; } &&
8842 { ac_try='test -s conftest.$ac_objext'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; }; then
8848 ac_lo=0 ac_mid=0
8849 while :; do
8850 cat >conftest.$ac_ext <<_ACEOF
8851 /* confdefs.h. */
8852 _ACEOF
8853 cat confdefs.h >>conftest.$ac_ext
8854 cat >>conftest.$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8856 $ac_includes_default
8858 main ()
8860 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8861 test_array [0] = 0
8864 return 0;
8866 _ACEOF
8867 rm -f conftest.$ac_objext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8869 (eval $ac_compile) 2>conftest.er1
8870 ac_status=$?
8871 grep -v '^ *+' conftest.er1 >conftest.err
8872 rm -f conftest.er1
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try='test -z "$ac_c_werror_flag"
8877 || test ! -s conftest.err'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 (eval $ac_try) 2>&5
8880 ac_status=$?
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try='test -s conftest.$ac_objext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 ac_hi=$ac_mid; break
8890 else
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8894 ac_lo=`expr $ac_mid + 1`
8895 if test $ac_lo -le $ac_mid; then
8896 ac_lo= ac_hi=
8897 break
8899 ac_mid=`expr 2 '*' $ac_mid + 1`
8901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8902 done
8903 else
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8907 cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h. */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913 $ac_includes_default
8915 main ()
8917 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
8918 test_array [0] = 0
8921 return 0;
8923 _ACEOF
8924 rm -f conftest.$ac_objext
8925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8926 (eval $ac_compile) 2>conftest.er1
8927 ac_status=$?
8928 grep -v '^ *+' conftest.er1 >conftest.err
8929 rm -f conftest.er1
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } &&
8933 { ac_try='test -z "$ac_c_werror_flag"
8934 || test ! -s conftest.err'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 (eval $ac_try) 2>&5
8937 ac_status=$?
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; } &&
8940 { ac_try='test -s conftest.$ac_objext'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 (eval $ac_try) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
8946 ac_hi=-1 ac_mid=-1
8947 while :; do
8948 cat >conftest.$ac_ext <<_ACEOF
8949 /* confdefs.h. */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 $ac_includes_default
8956 main ()
8958 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
8959 test_array [0] = 0
8962 return 0;
8964 _ACEOF
8965 rm -f conftest.$ac_objext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8967 (eval $ac_compile) 2>conftest.er1
8968 ac_status=$?
8969 grep -v '^ *+' conftest.er1 >conftest.err
8970 rm -f conftest.er1
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try='test -z "$ac_c_werror_flag"
8975 || test ! -s conftest.err'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 (eval $ac_try) 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try='test -s conftest.$ac_objext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 (eval $ac_try) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 ac_lo=$ac_mid; break
8988 else
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 ac_hi=`expr '(' $ac_mid ')' - 1`
8993 if test $ac_mid -le $ac_hi; then
8994 ac_lo= ac_hi=
8995 break
8997 ac_mid=`expr 2 '*' $ac_mid`
8999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9000 done
9001 else
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9005 ac_lo= ac_hi=
9007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9010 # Binary search between lo and hi bounds.
9011 while test "x$ac_lo" != "x$ac_hi"; do
9012 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9013 cat >conftest.$ac_ext <<_ACEOF
9014 /* confdefs.h. */
9015 _ACEOF
9016 cat confdefs.h >>conftest.$ac_ext
9017 cat >>conftest.$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019 $ac_includes_default
9021 main ()
9023 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9024 test_array [0] = 0
9027 return 0;
9029 _ACEOF
9030 rm -f conftest.$ac_objext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9032 (eval $ac_compile) 2>conftest.er1
9033 ac_status=$?
9034 grep -v '^ *+' conftest.er1 >conftest.err
9035 rm -f conftest.er1
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } &&
9039 { ac_try='test -z "$ac_c_werror_flag"
9040 || test ! -s conftest.err'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 (eval $ac_try) 2>&5
9043 ac_status=$?
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; } &&
9046 { ac_try='test -s conftest.$ac_objext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 (eval $ac_try) 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 ac_hi=$ac_mid
9053 else
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9057 ac_lo=`expr '(' $ac_mid ')' + 1`
9059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9060 done
9061 case $ac_lo in
9062 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9063 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9064 See \`config.log' for more details." >&5
9065 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9066 See \`config.log' for more details." >&2;}
9067 { (exit 1); exit 1; }; } ;;
9068 esac
9069 else
9070 if test "$cross_compiling" = yes; then
9071 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9072 See \`config.log' for more details." >&5
9073 echo "$as_me: error: cannot run test program while cross compiling
9074 See \`config.log' for more details." >&2;}
9075 { (exit 1); exit 1; }; }
9076 else
9077 cat >conftest.$ac_ext <<_ACEOF
9078 /* confdefs.h. */
9079 _ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h. */
9083 $ac_includes_default
9084 long longval () { return (long) (sizeof (fpos_t)); }
9085 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9086 #include <stdio.h>
9087 #include <stdlib.h>
9089 main ()
9092 FILE *f = fopen ("conftest.val", "w");
9093 if (! f)
9094 exit (1);
9095 if (((long) (sizeof (fpos_t))) < 0)
9097 long i = longval ();
9098 if (i != ((long) (sizeof (fpos_t))))
9099 exit (1);
9100 fprintf (f, "%ld\n", i);
9102 else
9104 unsigned long i = ulongval ();
9105 if (i != ((long) (sizeof (fpos_t))))
9106 exit (1);
9107 fprintf (f, "%lu\n", i);
9109 exit (ferror (f) || fclose (f) != 0);
9112 return 0;
9114 _ACEOF
9115 rm -f conftest$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117 (eval $ac_link) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 ac_cv_sizeof_fpos_t=`cat conftest.val`
9127 else
9128 echo "$as_me: program exited with status $ac_status" >&5
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 ( exit $ac_status )
9133 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9134 See \`config.log' for more details." >&5
9135 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9136 See \`config.log' for more details." >&2;}
9137 { (exit 1); exit 1; }; }
9139 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9142 rm -f conftest.val
9143 else
9144 ac_cv_sizeof_fpos_t=0
9147 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9148 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9149 cat >>confdefs.h <<_ACEOF
9150 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9151 _ACEOF
9154 echo "$as_me:$LINENO: checking for size_t" >&5
9155 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9156 if test "${ac_cv_type_size_t+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 else
9159 cat >conftest.$ac_ext <<_ACEOF
9160 /* confdefs.h. */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 $ac_includes_default
9167 main ()
9169 if ((size_t *) 0)
9170 return 0;
9171 if (sizeof (size_t))
9172 return 0;
9174 return 0;
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179 (eval $ac_compile) 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_cv_type_size_t=yes
9200 else
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9204 ac_cv_type_size_t=no
9206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9208 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9209 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9211 echo "$as_me:$LINENO: checking size of size_t" >&5
9212 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9213 if test "${ac_cv_sizeof_size_t+set}" = set; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 else
9216 if test "$ac_cv_type_size_t" = yes; then
9217 # The cast to unsigned long works around a bug in the HP C Compiler
9218 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9219 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9220 # This bug is HP SR number 8606223364.
9221 if test "$cross_compiling" = yes; then
9222 # Depending upon the size, compute the lo and hi bounds.
9223 cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h. */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 $ac_includes_default
9231 main ()
9233 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9234 test_array [0] = 0
9237 return 0;
9239 _ACEOF
9240 rm -f conftest.$ac_objext
9241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9242 (eval $ac_compile) 2>conftest.er1
9243 ac_status=$?
9244 grep -v '^ *+' conftest.er1 >conftest.err
9245 rm -f conftest.er1
9246 cat conftest.err >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } &&
9249 { ac_try='test -z "$ac_c_werror_flag"
9250 || test ! -s conftest.err'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 (eval $ac_try) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; } &&
9256 { ac_try='test -s conftest.$ac_objext'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 (eval $ac_try) 2>&5
9259 ac_status=$?
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; }; then
9262 ac_lo=0 ac_mid=0
9263 while :; do
9264 cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h. */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9270 $ac_includes_default
9272 main ()
9274 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9275 test_array [0] = 0
9278 return 0;
9280 _ACEOF
9281 rm -f conftest.$ac_objext
9282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9283 (eval $ac_compile) 2>conftest.er1
9284 ac_status=$?
9285 grep -v '^ *+' conftest.er1 >conftest.err
9286 rm -f conftest.er1
9287 cat conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } &&
9290 { ac_try='test -z "$ac_c_werror_flag"
9291 || test ! -s conftest.err'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 (eval $ac_try) 2>&5
9294 ac_status=$?
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; } &&
9297 { ac_try='test -s conftest.$ac_objext'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 (eval $ac_try) 2>&5
9300 ac_status=$?
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; }; then
9303 ac_hi=$ac_mid; break
9304 else
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9308 ac_lo=`expr $ac_mid + 1`
9309 if test $ac_lo -le $ac_mid; then
9310 ac_lo= ac_hi=
9311 break
9313 ac_mid=`expr 2 '*' $ac_mid + 1`
9315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9316 done
9317 else
9318 echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.$ac_ext >&5
9321 cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h. */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9327 $ac_includes_default
9329 main ()
9331 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9332 test_array [0] = 0
9335 return 0;
9337 _ACEOF
9338 rm -f conftest.$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340 (eval $ac_compile) 2>conftest.er1
9341 ac_status=$?
9342 grep -v '^ *+' conftest.er1 >conftest.err
9343 rm -f conftest.er1
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try='test -z "$ac_c_werror_flag"
9348 || test ! -s conftest.err'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 (eval $ac_try) 2>&5
9351 ac_status=$?
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; } &&
9354 { ac_try='test -s conftest.$ac_objext'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 (eval $ac_try) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 ac_hi=-1 ac_mid=-1
9361 while :; do
9362 cat >conftest.$ac_ext <<_ACEOF
9363 /* confdefs.h. */
9364 _ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 $ac_includes_default
9370 main ()
9372 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9373 test_array [0] = 0
9376 return 0;
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381 (eval $ac_compile) 2>conftest.er1
9382 ac_status=$?
9383 grep -v '^ *+' conftest.er1 >conftest.err
9384 rm -f conftest.er1
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } &&
9388 { ac_try='test -z "$ac_c_werror_flag"
9389 || test ! -s conftest.err'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 (eval $ac_try) 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; } &&
9395 { ac_try='test -s conftest.$ac_objext'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 (eval $ac_try) 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 ac_lo=$ac_mid; break
9402 else
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_hi=`expr '(' $ac_mid ')' - 1`
9407 if test $ac_mid -le $ac_hi; then
9408 ac_lo= ac_hi=
9409 break
9411 ac_mid=`expr 2 '*' $ac_mid`
9413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9414 done
9415 else
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9419 ac_lo= ac_hi=
9421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9424 # Binary search between lo and hi bounds.
9425 while test "x$ac_lo" != "x$ac_hi"; do
9426 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9427 cat >conftest.$ac_ext <<_ACEOF
9428 /* confdefs.h. */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 $ac_includes_default
9435 main ()
9437 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9438 test_array [0] = 0
9441 return 0;
9443 _ACEOF
9444 rm -f conftest.$ac_objext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9446 (eval $ac_compile) 2>conftest.er1
9447 ac_status=$?
9448 grep -v '^ *+' conftest.er1 >conftest.err
9449 rm -f conftest.er1
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -z "$ac_c_werror_flag"
9454 || test ! -s conftest.err'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 (eval $ac_try) 2>&5
9457 ac_status=$?
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; } &&
9460 { ac_try='test -s conftest.$ac_objext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462 (eval $ac_try) 2>&5
9463 ac_status=$?
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 ac_hi=$ac_mid
9467 else
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9471 ac_lo=`expr '(' $ac_mid ')' + 1`
9473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9474 done
9475 case $ac_lo in
9476 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9477 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9478 See \`config.log' for more details." >&5
9479 echo "$as_me: error: cannot compute sizeof (size_t), 77
9480 See \`config.log' for more details." >&2;}
9481 { (exit 1); exit 1; }; } ;;
9482 esac
9483 else
9484 if test "$cross_compiling" = yes; then
9485 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9486 See \`config.log' for more details." >&5
9487 echo "$as_me: error: cannot run test program while cross compiling
9488 See \`config.log' for more details." >&2;}
9489 { (exit 1); exit 1; }; }
9490 else
9491 cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h. */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 $ac_includes_default
9498 long longval () { return (long) (sizeof (size_t)); }
9499 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9500 #include <stdio.h>
9501 #include <stdlib.h>
9503 main ()
9506 FILE *f = fopen ("conftest.val", "w");
9507 if (! f)
9508 exit (1);
9509 if (((long) (sizeof (size_t))) < 0)
9511 long i = longval ();
9512 if (i != ((long) (sizeof (size_t))))
9513 exit (1);
9514 fprintf (f, "%ld\n", i);
9516 else
9518 unsigned long i = ulongval ();
9519 if (i != ((long) (sizeof (size_t))))
9520 exit (1);
9521 fprintf (f, "%lu\n", i);
9523 exit (ferror (f) || fclose (f) != 0);
9526 return 0;
9528 _ACEOF
9529 rm -f conftest$ac_exeext
9530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9531 (eval $ac_link) 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536 (eval $ac_try) 2>&5
9537 ac_status=$?
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; }; then
9540 ac_cv_sizeof_size_t=`cat conftest.val`
9541 else
9542 echo "$as_me: program exited with status $ac_status" >&5
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9546 ( exit $ac_status )
9547 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9548 See \`config.log' for more details." >&5
9549 echo "$as_me: error: cannot compute sizeof (size_t), 77
9550 See \`config.log' for more details." >&2;}
9551 { (exit 1); exit 1; }; }
9553 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9556 rm -f conftest.val
9557 else
9558 ac_cv_sizeof_size_t=0
9561 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9562 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9563 cat >>confdefs.h <<_ACEOF
9564 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9565 _ACEOF
9569 echo "$as_me:$LINENO: checking for long long support" >&5
9570 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9571 have_long_long=no
9572 cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h. */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9580 main ()
9582 long long x; x = (long long)0;
9584 return 0;
9586 _ACEOF
9587 rm -f conftest.$ac_objext
9588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9589 (eval $ac_compile) 2>conftest.er1
9590 ac_status=$?
9591 grep -v '^ *+' conftest.er1 >conftest.err
9592 rm -f conftest.er1
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } &&
9596 { ac_try='test -z "$ac_c_werror_flag"
9597 || test ! -s conftest.err'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 (eval $ac_try) 2>&5
9600 ac_status=$?
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; } &&
9603 { ac_try='test -s conftest.$ac_objext'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 (eval $ac_try) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; }; then
9611 cat >>confdefs.h <<\_ACEOF
9612 #define HAVE_LONG_LONG 1
9613 _ACEOF
9615 have_long_long=yes
9617 else
9618 echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.$ac_ext >&5
9622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9623 echo "$as_me:$LINENO: result: $have_long_long" >&5
9624 echo "${ECHO_T}$have_long_long" >&6
9625 if test "$have_long_long" = yes ; then
9626 echo "$as_me:$LINENO: checking for long long" >&5
9627 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9628 if test "${ac_cv_type_long_long+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631 cat >conftest.$ac_ext <<_ACEOF
9632 /* confdefs.h. */
9633 _ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9637 $ac_includes_default
9639 main ()
9641 if ((long long *) 0)
9642 return 0;
9643 if (sizeof (long long))
9644 return 0;
9646 return 0;
9648 _ACEOF
9649 rm -f conftest.$ac_objext
9650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9651 (eval $ac_compile) 2>conftest.er1
9652 ac_status=$?
9653 grep -v '^ *+' conftest.er1 >conftest.err
9654 rm -f conftest.er1
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } &&
9658 { ac_try='test -z "$ac_c_werror_flag"
9659 || test ! -s conftest.err'
9660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661 (eval $ac_try) 2>&5
9662 ac_status=$?
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; } &&
9665 { ac_try='test -s conftest.$ac_objext'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 (eval $ac_try) 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; }; then
9671 ac_cv_type_long_long=yes
9672 else
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9676 ac_cv_type_long_long=no
9678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9680 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9681 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9683 echo "$as_me:$LINENO: checking size of long long" >&5
9684 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9685 if test "${ac_cv_sizeof_long_long+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688 if test "$ac_cv_type_long_long" = yes; then
9689 # The cast to unsigned long works around a bug in the HP C Compiler
9690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9692 # This bug is HP SR number 8606223364.
9693 if test "$cross_compiling" = yes; then
9694 # Depending upon the size, compute the lo and hi bounds.
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h. */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 $ac_includes_default
9703 main ()
9705 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9706 test_array [0] = 0
9709 return 0;
9711 _ACEOF
9712 rm -f conftest.$ac_objext
9713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9714 (eval $ac_compile) 2>conftest.er1
9715 ac_status=$?
9716 grep -v '^ *+' conftest.er1 >conftest.err
9717 rm -f conftest.er1
9718 cat conftest.err >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try='test -z "$ac_c_werror_flag"
9722 || test ! -s conftest.err'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 (eval $ac_try) 2>&5
9725 ac_status=$?
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; } &&
9728 { ac_try='test -s conftest.$ac_objext'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 (eval $ac_try) 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9734 ac_lo=0 ac_mid=0
9735 while :; do
9736 cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h. */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 $ac_includes_default
9744 main ()
9746 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9747 test_array [0] = 0
9750 return 0;
9752 _ACEOF
9753 rm -f conftest.$ac_objext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9755 (eval $ac_compile) 2>conftest.er1
9756 ac_status=$?
9757 grep -v '^ *+' conftest.er1 >conftest.err
9758 rm -f conftest.er1
9759 cat conftest.err >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try='test -z "$ac_c_werror_flag"
9763 || test ! -s conftest.err'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 (eval $ac_try) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; } &&
9769 { ac_try='test -s conftest.$ac_objext'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 (eval $ac_try) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; }; then
9775 ac_hi=$ac_mid; break
9776 else
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 ac_lo=`expr $ac_mid + 1`
9781 if test $ac_lo -le $ac_mid; then
9782 ac_lo= ac_hi=
9783 break
9785 ac_mid=`expr 2 '*' $ac_mid + 1`
9787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9788 done
9789 else
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9793 cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h. */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9799 $ac_includes_default
9801 main ()
9803 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9804 test_array [0] = 0
9807 return 0;
9809 _ACEOF
9810 rm -f conftest.$ac_objext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9812 (eval $ac_compile) 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -z "$ac_c_werror_flag"
9820 || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest.$ac_objext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 ac_hi=-1 ac_mid=-1
9833 while :; do
9834 cat >conftest.$ac_ext <<_ACEOF
9835 /* confdefs.h. */
9836 _ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9840 $ac_includes_default
9842 main ()
9844 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9845 test_array [0] = 0
9848 return 0;
9850 _ACEOF
9851 rm -f conftest.$ac_objext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853 (eval $ac_compile) 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_lo=$ac_mid; break
9874 else
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 ac_hi=`expr '(' $ac_mid ')' - 1`
9879 if test $ac_mid -le $ac_hi; then
9880 ac_lo= ac_hi=
9881 break
9883 ac_mid=`expr 2 '*' $ac_mid`
9885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9886 done
9887 else
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9891 ac_lo= ac_hi=
9893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9896 # Binary search between lo and hi bounds.
9897 while test "x$ac_lo" != "x$ac_hi"; do
9898 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9899 cat >conftest.$ac_ext <<_ACEOF
9900 /* confdefs.h. */
9901 _ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9905 $ac_includes_default
9907 main ()
9909 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9910 test_array [0] = 0
9913 return 0;
9915 _ACEOF
9916 rm -f conftest.$ac_objext
9917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9918 (eval $ac_compile) 2>conftest.er1
9919 ac_status=$?
9920 grep -v '^ *+' conftest.er1 >conftest.err
9921 rm -f conftest.er1
9922 cat conftest.err >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } &&
9925 { ac_try='test -z "$ac_c_werror_flag"
9926 || test ! -s conftest.err'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 (eval $ac_try) 2>&5
9929 ac_status=$?
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; } &&
9932 { ac_try='test -s conftest.$ac_objext'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 (eval $ac_try) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938 ac_hi=$ac_mid
9939 else
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_lo=`expr '(' $ac_mid ')' + 1`
9945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9946 done
9947 case $ac_lo in
9948 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9949 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9950 See \`config.log' for more details." >&5
9951 echo "$as_me: error: cannot compute sizeof (long long), 77
9952 See \`config.log' for more details." >&2;}
9953 { (exit 1); exit 1; }; } ;;
9954 esac
9955 else
9956 if test "$cross_compiling" = yes; then
9957 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9958 See \`config.log' for more details." >&5
9959 echo "$as_me: error: cannot run test program while cross compiling
9960 See \`config.log' for more details." >&2;}
9961 { (exit 1); exit 1; }; }
9962 else
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h. */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 $ac_includes_default
9970 long longval () { return (long) (sizeof (long long)); }
9971 unsigned long ulongval () { return (long) (sizeof (long long)); }
9972 #include <stdio.h>
9973 #include <stdlib.h>
9975 main ()
9978 FILE *f = fopen ("conftest.val", "w");
9979 if (! f)
9980 exit (1);
9981 if (((long) (sizeof (long long))) < 0)
9983 long i = longval ();
9984 if (i != ((long) (sizeof (long long))))
9985 exit (1);
9986 fprintf (f, "%ld\n", i);
9988 else
9990 unsigned long i = ulongval ();
9991 if (i != ((long) (sizeof (long long))))
9992 exit (1);
9993 fprintf (f, "%lu\n", i);
9995 exit (ferror (f) || fclose (f) != 0);
9998 return 0;
10000 _ACEOF
10001 rm -f conftest$ac_exeext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10009 ac_status=$?
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10012 ac_cv_sizeof_long_long=`cat conftest.val`
10013 else
10014 echo "$as_me: program exited with status $ac_status" >&5
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10018 ( exit $ac_status )
10019 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10020 See \`config.log' for more details." >&5
10021 echo "$as_me: error: cannot compute sizeof (long long), 77
10022 See \`config.log' for more details." >&2;}
10023 { (exit 1); exit 1; }; }
10025 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10028 rm -f conftest.val
10029 else
10030 ac_cv_sizeof_long_long=0
10033 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10034 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10035 cat >>confdefs.h <<_ACEOF
10036 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10037 _ACEOF
10042 echo "$as_me:$LINENO: checking for uintptr_t support" >&5
10043 echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
10044 have_uintptr_t=no
10045 cat >conftest.$ac_ext <<_ACEOF
10046 /* confdefs.h. */
10047 _ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10053 main ()
10055 uintptr_t x; x = (uintptr_t)0;
10057 return 0;
10059 _ACEOF
10060 rm -f conftest.$ac_objext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10062 (eval $ac_compile) 2>conftest.er1
10063 ac_status=$?
10064 grep -v '^ *+' conftest.er1 >conftest.err
10065 rm -f conftest.er1
10066 cat conftest.err >&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } &&
10069 { ac_try='test -z "$ac_c_werror_flag"
10070 || test ! -s conftest.err'
10071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072 (eval $ac_try) 2>&5
10073 ac_status=$?
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; } &&
10076 { ac_try='test -s conftest.$ac_objext'
10077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078 (eval $ac_try) 2>&5
10079 ac_status=$?
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }; then
10084 cat >>confdefs.h <<\_ACEOF
10085 #define HAVE_UINTPTR_T 1
10086 _ACEOF
10088 have_uintptr_t=yes
10090 else
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10096 echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
10097 echo "${ECHO_T}$have_uintptr_t" >&6
10098 if test "$have_uintptr_t" = yes ; then
10099 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10100 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10101 if test "${ac_cv_type_uintptr_t+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 else
10104 cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h. */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10110 $ac_includes_default
10112 main ()
10114 if ((uintptr_t *) 0)
10115 return 0;
10116 if (sizeof (uintptr_t))
10117 return 0;
10119 return 0;
10121 _ACEOF
10122 rm -f conftest.$ac_objext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124 (eval $ac_compile) 2>conftest.er1
10125 ac_status=$?
10126 grep -v '^ *+' conftest.er1 >conftest.err
10127 rm -f conftest.er1
10128 cat conftest.err >&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } &&
10131 { ac_try='test -z "$ac_c_werror_flag"
10132 || test ! -s conftest.err'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try='test -s conftest.$ac_objext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 ac_cv_type_uintptr_t=yes
10145 else
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10149 ac_cv_type_uintptr_t=no
10151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10153 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10154 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10156 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10157 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10158 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 else
10161 if test "$ac_cv_type_uintptr_t" = yes; then
10162 # The cast to unsigned long works around a bug in the HP C Compiler
10163 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10164 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10165 # This bug is HP SR number 8606223364.
10166 if test "$cross_compiling" = yes; then
10167 # Depending upon the size, compute the lo and hi bounds.
10168 cat >conftest.$ac_ext <<_ACEOF
10169 /* confdefs.h. */
10170 _ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10174 $ac_includes_default
10176 main ()
10178 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10179 test_array [0] = 0
10182 return 0;
10184 _ACEOF
10185 rm -f conftest.$ac_objext
10186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10187 (eval $ac_compile) 2>conftest.er1
10188 ac_status=$?
10189 grep -v '^ *+' conftest.er1 >conftest.err
10190 rm -f conftest.er1
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try='test -z "$ac_c_werror_flag"
10195 || test ! -s conftest.err'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try='test -s conftest.$ac_objext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 ac_lo=0 ac_mid=0
10208 while :; do
10209 cat >conftest.$ac_ext <<_ACEOF
10210 /* confdefs.h. */
10211 _ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215 $ac_includes_default
10217 main ()
10219 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10220 test_array [0] = 0
10223 return 0;
10225 _ACEOF
10226 rm -f conftest.$ac_objext
10227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10228 (eval $ac_compile) 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try='test -z "$ac_c_werror_flag"
10236 || test ! -s conftest.err'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; } &&
10242 { ac_try='test -s conftest.$ac_objext'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; }; then
10248 ac_hi=$ac_mid; break
10249 else
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10253 ac_lo=`expr $ac_mid + 1`
10254 if test $ac_lo -le $ac_mid; then
10255 ac_lo= ac_hi=
10256 break
10258 ac_mid=`expr 2 '*' $ac_mid + 1`
10260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10261 done
10262 else
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h. */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10272 $ac_includes_default
10274 main ()
10276 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10277 test_array [0] = 0
10280 return 0;
10282 _ACEOF
10283 rm -f conftest.$ac_objext
10284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10285 (eval $ac_compile) 2>conftest.er1
10286 ac_status=$?
10287 grep -v '^ *+' conftest.er1 >conftest.err
10288 rm -f conftest.er1
10289 cat conftest.err >&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } &&
10292 { ac_try='test -z "$ac_c_werror_flag"
10293 || test ! -s conftest.err'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10296 ac_status=$?
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; } &&
10299 { ac_try='test -s conftest.$ac_objext'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 ac_hi=-1 ac_mid=-1
10306 while :; do
10307 cat >conftest.$ac_ext <<_ACEOF
10308 /* confdefs.h. */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 $ac_includes_default
10315 main ()
10317 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10318 test_array [0] = 0
10321 return 0;
10323 _ACEOF
10324 rm -f conftest.$ac_objext
10325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10326 (eval $ac_compile) 2>conftest.er1
10327 ac_status=$?
10328 grep -v '^ *+' conftest.er1 >conftest.err
10329 rm -f conftest.er1
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try='test -z "$ac_c_werror_flag"
10334 || test ! -s conftest.err'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; } &&
10340 { ac_try='test -s conftest.$ac_objext'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
10346 ac_lo=$ac_mid; break
10347 else
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10351 ac_hi=`expr '(' $ac_mid ')' - 1`
10352 if test $ac_mid -le $ac_hi; then
10353 ac_lo= ac_hi=
10354 break
10356 ac_mid=`expr 2 '*' $ac_mid`
10358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10359 done
10360 else
10361 echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.$ac_ext >&5
10364 ac_lo= ac_hi=
10366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10369 # Binary search between lo and hi bounds.
10370 while test "x$ac_lo" != "x$ac_hi"; do
10371 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10372 cat >conftest.$ac_ext <<_ACEOF
10373 /* confdefs.h. */
10374 _ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10378 $ac_includes_default
10380 main ()
10382 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10383 test_array [0] = 0
10386 return 0;
10388 _ACEOF
10389 rm -f conftest.$ac_objext
10390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10391 (eval $ac_compile) 2>conftest.er1
10392 ac_status=$?
10393 grep -v '^ *+' conftest.er1 >conftest.err
10394 rm -f conftest.er1
10395 cat conftest.err >&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } &&
10398 { ac_try='test -z "$ac_c_werror_flag"
10399 || test ! -s conftest.err'
10400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401 (eval $ac_try) 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; } &&
10405 { ac_try='test -s conftest.$ac_objext'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; }; then
10411 ac_hi=$ac_mid
10412 else
10413 echo "$as_me: failed program was:" >&5
10414 sed 's/^/| /' conftest.$ac_ext >&5
10416 ac_lo=`expr '(' $ac_mid ')' + 1`
10418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10419 done
10420 case $ac_lo in
10421 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
10422 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10423 See \`config.log' for more details." >&5
10424 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10425 See \`config.log' for more details." >&2;}
10426 { (exit 1); exit 1; }; } ;;
10427 esac
10428 else
10429 if test "$cross_compiling" = yes; then
10430 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10431 See \`config.log' for more details." >&5
10432 echo "$as_me: error: cannot run test program while cross compiling
10433 See \`config.log' for more details." >&2;}
10434 { (exit 1); exit 1; }; }
10435 else
10436 cat >conftest.$ac_ext <<_ACEOF
10437 /* confdefs.h. */
10438 _ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10442 $ac_includes_default
10443 long longval () { return (long) (sizeof (uintptr_t)); }
10444 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
10445 #include <stdio.h>
10446 #include <stdlib.h>
10448 main ()
10451 FILE *f = fopen ("conftest.val", "w");
10452 if (! f)
10453 exit (1);
10454 if (((long) (sizeof (uintptr_t))) < 0)
10456 long i = longval ();
10457 if (i != ((long) (sizeof (uintptr_t))))
10458 exit (1);
10459 fprintf (f, "%ld\n", i);
10461 else
10463 unsigned long i = ulongval ();
10464 if (i != ((long) (sizeof (uintptr_t))))
10465 exit (1);
10466 fprintf (f, "%lu\n", i);
10468 exit (ferror (f) || fclose (f) != 0);
10471 return 0;
10473 _ACEOF
10474 rm -f conftest$ac_exeext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476 (eval $ac_link) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 ac_cv_sizeof_uintptr_t=`cat conftest.val`
10486 else
10487 echo "$as_me: program exited with status $ac_status" >&5
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 ( exit $ac_status )
10492 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
10493 See \`config.log' for more details." >&5
10494 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
10495 See \`config.log' for more details." >&2;}
10496 { (exit 1); exit 1; }; }
10498 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10501 rm -f conftest.val
10502 else
10503 ac_cv_sizeof_uintptr_t=0
10506 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
10507 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
10508 cat >>confdefs.h <<_ACEOF
10509 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
10510 _ACEOF
10515 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
10516 echo "$as_me:$LINENO: checking size of off_t" >&5
10517 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
10518 if test "${ac_cv_sizeof_off_t+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521 if test "$cross_compiling" = yes; then
10522 ac_cv_sizeof_off_t=4
10523 else
10524 cat >conftest.$ac_ext <<_ACEOF
10525 /* confdefs.h. */
10526 _ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10530 #include <stdio.h>
10531 #include <sys/types.h>
10532 main()
10534 FILE *f=fopen("conftestval", "w");
10535 if (!f) exit(1);
10536 fprintf(f, "%d\n", sizeof(off_t));
10537 exit(0);
10539 _ACEOF
10540 rm -f conftest$ac_exeext
10541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10542 (eval $ac_link) 2>&5
10543 ac_status=$?
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_cv_sizeof_off_t=`cat conftestval`
10552 else
10553 echo "$as_me: program exited with status $ac_status" >&5
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10557 ( exit $ac_status )
10558 ac_cv_sizeof_off_t=0
10560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10565 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10566 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
10568 cat >>confdefs.h <<_ACEOF
10569 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10570 _ACEOF
10573 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
10574 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
10575 if test "$have_long_long" = yes -a \
10576 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
10577 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
10579 cat >>confdefs.h <<\_ACEOF
10580 #define HAVE_LARGEFILE_SUPPORT 1
10581 _ACEOF
10583 echo "$as_me:$LINENO: result: yes" >&5
10584 echo "${ECHO_T}yes" >&6
10585 else
10586 echo "$as_me:$LINENO: result: no" >&5
10587 echo "${ECHO_T}no" >&6
10590 # AC_CHECK_SIZEOF() doesn't include <time.h>.
10591 echo "$as_me:$LINENO: checking size of time_t" >&5
10592 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
10593 if test "${ac_cv_sizeof_time_t+set}" = set; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 else
10596 if test "$cross_compiling" = yes; then
10597 ac_cv_sizeof_time_t=4
10598 else
10599 cat >conftest.$ac_ext <<_ACEOF
10600 /* confdefs.h. */
10601 _ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10605 #include <stdio.h>
10606 #include <time.h>
10607 main()
10609 FILE *f=fopen("conftestval", "w");
10610 if (!f) exit(1);
10611 fprintf(f, "%d\n", sizeof(time_t));
10612 exit(0);
10614 _ACEOF
10615 rm -f conftest$ac_exeext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10617 (eval $ac_link) 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622 (eval $ac_try) 2>&5
10623 ac_status=$?
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }; then
10626 ac_cv_sizeof_time_t=`cat conftestval`
10627 else
10628 echo "$as_me: program exited with status $ac_status" >&5
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10632 ( exit $ac_status )
10633 ac_cv_sizeof_time_t=0
10635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10640 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
10641 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
10643 cat >>confdefs.h <<_ACEOF
10644 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10645 _ACEOF
10649 # if have pthread_t then define SIZEOF_PTHREAD_T
10650 ac_save_cc="$CC"
10651 if test "$ac_cv_kpthread" = "yes"
10652 then CC="$CC -Kpthread"
10653 elif test "$ac_cv_kthread" = "yes"
10654 then CC="$CC -Kthread"
10655 elif test "$ac_cv_pthread" = "yes"
10656 then CC="$CC -pthread"
10658 echo "$as_me:$LINENO: checking for pthread_t" >&5
10659 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
10660 have_pthread_t=no
10661 cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h. */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 #include <pthread.h>
10669 main ()
10671 pthread_t x; x = *(pthread_t*)0;
10673 return 0;
10675 _ACEOF
10676 rm -f conftest.$ac_objext
10677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10678 (eval $ac_compile) 2>conftest.er1
10679 ac_status=$?
10680 grep -v '^ *+' conftest.er1 >conftest.err
10681 rm -f conftest.er1
10682 cat conftest.err >&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } &&
10685 { ac_try='test -z "$ac_c_werror_flag"
10686 || test ! -s conftest.err'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10689 ac_status=$?
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; } &&
10692 { ac_try='test -s conftest.$ac_objext'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10695 ac_status=$?
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; }; then
10698 have_pthread_t=yes
10699 else
10700 echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10705 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
10706 echo "${ECHO_T}$have_pthread_t" >&6
10707 if test "$have_pthread_t" = yes ; then
10708 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
10709 echo "$as_me:$LINENO: checking size of pthread_t" >&5
10710 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
10711 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 else
10714 if test "$cross_compiling" = yes; then
10715 ac_cv_sizeof_pthread_t=4
10716 else
10717 cat >conftest.$ac_ext <<_ACEOF
10718 /* confdefs.h. */
10719 _ACEOF
10720 cat confdefs.h >>conftest.$ac_ext
10721 cat >>conftest.$ac_ext <<_ACEOF
10722 /* end confdefs.h. */
10723 #include <stdio.h>
10724 #include <pthread.h>
10725 main()
10727 FILE *f=fopen("conftestval", "w");
10728 if (!f) exit(1);
10729 fprintf(f, "%d\n", sizeof(pthread_t));
10730 exit(0);
10732 _ACEOF
10733 rm -f conftest$ac_exeext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10735 (eval $ac_link) 2>&5
10736 ac_status=$?
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10741 ac_status=$?
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; }; then
10744 ac_cv_sizeof_pthread_t=`cat conftestval`
10745 else
10746 echo "$as_me: program exited with status $ac_status" >&5
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10750 ( exit $ac_status )
10751 ac_cv_sizeof_pthread_t=0
10753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10758 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
10759 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
10761 cat >>confdefs.h <<_ACEOF
10762 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
10763 _ACEOF
10766 CC="$ac_save_cc"
10768 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
10769 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
10770 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
10771 if test "${enable_toolbox_glue+set}" = set; then
10772 enableval="$enable_toolbox_glue"
10776 if test -z "$enable_toolbox_glue"
10777 then
10778 case $ac_sys_system/$ac_sys_release in
10779 Darwin/*)
10780 enable_toolbox_glue="yes";;
10782 enable_toolbox_glue="no";;
10783 esac
10785 case "$enable_toolbox_glue" in
10786 yes)
10787 extra_machdep_objs="Python/mactoolboxglue.o"
10788 extra_undefs="-u _PyMac_Error"
10790 cat >>confdefs.h <<\_ACEOF
10791 #define USE_TOOLBOX_OBJECT_GLUE 1
10792 _ACEOF
10796 extra_machdep_objs=""
10797 extra_undefs=""
10799 esac
10800 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
10801 echo "${ECHO_T}$enable_toolbox_glue" >&6
10804 case $ac_sys_system/$ac_sys_release in
10805 Darwin/[01567]\..*)
10806 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
10808 Darwin/*)
10809 OTHER_LIBTOOL_OPT=""
10811 esac
10814 case $ac_sys_system/$ac_sys_release in
10815 Darwin/[01567]\..*)
10816 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
10817 if test "${enable_universalsdk}"; then
10819 else
10820 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
10822 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10823 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10824 Darwin/*)
10825 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
10826 if test ${gcc_version} '<' 4.0
10827 then
10828 LIBTOOL_CRUFT="-lcc_dynamic"
10829 else
10830 LIBTOOL_CRUFT=""
10832 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
10833 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10834 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
10835 esac
10837 echo "$as_me:$LINENO: checking for --enable-framework" >&5
10838 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
10839 if test "$enable_framework"
10840 then
10841 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
10842 # -F. is needed to allow linking to the framework while
10843 # in the build location.
10845 cat >>confdefs.h <<\_ACEOF
10846 #define WITH_NEXT_FRAMEWORK 1
10847 _ACEOF
10849 echo "$as_me:$LINENO: result: yes" >&5
10850 echo "${ECHO_T}yes" >&6
10851 else
10852 echo "$as_me:$LINENO: result: no" >&5
10853 echo "${ECHO_T}no" >&6
10856 echo "$as_me:$LINENO: checking for dyld" >&5
10857 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
10858 case $ac_sys_system/$ac_sys_release in
10859 Darwin/*)
10861 cat >>confdefs.h <<\_ACEOF
10862 #define WITH_DYLD 1
10863 _ACEOF
10865 echo "$as_me:$LINENO: result: always on for Darwin" >&5
10866 echo "${ECHO_T}always on for Darwin" >&6
10869 echo "$as_me:$LINENO: result: no" >&5
10870 echo "${ECHO_T}no" >&6
10872 esac
10874 # Set info about shared libraries.
10880 # SO is the extension of shared libraries `(including the dot!)
10881 # -- usually .so, .sl on HP-UX, .dll on Cygwin
10882 echo "$as_me:$LINENO: checking SO" >&5
10883 echo $ECHO_N "checking SO... $ECHO_C" >&6
10884 if test -z "$SO"
10885 then
10886 case $ac_sys_system in
10887 hp*|HP*)
10888 case `uname -m` in
10889 ia64) SO=.so;;
10890 *) SO=.sl;;
10891 esac
10893 CYGWIN*) SO=.dll;;
10894 *) SO=.so;;
10895 esac
10896 else
10897 # this might also be a termcap variable, see #610332
10898 echo
10899 echo '====================================================================='
10900 echo '+ +'
10901 echo '+ WARNING: You have set SO in your environment. +'
10902 echo '+ Do you really mean to change the extension for shared libraries? +'
10903 echo '+ Continuing in 10 seconds to let you to ponder. +'
10904 echo '+ +'
10905 echo '====================================================================='
10906 sleep 10
10908 echo "$as_me:$LINENO: result: $SO" >&5
10909 echo "${ECHO_T}$SO" >&6
10911 cat >>confdefs.h <<_ACEOF
10912 #define SHLIB_EXT "$SO"
10913 _ACEOF
10915 # LDSHARED is the ld *command* used to create shared library
10916 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
10917 # (Shared libraries in this instance are shared modules to be loaded into
10918 # Python, as opposed to building Python itself as a shared library.)
10919 echo "$as_me:$LINENO: checking LDSHARED" >&5
10920 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
10921 if test -z "$LDSHARED"
10922 then
10923 case $ac_sys_system/$ac_sys_release in
10924 AIX*)
10925 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
10926 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
10928 BeOS*)
10929 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
10930 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
10932 IRIX/5*) LDSHARED="ld -shared";;
10933 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
10934 SunOS/5*)
10935 if test "$GCC" = "yes"
10936 then LDSHARED='$(CC) -shared'
10937 else LDSHARED='$(CC) -G';
10938 fi ;;
10939 hp*|HP*) LDSHARED="ld -b";;
10940 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
10941 Darwin/1.3*)
10942 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10943 if test "$enable_framework" ; then
10944 # Link against the framework. All externals should be defined.
10945 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10946 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10947 else
10948 # No framework. Ignore undefined symbols, assuming they come from Python
10949 LDSHARED="$LDSHARED -undefined suppress"
10950 fi ;;
10951 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
10952 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10953 if test "$enable_framework" ; then
10954 # Link against the framework. All externals should be defined.
10955 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10956 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10957 else
10958 # No framework, use the Python app as bundle-loader
10959 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10960 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10961 fi ;;
10962 Darwin/*)
10963 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
10964 # This allows an extension to be used in any Python
10965 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
10966 if test ${cur_target} '>' 10.2; then
10967 cur_target=10.3
10969 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10970 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
10971 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
10972 then
10973 if test "${enable_universalsdk}"; then
10974 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
10976 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
10977 BLDSHARED="$LDSHARED"
10978 else
10979 LDSHARED='$(CC) $(LDFLAGS) -bundle'
10980 if test "$enable_framework" ; then
10981 # Link against the framework. All externals should be defined.
10982 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10983 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
10984 else
10985 # No framework, use the Python app as bundle-loader
10986 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
10987 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
10991 Linux*|GNU*) LDSHARED='$(CC) -shared';;
10992 BSD/OS*/4*) LDSHARED="gcc -shared";;
10993 OpenBSD*|FreeBSD*)
10994 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
10995 then
10996 LDSHARED="$CC -shared ${LDFLAGS}"
10997 else
10998 LDSHARED="ld -Bshareable ${LDFLAGS}"
10999 fi;;
11000 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
11001 OpenUNIX*|UnixWare*)
11002 if test "$GCC" = "yes"
11003 then LDSHARED='$(CC) -shared'
11004 else LDSHARED='$(CC) -G'
11005 fi;;
11006 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
11007 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11008 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
11009 atheos*) LDSHARED="gcc -shared";;
11010 *) LDSHARED="ld";;
11011 esac
11013 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11014 echo "${ECHO_T}$LDSHARED" >&6
11015 BLDSHARED=${BLDSHARED-$LDSHARED}
11016 # CCSHARED are the C *flags* used to create objects to go into a shared
11017 # library (module) -- this is only needed for a few systems
11018 echo "$as_me:$LINENO: checking CCSHARED" >&5
11019 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11020 if test -z "$CCSHARED"
11021 then
11022 case $ac_sys_system/$ac_sys_release in
11023 SunOS*) if test "$GCC" = yes;
11024 then CCSHARED="-fPIC";
11025 else CCSHARED="-xcode=pic32";
11026 fi;;
11027 hp*|HP*) if test "$GCC" = yes;
11028 then CCSHARED="-fPIC";
11029 else CCSHARED="+z";
11030 fi;;
11031 Linux*|GNU*) CCSHARED="-fPIC";;
11032 BSD/OS*/4*) CCSHARED="-fpic";;
11033 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
11034 OpenUNIX*|UnixWare*)
11035 if test "$GCC" = "yes"
11036 then CCSHARED="-fPIC"
11037 else CCSHARED="-KPIC"
11038 fi;;
11039 SCO_SV*)
11040 if test "$GCC" = "yes"
11041 then CCSHARED="-fPIC"
11042 else CCSHARED="-Kpic -belf"
11043 fi;;
11044 Monterey*) CCSHARED="-G";;
11045 IRIX*/6*) case $CC in
11046 *gcc*) CCSHARED="-shared";;
11047 *) CCSHARED="";;
11048 esac;;
11049 atheos*) CCSHARED="-fPIC";;
11050 esac
11052 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11053 echo "${ECHO_T}$CCSHARED" >&6
11054 # LINKFORSHARED are the flags passed to the $(CC) command that links
11055 # the python executable -- this is only needed for a few systems
11056 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11057 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11058 if test -z "$LINKFORSHARED"
11059 then
11060 case $ac_sys_system/$ac_sys_release in
11061 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
11062 hp*|HP*)
11063 LINKFORSHARED="-Wl,-E -Wl,+s";;
11064 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11065 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
11066 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
11067 # -u libsys_s pulls in all symbols in libsys
11068 Darwin/*)
11069 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11070 # which is
11071 # not used by the core itself but which needs to be in the core so
11072 # that dynamically loaded extension modules have access to it.
11073 # -prebind is no longer used, because it actually seems to give a
11074 # slowdown in stead of a speedup, maybe due to the large number of
11075 # dynamic loads Python does.
11077 LINKFORSHARED="$extra_undefs"
11078 if test "$enable_framework"
11079 then
11080 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11082 LINKFORSHARED="$LINKFORSHARED";;
11083 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
11084 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
11085 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
11086 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
11087 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11088 then
11089 LINKFORSHARED="-Wl,--export-dynamic"
11090 fi;;
11091 SunOS/5*) case $CC in
11092 *gcc*)
11093 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
11094 then
11095 LINKFORSHARED="-Xlinker --export-dynamic"
11096 fi;;
11097 esac;;
11098 CYGWIN*)
11099 if test $enable_shared = "no"
11100 then
11101 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
11102 fi;;
11103 esac
11105 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11106 echo "${ECHO_T}$LINKFORSHARED" >&6
11109 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11110 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11111 if test ! "$LIBRARY" = "$LDLIBRARY"
11112 then
11113 case $ac_sys_system in
11114 CYGWIN*)
11115 # Cygwin needs CCSHARED when building extension DLLs
11116 # but not when building the interpreter DLL.
11117 CFLAGSFORSHARED='';;
11119 CFLAGSFORSHARED='$(CCSHARED)'
11120 esac
11122 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11123 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11125 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11126 # library (with --enable-shared).
11127 # For platforms on which shared libraries are not allowed to have unresolved
11128 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11129 # if it is not required, since it creates a dependency of the shared library
11130 # to LIBS. This, in turn, means that applications linking the shared libpython
11131 # don't need to link LIBS explicitly. The default should be only changed
11132 # on systems where this approach causes problems.
11134 echo "$as_me:$LINENO: checking SHLIBS" >&5
11135 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11136 case "$ac_sys_system" in
11138 SHLIBS='$(LIBS)';;
11139 esac
11140 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11141 echo "${ECHO_T}$SHLIBS" >&6
11144 # checks for libraries
11146 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11147 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11148 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11150 else
11151 ac_check_lib_save_LIBS=$LIBS
11152 LIBS="-ldl $LIBS"
11153 cat >conftest.$ac_ext <<_ACEOF
11154 /* confdefs.h. */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11160 /* Override any gcc2 internal prototype to avoid an error. */
11161 #ifdef __cplusplus
11162 extern "C"
11163 #endif
11164 /* We use char because int might match the return type of a gcc2
11165 builtin and then its argument prototype would still apply. */
11166 char dlopen ();
11168 main ()
11170 dlopen ();
11172 return 0;
11174 _ACEOF
11175 rm -f conftest.$ac_objext conftest$ac_exeext
11176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11177 (eval $ac_link) 2>conftest.er1
11178 ac_status=$?
11179 grep -v '^ *+' conftest.er1 >conftest.err
11180 rm -f conftest.er1
11181 cat conftest.err >&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } &&
11184 { ac_try='test -z "$ac_c_werror_flag"
11185 || test ! -s conftest.err'
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; } &&
11191 { ac_try='test -s conftest$ac_exeext'
11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
11197 ac_cv_lib_dl_dlopen=yes
11198 else
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11202 ac_cv_lib_dl_dlopen=no
11204 rm -f conftest.err conftest.$ac_objext \
11205 conftest$ac_exeext conftest.$ac_ext
11206 LIBS=$ac_check_lib_save_LIBS
11208 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11209 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11210 if test $ac_cv_lib_dl_dlopen = yes; then
11211 cat >>confdefs.h <<_ACEOF
11212 #define HAVE_LIBDL 1
11213 _ACEOF
11215 LIBS="-ldl $LIBS"
11218 # Dynamic linking for SunOS/Solaris and SYSV
11220 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11221 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11222 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 else
11225 ac_check_lib_save_LIBS=$LIBS
11226 LIBS="-ldld $LIBS"
11227 cat >conftest.$ac_ext <<_ACEOF
11228 /* confdefs.h. */
11229 _ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11234 /* Override any gcc2 internal prototype to avoid an error. */
11235 #ifdef __cplusplus
11236 extern "C"
11237 #endif
11238 /* We use char because int might match the return type of a gcc2
11239 builtin and then its argument prototype would still apply. */
11240 char shl_load ();
11242 main ()
11244 shl_load ();
11246 return 0;
11248 _ACEOF
11249 rm -f conftest.$ac_objext conftest$ac_exeext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11251 (eval $ac_link) 2>conftest.er1
11252 ac_status=$?
11253 grep -v '^ *+' conftest.er1 >conftest.err
11254 rm -f conftest.er1
11255 cat conftest.err >&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try='test -z "$ac_c_werror_flag"
11259 || test ! -s conftest.err'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try='test -s conftest$ac_exeext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11268 ac_status=$?
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 ac_cv_lib_dld_shl_load=yes
11272 else
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 ac_cv_lib_dld_shl_load=no
11278 rm -f conftest.err conftest.$ac_objext \
11279 conftest$ac_exeext conftest.$ac_ext
11280 LIBS=$ac_check_lib_save_LIBS
11282 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11283 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11284 if test $ac_cv_lib_dld_shl_load = yes; then
11285 cat >>confdefs.h <<_ACEOF
11286 #define HAVE_LIBDLD 1
11287 _ACEOF
11289 LIBS="-ldld $LIBS"
11292 # Dynamic linking for HP-UX
11294 # only check for sem_ini if thread support is requested
11295 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11296 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11297 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11298 if test "${ac_cv_search_sem_init+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301 ac_func_search_save_LIBS=$LIBS
11302 ac_cv_search_sem_init=no
11303 cat >conftest.$ac_ext <<_ACEOF
11304 /* confdefs.h. */
11305 _ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11310 /* Override any gcc2 internal prototype to avoid an error. */
11311 #ifdef __cplusplus
11312 extern "C"
11313 #endif
11314 /* We use char because int might match the return type of a gcc2
11315 builtin and then its argument prototype would still apply. */
11316 char sem_init ();
11318 main ()
11320 sem_init ();
11322 return 0;
11324 _ACEOF
11325 rm -f conftest.$ac_objext conftest$ac_exeext
11326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11327 (eval $ac_link) 2>conftest.er1
11328 ac_status=$?
11329 grep -v '^ *+' conftest.er1 >conftest.err
11330 rm -f conftest.er1
11331 cat conftest.err >&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); } &&
11334 { ac_try='test -z "$ac_c_werror_flag"
11335 || test ! -s conftest.err'
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; } &&
11341 { ac_try='test -s conftest$ac_exeext'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }; then
11347 ac_cv_search_sem_init="none required"
11348 else
11349 echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11353 rm -f conftest.err conftest.$ac_objext \
11354 conftest$ac_exeext conftest.$ac_ext
11355 if test "$ac_cv_search_sem_init" = no; then
11356 for ac_lib in pthread rt posix4; do
11357 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11358 cat >conftest.$ac_ext <<_ACEOF
11359 /* confdefs.h. */
11360 _ACEOF
11361 cat confdefs.h >>conftest.$ac_ext
11362 cat >>conftest.$ac_ext <<_ACEOF
11363 /* end confdefs.h. */
11365 /* Override any gcc2 internal prototype to avoid an error. */
11366 #ifdef __cplusplus
11367 extern "C"
11368 #endif
11369 /* We use char because int might match the return type of a gcc2
11370 builtin and then its argument prototype would still apply. */
11371 char sem_init ();
11373 main ()
11375 sem_init ();
11377 return 0;
11379 _ACEOF
11380 rm -f conftest.$ac_objext conftest$ac_exeext
11381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11382 (eval $ac_link) 2>conftest.er1
11383 ac_status=$?
11384 grep -v '^ *+' conftest.er1 >conftest.err
11385 rm -f conftest.er1
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -z "$ac_c_werror_flag"
11390 || test ! -s conftest.err'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11393 ac_status=$?
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; } &&
11396 { ac_try='test -s conftest$ac_exeext'
11397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11398 (eval $ac_try) 2>&5
11399 ac_status=$?
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }; }; then
11402 ac_cv_search_sem_init="-l$ac_lib"
11403 break
11404 else
11405 echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11409 rm -f conftest.err conftest.$ac_objext \
11410 conftest$ac_exeext conftest.$ac_ext
11411 done
11413 LIBS=$ac_func_search_save_LIBS
11415 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11416 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
11417 if test "$ac_cv_search_sem_init" != no; then
11418 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
11421 # 'Real Time' functions on Solaris
11422 # posix4 on Solaris 2.6
11423 # pthread (first!) on Linux
11426 # check if we need libintl for locale functions
11427 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11428 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
11429 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11431 else
11432 ac_check_lib_save_LIBS=$LIBS
11433 LIBS="-lintl $LIBS"
11434 cat >conftest.$ac_ext <<_ACEOF
11435 /* confdefs.h. */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11441 /* Override any gcc2 internal prototype to avoid an error. */
11442 #ifdef __cplusplus
11443 extern "C"
11444 #endif
11445 /* We use char because int might match the return type of a gcc2
11446 builtin and then its argument prototype would still apply. */
11447 char textdomain ();
11449 main ()
11451 textdomain ();
11453 return 0;
11455 _ACEOF
11456 rm -f conftest.$ac_objext conftest$ac_exeext
11457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11458 (eval $ac_link) 2>conftest.er1
11459 ac_status=$?
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -z "$ac_c_werror_flag"
11466 || test ! -s conftest.err'
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; } &&
11472 { ac_try='test -s conftest$ac_exeext'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11475 ac_status=$?
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; }; then
11478 ac_cv_lib_intl_textdomain=yes
11479 else
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11483 ac_cv_lib_intl_textdomain=no
11485 rm -f conftest.err conftest.$ac_objext \
11486 conftest$ac_exeext conftest.$ac_ext
11487 LIBS=$ac_check_lib_save_LIBS
11489 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
11490 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
11491 if test $ac_cv_lib_intl_textdomain = yes; then
11493 cat >>confdefs.h <<\_ACEOF
11494 #define WITH_LIBINTL 1
11495 _ACEOF
11500 # checks for system dependent C++ extensions support
11501 case "$ac_sys_system" in
11502 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
11503 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
11504 cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h. */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 #include "/usr/lpp/xlC/include/load.h"
11512 main ()
11514 loadAndInit("", 0, "")
11516 return 0;
11518 _ACEOF
11519 rm -f conftest.$ac_objext conftest$ac_exeext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11521 (eval $ac_link) 2>conftest.er1
11522 ac_status=$?
11523 grep -v '^ *+' conftest.er1 >conftest.err
11524 rm -f conftest.er1
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } &&
11528 { ac_try='test -z "$ac_c_werror_flag"
11529 || test ! -s conftest.err'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11532 ac_status=$?
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; } &&
11535 { ac_try='test -s conftest$ac_exeext'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11538 ac_status=$?
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }; then
11542 cat >>confdefs.h <<\_ACEOF
11543 #define AIX_GENUINE_CPLUSPLUS 1
11544 _ACEOF
11546 echo "$as_me:$LINENO: result: yes" >&5
11547 echo "${ECHO_T}yes" >&6
11548 else
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11552 echo "$as_me:$LINENO: result: no" >&5
11553 echo "${ECHO_T}no" >&6
11555 rm -f conftest.err conftest.$ac_objext \
11556 conftest$ac_exeext conftest.$ac_ext;;
11557 *) ;;
11558 esac
11560 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
11561 # BeOS' sockets are stashed in libnet.
11562 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
11563 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
11564 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567 ac_check_lib_save_LIBS=$LIBS
11568 LIBS="-lnsl $LIBS"
11569 cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h. */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11576 /* Override any gcc2 internal prototype to avoid an error. */
11577 #ifdef __cplusplus
11578 extern "C"
11579 #endif
11580 /* We use char because int might match the return type of a gcc2
11581 builtin and then its argument prototype would still apply. */
11582 char t_open ();
11584 main ()
11586 t_open ();
11588 return 0;
11590 _ACEOF
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593 (eval $ac_link) 2>conftest.er1
11594 ac_status=$?
11595 grep -v '^ *+' conftest.er1 >conftest.err
11596 rm -f conftest.er1
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } &&
11600 { ac_try='test -z "$ac_c_werror_flag"
11601 || test ! -s conftest.err'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; } &&
11607 { ac_try='test -s conftest$ac_exeext'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }; then
11613 ac_cv_lib_nsl_t_open=yes
11614 else
11615 echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11618 ac_cv_lib_nsl_t_open=no
11620 rm -f conftest.err conftest.$ac_objext \
11621 conftest$ac_exeext conftest.$ac_ext
11622 LIBS=$ac_check_lib_save_LIBS
11624 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
11625 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
11626 if test $ac_cv_lib_nsl_t_open = yes; then
11627 LIBS="-lnsl $LIBS"
11629 # SVR4
11630 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
11631 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11632 if test "${ac_cv_lib_socket_socket+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635 ac_check_lib_save_LIBS=$LIBS
11636 LIBS="-lsocket $LIBS $LIBS"
11637 cat >conftest.$ac_ext <<_ACEOF
11638 /* confdefs.h. */
11639 _ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11644 /* Override any gcc2 internal prototype to avoid an error. */
11645 #ifdef __cplusplus
11646 extern "C"
11647 #endif
11648 /* We use char because int might match the return type of a gcc2
11649 builtin and then its argument prototype would still apply. */
11650 char socket ();
11652 main ()
11654 socket ();
11656 return 0;
11658 _ACEOF
11659 rm -f conftest.$ac_objext conftest$ac_exeext
11660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11661 (eval $ac_link) 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try='test -z "$ac_c_werror_flag"
11669 || test ! -s conftest.err'
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; } &&
11675 { ac_try='test -s conftest$ac_exeext'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 ac_cv_lib_socket_socket=yes
11682 else
11683 echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11686 ac_cv_lib_socket_socket=no
11688 rm -f conftest.err conftest.$ac_objext \
11689 conftest$ac_exeext conftest.$ac_ext
11690 LIBS=$ac_check_lib_save_LIBS
11692 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
11693 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11694 if test $ac_cv_lib_socket_socket = yes; then
11695 LIBS="-lsocket $LIBS"
11697 # SVR4 sockets
11699 case "$ac_sys_system" in
11700 BeOS*)
11701 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
11702 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
11703 if test "${ac_cv_lib_net_socket+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11705 else
11706 ac_check_lib_save_LIBS=$LIBS
11707 LIBS="-lnet $LIBS $LIBS"
11708 cat >conftest.$ac_ext <<_ACEOF
11709 /* confdefs.h. */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11715 /* Override any gcc2 internal prototype to avoid an error. */
11716 #ifdef __cplusplus
11717 extern "C"
11718 #endif
11719 /* We use char because int might match the return type of a gcc2
11720 builtin and then its argument prototype would still apply. */
11721 char socket ();
11723 main ()
11725 socket ();
11727 return 0;
11729 _ACEOF
11730 rm -f conftest.$ac_objext conftest$ac_exeext
11731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11732 (eval $ac_link) 2>conftest.er1
11733 ac_status=$?
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
11739 { ac_try='test -z "$ac_c_werror_flag"
11740 || test ! -s conftest.err'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11743 ac_status=$?
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; } &&
11746 { ac_try='test -s conftest$ac_exeext'
11747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11749 ac_status=$?
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; }; then
11752 ac_cv_lib_net_socket=yes
11753 else
11754 echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11757 ac_cv_lib_net_socket=no
11759 rm -f conftest.err conftest.$ac_objext \
11760 conftest$ac_exeext conftest.$ac_ext
11761 LIBS=$ac_check_lib_save_LIBS
11763 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
11764 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
11765 if test $ac_cv_lib_net_socket = yes; then
11766 LIBS="-lnet $LIBS"
11768 # BeOS
11770 esac
11772 echo "$as_me:$LINENO: checking for --with-libs" >&5
11773 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
11775 # Check whether --with-libs or --without-libs was given.
11776 if test "${with_libs+set}" = set; then
11777 withval="$with_libs"
11779 echo "$as_me:$LINENO: result: $withval" >&5
11780 echo "${ECHO_T}$withval" >&6
11781 LIBS="$withval $LIBS"
11783 else
11784 echo "$as_me:$LINENO: result: no" >&5
11785 echo "${ECHO_T}no" >&6
11788 # Check for use of the system libffi library
11789 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
11790 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
11792 # Check whether --with-system_ffi or --without-system_ffi was given.
11793 if test "${with_system_ffi+set}" = set; then
11794 withval="$with_system_ffi"
11798 if test -z "$with_system_ffi"
11799 then with_system_ffi="no"
11801 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
11802 echo "${ECHO_T}$with_system_ffi" >&6
11804 # Determine if signalmodule should be used.
11807 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
11808 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
11810 # Check whether --with-signal-module or --without-signal-module was given.
11811 if test "${with_signal_module+set}" = set; then
11812 withval="$with_signal_module"
11816 if test -z "$with_signal_module"
11817 then with_signal_module="yes"
11819 echo "$as_me:$LINENO: result: $with_signal_module" >&5
11820 echo "${ECHO_T}$with_signal_module" >&6
11822 if test "${with_signal_module}" = "yes"; then
11823 USE_SIGNAL_MODULE=""
11824 SIGNAL_OBJS=""
11825 else
11826 USE_SIGNAL_MODULE="#"
11827 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
11830 # This is used to generate Setup.config
11832 USE_THREAD_MODULE=""
11834 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
11835 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
11838 # Check whether --with-dec-threads or --without-dec-threads was given.
11839 if test "${with_dec_threads+set}" = set; then
11840 withval="$with_dec_threads"
11842 echo "$as_me:$LINENO: result: $withval" >&5
11843 echo "${ECHO_T}$withval" >&6
11844 LDLAST=-threads
11845 if test "${with_thread+set}" != set; then
11846 with_thread="$withval";
11848 else
11849 echo "$as_me:$LINENO: result: no" >&5
11850 echo "${ECHO_T}no" >&6
11853 # Templates for things AC_DEFINEd more than once.
11854 # For a single AC_DEFINE, no template is needed.
11862 echo "$as_me:$LINENO: checking for --with-threads" >&5
11863 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
11865 # Check whether --with-threads or --without-threads was given.
11866 if test "${with_threads+set}" = set; then
11867 withval="$with_threads"
11871 # --with-thread is deprecated, but check for it anyway
11873 # Check whether --with-thread or --without-thread was given.
11874 if test "${with_thread+set}" = set; then
11875 withval="$with_thread"
11876 with_threads=$with_thread
11879 if test -z "$with_threads"
11880 then with_threads="yes"
11882 echo "$as_me:$LINENO: result: $with_threads" >&5
11883 echo "${ECHO_T}$with_threads" >&6
11886 if test "$with_threads" = "no"
11887 then
11888 USE_THREAD_MODULE="#"
11889 elif test "$ac_cv_pthread_is_default" = yes
11890 then
11891 cat >>confdefs.h <<\_ACEOF
11892 #define WITH_THREAD 1
11893 _ACEOF
11895 # Defining _REENTRANT on system with POSIX threads should not hurt.
11896 cat >>confdefs.h <<\_ACEOF
11897 #define _REENTRANT 1
11898 _ACEOF
11900 posix_threads=yes
11901 THREADOBJ="Python/thread.o"
11902 elif test "$ac_cv_kpthread" = "yes"
11903 then
11904 CC="$CC -Kpthread"
11905 if test "$ac_cv_cxx_thread" = "yes"; then
11906 CXX="$CXX -Kpthread"
11908 cat >>confdefs.h <<\_ACEOF
11909 #define WITH_THREAD 1
11910 _ACEOF
11912 posix_threads=yes
11913 THREADOBJ="Python/thread.o"
11914 elif test "$ac_cv_kthread" = "yes"
11915 then
11916 CC="$CC -Kthread"
11917 if test "$ac_cv_cxx_thread" = "yes"; then
11918 CXX="$CXX -Kthread"
11920 cat >>confdefs.h <<\_ACEOF
11921 #define WITH_THREAD 1
11922 _ACEOF
11924 posix_threads=yes
11925 THREADOBJ="Python/thread.o"
11926 elif test "$ac_cv_pthread" = "yes"
11927 then
11928 CC="$CC -pthread"
11929 if test "$ac_cv_cxx_thread" = "yes"; then
11930 CXX="$CXX -pthread"
11932 cat >>confdefs.h <<\_ACEOF
11933 #define WITH_THREAD 1
11934 _ACEOF
11936 posix_threads=yes
11937 THREADOBJ="Python/thread.o"
11938 else
11939 if test ! -z "$with_threads" -a -d "$with_threads"
11940 then LDFLAGS="$LDFLAGS -L$with_threads"
11942 if test ! -z "$withval" -a -d "$withval"
11943 then LDFLAGS="$LDFLAGS -L$withval"
11946 # According to the POSIX spec, a pthreads implementation must
11947 # define _POSIX_THREADS in unistd.h. Some apparently don't
11948 # (e.g. gnu pth with pthread emulation)
11949 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
11950 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
11951 cat >conftest.$ac_ext <<_ACEOF
11952 /* confdefs.h. */
11953 _ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11958 #include <unistd.h>
11959 #ifdef _POSIX_THREADS
11961 #endif
11963 _ACEOF
11964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11965 $EGREP "yes" >/dev/null 2>&1; then
11966 unistd_defines_pthreads=yes
11967 else
11968 unistd_defines_pthreads=no
11970 rm -f conftest*
11972 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
11973 echo "${ECHO_T}$unistd_defines_pthreads" >&6
11975 cat >>confdefs.h <<\_ACEOF
11976 #define _REENTRANT 1
11977 _ACEOF
11979 if test "${ac_cv_header_cthreads_h+set}" = set; then
11980 echo "$as_me:$LINENO: checking for cthreads.h" >&5
11981 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
11982 if test "${ac_cv_header_cthreads_h+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
11986 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
11987 else
11988 # Is the header compilable?
11989 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
11990 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
11991 cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h. */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997 $ac_includes_default
11998 #include <cthreads.h>
11999 _ACEOF
12000 rm -f conftest.$ac_objext
12001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12002 (eval $ac_compile) 2>conftest.er1
12003 ac_status=$?
12004 grep -v '^ *+' conftest.er1 >conftest.err
12005 rm -f conftest.er1
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } &&
12009 { ac_try='test -z "$ac_c_werror_flag"
12010 || test ! -s conftest.err'
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; } &&
12016 { ac_try='test -s conftest.$ac_objext'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 ac_header_compiler=yes
12023 else
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 ac_header_compiler=no
12029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12031 echo "${ECHO_T}$ac_header_compiler" >&6
12033 # Is the header present?
12034 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12035 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12036 cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h. */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12042 #include <cthreads.h>
12043 _ACEOF
12044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } >/dev/null; then
12052 if test -s conftest.err; then
12053 ac_cpp_err=$ac_c_preproc_warn_flag
12054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12055 else
12056 ac_cpp_err=
12058 else
12059 ac_cpp_err=yes
12061 if test -z "$ac_cpp_err"; then
12062 ac_header_preproc=yes
12063 else
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ac_header_preproc=no
12069 rm -f conftest.err conftest.$ac_ext
12070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12071 echo "${ECHO_T}$ac_header_preproc" >&6
12073 # So? What about this header?
12074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12075 yes:no: )
12076 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12077 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12078 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12079 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12080 ac_header_preproc=yes
12082 no:yes:* )
12083 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12084 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12085 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12086 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12087 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12088 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12089 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12090 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12092 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12094 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12096 cat <<\_ASBOX
12097 ## ------------------------------------------------ ##
12098 ## Report this to http://www.python.org/python-bugs ##
12099 ## ------------------------------------------------ ##
12100 _ASBOX
12102 sed "s/^/$as_me: WARNING: /" >&2
12104 esac
12105 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12106 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12107 if test "${ac_cv_header_cthreads_h+set}" = set; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12109 else
12110 ac_cv_header_cthreads_h=$ac_header_preproc
12112 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12113 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12116 if test $ac_cv_header_cthreads_h = yes; then
12117 cat >>confdefs.h <<\_ACEOF
12118 #define WITH_THREAD 1
12119 _ACEOF
12121 cat >>confdefs.h <<\_ACEOF
12122 #define C_THREADS 1
12123 _ACEOF
12126 cat >>confdefs.h <<\_ACEOF
12127 #define HURD_C_THREADS 1
12128 _ACEOF
12130 LIBS="$LIBS -lthreads"
12131 THREADOBJ="Python/thread.o"
12132 else
12134 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12135 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12136 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12137 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12141 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12142 else
12143 # Is the header compilable?
12144 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12145 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12146 cat >conftest.$ac_ext <<_ACEOF
12147 /* confdefs.h. */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 $ac_includes_default
12153 #include <mach/cthreads.h>
12154 _ACEOF
12155 rm -f conftest.$ac_objext
12156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12157 (eval $ac_compile) 2>conftest.er1
12158 ac_status=$?
12159 grep -v '^ *+' conftest.er1 >conftest.err
12160 rm -f conftest.er1
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } &&
12164 { ac_try='test -z "$ac_c_werror_flag"
12165 || test ! -s conftest.err'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; } &&
12171 { ac_try='test -s conftest.$ac_objext'
12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173 (eval $ac_try) 2>&5
12174 ac_status=$?
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; }; then
12177 ac_header_compiler=yes
12178 else
12179 echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12182 ac_header_compiler=no
12184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12186 echo "${ECHO_T}$ac_header_compiler" >&6
12188 # Is the header present?
12189 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12190 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h. */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 #include <mach/cthreads.h>
12198 _ACEOF
12199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12201 ac_status=$?
12202 grep -v '^ *+' conftest.er1 >conftest.err
12203 rm -f conftest.er1
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } >/dev/null; then
12207 if test -s conftest.err; then
12208 ac_cpp_err=$ac_c_preproc_warn_flag
12209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12210 else
12211 ac_cpp_err=
12213 else
12214 ac_cpp_err=yes
12216 if test -z "$ac_cpp_err"; then
12217 ac_header_preproc=yes
12218 else
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12222 ac_header_preproc=no
12224 rm -f conftest.err conftest.$ac_ext
12225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12226 echo "${ECHO_T}$ac_header_preproc" >&6
12228 # So? What about this header?
12229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12230 yes:no: )
12231 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12232 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12233 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12234 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12235 ac_header_preproc=yes
12237 no:yes:* )
12238 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12239 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12240 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12241 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12242 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12243 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12244 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12245 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12246 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12247 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12248 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12249 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12251 cat <<\_ASBOX
12252 ## ------------------------------------------------ ##
12253 ## Report this to http://www.python.org/python-bugs ##
12254 ## ------------------------------------------------ ##
12255 _ASBOX
12257 sed "s/^/$as_me: WARNING: /" >&2
12259 esac
12260 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12261 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12262 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265 ac_cv_header_mach_cthreads_h=$ac_header_preproc
12267 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12268 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12271 if test $ac_cv_header_mach_cthreads_h = yes; then
12272 cat >>confdefs.h <<\_ACEOF
12273 #define WITH_THREAD 1
12274 _ACEOF
12276 cat >>confdefs.h <<\_ACEOF
12277 #define C_THREADS 1
12278 _ACEOF
12281 cat >>confdefs.h <<\_ACEOF
12282 #define MACH_C_THREADS 1
12283 _ACEOF
12285 THREADOBJ="Python/thread.o"
12286 else
12288 echo "$as_me:$LINENO: checking for --with-pth" >&5
12289 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12291 # Check whether --with-pth or --without-pth was given.
12292 if test "${with_pth+set}" = set; then
12293 withval="$with_pth"
12294 echo "$as_me:$LINENO: result: $withval" >&5
12295 echo "${ECHO_T}$withval" >&6
12296 cat >>confdefs.h <<\_ACEOF
12297 #define WITH_THREAD 1
12298 _ACEOF
12301 cat >>confdefs.h <<\_ACEOF
12302 #define HAVE_PTH 1
12303 _ACEOF
12305 LIBS="-lpth $LIBS"
12306 THREADOBJ="Python/thread.o"
12307 else
12308 echo "$as_me:$LINENO: result: no" >&5
12309 echo "${ECHO_T}no" >&6
12311 # Just looking for pthread_create in libpthread is not enough:
12312 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12313 # So we really have to include pthread.h, and then link.
12314 _libs=$LIBS
12315 LIBS="$LIBS -lpthread"
12316 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12317 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12318 cat >conftest.$ac_ext <<_ACEOF
12319 /* confdefs.h. */
12320 _ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12324 #include <pthread.h>
12326 void * start_routine (void *arg) { exit (0); }
12328 main ()
12331 pthread_create (NULL, NULL, start_routine, NULL)
12333 return 0;
12335 _ACEOF
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12338 (eval $ac_link) 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } &&
12345 { ac_try='test -z "$ac_c_werror_flag"
12346 || test ! -s conftest.err'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; } &&
12352 { ac_try='test -s conftest$ac_exeext'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12359 echo "$as_me:$LINENO: result: yes" >&5
12360 echo "${ECHO_T}yes" >&6
12361 cat >>confdefs.h <<\_ACEOF
12362 #define WITH_THREAD 1
12363 _ACEOF
12365 posix_threads=yes
12366 THREADOBJ="Python/thread.o"
12367 else
12368 echo "$as_me: failed program was:" >&5
12369 sed 's/^/| /' conftest.$ac_ext >&5
12372 LIBS=$_libs
12373 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12374 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12375 if test "${ac_cv_func_pthread_detach+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378 cat >conftest.$ac_ext <<_ACEOF
12379 /* confdefs.h. */
12380 _ACEOF
12381 cat confdefs.h >>conftest.$ac_ext
12382 cat >>conftest.$ac_ext <<_ACEOF
12383 /* end confdefs.h. */
12384 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12386 #define pthread_detach innocuous_pthread_detach
12388 /* System header to define __stub macros and hopefully few prototypes,
12389 which can conflict with char pthread_detach (); below.
12390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12391 <limits.h> exists even on freestanding compilers. */
12393 #ifdef __STDC__
12394 # include <limits.h>
12395 #else
12396 # include <assert.h>
12397 #endif
12399 #undef pthread_detach
12401 /* Override any gcc2 internal prototype to avoid an error. */
12402 #ifdef __cplusplus
12403 extern "C"
12405 #endif
12406 /* We use char because int might match the return type of a gcc2
12407 builtin and then its argument prototype would still apply. */
12408 char pthread_detach ();
12409 /* The GNU C library defines this for functions which it implements
12410 to always fail with ENOSYS. Some functions are actually named
12411 something starting with __ and the normal name is an alias. */
12412 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
12413 choke me
12414 #else
12415 char (*f) () = pthread_detach;
12416 #endif
12417 #ifdef __cplusplus
12419 #endif
12422 main ()
12424 return f != pthread_detach;
12426 return 0;
12428 _ACEOF
12429 rm -f conftest.$ac_objext conftest$ac_exeext
12430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12431 (eval $ac_link) 2>conftest.er1
12432 ac_status=$?
12433 grep -v '^ *+' conftest.er1 >conftest.err
12434 rm -f conftest.er1
12435 cat conftest.err >&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } &&
12438 { ac_try='test -z "$ac_c_werror_flag"
12439 || test ! -s conftest.err'
12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12442 ac_status=$?
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; } &&
12445 { ac_try='test -s conftest$ac_exeext'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
12451 ac_cv_func_pthread_detach=yes
12452 else
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12456 ac_cv_func_pthread_detach=no
12458 rm -f conftest.err conftest.$ac_objext \
12459 conftest$ac_exeext conftest.$ac_ext
12461 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
12462 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
12463 if test $ac_cv_func_pthread_detach = yes; then
12464 cat >>confdefs.h <<\_ACEOF
12465 #define WITH_THREAD 1
12466 _ACEOF
12468 posix_threads=yes
12469 THREADOBJ="Python/thread.o"
12470 else
12472 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12473 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12474 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12475 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12479 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12480 else
12481 # Is the header compilable?
12482 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
12483 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
12484 cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h. */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12490 $ac_includes_default
12491 #include <atheos/threads.h>
12492 _ACEOF
12493 rm -f conftest.$ac_objext
12494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12495 (eval $ac_compile) 2>conftest.er1
12496 ac_status=$?
12497 grep -v '^ *+' conftest.er1 >conftest.err
12498 rm -f conftest.er1
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
12502 { ac_try='test -z "$ac_c_werror_flag"
12503 || test ! -s conftest.err'
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; } &&
12509 { ac_try='test -s conftest.$ac_objext'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
12515 ac_header_compiler=yes
12516 else
12517 echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.$ac_ext >&5
12520 ac_header_compiler=no
12522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12524 echo "${ECHO_T}$ac_header_compiler" >&6
12526 # Is the header present?
12527 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
12528 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
12529 cat >conftest.$ac_ext <<_ACEOF
12530 /* confdefs.h. */
12531 _ACEOF
12532 cat confdefs.h >>conftest.$ac_ext
12533 cat >>conftest.$ac_ext <<_ACEOF
12534 /* end confdefs.h. */
12535 #include <atheos/threads.h>
12536 _ACEOF
12537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12539 ac_status=$?
12540 grep -v '^ *+' conftest.er1 >conftest.err
12541 rm -f conftest.er1
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } >/dev/null; then
12545 if test -s conftest.err; then
12546 ac_cpp_err=$ac_c_preproc_warn_flag
12547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12548 else
12549 ac_cpp_err=
12551 else
12552 ac_cpp_err=yes
12554 if test -z "$ac_cpp_err"; then
12555 ac_header_preproc=yes
12556 else
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12560 ac_header_preproc=no
12562 rm -f conftest.err conftest.$ac_ext
12563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12564 echo "${ECHO_T}$ac_header_preproc" >&6
12566 # So? What about this header?
12567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12568 yes:no: )
12569 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12570 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
12572 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
12573 ac_header_preproc=yes
12575 no:yes:* )
12576 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
12577 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
12578 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
12579 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
12580 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
12581 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
12582 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
12583 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12584 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
12585 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
12586 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
12587 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
12589 cat <<\_ASBOX
12590 ## ------------------------------------------------ ##
12591 ## Report this to http://www.python.org/python-bugs ##
12592 ## ------------------------------------------------ ##
12593 _ASBOX
12595 sed "s/^/$as_me: WARNING: /" >&2
12597 esac
12598 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
12599 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
12600 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12602 else
12603 ac_cv_header_atheos_threads_h=$ac_header_preproc
12605 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
12606 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
12609 if test $ac_cv_header_atheos_threads_h = yes; then
12610 cat >>confdefs.h <<\_ACEOF
12611 #define WITH_THREAD 1
12612 _ACEOF
12615 cat >>confdefs.h <<\_ACEOF
12616 #define ATHEOS_THREADS 1
12617 _ACEOF
12619 THREADOBJ="Python/thread.o"
12620 else
12622 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12623 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12624 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12625 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12628 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12629 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12630 else
12631 # Is the header compilable?
12632 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
12633 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
12634 cat >conftest.$ac_ext <<_ACEOF
12635 /* confdefs.h. */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12640 $ac_includes_default
12641 #include <kernel/OS.h>
12642 _ACEOF
12643 rm -f conftest.$ac_objext
12644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12645 (eval $ac_compile) 2>conftest.er1
12646 ac_status=$?
12647 grep -v '^ *+' conftest.er1 >conftest.err
12648 rm -f conftest.er1
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } &&
12652 { ac_try='test -z "$ac_c_werror_flag"
12653 || test ! -s conftest.err'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; } &&
12659 { ac_try='test -s conftest.$ac_objext'
12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12662 ac_status=$?
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; }; then
12665 ac_header_compiler=yes
12666 else
12667 echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12670 ac_header_compiler=no
12672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12674 echo "${ECHO_T}$ac_header_compiler" >&6
12676 # Is the header present?
12677 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
12678 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
12679 cat >conftest.$ac_ext <<_ACEOF
12680 /* confdefs.h. */
12681 _ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12685 #include <kernel/OS.h>
12686 _ACEOF
12687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12689 ac_status=$?
12690 grep -v '^ *+' conftest.er1 >conftest.err
12691 rm -f conftest.er1
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } >/dev/null; then
12695 if test -s conftest.err; then
12696 ac_cpp_err=$ac_c_preproc_warn_flag
12697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12698 else
12699 ac_cpp_err=
12701 else
12702 ac_cpp_err=yes
12704 if test -z "$ac_cpp_err"; then
12705 ac_header_preproc=yes
12706 else
12707 echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.$ac_ext >&5
12710 ac_header_preproc=no
12712 rm -f conftest.err conftest.$ac_ext
12713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12714 echo "${ECHO_T}$ac_header_preproc" >&6
12716 # So? What about this header?
12717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12718 yes:no: )
12719 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
12720 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12721 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
12722 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
12723 ac_header_preproc=yes
12725 no:yes:* )
12726 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
12727 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
12728 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
12729 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
12730 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
12731 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
12732 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
12733 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
12734 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
12735 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
12736 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
12737 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
12739 cat <<\_ASBOX
12740 ## ------------------------------------------------ ##
12741 ## Report this to http://www.python.org/python-bugs ##
12742 ## ------------------------------------------------ ##
12743 _ASBOX
12745 sed "s/^/$as_me: WARNING: /" >&2
12747 esac
12748 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
12749 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
12750 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 else
12753 ac_cv_header_kernel_OS_h=$ac_header_preproc
12755 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
12756 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
12759 if test $ac_cv_header_kernel_OS_h = yes; then
12760 cat >>confdefs.h <<\_ACEOF
12761 #define WITH_THREAD 1
12762 _ACEOF
12765 cat >>confdefs.h <<\_ACEOF
12766 #define BEOS_THREADS 1
12767 _ACEOF
12769 THREADOBJ="Python/thread.o"
12770 else
12772 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
12773 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
12774 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 else
12777 ac_check_lib_save_LIBS=$LIBS
12778 LIBS="-lpthreads $LIBS"
12779 cat >conftest.$ac_ext <<_ACEOF
12780 /* confdefs.h. */
12781 _ACEOF
12782 cat confdefs.h >>conftest.$ac_ext
12783 cat >>conftest.$ac_ext <<_ACEOF
12784 /* end confdefs.h. */
12786 /* Override any gcc2 internal prototype to avoid an error. */
12787 #ifdef __cplusplus
12788 extern "C"
12789 #endif
12790 /* We use char because int might match the return type of a gcc2
12791 builtin and then its argument prototype would still apply. */
12792 char pthread_create ();
12794 main ()
12796 pthread_create ();
12798 return 0;
12800 _ACEOF
12801 rm -f conftest.$ac_objext conftest$ac_exeext
12802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12803 (eval $ac_link) 2>conftest.er1
12804 ac_status=$?
12805 grep -v '^ *+' conftest.er1 >conftest.err
12806 rm -f conftest.er1
12807 cat conftest.err >&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); } &&
12810 { ac_try='test -z "$ac_c_werror_flag"
12811 || test ! -s conftest.err'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; } &&
12817 { ac_try='test -s conftest$ac_exeext'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 ac_cv_lib_pthreads_pthread_create=yes
12824 else
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 ac_cv_lib_pthreads_pthread_create=no
12830 rm -f conftest.err conftest.$ac_objext \
12831 conftest$ac_exeext conftest.$ac_ext
12832 LIBS=$ac_check_lib_save_LIBS
12834 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
12835 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
12836 if test $ac_cv_lib_pthreads_pthread_create = yes; then
12837 cat >>confdefs.h <<\_ACEOF
12838 #define WITH_THREAD 1
12839 _ACEOF
12841 posix_threads=yes
12842 LIBS="$LIBS -lpthreads"
12843 THREADOBJ="Python/thread.o"
12844 else
12846 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
12847 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
12848 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 else
12851 ac_check_lib_save_LIBS=$LIBS
12852 LIBS="-lc_r $LIBS"
12853 cat >conftest.$ac_ext <<_ACEOF
12854 /* confdefs.h. */
12855 _ACEOF
12856 cat confdefs.h >>conftest.$ac_ext
12857 cat >>conftest.$ac_ext <<_ACEOF
12858 /* end confdefs.h. */
12860 /* Override any gcc2 internal prototype to avoid an error. */
12861 #ifdef __cplusplus
12862 extern "C"
12863 #endif
12864 /* We use char because int might match the return type of a gcc2
12865 builtin and then its argument prototype would still apply. */
12866 char pthread_create ();
12868 main ()
12870 pthread_create ();
12872 return 0;
12874 _ACEOF
12875 rm -f conftest.$ac_objext conftest$ac_exeext
12876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12877 (eval $ac_link) 2>conftest.er1
12878 ac_status=$?
12879 grep -v '^ *+' conftest.er1 >conftest.err
12880 rm -f conftest.er1
12881 cat conftest.err >&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
12884 { ac_try='test -z "$ac_c_werror_flag"
12885 || test ! -s conftest.err'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12894 ac_status=$?
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; }; then
12897 ac_cv_lib_c_r_pthread_create=yes
12898 else
12899 echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12902 ac_cv_lib_c_r_pthread_create=no
12904 rm -f conftest.err conftest.$ac_objext \
12905 conftest$ac_exeext conftest.$ac_ext
12906 LIBS=$ac_check_lib_save_LIBS
12908 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12909 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
12910 if test $ac_cv_lib_c_r_pthread_create = yes; then
12911 cat >>confdefs.h <<\_ACEOF
12912 #define WITH_THREAD 1
12913 _ACEOF
12915 posix_threads=yes
12916 LIBS="$LIBS -lc_r"
12917 THREADOBJ="Python/thread.o"
12918 else
12920 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
12921 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
12922 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925 ac_check_lib_save_LIBS=$LIBS
12926 LIBS="-lpthread $LIBS"
12927 cat >conftest.$ac_ext <<_ACEOF
12928 /* confdefs.h. */
12929 _ACEOF
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h. */
12934 /* Override any gcc2 internal prototype to avoid an error. */
12935 #ifdef __cplusplus
12936 extern "C"
12937 #endif
12938 /* We use char because int might match the return type of a gcc2
12939 builtin and then its argument prototype would still apply. */
12940 char __pthread_create_system ();
12942 main ()
12944 __pthread_create_system ();
12946 return 0;
12948 _ACEOF
12949 rm -f conftest.$ac_objext conftest$ac_exeext
12950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12951 (eval $ac_link) 2>conftest.er1
12952 ac_status=$?
12953 grep -v '^ *+' conftest.er1 >conftest.err
12954 rm -f conftest.er1
12955 cat conftest.err >&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -z "$ac_c_werror_flag"
12959 || test ! -s conftest.err'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try='test -s conftest$ac_exeext'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; }; then
12971 ac_cv_lib_pthread___pthread_create_system=yes
12972 else
12973 echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12976 ac_cv_lib_pthread___pthread_create_system=no
12978 rm -f conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12980 LIBS=$ac_check_lib_save_LIBS
12982 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
12983 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
12984 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
12985 cat >>confdefs.h <<\_ACEOF
12986 #define WITH_THREAD 1
12987 _ACEOF
12989 posix_threads=yes
12990 LIBS="$LIBS -lpthread"
12991 THREADOBJ="Python/thread.o"
12992 else
12994 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
12995 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
12996 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999 ac_check_lib_save_LIBS=$LIBS
13000 LIBS="-lcma $LIBS"
13001 cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h. */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13008 /* Override any gcc2 internal prototype to avoid an error. */
13009 #ifdef __cplusplus
13010 extern "C"
13011 #endif
13012 /* We use char because int might match the return type of a gcc2
13013 builtin and then its argument prototype would still apply. */
13014 char pthread_create ();
13016 main ()
13018 pthread_create ();
13020 return 0;
13022 _ACEOF
13023 rm -f conftest.$ac_objext conftest$ac_exeext
13024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13025 (eval $ac_link) 2>conftest.er1
13026 ac_status=$?
13027 grep -v '^ *+' conftest.er1 >conftest.err
13028 rm -f conftest.er1
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } &&
13032 { ac_try='test -z "$ac_c_werror_flag"
13033 || test ! -s conftest.err'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13036 ac_status=$?
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; } &&
13039 { ac_try='test -s conftest$ac_exeext'
13040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041 (eval $ac_try) 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; }; then
13045 ac_cv_lib_cma_pthread_create=yes
13046 else
13047 echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.$ac_ext >&5
13050 ac_cv_lib_cma_pthread_create=no
13052 rm -f conftest.err conftest.$ac_objext \
13053 conftest$ac_exeext conftest.$ac_ext
13054 LIBS=$ac_check_lib_save_LIBS
13056 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13057 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13058 if test $ac_cv_lib_cma_pthread_create = yes; then
13059 cat >>confdefs.h <<\_ACEOF
13060 #define WITH_THREAD 1
13061 _ACEOF
13063 posix_threads=yes
13064 LIBS="$LIBS -lcma"
13065 THREADOBJ="Python/thread.o"
13066 else
13068 USE_THREAD_MODULE="#"
13087 rm -f conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13097 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13098 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13099 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102 ac_check_lib_save_LIBS=$LIBS
13103 LIBS="-lmpc $LIBS"
13104 cat >conftest.$ac_ext <<_ACEOF
13105 /* confdefs.h. */
13106 _ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13111 /* Override any gcc2 internal prototype to avoid an error. */
13112 #ifdef __cplusplus
13113 extern "C"
13114 #endif
13115 /* We use char because int might match the return type of a gcc2
13116 builtin and then its argument prototype would still apply. */
13117 char usconfig ();
13119 main ()
13121 usconfig ();
13123 return 0;
13125 _ACEOF
13126 rm -f conftest.$ac_objext conftest$ac_exeext
13127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13128 (eval $ac_link) 2>conftest.er1
13129 ac_status=$?
13130 grep -v '^ *+' conftest.er1 >conftest.err
13131 rm -f conftest.er1
13132 cat conftest.err >&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } &&
13135 { ac_try='test -z "$ac_c_werror_flag"
13136 || test ! -s conftest.err'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13139 ac_status=$?
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; } &&
13142 { ac_try='test -s conftest$ac_exeext'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13145 ac_status=$?
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 ac_cv_lib_mpc_usconfig=yes
13149 else
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13153 ac_cv_lib_mpc_usconfig=no
13155 rm -f conftest.err conftest.$ac_objext \
13156 conftest$ac_exeext conftest.$ac_ext
13157 LIBS=$ac_check_lib_save_LIBS
13159 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13160 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13161 if test $ac_cv_lib_mpc_usconfig = yes; then
13162 cat >>confdefs.h <<\_ACEOF
13163 #define WITH_THREAD 1
13164 _ACEOF
13166 LIBS="$LIBS -lmpc"
13167 THREADOBJ="Python/thread.o"
13168 USE_THREAD_MODULE=""
13172 if test "$posix_threads" != "yes"; then
13173 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13174 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13175 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13177 else
13178 ac_check_lib_save_LIBS=$LIBS
13179 LIBS="-lthread $LIBS"
13180 cat >conftest.$ac_ext <<_ACEOF
13181 /* confdefs.h. */
13182 _ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h. */
13187 /* Override any gcc2 internal prototype to avoid an error. */
13188 #ifdef __cplusplus
13189 extern "C"
13190 #endif
13191 /* We use char because int might match the return type of a gcc2
13192 builtin and then its argument prototype would still apply. */
13193 char thr_create ();
13195 main ()
13197 thr_create ();
13199 return 0;
13201 _ACEOF
13202 rm -f conftest.$ac_objext conftest$ac_exeext
13203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13204 (eval $ac_link) 2>conftest.er1
13205 ac_status=$?
13206 grep -v '^ *+' conftest.er1 >conftest.err
13207 rm -f conftest.er1
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
13211 { ac_try='test -z "$ac_c_werror_flag"
13212 || test ! -s conftest.err'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; } &&
13218 { ac_try='test -s conftest$ac_exeext'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }; then
13224 ac_cv_lib_thread_thr_create=yes
13225 else
13226 echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.$ac_ext >&5
13229 ac_cv_lib_thread_thr_create=no
13231 rm -f conftest.err conftest.$ac_objext \
13232 conftest$ac_exeext conftest.$ac_ext
13233 LIBS=$ac_check_lib_save_LIBS
13235 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13236 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13237 if test $ac_cv_lib_thread_thr_create = yes; then
13238 cat >>confdefs.h <<\_ACEOF
13239 #define WITH_THREAD 1
13240 _ACEOF
13242 LIBS="$LIBS -lthread"
13243 THREADOBJ="Python/thread.o"
13244 USE_THREAD_MODULE=""
13249 if test "$USE_THREAD_MODULE" != "#"
13250 then
13251 # If the above checks didn't disable threads, (at least) OSF1
13252 # needs this '-threads' argument during linking.
13253 case $ac_sys_system in
13254 OSF1) LDLAST=-threads;;
13255 esac
13259 if test "$posix_threads" = "yes"; then
13260 if test "$unistd_defines_pthreads" = "no"; then
13262 cat >>confdefs.h <<\_ACEOF
13263 #define _POSIX_THREADS 1
13264 _ACEOF
13268 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13269 case $ac_sys_system/$ac_sys_release in
13270 SunOS/5.6)
13271 cat >>confdefs.h <<\_ACEOF
13272 #define HAVE_PTHREAD_DESTRUCTOR 1
13273 _ACEOF
13276 SunOS/5.8)
13277 cat >>confdefs.h <<\_ACEOF
13278 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13279 _ACEOF
13282 esac
13284 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13285 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13286 if test "${ac_cv_pthread_system_supported+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289 if test "$cross_compiling" = yes; then
13290 ac_cv_pthread_system_supported=no
13291 else
13292 cat >conftest.$ac_ext <<_ACEOF
13293 /* confdefs.h. */
13294 _ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13298 #include <pthread.h>
13299 void *foo(void *parm) {
13300 return NULL;
13302 main() {
13303 pthread_attr_t attr;
13304 pthread_t id;
13305 if (pthread_attr_init(&attr)) exit(-1);
13306 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13307 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13308 exit(0);
13310 _ACEOF
13311 rm -f conftest$ac_exeext
13312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13313 (eval $ac_link) 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13319 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; }; then
13322 ac_cv_pthread_system_supported=yes
13323 else
13324 echo "$as_me: program exited with status $ac_status" >&5
13325 echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13328 ( exit $ac_status )
13329 ac_cv_pthread_system_supported=no
13331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13336 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13337 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13338 if test "$ac_cv_pthread_system_supported" = "yes"; then
13340 cat >>confdefs.h <<\_ACEOF
13341 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13342 _ACEOF
13346 for ac_func in pthread_sigmask
13348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13349 echo "$as_me:$LINENO: checking for $ac_func" >&5
13350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13351 if eval "test \"\${$as_ac_var+set}\" = set"; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 else
13354 cat >conftest.$ac_ext <<_ACEOF
13355 /* confdefs.h. */
13356 _ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h. */
13360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13362 #define $ac_func innocuous_$ac_func
13364 /* System header to define __stub macros and hopefully few prototypes,
13365 which can conflict with char $ac_func (); below.
13366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13367 <limits.h> exists even on freestanding compilers. */
13369 #ifdef __STDC__
13370 # include <limits.h>
13371 #else
13372 # include <assert.h>
13373 #endif
13375 #undef $ac_func
13377 /* Override any gcc2 internal prototype to avoid an error. */
13378 #ifdef __cplusplus
13379 extern "C"
13381 #endif
13382 /* We use char because int might match the return type of a gcc2
13383 builtin and then its argument prototype would still apply. */
13384 char $ac_func ();
13385 /* The GNU C library defines this for functions which it implements
13386 to always fail with ENOSYS. Some functions are actually named
13387 something starting with __ and the normal name is an alias. */
13388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13389 choke me
13390 #else
13391 char (*f) () = $ac_func;
13392 #endif
13393 #ifdef __cplusplus
13395 #endif
13398 main ()
13400 return f != $ac_func;
13402 return 0;
13404 _ACEOF
13405 rm -f conftest.$ac_objext conftest$ac_exeext
13406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13407 (eval $ac_link) 2>conftest.er1
13408 ac_status=$?
13409 grep -v '^ *+' conftest.er1 >conftest.err
13410 rm -f conftest.er1
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
13414 { ac_try='test -z "$ac_c_werror_flag"
13415 || test ! -s conftest.err'
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; } &&
13421 { ac_try='test -s conftest$ac_exeext'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13427 eval "$as_ac_var=yes"
13428 else
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13432 eval "$as_ac_var=no"
13434 rm -f conftest.err conftest.$ac_objext \
13435 conftest$ac_exeext conftest.$ac_ext
13437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13439 if test `eval echo '${'$as_ac_var'}'` = yes; then
13440 cat >>confdefs.h <<_ACEOF
13441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13442 _ACEOF
13443 case $ac_sys_system in
13444 CYGWIN*)
13446 cat >>confdefs.h <<\_ACEOF
13447 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
13448 _ACEOF
13451 esac
13453 done
13458 # Check for enable-ipv6
13461 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
13462 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
13463 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13464 if test "${enable_ipv6+set}" = set; then
13465 enableval="$enable_ipv6"
13466 case "$enableval" in
13468 echo "$as_me:$LINENO: result: no" >&5
13469 echo "${ECHO_T}no" >&6
13470 ipv6=no
13472 *) echo "$as_me:$LINENO: result: yes" >&5
13473 echo "${ECHO_T}yes" >&6
13474 cat >>confdefs.h <<\_ACEOF
13475 #define ENABLE_IPV6 1
13476 _ACEOF
13478 ipv6=yes
13480 esac
13481 else
13483 if test "$cross_compiling" = yes; then
13484 echo "$as_me:$LINENO: result: no" >&5
13485 echo "${ECHO_T}no" >&6
13486 ipv6=no
13488 else
13489 cat >conftest.$ac_ext <<_ACEOF
13490 /* confdefs.h. */
13491 _ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13495 /* AF_INET6 available check */
13496 #include <sys/types.h>
13497 #include <sys/socket.h>
13498 main()
13500 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
13501 exit(1);
13502 else
13503 exit(0);
13506 _ACEOF
13507 rm -f conftest$ac_exeext
13508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13509 (eval $ac_link) 2>&5
13510 ac_status=$?
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13515 ac_status=$?
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; }; then
13518 echo "$as_me:$LINENO: result: yes" >&5
13519 echo "${ECHO_T}yes" >&6
13520 ipv6=yes
13521 else
13522 echo "$as_me: program exited with status $ac_status" >&5
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13526 ( exit $ac_status )
13527 echo "$as_me:$LINENO: result: no" >&5
13528 echo "${ECHO_T}no" >&6
13529 ipv6=no
13531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13534 if test "$ipv6" = "yes"; then
13535 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
13536 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
13537 cat >conftest.$ac_ext <<_ACEOF
13538 /* confdefs.h. */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13543 #include <sys/types.h>
13544 #include <netinet/in.h>
13546 main ()
13548 struct sockaddr_in6 x;
13549 x.sin6_scope_id;
13551 return 0;
13553 _ACEOF
13554 rm -f conftest.$ac_objext
13555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13556 (eval $ac_compile) 2>conftest.er1
13557 ac_status=$?
13558 grep -v '^ *+' conftest.er1 >conftest.err
13559 rm -f conftest.er1
13560 cat conftest.err >&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } &&
13563 { ac_try='test -z "$ac_c_werror_flag"
13564 || test ! -s conftest.err'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; } &&
13570 { ac_try='test -s conftest.$ac_objext'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
13576 echo "$as_me:$LINENO: result: yes" >&5
13577 echo "${ECHO_T}yes" >&6
13578 ipv6=yes
13579 else
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 echo "$as_me:$LINENO: result: no" >&5
13584 echo "${ECHO_T}no" >&6
13585 ipv6=no
13587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13590 if test "$ipv6" = "yes"; then
13591 cat >>confdefs.h <<\_ACEOF
13592 #define ENABLE_IPV6 1
13593 _ACEOF
13599 ipv6type=unknown
13600 ipv6lib=none
13601 ipv6trylibc=no
13603 if test "$ipv6" = "yes"; then
13604 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
13605 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
13606 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
13608 case $i in
13609 inria)
13610 cat >conftest.$ac_ext <<_ACEOF
13611 /* confdefs.h. */
13612 _ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13617 #include <netinet/in.h>
13618 #ifdef IPV6_INRIA_VERSION
13620 #endif
13621 _ACEOF
13622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13623 $EGREP "yes" >/dev/null 2>&1; then
13624 ipv6type=$i
13626 rm -f conftest*
13629 kame)
13630 cat >conftest.$ac_ext <<_ACEOF
13631 /* confdefs.h. */
13632 _ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13637 #include <netinet/in.h>
13638 #ifdef __KAME__
13640 #endif
13641 _ACEOF
13642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13643 $EGREP "yes" >/dev/null 2>&1; then
13644 ipv6type=$i;
13645 ipv6lib=inet6
13646 ipv6libdir=/usr/local/v6/lib
13647 ipv6trylibc=yes
13649 rm -f conftest*
13652 linux-glibc)
13653 cat >conftest.$ac_ext <<_ACEOF
13654 /* confdefs.h. */
13655 _ACEOF
13656 cat confdefs.h >>conftest.$ac_ext
13657 cat >>conftest.$ac_ext <<_ACEOF
13658 /* end confdefs.h. */
13660 #include <features.h>
13661 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
13663 #endif
13664 _ACEOF
13665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13666 $EGREP "yes" >/dev/null 2>&1; then
13667 ipv6type=$i;
13668 ipv6trylibc=yes
13670 rm -f conftest*
13673 linux-inet6)
13674 if test -d /usr/inet6; then
13675 ipv6type=$i
13676 ipv6lib=inet6
13677 ipv6libdir=/usr/inet6/lib
13678 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
13681 solaris)
13682 if test -f /etc/netconfig; then
13683 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
13684 ipv6type=$i
13685 ipv6trylibc=yes
13689 toshiba)
13690 cat >conftest.$ac_ext <<_ACEOF
13691 /* confdefs.h. */
13692 _ACEOF
13693 cat confdefs.h >>conftest.$ac_ext
13694 cat >>conftest.$ac_ext <<_ACEOF
13695 /* end confdefs.h. */
13697 #include <sys/param.h>
13698 #ifdef _TOSHIBA_INET6
13700 #endif
13701 _ACEOF
13702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13703 $EGREP "yes" >/dev/null 2>&1; then
13704 ipv6type=$i;
13705 ipv6lib=inet6;
13706 ipv6libdir=/usr/local/v6/lib
13708 rm -f conftest*
13711 v6d)
13712 cat >conftest.$ac_ext <<_ACEOF
13713 /* confdefs.h. */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13719 #include </usr/local/v6/include/sys/v6config.h>
13720 #ifdef __V6D__
13722 #endif
13723 _ACEOF
13724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13725 $EGREP "yes" >/dev/null 2>&1; then
13726 ipv6type=$i;
13727 ipv6lib=v6;
13728 ipv6libdir=/usr/local/v6/lib;
13729 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
13731 rm -f conftest*
13734 zeta)
13735 cat >conftest.$ac_ext <<_ACEOF
13736 /* confdefs.h. */
13737 _ACEOF
13738 cat confdefs.h >>conftest.$ac_ext
13739 cat >>conftest.$ac_ext <<_ACEOF
13740 /* end confdefs.h. */
13742 #include <sys/param.h>
13743 #ifdef _ZETA_MINAMI_INET6
13745 #endif
13746 _ACEOF
13747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13748 $EGREP "yes" >/dev/null 2>&1; then
13749 ipv6type=$i;
13750 ipv6lib=inet6;
13751 ipv6libdir=/usr/local/v6/lib
13753 rm -f conftest*
13756 esac
13757 if test "$ipv6type" != "unknown"; then
13758 break
13760 done
13761 echo "$as_me:$LINENO: result: $ipv6type" >&5
13762 echo "${ECHO_T}$ipv6type" >&6
13765 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
13766 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
13767 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
13768 echo "using lib$ipv6lib"
13769 else
13770 if test $ipv6trylibc = "yes"; then
13771 echo "using libc"
13772 else
13773 echo 'Fatal: no $ipv6lib library found. cannot continue.'
13774 echo "You need to fetch lib$ipv6lib.a from appropriate"
13775 echo 'ipv6 kit and compile beforehand.'
13776 exit 1
13781 # Check for --with-doc-strings
13782 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
13783 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
13785 # Check whether --with-doc-strings or --without-doc-strings was given.
13786 if test "${with_doc_strings+set}" = set; then
13787 withval="$with_doc_strings"
13791 if test -z "$with_doc_strings"
13792 then with_doc_strings="yes"
13794 if test "$with_doc_strings" != "no"
13795 then
13797 cat >>confdefs.h <<\_ACEOF
13798 #define WITH_DOC_STRINGS 1
13799 _ACEOF
13802 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
13803 echo "${ECHO_T}$with_doc_strings" >&6
13805 # Check for Python-specific malloc support
13806 echo "$as_me:$LINENO: checking for --with-tsc" >&5
13807 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
13809 # Check whether --with-tsc or --without-tsc was given.
13810 if test "${with_tsc+set}" = set; then
13811 withval="$with_tsc"
13813 if test "$withval" != no
13814 then
13816 cat >>confdefs.h <<\_ACEOF
13817 #define WITH_TSC 1
13818 _ACEOF
13820 echo "$as_me:$LINENO: result: yes" >&5
13821 echo "${ECHO_T}yes" >&6
13822 else echo "$as_me:$LINENO: result: no" >&5
13823 echo "${ECHO_T}no" >&6
13825 else
13826 echo "$as_me:$LINENO: result: no" >&5
13827 echo "${ECHO_T}no" >&6
13830 # Check for Python-specific malloc support
13831 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
13832 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
13834 # Check whether --with-pymalloc or --without-pymalloc was given.
13835 if test "${with_pymalloc+set}" = set; then
13836 withval="$with_pymalloc"
13840 if test -z "$with_pymalloc"
13841 then with_pymalloc="yes"
13843 if test "$with_pymalloc" != "no"
13844 then
13846 cat >>confdefs.h <<\_ACEOF
13847 #define WITH_PYMALLOC 1
13848 _ACEOF
13851 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
13852 echo "${ECHO_T}$with_pymalloc" >&6
13854 # Check for --with-wctype-functions
13855 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
13856 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
13858 # Check whether --with-wctype-functions or --without-wctype-functions was given.
13859 if test "${with_wctype_functions+set}" = set; then
13860 withval="$with_wctype_functions"
13862 if test "$withval" != no
13863 then
13865 cat >>confdefs.h <<\_ACEOF
13866 #define WANT_WCTYPE_FUNCTIONS 1
13867 _ACEOF
13869 echo "$as_me:$LINENO: result: yes" >&5
13870 echo "${ECHO_T}yes" >&6
13871 else echo "$as_me:$LINENO: result: no" >&5
13872 echo "${ECHO_T}no" >&6
13874 else
13875 echo "$as_me:$LINENO: result: no" >&5
13876 echo "${ECHO_T}no" >&6
13879 # -I${DLINCLDIR} is added to the compile rule for importdl.o
13881 DLINCLDIR=.
13883 # the dlopen() function means we might want to use dynload_shlib.o. some
13884 # platforms, such as AIX, have dlopen(), but don't want to use it.
13886 for ac_func in dlopen
13888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13889 echo "$as_me:$LINENO: checking for $ac_func" >&5
13890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13891 if eval "test \"\${$as_ac_var+set}\" = set"; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 else
13894 cat >conftest.$ac_ext <<_ACEOF
13895 /* confdefs.h. */
13896 _ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13902 #define $ac_func innocuous_$ac_func
13904 /* System header to define __stub macros and hopefully few prototypes,
13905 which can conflict with char $ac_func (); below.
13906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13907 <limits.h> exists even on freestanding compilers. */
13909 #ifdef __STDC__
13910 # include <limits.h>
13911 #else
13912 # include <assert.h>
13913 #endif
13915 #undef $ac_func
13917 /* Override any gcc2 internal prototype to avoid an error. */
13918 #ifdef __cplusplus
13919 extern "C"
13921 #endif
13922 /* We use char because int might match the return type of a gcc2
13923 builtin and then its argument prototype would still apply. */
13924 char $ac_func ();
13925 /* The GNU C library defines this for functions which it implements
13926 to always fail with ENOSYS. Some functions are actually named
13927 something starting with __ and the normal name is an alias. */
13928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13929 choke me
13930 #else
13931 char (*f) () = $ac_func;
13932 #endif
13933 #ifdef __cplusplus
13935 #endif
13938 main ()
13940 return f != $ac_func;
13942 return 0;
13944 _ACEOF
13945 rm -f conftest.$ac_objext conftest$ac_exeext
13946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13947 (eval $ac_link) 2>conftest.er1
13948 ac_status=$?
13949 grep -v '^ *+' conftest.er1 >conftest.err
13950 rm -f conftest.er1
13951 cat conftest.err >&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } &&
13954 { ac_try='test -z "$ac_c_werror_flag"
13955 || test ! -s conftest.err'
13956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13957 (eval $ac_try) 2>&5
13958 ac_status=$?
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); }; } &&
13961 { ac_try='test -s conftest$ac_exeext'
13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13964 ac_status=$?
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; }; then
13967 eval "$as_ac_var=yes"
13968 else
13969 echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13972 eval "$as_ac_var=no"
13974 rm -f conftest.err conftest.$ac_objext \
13975 conftest$ac_exeext conftest.$ac_ext
13977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13979 if test `eval echo '${'$as_ac_var'}'` = yes; then
13980 cat >>confdefs.h <<_ACEOF
13981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13982 _ACEOF
13985 done
13988 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
13989 # loading of modules.
13991 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
13992 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
13993 if test -z "$DYNLOADFILE"
13994 then
13995 case $ac_sys_system/$ac_sys_release in
13996 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
13997 if test "$ac_cv_func_dlopen" = yes
13998 then DYNLOADFILE="dynload_shlib.o"
13999 else DYNLOADFILE="dynload_aix.o"
14002 BeOS*) DYNLOADFILE="dynload_beos.o";;
14003 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
14004 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14005 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
14006 atheos*) DYNLOADFILE="dynload_atheos.o";;
14008 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14009 # out any dynamic loading
14010 if test "$ac_cv_func_dlopen" = yes
14011 then DYNLOADFILE="dynload_shlib.o"
14012 else DYNLOADFILE="dynload_stub.o"
14015 esac
14017 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14018 echo "${ECHO_T}$DYNLOADFILE" >&6
14019 if test "$DYNLOADFILE" != "dynload_stub.o"
14020 then
14022 cat >>confdefs.h <<\_ACEOF
14023 #define HAVE_DYNAMIC_LOADING 1
14024 _ACEOF
14028 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14031 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14032 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14033 if test -z "$MACHDEP_OBJS"
14034 then
14035 MACHDEP_OBJS=$extra_machdep_objs
14036 else
14037 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14039 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14040 echo "${ECHO_T}MACHDEP_OBJS" >&6
14042 # checks for library functions
14119 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
14120 execv fork fpathconf ftime ftruncate \
14121 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14122 getpriority getpwent getspnam getspent getsid getwd \
14123 kill killpg lchown lstat mkfifo mknod mktime \
14124 mremap nice pathconf pause plock poll pthread_init \
14125 putenv readlink realpath \
14126 select setegid seteuid setgid \
14127 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14128 sigaction siginterrupt sigrelse strftime \
14129 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14130 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14133 echo "$as_me:$LINENO: checking for $ac_func" >&5
14134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14135 if eval "test \"\${$as_ac_var+set}\" = set"; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 else
14138 cat >conftest.$ac_ext <<_ACEOF
14139 /* confdefs.h. */
14140 _ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14146 #define $ac_func innocuous_$ac_func
14148 /* System header to define __stub macros and hopefully few prototypes,
14149 which can conflict with char $ac_func (); below.
14150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14151 <limits.h> exists even on freestanding compilers. */
14153 #ifdef __STDC__
14154 # include <limits.h>
14155 #else
14156 # include <assert.h>
14157 #endif
14159 #undef $ac_func
14161 /* Override any gcc2 internal prototype to avoid an error. */
14162 #ifdef __cplusplus
14163 extern "C"
14165 #endif
14166 /* We use char because int might match the return type of a gcc2
14167 builtin and then its argument prototype would still apply. */
14168 char $ac_func ();
14169 /* The GNU C library defines this for functions which it implements
14170 to always fail with ENOSYS. Some functions are actually named
14171 something starting with __ and the normal name is an alias. */
14172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14173 choke me
14174 #else
14175 char (*f) () = $ac_func;
14176 #endif
14177 #ifdef __cplusplus
14179 #endif
14182 main ()
14184 return f != $ac_func;
14186 return 0;
14188 _ACEOF
14189 rm -f conftest.$ac_objext conftest$ac_exeext
14190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14191 (eval $ac_link) 2>conftest.er1
14192 ac_status=$?
14193 grep -v '^ *+' conftest.er1 >conftest.err
14194 rm -f conftest.er1
14195 cat conftest.err >&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } &&
14198 { ac_try='test -z "$ac_c_werror_flag"
14199 || test ! -s conftest.err'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14202 ac_status=$?
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; } &&
14205 { ac_try='test -s conftest$ac_exeext'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14208 ac_status=$?
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; }; then
14211 eval "$as_ac_var=yes"
14212 else
14213 echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14216 eval "$as_ac_var=no"
14218 rm -f conftest.err conftest.$ac_objext \
14219 conftest$ac_exeext conftest.$ac_ext
14221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14223 if test `eval echo '${'$as_ac_var'}'` = yes; then
14224 cat >>confdefs.h <<_ACEOF
14225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14226 _ACEOF
14229 done
14232 # For some functions, having a definition is not sufficient, since
14233 # we want to take their address.
14234 echo "$as_me:$LINENO: checking for chroot" >&5
14235 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14236 cat >conftest.$ac_ext <<_ACEOF
14237 /* confdefs.h. */
14238 _ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h. */
14242 #include <unistd.h>
14244 main ()
14246 void *x=chroot
14248 return 0;
14250 _ACEOF
14251 rm -f conftest.$ac_objext
14252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14253 (eval $ac_compile) 2>conftest.er1
14254 ac_status=$?
14255 grep -v '^ *+' conftest.er1 >conftest.err
14256 rm -f conftest.er1
14257 cat conftest.err >&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } &&
14260 { ac_try='test -z "$ac_c_werror_flag"
14261 || test ! -s conftest.err'
14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14264 ac_status=$?
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; } &&
14267 { ac_try='test -s conftest.$ac_objext'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14274 cat >>confdefs.h <<\_ACEOF
14275 #define HAVE_CHROOT 1
14276 _ACEOF
14278 echo "$as_me:$LINENO: result: yes" >&5
14279 echo "${ECHO_T}yes" >&6
14280 else
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14284 echo "$as_me:$LINENO: result: no" >&5
14285 echo "${ECHO_T}no" >&6
14288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14289 echo "$as_me:$LINENO: checking for link" >&5
14290 echo $ECHO_N "checking for link... $ECHO_C" >&6
14291 cat >conftest.$ac_ext <<_ACEOF
14292 /* confdefs.h. */
14293 _ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h. */
14297 #include <unistd.h>
14299 main ()
14301 void *x=link
14303 return 0;
14305 _ACEOF
14306 rm -f conftest.$ac_objext
14307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14308 (eval $ac_compile) 2>conftest.er1
14309 ac_status=$?
14310 grep -v '^ *+' conftest.er1 >conftest.err
14311 rm -f conftest.er1
14312 cat conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } &&
14315 { ac_try='test -z "$ac_c_werror_flag"
14316 || test ! -s conftest.err'
14317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318 (eval $ac_try) 2>&5
14319 ac_status=$?
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; } &&
14322 { ac_try='test -s conftest.$ac_objext'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14325 ac_status=$?
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; }; then
14329 cat >>confdefs.h <<\_ACEOF
14330 #define HAVE_LINK 1
14331 _ACEOF
14333 echo "$as_me:$LINENO: result: yes" >&5
14334 echo "${ECHO_T}yes" >&6
14335 else
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14339 echo "$as_me:$LINENO: result: no" >&5
14340 echo "${ECHO_T}no" >&6
14343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14344 echo "$as_me:$LINENO: checking for symlink" >&5
14345 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14346 cat >conftest.$ac_ext <<_ACEOF
14347 /* confdefs.h. */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352 #include <unistd.h>
14354 main ()
14356 void *x=symlink
14358 return 0;
14360 _ACEOF
14361 rm -f conftest.$ac_objext
14362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14363 (eval $ac_compile) 2>conftest.er1
14364 ac_status=$?
14365 grep -v '^ *+' conftest.er1 >conftest.err
14366 rm -f conftest.er1
14367 cat conftest.err >&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } &&
14370 { ac_try='test -z "$ac_c_werror_flag"
14371 || test ! -s conftest.err'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; } &&
14377 { ac_try='test -s conftest.$ac_objext'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14380 ac_status=$?
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }; then
14384 cat >>confdefs.h <<\_ACEOF
14385 #define HAVE_SYMLINK 1
14386 _ACEOF
14388 echo "$as_me:$LINENO: result: yes" >&5
14389 echo "${ECHO_T}yes" >&6
14390 else
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 echo "$as_me:$LINENO: result: no" >&5
14395 echo "${ECHO_T}no" >&6
14398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14399 echo "$as_me:$LINENO: checking for fchdir" >&5
14400 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
14401 cat >conftest.$ac_ext <<_ACEOF
14402 /* confdefs.h. */
14403 _ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h. */
14407 #include <unistd.h>
14409 main ()
14411 void *x=fchdir
14413 return 0;
14415 _ACEOF
14416 rm -f conftest.$ac_objext
14417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14418 (eval $ac_compile) 2>conftest.er1
14419 ac_status=$?
14420 grep -v '^ *+' conftest.er1 >conftest.err
14421 rm -f conftest.er1
14422 cat conftest.err >&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } &&
14425 { ac_try='test -z "$ac_c_werror_flag"
14426 || test ! -s conftest.err'
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; } &&
14432 { ac_try='test -s conftest.$ac_objext'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14435 ac_status=$?
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14439 cat >>confdefs.h <<\_ACEOF
14440 #define HAVE_FCHDIR 1
14441 _ACEOF
14443 echo "$as_me:$LINENO: result: yes" >&5
14444 echo "${ECHO_T}yes" >&6
14445 else
14446 echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14449 echo "$as_me:$LINENO: result: no" >&5
14450 echo "${ECHO_T}no" >&6
14453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14454 echo "$as_me:$LINENO: checking for fsync" >&5
14455 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
14456 cat >conftest.$ac_ext <<_ACEOF
14457 /* confdefs.h. */
14458 _ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h. */
14462 #include <unistd.h>
14464 main ()
14466 void *x=fsync
14468 return 0;
14470 _ACEOF
14471 rm -f conftest.$ac_objext
14472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14473 (eval $ac_compile) 2>conftest.er1
14474 ac_status=$?
14475 grep -v '^ *+' conftest.er1 >conftest.err
14476 rm -f conftest.er1
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try='test -z "$ac_c_werror_flag"
14481 || test ! -s conftest.err'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14484 ac_status=$?
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; } &&
14487 { ac_try='test -s conftest.$ac_objext'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14490 ac_status=$?
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; }; then
14494 cat >>confdefs.h <<\_ACEOF
14495 #define HAVE_FSYNC 1
14496 _ACEOF
14498 echo "$as_me:$LINENO: result: yes" >&5
14499 echo "${ECHO_T}yes" >&6
14500 else
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14504 echo "$as_me:$LINENO: result: no" >&5
14505 echo "${ECHO_T}no" >&6
14508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14509 echo "$as_me:$LINENO: checking for fdatasync" >&5
14510 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
14511 cat >conftest.$ac_ext <<_ACEOF
14512 /* confdefs.h. */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14517 #include <unistd.h>
14519 main ()
14521 void *x=fdatasync
14523 return 0;
14525 _ACEOF
14526 rm -f conftest.$ac_objext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14528 (eval $ac_compile) 2>conftest.er1
14529 ac_status=$?
14530 grep -v '^ *+' conftest.er1 >conftest.err
14531 rm -f conftest.er1
14532 cat conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } &&
14535 { ac_try='test -z "$ac_c_werror_flag"
14536 || test ! -s conftest.err'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; } &&
14542 { ac_try='test -s conftest.$ac_objext'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14549 cat >>confdefs.h <<\_ACEOF
14550 #define HAVE_FDATASYNC 1
14551 _ACEOF
14553 echo "$as_me:$LINENO: result: yes" >&5
14554 echo "${ECHO_T}yes" >&6
14555 else
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14559 echo "$as_me:$LINENO: result: no" >&5
14560 echo "${ECHO_T}no" >&6
14563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14565 # On some systems (eg. FreeBSD 5), we would find a definition of the
14566 # functions ctermid_r, setgroups in the library, but no prototype
14567 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
14568 # address to avoid compiler warnings and potential miscompilations
14569 # because of the missing prototypes.
14571 echo "$as_me:$LINENO: checking for ctermid_r" >&5
14572 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
14573 cat >conftest.$ac_ext <<_ACEOF
14574 /* confdefs.h. */
14575 _ACEOF
14576 cat confdefs.h >>conftest.$ac_ext
14577 cat >>conftest.$ac_ext <<_ACEOF
14578 /* end confdefs.h. */
14580 #include "confdefs.h"
14581 #include <stdio.h>
14584 main ()
14586 void* p = ctermid_r
14588 return 0;
14590 _ACEOF
14591 rm -f conftest.$ac_objext
14592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14593 (eval $ac_compile) 2>conftest.er1
14594 ac_status=$?
14595 grep -v '^ *+' conftest.er1 >conftest.err
14596 rm -f conftest.er1
14597 cat conftest.err >&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } &&
14600 { ac_try='test -z "$ac_c_werror_flag"
14601 || test ! -s conftest.err'
14602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603 (eval $ac_try) 2>&5
14604 ac_status=$?
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; } &&
14607 { ac_try='test -s conftest.$ac_objext'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14610 ac_status=$?
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; }; then
14614 cat >>confdefs.h <<\_ACEOF
14615 #define HAVE_CTERMID_R 1
14616 _ACEOF
14618 echo "$as_me:$LINENO: result: yes" >&5
14619 echo "${ECHO_T}yes" >&6
14620 else
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 echo "$as_me:$LINENO: result: no" >&5
14625 echo "${ECHO_T}no" >&6
14628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14630 echo "$as_me:$LINENO: checking for flock" >&5
14631 echo $ECHO_N "checking for flock... $ECHO_C" >&6
14632 cat >conftest.$ac_ext <<_ACEOF
14633 /* confdefs.h. */
14634 _ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14639 #include "confdefs.h"
14640 #include <sys/file.h>
14643 main ()
14645 void* p = flock
14647 return 0;
14649 _ACEOF
14650 rm -f conftest.$ac_objext
14651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14652 (eval $ac_compile) 2>conftest.er1
14653 ac_status=$?
14654 grep -v '^ *+' conftest.er1 >conftest.err
14655 rm -f conftest.er1
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try='test -z "$ac_c_werror_flag"
14660 || test ! -s conftest.err'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14663 ac_status=$?
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; } &&
14666 { ac_try='test -s conftest.$ac_objext'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
14673 cat >>confdefs.h <<\_ACEOF
14674 #define HAVE_FLOCK 1
14675 _ACEOF
14677 echo "$as_me:$LINENO: result: yes" >&5
14678 echo "${ECHO_T}yes" >&6
14679 else
14680 echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14683 echo "$as_me:$LINENO: result: no" >&5
14684 echo "${ECHO_T}no" >&6
14687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14689 echo "$as_me:$LINENO: checking for getpagesize" >&5
14690 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
14691 cat >conftest.$ac_ext <<_ACEOF
14692 /* confdefs.h. */
14693 _ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14698 #include "confdefs.h"
14699 #include <unistd.h>
14702 main ()
14704 void* p = getpagesize
14706 return 0;
14708 _ACEOF
14709 rm -f conftest.$ac_objext
14710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14711 (eval $ac_compile) 2>conftest.er1
14712 ac_status=$?
14713 grep -v '^ *+' conftest.er1 >conftest.err
14714 rm -f conftest.er1
14715 cat conftest.err >&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } &&
14718 { ac_try='test -z "$ac_c_werror_flag"
14719 || test ! -s conftest.err'
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14722 ac_status=$?
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; } &&
14725 { ac_try='test -s conftest.$ac_objext'
14726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727 (eval $ac_try) 2>&5
14728 ac_status=$?
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
14732 cat >>confdefs.h <<\_ACEOF
14733 #define HAVE_GETPAGESIZE 1
14734 _ACEOF
14736 echo "$as_me:$LINENO: result: yes" >&5
14737 echo "${ECHO_T}yes" >&6
14738 else
14739 echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14742 echo "$as_me:$LINENO: result: no" >&5
14743 echo "${ECHO_T}no" >&6
14746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14748 for ac_prog in true
14750 # Extract the first word of "$ac_prog", so it can be a program name with args.
14751 set dummy $ac_prog; ac_word=$2
14752 echo "$as_me:$LINENO: checking for $ac_word" >&5
14753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14754 if test "${ac_cv_prog_TRUE+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 else
14757 if test -n "$TRUE"; then
14758 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
14759 else
14760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14761 for as_dir in $PATH
14763 IFS=$as_save_IFS
14764 test -z "$as_dir" && as_dir=.
14765 for ac_exec_ext in '' $ac_executable_extensions; do
14766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14767 ac_cv_prog_TRUE="$ac_prog"
14768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14769 break 2
14771 done
14772 done
14776 TRUE=$ac_cv_prog_TRUE
14777 if test -n "$TRUE"; then
14778 echo "$as_me:$LINENO: result: $TRUE" >&5
14779 echo "${ECHO_T}$TRUE" >&6
14780 else
14781 echo "$as_me:$LINENO: result: no" >&5
14782 echo "${ECHO_T}no" >&6
14785 test -n "$TRUE" && break
14786 done
14787 test -n "$TRUE" || TRUE="/bin/true"
14790 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
14791 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
14792 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 else
14795 ac_check_lib_save_LIBS=$LIBS
14796 LIBS="-lc $LIBS"
14797 cat >conftest.$ac_ext <<_ACEOF
14798 /* confdefs.h. */
14799 _ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14804 /* Override any gcc2 internal prototype to avoid an error. */
14805 #ifdef __cplusplus
14806 extern "C"
14807 #endif
14808 /* We use char because int might match the return type of a gcc2
14809 builtin and then its argument prototype would still apply. */
14810 char inet_aton ();
14812 main ()
14814 inet_aton ();
14816 return 0;
14818 _ACEOF
14819 rm -f conftest.$ac_objext conftest$ac_exeext
14820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14821 (eval $ac_link) 2>conftest.er1
14822 ac_status=$?
14823 grep -v '^ *+' conftest.er1 >conftest.err
14824 rm -f conftest.er1
14825 cat conftest.err >&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
14828 { ac_try='test -z "$ac_c_werror_flag"
14829 || test ! -s conftest.err'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; } &&
14835 { ac_try='test -s conftest$ac_exeext'
14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14838 ac_status=$?
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; }; then
14841 ac_cv_lib_c_inet_aton=yes
14842 else
14843 echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14846 ac_cv_lib_c_inet_aton=no
14848 rm -f conftest.err conftest.$ac_objext \
14849 conftest$ac_exeext conftest.$ac_ext
14850 LIBS=$ac_check_lib_save_LIBS
14852 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
14853 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
14854 if test $ac_cv_lib_c_inet_aton = yes; then
14855 $ac_cv_prog_TRUE
14856 else
14858 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14859 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
14860 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 else
14863 ac_check_lib_save_LIBS=$LIBS
14864 LIBS="-lresolv $LIBS"
14865 cat >conftest.$ac_ext <<_ACEOF
14866 /* confdefs.h. */
14867 _ACEOF
14868 cat confdefs.h >>conftest.$ac_ext
14869 cat >>conftest.$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14872 /* Override any gcc2 internal prototype to avoid an error. */
14873 #ifdef __cplusplus
14874 extern "C"
14875 #endif
14876 /* We use char because int might match the return type of a gcc2
14877 builtin and then its argument prototype would still apply. */
14878 char inet_aton ();
14880 main ()
14882 inet_aton ();
14884 return 0;
14886 _ACEOF
14887 rm -f conftest.$ac_objext conftest$ac_exeext
14888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14889 (eval $ac_link) 2>conftest.er1
14890 ac_status=$?
14891 grep -v '^ *+' conftest.er1 >conftest.err
14892 rm -f conftest.er1
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try='test -z "$ac_c_werror_flag"
14897 || test ! -s conftest.err'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; } &&
14903 { ac_try='test -s conftest$ac_exeext'
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 ac_cv_lib_resolv_inet_aton=yes
14910 else
14911 echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14914 ac_cv_lib_resolv_inet_aton=no
14916 rm -f conftest.err conftest.$ac_objext \
14917 conftest$ac_exeext conftest.$ac_ext
14918 LIBS=$ac_check_lib_save_LIBS
14920 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14921 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
14922 if test $ac_cv_lib_resolv_inet_aton = yes; then
14923 cat >>confdefs.h <<_ACEOF
14924 #define HAVE_LIBRESOLV 1
14925 _ACEOF
14927 LIBS="-lresolv $LIBS"
14935 echo "$as_me:$LINENO: checking for hstrerror" >&5
14936 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
14937 cat >conftest.$ac_ext <<_ACEOF
14938 /* confdefs.h. */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14944 #include "confdefs.h"
14945 #include <netdb.h>
14948 main ()
14950 void* p = hstrerror; hstrerror(0)
14952 return 0;
14954 _ACEOF
14955 rm -f conftest.$ac_objext conftest$ac_exeext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14957 (eval $ac_link) 2>conftest.er1
14958 ac_status=$?
14959 grep -v '^ *+' conftest.er1 >conftest.err
14960 rm -f conftest.er1
14961 cat conftest.err >&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } &&
14964 { ac_try='test -z "$ac_c_werror_flag"
14965 || test ! -s conftest.err'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; } &&
14971 { ac_try='test -s conftest$ac_exeext'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14974 ac_status=$?
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; }; then
14978 cat >>confdefs.h <<\_ACEOF
14979 #define HAVE_HSTRERROR 1
14980 _ACEOF
14982 echo "$as_me:$LINENO: result: yes" >&5
14983 echo "${ECHO_T}yes" >&6
14984 else
14985 echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14988 echo "$as_me:$LINENO: result: no" >&5
14989 echo "${ECHO_T}no" >&6
14992 rm -f conftest.err conftest.$ac_objext \
14993 conftest$ac_exeext conftest.$ac_ext
14995 echo "$as_me:$LINENO: checking for inet_aton" >&5
14996 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
14997 cat >conftest.$ac_ext <<_ACEOF
14998 /* confdefs.h. */
14999 _ACEOF
15000 cat confdefs.h >>conftest.$ac_ext
15001 cat >>conftest.$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15004 #include "confdefs.h"
15005 #include <sys/types.h>
15006 #include <sys/socket.h>
15007 #include <netinet/in.h>
15008 #include <arpa/inet.h>
15011 main ()
15013 void* p = inet_aton;inet_aton(0,0)
15015 return 0;
15017 _ACEOF
15018 rm -f conftest.$ac_objext conftest$ac_exeext
15019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15020 (eval $ac_link) 2>conftest.er1
15021 ac_status=$?
15022 grep -v '^ *+' conftest.er1 >conftest.err
15023 rm -f conftest.er1
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try='test -z "$ac_c_werror_flag"
15028 || test ! -s conftest.err'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; } &&
15034 { ac_try='test -s conftest$ac_exeext'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15041 cat >>confdefs.h <<\_ACEOF
15042 #define HAVE_INET_ATON 1
15043 _ACEOF
15045 echo "$as_me:$LINENO: result: yes" >&5
15046 echo "${ECHO_T}yes" >&6
15047 else
15048 echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15051 echo "$as_me:$LINENO: result: no" >&5
15052 echo "${ECHO_T}no" >&6
15055 rm -f conftest.err conftest.$ac_objext \
15056 conftest$ac_exeext conftest.$ac_ext
15058 echo "$as_me:$LINENO: checking for inet_pton" >&5
15059 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15060 cat >conftest.$ac_ext <<_ACEOF
15061 /* confdefs.h. */
15062 _ACEOF
15063 cat confdefs.h >>conftest.$ac_ext
15064 cat >>conftest.$ac_ext <<_ACEOF
15065 /* end confdefs.h. */
15067 #include "confdefs.h"
15068 #include <sys/types.h>
15069 #include <sys/socket.h>
15070 #include <netinet/in.h>
15071 #include <arpa/inet.h>
15074 main ()
15076 void* p = inet_pton
15078 return 0;
15080 _ACEOF
15081 rm -f conftest.$ac_objext
15082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15083 (eval $ac_compile) 2>conftest.er1
15084 ac_status=$?
15085 grep -v '^ *+' conftest.er1 >conftest.err
15086 rm -f conftest.er1
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try='test -z "$ac_c_werror_flag"
15091 || test ! -s conftest.err'
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; } &&
15097 { ac_try='test -s conftest.$ac_objext'
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; }; then
15104 cat >>confdefs.h <<\_ACEOF
15105 #define HAVE_INET_PTON 1
15106 _ACEOF
15108 echo "$as_me:$LINENO: result: yes" >&5
15109 echo "${ECHO_T}yes" >&6
15110 else
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15114 echo "$as_me:$LINENO: result: no" >&5
15115 echo "${ECHO_T}no" >&6
15118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15120 # On some systems, setgroups is in unistd.h, on others, in grp.h
15121 echo "$as_me:$LINENO: checking for setgroups" >&5
15122 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15123 cat >conftest.$ac_ext <<_ACEOF
15124 /* confdefs.h. */
15125 _ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15130 #include "confdefs.h"
15131 #include <unistd.h>
15132 #ifdef HAVE_GRP_H
15133 #include <grp.h>
15134 #endif
15137 main ()
15139 void* p = setgroups
15141 return 0;
15143 _ACEOF
15144 rm -f conftest.$ac_objext
15145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15146 (eval $ac_compile) 2>conftest.er1
15147 ac_status=$?
15148 grep -v '^ *+' conftest.er1 >conftest.err
15149 rm -f conftest.er1
15150 cat conftest.err >&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } &&
15153 { ac_try='test -z "$ac_c_werror_flag"
15154 || test ! -s conftest.err'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; } &&
15160 { ac_try='test -s conftest.$ac_objext'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15163 ac_status=$?
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
15167 cat >>confdefs.h <<\_ACEOF
15168 #define HAVE_SETGROUPS 1
15169 _ACEOF
15171 echo "$as_me:$LINENO: result: yes" >&5
15172 echo "${ECHO_T}yes" >&6
15173 else
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 echo "$as_me:$LINENO: result: no" >&5
15178 echo "${ECHO_T}no" >&6
15181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15183 # check for openpty and forkpty
15186 for ac_func in openpty
15188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15189 echo "$as_me:$LINENO: checking for $ac_func" >&5
15190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15191 if eval "test \"\${$as_ac_var+set}\" = set"; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 else
15194 cat >conftest.$ac_ext <<_ACEOF
15195 /* confdefs.h. */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15202 #define $ac_func innocuous_$ac_func
15204 /* System header to define __stub macros and hopefully few prototypes,
15205 which can conflict with char $ac_func (); below.
15206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15207 <limits.h> exists even on freestanding compilers. */
15209 #ifdef __STDC__
15210 # include <limits.h>
15211 #else
15212 # include <assert.h>
15213 #endif
15215 #undef $ac_func
15217 /* Override any gcc2 internal prototype to avoid an error. */
15218 #ifdef __cplusplus
15219 extern "C"
15221 #endif
15222 /* We use char because int might match the return type of a gcc2
15223 builtin and then its argument prototype would still apply. */
15224 char $ac_func ();
15225 /* The GNU C library defines this for functions which it implements
15226 to always fail with ENOSYS. Some functions are actually named
15227 something starting with __ and the normal name is an alias. */
15228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15229 choke me
15230 #else
15231 char (*f) () = $ac_func;
15232 #endif
15233 #ifdef __cplusplus
15235 #endif
15238 main ()
15240 return f != $ac_func;
15242 return 0;
15244 _ACEOF
15245 rm -f conftest.$ac_objext conftest$ac_exeext
15246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15247 (eval $ac_link) 2>conftest.er1
15248 ac_status=$?
15249 grep -v '^ *+' conftest.er1 >conftest.err
15250 rm -f conftest.er1
15251 cat conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try='test -z "$ac_c_werror_flag"
15255 || test ! -s conftest.err'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; } &&
15261 { ac_try='test -s conftest$ac_exeext'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15264 ac_status=$?
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
15267 eval "$as_ac_var=yes"
15268 else
15269 echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15272 eval "$as_ac_var=no"
15274 rm -f conftest.err conftest.$ac_objext \
15275 conftest$ac_exeext conftest.$ac_ext
15277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15279 if test `eval echo '${'$as_ac_var'}'` = yes; then
15280 cat >>confdefs.h <<_ACEOF
15281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15282 _ACEOF
15284 else
15285 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15286 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15287 if test "${ac_cv_lib_util_openpty+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290 ac_check_lib_save_LIBS=$LIBS
15291 LIBS="-lutil $LIBS"
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h. */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15299 /* Override any gcc2 internal prototype to avoid an error. */
15300 #ifdef __cplusplus
15301 extern "C"
15302 #endif
15303 /* We use char because int might match the return type of a gcc2
15304 builtin and then its argument prototype would still apply. */
15305 char openpty ();
15307 main ()
15309 openpty ();
15311 return 0;
15313 _ACEOF
15314 rm -f conftest.$ac_objext conftest$ac_exeext
15315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15316 (eval $ac_link) 2>conftest.er1
15317 ac_status=$?
15318 grep -v '^ *+' conftest.er1 >conftest.err
15319 rm -f conftest.er1
15320 cat conftest.err >&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } &&
15323 { ac_try='test -z "$ac_c_werror_flag"
15324 || test ! -s conftest.err'
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15327 ac_status=$?
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; } &&
15330 { ac_try='test -s conftest$ac_exeext'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 ac_cv_lib_util_openpty=yes
15337 else
15338 echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15341 ac_cv_lib_util_openpty=no
15343 rm -f conftest.err conftest.$ac_objext \
15344 conftest$ac_exeext conftest.$ac_ext
15345 LIBS=$ac_check_lib_save_LIBS
15347 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15348 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15349 if test $ac_cv_lib_util_openpty = yes; then
15350 cat >>confdefs.h <<\_ACEOF
15351 #define HAVE_OPENPTY 1
15352 _ACEOF
15353 LIBS="$LIBS -lutil"
15354 else
15355 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15356 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
15357 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 else
15360 ac_check_lib_save_LIBS=$LIBS
15361 LIBS="-lbsd $LIBS"
15362 cat >conftest.$ac_ext <<_ACEOF
15363 /* confdefs.h. */
15364 _ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15369 /* Override any gcc2 internal prototype to avoid an error. */
15370 #ifdef __cplusplus
15371 extern "C"
15372 #endif
15373 /* We use char because int might match the return type of a gcc2
15374 builtin and then its argument prototype would still apply. */
15375 char openpty ();
15377 main ()
15379 openpty ();
15381 return 0;
15383 _ACEOF
15384 rm -f conftest.$ac_objext conftest$ac_exeext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15386 (eval $ac_link) 2>conftest.er1
15387 ac_status=$?
15388 grep -v '^ *+' conftest.er1 >conftest.err
15389 rm -f conftest.er1
15390 cat conftest.err >&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } &&
15393 { ac_try='test -z "$ac_c_werror_flag"
15394 || test ! -s conftest.err'
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; } &&
15400 { ac_try='test -s conftest$ac_exeext'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15406 ac_cv_lib_bsd_openpty=yes
15407 else
15408 echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15411 ac_cv_lib_bsd_openpty=no
15413 rm -f conftest.err conftest.$ac_objext \
15414 conftest$ac_exeext conftest.$ac_ext
15415 LIBS=$ac_check_lib_save_LIBS
15417 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
15418 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
15419 if test $ac_cv_lib_bsd_openpty = yes; then
15420 cat >>confdefs.h <<\_ACEOF
15421 #define HAVE_OPENPTY 1
15422 _ACEOF
15423 LIBS="$LIBS -lbsd"
15431 done
15434 for ac_func in forkpty
15436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15437 echo "$as_me:$LINENO: checking for $ac_func" >&5
15438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15439 if eval "test \"\${$as_ac_var+set}\" = set"; then
15440 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 else
15442 cat >conftest.$ac_ext <<_ACEOF
15443 /* confdefs.h. */
15444 _ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h. */
15448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15450 #define $ac_func innocuous_$ac_func
15452 /* System header to define __stub macros and hopefully few prototypes,
15453 which can conflict with char $ac_func (); below.
15454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15455 <limits.h> exists even on freestanding compilers. */
15457 #ifdef __STDC__
15458 # include <limits.h>
15459 #else
15460 # include <assert.h>
15461 #endif
15463 #undef $ac_func
15465 /* Override any gcc2 internal prototype to avoid an error. */
15466 #ifdef __cplusplus
15467 extern "C"
15469 #endif
15470 /* We use char because int might match the return type of a gcc2
15471 builtin and then its argument prototype would still apply. */
15472 char $ac_func ();
15473 /* The GNU C library defines this for functions which it implements
15474 to always fail with ENOSYS. Some functions are actually named
15475 something starting with __ and the normal name is an alias. */
15476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15477 choke me
15478 #else
15479 char (*f) () = $ac_func;
15480 #endif
15481 #ifdef __cplusplus
15483 #endif
15486 main ()
15488 return f != $ac_func;
15490 return 0;
15492 _ACEOF
15493 rm -f conftest.$ac_objext conftest$ac_exeext
15494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15495 (eval $ac_link) 2>conftest.er1
15496 ac_status=$?
15497 grep -v '^ *+' conftest.er1 >conftest.err
15498 rm -f conftest.er1
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
15502 { ac_try='test -z "$ac_c_werror_flag"
15503 || test ! -s conftest.err'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; } &&
15509 { ac_try='test -s conftest$ac_exeext'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515 eval "$as_ac_var=yes"
15516 else
15517 echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15520 eval "$as_ac_var=no"
15522 rm -f conftest.err conftest.$ac_objext \
15523 conftest$ac_exeext conftest.$ac_ext
15525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15527 if test `eval echo '${'$as_ac_var'}'` = yes; then
15528 cat >>confdefs.h <<_ACEOF
15529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15530 _ACEOF
15532 else
15533 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
15534 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
15535 if test "${ac_cv_lib_util_forkpty+set}" = set; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15537 else
15538 ac_check_lib_save_LIBS=$LIBS
15539 LIBS="-lutil $LIBS"
15540 cat >conftest.$ac_ext <<_ACEOF
15541 /* confdefs.h. */
15542 _ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15547 /* Override any gcc2 internal prototype to avoid an error. */
15548 #ifdef __cplusplus
15549 extern "C"
15550 #endif
15551 /* We use char because int might match the return type of a gcc2
15552 builtin and then its argument prototype would still apply. */
15553 char forkpty ();
15555 main ()
15557 forkpty ();
15559 return 0;
15561 _ACEOF
15562 rm -f conftest.$ac_objext conftest$ac_exeext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15564 (eval $ac_link) 2>conftest.er1
15565 ac_status=$?
15566 grep -v '^ *+' conftest.er1 >conftest.err
15567 rm -f conftest.er1
15568 cat conftest.err >&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } &&
15571 { ac_try='test -z "$ac_c_werror_flag"
15572 || test ! -s conftest.err'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; } &&
15578 { ac_try='test -s conftest$ac_exeext'
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 ac_cv_lib_util_forkpty=yes
15585 else
15586 echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15589 ac_cv_lib_util_forkpty=no
15591 rm -f conftest.err conftest.$ac_objext \
15592 conftest$ac_exeext conftest.$ac_ext
15593 LIBS=$ac_check_lib_save_LIBS
15595 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
15596 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
15597 if test $ac_cv_lib_util_forkpty = yes; then
15598 cat >>confdefs.h <<\_ACEOF
15599 #define HAVE_FORKPTY 1
15600 _ACEOF
15601 LIBS="$LIBS -lutil"
15602 else
15603 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
15604 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
15605 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15607 else
15608 ac_check_lib_save_LIBS=$LIBS
15609 LIBS="-lbsd $LIBS"
15610 cat >conftest.$ac_ext <<_ACEOF
15611 /* confdefs.h. */
15612 _ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15617 /* Override any gcc2 internal prototype to avoid an error. */
15618 #ifdef __cplusplus
15619 extern "C"
15620 #endif
15621 /* We use char because int might match the return type of a gcc2
15622 builtin and then its argument prototype would still apply. */
15623 char forkpty ();
15625 main ()
15627 forkpty ();
15629 return 0;
15631 _ACEOF
15632 rm -f conftest.$ac_objext conftest$ac_exeext
15633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15634 (eval $ac_link) 2>conftest.er1
15635 ac_status=$?
15636 grep -v '^ *+' conftest.er1 >conftest.err
15637 rm -f conftest.er1
15638 cat conftest.err >&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } &&
15641 { ac_try='test -z "$ac_c_werror_flag"
15642 || test ! -s conftest.err'
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15645 ac_status=$?
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; } &&
15648 { ac_try='test -s conftest$ac_exeext'
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 ac_cv_lib_bsd_forkpty=yes
15655 else
15656 echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15659 ac_cv_lib_bsd_forkpty=no
15661 rm -f conftest.err conftest.$ac_objext \
15662 conftest$ac_exeext conftest.$ac_ext
15663 LIBS=$ac_check_lib_save_LIBS
15665 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
15666 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
15667 if test $ac_cv_lib_bsd_forkpty = yes; then
15668 cat >>confdefs.h <<\_ACEOF
15669 #define HAVE_FORKPTY 1
15670 _ACEOF
15671 LIBS="$LIBS -lbsd"
15679 done
15682 # check for long file support functions
15689 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
15691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15692 echo "$as_me:$LINENO: checking for $ac_func" >&5
15693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15694 if eval "test \"\${$as_ac_var+set}\" = set"; then
15695 echo $ECHO_N "(cached) $ECHO_C" >&6
15696 else
15697 cat >conftest.$ac_ext <<_ACEOF
15698 /* confdefs.h. */
15699 _ACEOF
15700 cat confdefs.h >>conftest.$ac_ext
15701 cat >>conftest.$ac_ext <<_ACEOF
15702 /* end confdefs.h. */
15703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15705 #define $ac_func innocuous_$ac_func
15707 /* System header to define __stub macros and hopefully few prototypes,
15708 which can conflict with char $ac_func (); below.
15709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15710 <limits.h> exists even on freestanding compilers. */
15712 #ifdef __STDC__
15713 # include <limits.h>
15714 #else
15715 # include <assert.h>
15716 #endif
15718 #undef $ac_func
15720 /* Override any gcc2 internal prototype to avoid an error. */
15721 #ifdef __cplusplus
15722 extern "C"
15724 #endif
15725 /* We use char because int might match the return type of a gcc2
15726 builtin and then its argument prototype would still apply. */
15727 char $ac_func ();
15728 /* The GNU C library defines this for functions which it implements
15729 to always fail with ENOSYS. Some functions are actually named
15730 something starting with __ and the normal name is an alias. */
15731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15732 choke me
15733 #else
15734 char (*f) () = $ac_func;
15735 #endif
15736 #ifdef __cplusplus
15738 #endif
15741 main ()
15743 return f != $ac_func;
15745 return 0;
15747 _ACEOF
15748 rm -f conftest.$ac_objext conftest$ac_exeext
15749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15750 (eval $ac_link) 2>conftest.er1
15751 ac_status=$?
15752 grep -v '^ *+' conftest.er1 >conftest.err
15753 rm -f conftest.er1
15754 cat conftest.err >&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } &&
15757 { ac_try='test -z "$ac_c_werror_flag"
15758 || test ! -s conftest.err'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; } &&
15764 { ac_try='test -s conftest$ac_exeext'
15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15767 ac_status=$?
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; }; then
15770 eval "$as_ac_var=yes"
15771 else
15772 echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15775 eval "$as_ac_var=no"
15777 rm -f conftest.err conftest.$ac_objext \
15778 conftest$ac_exeext conftest.$ac_ext
15780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15782 if test `eval echo '${'$as_ac_var'}'` = yes; then
15783 cat >>confdefs.h <<_ACEOF
15784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15785 _ACEOF
15788 done
15796 for ac_func in dup2 getcwd strdup strerror memmove
15798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15799 echo "$as_me:$LINENO: checking for $ac_func" >&5
15800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15801 if eval "test \"\${$as_ac_var+set}\" = set"; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 else
15804 cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h. */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15812 #define $ac_func innocuous_$ac_func
15814 /* System header to define __stub macros and hopefully few prototypes,
15815 which can conflict with char $ac_func (); below.
15816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15817 <limits.h> exists even on freestanding compilers. */
15819 #ifdef __STDC__
15820 # include <limits.h>
15821 #else
15822 # include <assert.h>
15823 #endif
15825 #undef $ac_func
15827 /* Override any gcc2 internal prototype to avoid an error. */
15828 #ifdef __cplusplus
15829 extern "C"
15831 #endif
15832 /* We use char because int might match the return type of a gcc2
15833 builtin and then its argument prototype would still apply. */
15834 char $ac_func ();
15835 /* The GNU C library defines this for functions which it implements
15836 to always fail with ENOSYS. Some functions are actually named
15837 something starting with __ and the normal name is an alias. */
15838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15839 choke me
15840 #else
15841 char (*f) () = $ac_func;
15842 #endif
15843 #ifdef __cplusplus
15845 #endif
15848 main ()
15850 return f != $ac_func;
15852 return 0;
15854 _ACEOF
15855 rm -f conftest.$ac_objext conftest$ac_exeext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15857 (eval $ac_link) 2>conftest.er1
15858 ac_status=$?
15859 grep -v '^ *+' conftest.er1 >conftest.err
15860 rm -f conftest.er1
15861 cat conftest.err >&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } &&
15864 { ac_try='test -z "$ac_c_werror_flag"
15865 || test ! -s conftest.err'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15868 ac_status=$?
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; } &&
15871 { ac_try='test -s conftest$ac_exeext'
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15874 ac_status=$?
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15877 eval "$as_ac_var=yes"
15878 else
15879 echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15882 eval "$as_ac_var=no"
15884 rm -f conftest.err conftest.$ac_objext \
15885 conftest$ac_exeext conftest.$ac_ext
15887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15889 if test `eval echo '${'$as_ac_var'}'` = yes; then
15890 cat >>confdefs.h <<_ACEOF
15891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15892 _ACEOF
15894 else
15895 case $LIBOBJS in
15896 "$ac_func.$ac_objext" | \
15897 *" $ac_func.$ac_objext" | \
15898 "$ac_func.$ac_objext "* | \
15899 *" $ac_func.$ac_objext "* ) ;;
15900 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15901 esac
15904 done
15908 for ac_func in getpgrp
15910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15911 echo "$as_me:$LINENO: checking for $ac_func" >&5
15912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15913 if eval "test \"\${$as_ac_var+set}\" = set"; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15915 else
15916 cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h. */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15924 #define $ac_func innocuous_$ac_func
15926 /* System header to define __stub macros and hopefully few prototypes,
15927 which can conflict with char $ac_func (); below.
15928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15929 <limits.h> exists even on freestanding compilers. */
15931 #ifdef __STDC__
15932 # include <limits.h>
15933 #else
15934 # include <assert.h>
15935 #endif
15937 #undef $ac_func
15939 /* Override any gcc2 internal prototype to avoid an error. */
15940 #ifdef __cplusplus
15941 extern "C"
15943 #endif
15944 /* We use char because int might match the return type of a gcc2
15945 builtin and then its argument prototype would still apply. */
15946 char $ac_func ();
15947 /* The GNU C library defines this for functions which it implements
15948 to always fail with ENOSYS. Some functions are actually named
15949 something starting with __ and the normal name is an alias. */
15950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15951 choke me
15952 #else
15953 char (*f) () = $ac_func;
15954 #endif
15955 #ifdef __cplusplus
15957 #endif
15960 main ()
15962 return f != $ac_func;
15964 return 0;
15966 _ACEOF
15967 rm -f conftest.$ac_objext conftest$ac_exeext
15968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15969 (eval $ac_link) 2>conftest.er1
15970 ac_status=$?
15971 grep -v '^ *+' conftest.er1 >conftest.err
15972 rm -f conftest.er1
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } &&
15976 { ac_try='test -z "$ac_c_werror_flag"
15977 || test ! -s conftest.err'
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15980 ac_status=$?
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; } &&
15983 { ac_try='test -s conftest$ac_exeext'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15986 ac_status=$?
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; }; then
15989 eval "$as_ac_var=yes"
15990 else
15991 echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15994 eval "$as_ac_var=no"
15996 rm -f conftest.err conftest.$ac_objext \
15997 conftest$ac_exeext conftest.$ac_ext
15999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16001 if test `eval echo '${'$as_ac_var'}'` = yes; then
16002 cat >>confdefs.h <<_ACEOF
16003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16004 _ACEOF
16005 cat >conftest.$ac_ext <<_ACEOF
16006 /* confdefs.h. */
16007 _ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011 #include <unistd.h>
16013 main ()
16015 getpgrp(0);
16017 return 0;
16019 _ACEOF
16020 rm -f conftest.$ac_objext
16021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16022 (eval $ac_compile) 2>conftest.er1
16023 ac_status=$?
16024 grep -v '^ *+' conftest.er1 >conftest.err
16025 rm -f conftest.er1
16026 cat conftest.err >&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
16029 { ac_try='test -z "$ac_c_werror_flag"
16030 || test ! -s conftest.err'
16031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032 (eval $ac_try) 2>&5
16033 ac_status=$?
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); }; } &&
16036 { ac_try='test -s conftest.$ac_objext'
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; }; then
16043 cat >>confdefs.h <<\_ACEOF
16044 #define GETPGRP_HAVE_ARG 1
16045 _ACEOF
16048 else
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16056 done
16059 for ac_func in setpgrp
16061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16062 echo "$as_me:$LINENO: checking for $ac_func" >&5
16063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16064 if eval "test \"\${$as_ac_var+set}\" = set"; then
16065 echo $ECHO_N "(cached) $ECHO_C" >&6
16066 else
16067 cat >conftest.$ac_ext <<_ACEOF
16068 /* confdefs.h. */
16069 _ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16075 #define $ac_func innocuous_$ac_func
16077 /* System header to define __stub macros and hopefully few prototypes,
16078 which can conflict with char $ac_func (); below.
16079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16080 <limits.h> exists even on freestanding compilers. */
16082 #ifdef __STDC__
16083 # include <limits.h>
16084 #else
16085 # include <assert.h>
16086 #endif
16088 #undef $ac_func
16090 /* Override any gcc2 internal prototype to avoid an error. */
16091 #ifdef __cplusplus
16092 extern "C"
16094 #endif
16095 /* We use char because int might match the return type of a gcc2
16096 builtin and then its argument prototype would still apply. */
16097 char $ac_func ();
16098 /* The GNU C library defines this for functions which it implements
16099 to always fail with ENOSYS. Some functions are actually named
16100 something starting with __ and the normal name is an alias. */
16101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16102 choke me
16103 #else
16104 char (*f) () = $ac_func;
16105 #endif
16106 #ifdef __cplusplus
16108 #endif
16111 main ()
16113 return f != $ac_func;
16115 return 0;
16117 _ACEOF
16118 rm -f conftest.$ac_objext conftest$ac_exeext
16119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16120 (eval $ac_link) 2>conftest.er1
16121 ac_status=$?
16122 grep -v '^ *+' conftest.er1 >conftest.err
16123 rm -f conftest.er1
16124 cat conftest.err >&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } &&
16127 { ac_try='test -z "$ac_c_werror_flag"
16128 || test ! -s conftest.err'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16131 ac_status=$?
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; } &&
16134 { ac_try='test -s conftest$ac_exeext'
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16137 ac_status=$?
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; }; then
16140 eval "$as_ac_var=yes"
16141 else
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16145 eval "$as_ac_var=no"
16147 rm -f conftest.err conftest.$ac_objext \
16148 conftest$ac_exeext conftest.$ac_ext
16150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16152 if test `eval echo '${'$as_ac_var'}'` = yes; then
16153 cat >>confdefs.h <<_ACEOF
16154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16155 _ACEOF
16156 cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h. */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16162 #include <unistd.h>
16164 main ()
16166 setpgrp(0,0);
16168 return 0;
16170 _ACEOF
16171 rm -f conftest.$ac_objext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16173 (eval $ac_compile) 2>conftest.er1
16174 ac_status=$?
16175 grep -v '^ *+' conftest.er1 >conftest.err
16176 rm -f conftest.er1
16177 cat conftest.err >&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try='test -z "$ac_c_werror_flag"
16181 || test ! -s conftest.err'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; } &&
16187 { ac_try='test -s conftest.$ac_objext'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; }; then
16194 cat >>confdefs.h <<\_ACEOF
16195 #define SETPGRP_HAVE_ARG 1
16196 _ACEOF
16199 else
16200 echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16207 done
16210 for ac_func in gettimeofday
16212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16213 echo "$as_me:$LINENO: checking for $ac_func" >&5
16214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16215 if eval "test \"\${$as_ac_var+set}\" = set"; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 else
16218 cat >conftest.$ac_ext <<_ACEOF
16219 /* confdefs.h. */
16220 _ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16226 #define $ac_func innocuous_$ac_func
16228 /* System header to define __stub macros and hopefully few prototypes,
16229 which can conflict with char $ac_func (); below.
16230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16231 <limits.h> exists even on freestanding compilers. */
16233 #ifdef __STDC__
16234 # include <limits.h>
16235 #else
16236 # include <assert.h>
16237 #endif
16239 #undef $ac_func
16241 /* Override any gcc2 internal prototype to avoid an error. */
16242 #ifdef __cplusplus
16243 extern "C"
16245 #endif
16246 /* We use char because int might match the return type of a gcc2
16247 builtin and then its argument prototype would still apply. */
16248 char $ac_func ();
16249 /* The GNU C library defines this for functions which it implements
16250 to always fail with ENOSYS. Some functions are actually named
16251 something starting with __ and the normal name is an alias. */
16252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16253 choke me
16254 #else
16255 char (*f) () = $ac_func;
16256 #endif
16257 #ifdef __cplusplus
16259 #endif
16262 main ()
16264 return f != $ac_func;
16266 return 0;
16268 _ACEOF
16269 rm -f conftest.$ac_objext conftest$ac_exeext
16270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16271 (eval $ac_link) 2>conftest.er1
16272 ac_status=$?
16273 grep -v '^ *+' conftest.er1 >conftest.err
16274 rm -f conftest.er1
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } &&
16278 { ac_try='test -z "$ac_c_werror_flag"
16279 || test ! -s conftest.err'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16282 ac_status=$?
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; } &&
16285 { ac_try='test -s conftest$ac_exeext'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16291 eval "$as_ac_var=yes"
16292 else
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16296 eval "$as_ac_var=no"
16298 rm -f conftest.err conftest.$ac_objext \
16299 conftest$ac_exeext conftest.$ac_ext
16301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16303 if test `eval echo '${'$as_ac_var'}'` = yes; then
16304 cat >>confdefs.h <<_ACEOF
16305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16306 _ACEOF
16307 cat >conftest.$ac_ext <<_ACEOF
16308 /* confdefs.h. */
16309 _ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16313 #include <sys/time.h>
16315 main ()
16317 gettimeofday((struct timeval*)0,(struct timezone*)0);
16319 return 0;
16321 _ACEOF
16322 rm -f conftest.$ac_objext
16323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16324 (eval $ac_compile) 2>conftest.er1
16325 ac_status=$?
16326 grep -v '^ *+' conftest.er1 >conftest.err
16327 rm -f conftest.er1
16328 cat conftest.err >&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } &&
16331 { ac_try='test -z "$ac_c_werror_flag"
16332 || test ! -s conftest.err'
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16335 ac_status=$?
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; } &&
16338 { ac_try='test -s conftest.$ac_objext'
16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340 (eval $ac_try) 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; }; then
16345 else
16346 echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16350 cat >>confdefs.h <<\_ACEOF
16351 #define GETTIMEOFDAY_NO_TZ 1
16352 _ACEOF
16356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16359 done
16362 echo "$as_me:$LINENO: checking for major" >&5
16363 echo $ECHO_N "checking for major... $ECHO_C" >&6
16364 cat >conftest.$ac_ext <<_ACEOF
16365 /* confdefs.h. */
16366 _ACEOF
16367 cat confdefs.h >>conftest.$ac_ext
16368 cat >>conftest.$ac_ext <<_ACEOF
16369 /* end confdefs.h. */
16371 #if defined(MAJOR_IN_MKDEV)
16372 #include <sys/mkdev.h>
16373 #elif defined(MAJOR_IN_SYSMACROS)
16374 #include <sys/sysmacros.h>
16375 #else
16376 #include <sys/types.h>
16377 #endif
16380 main ()
16383 makedev(major(0),minor(0));
16386 return 0;
16388 _ACEOF
16389 rm -f conftest.$ac_objext conftest$ac_exeext
16390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16391 (eval $ac_link) 2>conftest.er1
16392 ac_status=$?
16393 grep -v '^ *+' conftest.er1 >conftest.err
16394 rm -f conftest.er1
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
16398 { ac_try='test -z "$ac_c_werror_flag"
16399 || test ! -s conftest.err'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16402 ac_status=$?
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; } &&
16405 { ac_try='test -s conftest$ac_exeext'
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16413 cat >>confdefs.h <<\_ACEOF
16414 #define HAVE_DEVICE_MACROS 1
16415 _ACEOF
16417 echo "$as_me:$LINENO: result: yes" >&5
16418 echo "${ECHO_T}yes" >&6
16420 else
16421 echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.$ac_ext >&5
16425 echo "$as_me:$LINENO: result: no" >&5
16426 echo "${ECHO_T}no" >&6
16429 rm -f conftest.err conftest.$ac_objext \
16430 conftest$ac_exeext conftest.$ac_ext
16432 # On OSF/1 V5.1, getaddrinfo is available, but a define
16433 # for [no]getaddrinfo in netdb.h.
16434 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16435 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
16436 cat >conftest.$ac_ext <<_ACEOF
16437 /* confdefs.h. */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16443 #include <sys/types.h>
16444 #include <sys/socket.h>
16445 #include <netdb.h>
16446 #include <stdio.h>
16449 main ()
16452 getaddrinfo(NULL, NULL, NULL, NULL);
16455 return 0;
16457 _ACEOF
16458 rm -f conftest.$ac_objext conftest$ac_exeext
16459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16460 (eval $ac_link) 2>conftest.er1
16461 ac_status=$?
16462 grep -v '^ *+' conftest.er1 >conftest.err
16463 rm -f conftest.er1
16464 cat conftest.err >&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try='test -z "$ac_c_werror_flag"
16468 || test ! -s conftest.err'
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16471 ac_status=$?
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; } &&
16474 { ac_try='test -s conftest$ac_exeext'
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16477 ac_status=$?
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; }; then
16481 echo "$as_me:$LINENO: result: yes" >&5
16482 echo "${ECHO_T}yes" >&6
16483 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
16484 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
16485 if test "$cross_compiling" = yes; then
16486 echo "$as_me:$LINENO: result: buggy" >&5
16487 echo "${ECHO_T}buggy" >&6
16488 buggygetaddrinfo=yes
16489 else
16490 cat >conftest.$ac_ext <<_ACEOF
16491 /* confdefs.h. */
16492 _ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h. */
16497 #include <sys/types.h>
16498 #include <netdb.h>
16499 #include <string.h>
16500 #include <sys/socket.h>
16501 #include <netinet/in.h>
16503 main()
16505 int passive, gaierr, inet4 = 0, inet6 = 0;
16506 struct addrinfo hints, *ai, *aitop;
16507 char straddr[INET6_ADDRSTRLEN], strport[16];
16509 for (passive = 0; passive <= 1; passive++) {
16510 memset(&hints, 0, sizeof(hints));
16511 hints.ai_family = AF_UNSPEC;
16512 hints.ai_flags = passive ? AI_PASSIVE : 0;
16513 hints.ai_socktype = SOCK_STREAM;
16514 hints.ai_protocol = IPPROTO_TCP;
16515 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
16516 (void)gai_strerror(gaierr);
16517 goto bad;
16519 for (ai = aitop; ai; ai = ai->ai_next) {
16520 if (ai->ai_addr == NULL ||
16521 ai->ai_addrlen == 0 ||
16522 getnameinfo(ai->ai_addr, ai->ai_addrlen,
16523 straddr, sizeof(straddr), strport, sizeof(strport),
16524 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
16525 goto bad;
16527 switch (ai->ai_family) {
16528 case AF_INET:
16529 if (strcmp(strport, "54321") != 0) {
16530 goto bad;
16532 if (passive) {
16533 if (strcmp(straddr, "0.0.0.0") != 0) {
16534 goto bad;
16536 } else {
16537 if (strcmp(straddr, "127.0.0.1") != 0) {
16538 goto bad;
16541 inet4++;
16542 break;
16543 case AF_INET6:
16544 if (strcmp(strport, "54321") != 0) {
16545 goto bad;
16547 if (passive) {
16548 if (strcmp(straddr, "::") != 0) {
16549 goto bad;
16551 } else {
16552 if (strcmp(straddr, "::1") != 0) {
16553 goto bad;
16556 inet6++;
16557 break;
16558 case AF_UNSPEC:
16559 goto bad;
16560 break;
16561 default:
16562 /* another family support? */
16563 break;
16568 if (!(inet4 == 0 || inet4 == 2))
16569 goto bad;
16570 if (!(inet6 == 0 || inet6 == 2))
16571 goto bad;
16573 if (aitop)
16574 freeaddrinfo(aitop);
16575 exit(0);
16577 bad:
16578 if (aitop)
16579 freeaddrinfo(aitop);
16580 exit(1);
16583 _ACEOF
16584 rm -f conftest$ac_exeext
16585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16586 (eval $ac_link) 2>&5
16587 ac_status=$?
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591 (eval $ac_try) 2>&5
16592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; }; then
16595 echo "$as_me:$LINENO: result: good" >&5
16596 echo "${ECHO_T}good" >&6
16597 buggygetaddrinfo=no
16598 else
16599 echo "$as_me: program exited with status $ac_status" >&5
16600 echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16603 ( exit $ac_status )
16604 echo "$as_me:$LINENO: result: buggy" >&5
16605 echo "${ECHO_T}buggy" >&6
16606 buggygetaddrinfo=yes
16608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16610 else
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16615 echo "$as_me:$LINENO: result: no" >&5
16616 echo "${ECHO_T}no" >&6
16617 buggygetaddrinfo=yes
16620 rm -f conftest.err conftest.$ac_objext \
16621 conftest$ac_exeext conftest.$ac_ext
16623 if test "$buggygetaddrinfo" = "yes"; then
16624 if test "$ipv6" = "yes"; then
16625 echo 'Fatal: You must get working getaddrinfo() function.'
16626 echo ' or you can specify "--disable-ipv6"'.
16627 exit 1
16629 else
16631 cat >>confdefs.h <<\_ACEOF
16632 #define HAVE_GETADDRINFO 1
16633 _ACEOF
16637 for ac_func in getnameinfo
16639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16640 echo "$as_me:$LINENO: checking for $ac_func" >&5
16641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16642 if eval "test \"\${$as_ac_var+set}\" = set"; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 else
16645 cat >conftest.$ac_ext <<_ACEOF
16646 /* confdefs.h. */
16647 _ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16653 #define $ac_func innocuous_$ac_func
16655 /* System header to define __stub macros and hopefully few prototypes,
16656 which can conflict with char $ac_func (); below.
16657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16658 <limits.h> exists even on freestanding compilers. */
16660 #ifdef __STDC__
16661 # include <limits.h>
16662 #else
16663 # include <assert.h>
16664 #endif
16666 #undef $ac_func
16668 /* Override any gcc2 internal prototype to avoid an error. */
16669 #ifdef __cplusplus
16670 extern "C"
16672 #endif
16673 /* We use char because int might match the return type of a gcc2
16674 builtin and then its argument prototype would still apply. */
16675 char $ac_func ();
16676 /* The GNU C library defines this for functions which it implements
16677 to always fail with ENOSYS. Some functions are actually named
16678 something starting with __ and the normal name is an alias. */
16679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16680 choke me
16681 #else
16682 char (*f) () = $ac_func;
16683 #endif
16684 #ifdef __cplusplus
16686 #endif
16689 main ()
16691 return f != $ac_func;
16693 return 0;
16695 _ACEOF
16696 rm -f conftest.$ac_objext conftest$ac_exeext
16697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16698 (eval $ac_link) 2>conftest.er1
16699 ac_status=$?
16700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
16705 { ac_try='test -z "$ac_c_werror_flag"
16706 || test ! -s conftest.err'
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; } &&
16712 { ac_try='test -s conftest$ac_exeext'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; }; then
16718 eval "$as_ac_var=yes"
16719 else
16720 echo "$as_me: failed program was:" >&5
16721 sed 's/^/| /' conftest.$ac_ext >&5
16723 eval "$as_ac_var=no"
16725 rm -f conftest.err conftest.$ac_objext \
16726 conftest$ac_exeext conftest.$ac_ext
16728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16730 if test `eval echo '${'$as_ac_var'}'` = yes; then
16731 cat >>confdefs.h <<_ACEOF
16732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16733 _ACEOF
16736 done
16739 # checks for structures
16740 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16741 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16742 if test "${ac_cv_header_time+set}" = set; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16744 else
16745 cat >conftest.$ac_ext <<_ACEOF
16746 /* confdefs.h. */
16747 _ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h. */
16751 #include <sys/types.h>
16752 #include <sys/time.h>
16753 #include <time.h>
16756 main ()
16758 if ((struct tm *) 0)
16759 return 0;
16761 return 0;
16763 _ACEOF
16764 rm -f conftest.$ac_objext
16765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16766 (eval $ac_compile) 2>conftest.er1
16767 ac_status=$?
16768 grep -v '^ *+' conftest.er1 >conftest.err
16769 rm -f conftest.er1
16770 cat conftest.err >&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } &&
16773 { ac_try='test -z "$ac_c_werror_flag"
16774 || test ! -s conftest.err'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; } &&
16780 { ac_try='test -s conftest.$ac_objext'
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16783 ac_status=$?
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; }; then
16786 ac_cv_header_time=yes
16787 else
16788 echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16791 ac_cv_header_time=no
16793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16795 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16796 echo "${ECHO_T}$ac_cv_header_time" >&6
16797 if test $ac_cv_header_time = yes; then
16799 cat >>confdefs.h <<\_ACEOF
16800 #define TIME_WITH_SYS_TIME 1
16801 _ACEOF
16805 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16806 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16807 if test "${ac_cv_struct_tm+set}" = set; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16809 else
16810 cat >conftest.$ac_ext <<_ACEOF
16811 /* confdefs.h. */
16812 _ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16816 #include <sys/types.h>
16817 #include <time.h>
16820 main ()
16822 struct tm *tp; tp->tm_sec;
16824 return 0;
16826 _ACEOF
16827 rm -f conftest.$ac_objext
16828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16829 (eval $ac_compile) 2>conftest.er1
16830 ac_status=$?
16831 grep -v '^ *+' conftest.er1 >conftest.err
16832 rm -f conftest.er1
16833 cat conftest.err >&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
16836 { ac_try='test -z "$ac_c_werror_flag"
16837 || test ! -s conftest.err'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest.$ac_objext'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; }; then
16849 ac_cv_struct_tm=time.h
16850 else
16851 echo "$as_me: failed program was:" >&5
16852 sed 's/^/| /' conftest.$ac_ext >&5
16854 ac_cv_struct_tm=sys/time.h
16856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16858 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16859 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16860 if test $ac_cv_struct_tm = sys/time.h; then
16862 cat >>confdefs.h <<\_ACEOF
16863 #define TM_IN_SYS_TIME 1
16864 _ACEOF
16868 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16869 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16870 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16872 else
16873 cat >conftest.$ac_ext <<_ACEOF
16874 /* confdefs.h. */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16879 #include <sys/types.h>
16880 #include <$ac_cv_struct_tm>
16884 main ()
16886 static struct tm ac_aggr;
16887 if (ac_aggr.tm_zone)
16888 return 0;
16890 return 0;
16892 _ACEOF
16893 rm -f conftest.$ac_objext
16894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16895 (eval $ac_compile) 2>conftest.er1
16896 ac_status=$?
16897 grep -v '^ *+' conftest.er1 >conftest.err
16898 rm -f conftest.er1
16899 cat conftest.err >&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
16902 { ac_try='test -z "$ac_c_werror_flag"
16903 || test ! -s conftest.err'
16904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16905 (eval $ac_try) 2>&5
16906 ac_status=$?
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; } &&
16909 { ac_try='test -s conftest.$ac_objext'
16910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911 (eval $ac_try) 2>&5
16912 ac_status=$?
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; }; then
16915 ac_cv_member_struct_tm_tm_zone=yes
16916 else
16917 echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16920 cat >conftest.$ac_ext <<_ACEOF
16921 /* confdefs.h. */
16922 _ACEOF
16923 cat confdefs.h >>conftest.$ac_ext
16924 cat >>conftest.$ac_ext <<_ACEOF
16925 /* end confdefs.h. */
16926 #include <sys/types.h>
16927 #include <$ac_cv_struct_tm>
16931 main ()
16933 static struct tm ac_aggr;
16934 if (sizeof ac_aggr.tm_zone)
16935 return 0;
16937 return 0;
16939 _ACEOF
16940 rm -f conftest.$ac_objext
16941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16942 (eval $ac_compile) 2>conftest.er1
16943 ac_status=$?
16944 grep -v '^ *+' conftest.er1 >conftest.err
16945 rm -f conftest.er1
16946 cat conftest.err >&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } &&
16949 { ac_try='test -z "$ac_c_werror_flag"
16950 || test ! -s conftest.err'
16951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952 (eval $ac_try) 2>&5
16953 ac_status=$?
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; } &&
16956 { ac_try='test -s conftest.$ac_objext'
16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958 (eval $ac_try) 2>&5
16959 ac_status=$?
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16962 ac_cv_member_struct_tm_tm_zone=yes
16963 else
16964 echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16967 ac_cv_member_struct_tm_tm_zone=no
16969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16973 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16974 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16975 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16977 cat >>confdefs.h <<_ACEOF
16978 #define HAVE_STRUCT_TM_TM_ZONE 1
16979 _ACEOF
16984 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16986 cat >>confdefs.h <<\_ACEOF
16987 #define HAVE_TM_ZONE 1
16988 _ACEOF
16990 else
16991 echo "$as_me:$LINENO: checking for tzname" >&5
16992 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16993 if test "${ac_cv_var_tzname+set}" = set; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16995 else
16996 cat >conftest.$ac_ext <<_ACEOF
16997 /* confdefs.h. */
16998 _ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17002 #include <time.h>
17003 #ifndef tzname /* For SGI. */
17004 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17005 #endif
17008 main ()
17010 atoi(*tzname);
17012 return 0;
17014 _ACEOF
17015 rm -f conftest.$ac_objext conftest$ac_exeext
17016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17017 (eval $ac_link) 2>conftest.er1
17018 ac_status=$?
17019 grep -v '^ *+' conftest.er1 >conftest.err
17020 rm -f conftest.er1
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try='test -z "$ac_c_werror_flag"
17025 || test ! -s conftest.err'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try='test -s conftest$ac_exeext'
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17034 ac_status=$?
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17037 ac_cv_var_tzname=yes
17038 else
17039 echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17042 ac_cv_var_tzname=no
17044 rm -f conftest.err conftest.$ac_objext \
17045 conftest$ac_exeext conftest.$ac_ext
17047 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17048 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17049 if test $ac_cv_var_tzname = yes; then
17051 cat >>confdefs.h <<\_ACEOF
17052 #define HAVE_TZNAME 1
17053 _ACEOF
17058 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17059 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17060 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17061 echo $ECHO_N "(cached) $ECHO_C" >&6
17062 else
17063 cat >conftest.$ac_ext <<_ACEOF
17064 /* confdefs.h. */
17065 _ACEOF
17066 cat confdefs.h >>conftest.$ac_ext
17067 cat >>conftest.$ac_ext <<_ACEOF
17068 /* end confdefs.h. */
17069 $ac_includes_default
17071 main ()
17073 static struct stat ac_aggr;
17074 if (ac_aggr.st_rdev)
17075 return 0;
17077 return 0;
17079 _ACEOF
17080 rm -f conftest.$ac_objext
17081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17082 (eval $ac_compile) 2>conftest.er1
17083 ac_status=$?
17084 grep -v '^ *+' conftest.er1 >conftest.err
17085 rm -f conftest.er1
17086 cat conftest.err >&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } &&
17089 { ac_try='test -z "$ac_c_werror_flag"
17090 || test ! -s conftest.err'
17091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092 (eval $ac_try) 2>&5
17093 ac_status=$?
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; } &&
17096 { ac_try='test -s conftest.$ac_objext'
17097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098 (eval $ac_try) 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 ac_cv_member_struct_stat_st_rdev=yes
17103 else
17104 echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17107 cat >conftest.$ac_ext <<_ACEOF
17108 /* confdefs.h. */
17109 _ACEOF
17110 cat confdefs.h >>conftest.$ac_ext
17111 cat >>conftest.$ac_ext <<_ACEOF
17112 /* end confdefs.h. */
17113 $ac_includes_default
17115 main ()
17117 static struct stat ac_aggr;
17118 if (sizeof ac_aggr.st_rdev)
17119 return 0;
17121 return 0;
17123 _ACEOF
17124 rm -f conftest.$ac_objext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17126 (eval $ac_compile) 2>conftest.er1
17127 ac_status=$?
17128 grep -v '^ *+' conftest.er1 >conftest.err
17129 rm -f conftest.er1
17130 cat conftest.err >&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } &&
17133 { ac_try='test -z "$ac_c_werror_flag"
17134 || test ! -s conftest.err'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17137 ac_status=$?
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; } &&
17140 { ac_try='test -s conftest.$ac_objext'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17143 ac_status=$?
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; }; then
17146 ac_cv_member_struct_stat_st_rdev=yes
17147 else
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17151 ac_cv_member_struct_stat_st_rdev=no
17153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17157 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17158 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17159 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17161 cat >>confdefs.h <<_ACEOF
17162 #define HAVE_STRUCT_STAT_ST_RDEV 1
17163 _ACEOF
17168 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17169 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17170 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17172 else
17173 cat >conftest.$ac_ext <<_ACEOF
17174 /* confdefs.h. */
17175 _ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17179 $ac_includes_default
17181 main ()
17183 static struct stat ac_aggr;
17184 if (ac_aggr.st_blksize)
17185 return 0;
17187 return 0;
17189 _ACEOF
17190 rm -f conftest.$ac_objext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17192 (eval $ac_compile) 2>conftest.er1
17193 ac_status=$?
17194 grep -v '^ *+' conftest.er1 >conftest.err
17195 rm -f conftest.er1
17196 cat conftest.err >&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); } &&
17199 { ac_try='test -z "$ac_c_werror_flag"
17200 || test ! -s conftest.err'
17201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202 (eval $ac_try) 2>&5
17203 ac_status=$?
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; } &&
17206 { ac_try='test -s conftest.$ac_objext'
17207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17209 ac_status=$?
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; }; then
17212 ac_cv_member_struct_stat_st_blksize=yes
17213 else
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17217 cat >conftest.$ac_ext <<_ACEOF
17218 /* confdefs.h. */
17219 _ACEOF
17220 cat confdefs.h >>conftest.$ac_ext
17221 cat >>conftest.$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17223 $ac_includes_default
17225 main ()
17227 static struct stat ac_aggr;
17228 if (sizeof ac_aggr.st_blksize)
17229 return 0;
17231 return 0;
17233 _ACEOF
17234 rm -f conftest.$ac_objext
17235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17236 (eval $ac_compile) 2>conftest.er1
17237 ac_status=$?
17238 grep -v '^ *+' conftest.er1 >conftest.err
17239 rm -f conftest.er1
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try='test -z "$ac_c_werror_flag"
17244 || test ! -s conftest.err'
17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246 (eval $ac_try) 2>&5
17247 ac_status=$?
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; } &&
17250 { ac_try='test -s conftest.$ac_objext'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 ac_cv_member_struct_stat_st_blksize=yes
17257 else
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17261 ac_cv_member_struct_stat_st_blksize=no
17263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17267 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17268 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17269 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17271 cat >>confdefs.h <<_ACEOF
17272 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17273 _ACEOF
17278 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17279 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17280 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17282 else
17283 cat >conftest.$ac_ext <<_ACEOF
17284 /* confdefs.h. */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17289 $ac_includes_default
17291 main ()
17293 static struct stat ac_aggr;
17294 if (ac_aggr.st_flags)
17295 return 0;
17297 return 0;
17299 _ACEOF
17300 rm -f conftest.$ac_objext
17301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17302 (eval $ac_compile) 2>conftest.er1
17303 ac_status=$?
17304 grep -v '^ *+' conftest.er1 >conftest.err
17305 rm -f conftest.er1
17306 cat conftest.err >&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); } &&
17309 { ac_try='test -z "$ac_c_werror_flag"
17310 || test ! -s conftest.err'
17311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312 (eval $ac_try) 2>&5
17313 ac_status=$?
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; } &&
17316 { ac_try='test -s conftest.$ac_objext'
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; }; then
17322 ac_cv_member_struct_stat_st_flags=yes
17323 else
17324 echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17327 cat >conftest.$ac_ext <<_ACEOF
17328 /* confdefs.h. */
17329 _ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17333 $ac_includes_default
17335 main ()
17337 static struct stat ac_aggr;
17338 if (sizeof ac_aggr.st_flags)
17339 return 0;
17341 return 0;
17343 _ACEOF
17344 rm -f conftest.$ac_objext
17345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17346 (eval $ac_compile) 2>conftest.er1
17347 ac_status=$?
17348 grep -v '^ *+' conftest.er1 >conftest.err
17349 rm -f conftest.er1
17350 cat conftest.err >&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } &&
17353 { ac_try='test -z "$ac_c_werror_flag"
17354 || test ! -s conftest.err'
17355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356 (eval $ac_try) 2>&5
17357 ac_status=$?
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; } &&
17360 { ac_try='test -s conftest.$ac_objext'
17361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362 (eval $ac_try) 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; }; then
17366 ac_cv_member_struct_stat_st_flags=yes
17367 else
17368 echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17371 ac_cv_member_struct_stat_st_flags=no
17373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17377 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17378 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
17379 if test $ac_cv_member_struct_stat_st_flags = yes; then
17381 cat >>confdefs.h <<_ACEOF
17382 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17383 _ACEOF
17388 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17389 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
17390 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17391 echo $ECHO_N "(cached) $ECHO_C" >&6
17392 else
17393 cat >conftest.$ac_ext <<_ACEOF
17394 /* confdefs.h. */
17395 _ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h. */
17399 $ac_includes_default
17401 main ()
17403 static struct stat ac_aggr;
17404 if (ac_aggr.st_gen)
17405 return 0;
17407 return 0;
17409 _ACEOF
17410 rm -f conftest.$ac_objext
17411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17412 (eval $ac_compile) 2>conftest.er1
17413 ac_status=$?
17414 grep -v '^ *+' conftest.er1 >conftest.err
17415 rm -f conftest.er1
17416 cat conftest.err >&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } &&
17419 { ac_try='test -z "$ac_c_werror_flag"
17420 || test ! -s conftest.err'
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; } &&
17426 { ac_try='test -s conftest.$ac_objext'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; }; then
17432 ac_cv_member_struct_stat_st_gen=yes
17433 else
17434 echo "$as_me: failed program was:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17437 cat >conftest.$ac_ext <<_ACEOF
17438 /* confdefs.h. */
17439 _ACEOF
17440 cat confdefs.h >>conftest.$ac_ext
17441 cat >>conftest.$ac_ext <<_ACEOF
17442 /* end confdefs.h. */
17443 $ac_includes_default
17445 main ()
17447 static struct stat ac_aggr;
17448 if (sizeof ac_aggr.st_gen)
17449 return 0;
17451 return 0;
17453 _ACEOF
17454 rm -f conftest.$ac_objext
17455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17456 (eval $ac_compile) 2>conftest.er1
17457 ac_status=$?
17458 grep -v '^ *+' conftest.er1 >conftest.err
17459 rm -f conftest.er1
17460 cat conftest.err >&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } &&
17463 { ac_try='test -z "$ac_c_werror_flag"
17464 || test ! -s conftest.err'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; } &&
17470 { ac_try='test -s conftest.$ac_objext'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17473 ac_status=$?
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; }; then
17476 ac_cv_member_struct_stat_st_gen=yes
17477 else
17478 echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17481 ac_cv_member_struct_stat_st_gen=no
17483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17487 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
17488 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
17489 if test $ac_cv_member_struct_stat_st_gen = yes; then
17491 cat >>confdefs.h <<_ACEOF
17492 #define HAVE_STRUCT_STAT_ST_GEN 1
17493 _ACEOF
17498 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
17499 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
17500 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 else
17503 cat >conftest.$ac_ext <<_ACEOF
17504 /* confdefs.h. */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17509 $ac_includes_default
17511 main ()
17513 static struct stat ac_aggr;
17514 if (ac_aggr.st_birthtime)
17515 return 0;
17517 return 0;
17519 _ACEOF
17520 rm -f conftest.$ac_objext
17521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17522 (eval $ac_compile) 2>conftest.er1
17523 ac_status=$?
17524 grep -v '^ *+' conftest.er1 >conftest.err
17525 rm -f conftest.er1
17526 cat conftest.err >&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); } &&
17529 { ac_try='test -z "$ac_c_werror_flag"
17530 || test ! -s conftest.err'
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17533 ac_status=$?
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; } &&
17536 { ac_try='test -s conftest.$ac_objext'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 ac_cv_member_struct_stat_st_birthtime=yes
17543 else
17544 echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17547 cat >conftest.$ac_ext <<_ACEOF
17548 /* confdefs.h. */
17549 _ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17553 $ac_includes_default
17555 main ()
17557 static struct stat ac_aggr;
17558 if (sizeof ac_aggr.st_birthtime)
17559 return 0;
17561 return 0;
17563 _ACEOF
17564 rm -f conftest.$ac_objext
17565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17566 (eval $ac_compile) 2>conftest.er1
17567 ac_status=$?
17568 grep -v '^ *+' conftest.er1 >conftest.err
17569 rm -f conftest.er1
17570 cat conftest.err >&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
17573 { ac_try='test -z "$ac_c_werror_flag"
17574 || test ! -s conftest.err'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
17580 { ac_try='test -s conftest.$ac_objext'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
17586 ac_cv_member_struct_stat_st_birthtime=yes
17587 else
17588 echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17591 ac_cv_member_struct_stat_st_birthtime=no
17593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17597 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
17598 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
17599 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
17601 cat >>confdefs.h <<_ACEOF
17602 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
17603 _ACEOF
17608 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17609 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17610 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613 cat >conftest.$ac_ext <<_ACEOF
17614 /* confdefs.h. */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 $ac_includes_default
17621 main ()
17623 static struct stat ac_aggr;
17624 if (ac_aggr.st_blocks)
17625 return 0;
17627 return 0;
17629 _ACEOF
17630 rm -f conftest.$ac_objext
17631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17632 (eval $ac_compile) 2>conftest.er1
17633 ac_status=$?
17634 grep -v '^ *+' conftest.er1 >conftest.err
17635 rm -f conftest.er1
17636 cat conftest.err >&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); } &&
17639 { ac_try='test -z "$ac_c_werror_flag"
17640 || test ! -s conftest.err'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; } &&
17646 { ac_try='test -s conftest.$ac_objext'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
17652 ac_cv_member_struct_stat_st_blocks=yes
17653 else
17654 echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17657 cat >conftest.$ac_ext <<_ACEOF
17658 /* confdefs.h. */
17659 _ACEOF
17660 cat confdefs.h >>conftest.$ac_ext
17661 cat >>conftest.$ac_ext <<_ACEOF
17662 /* end confdefs.h. */
17663 $ac_includes_default
17665 main ()
17667 static struct stat ac_aggr;
17668 if (sizeof ac_aggr.st_blocks)
17669 return 0;
17671 return 0;
17673 _ACEOF
17674 rm -f conftest.$ac_objext
17675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17676 (eval $ac_compile) 2>conftest.er1
17677 ac_status=$?
17678 grep -v '^ *+' conftest.er1 >conftest.err
17679 rm -f conftest.er1
17680 cat conftest.err >&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); } &&
17683 { ac_try='test -z "$ac_c_werror_flag"
17684 || test ! -s conftest.err'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; } &&
17690 { ac_try='test -s conftest.$ac_objext'
17691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692 (eval $ac_try) 2>&5
17693 ac_status=$?
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; }; then
17696 ac_cv_member_struct_stat_st_blocks=yes
17697 else
17698 echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17701 ac_cv_member_struct_stat_st_blocks=no
17703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17707 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17708 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17709 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17711 cat >>confdefs.h <<_ACEOF
17712 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17713 _ACEOF
17716 cat >>confdefs.h <<\_ACEOF
17717 #define HAVE_ST_BLOCKS 1
17718 _ACEOF
17720 else
17721 case $LIBOBJS in
17722 "fileblocks.$ac_objext" | \
17723 *" fileblocks.$ac_objext" | \
17724 "fileblocks.$ac_objext "* | \
17725 *" fileblocks.$ac_objext "* ) ;;
17726 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
17727 esac
17733 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
17734 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
17735 if test "${ac_cv_header_time_altzone+set}" = set; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17737 else
17738 cat >conftest.$ac_ext <<_ACEOF
17739 /* confdefs.h. */
17740 _ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h. */
17744 #include <time.h>
17746 main ()
17748 return altzone;
17750 return 0;
17752 _ACEOF
17753 rm -f conftest.$ac_objext
17754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17755 (eval $ac_compile) 2>conftest.er1
17756 ac_status=$?
17757 grep -v '^ *+' conftest.er1 >conftest.err
17758 rm -f conftest.er1
17759 cat conftest.err >&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
17762 { ac_try='test -z "$ac_c_werror_flag"
17763 || test ! -s conftest.err'
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } &&
17769 { ac_try='test -s conftest.$ac_objext'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_cv_header_time_altzone=yes
17776 else
17777 echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.$ac_ext >&5
17780 ac_cv_header_time_altzone=no
17782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17785 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
17786 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
17787 if test $ac_cv_header_time_altzone = yes; then
17789 cat >>confdefs.h <<\_ACEOF
17790 #define HAVE_ALTZONE 1
17791 _ACEOF
17795 was_it_defined=no
17796 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
17797 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
17798 cat >conftest.$ac_ext <<_ACEOF
17799 /* confdefs.h. */
17800 _ACEOF
17801 cat confdefs.h >>conftest.$ac_ext
17802 cat >>conftest.$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17805 #include <sys/types.h>
17806 #include <sys/select.h>
17807 #include <sys/time.h>
17810 main ()
17814 return 0;
17816 _ACEOF
17817 rm -f conftest.$ac_objext
17818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17819 (eval $ac_compile) 2>conftest.er1
17820 ac_status=$?
17821 grep -v '^ *+' conftest.er1 >conftest.err
17822 rm -f conftest.er1
17823 cat conftest.err >&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); } &&
17826 { ac_try='test -z "$ac_c_werror_flag"
17827 || test ! -s conftest.err'
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; } &&
17833 { ac_try='test -s conftest.$ac_objext'
17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835 (eval $ac_try) 2>&5
17836 ac_status=$?
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; }; then
17841 cat >>confdefs.h <<\_ACEOF
17842 #define SYS_SELECT_WITH_SYS_TIME 1
17843 _ACEOF
17845 was_it_defined=yes
17847 else
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17853 echo "$as_me:$LINENO: result: $was_it_defined" >&5
17854 echo "${ECHO_T}$was_it_defined" >&6
17856 echo "$as_me:$LINENO: checking for addrinfo" >&5
17857 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
17858 if test "${ac_cv_struct_addrinfo+set}" = set; then
17859 echo $ECHO_N "(cached) $ECHO_C" >&6
17860 else
17861 cat >conftest.$ac_ext <<_ACEOF
17862 /* confdefs.h. */
17863 _ACEOF
17864 cat confdefs.h >>conftest.$ac_ext
17865 cat >>conftest.$ac_ext <<_ACEOF
17866 /* end confdefs.h. */
17868 # include <netdb.h>
17870 main ()
17872 struct addrinfo a
17874 return 0;
17876 _ACEOF
17877 rm -f conftest.$ac_objext
17878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17879 (eval $ac_compile) 2>conftest.er1
17880 ac_status=$?
17881 grep -v '^ *+' conftest.er1 >conftest.err
17882 rm -f conftest.er1
17883 cat conftest.err >&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } &&
17886 { ac_try='test -z "$ac_c_werror_flag"
17887 || test ! -s conftest.err'
17888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; } &&
17893 { ac_try='test -s conftest.$ac_objext'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17896 ac_status=$?
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; }; then
17899 ac_cv_struct_addrinfo=yes
17900 else
17901 echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17904 ac_cv_struct_addrinfo=no
17906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17909 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
17910 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
17911 if test $ac_cv_struct_addrinfo = yes; then
17913 cat >>confdefs.h <<\_ACEOF
17914 #define HAVE_ADDRINFO 1
17915 _ACEOF
17919 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
17920 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
17921 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
17922 echo $ECHO_N "(cached) $ECHO_C" >&6
17923 else
17924 cat >conftest.$ac_ext <<_ACEOF
17925 /* confdefs.h. */
17926 _ACEOF
17927 cat confdefs.h >>conftest.$ac_ext
17928 cat >>conftest.$ac_ext <<_ACEOF
17929 /* end confdefs.h. */
17931 # include <sys/types.h>
17932 # include <sys/socket.h>
17934 main ()
17936 struct sockaddr_storage s
17938 return 0;
17940 _ACEOF
17941 rm -f conftest.$ac_objext
17942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17943 (eval $ac_compile) 2>conftest.er1
17944 ac_status=$?
17945 grep -v '^ *+' conftest.er1 >conftest.err
17946 rm -f conftest.er1
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
17950 { ac_try='test -z "$ac_c_werror_flag"
17951 || test ! -s conftest.err'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; } &&
17957 { ac_try='test -s conftest.$ac_objext'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 ac_cv_struct_sockaddr_storage=yes
17964 else
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 ac_cv_struct_sockaddr_storage=no
17970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17973 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
17974 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
17975 if test $ac_cv_struct_sockaddr_storage = yes; then
17977 cat >>confdefs.h <<\_ACEOF
17978 #define HAVE_SOCKADDR_STORAGE 1
17979 _ACEOF
17983 # checks for compiler characteristics
17986 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
17987 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
17988 if test "${ac_cv_c_char_unsigned+set}" = set; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
17990 else
17991 cat >conftest.$ac_ext <<_ACEOF
17992 /* confdefs.h. */
17993 _ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h. */
17997 $ac_includes_default
17999 main ()
18001 static int test_array [1 - 2 * !(((char) -1) < 0)];
18002 test_array [0] = 0
18005 return 0;
18007 _ACEOF
18008 rm -f conftest.$ac_objext
18009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18010 (eval $ac_compile) 2>conftest.er1
18011 ac_status=$?
18012 grep -v '^ *+' conftest.er1 >conftest.err
18013 rm -f conftest.er1
18014 cat conftest.err >&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } &&
18017 { ac_try='test -z "$ac_c_werror_flag"
18018 || test ! -s conftest.err'
18019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18021 ac_status=$?
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; } &&
18024 { ac_try='test -s conftest.$ac_objext'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 ac_cv_c_char_unsigned=no
18031 else
18032 echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18035 ac_cv_c_char_unsigned=yes
18037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18039 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18040 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18041 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18042 cat >>confdefs.h <<\_ACEOF
18043 #define __CHAR_UNSIGNED__ 1
18044 _ACEOF
18048 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18049 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18050 if test "${ac_cv_c_const+set}" = set; then
18051 echo $ECHO_N "(cached) $ECHO_C" >&6
18052 else
18053 cat >conftest.$ac_ext <<_ACEOF
18054 /* confdefs.h. */
18055 _ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18061 main ()
18063 /* FIXME: Include the comments suggested by Paul. */
18064 #ifndef __cplusplus
18065 /* Ultrix mips cc rejects this. */
18066 typedef int charset[2];
18067 const charset x;
18068 /* SunOS 4.1.1 cc rejects this. */
18069 char const *const *ccp;
18070 char **p;
18071 /* NEC SVR4.0.2 mips cc rejects this. */
18072 struct point {int x, y;};
18073 static struct point const zero = {0,0};
18074 /* AIX XL C 1.02.0.0 rejects this.
18075 It does not let you subtract one const X* pointer from another in
18076 an arm of an if-expression whose if-part is not a constant
18077 expression */
18078 const char *g = "string";
18079 ccp = &g + (g ? g-g : 0);
18080 /* HPUX 7.0 cc rejects these. */
18081 ++ccp;
18082 p = (char**) ccp;
18083 ccp = (char const *const *) p;
18084 { /* SCO 3.2v4 cc rejects this. */
18085 char *t;
18086 char const *s = 0 ? (char *) 0 : (char const *) 0;
18088 *t++ = 0;
18090 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18091 int x[] = {25, 17};
18092 const int *foo = &x[0];
18093 ++foo;
18095 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18096 typedef const int *iptr;
18097 iptr p = 0;
18098 ++p;
18100 { /* AIX XL C 1.02.0.0 rejects this saying
18101 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18102 struct s { int j; const int *ap[3]; };
18103 struct s *b; b->j = 5;
18105 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18106 const int foo = 10;
18108 #endif
18111 return 0;
18113 _ACEOF
18114 rm -f conftest.$ac_objext
18115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18116 (eval $ac_compile) 2>conftest.er1
18117 ac_status=$?
18118 grep -v '^ *+' conftest.er1 >conftest.err
18119 rm -f conftest.er1
18120 cat conftest.err >&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } &&
18123 { ac_try='test -z "$ac_c_werror_flag"
18124 || test ! -s conftest.err'
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; } &&
18130 { ac_try='test -s conftest.$ac_objext'
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18136 ac_cv_c_const=yes
18137 else
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18141 ac_cv_c_const=no
18143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18145 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18146 echo "${ECHO_T}$ac_cv_c_const" >&6
18147 if test $ac_cv_c_const = no; then
18149 cat >>confdefs.h <<\_ACEOF
18150 #define const
18151 _ACEOF
18156 works=no
18157 echo "$as_me:$LINENO: checking for working volatile" >&5
18158 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18159 cat >conftest.$ac_ext <<_ACEOF
18160 /* confdefs.h. */
18161 _ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18167 main ()
18169 volatile int x; x = 0;
18171 return 0;
18173 _ACEOF
18174 rm -f conftest.$ac_objext
18175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18176 (eval $ac_compile) 2>conftest.er1
18177 ac_status=$?
18178 grep -v '^ *+' conftest.er1 >conftest.err
18179 rm -f conftest.er1
18180 cat conftest.err >&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } &&
18183 { ac_try='test -z "$ac_c_werror_flag"
18184 || test ! -s conftest.err'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; } &&
18190 { ac_try='test -s conftest.$ac_objext'
18191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192 (eval $ac_try) 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18196 works=yes
18197 else
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18202 cat >>confdefs.h <<\_ACEOF
18203 #define volatile
18204 _ACEOF
18208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18209 echo "$as_me:$LINENO: result: $works" >&5
18210 echo "${ECHO_T}$works" >&6
18212 works=no
18213 echo "$as_me:$LINENO: checking for working signed char" >&5
18214 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18215 cat >conftest.$ac_ext <<_ACEOF
18216 /* confdefs.h. */
18217 _ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h. */
18223 main ()
18225 signed char c;
18227 return 0;
18229 _ACEOF
18230 rm -f conftest.$ac_objext
18231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18232 (eval $ac_compile) 2>conftest.er1
18233 ac_status=$?
18234 grep -v '^ *+' conftest.er1 >conftest.err
18235 rm -f conftest.er1
18236 cat conftest.err >&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); } &&
18239 { ac_try='test -z "$ac_c_werror_flag"
18240 || test ! -s conftest.err'
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18243 ac_status=$?
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; } &&
18246 { ac_try='test -s conftest.$ac_objext'
18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248 (eval $ac_try) 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; }; then
18252 works=yes
18253 else
18254 echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18258 cat >>confdefs.h <<\_ACEOF
18259 #define signed
18260 _ACEOF
18264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18265 echo "$as_me:$LINENO: result: $works" >&5
18266 echo "${ECHO_T}$works" >&6
18268 have_prototypes=no
18269 echo "$as_me:$LINENO: checking for prototypes" >&5
18270 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18271 cat >conftest.$ac_ext <<_ACEOF
18272 /* confdefs.h. */
18273 _ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18277 int foo(int x) { return 0; }
18279 main ()
18281 return foo(10);
18283 return 0;
18285 _ACEOF
18286 rm -f conftest.$ac_objext
18287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18288 (eval $ac_compile) 2>conftest.er1
18289 ac_status=$?
18290 grep -v '^ *+' conftest.er1 >conftest.err
18291 rm -f conftest.er1
18292 cat conftest.err >&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } &&
18295 { ac_try='test -z "$ac_c_werror_flag"
18296 || test ! -s conftest.err'
18297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18298 (eval $ac_try) 2>&5
18299 ac_status=$?
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; } &&
18302 { ac_try='test -s conftest.$ac_objext'
18303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18305 ac_status=$?
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; }; then
18310 cat >>confdefs.h <<\_ACEOF
18311 #define HAVE_PROTOTYPES 1
18312 _ACEOF
18314 have_prototypes=yes
18316 else
18317 echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18322 echo "$as_me:$LINENO: result: $have_prototypes" >&5
18323 echo "${ECHO_T}$have_prototypes" >&6
18325 works=no
18326 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18327 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
18328 cat >conftest.$ac_ext <<_ACEOF
18329 /* confdefs.h. */
18330 _ACEOF
18331 cat confdefs.h >>conftest.$ac_ext
18332 cat >>conftest.$ac_ext <<_ACEOF
18333 /* end confdefs.h. */
18335 #include <stdarg.h>
18336 int foo(int x, ...) {
18337 va_list va;
18338 va_start(va, x);
18339 va_arg(va, int);
18340 va_arg(va, char *);
18341 va_arg(va, double);
18342 return 0;
18346 main ()
18348 return foo(10, "", 3.14);
18350 return 0;
18352 _ACEOF
18353 rm -f conftest.$ac_objext
18354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18355 (eval $ac_compile) 2>conftest.er1
18356 ac_status=$?
18357 grep -v '^ *+' conftest.er1 >conftest.err
18358 rm -f conftest.er1
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try='test -z "$ac_c_werror_flag"
18363 || test ! -s conftest.err'
18364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18366 ac_status=$?
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; } &&
18369 { ac_try='test -s conftest.$ac_objext'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18372 ac_status=$?
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; }; then
18377 cat >>confdefs.h <<\_ACEOF
18378 #define HAVE_STDARG_PROTOTYPES 1
18379 _ACEOF
18381 works=yes
18383 else
18384 echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18389 echo "$as_me:$LINENO: result: $works" >&5
18390 echo "${ECHO_T}$works" >&6
18392 # check for socketpair
18393 echo "$as_me:$LINENO: checking for socketpair" >&5
18394 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
18395 cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h. */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18402 #include <sys/types.h>
18403 #include <sys/socket.h>
18406 main ()
18408 void *x=socketpair
18410 return 0;
18412 _ACEOF
18413 rm -f conftest.$ac_objext
18414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18415 (eval $ac_compile) 2>conftest.er1
18416 ac_status=$?
18417 grep -v '^ *+' conftest.er1 >conftest.err
18418 rm -f conftest.er1
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
18422 { ac_try='test -z "$ac_c_werror_flag"
18423 || test ! -s conftest.err'
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; } &&
18429 { ac_try='test -s conftest.$ac_objext'
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18432 ac_status=$?
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; }; then
18436 cat >>confdefs.h <<\_ACEOF
18437 #define HAVE_SOCKETPAIR 1
18438 _ACEOF
18440 echo "$as_me:$LINENO: result: yes" >&5
18441 echo "${ECHO_T}yes" >&6
18442 else
18443 echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18446 echo "$as_me:$LINENO: result: no" >&5
18447 echo "${ECHO_T}no" >&6
18450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18452 # check if sockaddr has sa_len member
18453 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18454 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
18455 cat >conftest.$ac_ext <<_ACEOF
18456 /* confdefs.h. */
18457 _ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h. */
18461 #include <sys/types.h>
18462 #include <sys/socket.h>
18464 main ()
18466 struct sockaddr x;
18467 x.sa_len = 0;
18469 return 0;
18471 _ACEOF
18472 rm -f conftest.$ac_objext
18473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18474 (eval $ac_compile) 2>conftest.er1
18475 ac_status=$?
18476 grep -v '^ *+' conftest.er1 >conftest.err
18477 rm -f conftest.er1
18478 cat conftest.err >&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } &&
18481 { ac_try='test -z "$ac_c_werror_flag"
18482 || test ! -s conftest.err'
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18485 ac_status=$?
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; } &&
18488 { ac_try='test -s conftest.$ac_objext'
18489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18490 (eval $ac_try) 2>&5
18491 ac_status=$?
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; }; then
18494 echo "$as_me:$LINENO: result: yes" >&5
18495 echo "${ECHO_T}yes" >&6
18497 cat >>confdefs.h <<\_ACEOF
18498 #define HAVE_SOCKADDR_SA_LEN 1
18499 _ACEOF
18501 else
18502 echo "$as_me: failed program was:" >&5
18503 sed 's/^/| /' conftest.$ac_ext >&5
18505 echo "$as_me:$LINENO: result: no" >&5
18506 echo "${ECHO_T}no" >&6
18508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18510 va_list_is_array=no
18511 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
18512 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
18513 cat >conftest.$ac_ext <<_ACEOF
18514 /* confdefs.h. */
18515 _ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h. */
18520 #ifdef HAVE_STDARG_PROTOTYPES
18521 #include <stdarg.h>
18522 #else
18523 #include <varargs.h>
18524 #endif
18527 main ()
18529 va_list list1, list2; list1 = list2;
18531 return 0;
18533 _ACEOF
18534 rm -f conftest.$ac_objext
18535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18536 (eval $ac_compile) 2>conftest.er1
18537 ac_status=$?
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try='test -z "$ac_c_werror_flag"
18544 || test ! -s conftest.err'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18547 ac_status=$?
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; } &&
18550 { ac_try='test -s conftest.$ac_objext'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18557 else
18558 echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18563 cat >>confdefs.h <<\_ACEOF
18564 #define VA_LIST_IS_ARRAY 1
18565 _ACEOF
18567 va_list_is_array=yes
18570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18571 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
18572 echo "${ECHO_T}$va_list_is_array" >&6
18574 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
18578 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18579 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18580 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18581 echo $ECHO_N "(cached) $ECHO_C" >&6
18582 else
18583 cat >conftest.$ac_ext <<_ACEOF
18584 /* confdefs.h. */
18585 _ACEOF
18586 cat confdefs.h >>conftest.$ac_ext
18587 cat >>conftest.$ac_ext <<_ACEOF
18588 /* end confdefs.h. */
18589 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18591 #define gethostbyname_r innocuous_gethostbyname_r
18593 /* System header to define __stub macros and hopefully few prototypes,
18594 which can conflict with char gethostbyname_r (); below.
18595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18596 <limits.h> exists even on freestanding compilers. */
18598 #ifdef __STDC__
18599 # include <limits.h>
18600 #else
18601 # include <assert.h>
18602 #endif
18604 #undef gethostbyname_r
18606 /* Override any gcc2 internal prototype to avoid an error. */
18607 #ifdef __cplusplus
18608 extern "C"
18610 #endif
18611 /* We use char because int might match the return type of a gcc2
18612 builtin and then its argument prototype would still apply. */
18613 char gethostbyname_r ();
18614 /* The GNU C library defines this for functions which it implements
18615 to always fail with ENOSYS. Some functions are actually named
18616 something starting with __ and the normal name is an alias. */
18617 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18618 choke me
18619 #else
18620 char (*f) () = gethostbyname_r;
18621 #endif
18622 #ifdef __cplusplus
18624 #endif
18627 main ()
18629 return f != gethostbyname_r;
18631 return 0;
18633 _ACEOF
18634 rm -f conftest.$ac_objext conftest$ac_exeext
18635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18636 (eval $ac_link) 2>conftest.er1
18637 ac_status=$?
18638 grep -v '^ *+' conftest.er1 >conftest.err
18639 rm -f conftest.er1
18640 cat conftest.err >&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); } &&
18643 { ac_try='test -z "$ac_c_werror_flag"
18644 || test ! -s conftest.err'
18645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646 (eval $ac_try) 2>&5
18647 ac_status=$?
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; } &&
18650 { ac_try='test -s conftest$ac_exeext'
18651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652 (eval $ac_try) 2>&5
18653 ac_status=$?
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; }; then
18656 ac_cv_func_gethostbyname_r=yes
18657 else
18658 echo "$as_me: failed program was:" >&5
18659 sed 's/^/| /' conftest.$ac_ext >&5
18661 ac_cv_func_gethostbyname_r=no
18663 rm -f conftest.err conftest.$ac_objext \
18664 conftest$ac_exeext conftest.$ac_ext
18666 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18667 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18668 if test $ac_cv_func_gethostbyname_r = yes; then
18670 cat >>confdefs.h <<\_ACEOF
18671 #define HAVE_GETHOSTBYNAME_R 1
18672 _ACEOF
18674 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
18675 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
18676 OLD_CFLAGS=$CFLAGS
18677 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
18678 cat >conftest.$ac_ext <<_ACEOF
18679 /* confdefs.h. */
18680 _ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18685 # include <netdb.h>
18688 main ()
18691 char *name;
18692 struct hostent *he, *res;
18693 char buffer[2048];
18694 int buflen = 2048;
18695 int h_errnop;
18697 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
18700 return 0;
18702 _ACEOF
18703 rm -f conftest.$ac_objext
18704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18705 (eval $ac_compile) 2>conftest.er1
18706 ac_status=$?
18707 grep -v '^ *+' conftest.er1 >conftest.err
18708 rm -f conftest.er1
18709 cat conftest.err >&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } &&
18712 { ac_try='test -z "$ac_c_werror_flag"
18713 || test ! -s conftest.err'
18714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18715 (eval $ac_try) 2>&5
18716 ac_status=$?
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; } &&
18719 { ac_try='test -s conftest.$ac_objext'
18720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721 (eval $ac_try) 2>&5
18722 ac_status=$?
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; }; then
18726 cat >>confdefs.h <<\_ACEOF
18727 #define HAVE_GETHOSTBYNAME_R 1
18728 _ACEOF
18731 cat >>confdefs.h <<\_ACEOF
18732 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
18733 _ACEOF
18735 echo "$as_me:$LINENO: result: yes" >&5
18736 echo "${ECHO_T}yes" >&6
18738 else
18739 echo "$as_me: failed program was:" >&5
18740 sed 's/^/| /' conftest.$ac_ext >&5
18743 echo "$as_me:$LINENO: result: no" >&5
18744 echo "${ECHO_T}no" >&6
18745 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
18746 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
18747 cat >conftest.$ac_ext <<_ACEOF
18748 /* confdefs.h. */
18749 _ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h. */
18754 # include <netdb.h>
18757 main ()
18760 char *name;
18761 struct hostent *he;
18762 char buffer[2048];
18763 int buflen = 2048;
18764 int h_errnop;
18766 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
18769 return 0;
18771 _ACEOF
18772 rm -f conftest.$ac_objext
18773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18774 (eval $ac_compile) 2>conftest.er1
18775 ac_status=$?
18776 grep -v '^ *+' conftest.er1 >conftest.err
18777 rm -f conftest.er1
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try='test -z "$ac_c_werror_flag"
18782 || test ! -s conftest.err'
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784 (eval $ac_try) 2>&5
18785 ac_status=$?
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; } &&
18788 { ac_try='test -s conftest.$ac_objext'
18789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790 (eval $ac_try) 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; }; then
18795 cat >>confdefs.h <<\_ACEOF
18796 #define HAVE_GETHOSTBYNAME_R 1
18797 _ACEOF
18800 cat >>confdefs.h <<\_ACEOF
18801 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
18802 _ACEOF
18804 echo "$as_me:$LINENO: result: yes" >&5
18805 echo "${ECHO_T}yes" >&6
18807 else
18808 echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18812 echo "$as_me:$LINENO: result: no" >&5
18813 echo "${ECHO_T}no" >&6
18814 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
18815 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
18816 cat >conftest.$ac_ext <<_ACEOF
18817 /* confdefs.h. */
18818 _ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18823 # include <netdb.h>
18826 main ()
18829 char *name;
18830 struct hostent *he;
18831 struct hostent_data data;
18833 (void) gethostbyname_r(name, he, &data);
18836 return 0;
18838 _ACEOF
18839 rm -f conftest.$ac_objext
18840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18841 (eval $ac_compile) 2>conftest.er1
18842 ac_status=$?
18843 grep -v '^ *+' conftest.er1 >conftest.err
18844 rm -f conftest.er1
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } &&
18848 { ac_try='test -z "$ac_c_werror_flag"
18849 || test ! -s conftest.err'
18850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18851 (eval $ac_try) 2>&5
18852 ac_status=$?
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); }; } &&
18855 { ac_try='test -s conftest.$ac_objext'
18856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857 (eval $ac_try) 2>&5
18858 ac_status=$?
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; }; then
18862 cat >>confdefs.h <<\_ACEOF
18863 #define HAVE_GETHOSTBYNAME_R 1
18864 _ACEOF
18867 cat >>confdefs.h <<\_ACEOF
18868 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
18869 _ACEOF
18871 echo "$as_me:$LINENO: result: yes" >&5
18872 echo "${ECHO_T}yes" >&6
18874 else
18875 echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18879 echo "$as_me:$LINENO: result: no" >&5
18880 echo "${ECHO_T}no" >&6
18883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18890 CFLAGS=$OLD_CFLAGS
18892 else
18895 for ac_func in gethostbyname
18897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18898 echo "$as_me:$LINENO: checking for $ac_func" >&5
18899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18900 if eval "test \"\${$as_ac_var+set}\" = set"; then
18901 echo $ECHO_N "(cached) $ECHO_C" >&6
18902 else
18903 cat >conftest.$ac_ext <<_ACEOF
18904 /* confdefs.h. */
18905 _ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h. */
18909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18911 #define $ac_func innocuous_$ac_func
18913 /* System header to define __stub macros and hopefully few prototypes,
18914 which can conflict with char $ac_func (); below.
18915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18916 <limits.h> exists even on freestanding compilers. */
18918 #ifdef __STDC__
18919 # include <limits.h>
18920 #else
18921 # include <assert.h>
18922 #endif
18924 #undef $ac_func
18926 /* Override any gcc2 internal prototype to avoid an error. */
18927 #ifdef __cplusplus
18928 extern "C"
18930 #endif
18931 /* We use char because int might match the return type of a gcc2
18932 builtin and then its argument prototype would still apply. */
18933 char $ac_func ();
18934 /* The GNU C library defines this for functions which it implements
18935 to always fail with ENOSYS. Some functions are actually named
18936 something starting with __ and the normal name is an alias. */
18937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18938 choke me
18939 #else
18940 char (*f) () = $ac_func;
18941 #endif
18942 #ifdef __cplusplus
18944 #endif
18947 main ()
18949 return f != $ac_func;
18951 return 0;
18953 _ACEOF
18954 rm -f conftest.$ac_objext conftest$ac_exeext
18955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18956 (eval $ac_link) 2>conftest.er1
18957 ac_status=$?
18958 grep -v '^ *+' conftest.er1 >conftest.err
18959 rm -f conftest.er1
18960 cat conftest.err >&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } &&
18963 { ac_try='test -z "$ac_c_werror_flag"
18964 || test ! -s conftest.err'
18965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966 (eval $ac_try) 2>&5
18967 ac_status=$?
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; } &&
18970 { ac_try='test -s conftest$ac_exeext'
18971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18972 (eval $ac_try) 2>&5
18973 ac_status=$?
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; }; then
18976 eval "$as_ac_var=yes"
18977 else
18978 echo "$as_me: failed program was:" >&5
18979 sed 's/^/| /' conftest.$ac_ext >&5
18981 eval "$as_ac_var=no"
18983 rm -f conftest.err conftest.$ac_objext \
18984 conftest$ac_exeext conftest.$ac_ext
18986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18988 if test `eval echo '${'$as_ac_var'}'` = yes; then
18989 cat >>confdefs.h <<_ACEOF
18990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18991 _ACEOF
18994 done
19005 # checks for system services
19006 # (none yet)
19008 # Linux requires this for correct f.p. operations
19009 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19010 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19011 if test "${ac_cv_func___fpu_control+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 else
19014 cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h. */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19022 #define __fpu_control innocuous___fpu_control
19024 /* System header to define __stub macros and hopefully few prototypes,
19025 which can conflict with char __fpu_control (); below.
19026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19027 <limits.h> exists even on freestanding compilers. */
19029 #ifdef __STDC__
19030 # include <limits.h>
19031 #else
19032 # include <assert.h>
19033 #endif
19035 #undef __fpu_control
19037 /* Override any gcc2 internal prototype to avoid an error. */
19038 #ifdef __cplusplus
19039 extern "C"
19041 #endif
19042 /* We use char because int might match the return type of a gcc2
19043 builtin and then its argument prototype would still apply. */
19044 char __fpu_control ();
19045 /* The GNU C library defines this for functions which it implements
19046 to always fail with ENOSYS. Some functions are actually named
19047 something starting with __ and the normal name is an alias. */
19048 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19049 choke me
19050 #else
19051 char (*f) () = __fpu_control;
19052 #endif
19053 #ifdef __cplusplus
19055 #endif
19058 main ()
19060 return f != __fpu_control;
19062 return 0;
19064 _ACEOF
19065 rm -f conftest.$ac_objext conftest$ac_exeext
19066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19067 (eval $ac_link) 2>conftest.er1
19068 ac_status=$?
19069 grep -v '^ *+' conftest.er1 >conftest.err
19070 rm -f conftest.er1
19071 cat conftest.err >&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } &&
19074 { ac_try='test -z "$ac_c_werror_flag"
19075 || test ! -s conftest.err'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19078 ac_status=$?
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; } &&
19081 { ac_try='test -s conftest$ac_exeext'
19082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19083 (eval $ac_try) 2>&5
19084 ac_status=$?
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; }; then
19087 ac_cv_func___fpu_control=yes
19088 else
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19092 ac_cv_func___fpu_control=no
19094 rm -f conftest.err conftest.$ac_objext \
19095 conftest$ac_exeext conftest.$ac_ext
19097 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19098 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19099 if test $ac_cv_func___fpu_control = yes; then
19101 else
19103 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19104 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19105 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19107 else
19108 ac_check_lib_save_LIBS=$LIBS
19109 LIBS="-lieee $LIBS"
19110 cat >conftest.$ac_ext <<_ACEOF
19111 /* confdefs.h. */
19112 _ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19117 /* Override any gcc2 internal prototype to avoid an error. */
19118 #ifdef __cplusplus
19119 extern "C"
19120 #endif
19121 /* We use char because int might match the return type of a gcc2
19122 builtin and then its argument prototype would still apply. */
19123 char __fpu_control ();
19125 main ()
19127 __fpu_control ();
19129 return 0;
19131 _ACEOF
19132 rm -f conftest.$ac_objext conftest$ac_exeext
19133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19134 (eval $ac_link) 2>conftest.er1
19135 ac_status=$?
19136 grep -v '^ *+' conftest.er1 >conftest.err
19137 rm -f conftest.er1
19138 cat conftest.err >&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); } &&
19141 { ac_try='test -z "$ac_c_werror_flag"
19142 || test ! -s conftest.err'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19145 ac_status=$?
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; } &&
19148 { ac_try='test -s conftest$ac_exeext'
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19151 ac_status=$?
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; }; then
19154 ac_cv_lib_ieee___fpu_control=yes
19155 else
19156 echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19159 ac_cv_lib_ieee___fpu_control=no
19161 rm -f conftest.err conftest.$ac_objext \
19162 conftest$ac_exeext conftest.$ac_ext
19163 LIBS=$ac_check_lib_save_LIBS
19165 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19166 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19167 if test $ac_cv_lib_ieee___fpu_control = yes; then
19168 cat >>confdefs.h <<_ACEOF
19169 #define HAVE_LIBIEEE 1
19170 _ACEOF
19172 LIBS="-lieee $LIBS"
19180 # Check for --with-fpectl
19181 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19182 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19184 # Check whether --with-fpectl or --without-fpectl was given.
19185 if test "${with_fpectl+set}" = set; then
19186 withval="$with_fpectl"
19188 if test "$withval" != no
19189 then
19191 cat >>confdefs.h <<\_ACEOF
19192 #define WANT_SIGFPE_HANDLER 1
19193 _ACEOF
19195 echo "$as_me:$LINENO: result: yes" >&5
19196 echo "${ECHO_T}yes" >&6
19197 else echo "$as_me:$LINENO: result: no" >&5
19198 echo "${ECHO_T}no" >&6
19200 else
19201 echo "$as_me:$LINENO: result: no" >&5
19202 echo "${ECHO_T}no" >&6
19205 # check for --with-libm=...
19207 case $ac_sys_system in
19208 Darwin) ;;
19209 BeOS) ;;
19210 *) LIBM=-lm
19211 esac
19212 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19213 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19215 # Check whether --with-libm or --without-libm was given.
19216 if test "${with_libm+set}" = set; then
19217 withval="$with_libm"
19219 if test "$withval" = no
19220 then LIBM=
19221 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19222 echo "${ECHO_T}force LIBM empty" >&6
19223 elif test "$withval" != yes
19224 then LIBM=$withval
19225 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19226 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19227 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19228 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19229 { (exit 1); exit 1; }; }
19231 else
19232 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19233 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19236 # check for --with-libc=...
19238 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19239 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19241 # Check whether --with-libc or --without-libc was given.
19242 if test "${with_libc+set}" = set; then
19243 withval="$with_libc"
19245 if test "$withval" = no
19246 then LIBC=
19247 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19248 echo "${ECHO_T}force LIBC empty" >&6
19249 elif test "$withval" != yes
19250 then LIBC=$withval
19251 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19252 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19253 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19254 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19255 { (exit 1); exit 1; }; }
19257 else
19258 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19259 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19262 # check for hypot() in math library
19263 LIBS_SAVE=$LIBS
19264 LIBS="$LIBS $LIBM"
19266 for ac_func in hypot
19268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19269 echo "$as_me:$LINENO: checking for $ac_func" >&5
19270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19271 if eval "test \"\${$as_ac_var+set}\" = set"; then
19272 echo $ECHO_N "(cached) $ECHO_C" >&6
19273 else
19274 cat >conftest.$ac_ext <<_ACEOF
19275 /* confdefs.h. */
19276 _ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19282 #define $ac_func innocuous_$ac_func
19284 /* System header to define __stub macros and hopefully few prototypes,
19285 which can conflict with char $ac_func (); below.
19286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19287 <limits.h> exists even on freestanding compilers. */
19289 #ifdef __STDC__
19290 # include <limits.h>
19291 #else
19292 # include <assert.h>
19293 #endif
19295 #undef $ac_func
19297 /* Override any gcc2 internal prototype to avoid an error. */
19298 #ifdef __cplusplus
19299 extern "C"
19301 #endif
19302 /* We use char because int might match the return type of a gcc2
19303 builtin and then its argument prototype would still apply. */
19304 char $ac_func ();
19305 /* The GNU C library defines this for functions which it implements
19306 to always fail with ENOSYS. Some functions are actually named
19307 something starting with __ and the normal name is an alias. */
19308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19309 choke me
19310 #else
19311 char (*f) () = $ac_func;
19312 #endif
19313 #ifdef __cplusplus
19315 #endif
19318 main ()
19320 return f != $ac_func;
19322 return 0;
19324 _ACEOF
19325 rm -f conftest.$ac_objext conftest$ac_exeext
19326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19327 (eval $ac_link) 2>conftest.er1
19328 ac_status=$?
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } &&
19334 { ac_try='test -z "$ac_c_werror_flag"
19335 || test ! -s conftest.err'
19336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337 (eval $ac_try) 2>&5
19338 ac_status=$?
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; } &&
19341 { ac_try='test -s conftest$ac_exeext'
19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19344 ac_status=$?
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; }; then
19347 eval "$as_ac_var=yes"
19348 else
19349 echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19352 eval "$as_ac_var=no"
19354 rm -f conftest.err conftest.$ac_objext \
19355 conftest$ac_exeext conftest.$ac_ext
19357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19359 if test `eval echo '${'$as_ac_var'}'` = yes; then
19360 cat >>confdefs.h <<_ACEOF
19361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19362 _ACEOF
19364 else
19365 case $LIBOBJS in
19366 "$ac_func.$ac_objext" | \
19367 *" $ac_func.$ac_objext" | \
19368 "$ac_func.$ac_objext "* | \
19369 *" $ac_func.$ac_objext "* ) ;;
19370 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19371 esac
19374 done
19377 LIBS=$LIBS_SAVE
19379 # check for wchar.h
19380 if test "${ac_cv_header_wchar_h+set}" = set; then
19381 echo "$as_me:$LINENO: checking for wchar.h" >&5
19382 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19383 if test "${ac_cv_header_wchar_h+set}" = set; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
19386 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19387 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19388 else
19389 # Is the header compilable?
19390 echo "$as_me:$LINENO: checking wchar.h usability" >&5
19391 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
19392 cat >conftest.$ac_ext <<_ACEOF
19393 /* confdefs.h. */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19398 $ac_includes_default
19399 #include <wchar.h>
19400 _ACEOF
19401 rm -f conftest.$ac_objext
19402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19403 (eval $ac_compile) 2>conftest.er1
19404 ac_status=$?
19405 grep -v '^ *+' conftest.er1 >conftest.err
19406 rm -f conftest.er1
19407 cat conftest.err >&5
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); } &&
19410 { ac_try='test -z "$ac_c_werror_flag"
19411 || test ! -s conftest.err'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19414 ac_status=$?
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; } &&
19417 { ac_try='test -s conftest.$ac_objext'
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19420 ac_status=$?
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
19423 ac_header_compiler=yes
19424 else
19425 echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19428 ac_header_compiler=no
19430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19432 echo "${ECHO_T}$ac_header_compiler" >&6
19434 # Is the header present?
19435 echo "$as_me:$LINENO: checking wchar.h presence" >&5
19436 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
19437 cat >conftest.$ac_ext <<_ACEOF
19438 /* confdefs.h. */
19439 _ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19443 #include <wchar.h>
19444 _ACEOF
19445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } >/dev/null; then
19453 if test -s conftest.err; then
19454 ac_cpp_err=$ac_c_preproc_warn_flag
19455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19456 else
19457 ac_cpp_err=
19459 else
19460 ac_cpp_err=yes
19462 if test -z "$ac_cpp_err"; then
19463 ac_header_preproc=yes
19464 else
19465 echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.$ac_ext >&5
19468 ac_header_preproc=no
19470 rm -f conftest.err conftest.$ac_ext
19471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19472 echo "${ECHO_T}$ac_header_preproc" >&6
19474 # So? What about this header?
19475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19476 yes:no: )
19477 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19478 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19479 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19480 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19481 ac_header_preproc=yes
19483 no:yes:* )
19484 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19485 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19486 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19487 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19488 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19489 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19490 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19491 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19492 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19493 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19494 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19495 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19497 cat <<\_ASBOX
19498 ## ------------------------------------------------ ##
19499 ## Report this to http://www.python.org/python-bugs ##
19500 ## ------------------------------------------------ ##
19501 _ASBOX
19503 sed "s/^/$as_me: WARNING: /" >&2
19505 esac
19506 echo "$as_me:$LINENO: checking for wchar.h" >&5
19507 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
19508 if test "${ac_cv_header_wchar_h+set}" = set; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 else
19511 ac_cv_header_wchar_h=$ac_header_preproc
19513 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19514 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
19517 if test $ac_cv_header_wchar_h = yes; then
19520 cat >>confdefs.h <<\_ACEOF
19521 #define HAVE_WCHAR_H 1
19522 _ACEOF
19524 wchar_h="yes"
19526 else
19527 wchar_h="no"
19533 # determine wchar_t size
19534 if test "$wchar_h" = yes
19535 then
19536 echo "$as_me:$LINENO: checking for wchar_t" >&5
19537 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19538 if test "${ac_cv_type_wchar_t+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19540 else
19541 cat >conftest.$ac_ext <<_ACEOF
19542 /* confdefs.h. */
19543 _ACEOF
19544 cat confdefs.h >>conftest.$ac_ext
19545 cat >>conftest.$ac_ext <<_ACEOF
19546 /* end confdefs.h. */
19547 #include <wchar.h>
19550 main ()
19552 if ((wchar_t *) 0)
19553 return 0;
19554 if (sizeof (wchar_t))
19555 return 0;
19557 return 0;
19559 _ACEOF
19560 rm -f conftest.$ac_objext
19561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19562 (eval $ac_compile) 2>conftest.er1
19563 ac_status=$?
19564 grep -v '^ *+' conftest.er1 >conftest.err
19565 rm -f conftest.er1
19566 cat conftest.err >&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } &&
19569 { ac_try='test -z "$ac_c_werror_flag"
19570 || test ! -s conftest.err'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19573 ac_status=$?
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; } &&
19576 { ac_try='test -s conftest.$ac_objext'
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19579 ac_status=$?
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; }; then
19582 ac_cv_type_wchar_t=yes
19583 else
19584 echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.$ac_ext >&5
19587 ac_cv_type_wchar_t=no
19589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19591 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19592 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19594 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19595 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19596 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19598 else
19599 if test "$ac_cv_type_wchar_t" = yes; then
19600 # The cast to unsigned long works around a bug in the HP C Compiler
19601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19603 # This bug is HP SR number 8606223364.
19604 if test "$cross_compiling" = yes; then
19605 # Depending upon the size, compute the lo and hi bounds.
19606 cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h. */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 #include <wchar.h>
19615 main ()
19617 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19618 test_array [0] = 0
19621 return 0;
19623 _ACEOF
19624 rm -f conftest.$ac_objext
19625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19626 (eval $ac_compile) 2>conftest.er1
19627 ac_status=$?
19628 grep -v '^ *+' conftest.er1 >conftest.err
19629 rm -f conftest.er1
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -z "$ac_c_werror_flag"
19634 || test ! -s conftest.err'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest.$ac_objext'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; }; then
19646 ac_lo=0 ac_mid=0
19647 while :; do
19648 cat >conftest.$ac_ext <<_ACEOF
19649 /* confdefs.h. */
19650 _ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19654 #include <wchar.h>
19657 main ()
19659 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19660 test_array [0] = 0
19663 return 0;
19665 _ACEOF
19666 rm -f conftest.$ac_objext
19667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19668 (eval $ac_compile) 2>conftest.er1
19669 ac_status=$?
19670 grep -v '^ *+' conftest.er1 >conftest.err
19671 rm -f conftest.er1
19672 cat conftest.err >&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); } &&
19675 { ac_try='test -z "$ac_c_werror_flag"
19676 || test ! -s conftest.err'
19677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678 (eval $ac_try) 2>&5
19679 ac_status=$?
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; } &&
19682 { ac_try='test -s conftest.$ac_objext'
19683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684 (eval $ac_try) 2>&5
19685 ac_status=$?
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; }; then
19688 ac_hi=$ac_mid; break
19689 else
19690 echo "$as_me: failed program was:" >&5
19691 sed 's/^/| /' conftest.$ac_ext >&5
19693 ac_lo=`expr $ac_mid + 1`
19694 if test $ac_lo -le $ac_mid; then
19695 ac_lo= ac_hi=
19696 break
19698 ac_mid=`expr 2 '*' $ac_mid + 1`
19700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19701 done
19702 else
19703 echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.$ac_ext >&5
19706 cat >conftest.$ac_ext <<_ACEOF
19707 /* confdefs.h. */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19712 #include <wchar.h>
19715 main ()
19717 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19718 test_array [0] = 0
19721 return 0;
19723 _ACEOF
19724 rm -f conftest.$ac_objext
19725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19726 (eval $ac_compile) 2>conftest.er1
19727 ac_status=$?
19728 grep -v '^ *+' conftest.er1 >conftest.err
19729 rm -f conftest.er1
19730 cat conftest.err >&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } &&
19733 { ac_try='test -z "$ac_c_werror_flag"
19734 || test ! -s conftest.err'
19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736 (eval $ac_try) 2>&5
19737 ac_status=$?
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; } &&
19740 { ac_try='test -s conftest.$ac_objext'
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; }; then
19746 ac_hi=-1 ac_mid=-1
19747 while :; do
19748 cat >conftest.$ac_ext <<_ACEOF
19749 /* confdefs.h. */
19750 _ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19754 #include <wchar.h>
19757 main ()
19759 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19760 test_array [0] = 0
19763 return 0;
19765 _ACEOF
19766 rm -f conftest.$ac_objext
19767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19768 (eval $ac_compile) 2>conftest.er1
19769 ac_status=$?
19770 grep -v '^ *+' conftest.er1 >conftest.err
19771 rm -f conftest.er1
19772 cat conftest.err >&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } &&
19775 { ac_try='test -z "$ac_c_werror_flag"
19776 || test ! -s conftest.err'
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; } &&
19782 { ac_try='test -s conftest.$ac_objext'
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19785 ac_status=$?
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; }; then
19788 ac_lo=$ac_mid; break
19789 else
19790 echo "$as_me: failed program was:" >&5
19791 sed 's/^/| /' conftest.$ac_ext >&5
19793 ac_hi=`expr '(' $ac_mid ')' - 1`
19794 if test $ac_mid -le $ac_hi; then
19795 ac_lo= ac_hi=
19796 break
19798 ac_mid=`expr 2 '*' $ac_mid`
19800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19801 done
19802 else
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19806 ac_lo= ac_hi=
19808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19811 # Binary search between lo and hi bounds.
19812 while test "x$ac_lo" != "x$ac_hi"; do
19813 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19814 cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h. */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 #include <wchar.h>
19823 main ()
19825 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19826 test_array [0] = 0
19829 return 0;
19831 _ACEOF
19832 rm -f conftest.$ac_objext
19833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19834 (eval $ac_compile) 2>conftest.er1
19835 ac_status=$?
19836 grep -v '^ *+' conftest.er1 >conftest.err
19837 rm -f conftest.er1
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } &&
19841 { ac_try='test -z "$ac_c_werror_flag"
19842 || test ! -s conftest.err'
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; } &&
19848 { ac_try='test -s conftest.$ac_objext'
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
19854 ac_hi=$ac_mid
19855 else
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19859 ac_lo=`expr '(' $ac_mid ')' + 1`
19861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19862 done
19863 case $ac_lo in
19864 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19865 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19866 See \`config.log' for more details." >&5
19867 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19868 See \`config.log' for more details." >&2;}
19869 { (exit 1); exit 1; }; } ;;
19870 esac
19871 else
19872 if test "$cross_compiling" = yes; then
19873 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19874 See \`config.log' for more details." >&5
19875 echo "$as_me: error: cannot run test program while cross compiling
19876 See \`config.log' for more details." >&2;}
19877 { (exit 1); exit 1; }; }
19878 else
19879 cat >conftest.$ac_ext <<_ACEOF
19880 /* confdefs.h. */
19881 _ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h. */
19885 #include <wchar.h>
19887 long longval () { return (long) (sizeof (wchar_t)); }
19888 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19889 #include <stdio.h>
19890 #include <stdlib.h>
19892 main ()
19895 FILE *f = fopen ("conftest.val", "w");
19896 if (! f)
19897 exit (1);
19898 if (((long) (sizeof (wchar_t))) < 0)
19900 long i = longval ();
19901 if (i != ((long) (sizeof (wchar_t))))
19902 exit (1);
19903 fprintf (f, "%ld\n", i);
19905 else
19907 unsigned long i = ulongval ();
19908 if (i != ((long) (sizeof (wchar_t))))
19909 exit (1);
19910 fprintf (f, "%lu\n", i);
19912 exit (ferror (f) || fclose (f) != 0);
19915 return 0;
19917 _ACEOF
19918 rm -f conftest$ac_exeext
19919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19920 (eval $ac_link) 2>&5
19921 ac_status=$?
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925 (eval $ac_try) 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; }; then
19929 ac_cv_sizeof_wchar_t=`cat conftest.val`
19930 else
19931 echo "$as_me: program exited with status $ac_status" >&5
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19935 ( exit $ac_status )
19936 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19937 See \`config.log' for more details." >&5
19938 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19939 See \`config.log' for more details." >&2;}
19940 { (exit 1); exit 1; }; }
19942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19945 rm -f conftest.val
19946 else
19947 ac_cv_sizeof_wchar_t=0
19950 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19951 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19952 cat >>confdefs.h <<_ACEOF
19953 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19954 _ACEOF
19959 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
19960 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
19961 have_ucs4_tcl=no
19962 cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h. */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19969 #include <tcl.h>
19970 #if TCL_UTF_MAX != 6
19971 # error "NOT UCS4_TCL"
19972 #endif
19974 main ()
19978 return 0;
19980 _ACEOF
19981 rm -f conftest.$ac_objext
19982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19983 (eval $ac_compile) 2>conftest.er1
19984 ac_status=$?
19985 grep -v '^ *+' conftest.er1 >conftest.err
19986 rm -f conftest.er1
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } &&
19990 { ac_try='test -z "$ac_c_werror_flag"
19991 || test ! -s conftest.err'
19992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993 (eval $ac_try) 2>&5
19994 ac_status=$?
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; } &&
19997 { ac_try='test -s conftest.$ac_objext'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; }; then
20005 cat >>confdefs.h <<\_ACEOF
20006 #define HAVE_UCS4_TCL 1
20007 _ACEOF
20009 have_ucs4_tcl=yes
20011 else
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20017 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20018 echo "${ECHO_T}$have_ucs4_tcl" >&6
20020 # check whether wchar_t is signed or not
20021 if test "$wchar_h" = yes
20022 then
20023 # check whether wchar_t is signed or not
20024 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20025 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20026 if test "${ac_cv_wchar_t_signed+set}" = set; then
20027 echo $ECHO_N "(cached) $ECHO_C" >&6
20028 else
20030 if test "$cross_compiling" = yes; then
20031 ac_cv_wchar_t_signed=yes
20032 else
20033 cat >conftest.$ac_ext <<_ACEOF
20034 /* confdefs.h. */
20035 _ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h. */
20040 #include <wchar.h>
20041 int main()
20043 /* Success: exit code 0 */
20044 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20047 _ACEOF
20048 rm -f conftest$ac_exeext
20049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20050 (eval $ac_link) 2>&5
20051 ac_status=$?
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20056 ac_status=$?
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; }; then
20059 ac_cv_wchar_t_signed=yes
20060 else
20061 echo "$as_me: program exited with status $ac_status" >&5
20062 echo "$as_me: failed program was:" >&5
20063 sed 's/^/| /' conftest.$ac_ext >&5
20065 ( exit $ac_status )
20066 ac_cv_wchar_t_signed=no
20068 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20072 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20073 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20076 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20077 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20078 # Check whether --enable-unicode or --disable-unicode was given.
20079 if test "${enable_unicode+set}" = set; then
20080 enableval="$enable_unicode"
20082 else
20083 enable_unicode=yes
20086 if test $enable_unicode = yes
20087 then
20088 # Without any arguments, Py_UNICODE defaults to two-byte mode
20089 case "$have_ucs4_tcl" in
20090 yes) enable_unicode="ucs4"
20092 *) enable_unicode="ucs2"
20094 esac
20099 case "$enable_unicode" in
20100 ucs2) unicode_size="2"
20101 cat >>confdefs.h <<\_ACEOF
20102 #define Py_UNICODE_SIZE 2
20103 _ACEOF
20106 ucs4) unicode_size="4"
20107 cat >>confdefs.h <<\_ACEOF
20108 #define Py_UNICODE_SIZE 4
20109 _ACEOF
20112 esac
20118 if test "$enable_unicode" = "no"
20119 then
20120 UNICODE_OBJS=""
20121 echo "$as_me:$LINENO: result: not used" >&5
20122 echo "${ECHO_T}not used" >&6
20123 else
20124 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20126 cat >>confdefs.h <<\_ACEOF
20127 #define Py_USING_UNICODE 1
20128 _ACEOF
20131 # wchar_t is only usable if it maps to an unsigned type
20132 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20133 -a "$ac_cv_wchar_t_signed" = "no"
20134 then
20135 PY_UNICODE_TYPE="wchar_t"
20137 cat >>confdefs.h <<\_ACEOF
20138 #define HAVE_USABLE_WCHAR_T 1
20139 _ACEOF
20141 cat >>confdefs.h <<\_ACEOF
20142 #define PY_UNICODE_TYPE wchar_t
20143 _ACEOF
20145 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20146 then
20147 PY_UNICODE_TYPE="unsigned short"
20148 cat >>confdefs.h <<\_ACEOF
20149 #define PY_UNICODE_TYPE unsigned short
20150 _ACEOF
20152 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20153 then
20154 PY_UNICODE_TYPE="unsigned long"
20155 cat >>confdefs.h <<\_ACEOF
20156 #define PY_UNICODE_TYPE unsigned long
20157 _ACEOF
20159 else
20160 PY_UNICODE_TYPE="no type found"
20162 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20163 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20166 # check for endianness
20167 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20168 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20169 if test "${ac_cv_c_bigendian+set}" = set; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20171 else
20172 # See if sys/param.h defines the BYTE_ORDER macro.
20173 cat >conftest.$ac_ext <<_ACEOF
20174 /* confdefs.h. */
20175 _ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h. */
20179 #include <sys/types.h>
20180 #include <sys/param.h>
20183 main ()
20185 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20186 bogus endian macros
20187 #endif
20190 return 0;
20192 _ACEOF
20193 rm -f conftest.$ac_objext
20194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20195 (eval $ac_compile) 2>conftest.er1
20196 ac_status=$?
20197 grep -v '^ *+' conftest.er1 >conftest.err
20198 rm -f conftest.er1
20199 cat conftest.err >&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); } &&
20202 { ac_try='test -z "$ac_c_werror_flag"
20203 || test ! -s conftest.err'
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20206 ac_status=$?
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; } &&
20209 { ac_try='test -s conftest.$ac_objext'
20210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20211 (eval $ac_try) 2>&5
20212 ac_status=$?
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); }; }; then
20215 # It does; now see whether it defined to BIG_ENDIAN or not.
20216 cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h. */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20222 #include <sys/types.h>
20223 #include <sys/param.h>
20226 main ()
20228 #if BYTE_ORDER != BIG_ENDIAN
20229 not big endian
20230 #endif
20233 return 0;
20235 _ACEOF
20236 rm -f conftest.$ac_objext
20237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20238 (eval $ac_compile) 2>conftest.er1
20239 ac_status=$?
20240 grep -v '^ *+' conftest.er1 >conftest.err
20241 rm -f conftest.er1
20242 cat conftest.err >&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } &&
20245 { ac_try='test -z "$ac_c_werror_flag"
20246 || test ! -s conftest.err'
20247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248 (eval $ac_try) 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; } &&
20252 { ac_try='test -s conftest.$ac_objext'
20253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254 (eval $ac_try) 2>&5
20255 ac_status=$?
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); }; }; then
20258 ac_cv_c_bigendian=yes
20259 else
20260 echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20263 ac_cv_c_bigendian=no
20265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20266 else
20267 echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20270 # It does not; compile a test program.
20271 if test "$cross_compiling" = yes; then
20272 # try to guess the endianness by grepping values into an object file
20273 ac_cv_c_bigendian=unknown
20274 cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h. */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20281 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20282 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20283 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20284 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20285 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20287 main ()
20289 _ascii (); _ebcdic ();
20291 return 0;
20293 _ACEOF
20294 rm -f conftest.$ac_objext
20295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20296 (eval $ac_compile) 2>conftest.er1
20297 ac_status=$?
20298 grep -v '^ *+' conftest.er1 >conftest.err
20299 rm -f conftest.er1
20300 cat conftest.err >&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } &&
20303 { ac_try='test -z "$ac_c_werror_flag"
20304 || test ! -s conftest.err'
20305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306 (eval $ac_try) 2>&5
20307 ac_status=$?
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; } &&
20310 { ac_try='test -s conftest.$ac_objext'
20311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20313 ac_status=$?
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }; }; then
20316 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20317 ac_cv_c_bigendian=yes
20319 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20320 if test "$ac_cv_c_bigendian" = unknown; then
20321 ac_cv_c_bigendian=no
20322 else
20323 # finding both strings is unlikely to happen, but who knows?
20324 ac_cv_c_bigendian=unknown
20327 else
20328 echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20333 else
20334 cat >conftest.$ac_ext <<_ACEOF
20335 /* confdefs.h. */
20336 _ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20341 main ()
20343 /* Are we little or big endian? From Harbison&Steele. */
20344 union
20346 long l;
20347 char c[sizeof (long)];
20348 } u;
20349 u.l = 1;
20350 exit (u.c[sizeof (long) - 1] == 1);
20352 _ACEOF
20353 rm -f conftest$ac_exeext
20354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20355 (eval $ac_link) 2>&5
20356 ac_status=$?
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; }; then
20364 ac_cv_c_bigendian=no
20365 else
20366 echo "$as_me: program exited with status $ac_status" >&5
20367 echo "$as_me: failed program was:" >&5
20368 sed 's/^/| /' conftest.$ac_ext >&5
20370 ( exit $ac_status )
20371 ac_cv_c_bigendian=yes
20373 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20378 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20379 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20380 case $ac_cv_c_bigendian in
20381 yes)
20383 cat >>confdefs.h <<\_ACEOF
20384 #define WORDS_BIGENDIAN 1
20385 _ACEOF
20390 { { echo "$as_me:$LINENO: error: unknown endianness
20391 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20392 echo "$as_me: error: unknown endianness
20393 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20394 { (exit 1); exit 1; }; } ;;
20395 esac
20400 # Check whether right shifting a negative integer extends the sign bit
20401 # or fills with zeros (like the Cray J90, according to Tim Peters).
20402 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
20403 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
20404 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20405 echo $ECHO_N "(cached) $ECHO_C" >&6
20406 else
20408 if test "$cross_compiling" = yes; then
20409 ac_cv_rshift_extends_sign=yes
20410 else
20411 cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h. */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20418 int main()
20420 exit(((-1)>>3 == -1) ? 0 : 1);
20423 _ACEOF
20424 rm -f conftest$ac_exeext
20425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20426 (eval $ac_link) 2>&5
20427 ac_status=$?
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; }; then
20435 ac_cv_rshift_extends_sign=yes
20436 else
20437 echo "$as_me: program exited with status $ac_status" >&5
20438 echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20441 ( exit $ac_status )
20442 ac_cv_rshift_extends_sign=no
20444 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20448 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
20449 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
20450 if test "$ac_cv_rshift_extends_sign" = no
20451 then
20453 cat >>confdefs.h <<\_ACEOF
20454 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20455 _ACEOF
20459 # check for getc_unlocked and related locking functions
20460 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
20461 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
20462 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20464 else
20466 cat >conftest.$ac_ext <<_ACEOF
20467 /* confdefs.h. */
20468 _ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20472 #include <stdio.h>
20474 main ()
20477 FILE *f = fopen("/dev/null", "r");
20478 flockfile(f);
20479 getc_unlocked(f);
20480 funlockfile(f);
20483 return 0;
20485 _ACEOF
20486 rm -f conftest.$ac_objext conftest$ac_exeext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20488 (eval $ac_link) 2>conftest.er1
20489 ac_status=$?
20490 grep -v '^ *+' conftest.er1 >conftest.err
20491 rm -f conftest.er1
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } &&
20495 { ac_try='test -z "$ac_c_werror_flag"
20496 || test ! -s conftest.err'
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; } &&
20502 { ac_try='test -s conftest$ac_exeext'
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; }; then
20508 ac_cv_have_getc_unlocked=yes
20509 else
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20513 ac_cv_have_getc_unlocked=no
20515 rm -f conftest.err conftest.$ac_objext \
20516 conftest$ac_exeext conftest.$ac_ext
20519 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
20520 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
20521 if test "$ac_cv_have_getc_unlocked" = yes
20522 then
20524 cat >>confdefs.h <<\_ACEOF
20525 #define HAVE_GETC_UNLOCKED 1
20526 _ACEOF
20530 # check where readline lives
20531 # save the value of LIBS so we don't actually link Python with readline
20532 LIBS_no_readline=$LIBS
20534 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20535 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
20536 if test "${ac_cv_lib_readline_readline+set}" = set; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20538 else
20539 ac_check_lib_save_LIBS=$LIBS
20540 LIBS="-lreadline $LIBS"
20541 cat >conftest.$ac_ext <<_ACEOF
20542 /* confdefs.h. */
20543 _ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h. */
20548 /* Override any gcc2 internal prototype to avoid an error. */
20549 #ifdef __cplusplus
20550 extern "C"
20551 #endif
20552 /* We use char because int might match the return type of a gcc2
20553 builtin and then its argument prototype would still apply. */
20554 char readline ();
20556 main ()
20558 readline ();
20560 return 0;
20562 _ACEOF
20563 rm -f conftest.$ac_objext conftest$ac_exeext
20564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20565 (eval $ac_link) 2>conftest.er1
20566 ac_status=$?
20567 grep -v '^ *+' conftest.er1 >conftest.err
20568 rm -f conftest.er1
20569 cat conftest.err >&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } &&
20572 { ac_try='test -z "$ac_c_werror_flag"
20573 || test ! -s conftest.err'
20574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20575 (eval $ac_try) 2>&5
20576 ac_status=$?
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; } &&
20579 { ac_try='test -s conftest$ac_exeext'
20580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20581 (eval $ac_try) 2>&5
20582 ac_status=$?
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); }; }; then
20585 ac_cv_lib_readline_readline=yes
20586 else
20587 echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20590 ac_cv_lib_readline_readline=no
20592 rm -f conftest.err conftest.$ac_objext \
20593 conftest$ac_exeext conftest.$ac_ext
20594 LIBS=$ac_check_lib_save_LIBS
20596 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20597 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
20598 if test $ac_cv_lib_readline_readline = yes; then
20599 cat >>confdefs.h <<_ACEOF
20600 #define HAVE_LIBREADLINE 1
20601 _ACEOF
20603 LIBS="-lreadline $LIBS"
20607 if test "$ac_cv_have_readline_readline" = no
20608 then
20610 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
20611 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
20612 if test "${ac_cv_lib_termcap_readline+set}" = set; then
20613 echo $ECHO_N "(cached) $ECHO_C" >&6
20614 else
20615 ac_check_lib_save_LIBS=$LIBS
20616 LIBS="-ltermcap $LIBS"
20617 cat >conftest.$ac_ext <<_ACEOF
20618 /* confdefs.h. */
20619 _ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20624 /* Override any gcc2 internal prototype to avoid an error. */
20625 #ifdef __cplusplus
20626 extern "C"
20627 #endif
20628 /* We use char because int might match the return type of a gcc2
20629 builtin and then its argument prototype would still apply. */
20630 char readline ();
20632 main ()
20634 readline ();
20636 return 0;
20638 _ACEOF
20639 rm -f conftest.$ac_objext conftest$ac_exeext
20640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20641 (eval $ac_link) 2>conftest.er1
20642 ac_status=$?
20643 grep -v '^ *+' conftest.er1 >conftest.err
20644 rm -f conftest.er1
20645 cat conftest.err >&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } &&
20648 { ac_try='test -z "$ac_c_werror_flag"
20649 || test ! -s conftest.err'
20650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20651 (eval $ac_try) 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; } &&
20655 { ac_try='test -s conftest$ac_exeext'
20656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20657 (eval $ac_try) 2>&5
20658 ac_status=$?
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); }; }; then
20661 ac_cv_lib_termcap_readline=yes
20662 else
20663 echo "$as_me: failed program was:" >&5
20664 sed 's/^/| /' conftest.$ac_ext >&5
20666 ac_cv_lib_termcap_readline=no
20668 rm -f conftest.err conftest.$ac_objext \
20669 conftest$ac_exeext conftest.$ac_ext
20670 LIBS=$ac_check_lib_save_LIBS
20672 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
20673 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
20674 if test $ac_cv_lib_termcap_readline = yes; then
20675 cat >>confdefs.h <<_ACEOF
20676 #define HAVE_LIBTERMCAP 1
20677 _ACEOF
20679 LIBS="-ltermcap $LIBS"
20685 # check for readline 2.1
20686 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
20687 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
20688 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20690 else
20691 ac_check_lib_save_LIBS=$LIBS
20692 LIBS="-lreadline $LIBS"
20693 cat >conftest.$ac_ext <<_ACEOF
20694 /* confdefs.h. */
20695 _ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20700 /* Override any gcc2 internal prototype to avoid an error. */
20701 #ifdef __cplusplus
20702 extern "C"
20703 #endif
20704 /* We use char because int might match the return type of a gcc2
20705 builtin and then its argument prototype would still apply. */
20706 char rl_callback_handler_install ();
20708 main ()
20710 rl_callback_handler_install ();
20712 return 0;
20714 _ACEOF
20715 rm -f conftest.$ac_objext conftest$ac_exeext
20716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20717 (eval $ac_link) 2>conftest.er1
20718 ac_status=$?
20719 grep -v '^ *+' conftest.er1 >conftest.err
20720 rm -f conftest.er1
20721 cat conftest.err >&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); } &&
20724 { ac_try='test -z "$ac_c_werror_flag"
20725 || test ! -s conftest.err'
20726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727 (eval $ac_try) 2>&5
20728 ac_status=$?
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; } &&
20731 { ac_try='test -s conftest$ac_exeext'
20732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20733 (eval $ac_try) 2>&5
20734 ac_status=$?
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; }; then
20737 ac_cv_lib_readline_rl_callback_handler_install=yes
20738 else
20739 echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.$ac_ext >&5
20742 ac_cv_lib_readline_rl_callback_handler_install=no
20744 rm -f conftest.err conftest.$ac_objext \
20745 conftest$ac_exeext conftest.$ac_ext
20746 LIBS=$ac_check_lib_save_LIBS
20748 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
20749 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
20750 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
20752 cat >>confdefs.h <<\_ACEOF
20753 #define HAVE_RL_CALLBACK 1
20754 _ACEOF
20759 # check for readline 2.2
20760 cat >conftest.$ac_ext <<_ACEOF
20761 /* confdefs.h. */
20762 _ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20766 #include <readline/readline.h>
20767 _ACEOF
20768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20770 ac_status=$?
20771 grep -v '^ *+' conftest.er1 >conftest.err
20772 rm -f conftest.er1
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } >/dev/null; then
20776 if test -s conftest.err; then
20777 ac_cpp_err=$ac_c_preproc_warn_flag
20778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20779 else
20780 ac_cpp_err=
20782 else
20783 ac_cpp_err=yes
20785 if test -z "$ac_cpp_err"; then
20786 have_readline=yes
20787 else
20788 echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20791 have_readline=no
20793 rm -f conftest.err conftest.$ac_ext
20794 if test $have_readline = yes
20795 then
20796 cat >conftest.$ac_ext <<_ACEOF
20797 /* confdefs.h. */
20798 _ACEOF
20799 cat confdefs.h >>conftest.$ac_ext
20800 cat >>conftest.$ac_ext <<_ACEOF
20801 /* end confdefs.h. */
20802 #include <readline/readline.h>
20804 _ACEOF
20805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20806 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
20808 cat >>confdefs.h <<\_ACEOF
20809 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20810 _ACEOF
20813 rm -f conftest*
20817 # check for readline 4.0
20818 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
20819 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
20820 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
20821 echo $ECHO_N "(cached) $ECHO_C" >&6
20822 else
20823 ac_check_lib_save_LIBS=$LIBS
20824 LIBS="-lreadline $LIBS"
20825 cat >conftest.$ac_ext <<_ACEOF
20826 /* confdefs.h. */
20827 _ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h. */
20832 /* Override any gcc2 internal prototype to avoid an error. */
20833 #ifdef __cplusplus
20834 extern "C"
20835 #endif
20836 /* We use char because int might match the return type of a gcc2
20837 builtin and then its argument prototype would still apply. */
20838 char rl_pre_input_hook ();
20840 main ()
20842 rl_pre_input_hook ();
20844 return 0;
20846 _ACEOF
20847 rm -f conftest.$ac_objext conftest$ac_exeext
20848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20849 (eval $ac_link) 2>conftest.er1
20850 ac_status=$?
20851 grep -v '^ *+' conftest.er1 >conftest.err
20852 rm -f conftest.er1
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } &&
20856 { ac_try='test -z "$ac_c_werror_flag"
20857 || test ! -s conftest.err'
20858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859 (eval $ac_try) 2>&5
20860 ac_status=$?
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); }; } &&
20863 { ac_try='test -s conftest$ac_exeext'
20864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865 (eval $ac_try) 2>&5
20866 ac_status=$?
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; }; then
20869 ac_cv_lib_readline_rl_pre_input_hook=yes
20870 else
20871 echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20874 ac_cv_lib_readline_rl_pre_input_hook=no
20876 rm -f conftest.err conftest.$ac_objext \
20877 conftest$ac_exeext conftest.$ac_ext
20878 LIBS=$ac_check_lib_save_LIBS
20880 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
20881 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
20882 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
20884 cat >>confdefs.h <<\_ACEOF
20885 #define HAVE_RL_PRE_INPUT_HOOK 1
20886 _ACEOF
20891 # check for readline 4.2
20892 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
20893 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
20894 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
20895 echo $ECHO_N "(cached) $ECHO_C" >&6
20896 else
20897 ac_check_lib_save_LIBS=$LIBS
20898 LIBS="-lreadline $LIBS"
20899 cat >conftest.$ac_ext <<_ACEOF
20900 /* confdefs.h. */
20901 _ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h. */
20906 /* Override any gcc2 internal prototype to avoid an error. */
20907 #ifdef __cplusplus
20908 extern "C"
20909 #endif
20910 /* We use char because int might match the return type of a gcc2
20911 builtin and then its argument prototype would still apply. */
20912 char rl_completion_matches ();
20914 main ()
20916 rl_completion_matches ();
20918 return 0;
20920 _ACEOF
20921 rm -f conftest.$ac_objext conftest$ac_exeext
20922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20923 (eval $ac_link) 2>conftest.er1
20924 ac_status=$?
20925 grep -v '^ *+' conftest.er1 >conftest.err
20926 rm -f conftest.er1
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } &&
20930 { ac_try='test -z "$ac_c_werror_flag"
20931 || test ! -s conftest.err'
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20934 ac_status=$?
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; } &&
20937 { ac_try='test -s conftest$ac_exeext'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20943 ac_cv_lib_readline_rl_completion_matches=yes
20944 else
20945 echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20948 ac_cv_lib_readline_rl_completion_matches=no
20950 rm -f conftest.err conftest.$ac_objext \
20951 conftest$ac_exeext conftest.$ac_ext
20952 LIBS=$ac_check_lib_save_LIBS
20954 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
20955 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
20956 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
20958 cat >>confdefs.h <<\_ACEOF
20959 #define HAVE_RL_COMPLETION_MATCHES 1
20960 _ACEOF
20965 # also in readline 4.2
20966 cat >conftest.$ac_ext <<_ACEOF
20967 /* confdefs.h. */
20968 _ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20972 #include <readline/readline.h>
20973 _ACEOF
20974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20976 ac_status=$?
20977 grep -v '^ *+' conftest.er1 >conftest.err
20978 rm -f conftest.er1
20979 cat conftest.err >&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } >/dev/null; then
20982 if test -s conftest.err; then
20983 ac_cpp_err=$ac_c_preproc_warn_flag
20984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20985 else
20986 ac_cpp_err=
20988 else
20989 ac_cpp_err=yes
20991 if test -z "$ac_cpp_err"; then
20992 have_readline=yes
20993 else
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20997 have_readline=no
20999 rm -f conftest.err conftest.$ac_ext
21000 if test $have_readline = yes
21001 then
21002 cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h. */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21008 #include <readline/readline.h>
21010 _ACEOF
21011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21012 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
21014 cat >>confdefs.h <<\_ACEOF
21015 #define HAVE_RL_CATCH_SIGNAL 1
21016 _ACEOF
21019 rm -f conftest*
21023 # End of readline checks: restore LIBS
21024 LIBS=$LIBS_no_readline
21026 echo "$as_me:$LINENO: checking for broken nice()" >&5
21027 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21028 if test "${ac_cv_broken_nice+set}" = set; then
21029 echo $ECHO_N "(cached) $ECHO_C" >&6
21030 else
21032 if test "$cross_compiling" = yes; then
21033 ac_cv_broken_nice=no
21034 else
21035 cat >conftest.$ac_ext <<_ACEOF
21036 /* confdefs.h. */
21037 _ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21042 int main()
21044 int val1 = nice(1);
21045 if (val1 != -1 && val1 == nice(2))
21046 exit(0);
21047 exit(1);
21050 _ACEOF
21051 rm -f conftest$ac_exeext
21052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21053 (eval $ac_link) 2>&5
21054 ac_status=$?
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21058 (eval $ac_try) 2>&5
21059 ac_status=$?
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); }; }; then
21062 ac_cv_broken_nice=yes
21063 else
21064 echo "$as_me: program exited with status $ac_status" >&5
21065 echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21068 ( exit $ac_status )
21069 ac_cv_broken_nice=no
21071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21075 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21076 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21077 if test "$ac_cv_broken_nice" = yes
21078 then
21080 cat >>confdefs.h <<\_ACEOF
21081 #define HAVE_BROKEN_NICE 1
21082 _ACEOF
21086 echo "$as_me:$LINENO: checking for broken poll()" >&5
21087 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21088 if test "$cross_compiling" = yes; then
21089 ac_cv_broken_poll=no
21090 else
21091 cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h. */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21098 #include <poll.h>
21100 int main (void)
21102 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21104 close (42);
21106 int poll_test = poll (&poll_struct, 1, 0);
21108 if (poll_test < 0)
21110 exit(0);
21112 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21114 exit(0);
21116 else
21118 exit(1);
21122 _ACEOF
21123 rm -f conftest$ac_exeext
21124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21125 (eval $ac_link) 2>&5
21126 ac_status=$?
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130 (eval $ac_try) 2>&5
21131 ac_status=$?
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; }; then
21134 ac_cv_broken_poll=yes
21135 else
21136 echo "$as_me: program exited with status $ac_status" >&5
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21140 ( exit $ac_status )
21141 ac_cv_broken_poll=no
21143 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21145 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21146 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21147 if test "$ac_cv_broken_poll" = yes
21148 then
21150 cat >>confdefs.h <<\_ACEOF
21151 #define HAVE_BROKEN_POLL 1
21152 _ACEOF
21156 # Before we can test tzset, we need to check if struct tm has a tm_zone
21157 # (which is not required by ISO C or UNIX spec) and/or if we support
21158 # tzname[]
21159 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21160 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21161 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21162 echo $ECHO_N "(cached) $ECHO_C" >&6
21163 else
21164 cat >conftest.$ac_ext <<_ACEOF
21165 /* confdefs.h. */
21166 _ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h. */
21170 #include <sys/types.h>
21171 #include <$ac_cv_struct_tm>
21175 main ()
21177 static struct tm ac_aggr;
21178 if (ac_aggr.tm_zone)
21179 return 0;
21181 return 0;
21183 _ACEOF
21184 rm -f conftest.$ac_objext
21185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21186 (eval $ac_compile) 2>conftest.er1
21187 ac_status=$?
21188 grep -v '^ *+' conftest.er1 >conftest.err
21189 rm -f conftest.er1
21190 cat conftest.err >&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); } &&
21193 { ac_try='test -z "$ac_c_werror_flag"
21194 || test ! -s conftest.err'
21195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21196 (eval $ac_try) 2>&5
21197 ac_status=$?
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); }; } &&
21200 { ac_try='test -s conftest.$ac_objext'
21201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202 (eval $ac_try) 2>&5
21203 ac_status=$?
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); }; }; then
21206 ac_cv_member_struct_tm_tm_zone=yes
21207 else
21208 echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21211 cat >conftest.$ac_ext <<_ACEOF
21212 /* confdefs.h. */
21213 _ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h. */
21217 #include <sys/types.h>
21218 #include <$ac_cv_struct_tm>
21222 main ()
21224 static struct tm ac_aggr;
21225 if (sizeof ac_aggr.tm_zone)
21226 return 0;
21228 return 0;
21230 _ACEOF
21231 rm -f conftest.$ac_objext
21232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21233 (eval $ac_compile) 2>conftest.er1
21234 ac_status=$?
21235 grep -v '^ *+' conftest.er1 >conftest.err
21236 rm -f conftest.er1
21237 cat conftest.err >&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } &&
21240 { ac_try='test -z "$ac_c_werror_flag"
21241 || test ! -s conftest.err'
21242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243 (eval $ac_try) 2>&5
21244 ac_status=$?
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; } &&
21247 { ac_try='test -s conftest.$ac_objext'
21248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249 (eval $ac_try) 2>&5
21250 ac_status=$?
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; }; then
21253 ac_cv_member_struct_tm_tm_zone=yes
21254 else
21255 echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21258 ac_cv_member_struct_tm_tm_zone=no
21260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21264 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21265 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21266 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21268 cat >>confdefs.h <<_ACEOF
21269 #define HAVE_STRUCT_TM_TM_ZONE 1
21270 _ACEOF
21275 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21277 cat >>confdefs.h <<\_ACEOF
21278 #define HAVE_TM_ZONE 1
21279 _ACEOF
21281 else
21282 echo "$as_me:$LINENO: checking for tzname" >&5
21283 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21284 if test "${ac_cv_var_tzname+set}" = set; then
21285 echo $ECHO_N "(cached) $ECHO_C" >&6
21286 else
21287 cat >conftest.$ac_ext <<_ACEOF
21288 /* confdefs.h. */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21293 #include <time.h>
21294 #ifndef tzname /* For SGI. */
21295 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21296 #endif
21299 main ()
21301 atoi(*tzname);
21303 return 0;
21305 _ACEOF
21306 rm -f conftest.$ac_objext conftest$ac_exeext
21307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21308 (eval $ac_link) 2>conftest.er1
21309 ac_status=$?
21310 grep -v '^ *+' conftest.er1 >conftest.err
21311 rm -f conftest.er1
21312 cat conftest.err >&5
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); } &&
21315 { ac_try='test -z "$ac_c_werror_flag"
21316 || test ! -s conftest.err'
21317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318 (eval $ac_try) 2>&5
21319 ac_status=$?
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); }; } &&
21322 { ac_try='test -s conftest$ac_exeext'
21323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324 (eval $ac_try) 2>&5
21325 ac_status=$?
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); }; }; then
21328 ac_cv_var_tzname=yes
21329 else
21330 echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21333 ac_cv_var_tzname=no
21335 rm -f conftest.err conftest.$ac_objext \
21336 conftest$ac_exeext conftest.$ac_ext
21338 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21339 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21340 if test $ac_cv_var_tzname = yes; then
21342 cat >>confdefs.h <<\_ACEOF
21343 #define HAVE_TZNAME 1
21344 _ACEOF
21350 # check tzset(3) exists and works like we expect it to
21351 echo "$as_me:$LINENO: checking for working tzset()" >&5
21352 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
21353 if test "${ac_cv_working_tzset+set}" = set; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21355 else
21357 if test "$cross_compiling" = yes; then
21358 ac_cv_working_tzset=no
21359 else
21360 cat >conftest.$ac_ext <<_ACEOF
21361 /* confdefs.h. */
21362 _ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21367 #include <stdlib.h>
21368 #include <time.h>
21369 #include <string.h>
21371 #if HAVE_TZNAME
21372 extern char *tzname[];
21373 #endif
21375 int main()
21377 /* Note that we need to ensure that not only does tzset(3)
21378 do 'something' with localtime, but it works as documented
21379 in the library reference and as expected by the test suite.
21380 This includes making sure that tzname is set properly if
21381 tm->tm_zone does not exist since it is the alternative way
21382 of getting timezone info.
21384 Red Hat 6.2 doesn't understand the southern hemisphere
21385 after New Year's Day.
21388 time_t groundhogday = 1044144000; /* GMT-based */
21389 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21391 putenv("TZ=UTC+0");
21392 tzset();
21393 if (localtime(&groundhogday)->tm_hour != 0)
21394 exit(1);
21395 #if HAVE_TZNAME
21396 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21397 if (strcmp(tzname[0], "UTC") ||
21398 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21399 exit(1);
21400 #endif
21402 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
21403 tzset();
21404 if (localtime(&groundhogday)->tm_hour != 19)
21405 exit(1);
21406 #if HAVE_TZNAME
21407 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
21408 exit(1);
21409 #endif
21411 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
21412 tzset();
21413 if (localtime(&groundhogday)->tm_hour != 11)
21414 exit(1);
21415 #if HAVE_TZNAME
21416 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
21417 exit(1);
21418 #endif
21420 #if HAVE_STRUCT_TM_TM_ZONE
21421 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
21422 exit(1);
21423 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
21424 exit(1);
21425 #endif
21427 exit(0);
21430 _ACEOF
21431 rm -f conftest$ac_exeext
21432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21433 (eval $ac_link) 2>&5
21434 ac_status=$?
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21439 ac_status=$?
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; }; then
21442 ac_cv_working_tzset=yes
21443 else
21444 echo "$as_me: program exited with status $ac_status" >&5
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 ( exit $ac_status )
21449 ac_cv_working_tzset=no
21451 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21455 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
21456 echo "${ECHO_T}$ac_cv_working_tzset" >&6
21457 if test "$ac_cv_working_tzset" = yes
21458 then
21460 cat >>confdefs.h <<\_ACEOF
21461 #define HAVE_WORKING_TZSET 1
21462 _ACEOF
21466 # Look for subsecond timestamps in struct stat
21467 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
21468 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
21469 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21471 else
21472 cat >conftest.$ac_ext <<_ACEOF
21473 /* confdefs.h. */
21474 _ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h. */
21478 #include <sys/stat.h>
21480 main ()
21483 struct stat st;
21484 st.st_mtim.tv_nsec = 1;
21487 return 0;
21489 _ACEOF
21490 rm -f conftest.$ac_objext
21491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21492 (eval $ac_compile) 2>conftest.er1
21493 ac_status=$?
21494 grep -v '^ *+' conftest.er1 >conftest.err
21495 rm -f conftest.er1
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } &&
21499 { ac_try='test -z "$ac_c_werror_flag"
21500 || test ! -s conftest.err'
21501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502 (eval $ac_try) 2>&5
21503 ac_status=$?
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; } &&
21506 { ac_try='test -s conftest.$ac_objext'
21507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508 (eval $ac_try) 2>&5
21509 ac_status=$?
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); }; }; then
21512 ac_cv_stat_tv_nsec=yes
21513 else
21514 echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21517 ac_cv_stat_tv_nsec=no
21519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21522 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
21523 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
21524 if test "$ac_cv_stat_tv_nsec" = yes
21525 then
21527 cat >>confdefs.h <<\_ACEOF
21528 #define HAVE_STAT_TV_NSEC 1
21529 _ACEOF
21533 # Look for BSD style subsecond timestamps in struct stat
21534 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
21535 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
21536 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
21537 echo $ECHO_N "(cached) $ECHO_C" >&6
21538 else
21539 cat >conftest.$ac_ext <<_ACEOF
21540 /* confdefs.h. */
21541 _ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h. */
21545 #include <sys/stat.h>
21547 main ()
21550 struct stat st;
21551 st.st_mtimespec.tv_nsec = 1;
21554 return 0;
21556 _ACEOF
21557 rm -f conftest.$ac_objext
21558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21559 (eval $ac_compile) 2>conftest.er1
21560 ac_status=$?
21561 grep -v '^ *+' conftest.er1 >conftest.err
21562 rm -f conftest.er1
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } &&
21566 { ac_try='test -z "$ac_c_werror_flag"
21567 || test ! -s conftest.err'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21570 ac_status=$?
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try='test -s conftest.$ac_objext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 ac_cv_stat_tv_nsec2=yes
21580 else
21581 echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21584 ac_cv_stat_tv_nsec2=no
21586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21589 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
21590 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
21591 if test "$ac_cv_stat_tv_nsec2" = yes
21592 then
21594 cat >>confdefs.h <<\_ACEOF
21595 #define HAVE_STAT_TV_NSEC2 1
21596 _ACEOF
21600 # On HP/UX 11.0, mvwdelch is a block with a return statement
21601 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
21602 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
21603 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
21604 echo $ECHO_N "(cached) $ECHO_C" >&6
21605 else
21606 cat >conftest.$ac_ext <<_ACEOF
21607 /* confdefs.h. */
21608 _ACEOF
21609 cat confdefs.h >>conftest.$ac_ext
21610 cat >>conftest.$ac_ext <<_ACEOF
21611 /* end confdefs.h. */
21612 #include <curses.h>
21614 main ()
21617 int rtn;
21618 rtn = mvwdelch(0,0,0);
21621 return 0;
21623 _ACEOF
21624 rm -f conftest.$ac_objext
21625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21626 (eval $ac_compile) 2>conftest.er1
21627 ac_status=$?
21628 grep -v '^ *+' conftest.er1 >conftest.err
21629 rm -f conftest.er1
21630 cat conftest.err >&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); } &&
21633 { ac_try='test -z "$ac_c_werror_flag"
21634 || test ! -s conftest.err'
21635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636 (eval $ac_try) 2>&5
21637 ac_status=$?
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; } &&
21640 { ac_try='test -s conftest.$ac_objext'
21641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21642 (eval $ac_try) 2>&5
21643 ac_status=$?
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); }; }; then
21646 ac_cv_mvwdelch_is_expression=yes
21647 else
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21651 ac_cv_mvwdelch_is_expression=no
21653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21656 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
21657 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
21659 if test "$ac_cv_mvwdelch_is_expression" = yes
21660 then
21662 cat >>confdefs.h <<\_ACEOF
21663 #define MVWDELCH_IS_EXPRESSION 1
21664 _ACEOF
21668 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
21669 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
21670 if test "${ac_cv_window_has_flags+set}" = set; then
21671 echo $ECHO_N "(cached) $ECHO_C" >&6
21672 else
21673 cat >conftest.$ac_ext <<_ACEOF
21674 /* confdefs.h. */
21675 _ACEOF
21676 cat confdefs.h >>conftest.$ac_ext
21677 cat >>conftest.$ac_ext <<_ACEOF
21678 /* end confdefs.h. */
21679 #include <curses.h>
21681 main ()
21684 WINDOW *w;
21685 w->_flags = 0;
21688 return 0;
21690 _ACEOF
21691 rm -f conftest.$ac_objext
21692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21693 (eval $ac_compile) 2>conftest.er1
21694 ac_status=$?
21695 grep -v '^ *+' conftest.er1 >conftest.err
21696 rm -f conftest.er1
21697 cat conftest.err >&5
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); } &&
21700 { ac_try='test -z "$ac_c_werror_flag"
21701 || test ! -s conftest.err'
21702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703 (eval $ac_try) 2>&5
21704 ac_status=$?
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; } &&
21707 { ac_try='test -s conftest.$ac_objext'
21708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709 (eval $ac_try) 2>&5
21710 ac_status=$?
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; }; then
21713 ac_cv_window_has_flags=yes
21714 else
21715 echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21718 ac_cv_window_has_flags=no
21720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21723 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
21724 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
21727 if test "$ac_cv_window_has_flags" = yes
21728 then
21730 cat >>confdefs.h <<\_ACEOF
21731 #define WINDOW_HAS_FLAGS 1
21732 _ACEOF
21736 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
21737 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
21739 if test -e /dev/ptmx
21740 then
21741 echo "$as_me:$LINENO: result: yes" >&5
21742 echo "${ECHO_T}yes" >&6
21744 cat >>confdefs.h <<\_ACEOF
21745 #define HAVE_DEV_PTMX 1
21746 _ACEOF
21748 else
21749 echo "$as_me:$LINENO: result: no" >&5
21750 echo "${ECHO_T}no" >&6
21753 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
21754 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
21756 if test -e /dev/ptc
21757 then
21758 echo "$as_me:$LINENO: result: yes" >&5
21759 echo "${ECHO_T}yes" >&6
21761 cat >>confdefs.h <<\_ACEOF
21762 #define HAVE_DEV_PTC 1
21763 _ACEOF
21765 else
21766 echo "$as_me:$LINENO: result: no" >&5
21767 echo "${ECHO_T}no" >&6
21770 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
21771 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
21772 if test "$cross_compiling" = yes; then
21773 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21774 See \`config.log' for more details." >&5
21775 echo "$as_me: error: cannot run test program while cross compiling
21776 See \`config.log' for more details." >&2;}
21777 { (exit 1); exit 1; }; }
21778 else
21779 cat >conftest.$ac_ext <<_ACEOF
21780 /* confdefs.h. */
21781 _ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h. */
21785 #include <stdio.h>
21786 #include <stddef.h>
21787 #include <string.h>
21789 int main()
21791 char buffer[4];
21793 if(sprintf(buffer, "%zd", (size_t)123) < 0)
21794 return 1;
21796 if (strncmp(buffer, "123", 3))
21797 return 1;
21799 return 0;
21801 _ACEOF
21802 rm -f conftest$ac_exeext
21803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21804 (eval $ac_link) 2>&5
21805 ac_status=$?
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21810 ac_status=$?
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; }; then
21813 echo "$as_me:$LINENO: result: yes" >&5
21814 echo "${ECHO_T}yes" >&6
21816 cat >>confdefs.h <<\_ACEOF
21817 #define PY_FORMAT_SIZE_T "z"
21818 _ACEOF
21820 else
21821 echo "$as_me: program exited with status $ac_status" >&5
21822 echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21825 ( exit $ac_status )
21826 echo "$as_me:$LINENO: result: no" >&5
21827 echo "${ECHO_T}no" >&6
21829 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21832 echo "$as_me:$LINENO: checking for socklen_t" >&5
21833 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21834 if test "${ac_cv_type_socklen_t+set}" = set; then
21835 echo $ECHO_N "(cached) $ECHO_C" >&6
21836 else
21837 cat >conftest.$ac_ext <<_ACEOF
21838 /* confdefs.h. */
21839 _ACEOF
21840 cat confdefs.h >>conftest.$ac_ext
21841 cat >>conftest.$ac_ext <<_ACEOF
21842 /* end confdefs.h. */
21844 #ifdef HAVE_SYS_TYPES_H
21845 #include <sys/types.h>
21846 #endif
21847 #ifdef HAVE_SYS_SOCKET_H
21848 #include <sys/socket.h>
21849 #endif
21853 main ()
21855 if ((socklen_t *) 0)
21856 return 0;
21857 if (sizeof (socklen_t))
21858 return 0;
21860 return 0;
21862 _ACEOF
21863 rm -f conftest.$ac_objext
21864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21865 (eval $ac_compile) 2>conftest.er1
21866 ac_status=$?
21867 grep -v '^ *+' conftest.er1 >conftest.err
21868 rm -f conftest.er1
21869 cat conftest.err >&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); } &&
21872 { ac_try='test -z "$ac_c_werror_flag"
21873 || test ! -s conftest.err'
21874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875 (eval $ac_try) 2>&5
21876 ac_status=$?
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); }; } &&
21879 { ac_try='test -s conftest.$ac_objext'
21880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21882 ac_status=$?
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; }; then
21885 ac_cv_type_socklen_t=yes
21886 else
21887 echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21890 ac_cv_type_socklen_t=no
21892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21894 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21895 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21896 if test $ac_cv_type_socklen_t = yes; then
21898 else
21900 cat >>confdefs.h <<\_ACEOF
21901 #define socklen_t int
21902 _ACEOF
21909 for h in `(cd $srcdir;echo Python/thread_*.h)`
21911 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
21912 done
21915 SRCDIRS="Parser Grammar Objects Python Modules Mac"
21916 echo "$as_me:$LINENO: checking for build directories" >&5
21917 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
21918 for dir in $SRCDIRS; do
21919 if test ! -d $dir; then
21920 mkdir $dir
21922 done
21923 echo "$as_me:$LINENO: result: done" >&5
21924 echo "${ECHO_T}done" >&6
21926 # generate output files
21927 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
21929 cat >confcache <<\_ACEOF
21930 # This file is a shell script that caches the results of configure
21931 # tests run on this system so they can be shared between configure
21932 # scripts and configure runs, see configure's option --config-cache.
21933 # It is not useful on other systems. If it contains results you don't
21934 # want to keep, you may remove or edit it.
21936 # config.status only pays attention to the cache file if you give it
21937 # the --recheck option to rerun configure.
21939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21941 # following values.
21943 _ACEOF
21945 # The following way of writing the cache mishandles newlines in values,
21946 # but we know of no workaround that is simple, portable, and efficient.
21947 # So, don't put newlines in cache variables' values.
21948 # Ultrix sh set writes to stderr and can't be redirected directly,
21949 # and sets the high bit in the cache file unless we assign to the vars.
21951 (set) 2>&1 |
21952 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21953 *ac_space=\ *)
21954 # `set' does not quote correctly, so add quotes (double-quote
21955 # substitution turns \\\\ into \\, and sed turns \\ into \).
21956 sed -n \
21957 "s/'/'\\\\''/g;
21958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21961 # `set' quotes correctly as required by POSIX, so do not add quotes.
21962 sed -n \
21963 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21965 esac;
21967 sed '
21968 t clear
21969 : clear
21970 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21971 t end
21972 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21973 : end' >>confcache
21974 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21975 if test -w $cache_file; then
21976 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21977 cat confcache >$cache_file
21978 else
21979 echo "not updating unwritable cache $cache_file"
21982 rm -f confcache
21984 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21985 # Let make expand exec_prefix.
21986 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21988 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21989 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21990 # trailing colons and then remove the whole line if VPATH becomes empty
21991 # (actually we leave an empty line to preserve line numbers).
21992 if test "x$srcdir" = x.; then
21993 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21994 s/:*\$(srcdir):*/:/;
21995 s/:*\${srcdir}:*/:/;
21996 s/:*@srcdir@:*/:/;
21997 s/^\([^=]*=[ ]*\):*/\1/;
21998 s/:*$//;
21999 s/^[^=]*=[ ]*$//;
22003 DEFS=-DHAVE_CONFIG_H
22005 ac_libobjs=
22006 ac_ltlibobjs=
22007 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22008 # 1. Remove the extension, and $U if already installed.
22009 ac_i=`echo "$ac_i" |
22010 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22011 # 2. Add them.
22012 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22013 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22014 done
22015 LIBOBJS=$ac_libobjs
22017 LTLIBOBJS=$ac_ltlibobjs
22021 : ${CONFIG_STATUS=./config.status}
22022 ac_clean_files_save=$ac_clean_files
22023 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22024 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22025 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22026 cat >$CONFIG_STATUS <<_ACEOF
22027 #! $SHELL
22028 # Generated by $as_me.
22029 # Run this file to recreate the current configuration.
22030 # Compiler output produced by configure, useful for debugging
22031 # configure, is in config.log if it exists.
22033 debug=false
22034 ac_cs_recheck=false
22035 ac_cs_silent=false
22036 SHELL=\${CONFIG_SHELL-$SHELL}
22037 _ACEOF
22039 cat >>$CONFIG_STATUS <<\_ACEOF
22040 ## --------------------- ##
22041 ## M4sh Initialization. ##
22042 ## --------------------- ##
22044 # Be Bourne compatible
22045 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22046 emulate sh
22047 NULLCMD=:
22048 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22049 # is contrary to our usage. Disable this feature.
22050 alias -g '${1+"$@"}'='"$@"'
22051 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22052 set -o posix
22054 DUALCASE=1; export DUALCASE # for MKS sh
22056 # Support unset when possible.
22057 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22058 as_unset=unset
22059 else
22060 as_unset=false
22064 # Work around bugs in pre-3.0 UWIN ksh.
22065 $as_unset ENV MAIL MAILPATH
22066 PS1='$ '
22067 PS2='> '
22068 PS4='+ '
22070 # NLS nuisances.
22071 for as_var in \
22072 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22073 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22074 LC_TELEPHONE LC_TIME
22076 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22077 eval $as_var=C; export $as_var
22078 else
22079 $as_unset $as_var
22081 done
22083 # Required to use basename.
22084 if expr a : '\(a\)' >/dev/null 2>&1; then
22085 as_expr=expr
22086 else
22087 as_expr=false
22090 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22091 as_basename=basename
22092 else
22093 as_basename=false
22097 # Name of the executable.
22098 as_me=`$as_basename "$0" ||
22099 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22100 X"$0" : 'X\(//\)$' \| \
22101 X"$0" : 'X\(/\)$' \| \
22102 . : '\(.\)' 2>/dev/null ||
22103 echo X/"$0" |
22104 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22105 /^X\/\(\/\/\)$/{ s//\1/; q; }
22106 /^X\/\(\/\).*/{ s//\1/; q; }
22107 s/.*/./; q'`
22110 # PATH needs CR, and LINENO needs CR and PATH.
22111 # Avoid depending upon Character Ranges.
22112 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22113 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22114 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22115 as_cr_digits='0123456789'
22116 as_cr_alnum=$as_cr_Letters$as_cr_digits
22118 # The user is always right.
22119 if test "${PATH_SEPARATOR+set}" != set; then
22120 echo "#! /bin/sh" >conf$$.sh
22121 echo "exit 0" >>conf$$.sh
22122 chmod +x conf$$.sh
22123 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22124 PATH_SEPARATOR=';'
22125 else
22126 PATH_SEPARATOR=:
22128 rm -f conf$$.sh
22132 as_lineno_1=$LINENO
22133 as_lineno_2=$LINENO
22134 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22135 test "x$as_lineno_1" != "x$as_lineno_2" &&
22136 test "x$as_lineno_3" = "x$as_lineno_2" || {
22137 # Find who we are. Look in the path if we contain no path at all
22138 # relative or not.
22139 case $0 in
22140 *[\\/]* ) as_myself=$0 ;;
22141 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22142 for as_dir in $PATH
22144 IFS=$as_save_IFS
22145 test -z "$as_dir" && as_dir=.
22146 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22147 done
22150 esac
22151 # We did not find ourselves, most probably we were run as `sh COMMAND'
22152 # in which case we are not to be found in the path.
22153 if test "x$as_myself" = x; then
22154 as_myself=$0
22156 if test ! -f "$as_myself"; then
22157 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22158 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22159 { (exit 1); exit 1; }; }
22161 case $CONFIG_SHELL in
22163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22164 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22166 IFS=$as_save_IFS
22167 test -z "$as_dir" && as_dir=.
22168 for as_base in sh bash ksh sh5; do
22169 case $as_dir in
22171 if ("$as_dir/$as_base" -c '
22172 as_lineno_1=$LINENO
22173 as_lineno_2=$LINENO
22174 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22175 test "x$as_lineno_1" != "x$as_lineno_2" &&
22176 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22177 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22178 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22179 CONFIG_SHELL=$as_dir/$as_base
22180 export CONFIG_SHELL
22181 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22182 fi;;
22183 esac
22184 done
22185 done
22187 esac
22189 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22190 # uniformly replaced by the line number. The first 'sed' inserts a
22191 # line-number line before each line; the second 'sed' does the real
22192 # work. The second script uses 'N' to pair each line-number line
22193 # with the numbered line, and appends trailing '-' during
22194 # substitution so that $LINENO is not a special case at line end.
22195 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22196 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22197 sed '=' <$as_myself |
22198 sed '
22200 s,$,-,
22201 : loop
22202 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22203 t loop
22204 s,-$,,
22205 s,^['$as_cr_digits']*\n,,
22206 ' >$as_me.lineno &&
22207 chmod +x $as_me.lineno ||
22208 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22209 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22210 { (exit 1); exit 1; }; }
22212 # Don't try to exec as it changes $[0], causing all sort of problems
22213 # (the dirname of $[0] is not the place where we might find the
22214 # original and so on. Autoconf is especially sensible to this).
22215 . ./$as_me.lineno
22216 # Exit status is that of the last command.
22217 exit
22221 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22222 *c*,-n*) ECHO_N= ECHO_C='
22223 ' ECHO_T=' ' ;;
22224 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22225 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22226 esac
22228 if expr a : '\(a\)' >/dev/null 2>&1; then
22229 as_expr=expr
22230 else
22231 as_expr=false
22234 rm -f conf$$ conf$$.exe conf$$.file
22235 echo >conf$$.file
22236 if ln -s conf$$.file conf$$ 2>/dev/null; then
22237 # We could just check for DJGPP; but this test a) works b) is more generic
22238 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22239 if test -f conf$$.exe; then
22240 # Don't use ln at all; we don't have any links
22241 as_ln_s='cp -p'
22242 else
22243 as_ln_s='ln -s'
22245 elif ln conf$$.file conf$$ 2>/dev/null; then
22246 as_ln_s=ln
22247 else
22248 as_ln_s='cp -p'
22250 rm -f conf$$ conf$$.exe conf$$.file
22252 if mkdir -p . 2>/dev/null; then
22253 as_mkdir_p=:
22254 else
22255 test -d ./-p && rmdir ./-p
22256 as_mkdir_p=false
22259 as_executable_p="test -f"
22261 # Sed expression to map a string onto a valid CPP name.
22262 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22264 # Sed expression to map a string onto a valid variable name.
22265 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22268 # IFS
22269 # We need space, tab and new line, in precisely that order.
22270 as_nl='
22272 IFS=" $as_nl"
22274 # CDPATH.
22275 $as_unset CDPATH
22277 exec 6>&1
22279 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22280 # report actual input values of CONFIG_FILES etc. instead of their
22281 # values after options handling. Logging --version etc. is OK.
22282 exec 5>>config.log
22284 echo
22285 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22286 ## Running $as_me. ##
22287 _ASBOX
22288 } >&5
22289 cat >&5 <<_CSEOF
22291 This file was extended by python $as_me 2.5, which was
22292 generated by GNU Autoconf 2.59. Invocation command line was
22294 CONFIG_FILES = $CONFIG_FILES
22295 CONFIG_HEADERS = $CONFIG_HEADERS
22296 CONFIG_LINKS = $CONFIG_LINKS
22297 CONFIG_COMMANDS = $CONFIG_COMMANDS
22298 $ $0 $@
22300 _CSEOF
22301 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22302 echo >&5
22303 _ACEOF
22305 # Files that config.status was made for.
22306 if test -n "$ac_config_files"; then
22307 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22310 if test -n "$ac_config_headers"; then
22311 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22314 if test -n "$ac_config_links"; then
22315 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22318 if test -n "$ac_config_commands"; then
22319 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22322 cat >>$CONFIG_STATUS <<\_ACEOF
22324 ac_cs_usage="\
22325 \`$as_me' instantiates files from templates according to the
22326 current configuration.
22328 Usage: $0 [OPTIONS] [FILE]...
22330 -h, --help print this help, then exit
22331 -V, --version print version number, then exit
22332 -q, --quiet do not print progress messages
22333 -d, --debug don't remove temporary files
22334 --recheck update $as_me by reconfiguring in the same conditions
22335 --file=FILE[:TEMPLATE]
22336 instantiate the configuration file FILE
22337 --header=FILE[:TEMPLATE]
22338 instantiate the configuration header FILE
22340 Configuration files:
22341 $config_files
22343 Configuration headers:
22344 $config_headers
22346 Report bugs to <bug-autoconf@gnu.org>."
22347 _ACEOF
22349 cat >>$CONFIG_STATUS <<_ACEOF
22350 ac_cs_version="\\
22351 python config.status 2.5
22352 configured by $0, generated by GNU Autoconf 2.59,
22353 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22355 Copyright (C) 2003 Free Software Foundation, Inc.
22356 This config.status script is free software; the Free Software Foundation
22357 gives unlimited permission to copy, distribute and modify it."
22358 srcdir=$srcdir
22359 INSTALL="$INSTALL"
22360 _ACEOF
22362 cat >>$CONFIG_STATUS <<\_ACEOF
22363 # If no file are specified by the user, then we need to provide default
22364 # value. By we need to know if files were specified by the user.
22365 ac_need_defaults=:
22366 while test $# != 0
22368 case $1 in
22369 --*=*)
22370 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22371 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22372 ac_shift=:
22375 ac_option=$1
22376 ac_optarg=$2
22377 ac_shift=shift
22379 *) # This is not an option, so the user has probably given explicit
22380 # arguments.
22381 ac_option=$1
22382 ac_need_defaults=false;;
22383 esac
22385 case $ac_option in
22386 # Handling of the options.
22387 _ACEOF
22388 cat >>$CONFIG_STATUS <<\_ACEOF
22389 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22390 ac_cs_recheck=: ;;
22391 --version | --vers* | -V )
22392 echo "$ac_cs_version"; exit 0 ;;
22393 --he | --h)
22394 # Conflict between --help and --header
22395 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22396 Try \`$0 --help' for more information." >&5
22397 echo "$as_me: error: ambiguous option: $1
22398 Try \`$0 --help' for more information." >&2;}
22399 { (exit 1); exit 1; }; };;
22400 --help | --hel | -h )
22401 echo "$ac_cs_usage"; exit 0 ;;
22402 --debug | --d* | -d )
22403 debug=: ;;
22404 --file | --fil | --fi | --f )
22405 $ac_shift
22406 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22407 ac_need_defaults=false;;
22408 --header | --heade | --head | --hea )
22409 $ac_shift
22410 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22411 ac_need_defaults=false;;
22412 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22413 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22414 ac_cs_silent=: ;;
22416 # This is an error.
22417 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22418 Try \`$0 --help' for more information." >&5
22419 echo "$as_me: error: unrecognized option: $1
22420 Try \`$0 --help' for more information." >&2;}
22421 { (exit 1); exit 1; }; } ;;
22423 *) ac_config_targets="$ac_config_targets $1" ;;
22425 esac
22426 shift
22427 done
22429 ac_configure_extra_args=
22431 if $ac_cs_silent; then
22432 exec 6>/dev/null
22433 ac_configure_extra_args="$ac_configure_extra_args --silent"
22436 _ACEOF
22437 cat >>$CONFIG_STATUS <<_ACEOF
22438 if \$ac_cs_recheck; then
22439 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22440 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22443 _ACEOF
22449 cat >>$CONFIG_STATUS <<\_ACEOF
22450 for ac_config_target in $ac_config_targets
22452 case "$ac_config_target" in
22453 # Handling of arguments.
22454 "Mac/OSX/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/OSX/Makefile" ;;
22455 "Mac/OSX/PythonLauncher/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/OSX/PythonLauncher/Makefile" ;;
22456 "Mac/OSX/IDLE/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/OSX/IDLE/Makefile" ;;
22457 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
22458 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
22459 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
22460 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22461 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22462 { (exit 1); exit 1; }; };;
22463 esac
22464 done
22466 # If the user did not use the arguments to specify the items to instantiate,
22467 # then the envvar interface is used. Set only those that are not.
22468 # We use the long form for the default assignment because of an extremely
22469 # bizarre bug on SunOS 4.1.3.
22470 if $ac_need_defaults; then
22471 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22472 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22475 # Have a temporary directory for convenience. Make it in the build tree
22476 # simply because there is no reason to put it here, and in addition,
22477 # creating and moving files from /tmp can sometimes cause problems.
22478 # Create a temporary directory, and hook for its removal unless debugging.
22479 $debug ||
22481 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22482 trap '{ (exit 1); exit 1; }' 1 2 13 15
22485 # Create a (secure) tmp directory for tmp files.
22488 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22489 test -n "$tmp" && test -d "$tmp"
22490 } ||
22492 tmp=./confstat$$-$RANDOM
22493 (umask 077 && mkdir $tmp)
22494 } ||
22496 echo "$me: cannot create a temporary directory in ." >&2
22497 { (exit 1); exit 1; }
22500 _ACEOF
22502 cat >>$CONFIG_STATUS <<_ACEOF
22505 # CONFIG_FILES section.
22508 # No need to generate the scripts if there are no CONFIG_FILES.
22509 # This happens for instance when ./config.status config.h
22510 if test -n "\$CONFIG_FILES"; then
22511 # Protect against being on the right side of a sed subst in config.status.
22512 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22513 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22514 s,@SHELL@,$SHELL,;t t
22515 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22516 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22517 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22518 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22519 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22520 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22521 s,@exec_prefix@,$exec_prefix,;t t
22522 s,@prefix@,$prefix,;t t
22523 s,@program_transform_name@,$program_transform_name,;t t
22524 s,@bindir@,$bindir,;t t
22525 s,@sbindir@,$sbindir,;t t
22526 s,@libexecdir@,$libexecdir,;t t
22527 s,@datadir@,$datadir,;t t
22528 s,@sysconfdir@,$sysconfdir,;t t
22529 s,@sharedstatedir@,$sharedstatedir,;t t
22530 s,@localstatedir@,$localstatedir,;t t
22531 s,@libdir@,$libdir,;t t
22532 s,@includedir@,$includedir,;t t
22533 s,@oldincludedir@,$oldincludedir,;t t
22534 s,@infodir@,$infodir,;t t
22535 s,@mandir@,$mandir,;t t
22536 s,@build_alias@,$build_alias,;t t
22537 s,@host_alias@,$host_alias,;t t
22538 s,@target_alias@,$target_alias,;t t
22539 s,@DEFS@,$DEFS,;t t
22540 s,@ECHO_C@,$ECHO_C,;t t
22541 s,@ECHO_N@,$ECHO_N,;t t
22542 s,@ECHO_T@,$ECHO_T,;t t
22543 s,@LIBS@,$LIBS,;t t
22544 s,@VERSION@,$VERSION,;t t
22545 s,@SOVERSION@,$SOVERSION,;t t
22546 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
22547 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
22548 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
22549 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
22550 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
22551 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
22552 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
22553 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
22554 s,@MACHDEP@,$MACHDEP,;t t
22555 s,@SGI_ABI@,$SGI_ABI,;t t
22556 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
22557 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
22558 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
22559 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
22560 s,@CC@,$CC,;t t
22561 s,@CFLAGS@,$CFLAGS,;t t
22562 s,@LDFLAGS@,$LDFLAGS,;t t
22563 s,@CPPFLAGS@,$CPPFLAGS,;t t
22564 s,@ac_ct_CC@,$ac_ct_CC,;t t
22565 s,@EXEEXT@,$EXEEXT,;t t
22566 s,@OBJEXT@,$OBJEXT,;t t
22567 s,@CXX@,$CXX,;t t
22568 s,@MAINCC@,$MAINCC,;t t
22569 s,@CPP@,$CPP,;t t
22570 s,@EGREP@,$EGREP,;t t
22571 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
22572 s,@LIBRARY@,$LIBRARY,;t t
22573 s,@LDLIBRARY@,$LDLIBRARY,;t t
22574 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
22575 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
22576 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
22577 s,@INSTSONAME@,$INSTSONAME,;t t
22578 s,@RUNSHARED@,$RUNSHARED,;t t
22579 s,@LINKCC@,$LINKCC,;t t
22580 s,@RANLIB@,$RANLIB,;t t
22581 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22582 s,@AR@,$AR,;t t
22583 s,@SVNVERSION@,$SVNVERSION,;t t
22584 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22585 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22586 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22587 s,@LN@,$LN,;t t
22588 s,@OPT@,$OPT,;t t
22589 s,@BASECFLAGS@,$BASECFLAGS,;t t
22590 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
22591 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
22592 s,@SO@,$SO,;t t
22593 s,@LDSHARED@,$LDSHARED,;t t
22594 s,@BLDSHARED@,$BLDSHARED,;t t
22595 s,@CCSHARED@,$CCSHARED,;t t
22596 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
22597 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
22598 s,@SHLIBS@,$SHLIBS,;t t
22599 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
22600 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
22601 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
22602 s,@LDLAST@,$LDLAST,;t t
22603 s,@THREADOBJ@,$THREADOBJ,;t t
22604 s,@DLINCLDIR@,$DLINCLDIR,;t t
22605 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
22606 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
22607 s,@TRUE@,$TRUE,;t t
22608 s,@LIBOBJS@,$LIBOBJS,;t t
22609 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
22610 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
22611 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
22612 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
22613 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
22614 s,@LIBM@,$LIBM,;t t
22615 s,@LIBC@,$LIBC,;t t
22616 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
22617 s,@THREADHEADERS@,$THREADHEADERS,;t t
22618 s,@SRCDIRS@,$SRCDIRS,;t t
22619 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22620 CEOF
22622 _ACEOF
22624 cat >>$CONFIG_STATUS <<\_ACEOF
22625 # Split the substitutions into bite-sized pieces for seds with
22626 # small command number limits, like on Digital OSF/1 and HP-UX.
22627 ac_max_sed_lines=48
22628 ac_sed_frag=1 # Number of current file.
22629 ac_beg=1 # First line for current file.
22630 ac_end=$ac_max_sed_lines # Line after last line for current file.
22631 ac_more_lines=:
22632 ac_sed_cmds=
22633 while $ac_more_lines; do
22634 if test $ac_beg -gt 1; then
22635 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22636 else
22637 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22639 if test ! -s $tmp/subs.frag; then
22640 ac_more_lines=false
22641 else
22642 # The purpose of the label and of the branching condition is to
22643 # speed up the sed processing (if there are no `@' at all, there
22644 # is no need to browse any of the substitutions).
22645 # These are the two extra sed commands mentioned above.
22646 (echo ':t
22647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22648 if test -z "$ac_sed_cmds"; then
22649 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22650 else
22651 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22653 ac_sed_frag=`expr $ac_sed_frag + 1`
22654 ac_beg=$ac_end
22655 ac_end=`expr $ac_end + $ac_max_sed_lines`
22657 done
22658 if test -z "$ac_sed_cmds"; then
22659 ac_sed_cmds=cat
22661 fi # test -n "$CONFIG_FILES"
22663 _ACEOF
22664 cat >>$CONFIG_STATUS <<\_ACEOF
22665 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22666 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22667 case $ac_file in
22668 - | *:- | *:-:* ) # input from stdin
22669 cat >$tmp/stdin
22670 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22671 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22672 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22673 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22674 * ) ac_file_in=$ac_file.in ;;
22675 esac
22677 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22678 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22680 X"$ac_file" : 'X\(//\)[^/]' \| \
22681 X"$ac_file" : 'X\(//\)$' \| \
22682 X"$ac_file" : 'X\(/\)' \| \
22683 . : '\(.\)' 2>/dev/null ||
22684 echo X"$ac_file" |
22685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22687 /^X\(\/\/\)$/{ s//\1/; q; }
22688 /^X\(\/\).*/{ s//\1/; q; }
22689 s/.*/./; q'`
22690 { if $as_mkdir_p; then
22691 mkdir -p "$ac_dir"
22692 else
22693 as_dir="$ac_dir"
22694 as_dirs=
22695 while test ! -d "$as_dir"; do
22696 as_dirs="$as_dir $as_dirs"
22697 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22699 X"$as_dir" : 'X\(//\)[^/]' \| \
22700 X"$as_dir" : 'X\(//\)$' \| \
22701 X"$as_dir" : 'X\(/\)' \| \
22702 . : '\(.\)' 2>/dev/null ||
22703 echo X"$as_dir" |
22704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22705 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22706 /^X\(\/\/\)$/{ s//\1/; q; }
22707 /^X\(\/\).*/{ s//\1/; q; }
22708 s/.*/./; q'`
22709 done
22710 test ! -n "$as_dirs" || mkdir $as_dirs
22711 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22712 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22713 { (exit 1); exit 1; }; }; }
22715 ac_builddir=.
22717 if test "$ac_dir" != .; then
22718 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22719 # A "../" for each directory in $ac_dir_suffix.
22720 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22721 else
22722 ac_dir_suffix= ac_top_builddir=
22725 case $srcdir in
22726 .) # No --srcdir option. We are building in place.
22727 ac_srcdir=.
22728 if test -z "$ac_top_builddir"; then
22729 ac_top_srcdir=.
22730 else
22731 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22732 fi ;;
22733 [\\/]* | ?:[\\/]* ) # Absolute path.
22734 ac_srcdir=$srcdir$ac_dir_suffix;
22735 ac_top_srcdir=$srcdir ;;
22736 *) # Relative path.
22737 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22738 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22739 esac
22741 # Do not use `cd foo && pwd` to compute absolute paths, because
22742 # the directories may not exist.
22743 case `pwd` in
22744 .) ac_abs_builddir="$ac_dir";;
22746 case "$ac_dir" in
22747 .) ac_abs_builddir=`pwd`;;
22748 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22749 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22750 esac;;
22751 esac
22752 case $ac_abs_builddir in
22753 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22755 case ${ac_top_builddir}. in
22756 .) ac_abs_top_builddir=$ac_abs_builddir;;
22757 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22758 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22759 esac;;
22760 esac
22761 case $ac_abs_builddir in
22762 .) ac_abs_srcdir=$ac_srcdir;;
22764 case $ac_srcdir in
22765 .) ac_abs_srcdir=$ac_abs_builddir;;
22766 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22767 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22768 esac;;
22769 esac
22770 case $ac_abs_builddir in
22771 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22773 case $ac_top_srcdir in
22774 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22775 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22776 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22777 esac;;
22778 esac
22781 case $INSTALL in
22782 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22783 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22784 esac
22786 if test x"$ac_file" != x-; then
22787 { echo "$as_me:$LINENO: creating $ac_file" >&5
22788 echo "$as_me: creating $ac_file" >&6;}
22789 rm -f "$ac_file"
22791 # Let's still pretend it is `configure' which instantiates (i.e., don't
22792 # use $as_me), people would be surprised to read:
22793 # /* config.h. Generated by config.status. */
22794 if test x"$ac_file" = x-; then
22795 configure_input=
22796 else
22797 configure_input="$ac_file. "
22799 configure_input=$configure_input"Generated from `echo $ac_file_in |
22800 sed 's,.*/,,'` by configure."
22802 # First look for the input files in the build tree, otherwise in the
22803 # src tree.
22804 ac_file_inputs=`IFS=:
22805 for f in $ac_file_in; do
22806 case $f in
22807 -) echo $tmp/stdin ;;
22808 [\\/$]*)
22809 # Absolute (can't be DOS-style, as IFS=:)
22810 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22811 echo "$as_me: error: cannot find input file: $f" >&2;}
22812 { (exit 1); exit 1; }; }
22813 echo "$f";;
22814 *) # Relative
22815 if test -f "$f"; then
22816 # Build tree
22817 echo "$f"
22818 elif test -f "$srcdir/$f"; then
22819 # Source tree
22820 echo "$srcdir/$f"
22821 else
22822 # /dev/null tree
22823 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22824 echo "$as_me: error: cannot find input file: $f" >&2;}
22825 { (exit 1); exit 1; }; }
22826 fi;;
22827 esac
22828 done` || { (exit 1); exit 1; }
22829 _ACEOF
22830 cat >>$CONFIG_STATUS <<_ACEOF
22831 sed "$ac_vpsub
22832 $extrasub
22833 _ACEOF
22834 cat >>$CONFIG_STATUS <<\_ACEOF
22836 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22837 s,@configure_input@,$configure_input,;t t
22838 s,@srcdir@,$ac_srcdir,;t t
22839 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22840 s,@top_srcdir@,$ac_top_srcdir,;t t
22841 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22842 s,@builddir@,$ac_builddir,;t t
22843 s,@abs_builddir@,$ac_abs_builddir,;t t
22844 s,@top_builddir@,$ac_top_builddir,;t t
22845 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22846 s,@INSTALL@,$ac_INSTALL,;t t
22847 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22848 rm -f $tmp/stdin
22849 if test x"$ac_file" != x-; then
22850 mv $tmp/out $ac_file
22851 else
22852 cat $tmp/out
22853 rm -f $tmp/out
22856 done
22857 _ACEOF
22858 cat >>$CONFIG_STATUS <<\_ACEOF
22861 # CONFIG_HEADER section.
22864 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22865 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22867 # ac_d sets the value in "#define NAME VALUE" lines.
22868 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22869 ac_dB='[ ].*$,\1#\2'
22870 ac_dC=' '
22871 ac_dD=',;t'
22872 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22873 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22874 ac_uB='$,\1#\2define\3'
22875 ac_uC=' '
22876 ac_uD=',;t'
22878 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22879 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22880 case $ac_file in
22881 - | *:- | *:-:* ) # input from stdin
22882 cat >$tmp/stdin
22883 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22884 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22885 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22886 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22887 * ) ac_file_in=$ac_file.in ;;
22888 esac
22890 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22891 echo "$as_me: creating $ac_file" >&6;}
22893 # First look for the input files in the build tree, otherwise in the
22894 # src tree.
22895 ac_file_inputs=`IFS=:
22896 for f in $ac_file_in; do
22897 case $f in
22898 -) echo $tmp/stdin ;;
22899 [\\/$]*)
22900 # Absolute (can't be DOS-style, as IFS=:)
22901 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22902 echo "$as_me: error: cannot find input file: $f" >&2;}
22903 { (exit 1); exit 1; }; }
22904 # Do quote $f, to prevent DOS paths from being IFS'd.
22905 echo "$f";;
22906 *) # Relative
22907 if test -f "$f"; then
22908 # Build tree
22909 echo "$f"
22910 elif test -f "$srcdir/$f"; then
22911 # Source tree
22912 echo "$srcdir/$f"
22913 else
22914 # /dev/null tree
22915 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22916 echo "$as_me: error: cannot find input file: $f" >&2;}
22917 { (exit 1); exit 1; }; }
22918 fi;;
22919 esac
22920 done` || { (exit 1); exit 1; }
22921 # Remove the trailing spaces.
22922 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22924 _ACEOF
22926 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22927 # `conftest.undefs', that substitutes the proper values into
22928 # config.h.in to produce config.h. The first handles `#define'
22929 # templates, and the second `#undef' templates.
22930 # And first: Protect against being on the right side of a sed subst in
22931 # config.status. Protect against being in an unquoted here document
22932 # in config.status.
22933 rm -f conftest.defines conftest.undefs
22934 # Using a here document instead of a string reduces the quoting nightmare.
22935 # Putting comments in sed scripts is not portable.
22937 # `end' is used to avoid that the second main sed command (meant for
22938 # 0-ary CPP macros) applies to n-ary macro definitions.
22939 # See the Autoconf documentation for `clear'.
22940 cat >confdef2sed.sed <<\_ACEOF
22941 s/[\\&,]/\\&/g
22942 s,[\\$`],\\&,g
22943 t clear
22944 : clear
22945 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22946 t end
22947 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22948 : end
22949 _ACEOF
22950 # If some macros were called several times there might be several times
22951 # the same #defines, which is useless. Nevertheless, we may not want to
22952 # sort them, since we want the *last* AC-DEFINE to be honored.
22953 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22954 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22955 rm -f confdef2sed.sed
22957 # This sed command replaces #undef with comments. This is necessary, for
22958 # example, in the case of _POSIX_SOURCE, which is predefined and required
22959 # on some systems where configure will not decide to define it.
22960 cat >>conftest.undefs <<\_ACEOF
22961 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22962 _ACEOF
22964 # Break up conftest.defines because some shells have a limit on the size
22965 # of here documents, and old seds have small limits too (100 cmds).
22966 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22967 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22968 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22969 echo ' :' >>$CONFIG_STATUS
22970 rm -f conftest.tail
22971 while grep . conftest.defines >/dev/null
22973 # Write a limited-size here document to $tmp/defines.sed.
22974 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22975 # Speed up: don't consider the non `#define' lines.
22976 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22977 # Work around the forget-to-reset-the-flag bug.
22978 echo 't clr' >>$CONFIG_STATUS
22979 echo ': clr' >>$CONFIG_STATUS
22980 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22981 echo 'CEOF
22982 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22983 rm -f $tmp/in
22984 mv $tmp/out $tmp/in
22985 ' >>$CONFIG_STATUS
22986 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22987 rm -f conftest.defines
22988 mv conftest.tail conftest.defines
22989 done
22990 rm -f conftest.defines
22991 echo ' fi # grep' >>$CONFIG_STATUS
22992 echo >>$CONFIG_STATUS
22994 # Break up conftest.undefs because some shells have a limit on the size
22995 # of here documents, and old seds have small limits too (100 cmds).
22996 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22997 rm -f conftest.tail
22998 while grep . conftest.undefs >/dev/null
23000 # Write a limited-size here document to $tmp/undefs.sed.
23001 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23002 # Speed up: don't consider the non `#undef'
23003 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23004 # Work around the forget-to-reset-the-flag bug.
23005 echo 't clr' >>$CONFIG_STATUS
23006 echo ': clr' >>$CONFIG_STATUS
23007 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23008 echo 'CEOF
23009 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23010 rm -f $tmp/in
23011 mv $tmp/out $tmp/in
23012 ' >>$CONFIG_STATUS
23013 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23014 rm -f conftest.undefs
23015 mv conftest.tail conftest.undefs
23016 done
23017 rm -f conftest.undefs
23019 cat >>$CONFIG_STATUS <<\_ACEOF
23020 # Let's still pretend it is `configure' which instantiates (i.e., don't
23021 # use $as_me), people would be surprised to read:
23022 # /* config.h. Generated by config.status. */
23023 if test x"$ac_file" = x-; then
23024 echo "/* Generated by configure. */" >$tmp/config.h
23025 else
23026 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23028 cat $tmp/in >>$tmp/config.h
23029 rm -f $tmp/in
23030 if test x"$ac_file" != x-; then
23031 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23032 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23033 echo "$as_me: $ac_file is unchanged" >&6;}
23034 else
23035 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23037 X"$ac_file" : 'X\(//\)[^/]' \| \
23038 X"$ac_file" : 'X\(//\)$' \| \
23039 X"$ac_file" : 'X\(/\)' \| \
23040 . : '\(.\)' 2>/dev/null ||
23041 echo X"$ac_file" |
23042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23043 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23044 /^X\(\/\/\)$/{ s//\1/; q; }
23045 /^X\(\/\).*/{ s//\1/; q; }
23046 s/.*/./; q'`
23047 { if $as_mkdir_p; then
23048 mkdir -p "$ac_dir"
23049 else
23050 as_dir="$ac_dir"
23051 as_dirs=
23052 while test ! -d "$as_dir"; do
23053 as_dirs="$as_dir $as_dirs"
23054 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23056 X"$as_dir" : 'X\(//\)[^/]' \| \
23057 X"$as_dir" : 'X\(//\)$' \| \
23058 X"$as_dir" : 'X\(/\)' \| \
23059 . : '\(.\)' 2>/dev/null ||
23060 echo X"$as_dir" |
23061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23062 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23063 /^X\(\/\/\)$/{ s//\1/; q; }
23064 /^X\(\/\).*/{ s//\1/; q; }
23065 s/.*/./; q'`
23066 done
23067 test ! -n "$as_dirs" || mkdir $as_dirs
23068 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23069 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23070 { (exit 1); exit 1; }; }; }
23072 rm -f $ac_file
23073 mv $tmp/config.h $ac_file
23075 else
23076 cat $tmp/config.h
23077 rm -f $tmp/config.h
23079 done
23080 _ACEOF
23082 cat >>$CONFIG_STATUS <<\_ACEOF
23084 { (exit 0); exit 0; }
23085 _ACEOF
23086 chmod +x $CONFIG_STATUS
23087 ac_clean_files=$ac_clean_files_save
23090 # configure is writing to config.log, and then calls config.status.
23091 # config.status does its own redirection, appending to config.log.
23092 # Unfortunately, on DOS this fails, as config.log is still kept open
23093 # by configure, so config.status won't be able to write to it; its
23094 # output is simply discarded. So we exec the FD to /dev/null,
23095 # effectively closing config.log, so it can be properly (re)opened and
23096 # appended to by config.status. When coming back to configure, we
23097 # need to make the FD available again.
23098 if test "$no_create" != yes; then
23099 ac_cs_success=:
23100 ac_config_status_args=
23101 test "$silent" = yes &&
23102 ac_config_status_args="$ac_config_status_args --quiet"
23103 exec 5>/dev/null
23104 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23105 exec 5>>config.log
23106 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23107 # would make configure fail if this is the last instruction.
23108 $ac_cs_success || { (exit 1); exit 1; }
23112 echo "creating Modules/Setup"
23113 if test ! -f Modules/Setup
23114 then
23115 cp $srcdir/Modules/Setup.dist Modules/Setup
23118 echo "creating Modules/Setup.local"
23119 if test ! -f Modules/Setup.local
23120 then
23121 echo "# Edit this file for local setup changes" >Modules/Setup.local
23124 echo "creating Makefile"
23125 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
23126 -s Modules Modules/Setup.config \
23127 Modules/Setup.local Modules/Setup
23128 mv config.c Modules