Updates of recent changes to logging.
[python.git] / configure
blob73acf5bc76ab8ce4454b45187c6e62c8e157fe27
1 #! /bin/sh
2 # From configure.in Revision: 53826 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for python 2.6.
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.6'
274 PACKAGE_STRING='python 2.6'
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 FRAMEWORKALTINSTALLFIRST FRAMEWORKALTINSTALLLAST FRAMEWORKUNIXTOOLSPREFIX 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.6 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.6:";;
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.6
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.6, 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.6
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 FRAMEWORKALTINSTALLFIRST=
1449 FRAMEWORKALTINSTALLLAST=
1450 if test "x${prefix}" = "xNONE"; then
1451 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1452 else
1453 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1455 enable_framework=
1458 PYTHONFRAMEWORK=Python
1459 PYTHONFRAMEWORKDIR=Python.framework
1460 PYTHONFRAMEWORKPREFIX=$enableval
1461 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1462 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1463 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1464 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1465 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1466 if test "x${prefix}" = "xNONE" ; then
1467 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1468 else
1469 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1471 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1473 # Add makefiles for Mac specific code to the list of output
1474 # files:
1475 ac_config_files="$ac_config_files Mac/Makefile"
1477 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1479 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1481 esac
1483 else
1485 PYTHONFRAMEWORK=
1486 PYTHONFRAMEWORKDIR=no-framework
1487 PYTHONFRAMEWORKPREFIX=
1488 PYTHONFRAMEWORKINSTALLDIR=
1489 FRAMEWORKINSTALLFIRST=
1490 FRAMEWORKINSTALLLAST=
1491 FRAMEWORKALTINSTALLFIRST=
1492 FRAMEWORKALTINSTALLLAST=
1493 if test "x${prefix}" = "xNONE" ; then
1494 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1495 else
1496 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1498 enable_framework=
1511 ##AC_ARG_WITH(dyld,
1512 ## AC_HELP_STRING(--with-dyld,
1513 ## Use (OpenStep|Rhapsody) dynamic linker))
1515 # Set name for machine-dependent library files
1517 echo "$as_me:$LINENO: checking MACHDEP" >&5
1518 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1519 if test -z "$MACHDEP"
1520 then
1521 ac_sys_system=`uname -s`
1522 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1523 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1524 ac_sys_release=`uname -v`
1525 else
1526 ac_sys_release=`uname -r`
1528 ac_md_system=`echo $ac_sys_system |
1529 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1530 ac_md_release=`echo $ac_sys_release |
1531 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
1532 MACHDEP="$ac_md_system$ac_md_release"
1534 case $MACHDEP in
1535 cygwin*) MACHDEP="cygwin";;
1536 darwin*) MACHDEP="darwin";;
1537 atheos*) MACHDEP="atheos";;
1538 irix646) MACHDEP="irix6";;
1539 '') MACHDEP="unknown";;
1540 esac
1543 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1544 # disable features if it is defined, without any means to access these
1545 # features as extensions. For these systems, we skip the definition of
1546 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1547 # some feature, make sure there is no alternative way to access this
1548 # feature. Also, when using wildcards, make sure you have verified the
1549 # need for not defining _XOPEN_SOURCE on all systems matching the
1550 # wildcard, and that the wildcard does not include future systems
1551 # (which may remove their limitations).
1552 case $ac_sys_system/$ac_sys_release in
1553 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
1554 # even though select is a POSIX function. Reported by J. Ribbens.
1555 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
1556 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
1557 define_xopen_source=no;;
1558 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
1559 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
1560 # Marc Recht
1561 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
1562 define_xopen_source=no;;
1563 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
1564 # of union __?sigval. Reported by Stuart Bishop.
1565 SunOS/5.6)
1566 define_xopen_source=no;;
1567 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
1568 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
1569 # Reconfirmed for 7.1.4 by Martin v. Loewis.
1570 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
1571 define_xopen_source=no;;
1572 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
1573 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
1574 SCO_SV/3.2)
1575 define_xopen_source=no;;
1576 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
1577 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
1578 # this is fixed in 10.3, which identifies itself as Darwin/7.*
1579 # This should hopefully be fixed in FreeBSD 4.9
1580 FreeBSD/4.8* | Darwin/6* )
1581 define_xopen_source=no;;
1582 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
1583 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
1584 # or has another value. By not (re)defining it, the defaults come in place.
1585 AIX/4)
1586 define_xopen_source=no;;
1587 AIX/5)
1588 if test `uname -r` -eq 1; then
1589 define_xopen_source=no
1592 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1593 # disables platform specific features beyond repair.
1594 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
1595 # has no effect, don't bother defining them
1596 Darwin/[789].*)
1597 define_xopen_source=no
1600 esac
1602 if test $define_xopen_source = yes
1603 then
1604 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
1605 # defined precisely as g++ defines it
1606 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
1607 # compiler
1608 case $ac_sys_system/$ac_sys_release in
1609 SunOS/5.8|SunOS/5.9|SunOS/5.10)
1611 cat >>confdefs.h <<\_ACEOF
1612 #define _XOPEN_SOURCE 500
1613 _ACEOF
1618 cat >>confdefs.h <<\_ACEOF
1619 #define _XOPEN_SOURCE 600
1620 _ACEOF
1623 esac
1625 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
1626 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
1627 # several APIs are not declared. Since this is also needed in some
1628 # cases for HP-UX, we define it globally.
1629 # except for Solaris 10, where it must not be defined,
1630 # as it implies XPG4.2
1631 case $ac_sys_system/$ac_sys_release in
1632 SunOS/5.10)
1636 cat >>confdefs.h <<\_ACEOF
1637 #define _XOPEN_SOURCE_EXTENDED 1
1638 _ACEOF
1641 esac
1644 cat >>confdefs.h <<\_ACEOF
1645 #define _POSIX_C_SOURCE 200112L
1646 _ACEOF
1652 # SGI compilers allow the specification of the both the ABI and the
1653 # ISA on the command line. Depending on the values of these switches,
1654 # different and often incompatable code will be generated.
1656 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1657 # thus supply support for various ABI/ISA combinations. The MACHDEP
1658 # variable is also adjusted.
1661 if test ! -z "$SGI_ABI"
1662 then
1663 CC="cc $SGI_ABI"
1664 LDFLAGS="$SGI_ABI $LDFLAGS"
1665 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1667 echo "$as_me:$LINENO: result: $MACHDEP" >&5
1668 echo "${ECHO_T}$MACHDEP" >&6
1670 # And add extra plat-mac for darwin
1673 echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
1674 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6
1675 if test -z "$EXTRAPLATDIR"
1676 then
1677 case $MACHDEP in
1678 darwin)
1679 EXTRAPLATDIR="\$(PLATMACDIRS)"
1680 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
1683 EXTRAPLATDIR=""
1684 EXTRAMACHDEPPATH=""
1686 esac
1688 echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
1689 echo "${ECHO_T}$EXTRAPLATDIR" >&6
1691 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
1692 # it may influence the way we can build extensions, so distutils
1693 # needs to check it
1696 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
1697 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
1699 # checks for alternative programs
1701 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
1702 # for debug/optimization stuff. BASECFLAGS is for flags that are required
1703 # just to get things to compile and link. Users are free to override OPT
1704 # when running configure or make. The build should not break if they do.
1705 # BASECFLAGS should generally not be messed with, however.
1707 # XXX shouldn't some/most/all of this code be merged with the stuff later
1708 # on that fiddles with OPT and BASECFLAGS?
1709 echo "$as_me:$LINENO: checking for --without-gcc" >&5
1710 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1712 # Check whether --with-gcc or --without-gcc was given.
1713 if test "${with_gcc+set}" = set; then
1714 withval="$with_gcc"
1716 case $withval in
1717 no) CC=cc
1718 without_gcc=yes;;
1719 yes) CC=gcc
1720 without_gcc=no;;
1721 *) CC=$withval
1722 without_gcc=$withval;;
1723 esac
1724 else
1726 case $ac_sys_system in
1727 AIX*) CC=cc_r
1728 without_gcc=;;
1729 BeOS*)
1730 case $BE_HOST_CPU in
1731 ppc)
1732 CC=mwcc
1733 without_gcc=yes
1734 BASECFLAGS="$BASECFLAGS -export pragma"
1735 OPT="$OPT -O"
1736 LDFLAGS="$LDFLAGS -nodup"
1738 x86)
1739 CC=gcc
1740 without_gcc=no
1741 OPT="$OPT -O"
1744 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1745 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1746 { (exit 1); exit 1; }; }
1748 esac
1749 AR="\$(srcdir)/Modules/ar_beos"
1750 RANLIB=:
1752 Monterey*)
1753 RANLIB=:
1754 without_gcc=;;
1755 *) without_gcc=no;;
1756 esac
1758 echo "$as_me:$LINENO: result: $without_gcc" >&5
1759 echo "${ECHO_T}$without_gcc" >&6
1761 # If the user switches compilers, we can't believe the cache
1762 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1763 then
1764 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1765 (it is also a good idea to do 'make clean' before compiling)" >&5
1766 echo "$as_me: error: cached CC is different -- throw away $cache_file
1767 (it is also a good idea to do 'make clean' before compiling)" >&2;}
1768 { (exit 1); exit 1; }; }
1771 ac_ext=c
1772 ac_cpp='$CPP $CPPFLAGS'
1773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1776 if test -n "$ac_tool_prefix"; then
1777 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1778 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784 if test -n "$CC"; then
1785 ac_cv_prog_CC="$CC" # Let the user override the test.
1786 else
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 for as_dir in $PATH
1790 IFS=$as_save_IFS
1791 test -z "$as_dir" && as_dir=.
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 break 2
1798 done
1799 done
1803 CC=$ac_cv_prog_CC
1804 if test -n "$CC"; then
1805 echo "$as_me:$LINENO: result: $CC" >&5
1806 echo "${ECHO_T}$CC" >&6
1807 else
1808 echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1813 if test -z "$ac_cv_prog_CC"; then
1814 ac_ct_CC=$CC
1815 # Extract the first word of "gcc", so it can be a program name with args.
1816 set dummy gcc; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 else
1822 if test -n "$ac_ct_CC"; then
1823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1824 else
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 for as_dir in $PATH
1828 IFS=$as_save_IFS
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_ac_ct_CC="gcc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 break 2
1836 done
1837 done
1841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1842 if test -n "$ac_ct_CC"; then
1843 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1844 echo "${ECHO_T}$ac_ct_CC" >&6
1845 else
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1850 CC=$ac_ct_CC
1851 else
1852 CC="$ac_cv_prog_CC"
1855 if test -z "$CC"; then
1856 if test -n "$ac_tool_prefix"; then
1857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1858 set dummy ${ac_tool_prefix}cc; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC="$CC" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_CC="${ac_tool_prefix}cc"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 break 2
1878 done
1879 done
1883 CC=$ac_cv_prog_CC
1884 if test -n "$CC"; then
1885 echo "$as_me:$LINENO: result: $CC" >&5
1886 echo "${ECHO_T}$CC" >&6
1887 else
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1893 if test -z "$ac_cv_prog_CC"; then
1894 ac_ct_CC=$CC
1895 # Extract the first word of "cc", so it can be a program name with args.
1896 set dummy cc; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902 if test -n "$ac_ct_CC"; then
1903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1908 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_CC="cc"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 break 2
1916 done
1917 done
1921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1925 else
1926 echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1930 CC=$ac_ct_CC
1931 else
1932 CC="$ac_cv_prog_CC"
1936 if test -z "$CC"; then
1937 # Extract the first word of "cc", so it can be a program name with args.
1938 set dummy cc; ac_word=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_CC+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944 if test -n "$CC"; then
1945 ac_cv_prog_CC="$CC" # Let the user override the test.
1946 else
1947 ac_prog_rejected=no
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1951 IFS=$as_save_IFS
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1956 ac_prog_rejected=yes
1957 continue
1959 ac_cv_prog_CC="cc"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 break 2
1963 done
1964 done
1966 if test $ac_prog_rejected = yes; then
1967 # We found a bogon in the path, so make sure we never use it.
1968 set dummy $ac_cv_prog_CC
1969 shift
1970 if test $# != 0; then
1971 # We chose a different compiler from the bogus one.
1972 # However, it has the same basename, so the bogon will be chosen
1973 # first if we set CC to just the basename; use the full file name.
1974 shift
1975 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1980 CC=$ac_cv_prog_CC
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1984 else
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1990 if test -z "$CC"; then
1991 if test -n "$ac_tool_prefix"; then
1992 for ac_prog in cl
1994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2015 done
2016 done
2020 CC=$ac_cv_prog_CC
2021 if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2024 else
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2029 test -n "$CC" && break
2030 done
2032 if test -z "$CC"; then
2033 ac_ct_CC=$CC
2034 for ac_prog in cl
2036 # Extract the first word of "$ac_prog", so it can be a program name with args.
2037 set dummy $ac_prog; ac_word=$2
2038 echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045 else
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_prog_ac_ct_CC="$ac_prog"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2057 done
2058 done
2062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6
2066 else
2067 echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2071 test -n "$ac_ct_CC" && break
2072 done
2074 CC=$ac_ct_CC
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO:" \
2088 "checking for C compiler version" >&5
2089 ac_compiler=`set X $ac_compile; echo $2`
2090 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2091 (eval $ac_compiler --version </dev/null >&5) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2096 (eval $ac_compiler -v </dev/null >&5) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2101 (eval $ac_compiler -V </dev/null >&5) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2106 cat >conftest.$ac_ext <<_ACEOF
2107 /* confdefs.h. */
2108 _ACEOF
2109 cat confdefs.h >>conftest.$ac_ext
2110 cat >>conftest.$ac_ext <<_ACEOF
2111 /* end confdefs.h. */
2114 main ()
2118 return 0;
2120 _ACEOF
2121 ac_clean_files_save=$ac_clean_files
2122 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2123 # Try to create an executable without -o first, disregard a.out.
2124 # It will help us diagnose broken compilers, and finding out an intuition
2125 # of exeext.
2126 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2127 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2128 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2129 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2130 (eval $ac_link_default) 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }; then
2134 # Find the output, starting from the most likely. This scheme is
2135 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2136 # resort.
2138 # Be careful to initialize this variable, since it used to be cached.
2139 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2140 ac_cv_exeext=
2141 # b.out is created by i960 compilers.
2142 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2144 test -f "$ac_file" || continue
2145 case $ac_file in
2146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2148 conftest.$ac_ext )
2149 # This is the source file.
2151 [ab].out )
2152 # We found the default executable, but exeext='' is most
2153 # certainly right.
2154 break;;
2155 *.* )
2156 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2157 # FIXME: I believe we export ac_cv_exeext for Libtool,
2158 # but it would be cool to find out if it's true. Does anybody
2159 # maintain Libtool? --akim.
2160 export ac_cv_exeext
2161 break;;
2163 break;;
2164 esac
2165 done
2166 else
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2170 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2171 See \`config.log' for more details." >&5
2172 echo "$as_me: error: C compiler cannot create executables
2173 See \`config.log' for more details." >&2;}
2174 { (exit 77); exit 77; }; }
2177 ac_exeext=$ac_cv_exeext
2178 echo "$as_me:$LINENO: result: $ac_file" >&5
2179 echo "${ECHO_T}$ac_file" >&6
2181 # Check the compiler produces executables we can run. If not, either
2182 # the compiler is broken, or we cross compile.
2183 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2184 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2185 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2186 # If not cross compiling, check that we can run a simple program.
2187 if test "$cross_compiling" != yes; then
2188 if { ac_try='./$ac_file'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 (eval $ac_try) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
2194 cross_compiling=no
2195 else
2196 if test "$cross_compiling" = maybe; then
2197 cross_compiling=yes
2198 else
2199 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2200 If you meant to cross compile, use \`--host'.
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: cannot run C compiled programs.
2203 If you meant to cross compile, use \`--host'.
2204 See \`config.log' for more details." >&2;}
2205 { (exit 1); exit 1; }; }
2209 echo "$as_me:$LINENO: result: yes" >&5
2210 echo "${ECHO_T}yes" >&6
2212 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2213 ac_clean_files=$ac_clean_files_save
2214 # Check the compiler produces executables we can run. If not, either
2215 # the compiler is broken, or we cross compile.
2216 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2217 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2218 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2219 echo "${ECHO_T}$cross_compiling" >&6
2221 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2222 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2224 (eval $ac_link) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; then
2228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2229 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2230 # work properly (i.e., refer to `conftest.exe'), while it won't with
2231 # `rm'.
2232 for ac_file in conftest.exe conftest conftest.*; do
2233 test -f "$ac_file" || continue
2234 case $ac_file in
2235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2237 export ac_cv_exeext
2238 break;;
2239 * ) break;;
2240 esac
2241 done
2242 else
2243 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2250 rm -f conftest$ac_cv_exeext
2251 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2252 echo "${ECHO_T}$ac_cv_exeext" >&6
2254 rm -f conftest.$ac_ext
2255 EXEEXT=$ac_cv_exeext
2256 ac_exeext=$EXEEXT
2257 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2258 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2259 if test "${ac_cv_objext+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262 cat >conftest.$ac_ext <<_ACEOF
2263 /* confdefs.h. */
2264 _ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2270 main ()
2274 return 0;
2276 _ACEOF
2277 rm -f conftest.o conftest.obj
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; then
2283 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2284 case $ac_file in
2285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2286 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2287 break;;
2288 esac
2289 done
2290 else
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2301 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2303 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2304 echo "${ECHO_T}$ac_cv_objext" >&6
2305 OBJEXT=$ac_cv_objext
2306 ac_objext=$OBJEXT
2307 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2308 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2309 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312 cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h. */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2320 main ()
2322 #ifndef __GNUC__
2323 choke me
2324 #endif
2327 return 0;
2329 _ACEOF
2330 rm -f conftest.$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>conftest.er1
2333 ac_status=$?
2334 grep -v '^ *+' conftest.er1 >conftest.err
2335 rm -f conftest.er1
2336 cat conftest.err >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -z "$ac_c_werror_flag"
2340 || test ! -s conftest.err'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; } &&
2346 { ac_try='test -s conftest.$ac_objext'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 (eval $ac_try) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; }; then
2352 ac_compiler_gnu=yes
2353 else
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2357 ac_compiler_gnu=no
2359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2363 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2364 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2365 GCC=`test $ac_compiler_gnu = yes && echo yes`
2366 ac_test_CFLAGS=${CFLAGS+set}
2367 ac_save_CFLAGS=$CFLAGS
2368 CFLAGS="-g"
2369 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2370 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2371 if test "${ac_cv_prog_cc_g+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374 cat >conftest.$ac_ext <<_ACEOF
2375 /* confdefs.h. */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2382 main ()
2386 return 0;
2388 _ACEOF
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 ac_cv_prog_cc_g=yes
2412 else
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2416 ac_cv_prog_cc_g=no
2418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2420 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2421 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2422 if test "$ac_test_CFLAGS" = set; then
2423 CFLAGS=$ac_save_CFLAGS
2424 elif test $ac_cv_prog_cc_g = yes; then
2425 if test "$GCC" = yes; then
2426 CFLAGS="-g -O2"
2427 else
2428 CFLAGS="-g"
2430 else
2431 if test "$GCC" = yes; then
2432 CFLAGS="-O2"
2433 else
2434 CFLAGS=
2437 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2438 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2439 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442 ac_cv_prog_cc_stdc=no
2443 ac_save_CC=$CC
2444 cat >conftest.$ac_ext <<_ACEOF
2445 /* confdefs.h. */
2446 _ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2450 #include <stdarg.h>
2451 #include <stdio.h>
2452 #include <sys/types.h>
2453 #include <sys/stat.h>
2454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2455 struct buf { int x; };
2456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2457 static char *e (p, i)
2458 char **p;
2459 int i;
2461 return p[i];
2463 static char *f (char * (*g) (char **, int), char **p, ...)
2465 char *s;
2466 va_list v;
2467 va_start (v,p);
2468 s = g (p, va_arg (v,int));
2469 va_end (v);
2470 return s;
2473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2474 function prototypes and stuff, but not '\xHH' hex character constants.
2475 These don't provoke an error unfortunately, instead are silently treated
2476 as 'x'. The following induces an error, until -std1 is added to get
2477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2478 array size at least. It's necessary to write '\x00'==0 to get something
2479 that's true only with -std1. */
2480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2482 int test (int i, double x);
2483 struct s1 {int (*f) (int a);};
2484 struct s2 {int (*f) (double a);};
2485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2486 int argc;
2487 char **argv;
2489 main ()
2491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2493 return 0;
2495 _ACEOF
2496 # Don't try gcc -ansi; that turns off useful extensions and
2497 # breaks some systems' header files.
2498 # AIX -qlanglvl=ansi
2499 # Ultrix and OSF/1 -std1
2500 # HP-UX 10.20 and later -Ae
2501 # HP-UX older versions -Aa -D_HPUX_SOURCE
2502 # SVR4 -Xc -D__EXTENSIONS__
2503 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2505 CC="$ac_save_CC $ac_arg"
2506 rm -f conftest.$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>conftest.er1
2509 ac_status=$?
2510 grep -v '^ *+' conftest.er1 >conftest.err
2511 rm -f conftest.er1
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -z "$ac_c_werror_flag"
2516 || test ! -s conftest.err'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 ac_cv_prog_cc_stdc=$ac_arg
2529 break
2530 else
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2535 rm -f conftest.err conftest.$ac_objext
2536 done
2537 rm -f conftest.$ac_ext conftest.$ac_objext
2538 CC=$ac_save_CC
2542 case "x$ac_cv_prog_cc_stdc" in
2543 x|xno)
2544 echo "$as_me:$LINENO: result: none needed" >&5
2545 echo "${ECHO_T}none needed" >&6 ;;
2547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2548 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2549 CC="$CC $ac_cv_prog_cc_stdc" ;;
2550 esac
2552 # Some people use a C++ compiler to compile C. Since we use `exit',
2553 # in C++ we need to declare it. In case someone uses the same compiler
2554 # for both compiling C and C++ we need to have the C++ compiler decide
2555 # the declaration of exit, since it's the most demanding environment.
2556 cat >conftest.$ac_ext <<_ACEOF
2557 #ifndef __cplusplus
2558 choke me
2559 #endif
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2564 ac_status=$?
2565 grep -v '^ *+' conftest.er1 >conftest.err
2566 rm -f conftest.er1
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -z "$ac_c_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 for ac_declaration in \
2584 '' \
2585 'extern "C" void std::exit (int) throw (); using std::exit;' \
2586 'extern "C" void std::exit (int); using std::exit;' \
2587 'extern "C" void exit (int) throw ();' \
2588 'extern "C" void exit (int);' \
2589 'void exit (int);'
2591 cat >conftest.$ac_ext <<_ACEOF
2592 /* confdefs.h. */
2593 _ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2597 $ac_declaration
2598 #include <stdlib.h>
2600 main ()
2602 exit (42);
2604 return 0;
2606 _ACEOF
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2610 ac_status=$?
2611 grep -v '^ *+' conftest.er1 >conftest.err
2612 rm -f conftest.er1
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2630 else
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2634 continue
2636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 cat >conftest.$ac_ext <<_ACEOF
2638 /* confdefs.h. */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2643 $ac_declaration
2645 main ()
2647 exit (42);
2649 return 0;
2651 _ACEOF
2652 rm -f conftest.$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 break
2675 else
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2681 done
2682 rm -f conftest*
2683 if test -n "$ac_declaration"; then
2684 echo '#ifdef __cplusplus' >>confdefs.h
2685 echo $ac_declaration >>confdefs.h
2686 echo '#endif' >>confdefs.h
2689 else
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695 ac_ext=c
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704 echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
2705 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6
2707 # Check whether --with-cxx_main or --without-cxx_main was given.
2708 if test "${with_cxx_main+set}" = set; then
2709 withval="$with_cxx_main"
2712 case $withval in
2713 no) with_cxx_main=no
2714 MAINCC='$(CC)';;
2715 yes) with_cxx_main=yes
2716 MAINCC='$(CXX)';;
2717 *) with_cxx_main=yes
2718 MAINCC=$withval
2719 if test -z "$CXX"
2720 then
2721 CXX=$withval
2722 fi;;
2723 esac
2724 else
2726 with_cxx_main=no
2727 MAINCC='$(CC)'
2730 echo "$as_me:$LINENO: result: $with_cxx_main" >&5
2731 echo "${ECHO_T}$with_cxx_main" >&6
2733 preset_cxx="$CXX"
2734 if test -z "$CXX"
2735 then
2736 case "$CC" in
2737 gcc) # Extract the first word of "g++", so it can be a program name with args.
2738 set dummy g++; ac_word=$2
2739 echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2741 if test "${ac_cv_path_CXX+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744 case $CXX in
2745 [\\/]* | ?:[\\/]*)
2746 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in notfound
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2760 done
2761 done
2763 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
2765 esac
2767 CXX=$ac_cv_path_CXX
2769 if test -n "$CXX"; then
2770 echo "$as_me:$LINENO: result: $CXX" >&5
2771 echo "${ECHO_T}$CXX" >&6
2772 else
2773 echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2777 cc) # Extract the first word of "c++", so it can be a program name with args.
2778 set dummy c++; ac_word=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_path_CXX+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 case $CXX in
2785 [\\/]* | ?:[\\/]*)
2786 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in notfound
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2800 done
2801 done
2803 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
2805 esac
2807 CXX=$ac_cv_path_CXX
2809 if test -n "$CXX"; then
2810 echo "$as_me:$LINENO: result: $CXX" >&5
2811 echo "${ECHO_T}$CXX" >&6
2812 else
2813 echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6
2817 esac
2818 if test "$CXX" = "notfound"
2819 then
2820 CXX=""
2823 if test -z "$CXX"
2824 then
2825 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy $ac_prog; ac_word=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_CXX+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834 if test -n "$CXX"; then
2835 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CXX="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2848 done
2849 done
2853 CXX=$ac_cv_prog_CXX
2854 if test -n "$CXX"; then
2855 echo "$as_me:$LINENO: result: $CXX" >&5
2856 echo "${ECHO_T}$CXX" >&6
2857 else
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2862 test -n "$CXX" && break
2863 done
2864 test -n "$CXX" || CXX="notfound"
2866 if test "$CXX" = "notfound"
2867 then
2868 CXX=""
2871 if test "$preset_cxx" != "$CXX"
2872 then
2873 { echo "$as_me:$LINENO: WARNING:
2875 By default, distutils will build C++ extension modules with \"$CXX\".
2876 If this is not intended, then set CXX on the configure command line.
2877 " >&5
2878 echo "$as_me: WARNING:
2880 By default, distutils will build C++ extension modules with \"$CXX\".
2881 If this is not intended, then set CXX on the configure command line.
2882 " >&2;}
2886 # checks for UNIX variants that set C preprocessor variables
2888 ac_ext=c
2889 ac_cpp='$CPP $CPPFLAGS'
2890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2894 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2895 # On Suns, sometimes $CPP names a directory.
2896 if test -n "$CPP" && test -d "$CPP"; then
2897 CPP=
2899 if test -z "$CPP"; then
2900 if test "${ac_cv_prog_CPP+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 # Double quotes because CPP needs to be expanded
2904 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2906 ac_preproc_ok=false
2907 for ac_c_preproc_warn_flag in '' yes
2909 # Use a header file that comes with gcc, so configuring glibc
2910 # with a fresh cross-compiler works.
2911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2912 # <limits.h> exists even on freestanding compilers.
2913 # On the NeXT, cc -E runs the code through the compiler's parser,
2914 # not just through cpp. "Syntax error" is here to catch this case.
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h. */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921 #ifdef __STDC__
2922 # include <limits.h>
2923 #else
2924 # include <assert.h>
2925 #endif
2926 Syntax error
2927 _ACEOF
2928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2930 ac_status=$?
2931 grep -v '^ *+' conftest.er1 >conftest.err
2932 rm -f conftest.er1
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } >/dev/null; then
2936 if test -s conftest.err; then
2937 ac_cpp_err=$ac_c_preproc_warn_flag
2938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2939 else
2940 ac_cpp_err=
2942 else
2943 ac_cpp_err=yes
2945 if test -z "$ac_cpp_err"; then
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 # Broken: fails on valid input.
2952 continue
2954 rm -f conftest.err conftest.$ac_ext
2956 # OK, works on sane cases. Now check whether non-existent headers
2957 # can be detected and how.
2958 cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h. */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964 #include <ac_nonexistent.h>
2965 _ACEOF
2966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2968 ac_status=$?
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } >/dev/null; then
2974 if test -s conftest.err; then
2975 ac_cpp_err=$ac_c_preproc_warn_flag
2976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2977 else
2978 ac_cpp_err=
2980 else
2981 ac_cpp_err=yes
2983 if test -z "$ac_cpp_err"; then
2984 # Broken: success on invalid input.
2985 continue
2986 else
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 # Passes both tests.
2991 ac_preproc_ok=:
2992 break
2994 rm -f conftest.err conftest.$ac_ext
2996 done
2997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2998 rm -f conftest.err conftest.$ac_ext
2999 if $ac_preproc_ok; then
3000 break
3003 done
3004 ac_cv_prog_CPP=$CPP
3007 CPP=$ac_cv_prog_CPP
3008 else
3009 ac_cv_prog_CPP=$CPP
3011 echo "$as_me:$LINENO: result: $CPP" >&5
3012 echo "${ECHO_T}$CPP" >&6
3013 ac_preproc_ok=false
3014 for ac_c_preproc_warn_flag in '' yes
3016 # Use a header file that comes with gcc, so configuring glibc
3017 # with a fresh cross-compiler works.
3018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3019 # <limits.h> exists even on freestanding compilers.
3020 # On the NeXT, cc -E runs the code through the compiler's parser,
3021 # not just through cpp. "Syntax error" is here to catch this case.
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3028 #ifdef __STDC__
3029 # include <limits.h>
3030 #else
3031 # include <assert.h>
3032 #endif
3033 Syntax error
3034 _ACEOF
3035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3037 ac_status=$?
3038 grep -v '^ *+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } >/dev/null; then
3043 if test -s conftest.err; then
3044 ac_cpp_err=$ac_c_preproc_warn_flag
3045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3046 else
3047 ac_cpp_err=
3049 else
3050 ac_cpp_err=yes
3052 if test -z "$ac_cpp_err"; then
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3058 # Broken: fails on valid input.
3059 continue
3061 rm -f conftest.err conftest.$ac_ext
3063 # OK, works on sane cases. Now check whether non-existent headers
3064 # can be detected and how.
3065 cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h. */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071 #include <ac_nonexistent.h>
3072 _ACEOF
3073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3075 ac_status=$?
3076 grep -v '^ *+' conftest.er1 >conftest.err
3077 rm -f conftest.er1
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } >/dev/null; then
3081 if test -s conftest.err; then
3082 ac_cpp_err=$ac_c_preproc_warn_flag
3083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3084 else
3085 ac_cpp_err=
3087 else
3088 ac_cpp_err=yes
3090 if test -z "$ac_cpp_err"; then
3091 # Broken: success on invalid input.
3092 continue
3093 else
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3097 # Passes both tests.
3098 ac_preproc_ok=:
3099 break
3101 rm -f conftest.err conftest.$ac_ext
3103 done
3104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3105 rm -f conftest.err conftest.$ac_ext
3106 if $ac_preproc_ok; then
3108 else
3109 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3112 See \`config.log' for more details." >&2;}
3113 { (exit 1); exit 1; }; }
3116 ac_ext=c
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123 echo "$as_me:$LINENO: checking for egrep" >&5
3124 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3125 if test "${ac_cv_prog_egrep+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3129 then ac_cv_prog_egrep='grep -E'
3130 else ac_cv_prog_egrep='egrep'
3133 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3134 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3135 EGREP=$ac_cv_prog_egrep
3139 echo "$as_me:$LINENO: checking for AIX" >&5
3140 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3141 cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h. */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3147 #ifdef _AIX
3149 #endif
3151 _ACEOF
3152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3153 $EGREP "yes" >/dev/null 2>&1; then
3154 echo "$as_me:$LINENO: result: yes" >&5
3155 echo "${ECHO_T}yes" >&6
3156 cat >>confdefs.h <<\_ACEOF
3157 #define _ALL_SOURCE 1
3158 _ACEOF
3160 else
3161 echo "$as_me:$LINENO: result: no" >&5
3162 echo "${ECHO_T}no" >&6
3164 rm -f conftest*
3168 # Check for unsupported systems
3169 case $ac_sys_system/$ac_sys_release in
3170 Linux*/1*)
3171 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
3172 echo See README for details.
3173 exit 1;;
3174 esac
3177 echo "$as_me:$LINENO: checking for --with-suffix" >&5
3178 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
3180 # Check whether --with-suffix or --without-suffix was given.
3181 if test "${with_suffix+set}" = set; then
3182 withval="$with_suffix"
3184 case $withval in
3185 no) EXEEXT=;;
3186 yes) EXEEXT=.exe;;
3187 *) EXEEXT=$withval;;
3188 esac
3190 echo "$as_me:$LINENO: result: $EXEEXT" >&5
3191 echo "${ECHO_T}$EXEEXT" >&6
3193 # Test whether we're running on a non-case-sensitive system, in which
3194 # case we give a warning if no ext is given
3196 echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3197 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
3198 if test ! -d CaseSensitiveTestDir; then
3199 mkdir CaseSensitiveTestDir
3202 if test -d casesensitivetestdir
3203 then
3204 echo "$as_me:$LINENO: result: yes" >&5
3205 echo "${ECHO_T}yes" >&6
3206 BUILDEXEEXT=.exe
3207 else
3208 echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3210 BUILDEXEEXT=$EXEEXT
3212 rmdir CaseSensitiveTestDir
3214 case $MACHDEP in
3215 bsdos*)
3216 case $CC in
3217 gcc) CC="$CC -D_HAVE_BSDI";;
3218 esac;;
3219 esac
3221 case $ac_sys_system in
3222 hp*|HP*)
3223 case $CC in
3224 cc|*/cc) CC="$CC -Ae";;
3225 esac;;
3226 Monterey*)
3227 case $CC in
3228 cc) CC="$CC -Wl,-Bexport";;
3229 esac;;
3230 SunOS*)
3231 # Some functions have a prototype only with that define, e.g. confstr
3233 cat >>confdefs.h <<\_ACEOF
3234 #define __EXTENSIONS__ 1
3235 _ACEOF
3238 esac
3242 echo "$as_me:$LINENO: checking LIBRARY" >&5
3243 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
3244 if test -z "$LIBRARY"
3245 then
3246 LIBRARY='libpython$(VERSION).a'
3248 echo "$as_me:$LINENO: result: $LIBRARY" >&5
3249 echo "${ECHO_T}$LIBRARY" >&6
3251 # LDLIBRARY is the name of the library to link against (as opposed to the
3252 # name of the library into which to insert object files). BLDLIBRARY is also
3253 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3254 # is blank as the main program is not linked directly against LDLIBRARY.
3255 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3256 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3257 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3258 # DLLLIBRARY is the shared (i.e., DLL) library.
3260 # RUNSHARED is used to run shared python without installed libraries
3262 # INSTSONAME is the name of the shared library that will be use to install
3263 # on the system - some systems like version suffix, others don't
3270 LDLIBRARY="$LIBRARY"
3271 BLDLIBRARY='$(LDLIBRARY)'
3272 INSTSONAME='$(LDLIBRARY)'
3273 DLLLIBRARY=''
3274 LDLIBRARYDIR=''
3275 RUNSHARED=''
3277 # LINKCC is the command that links the python executable -- default is $(CC).
3278 # If CXX is set, and if it is needed to link a main function that was
3279 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3280 # python might then depend on the C++ runtime
3281 # This is altered for AIX in order to build the export list before
3282 # linking.
3284 echo "$as_me:$LINENO: checking LINKCC" >&5
3285 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
3286 if test -z "$LINKCC"
3287 then
3288 LINKCC='$(PURIFY) $(MAINCC)'
3289 case $ac_sys_system in
3290 AIX*)
3291 exp_extra="\"\""
3292 if test $ac_sys_release -ge 5 -o \
3293 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3294 exp_extra="."
3296 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3297 Monterey64*)
3298 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
3299 esac
3301 echo "$as_me:$LINENO: result: $LINKCC" >&5
3302 echo "${ECHO_T}$LINKCC" >&6
3304 echo "$as_me:$LINENO: checking for --enable-shared" >&5
3305 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
3306 # Check whether --enable-shared or --disable-shared was given.
3307 if test "${enable_shared+set}" = set; then
3308 enableval="$enable_shared"
3312 if test -z "$enable_shared"
3313 then
3314 case $ac_sys_system in
3315 CYGWIN* | atheos*)
3316 enable_shared="yes";;
3318 enable_shared="no";;
3319 esac
3321 echo "$as_me:$LINENO: result: $enable_shared" >&5
3322 echo "${ECHO_T}$enable_shared" >&6
3324 echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3325 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6
3326 # Check whether --enable-profiling or --disable-profiling was given.
3327 if test "${enable_profiling+set}" = set; then
3328 enableval="$enable_profiling"
3329 ac_save_cc="$CC"
3330 CC="$CC -pg"
3331 if test "$cross_compiling" = yes; then
3332 ac_enable_profiling="no"
3333 else
3334 cat >conftest.$ac_ext <<_ACEOF
3335 /* confdefs.h. */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3340 int main() { return 0; }
3341 _ACEOF
3342 rm -f conftest$ac_exeext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3344 (eval $ac_link) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_enable_profiling="yes"
3354 else
3355 echo "$as_me: program exited with status $ac_status" >&5
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 ( exit $ac_status )
3360 ac_enable_profiling="no"
3362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3364 CC="$ac_save_cc"
3366 echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3367 echo "${ECHO_T}$ac_enable_profiling" >&6
3369 case "$ac_enable_profiling" in
3370 "yes")
3371 BASECFLAGS="-pg $BASECFLAGS"
3372 LDFLAGS="-pg $LDFLAGS"
3374 esac
3376 echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3377 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
3379 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3380 # library that we build, but we do not want to link against it (we
3381 # will find it with a -framework option). For this reason there is an
3382 # extra variable BLDLIBRARY against which Python and the extension
3383 # modules are linked, BLDLIBRARY. This is normally the same as
3384 # LDLIBRARY, but empty for MacOSX framework builds.
3385 if test "$enable_framework"
3386 then
3387 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3388 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
3389 BLDLIBRARY=''
3390 else
3391 BLDLIBRARY='$(LDLIBRARY)'
3394 # Other platforms follow
3395 if test $enable_shared = "yes"; then
3397 cat >>confdefs.h <<\_ACEOF
3398 #define Py_ENABLE_SHARED 1
3399 _ACEOF
3401 case $ac_sys_system in
3402 BeOS*)
3403 LDLIBRARY='libpython$(VERSION).so'
3405 CYGWIN*)
3406 LDLIBRARY='libpython$(VERSION).dll.a'
3407 DLLLIBRARY='libpython$(VERSION).dll'
3409 SunOS*)
3410 LDLIBRARY='libpython$(VERSION).so'
3411 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
3412 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3413 INSTSONAME="$LDLIBRARY".$SOVERSION
3415 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
3416 LDLIBRARY='libpython$(VERSION).so'
3417 BLDLIBRARY='-L. -lpython$(VERSION)'
3418 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3419 case $ac_sys_system in
3420 FreeBSD*)
3421 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
3423 esac
3424 INSTSONAME="$LDLIBRARY".$SOVERSION
3426 hp*|HP*)
3427 case `uname -m` in
3428 ia64)
3429 LDLIBRARY='libpython$(VERSION).so'
3432 LDLIBRARY='libpython$(VERSION).sl'
3434 esac
3435 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3436 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
3438 OSF*)
3439 LDLIBRARY='libpython$(VERSION).so'
3440 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3441 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
3443 atheos*)
3444 LDLIBRARY='libpython$(VERSION).so'
3445 BLDLIBRARY='-L. -lpython$(VERSION)'
3446 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3448 esac
3449 else # shared is disabled
3450 case $ac_sys_system in
3451 CYGWIN*)
3452 BLDLIBRARY='$(LIBRARY)'
3453 LDLIBRARY='libpython$(VERSION).dll.a'
3455 esac
3458 echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3459 echo "${ECHO_T}$LDLIBRARY" >&6
3461 if test -n "$ac_tool_prefix"; then
3462 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3463 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3464 echo "$as_me:$LINENO: checking for $ac_word" >&5
3465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3466 if test "${ac_cv_prog_RANLIB+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469 if test -n "$RANLIB"; then
3470 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3483 done
3484 done
3488 RANLIB=$ac_cv_prog_RANLIB
3489 if test -n "$RANLIB"; then
3490 echo "$as_me:$LINENO: result: $RANLIB" >&5
3491 echo "${ECHO_T}$RANLIB" >&6
3492 else
3493 echo "$as_me:$LINENO: result: no" >&5
3494 echo "${ECHO_T}no" >&6
3498 if test -z "$ac_cv_prog_RANLIB"; then
3499 ac_ct_RANLIB=$RANLIB
3500 # Extract the first word of "ranlib", so it can be a program name with args.
3501 set dummy ranlib; ac_word=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 if test -n "$ac_ct_RANLIB"; then
3508 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_ac_ct_RANLIB="ranlib"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3521 done
3522 done
3524 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3528 if test -n "$ac_ct_RANLIB"; then
3529 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3530 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3531 else
3532 echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3536 RANLIB=$ac_ct_RANLIB
3537 else
3538 RANLIB="$ac_cv_prog_RANLIB"
3542 for ac_prog in ar aal
3544 # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy $ac_prog; ac_word=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_prog_AR+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551 if test -n "$AR"; then
3552 ac_cv_prog_AR="$AR" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_AR="$ac_prog"
3562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 break 2
3565 done
3566 done
3570 AR=$ac_cv_prog_AR
3571 if test -n "$AR"; then
3572 echo "$as_me:$LINENO: result: $AR" >&5
3573 echo "${ECHO_T}$AR" >&6
3574 else
3575 echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3579 test -n "$AR" && break
3580 done
3581 test -n "$AR" || AR="ar"
3585 # Extract the first word of "svnversion", so it can be a program name with args.
3586 set dummy svnversion; ac_word=$2
3587 echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3589 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592 if test -n "$SVNVERSION"; then
3593 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_SVNVERSION="found"
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 break 2
3606 done
3607 done
3609 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
3612 SVNVERSION=$ac_cv_prog_SVNVERSION
3613 if test -n "$SVNVERSION"; then
3614 echo "$as_me:$LINENO: result: $SVNVERSION" >&5
3615 echo "${ECHO_T}$SVNVERSION" >&6
3616 else
3617 echo "$as_me:$LINENO: result: no" >&5
3618 echo "${ECHO_T}no" >&6
3621 if test $SVNVERSION = found
3622 then
3623 SVNVERSION="svnversion \$(srcdir)"
3624 else
3625 SVNVERSION="echo exported"
3628 case $MACHDEP in
3629 bsdos*|hp*|HP*)
3630 # install -d does not work on BSDI or HP-UX
3631 if test -z "$INSTALL"
3632 then
3633 INSTALL="${srcdir}/install-sh -c"
3635 esac
3636 ac_aux_dir=
3637 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3638 if test -f $ac_dir/install-sh; then
3639 ac_aux_dir=$ac_dir
3640 ac_install_sh="$ac_aux_dir/install-sh -c"
3641 break
3642 elif test -f $ac_dir/install.sh; then
3643 ac_aux_dir=$ac_dir
3644 ac_install_sh="$ac_aux_dir/install.sh -c"
3645 break
3646 elif test -f $ac_dir/shtool; then
3647 ac_aux_dir=$ac_dir
3648 ac_install_sh="$ac_aux_dir/shtool install -c"
3649 break
3651 done
3652 if test -z "$ac_aux_dir"; then
3653 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3654 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3655 { (exit 1); exit 1; }; }
3657 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3658 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3659 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3661 # Find a good install program. We prefer a C program (faster),
3662 # so one script is as good as another. But avoid the broken or
3663 # incompatible versions:
3664 # SysV /etc/install, /usr/sbin/install
3665 # SunOS /usr/etc/install
3666 # IRIX /sbin/install
3667 # AIX /bin/install
3668 # AmigaOS /C/install, which installs bootblocks on floppy discs
3669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3672 # OS/2's system install, which has a completely different semantic
3673 # ./install, which can be erroneously created by make from ./install.sh.
3674 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3675 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3676 if test -z "$INSTALL"; then
3677 if test "${ac_cv_path_install+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 # Account for people who put trailing slashes in PATH elements.
3686 case $as_dir/ in
3687 ./ | .// | /cC/* | \
3688 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3689 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3690 /usr/ucb/* ) ;;
3692 # OSF1 and SCO ODT 3.0 have their own names for install.
3693 # Don't use installbsd from OSF since it installs stuff as root
3694 # by default.
3695 for ac_prog in ginstall scoinst install; do
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3698 if test $ac_prog = install &&
3699 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3700 # AIX install. It has an incompatible calling convention.
3702 elif test $ac_prog = install &&
3703 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3704 # program-specific install script used by HP pwplus--don't use.
3706 else
3707 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3708 break 3
3711 done
3712 done
3714 esac
3715 done
3719 if test "${ac_cv_path_install+set}" = set; then
3720 INSTALL=$ac_cv_path_install
3721 else
3722 # As a last resort, use the slow shell script. We don't cache a
3723 # path for INSTALL within a source directory, because that will
3724 # break other packages using the cache if that directory is
3725 # removed, or if the path is relative.
3726 INSTALL=$ac_install_sh
3729 echo "$as_me:$LINENO: result: $INSTALL" >&5
3730 echo "${ECHO_T}$INSTALL" >&6
3732 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3733 # It thinks the first close brace ends the variable substitution.
3734 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3736 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3738 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3741 # Not every filesystem supports hard links
3743 if test -z "$LN" ; then
3744 case $ac_sys_system in
3745 BeOS*) LN="ln -s";;
3746 CYGWIN*) LN="ln -s";;
3747 atheos*) LN="ln -s";;
3748 *) LN=ln;;
3749 esac
3752 # Check for --with-pydebug
3753 echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3754 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3756 # Check whether --with-pydebug or --without-pydebug was given.
3757 if test "${with_pydebug+set}" = set; then
3758 withval="$with_pydebug"
3760 if test "$withval" != no
3761 then
3763 cat >>confdefs.h <<\_ACEOF
3764 #define Py_DEBUG 1
3765 _ACEOF
3767 echo "$as_me:$LINENO: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6;
3769 Py_DEBUG='true'
3770 else echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6; Py_DEBUG='false'
3773 else
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3778 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
3779 # merged with this chunk of code?
3781 # Optimizer/debugger flags
3782 # ------------------------
3783 # (The following bit of code is complicated enough - please keep things
3784 # indented properly. Just pretend you're editing Python code. ;-)
3786 # There are two parallel sets of case statements below, one that checks to
3787 # see if OPT was set and one that does BASECFLAGS setting based upon
3788 # compiler and platform. BASECFLAGS tweaks need to be made even if the
3789 # user set OPT.
3791 # tweak OPT based on compiler and platform, only if the user didn't set
3792 # it on the command line
3794 if test -z "$OPT"
3795 then
3796 case $GCC in
3797 yes)
3798 if test "$CC" != 'g++' ; then
3799 STRICT_PROTO="-Wstrict-prototypes"
3801 case $ac_cv_prog_cc_g in
3802 yes)
3803 if test "$Py_DEBUG" = 'true' ; then
3804 # Optimization messes up debuggers, so turn it off for
3805 # debug builds.
3806 OPT="-g -Wall $STRICT_PROTO"
3807 else
3808 OPT="-g -O3 -Wall $STRICT_PROTO"
3812 OPT="-O3 -Wall $STRICT_PROTO"
3814 esac
3815 case $ac_sys_system in
3816 SCO_SV*) OPT="$OPT -m486 -DSCO5"
3818 esac
3822 OPT="-O"
3824 esac
3826 # The current (beta) Monterey compiler dies with optimizations
3827 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
3828 case $ac_sys_system in
3829 Monterey*)
3830 OPT=""
3832 esac
3837 # tweak BASECFLAGS based on compiler and platform
3838 case $GCC in
3839 yes)
3840 # Python violates C99 rules, by casting between incompatible
3841 # pointer types. GCC may generate bad code as a result of that,
3842 # so use -fno-strict-aliasing if supported.
3843 echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
3844 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6
3845 ac_save_cc="$CC"
3846 CC="$CC -fno-strict-aliasing"
3847 if test "$cross_compiling" = yes; then
3848 ac_cv_no_strict_aliasing_ok=no
3849 else
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 int main() { return 0; }
3857 _ACEOF
3858 rm -f conftest$ac_exeext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3860 (eval $ac_link) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 ac_cv_no_strict_aliasing_ok=yes
3870 else
3871 echo "$as_me: program exited with status $ac_status" >&5
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 ( exit $ac_status )
3876 ac_cv_no_strict_aliasing_ok=no
3878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3880 CC="$ac_save_cc"
3881 echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
3882 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6
3883 if test $ac_cv_no_strict_aliasing_ok = yes
3884 then
3885 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
3887 case $ac_sys_system in
3888 SCO_SV*)
3889 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
3891 # is there any other compiler on Darwin besides gcc?
3892 Darwin*)
3893 BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
3894 if test "${enable_universalsdk}"; then
3895 BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
3899 OSF*)
3900 BASECFLAGS="$BASECFLAGS -mieee"
3902 esac
3906 case $ac_sys_system in
3907 OpenUNIX*|UnixWare*)
3908 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
3910 OSF*)
3911 BASECFLAGS="$BASECFLAGS -ieee -std"
3913 SCO_SV*)
3914 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
3916 esac
3918 esac
3920 if test "$Py_DEBUG" = 'true'; then
3922 else
3923 OPT="-DNDEBUG $OPT"
3926 if test "$ac_arch_flags"
3927 then
3928 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
3931 # disable check for icc since it seems to pass, but generates a warning
3932 if test "$CC" = icc
3933 then
3934 ac_cv_opt_olimit_ok=no
3937 echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3938 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3939 if test "${ac_cv_opt_olimit_ok+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942 ac_save_cc="$CC"
3943 CC="$CC -OPT:Olimit=0"
3944 if test "$cross_compiling" = yes; then
3945 ac_cv_opt_olimit_ok=no
3946 else
3947 cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h. */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 int main() { return 0; }
3954 _ACEOF
3955 rm -f conftest$ac_exeext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3957 (eval $ac_link) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
3966 ac_cv_opt_olimit_ok=yes
3967 else
3968 echo "$as_me: program exited with status $ac_status" >&5
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3972 ( exit $ac_status )
3973 ac_cv_opt_olimit_ok=no
3975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3977 CC="$ac_save_cc"
3980 echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3981 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
3982 if test $ac_cv_opt_olimit_ok = yes; then
3983 case $ac_sys_system in
3984 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
3985 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
3986 # environment?
3987 Darwin*)
3990 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
3992 esac
3993 else
3994 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3995 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3996 if test "${ac_cv_olimit_ok+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999 ac_save_cc="$CC"
4000 CC="$CC -Olimit 1500"
4001 if test "$cross_compiling" = yes; then
4002 ac_cv_olimit_ok=no
4003 else
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 int main() { return 0; }
4011 _ACEOF
4012 rm -f conftest$ac_exeext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4014 (eval $ac_link) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 (eval $ac_try) 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 ac_cv_olimit_ok=yes
4024 else
4025 echo "$as_me: program exited with status $ac_status" >&5
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 ( exit $ac_status )
4030 ac_cv_olimit_ok=no
4032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4034 CC="$ac_save_cc"
4037 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4038 echo "${ECHO_T}$ac_cv_olimit_ok" >&6
4039 if test $ac_cv_olimit_ok = yes; then
4040 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4044 # Check whether GCC supports PyArg_ParseTuple format
4045 if test "$GCC" = "yes"
4046 then
4047 echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4048 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6
4049 save_CFLAGS=$CFLAGS
4050 CFLAGS="$CFLAGS -Werror"
4051 cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h. */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4058 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4061 main ()
4065 return 0;
4067 _ACEOF
4068 rm -f conftest.$ac_objext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4070 (eval $ac_compile) 2>conftest.er1
4071 ac_status=$?
4072 grep -v '^ *+' conftest.er1 >conftest.err
4073 rm -f conftest.er1
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -z "$ac_c_werror_flag"
4078 || test ! -s conftest.err'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 (eval $ac_try) 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; } &&
4084 { ac_try='test -s conftest.$ac_objext'
4085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 (eval $ac_try) 2>&5
4087 ac_status=$?
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; }; then
4091 cat >>confdefs.h <<\_ACEOF
4092 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4093 _ACEOF
4095 echo "$as_me:$LINENO: result: yes" >&5
4096 echo "${ECHO_T}yes" >&6
4097 else
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4101 echo "$as_me:$LINENO: result: no" >&5
4102 echo "${ECHO_T}no" >&6
4105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4106 CFLAGS=$save_CFLAGS
4109 # On some compilers, pthreads are available without further options
4110 # (e.g. MacOS X). On some of these systems, the compiler will not
4111 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4112 # So we have to see first whether pthreads are available without
4113 # options before we can check whether -Kpthread improves anything.
4114 echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4115 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
4116 if test "${ac_cv_pthread_is_default+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119 if test "$cross_compiling" = yes; then
4120 ac_cv_pthread_is_default=no
4121 else
4122 cat >conftest.$ac_ext <<_ACEOF
4123 /* confdefs.h. */
4124 _ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h. */
4129 #include <pthread.h>
4131 void* routine(void* p){return NULL;}
4133 int main(){
4134 pthread_t p;
4135 if(pthread_create(&p,NULL,routine,NULL)!=0)
4136 return 1;
4137 (void)pthread_detach(p);
4138 return 0;
4141 _ACEOF
4142 rm -f conftest$ac_exeext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4144 (eval $ac_link) 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4154 ac_cv_pthread_is_default=yes
4155 ac_cv_kthread=no
4156 ac_cv_pthread=no
4158 else
4159 echo "$as_me: program exited with status $ac_status" >&5
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 ( exit $ac_status )
4164 ac_cv_pthread_is_default=no
4166 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4171 echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4172 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
4175 if test $ac_cv_pthread_is_default = yes
4176 then
4177 ac_cv_kpthread=no
4178 else
4179 # -Kpthread, if available, provides the right #defines
4180 # and linker options to make pthread_create available
4181 # Some compilers won't report that they do not support -Kpthread,
4182 # so we need to run a program to see whether it really made the
4183 # function available.
4184 echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4185 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
4186 if test "${ac_cv_kpthread+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189 ac_save_cc="$CC"
4190 CC="$CC -Kpthread"
4191 if test "$cross_compiling" = yes; then
4192 ac_cv_kpthread=no
4193 else
4194 cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h. */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4201 #include <pthread.h>
4203 void* routine(void* p){return NULL;}
4205 int main(){
4206 pthread_t p;
4207 if(pthread_create(&p,NULL,routine,NULL)!=0)
4208 return 1;
4209 (void)pthread_detach(p);
4210 return 0;
4213 _ACEOF
4214 rm -f conftest$ac_exeext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4216 (eval $ac_link) 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 (eval $ac_try) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4225 ac_cv_kpthread=yes
4226 else
4227 echo "$as_me: program exited with status $ac_status" >&5
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4231 ( exit $ac_status )
4232 ac_cv_kpthread=no
4234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4236 CC="$ac_save_cc"
4239 echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4240 echo "${ECHO_T}$ac_cv_kpthread" >&6
4243 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4244 then
4245 # -Kthread, if available, provides the right #defines
4246 # and linker options to make pthread_create available
4247 # Some compilers won't report that they do not support -Kthread,
4248 # so we need to run a program to see whether it really made the
4249 # function available.
4250 echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4251 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6
4252 if test "${ac_cv_kthread+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255 ac_save_cc="$CC"
4256 CC="$CC -Kthread"
4257 if test "$cross_compiling" = yes; then
4258 ac_cv_kthread=no
4259 else
4260 cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h. */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4267 #include <pthread.h>
4269 void* routine(void* p){return NULL;}
4271 int main(){
4272 pthread_t p;
4273 if(pthread_create(&p,NULL,routine,NULL)!=0)
4274 return 1;
4275 (void)pthread_detach(p);
4276 return 0;
4279 _ACEOF
4280 rm -f conftest$ac_exeext
4281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4282 (eval $ac_link) 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 (eval $ac_try) 2>&5
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4291 ac_cv_kthread=yes
4292 else
4293 echo "$as_me: program exited with status $ac_status" >&5
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4297 ( exit $ac_status )
4298 ac_cv_kthread=no
4300 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4302 CC="$ac_save_cc"
4305 echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4306 echo "${ECHO_T}$ac_cv_kthread" >&6
4309 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
4310 then
4311 # -pthread, if available, provides the right #defines
4312 # and linker options to make pthread_create available
4313 # Some compilers won't report that they do not support -pthread,
4314 # so we need to run a program to see whether it really made the
4315 # function available.
4316 echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4317 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6
4318 if test "${ac_cv_thread+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321 ac_save_cc="$CC"
4322 CC="$CC -pthread"
4323 if test "$cross_compiling" = yes; then
4324 ac_cv_pthread=no
4325 else
4326 cat >conftest.$ac_ext <<_ACEOF
4327 /* confdefs.h. */
4328 _ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4333 #include <pthread.h>
4335 void* routine(void* p){return NULL;}
4337 int main(){
4338 pthread_t p;
4339 if(pthread_create(&p,NULL,routine,NULL)!=0)
4340 return 1;
4341 (void)pthread_detach(p);
4342 return 0;
4345 _ACEOF
4346 rm -f conftest$ac_exeext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4348 (eval $ac_link) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 (eval $ac_try) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4357 ac_cv_pthread=yes
4358 else
4359 echo "$as_me: program exited with status $ac_status" >&5
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 ( exit $ac_status )
4364 ac_cv_pthread=no
4366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4368 CC="$ac_save_cc"
4371 echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
4372 echo "${ECHO_T}$ac_cv_pthread" >&6
4375 # If we have set a CC compiler flag for thread support then
4376 # check if it works for CXX, too.
4377 ac_cv_cxx_thread=no
4378 if test ! -z "$CXX"
4379 then
4380 echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
4381 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6
4382 ac_save_cxx="$CXX"
4384 if test "$ac_cv_kpthread" = "yes"
4385 then
4386 CXX="$CXX -Kpthread"
4387 ac_cv_cxx_thread=yes
4388 elif test "$ac_cv_kthread" = "yes"
4389 then
4390 CXX="$CXX -Kthread"
4391 ac_cv_cxx_thread=yes
4392 elif test "$ac_cv_pthread" = "yes"
4393 then
4394 CXX="$CXX -pthread"
4395 ac_cv_cxx_thread=yes
4398 if test $ac_cv_cxx_thread = yes
4399 then
4400 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
4401 $CXX -c conftest.$ac_ext 2>&5
4402 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
4403 && test -s conftest$ac_exeext && ./conftest$ac_exeext
4404 then
4405 ac_cv_cxx_thread=yes
4406 else
4407 ac_cv_cxx_thread=no
4409 rm -fr conftest*
4411 echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
4412 echo "${ECHO_T}$ac_cv_cxx_thread" >&6
4414 CXX="$ac_save_cxx"
4417 # checks for header files
4418 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4419 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4420 if test "${ac_cv_header_stdc+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423 cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h. */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 #include <stdlib.h>
4430 #include <stdarg.h>
4431 #include <string.h>
4432 #include <float.h>
4435 main ()
4439 return 0;
4441 _ACEOF
4442 rm -f conftest.$ac_objext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>conftest.er1
4445 ac_status=$?
4446 grep -v '^ *+' conftest.er1 >conftest.err
4447 rm -f conftest.er1
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try='test -z "$ac_c_werror_flag"
4452 || test ! -s conftest.err'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 (eval $ac_try) 2>&5
4455 ac_status=$?
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; } &&
4458 { ac_try='test -s conftest.$ac_objext'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 ac_cv_header_stdc=yes
4465 else
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4469 ac_cv_header_stdc=no
4471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4473 if test $ac_cv_header_stdc = yes; then
4474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4475 cat >conftest.$ac_ext <<_ACEOF
4476 /* confdefs.h. */
4477 _ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4481 #include <string.h>
4483 _ACEOF
4484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4485 $EGREP "memchr" >/dev/null 2>&1; then
4487 else
4488 ac_cv_header_stdc=no
4490 rm -f conftest*
4494 if test $ac_cv_header_stdc = yes; then
4495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4496 cat >conftest.$ac_ext <<_ACEOF
4497 /* confdefs.h. */
4498 _ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4502 #include <stdlib.h>
4504 _ACEOF
4505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4506 $EGREP "free" >/dev/null 2>&1; then
4508 else
4509 ac_cv_header_stdc=no
4511 rm -f conftest*
4515 if test $ac_cv_header_stdc = yes; then
4516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4517 if test "$cross_compiling" = yes; then
4519 else
4520 cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h. */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 #include <ctype.h>
4527 #if ((' ' & 0x0FF) == 0x020)
4528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4530 #else
4531 # define ISLOWER(c) \
4532 (('a' <= (c) && (c) <= 'i') \
4533 || ('j' <= (c) && (c) <= 'r') \
4534 || ('s' <= (c) && (c) <= 'z'))
4535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4536 #endif
4538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4540 main ()
4542 int i;
4543 for (i = 0; i < 256; i++)
4544 if (XOR (islower (i), ISLOWER (i))
4545 || toupper (i) != TOUPPER (i))
4546 exit(2);
4547 exit (0);
4549 _ACEOF
4550 rm -f conftest$ac_exeext
4551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4552 (eval $ac_link) 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4562 else
4563 echo "$as_me: program exited with status $ac_status" >&5
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4567 ( exit $ac_status )
4568 ac_cv_header_stdc=no
4570 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4574 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4575 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4576 if test $ac_cv_header_stdc = yes; then
4578 cat >>confdefs.h <<\_ACEOF
4579 #define STDC_HEADERS 1
4580 _ACEOF
4584 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4594 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4595 inttypes.h stdint.h unistd.h
4597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4598 echo "$as_me:$LINENO: checking for $ac_header" >&5
4599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603 cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h. */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609 $ac_includes_default
4611 #include <$ac_header>
4612 _ACEOF
4613 rm -f conftest.$ac_objext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615 (eval $ac_compile) 2>conftest.er1
4616 ac_status=$?
4617 grep -v '^ *+' conftest.er1 >conftest.err
4618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try='test -z "$ac_c_werror_flag"
4623 || test ! -s conftest.err'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 (eval $ac_try) 2>&5
4626 ac_status=$?
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; } &&
4629 { ac_try='test -s conftest.$ac_objext'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 (eval $ac_try) 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4635 eval "$as_ac_Header=yes"
4636 else
4637 echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4640 eval "$as_ac_Header=no"
4642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4647 cat >>confdefs.h <<_ACEOF
4648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4649 _ACEOF
4653 done
4705 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
4706 fcntl.h grp.h \
4707 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
4708 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
4709 unistd.h utime.h \
4710 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
4711 sys/modem.h \
4712 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
4713 sys/time.h \
4714 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
4715 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
4716 bluetooth/bluetooth.h
4718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4720 echo "$as_me:$LINENO: checking for $ac_header" >&5
4721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4727 else
4728 # Is the header compilable?
4729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4731 cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h. */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4737 $ac_includes_default
4738 #include <$ac_header>
4739 _ACEOF
4740 rm -f conftest.$ac_objext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742 (eval $ac_compile) 2>conftest.er1
4743 ac_status=$?
4744 grep -v '^ *+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try='test -z "$ac_c_werror_flag"
4750 || test ! -s conftest.err'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; } &&
4756 { ac_try='test -s conftest.$ac_objext'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 ac_header_compiler=yes
4763 else
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4767 ac_header_compiler=no
4769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4771 echo "${ECHO_T}$ac_header_compiler" >&6
4773 # Is the header present?
4774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4776 cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h. */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 #include <$ac_header>
4783 _ACEOF
4784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4786 ac_status=$?
4787 grep -v '^ *+' conftest.er1 >conftest.err
4788 rm -f conftest.er1
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } >/dev/null; then
4792 if test -s conftest.err; then
4793 ac_cpp_err=$ac_c_preproc_warn_flag
4794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4795 else
4796 ac_cpp_err=
4798 else
4799 ac_cpp_err=yes
4801 if test -z "$ac_cpp_err"; then
4802 ac_header_preproc=yes
4803 else
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4807 ac_header_preproc=no
4809 rm -f conftest.err conftest.$ac_ext
4810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4811 echo "${ECHO_T}$ac_header_preproc" >&6
4813 # So? What about this header?
4814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4815 yes:no: )
4816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4820 ac_header_preproc=yes
4822 no:yes:* )
4823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4836 cat <<\_ASBOX
4837 ## ------------------------------------------------ ##
4838 ## Report this to http://www.python.org/python-bugs ##
4839 ## ------------------------------------------------ ##
4840 _ASBOX
4842 sed "s/^/$as_me: WARNING: /" >&2
4844 esac
4845 echo "$as_me:$LINENO: checking for $ac_header" >&5
4846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 else
4850 eval "$as_ac_Header=\$ac_header_preproc"
4852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4857 cat >>confdefs.h <<_ACEOF
4858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4859 _ACEOF
4863 done
4870 ac_header_dirent=no
4871 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4872 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4873 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4874 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878 cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h. */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 #include <sys/types.h>
4885 #include <$ac_hdr>
4888 main ()
4890 if ((DIR *) 0)
4891 return 0;
4893 return 0;
4895 _ACEOF
4896 rm -f conftest.$ac_objext
4897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>conftest.er1
4899 ac_status=$?
4900 grep -v '^ *+' conftest.er1 >conftest.err
4901 rm -f conftest.er1
4902 cat conftest.err >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } &&
4905 { ac_try='test -z "$ac_c_werror_flag"
4906 || test ! -s conftest.err'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; } &&
4912 { ac_try='test -s conftest.$ac_objext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4918 eval "$as_ac_Header=yes"
4919 else
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4923 eval "$as_ac_Header=no"
4925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4930 cat >>confdefs.h <<_ACEOF
4931 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4932 _ACEOF
4934 ac_header_dirent=$ac_hdr; break
4937 done
4938 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4939 if test $ac_header_dirent = dirent.h; then
4940 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4941 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4942 if test "${ac_cv_search_opendir+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945 ac_func_search_save_LIBS=$LIBS
4946 ac_cv_search_opendir=no
4947 cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h. */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4954 /* Override any gcc2 internal prototype to avoid an error. */
4955 #ifdef __cplusplus
4956 extern "C"
4957 #endif
4958 /* We use char because int might match the return type of a gcc2
4959 builtin and then its argument prototype would still apply. */
4960 char opendir ();
4962 main ()
4964 opendir ();
4966 return 0;
4968 _ACEOF
4969 rm -f conftest.$ac_objext conftest$ac_exeext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4971 (eval $ac_link) 2>conftest.er1
4972 ac_status=$?
4973 grep -v '^ *+' conftest.er1 >conftest.err
4974 rm -f conftest.er1
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -z "$ac_c_werror_flag"
4979 || test ! -s conftest.err'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 (eval $ac_try) 2>&5
4982 ac_status=$?
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; } &&
4985 { ac_try='test -s conftest$ac_exeext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 (eval $ac_try) 2>&5
4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 ac_cv_search_opendir="none required"
4992 else
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4997 rm -f conftest.err conftest.$ac_objext \
4998 conftest$ac_exeext conftest.$ac_ext
4999 if test "$ac_cv_search_opendir" = no; then
5000 for ac_lib in dir; do
5001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5002 cat >conftest.$ac_ext <<_ACEOF
5003 /* confdefs.h. */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5009 /* Override any gcc2 internal prototype to avoid an error. */
5010 #ifdef __cplusplus
5011 extern "C"
5012 #endif
5013 /* We use char because int might match the return type of a gcc2
5014 builtin and then its argument prototype would still apply. */
5015 char opendir ();
5017 main ()
5019 opendir ();
5021 return 0;
5023 _ACEOF
5024 rm -f conftest.$ac_objext conftest$ac_exeext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5026 (eval $ac_link) 2>conftest.er1
5027 ac_status=$?
5028 grep -v '^ *+' conftest.er1 >conftest.err
5029 rm -f conftest.er1
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } &&
5033 { ac_try='test -z "$ac_c_werror_flag"
5034 || test ! -s conftest.err'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 (eval $ac_try) 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; } &&
5040 { ac_try='test -s conftest$ac_exeext'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 (eval $ac_try) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 ac_cv_search_opendir="-l$ac_lib"
5047 break
5048 else
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5053 rm -f conftest.err conftest.$ac_objext \
5054 conftest$ac_exeext conftest.$ac_ext
5055 done
5057 LIBS=$ac_func_search_save_LIBS
5059 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5060 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5061 if test "$ac_cv_search_opendir" != no; then
5062 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5066 else
5067 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5068 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5069 if test "${ac_cv_search_opendir+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072 ac_func_search_save_LIBS=$LIBS
5073 ac_cv_search_opendir=no
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5081 /* Override any gcc2 internal prototype to avoid an error. */
5082 #ifdef __cplusplus
5083 extern "C"
5084 #endif
5085 /* We use char because int might match the return type of a gcc2
5086 builtin and then its argument prototype would still apply. */
5087 char opendir ();
5089 main ()
5091 opendir ();
5093 return 0;
5095 _ACEOF
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098 (eval $ac_link) 2>conftest.er1
5099 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -z "$ac_c_werror_flag"
5106 || test ! -s conftest.err'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 (eval $ac_try) 2>&5
5109 ac_status=$?
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; } &&
5112 { ac_try='test -s conftest$ac_exeext'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 (eval $ac_try) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 ac_cv_search_opendir="none required"
5119 else
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5124 rm -f conftest.err conftest.$ac_objext \
5125 conftest$ac_exeext conftest.$ac_ext
5126 if test "$ac_cv_search_opendir" = no; then
5127 for ac_lib in x; do
5128 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5129 cat >conftest.$ac_ext <<_ACEOF
5130 /* confdefs.h. */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5136 /* Override any gcc2 internal prototype to avoid an error. */
5137 #ifdef __cplusplus
5138 extern "C"
5139 #endif
5140 /* We use char because int might match the return type of a gcc2
5141 builtin and then its argument prototype would still apply. */
5142 char opendir ();
5144 main ()
5146 opendir ();
5148 return 0;
5150 _ACEOF
5151 rm -f conftest.$ac_objext conftest$ac_exeext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5153 (eval $ac_link) 2>conftest.er1
5154 ac_status=$?
5155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } &&
5160 { ac_try='test -z "$ac_c_werror_flag"
5161 || test ! -s conftest.err'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163 (eval $ac_try) 2>&5
5164 ac_status=$?
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; } &&
5167 { ac_try='test -s conftest$ac_exeext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 (eval $ac_try) 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_cv_search_opendir="-l$ac_lib"
5174 break
5175 else
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5180 rm -f conftest.err conftest.$ac_objext \
5181 conftest$ac_exeext conftest.$ac_ext
5182 done
5184 LIBS=$ac_func_search_save_LIBS
5186 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5187 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5188 if test "$ac_cv_search_opendir" != no; then
5189 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5195 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5196 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5197 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h. */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5206 #include <sys/types.h>
5208 main ()
5210 return makedev(0, 0);
5212 return 0;
5214 _ACEOF
5215 rm -f conftest.$ac_objext conftest$ac_exeext
5216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5217 (eval $ac_link) 2>conftest.er1
5218 ac_status=$?
5219 grep -v '^ *+' conftest.er1 >conftest.err
5220 rm -f conftest.er1
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try='test -z "$ac_c_werror_flag"
5225 || test ! -s conftest.err'
5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 (eval $ac_try) 2>&5
5228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; } &&
5231 { ac_try='test -s conftest$ac_exeext'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233 (eval $ac_try) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; }; then
5237 ac_cv_header_sys_types_h_makedev=yes
5238 else
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5242 ac_cv_header_sys_types_h_makedev=no
5244 rm -f conftest.err conftest.$ac_objext \
5245 conftest$ac_exeext conftest.$ac_ext
5248 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5249 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5251 if test $ac_cv_header_sys_types_h_makedev = no; then
5252 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5253 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5254 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5255 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5259 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5260 else
5261 # Is the header compilable?
5262 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5263 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
5264 cat >conftest.$ac_ext <<_ACEOF
5265 /* confdefs.h. */
5266 _ACEOF
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5270 $ac_includes_default
5271 #include <sys/mkdev.h>
5272 _ACEOF
5273 rm -f conftest.$ac_objext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5275 (eval $ac_compile) 2>conftest.er1
5276 ac_status=$?
5277 grep -v '^ *+' conftest.er1 >conftest.err
5278 rm -f conftest.er1
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
5282 { ac_try='test -z "$ac_c_werror_flag"
5283 || test ! -s conftest.err'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 (eval $ac_try) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; } &&
5289 { ac_try='test -s conftest.$ac_objext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 (eval $ac_try) 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 ac_header_compiler=yes
5296 else
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5300 ac_header_compiler=no
5302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5304 echo "${ECHO_T}$ac_header_compiler" >&6
5306 # Is the header present?
5307 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5308 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
5309 cat >conftest.$ac_ext <<_ACEOF
5310 /* confdefs.h. */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5315 #include <sys/mkdev.h>
5316 _ACEOF
5317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5318 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
5325 if test -s conftest.err; then
5326 ac_cpp_err=$ac_c_preproc_warn_flag
5327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5328 else
5329 ac_cpp_err=
5331 else
5332 ac_cpp_err=yes
5334 if test -z "$ac_cpp_err"; then
5335 ac_header_preproc=yes
5336 else
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5340 ac_header_preproc=no
5342 rm -f conftest.err conftest.$ac_ext
5343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5344 echo "${ECHO_T}$ac_header_preproc" >&6
5346 # So? What about this header?
5347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5348 yes:no: )
5349 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5350 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5352 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5353 ac_header_preproc=yes
5355 no:yes:* )
5356 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5357 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5359 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5360 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5361 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5362 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5363 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5364 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5365 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5366 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5367 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5369 cat <<\_ASBOX
5370 ## ------------------------------------------------ ##
5371 ## Report this to http://www.python.org/python-bugs ##
5372 ## ------------------------------------------------ ##
5373 _ASBOX
5375 sed "s/^/$as_me: WARNING: /" >&2
5377 esac
5378 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5379 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5380 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5385 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5386 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5389 if test $ac_cv_header_sys_mkdev_h = yes; then
5391 cat >>confdefs.h <<\_ACEOF
5392 #define MAJOR_IN_MKDEV 1
5393 _ACEOF
5399 if test $ac_cv_header_sys_mkdev_h = no; then
5400 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5401 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5402 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5403 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5407 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5408 else
5409 # Is the header compilable?
5410 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5411 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
5412 cat >conftest.$ac_ext <<_ACEOF
5413 /* confdefs.h. */
5414 _ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5418 $ac_includes_default
5419 #include <sys/sysmacros.h>
5420 _ACEOF
5421 rm -f conftest.$ac_objext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>conftest.er1
5424 ac_status=$?
5425 grep -v '^ *+' conftest.er1 >conftest.err
5426 rm -f conftest.er1
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try='test -z "$ac_c_werror_flag"
5431 || test ! -s conftest.err'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 (eval $ac_try) 2>&5
5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try='test -s conftest.$ac_objext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 (eval $ac_try) 2>&5
5440 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5443 ac_header_compiler=yes
5444 else
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5448 ac_header_compiler=no
5450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5452 echo "${ECHO_T}$ac_header_compiler" >&6
5454 # Is the header present?
5455 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
5456 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
5457 cat >conftest.$ac_ext <<_ACEOF
5458 /* confdefs.h. */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 #include <sys/sysmacros.h>
5464 _ACEOF
5465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5467 ac_status=$?
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } >/dev/null; then
5473 if test -s conftest.err; then
5474 ac_cpp_err=$ac_c_preproc_warn_flag
5475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5476 else
5477 ac_cpp_err=
5479 else
5480 ac_cpp_err=yes
5482 if test -z "$ac_cpp_err"; then
5483 ac_header_preproc=yes
5484 else
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5488 ac_header_preproc=no
5490 rm -f conftest.err conftest.$ac_ext
5491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5492 echo "${ECHO_T}$ac_header_preproc" >&6
5494 # So? What about this header?
5495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5496 yes:no: )
5497 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
5498 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5499 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
5500 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
5501 ac_header_preproc=yes
5503 no:yes:* )
5504 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
5505 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
5506 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
5507 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
5508 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
5509 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
5511 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
5512 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
5513 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
5515 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
5517 cat <<\_ASBOX
5518 ## ------------------------------------------------ ##
5519 ## Report this to http://www.python.org/python-bugs ##
5520 ## ------------------------------------------------ ##
5521 _ASBOX
5523 sed "s/^/$as_me: WARNING: /" >&2
5525 esac
5526 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5527 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5528 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 else
5531 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
5533 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5534 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5537 if test $ac_cv_header_sys_sysmacros_h = yes; then
5539 cat >>confdefs.h <<\_ACEOF
5540 #define MAJOR_IN_SYSMACROS 1
5541 _ACEOF
5550 # On Solaris, term.h requires curses.h
5552 for ac_header in term.h
5554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5555 echo "$as_me:$LINENO: checking for $ac_header" >&5
5556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 else
5560 cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h. */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5567 #ifdef HAVE_CURSES_H
5568 #include <curses.h>
5569 #endif
5572 #include <$ac_header>
5573 _ACEOF
5574 rm -f conftest.$ac_objext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5576 (eval $ac_compile) 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
5583 { ac_try='test -z "$ac_c_werror_flag"
5584 || test ! -s conftest.err'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 (eval $ac_try) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try='test -s conftest.$ac_objext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 (eval $ac_try) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 eval "$as_ac_Header=yes"
5597 else
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5601 eval "$as_ac_Header=no"
5603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5608 cat >>confdefs.h <<_ACEOF
5609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5610 _ACEOF
5614 done
5617 # On Linux, netlink.h requires asm/types.h
5619 for ac_header in linux/netlink.h
5621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5622 echo "$as_me:$LINENO: checking for $ac_header" >&5
5623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627 cat >conftest.$ac_ext <<_ACEOF
5628 /* confdefs.h. */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5634 #ifdef HAVE_ASM_TYPES_H
5635 #include <asm/types.h>
5636 #endif
5637 #ifdef HAVE_SYS_SOCKET_H
5638 #include <sys/socket.h>
5639 #endif
5642 #include <$ac_header>
5643 _ACEOF
5644 rm -f conftest.$ac_objext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646 (eval $ac_compile) 2>conftest.er1
5647 ac_status=$?
5648 grep -v '^ *+' conftest.er1 >conftest.err
5649 rm -f conftest.er1
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try='test -z "$ac_c_werror_flag"
5654 || test ! -s conftest.err'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 (eval $ac_try) 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; } &&
5660 { ac_try='test -s conftest.$ac_objext'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 (eval $ac_try) 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 eval "$as_ac_Header=yes"
5667 else
5668 echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.$ac_ext >&5
5671 eval "$as_ac_Header=no"
5673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5678 cat >>confdefs.h <<_ACEOF
5679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5680 _ACEOF
5684 done
5687 # checks for typedefs
5688 was_it_defined=no
5689 echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
5690 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
5691 cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h. */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 #include <time.h>
5699 _ACEOF
5700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5701 $EGREP "clock_t" >/dev/null 2>&1; then
5702 was_it_defined=yes
5703 else
5706 cat >>confdefs.h <<\_ACEOF
5707 #define clock_t long
5708 _ACEOF
5712 rm -f conftest*
5714 echo "$as_me:$LINENO: result: $was_it_defined" >&5
5715 echo "${ECHO_T}$was_it_defined" >&6
5717 # Check whether using makedev requires defining _OSF_SOURCE
5718 echo "$as_me:$LINENO: checking for makedev" >&5
5719 echo $ECHO_N "checking for makedev... $ECHO_C" >&6
5720 cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h. */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 #include <sys/types.h>
5728 main ()
5730 makedev(0, 0)
5732 return 0;
5734 _ACEOF
5735 rm -f conftest.$ac_objext conftest$ac_exeext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5737 (eval $ac_link) 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_c_werror_flag"
5745 || test ! -s conftest.err'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 (eval $ac_try) 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; } &&
5751 { ac_try='test -s conftest$ac_exeext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 (eval $ac_try) 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 ac_cv_has_makedev=yes
5758 else
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5762 ac_cv_has_makedev=no
5764 rm -f conftest.err conftest.$ac_objext \
5765 conftest$ac_exeext conftest.$ac_ext
5766 if test "$ac_cv_has_makedev" = "no"; then
5767 # we didn't link, try if _OSF_SOURCE will allow us to link
5768 cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h. */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5775 #define _OSF_SOURCE 1
5776 #include <sys/types.h>
5779 main ()
5781 makedev(0, 0)
5783 return 0;
5785 _ACEOF
5786 rm -f conftest.$ac_objext conftest$ac_exeext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5788 (eval $ac_link) 2>conftest.er1
5789 ac_status=$?
5790 grep -v '^ *+' conftest.er1 >conftest.err
5791 rm -f conftest.er1
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -z "$ac_c_werror_flag"
5796 || test ! -s conftest.err'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 (eval $ac_try) 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try='test -s conftest$ac_exeext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 (eval $ac_try) 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 ac_cv_has_makedev=yes
5809 else
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5813 ac_cv_has_makedev=no
5815 rm -f conftest.err conftest.$ac_objext \
5816 conftest$ac_exeext conftest.$ac_ext
5817 if test "$ac_cv_has_makedev" = "yes"; then
5819 cat >>confdefs.h <<\_ACEOF
5820 #define _OSF_SOURCE 1
5821 _ACEOF
5825 echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
5826 echo "${ECHO_T}$ac_cv_has_makedev" >&6
5827 if test "$ac_cv_has_makedev" = "yes"; then
5829 cat >>confdefs.h <<\_ACEOF
5830 #define HAVE_MAKEDEV 1
5831 _ACEOF
5835 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
5836 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
5837 # defined, but the compiler does not support pragma redefine_extname,
5838 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
5839 # structures (such as rlimit64) without declaring them. As a
5840 # work-around, disable LFS on such configurations
5842 use_lfs=yes
5843 echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
5844 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
5845 cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h. */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5852 #define _LARGEFILE_SOURCE 1
5853 #define _FILE_OFFSET_BITS 64
5854 #include <sys/resource.h>
5857 main ()
5859 struct rlimit foo;
5861 return 0;
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866 (eval $ac_compile) 2>conftest.er1
5867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest.$ac_objext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 sol_lfs_bug=no
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 sol_lfs_bug=yes
5893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894 echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
5895 echo "${ECHO_T}$sol_lfs_bug" >&6
5896 if test "$sol_lfs_bug" = "yes"; then
5897 use_lfs=no
5900 if test "$use_lfs" = "yes"; then
5901 # Two defines needed to enable largefile support on various platforms
5902 # These may affect some typedefs
5904 cat >>confdefs.h <<\_ACEOF
5905 #define _LARGEFILE_SOURCE 1
5906 _ACEOF
5909 cat >>confdefs.h <<\_ACEOF
5910 #define _FILE_OFFSET_BITS 64
5911 _ACEOF
5915 # Add some code to confdefs.h so that the test for off_t works on SCO
5916 cat >> confdefs.h <<\EOF
5917 #if defined(SCO_DS)
5918 #undef _OFF_T
5919 #endif
5922 # Type availability checks
5923 echo "$as_me:$LINENO: checking for mode_t" >&5
5924 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5925 if test "${ac_cv_type_mode_t+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928 cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h. */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 $ac_includes_default
5936 main ()
5938 if ((mode_t *) 0)
5939 return 0;
5940 if (sizeof (mode_t))
5941 return 0;
5943 return 0;
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>conftest.er1
5949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try='test -z "$ac_c_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 (eval $ac_try) 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_type_mode_t=yes
5969 else
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5973 ac_cv_type_mode_t=no
5975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5977 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5978 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5979 if test $ac_cv_type_mode_t = yes; then
5981 else
5983 cat >>confdefs.h <<_ACEOF
5984 #define mode_t int
5985 _ACEOF
5989 echo "$as_me:$LINENO: checking for off_t" >&5
5990 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5991 if test "${ac_cv_type_off_t+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994 cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h. */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 $ac_includes_default
6002 main ()
6004 if ((off_t *) 0)
6005 return 0;
6006 if (sizeof (off_t))
6007 return 0;
6009 return 0;
6011 _ACEOF
6012 rm -f conftest.$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014 (eval $ac_compile) 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
6021 { ac_try='test -z "$ac_c_werror_flag"
6022 || test ! -s conftest.err'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 (eval $ac_try) 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 (eval $ac_try) 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_cv_type_off_t=yes
6035 else
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 ac_cv_type_off_t=no
6041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6043 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6044 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6045 if test $ac_cv_type_off_t = yes; then
6047 else
6049 cat >>confdefs.h <<_ACEOF
6050 #define off_t long
6051 _ACEOF
6055 echo "$as_me:$LINENO: checking for pid_t" >&5
6056 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6057 if test "${ac_cv_type_pid_t+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060 cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h. */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6066 $ac_includes_default
6068 main ()
6070 if ((pid_t *) 0)
6071 return 0;
6072 if (sizeof (pid_t))
6073 return 0;
6075 return 0;
6077 _ACEOF
6078 rm -f conftest.$ac_objext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6080 (eval $ac_compile) 2>conftest.er1
6081 ac_status=$?
6082 grep -v '^ *+' conftest.er1 >conftest.err
6083 rm -f conftest.er1
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } &&
6087 { ac_try='test -z "$ac_c_werror_flag"
6088 || test ! -s conftest.err'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 (eval $ac_try) 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try='test -s conftest.$ac_objext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 (eval $ac_try) 2>&5
6097 ac_status=$?
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 ac_cv_type_pid_t=yes
6101 else
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6105 ac_cv_type_pid_t=no
6107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6109 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6110 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6111 if test $ac_cv_type_pid_t = yes; then
6113 else
6115 cat >>confdefs.h <<_ACEOF
6116 #define pid_t int
6117 _ACEOF
6121 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6122 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6123 if test "${ac_cv_type_signal+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h. */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 #include <sys/types.h>
6133 #include <signal.h>
6134 #ifdef signal
6135 # undef signal
6136 #endif
6137 #ifdef __cplusplus
6138 extern "C" void (*signal (int, void (*)(int)))(int);
6139 #else
6140 void (*signal ()) ();
6141 #endif
6144 main ()
6146 int i;
6148 return 0;
6150 _ACEOF
6151 rm -f conftest.$ac_objext
6152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6153 (eval $ac_compile) 2>conftest.er1
6154 ac_status=$?
6155 grep -v '^ *+' conftest.er1 >conftest.err
6156 rm -f conftest.er1
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } &&
6160 { ac_try='test -z "$ac_c_werror_flag"
6161 || test ! -s conftest.err'
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163 (eval $ac_try) 2>&5
6164 ac_status=$?
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; } &&
6167 { ac_try='test -s conftest.$ac_objext'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 (eval $ac_try) 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; }; then
6173 ac_cv_type_signal=void
6174 else
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6178 ac_cv_type_signal=int
6180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6182 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6183 echo "${ECHO_T}$ac_cv_type_signal" >&6
6185 cat >>confdefs.h <<_ACEOF
6186 #define RETSIGTYPE $ac_cv_type_signal
6187 _ACEOF
6190 echo "$as_me:$LINENO: checking for size_t" >&5
6191 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6192 if test "${ac_cv_type_size_t+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195 cat >conftest.$ac_ext <<_ACEOF
6196 /* confdefs.h. */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6201 $ac_includes_default
6203 main ()
6205 if ((size_t *) 0)
6206 return 0;
6207 if (sizeof (size_t))
6208 return 0;
6210 return 0;
6212 _ACEOF
6213 rm -f conftest.$ac_objext
6214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6215 (eval $ac_compile) 2>conftest.er1
6216 ac_status=$?
6217 grep -v '^ *+' conftest.er1 >conftest.err
6218 rm -f conftest.er1
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -z "$ac_c_werror_flag"
6223 || test ! -s conftest.err'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 (eval $ac_try) 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; } &&
6229 { ac_try='test -s conftest.$ac_objext'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231 (eval $ac_try) 2>&5
6232 ac_status=$?
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; }; then
6235 ac_cv_type_size_t=yes
6236 else
6237 echo "$as_me: failed program was:" >&5
6238 sed 's/^/| /' conftest.$ac_ext >&5
6240 ac_cv_type_size_t=no
6242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6244 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6245 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6246 if test $ac_cv_type_size_t = yes; then
6248 else
6250 cat >>confdefs.h <<_ACEOF
6251 #define size_t unsigned
6252 _ACEOF
6256 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6257 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6258 if test "${ac_cv_type_uid_t+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 #include <sys/types.h>
6269 _ACEOF
6270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6271 $EGREP "uid_t" >/dev/null 2>&1; then
6272 ac_cv_type_uid_t=yes
6273 else
6274 ac_cv_type_uid_t=no
6276 rm -f conftest*
6279 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6280 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6281 if test $ac_cv_type_uid_t = no; then
6283 cat >>confdefs.h <<\_ACEOF
6284 #define uid_t int
6285 _ACEOF
6288 cat >>confdefs.h <<\_ACEOF
6289 #define gid_t int
6290 _ACEOF
6294 echo "$as_me:$LINENO: checking for ssize_t" >&5
6295 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6296 if test "${ac_cv_type_ssize_t+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h. */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 $ac_includes_default
6307 main ()
6309 if ((ssize_t *) 0)
6310 return 0;
6311 if (sizeof (ssize_t))
6312 return 0;
6314 return 0;
6316 _ACEOF
6317 rm -f conftest.$ac_objext
6318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319 (eval $ac_compile) 2>conftest.er1
6320 ac_status=$?
6321 grep -v '^ *+' conftest.er1 >conftest.err
6322 rm -f conftest.er1
6323 cat conftest.err >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } &&
6326 { ac_try='test -z "$ac_c_werror_flag"
6327 || test ! -s conftest.err'
6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 (eval $ac_try) 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; } &&
6333 { ac_try='test -s conftest.$ac_objext'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 (eval $ac_try) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_cv_type_ssize_t=yes
6340 else
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6344 ac_cv_type_ssize_t=no
6346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6348 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6349 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6350 if test $ac_cv_type_ssize_t = yes; then
6352 cat >>confdefs.h <<\_ACEOF
6353 #define HAVE_SSIZE_T 1
6354 _ACEOF
6359 # Sizes of various common basic types
6360 # ANSI C requires sizeof(char) == 1, so no need to check it
6361 echo "$as_me:$LINENO: checking for int" >&5
6362 echo $ECHO_N "checking for int... $ECHO_C" >&6
6363 if test "${ac_cv_type_int+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
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 if ((int *) 0)
6377 return 0;
6378 if (sizeof (int))
6379 return 0;
6381 return 0;
6383 _ACEOF
6384 rm -f conftest.$ac_objext
6385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6386 (eval $ac_compile) 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } &&
6393 { ac_try='test -z "$ac_c_werror_flag"
6394 || test ! -s conftest.err'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 (eval $ac_try) 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; } &&
6400 { ac_try='test -s conftest.$ac_objext'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 (eval $ac_try) 2>&5
6403 ac_status=$?
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; }; then
6406 ac_cv_type_int=yes
6407 else
6408 echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6411 ac_cv_type_int=no
6413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6415 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6416 echo "${ECHO_T}$ac_cv_type_int" >&6
6418 echo "$as_me:$LINENO: checking size of int" >&5
6419 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6420 if test "${ac_cv_sizeof_int+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423 if test "$ac_cv_type_int" = yes; then
6424 # The cast to unsigned long works around a bug in the HP C Compiler
6425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6427 # This bug is HP SR number 8606223364.
6428 if test "$cross_compiling" = yes; then
6429 # Depending upon the size, compute the lo and hi bounds.
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h. */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 $ac_includes_default
6438 main ()
6440 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6441 test_array [0] = 0
6444 return 0;
6446 _ACEOF
6447 rm -f conftest.$ac_objext
6448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6449 (eval $ac_compile) 2>conftest.er1
6450 ac_status=$?
6451 grep -v '^ *+' conftest.er1 >conftest.err
6452 rm -f conftest.er1
6453 cat conftest.err >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try='test -z "$ac_c_werror_flag"
6457 || test ! -s conftest.err'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 (eval $ac_try) 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; } &&
6463 { ac_try='test -s conftest.$ac_objext'
6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465 (eval $ac_try) 2>&5
6466 ac_status=$?
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
6469 ac_lo=0 ac_mid=0
6470 while :; do
6471 cat >conftest.$ac_ext <<_ACEOF
6472 /* confdefs.h. */
6473 _ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 $ac_includes_default
6479 main ()
6481 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6482 test_array [0] = 0
6485 return 0;
6487 _ACEOF
6488 rm -f conftest.$ac_objext
6489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6490 (eval $ac_compile) 2>conftest.er1
6491 ac_status=$?
6492 grep -v '^ *+' conftest.er1 >conftest.err
6493 rm -f conftest.er1
6494 cat conftest.err >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
6497 { ac_try='test -z "$ac_c_werror_flag"
6498 || test ! -s conftest.err'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 (eval $ac_try) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; } &&
6504 { ac_try='test -s conftest.$ac_objext'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 (eval $ac_try) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6510 ac_hi=$ac_mid; break
6511 else
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6515 ac_lo=`expr $ac_mid + 1`
6516 if test $ac_lo -le $ac_mid; then
6517 ac_lo= ac_hi=
6518 break
6520 ac_mid=`expr 2 '*' $ac_mid + 1`
6522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6523 done
6524 else
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6528 cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h. */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 $ac_includes_default
6536 main ()
6538 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6539 test_array [0] = 0
6542 return 0;
6544 _ACEOF
6545 rm -f conftest.$ac_objext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6547 (eval $ac_compile) 2>conftest.er1
6548 ac_status=$?
6549 grep -v '^ *+' conftest.er1 >conftest.err
6550 rm -f conftest.er1
6551 cat conftest.err >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } &&
6554 { ac_try='test -z "$ac_c_werror_flag"
6555 || test ! -s conftest.err'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 (eval $ac_try) 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; } &&
6561 { ac_try='test -s conftest.$ac_objext'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 (eval $ac_try) 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6567 ac_hi=-1 ac_mid=-1
6568 while :; do
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h. */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 $ac_includes_default
6577 main ()
6579 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6580 test_array [0] = 0
6583 return 0;
6585 _ACEOF
6586 rm -f conftest.$ac_objext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6588 (eval $ac_compile) 2>conftest.er1
6589 ac_status=$?
6590 grep -v '^ *+' conftest.er1 >conftest.err
6591 rm -f conftest.er1
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } &&
6595 { ac_try='test -z "$ac_c_werror_flag"
6596 || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 (eval $ac_try) 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try='test -s conftest.$ac_objext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 (eval $ac_try) 2>&5
6605 ac_status=$?
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_lo=$ac_mid; break
6609 else
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6613 ac_hi=`expr '(' $ac_mid ')' - 1`
6614 if test $ac_mid -le $ac_hi; then
6615 ac_lo= ac_hi=
6616 break
6618 ac_mid=`expr 2 '*' $ac_mid`
6620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6621 done
6622 else
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6626 ac_lo= ac_hi=
6628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6631 # Binary search between lo and hi bounds.
6632 while test "x$ac_lo" != "x$ac_hi"; do
6633 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6634 cat >conftest.$ac_ext <<_ACEOF
6635 /* confdefs.h. */
6636 _ACEOF
6637 cat confdefs.h >>conftest.$ac_ext
6638 cat >>conftest.$ac_ext <<_ACEOF
6639 /* end confdefs.h. */
6640 $ac_includes_default
6642 main ()
6644 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6645 test_array [0] = 0
6648 return 0;
6650 _ACEOF
6651 rm -f conftest.$ac_objext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653 (eval $ac_compile) 2>conftest.er1
6654 ac_status=$?
6655 grep -v '^ *+' conftest.er1 >conftest.err
6656 rm -f conftest.er1
6657 cat conftest.err >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } &&
6660 { ac_try='test -z "$ac_c_werror_flag"
6661 || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 (eval $ac_try) 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try='test -s conftest.$ac_objext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 (eval $ac_try) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 ac_hi=$ac_mid
6674 else
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6678 ac_lo=`expr '(' $ac_mid ')' + 1`
6680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6681 done
6682 case $ac_lo in
6683 ?*) ac_cv_sizeof_int=$ac_lo;;
6684 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6685 See \`config.log' for more details." >&5
6686 echo "$as_me: error: cannot compute sizeof (int), 77
6687 See \`config.log' for more details." >&2;}
6688 { (exit 1); exit 1; }; } ;;
6689 esac
6690 else
6691 if test "$cross_compiling" = yes; then
6692 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6693 See \`config.log' for more details." >&5
6694 echo "$as_me: error: cannot run test program while cross compiling
6695 See \`config.log' for more details." >&2;}
6696 { (exit 1); exit 1; }; }
6697 else
6698 cat >conftest.$ac_ext <<_ACEOF
6699 /* confdefs.h. */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 $ac_includes_default
6705 long longval () { return (long) (sizeof (int)); }
6706 unsigned long ulongval () { return (long) (sizeof (int)); }
6707 #include <stdio.h>
6708 #include <stdlib.h>
6710 main ()
6713 FILE *f = fopen ("conftest.val", "w");
6714 if (! f)
6715 exit (1);
6716 if (((long) (sizeof (int))) < 0)
6718 long i = longval ();
6719 if (i != ((long) (sizeof (int))))
6720 exit (1);
6721 fprintf (f, "%ld\n", i);
6723 else
6725 unsigned long i = ulongval ();
6726 if (i != ((long) (sizeof (int))))
6727 exit (1);
6728 fprintf (f, "%lu\n", i);
6730 exit (ferror (f) || fclose (f) != 0);
6733 return 0;
6735 _ACEOF
6736 rm -f conftest$ac_exeext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6738 (eval $ac_link) 2>&5
6739 ac_status=$?
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 ac_cv_sizeof_int=`cat conftest.val`
6748 else
6749 echo "$as_me: program exited with status $ac_status" >&5
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6753 ( exit $ac_status )
6754 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6755 See \`config.log' for more details." >&5
6756 echo "$as_me: error: cannot compute sizeof (int), 77
6757 See \`config.log' for more details." >&2;}
6758 { (exit 1); exit 1; }; }
6760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6763 rm -f conftest.val
6764 else
6765 ac_cv_sizeof_int=0
6768 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6769 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6770 cat >>confdefs.h <<_ACEOF
6771 #define SIZEOF_INT $ac_cv_sizeof_int
6772 _ACEOF
6775 echo "$as_me:$LINENO: checking for long" >&5
6776 echo $ECHO_N "checking for long... $ECHO_C" >&6
6777 if test "${ac_cv_type_long+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
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 if ((long *) 0)
6791 return 0;
6792 if (sizeof (long))
6793 return 0;
6795 return 0;
6797 _ACEOF
6798 rm -f conftest.$ac_objext
6799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6800 (eval $ac_compile) 2>conftest.er1
6801 ac_status=$?
6802 grep -v '^ *+' conftest.er1 >conftest.err
6803 rm -f conftest.er1
6804 cat conftest.err >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try='test -z "$ac_c_werror_flag"
6808 || test ! -s conftest.err'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; } &&
6814 { ac_try='test -s conftest.$ac_objext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6820 ac_cv_type_long=yes
6821 else
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6825 ac_cv_type_long=no
6827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6829 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6830 echo "${ECHO_T}$ac_cv_type_long" >&6
6832 echo "$as_me:$LINENO: checking size of long" >&5
6833 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6834 if test "${ac_cv_sizeof_long+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837 if test "$ac_cv_type_long" = yes; then
6838 # The cast to unsigned long works around a bug in the HP C Compiler
6839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6841 # This bug is HP SR number 8606223364.
6842 if test "$cross_compiling" = yes; then
6843 # Depending upon the size, compute the lo and hi bounds.
6844 cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h. */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 $ac_includes_default
6852 main ()
6854 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6855 test_array [0] = 0
6858 return 0;
6860 _ACEOF
6861 rm -f conftest.$ac_objext
6862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6863 (eval $ac_compile) 2>conftest.er1
6864 ac_status=$?
6865 grep -v '^ *+' conftest.er1 >conftest.err
6866 rm -f conftest.er1
6867 cat conftest.err >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } &&
6870 { ac_try='test -z "$ac_c_werror_flag"
6871 || test ! -s conftest.err'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 (eval $ac_try) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; } &&
6877 { ac_try='test -s conftest.$ac_objext'
6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879 (eval $ac_try) 2>&5
6880 ac_status=$?
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }; }; then
6883 ac_lo=0 ac_mid=0
6884 while :; do
6885 cat >conftest.$ac_ext <<_ACEOF
6886 /* confdefs.h. */
6887 _ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h. */
6891 $ac_includes_default
6893 main ()
6895 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6896 test_array [0] = 0
6899 return 0;
6901 _ACEOF
6902 rm -f conftest.$ac_objext
6903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6904 (eval $ac_compile) 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try='test -z "$ac_c_werror_flag"
6912 || test ! -s conftest.err'
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 (eval $ac_try) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; } &&
6918 { ac_try='test -s conftest.$ac_objext'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 (eval $ac_try) 2>&5
6921 ac_status=$?
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; }; then
6924 ac_hi=$ac_mid; break
6925 else
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6929 ac_lo=`expr $ac_mid + 1`
6930 if test $ac_lo -le $ac_mid; then
6931 ac_lo= ac_hi=
6932 break
6934 ac_mid=`expr 2 '*' $ac_mid + 1`
6936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6937 done
6938 else
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6942 cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h. */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 $ac_includes_default
6950 main ()
6952 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6953 test_array [0] = 0
6956 return 0;
6958 _ACEOF
6959 rm -f conftest.$ac_objext
6960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6961 (eval $ac_compile) 2>conftest.er1
6962 ac_status=$?
6963 grep -v '^ *+' conftest.er1 >conftest.err
6964 rm -f conftest.er1
6965 cat conftest.err >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } &&
6968 { ac_try='test -z "$ac_c_werror_flag"
6969 || test ! -s conftest.err'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 (eval $ac_try) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; } &&
6975 { ac_try='test -s conftest.$ac_objext'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 (eval $ac_try) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; }; then
6981 ac_hi=-1 ac_mid=-1
6982 while :; do
6983 cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h. */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 $ac_includes_default
6991 main ()
6993 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6994 test_array [0] = 0
6997 return 0;
6999 _ACEOF
7000 rm -f conftest.$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7003 ac_status=$?
7004 grep -v '^ *+' conftest.er1 >conftest.err
7005 rm -f conftest.er1
7006 cat conftest.err >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -z "$ac_c_werror_flag"
7010 || test ! -s conftest.err'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; } &&
7016 { ac_try='test -s conftest.$ac_objext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 ac_lo=$ac_mid; break
7023 else
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 ac_hi=`expr '(' $ac_mid ')' - 1`
7028 if test $ac_mid -le $ac_hi; then
7029 ac_lo= ac_hi=
7030 break
7032 ac_mid=`expr 2 '*' $ac_mid`
7034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7035 done
7036 else
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7040 ac_lo= ac_hi=
7042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7045 # Binary search between lo and hi bounds.
7046 while test "x$ac_lo" != "x$ac_hi"; do
7047 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7048 cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h. */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7054 $ac_includes_default
7056 main ()
7058 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7059 test_array [0] = 0
7062 return 0;
7064 _ACEOF
7065 rm -f conftest.$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
7074 { ac_try='test -z "$ac_c_werror_flag"
7075 || test ! -s conftest.err'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 (eval $ac_try) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; } &&
7081 { ac_try='test -s conftest.$ac_objext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 (eval $ac_try) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 ac_hi=$ac_mid
7088 else
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7092 ac_lo=`expr '(' $ac_mid ')' + 1`
7094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7095 done
7096 case $ac_lo in
7097 ?*) ac_cv_sizeof_long=$ac_lo;;
7098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7099 See \`config.log' for more details." >&5
7100 echo "$as_me: error: cannot compute sizeof (long), 77
7101 See \`config.log' for more details." >&2;}
7102 { (exit 1); exit 1; }; } ;;
7103 esac
7104 else
7105 if test "$cross_compiling" = yes; then
7106 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7107 See \`config.log' for more details." >&5
7108 echo "$as_me: error: cannot run test program while cross compiling
7109 See \`config.log' for more details." >&2;}
7110 { (exit 1); exit 1; }; }
7111 else
7112 cat >conftest.$ac_ext <<_ACEOF
7113 /* confdefs.h. */
7114 _ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 $ac_includes_default
7119 long longval () { return (long) (sizeof (long)); }
7120 unsigned long ulongval () { return (long) (sizeof (long)); }
7121 #include <stdio.h>
7122 #include <stdlib.h>
7124 main ()
7127 FILE *f = fopen ("conftest.val", "w");
7128 if (! f)
7129 exit (1);
7130 if (((long) (sizeof (long))) < 0)
7132 long i = longval ();
7133 if (i != ((long) (sizeof (long))))
7134 exit (1);
7135 fprintf (f, "%ld\n", i);
7137 else
7139 unsigned long i = ulongval ();
7140 if (i != ((long) (sizeof (long))))
7141 exit (1);
7142 fprintf (f, "%lu\n", i);
7144 exit (ferror (f) || fclose (f) != 0);
7147 return 0;
7149 _ACEOF
7150 rm -f conftest$ac_exeext
7151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7152 (eval $ac_link) 2>&5
7153 ac_status=$?
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_cv_sizeof_long=`cat conftest.val`
7162 else
7163 echo "$as_me: program exited with status $ac_status" >&5
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7167 ( exit $ac_status )
7168 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7169 See \`config.log' for more details." >&5
7170 echo "$as_me: error: cannot compute sizeof (long), 77
7171 See \`config.log' for more details." >&2;}
7172 { (exit 1); exit 1; }; }
7174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7177 rm -f conftest.val
7178 else
7179 ac_cv_sizeof_long=0
7182 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7183 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7184 cat >>confdefs.h <<_ACEOF
7185 #define SIZEOF_LONG $ac_cv_sizeof_long
7186 _ACEOF
7189 echo "$as_me:$LINENO: checking for void *" >&5
7190 echo $ECHO_N "checking for void *... $ECHO_C" >&6
7191 if test "${ac_cv_type_void_p+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
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 if ((void * *) 0)
7205 return 0;
7206 if (sizeof (void *))
7207 return 0;
7209 return 0;
7211 _ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7214 (eval $ac_compile) 2>conftest.er1
7215 ac_status=$?
7216 grep -v '^ *+' conftest.er1 >conftest.err
7217 rm -f conftest.er1
7218 cat conftest.err >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } &&
7221 { ac_try='test -z "$ac_c_werror_flag"
7222 || test ! -s conftest.err'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 (eval $ac_try) 2>&5
7225 ac_status=$?
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; } &&
7228 { ac_try='test -s conftest.$ac_objext'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 (eval $ac_try) 2>&5
7231 ac_status=$?
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7234 ac_cv_type_void_p=yes
7235 else
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7239 ac_cv_type_void_p=no
7241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7243 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7244 echo "${ECHO_T}$ac_cv_type_void_p" >&6
7246 echo "$as_me:$LINENO: checking size of void *" >&5
7247 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7248 if test "${ac_cv_sizeof_void_p+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251 if test "$ac_cv_type_void_p" = yes; then
7252 # The cast to unsigned long works around a bug in the HP C Compiler
7253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7255 # This bug is HP SR number 8606223364.
7256 if test "$cross_compiling" = yes; then
7257 # Depending upon the size, compute the lo and hi bounds.
7258 cat >conftest.$ac_ext <<_ACEOF
7259 /* confdefs.h. */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 $ac_includes_default
7266 main ()
7268 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
7269 test_array [0] = 0
7272 return 0;
7274 _ACEOF
7275 rm -f conftest.$ac_objext
7276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7277 (eval $ac_compile) 2>conftest.er1
7278 ac_status=$?
7279 grep -v '^ *+' conftest.er1 >conftest.err
7280 rm -f conftest.er1
7281 cat conftest.err >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } &&
7284 { ac_try='test -z "$ac_c_werror_flag"
7285 || test ! -s conftest.err'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 (eval $ac_try) 2>&5
7288 ac_status=$?
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; } &&
7291 { ac_try='test -s conftest.$ac_objext'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 (eval $ac_try) 2>&5
7294 ac_status=$?
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; }; then
7297 ac_lo=0 ac_mid=0
7298 while :; do
7299 cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h. */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 $ac_includes_default
7307 main ()
7309 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7310 test_array [0] = 0
7313 return 0;
7315 _ACEOF
7316 rm -f conftest.$ac_objext
7317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7318 (eval $ac_compile) 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } &&
7325 { ac_try='test -z "$ac_c_werror_flag"
7326 || test ! -s conftest.err'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328 (eval $ac_try) 2>&5
7329 ac_status=$?
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; } &&
7332 { ac_try='test -s conftest.$ac_objext'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334 (eval $ac_try) 2>&5
7335 ac_status=$?
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; }; then
7338 ac_hi=$ac_mid; break
7339 else
7340 echo "$as_me: failed program was:" >&5
7341 sed 's/^/| /' conftest.$ac_ext >&5
7343 ac_lo=`expr $ac_mid + 1`
7344 if test $ac_lo -le $ac_mid; then
7345 ac_lo= ac_hi=
7346 break
7348 ac_mid=`expr 2 '*' $ac_mid + 1`
7350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7351 done
7352 else
7353 echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.$ac_ext >&5
7356 cat >conftest.$ac_ext <<_ACEOF
7357 /* confdefs.h. */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 $ac_includes_default
7364 main ()
7366 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
7367 test_array [0] = 0
7370 return 0;
7372 _ACEOF
7373 rm -f conftest.$ac_objext
7374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7375 (eval $ac_compile) 2>conftest.er1
7376 ac_status=$?
7377 grep -v '^ *+' conftest.er1 >conftest.err
7378 rm -f conftest.er1
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } &&
7382 { ac_try='test -z "$ac_c_werror_flag"
7383 || test ! -s conftest.err'
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 (eval $ac_try) 2>&5
7386 ac_status=$?
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; } &&
7389 { ac_try='test -s conftest.$ac_objext'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 (eval $ac_try) 2>&5
7392 ac_status=$?
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; }; then
7395 ac_hi=-1 ac_mid=-1
7396 while :; do
7397 cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h. */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 $ac_includes_default
7405 main ()
7407 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
7408 test_array [0] = 0
7411 return 0;
7413 _ACEOF
7414 rm -f conftest.$ac_objext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try='test -z "$ac_c_werror_flag"
7424 || test ! -s conftest.err'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426 (eval $ac_try) 2>&5
7427 ac_status=$?
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; } &&
7430 { ac_try='test -s conftest.$ac_objext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 (eval $ac_try) 2>&5
7433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 ac_lo=$ac_mid; break
7437 else
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7441 ac_hi=`expr '(' $ac_mid ')' - 1`
7442 if test $ac_mid -le $ac_hi; then
7443 ac_lo= ac_hi=
7444 break
7446 ac_mid=`expr 2 '*' $ac_mid`
7448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7449 done
7450 else
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7454 ac_lo= ac_hi=
7456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7459 # Binary search between lo and hi bounds.
7460 while test "x$ac_lo" != "x$ac_hi"; do
7461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7462 cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h. */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 $ac_includes_default
7470 main ()
7472 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
7473 test_array [0] = 0
7476 return 0;
7478 _ACEOF
7479 rm -f conftest.$ac_objext
7480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7481 (eval $ac_compile) 2>conftest.er1
7482 ac_status=$?
7483 grep -v '^ *+' conftest.er1 >conftest.err
7484 rm -f conftest.er1
7485 cat conftest.err >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } &&
7488 { ac_try='test -z "$ac_c_werror_flag"
7489 || test ! -s conftest.err'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 (eval $ac_try) 2>&5
7492 ac_status=$?
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; } &&
7495 { ac_try='test -s conftest.$ac_objext'
7496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497 (eval $ac_try) 2>&5
7498 ac_status=$?
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; }; then
7501 ac_hi=$ac_mid
7502 else
7503 echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7506 ac_lo=`expr '(' $ac_mid ')' + 1`
7508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7509 done
7510 case $ac_lo in
7511 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7512 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7513 See \`config.log' for more details." >&5
7514 echo "$as_me: error: cannot compute sizeof (void *), 77
7515 See \`config.log' for more details." >&2;}
7516 { (exit 1); exit 1; }; } ;;
7517 esac
7518 else
7519 if test "$cross_compiling" = yes; then
7520 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7521 See \`config.log' for more details." >&5
7522 echo "$as_me: error: cannot run test program while cross compiling
7523 See \`config.log' for more details." >&2;}
7524 { (exit 1); exit 1; }; }
7525 else
7526 cat >conftest.$ac_ext <<_ACEOF
7527 /* confdefs.h. */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7532 $ac_includes_default
7533 long longval () { return (long) (sizeof (void *)); }
7534 unsigned long ulongval () { return (long) (sizeof (void *)); }
7535 #include <stdio.h>
7536 #include <stdlib.h>
7538 main ()
7541 FILE *f = fopen ("conftest.val", "w");
7542 if (! f)
7543 exit (1);
7544 if (((long) (sizeof (void *))) < 0)
7546 long i = longval ();
7547 if (i != ((long) (sizeof (void *))))
7548 exit (1);
7549 fprintf (f, "%ld\n", i);
7551 else
7553 unsigned long i = ulongval ();
7554 if (i != ((long) (sizeof (void *))))
7555 exit (1);
7556 fprintf (f, "%lu\n", i);
7558 exit (ferror (f) || fclose (f) != 0);
7561 return 0;
7563 _ACEOF
7564 rm -f conftest$ac_exeext
7565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7566 (eval $ac_link) 2>&5
7567 ac_status=$?
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 (eval $ac_try) 2>&5
7572 ac_status=$?
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575 ac_cv_sizeof_void_p=`cat conftest.val`
7576 else
7577 echo "$as_me: program exited with status $ac_status" >&5
7578 echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7581 ( exit $ac_status )
7582 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
7583 See \`config.log' for more details." >&5
7584 echo "$as_me: error: cannot compute sizeof (void *), 77
7585 See \`config.log' for more details." >&2;}
7586 { (exit 1); exit 1; }; }
7588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7591 rm -f conftest.val
7592 else
7593 ac_cv_sizeof_void_p=0
7596 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7597 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7598 cat >>confdefs.h <<_ACEOF
7599 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7600 _ACEOF
7603 echo "$as_me:$LINENO: checking for short" >&5
7604 echo $ECHO_N "checking for short... $ECHO_C" >&6
7605 if test "${ac_cv_type_short+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
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 if ((short *) 0)
7619 return 0;
7620 if (sizeof (short))
7621 return 0;
7623 return 0;
7625 _ACEOF
7626 rm -f conftest.$ac_objext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628 (eval $ac_compile) 2>conftest.er1
7629 ac_status=$?
7630 grep -v '^ *+' conftest.er1 >conftest.err
7631 rm -f conftest.er1
7632 cat conftest.err >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } &&
7635 { ac_try='test -z "$ac_c_werror_flag"
7636 || test ! -s conftest.err'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 (eval $ac_try) 2>&5
7639 ac_status=$?
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; } &&
7642 { ac_try='test -s conftest.$ac_objext'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 (eval $ac_try) 2>&5
7645 ac_status=$?
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
7648 ac_cv_type_short=yes
7649 else
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7653 ac_cv_type_short=no
7655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7657 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7658 echo "${ECHO_T}$ac_cv_type_short" >&6
7660 echo "$as_me:$LINENO: checking size of short" >&5
7661 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7662 if test "${ac_cv_sizeof_short+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665 if test "$ac_cv_type_short" = yes; then
7666 # The cast to unsigned long works around a bug in the HP C Compiler
7667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7669 # This bug is HP SR number 8606223364.
7670 if test "$cross_compiling" = yes; then
7671 # Depending upon the size, compute the lo and hi bounds.
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h. */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 $ac_includes_default
7680 main ()
7682 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7683 test_array [0] = 0
7686 return 0;
7688 _ACEOF
7689 rm -f conftest.$ac_objext
7690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7691 (eval $ac_compile) 2>conftest.er1
7692 ac_status=$?
7693 grep -v '^ *+' conftest.er1 >conftest.err
7694 rm -f conftest.er1
7695 cat conftest.err >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } &&
7698 { ac_try='test -z "$ac_c_werror_flag"
7699 || test ! -s conftest.err'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 (eval $ac_try) 2>&5
7702 ac_status=$?
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; } &&
7705 { ac_try='test -s conftest.$ac_objext'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 (eval $ac_try) 2>&5
7708 ac_status=$?
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7711 ac_lo=0 ac_mid=0
7712 while :; do
7713 cat >conftest.$ac_ext <<_ACEOF
7714 /* confdefs.h. */
7715 _ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7719 $ac_includes_default
7721 main ()
7723 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7724 test_array [0] = 0
7727 return 0;
7729 _ACEOF
7730 rm -f conftest.$ac_objext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7732 (eval $ac_compile) 2>conftest.er1
7733 ac_status=$?
7734 grep -v '^ *+' conftest.er1 >conftest.err
7735 rm -f conftest.er1
7736 cat conftest.err >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } &&
7739 { ac_try='test -z "$ac_c_werror_flag"
7740 || test ! -s conftest.err'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 (eval $ac_try) 2>&5
7743 ac_status=$?
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; } &&
7746 { ac_try='test -s conftest.$ac_objext'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 (eval $ac_try) 2>&5
7749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 ac_hi=$ac_mid; break
7753 else
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 ac_lo=`expr $ac_mid + 1`
7758 if test $ac_lo -le $ac_mid; then
7759 ac_lo= ac_hi=
7760 break
7762 ac_mid=`expr 2 '*' $ac_mid + 1`
7764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7765 done
7766 else
7767 echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7770 cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h. */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 $ac_includes_default
7778 main ()
7780 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7781 test_array [0] = 0
7784 return 0;
7786 _ACEOF
7787 rm -f conftest.$ac_objext
7788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7789 (eval $ac_compile) 2>conftest.er1
7790 ac_status=$?
7791 grep -v '^ *+' conftest.er1 >conftest.err
7792 rm -f conftest.er1
7793 cat conftest.err >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try='test -z "$ac_c_werror_flag"
7797 || test ! -s conftest.err'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799 (eval $ac_try) 2>&5
7800 ac_status=$?
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; } &&
7803 { ac_try='test -s conftest.$ac_objext'
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 (eval $ac_try) 2>&5
7806 ac_status=$?
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; }; then
7809 ac_hi=-1 ac_mid=-1
7810 while :; do
7811 cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h. */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 $ac_includes_default
7819 main ()
7821 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7822 test_array [0] = 0
7825 return 0;
7827 _ACEOF
7828 rm -f conftest.$ac_objext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7830 (eval $ac_compile) 2>conftest.er1
7831 ac_status=$?
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try='test -z "$ac_c_werror_flag"
7838 || test ! -s conftest.err'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try='test -s conftest.$ac_objext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 (eval $ac_try) 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 ac_lo=$ac_mid; break
7851 else
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7855 ac_hi=`expr '(' $ac_mid ')' - 1`
7856 if test $ac_mid -le $ac_hi; then
7857 ac_lo= ac_hi=
7858 break
7860 ac_mid=`expr 2 '*' $ac_mid`
7862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7863 done
7864 else
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7868 ac_lo= ac_hi=
7870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7873 # Binary search between lo and hi bounds.
7874 while test "x$ac_lo" != "x$ac_hi"; do
7875 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7876 cat >conftest.$ac_ext <<_ACEOF
7877 /* confdefs.h. */
7878 _ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7882 $ac_includes_default
7884 main ()
7886 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7887 test_array [0] = 0
7890 return 0;
7892 _ACEOF
7893 rm -f conftest.$ac_objext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895 (eval $ac_compile) 2>conftest.er1
7896 ac_status=$?
7897 grep -v '^ *+' conftest.er1 >conftest.err
7898 rm -f conftest.er1
7899 cat conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } &&
7902 { ac_try='test -z "$ac_c_werror_flag"
7903 || test ! -s conftest.err'
7904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905 (eval $ac_try) 2>&5
7906 ac_status=$?
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; } &&
7909 { ac_try='test -s conftest.$ac_objext'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911 (eval $ac_try) 2>&5
7912 ac_status=$?
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; }; then
7915 ac_hi=$ac_mid
7916 else
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7920 ac_lo=`expr '(' $ac_mid ')' + 1`
7922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7923 done
7924 case $ac_lo in
7925 ?*) ac_cv_sizeof_short=$ac_lo;;
7926 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7927 See \`config.log' for more details." >&5
7928 echo "$as_me: error: cannot compute sizeof (short), 77
7929 See \`config.log' for more details." >&2;}
7930 { (exit 1); exit 1; }; } ;;
7931 esac
7932 else
7933 if test "$cross_compiling" = yes; then
7934 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7935 See \`config.log' for more details." >&5
7936 echo "$as_me: error: cannot run test program while cross compiling
7937 See \`config.log' for more details." >&2;}
7938 { (exit 1); exit 1; }; }
7939 else
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 $ac_includes_default
7947 long longval () { return (long) (sizeof (short)); }
7948 unsigned long ulongval () { return (long) (sizeof (short)); }
7949 #include <stdio.h>
7950 #include <stdlib.h>
7952 main ()
7955 FILE *f = fopen ("conftest.val", "w");
7956 if (! f)
7957 exit (1);
7958 if (((long) (sizeof (short))) < 0)
7960 long i = longval ();
7961 if (i != ((long) (sizeof (short))))
7962 exit (1);
7963 fprintf (f, "%ld\n", i);
7965 else
7967 unsigned long i = ulongval ();
7968 if (i != ((long) (sizeof (short))))
7969 exit (1);
7970 fprintf (f, "%lu\n", i);
7972 exit (ferror (f) || fclose (f) != 0);
7975 return 0;
7977 _ACEOF
7978 rm -f conftest$ac_exeext
7979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7980 (eval $ac_link) 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 (eval $ac_try) 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7989 ac_cv_sizeof_short=`cat conftest.val`
7990 else
7991 echo "$as_me: program exited with status $ac_status" >&5
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 ( exit $ac_status )
7996 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7997 See \`config.log' for more details." >&5
7998 echo "$as_me: error: cannot compute sizeof (short), 77
7999 See \`config.log' for more details." >&2;}
8000 { (exit 1); exit 1; }; }
8002 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8005 rm -f conftest.val
8006 else
8007 ac_cv_sizeof_short=0
8010 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8011 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8012 cat >>confdefs.h <<_ACEOF
8013 #define SIZEOF_SHORT $ac_cv_sizeof_short
8014 _ACEOF
8017 echo "$as_me:$LINENO: checking for float" >&5
8018 echo $ECHO_N "checking for float... $ECHO_C" >&6
8019 if test "${ac_cv_type_float+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 else
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 if ((float *) 0)
8033 return 0;
8034 if (sizeof (float))
8035 return 0;
8037 return 0;
8039 _ACEOF
8040 rm -f conftest.$ac_objext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8042 (eval $ac_compile) 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -z "$ac_c_werror_flag"
8050 || test ! -s conftest.err'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 (eval $ac_try) 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try='test -s conftest.$ac_objext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_cv_type_float=yes
8063 else
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8067 ac_cv_type_float=no
8069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8071 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8072 echo "${ECHO_T}$ac_cv_type_float" >&6
8074 echo "$as_me:$LINENO: checking size of float" >&5
8075 echo $ECHO_N "checking size of float... $ECHO_C" >&6
8076 if test "${ac_cv_sizeof_float+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079 if test "$ac_cv_type_float" = yes; then
8080 # The cast to unsigned long works around a bug in the HP C Compiler
8081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8083 # This bug is HP SR number 8606223364.
8084 if test "$cross_compiling" = yes; then
8085 # Depending upon the size, compute the lo and hi bounds.
8086 cat >conftest.$ac_ext <<_ACEOF
8087 /* confdefs.h. */
8088 _ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8092 $ac_includes_default
8094 main ()
8096 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
8097 test_array [0] = 0
8100 return 0;
8102 _ACEOF
8103 rm -f conftest.$ac_objext
8104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8105 (eval $ac_compile) 2>conftest.er1
8106 ac_status=$?
8107 grep -v '^ *+' conftest.er1 >conftest.err
8108 rm -f conftest.er1
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } &&
8112 { ac_try='test -z "$ac_c_werror_flag"
8113 || test ! -s conftest.err'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 (eval $ac_try) 2>&5
8116 ac_status=$?
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; } &&
8119 { ac_try='test -s conftest.$ac_objext'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 (eval $ac_try) 2>&5
8122 ac_status=$?
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; }; then
8125 ac_lo=0 ac_mid=0
8126 while :; do
8127 cat >conftest.$ac_ext <<_ACEOF
8128 /* confdefs.h. */
8129 _ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8133 $ac_includes_default
8135 main ()
8137 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8138 test_array [0] = 0
8141 return 0;
8143 _ACEOF
8144 rm -f conftest.$ac_objext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8146 (eval $ac_compile) 2>conftest.er1
8147 ac_status=$?
8148 grep -v '^ *+' conftest.er1 >conftest.err
8149 rm -f conftest.er1
8150 cat conftest.err >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } &&
8153 { ac_try='test -z "$ac_c_werror_flag"
8154 || test ! -s conftest.err'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 (eval $ac_try) 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; } &&
8160 { ac_try='test -s conftest.$ac_objext'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 (eval $ac_try) 2>&5
8163 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 ac_hi=$ac_mid; break
8167 else
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 ac_lo=`expr $ac_mid + 1`
8172 if test $ac_lo -le $ac_mid; then
8173 ac_lo= ac_hi=
8174 break
8176 ac_mid=`expr 2 '*' $ac_mid + 1`
8178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8179 done
8180 else
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h. */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 $ac_includes_default
8192 main ()
8194 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
8195 test_array [0] = 0
8198 return 0;
8200 _ACEOF
8201 rm -f conftest.$ac_objext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8203 (eval $ac_compile) 2>conftest.er1
8204 ac_status=$?
8205 grep -v '^ *+' conftest.er1 >conftest.err
8206 rm -f conftest.er1
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -z "$ac_c_werror_flag"
8211 || test ! -s conftest.err'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 (eval $ac_try) 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest.$ac_objext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 (eval $ac_try) 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8223 ac_hi=-1 ac_mid=-1
8224 while :; do
8225 cat >conftest.$ac_ext <<_ACEOF
8226 /* confdefs.h. */
8227 _ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h. */
8231 $ac_includes_default
8233 main ()
8235 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
8236 test_array [0] = 0
8239 return 0;
8241 _ACEOF
8242 rm -f conftest.$ac_objext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8244 (eval $ac_compile) 2>conftest.er1
8245 ac_status=$?
8246 grep -v '^ *+' conftest.er1 >conftest.err
8247 rm -f conftest.er1
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try='test -z "$ac_c_werror_flag"
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest.$ac_objext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 (eval $ac_try) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_lo=$ac_mid; break
8265 else
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 ac_hi=`expr '(' $ac_mid ')' - 1`
8270 if test $ac_mid -le $ac_hi; then
8271 ac_lo= ac_hi=
8272 break
8274 ac_mid=`expr 2 '*' $ac_mid`
8276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8277 done
8278 else
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8282 ac_lo= ac_hi=
8284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8287 # Binary search between lo and hi bounds.
8288 while test "x$ac_lo" != "x$ac_hi"; do
8289 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8290 cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h. */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296 $ac_includes_default
8298 main ()
8300 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
8301 test_array [0] = 0
8304 return 0;
8306 _ACEOF
8307 rm -f conftest.$ac_objext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8309 (eval $ac_compile) 2>conftest.er1
8310 ac_status=$?
8311 grep -v '^ *+' conftest.er1 >conftest.err
8312 rm -f conftest.er1
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try='test -z "$ac_c_werror_flag"
8317 || test ! -s conftest.err'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 (eval $ac_try) 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; } &&
8323 { ac_try='test -s conftest.$ac_objext'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 (eval $ac_try) 2>&5
8326 ac_status=$?
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8329 ac_hi=$ac_mid
8330 else
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8334 ac_lo=`expr '(' $ac_mid ')' + 1`
8336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8337 done
8338 case $ac_lo in
8339 ?*) ac_cv_sizeof_float=$ac_lo;;
8340 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8341 See \`config.log' for more details." >&5
8342 echo "$as_me: error: cannot compute sizeof (float), 77
8343 See \`config.log' for more details." >&2;}
8344 { (exit 1); exit 1; }; } ;;
8345 esac
8346 else
8347 if test "$cross_compiling" = yes; then
8348 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8349 See \`config.log' for more details." >&5
8350 echo "$as_me: error: cannot run test program while cross compiling
8351 See \`config.log' for more details." >&2;}
8352 { (exit 1); exit 1; }; }
8353 else
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h. */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 $ac_includes_default
8361 long longval () { return (long) (sizeof (float)); }
8362 unsigned long ulongval () { return (long) (sizeof (float)); }
8363 #include <stdio.h>
8364 #include <stdlib.h>
8366 main ()
8369 FILE *f = fopen ("conftest.val", "w");
8370 if (! f)
8371 exit (1);
8372 if (((long) (sizeof (float))) < 0)
8374 long i = longval ();
8375 if (i != ((long) (sizeof (float))))
8376 exit (1);
8377 fprintf (f, "%ld\n", i);
8379 else
8381 unsigned long i = ulongval ();
8382 if (i != ((long) (sizeof (float))))
8383 exit (1);
8384 fprintf (f, "%lu\n", i);
8386 exit (ferror (f) || fclose (f) != 0);
8389 return 0;
8391 _ACEOF
8392 rm -f conftest$ac_exeext
8393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8394 (eval $ac_link) 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 ac_cv_sizeof_float=`cat conftest.val`
8404 else
8405 echo "$as_me: program exited with status $ac_status" >&5
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8409 ( exit $ac_status )
8410 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
8411 See \`config.log' for more details." >&5
8412 echo "$as_me: error: cannot compute sizeof (float), 77
8413 See \`config.log' for more details." >&2;}
8414 { (exit 1); exit 1; }; }
8416 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8419 rm -f conftest.val
8420 else
8421 ac_cv_sizeof_float=0
8424 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8425 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
8426 cat >>confdefs.h <<_ACEOF
8427 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8428 _ACEOF
8431 echo "$as_me:$LINENO: checking for double" >&5
8432 echo $ECHO_N "checking for double... $ECHO_C" >&6
8433 if test "${ac_cv_type_double+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 else
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 if ((double *) 0)
8447 return 0;
8448 if (sizeof (double))
8449 return 0;
8451 return 0;
8453 _ACEOF
8454 rm -f conftest.$ac_objext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8456 (eval $ac_compile) 2>conftest.er1
8457 ac_status=$?
8458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -z "$ac_c_werror_flag"
8464 || test ! -s conftest.err'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try='test -s conftest.$ac_objext'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 (eval $ac_try) 2>&5
8473 ac_status=$?
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8476 ac_cv_type_double=yes
8477 else
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8481 ac_cv_type_double=no
8483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8485 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8486 echo "${ECHO_T}$ac_cv_type_double" >&6
8488 echo "$as_me:$LINENO: checking size of double" >&5
8489 echo $ECHO_N "checking size of double... $ECHO_C" >&6
8490 if test "${ac_cv_sizeof_double+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 else
8493 if test "$ac_cv_type_double" = yes; then
8494 # The cast to unsigned long works around a bug in the HP C Compiler
8495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8497 # This bug is HP SR number 8606223364.
8498 if test "$cross_compiling" = yes; then
8499 # Depending upon the size, compute the lo and hi bounds.
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h. */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 $ac_includes_default
8508 main ()
8510 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
8511 test_array [0] = 0
8514 return 0;
8516 _ACEOF
8517 rm -f conftest.$ac_objext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8519 (eval $ac_compile) 2>conftest.er1
8520 ac_status=$?
8521 grep -v '^ *+' conftest.er1 >conftest.err
8522 rm -f conftest.er1
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -z "$ac_c_werror_flag"
8527 || test ! -s conftest.err'
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529 (eval $ac_try) 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; } &&
8533 { ac_try='test -s conftest.$ac_objext'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 (eval $ac_try) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; }; then
8539 ac_lo=0 ac_mid=0
8540 while :; do
8541 cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h. */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 $ac_includes_default
8549 main ()
8551 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8552 test_array [0] = 0
8555 return 0;
8557 _ACEOF
8558 rm -f conftest.$ac_objext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8560 (eval $ac_compile) 2>conftest.er1
8561 ac_status=$?
8562 grep -v '^ *+' conftest.er1 >conftest.err
8563 rm -f conftest.er1
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try='test -z "$ac_c_werror_flag"
8568 || test ! -s conftest.err'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 (eval $ac_try) 2>&5
8571 ac_status=$?
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; } &&
8574 { ac_try='test -s conftest.$ac_objext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 (eval $ac_try) 2>&5
8577 ac_status=$?
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_hi=$ac_mid; break
8581 else
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 ac_lo=`expr $ac_mid + 1`
8586 if test $ac_lo -le $ac_mid; then
8587 ac_lo= ac_hi=
8588 break
8590 ac_mid=`expr 2 '*' $ac_mid + 1`
8592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8593 done
8594 else
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8598 cat >conftest.$ac_ext <<_ACEOF
8599 /* confdefs.h. */
8600 _ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8604 $ac_includes_default
8606 main ()
8608 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
8609 test_array [0] = 0
8612 return 0;
8614 _ACEOF
8615 rm -f conftest.$ac_objext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8617 (eval $ac_compile) 2>conftest.er1
8618 ac_status=$?
8619 grep -v '^ *+' conftest.er1 >conftest.err
8620 rm -f conftest.er1
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try='test -z "$ac_c_werror_flag"
8625 || test ! -s conftest.err'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 (eval $ac_try) 2>&5
8628 ac_status=$?
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; } &&
8631 { ac_try='test -s conftest.$ac_objext'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 (eval $ac_try) 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_hi=-1 ac_mid=-1
8638 while :; do
8639 cat >conftest.$ac_ext <<_ACEOF
8640 /* confdefs.h. */
8641 _ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8645 $ac_includes_default
8647 main ()
8649 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
8650 test_array [0] = 0
8653 return 0;
8655 _ACEOF
8656 rm -f conftest.$ac_objext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 (eval $ac_compile) 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try='test -z "$ac_c_werror_flag"
8666 || test ! -s conftest.err'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 (eval $ac_try) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 (eval $ac_try) 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 ac_lo=$ac_mid; break
8679 else
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 ac_hi=`expr '(' $ac_mid ')' - 1`
8684 if test $ac_mid -le $ac_hi; then
8685 ac_lo= ac_hi=
8686 break
8688 ac_mid=`expr 2 '*' $ac_mid`
8690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8691 done
8692 else
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8696 ac_lo= ac_hi=
8698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8701 # Binary search between lo and hi bounds.
8702 while test "x$ac_lo" != "x$ac_hi"; do
8703 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8704 cat >conftest.$ac_ext <<_ACEOF
8705 /* confdefs.h. */
8706 _ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8710 $ac_includes_default
8712 main ()
8714 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
8715 test_array [0] = 0
8718 return 0;
8720 _ACEOF
8721 rm -f conftest.$ac_objext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8723 (eval $ac_compile) 2>conftest.er1
8724 ac_status=$?
8725 grep -v '^ *+' conftest.er1 >conftest.err
8726 rm -f conftest.er1
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } &&
8730 { ac_try='test -z "$ac_c_werror_flag"
8731 || test ! -s conftest.err'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733 (eval $ac_try) 2>&5
8734 ac_status=$?
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; } &&
8737 { ac_try='test -s conftest.$ac_objext'
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739 (eval $ac_try) 2>&5
8740 ac_status=$?
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; }; then
8743 ac_hi=$ac_mid
8744 else
8745 echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8748 ac_lo=`expr '(' $ac_mid ')' + 1`
8750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8751 done
8752 case $ac_lo in
8753 ?*) ac_cv_sizeof_double=$ac_lo;;
8754 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8755 See \`config.log' for more details." >&5
8756 echo "$as_me: error: cannot compute sizeof (double), 77
8757 See \`config.log' for more details." >&2;}
8758 { (exit 1); exit 1; }; } ;;
8759 esac
8760 else
8761 if test "$cross_compiling" = yes; then
8762 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8763 See \`config.log' for more details." >&5
8764 echo "$as_me: error: cannot run test program while cross compiling
8765 See \`config.log' for more details." >&2;}
8766 { (exit 1); exit 1; }; }
8767 else
8768 cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h. */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 $ac_includes_default
8775 long longval () { return (long) (sizeof (double)); }
8776 unsigned long ulongval () { return (long) (sizeof (double)); }
8777 #include <stdio.h>
8778 #include <stdlib.h>
8780 main ()
8783 FILE *f = fopen ("conftest.val", "w");
8784 if (! f)
8785 exit (1);
8786 if (((long) (sizeof (double))) < 0)
8788 long i = longval ();
8789 if (i != ((long) (sizeof (double))))
8790 exit (1);
8791 fprintf (f, "%ld\n", i);
8793 else
8795 unsigned long i = ulongval ();
8796 if (i != ((long) (sizeof (double))))
8797 exit (1);
8798 fprintf (f, "%lu\n", i);
8800 exit (ferror (f) || fclose (f) != 0);
8803 return 0;
8805 _ACEOF
8806 rm -f conftest$ac_exeext
8807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8808 (eval $ac_link) 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 (eval $ac_try) 2>&5
8814 ac_status=$?
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817 ac_cv_sizeof_double=`cat conftest.val`
8818 else
8819 echo "$as_me: program exited with status $ac_status" >&5
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8823 ( exit $ac_status )
8824 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
8825 See \`config.log' for more details." >&5
8826 echo "$as_me: error: cannot compute sizeof (double), 77
8827 See \`config.log' for more details." >&2;}
8828 { (exit 1); exit 1; }; }
8830 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8833 rm -f conftest.val
8834 else
8835 ac_cv_sizeof_double=0
8838 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
8839 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
8840 cat >>confdefs.h <<_ACEOF
8841 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8842 _ACEOF
8845 echo "$as_me:$LINENO: checking for fpos_t" >&5
8846 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
8847 if test "${ac_cv_type_fpos_t+set}" = set; then
8848 echo $ECHO_N "(cached) $ECHO_C" >&6
8849 else
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 if ((fpos_t *) 0)
8861 return 0;
8862 if (sizeof (fpos_t))
8863 return 0;
8865 return 0;
8867 _ACEOF
8868 rm -f conftest.$ac_objext
8869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8870 (eval $ac_compile) 2>conftest.er1
8871 ac_status=$?
8872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } &&
8877 { ac_try='test -z "$ac_c_werror_flag"
8878 || test ! -s conftest.err'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 (eval $ac_try) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; } &&
8884 { ac_try='test -s conftest.$ac_objext'
8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 (eval $ac_try) 2>&5
8887 ac_status=$?
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8890 ac_cv_type_fpos_t=yes
8891 else
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8895 ac_cv_type_fpos_t=no
8897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8899 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
8900 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
8902 echo "$as_me:$LINENO: checking size of fpos_t" >&5
8903 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
8904 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 else
8907 if test "$ac_cv_type_fpos_t" = yes; then
8908 # The cast to unsigned long works around a bug in the HP C Compiler
8909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8911 # This bug is HP SR number 8606223364.
8912 if test "$cross_compiling" = yes; then
8913 # Depending upon the size, compute the lo and hi bounds.
8914 cat >conftest.$ac_ext <<_ACEOF
8915 /* confdefs.h. */
8916 _ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8920 $ac_includes_default
8922 main ()
8924 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
8925 test_array [0] = 0
8928 return 0;
8930 _ACEOF
8931 rm -f conftest.$ac_objext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8933 (eval $ac_compile) 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -z "$ac_c_werror_flag"
8941 || test ! -s conftest.err'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 (eval $ac_try) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; } &&
8947 { ac_try='test -s conftest.$ac_objext'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 (eval $ac_try) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8953 ac_lo=0 ac_mid=0
8954 while :; do
8955 cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h. */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961 $ac_includes_default
8963 main ()
8965 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
8966 test_array [0] = 0
8969 return 0;
8971 _ACEOF
8972 rm -f conftest.$ac_objext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8974 (eval $ac_compile) 2>conftest.er1
8975 ac_status=$?
8976 grep -v '^ *+' conftest.er1 >conftest.err
8977 rm -f conftest.er1
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try='test -z "$ac_c_werror_flag"
8982 || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try='test -s conftest.$ac_objext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 (eval $ac_try) 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 ac_hi=$ac_mid; break
8995 else
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8999 ac_lo=`expr $ac_mid + 1`
9000 if test $ac_lo -le $ac_mid; then
9001 ac_lo= ac_hi=
9002 break
9004 ac_mid=`expr 2 '*' $ac_mid + 1`
9006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9007 done
9008 else
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9012 cat >conftest.$ac_ext <<_ACEOF
9013 /* confdefs.h. */
9014 _ACEOF
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018 $ac_includes_default
9020 main ()
9022 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
9023 test_array [0] = 0
9026 return 0;
9028 _ACEOF
9029 rm -f conftest.$ac_objext
9030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9031 (eval $ac_compile) 2>conftest.er1
9032 ac_status=$?
9033 grep -v '^ *+' conftest.er1 >conftest.err
9034 rm -f conftest.er1
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } &&
9038 { ac_try='test -z "$ac_c_werror_flag"
9039 || test ! -s conftest.err'
9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041 (eval $ac_try) 2>&5
9042 ac_status=$?
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; } &&
9045 { ac_try='test -s conftest.$ac_objext'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 (eval $ac_try) 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; }; then
9051 ac_hi=-1 ac_mid=-1
9052 while :; do
9053 cat >conftest.$ac_ext <<_ACEOF
9054 /* confdefs.h. */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 $ac_includes_default
9061 main ()
9063 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
9064 test_array [0] = 0
9067 return 0;
9069 _ACEOF
9070 rm -f conftest.$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072 (eval $ac_compile) 2>conftest.er1
9073 ac_status=$?
9074 grep -v '^ *+' conftest.er1 >conftest.err
9075 rm -f conftest.er1
9076 cat conftest.err >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try='test -z "$ac_c_werror_flag"
9080 || test ! -s conftest.err'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try='test -s conftest.$ac_objext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 (eval $ac_try) 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9092 ac_lo=$ac_mid; break
9093 else
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.$ac_ext >&5
9097 ac_hi=`expr '(' $ac_mid ')' - 1`
9098 if test $ac_mid -le $ac_hi; then
9099 ac_lo= ac_hi=
9100 break
9102 ac_mid=`expr 2 '*' $ac_mid`
9104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9105 done
9106 else
9107 echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9110 ac_lo= ac_hi=
9112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9115 # Binary search between lo and hi bounds.
9116 while test "x$ac_lo" != "x$ac_hi"; do
9117 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9118 cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h. */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 $ac_includes_default
9126 main ()
9128 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
9129 test_array [0] = 0
9132 return 0;
9134 _ACEOF
9135 rm -f conftest.$ac_objext
9136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9137 (eval $ac_compile) 2>conftest.er1
9138 ac_status=$?
9139 grep -v '^ *+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } &&
9144 { ac_try='test -z "$ac_c_werror_flag"
9145 || test ! -s conftest.err'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 (eval $ac_try) 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; } &&
9151 { ac_try='test -s conftest.$ac_objext'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153 (eval $ac_try) 2>&5
9154 ac_status=$?
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; }; then
9157 ac_hi=$ac_mid
9158 else
9159 echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.$ac_ext >&5
9162 ac_lo=`expr '(' $ac_mid ')' + 1`
9164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9165 done
9166 case $ac_lo in
9167 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9168 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9169 See \`config.log' for more details." >&5
9170 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9171 See \`config.log' for more details." >&2;}
9172 { (exit 1); exit 1; }; } ;;
9173 esac
9174 else
9175 if test "$cross_compiling" = yes; then
9176 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9177 See \`config.log' for more details." >&5
9178 echo "$as_me: error: cannot run test program while cross compiling
9179 See \`config.log' for more details." >&2;}
9180 { (exit 1); exit 1; }; }
9181 else
9182 cat >conftest.$ac_ext <<_ACEOF
9183 /* confdefs.h. */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 $ac_includes_default
9189 long longval () { return (long) (sizeof (fpos_t)); }
9190 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
9191 #include <stdio.h>
9192 #include <stdlib.h>
9194 main ()
9197 FILE *f = fopen ("conftest.val", "w");
9198 if (! f)
9199 exit (1);
9200 if (((long) (sizeof (fpos_t))) < 0)
9202 long i = longval ();
9203 if (i != ((long) (sizeof (fpos_t))))
9204 exit (1);
9205 fprintf (f, "%ld\n", i);
9207 else
9209 unsigned long i = ulongval ();
9210 if (i != ((long) (sizeof (fpos_t))))
9211 exit (1);
9212 fprintf (f, "%lu\n", i);
9214 exit (ferror (f) || fclose (f) != 0);
9217 return 0;
9219 _ACEOF
9220 rm -f conftest$ac_exeext
9221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9222 (eval $ac_link) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 (eval $ac_try) 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 ac_cv_sizeof_fpos_t=`cat conftest.val`
9232 else
9233 echo "$as_me: program exited with status $ac_status" >&5
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9237 ( exit $ac_status )
9238 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
9239 See \`config.log' for more details." >&5
9240 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
9241 See \`config.log' for more details." >&2;}
9242 { (exit 1); exit 1; }; }
9244 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9247 rm -f conftest.val
9248 else
9249 ac_cv_sizeof_fpos_t=0
9252 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9253 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
9254 cat >>confdefs.h <<_ACEOF
9255 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9256 _ACEOF
9259 echo "$as_me:$LINENO: checking for size_t" >&5
9260 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9261 if test "${ac_cv_type_size_t+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 else
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 if ((size_t *) 0)
9275 return 0;
9276 if (sizeof (size_t))
9277 return 0;
9279 return 0;
9281 _ACEOF
9282 rm -f conftest.$ac_objext
9283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9284 (eval $ac_compile) 2>conftest.er1
9285 ac_status=$?
9286 grep -v '^ *+' conftest.er1 >conftest.err
9287 rm -f conftest.er1
9288 cat conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } &&
9291 { ac_try='test -z "$ac_c_werror_flag"
9292 || test ! -s conftest.err'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 (eval $ac_try) 2>&5
9295 ac_status=$?
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; } &&
9298 { ac_try='test -s conftest.$ac_objext'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 (eval $ac_try) 2>&5
9301 ac_status=$?
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9304 ac_cv_type_size_t=yes
9305 else
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9309 ac_cv_type_size_t=no
9311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9313 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9314 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9316 echo "$as_me:$LINENO: checking size of size_t" >&5
9317 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9318 if test "${ac_cv_sizeof_size_t+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321 if test "$ac_cv_type_size_t" = yes; then
9322 # The cast to unsigned long works around a bug in the HP C Compiler
9323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9325 # This bug is HP SR number 8606223364.
9326 if test "$cross_compiling" = yes; then
9327 # Depending upon the size, compute the lo and hi bounds.
9328 cat >conftest.$ac_ext <<_ACEOF
9329 /* confdefs.h. */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 $ac_includes_default
9336 main ()
9338 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9339 test_array [0] = 0
9342 return 0;
9344 _ACEOF
9345 rm -f conftest.$ac_objext
9346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9347 (eval $ac_compile) 2>conftest.er1
9348 ac_status=$?
9349 grep -v '^ *+' conftest.er1 >conftest.err
9350 rm -f conftest.er1
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } &&
9354 { ac_try='test -z "$ac_c_werror_flag"
9355 || test ! -s conftest.err'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 (eval $ac_try) 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; } &&
9361 { ac_try='test -s conftest.$ac_objext'
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 (eval $ac_try) 2>&5
9364 ac_status=$?
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9367 ac_lo=0 ac_mid=0
9368 while :; do
9369 cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h. */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 $ac_includes_default
9377 main ()
9379 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9380 test_array [0] = 0
9383 return 0;
9385 _ACEOF
9386 rm -f conftest.$ac_objext
9387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388 (eval $ac_compile) 2>conftest.er1
9389 ac_status=$?
9390 grep -v '^ *+' conftest.er1 >conftest.err
9391 rm -f conftest.er1
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } &&
9395 { ac_try='test -z "$ac_c_werror_flag"
9396 || test ! -s conftest.err'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 (eval $ac_try) 2>&5
9399 ac_status=$?
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; } &&
9402 { ac_try='test -s conftest.$ac_objext'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 (eval $ac_try) 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; }; then
9408 ac_hi=$ac_mid; break
9409 else
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 ac_lo=`expr $ac_mid + 1`
9414 if test $ac_lo -le $ac_mid; then
9415 ac_lo= ac_hi=
9416 break
9418 ac_mid=`expr 2 '*' $ac_mid + 1`
9420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9421 done
9422 else
9423 echo "$as_me: failed program was:" >&5
9424 sed 's/^/| /' conftest.$ac_ext >&5
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h. */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 $ac_includes_default
9434 main ()
9436 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
9437 test_array [0] = 0
9440 return 0;
9442 _ACEOF
9443 rm -f conftest.$ac_objext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9445 (eval $ac_compile) 2>conftest.er1
9446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
9452 { ac_try='test -z "$ac_c_werror_flag"
9453 || test ! -s conftest.err'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 (eval $ac_try) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; } &&
9459 { ac_try='test -s conftest.$ac_objext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_hi=-1 ac_mid=-1
9466 while :; do
9467 cat >conftest.$ac_ext <<_ACEOF
9468 /* confdefs.h. */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 $ac_includes_default
9475 main ()
9477 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
9478 test_array [0] = 0
9481 return 0;
9483 _ACEOF
9484 rm -f conftest.$ac_objext
9485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9486 (eval $ac_compile) 2>conftest.er1
9487 ac_status=$?
9488 grep -v '^ *+' conftest.er1 >conftest.err
9489 rm -f conftest.er1
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } &&
9493 { ac_try='test -z "$ac_c_werror_flag"
9494 || test ! -s conftest.err'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 (eval $ac_try) 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; } &&
9500 { ac_try='test -s conftest.$ac_objext'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; }; then
9506 ac_lo=$ac_mid; break
9507 else
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9511 ac_hi=`expr '(' $ac_mid ')' - 1`
9512 if test $ac_mid -le $ac_hi; then
9513 ac_lo= ac_hi=
9514 break
9516 ac_mid=`expr 2 '*' $ac_mid`
9518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9519 done
9520 else
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9524 ac_lo= ac_hi=
9526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9529 # Binary search between lo and hi bounds.
9530 while test "x$ac_lo" != "x$ac_hi"; do
9531 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h. */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 $ac_includes_default
9540 main ()
9542 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9543 test_array [0] = 0
9546 return 0;
9548 _ACEOF
9549 rm -f conftest.$ac_objext
9550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9551 (eval $ac_compile) 2>conftest.er1
9552 ac_status=$?
9553 grep -v '^ *+' conftest.er1 >conftest.err
9554 rm -f conftest.er1
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } &&
9558 { ac_try='test -z "$ac_c_werror_flag"
9559 || test ! -s conftest.err'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 (eval $ac_try) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; } &&
9565 { ac_try='test -s conftest.$ac_objext'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 (eval $ac_try) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9571 ac_hi=$ac_mid
9572 else
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9576 ac_lo=`expr '(' $ac_mid ')' + 1`
9578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9579 done
9580 case $ac_lo in
9581 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9582 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9583 See \`config.log' for more details." >&5
9584 echo "$as_me: error: cannot compute sizeof (size_t), 77
9585 See \`config.log' for more details." >&2;}
9586 { (exit 1); exit 1; }; } ;;
9587 esac
9588 else
9589 if test "$cross_compiling" = yes; then
9590 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9591 See \`config.log' for more details." >&5
9592 echo "$as_me: error: cannot run test program while cross compiling
9593 See \`config.log' for more details." >&2;}
9594 { (exit 1); exit 1; }; }
9595 else
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h. */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9602 $ac_includes_default
9603 long longval () { return (long) (sizeof (size_t)); }
9604 unsigned long ulongval () { return (long) (sizeof (size_t)); }
9605 #include <stdio.h>
9606 #include <stdlib.h>
9608 main ()
9611 FILE *f = fopen ("conftest.val", "w");
9612 if (! f)
9613 exit (1);
9614 if (((long) (sizeof (size_t))) < 0)
9616 long i = longval ();
9617 if (i != ((long) (sizeof (size_t))))
9618 exit (1);
9619 fprintf (f, "%ld\n", i);
9621 else
9623 unsigned long i = ulongval ();
9624 if (i != ((long) (sizeof (size_t))))
9625 exit (1);
9626 fprintf (f, "%lu\n", i);
9628 exit (ferror (f) || fclose (f) != 0);
9631 return 0;
9633 _ACEOF
9634 rm -f conftest$ac_exeext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636 (eval $ac_link) 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
9645 ac_cv_sizeof_size_t=`cat conftest.val`
9646 else
9647 echo "$as_me: program exited with status $ac_status" >&5
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9651 ( exit $ac_status )
9652 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
9653 See \`config.log' for more details." >&5
9654 echo "$as_me: error: cannot compute sizeof (size_t), 77
9655 See \`config.log' for more details." >&2;}
9656 { (exit 1); exit 1; }; }
9658 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9661 rm -f conftest.val
9662 else
9663 ac_cv_sizeof_size_t=0
9666 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9667 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
9668 cat >>confdefs.h <<_ACEOF
9669 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9670 _ACEOF
9674 echo "$as_me:$LINENO: checking for long long support" >&5
9675 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9676 have_long_long=no
9677 cat >conftest.$ac_ext <<_ACEOF
9678 /* confdefs.h. */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9685 main ()
9687 long long x; x = (long long)0;
9689 return 0;
9691 _ACEOF
9692 rm -f conftest.$ac_objext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9694 (eval $ac_compile) 2>conftest.er1
9695 ac_status=$?
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -z "$ac_c_werror_flag"
9702 || test ! -s conftest.err'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 (eval $ac_try) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest.$ac_objext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9716 cat >>confdefs.h <<\_ACEOF
9717 #define HAVE_LONG_LONG 1
9718 _ACEOF
9720 have_long_long=yes
9722 else
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9728 echo "$as_me:$LINENO: result: $have_long_long" >&5
9729 echo "${ECHO_T}$have_long_long" >&6
9730 if test "$have_long_long" = yes ; then
9731 echo "$as_me:$LINENO: checking for long long" >&5
9732 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9733 if test "${ac_cv_type_long_long+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
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 if ((long long *) 0)
9747 return 0;
9748 if (sizeof (long long))
9749 return 0;
9751 return 0;
9753 _ACEOF
9754 rm -f conftest.$ac_objext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756 (eval $ac_compile) 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest.$ac_objext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_type_long_long=yes
9777 else
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9781 ac_cv_type_long_long=no
9783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9785 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9786 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9788 echo "$as_me:$LINENO: checking size of long long" >&5
9789 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9790 if test "${ac_cv_sizeof_long_long+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793 if test "$ac_cv_type_long_long" = yes; then
9794 # The cast to unsigned long works around a bug in the HP C Compiler
9795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9797 # This bug is HP SR number 8606223364.
9798 if test "$cross_compiling" = yes; then
9799 # Depending upon the size, compute the lo and hi bounds.
9800 cat >conftest.$ac_ext <<_ACEOF
9801 /* confdefs.h. */
9802 _ACEOF
9803 cat confdefs.h >>conftest.$ac_ext
9804 cat >>conftest.$ac_ext <<_ACEOF
9805 /* end confdefs.h. */
9806 $ac_includes_default
9808 main ()
9810 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9811 test_array [0] = 0
9814 return 0;
9816 _ACEOF
9817 rm -f conftest.$ac_objext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9819 (eval $ac_compile) 2>conftest.er1
9820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag"
9827 || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 (eval $ac_try) 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest.$ac_objext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 (eval $ac_try) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_lo=0 ac_mid=0
9840 while :; do
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h. */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9847 $ac_includes_default
9849 main ()
9851 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9852 test_array [0] = 0
9855 return 0;
9857 _ACEOF
9858 rm -f conftest.$ac_objext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9860 (eval $ac_compile) 2>conftest.er1
9861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag"
9868 || test ! -s conftest.err'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 (eval $ac_try) 2>&5
9871 ac_status=$?
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; } &&
9874 { ac_try='test -s conftest.$ac_objext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 (eval $ac_try) 2>&5
9877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 ac_hi=$ac_mid; break
9881 else
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9885 ac_lo=`expr $ac_mid + 1`
9886 if test $ac_lo -le $ac_mid; then
9887 ac_lo= ac_hi=
9888 break
9890 ac_mid=`expr 2 '*' $ac_mid + 1`
9892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9893 done
9894 else
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9898 cat >conftest.$ac_ext <<_ACEOF
9899 /* confdefs.h. */
9900 _ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 $ac_includes_default
9906 main ()
9908 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9909 test_array [0] = 0
9912 return 0;
9914 _ACEOF
9915 rm -f conftest.$ac_objext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9917 (eval $ac_compile) 2>conftest.er1
9918 ac_status=$?
9919 grep -v '^ *+' conftest.er1 >conftest.err
9920 rm -f conftest.er1
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try='test -z "$ac_c_werror_flag"
9925 || test ! -s conftest.err'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 (eval $ac_try) 2>&5
9928 ac_status=$?
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; } &&
9931 { ac_try='test -s conftest.$ac_objext'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 (eval $ac_try) 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_hi=-1 ac_mid=-1
9938 while :; do
9939 cat >conftest.$ac_ext <<_ACEOF
9940 /* confdefs.h. */
9941 _ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 $ac_includes_default
9947 main ()
9949 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9950 test_array [0] = 0
9953 return 0;
9955 _ACEOF
9956 rm -f conftest.$ac_objext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9958 (eval $ac_compile) 2>conftest.er1
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag"
9966 || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 (eval $ac_try) 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest.$ac_objext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_lo=$ac_mid; break
9979 else
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 ac_hi=`expr '(' $ac_mid ')' - 1`
9984 if test $ac_mid -le $ac_hi; then
9985 ac_lo= ac_hi=
9986 break
9988 ac_mid=`expr 2 '*' $ac_mid`
9990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9991 done
9992 else
9993 echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9996 ac_lo= ac_hi=
9998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10001 # Binary search between lo and hi bounds.
10002 while test "x$ac_lo" != "x$ac_hi"; do
10003 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10004 cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h. */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 $ac_includes_default
10012 main ()
10014 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
10015 test_array [0] = 0
10018 return 0;
10020 _ACEOF
10021 rm -f conftest.$ac_objext
10022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10023 (eval $ac_compile) 2>conftest.er1
10024 ac_status=$?
10025 grep -v '^ *+' conftest.er1 >conftest.err
10026 rm -f conftest.er1
10027 cat conftest.err >&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } &&
10030 { ac_try='test -z "$ac_c_werror_flag"
10031 || test ! -s conftest.err'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; } &&
10037 { ac_try='test -s conftest.$ac_objext'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10043 ac_hi=$ac_mid
10044 else
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 ac_lo=`expr '(' $ac_mid ')' + 1`
10050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10051 done
10052 case $ac_lo in
10053 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10054 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10055 See \`config.log' for more details." >&5
10056 echo "$as_me: error: cannot compute sizeof (long long), 77
10057 See \`config.log' for more details." >&2;}
10058 { (exit 1); exit 1; }; } ;;
10059 esac
10060 else
10061 if test "$cross_compiling" = yes; then
10062 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10063 See \`config.log' for more details." >&5
10064 echo "$as_me: error: cannot run test program while cross compiling
10065 See \`config.log' for more details." >&2;}
10066 { (exit 1); exit 1; }; }
10067 else
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h. */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 $ac_includes_default
10075 long longval () { return (long) (sizeof (long long)); }
10076 unsigned long ulongval () { return (long) (sizeof (long long)); }
10077 #include <stdio.h>
10078 #include <stdlib.h>
10080 main ()
10083 FILE *f = fopen ("conftest.val", "w");
10084 if (! f)
10085 exit (1);
10086 if (((long) (sizeof (long long))) < 0)
10088 long i = longval ();
10089 if (i != ((long) (sizeof (long long))))
10090 exit (1);
10091 fprintf (f, "%ld\n", i);
10093 else
10095 unsigned long i = ulongval ();
10096 if (i != ((long) (sizeof (long long))))
10097 exit (1);
10098 fprintf (f, "%lu\n", i);
10100 exit (ferror (f) || fclose (f) != 0);
10103 return 0;
10105 _ACEOF
10106 rm -f conftest$ac_exeext
10107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108 (eval $ac_link) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 ac_cv_sizeof_long_long=`cat conftest.val`
10118 else
10119 echo "$as_me: program exited with status $ac_status" >&5
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 ( exit $ac_status )
10124 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10125 See \`config.log' for more details." >&5
10126 echo "$as_me: error: cannot compute sizeof (long long), 77
10127 See \`config.log' for more details." >&2;}
10128 { (exit 1); exit 1; }; }
10130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10133 rm -f conftest.val
10134 else
10135 ac_cv_sizeof_long_long=0
10138 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10139 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10140 cat >>confdefs.h <<_ACEOF
10141 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10142 _ACEOF
10147 echo "$as_me:$LINENO: checking for _Bool support" >&5
10148 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6
10149 have_c99_bool=no
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h. */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10158 main ()
10160 _Bool x; x = (_Bool)0;
10162 return 0;
10164 _ACEOF
10165 rm -f conftest.$ac_objext
10166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10167 (eval $ac_compile) 2>conftest.er1
10168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -z "$ac_c_werror_flag"
10175 || test ! -s conftest.err'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; } &&
10181 { ac_try='test -s conftest.$ac_objext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10189 cat >>confdefs.h <<\_ACEOF
10190 #define HAVE_C99_BOOL 1
10191 _ACEOF
10193 have_c99_bool=yes
10195 else
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10201 echo "$as_me:$LINENO: result: $have_c99_bool" >&5
10202 echo "${ECHO_T}$have_c99_bool" >&6
10203 if test "$have_c99_bool" = yes ; then
10204 echo "$as_me:$LINENO: checking for _Bool" >&5
10205 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10206 if test "${ac_cv_type__Bool+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
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 if ((_Bool *) 0)
10220 return 0;
10221 if (sizeof (_Bool))
10222 return 0;
10224 return 0;
10226 _ACEOF
10227 rm -f conftest.$ac_objext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10229 (eval $ac_compile) 2>conftest.er1
10230 ac_status=$?
10231 grep -v '^ *+' conftest.er1 >conftest.err
10232 rm -f conftest.er1
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -z "$ac_c_werror_flag"
10237 || test ! -s conftest.err'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; } &&
10243 { ac_try='test -s conftest.$ac_objext'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10246 ac_status=$?
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 ac_cv_type__Bool=yes
10250 else
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10254 ac_cv_type__Bool=no
10256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10258 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10259 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10261 echo "$as_me:$LINENO: checking size of _Bool" >&5
10262 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6
10263 if test "${ac_cv_sizeof__Bool+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 else
10266 if test "$ac_cv_type__Bool" = yes; then
10267 # The cast to unsigned long works around a bug in the HP C Compiler
10268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10270 # This bug is HP SR number 8606223364.
10271 if test "$cross_compiling" = yes; then
10272 # Depending upon the size, compute the lo and hi bounds.
10273 cat >conftest.$ac_ext <<_ACEOF
10274 /* confdefs.h. */
10275 _ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10279 $ac_includes_default
10281 main ()
10283 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) >= 0)];
10284 test_array [0] = 0
10287 return 0;
10289 _ACEOF
10290 rm -f conftest.$ac_objext
10291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10292 (eval $ac_compile) 2>conftest.er1
10293 ac_status=$?
10294 grep -v '^ *+' conftest.er1 >conftest.err
10295 rm -f conftest.er1
10296 cat conftest.err >&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
10299 { ac_try='test -z "$ac_c_werror_flag"
10300 || test ! -s conftest.err'
10301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302 (eval $ac_try) 2>&5
10303 ac_status=$?
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); }; } &&
10306 { ac_try='test -s conftest.$ac_objext'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10312 ac_lo=0 ac_mid=0
10313 while :; do
10314 cat >conftest.$ac_ext <<_ACEOF
10315 /* confdefs.h. */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 $ac_includes_default
10322 main ()
10324 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) <= $ac_mid)];
10325 test_array [0] = 0
10328 return 0;
10330 _ACEOF
10331 rm -f conftest.$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>conftest.er1
10334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try='test -z "$ac_c_werror_flag"
10341 || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try='test -s conftest.$ac_objext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_hi=$ac_mid; break
10354 else
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10358 ac_lo=`expr $ac_mid + 1`
10359 if test $ac_lo -le $ac_mid; then
10360 ac_lo= ac_hi=
10361 break
10363 ac_mid=`expr 2 '*' $ac_mid + 1`
10365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10366 done
10367 else
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10371 cat >conftest.$ac_ext <<_ACEOF
10372 /* confdefs.h. */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10377 $ac_includes_default
10379 main ()
10381 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) < 0)];
10382 test_array [0] = 0
10385 return 0;
10387 _ACEOF
10388 rm -f conftest.$ac_objext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10390 (eval $ac_compile) 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } &&
10397 { ac_try='test -z "$ac_c_werror_flag"
10398 || test ! -s conftest.err'
10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400 (eval $ac_try) 2>&5
10401 ac_status=$?
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; } &&
10404 { ac_try='test -s conftest.$ac_objext'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10410 ac_hi=-1 ac_mid=-1
10411 while :; do
10412 cat >conftest.$ac_ext <<_ACEOF
10413 /* confdefs.h. */
10414 _ACEOF
10415 cat confdefs.h >>conftest.$ac_ext
10416 cat >>conftest.$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10418 $ac_includes_default
10420 main ()
10422 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) >= $ac_mid)];
10423 test_array [0] = 0
10426 return 0;
10428 _ACEOF
10429 rm -f conftest.$ac_objext
10430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10431 (eval $ac_compile) 2>conftest.er1
10432 ac_status=$?
10433 grep -v '^ *+' conftest.er1 >conftest.err
10434 rm -f conftest.er1
10435 cat conftest.err >&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } &&
10438 { ac_try='test -z "$ac_c_werror_flag"
10439 || test ! -s conftest.err'
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; } &&
10445 { ac_try='test -s conftest.$ac_objext'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }; then
10451 ac_lo=$ac_mid; break
10452 else
10453 echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10456 ac_hi=`expr '(' $ac_mid ')' - 1`
10457 if test $ac_mid -le $ac_hi; then
10458 ac_lo= ac_hi=
10459 break
10461 ac_mid=`expr 2 '*' $ac_mid`
10463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10464 done
10465 else
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 ac_lo= ac_hi=
10471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10474 # Binary search between lo and hi bounds.
10475 while test "x$ac_lo" != "x$ac_hi"; do
10476 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10477 cat >conftest.$ac_ext <<_ACEOF
10478 /* confdefs.h. */
10479 _ACEOF
10480 cat confdefs.h >>conftest.$ac_ext
10481 cat >>conftest.$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10483 $ac_includes_default
10485 main ()
10487 static int test_array [1 - 2 * !(((long) (sizeof (_Bool))) <= $ac_mid)];
10488 test_array [0] = 0
10491 return 0;
10493 _ACEOF
10494 rm -f conftest.$ac_objext
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496 (eval $ac_compile) 2>conftest.er1
10497 ac_status=$?
10498 grep -v '^ *+' conftest.er1 >conftest.err
10499 rm -f conftest.er1
10500 cat conftest.err >&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } &&
10503 { ac_try='test -z "$ac_c_werror_flag"
10504 || test ! -s conftest.err'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10507 ac_status=$?
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; } &&
10510 { ac_try='test -s conftest.$ac_objext'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }; then
10516 ac_hi=$ac_mid
10517 else
10518 echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10521 ac_lo=`expr '(' $ac_mid ')' + 1`
10523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10524 done
10525 case $ac_lo in
10526 ?*) ac_cv_sizeof__Bool=$ac_lo;;
10527 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool), 77
10528 See \`config.log' for more details." >&5
10529 echo "$as_me: error: cannot compute sizeof (_Bool), 77
10530 See \`config.log' for more details." >&2;}
10531 { (exit 1); exit 1; }; } ;;
10532 esac
10533 else
10534 if test "$cross_compiling" = yes; then
10535 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10536 See \`config.log' for more details." >&5
10537 echo "$as_me: error: cannot run test program while cross compiling
10538 See \`config.log' for more details." >&2;}
10539 { (exit 1); exit 1; }; }
10540 else
10541 cat >conftest.$ac_ext <<_ACEOF
10542 /* confdefs.h. */
10543 _ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10547 $ac_includes_default
10548 long longval () { return (long) (sizeof (_Bool)); }
10549 unsigned long ulongval () { return (long) (sizeof (_Bool)); }
10550 #include <stdio.h>
10551 #include <stdlib.h>
10553 main ()
10556 FILE *f = fopen ("conftest.val", "w");
10557 if (! f)
10558 exit (1);
10559 if (((long) (sizeof (_Bool))) < 0)
10561 long i = longval ();
10562 if (i != ((long) (sizeof (_Bool))))
10563 exit (1);
10564 fprintf (f, "%ld\n", i);
10566 else
10568 unsigned long i = ulongval ();
10569 if (i != ((long) (sizeof (_Bool))))
10570 exit (1);
10571 fprintf (f, "%lu\n", i);
10573 exit (ferror (f) || fclose (f) != 0);
10576 return 0;
10578 _ACEOF
10579 rm -f conftest$ac_exeext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10581 (eval $ac_link) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_cv_sizeof__Bool=`cat conftest.val`
10591 else
10592 echo "$as_me: program exited with status $ac_status" >&5
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ( exit $ac_status )
10597 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool), 77
10598 See \`config.log' for more details." >&5
10599 echo "$as_me: error: cannot compute sizeof (_Bool), 77
10600 See \`config.log' for more details." >&2;}
10601 { (exit 1); exit 1; }; }
10603 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10606 rm -f conftest.val
10607 else
10608 ac_cv_sizeof__Bool=0
10611 echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
10612 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6
10613 cat >>confdefs.h <<_ACEOF
10614 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
10615 _ACEOF
10620 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10621 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10622 if test "${ac_cv_type_uintptr_t+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 else
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h. */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 #ifdef HAVE_STDINT_H
10632 #include <stdint.h>
10633 #endif
10636 main ()
10638 if ((uintptr_t *) 0)
10639 return 0;
10640 if (sizeof (uintptr_t))
10641 return 0;
10643 return 0;
10645 _ACEOF
10646 rm -f conftest.$ac_objext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10648 (eval $ac_compile) 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
10655 { ac_try='test -z "$ac_c_werror_flag"
10656 || test ! -s conftest.err'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; } &&
10662 { ac_try='test -s conftest.$ac_objext'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
10668 ac_cv_type_uintptr_t=yes
10669 else
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10673 ac_cv_type_uintptr_t=no
10675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10677 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10678 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10679 if test $ac_cv_type_uintptr_t = yes; then
10681 cat >>confdefs.h <<_ACEOF
10682 #define HAVE_UINTPTR_T 1
10683 _ACEOF
10685 echo "$as_me:$LINENO: checking for uintptr_t" >&5
10686 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10687 if test "${ac_cv_type_uintptr_t+set}" = set; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 else
10690 cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h. */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10696 $ac_includes_default
10698 main ()
10700 if ((uintptr_t *) 0)
10701 return 0;
10702 if (sizeof (uintptr_t))
10703 return 0;
10705 return 0;
10707 _ACEOF
10708 rm -f conftest.$ac_objext
10709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10710 (eval $ac_compile) 2>conftest.er1
10711 ac_status=$?
10712 grep -v '^ *+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try='test -z "$ac_c_werror_flag"
10718 || test ! -s conftest.err'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; } &&
10724 { ac_try='test -s conftest.$ac_objext'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
10730 ac_cv_type_uintptr_t=yes
10731 else
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10735 ac_cv_type_uintptr_t=no
10737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10739 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10740 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10742 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10743 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
10744 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 else
10747 if test "$ac_cv_type_uintptr_t" = yes; then
10748 # The cast to unsigned long works around a bug in the HP C Compiler
10749 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10750 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10751 # This bug is HP SR number 8606223364.
10752 if test "$cross_compiling" = yes; then
10753 # Depending upon the size, compute the lo and hi bounds.
10754 cat >conftest.$ac_ext <<_ACEOF
10755 /* confdefs.h. */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 $ac_includes_default
10762 main ()
10764 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
10765 test_array [0] = 0
10768 return 0;
10770 _ACEOF
10771 rm -f conftest.$ac_objext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10773 (eval $ac_compile) 2>conftest.er1
10774 ac_status=$?
10775 grep -v '^ *+' conftest.er1 >conftest.err
10776 rm -f conftest.er1
10777 cat conftest.err >&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
10780 { ac_try='test -z "$ac_c_werror_flag"
10781 || test ! -s conftest.err'
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10784 ac_status=$?
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; } &&
10787 { ac_try='test -s conftest.$ac_objext'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10790 ac_status=$?
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 ac_lo=0 ac_mid=0
10794 while :; do
10795 cat >conftest.$ac_ext <<_ACEOF
10796 /* confdefs.h. */
10797 _ACEOF
10798 cat confdefs.h >>conftest.$ac_ext
10799 cat >>conftest.$ac_ext <<_ACEOF
10800 /* end confdefs.h. */
10801 $ac_includes_default
10803 main ()
10805 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10806 test_array [0] = 0
10809 return 0;
10811 _ACEOF
10812 rm -f conftest.$ac_objext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10814 (eval $ac_compile) 2>conftest.er1
10815 ac_status=$?
10816 grep -v '^ *+' conftest.er1 >conftest.err
10817 rm -f conftest.er1
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try='test -z "$ac_c_werror_flag"
10822 || test ! -s conftest.err'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; } &&
10828 { ac_try='test -s conftest.$ac_objext'
10829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830 (eval $ac_try) 2>&5
10831 ac_status=$?
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; }; then
10834 ac_hi=$ac_mid; break
10835 else
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10839 ac_lo=`expr $ac_mid + 1`
10840 if test $ac_lo -le $ac_mid; then
10841 ac_lo= ac_hi=
10842 break
10844 ac_mid=`expr 2 '*' $ac_mid + 1`
10846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10847 done
10848 else
10849 echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10852 cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h. */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10858 $ac_includes_default
10860 main ()
10862 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
10863 test_array [0] = 0
10866 return 0;
10868 _ACEOF
10869 rm -f conftest.$ac_objext
10870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10871 (eval $ac_compile) 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } &&
10878 { ac_try='test -z "$ac_c_werror_flag"
10879 || test ! -s conftest.err'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try='test -s conftest.$ac_objext'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10891 ac_hi=-1 ac_mid=-1
10892 while :; do
10893 cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h. */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 $ac_includes_default
10901 main ()
10903 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
10904 test_array [0] = 0
10907 return 0;
10909 _ACEOF
10910 rm -f conftest.$ac_objext
10911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10912 (eval $ac_compile) 2>conftest.er1
10913 ac_status=$?
10914 grep -v '^ *+' conftest.er1 >conftest.err
10915 rm -f conftest.er1
10916 cat conftest.err >&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } &&
10919 { ac_try='test -z "$ac_c_werror_flag"
10920 || test ! -s conftest.err'
10921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10922 (eval $ac_try) 2>&5
10923 ac_status=$?
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }; } &&
10926 { ac_try='test -s conftest.$ac_objext'
10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928 (eval $ac_try) 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; }; then
10932 ac_lo=$ac_mid; break
10933 else
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10937 ac_hi=`expr '(' $ac_mid ')' - 1`
10938 if test $ac_mid -le $ac_hi; then
10939 ac_lo= ac_hi=
10940 break
10942 ac_mid=`expr 2 '*' $ac_mid`
10944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10945 done
10946 else
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_lo= ac_hi=
10952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10955 # Binary search between lo and hi bounds.
10956 while test "x$ac_lo" != "x$ac_hi"; do
10957 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10958 cat >conftest.$ac_ext <<_ACEOF
10959 /* confdefs.h. */
10960 _ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10964 $ac_includes_default
10966 main ()
10968 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
10969 test_array [0] = 0
10972 return 0;
10974 _ACEOF
10975 rm -f conftest.$ac_objext
10976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10977 (eval $ac_compile) 2>conftest.er1
10978 ac_status=$?
10979 grep -v '^ *+' conftest.er1 >conftest.err
10980 rm -f conftest.er1
10981 cat conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } &&
10984 { ac_try='test -z "$ac_c_werror_flag"
10985 || test ! -s conftest.err'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; } &&
10991 { ac_try='test -s conftest.$ac_objext'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; }; then
10997 ac_hi=$ac_mid
10998 else
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11002 ac_lo=`expr '(' $ac_mid ')' + 1`
11004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11005 done
11006 case $ac_lo in
11007 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11008 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
11009 See \`config.log' for more details." >&5
11010 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
11011 See \`config.log' for more details." >&2;}
11012 { (exit 1); exit 1; }; } ;;
11013 esac
11014 else
11015 if test "$cross_compiling" = yes; then
11016 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11017 See \`config.log' for more details." >&5
11018 echo "$as_me: error: cannot run test program while cross compiling
11019 See \`config.log' for more details." >&2;}
11020 { (exit 1); exit 1; }; }
11021 else
11022 cat >conftest.$ac_ext <<_ACEOF
11023 /* confdefs.h. */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 $ac_includes_default
11029 long longval () { return (long) (sizeof (uintptr_t)); }
11030 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
11031 #include <stdio.h>
11032 #include <stdlib.h>
11034 main ()
11037 FILE *f = fopen ("conftest.val", "w");
11038 if (! f)
11039 exit (1);
11040 if (((long) (sizeof (uintptr_t))) < 0)
11042 long i = longval ();
11043 if (i != ((long) (sizeof (uintptr_t))))
11044 exit (1);
11045 fprintf (f, "%ld\n", i);
11047 else
11049 unsigned long i = ulongval ();
11050 if (i != ((long) (sizeof (uintptr_t))))
11051 exit (1);
11052 fprintf (f, "%lu\n", i);
11054 exit (ferror (f) || fclose (f) != 0);
11057 return 0;
11059 _ACEOF
11060 rm -f conftest$ac_exeext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062 (eval $ac_link) 2>&5
11063 ac_status=$?
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; }; then
11071 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11072 else
11073 echo "$as_me: program exited with status $ac_status" >&5
11074 echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11077 ( exit $ac_status )
11078 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
11079 See \`config.log' for more details." >&5
11080 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
11081 See \`config.log' for more details." >&2;}
11082 { (exit 1); exit 1; }; }
11084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11087 rm -f conftest.val
11088 else
11089 ac_cv_sizeof_uintptr_t=0
11092 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11093 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
11094 cat >>confdefs.h <<_ACEOF
11095 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11096 _ACEOF
11103 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
11104 echo "$as_me:$LINENO: checking size of off_t" >&5
11105 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11106 if test "${ac_cv_sizeof_off_t+set}" = set; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 else
11109 if test "$cross_compiling" = yes; then
11110 ac_cv_sizeof_off_t=4
11111 else
11112 cat >conftest.$ac_ext <<_ACEOF
11113 /* confdefs.h. */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 #include <stdio.h>
11119 #include <sys/types.h>
11120 main()
11122 FILE *f=fopen("conftestval", "w");
11123 if (!f) exit(1);
11124 fprintf(f, "%d\n", sizeof(off_t));
11125 exit(0);
11127 _ACEOF
11128 rm -f conftest$ac_exeext
11129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11130 (eval $ac_link) 2>&5
11131 ac_status=$?
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11136 ac_status=$?
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
11139 ac_cv_sizeof_off_t=`cat conftestval`
11140 else
11141 echo "$as_me: program exited with status $ac_status" >&5
11142 echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11145 ( exit $ac_status )
11146 ac_cv_sizeof_off_t=0
11148 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11153 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11154 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11156 cat >>confdefs.h <<_ACEOF
11157 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11158 _ACEOF
11161 echo "$as_me:$LINENO: checking whether to enable large file support" >&5
11162 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
11163 if test "$have_long_long" = yes -a \
11164 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
11165 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
11167 cat >>confdefs.h <<\_ACEOF
11168 #define HAVE_LARGEFILE_SUPPORT 1
11169 _ACEOF
11171 echo "$as_me:$LINENO: result: yes" >&5
11172 echo "${ECHO_T}yes" >&6
11173 else
11174 echo "$as_me:$LINENO: result: no" >&5
11175 echo "${ECHO_T}no" >&6
11178 # AC_CHECK_SIZEOF() doesn't include <time.h>.
11179 echo "$as_me:$LINENO: checking size of time_t" >&5
11180 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
11181 if test "${ac_cv_sizeof_time_t+set}" = set; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 else
11184 if test "$cross_compiling" = yes; then
11185 ac_cv_sizeof_time_t=4
11186 else
11187 cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h. */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 #include <stdio.h>
11194 #include <time.h>
11195 main()
11197 FILE *f=fopen("conftestval", "w");
11198 if (!f) exit(1);
11199 fprintf(f, "%d\n", sizeof(time_t));
11200 exit(0);
11202 _ACEOF
11203 rm -f conftest$ac_exeext
11204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11205 (eval $ac_link) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210 (eval $ac_try) 2>&5
11211 ac_status=$?
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; }; then
11214 ac_cv_sizeof_time_t=`cat conftestval`
11215 else
11216 echo "$as_me: program exited with status $ac_status" >&5
11217 echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11220 ( exit $ac_status )
11221 ac_cv_sizeof_time_t=0
11223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11228 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
11229 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
11231 cat >>confdefs.h <<_ACEOF
11232 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
11233 _ACEOF
11237 # if have pthread_t then define SIZEOF_PTHREAD_T
11238 ac_save_cc="$CC"
11239 if test "$ac_cv_kpthread" = "yes"
11240 then CC="$CC -Kpthread"
11241 elif test "$ac_cv_kthread" = "yes"
11242 then CC="$CC -Kthread"
11243 elif test "$ac_cv_pthread" = "yes"
11244 then CC="$CC -pthread"
11246 echo "$as_me:$LINENO: checking for pthread_t" >&5
11247 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
11248 have_pthread_t=no
11249 cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h. */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 #include <pthread.h>
11257 main ()
11259 pthread_t x; x = *(pthread_t*)0;
11261 return 0;
11263 _ACEOF
11264 rm -f conftest.$ac_objext
11265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11266 (eval $ac_compile) 2>conftest.er1
11267 ac_status=$?
11268 grep -v '^ *+' conftest.er1 >conftest.err
11269 rm -f conftest.er1
11270 cat conftest.err >&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } &&
11273 { ac_try='test -z "$ac_c_werror_flag"
11274 || test ! -s conftest.err'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; } &&
11280 { ac_try='test -s conftest.$ac_objext'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 have_pthread_t=yes
11287 else
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11293 echo "$as_me:$LINENO: result: $have_pthread_t" >&5
11294 echo "${ECHO_T}$have_pthread_t" >&6
11295 if test "$have_pthread_t" = yes ; then
11296 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
11297 echo "$as_me:$LINENO: checking size of pthread_t" >&5
11298 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
11299 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302 if test "$cross_compiling" = yes; then
11303 ac_cv_sizeof_pthread_t=4
11304 else
11305 cat >conftest.$ac_ext <<_ACEOF
11306 /* confdefs.h. */
11307 _ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11311 #include <stdio.h>
11312 #include <pthread.h>
11313 main()
11315 FILE *f=fopen("conftestval", "w");
11316 if (!f) exit(1);
11317 fprintf(f, "%d\n", sizeof(pthread_t));
11318 exit(0);
11320 _ACEOF
11321 rm -f conftest$ac_exeext
11322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11323 (eval $ac_link) 2>&5
11324 ac_status=$?
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 ac_cv_sizeof_pthread_t=`cat conftestval`
11333 else
11334 echo "$as_me: program exited with status $ac_status" >&5
11335 echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.$ac_ext >&5
11338 ( exit $ac_status )
11339 ac_cv_sizeof_pthread_t=0
11341 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11346 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
11347 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
11349 cat >>confdefs.h <<_ACEOF
11350 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
11351 _ACEOF
11354 CC="$ac_save_cc"
11356 echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
11357 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
11358 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
11359 if test "${enable_toolbox_glue+set}" = set; then
11360 enableval="$enable_toolbox_glue"
11364 if test -z "$enable_toolbox_glue"
11365 then
11366 case $ac_sys_system/$ac_sys_release in
11367 Darwin/*)
11368 enable_toolbox_glue="yes";;
11370 enable_toolbox_glue="no";;
11371 esac
11373 case "$enable_toolbox_glue" in
11374 yes)
11375 extra_machdep_objs="Python/mactoolboxglue.o"
11376 extra_undefs="-u _PyMac_Error"
11378 cat >>confdefs.h <<\_ACEOF
11379 #define USE_TOOLBOX_OBJECT_GLUE 1
11380 _ACEOF
11384 extra_machdep_objs=""
11385 extra_undefs=""
11387 esac
11388 echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
11389 echo "${ECHO_T}$enable_toolbox_glue" >&6
11392 case $ac_sys_system/$ac_sys_release in
11393 Darwin/[01567]\..*)
11394 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
11396 Darwin/*)
11397 OTHER_LIBTOOL_OPT=""
11399 esac
11402 case $ac_sys_system/$ac_sys_release in
11403 Darwin/[01567]\..*)
11404 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
11405 if test "${enable_universalsdk}"; then
11407 else
11408 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
11410 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11411 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11412 Darwin/*)
11413 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
11414 if test ${gcc_version} '<' 4.0
11415 then
11416 LIBTOOL_CRUFT="-lcc_dynamic"
11417 else
11418 LIBTOOL_CRUFT=""
11420 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
11421 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11422 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11423 esac
11425 echo "$as_me:$LINENO: checking for --enable-framework" >&5
11426 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
11427 if test "$enable_framework"
11428 then
11429 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
11430 # -F. is needed to allow linking to the framework while
11431 # in the build location.
11433 cat >>confdefs.h <<\_ACEOF
11434 #define WITH_NEXT_FRAMEWORK 1
11435 _ACEOF
11437 echo "$as_me:$LINENO: result: yes" >&5
11438 echo "${ECHO_T}yes" >&6
11439 else
11440 echo "$as_me:$LINENO: result: no" >&5
11441 echo "${ECHO_T}no" >&6
11444 echo "$as_me:$LINENO: checking for dyld" >&5
11445 echo $ECHO_N "checking for dyld... $ECHO_C" >&6
11446 case $ac_sys_system/$ac_sys_release in
11447 Darwin/*)
11449 cat >>confdefs.h <<\_ACEOF
11450 #define WITH_DYLD 1
11451 _ACEOF
11453 echo "$as_me:$LINENO: result: always on for Darwin" >&5
11454 echo "${ECHO_T}always on for Darwin" >&6
11457 echo "$as_me:$LINENO: result: no" >&5
11458 echo "${ECHO_T}no" >&6
11460 esac
11462 # Set info about shared libraries.
11468 # SO is the extension of shared libraries `(including the dot!)
11469 # -- usually .so, .sl on HP-UX, .dll on Cygwin
11470 echo "$as_me:$LINENO: checking SO" >&5
11471 echo $ECHO_N "checking SO... $ECHO_C" >&6
11472 if test -z "$SO"
11473 then
11474 case $ac_sys_system in
11475 hp*|HP*)
11476 case `uname -m` in
11477 ia64) SO=.so;;
11478 *) SO=.sl;;
11479 esac
11481 CYGWIN*) SO=.dll;;
11482 *) SO=.so;;
11483 esac
11484 else
11485 # this might also be a termcap variable, see #610332
11486 echo
11487 echo '====================================================================='
11488 echo '+ +'
11489 echo '+ WARNING: You have set SO in your environment. +'
11490 echo '+ Do you really mean to change the extension for shared libraries? +'
11491 echo '+ Continuing in 10 seconds to let you to ponder. +'
11492 echo '+ +'
11493 echo '====================================================================='
11494 sleep 10
11496 echo "$as_me:$LINENO: result: $SO" >&5
11497 echo "${ECHO_T}$SO" >&6
11499 cat >>confdefs.h <<_ACEOF
11500 #define SHLIB_EXT "$SO"
11501 _ACEOF
11503 # LDSHARED is the ld *command* used to create shared library
11504 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
11505 # (Shared libraries in this instance are shared modules to be loaded into
11506 # Python, as opposed to building Python itself as a shared library.)
11507 echo "$as_me:$LINENO: checking LDSHARED" >&5
11508 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
11509 if test -z "$LDSHARED"
11510 then
11511 case $ac_sys_system/$ac_sys_release in
11512 AIX*)
11513 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
11514 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
11516 BeOS*)
11517 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
11518 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
11520 IRIX/5*) LDSHARED="ld -shared";;
11521 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
11522 SunOS/5*)
11523 if test "$GCC" = "yes"
11524 then LDSHARED='$(CC) -shared'
11525 else LDSHARED='$(CC) -G';
11526 fi ;;
11527 hp*|HP*) LDSHARED="ld -b";;
11528 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
11529 Darwin/1.3*)
11530 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11531 if test "$enable_framework" ; then
11532 # Link against the framework. All externals should be defined.
11533 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11534 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11535 else
11536 # No framework. Ignore undefined symbols, assuming they come from Python
11537 LDSHARED="$LDSHARED -undefined suppress"
11538 fi ;;
11539 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
11540 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11541 if test "$enable_framework" ; then
11542 # Link against the framework. All externals should be defined.
11543 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11544 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11545 else
11546 # No framework, use the Python app as bundle-loader
11547 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11548 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11549 fi ;;
11550 Darwin/*)
11551 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
11552 # This allows an extension to be used in any Python
11553 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
11554 if test ${cur_target} '>' 10.2; then
11555 cur_target=10.3
11557 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
11558 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
11559 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
11560 then
11561 if test "${enable_universalsdk}"; then
11562 LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11564 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11565 BLDSHARED="$LDSHARED"
11566 else
11567 LDSHARED='$(CC) $(LDFLAGS) -bundle'
11568 if test "$enable_framework" ; then
11569 # Link against the framework. All externals should be defined.
11570 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11571 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11572 else
11573 # No framework, use the Python app as bundle-loader
11574 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11575 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11579 Linux*|GNU*) LDSHARED='$(CC) -shared';;
11580 BSD/OS*/4*) LDSHARED="gcc -shared";;
11581 FreeBSD*)
11582 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11583 then
11584 LDSHARED="$CC -shared ${LDFLAGS}"
11585 else
11586 LDSHARED="ld -Bshareable ${LDFLAGS}"
11587 fi;;
11588 OpenBSD*)
11589 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11590 then
11591 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11592 else
11593 case `uname -r` in
11594 [01].* | 2.[0-7] | 2.[0-7].*)
11595 LDSHARED="ld -Bshareable ${LDFLAGS}"
11598 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11600 esac
11601 fi;;
11602 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
11603 OpenUNIX*|UnixWare*)
11604 if test "$GCC" = "yes"
11605 then LDSHARED='$(CC) -shared'
11606 else LDSHARED='$(CC) -G'
11607 fi;;
11608 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';;
11609 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11610 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
11611 atheos*) LDSHARED="gcc -shared";;
11612 *) LDSHARED="ld";;
11613 esac
11615 echo "$as_me:$LINENO: result: $LDSHARED" >&5
11616 echo "${ECHO_T}$LDSHARED" >&6
11617 BLDSHARED=${BLDSHARED-$LDSHARED}
11618 # CCSHARED are the C *flags* used to create objects to go into a shared
11619 # library (module) -- this is only needed for a few systems
11620 echo "$as_me:$LINENO: checking CCSHARED" >&5
11621 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
11622 if test -z "$CCSHARED"
11623 then
11624 case $ac_sys_system/$ac_sys_release in
11625 SunOS*) if test "$GCC" = yes;
11626 then CCSHARED="-fPIC";
11627 elif test `uname -p` = sparc;
11628 then CCSHARED="-xcode=pic32";
11629 else CCSHARED="-Kpic";
11630 fi;;
11631 hp*|HP*) if test "$GCC" = yes;
11632 then CCSHARED="-fPIC";
11633 else CCSHARED="+z";
11634 fi;;
11635 Linux*|GNU*) CCSHARED="-fPIC";;
11636 BSD/OS*/4*) CCSHARED="-fpic";;
11637 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
11638 OpenUNIX*|UnixWare*)
11639 if test "$GCC" = "yes"
11640 then CCSHARED="-fPIC"
11641 else CCSHARED="-KPIC"
11642 fi;;
11643 SCO_SV*)
11644 if test "$GCC" = "yes"
11645 then CCSHARED="-fPIC"
11646 else CCSHARED="-Kpic -belf"
11647 fi;;
11648 Monterey*) CCSHARED="-G";;
11649 IRIX*/6*) case $CC in
11650 *gcc*) CCSHARED="-shared";;
11651 *) CCSHARED="";;
11652 esac;;
11653 atheos*) CCSHARED="-fPIC";;
11654 esac
11656 echo "$as_me:$LINENO: result: $CCSHARED" >&5
11657 echo "${ECHO_T}$CCSHARED" >&6
11658 # LINKFORSHARED are the flags passed to the $(CC) command that links
11659 # the python executable -- this is only needed for a few systems
11660 echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11661 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
11662 if test -z "$LINKFORSHARED"
11663 then
11664 case $ac_sys_system/$ac_sys_release in
11665 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
11666 hp*|HP*)
11667 LINKFORSHARED="-Wl,-E -Wl,+s";;
11668 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11669 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
11670 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
11671 # -u libsys_s pulls in all symbols in libsys
11672 Darwin/*)
11673 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11674 # which is
11675 # not used by the core itself but which needs to be in the core so
11676 # that dynamically loaded extension modules have access to it.
11677 # -prebind is no longer used, because it actually seems to give a
11678 # slowdown in stead of a speedup, maybe due to the large number of
11679 # dynamic loads Python does.
11681 LINKFORSHARED="$extra_undefs"
11682 if test "$enable_framework"
11683 then
11684 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11686 LINKFORSHARED="$LINKFORSHARED";;
11687 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
11688 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
11689 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
11690 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
11691 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11692 then
11693 LINKFORSHARED="-Wl,--export-dynamic"
11694 fi;;
11695 SunOS/5*) case $CC in
11696 *gcc*)
11697 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
11698 then
11699 LINKFORSHARED="-Xlinker --export-dynamic"
11700 fi;;
11701 esac;;
11702 CYGWIN*)
11703 if test $enable_shared = "no"
11704 then
11705 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
11706 fi;;
11707 esac
11709 echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11710 echo "${ECHO_T}$LINKFORSHARED" >&6
11713 echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11714 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
11715 if test ! "$LIBRARY" = "$LDLIBRARY"
11716 then
11717 case $ac_sys_system in
11718 CYGWIN*)
11719 # Cygwin needs CCSHARED when building extension DLLs
11720 # but not when building the interpreter DLL.
11721 CFLAGSFORSHARED='';;
11723 CFLAGSFORSHARED='$(CCSHARED)'
11724 esac
11726 echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11727 echo "${ECHO_T}$CFLAGSFORSHARED" >&6
11729 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11730 # library (with --enable-shared).
11731 # For platforms on which shared libraries are not allowed to have unresolved
11732 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11733 # if it is not required, since it creates a dependency of the shared library
11734 # to LIBS. This, in turn, means that applications linking the shared libpython
11735 # don't need to link LIBS explicitly. The default should be only changed
11736 # on systems where this approach causes problems.
11738 echo "$as_me:$LINENO: checking SHLIBS" >&5
11739 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
11740 case "$ac_sys_system" in
11742 SHLIBS='$(LIBS)';;
11743 esac
11744 echo "$as_me:$LINENO: result: $SHLIBS" >&5
11745 echo "${ECHO_T}$SHLIBS" >&6
11748 # checks for libraries
11750 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11751 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11752 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755 ac_check_lib_save_LIBS=$LIBS
11756 LIBS="-ldl $LIBS"
11757 cat >conftest.$ac_ext <<_ACEOF
11758 /* confdefs.h. */
11759 _ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h. */
11764 /* Override any gcc2 internal prototype to avoid an error. */
11765 #ifdef __cplusplus
11766 extern "C"
11767 #endif
11768 /* We use char because int might match the return type of a gcc2
11769 builtin and then its argument prototype would still apply. */
11770 char dlopen ();
11772 main ()
11774 dlopen ();
11776 return 0;
11778 _ACEOF
11779 rm -f conftest.$ac_objext conftest$ac_exeext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11781 (eval $ac_link) 2>conftest.er1
11782 ac_status=$?
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try='test -z "$ac_c_werror_flag"
11789 || test ! -s conftest.err'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try='test -s conftest$ac_exeext'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 ac_cv_lib_dl_dlopen=yes
11802 else
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11806 ac_cv_lib_dl_dlopen=no
11808 rm -f conftest.err conftest.$ac_objext \
11809 conftest$ac_exeext conftest.$ac_ext
11810 LIBS=$ac_check_lib_save_LIBS
11812 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11813 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11814 if test $ac_cv_lib_dl_dlopen = yes; then
11815 cat >>confdefs.h <<_ACEOF
11816 #define HAVE_LIBDL 1
11817 _ACEOF
11819 LIBS="-ldl $LIBS"
11822 # Dynamic linking for SunOS/Solaris and SYSV
11824 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11825 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11826 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 else
11829 ac_check_lib_save_LIBS=$LIBS
11830 LIBS="-ldld $LIBS"
11831 cat >conftest.$ac_ext <<_ACEOF
11832 /* confdefs.h. */
11833 _ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11838 /* Override any gcc2 internal prototype to avoid an error. */
11839 #ifdef __cplusplus
11840 extern "C"
11841 #endif
11842 /* We use char because int might match the return type of a gcc2
11843 builtin and then its argument prototype would still apply. */
11844 char shl_load ();
11846 main ()
11848 shl_load ();
11850 return 0;
11852 _ACEOF
11853 rm -f conftest.$ac_objext conftest$ac_exeext
11854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11855 (eval $ac_link) 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -z "$ac_c_werror_flag"
11863 || test ! -s conftest.err'
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; } &&
11869 { ac_try='test -s conftest$ac_exeext'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 ac_cv_lib_dld_shl_load=yes
11876 else
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11880 ac_cv_lib_dld_shl_load=no
11882 rm -f conftest.err conftest.$ac_objext \
11883 conftest$ac_exeext conftest.$ac_ext
11884 LIBS=$ac_check_lib_save_LIBS
11886 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11887 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11888 if test $ac_cv_lib_dld_shl_load = yes; then
11889 cat >>confdefs.h <<_ACEOF
11890 #define HAVE_LIBDLD 1
11891 _ACEOF
11893 LIBS="-ldld $LIBS"
11896 # Dynamic linking for HP-UX
11898 # only check for sem_ini if thread support is requested
11899 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11900 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11901 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
11902 if test "${ac_cv_search_sem_init+set}" = set; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 else
11905 ac_func_search_save_LIBS=$LIBS
11906 ac_cv_search_sem_init=no
11907 cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h. */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11914 /* Override any gcc2 internal prototype to avoid an error. */
11915 #ifdef __cplusplus
11916 extern "C"
11917 #endif
11918 /* We use char because int might match the return type of a gcc2
11919 builtin and then its argument prototype would still apply. */
11920 char sem_init ();
11922 main ()
11924 sem_init ();
11926 return 0;
11928 _ACEOF
11929 rm -f conftest.$ac_objext conftest$ac_exeext
11930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11931 (eval $ac_link) 2>conftest.er1
11932 ac_status=$?
11933 grep -v '^ *+' conftest.er1 >conftest.err
11934 rm -f conftest.er1
11935 cat conftest.err >&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } &&
11938 { ac_try='test -z "$ac_c_werror_flag"
11939 || test ! -s conftest.err'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; } &&
11945 { ac_try='test -s conftest$ac_exeext'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 ac_cv_search_sem_init="none required"
11952 else
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11957 rm -f conftest.err conftest.$ac_objext \
11958 conftest$ac_exeext conftest.$ac_ext
11959 if test "$ac_cv_search_sem_init" = no; then
11960 for ac_lib in pthread rt posix4; do
11961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11962 cat >conftest.$ac_ext <<_ACEOF
11963 /* confdefs.h. */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11969 /* Override any gcc2 internal prototype to avoid an error. */
11970 #ifdef __cplusplus
11971 extern "C"
11972 #endif
11973 /* We use char because int might match the return type of a gcc2
11974 builtin and then its argument prototype would still apply. */
11975 char sem_init ();
11977 main ()
11979 sem_init ();
11981 return 0;
11983 _ACEOF
11984 rm -f conftest.$ac_objext conftest$ac_exeext
11985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11986 (eval $ac_link) 2>conftest.er1
11987 ac_status=$?
11988 grep -v '^ *+' conftest.er1 >conftest.err
11989 rm -f conftest.er1
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } &&
11993 { ac_try='test -z "$ac_c_werror_flag"
11994 || test ! -s conftest.err'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; } &&
12000 { ac_try='test -s conftest$ac_exeext'
12001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 (eval $ac_try) 2>&5
12003 ac_status=$?
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; }; then
12006 ac_cv_search_sem_init="-l$ac_lib"
12007 break
12008 else
12009 echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12013 rm -f conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext conftest.$ac_ext
12015 done
12017 LIBS=$ac_func_search_save_LIBS
12019 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12020 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
12021 if test "$ac_cv_search_sem_init" != no; then
12022 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
12025 # 'Real Time' functions on Solaris
12026 # posix4 on Solaris 2.6
12027 # pthread (first!) on Linux
12030 # check if we need libintl for locale functions
12031 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12032 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
12033 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036 ac_check_lib_save_LIBS=$LIBS
12037 LIBS="-lintl $LIBS"
12038 cat >conftest.$ac_ext <<_ACEOF
12039 /* confdefs.h. */
12040 _ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12045 /* Override any gcc2 internal prototype to avoid an error. */
12046 #ifdef __cplusplus
12047 extern "C"
12048 #endif
12049 /* We use char because int might match the return type of a gcc2
12050 builtin and then its argument prototype would still apply. */
12051 char textdomain ();
12053 main ()
12055 textdomain ();
12057 return 0;
12059 _ACEOF
12060 rm -f conftest.$ac_objext conftest$ac_exeext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062 (eval $ac_link) 2>conftest.er1
12063 ac_status=$?
12064 grep -v '^ *+' conftest.er1 >conftest.err
12065 rm -f conftest.er1
12066 cat conftest.err >&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
12069 { ac_try='test -z "$ac_c_werror_flag"
12070 || test ! -s conftest.err'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest$ac_exeext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_cv_lib_intl_textdomain=yes
12083 else
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12087 ac_cv_lib_intl_textdomain=no
12089 rm -f conftest.err conftest.$ac_objext \
12090 conftest$ac_exeext conftest.$ac_ext
12091 LIBS=$ac_check_lib_save_LIBS
12093 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12094 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
12095 if test $ac_cv_lib_intl_textdomain = yes; then
12097 cat >>confdefs.h <<\_ACEOF
12098 #define WITH_LIBINTL 1
12099 _ACEOF
12104 # checks for system dependent C++ extensions support
12105 case "$ac_sys_system" in
12106 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12107 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
12108 cat >conftest.$ac_ext <<_ACEOF
12109 /* confdefs.h. */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 #include "/usr/lpp/xlC/include/load.h"
12116 main ()
12118 loadAndInit("", 0, "")
12120 return 0;
12122 _ACEOF
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12125 (eval $ac_link) 2>conftest.er1
12126 ac_status=$?
12127 grep -v '^ *+' conftest.er1 >conftest.err
12128 rm -f conftest.er1
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
12132 { ac_try='test -z "$ac_c_werror_flag"
12133 || test ! -s conftest.err'
12134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135 (eval $ac_try) 2>&5
12136 ac_status=$?
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; } &&
12139 { ac_try='test -s conftest$ac_exeext'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12142 ac_status=$?
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12146 cat >>confdefs.h <<\_ACEOF
12147 #define AIX_GENUINE_CPLUSPLUS 1
12148 _ACEOF
12150 echo "$as_me:$LINENO: result: yes" >&5
12151 echo "${ECHO_T}yes" >&6
12152 else
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12156 echo "$as_me:$LINENO: result: no" >&5
12157 echo "${ECHO_T}no" >&6
12159 rm -f conftest.err conftest.$ac_objext \
12160 conftest$ac_exeext conftest.$ac_ext;;
12161 *) ;;
12162 esac
12164 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
12165 # BeOS' sockets are stashed in libnet.
12166 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
12167 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
12168 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171 ac_check_lib_save_LIBS=$LIBS
12172 LIBS="-lnsl $LIBS"
12173 cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h. */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12180 /* Override any gcc2 internal prototype to avoid an error. */
12181 #ifdef __cplusplus
12182 extern "C"
12183 #endif
12184 /* We use char because int might match the return type of a gcc2
12185 builtin and then its argument prototype would still apply. */
12186 char t_open ();
12188 main ()
12190 t_open ();
12192 return 0;
12194 _ACEOF
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12197 (eval $ac_link) 2>conftest.er1
12198 ac_status=$?
12199 grep -v '^ *+' conftest.er1 >conftest.err
12200 rm -f conftest.er1
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -z "$ac_c_werror_flag"
12205 || test ! -s conftest.err'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12208 ac_status=$?
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; } &&
12211 { ac_try='test -s conftest$ac_exeext'
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; }; then
12217 ac_cv_lib_nsl_t_open=yes
12218 else
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12222 ac_cv_lib_nsl_t_open=no
12224 rm -f conftest.err conftest.$ac_objext \
12225 conftest$ac_exeext conftest.$ac_ext
12226 LIBS=$ac_check_lib_save_LIBS
12228 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
12229 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
12230 if test $ac_cv_lib_nsl_t_open = yes; then
12231 LIBS="-lnsl $LIBS"
12233 # SVR4
12234 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12235 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
12236 if test "${ac_cv_lib_socket_socket+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239 ac_check_lib_save_LIBS=$LIBS
12240 LIBS="-lsocket $LIBS $LIBS"
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h. */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12248 /* Override any gcc2 internal prototype to avoid an error. */
12249 #ifdef __cplusplus
12250 extern "C"
12251 #endif
12252 /* We use char because int might match the return type of a gcc2
12253 builtin and then its argument prototype would still apply. */
12254 char socket ();
12256 main ()
12258 socket ();
12260 return 0;
12262 _ACEOF
12263 rm -f conftest.$ac_objext conftest$ac_exeext
12264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12265 (eval $ac_link) 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
12272 { ac_try='test -z "$ac_c_werror_flag"
12273 || test ! -s conftest.err'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; } &&
12279 { ac_try='test -s conftest$ac_exeext'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 ac_cv_lib_socket_socket=yes
12286 else
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12290 ac_cv_lib_socket_socket=no
12292 rm -f conftest.err conftest.$ac_objext \
12293 conftest$ac_exeext conftest.$ac_ext
12294 LIBS=$ac_check_lib_save_LIBS
12296 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12297 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
12298 if test $ac_cv_lib_socket_socket = yes; then
12299 LIBS="-lsocket $LIBS"
12301 # SVR4 sockets
12303 case "$ac_sys_system" in
12304 BeOS*)
12305 echo "$as_me:$LINENO: checking for socket in -lnet" >&5
12306 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
12307 if test "${ac_cv_lib_net_socket+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310 ac_check_lib_save_LIBS=$LIBS
12311 LIBS="-lnet $LIBS $LIBS"
12312 cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h. */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12319 /* Override any gcc2 internal prototype to avoid an error. */
12320 #ifdef __cplusplus
12321 extern "C"
12322 #endif
12323 /* We use char because int might match the return type of a gcc2
12324 builtin and then its argument prototype would still apply. */
12325 char socket ();
12327 main ()
12329 socket ();
12331 return 0;
12333 _ACEOF
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -z "$ac_c_werror_flag"
12344 || test ! -s conftest.err'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; } &&
12350 { ac_try='test -s conftest$ac_exeext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 ac_cv_lib_net_socket=yes
12357 else
12358 echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12361 ac_cv_lib_net_socket=no
12363 rm -f conftest.err conftest.$ac_objext \
12364 conftest$ac_exeext conftest.$ac_ext
12365 LIBS=$ac_check_lib_save_LIBS
12367 echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
12368 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
12369 if test $ac_cv_lib_net_socket = yes; then
12370 LIBS="-lnet $LIBS"
12372 # BeOS
12374 esac
12376 echo "$as_me:$LINENO: checking for --with-libs" >&5
12377 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
12379 # Check whether --with-libs or --without-libs was given.
12380 if test "${with_libs+set}" = set; then
12381 withval="$with_libs"
12383 echo "$as_me:$LINENO: result: $withval" >&5
12384 echo "${ECHO_T}$withval" >&6
12385 LIBS="$withval $LIBS"
12387 else
12388 echo "$as_me:$LINENO: result: no" >&5
12389 echo "${ECHO_T}no" >&6
12392 # Check for use of the system libffi library
12393 echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
12394 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6
12396 # Check whether --with-system_ffi or --without-system_ffi was given.
12397 if test "${with_system_ffi+set}" = set; then
12398 withval="$with_system_ffi"
12402 if test -z "$with_system_ffi"
12403 then with_system_ffi="no"
12405 echo "$as_me:$LINENO: result: $with_system_ffi" >&5
12406 echo "${ECHO_T}$with_system_ffi" >&6
12408 # Determine if signalmodule should be used.
12411 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
12412 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
12414 # Check whether --with-signal-module or --without-signal-module was given.
12415 if test "${with_signal_module+set}" = set; then
12416 withval="$with_signal_module"
12420 if test -z "$with_signal_module"
12421 then with_signal_module="yes"
12423 echo "$as_me:$LINENO: result: $with_signal_module" >&5
12424 echo "${ECHO_T}$with_signal_module" >&6
12426 if test "${with_signal_module}" = "yes"; then
12427 USE_SIGNAL_MODULE=""
12428 SIGNAL_OBJS=""
12429 else
12430 USE_SIGNAL_MODULE="#"
12431 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
12434 # This is used to generate Setup.config
12436 USE_THREAD_MODULE=""
12438 echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
12439 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
12442 # Check whether --with-dec-threads or --without-dec-threads was given.
12443 if test "${with_dec_threads+set}" = set; then
12444 withval="$with_dec_threads"
12446 echo "$as_me:$LINENO: result: $withval" >&5
12447 echo "${ECHO_T}$withval" >&6
12448 LDLAST=-threads
12449 if test "${with_thread+set}" != set; then
12450 with_thread="$withval";
12452 else
12453 echo "$as_me:$LINENO: result: no" >&5
12454 echo "${ECHO_T}no" >&6
12457 # Templates for things AC_DEFINEd more than once.
12458 # For a single AC_DEFINE, no template is needed.
12466 echo "$as_me:$LINENO: checking for --with-threads" >&5
12467 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
12469 # Check whether --with-threads or --without-threads was given.
12470 if test "${with_threads+set}" = set; then
12471 withval="$with_threads"
12475 # --with-thread is deprecated, but check for it anyway
12477 # Check whether --with-thread or --without-thread was given.
12478 if test "${with_thread+set}" = set; then
12479 withval="$with_thread"
12480 with_threads=$with_thread
12483 if test -z "$with_threads"
12484 then with_threads="yes"
12486 echo "$as_me:$LINENO: result: $with_threads" >&5
12487 echo "${ECHO_T}$with_threads" >&6
12490 if test "$with_threads" = "no"
12491 then
12492 USE_THREAD_MODULE="#"
12493 elif test "$ac_cv_pthread_is_default" = yes
12494 then
12495 cat >>confdefs.h <<\_ACEOF
12496 #define WITH_THREAD 1
12497 _ACEOF
12499 # Defining _REENTRANT on system with POSIX threads should not hurt.
12500 cat >>confdefs.h <<\_ACEOF
12501 #define _REENTRANT 1
12502 _ACEOF
12504 posix_threads=yes
12505 THREADOBJ="Python/thread.o"
12506 elif test "$ac_cv_kpthread" = "yes"
12507 then
12508 CC="$CC -Kpthread"
12509 if test "$ac_cv_cxx_thread" = "yes"; then
12510 CXX="$CXX -Kpthread"
12512 cat >>confdefs.h <<\_ACEOF
12513 #define WITH_THREAD 1
12514 _ACEOF
12516 posix_threads=yes
12517 THREADOBJ="Python/thread.o"
12518 elif test "$ac_cv_kthread" = "yes"
12519 then
12520 CC="$CC -Kthread"
12521 if test "$ac_cv_cxx_thread" = "yes"; then
12522 CXX="$CXX -Kthread"
12524 cat >>confdefs.h <<\_ACEOF
12525 #define WITH_THREAD 1
12526 _ACEOF
12528 posix_threads=yes
12529 THREADOBJ="Python/thread.o"
12530 elif test "$ac_cv_pthread" = "yes"
12531 then
12532 CC="$CC -pthread"
12533 if test "$ac_cv_cxx_thread" = "yes"; then
12534 CXX="$CXX -pthread"
12536 cat >>confdefs.h <<\_ACEOF
12537 #define WITH_THREAD 1
12538 _ACEOF
12540 posix_threads=yes
12541 THREADOBJ="Python/thread.o"
12542 else
12543 if test ! -z "$with_threads" -a -d "$with_threads"
12544 then LDFLAGS="$LDFLAGS -L$with_threads"
12546 if test ! -z "$withval" -a -d "$withval"
12547 then LDFLAGS="$LDFLAGS -L$withval"
12550 # According to the POSIX spec, a pthreads implementation must
12551 # define _POSIX_THREADS in unistd.h. Some apparently don't
12552 # (e.g. gnu pth with pthread emulation)
12553 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
12554 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
12555 cat >conftest.$ac_ext <<_ACEOF
12556 /* confdefs.h. */
12557 _ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12562 #include <unistd.h>
12563 #ifdef _POSIX_THREADS
12565 #endif
12567 _ACEOF
12568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12569 $EGREP "yes" >/dev/null 2>&1; then
12570 unistd_defines_pthreads=yes
12571 else
12572 unistd_defines_pthreads=no
12574 rm -f conftest*
12576 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12577 echo "${ECHO_T}$unistd_defines_pthreads" >&6
12579 cat >>confdefs.h <<\_ACEOF
12580 #define _REENTRANT 1
12581 _ACEOF
12583 if test "${ac_cv_header_cthreads_h+set}" = set; then
12584 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12585 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12586 if test "${ac_cv_header_cthreads_h+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12590 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12591 else
12592 # Is the header compilable?
12593 echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12594 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
12595 cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h. */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 $ac_includes_default
12602 #include <cthreads.h>
12603 _ACEOF
12604 rm -f conftest.$ac_objext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12606 (eval $ac_compile) 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try='test -z "$ac_c_werror_flag"
12614 || test ! -s conftest.err'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; } &&
12620 { ac_try='test -s conftest.$ac_objext'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12623 ac_status=$?
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 ac_header_compiler=yes
12627 else
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12631 ac_header_compiler=no
12633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12635 echo "${ECHO_T}$ac_header_compiler" >&6
12637 # Is the header present?
12638 echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12639 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
12640 cat >conftest.$ac_ext <<_ACEOF
12641 /* confdefs.h. */
12642 _ACEOF
12643 cat confdefs.h >>conftest.$ac_ext
12644 cat >>conftest.$ac_ext <<_ACEOF
12645 /* end confdefs.h. */
12646 #include <cthreads.h>
12647 _ACEOF
12648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12650 ac_status=$?
12651 grep -v '^ *+' conftest.er1 >conftest.err
12652 rm -f conftest.er1
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } >/dev/null; then
12656 if test -s conftest.err; then
12657 ac_cpp_err=$ac_c_preproc_warn_flag
12658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12659 else
12660 ac_cpp_err=
12662 else
12663 ac_cpp_err=yes
12665 if test -z "$ac_cpp_err"; then
12666 ac_header_preproc=yes
12667 else
12668 echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12671 ac_header_preproc=no
12673 rm -f conftest.err conftest.$ac_ext
12674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12675 echo "${ECHO_T}$ac_header_preproc" >&6
12677 # So? What about this header?
12678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12679 yes:no: )
12680 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12681 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12683 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12684 ac_header_preproc=yes
12686 no:yes:* )
12687 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12688 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12690 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12691 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12692 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12693 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12694 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12695 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12696 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12697 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12698 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12700 cat <<\_ASBOX
12701 ## ------------------------------------------------ ##
12702 ## Report this to http://www.python.org/python-bugs ##
12703 ## ------------------------------------------------ ##
12704 _ASBOX
12706 sed "s/^/$as_me: WARNING: /" >&2
12708 esac
12709 echo "$as_me:$LINENO: checking for cthreads.h" >&5
12710 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
12711 if test "${ac_cv_header_cthreads_h+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 else
12714 ac_cv_header_cthreads_h=$ac_header_preproc
12716 echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12717 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
12720 if test $ac_cv_header_cthreads_h = yes; then
12721 cat >>confdefs.h <<\_ACEOF
12722 #define WITH_THREAD 1
12723 _ACEOF
12725 cat >>confdefs.h <<\_ACEOF
12726 #define C_THREADS 1
12727 _ACEOF
12730 cat >>confdefs.h <<\_ACEOF
12731 #define HURD_C_THREADS 1
12732 _ACEOF
12734 LIBS="$LIBS -lthreads"
12735 THREADOBJ="Python/thread.o"
12736 else
12738 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12739 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12740 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12741 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12745 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12746 else
12747 # Is the header compilable?
12748 echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12749 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
12750 cat >conftest.$ac_ext <<_ACEOF
12751 /* confdefs.h. */
12752 _ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12756 $ac_includes_default
12757 #include <mach/cthreads.h>
12758 _ACEOF
12759 rm -f conftest.$ac_objext
12760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12761 (eval $ac_compile) 2>conftest.er1
12762 ac_status=$?
12763 grep -v '^ *+' conftest.er1 >conftest.err
12764 rm -f conftest.er1
12765 cat conftest.err >&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); } &&
12768 { ac_try='test -z "$ac_c_werror_flag"
12769 || test ! -s conftest.err'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; } &&
12775 { ac_try='test -s conftest.$ac_objext'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; }; then
12781 ac_header_compiler=yes
12782 else
12783 echo "$as_me: failed program was:" >&5
12784 sed 's/^/| /' conftest.$ac_ext >&5
12786 ac_header_compiler=no
12788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12790 echo "${ECHO_T}$ac_header_compiler" >&6
12792 # Is the header present?
12793 echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12794 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
12795 cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h. */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 #include <mach/cthreads.h>
12802 _ACEOF
12803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12805 ac_status=$?
12806 grep -v '^ *+' conftest.er1 >conftest.err
12807 rm -f conftest.er1
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } >/dev/null; then
12811 if test -s conftest.err; then
12812 ac_cpp_err=$ac_c_preproc_warn_flag
12813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12814 else
12815 ac_cpp_err=
12817 else
12818 ac_cpp_err=yes
12820 if test -z "$ac_cpp_err"; then
12821 ac_header_preproc=yes
12822 else
12823 echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.$ac_ext >&5
12826 ac_header_preproc=no
12828 rm -f conftest.err conftest.$ac_ext
12829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12830 echo "${ECHO_T}$ac_header_preproc" >&6
12832 # So? What about this header?
12833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12834 yes:no: )
12835 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12836 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12838 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12839 ac_header_preproc=yes
12841 no:yes:* )
12842 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12843 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12844 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12845 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12847 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12849 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12851 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12852 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12853 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12855 cat <<\_ASBOX
12856 ## ------------------------------------------------ ##
12857 ## Report this to http://www.python.org/python-bugs ##
12858 ## ------------------------------------------------ ##
12859 _ASBOX
12861 sed "s/^/$as_me: WARNING: /" >&2
12863 esac
12864 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12865 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
12866 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12867 echo $ECHO_N "(cached) $ECHO_C" >&6
12868 else
12869 ac_cv_header_mach_cthreads_h=$ac_header_preproc
12871 echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12872 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
12875 if test $ac_cv_header_mach_cthreads_h = yes; then
12876 cat >>confdefs.h <<\_ACEOF
12877 #define WITH_THREAD 1
12878 _ACEOF
12880 cat >>confdefs.h <<\_ACEOF
12881 #define C_THREADS 1
12882 _ACEOF
12885 cat >>confdefs.h <<\_ACEOF
12886 #define MACH_C_THREADS 1
12887 _ACEOF
12889 THREADOBJ="Python/thread.o"
12890 else
12892 echo "$as_me:$LINENO: checking for --with-pth" >&5
12893 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
12895 # Check whether --with-pth or --without-pth was given.
12896 if test "${with_pth+set}" = set; then
12897 withval="$with_pth"
12898 echo "$as_me:$LINENO: result: $withval" >&5
12899 echo "${ECHO_T}$withval" >&6
12900 cat >>confdefs.h <<\_ACEOF
12901 #define WITH_THREAD 1
12902 _ACEOF
12905 cat >>confdefs.h <<\_ACEOF
12906 #define HAVE_PTH 1
12907 _ACEOF
12909 LIBS="-lpth $LIBS"
12910 THREADOBJ="Python/thread.o"
12911 else
12912 echo "$as_me:$LINENO: result: no" >&5
12913 echo "${ECHO_T}no" >&6
12915 # Just looking for pthread_create in libpthread is not enough:
12916 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12917 # So we really have to include pthread.h, and then link.
12918 _libs=$LIBS
12919 LIBS="$LIBS -lpthread"
12920 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12921 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
12922 cat >conftest.$ac_ext <<_ACEOF
12923 /* confdefs.h. */
12924 _ACEOF
12925 cat confdefs.h >>conftest.$ac_ext
12926 cat >>conftest.$ac_ext <<_ACEOF
12927 /* end confdefs.h. */
12928 #include <pthread.h>
12930 void * start_routine (void *arg) { exit (0); }
12932 main ()
12935 pthread_create (NULL, NULL, start_routine, NULL)
12937 return 0;
12939 _ACEOF
12940 rm -f conftest.$ac_objext conftest$ac_exeext
12941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12942 (eval $ac_link) 2>conftest.er1
12943 ac_status=$?
12944 grep -v '^ *+' conftest.er1 >conftest.err
12945 rm -f conftest.er1
12946 cat conftest.err >&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); } &&
12949 { ac_try='test -z "$ac_c_werror_flag"
12950 || test ! -s conftest.err'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try='test -s conftest$ac_exeext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12963 echo "$as_me:$LINENO: result: yes" >&5
12964 echo "${ECHO_T}yes" >&6
12965 cat >>confdefs.h <<\_ACEOF
12966 #define WITH_THREAD 1
12967 _ACEOF
12969 posix_threads=yes
12970 THREADOBJ="Python/thread.o"
12971 else
12972 echo "$as_me: failed program was:" >&5
12973 sed 's/^/| /' conftest.$ac_ext >&5
12976 LIBS=$_libs
12977 echo "$as_me:$LINENO: checking for pthread_detach" >&5
12978 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
12979 if test "${ac_cv_func_pthread_detach+set}" = set; then
12980 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 else
12982 cat >conftest.$ac_ext <<_ACEOF
12983 /* confdefs.h. */
12984 _ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12988 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
12989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12990 #define pthread_detach innocuous_pthread_detach
12992 /* System header to define __stub macros and hopefully few prototypes,
12993 which can conflict with char pthread_detach (); below.
12994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12995 <limits.h> exists even on freestanding compilers. */
12997 #ifdef __STDC__
12998 # include <limits.h>
12999 #else
13000 # include <assert.h>
13001 #endif
13003 #undef pthread_detach
13005 /* Override any gcc2 internal prototype to avoid an error. */
13006 #ifdef __cplusplus
13007 extern "C"
13009 #endif
13010 /* We use char because int might match the return type of a gcc2
13011 builtin and then its argument prototype would still apply. */
13012 char pthread_detach ();
13013 /* The GNU C library defines this for functions which it implements
13014 to always fail with ENOSYS. Some functions are actually named
13015 something starting with __ and the normal name is an alias. */
13016 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
13017 choke me
13018 #else
13019 char (*f) () = pthread_detach;
13020 #endif
13021 #ifdef __cplusplus
13023 #endif
13026 main ()
13028 return f != pthread_detach;
13030 return 0;
13032 _ACEOF
13033 rm -f conftest.$ac_objext conftest$ac_exeext
13034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13035 (eval $ac_link) 2>conftest.er1
13036 ac_status=$?
13037 grep -v '^ *+' conftest.er1 >conftest.err
13038 rm -f conftest.er1
13039 cat conftest.err >&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } &&
13042 { ac_try='test -z "$ac_c_werror_flag"
13043 || test ! -s conftest.err'
13044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045 (eval $ac_try) 2>&5
13046 ac_status=$?
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; } &&
13049 { ac_try='test -s conftest$ac_exeext'
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }; then
13055 ac_cv_func_pthread_detach=yes
13056 else
13057 echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.$ac_ext >&5
13060 ac_cv_func_pthread_detach=no
13062 rm -f conftest.err conftest.$ac_objext \
13063 conftest$ac_exeext conftest.$ac_ext
13065 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13066 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
13067 if test $ac_cv_func_pthread_detach = yes; then
13068 cat >>confdefs.h <<\_ACEOF
13069 #define WITH_THREAD 1
13070 _ACEOF
13072 posix_threads=yes
13073 THREADOBJ="Python/thread.o"
13074 else
13076 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13077 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13078 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
13079 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13083 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
13084 else
13085 # Is the header compilable?
13086 echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13087 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h. */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094 $ac_includes_default
13095 #include <atheos/threads.h>
13096 _ACEOF
13097 rm -f conftest.$ac_objext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099 (eval $ac_compile) 2>conftest.er1
13100 ac_status=$?
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
13106 { ac_try='test -z "$ac_c_werror_flag"
13107 || test ! -s conftest.err'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } &&
13113 { ac_try='test -s conftest.$ac_objext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 ac_header_compiler=yes
13120 else
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13124 ac_header_compiler=no
13126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13128 echo "${ECHO_T}$ac_header_compiler" >&6
13130 # Is the header present?
13131 echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13132 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
13133 cat >conftest.$ac_ext <<_ACEOF
13134 /* confdefs.h. */
13135 _ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13139 #include <atheos/threads.h>
13140 _ACEOF
13141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13143 ac_status=$?
13144 grep -v '^ *+' conftest.er1 >conftest.err
13145 rm -f conftest.er1
13146 cat conftest.err >&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } >/dev/null; then
13149 if test -s conftest.err; then
13150 ac_cpp_err=$ac_c_preproc_warn_flag
13151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13152 else
13153 ac_cpp_err=
13155 else
13156 ac_cpp_err=yes
13158 if test -z "$ac_cpp_err"; then
13159 ac_header_preproc=yes
13160 else
13161 echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.$ac_ext >&5
13164 ac_header_preproc=no
13166 rm -f conftest.err conftest.$ac_ext
13167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13168 echo "${ECHO_T}$ac_header_preproc" >&6
13170 # So? What about this header?
13171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13172 yes:no: )
13173 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13174 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
13176 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
13177 ac_header_preproc=yes
13179 no:yes:* )
13180 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
13181 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
13182 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
13183 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
13184 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
13185 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
13186 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
13187 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
13189 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
13190 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
13191 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
13193 cat <<\_ASBOX
13194 ## ------------------------------------------------ ##
13195 ## Report this to http://www.python.org/python-bugs ##
13196 ## ------------------------------------------------ ##
13197 _ASBOX
13199 sed "s/^/$as_me: WARNING: /" >&2
13201 esac
13202 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13203 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
13204 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207 ac_cv_header_atheos_threads_h=$ac_header_preproc
13209 echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13210 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
13213 if test $ac_cv_header_atheos_threads_h = yes; then
13214 cat >>confdefs.h <<\_ACEOF
13215 #define WITH_THREAD 1
13216 _ACEOF
13219 cat >>confdefs.h <<\_ACEOF
13220 #define ATHEOS_THREADS 1
13221 _ACEOF
13223 THREADOBJ="Python/thread.o"
13224 else
13226 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13227 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13228 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
13229 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13233 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
13234 else
13235 # Is the header compilable?
13236 echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
13237 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
13238 cat >conftest.$ac_ext <<_ACEOF
13239 /* confdefs.h. */
13240 _ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13244 $ac_includes_default
13245 #include <kernel/OS.h>
13246 _ACEOF
13247 rm -f conftest.$ac_objext
13248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13249 (eval $ac_compile) 2>conftest.er1
13250 ac_status=$?
13251 grep -v '^ *+' conftest.er1 >conftest.err
13252 rm -f conftest.er1
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
13256 { ac_try='test -z "$ac_c_werror_flag"
13257 || test ! -s conftest.err'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13260 ac_status=$?
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; } &&
13263 { ac_try='test -s conftest.$ac_objext'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; }; then
13269 ac_header_compiler=yes
13270 else
13271 echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13274 ac_header_compiler=no
13276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13278 echo "${ECHO_T}$ac_header_compiler" >&6
13280 # Is the header present?
13281 echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
13282 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
13283 cat >conftest.$ac_ext <<_ACEOF
13284 /* confdefs.h. */
13285 _ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13289 #include <kernel/OS.h>
13290 _ACEOF
13291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13293 ac_status=$?
13294 grep -v '^ *+' conftest.er1 >conftest.err
13295 rm -f conftest.er1
13296 cat conftest.err >&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } >/dev/null; then
13299 if test -s conftest.err; then
13300 ac_cpp_err=$ac_c_preproc_warn_flag
13301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13302 else
13303 ac_cpp_err=
13305 else
13306 ac_cpp_err=yes
13308 if test -z "$ac_cpp_err"; then
13309 ac_header_preproc=yes
13310 else
13311 echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13314 ac_header_preproc=no
13316 rm -f conftest.err conftest.$ac_ext
13317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13318 echo "${ECHO_T}$ac_header_preproc" >&6
13320 # So? What about this header?
13321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13322 yes:no: )
13323 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
13324 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
13326 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
13327 ac_header_preproc=yes
13329 no:yes:* )
13330 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
13331 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
13333 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
13335 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
13337 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
13339 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
13341 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
13343 cat <<\_ASBOX
13344 ## ------------------------------------------------ ##
13345 ## Report this to http://www.python.org/python-bugs ##
13346 ## ------------------------------------------------ ##
13347 _ASBOX
13349 sed "s/^/$as_me: WARNING: /" >&2
13351 esac
13352 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13353 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
13354 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 else
13357 ac_cv_header_kernel_OS_h=$ac_header_preproc
13359 echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13360 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
13363 if test $ac_cv_header_kernel_OS_h = yes; then
13364 cat >>confdefs.h <<\_ACEOF
13365 #define WITH_THREAD 1
13366 _ACEOF
13369 cat >>confdefs.h <<\_ACEOF
13370 #define BEOS_THREADS 1
13371 _ACEOF
13373 THREADOBJ="Python/thread.o"
13374 else
13376 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
13377 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
13378 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13380 else
13381 ac_check_lib_save_LIBS=$LIBS
13382 LIBS="-lpthreads $LIBS"
13383 cat >conftest.$ac_ext <<_ACEOF
13384 /* confdefs.h. */
13385 _ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13390 /* Override any gcc2 internal prototype to avoid an error. */
13391 #ifdef __cplusplus
13392 extern "C"
13393 #endif
13394 /* We use char because int might match the return type of a gcc2
13395 builtin and then its argument prototype would still apply. */
13396 char pthread_create ();
13398 main ()
13400 pthread_create ();
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 ac_cv_lib_pthreads_pthread_create=yes
13428 else
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13432 ac_cv_lib_pthreads_pthread_create=no
13434 rm -f conftest.err conftest.$ac_objext \
13435 conftest$ac_exeext conftest.$ac_ext
13436 LIBS=$ac_check_lib_save_LIBS
13438 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
13439 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
13440 if test $ac_cv_lib_pthreads_pthread_create = yes; then
13441 cat >>confdefs.h <<\_ACEOF
13442 #define WITH_THREAD 1
13443 _ACEOF
13445 posix_threads=yes
13446 LIBS="$LIBS -lpthreads"
13447 THREADOBJ="Python/thread.o"
13448 else
13450 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
13451 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
13452 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 else
13455 ac_check_lib_save_LIBS=$LIBS
13456 LIBS="-lc_r $LIBS"
13457 cat >conftest.$ac_ext <<_ACEOF
13458 /* confdefs.h. */
13459 _ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13464 /* Override any gcc2 internal prototype to avoid an error. */
13465 #ifdef __cplusplus
13466 extern "C"
13467 #endif
13468 /* We use char because int might match the return type of a gcc2
13469 builtin and then its argument prototype would still apply. */
13470 char pthread_create ();
13472 main ()
13474 pthread_create ();
13476 return 0;
13478 _ACEOF
13479 rm -f conftest.$ac_objext conftest$ac_exeext
13480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13481 (eval $ac_link) 2>conftest.er1
13482 ac_status=$?
13483 grep -v '^ *+' conftest.er1 >conftest.err
13484 rm -f conftest.er1
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
13488 { ac_try='test -z "$ac_c_werror_flag"
13489 || test ! -s conftest.err'
13490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491 (eval $ac_try) 2>&5
13492 ac_status=$?
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; } &&
13495 { ac_try='test -s conftest$ac_exeext'
13496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497 (eval $ac_try) 2>&5
13498 ac_status=$?
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; }; then
13501 ac_cv_lib_c_r_pthread_create=yes
13502 else
13503 echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13506 ac_cv_lib_c_r_pthread_create=no
13508 rm -f conftest.err conftest.$ac_objext \
13509 conftest$ac_exeext conftest.$ac_ext
13510 LIBS=$ac_check_lib_save_LIBS
13512 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
13513 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
13514 if test $ac_cv_lib_c_r_pthread_create = yes; then
13515 cat >>confdefs.h <<\_ACEOF
13516 #define WITH_THREAD 1
13517 _ACEOF
13519 posix_threads=yes
13520 LIBS="$LIBS -lc_r"
13521 THREADOBJ="Python/thread.o"
13522 else
13524 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
13525 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
13526 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 else
13529 ac_check_lib_save_LIBS=$LIBS
13530 LIBS="-lpthread $LIBS"
13531 cat >conftest.$ac_ext <<_ACEOF
13532 /* confdefs.h. */
13533 _ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h. */
13538 /* Override any gcc2 internal prototype to avoid an error. */
13539 #ifdef __cplusplus
13540 extern "C"
13541 #endif
13542 /* We use char because int might match the return type of a gcc2
13543 builtin and then its argument prototype would still apply. */
13544 char __pthread_create_system ();
13546 main ()
13548 __pthread_create_system ();
13550 return 0;
13552 _ACEOF
13553 rm -f conftest.$ac_objext conftest$ac_exeext
13554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13555 (eval $ac_link) 2>conftest.er1
13556 ac_status=$?
13557 grep -v '^ *+' conftest.er1 >conftest.err
13558 rm -f conftest.er1
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } &&
13562 { ac_try='test -z "$ac_c_werror_flag"
13563 || test ! -s conftest.err'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; } &&
13569 { ac_try='test -s conftest$ac_exeext'
13570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571 (eval $ac_try) 2>&5
13572 ac_status=$?
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; }; then
13575 ac_cv_lib_pthread___pthread_create_system=yes
13576 else
13577 echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13580 ac_cv_lib_pthread___pthread_create_system=no
13582 rm -f conftest.err conftest.$ac_objext \
13583 conftest$ac_exeext conftest.$ac_ext
13584 LIBS=$ac_check_lib_save_LIBS
13586 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13587 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
13588 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13589 cat >>confdefs.h <<\_ACEOF
13590 #define WITH_THREAD 1
13591 _ACEOF
13593 posix_threads=yes
13594 LIBS="$LIBS -lpthread"
13595 THREADOBJ="Python/thread.o"
13596 else
13598 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13599 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
13600 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 else
13603 ac_check_lib_save_LIBS=$LIBS
13604 LIBS="-lcma $LIBS"
13605 cat >conftest.$ac_ext <<_ACEOF
13606 /* confdefs.h. */
13607 _ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13612 /* Override any gcc2 internal prototype to avoid an error. */
13613 #ifdef __cplusplus
13614 extern "C"
13615 #endif
13616 /* We use char because int might match the return type of a gcc2
13617 builtin and then its argument prototype would still apply. */
13618 char pthread_create ();
13620 main ()
13622 pthread_create ();
13624 return 0;
13626 _ACEOF
13627 rm -f conftest.$ac_objext conftest$ac_exeext
13628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13629 (eval $ac_link) 2>conftest.er1
13630 ac_status=$?
13631 grep -v '^ *+' conftest.er1 >conftest.err
13632 rm -f conftest.er1
13633 cat conftest.err >&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } &&
13636 { ac_try='test -z "$ac_c_werror_flag"
13637 || test ! -s conftest.err'
13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639 (eval $ac_try) 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; } &&
13643 { ac_try='test -s conftest$ac_exeext'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
13649 ac_cv_lib_cma_pthread_create=yes
13650 else
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13654 ac_cv_lib_cma_pthread_create=no
13656 rm -f conftest.err conftest.$ac_objext \
13657 conftest$ac_exeext conftest.$ac_ext
13658 LIBS=$ac_check_lib_save_LIBS
13660 echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13661 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
13662 if test $ac_cv_lib_cma_pthread_create = yes; then
13663 cat >>confdefs.h <<\_ACEOF
13664 #define WITH_THREAD 1
13665 _ACEOF
13667 posix_threads=yes
13668 LIBS="$LIBS -lcma"
13669 THREADOBJ="Python/thread.o"
13670 else
13672 USE_THREAD_MODULE="#"
13691 rm -f conftest.err conftest.$ac_objext \
13692 conftest$ac_exeext conftest.$ac_ext
13701 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13702 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
13703 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13705 else
13706 ac_check_lib_save_LIBS=$LIBS
13707 LIBS="-lmpc $LIBS"
13708 cat >conftest.$ac_ext <<_ACEOF
13709 /* confdefs.h. */
13710 _ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13715 /* Override any gcc2 internal prototype to avoid an error. */
13716 #ifdef __cplusplus
13717 extern "C"
13718 #endif
13719 /* We use char because int might match the return type of a gcc2
13720 builtin and then its argument prototype would still apply. */
13721 char usconfig ();
13723 main ()
13725 usconfig ();
13727 return 0;
13729 _ACEOF
13730 rm -f conftest.$ac_objext conftest$ac_exeext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13732 (eval $ac_link) 2>conftest.er1
13733 ac_status=$?
13734 grep -v '^ *+' conftest.er1 >conftest.err
13735 rm -f conftest.er1
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try='test -z "$ac_c_werror_flag"
13740 || test ! -s conftest.err'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try='test -s conftest$ac_exeext'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; }; then
13752 ac_cv_lib_mpc_usconfig=yes
13753 else
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13757 ac_cv_lib_mpc_usconfig=no
13759 rm -f conftest.err conftest.$ac_objext \
13760 conftest$ac_exeext conftest.$ac_ext
13761 LIBS=$ac_check_lib_save_LIBS
13763 echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13764 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
13765 if test $ac_cv_lib_mpc_usconfig = yes; then
13766 cat >>confdefs.h <<\_ACEOF
13767 #define WITH_THREAD 1
13768 _ACEOF
13770 LIBS="$LIBS -lmpc"
13771 THREADOBJ="Python/thread.o"
13772 USE_THREAD_MODULE=""
13776 if test "$posix_threads" != "yes"; then
13777 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13778 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
13779 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 else
13782 ac_check_lib_save_LIBS=$LIBS
13783 LIBS="-lthread $LIBS"
13784 cat >conftest.$ac_ext <<_ACEOF
13785 /* confdefs.h. */
13786 _ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13791 /* Override any gcc2 internal prototype to avoid an error. */
13792 #ifdef __cplusplus
13793 extern "C"
13794 #endif
13795 /* We use char because int might match the return type of a gcc2
13796 builtin and then its argument prototype would still apply. */
13797 char thr_create ();
13799 main ()
13801 thr_create ();
13803 return 0;
13805 _ACEOF
13806 rm -f conftest.$ac_objext conftest$ac_exeext
13807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13808 (eval $ac_link) 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
13815 { ac_try='test -z "$ac_c_werror_flag"
13816 || test ! -s conftest.err'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; } &&
13822 { ac_try='test -s conftest$ac_exeext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_cv_lib_thread_thr_create=yes
13829 else
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13833 ac_cv_lib_thread_thr_create=no
13835 rm -f conftest.err conftest.$ac_objext \
13836 conftest$ac_exeext conftest.$ac_ext
13837 LIBS=$ac_check_lib_save_LIBS
13839 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13840 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
13841 if test $ac_cv_lib_thread_thr_create = yes; then
13842 cat >>confdefs.h <<\_ACEOF
13843 #define WITH_THREAD 1
13844 _ACEOF
13846 LIBS="$LIBS -lthread"
13847 THREADOBJ="Python/thread.o"
13848 USE_THREAD_MODULE=""
13853 if test "$USE_THREAD_MODULE" != "#"
13854 then
13855 # If the above checks didn't disable threads, (at least) OSF1
13856 # needs this '-threads' argument during linking.
13857 case $ac_sys_system in
13858 OSF1) LDLAST=-threads;;
13859 esac
13863 if test "$posix_threads" = "yes"; then
13864 if test "$unistd_defines_pthreads" = "no"; then
13866 cat >>confdefs.h <<\_ACEOF
13867 #define _POSIX_THREADS 1
13868 _ACEOF
13872 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13873 case $ac_sys_system/$ac_sys_release in
13874 SunOS/5.6)
13875 cat >>confdefs.h <<\_ACEOF
13876 #define HAVE_PTHREAD_DESTRUCTOR 1
13877 _ACEOF
13880 SunOS/5.8)
13881 cat >>confdefs.h <<\_ACEOF
13882 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13883 _ACEOF
13886 esac
13888 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13889 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
13890 if test "${ac_cv_pthread_system_supported+set}" = set; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13892 else
13893 if test "$cross_compiling" = yes; then
13894 ac_cv_pthread_system_supported=no
13895 else
13896 cat >conftest.$ac_ext <<_ACEOF
13897 /* confdefs.h. */
13898 _ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13902 #include <pthread.h>
13903 void *foo(void *parm) {
13904 return NULL;
13906 main() {
13907 pthread_attr_t attr;
13908 pthread_t id;
13909 if (pthread_attr_init(&attr)) exit(-1);
13910 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13911 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13912 exit(0);
13914 _ACEOF
13915 rm -f conftest$ac_exeext
13916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13917 (eval $ac_link) 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13923 ac_status=$?
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 ac_cv_pthread_system_supported=yes
13927 else
13928 echo "$as_me: program exited with status $ac_status" >&5
13929 echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13932 ( exit $ac_status )
13933 ac_cv_pthread_system_supported=no
13935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13940 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13941 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
13942 if test "$ac_cv_pthread_system_supported" = "yes"; then
13944 cat >>confdefs.h <<\_ACEOF
13945 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13946 _ACEOF
13950 for ac_func in pthread_sigmask
13952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13953 echo "$as_me:$LINENO: checking for $ac_func" >&5
13954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13955 if eval "test \"\${$as_ac_var+set}\" = set"; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 else
13958 cat >conftest.$ac_ext <<_ACEOF
13959 /* confdefs.h. */
13960 _ACEOF
13961 cat confdefs.h >>conftest.$ac_ext
13962 cat >>conftest.$ac_ext <<_ACEOF
13963 /* end confdefs.h. */
13964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13966 #define $ac_func innocuous_$ac_func
13968 /* System header to define __stub macros and hopefully few prototypes,
13969 which can conflict with char $ac_func (); below.
13970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13971 <limits.h> exists even on freestanding compilers. */
13973 #ifdef __STDC__
13974 # include <limits.h>
13975 #else
13976 # include <assert.h>
13977 #endif
13979 #undef $ac_func
13981 /* Override any gcc2 internal prototype to avoid an error. */
13982 #ifdef __cplusplus
13983 extern "C"
13985 #endif
13986 /* We use char because int might match the return type of a gcc2
13987 builtin and then its argument prototype would still apply. */
13988 char $ac_func ();
13989 /* The GNU C library defines this for functions which it implements
13990 to always fail with ENOSYS. Some functions are actually named
13991 something starting with __ and the normal name is an alias. */
13992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13993 choke me
13994 #else
13995 char (*f) () = $ac_func;
13996 #endif
13997 #ifdef __cplusplus
13999 #endif
14002 main ()
14004 return f != $ac_func;
14006 return 0;
14008 _ACEOF
14009 rm -f conftest.$ac_objext conftest$ac_exeext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14011 (eval $ac_link) 2>conftest.er1
14012 ac_status=$?
14013 grep -v '^ *+' conftest.er1 >conftest.err
14014 rm -f conftest.er1
14015 cat conftest.err >&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try='test -z "$ac_c_werror_flag"
14019 || test ! -s conftest.err'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; } &&
14025 { ac_try='test -s conftest$ac_exeext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14031 eval "$as_ac_var=yes"
14032 else
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14036 eval "$as_ac_var=no"
14038 rm -f conftest.err conftest.$ac_objext \
14039 conftest$ac_exeext conftest.$ac_ext
14041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14043 if test `eval echo '${'$as_ac_var'}'` = yes; then
14044 cat >>confdefs.h <<_ACEOF
14045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14046 _ACEOF
14047 case $ac_sys_system in
14048 CYGWIN*)
14050 cat >>confdefs.h <<\_ACEOF
14051 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14052 _ACEOF
14055 esac
14057 done
14062 # Check for enable-ipv6
14065 echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14066 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
14067 # Check whether --enable-ipv6 or --disable-ipv6 was given.
14068 if test "${enable_ipv6+set}" = set; then
14069 enableval="$enable_ipv6"
14070 case "$enableval" in
14072 echo "$as_me:$LINENO: result: no" >&5
14073 echo "${ECHO_T}no" >&6
14074 ipv6=no
14076 *) echo "$as_me:$LINENO: result: yes" >&5
14077 echo "${ECHO_T}yes" >&6
14078 cat >>confdefs.h <<\_ACEOF
14079 #define ENABLE_IPV6 1
14080 _ACEOF
14082 ipv6=yes
14084 esac
14085 else
14087 if test "$cross_compiling" = yes; then
14088 echo "$as_me:$LINENO: result: no" >&5
14089 echo "${ECHO_T}no" >&6
14090 ipv6=no
14092 else
14093 cat >conftest.$ac_ext <<_ACEOF
14094 /* confdefs.h. */
14095 _ACEOF
14096 cat confdefs.h >>conftest.$ac_ext
14097 cat >>conftest.$ac_ext <<_ACEOF
14098 /* end confdefs.h. */
14099 /* AF_INET6 available check */
14100 #include <sys/types.h>
14101 #include <sys/socket.h>
14102 main()
14104 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14105 exit(1);
14106 else
14107 exit(0);
14110 _ACEOF
14111 rm -f conftest$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 echo "$as_me:$LINENO: result: yes" >&5
14123 echo "${ECHO_T}yes" >&6
14124 ipv6=yes
14125 else
14126 echo "$as_me: program exited with status $ac_status" >&5
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14130 ( exit $ac_status )
14131 echo "$as_me:$LINENO: result: no" >&5
14132 echo "${ECHO_T}no" >&6
14133 ipv6=no
14135 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14138 if test "$ipv6" = "yes"; then
14139 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14140 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
14141 cat >conftest.$ac_ext <<_ACEOF
14142 /* confdefs.h. */
14143 _ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14147 #include <sys/types.h>
14148 #include <netinet/in.h>
14150 main ()
14152 struct sockaddr_in6 x;
14153 x.sin6_scope_id;
14155 return 0;
14157 _ACEOF
14158 rm -f conftest.$ac_objext
14159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14160 (eval $ac_compile) 2>conftest.er1
14161 ac_status=$?
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
14167 { ac_try='test -z "$ac_c_werror_flag"
14168 || test ! -s conftest.err'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try='test -s conftest.$ac_objext'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 echo "$as_me:$LINENO: result: yes" >&5
14181 echo "${ECHO_T}yes" >&6
14182 ipv6=yes
14183 else
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14187 echo "$as_me:$LINENO: result: no" >&5
14188 echo "${ECHO_T}no" >&6
14189 ipv6=no
14191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14194 if test "$ipv6" = "yes"; then
14195 cat >>confdefs.h <<\_ACEOF
14196 #define ENABLE_IPV6 1
14197 _ACEOF
14203 ipv6type=unknown
14204 ipv6lib=none
14205 ipv6trylibc=no
14207 if test "$ipv6" = "yes"; then
14208 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
14209 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
14210 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
14212 case $i in
14213 inria)
14214 cat >conftest.$ac_ext <<_ACEOF
14215 /* confdefs.h. */
14216 _ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14221 #include <netinet/in.h>
14222 #ifdef IPV6_INRIA_VERSION
14224 #endif
14225 _ACEOF
14226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14227 $EGREP "yes" >/dev/null 2>&1; then
14228 ipv6type=$i
14230 rm -f conftest*
14233 kame)
14234 cat >conftest.$ac_ext <<_ACEOF
14235 /* confdefs.h. */
14236 _ACEOF
14237 cat confdefs.h >>conftest.$ac_ext
14238 cat >>conftest.$ac_ext <<_ACEOF
14239 /* end confdefs.h. */
14241 #include <netinet/in.h>
14242 #ifdef __KAME__
14244 #endif
14245 _ACEOF
14246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14247 $EGREP "yes" >/dev/null 2>&1; then
14248 ipv6type=$i;
14249 ipv6lib=inet6
14250 ipv6libdir=/usr/local/v6/lib
14251 ipv6trylibc=yes
14253 rm -f conftest*
14256 linux-glibc)
14257 cat >conftest.$ac_ext <<_ACEOF
14258 /* confdefs.h. */
14259 _ACEOF
14260 cat confdefs.h >>conftest.$ac_ext
14261 cat >>conftest.$ac_ext <<_ACEOF
14262 /* end confdefs.h. */
14264 #include <features.h>
14265 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
14267 #endif
14268 _ACEOF
14269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14270 $EGREP "yes" >/dev/null 2>&1; then
14271 ipv6type=$i;
14272 ipv6trylibc=yes
14274 rm -f conftest*
14277 linux-inet6)
14278 if test -d /usr/inet6; then
14279 ipv6type=$i
14280 ipv6lib=inet6
14281 ipv6libdir=/usr/inet6/lib
14282 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
14285 solaris)
14286 if test -f /etc/netconfig; then
14287 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
14288 ipv6type=$i
14289 ipv6trylibc=yes
14293 toshiba)
14294 cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h. */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14301 #include <sys/param.h>
14302 #ifdef _TOSHIBA_INET6
14304 #endif
14305 _ACEOF
14306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14307 $EGREP "yes" >/dev/null 2>&1; then
14308 ipv6type=$i;
14309 ipv6lib=inet6;
14310 ipv6libdir=/usr/local/v6/lib
14312 rm -f conftest*
14315 v6d)
14316 cat >conftest.$ac_ext <<_ACEOF
14317 /* confdefs.h. */
14318 _ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14323 #include </usr/local/v6/include/sys/v6config.h>
14324 #ifdef __V6D__
14326 #endif
14327 _ACEOF
14328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14329 $EGREP "yes" >/dev/null 2>&1; then
14330 ipv6type=$i;
14331 ipv6lib=v6;
14332 ipv6libdir=/usr/local/v6/lib;
14333 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
14335 rm -f conftest*
14338 zeta)
14339 cat >conftest.$ac_ext <<_ACEOF
14340 /* confdefs.h. */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14346 #include <sys/param.h>
14347 #ifdef _ZETA_MINAMI_INET6
14349 #endif
14350 _ACEOF
14351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14352 $EGREP "yes" >/dev/null 2>&1; then
14353 ipv6type=$i;
14354 ipv6lib=inet6;
14355 ipv6libdir=/usr/local/v6/lib
14357 rm -f conftest*
14360 esac
14361 if test "$ipv6type" != "unknown"; then
14362 break
14364 done
14365 echo "$as_me:$LINENO: result: $ipv6type" >&5
14366 echo "${ECHO_T}$ipv6type" >&6
14369 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
14370 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
14371 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
14372 echo "using lib$ipv6lib"
14373 else
14374 if test $ipv6trylibc = "yes"; then
14375 echo "using libc"
14376 else
14377 echo 'Fatal: no $ipv6lib library found. cannot continue.'
14378 echo "You need to fetch lib$ipv6lib.a from appropriate"
14379 echo 'ipv6 kit and compile beforehand.'
14380 exit 1
14385 # Check for --with-doc-strings
14386 echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
14387 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
14389 # Check whether --with-doc-strings or --without-doc-strings was given.
14390 if test "${with_doc_strings+set}" = set; then
14391 withval="$with_doc_strings"
14395 if test -z "$with_doc_strings"
14396 then with_doc_strings="yes"
14398 if test "$with_doc_strings" != "no"
14399 then
14401 cat >>confdefs.h <<\_ACEOF
14402 #define WITH_DOC_STRINGS 1
14403 _ACEOF
14406 echo "$as_me:$LINENO: result: $with_doc_strings" >&5
14407 echo "${ECHO_T}$with_doc_strings" >&6
14409 # Check for Python-specific malloc support
14410 echo "$as_me:$LINENO: checking for --with-tsc" >&5
14411 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
14413 # Check whether --with-tsc or --without-tsc was given.
14414 if test "${with_tsc+set}" = set; then
14415 withval="$with_tsc"
14417 if test "$withval" != no
14418 then
14420 cat >>confdefs.h <<\_ACEOF
14421 #define WITH_TSC 1
14422 _ACEOF
14424 echo "$as_me:$LINENO: result: yes" >&5
14425 echo "${ECHO_T}yes" >&6
14426 else echo "$as_me:$LINENO: result: no" >&5
14427 echo "${ECHO_T}no" >&6
14429 else
14430 echo "$as_me:$LINENO: result: no" >&5
14431 echo "${ECHO_T}no" >&6
14434 # Check for Python-specific malloc support
14435 echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
14436 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
14438 # Check whether --with-pymalloc or --without-pymalloc was given.
14439 if test "${with_pymalloc+set}" = set; then
14440 withval="$with_pymalloc"
14444 if test -z "$with_pymalloc"
14445 then with_pymalloc="yes"
14447 if test "$with_pymalloc" != "no"
14448 then
14450 cat >>confdefs.h <<\_ACEOF
14451 #define WITH_PYMALLOC 1
14452 _ACEOF
14455 echo "$as_me:$LINENO: result: $with_pymalloc" >&5
14456 echo "${ECHO_T}$with_pymalloc" >&6
14458 # Check for --with-wctype-functions
14459 echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
14460 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
14462 # Check whether --with-wctype-functions or --without-wctype-functions was given.
14463 if test "${with_wctype_functions+set}" = set; then
14464 withval="$with_wctype_functions"
14466 if test "$withval" != no
14467 then
14469 cat >>confdefs.h <<\_ACEOF
14470 #define WANT_WCTYPE_FUNCTIONS 1
14471 _ACEOF
14473 echo "$as_me:$LINENO: result: yes" >&5
14474 echo "${ECHO_T}yes" >&6
14475 else echo "$as_me:$LINENO: result: no" >&5
14476 echo "${ECHO_T}no" >&6
14478 else
14479 echo "$as_me:$LINENO: result: no" >&5
14480 echo "${ECHO_T}no" >&6
14483 # -I${DLINCLDIR} is added to the compile rule for importdl.o
14485 DLINCLDIR=.
14487 # the dlopen() function means we might want to use dynload_shlib.o. some
14488 # platforms, such as AIX, have dlopen(), but don't want to use it.
14490 for ac_func in dlopen
14492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14493 echo "$as_me:$LINENO: checking for $ac_func" >&5
14494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14495 if eval "test \"\${$as_ac_var+set}\" = set"; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497 else
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h. */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14506 #define $ac_func innocuous_$ac_func
14508 /* System header to define __stub macros and hopefully few prototypes,
14509 which can conflict with char $ac_func (); below.
14510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14511 <limits.h> exists even on freestanding compilers. */
14513 #ifdef __STDC__
14514 # include <limits.h>
14515 #else
14516 # include <assert.h>
14517 #endif
14519 #undef $ac_func
14521 /* Override any gcc2 internal prototype to avoid an error. */
14522 #ifdef __cplusplus
14523 extern "C"
14525 #endif
14526 /* We use char because int might match the return type of a gcc2
14527 builtin and then its argument prototype would still apply. */
14528 char $ac_func ();
14529 /* The GNU C library defines this for functions which it implements
14530 to always fail with ENOSYS. Some functions are actually named
14531 something starting with __ and the normal name is an alias. */
14532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14533 choke me
14534 #else
14535 char (*f) () = $ac_func;
14536 #endif
14537 #ifdef __cplusplus
14539 #endif
14542 main ()
14544 return f != $ac_func;
14546 return 0;
14548 _ACEOF
14549 rm -f conftest.$ac_objext conftest$ac_exeext
14550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14551 (eval $ac_link) 2>conftest.er1
14552 ac_status=$?
14553 grep -v '^ *+' conftest.er1 >conftest.err
14554 rm -f conftest.er1
14555 cat conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } &&
14558 { ac_try='test -z "$ac_c_werror_flag"
14559 || test ! -s conftest.err'
14560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561 (eval $ac_try) 2>&5
14562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; } &&
14565 { ac_try='test -s conftest$ac_exeext'
14566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14567 (eval $ac_try) 2>&5
14568 ac_status=$?
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; }; then
14571 eval "$as_ac_var=yes"
14572 else
14573 echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14576 eval "$as_ac_var=no"
14578 rm -f conftest.err conftest.$ac_objext \
14579 conftest$ac_exeext conftest.$ac_ext
14581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14583 if test `eval echo '${'$as_ac_var'}'` = yes; then
14584 cat >>confdefs.h <<_ACEOF
14585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14586 _ACEOF
14589 done
14592 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14593 # loading of modules.
14595 echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14596 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
14597 if test -z "$DYNLOADFILE"
14598 then
14599 case $ac_sys_system/$ac_sys_release in
14600 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14601 if test "$ac_cv_func_dlopen" = yes
14602 then DYNLOADFILE="dynload_shlib.o"
14603 else DYNLOADFILE="dynload_aix.o"
14606 BeOS*) DYNLOADFILE="dynload_beos.o";;
14607 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
14608 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14609 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
14610 atheos*) DYNLOADFILE="dynload_atheos.o";;
14612 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14613 # out any dynamic loading
14614 if test "$ac_cv_func_dlopen" = yes
14615 then DYNLOADFILE="dynload_shlib.o"
14616 else DYNLOADFILE="dynload_stub.o"
14619 esac
14621 echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14622 echo "${ECHO_T}$DYNLOADFILE" >&6
14623 if test "$DYNLOADFILE" != "dynload_stub.o"
14624 then
14626 cat >>confdefs.h <<\_ACEOF
14627 #define HAVE_DYNAMIC_LOADING 1
14628 _ACEOF
14632 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14635 echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14636 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
14637 if test -z "$MACHDEP_OBJS"
14638 then
14639 MACHDEP_OBJS=$extra_machdep_objs
14640 else
14641 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14643 echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14644 echo "${ECHO_T}MACHDEP_OBJS" >&6
14646 # checks for library functions
14725 for ac_func in alarm bind_textdomain_codeset chflags chown clock confstr \
14726 ctermid execv fork fpathconf ftime ftruncate \
14727 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14728 getpriority getpwent getspnam getspent getsid getwd \
14729 kill killpg lchflags lchown lstat mkfifo mknod mktime \
14730 mremap nice pathconf pause plock poll pthread_init \
14731 putenv readlink realpath \
14732 select setegid seteuid setgid \
14733 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14734 sigaction siginterrupt sigrelse strftime \
14735 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14736 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14739 echo "$as_me:$LINENO: checking for $ac_func" >&5
14740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14741 if eval "test \"\${$as_ac_var+set}\" = set"; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 else
14744 cat >conftest.$ac_ext <<_ACEOF
14745 /* confdefs.h. */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14752 #define $ac_func innocuous_$ac_func
14754 /* System header to define __stub macros and hopefully few prototypes,
14755 which can conflict with char $ac_func (); below.
14756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14757 <limits.h> exists even on freestanding compilers. */
14759 #ifdef __STDC__
14760 # include <limits.h>
14761 #else
14762 # include <assert.h>
14763 #endif
14765 #undef $ac_func
14767 /* Override any gcc2 internal prototype to avoid an error. */
14768 #ifdef __cplusplus
14769 extern "C"
14771 #endif
14772 /* We use char because int might match the return type of a gcc2
14773 builtin and then its argument prototype would still apply. */
14774 char $ac_func ();
14775 /* The GNU C library defines this for functions which it implements
14776 to always fail with ENOSYS. Some functions are actually named
14777 something starting with __ and the normal name is an alias. */
14778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14779 choke me
14780 #else
14781 char (*f) () = $ac_func;
14782 #endif
14783 #ifdef __cplusplus
14785 #endif
14788 main ()
14790 return f != $ac_func;
14792 return 0;
14794 _ACEOF
14795 rm -f conftest.$ac_objext conftest$ac_exeext
14796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14797 (eval $ac_link) 2>conftest.er1
14798 ac_status=$?
14799 grep -v '^ *+' conftest.er1 >conftest.err
14800 rm -f conftest.er1
14801 cat conftest.err >&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -z "$ac_c_werror_flag"
14805 || test ! -s conftest.err'
14806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807 (eval $ac_try) 2>&5
14808 ac_status=$?
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; } &&
14811 { ac_try='test -s conftest$ac_exeext'
14812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813 (eval $ac_try) 2>&5
14814 ac_status=$?
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; }; then
14817 eval "$as_ac_var=yes"
14818 else
14819 echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.$ac_ext >&5
14822 eval "$as_ac_var=no"
14824 rm -f conftest.err conftest.$ac_objext \
14825 conftest$ac_exeext conftest.$ac_ext
14827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14829 if test `eval echo '${'$as_ac_var'}'` = yes; then
14830 cat >>confdefs.h <<_ACEOF
14831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14832 _ACEOF
14835 done
14838 # For some functions, having a definition is not sufficient, since
14839 # we want to take their address.
14840 echo "$as_me:$LINENO: checking for chroot" >&5
14841 echo $ECHO_N "checking for chroot... $ECHO_C" >&6
14842 cat >conftest.$ac_ext <<_ACEOF
14843 /* confdefs.h. */
14844 _ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14848 #include <unistd.h>
14850 main ()
14852 void *x=chroot
14854 return 0;
14856 _ACEOF
14857 rm -f conftest.$ac_objext
14858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14859 (eval $ac_compile) 2>conftest.er1
14860 ac_status=$?
14861 grep -v '^ *+' conftest.er1 >conftest.err
14862 rm -f conftest.er1
14863 cat conftest.err >&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } &&
14866 { ac_try='test -z "$ac_c_werror_flag"
14867 || test ! -s conftest.err'
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14870 ac_status=$?
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; } &&
14873 { ac_try='test -s conftest.$ac_objext'
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14876 ac_status=$?
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14880 cat >>confdefs.h <<\_ACEOF
14881 #define HAVE_CHROOT 1
14882 _ACEOF
14884 echo "$as_me:$LINENO: result: yes" >&5
14885 echo "${ECHO_T}yes" >&6
14886 else
14887 echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14890 echo "$as_me:$LINENO: result: no" >&5
14891 echo "${ECHO_T}no" >&6
14894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14895 echo "$as_me:$LINENO: checking for link" >&5
14896 echo $ECHO_N "checking for link... $ECHO_C" >&6
14897 cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h. */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14903 #include <unistd.h>
14905 main ()
14907 void *x=link
14909 return 0;
14911 _ACEOF
14912 rm -f conftest.$ac_objext
14913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14914 (eval $ac_compile) 2>conftest.er1
14915 ac_status=$?
14916 grep -v '^ *+' conftest.er1 >conftest.err
14917 rm -f conftest.er1
14918 cat conftest.err >&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } &&
14921 { ac_try='test -z "$ac_c_werror_flag"
14922 || test ! -s conftest.err'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; } &&
14928 { ac_try='test -s conftest.$ac_objext'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; }; then
14935 cat >>confdefs.h <<\_ACEOF
14936 #define HAVE_LINK 1
14937 _ACEOF
14939 echo "$as_me:$LINENO: result: yes" >&5
14940 echo "${ECHO_T}yes" >&6
14941 else
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14945 echo "$as_me:$LINENO: result: no" >&5
14946 echo "${ECHO_T}no" >&6
14949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14950 echo "$as_me:$LINENO: checking for symlink" >&5
14951 echo $ECHO_N "checking for symlink... $ECHO_C" >&6
14952 cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h. */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 #include <unistd.h>
14960 main ()
14962 void *x=symlink
14964 return 0;
14966 _ACEOF
14967 rm -f conftest.$ac_objext
14968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14969 (eval $ac_compile) 2>conftest.er1
14970 ac_status=$?
14971 grep -v '^ *+' conftest.er1 >conftest.err
14972 rm -f conftest.er1
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } &&
14976 { ac_try='test -z "$ac_c_werror_flag"
14977 || test ! -s conftest.err'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14980 ac_status=$?
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; } &&
14983 { ac_try='test -s conftest.$ac_objext'
14984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985 (eval $ac_try) 2>&5
14986 ac_status=$?
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); }; }; then
14990 cat >>confdefs.h <<\_ACEOF
14991 #define HAVE_SYMLINK 1
14992 _ACEOF
14994 echo "$as_me:$LINENO: result: yes" >&5
14995 echo "${ECHO_T}yes" >&6
14996 else
14997 echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
15000 echo "$as_me:$LINENO: result: no" >&5
15001 echo "${ECHO_T}no" >&6
15004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15005 echo "$as_me:$LINENO: checking for fchdir" >&5
15006 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
15007 cat >conftest.$ac_ext <<_ACEOF
15008 /* confdefs.h. */
15009 _ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15013 #include <unistd.h>
15015 main ()
15017 void *x=fchdir
15019 return 0;
15021 _ACEOF
15022 rm -f conftest.$ac_objext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15024 (eval $ac_compile) 2>conftest.er1
15025 ac_status=$?
15026 grep -v '^ *+' conftest.er1 >conftest.err
15027 rm -f conftest.er1
15028 cat conftest.err >&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } &&
15031 { ac_try='test -z "$ac_c_werror_flag"
15032 || test ! -s conftest.err'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; } &&
15038 { ac_try='test -s conftest.$ac_objext'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15045 cat >>confdefs.h <<\_ACEOF
15046 #define HAVE_FCHDIR 1
15047 _ACEOF
15049 echo "$as_me:$LINENO: result: yes" >&5
15050 echo "${ECHO_T}yes" >&6
15051 else
15052 echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15055 echo "$as_me:$LINENO: result: no" >&5
15056 echo "${ECHO_T}no" >&6
15059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15060 echo "$as_me:$LINENO: checking for fsync" >&5
15061 echo $ECHO_N "checking for fsync... $ECHO_C" >&6
15062 cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h. */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15068 #include <unistd.h>
15070 main ()
15072 void *x=fsync
15074 return 0;
15076 _ACEOF
15077 rm -f conftest.$ac_objext
15078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15079 (eval $ac_compile) 2>conftest.er1
15080 ac_status=$?
15081 grep -v '^ *+' conftest.er1 >conftest.err
15082 rm -f conftest.er1
15083 cat conftest.err >&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } &&
15086 { ac_try='test -z "$ac_c_werror_flag"
15087 || test ! -s conftest.err'
15088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15089 (eval $ac_try) 2>&5
15090 ac_status=$?
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); }; } &&
15093 { ac_try='test -s conftest.$ac_objext'
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; }; then
15100 cat >>confdefs.h <<\_ACEOF
15101 #define HAVE_FSYNC 1
15102 _ACEOF
15104 echo "$as_me:$LINENO: result: yes" >&5
15105 echo "${ECHO_T}yes" >&6
15106 else
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15110 echo "$as_me:$LINENO: result: no" >&5
15111 echo "${ECHO_T}no" >&6
15114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15115 echo "$as_me:$LINENO: checking for fdatasync" >&5
15116 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
15117 cat >conftest.$ac_ext <<_ACEOF
15118 /* confdefs.h. */
15119 _ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h. */
15123 #include <unistd.h>
15125 main ()
15127 void *x=fdatasync
15129 return 0;
15131 _ACEOF
15132 rm -f conftest.$ac_objext
15133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15134 (eval $ac_compile) 2>conftest.er1
15135 ac_status=$?
15136 grep -v '^ *+' conftest.er1 >conftest.err
15137 rm -f conftest.er1
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } &&
15141 { ac_try='test -z "$ac_c_werror_flag"
15142 || test ! -s conftest.err'
15143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144 (eval $ac_try) 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; } &&
15148 { ac_try='test -s conftest.$ac_objext'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; }; then
15155 cat >>confdefs.h <<\_ACEOF
15156 #define HAVE_FDATASYNC 1
15157 _ACEOF
15159 echo "$as_me:$LINENO: result: yes" >&5
15160 echo "${ECHO_T}yes" >&6
15161 else
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 echo "$as_me:$LINENO: result: no" >&5
15166 echo "${ECHO_T}no" >&6
15169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15171 # On some systems (eg. FreeBSD 5), we would find a definition of the
15172 # functions ctermid_r, setgroups in the library, but no prototype
15173 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
15174 # address to avoid compiler warnings and potential miscompilations
15175 # because of the missing prototypes.
15177 echo "$as_me:$LINENO: checking for ctermid_r" >&5
15178 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6
15179 cat >conftest.$ac_ext <<_ACEOF
15180 /* confdefs.h. */
15181 _ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h. */
15186 #include "confdefs.h"
15187 #include <stdio.h>
15190 main ()
15192 void* p = ctermid_r
15194 return 0;
15196 _ACEOF
15197 rm -f conftest.$ac_objext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15199 (eval $ac_compile) 2>conftest.er1
15200 ac_status=$?
15201 grep -v '^ *+' conftest.er1 >conftest.err
15202 rm -f conftest.er1
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
15206 { ac_try='test -z "$ac_c_werror_flag"
15207 || test ! -s conftest.err'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15210 ac_status=$?
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; } &&
15213 { ac_try='test -s conftest.$ac_objext'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15220 cat >>confdefs.h <<\_ACEOF
15221 #define HAVE_CTERMID_R 1
15222 _ACEOF
15224 echo "$as_me:$LINENO: result: yes" >&5
15225 echo "${ECHO_T}yes" >&6
15226 else
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15230 echo "$as_me:$LINENO: result: no" >&5
15231 echo "${ECHO_T}no" >&6
15234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15236 echo "$as_me:$LINENO: checking for flock" >&5
15237 echo $ECHO_N "checking for flock... $ECHO_C" >&6
15238 cat >conftest.$ac_ext <<_ACEOF
15239 /* confdefs.h. */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15245 #include "confdefs.h"
15246 #include <sys/file.h>
15249 main ()
15251 void* p = flock
15253 return 0;
15255 _ACEOF
15256 rm -f conftest.$ac_objext
15257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15258 (eval $ac_compile) 2>conftest.er1
15259 ac_status=$?
15260 grep -v '^ *+' conftest.er1 >conftest.err
15261 rm -f conftest.er1
15262 cat conftest.err >&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); } &&
15265 { ac_try='test -z "$ac_c_werror_flag"
15266 || test ! -s conftest.err'
15267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268 (eval $ac_try) 2>&5
15269 ac_status=$?
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; } &&
15272 { ac_try='test -s conftest.$ac_objext'
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15275 ac_status=$?
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; }; then
15279 cat >>confdefs.h <<\_ACEOF
15280 #define HAVE_FLOCK 1
15281 _ACEOF
15283 echo "$as_me:$LINENO: result: yes" >&5
15284 echo "${ECHO_T}yes" >&6
15285 else
15286 echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15289 echo "$as_me:$LINENO: result: no" >&5
15290 echo "${ECHO_T}no" >&6
15293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15295 echo "$as_me:$LINENO: checking for getpagesize" >&5
15296 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6
15297 cat >conftest.$ac_ext <<_ACEOF
15298 /* confdefs.h. */
15299 _ACEOF
15300 cat confdefs.h >>conftest.$ac_ext
15301 cat >>conftest.$ac_ext <<_ACEOF
15302 /* end confdefs.h. */
15304 #include "confdefs.h"
15305 #include <unistd.h>
15308 main ()
15310 void* p = getpagesize
15312 return 0;
15314 _ACEOF
15315 rm -f conftest.$ac_objext
15316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15317 (eval $ac_compile) 2>conftest.er1
15318 ac_status=$?
15319 grep -v '^ *+' conftest.er1 >conftest.err
15320 rm -f conftest.er1
15321 cat conftest.err >&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } &&
15324 { ac_try='test -z "$ac_c_werror_flag"
15325 || test ! -s conftest.err'
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; } &&
15331 { ac_try='test -s conftest.$ac_objext'
15332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333 (eval $ac_try) 2>&5
15334 ac_status=$?
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; }; then
15338 cat >>confdefs.h <<\_ACEOF
15339 #define HAVE_GETPAGESIZE 1
15340 _ACEOF
15342 echo "$as_me:$LINENO: result: yes" >&5
15343 echo "${ECHO_T}yes" >&6
15344 else
15345 echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15348 echo "$as_me:$LINENO: result: no" >&5
15349 echo "${ECHO_T}no" >&6
15352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15354 for ac_prog in true
15356 # Extract the first word of "$ac_prog", so it can be a program name with args.
15357 set dummy $ac_prog; ac_word=$2
15358 echo "$as_me:$LINENO: checking for $ac_word" >&5
15359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15360 if test "${ac_cv_prog_TRUE+set}" = set; then
15361 echo $ECHO_N "(cached) $ECHO_C" >&6
15362 else
15363 if test -n "$TRUE"; then
15364 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
15365 else
15366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15367 for as_dir in $PATH
15369 IFS=$as_save_IFS
15370 test -z "$as_dir" && as_dir=.
15371 for ac_exec_ext in '' $ac_executable_extensions; do
15372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15373 ac_cv_prog_TRUE="$ac_prog"
15374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15375 break 2
15377 done
15378 done
15382 TRUE=$ac_cv_prog_TRUE
15383 if test -n "$TRUE"; then
15384 echo "$as_me:$LINENO: result: $TRUE" >&5
15385 echo "${ECHO_T}$TRUE" >&6
15386 else
15387 echo "$as_me:$LINENO: result: no" >&5
15388 echo "${ECHO_T}no" >&6
15391 test -n "$TRUE" && break
15392 done
15393 test -n "$TRUE" || TRUE="/bin/true"
15396 echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
15397 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6
15398 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
15399 echo $ECHO_N "(cached) $ECHO_C" >&6
15400 else
15401 ac_check_lib_save_LIBS=$LIBS
15402 LIBS="-lc $LIBS"
15403 cat >conftest.$ac_ext <<_ACEOF
15404 /* confdefs.h. */
15405 _ACEOF
15406 cat confdefs.h >>conftest.$ac_ext
15407 cat >>conftest.$ac_ext <<_ACEOF
15408 /* end confdefs.h. */
15410 /* Override any gcc2 internal prototype to avoid an error. */
15411 #ifdef __cplusplus
15412 extern "C"
15413 #endif
15414 /* We use char because int might match the return type of a gcc2
15415 builtin and then its argument prototype would still apply. */
15416 char inet_aton ();
15418 main ()
15420 inet_aton ();
15422 return 0;
15424 _ACEOF
15425 rm -f conftest.$ac_objext conftest$ac_exeext
15426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15427 (eval $ac_link) 2>conftest.er1
15428 ac_status=$?
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
15434 { ac_try='test -z "$ac_c_werror_flag"
15435 || test ! -s conftest.err'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } &&
15441 { ac_try='test -s conftest$ac_exeext'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447 ac_cv_lib_c_inet_aton=yes
15448 else
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15452 ac_cv_lib_c_inet_aton=no
15454 rm -f conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15456 LIBS=$ac_check_lib_save_LIBS
15458 echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
15459 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6
15460 if test $ac_cv_lib_c_inet_aton = yes; then
15461 $ac_cv_prog_TRUE
15462 else
15464 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
15465 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
15466 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
15467 echo $ECHO_N "(cached) $ECHO_C" >&6
15468 else
15469 ac_check_lib_save_LIBS=$LIBS
15470 LIBS="-lresolv $LIBS"
15471 cat >conftest.$ac_ext <<_ACEOF
15472 /* confdefs.h. */
15473 _ACEOF
15474 cat confdefs.h >>conftest.$ac_ext
15475 cat >>conftest.$ac_ext <<_ACEOF
15476 /* end confdefs.h. */
15478 /* Override any gcc2 internal prototype to avoid an error. */
15479 #ifdef __cplusplus
15480 extern "C"
15481 #endif
15482 /* We use char because int might match the return type of a gcc2
15483 builtin and then its argument prototype would still apply. */
15484 char inet_aton ();
15486 main ()
15488 inet_aton ();
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 ac_cv_lib_resolv_inet_aton=yes
15516 else
15517 echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15520 ac_cv_lib_resolv_inet_aton=no
15522 rm -f conftest.err conftest.$ac_objext \
15523 conftest$ac_exeext conftest.$ac_ext
15524 LIBS=$ac_check_lib_save_LIBS
15526 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
15527 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
15528 if test $ac_cv_lib_resolv_inet_aton = yes; then
15529 cat >>confdefs.h <<_ACEOF
15530 #define HAVE_LIBRESOLV 1
15531 _ACEOF
15533 LIBS="-lresolv $LIBS"
15541 case $ac_sys_system/$ac_sys_release in
15542 Darwin/*)
15543 _CUR_CFLAGS="${CFLAGS}"
15544 _CUR_LDFLAGS="${LDFLAGS}"
15545 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
15546 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
15548 esac
15550 echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
15551 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6
15552 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
15553 echo $ECHO_N "(cached) $ECHO_C" >&6
15554 else
15555 ac_check_lib_save_LIBS=$LIBS
15556 LIBS="-lz $LIBS"
15557 cat >conftest.$ac_ext <<_ACEOF
15558 /* confdefs.h. */
15559 _ACEOF
15560 cat confdefs.h >>conftest.$ac_ext
15561 cat >>conftest.$ac_ext <<_ACEOF
15562 /* end confdefs.h. */
15564 /* Override any gcc2 internal prototype to avoid an error. */
15565 #ifdef __cplusplus
15566 extern "C"
15567 #endif
15568 /* We use char because int might match the return type of a gcc2
15569 builtin and then its argument prototype would still apply. */
15570 char inflateCopy ();
15572 main ()
15574 inflateCopy ();
15576 return 0;
15578 _ACEOF
15579 rm -f conftest.$ac_objext conftest$ac_exeext
15580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15581 (eval $ac_link) 2>conftest.er1
15582 ac_status=$?
15583 grep -v '^ *+' conftest.er1 >conftest.err
15584 rm -f conftest.er1
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
15588 { ac_try='test -z "$ac_c_werror_flag"
15589 || test ! -s conftest.err'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; } &&
15595 { ac_try='test -s conftest$ac_exeext'
15596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597 (eval $ac_try) 2>&5
15598 ac_status=$?
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; }; then
15601 ac_cv_lib_z_inflateCopy=yes
15602 else
15603 echo "$as_me: failed program was:" >&5
15604 sed 's/^/| /' conftest.$ac_ext >&5
15606 ac_cv_lib_z_inflateCopy=no
15608 rm -f conftest.err conftest.$ac_objext \
15609 conftest$ac_exeext conftest.$ac_ext
15610 LIBS=$ac_check_lib_save_LIBS
15612 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15613 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6
15614 if test $ac_cv_lib_z_inflateCopy = yes; then
15616 cat >>confdefs.h <<\_ACEOF
15617 #define HAVE_ZLIB_COPY 1
15618 _ACEOF
15623 case $ac_sys_system/$ac_sys_release in
15624 Darwin/*)
15625 CFLAGS="${_CUR_CFLAGS}"
15626 LDFLAGS="${_CUR_LDFLAGS}"
15628 esac
15630 echo "$as_me:$LINENO: checking for hstrerror" >&5
15631 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
15632 cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h. */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15639 #include "confdefs.h"
15640 #include <netdb.h>
15643 main ()
15645 void* p = hstrerror; hstrerror(0)
15647 return 0;
15649 _ACEOF
15650 rm -f conftest.$ac_objext conftest$ac_exeext
15651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15652 (eval $ac_link) 2>conftest.er1
15653 ac_status=$?
15654 grep -v '^ *+' conftest.er1 >conftest.err
15655 rm -f conftest.er1
15656 cat conftest.err >&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } &&
15659 { ac_try='test -z "$ac_c_werror_flag"
15660 || test ! -s conftest.err'
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15663 ac_status=$?
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; } &&
15666 { ac_try='test -s conftest$ac_exeext'
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15669 ac_status=$?
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; }; then
15673 cat >>confdefs.h <<\_ACEOF
15674 #define HAVE_HSTRERROR 1
15675 _ACEOF
15677 echo "$as_me:$LINENO: result: yes" >&5
15678 echo "${ECHO_T}yes" >&6
15679 else
15680 echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15683 echo "$as_me:$LINENO: result: no" >&5
15684 echo "${ECHO_T}no" >&6
15687 rm -f conftest.err conftest.$ac_objext \
15688 conftest$ac_exeext conftest.$ac_ext
15690 echo "$as_me:$LINENO: checking for inet_aton" >&5
15691 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
15692 cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h. */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15699 #include "confdefs.h"
15700 #include <sys/types.h>
15701 #include <sys/socket.h>
15702 #include <netinet/in.h>
15703 #include <arpa/inet.h>
15706 main ()
15708 void* p = inet_aton;inet_aton(0,0)
15710 return 0;
15712 _ACEOF
15713 rm -f conftest.$ac_objext conftest$ac_exeext
15714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15715 (eval $ac_link) 2>conftest.er1
15716 ac_status=$?
15717 grep -v '^ *+' conftest.er1 >conftest.err
15718 rm -f conftest.er1
15719 cat conftest.err >&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } &&
15722 { ac_try='test -z "$ac_c_werror_flag"
15723 || test ! -s conftest.err'
15724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15726 ac_status=$?
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; } &&
15729 { ac_try='test -s conftest$ac_exeext'
15730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731 (eval $ac_try) 2>&5
15732 ac_status=$?
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; }; then
15736 cat >>confdefs.h <<\_ACEOF
15737 #define HAVE_INET_ATON 1
15738 _ACEOF
15740 echo "$as_me:$LINENO: result: yes" >&5
15741 echo "${ECHO_T}yes" >&6
15742 else
15743 echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15746 echo "$as_me:$LINENO: result: no" >&5
15747 echo "${ECHO_T}no" >&6
15750 rm -f conftest.err conftest.$ac_objext \
15751 conftest$ac_exeext conftest.$ac_ext
15753 echo "$as_me:$LINENO: checking for inet_pton" >&5
15754 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
15755 cat >conftest.$ac_ext <<_ACEOF
15756 /* confdefs.h. */
15757 _ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15762 #include "confdefs.h"
15763 #include <sys/types.h>
15764 #include <sys/socket.h>
15765 #include <netinet/in.h>
15766 #include <arpa/inet.h>
15769 main ()
15771 void* p = inet_pton
15773 return 0;
15775 _ACEOF
15776 rm -f conftest.$ac_objext
15777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15778 (eval $ac_compile) 2>conftest.er1
15779 ac_status=$?
15780 grep -v '^ *+' conftest.er1 >conftest.err
15781 rm -f conftest.er1
15782 cat conftest.err >&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } &&
15785 { ac_try='test -z "$ac_c_werror_flag"
15786 || test ! -s conftest.err'
15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15789 ac_status=$?
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; } &&
15792 { ac_try='test -s conftest.$ac_objext'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }; then
15799 cat >>confdefs.h <<\_ACEOF
15800 #define HAVE_INET_PTON 1
15801 _ACEOF
15803 echo "$as_me:$LINENO: result: yes" >&5
15804 echo "${ECHO_T}yes" >&6
15805 else
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 echo "$as_me:$LINENO: result: no" >&5
15810 echo "${ECHO_T}no" >&6
15813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15815 # On some systems, setgroups is in unistd.h, on others, in grp.h
15816 echo "$as_me:$LINENO: checking for setgroups" >&5
15817 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
15818 cat >conftest.$ac_ext <<_ACEOF
15819 /* confdefs.h. */
15820 _ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15825 #include "confdefs.h"
15826 #include <unistd.h>
15827 #ifdef HAVE_GRP_H
15828 #include <grp.h>
15829 #endif
15832 main ()
15834 void* p = setgroups
15836 return 0;
15838 _ACEOF
15839 rm -f conftest.$ac_objext
15840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15841 (eval $ac_compile) 2>conftest.er1
15842 ac_status=$?
15843 grep -v '^ *+' conftest.er1 >conftest.err
15844 rm -f conftest.er1
15845 cat conftest.err >&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } &&
15848 { ac_try='test -z "$ac_c_werror_flag"
15849 || test ! -s conftest.err'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; } &&
15855 { ac_try='test -s conftest.$ac_objext'
15856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857 (eval $ac_try) 2>&5
15858 ac_status=$?
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15862 cat >>confdefs.h <<\_ACEOF
15863 #define HAVE_SETGROUPS 1
15864 _ACEOF
15866 echo "$as_me:$LINENO: result: yes" >&5
15867 echo "${ECHO_T}yes" >&6
15868 else
15869 echo "$as_me: failed program was:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15872 echo "$as_me:$LINENO: result: no" >&5
15873 echo "${ECHO_T}no" >&6
15876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15878 # check for openpty and forkpty
15881 for ac_func in openpty
15883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15884 echo "$as_me:$LINENO: checking for $ac_func" >&5
15885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15886 if eval "test \"\${$as_ac_var+set}\" = set"; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15888 else
15889 cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h. */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15897 #define $ac_func innocuous_$ac_func
15899 /* System header to define __stub macros and hopefully few prototypes,
15900 which can conflict with char $ac_func (); below.
15901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15902 <limits.h> exists even on freestanding compilers. */
15904 #ifdef __STDC__
15905 # include <limits.h>
15906 #else
15907 # include <assert.h>
15908 #endif
15910 #undef $ac_func
15912 /* Override any gcc2 internal prototype to avoid an error. */
15913 #ifdef __cplusplus
15914 extern "C"
15916 #endif
15917 /* We use char because int might match the return type of a gcc2
15918 builtin and then its argument prototype would still apply. */
15919 char $ac_func ();
15920 /* The GNU C library defines this for functions which it implements
15921 to always fail with ENOSYS. Some functions are actually named
15922 something starting with __ and the normal name is an alias. */
15923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15924 choke me
15925 #else
15926 char (*f) () = $ac_func;
15927 #endif
15928 #ifdef __cplusplus
15930 #endif
15933 main ()
15935 return f != $ac_func;
15937 return 0;
15939 _ACEOF
15940 rm -f conftest.$ac_objext conftest$ac_exeext
15941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15942 (eval $ac_link) 2>conftest.er1
15943 ac_status=$?
15944 grep -v '^ *+' conftest.er1 >conftest.err
15945 rm -f conftest.er1
15946 cat conftest.err >&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
15949 { ac_try='test -z "$ac_c_werror_flag"
15950 || test ! -s conftest.err'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15953 ac_status=$?
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; } &&
15956 { ac_try='test -s conftest$ac_exeext'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15959 ac_status=$?
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15962 eval "$as_ac_var=yes"
15963 else
15964 echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15967 eval "$as_ac_var=no"
15969 rm -f conftest.err conftest.$ac_objext \
15970 conftest$ac_exeext conftest.$ac_ext
15972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15974 if test `eval echo '${'$as_ac_var'}'` = yes; then
15975 cat >>confdefs.h <<_ACEOF
15976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15977 _ACEOF
15979 else
15980 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15981 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15982 if test "${ac_cv_lib_util_openpty+set}" = set; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15984 else
15985 ac_check_lib_save_LIBS=$LIBS
15986 LIBS="-lutil $LIBS"
15987 cat >conftest.$ac_ext <<_ACEOF
15988 /* confdefs.h. */
15989 _ACEOF
15990 cat confdefs.h >>conftest.$ac_ext
15991 cat >>conftest.$ac_ext <<_ACEOF
15992 /* end confdefs.h. */
15994 /* Override any gcc2 internal prototype to avoid an error. */
15995 #ifdef __cplusplus
15996 extern "C"
15997 #endif
15998 /* We use char because int might match the return type of a gcc2
15999 builtin and then its argument prototype would still apply. */
16000 char openpty ();
16002 main ()
16004 openpty ();
16006 return 0;
16008 _ACEOF
16009 rm -f conftest.$ac_objext conftest$ac_exeext
16010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16011 (eval $ac_link) 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } &&
16018 { ac_try='test -z "$ac_c_werror_flag"
16019 || test ! -s conftest.err'
16020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021 (eval $ac_try) 2>&5
16022 ac_status=$?
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; } &&
16025 { ac_try='test -s conftest$ac_exeext'
16026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027 (eval $ac_try) 2>&5
16028 ac_status=$?
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; }; then
16031 ac_cv_lib_util_openpty=yes
16032 else
16033 echo "$as_me: failed program was:" >&5
16034 sed 's/^/| /' conftest.$ac_ext >&5
16036 ac_cv_lib_util_openpty=no
16038 rm -f conftest.err conftest.$ac_objext \
16039 conftest$ac_exeext conftest.$ac_ext
16040 LIBS=$ac_check_lib_save_LIBS
16042 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
16043 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
16044 if test $ac_cv_lib_util_openpty = yes; then
16045 cat >>confdefs.h <<\_ACEOF
16046 #define HAVE_OPENPTY 1
16047 _ACEOF
16048 LIBS="$LIBS -lutil"
16049 else
16050 echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
16051 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
16052 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6
16054 else
16055 ac_check_lib_save_LIBS=$LIBS
16056 LIBS="-lbsd $LIBS"
16057 cat >conftest.$ac_ext <<_ACEOF
16058 /* confdefs.h. */
16059 _ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16064 /* Override any gcc2 internal prototype to avoid an error. */
16065 #ifdef __cplusplus
16066 extern "C"
16067 #endif
16068 /* We use char because int might match the return type of a gcc2
16069 builtin and then its argument prototype would still apply. */
16070 char openpty ();
16072 main ()
16074 openpty ();
16076 return 0;
16078 _ACEOF
16079 rm -f conftest.$ac_objext conftest$ac_exeext
16080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16081 (eval $ac_link) 2>conftest.er1
16082 ac_status=$?
16083 grep -v '^ *+' conftest.er1 >conftest.err
16084 rm -f conftest.er1
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } &&
16088 { ac_try='test -z "$ac_c_werror_flag"
16089 || test ! -s conftest.err'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16092 ac_status=$?
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; } &&
16095 { ac_try='test -s conftest$ac_exeext'
16096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16097 (eval $ac_try) 2>&5
16098 ac_status=$?
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; }; then
16101 ac_cv_lib_bsd_openpty=yes
16102 else
16103 echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16106 ac_cv_lib_bsd_openpty=no
16108 rm -f conftest.err conftest.$ac_objext \
16109 conftest$ac_exeext conftest.$ac_ext
16110 LIBS=$ac_check_lib_save_LIBS
16112 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
16113 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
16114 if test $ac_cv_lib_bsd_openpty = yes; then
16115 cat >>confdefs.h <<\_ACEOF
16116 #define HAVE_OPENPTY 1
16117 _ACEOF
16118 LIBS="$LIBS -lbsd"
16126 done
16129 for ac_func in forkpty
16131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16132 echo "$as_me:$LINENO: checking for $ac_func" >&5
16133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16134 if eval "test \"\${$as_ac_var+set}\" = set"; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16136 else
16137 cat >conftest.$ac_ext <<_ACEOF
16138 /* confdefs.h. */
16139 _ACEOF
16140 cat confdefs.h >>conftest.$ac_ext
16141 cat >>conftest.$ac_ext <<_ACEOF
16142 /* end confdefs.h. */
16143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16145 #define $ac_func innocuous_$ac_func
16147 /* System header to define __stub macros and hopefully few prototypes,
16148 which can conflict with char $ac_func (); below.
16149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16150 <limits.h> exists even on freestanding compilers. */
16152 #ifdef __STDC__
16153 # include <limits.h>
16154 #else
16155 # include <assert.h>
16156 #endif
16158 #undef $ac_func
16160 /* Override any gcc2 internal prototype to avoid an error. */
16161 #ifdef __cplusplus
16162 extern "C"
16164 #endif
16165 /* We use char because int might match the return type of a gcc2
16166 builtin and then its argument prototype would still apply. */
16167 char $ac_func ();
16168 /* The GNU C library defines this for functions which it implements
16169 to always fail with ENOSYS. Some functions are actually named
16170 something starting with __ and the normal name is an alias. */
16171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16172 choke me
16173 #else
16174 char (*f) () = $ac_func;
16175 #endif
16176 #ifdef __cplusplus
16178 #endif
16181 main ()
16183 return f != $ac_func;
16185 return 0;
16187 _ACEOF
16188 rm -f conftest.$ac_objext conftest$ac_exeext
16189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16190 (eval $ac_link) 2>conftest.er1
16191 ac_status=$?
16192 grep -v '^ *+' conftest.er1 >conftest.err
16193 rm -f conftest.er1
16194 cat conftest.err >&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } &&
16197 { ac_try='test -z "$ac_c_werror_flag"
16198 || test ! -s conftest.err'
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try='test -s conftest$ac_exeext'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 eval "$as_ac_var=yes"
16211 else
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16215 eval "$as_ac_var=no"
16217 rm -f conftest.err conftest.$ac_objext \
16218 conftest$ac_exeext conftest.$ac_ext
16220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16222 if test `eval echo '${'$as_ac_var'}'` = yes; then
16223 cat >>confdefs.h <<_ACEOF
16224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16225 _ACEOF
16227 else
16228 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
16229 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
16230 if test "${ac_cv_lib_util_forkpty+set}" = set; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16232 else
16233 ac_check_lib_save_LIBS=$LIBS
16234 LIBS="-lutil $LIBS"
16235 cat >conftest.$ac_ext <<_ACEOF
16236 /* confdefs.h. */
16237 _ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16242 /* Override any gcc2 internal prototype to avoid an error. */
16243 #ifdef __cplusplus
16244 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 forkpty ();
16250 main ()
16252 forkpty ();
16254 return 0;
16256 _ACEOF
16257 rm -f conftest.$ac_objext conftest$ac_exeext
16258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16259 (eval $ac_link) 2>conftest.er1
16260 ac_status=$?
16261 grep -v '^ *+' conftest.er1 >conftest.err
16262 rm -f conftest.er1
16263 cat conftest.err >&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } &&
16266 { ac_try='test -z "$ac_c_werror_flag"
16267 || test ! -s conftest.err'
16268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269 (eval $ac_try) 2>&5
16270 ac_status=$?
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; } &&
16273 { ac_try='test -s conftest$ac_exeext'
16274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275 (eval $ac_try) 2>&5
16276 ac_status=$?
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; }; then
16279 ac_cv_lib_util_forkpty=yes
16280 else
16281 echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16284 ac_cv_lib_util_forkpty=no
16286 rm -f conftest.err conftest.$ac_objext \
16287 conftest$ac_exeext conftest.$ac_ext
16288 LIBS=$ac_check_lib_save_LIBS
16290 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
16291 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
16292 if test $ac_cv_lib_util_forkpty = yes; then
16293 cat >>confdefs.h <<\_ACEOF
16294 #define HAVE_FORKPTY 1
16295 _ACEOF
16296 LIBS="$LIBS -lutil"
16297 else
16298 echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
16299 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
16300 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16302 else
16303 ac_check_lib_save_LIBS=$LIBS
16304 LIBS="-lbsd $LIBS"
16305 cat >conftest.$ac_ext <<_ACEOF
16306 /* confdefs.h. */
16307 _ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16312 /* Override any gcc2 internal prototype to avoid an error. */
16313 #ifdef __cplusplus
16314 extern "C"
16315 #endif
16316 /* We use char because int might match the return type of a gcc2
16317 builtin and then its argument prototype would still apply. */
16318 char forkpty ();
16320 main ()
16322 forkpty ();
16324 return 0;
16326 _ACEOF
16327 rm -f conftest.$ac_objext conftest$ac_exeext
16328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16329 (eval $ac_link) 2>conftest.er1
16330 ac_status=$?
16331 grep -v '^ *+' conftest.er1 >conftest.err
16332 rm -f conftest.er1
16333 cat conftest.err >&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } &&
16336 { ac_try='test -z "$ac_c_werror_flag"
16337 || test ! -s conftest.err'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; } &&
16343 { ac_try='test -s conftest$ac_exeext'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16346 ac_status=$?
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
16349 ac_cv_lib_bsd_forkpty=yes
16350 else
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16354 ac_cv_lib_bsd_forkpty=no
16356 rm -f conftest.err conftest.$ac_objext \
16357 conftest$ac_exeext conftest.$ac_ext
16358 LIBS=$ac_check_lib_save_LIBS
16360 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
16361 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
16362 if test $ac_cv_lib_bsd_forkpty = yes; then
16363 cat >>confdefs.h <<\_ACEOF
16364 #define HAVE_FORKPTY 1
16365 _ACEOF
16366 LIBS="$LIBS -lbsd"
16374 done
16377 # check for long file support functions
16384 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
16386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16387 echo "$as_me:$LINENO: checking for $ac_func" >&5
16388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16389 if eval "test \"\${$as_ac_var+set}\" = set"; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16391 else
16392 cat >conftest.$ac_ext <<_ACEOF
16393 /* confdefs.h. */
16394 _ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h. */
16398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16400 #define $ac_func innocuous_$ac_func
16402 /* System header to define __stub macros and hopefully few prototypes,
16403 which can conflict with char $ac_func (); below.
16404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16405 <limits.h> exists even on freestanding compilers. */
16407 #ifdef __STDC__
16408 # include <limits.h>
16409 #else
16410 # include <assert.h>
16411 #endif
16413 #undef $ac_func
16415 /* Override any gcc2 internal prototype to avoid an error. */
16416 #ifdef __cplusplus
16417 extern "C"
16419 #endif
16420 /* We use char because int might match the return type of a gcc2
16421 builtin and then its argument prototype would still apply. */
16422 char $ac_func ();
16423 /* The GNU C library defines this for functions which it implements
16424 to always fail with ENOSYS. Some functions are actually named
16425 something starting with __ and the normal name is an alias. */
16426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16427 choke me
16428 #else
16429 char (*f) () = $ac_func;
16430 #endif
16431 #ifdef __cplusplus
16433 #endif
16436 main ()
16438 return f != $ac_func;
16440 return 0;
16442 _ACEOF
16443 rm -f conftest.$ac_objext conftest$ac_exeext
16444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16445 (eval $ac_link) 2>conftest.er1
16446 ac_status=$?
16447 grep -v '^ *+' conftest.er1 >conftest.err
16448 rm -f conftest.er1
16449 cat conftest.err >&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } &&
16452 { ac_try='test -z "$ac_c_werror_flag"
16453 || test ! -s conftest.err'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; } &&
16459 { ac_try='test -s conftest$ac_exeext'
16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16462 ac_status=$?
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; }; then
16465 eval "$as_ac_var=yes"
16466 else
16467 echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16470 eval "$as_ac_var=no"
16472 rm -f conftest.err conftest.$ac_objext \
16473 conftest$ac_exeext conftest.$ac_ext
16475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16477 if test `eval echo '${'$as_ac_var'}'` = yes; then
16478 cat >>confdefs.h <<_ACEOF
16479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16480 _ACEOF
16483 done
16491 for ac_func in dup2 getcwd strdup strerror memmove
16493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16494 echo "$as_me:$LINENO: checking for $ac_func" >&5
16495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16496 if eval "test \"\${$as_ac_var+set}\" = set"; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 else
16499 cat >conftest.$ac_ext <<_ACEOF
16500 /* confdefs.h. */
16501 _ACEOF
16502 cat confdefs.h >>conftest.$ac_ext
16503 cat >>conftest.$ac_ext <<_ACEOF
16504 /* end confdefs.h. */
16505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16507 #define $ac_func innocuous_$ac_func
16509 /* System header to define __stub macros and hopefully few prototypes,
16510 which can conflict with char $ac_func (); below.
16511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16512 <limits.h> exists even on freestanding compilers. */
16514 #ifdef __STDC__
16515 # include <limits.h>
16516 #else
16517 # include <assert.h>
16518 #endif
16520 #undef $ac_func
16522 /* Override any gcc2 internal prototype to avoid an error. */
16523 #ifdef __cplusplus
16524 extern "C"
16526 #endif
16527 /* We use char because int might match the return type of a gcc2
16528 builtin and then its argument prototype would still apply. */
16529 char $ac_func ();
16530 /* The GNU C library defines this for functions which it implements
16531 to always fail with ENOSYS. Some functions are actually named
16532 something starting with __ and the normal name is an alias. */
16533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16534 choke me
16535 #else
16536 char (*f) () = $ac_func;
16537 #endif
16538 #ifdef __cplusplus
16540 #endif
16543 main ()
16545 return f != $ac_func;
16547 return 0;
16549 _ACEOF
16550 rm -f conftest.$ac_objext conftest$ac_exeext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16552 (eval $ac_link) 2>conftest.er1
16553 ac_status=$?
16554 grep -v '^ *+' conftest.er1 >conftest.err
16555 rm -f conftest.er1
16556 cat conftest.err >&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } &&
16559 { ac_try='test -z "$ac_c_werror_flag"
16560 || test ! -s conftest.err'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; } &&
16566 { ac_try='test -s conftest$ac_exeext'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 eval "$as_ac_var=yes"
16573 else
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16577 eval "$as_ac_var=no"
16579 rm -f conftest.err conftest.$ac_objext \
16580 conftest$ac_exeext conftest.$ac_ext
16582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16584 if test `eval echo '${'$as_ac_var'}'` = yes; then
16585 cat >>confdefs.h <<_ACEOF
16586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16587 _ACEOF
16589 else
16590 case $LIBOBJS in
16591 "$ac_func.$ac_objext" | \
16592 *" $ac_func.$ac_objext" | \
16593 "$ac_func.$ac_objext "* | \
16594 *" $ac_func.$ac_objext "* ) ;;
16595 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16596 esac
16599 done
16603 for ac_func in getpgrp
16605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16606 echo "$as_me:$LINENO: checking for $ac_func" >&5
16607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16608 if eval "test \"\${$as_ac_var+set}\" = set"; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16610 else
16611 cat >conftest.$ac_ext <<_ACEOF
16612 /* confdefs.h. */
16613 _ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16619 #define $ac_func innocuous_$ac_func
16621 /* System header to define __stub macros and hopefully few prototypes,
16622 which can conflict with char $ac_func (); below.
16623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16624 <limits.h> exists even on freestanding compilers. */
16626 #ifdef __STDC__
16627 # include <limits.h>
16628 #else
16629 # include <assert.h>
16630 #endif
16632 #undef $ac_func
16634 /* Override any gcc2 internal prototype to avoid an error. */
16635 #ifdef __cplusplus
16636 extern "C"
16638 #endif
16639 /* We use char because int might match the return type of a gcc2
16640 builtin and then its argument prototype would still apply. */
16641 char $ac_func ();
16642 /* The GNU C library defines this for functions which it implements
16643 to always fail with ENOSYS. Some functions are actually named
16644 something starting with __ and the normal name is an alias. */
16645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16646 choke me
16647 #else
16648 char (*f) () = $ac_func;
16649 #endif
16650 #ifdef __cplusplus
16652 #endif
16655 main ()
16657 return f != $ac_func;
16659 return 0;
16661 _ACEOF
16662 rm -f conftest.$ac_objext conftest$ac_exeext
16663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16664 (eval $ac_link) 2>conftest.er1
16665 ac_status=$?
16666 grep -v '^ *+' conftest.er1 >conftest.err
16667 rm -f conftest.er1
16668 cat conftest.err >&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } &&
16671 { ac_try='test -z "$ac_c_werror_flag"
16672 || test ! -s conftest.err'
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16675 ac_status=$?
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; } &&
16678 { ac_try='test -s conftest$ac_exeext'
16679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680 (eval $ac_try) 2>&5
16681 ac_status=$?
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16684 eval "$as_ac_var=yes"
16685 else
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16689 eval "$as_ac_var=no"
16691 rm -f conftest.err conftest.$ac_objext \
16692 conftest$ac_exeext conftest.$ac_ext
16694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16696 if test `eval echo '${'$as_ac_var'}'` = yes; then
16697 cat >>confdefs.h <<_ACEOF
16698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16699 _ACEOF
16700 cat >conftest.$ac_ext <<_ACEOF
16701 /* confdefs.h. */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16706 #include <unistd.h>
16708 main ()
16710 getpgrp(0);
16712 return 0;
16714 _ACEOF
16715 rm -f conftest.$ac_objext
16716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16717 (eval $ac_compile) 2>conftest.er1
16718 ac_status=$?
16719 grep -v '^ *+' conftest.er1 >conftest.err
16720 rm -f conftest.er1
16721 cat conftest.err >&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } &&
16724 { ac_try='test -z "$ac_c_werror_flag"
16725 || test ! -s conftest.err'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; } &&
16731 { ac_try='test -s conftest.$ac_objext'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16734 ac_status=$?
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; }; then
16738 cat >>confdefs.h <<\_ACEOF
16739 #define GETPGRP_HAVE_ARG 1
16740 _ACEOF
16743 else
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16751 done
16754 for ac_func in setpgrp
16756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16757 echo "$as_me:$LINENO: checking for $ac_func" >&5
16758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16759 if eval "test \"\${$as_ac_var+set}\" = set"; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 else
16762 cat >conftest.$ac_ext <<_ACEOF
16763 /* confdefs.h. */
16764 _ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16770 #define $ac_func innocuous_$ac_func
16772 /* System header to define __stub macros and hopefully few prototypes,
16773 which can conflict with char $ac_func (); below.
16774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16775 <limits.h> exists even on freestanding compilers. */
16777 #ifdef __STDC__
16778 # include <limits.h>
16779 #else
16780 # include <assert.h>
16781 #endif
16783 #undef $ac_func
16785 /* Override any gcc2 internal prototype to avoid an error. */
16786 #ifdef __cplusplus
16787 extern "C"
16789 #endif
16790 /* We use char because int might match the return type of a gcc2
16791 builtin and then its argument prototype would still apply. */
16792 char $ac_func ();
16793 /* The GNU C library defines this for functions which it implements
16794 to always fail with ENOSYS. Some functions are actually named
16795 something starting with __ and the normal name is an alias. */
16796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16797 choke me
16798 #else
16799 char (*f) () = $ac_func;
16800 #endif
16801 #ifdef __cplusplus
16803 #endif
16806 main ()
16808 return f != $ac_func;
16810 return 0;
16812 _ACEOF
16813 rm -f conftest.$ac_objext conftest$ac_exeext
16814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16815 (eval $ac_link) 2>conftest.er1
16816 ac_status=$?
16817 grep -v '^ *+' conftest.er1 >conftest.err
16818 rm -f conftest.er1
16819 cat conftest.err >&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } &&
16822 { ac_try='test -z "$ac_c_werror_flag"
16823 || test ! -s conftest.err'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest$ac_exeext'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 eval "$as_ac_var=yes"
16836 else
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16840 eval "$as_ac_var=no"
16842 rm -f conftest.err conftest.$ac_objext \
16843 conftest$ac_exeext conftest.$ac_ext
16845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16847 if test `eval echo '${'$as_ac_var'}'` = yes; then
16848 cat >>confdefs.h <<_ACEOF
16849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16850 _ACEOF
16851 cat >conftest.$ac_ext <<_ACEOF
16852 /* confdefs.h. */
16853 _ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h. */
16857 #include <unistd.h>
16859 main ()
16861 setpgrp(0,0);
16863 return 0;
16865 _ACEOF
16866 rm -f conftest.$ac_objext
16867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16868 (eval $ac_compile) 2>conftest.er1
16869 ac_status=$?
16870 grep -v '^ *+' conftest.er1 >conftest.err
16871 rm -f conftest.er1
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } &&
16875 { ac_try='test -z "$ac_c_werror_flag"
16876 || test ! -s conftest.err'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; } &&
16882 { ac_try='test -s conftest.$ac_objext'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16885 ac_status=$?
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16889 cat >>confdefs.h <<\_ACEOF
16890 #define SETPGRP_HAVE_ARG 1
16891 _ACEOF
16894 else
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16902 done
16905 for ac_func in gettimeofday
16907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16908 echo "$as_me:$LINENO: checking for $ac_func" >&5
16909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16910 if eval "test \"\${$as_ac_var+set}\" = set"; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16912 else
16913 cat >conftest.$ac_ext <<_ACEOF
16914 /* confdefs.h. */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16921 #define $ac_func innocuous_$ac_func
16923 /* System header to define __stub macros and hopefully few prototypes,
16924 which can conflict with char $ac_func (); below.
16925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16926 <limits.h> exists even on freestanding compilers. */
16928 #ifdef __STDC__
16929 # include <limits.h>
16930 #else
16931 # include <assert.h>
16932 #endif
16934 #undef $ac_func
16936 /* Override any gcc2 internal prototype to avoid an error. */
16937 #ifdef __cplusplus
16938 extern "C"
16940 #endif
16941 /* We use char because int might match the return type of a gcc2
16942 builtin and then its argument prototype would still apply. */
16943 char $ac_func ();
16944 /* The GNU C library defines this for functions which it implements
16945 to always fail with ENOSYS. Some functions are actually named
16946 something starting with __ and the normal name is an alias. */
16947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16948 choke me
16949 #else
16950 char (*f) () = $ac_func;
16951 #endif
16952 #ifdef __cplusplus
16954 #endif
16957 main ()
16959 return f != $ac_func;
16961 return 0;
16963 _ACEOF
16964 rm -f conftest.$ac_objext conftest$ac_exeext
16965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16966 (eval $ac_link) 2>conftest.er1
16967 ac_status=$?
16968 grep -v '^ *+' conftest.er1 >conftest.err
16969 rm -f conftest.er1
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } &&
16973 { ac_try='test -z "$ac_c_werror_flag"
16974 || test ! -s conftest.err'
16975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; } &&
16980 { ac_try='test -s conftest$ac_exeext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 eval "$as_ac_var=yes"
16987 else
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16991 eval "$as_ac_var=no"
16993 rm -f conftest.err conftest.$ac_objext \
16994 conftest$ac_exeext conftest.$ac_ext
16996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16998 if test `eval echo '${'$as_ac_var'}'` = yes; then
16999 cat >>confdefs.h <<_ACEOF
17000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17001 _ACEOF
17002 cat >conftest.$ac_ext <<_ACEOF
17003 /* confdefs.h. */
17004 _ACEOF
17005 cat confdefs.h >>conftest.$ac_ext
17006 cat >>conftest.$ac_ext <<_ACEOF
17007 /* end confdefs.h. */
17008 #include <sys/time.h>
17010 main ()
17012 gettimeofday((struct timeval*)0,(struct timezone*)0);
17014 return 0;
17016 _ACEOF
17017 rm -f conftest.$ac_objext
17018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17019 (eval $ac_compile) 2>conftest.er1
17020 ac_status=$?
17021 grep -v '^ *+' conftest.er1 >conftest.err
17022 rm -f conftest.er1
17023 cat conftest.err >&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
17026 { ac_try='test -z "$ac_c_werror_flag"
17027 || test ! -s conftest.err'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; } &&
17033 { ac_try='test -s conftest.$ac_objext'
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; }; then
17040 else
17041 echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17045 cat >>confdefs.h <<\_ACEOF
17046 #define GETTIMEOFDAY_NO_TZ 1
17047 _ACEOF
17051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17054 done
17057 echo "$as_me:$LINENO: checking for major" >&5
17058 echo $ECHO_N "checking for major... $ECHO_C" >&6
17059 cat >conftest.$ac_ext <<_ACEOF
17060 /* confdefs.h. */
17061 _ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h. */
17066 #if defined(MAJOR_IN_MKDEV)
17067 #include <sys/mkdev.h>
17068 #elif defined(MAJOR_IN_SYSMACROS)
17069 #include <sys/sysmacros.h>
17070 #else
17071 #include <sys/types.h>
17072 #endif
17075 main ()
17078 makedev(major(0),minor(0));
17081 return 0;
17083 _ACEOF
17084 rm -f conftest.$ac_objext conftest$ac_exeext
17085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17086 (eval $ac_link) 2>conftest.er1
17087 ac_status=$?
17088 grep -v '^ *+' conftest.er1 >conftest.err
17089 rm -f conftest.er1
17090 cat conftest.err >&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } &&
17093 { ac_try='test -z "$ac_c_werror_flag"
17094 || test ! -s conftest.err'
17095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096 (eval $ac_try) 2>&5
17097 ac_status=$?
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; } &&
17100 { ac_try='test -s conftest$ac_exeext'
17101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102 (eval $ac_try) 2>&5
17103 ac_status=$?
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; }; then
17108 cat >>confdefs.h <<\_ACEOF
17109 #define HAVE_DEVICE_MACROS 1
17110 _ACEOF
17112 echo "$as_me:$LINENO: result: yes" >&5
17113 echo "${ECHO_T}yes" >&6
17115 else
17116 echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17120 echo "$as_me:$LINENO: result: no" >&5
17121 echo "${ECHO_T}no" >&6
17124 rm -f conftest.err conftest.$ac_objext \
17125 conftest$ac_exeext conftest.$ac_ext
17127 # On OSF/1 V5.1, getaddrinfo is available, but a define
17128 # for [no]getaddrinfo in netdb.h.
17129 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
17130 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
17131 cat >conftest.$ac_ext <<_ACEOF
17132 /* confdefs.h. */
17133 _ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h. */
17138 #include <sys/types.h>
17139 #include <sys/socket.h>
17140 #include <netdb.h>
17141 #include <stdio.h>
17144 main ()
17147 getaddrinfo(NULL, NULL, NULL, NULL);
17150 return 0;
17152 _ACEOF
17153 rm -f conftest.$ac_objext conftest$ac_exeext
17154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17155 (eval $ac_link) 2>conftest.er1
17156 ac_status=$?
17157 grep -v '^ *+' conftest.er1 >conftest.err
17158 rm -f conftest.er1
17159 cat conftest.err >&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } &&
17162 { ac_try='test -z "$ac_c_werror_flag"
17163 || test ! -s conftest.err'
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; } &&
17169 { ac_try='test -s conftest$ac_exeext'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17176 echo "$as_me:$LINENO: result: yes" >&5
17177 echo "${ECHO_T}yes" >&6
17178 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
17179 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
17180 if test "$cross_compiling" = yes; then
17181 echo "$as_me:$LINENO: result: buggy" >&5
17182 echo "${ECHO_T}buggy" >&6
17183 buggygetaddrinfo=yes
17184 else
17185 cat >conftest.$ac_ext <<_ACEOF
17186 /* confdefs.h. */
17187 _ACEOF
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17192 #include <sys/types.h>
17193 #include <netdb.h>
17194 #include <string.h>
17195 #include <sys/socket.h>
17196 #include <netinet/in.h>
17198 main()
17200 int passive, gaierr, inet4 = 0, inet6 = 0;
17201 struct addrinfo hints, *ai, *aitop;
17202 char straddr[INET6_ADDRSTRLEN], strport[16];
17204 for (passive = 0; passive <= 1; passive++) {
17205 memset(&hints, 0, sizeof(hints));
17206 hints.ai_family = AF_UNSPEC;
17207 hints.ai_flags = passive ? AI_PASSIVE : 0;
17208 hints.ai_socktype = SOCK_STREAM;
17209 hints.ai_protocol = IPPROTO_TCP;
17210 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
17211 (void)gai_strerror(gaierr);
17212 goto bad;
17214 for (ai = aitop; ai; ai = ai->ai_next) {
17215 if (ai->ai_addr == NULL ||
17216 ai->ai_addrlen == 0 ||
17217 getnameinfo(ai->ai_addr, ai->ai_addrlen,
17218 straddr, sizeof(straddr), strport, sizeof(strport),
17219 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
17220 goto bad;
17222 switch (ai->ai_family) {
17223 case AF_INET:
17224 if (strcmp(strport, "54321") != 0) {
17225 goto bad;
17227 if (passive) {
17228 if (strcmp(straddr, "0.0.0.0") != 0) {
17229 goto bad;
17231 } else {
17232 if (strcmp(straddr, "127.0.0.1") != 0) {
17233 goto bad;
17236 inet4++;
17237 break;
17238 case AF_INET6:
17239 if (strcmp(strport, "54321") != 0) {
17240 goto bad;
17242 if (passive) {
17243 if (strcmp(straddr, "::") != 0) {
17244 goto bad;
17246 } else {
17247 if (strcmp(straddr, "::1") != 0) {
17248 goto bad;
17251 inet6++;
17252 break;
17253 case AF_UNSPEC:
17254 goto bad;
17255 break;
17256 default:
17257 /* another family support? */
17258 break;
17263 if (!(inet4 == 0 || inet4 == 2))
17264 goto bad;
17265 if (!(inet6 == 0 || inet6 == 2))
17266 goto bad;
17268 if (aitop)
17269 freeaddrinfo(aitop);
17270 exit(0);
17272 bad:
17273 if (aitop)
17274 freeaddrinfo(aitop);
17275 exit(1);
17278 _ACEOF
17279 rm -f conftest$ac_exeext
17280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17281 (eval $ac_link) 2>&5
17282 ac_status=$?
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17286 (eval $ac_try) 2>&5
17287 ac_status=$?
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); }; }; then
17290 echo "$as_me:$LINENO: result: good" >&5
17291 echo "${ECHO_T}good" >&6
17292 buggygetaddrinfo=no
17293 else
17294 echo "$as_me: program exited with status $ac_status" >&5
17295 echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17298 ( exit $ac_status )
17299 echo "$as_me:$LINENO: result: buggy" >&5
17300 echo "${ECHO_T}buggy" >&6
17301 buggygetaddrinfo=yes
17303 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17305 else
17306 echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17310 echo "$as_me:$LINENO: result: no" >&5
17311 echo "${ECHO_T}no" >&6
17312 buggygetaddrinfo=yes
17315 rm -f conftest.err conftest.$ac_objext \
17316 conftest$ac_exeext conftest.$ac_ext
17318 if test "$buggygetaddrinfo" = "yes"; then
17319 if test "$ipv6" = "yes"; then
17320 echo 'Fatal: You must get working getaddrinfo() function.'
17321 echo ' or you can specify "--disable-ipv6"'.
17322 exit 1
17324 else
17326 cat >>confdefs.h <<\_ACEOF
17327 #define HAVE_GETADDRINFO 1
17328 _ACEOF
17332 for ac_func in getnameinfo
17334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17335 echo "$as_me:$LINENO: checking for $ac_func" >&5
17336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17337 if eval "test \"\${$as_ac_var+set}\" = set"; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340 cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h. */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17348 #define $ac_func innocuous_$ac_func
17350 /* System header to define __stub macros and hopefully few prototypes,
17351 which can conflict with char $ac_func (); below.
17352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353 <limits.h> exists even on freestanding compilers. */
17355 #ifdef __STDC__
17356 # include <limits.h>
17357 #else
17358 # include <assert.h>
17359 #endif
17361 #undef $ac_func
17363 /* Override any gcc2 internal prototype to avoid an error. */
17364 #ifdef __cplusplus
17365 extern "C"
17367 #endif
17368 /* We use char because int might match the return type of a gcc2
17369 builtin and then its argument prototype would still apply. */
17370 char $ac_func ();
17371 /* The GNU C library defines this for functions which it implements
17372 to always fail with ENOSYS. Some functions are actually named
17373 something starting with __ and the normal name is an alias. */
17374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17375 choke me
17376 #else
17377 char (*f) () = $ac_func;
17378 #endif
17379 #ifdef __cplusplus
17381 #endif
17384 main ()
17386 return f != $ac_func;
17388 return 0;
17390 _ACEOF
17391 rm -f conftest.$ac_objext conftest$ac_exeext
17392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17393 (eval $ac_link) 2>conftest.er1
17394 ac_status=$?
17395 grep -v '^ *+' conftest.er1 >conftest.err
17396 rm -f conftest.er1
17397 cat conftest.err >&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } &&
17400 { ac_try='test -z "$ac_c_werror_flag"
17401 || test ! -s conftest.err'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; } &&
17407 { ac_try='test -s conftest$ac_exeext'
17408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409 (eval $ac_try) 2>&5
17410 ac_status=$?
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; }; then
17413 eval "$as_ac_var=yes"
17414 else
17415 echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17418 eval "$as_ac_var=no"
17420 rm -f conftest.err conftest.$ac_objext \
17421 conftest$ac_exeext conftest.$ac_ext
17423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17425 if test `eval echo '${'$as_ac_var'}'` = yes; then
17426 cat >>confdefs.h <<_ACEOF
17427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17428 _ACEOF
17431 done
17434 # checks for structures
17435 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17436 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17437 if test "${ac_cv_header_time+set}" = set; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17439 else
17440 cat >conftest.$ac_ext <<_ACEOF
17441 /* confdefs.h. */
17442 _ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17446 #include <sys/types.h>
17447 #include <sys/time.h>
17448 #include <time.h>
17451 main ()
17453 if ((struct tm *) 0)
17454 return 0;
17456 return 0;
17458 _ACEOF
17459 rm -f conftest.$ac_objext
17460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17461 (eval $ac_compile) 2>conftest.er1
17462 ac_status=$?
17463 grep -v '^ *+' conftest.er1 >conftest.err
17464 rm -f conftest.er1
17465 cat conftest.err >&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } &&
17468 { ac_try='test -z "$ac_c_werror_flag"
17469 || test ! -s conftest.err'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17472 ac_status=$?
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; } &&
17475 { ac_try='test -s conftest.$ac_objext'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; }; then
17481 ac_cv_header_time=yes
17482 else
17483 echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17486 ac_cv_header_time=no
17488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17490 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17491 echo "${ECHO_T}$ac_cv_header_time" >&6
17492 if test $ac_cv_header_time = yes; then
17494 cat >>confdefs.h <<\_ACEOF
17495 #define TIME_WITH_SYS_TIME 1
17496 _ACEOF
17500 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17501 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
17502 if test "${ac_cv_struct_tm+set}" = set; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17504 else
17505 cat >conftest.$ac_ext <<_ACEOF
17506 /* confdefs.h. */
17507 _ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17511 #include <sys/types.h>
17512 #include <time.h>
17515 main ()
17517 struct tm *tp; tp->tm_sec;
17519 return 0;
17521 _ACEOF
17522 rm -f conftest.$ac_objext
17523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17524 (eval $ac_compile) 2>conftest.er1
17525 ac_status=$?
17526 grep -v '^ *+' conftest.er1 >conftest.err
17527 rm -f conftest.er1
17528 cat conftest.err >&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } &&
17531 { ac_try='test -z "$ac_c_werror_flag"
17532 || test ! -s conftest.err'
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; } &&
17538 { ac_try='test -s conftest.$ac_objext'
17539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540 (eval $ac_try) 2>&5
17541 ac_status=$?
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; }; then
17544 ac_cv_struct_tm=time.h
17545 else
17546 echo "$as_me: failed program was:" >&5
17547 sed 's/^/| /' conftest.$ac_ext >&5
17549 ac_cv_struct_tm=sys/time.h
17551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17553 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17554 echo "${ECHO_T}$ac_cv_struct_tm" >&6
17555 if test $ac_cv_struct_tm = sys/time.h; then
17557 cat >>confdefs.h <<\_ACEOF
17558 #define TM_IN_SYS_TIME 1
17559 _ACEOF
17563 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17564 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17565 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 else
17568 cat >conftest.$ac_ext <<_ACEOF
17569 /* confdefs.h. */
17570 _ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17574 #include <sys/types.h>
17575 #include <$ac_cv_struct_tm>
17579 main ()
17581 static struct tm ac_aggr;
17582 if (ac_aggr.tm_zone)
17583 return 0;
17585 return 0;
17587 _ACEOF
17588 rm -f conftest.$ac_objext
17589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17590 (eval $ac_compile) 2>conftest.er1
17591 ac_status=$?
17592 grep -v '^ *+' conftest.er1 >conftest.err
17593 rm -f conftest.er1
17594 cat conftest.err >&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); } &&
17597 { ac_try='test -z "$ac_c_werror_flag"
17598 || test ! -s conftest.err'
17599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17601 ac_status=$?
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; } &&
17604 { ac_try='test -s conftest.$ac_objext'
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; }; then
17610 ac_cv_member_struct_tm_tm_zone=yes
17611 else
17612 echo "$as_me: failed program was:" >&5
17613 sed 's/^/| /' conftest.$ac_ext >&5
17615 cat >conftest.$ac_ext <<_ACEOF
17616 /* confdefs.h. */
17617 _ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h. */
17621 #include <sys/types.h>
17622 #include <$ac_cv_struct_tm>
17626 main ()
17628 static struct tm ac_aggr;
17629 if (sizeof ac_aggr.tm_zone)
17630 return 0;
17632 return 0;
17634 _ACEOF
17635 rm -f conftest.$ac_objext
17636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17637 (eval $ac_compile) 2>conftest.er1
17638 ac_status=$?
17639 grep -v '^ *+' conftest.er1 >conftest.err
17640 rm -f conftest.er1
17641 cat conftest.err >&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } &&
17644 { ac_try='test -z "$ac_c_werror_flag"
17645 || test ! -s conftest.err'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17648 ac_status=$?
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; } &&
17651 { ac_try='test -s conftest.$ac_objext'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; }; then
17657 ac_cv_member_struct_tm_tm_zone=yes
17658 else
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17662 ac_cv_member_struct_tm_tm_zone=no
17664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17668 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17669 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17670 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17672 cat >>confdefs.h <<_ACEOF
17673 #define HAVE_STRUCT_TM_TM_ZONE 1
17674 _ACEOF
17679 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17681 cat >>confdefs.h <<\_ACEOF
17682 #define HAVE_TM_ZONE 1
17683 _ACEOF
17685 else
17686 echo "$as_me:$LINENO: checking for tzname" >&5
17687 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17688 if test "${ac_cv_var_tzname+set}" = set; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17690 else
17691 cat >conftest.$ac_ext <<_ACEOF
17692 /* confdefs.h. */
17693 _ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17697 #include <time.h>
17698 #ifndef tzname /* For SGI. */
17699 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17700 #endif
17703 main ()
17705 atoi(*tzname);
17707 return 0;
17709 _ACEOF
17710 rm -f conftest.$ac_objext conftest$ac_exeext
17711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17712 (eval $ac_link) 2>conftest.er1
17713 ac_status=$?
17714 grep -v '^ *+' conftest.er1 >conftest.err
17715 rm -f conftest.er1
17716 cat conftest.err >&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } &&
17719 { ac_try='test -z "$ac_c_werror_flag"
17720 || test ! -s conftest.err'
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; } &&
17726 { ac_try='test -s conftest$ac_exeext'
17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728 (eval $ac_try) 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; }; then
17732 ac_cv_var_tzname=yes
17733 else
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17737 ac_cv_var_tzname=no
17739 rm -f conftest.err conftest.$ac_objext \
17740 conftest$ac_exeext conftest.$ac_ext
17742 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17743 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17744 if test $ac_cv_var_tzname = yes; then
17746 cat >>confdefs.h <<\_ACEOF
17747 #define HAVE_TZNAME 1
17748 _ACEOF
17753 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17754 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
17755 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17757 else
17758 cat >conftest.$ac_ext <<_ACEOF
17759 /* confdefs.h. */
17760 _ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h. */
17764 $ac_includes_default
17766 main ()
17768 static struct stat ac_aggr;
17769 if (ac_aggr.st_rdev)
17770 return 0;
17772 return 0;
17774 _ACEOF
17775 rm -f conftest.$ac_objext
17776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17777 (eval $ac_compile) 2>conftest.er1
17778 ac_status=$?
17779 grep -v '^ *+' conftest.er1 >conftest.err
17780 rm -f conftest.er1
17781 cat conftest.err >&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); } &&
17784 { ac_try='test -z "$ac_c_werror_flag"
17785 || test ! -s conftest.err'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17788 ac_status=$?
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; } &&
17791 { ac_try='test -s conftest.$ac_objext'
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17794 ac_status=$?
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; }; then
17797 ac_cv_member_struct_stat_st_rdev=yes
17798 else
17799 echo "$as_me: failed program was:" >&5
17800 sed 's/^/| /' conftest.$ac_ext >&5
17802 cat >conftest.$ac_ext <<_ACEOF
17803 /* confdefs.h. */
17804 _ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h. */
17808 $ac_includes_default
17810 main ()
17812 static struct stat ac_aggr;
17813 if (sizeof ac_aggr.st_rdev)
17814 return 0;
17816 return 0;
17818 _ACEOF
17819 rm -f conftest.$ac_objext
17820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17821 (eval $ac_compile) 2>conftest.er1
17822 ac_status=$?
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_c_werror_flag"
17829 || test ! -s conftest.err'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try='test -s conftest.$ac_objext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 ac_cv_member_struct_stat_st_rdev=yes
17842 else
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17846 ac_cv_member_struct_stat_st_rdev=no
17848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17852 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17853 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
17854 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17856 cat >>confdefs.h <<_ACEOF
17857 #define HAVE_STRUCT_STAT_ST_RDEV 1
17858 _ACEOF
17863 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17864 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17865 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17866 echo $ECHO_N "(cached) $ECHO_C" >&6
17867 else
17868 cat >conftest.$ac_ext <<_ACEOF
17869 /* confdefs.h. */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17874 $ac_includes_default
17876 main ()
17878 static struct stat ac_aggr;
17879 if (ac_aggr.st_blksize)
17880 return 0;
17882 return 0;
17884 _ACEOF
17885 rm -f conftest.$ac_objext
17886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17887 (eval $ac_compile) 2>conftest.er1
17888 ac_status=$?
17889 grep -v '^ *+' conftest.er1 >conftest.err
17890 rm -f conftest.er1
17891 cat conftest.err >&5
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); } &&
17894 { ac_try='test -z "$ac_c_werror_flag"
17895 || test ! -s conftest.err'
17896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897 (eval $ac_try) 2>&5
17898 ac_status=$?
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }; } &&
17901 { ac_try='test -s conftest.$ac_objext'
17902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903 (eval $ac_try) 2>&5
17904 ac_status=$?
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; }; then
17907 ac_cv_member_struct_stat_st_blksize=yes
17908 else
17909 echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17912 cat >conftest.$ac_ext <<_ACEOF
17913 /* confdefs.h. */
17914 _ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h. */
17918 $ac_includes_default
17920 main ()
17922 static struct stat ac_aggr;
17923 if (sizeof ac_aggr.st_blksize)
17924 return 0;
17926 return 0;
17928 _ACEOF
17929 rm -f conftest.$ac_objext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17931 (eval $ac_compile) 2>conftest.er1
17932 ac_status=$?
17933 grep -v '^ *+' conftest.er1 >conftest.err
17934 rm -f conftest.er1
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } &&
17938 { ac_try='test -z "$ac_c_werror_flag"
17939 || test ! -s conftest.err'
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17942 ac_status=$?
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; } &&
17945 { ac_try='test -s conftest.$ac_objext'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
17951 ac_cv_member_struct_stat_st_blksize=yes
17952 else
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17956 ac_cv_member_struct_stat_st_blksize=no
17958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17962 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17963 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17964 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17966 cat >>confdefs.h <<_ACEOF
17967 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17968 _ACEOF
17973 echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17974 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
17975 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17977 else
17978 cat >conftest.$ac_ext <<_ACEOF
17979 /* confdefs.h. */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17984 $ac_includes_default
17986 main ()
17988 static struct stat ac_aggr;
17989 if (ac_aggr.st_flags)
17990 return 0;
17992 return 0;
17994 _ACEOF
17995 rm -f conftest.$ac_objext
17996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17997 (eval $ac_compile) 2>conftest.er1
17998 ac_status=$?
17999 grep -v '^ *+' conftest.er1 >conftest.err
18000 rm -f conftest.er1
18001 cat conftest.err >&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); } &&
18004 { ac_try='test -z "$ac_c_werror_flag"
18005 || test ! -s conftest.err'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; } &&
18011 { ac_try='test -s conftest.$ac_objext'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 ac_cv_member_struct_stat_st_flags=yes
18018 else
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 cat >conftest.$ac_ext <<_ACEOF
18023 /* confdefs.h. */
18024 _ACEOF
18025 cat confdefs.h >>conftest.$ac_ext
18026 cat >>conftest.$ac_ext <<_ACEOF
18027 /* end confdefs.h. */
18028 $ac_includes_default
18030 main ()
18032 static struct stat ac_aggr;
18033 if (sizeof ac_aggr.st_flags)
18034 return 0;
18036 return 0;
18038 _ACEOF
18039 rm -f conftest.$ac_objext
18040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18041 (eval $ac_compile) 2>conftest.er1
18042 ac_status=$?
18043 grep -v '^ *+' conftest.er1 >conftest.err
18044 rm -f conftest.er1
18045 cat conftest.err >&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); } &&
18048 { ac_try='test -z "$ac_c_werror_flag"
18049 || test ! -s conftest.err'
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; } &&
18055 { ac_try='test -s conftest.$ac_objext'
18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057 (eval $ac_try) 2>&5
18058 ac_status=$?
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; }; then
18061 ac_cv_member_struct_stat_st_flags=yes
18062 else
18063 echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18066 ac_cv_member_struct_stat_st_flags=no
18068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18072 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
18073 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
18074 if test $ac_cv_member_struct_stat_st_flags = yes; then
18076 cat >>confdefs.h <<_ACEOF
18077 #define HAVE_STRUCT_STAT_ST_FLAGS 1
18078 _ACEOF
18083 echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
18084 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
18085 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
18086 echo $ECHO_N "(cached) $ECHO_C" >&6
18087 else
18088 cat >conftest.$ac_ext <<_ACEOF
18089 /* confdefs.h. */
18090 _ACEOF
18091 cat confdefs.h >>conftest.$ac_ext
18092 cat >>conftest.$ac_ext <<_ACEOF
18093 /* end confdefs.h. */
18094 $ac_includes_default
18096 main ()
18098 static struct stat ac_aggr;
18099 if (ac_aggr.st_gen)
18100 return 0;
18102 return 0;
18104 _ACEOF
18105 rm -f conftest.$ac_objext
18106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18107 (eval $ac_compile) 2>conftest.er1
18108 ac_status=$?
18109 grep -v '^ *+' conftest.er1 >conftest.err
18110 rm -f conftest.er1
18111 cat conftest.err >&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); } &&
18114 { ac_try='test -z "$ac_c_werror_flag"
18115 || test ! -s conftest.err'
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest.$ac_objext'
18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123 (eval $ac_try) 2>&5
18124 ac_status=$?
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; }; then
18127 ac_cv_member_struct_stat_st_gen=yes
18128 else
18129 echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18132 cat >conftest.$ac_ext <<_ACEOF
18133 /* confdefs.h. */
18134 _ACEOF
18135 cat confdefs.h >>conftest.$ac_ext
18136 cat >>conftest.$ac_ext <<_ACEOF
18137 /* end confdefs.h. */
18138 $ac_includes_default
18140 main ()
18142 static struct stat ac_aggr;
18143 if (sizeof ac_aggr.st_gen)
18144 return 0;
18146 return 0;
18148 _ACEOF
18149 rm -f conftest.$ac_objext
18150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18151 (eval $ac_compile) 2>conftest.er1
18152 ac_status=$?
18153 grep -v '^ *+' conftest.er1 >conftest.err
18154 rm -f conftest.er1
18155 cat conftest.err >&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); } &&
18158 { ac_try='test -z "$ac_c_werror_flag"
18159 || test ! -s conftest.err'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; } &&
18165 { ac_try='test -s conftest.$ac_objext'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; }; then
18171 ac_cv_member_struct_stat_st_gen=yes
18172 else
18173 echo "$as_me: failed program was:" >&5
18174 sed 's/^/| /' conftest.$ac_ext >&5
18176 ac_cv_member_struct_stat_st_gen=no
18178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18182 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
18183 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
18184 if test $ac_cv_member_struct_stat_st_gen = yes; then
18186 cat >>confdefs.h <<_ACEOF
18187 #define HAVE_STRUCT_STAT_ST_GEN 1
18188 _ACEOF
18193 echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
18194 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
18195 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18198 cat >conftest.$ac_ext <<_ACEOF
18199 /* confdefs.h. */
18200 _ACEOF
18201 cat confdefs.h >>conftest.$ac_ext
18202 cat >>conftest.$ac_ext <<_ACEOF
18203 /* end confdefs.h. */
18204 $ac_includes_default
18206 main ()
18208 static struct stat ac_aggr;
18209 if (ac_aggr.st_birthtime)
18210 return 0;
18212 return 0;
18214 _ACEOF
18215 rm -f conftest.$ac_objext
18216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18217 (eval $ac_compile) 2>conftest.er1
18218 ac_status=$?
18219 grep -v '^ *+' conftest.er1 >conftest.err
18220 rm -f conftest.er1
18221 cat conftest.err >&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } &&
18224 { ac_try='test -z "$ac_c_werror_flag"
18225 || test ! -s conftest.err'
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } &&
18231 { ac_try='test -s conftest.$ac_objext'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; }; then
18237 ac_cv_member_struct_stat_st_birthtime=yes
18238 else
18239 echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18242 cat >conftest.$ac_ext <<_ACEOF
18243 /* confdefs.h. */
18244 _ACEOF
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18248 $ac_includes_default
18250 main ()
18252 static struct stat ac_aggr;
18253 if (sizeof ac_aggr.st_birthtime)
18254 return 0;
18256 return 0;
18258 _ACEOF
18259 rm -f conftest.$ac_objext
18260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18261 (eval $ac_compile) 2>conftest.er1
18262 ac_status=$?
18263 grep -v '^ *+' conftest.er1 >conftest.err
18264 rm -f conftest.er1
18265 cat conftest.err >&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } &&
18268 { ac_try='test -z "$ac_c_werror_flag"
18269 || test ! -s conftest.err'
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18272 ac_status=$?
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; } &&
18275 { ac_try='test -s conftest.$ac_objext'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 ac_cv_member_struct_stat_st_birthtime=yes
18282 else
18283 echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18286 ac_cv_member_struct_stat_st_birthtime=no
18288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18292 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
18293 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
18294 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
18296 cat >>confdefs.h <<_ACEOF
18297 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
18298 _ACEOF
18303 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18304 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
18305 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18307 else
18308 cat >conftest.$ac_ext <<_ACEOF
18309 /* confdefs.h. */
18310 _ACEOF
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h. */
18314 $ac_includes_default
18316 main ()
18318 static struct stat ac_aggr;
18319 if (ac_aggr.st_blocks)
18320 return 0;
18322 return 0;
18324 _ACEOF
18325 rm -f conftest.$ac_objext
18326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18327 (eval $ac_compile) 2>conftest.er1
18328 ac_status=$?
18329 grep -v '^ *+' conftest.er1 >conftest.err
18330 rm -f conftest.er1
18331 cat conftest.err >&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } &&
18334 { ac_try='test -z "$ac_c_werror_flag"
18335 || test ! -s conftest.err'
18336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337 (eval $ac_try) 2>&5
18338 ac_status=$?
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; } &&
18341 { ac_try='test -s conftest.$ac_objext'
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; }; then
18347 ac_cv_member_struct_stat_st_blocks=yes
18348 else
18349 echo "$as_me: failed program was:" >&5
18350 sed 's/^/| /' conftest.$ac_ext >&5
18352 cat >conftest.$ac_ext <<_ACEOF
18353 /* confdefs.h. */
18354 _ACEOF
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h. */
18358 $ac_includes_default
18360 main ()
18362 static struct stat ac_aggr;
18363 if (sizeof ac_aggr.st_blocks)
18364 return 0;
18366 return 0;
18368 _ACEOF
18369 rm -f conftest.$ac_objext
18370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18371 (eval $ac_compile) 2>conftest.er1
18372 ac_status=$?
18373 grep -v '^ *+' conftest.er1 >conftest.err
18374 rm -f conftest.er1
18375 cat conftest.err >&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); } &&
18378 { ac_try='test -z "$ac_c_werror_flag"
18379 || test ! -s conftest.err'
18380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381 (eval $ac_try) 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; } &&
18385 { ac_try='test -s conftest.$ac_objext'
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; }; then
18391 ac_cv_member_struct_stat_st_blocks=yes
18392 else
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18396 ac_cv_member_struct_stat_st_blocks=no
18398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18402 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18403 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
18404 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18406 cat >>confdefs.h <<_ACEOF
18407 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18408 _ACEOF
18411 cat >>confdefs.h <<\_ACEOF
18412 #define HAVE_ST_BLOCKS 1
18413 _ACEOF
18415 else
18416 case $LIBOBJS in
18417 "fileblocks.$ac_objext" | \
18418 *" fileblocks.$ac_objext" | \
18419 "fileblocks.$ac_objext "* | \
18420 *" fileblocks.$ac_objext "* ) ;;
18421 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
18422 esac
18428 echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
18429 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
18430 if test "${ac_cv_header_time_altzone+set}" = set; then
18431 echo $ECHO_N "(cached) $ECHO_C" >&6
18432 else
18433 cat >conftest.$ac_ext <<_ACEOF
18434 /* confdefs.h. */
18435 _ACEOF
18436 cat confdefs.h >>conftest.$ac_ext
18437 cat >>conftest.$ac_ext <<_ACEOF
18438 /* end confdefs.h. */
18439 #include <time.h>
18441 main ()
18443 return altzone;
18445 return 0;
18447 _ACEOF
18448 rm -f conftest.$ac_objext
18449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18450 (eval $ac_compile) 2>conftest.er1
18451 ac_status=$?
18452 grep -v '^ *+' conftest.er1 >conftest.err
18453 rm -f conftest.er1
18454 cat conftest.err >&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
18457 { ac_try='test -z "$ac_c_werror_flag"
18458 || test ! -s conftest.err'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest.$ac_objext'
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
18470 ac_cv_header_time_altzone=yes
18471 else
18472 echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18475 ac_cv_header_time_altzone=no
18477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18480 echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
18481 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
18482 if test $ac_cv_header_time_altzone = yes; then
18484 cat >>confdefs.h <<\_ACEOF
18485 #define HAVE_ALTZONE 1
18486 _ACEOF
18490 was_it_defined=no
18491 echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
18492 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
18493 cat >conftest.$ac_ext <<_ACEOF
18494 /* confdefs.h. */
18495 _ACEOF
18496 cat confdefs.h >>conftest.$ac_ext
18497 cat >>conftest.$ac_ext <<_ACEOF
18498 /* end confdefs.h. */
18500 #include <sys/types.h>
18501 #include <sys/select.h>
18502 #include <sys/time.h>
18505 main ()
18509 return 0;
18511 _ACEOF
18512 rm -f conftest.$ac_objext
18513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18514 (eval $ac_compile) 2>conftest.er1
18515 ac_status=$?
18516 grep -v '^ *+' conftest.er1 >conftest.err
18517 rm -f conftest.er1
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
18521 { ac_try='test -z "$ac_c_werror_flag"
18522 || test ! -s conftest.err'
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try='test -s conftest.$ac_objext'
18529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530 (eval $ac_try) 2>&5
18531 ac_status=$?
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; }; then
18536 cat >>confdefs.h <<\_ACEOF
18537 #define SYS_SELECT_WITH_SYS_TIME 1
18538 _ACEOF
18540 was_it_defined=yes
18542 else
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18548 echo "$as_me:$LINENO: result: $was_it_defined" >&5
18549 echo "${ECHO_T}$was_it_defined" >&6
18551 echo "$as_me:$LINENO: checking for addrinfo" >&5
18552 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
18553 if test "${ac_cv_struct_addrinfo+set}" = set; then
18554 echo $ECHO_N "(cached) $ECHO_C" >&6
18555 else
18556 cat >conftest.$ac_ext <<_ACEOF
18557 /* confdefs.h. */
18558 _ACEOF
18559 cat confdefs.h >>conftest.$ac_ext
18560 cat >>conftest.$ac_ext <<_ACEOF
18561 /* end confdefs.h. */
18563 # include <netdb.h>
18565 main ()
18567 struct addrinfo a
18569 return 0;
18571 _ACEOF
18572 rm -f conftest.$ac_objext
18573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18574 (eval $ac_compile) 2>conftest.er1
18575 ac_status=$?
18576 grep -v '^ *+' conftest.er1 >conftest.err
18577 rm -f conftest.er1
18578 cat conftest.err >&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } &&
18581 { ac_try='test -z "$ac_c_werror_flag"
18582 || test ! -s conftest.err'
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18585 ac_status=$?
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; } &&
18588 { ac_try='test -s conftest.$ac_objext'
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18591 ac_status=$?
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; }; then
18594 ac_cv_struct_addrinfo=yes
18595 else
18596 echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.$ac_ext >&5
18599 ac_cv_struct_addrinfo=no
18601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18604 echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18605 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
18606 if test $ac_cv_struct_addrinfo = yes; then
18608 cat >>confdefs.h <<\_ACEOF
18609 #define HAVE_ADDRINFO 1
18610 _ACEOF
18614 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18615 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
18616 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18618 else
18619 cat >conftest.$ac_ext <<_ACEOF
18620 /* confdefs.h. */
18621 _ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h. */
18626 # include <sys/types.h>
18627 # include <sys/socket.h>
18629 main ()
18631 struct sockaddr_storage s
18633 return 0;
18635 _ACEOF
18636 rm -f conftest.$ac_objext
18637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18638 (eval $ac_compile) 2>conftest.er1
18639 ac_status=$?
18640 grep -v '^ *+' conftest.er1 >conftest.err
18641 rm -f conftest.er1
18642 cat conftest.err >&5
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); } &&
18645 { ac_try='test -z "$ac_c_werror_flag"
18646 || test ! -s conftest.err'
18647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18648 (eval $ac_try) 2>&5
18649 ac_status=$?
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); }; } &&
18652 { ac_try='test -s conftest.$ac_objext'
18653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18654 (eval $ac_try) 2>&5
18655 ac_status=$?
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }; }; then
18658 ac_cv_struct_sockaddr_storage=yes
18659 else
18660 echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18663 ac_cv_struct_sockaddr_storage=no
18665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18668 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18669 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
18670 if test $ac_cv_struct_sockaddr_storage = yes; then
18672 cat >>confdefs.h <<\_ACEOF
18673 #define HAVE_SOCKADDR_STORAGE 1
18674 _ACEOF
18678 # checks for compiler characteristics
18681 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18682 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
18683 if test "${ac_cv_c_char_unsigned+set}" = set; then
18684 echo $ECHO_N "(cached) $ECHO_C" >&6
18685 else
18686 cat >conftest.$ac_ext <<_ACEOF
18687 /* confdefs.h. */
18688 _ACEOF
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h. */
18692 $ac_includes_default
18694 main ()
18696 static int test_array [1 - 2 * !(((char) -1) < 0)];
18697 test_array [0] = 0
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
18725 ac_cv_c_char_unsigned=no
18726 else
18727 echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18730 ac_cv_c_char_unsigned=yes
18732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18734 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18735 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
18736 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18737 cat >>confdefs.h <<\_ACEOF
18738 #define __CHAR_UNSIGNED__ 1
18739 _ACEOF
18743 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18744 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18745 if test "${ac_cv_c_const+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18747 else
18748 cat >conftest.$ac_ext <<_ACEOF
18749 /* confdefs.h. */
18750 _ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h. */
18756 main ()
18758 /* FIXME: Include the comments suggested by Paul. */
18759 #ifndef __cplusplus
18760 /* Ultrix mips cc rejects this. */
18761 typedef int charset[2];
18762 const charset x;
18763 /* SunOS 4.1.1 cc rejects this. */
18764 char const *const *ccp;
18765 char **p;
18766 /* NEC SVR4.0.2 mips cc rejects this. */
18767 struct point {int x, y;};
18768 static struct point const zero = {0,0};
18769 /* AIX XL C 1.02.0.0 rejects this.
18770 It does not let you subtract one const X* pointer from another in
18771 an arm of an if-expression whose if-part is not a constant
18772 expression */
18773 const char *g = "string";
18774 ccp = &g + (g ? g-g : 0);
18775 /* HPUX 7.0 cc rejects these. */
18776 ++ccp;
18777 p = (char**) ccp;
18778 ccp = (char const *const *) p;
18779 { /* SCO 3.2v4 cc rejects this. */
18780 char *t;
18781 char const *s = 0 ? (char *) 0 : (char const *) 0;
18783 *t++ = 0;
18785 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18786 int x[] = {25, 17};
18787 const int *foo = &x[0];
18788 ++foo;
18790 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18791 typedef const int *iptr;
18792 iptr p = 0;
18793 ++p;
18795 { /* AIX XL C 1.02.0.0 rejects this saying
18796 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18797 struct s { int j; const int *ap[3]; };
18798 struct s *b; b->j = 5;
18800 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18801 const int foo = 10;
18803 #endif
18806 return 0;
18808 _ACEOF
18809 rm -f conftest.$ac_objext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18811 (eval $ac_compile) 2>conftest.er1
18812 ac_status=$?
18813 grep -v '^ *+' conftest.er1 >conftest.err
18814 rm -f conftest.er1
18815 cat conftest.err >&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } &&
18818 { ac_try='test -z "$ac_c_werror_flag"
18819 || test ! -s conftest.err'
18820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821 (eval $ac_try) 2>&5
18822 ac_status=$?
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; } &&
18825 { ac_try='test -s conftest.$ac_objext'
18826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827 (eval $ac_try) 2>&5
18828 ac_status=$?
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; }; then
18831 ac_cv_c_const=yes
18832 else
18833 echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18836 ac_cv_c_const=no
18838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18840 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18841 echo "${ECHO_T}$ac_cv_c_const" >&6
18842 if test $ac_cv_c_const = no; then
18844 cat >>confdefs.h <<\_ACEOF
18845 #define const
18846 _ACEOF
18851 works=no
18852 echo "$as_me:$LINENO: checking for working volatile" >&5
18853 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
18854 cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h. */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18862 main ()
18864 volatile int x; x = 0;
18866 return 0;
18868 _ACEOF
18869 rm -f conftest.$ac_objext
18870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18871 (eval $ac_compile) 2>conftest.er1
18872 ac_status=$?
18873 grep -v '^ *+' conftest.er1 >conftest.err
18874 rm -f conftest.er1
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } &&
18878 { ac_try='test -z "$ac_c_werror_flag"
18879 || test ! -s conftest.err'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; } &&
18885 { ac_try='test -s conftest.$ac_objext'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
18891 works=yes
18892 else
18893 echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18897 cat >>confdefs.h <<\_ACEOF
18898 #define volatile
18899 _ACEOF
18903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18904 echo "$as_me:$LINENO: result: $works" >&5
18905 echo "${ECHO_T}$works" >&6
18907 works=no
18908 echo "$as_me:$LINENO: checking for working signed char" >&5
18909 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
18910 cat >conftest.$ac_ext <<_ACEOF
18911 /* confdefs.h. */
18912 _ACEOF
18913 cat confdefs.h >>conftest.$ac_ext
18914 cat >>conftest.$ac_ext <<_ACEOF
18915 /* end confdefs.h. */
18918 main ()
18920 signed char c;
18922 return 0;
18924 _ACEOF
18925 rm -f conftest.$ac_objext
18926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18927 (eval $ac_compile) 2>conftest.er1
18928 ac_status=$?
18929 grep -v '^ *+' conftest.er1 >conftest.err
18930 rm -f conftest.er1
18931 cat conftest.err >&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } &&
18934 { ac_try='test -z "$ac_c_werror_flag"
18935 || test ! -s conftest.err'
18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937 (eval $ac_try) 2>&5
18938 ac_status=$?
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; } &&
18941 { ac_try='test -s conftest.$ac_objext'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
18947 works=yes
18948 else
18949 echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18953 cat >>confdefs.h <<\_ACEOF
18954 #define signed
18955 _ACEOF
18959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18960 echo "$as_me:$LINENO: result: $works" >&5
18961 echo "${ECHO_T}$works" >&6
18963 have_prototypes=no
18964 echo "$as_me:$LINENO: checking for prototypes" >&5
18965 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
18966 cat >conftest.$ac_ext <<_ACEOF
18967 /* confdefs.h. */
18968 _ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18972 int foo(int x) { return 0; }
18974 main ()
18976 return foo(10);
18978 return 0;
18980 _ACEOF
18981 rm -f conftest.$ac_objext
18982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18983 (eval $ac_compile) 2>conftest.er1
18984 ac_status=$?
18985 grep -v '^ *+' conftest.er1 >conftest.err
18986 rm -f conftest.er1
18987 cat conftest.err >&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } &&
18990 { ac_try='test -z "$ac_c_werror_flag"
18991 || test ! -s conftest.err'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; } &&
18997 { ac_try='test -s conftest.$ac_objext'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19000 ac_status=$?
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; }; then
19005 cat >>confdefs.h <<\_ACEOF
19006 #define HAVE_PROTOTYPES 1
19007 _ACEOF
19009 have_prototypes=yes
19011 else
19012 echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19017 echo "$as_me:$LINENO: result: $have_prototypes" >&5
19018 echo "${ECHO_T}$have_prototypes" >&6
19020 works=no
19021 echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
19022 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h. */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19030 #include <stdarg.h>
19031 int foo(int x, ...) {
19032 va_list va;
19033 va_start(va, x);
19034 va_arg(va, int);
19035 va_arg(va, char *);
19036 va_arg(va, double);
19037 return 0;
19041 main ()
19043 return foo(10, "", 3.14);
19045 return 0;
19047 _ACEOF
19048 rm -f conftest.$ac_objext
19049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19050 (eval $ac_compile) 2>conftest.er1
19051 ac_status=$?
19052 grep -v '^ *+' conftest.er1 >conftest.err
19053 rm -f conftest.er1
19054 cat conftest.err >&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); } &&
19057 { ac_try='test -z "$ac_c_werror_flag"
19058 || test ! -s conftest.err'
19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 (eval $ac_try) 2>&5
19061 ac_status=$?
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; } &&
19064 { ac_try='test -s conftest.$ac_objext'
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19067 ac_status=$?
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; }; then
19072 cat >>confdefs.h <<\_ACEOF
19073 #define HAVE_STDARG_PROTOTYPES 1
19074 _ACEOF
19076 works=yes
19078 else
19079 echo "$as_me: failed program was:" >&5
19080 sed 's/^/| /' conftest.$ac_ext >&5
19083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19084 echo "$as_me:$LINENO: result: $works" >&5
19085 echo "${ECHO_T}$works" >&6
19087 # check for socketpair
19088 echo "$as_me:$LINENO: checking for socketpair" >&5
19089 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6
19090 cat >conftest.$ac_ext <<_ACEOF
19091 /* confdefs.h. */
19092 _ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h. */
19097 #include <sys/types.h>
19098 #include <sys/socket.h>
19101 main ()
19103 void *x=socketpair
19105 return 0;
19107 _ACEOF
19108 rm -f conftest.$ac_objext
19109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19110 (eval $ac_compile) 2>conftest.er1
19111 ac_status=$?
19112 grep -v '^ *+' conftest.er1 >conftest.err
19113 rm -f conftest.er1
19114 cat conftest.err >&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } &&
19117 { ac_try='test -z "$ac_c_werror_flag"
19118 || test ! -s conftest.err'
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19121 ac_status=$?
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; } &&
19124 { ac_try='test -s conftest.$ac_objext'
19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19127 ac_status=$?
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; }; then
19131 cat >>confdefs.h <<\_ACEOF
19132 #define HAVE_SOCKETPAIR 1
19133 _ACEOF
19135 echo "$as_me:$LINENO: result: yes" >&5
19136 echo "${ECHO_T}yes" >&6
19137 else
19138 echo "$as_me: failed program was:" >&5
19139 sed 's/^/| /' conftest.$ac_ext >&5
19141 echo "$as_me:$LINENO: result: no" >&5
19142 echo "${ECHO_T}no" >&6
19145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19147 # check if sockaddr has sa_len member
19148 echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
19149 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
19150 cat >conftest.$ac_ext <<_ACEOF
19151 /* confdefs.h. */
19152 _ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19156 #include <sys/types.h>
19157 #include <sys/socket.h>
19159 main ()
19161 struct sockaddr x;
19162 x.sa_len = 0;
19164 return 0;
19166 _ACEOF
19167 rm -f conftest.$ac_objext
19168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19169 (eval $ac_compile) 2>conftest.er1
19170 ac_status=$?
19171 grep -v '^ *+' conftest.er1 >conftest.err
19172 rm -f conftest.er1
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } &&
19176 { ac_try='test -z "$ac_c_werror_flag"
19177 || test ! -s conftest.err'
19178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19179 (eval $ac_try) 2>&5
19180 ac_status=$?
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); }; } &&
19183 { ac_try='test -s conftest.$ac_objext'
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; }; then
19189 echo "$as_me:$LINENO: result: yes" >&5
19190 echo "${ECHO_T}yes" >&6
19192 cat >>confdefs.h <<\_ACEOF
19193 #define HAVE_SOCKADDR_SA_LEN 1
19194 _ACEOF
19196 else
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19200 echo "$as_me:$LINENO: result: no" >&5
19201 echo "${ECHO_T}no" >&6
19203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19205 va_list_is_array=no
19206 echo "$as_me:$LINENO: checking whether va_list is an array" >&5
19207 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
19208 cat >conftest.$ac_ext <<_ACEOF
19209 /* confdefs.h. */
19210 _ACEOF
19211 cat confdefs.h >>conftest.$ac_ext
19212 cat >>conftest.$ac_ext <<_ACEOF
19213 /* end confdefs.h. */
19215 #ifdef HAVE_STDARG_PROTOTYPES
19216 #include <stdarg.h>
19217 #else
19218 #include <varargs.h>
19219 #endif
19222 main ()
19224 va_list list1, list2; list1 = list2;
19226 return 0;
19228 _ACEOF
19229 rm -f conftest.$ac_objext
19230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19231 (eval $ac_compile) 2>conftest.er1
19232 ac_status=$?
19233 grep -v '^ *+' conftest.er1 >conftest.err
19234 rm -f conftest.er1
19235 cat conftest.err >&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } &&
19238 { ac_try='test -z "$ac_c_werror_flag"
19239 || test ! -s conftest.err'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; } &&
19245 { ac_try='test -s conftest.$ac_objext'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19252 else
19253 echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19258 cat >>confdefs.h <<\_ACEOF
19259 #define VA_LIST_IS_ARRAY 1
19260 _ACEOF
19262 va_list_is_array=yes
19265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19266 echo "$as_me:$LINENO: result: $va_list_is_array" >&5
19267 echo "${ECHO_T}$va_list_is_array" >&6
19269 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
19273 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
19274 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
19275 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
19277 else
19278 cat >conftest.$ac_ext <<_ACEOF
19279 /* confdefs.h. */
19280 _ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h. */
19284 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
19285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19286 #define gethostbyname_r innocuous_gethostbyname_r
19288 /* System header to define __stub macros and hopefully few prototypes,
19289 which can conflict with char gethostbyname_r (); below.
19290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19291 <limits.h> exists even on freestanding compilers. */
19293 #ifdef __STDC__
19294 # include <limits.h>
19295 #else
19296 # include <assert.h>
19297 #endif
19299 #undef gethostbyname_r
19301 /* Override any gcc2 internal prototype to avoid an error. */
19302 #ifdef __cplusplus
19303 extern "C"
19305 #endif
19306 /* We use char because int might match the return type of a gcc2
19307 builtin and then its argument prototype would still apply. */
19308 char gethostbyname_r ();
19309 /* The GNU C library defines this for functions which it implements
19310 to always fail with ENOSYS. Some functions are actually named
19311 something starting with __ and the normal name is an alias. */
19312 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
19313 choke me
19314 #else
19315 char (*f) () = gethostbyname_r;
19316 #endif
19317 #ifdef __cplusplus
19319 #endif
19322 main ()
19324 return f != gethostbyname_r;
19326 return 0;
19328 _ACEOF
19329 rm -f conftest.$ac_objext conftest$ac_exeext
19330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19331 (eval $ac_link) 2>conftest.er1
19332 ac_status=$?
19333 grep -v '^ *+' conftest.er1 >conftest.err
19334 rm -f conftest.er1
19335 cat conftest.err >&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } &&
19338 { ac_try='test -z "$ac_c_werror_flag"
19339 || test ! -s conftest.err'
19340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341 (eval $ac_try) 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; } &&
19345 { ac_try='test -s conftest$ac_exeext'
19346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347 (eval $ac_try) 2>&5
19348 ac_status=$?
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; }; then
19351 ac_cv_func_gethostbyname_r=yes
19352 else
19353 echo "$as_me: failed program was:" >&5
19354 sed 's/^/| /' conftest.$ac_ext >&5
19356 ac_cv_func_gethostbyname_r=no
19358 rm -f conftest.err conftest.$ac_objext \
19359 conftest$ac_exeext conftest.$ac_ext
19361 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
19362 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
19363 if test $ac_cv_func_gethostbyname_r = yes; then
19365 cat >>confdefs.h <<\_ACEOF
19366 #define HAVE_GETHOSTBYNAME_R 1
19367 _ACEOF
19369 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
19370 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
19371 OLD_CFLAGS=$CFLAGS
19372 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
19373 cat >conftest.$ac_ext <<_ACEOF
19374 /* confdefs.h. */
19375 _ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h. */
19380 # include <netdb.h>
19383 main ()
19386 char *name;
19387 struct hostent *he, *res;
19388 char buffer[2048];
19389 int buflen = 2048;
19390 int h_errnop;
19392 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
19395 return 0;
19397 _ACEOF
19398 rm -f conftest.$ac_objext
19399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19400 (eval $ac_compile) 2>conftest.er1
19401 ac_status=$?
19402 grep -v '^ *+' conftest.er1 >conftest.err
19403 rm -f conftest.er1
19404 cat conftest.err >&5
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); } &&
19407 { ac_try='test -z "$ac_c_werror_flag"
19408 || test ! -s conftest.err'
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19411 ac_status=$?
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; } &&
19414 { ac_try='test -s conftest.$ac_objext'
19415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19417 ac_status=$?
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; }; then
19421 cat >>confdefs.h <<\_ACEOF
19422 #define HAVE_GETHOSTBYNAME_R 1
19423 _ACEOF
19426 cat >>confdefs.h <<\_ACEOF
19427 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
19428 _ACEOF
19430 echo "$as_me:$LINENO: result: yes" >&5
19431 echo "${ECHO_T}yes" >&6
19433 else
19434 echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19438 echo "$as_me:$LINENO: result: no" >&5
19439 echo "${ECHO_T}no" >&6
19440 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
19441 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
19442 cat >conftest.$ac_ext <<_ACEOF
19443 /* confdefs.h. */
19444 _ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19449 # include <netdb.h>
19452 main ()
19455 char *name;
19456 struct hostent *he;
19457 char buffer[2048];
19458 int buflen = 2048;
19459 int h_errnop;
19461 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
19464 return 0;
19466 _ACEOF
19467 rm -f conftest.$ac_objext
19468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19469 (eval $ac_compile) 2>conftest.er1
19470 ac_status=$?
19471 grep -v '^ *+' conftest.er1 >conftest.err
19472 rm -f conftest.er1
19473 cat conftest.err >&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); } &&
19476 { ac_try='test -z "$ac_c_werror_flag"
19477 || test ! -s conftest.err'
19478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19479 (eval $ac_try) 2>&5
19480 ac_status=$?
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); }; } &&
19483 { ac_try='test -s conftest.$ac_objext'
19484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19485 (eval $ac_try) 2>&5
19486 ac_status=$?
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); }; }; then
19490 cat >>confdefs.h <<\_ACEOF
19491 #define HAVE_GETHOSTBYNAME_R 1
19492 _ACEOF
19495 cat >>confdefs.h <<\_ACEOF
19496 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
19497 _ACEOF
19499 echo "$as_me:$LINENO: result: yes" >&5
19500 echo "${ECHO_T}yes" >&6
19502 else
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19507 echo "$as_me:$LINENO: result: no" >&5
19508 echo "${ECHO_T}no" >&6
19509 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
19510 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
19511 cat >conftest.$ac_ext <<_ACEOF
19512 /* confdefs.h. */
19513 _ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19518 # include <netdb.h>
19521 main ()
19524 char *name;
19525 struct hostent *he;
19526 struct hostent_data data;
19528 (void) gethostbyname_r(name, he, &data);
19531 return 0;
19533 _ACEOF
19534 rm -f conftest.$ac_objext
19535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19536 (eval $ac_compile) 2>conftest.er1
19537 ac_status=$?
19538 grep -v '^ *+' conftest.er1 >conftest.err
19539 rm -f conftest.er1
19540 cat conftest.err >&5
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); } &&
19543 { ac_try='test -z "$ac_c_werror_flag"
19544 || test ! -s conftest.err'
19545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546 (eval $ac_try) 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; } &&
19550 { ac_try='test -s conftest.$ac_objext'
19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; }; then
19557 cat >>confdefs.h <<\_ACEOF
19558 #define HAVE_GETHOSTBYNAME_R 1
19559 _ACEOF
19562 cat >>confdefs.h <<\_ACEOF
19563 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19564 _ACEOF
19566 echo "$as_me:$LINENO: result: yes" >&5
19567 echo "${ECHO_T}yes" >&6
19569 else
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19574 echo "$as_me:$LINENO: result: no" >&5
19575 echo "${ECHO_T}no" >&6
19578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19585 CFLAGS=$OLD_CFLAGS
19587 else
19590 for ac_func in gethostbyname
19592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19593 echo "$as_me:$LINENO: checking for $ac_func" >&5
19594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19595 if eval "test \"\${$as_ac_var+set}\" = set"; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 else
19598 cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h. */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19606 #define $ac_func innocuous_$ac_func
19608 /* System header to define __stub macros and hopefully few prototypes,
19609 which can conflict with char $ac_func (); below.
19610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19611 <limits.h> exists even on freestanding compilers. */
19613 #ifdef __STDC__
19614 # include <limits.h>
19615 #else
19616 # include <assert.h>
19617 #endif
19619 #undef $ac_func
19621 /* Override any gcc2 internal prototype to avoid an error. */
19622 #ifdef __cplusplus
19623 extern "C"
19625 #endif
19626 /* We use char because int might match the return type of a gcc2
19627 builtin and then its argument prototype would still apply. */
19628 char $ac_func ();
19629 /* The GNU C library defines this for functions which it implements
19630 to always fail with ENOSYS. Some functions are actually named
19631 something starting with __ and the normal name is an alias. */
19632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19633 choke me
19634 #else
19635 char (*f) () = $ac_func;
19636 #endif
19637 #ifdef __cplusplus
19639 #endif
19642 main ()
19644 return f != $ac_func;
19646 return 0;
19648 _ACEOF
19649 rm -f conftest.$ac_objext conftest$ac_exeext
19650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19651 (eval $ac_link) 2>conftest.er1
19652 ac_status=$?
19653 grep -v '^ *+' conftest.er1 >conftest.err
19654 rm -f conftest.er1
19655 cat conftest.err >&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } &&
19658 { ac_try='test -z "$ac_c_werror_flag"
19659 || test ! -s conftest.err'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; } &&
19665 { ac_try='test -s conftest$ac_exeext'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; }; then
19671 eval "$as_ac_var=yes"
19672 else
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19676 eval "$as_ac_var=no"
19678 rm -f conftest.err conftest.$ac_objext \
19679 conftest$ac_exeext conftest.$ac_ext
19681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19683 if test `eval echo '${'$as_ac_var'}'` = yes; then
19684 cat >>confdefs.h <<_ACEOF
19685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19686 _ACEOF
19689 done
19700 # checks for system services
19701 # (none yet)
19703 # Linux requires this for correct f.p. operations
19704 echo "$as_me:$LINENO: checking for __fpu_control" >&5
19705 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
19706 if test "${ac_cv_func___fpu_control+set}" = set; then
19707 echo $ECHO_N "(cached) $ECHO_C" >&6
19708 else
19709 cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h. */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19715 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19717 #define __fpu_control innocuous___fpu_control
19719 /* System header to define __stub macros and hopefully few prototypes,
19720 which can conflict with char __fpu_control (); below.
19721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19722 <limits.h> exists even on freestanding compilers. */
19724 #ifdef __STDC__
19725 # include <limits.h>
19726 #else
19727 # include <assert.h>
19728 #endif
19730 #undef __fpu_control
19732 /* Override any gcc2 internal prototype to avoid an error. */
19733 #ifdef __cplusplus
19734 extern "C"
19736 #endif
19737 /* We use char because int might match the return type of a gcc2
19738 builtin and then its argument prototype would still apply. */
19739 char __fpu_control ();
19740 /* The GNU C library defines this for functions which it implements
19741 to always fail with ENOSYS. Some functions are actually named
19742 something starting with __ and the normal name is an alias. */
19743 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
19744 choke me
19745 #else
19746 char (*f) () = __fpu_control;
19747 #endif
19748 #ifdef __cplusplus
19750 #endif
19753 main ()
19755 return f != __fpu_control;
19757 return 0;
19759 _ACEOF
19760 rm -f conftest.$ac_objext conftest$ac_exeext
19761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19762 (eval $ac_link) 2>conftest.er1
19763 ac_status=$?
19764 grep -v '^ *+' conftest.er1 >conftest.err
19765 rm -f conftest.er1
19766 cat conftest.err >&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); } &&
19769 { ac_try='test -z "$ac_c_werror_flag"
19770 || test ! -s conftest.err'
19771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772 (eval $ac_try) 2>&5
19773 ac_status=$?
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; } &&
19776 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19782 ac_cv_func___fpu_control=yes
19783 else
19784 echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 ac_cv_func___fpu_control=no
19789 rm -f conftest.err conftest.$ac_objext \
19790 conftest$ac_exeext conftest.$ac_ext
19792 echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19793 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
19794 if test $ac_cv_func___fpu_control = yes; then
19796 else
19798 echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19799 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
19800 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19802 else
19803 ac_check_lib_save_LIBS=$LIBS
19804 LIBS="-lieee $LIBS"
19805 cat >conftest.$ac_ext <<_ACEOF
19806 /* confdefs.h. */
19807 _ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19812 /* Override any gcc2 internal prototype to avoid an error. */
19813 #ifdef __cplusplus
19814 extern "C"
19815 #endif
19816 /* We use char because int might match the return type of a gcc2
19817 builtin and then its argument prototype would still apply. */
19818 char __fpu_control ();
19820 main ()
19822 __fpu_control ();
19824 return 0;
19826 _ACEOF
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19829 (eval $ac_link) 2>conftest.er1
19830 ac_status=$?
19831 grep -v '^ *+' conftest.er1 >conftest.err
19832 rm -f conftest.er1
19833 cat conftest.err >&5
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } &&
19836 { ac_try='test -z "$ac_c_werror_flag"
19837 || test ! -s conftest.err'
19838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; } &&
19843 { ac_try='test -s conftest$ac_exeext'
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; }; then
19849 ac_cv_lib_ieee___fpu_control=yes
19850 else
19851 echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19854 ac_cv_lib_ieee___fpu_control=no
19856 rm -f conftest.err conftest.$ac_objext \
19857 conftest$ac_exeext conftest.$ac_ext
19858 LIBS=$ac_check_lib_save_LIBS
19860 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19861 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
19862 if test $ac_cv_lib_ieee___fpu_control = yes; then
19863 cat >>confdefs.h <<_ACEOF
19864 #define HAVE_LIBIEEE 1
19865 _ACEOF
19867 LIBS="-lieee $LIBS"
19875 # Check for --with-fpectl
19876 echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19877 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
19879 # Check whether --with-fpectl or --without-fpectl was given.
19880 if test "${with_fpectl+set}" = set; then
19881 withval="$with_fpectl"
19883 if test "$withval" != no
19884 then
19886 cat >>confdefs.h <<\_ACEOF
19887 #define WANT_SIGFPE_HANDLER 1
19888 _ACEOF
19890 echo "$as_me:$LINENO: result: yes" >&5
19891 echo "${ECHO_T}yes" >&6
19892 else echo "$as_me:$LINENO: result: no" >&5
19893 echo "${ECHO_T}no" >&6
19895 else
19896 echo "$as_me:$LINENO: result: no" >&5
19897 echo "${ECHO_T}no" >&6
19900 # check for --with-libm=...
19902 case $ac_sys_system in
19903 Darwin) ;;
19904 BeOS) ;;
19905 *) LIBM=-lm
19906 esac
19907 echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19908 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
19910 # Check whether --with-libm or --without-libm was given.
19911 if test "${with_libm+set}" = set; then
19912 withval="$with_libm"
19914 if test "$withval" = no
19915 then LIBM=
19916 echo "$as_me:$LINENO: result: force LIBM empty" >&5
19917 echo "${ECHO_T}force LIBM empty" >&6
19918 elif test "$withval" != yes
19919 then LIBM=$withval
19920 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19921 echo "${ECHO_T}set LIBM=\"$withval\"" >&6
19922 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19923 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19924 { (exit 1); exit 1; }; }
19926 else
19927 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19928 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
19931 # check for --with-libc=...
19933 echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19934 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
19936 # Check whether --with-libc or --without-libc was given.
19937 if test "${with_libc+set}" = set; then
19938 withval="$with_libc"
19940 if test "$withval" = no
19941 then LIBC=
19942 echo "$as_me:$LINENO: result: force LIBC empty" >&5
19943 echo "${ECHO_T}force LIBC empty" >&6
19944 elif test "$withval" != yes
19945 then LIBC=$withval
19946 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19947 echo "${ECHO_T}set LIBC=\"$withval\"" >&6
19948 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19949 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19950 { (exit 1); exit 1; }; }
19952 else
19953 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19954 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
19957 # check for hypot() in math library
19958 LIBS_SAVE=$LIBS
19959 LIBS="$LIBS $LIBM"
19961 for ac_func in hypot
19963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19964 echo "$as_me:$LINENO: checking for $ac_func" >&5
19965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19966 if eval "test \"\${$as_ac_var+set}\" = set"; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 else
19969 cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h. */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19977 #define $ac_func innocuous_$ac_func
19979 /* System header to define __stub macros and hopefully few prototypes,
19980 which can conflict with char $ac_func (); below.
19981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19982 <limits.h> exists even on freestanding compilers. */
19984 #ifdef __STDC__
19985 # include <limits.h>
19986 #else
19987 # include <assert.h>
19988 #endif
19990 #undef $ac_func
19992 /* Override any gcc2 internal prototype to avoid an error. */
19993 #ifdef __cplusplus
19994 extern "C"
19996 #endif
19997 /* We use char because int might match the return type of a gcc2
19998 builtin and then its argument prototype would still apply. */
19999 char $ac_func ();
20000 /* The GNU C library defines this for functions which it implements
20001 to always fail with ENOSYS. Some functions are actually named
20002 something starting with __ and the normal name is an alias. */
20003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20004 choke me
20005 #else
20006 char (*f) () = $ac_func;
20007 #endif
20008 #ifdef __cplusplus
20010 #endif
20013 main ()
20015 return f != $ac_func;
20017 return 0;
20019 _ACEOF
20020 rm -f conftest.$ac_objext conftest$ac_exeext
20021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20022 (eval $ac_link) 2>conftest.er1
20023 ac_status=$?
20024 grep -v '^ *+' conftest.er1 >conftest.err
20025 rm -f conftest.er1
20026 cat conftest.err >&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } &&
20029 { ac_try='test -z "$ac_c_werror_flag"
20030 || test ! -s conftest.err'
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20033 ac_status=$?
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; } &&
20036 { ac_try='test -s conftest$ac_exeext'
20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038 (eval $ac_try) 2>&5
20039 ac_status=$?
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; }; then
20042 eval "$as_ac_var=yes"
20043 else
20044 echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20047 eval "$as_ac_var=no"
20049 rm -f conftest.err conftest.$ac_objext \
20050 conftest$ac_exeext conftest.$ac_ext
20052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20054 if test `eval echo '${'$as_ac_var'}'` = yes; then
20055 cat >>confdefs.h <<_ACEOF
20056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20057 _ACEOF
20059 else
20060 case $LIBOBJS in
20061 "$ac_func.$ac_objext" | \
20062 *" $ac_func.$ac_objext" | \
20063 "$ac_func.$ac_objext "* | \
20064 *" $ac_func.$ac_objext "* ) ;;
20065 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20066 esac
20069 done
20072 LIBS=$LIBS_SAVE
20074 # check for wchar.h
20075 if test "${ac_cv_header_wchar_h+set}" = set; then
20076 echo "$as_me:$LINENO: checking for wchar.h" >&5
20077 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
20078 if test "${ac_cv_header_wchar_h+set}" = set; then
20079 echo $ECHO_N "(cached) $ECHO_C" >&6
20081 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20082 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
20083 else
20084 # Is the header compilable?
20085 echo "$as_me:$LINENO: checking wchar.h usability" >&5
20086 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
20087 cat >conftest.$ac_ext <<_ACEOF
20088 /* confdefs.h. */
20089 _ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h. */
20093 $ac_includes_default
20094 #include <wchar.h>
20095 _ACEOF
20096 rm -f conftest.$ac_objext
20097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20098 (eval $ac_compile) 2>conftest.er1
20099 ac_status=$?
20100 grep -v '^ *+' conftest.er1 >conftest.err
20101 rm -f conftest.er1
20102 cat conftest.err >&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } &&
20105 { ac_try='test -z "$ac_c_werror_flag"
20106 || test ! -s conftest.err'
20107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108 (eval $ac_try) 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; } &&
20112 { ac_try='test -s conftest.$ac_objext'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20115 ac_status=$?
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; }; then
20118 ac_header_compiler=yes
20119 else
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20123 ac_header_compiler=no
20125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20127 echo "${ECHO_T}$ac_header_compiler" >&6
20129 # Is the header present?
20130 echo "$as_me:$LINENO: checking wchar.h presence" >&5
20131 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
20132 cat >conftest.$ac_ext <<_ACEOF
20133 /* confdefs.h. */
20134 _ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h. */
20138 #include <wchar.h>
20139 _ACEOF
20140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20142 ac_status=$?
20143 grep -v '^ *+' conftest.er1 >conftest.err
20144 rm -f conftest.er1
20145 cat conftest.err >&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } >/dev/null; then
20148 if test -s conftest.err; then
20149 ac_cpp_err=$ac_c_preproc_warn_flag
20150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20151 else
20152 ac_cpp_err=
20154 else
20155 ac_cpp_err=yes
20157 if test -z "$ac_cpp_err"; then
20158 ac_header_preproc=yes
20159 else
20160 echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20163 ac_header_preproc=no
20165 rm -f conftest.err conftest.$ac_ext
20166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20167 echo "${ECHO_T}$ac_header_preproc" >&6
20169 # So? What about this header?
20170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20171 yes:no: )
20172 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
20173 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20174 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
20175 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
20176 ac_header_preproc=yes
20178 no:yes:* )
20179 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
20180 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
20181 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
20182 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
20183 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
20184 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
20185 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
20186 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
20187 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
20188 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
20189 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
20190 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
20192 cat <<\_ASBOX
20193 ## ------------------------------------------------ ##
20194 ## Report this to http://www.python.org/python-bugs ##
20195 ## ------------------------------------------------ ##
20196 _ASBOX
20198 sed "s/^/$as_me: WARNING: /" >&2
20200 esac
20201 echo "$as_me:$LINENO: checking for wchar.h" >&5
20202 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
20203 if test "${ac_cv_header_wchar_h+set}" = set; then
20204 echo $ECHO_N "(cached) $ECHO_C" >&6
20205 else
20206 ac_cv_header_wchar_h=$ac_header_preproc
20208 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
20209 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
20212 if test $ac_cv_header_wchar_h = yes; then
20215 cat >>confdefs.h <<\_ACEOF
20216 #define HAVE_WCHAR_H 1
20217 _ACEOF
20219 wchar_h="yes"
20221 else
20222 wchar_h="no"
20228 # determine wchar_t size
20229 if test "$wchar_h" = yes
20230 then
20231 echo "$as_me:$LINENO: checking for wchar_t" >&5
20232 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20233 if test "${ac_cv_type_wchar_t+set}" = set; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20235 else
20236 cat >conftest.$ac_ext <<_ACEOF
20237 /* confdefs.h. */
20238 _ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20242 #include <wchar.h>
20245 main ()
20247 if ((wchar_t *) 0)
20248 return 0;
20249 if (sizeof (wchar_t))
20250 return 0;
20252 return 0;
20254 _ACEOF
20255 rm -f conftest.$ac_objext
20256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20257 (eval $ac_compile) 2>conftest.er1
20258 ac_status=$?
20259 grep -v '^ *+' conftest.er1 >conftest.err
20260 rm -f conftest.er1
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } &&
20264 { ac_try='test -z "$ac_c_werror_flag"
20265 || test ! -s conftest.err'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20268 ac_status=$?
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; } &&
20271 { ac_try='test -s conftest.$ac_objext'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20274 ac_status=$?
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20277 ac_cv_type_wchar_t=yes
20278 else
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_cv_type_wchar_t=no
20284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20286 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20287 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20289 echo "$as_me:$LINENO: checking size of wchar_t" >&5
20290 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
20291 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
20292 echo $ECHO_N "(cached) $ECHO_C" >&6
20293 else
20294 if test "$ac_cv_type_wchar_t" = yes; then
20295 # The cast to unsigned long works around a bug in the HP C Compiler
20296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20298 # This bug is HP SR number 8606223364.
20299 if test "$cross_compiling" = yes; then
20300 # Depending upon the size, compute the lo and hi bounds.
20301 cat >conftest.$ac_ext <<_ACEOF
20302 /* confdefs.h. */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20307 #include <wchar.h>
20310 main ()
20312 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20313 test_array [0] = 0
20316 return 0;
20318 _ACEOF
20319 rm -f conftest.$ac_objext
20320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20321 (eval $ac_compile) 2>conftest.er1
20322 ac_status=$?
20323 grep -v '^ *+' conftest.er1 >conftest.err
20324 rm -f conftest.er1
20325 cat conftest.err >&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } &&
20328 { ac_try='test -z "$ac_c_werror_flag"
20329 || test ! -s conftest.err'
20330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20331 (eval $ac_try) 2>&5
20332 ac_status=$?
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); }; } &&
20335 { ac_try='test -s conftest.$ac_objext'
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20338 ac_status=$?
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; }; then
20341 ac_lo=0 ac_mid=0
20342 while :; do
20343 cat >conftest.$ac_ext <<_ACEOF
20344 /* confdefs.h. */
20345 _ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20349 #include <wchar.h>
20352 main ()
20354 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20355 test_array [0] = 0
20358 return 0;
20360 _ACEOF
20361 rm -f conftest.$ac_objext
20362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20363 (eval $ac_compile) 2>conftest.er1
20364 ac_status=$?
20365 grep -v '^ *+' conftest.er1 >conftest.err
20366 rm -f conftest.er1
20367 cat conftest.err >&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } &&
20370 { ac_try='test -z "$ac_c_werror_flag"
20371 || test ! -s conftest.err'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20374 ac_status=$?
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; } &&
20377 { ac_try='test -s conftest.$ac_objext'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20380 ac_status=$?
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; }; then
20383 ac_hi=$ac_mid; break
20384 else
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20388 ac_lo=`expr $ac_mid + 1`
20389 if test $ac_lo -le $ac_mid; then
20390 ac_lo= ac_hi=
20391 break
20393 ac_mid=`expr 2 '*' $ac_mid + 1`
20395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20396 done
20397 else
20398 echo "$as_me: failed program was:" >&5
20399 sed 's/^/| /' conftest.$ac_ext >&5
20401 cat >conftest.$ac_ext <<_ACEOF
20402 /* confdefs.h. */
20403 _ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h. */
20407 #include <wchar.h>
20410 main ()
20412 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20413 test_array [0] = 0
20416 return 0;
20418 _ACEOF
20419 rm -f conftest.$ac_objext
20420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20421 (eval $ac_compile) 2>conftest.er1
20422 ac_status=$?
20423 grep -v '^ *+' conftest.er1 >conftest.err
20424 rm -f conftest.er1
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } &&
20428 { ac_try='test -z "$ac_c_werror_flag"
20429 || test ! -s conftest.err'
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); }; } &&
20435 { ac_try='test -s conftest.$ac_objext'
20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437 (eval $ac_try) 2>&5
20438 ac_status=$?
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
20441 ac_hi=-1 ac_mid=-1
20442 while :; do
20443 cat >conftest.$ac_ext <<_ACEOF
20444 /* confdefs.h. */
20445 _ACEOF
20446 cat confdefs.h >>conftest.$ac_ext
20447 cat >>conftest.$ac_ext <<_ACEOF
20448 /* end confdefs.h. */
20449 #include <wchar.h>
20452 main ()
20454 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20455 test_array [0] = 0
20458 return 0;
20460 _ACEOF
20461 rm -f conftest.$ac_objext
20462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20463 (eval $ac_compile) 2>conftest.er1
20464 ac_status=$?
20465 grep -v '^ *+' conftest.er1 >conftest.err
20466 rm -f conftest.er1
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } &&
20470 { ac_try='test -z "$ac_c_werror_flag"
20471 || test ! -s conftest.err'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20474 ac_status=$?
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; } &&
20477 { ac_try='test -s conftest.$ac_objext'
20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20480 ac_status=$?
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; }; then
20483 ac_lo=$ac_mid; break
20484 else
20485 echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20488 ac_hi=`expr '(' $ac_mid ')' - 1`
20489 if test $ac_mid -le $ac_hi; then
20490 ac_lo= ac_hi=
20491 break
20493 ac_mid=`expr 2 '*' $ac_mid`
20495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20496 done
20497 else
20498 echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.$ac_ext >&5
20501 ac_lo= ac_hi=
20503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20506 # Binary search between lo and hi bounds.
20507 while test "x$ac_lo" != "x$ac_hi"; do
20508 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20509 cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h. */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20515 #include <wchar.h>
20518 main ()
20520 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20521 test_array [0] = 0
20524 return 0;
20526 _ACEOF
20527 rm -f conftest.$ac_objext
20528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20529 (eval $ac_compile) 2>conftest.er1
20530 ac_status=$?
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } &&
20536 { ac_try='test -z "$ac_c_werror_flag"
20537 || test ! -s conftest.err'
20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539 (eval $ac_try) 2>&5
20540 ac_status=$?
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; } &&
20543 { ac_try='test -s conftest.$ac_objext'
20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545 (eval $ac_try) 2>&5
20546 ac_status=$?
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; }; then
20549 ac_hi=$ac_mid
20550 else
20551 echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20554 ac_lo=`expr '(' $ac_mid ')' + 1`
20556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20557 done
20558 case $ac_lo in
20559 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20560 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20561 See \`config.log' for more details." >&5
20562 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20563 See \`config.log' for more details." >&2;}
20564 { (exit 1); exit 1; }; } ;;
20565 esac
20566 else
20567 if test "$cross_compiling" = yes; then
20568 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20569 See \`config.log' for more details." >&5
20570 echo "$as_me: error: cannot run test program while cross compiling
20571 See \`config.log' for more details." >&2;}
20572 { (exit 1); exit 1; }; }
20573 else
20574 cat >conftest.$ac_ext <<_ACEOF
20575 /* confdefs.h. */
20576 _ACEOF
20577 cat confdefs.h >>conftest.$ac_ext
20578 cat >>conftest.$ac_ext <<_ACEOF
20579 /* end confdefs.h. */
20580 #include <wchar.h>
20582 long longval () { return (long) (sizeof (wchar_t)); }
20583 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20584 #include <stdio.h>
20585 #include <stdlib.h>
20587 main ()
20590 FILE *f = fopen ("conftest.val", "w");
20591 if (! f)
20592 exit (1);
20593 if (((long) (sizeof (wchar_t))) < 0)
20595 long i = longval ();
20596 if (i != ((long) (sizeof (wchar_t))))
20597 exit (1);
20598 fprintf (f, "%ld\n", i);
20600 else
20602 unsigned long i = ulongval ();
20603 if (i != ((long) (sizeof (wchar_t))))
20604 exit (1);
20605 fprintf (f, "%lu\n", i);
20607 exit (ferror (f) || fclose (f) != 0);
20610 return 0;
20612 _ACEOF
20613 rm -f conftest$ac_exeext
20614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20615 (eval $ac_link) 2>&5
20616 ac_status=$?
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20621 ac_status=$?
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
20624 ac_cv_sizeof_wchar_t=`cat conftest.val`
20625 else
20626 echo "$as_me: program exited with status $ac_status" >&5
20627 echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20630 ( exit $ac_status )
20631 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20632 See \`config.log' for more details." >&5
20633 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20634 See \`config.log' for more details." >&2;}
20635 { (exit 1); exit 1; }; }
20637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20640 rm -f conftest.val
20641 else
20642 ac_cv_sizeof_wchar_t=0
20645 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20646 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
20647 cat >>confdefs.h <<_ACEOF
20648 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20649 _ACEOF
20654 echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
20655 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6
20656 have_ucs4_tcl=no
20657 cat >conftest.$ac_ext <<_ACEOF
20658 /* confdefs.h. */
20659 _ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20664 #include <tcl.h>
20665 #if TCL_UTF_MAX != 6
20666 # error "NOT UCS4_TCL"
20667 #endif
20669 main ()
20673 return 0;
20675 _ACEOF
20676 rm -f conftest.$ac_objext
20677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20678 (eval $ac_compile) 2>conftest.er1
20679 ac_status=$?
20680 grep -v '^ *+' conftest.er1 >conftest.err
20681 rm -f conftest.er1
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } &&
20685 { ac_try='test -z "$ac_c_werror_flag"
20686 || test ! -s conftest.err'
20687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688 (eval $ac_try) 2>&5
20689 ac_status=$?
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; } &&
20692 { ac_try='test -s conftest.$ac_objext'
20693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694 (eval $ac_try) 2>&5
20695 ac_status=$?
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; }; then
20700 cat >>confdefs.h <<\_ACEOF
20701 #define HAVE_UCS4_TCL 1
20702 _ACEOF
20704 have_ucs4_tcl=yes
20706 else
20707 echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.$ac_ext >&5
20711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20712 echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
20713 echo "${ECHO_T}$have_ucs4_tcl" >&6
20715 # check whether wchar_t is signed or not
20716 if test "$wchar_h" = yes
20717 then
20718 # check whether wchar_t is signed or not
20719 echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
20720 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6
20721 if test "${ac_cv_wchar_t_signed+set}" = set; then
20722 echo $ECHO_N "(cached) $ECHO_C" >&6
20723 else
20725 if test "$cross_compiling" = yes; then
20726 ac_cv_wchar_t_signed=yes
20727 else
20728 cat >conftest.$ac_ext <<_ACEOF
20729 /* confdefs.h. */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20735 #include <wchar.h>
20736 int main()
20738 /* Success: exit code 0 */
20739 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20742 _ACEOF
20743 rm -f conftest$ac_exeext
20744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20745 (eval $ac_link) 2>&5
20746 ac_status=$?
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20751 ac_status=$?
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; }; then
20754 ac_cv_wchar_t_signed=yes
20755 else
20756 echo "$as_me: program exited with status $ac_status" >&5
20757 echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20760 ( exit $ac_status )
20761 ac_cv_wchar_t_signed=no
20763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20767 echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
20768 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6
20771 echo "$as_me:$LINENO: checking what type to use for unicode" >&5
20772 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
20773 # Check whether --enable-unicode or --disable-unicode was given.
20774 if test "${enable_unicode+set}" = set; then
20775 enableval="$enable_unicode"
20777 else
20778 enable_unicode=yes
20781 if test $enable_unicode = yes
20782 then
20783 # Without any arguments, Py_UNICODE defaults to two-byte mode
20784 case "$have_ucs4_tcl" in
20785 yes) enable_unicode="ucs4"
20787 *) enable_unicode="ucs2"
20789 esac
20794 case "$enable_unicode" in
20795 ucs2) unicode_size="2"
20796 cat >>confdefs.h <<\_ACEOF
20797 #define Py_UNICODE_SIZE 2
20798 _ACEOF
20801 ucs4) unicode_size="4"
20802 cat >>confdefs.h <<\_ACEOF
20803 #define Py_UNICODE_SIZE 4
20804 _ACEOF
20807 esac
20813 if test "$enable_unicode" = "no"
20814 then
20815 UNICODE_OBJS=""
20816 echo "$as_me:$LINENO: result: not used" >&5
20817 echo "${ECHO_T}not used" >&6
20818 else
20819 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
20821 cat >>confdefs.h <<\_ACEOF
20822 #define Py_USING_UNICODE 1
20823 _ACEOF
20826 # wchar_t is only usable if it maps to an unsigned type
20827 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20828 -a "$ac_cv_wchar_t_signed" = "no"
20829 then
20830 PY_UNICODE_TYPE="wchar_t"
20832 cat >>confdefs.h <<\_ACEOF
20833 #define HAVE_USABLE_WCHAR_T 1
20834 _ACEOF
20836 cat >>confdefs.h <<\_ACEOF
20837 #define PY_UNICODE_TYPE wchar_t
20838 _ACEOF
20840 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20841 then
20842 PY_UNICODE_TYPE="unsigned short"
20843 cat >>confdefs.h <<\_ACEOF
20844 #define PY_UNICODE_TYPE unsigned short
20845 _ACEOF
20847 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20848 then
20849 PY_UNICODE_TYPE="unsigned long"
20850 cat >>confdefs.h <<\_ACEOF
20851 #define PY_UNICODE_TYPE unsigned long
20852 _ACEOF
20854 else
20855 PY_UNICODE_TYPE="no type found"
20857 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
20858 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
20861 # check for endianness
20862 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20863 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20864 if test "${ac_cv_c_bigendian+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20866 else
20867 # See if sys/param.h defines the BYTE_ORDER macro.
20868 cat >conftest.$ac_ext <<_ACEOF
20869 /* confdefs.h. */
20870 _ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h. */
20874 #include <sys/types.h>
20875 #include <sys/param.h>
20878 main ()
20880 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20881 bogus endian macros
20882 #endif
20885 return 0;
20887 _ACEOF
20888 rm -f conftest.$ac_objext
20889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20890 (eval $ac_compile) 2>conftest.er1
20891 ac_status=$?
20892 grep -v '^ *+' conftest.er1 >conftest.err
20893 rm -f conftest.er1
20894 cat conftest.err >&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } &&
20897 { ac_try='test -z "$ac_c_werror_flag"
20898 || test ! -s conftest.err'
20899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900 (eval $ac_try) 2>&5
20901 ac_status=$?
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; } &&
20904 { ac_try='test -s conftest.$ac_objext'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
20910 # It does; now see whether it defined to BIG_ENDIAN or not.
20911 cat >conftest.$ac_ext <<_ACEOF
20912 /* confdefs.h. */
20913 _ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h. */
20917 #include <sys/types.h>
20918 #include <sys/param.h>
20921 main ()
20923 #if BYTE_ORDER != BIG_ENDIAN
20924 not big endian
20925 #endif
20928 return 0;
20930 _ACEOF
20931 rm -f conftest.$ac_objext
20932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20933 (eval $ac_compile) 2>conftest.er1
20934 ac_status=$?
20935 grep -v '^ *+' conftest.er1 >conftest.err
20936 rm -f conftest.er1
20937 cat conftest.err >&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } &&
20940 { ac_try='test -z "$ac_c_werror_flag"
20941 || test ! -s conftest.err'
20942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20943 (eval $ac_try) 2>&5
20944 ac_status=$?
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; } &&
20947 { ac_try='test -s conftest.$ac_objext'
20948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20949 (eval $ac_try) 2>&5
20950 ac_status=$?
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; }; then
20953 ac_cv_c_bigendian=yes
20954 else
20955 echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20958 ac_cv_c_bigendian=no
20960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20961 else
20962 echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20965 # It does not; compile a test program.
20966 if test "$cross_compiling" = yes; then
20967 # try to guess the endianness by grepping values into an object file
20968 ac_cv_c_bigendian=unknown
20969 cat >conftest.$ac_ext <<_ACEOF
20970 /* confdefs.h. */
20971 _ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20976 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20977 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20978 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20979 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20980 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20982 main ()
20984 _ascii (); _ebcdic ();
20986 return 0;
20988 _ACEOF
20989 rm -f conftest.$ac_objext
20990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20991 (eval $ac_compile) 2>conftest.er1
20992 ac_status=$?
20993 grep -v '^ *+' conftest.er1 >conftest.err
20994 rm -f conftest.er1
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } &&
20998 { ac_try='test -z "$ac_c_werror_flag"
20999 || test ! -s conftest.err'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21002 ac_status=$?
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; } &&
21005 { ac_try='test -s conftest.$ac_objext'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21008 ac_status=$?
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; }; then
21011 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21012 ac_cv_c_bigendian=yes
21014 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21015 if test "$ac_cv_c_bigendian" = unknown; then
21016 ac_cv_c_bigendian=no
21017 else
21018 # finding both strings is unlikely to happen, but who knows?
21019 ac_cv_c_bigendian=unknown
21022 else
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21028 else
21029 cat >conftest.$ac_ext <<_ACEOF
21030 /* confdefs.h. */
21031 _ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21036 main ()
21038 /* Are we little or big endian? From Harbison&Steele. */
21039 union
21041 long l;
21042 char c[sizeof (long)];
21043 } u;
21044 u.l = 1;
21045 exit (u.c[sizeof (long) - 1] == 1);
21047 _ACEOF
21048 rm -f conftest$ac_exeext
21049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21050 (eval $ac_link) 2>&5
21051 ac_status=$?
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21055 (eval $ac_try) 2>&5
21056 ac_status=$?
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); }; }; then
21059 ac_cv_c_bigendian=no
21060 else
21061 echo "$as_me: program exited with status $ac_status" >&5
21062 echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21065 ( exit $ac_status )
21066 ac_cv_c_bigendian=yes
21068 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21073 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21074 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21075 case $ac_cv_c_bigendian in
21076 yes)
21078 cat >>confdefs.h <<\_ACEOF
21079 #define WORDS_BIGENDIAN 1
21080 _ACEOF
21085 { { echo "$as_me:$LINENO: error: unknown endianness
21086 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21087 echo "$as_me: error: unknown endianness
21088 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21089 { (exit 1); exit 1; }; } ;;
21090 esac
21095 # Check whether right shifting a negative integer extends the sign bit
21096 # or fills with zeros (like the Cray J90, according to Tim Peters).
21097 echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
21098 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
21099 if test "${ac_cv_rshift_extends_sign+set}" = set; then
21100 echo $ECHO_N "(cached) $ECHO_C" >&6
21101 else
21103 if test "$cross_compiling" = yes; then
21104 ac_cv_rshift_extends_sign=yes
21105 else
21106 cat >conftest.$ac_ext <<_ACEOF
21107 /* confdefs.h. */
21108 _ACEOF
21109 cat confdefs.h >>conftest.$ac_ext
21110 cat >>conftest.$ac_ext <<_ACEOF
21111 /* end confdefs.h. */
21113 int main()
21115 exit(((-1)>>3 == -1) ? 0 : 1);
21118 _ACEOF
21119 rm -f conftest$ac_exeext
21120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21121 (eval $ac_link) 2>&5
21122 ac_status=$?
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126 (eval $ac_try) 2>&5
21127 ac_status=$?
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); }; }; then
21130 ac_cv_rshift_extends_sign=yes
21131 else
21132 echo "$as_me: program exited with status $ac_status" >&5
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21136 ( exit $ac_status )
21137 ac_cv_rshift_extends_sign=no
21139 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21143 echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
21144 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
21145 if test "$ac_cv_rshift_extends_sign" = no
21146 then
21148 cat >>confdefs.h <<\_ACEOF
21149 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
21150 _ACEOF
21154 # check for getc_unlocked and related locking functions
21155 echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
21156 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
21157 if test "${ac_cv_have_getc_unlocked+set}" = set; then
21158 echo $ECHO_N "(cached) $ECHO_C" >&6
21159 else
21161 cat >conftest.$ac_ext <<_ACEOF
21162 /* confdefs.h. */
21163 _ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h. */
21167 #include <stdio.h>
21169 main ()
21172 FILE *f = fopen("/dev/null", "r");
21173 flockfile(f);
21174 getc_unlocked(f);
21175 funlockfile(f);
21178 return 0;
21180 _ACEOF
21181 rm -f conftest.$ac_objext conftest$ac_exeext
21182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21183 (eval $ac_link) 2>conftest.er1
21184 ac_status=$?
21185 grep -v '^ *+' conftest.er1 >conftest.err
21186 rm -f conftest.er1
21187 cat conftest.err >&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
21190 { ac_try='test -z "$ac_c_werror_flag"
21191 || test ! -s conftest.err'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; } &&
21197 { ac_try='test -s conftest$ac_exeext'
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
21203 ac_cv_have_getc_unlocked=yes
21204 else
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21208 ac_cv_have_getc_unlocked=no
21210 rm -f conftest.err conftest.$ac_objext \
21211 conftest$ac_exeext conftest.$ac_ext
21214 echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
21215 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
21216 if test "$ac_cv_have_getc_unlocked" = yes
21217 then
21219 cat >>confdefs.h <<\_ACEOF
21220 #define HAVE_GETC_UNLOCKED 1
21221 _ACEOF
21225 # check where readline lives
21226 # save the value of LIBS so we don't actually link Python with readline
21227 LIBS_no_readline=$LIBS
21229 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
21230 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
21231 if test "${ac_cv_lib_readline_readline+set}" = set; then
21232 echo $ECHO_N "(cached) $ECHO_C" >&6
21233 else
21234 ac_check_lib_save_LIBS=$LIBS
21235 LIBS="-lreadline $LIBS"
21236 cat >conftest.$ac_ext <<_ACEOF
21237 /* confdefs.h. */
21238 _ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h. */
21243 /* Override any gcc2 internal prototype to avoid an error. */
21244 #ifdef __cplusplus
21245 extern "C"
21246 #endif
21247 /* We use char because int might match the return type of a gcc2
21248 builtin and then its argument prototype would still apply. */
21249 char readline ();
21251 main ()
21253 readline ();
21255 return 0;
21257 _ACEOF
21258 rm -f conftest.$ac_objext conftest$ac_exeext
21259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21260 (eval $ac_link) 2>conftest.er1
21261 ac_status=$?
21262 grep -v '^ *+' conftest.er1 >conftest.err
21263 rm -f conftest.er1
21264 cat conftest.err >&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } &&
21267 { ac_try='test -z "$ac_c_werror_flag"
21268 || test ! -s conftest.err'
21269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270 (eval $ac_try) 2>&5
21271 ac_status=$?
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; } &&
21274 { ac_try='test -s conftest$ac_exeext'
21275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21276 (eval $ac_try) 2>&5
21277 ac_status=$?
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); }; }; then
21280 ac_cv_lib_readline_readline=yes
21281 else
21282 echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21285 ac_cv_lib_readline_readline=no
21287 rm -f conftest.err conftest.$ac_objext \
21288 conftest$ac_exeext conftest.$ac_ext
21289 LIBS=$ac_check_lib_save_LIBS
21291 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
21292 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
21293 if test $ac_cv_lib_readline_readline = yes; then
21294 cat >>confdefs.h <<_ACEOF
21295 #define HAVE_LIBREADLINE 1
21296 _ACEOF
21298 LIBS="-lreadline $LIBS"
21302 if test "$ac_cv_have_readline_readline" = no
21303 then
21305 echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
21306 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6
21307 if test "${ac_cv_lib_termcap_readline+set}" = set; then
21308 echo $ECHO_N "(cached) $ECHO_C" >&6
21309 else
21310 ac_check_lib_save_LIBS=$LIBS
21311 LIBS="-ltermcap $LIBS"
21312 cat >conftest.$ac_ext <<_ACEOF
21313 /* confdefs.h. */
21314 _ACEOF
21315 cat confdefs.h >>conftest.$ac_ext
21316 cat >>conftest.$ac_ext <<_ACEOF
21317 /* end confdefs.h. */
21319 /* Override any gcc2 internal prototype to avoid an error. */
21320 #ifdef __cplusplus
21321 extern "C"
21322 #endif
21323 /* We use char because int might match the return type of a gcc2
21324 builtin and then its argument prototype would still apply. */
21325 char readline ();
21327 main ()
21329 readline ();
21331 return 0;
21333 _ACEOF
21334 rm -f conftest.$ac_objext conftest$ac_exeext
21335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21336 (eval $ac_link) 2>conftest.er1
21337 ac_status=$?
21338 grep -v '^ *+' conftest.er1 >conftest.err
21339 rm -f conftest.er1
21340 cat conftest.err >&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); } &&
21343 { ac_try='test -z "$ac_c_werror_flag"
21344 || test ! -s conftest.err'
21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346 (eval $ac_try) 2>&5
21347 ac_status=$?
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); }; } &&
21350 { ac_try='test -s conftest$ac_exeext'
21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21353 ac_status=$?
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; }; then
21356 ac_cv_lib_termcap_readline=yes
21357 else
21358 echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21361 ac_cv_lib_termcap_readline=no
21363 rm -f conftest.err conftest.$ac_objext \
21364 conftest$ac_exeext conftest.$ac_ext
21365 LIBS=$ac_check_lib_save_LIBS
21367 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
21368 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6
21369 if test $ac_cv_lib_termcap_readline = yes; then
21370 cat >>confdefs.h <<_ACEOF
21371 #define HAVE_LIBTERMCAP 1
21372 _ACEOF
21374 LIBS="-ltermcap $LIBS"
21380 # check for readline 2.1
21381 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
21382 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
21383 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
21384 echo $ECHO_N "(cached) $ECHO_C" >&6
21385 else
21386 ac_check_lib_save_LIBS=$LIBS
21387 LIBS="-lreadline $LIBS"
21388 cat >conftest.$ac_ext <<_ACEOF
21389 /* confdefs.h. */
21390 _ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h. */
21395 /* Override any gcc2 internal prototype to avoid an error. */
21396 #ifdef __cplusplus
21397 extern "C"
21398 #endif
21399 /* We use char because int might match the return type of a gcc2
21400 builtin and then its argument prototype would still apply. */
21401 char rl_callback_handler_install ();
21403 main ()
21405 rl_callback_handler_install ();
21407 return 0;
21409 _ACEOF
21410 rm -f conftest.$ac_objext conftest$ac_exeext
21411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21412 (eval $ac_link) 2>conftest.er1
21413 ac_status=$?
21414 grep -v '^ *+' conftest.er1 >conftest.err
21415 rm -f conftest.er1
21416 cat conftest.err >&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); } &&
21419 { ac_try='test -z "$ac_c_werror_flag"
21420 || test ! -s conftest.err'
21421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422 (eval $ac_try) 2>&5
21423 ac_status=$?
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); }; } &&
21426 { ac_try='test -s conftest$ac_exeext'
21427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21428 (eval $ac_try) 2>&5
21429 ac_status=$?
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); }; }; then
21432 ac_cv_lib_readline_rl_callback_handler_install=yes
21433 else
21434 echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21437 ac_cv_lib_readline_rl_callback_handler_install=no
21439 rm -f conftest.err conftest.$ac_objext \
21440 conftest$ac_exeext conftest.$ac_ext
21441 LIBS=$ac_check_lib_save_LIBS
21443 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
21444 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
21445 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
21447 cat >>confdefs.h <<\_ACEOF
21448 #define HAVE_RL_CALLBACK 1
21449 _ACEOF
21454 # check for readline 2.2
21455 cat >conftest.$ac_ext <<_ACEOF
21456 /* confdefs.h. */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 #include <readline/readline.h>
21462 _ACEOF
21463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21465 ac_status=$?
21466 grep -v '^ *+' conftest.er1 >conftest.err
21467 rm -f conftest.er1
21468 cat conftest.err >&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); } >/dev/null; then
21471 if test -s conftest.err; then
21472 ac_cpp_err=$ac_c_preproc_warn_flag
21473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21474 else
21475 ac_cpp_err=
21477 else
21478 ac_cpp_err=yes
21480 if test -z "$ac_cpp_err"; then
21481 have_readline=yes
21482 else
21483 echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21486 have_readline=no
21488 rm -f conftest.err conftest.$ac_ext
21489 if test $have_readline = yes
21490 then
21491 cat >conftest.$ac_ext <<_ACEOF
21492 /* confdefs.h. */
21493 _ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h. */
21497 #include <readline/readline.h>
21499 _ACEOF
21500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21501 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
21503 cat >>confdefs.h <<\_ACEOF
21504 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21505 _ACEOF
21508 rm -f conftest*
21512 # check for readline 4.0
21513 echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
21514 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
21515 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21517 else
21518 ac_check_lib_save_LIBS=$LIBS
21519 LIBS="-lreadline $LIBS"
21520 cat >conftest.$ac_ext <<_ACEOF
21521 /* confdefs.h. */
21522 _ACEOF
21523 cat confdefs.h >>conftest.$ac_ext
21524 cat >>conftest.$ac_ext <<_ACEOF
21525 /* end confdefs.h. */
21527 /* Override any gcc2 internal prototype to avoid an error. */
21528 #ifdef __cplusplus
21529 extern "C"
21530 #endif
21531 /* We use char because int might match the return type of a gcc2
21532 builtin and then its argument prototype would still apply. */
21533 char rl_pre_input_hook ();
21535 main ()
21537 rl_pre_input_hook ();
21539 return 0;
21541 _ACEOF
21542 rm -f conftest.$ac_objext conftest$ac_exeext
21543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21544 (eval $ac_link) 2>conftest.er1
21545 ac_status=$?
21546 grep -v '^ *+' conftest.er1 >conftest.err
21547 rm -f conftest.er1
21548 cat conftest.err >&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } &&
21551 { ac_try='test -z "$ac_c_werror_flag"
21552 || test ! -s conftest.err'
21553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21554 (eval $ac_try) 2>&5
21555 ac_status=$?
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); }; } &&
21558 { ac_try='test -s conftest$ac_exeext'
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21561 ac_status=$?
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; }; then
21564 ac_cv_lib_readline_rl_pre_input_hook=yes
21565 else
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21569 ac_cv_lib_readline_rl_pre_input_hook=no
21571 rm -f conftest.err conftest.$ac_objext \
21572 conftest$ac_exeext conftest.$ac_ext
21573 LIBS=$ac_check_lib_save_LIBS
21575 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21576 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
21577 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21579 cat >>confdefs.h <<\_ACEOF
21580 #define HAVE_RL_PRE_INPUT_HOOK 1
21581 _ACEOF
21586 # check for readline 4.2
21587 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
21588 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
21589 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21590 echo $ECHO_N "(cached) $ECHO_C" >&6
21591 else
21592 ac_check_lib_save_LIBS=$LIBS
21593 LIBS="-lreadline $LIBS"
21594 cat >conftest.$ac_ext <<_ACEOF
21595 /* confdefs.h. */
21596 _ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21601 /* Override any gcc2 internal prototype to avoid an error. */
21602 #ifdef __cplusplus
21603 extern "C"
21604 #endif
21605 /* We use char because int might match the return type of a gcc2
21606 builtin and then its argument prototype would still apply. */
21607 char rl_completion_matches ();
21609 main ()
21611 rl_completion_matches ();
21613 return 0;
21615 _ACEOF
21616 rm -f conftest.$ac_objext conftest$ac_exeext
21617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21618 (eval $ac_link) 2>conftest.er1
21619 ac_status=$?
21620 grep -v '^ *+' conftest.er1 >conftest.err
21621 rm -f conftest.er1
21622 cat conftest.err >&5
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } &&
21625 { ac_try='test -z "$ac_c_werror_flag"
21626 || test ! -s conftest.err'
21627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628 (eval $ac_try) 2>&5
21629 ac_status=$?
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); }; } &&
21632 { ac_try='test -s conftest$ac_exeext'
21633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634 (eval $ac_try) 2>&5
21635 ac_status=$?
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; }; then
21638 ac_cv_lib_readline_rl_completion_matches=yes
21639 else
21640 echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21643 ac_cv_lib_readline_rl_completion_matches=no
21645 rm -f conftest.err conftest.$ac_objext \
21646 conftest$ac_exeext conftest.$ac_ext
21647 LIBS=$ac_check_lib_save_LIBS
21649 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
21650 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
21651 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21653 cat >>confdefs.h <<\_ACEOF
21654 #define HAVE_RL_COMPLETION_MATCHES 1
21655 _ACEOF
21660 # also in readline 4.2
21661 cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h. */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21667 #include <readline/readline.h>
21668 _ACEOF
21669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21671 ac_status=$?
21672 grep -v '^ *+' conftest.er1 >conftest.err
21673 rm -f conftest.er1
21674 cat conftest.err >&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); } >/dev/null; then
21677 if test -s conftest.err; then
21678 ac_cpp_err=$ac_c_preproc_warn_flag
21679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21680 else
21681 ac_cpp_err=
21683 else
21684 ac_cpp_err=yes
21686 if test -z "$ac_cpp_err"; then
21687 have_readline=yes
21688 else
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21692 have_readline=no
21694 rm -f conftest.err conftest.$ac_ext
21695 if test $have_readline = yes
21696 then
21697 cat >conftest.$ac_ext <<_ACEOF
21698 /* confdefs.h. */
21699 _ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 #include <readline/readline.h>
21705 _ACEOF
21706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21707 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
21709 cat >>confdefs.h <<\_ACEOF
21710 #define HAVE_RL_CATCH_SIGNAL 1
21711 _ACEOF
21714 rm -f conftest*
21718 # End of readline checks: restore LIBS
21719 LIBS=$LIBS_no_readline
21721 echo "$as_me:$LINENO: checking for broken nice()" >&5
21722 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
21723 if test "${ac_cv_broken_nice+set}" = set; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21725 else
21727 if test "$cross_compiling" = yes; then
21728 ac_cv_broken_nice=no
21729 else
21730 cat >conftest.$ac_ext <<_ACEOF
21731 /* confdefs.h. */
21732 _ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h. */
21737 int main()
21739 int val1 = nice(1);
21740 if (val1 != -1 && val1 == nice(2))
21741 exit(0);
21742 exit(1);
21745 _ACEOF
21746 rm -f conftest$ac_exeext
21747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21748 (eval $ac_link) 2>&5
21749 ac_status=$?
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21754 ac_status=$?
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; }; then
21757 ac_cv_broken_nice=yes
21758 else
21759 echo "$as_me: program exited with status $ac_status" >&5
21760 echo "$as_me: failed program was:" >&5
21761 sed 's/^/| /' conftest.$ac_ext >&5
21763 ( exit $ac_status )
21764 ac_cv_broken_nice=no
21766 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21770 echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
21771 echo "${ECHO_T}$ac_cv_broken_nice" >&6
21772 if test "$ac_cv_broken_nice" = yes
21773 then
21775 cat >>confdefs.h <<\_ACEOF
21776 #define HAVE_BROKEN_NICE 1
21777 _ACEOF
21781 echo "$as_me:$LINENO: checking for broken poll()" >&5
21782 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6
21783 if test "$cross_compiling" = yes; then
21784 ac_cv_broken_poll=no
21785 else
21786 cat >conftest.$ac_ext <<_ACEOF
21787 /* confdefs.h. */
21788 _ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21793 #include <poll.h>
21795 int main (void)
21797 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21799 close (42);
21801 int poll_test = poll (&poll_struct, 1, 0);
21803 if (poll_test < 0)
21805 exit(0);
21807 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21809 exit(0);
21811 else
21813 exit(1);
21817 _ACEOF
21818 rm -f conftest$ac_exeext
21819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21820 (eval $ac_link) 2>&5
21821 ac_status=$?
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21825 (eval $ac_try) 2>&5
21826 ac_status=$?
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); }; }; then
21829 ac_cv_broken_poll=yes
21830 else
21831 echo "$as_me: program exited with status $ac_status" >&5
21832 echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21835 ( exit $ac_status )
21836 ac_cv_broken_poll=no
21838 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21840 echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
21841 echo "${ECHO_T}$ac_cv_broken_poll" >&6
21842 if test "$ac_cv_broken_poll" = yes
21843 then
21845 cat >>confdefs.h <<\_ACEOF
21846 #define HAVE_BROKEN_POLL 1
21847 _ACEOF
21851 # Before we can test tzset, we need to check if struct tm has a tm_zone
21852 # (which is not required by ISO C or UNIX spec) and/or if we support
21853 # tzname[]
21854 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21855 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21856 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21858 else
21859 cat >conftest.$ac_ext <<_ACEOF
21860 /* confdefs.h. */
21861 _ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h. */
21865 #include <sys/types.h>
21866 #include <$ac_cv_struct_tm>
21870 main ()
21872 static struct tm ac_aggr;
21873 if (ac_aggr.tm_zone)
21874 return 0;
21876 return 0;
21878 _ACEOF
21879 rm -f conftest.$ac_objext
21880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21881 (eval $ac_compile) 2>conftest.er1
21882 ac_status=$?
21883 grep -v '^ *+' conftest.er1 >conftest.err
21884 rm -f conftest.er1
21885 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } &&
21888 { ac_try='test -z "$ac_c_werror_flag"
21889 || test ! -s conftest.err'
21890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891 (eval $ac_try) 2>&5
21892 ac_status=$?
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; } &&
21895 { ac_try='test -s conftest.$ac_objext'
21896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897 (eval $ac_try) 2>&5
21898 ac_status=$?
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); }; }; then
21901 ac_cv_member_struct_tm_tm_zone=yes
21902 else
21903 echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21906 cat >conftest.$ac_ext <<_ACEOF
21907 /* confdefs.h. */
21908 _ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h. */
21912 #include <sys/types.h>
21913 #include <$ac_cv_struct_tm>
21917 main ()
21919 static struct tm ac_aggr;
21920 if (sizeof ac_aggr.tm_zone)
21921 return 0;
21923 return 0;
21925 _ACEOF
21926 rm -f conftest.$ac_objext
21927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21928 (eval $ac_compile) 2>conftest.er1
21929 ac_status=$?
21930 grep -v '^ *+' conftest.er1 >conftest.err
21931 rm -f conftest.er1
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } &&
21935 { ac_try='test -z "$ac_c_werror_flag"
21936 || test ! -s conftest.err'
21937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21938 (eval $ac_try) 2>&5
21939 ac_status=$?
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; } &&
21942 { ac_try='test -s conftest.$ac_objext'
21943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21944 (eval $ac_try) 2>&5
21945 ac_status=$?
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); }; }; then
21948 ac_cv_member_struct_tm_tm_zone=yes
21949 else
21950 echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21953 ac_cv_member_struct_tm_tm_zone=no
21955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21959 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21960 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21961 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21963 cat >>confdefs.h <<_ACEOF
21964 #define HAVE_STRUCT_TM_TM_ZONE 1
21965 _ACEOF
21970 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21972 cat >>confdefs.h <<\_ACEOF
21973 #define HAVE_TM_ZONE 1
21974 _ACEOF
21976 else
21977 echo "$as_me:$LINENO: checking for tzname" >&5
21978 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21979 if test "${ac_cv_var_tzname+set}" = set; then
21980 echo $ECHO_N "(cached) $ECHO_C" >&6
21981 else
21982 cat >conftest.$ac_ext <<_ACEOF
21983 /* confdefs.h. */
21984 _ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h. */
21988 #include <time.h>
21989 #ifndef tzname /* For SGI. */
21990 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21991 #endif
21994 main ()
21996 atoi(*tzname);
21998 return 0;
22000 _ACEOF
22001 rm -f conftest.$ac_objext conftest$ac_exeext
22002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22003 (eval $ac_link) 2>conftest.er1
22004 ac_status=$?
22005 grep -v '^ *+' conftest.er1 >conftest.err
22006 rm -f conftest.er1
22007 cat conftest.err >&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); } &&
22010 { ac_try='test -z "$ac_c_werror_flag"
22011 || test ! -s conftest.err'
22012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013 (eval $ac_try) 2>&5
22014 ac_status=$?
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); }; } &&
22017 { ac_try='test -s conftest$ac_exeext'
22018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019 (eval $ac_try) 2>&5
22020 ac_status=$?
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; }; then
22023 ac_cv_var_tzname=yes
22024 else
22025 echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22028 ac_cv_var_tzname=no
22030 rm -f conftest.err conftest.$ac_objext \
22031 conftest$ac_exeext conftest.$ac_ext
22033 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22034 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22035 if test $ac_cv_var_tzname = yes; then
22037 cat >>confdefs.h <<\_ACEOF
22038 #define HAVE_TZNAME 1
22039 _ACEOF
22045 # check tzset(3) exists and works like we expect it to
22046 echo "$as_me:$LINENO: checking for working tzset()" >&5
22047 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6
22048 if test "${ac_cv_working_tzset+set}" = set; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22050 else
22052 if test "$cross_compiling" = yes; then
22053 ac_cv_working_tzset=no
22054 else
22055 cat >conftest.$ac_ext <<_ACEOF
22056 /* confdefs.h. */
22057 _ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h. */
22062 #include <stdlib.h>
22063 #include <time.h>
22064 #include <string.h>
22066 #if HAVE_TZNAME
22067 extern char *tzname[];
22068 #endif
22070 int main()
22072 /* Note that we need to ensure that not only does tzset(3)
22073 do 'something' with localtime, but it works as documented
22074 in the library reference and as expected by the test suite.
22075 This includes making sure that tzname is set properly if
22076 tm->tm_zone does not exist since it is the alternative way
22077 of getting timezone info.
22079 Red Hat 6.2 doesn't understand the southern hemisphere
22080 after New Year's Day.
22083 time_t groundhogday = 1044144000; /* GMT-based */
22084 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
22086 putenv("TZ=UTC+0");
22087 tzset();
22088 if (localtime(&groundhogday)->tm_hour != 0)
22089 exit(1);
22090 #if HAVE_TZNAME
22091 /* For UTC, tzname[1] is sometimes "", sometimes " " */
22092 if (strcmp(tzname[0], "UTC") ||
22093 (tzname[1][0] != 0 && tzname[1][0] != ' '))
22094 exit(1);
22095 #endif
22097 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
22098 tzset();
22099 if (localtime(&groundhogday)->tm_hour != 19)
22100 exit(1);
22101 #if HAVE_TZNAME
22102 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
22103 exit(1);
22104 #endif
22106 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
22107 tzset();
22108 if (localtime(&groundhogday)->tm_hour != 11)
22109 exit(1);
22110 #if HAVE_TZNAME
22111 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
22112 exit(1);
22113 #endif
22115 #if HAVE_STRUCT_TM_TM_ZONE
22116 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
22117 exit(1);
22118 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
22119 exit(1);
22120 #endif
22122 exit(0);
22125 _ACEOF
22126 rm -f conftest$ac_exeext
22127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22128 (eval $ac_link) 2>&5
22129 ac_status=$?
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22133 (eval $ac_try) 2>&5
22134 ac_status=$?
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); }; }; then
22137 ac_cv_working_tzset=yes
22138 else
22139 echo "$as_me: program exited with status $ac_status" >&5
22140 echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22143 ( exit $ac_status )
22144 ac_cv_working_tzset=no
22146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22150 echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
22151 echo "${ECHO_T}$ac_cv_working_tzset" >&6
22152 if test "$ac_cv_working_tzset" = yes
22153 then
22155 cat >>confdefs.h <<\_ACEOF
22156 #define HAVE_WORKING_TZSET 1
22157 _ACEOF
22161 # Look for subsecond timestamps in struct stat
22162 echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
22163 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
22164 if test "${ac_cv_stat_tv_nsec+set}" = set; then
22165 echo $ECHO_N "(cached) $ECHO_C" >&6
22166 else
22167 cat >conftest.$ac_ext <<_ACEOF
22168 /* confdefs.h. */
22169 _ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h. */
22173 #include <sys/stat.h>
22175 main ()
22178 struct stat st;
22179 st.st_mtim.tv_nsec = 1;
22182 return 0;
22184 _ACEOF
22185 rm -f conftest.$ac_objext
22186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22187 (eval $ac_compile) 2>conftest.er1
22188 ac_status=$?
22189 grep -v '^ *+' conftest.er1 >conftest.err
22190 rm -f conftest.er1
22191 cat conftest.err >&5
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); } &&
22194 { ac_try='test -z "$ac_c_werror_flag"
22195 || test ! -s conftest.err'
22196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197 (eval $ac_try) 2>&5
22198 ac_status=$?
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); }; } &&
22201 { ac_try='test -s conftest.$ac_objext'
22202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203 (eval $ac_try) 2>&5
22204 ac_status=$?
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; }; then
22207 ac_cv_stat_tv_nsec=yes
22208 else
22209 echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22212 ac_cv_stat_tv_nsec=no
22214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22217 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
22218 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
22219 if test "$ac_cv_stat_tv_nsec" = yes
22220 then
22222 cat >>confdefs.h <<\_ACEOF
22223 #define HAVE_STAT_TV_NSEC 1
22224 _ACEOF
22228 # Look for BSD style subsecond timestamps in struct stat
22229 echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
22230 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6
22231 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
22232 echo $ECHO_N "(cached) $ECHO_C" >&6
22233 else
22234 cat >conftest.$ac_ext <<_ACEOF
22235 /* confdefs.h. */
22236 _ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h. */
22240 #include <sys/stat.h>
22242 main ()
22245 struct stat st;
22246 st.st_mtimespec.tv_nsec = 1;
22249 return 0;
22251 _ACEOF
22252 rm -f conftest.$ac_objext
22253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22254 (eval $ac_compile) 2>conftest.er1
22255 ac_status=$?
22256 grep -v '^ *+' conftest.er1 >conftest.err
22257 rm -f conftest.er1
22258 cat conftest.err >&5
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } &&
22261 { ac_try='test -z "$ac_c_werror_flag"
22262 || test ! -s conftest.err'
22263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264 (eval $ac_try) 2>&5
22265 ac_status=$?
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; } &&
22268 { ac_try='test -s conftest.$ac_objext'
22269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22270 (eval $ac_try) 2>&5
22271 ac_status=$?
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); }; }; then
22274 ac_cv_stat_tv_nsec2=yes
22275 else
22276 echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22279 ac_cv_stat_tv_nsec2=no
22281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22284 echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
22285 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6
22286 if test "$ac_cv_stat_tv_nsec2" = yes
22287 then
22289 cat >>confdefs.h <<\_ACEOF
22290 #define HAVE_STAT_TV_NSEC2 1
22291 _ACEOF
22295 # On HP/UX 11.0, mvwdelch is a block with a return statement
22296 echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
22297 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
22298 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
22299 echo $ECHO_N "(cached) $ECHO_C" >&6
22300 else
22301 cat >conftest.$ac_ext <<_ACEOF
22302 /* confdefs.h. */
22303 _ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h. */
22307 #include <curses.h>
22309 main ()
22312 int rtn;
22313 rtn = mvwdelch(0,0,0);
22316 return 0;
22318 _ACEOF
22319 rm -f conftest.$ac_objext
22320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22321 (eval $ac_compile) 2>conftest.er1
22322 ac_status=$?
22323 grep -v '^ *+' conftest.er1 >conftest.err
22324 rm -f conftest.er1
22325 cat conftest.err >&5
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); } &&
22328 { ac_try='test -z "$ac_c_werror_flag"
22329 || test ! -s conftest.err'
22330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22331 (eval $ac_try) 2>&5
22332 ac_status=$?
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); }; } &&
22335 { ac_try='test -s conftest.$ac_objext'
22336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22337 (eval $ac_try) 2>&5
22338 ac_status=$?
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); }; }; then
22341 ac_cv_mvwdelch_is_expression=yes
22342 else
22343 echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.$ac_ext >&5
22346 ac_cv_mvwdelch_is_expression=no
22348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22351 echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
22352 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
22354 if test "$ac_cv_mvwdelch_is_expression" = yes
22355 then
22357 cat >>confdefs.h <<\_ACEOF
22358 #define MVWDELCH_IS_EXPRESSION 1
22359 _ACEOF
22363 echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
22364 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
22365 if test "${ac_cv_window_has_flags+set}" = set; then
22366 echo $ECHO_N "(cached) $ECHO_C" >&6
22367 else
22368 cat >conftest.$ac_ext <<_ACEOF
22369 /* confdefs.h. */
22370 _ACEOF
22371 cat confdefs.h >>conftest.$ac_ext
22372 cat >>conftest.$ac_ext <<_ACEOF
22373 /* end confdefs.h. */
22374 #include <curses.h>
22376 main ()
22379 WINDOW *w;
22380 w->_flags = 0;
22383 return 0;
22385 _ACEOF
22386 rm -f conftest.$ac_objext
22387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22388 (eval $ac_compile) 2>conftest.er1
22389 ac_status=$?
22390 grep -v '^ *+' conftest.er1 >conftest.err
22391 rm -f conftest.er1
22392 cat conftest.err >&5
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); } &&
22395 { ac_try='test -z "$ac_c_werror_flag"
22396 || test ! -s conftest.err'
22397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398 (eval $ac_try) 2>&5
22399 ac_status=$?
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); }; } &&
22402 { ac_try='test -s conftest.$ac_objext'
22403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22404 (eval $ac_try) 2>&5
22405 ac_status=$?
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); }; }; then
22408 ac_cv_window_has_flags=yes
22409 else
22410 echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22413 ac_cv_window_has_flags=no
22415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22418 echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
22419 echo "${ECHO_T}$ac_cv_window_has_flags" >&6
22422 if test "$ac_cv_window_has_flags" = yes
22423 then
22425 cat >>confdefs.h <<\_ACEOF
22426 #define WINDOW_HAS_FLAGS 1
22427 _ACEOF
22431 echo "$as_me:$LINENO: checking for is_term_resized" >&5
22432 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6
22433 cat >conftest.$ac_ext <<_ACEOF
22434 /* confdefs.h. */
22435 _ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22439 #include <curses.h>
22441 main ()
22443 void *x=is_term_resized
22445 return 0;
22447 _ACEOF
22448 rm -f conftest.$ac_objext
22449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22450 (eval $ac_compile) 2>conftest.er1
22451 ac_status=$?
22452 grep -v '^ *+' conftest.er1 >conftest.err
22453 rm -f conftest.er1
22454 cat conftest.err >&5
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); } &&
22457 { ac_try='test -z "$ac_c_werror_flag"
22458 || test ! -s conftest.err'
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22461 ac_status=$?
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; } &&
22464 { ac_try='test -s conftest.$ac_objext'
22465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466 (eval $ac_try) 2>&5
22467 ac_status=$?
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); }; }; then
22471 cat >>confdefs.h <<\_ACEOF
22472 #define HAVE_CURSES_IS_TERM_RESIZED 1
22473 _ACEOF
22475 echo "$as_me:$LINENO: result: yes" >&5
22476 echo "${ECHO_T}yes" >&6
22477 else
22478 echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22481 echo "$as_me:$LINENO: result: no" >&5
22482 echo "${ECHO_T}no" >&6
22485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22487 echo "$as_me:$LINENO: checking for resize_term" >&5
22488 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6
22489 cat >conftest.$ac_ext <<_ACEOF
22490 /* confdefs.h. */
22491 _ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h. */
22495 #include <curses.h>
22497 main ()
22499 void *x=resize_term
22501 return 0;
22503 _ACEOF
22504 rm -f conftest.$ac_objext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506 (eval $ac_compile) 2>conftest.er1
22507 ac_status=$?
22508 grep -v '^ *+' conftest.er1 >conftest.err
22509 rm -f conftest.er1
22510 cat conftest.err >&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } &&
22513 { ac_try='test -z "$ac_c_werror_flag"
22514 || test ! -s conftest.err'
22515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516 (eval $ac_try) 2>&5
22517 ac_status=$?
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); }; } &&
22520 { ac_try='test -s conftest.$ac_objext'
22521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522 (eval $ac_try) 2>&5
22523 ac_status=$?
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; }; then
22527 cat >>confdefs.h <<\_ACEOF
22528 #define HAVE_CURSES_RESIZE_TERM 1
22529 _ACEOF
22531 echo "$as_me:$LINENO: result: yes" >&5
22532 echo "${ECHO_T}yes" >&6
22533 else
22534 echo "$as_me: failed program was:" >&5
22535 sed 's/^/| /' conftest.$ac_ext >&5
22537 echo "$as_me:$LINENO: result: no" >&5
22538 echo "${ECHO_T}no" >&6
22541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22543 echo "$as_me:$LINENO: checking for resizeterm" >&5
22544 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6
22545 cat >conftest.$ac_ext <<_ACEOF
22546 /* confdefs.h. */
22547 _ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h. */
22551 #include <curses.h>
22553 main ()
22555 void *x=resizeterm
22557 return 0;
22559 _ACEOF
22560 rm -f conftest.$ac_objext
22561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22562 (eval $ac_compile) 2>conftest.er1
22563 ac_status=$?
22564 grep -v '^ *+' conftest.er1 >conftest.err
22565 rm -f conftest.er1
22566 cat conftest.err >&5
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); } &&
22569 { ac_try='test -z "$ac_c_werror_flag"
22570 || test ! -s conftest.err'
22571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572 (eval $ac_try) 2>&5
22573 ac_status=$?
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); }; } &&
22576 { ac_try='test -s conftest.$ac_objext'
22577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578 (eval $ac_try) 2>&5
22579 ac_status=$?
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); }; }; then
22583 cat >>confdefs.h <<\_ACEOF
22584 #define HAVE_CURSES_RESIZETERM 1
22585 _ACEOF
22587 echo "$as_me:$LINENO: result: yes" >&5
22588 echo "${ECHO_T}yes" >&6
22589 else
22590 echo "$as_me: failed program was:" >&5
22591 sed 's/^/| /' conftest.$ac_ext >&5
22593 echo "$as_me:$LINENO: result: no" >&5
22594 echo "${ECHO_T}no" >&6
22597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22599 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
22600 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
22602 if test -r /dev/ptmx
22603 then
22604 echo "$as_me:$LINENO: result: yes" >&5
22605 echo "${ECHO_T}yes" >&6
22607 cat >>confdefs.h <<\_ACEOF
22608 #define HAVE_DEV_PTMX 1
22609 _ACEOF
22611 else
22612 echo "$as_me:$LINENO: result: no" >&5
22613 echo "${ECHO_T}no" >&6
22616 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
22617 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
22619 if test -r /dev/ptc
22620 then
22621 echo "$as_me:$LINENO: result: yes" >&5
22622 echo "${ECHO_T}yes" >&6
22624 cat >>confdefs.h <<\_ACEOF
22625 #define HAVE_DEV_PTC 1
22626 _ACEOF
22628 else
22629 echo "$as_me:$LINENO: result: no" >&5
22630 echo "${ECHO_T}no" >&6
22633 echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
22634 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6
22635 if test "$cross_compiling" = yes; then
22636 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22637 See \`config.log' for more details." >&5
22638 echo "$as_me: error: cannot run test program while cross compiling
22639 See \`config.log' for more details." >&2;}
22640 { (exit 1); exit 1; }; }
22641 else
22642 cat >conftest.$ac_ext <<_ACEOF
22643 /* confdefs.h. */
22644 _ACEOF
22645 cat confdefs.h >>conftest.$ac_ext
22646 cat >>conftest.$ac_ext <<_ACEOF
22647 /* end confdefs.h. */
22648 #include <stdio.h>
22649 #include <stddef.h>
22650 #include <string.h>
22652 int main()
22654 char buffer[256];
22656 #ifdef HAVE_SSIZE_T
22657 typedef ssize_t Py_ssize_t;
22658 #elif SIZEOF_VOID_P == SIZEOF_LONG
22659 typedef long Py_ssize_t;
22660 #else
22661 typedef int Py_ssize_t;
22662 #endif
22664 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22665 return 1;
22667 if (strcmp(buffer, "123"))
22668 return 1;
22670 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
22671 return 1;
22673 if (strcmp(buffer, "-123"))
22674 return 1;
22676 return 0;
22678 _ACEOF
22679 rm -f conftest$ac_exeext
22680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22681 (eval $ac_link) 2>&5
22682 ac_status=$?
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22686 (eval $ac_try) 2>&5
22687 ac_status=$?
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); }; }; then
22690 echo "$as_me:$LINENO: result: yes" >&5
22691 echo "${ECHO_T}yes" >&6
22693 cat >>confdefs.h <<\_ACEOF
22694 #define PY_FORMAT_SIZE_T "z"
22695 _ACEOF
22697 else
22698 echo "$as_me: program exited with status $ac_status" >&5
22699 echo "$as_me: failed program was:" >&5
22700 sed 's/^/| /' conftest.$ac_ext >&5
22702 ( exit $ac_status )
22703 echo "$as_me:$LINENO: result: no" >&5
22704 echo "${ECHO_T}no" >&6
22706 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22709 echo "$as_me:$LINENO: checking for socklen_t" >&5
22710 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22711 if test "${ac_cv_type_socklen_t+set}" = set; then
22712 echo $ECHO_N "(cached) $ECHO_C" >&6
22713 else
22714 cat >conftest.$ac_ext <<_ACEOF
22715 /* confdefs.h. */
22716 _ACEOF
22717 cat confdefs.h >>conftest.$ac_ext
22718 cat >>conftest.$ac_ext <<_ACEOF
22719 /* end confdefs.h. */
22721 #ifdef HAVE_SYS_TYPES_H
22722 #include <sys/types.h>
22723 #endif
22724 #ifdef HAVE_SYS_SOCKET_H
22725 #include <sys/socket.h>
22726 #endif
22730 main ()
22732 if ((socklen_t *) 0)
22733 return 0;
22734 if (sizeof (socklen_t))
22735 return 0;
22737 return 0;
22739 _ACEOF
22740 rm -f conftest.$ac_objext
22741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22742 (eval $ac_compile) 2>conftest.er1
22743 ac_status=$?
22744 grep -v '^ *+' conftest.er1 >conftest.err
22745 rm -f conftest.er1
22746 cat conftest.err >&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); } &&
22749 { ac_try='test -z "$ac_c_werror_flag"
22750 || test ! -s conftest.err'
22751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752 (eval $ac_try) 2>&5
22753 ac_status=$?
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); }; } &&
22756 { ac_try='test -s conftest.$ac_objext'
22757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22758 (eval $ac_try) 2>&5
22759 ac_status=$?
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); }; }; then
22762 ac_cv_type_socklen_t=yes
22763 else
22764 echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22767 ac_cv_type_socklen_t=no
22769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22771 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22772 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22773 if test $ac_cv_type_socklen_t = yes; then
22775 else
22777 cat >>confdefs.h <<\_ACEOF
22778 #define socklen_t int
22779 _ACEOF
22786 for h in `(cd $srcdir;echo Python/thread_*.h)`
22788 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
22789 done
22792 SRCDIRS="Parser Grammar Objects Python Modules Mac"
22793 echo "$as_me:$LINENO: checking for build directories" >&5
22794 echo $ECHO_N "checking for build directories... $ECHO_C" >&6
22795 for dir in $SRCDIRS; do
22796 if test ! -d $dir; then
22797 mkdir $dir
22799 done
22800 echo "$as_me:$LINENO: result: done" >&5
22801 echo "${ECHO_T}done" >&6
22803 # generate output files
22804 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
22806 cat >confcache <<\_ACEOF
22807 # This file is a shell script that caches the results of configure
22808 # tests run on this system so they can be shared between configure
22809 # scripts and configure runs, see configure's option --config-cache.
22810 # It is not useful on other systems. If it contains results you don't
22811 # want to keep, you may remove or edit it.
22813 # config.status only pays attention to the cache file if you give it
22814 # the --recheck option to rerun configure.
22816 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22817 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22818 # following values.
22820 _ACEOF
22822 # The following way of writing the cache mishandles newlines in values,
22823 # but we know of no workaround that is simple, portable, and efficient.
22824 # So, don't put newlines in cache variables' values.
22825 # Ultrix sh set writes to stderr and can't be redirected directly,
22826 # and sets the high bit in the cache file unless we assign to the vars.
22828 (set) 2>&1 |
22829 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22830 *ac_space=\ *)
22831 # `set' does not quote correctly, so add quotes (double-quote
22832 # substitution turns \\\\ into \\, and sed turns \\ into \).
22833 sed -n \
22834 "s/'/'\\\\''/g;
22835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22838 # `set' quotes correctly as required by POSIX, so do not add quotes.
22839 sed -n \
22840 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22842 esac;
22844 sed '
22845 t clear
22846 : clear
22847 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22848 t end
22849 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22850 : end' >>confcache
22851 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22852 if test -w $cache_file; then
22853 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22854 cat confcache >$cache_file
22855 else
22856 echo "not updating unwritable cache $cache_file"
22859 rm -f confcache
22861 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22862 # Let make expand exec_prefix.
22863 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22865 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22866 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22867 # trailing colons and then remove the whole line if VPATH becomes empty
22868 # (actually we leave an empty line to preserve line numbers).
22869 if test "x$srcdir" = x.; then
22870 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22871 s/:*\$(srcdir):*/:/;
22872 s/:*\${srcdir}:*/:/;
22873 s/:*@srcdir@:*/:/;
22874 s/^\([^=]*=[ ]*\):*/\1/;
22875 s/:*$//;
22876 s/^[^=]*=[ ]*$//;
22880 DEFS=-DHAVE_CONFIG_H
22882 ac_libobjs=
22883 ac_ltlibobjs=
22884 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22885 # 1. Remove the extension, and $U if already installed.
22886 ac_i=`echo "$ac_i" |
22887 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22888 # 2. Add them.
22889 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22890 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22891 done
22892 LIBOBJS=$ac_libobjs
22894 LTLIBOBJS=$ac_ltlibobjs
22898 : ${CONFIG_STATUS=./config.status}
22899 ac_clean_files_save=$ac_clean_files
22900 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22901 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22902 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22903 cat >$CONFIG_STATUS <<_ACEOF
22904 #! $SHELL
22905 # Generated by $as_me.
22906 # Run this file to recreate the current configuration.
22907 # Compiler output produced by configure, useful for debugging
22908 # configure, is in config.log if it exists.
22910 debug=false
22911 ac_cs_recheck=false
22912 ac_cs_silent=false
22913 SHELL=\${CONFIG_SHELL-$SHELL}
22914 _ACEOF
22916 cat >>$CONFIG_STATUS <<\_ACEOF
22917 ## --------------------- ##
22918 ## M4sh Initialization. ##
22919 ## --------------------- ##
22921 # Be Bourne compatible
22922 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22923 emulate sh
22924 NULLCMD=:
22925 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22926 # is contrary to our usage. Disable this feature.
22927 alias -g '${1+"$@"}'='"$@"'
22928 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22929 set -o posix
22931 DUALCASE=1; export DUALCASE # for MKS sh
22933 # Support unset when possible.
22934 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22935 as_unset=unset
22936 else
22937 as_unset=false
22941 # Work around bugs in pre-3.0 UWIN ksh.
22942 $as_unset ENV MAIL MAILPATH
22943 PS1='$ '
22944 PS2='> '
22945 PS4='+ '
22947 # NLS nuisances.
22948 for as_var in \
22949 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22950 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22951 LC_TELEPHONE LC_TIME
22953 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22954 eval $as_var=C; export $as_var
22955 else
22956 $as_unset $as_var
22958 done
22960 # Required to use basename.
22961 if expr a : '\(a\)' >/dev/null 2>&1; then
22962 as_expr=expr
22963 else
22964 as_expr=false
22967 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22968 as_basename=basename
22969 else
22970 as_basename=false
22974 # Name of the executable.
22975 as_me=`$as_basename "$0" ||
22976 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22977 X"$0" : 'X\(//\)$' \| \
22978 X"$0" : 'X\(/\)$' \| \
22979 . : '\(.\)' 2>/dev/null ||
22980 echo X/"$0" |
22981 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22982 /^X\/\(\/\/\)$/{ s//\1/; q; }
22983 /^X\/\(\/\).*/{ s//\1/; q; }
22984 s/.*/./; q'`
22987 # PATH needs CR, and LINENO needs CR and PATH.
22988 # Avoid depending upon Character Ranges.
22989 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22990 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22991 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22992 as_cr_digits='0123456789'
22993 as_cr_alnum=$as_cr_Letters$as_cr_digits
22995 # The user is always right.
22996 if test "${PATH_SEPARATOR+set}" != set; then
22997 echo "#! /bin/sh" >conf$$.sh
22998 echo "exit 0" >>conf$$.sh
22999 chmod +x conf$$.sh
23000 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23001 PATH_SEPARATOR=';'
23002 else
23003 PATH_SEPARATOR=:
23005 rm -f conf$$.sh
23009 as_lineno_1=$LINENO
23010 as_lineno_2=$LINENO
23011 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23012 test "x$as_lineno_1" != "x$as_lineno_2" &&
23013 test "x$as_lineno_3" = "x$as_lineno_2" || {
23014 # Find who we are. Look in the path if we contain no path at all
23015 # relative or not.
23016 case $0 in
23017 *[\\/]* ) as_myself=$0 ;;
23018 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23019 for as_dir in $PATH
23021 IFS=$as_save_IFS
23022 test -z "$as_dir" && as_dir=.
23023 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23024 done
23027 esac
23028 # We did not find ourselves, most probably we were run as `sh COMMAND'
23029 # in which case we are not to be found in the path.
23030 if test "x$as_myself" = x; then
23031 as_myself=$0
23033 if test ! -f "$as_myself"; then
23034 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23035 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23036 { (exit 1); exit 1; }; }
23038 case $CONFIG_SHELL in
23040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23041 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23043 IFS=$as_save_IFS
23044 test -z "$as_dir" && as_dir=.
23045 for as_base in sh bash ksh sh5; do
23046 case $as_dir in
23048 if ("$as_dir/$as_base" -c '
23049 as_lineno_1=$LINENO
23050 as_lineno_2=$LINENO
23051 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23052 test "x$as_lineno_1" != "x$as_lineno_2" &&
23053 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23054 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23055 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23056 CONFIG_SHELL=$as_dir/$as_base
23057 export CONFIG_SHELL
23058 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23059 fi;;
23060 esac
23061 done
23062 done
23064 esac
23066 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23067 # uniformly replaced by the line number. The first 'sed' inserts a
23068 # line-number line before each line; the second 'sed' does the real
23069 # work. The second script uses 'N' to pair each line-number line
23070 # with the numbered line, and appends trailing '-' during
23071 # substitution so that $LINENO is not a special case at line end.
23072 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23073 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23074 sed '=' <$as_myself |
23075 sed '
23077 s,$,-,
23078 : loop
23079 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23080 t loop
23081 s,-$,,
23082 s,^['$as_cr_digits']*\n,,
23083 ' >$as_me.lineno &&
23084 chmod +x $as_me.lineno ||
23085 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23086 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23087 { (exit 1); exit 1; }; }
23089 # Don't try to exec as it changes $[0], causing all sort of problems
23090 # (the dirname of $[0] is not the place where we might find the
23091 # original and so on. Autoconf is especially sensible to this).
23092 . ./$as_me.lineno
23093 # Exit status is that of the last command.
23094 exit
23098 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23099 *c*,-n*) ECHO_N= ECHO_C='
23100 ' ECHO_T=' ' ;;
23101 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23102 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23103 esac
23105 if expr a : '\(a\)' >/dev/null 2>&1; then
23106 as_expr=expr
23107 else
23108 as_expr=false
23111 rm -f conf$$ conf$$.exe conf$$.file
23112 echo >conf$$.file
23113 if ln -s conf$$.file conf$$ 2>/dev/null; then
23114 # We could just check for DJGPP; but this test a) works b) is more generic
23115 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23116 if test -f conf$$.exe; then
23117 # Don't use ln at all; we don't have any links
23118 as_ln_s='cp -p'
23119 else
23120 as_ln_s='ln -s'
23122 elif ln conf$$.file conf$$ 2>/dev/null; then
23123 as_ln_s=ln
23124 else
23125 as_ln_s='cp -p'
23127 rm -f conf$$ conf$$.exe conf$$.file
23129 if mkdir -p . 2>/dev/null; then
23130 as_mkdir_p=:
23131 else
23132 test -d ./-p && rmdir ./-p
23133 as_mkdir_p=false
23136 as_executable_p="test -f"
23138 # Sed expression to map a string onto a valid CPP name.
23139 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23141 # Sed expression to map a string onto a valid variable name.
23142 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23145 # IFS
23146 # We need space, tab and new line, in precisely that order.
23147 as_nl='
23149 IFS=" $as_nl"
23151 # CDPATH.
23152 $as_unset CDPATH
23154 exec 6>&1
23156 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23157 # report actual input values of CONFIG_FILES etc. instead of their
23158 # values after options handling. Logging --version etc. is OK.
23159 exec 5>>config.log
23161 echo
23162 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23163 ## Running $as_me. ##
23164 _ASBOX
23165 } >&5
23166 cat >&5 <<_CSEOF
23168 This file was extended by python $as_me 2.6, which was
23169 generated by GNU Autoconf 2.59. Invocation command line was
23171 CONFIG_FILES = $CONFIG_FILES
23172 CONFIG_HEADERS = $CONFIG_HEADERS
23173 CONFIG_LINKS = $CONFIG_LINKS
23174 CONFIG_COMMANDS = $CONFIG_COMMANDS
23175 $ $0 $@
23177 _CSEOF
23178 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23179 echo >&5
23180 _ACEOF
23182 # Files that config.status was made for.
23183 if test -n "$ac_config_files"; then
23184 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23187 if test -n "$ac_config_headers"; then
23188 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23191 if test -n "$ac_config_links"; then
23192 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23195 if test -n "$ac_config_commands"; then
23196 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23199 cat >>$CONFIG_STATUS <<\_ACEOF
23201 ac_cs_usage="\
23202 \`$as_me' instantiates files from templates according to the
23203 current configuration.
23205 Usage: $0 [OPTIONS] [FILE]...
23207 -h, --help print this help, then exit
23208 -V, --version print version number, then exit
23209 -q, --quiet do not print progress messages
23210 -d, --debug don't remove temporary files
23211 --recheck update $as_me by reconfiguring in the same conditions
23212 --file=FILE[:TEMPLATE]
23213 instantiate the configuration file FILE
23214 --header=FILE[:TEMPLATE]
23215 instantiate the configuration header FILE
23217 Configuration files:
23218 $config_files
23220 Configuration headers:
23221 $config_headers
23223 Report bugs to <bug-autoconf@gnu.org>."
23224 _ACEOF
23226 cat >>$CONFIG_STATUS <<_ACEOF
23227 ac_cs_version="\\
23228 python config.status 2.6
23229 configured by $0, generated by GNU Autoconf 2.59,
23230 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23232 Copyright (C) 2003 Free Software Foundation, Inc.
23233 This config.status script is free software; the Free Software Foundation
23234 gives unlimited permission to copy, distribute and modify it."
23235 srcdir=$srcdir
23236 INSTALL="$INSTALL"
23237 _ACEOF
23239 cat >>$CONFIG_STATUS <<\_ACEOF
23240 # If no file are specified by the user, then we need to provide default
23241 # value. By we need to know if files were specified by the user.
23242 ac_need_defaults=:
23243 while test $# != 0
23245 case $1 in
23246 --*=*)
23247 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23248 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23249 ac_shift=:
23252 ac_option=$1
23253 ac_optarg=$2
23254 ac_shift=shift
23256 *) # This is not an option, so the user has probably given explicit
23257 # arguments.
23258 ac_option=$1
23259 ac_need_defaults=false;;
23260 esac
23262 case $ac_option in
23263 # Handling of the options.
23264 _ACEOF
23265 cat >>$CONFIG_STATUS <<\_ACEOF
23266 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23267 ac_cs_recheck=: ;;
23268 --version | --vers* | -V )
23269 echo "$ac_cs_version"; exit 0 ;;
23270 --he | --h)
23271 # Conflict between --help and --header
23272 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23273 Try \`$0 --help' for more information." >&5
23274 echo "$as_me: error: ambiguous option: $1
23275 Try \`$0 --help' for more information." >&2;}
23276 { (exit 1); exit 1; }; };;
23277 --help | --hel | -h )
23278 echo "$ac_cs_usage"; exit 0 ;;
23279 --debug | --d* | -d )
23280 debug=: ;;
23281 --file | --fil | --fi | --f )
23282 $ac_shift
23283 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23284 ac_need_defaults=false;;
23285 --header | --heade | --head | --hea )
23286 $ac_shift
23287 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23288 ac_need_defaults=false;;
23289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23290 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23291 ac_cs_silent=: ;;
23293 # This is an error.
23294 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23295 Try \`$0 --help' for more information." >&5
23296 echo "$as_me: error: unrecognized option: $1
23297 Try \`$0 --help' for more information." >&2;}
23298 { (exit 1); exit 1; }; } ;;
23300 *) ac_config_targets="$ac_config_targets $1" ;;
23302 esac
23303 shift
23304 done
23306 ac_configure_extra_args=
23308 if $ac_cs_silent; then
23309 exec 6>/dev/null
23310 ac_configure_extra_args="$ac_configure_extra_args --silent"
23313 _ACEOF
23314 cat >>$CONFIG_STATUS <<_ACEOF
23315 if \$ac_cs_recheck; then
23316 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23317 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23320 _ACEOF
23326 cat >>$CONFIG_STATUS <<\_ACEOF
23327 for ac_config_target in $ac_config_targets
23329 case "$ac_config_target" in
23330 # Handling of arguments.
23331 "Mac/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
23332 "Mac/PythonLauncher/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
23333 "Mac/IDLE/Makefile" ) CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
23334 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
23335 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
23336 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
23337 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23338 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23339 { (exit 1); exit 1; }; };;
23340 esac
23341 done
23343 # If the user did not use the arguments to specify the items to instantiate,
23344 # then the envvar interface is used. Set only those that are not.
23345 # We use the long form for the default assignment because of an extremely
23346 # bizarre bug on SunOS 4.1.3.
23347 if $ac_need_defaults; then
23348 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23349 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23352 # Have a temporary directory for convenience. Make it in the build tree
23353 # simply because there is no reason to put it here, and in addition,
23354 # creating and moving files from /tmp can sometimes cause problems.
23355 # Create a temporary directory, and hook for its removal unless debugging.
23356 $debug ||
23358 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23359 trap '{ (exit 1); exit 1; }' 1 2 13 15
23362 # Create a (secure) tmp directory for tmp files.
23365 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23366 test -n "$tmp" && test -d "$tmp"
23367 } ||
23369 tmp=./confstat$$-$RANDOM
23370 (umask 077 && mkdir $tmp)
23371 } ||
23373 echo "$me: cannot create a temporary directory in ." >&2
23374 { (exit 1); exit 1; }
23377 _ACEOF
23379 cat >>$CONFIG_STATUS <<_ACEOF
23382 # CONFIG_FILES section.
23385 # No need to generate the scripts if there are no CONFIG_FILES.
23386 # This happens for instance when ./config.status config.h
23387 if test -n "\$CONFIG_FILES"; then
23388 # Protect against being on the right side of a sed subst in config.status.
23389 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23390 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23391 s,@SHELL@,$SHELL,;t t
23392 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23393 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23394 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23395 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23396 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23397 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23398 s,@exec_prefix@,$exec_prefix,;t t
23399 s,@prefix@,$prefix,;t t
23400 s,@program_transform_name@,$program_transform_name,;t t
23401 s,@bindir@,$bindir,;t t
23402 s,@sbindir@,$sbindir,;t t
23403 s,@libexecdir@,$libexecdir,;t t
23404 s,@datadir@,$datadir,;t t
23405 s,@sysconfdir@,$sysconfdir,;t t
23406 s,@sharedstatedir@,$sharedstatedir,;t t
23407 s,@localstatedir@,$localstatedir,;t t
23408 s,@libdir@,$libdir,;t t
23409 s,@includedir@,$includedir,;t t
23410 s,@oldincludedir@,$oldincludedir,;t t
23411 s,@infodir@,$infodir,;t t
23412 s,@mandir@,$mandir,;t t
23413 s,@build_alias@,$build_alias,;t t
23414 s,@host_alias@,$host_alias,;t t
23415 s,@target_alias@,$target_alias,;t t
23416 s,@DEFS@,$DEFS,;t t
23417 s,@ECHO_C@,$ECHO_C,;t t
23418 s,@ECHO_N@,$ECHO_N,;t t
23419 s,@ECHO_T@,$ECHO_T,;t t
23420 s,@LIBS@,$LIBS,;t t
23421 s,@VERSION@,$VERSION,;t t
23422 s,@SOVERSION@,$SOVERSION,;t t
23423 s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
23424 s,@UNIVERSALSDK@,$UNIVERSALSDK,;t t
23425 s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
23426 s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
23427 s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
23428 s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
23429 s,@FRAMEWORKINSTALLFIRST@,$FRAMEWORKINSTALLFIRST,;t t
23430 s,@FRAMEWORKINSTALLLAST@,$FRAMEWORKINSTALLLAST,;t t
23431 s,@FRAMEWORKALTINSTALLFIRST@,$FRAMEWORKALTINSTALLFIRST,;t t
23432 s,@FRAMEWORKALTINSTALLLAST@,$FRAMEWORKALTINSTALLLAST,;t t
23433 s,@FRAMEWORKUNIXTOOLSPREFIX@,$FRAMEWORKUNIXTOOLSPREFIX,;t t
23434 s,@MACHDEP@,$MACHDEP,;t t
23435 s,@SGI_ABI@,$SGI_ABI,;t t
23436 s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t
23437 s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t
23438 s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t
23439 s,@EXPORT_MACOSX_DEPLOYMENT_TARGET@,$EXPORT_MACOSX_DEPLOYMENT_TARGET,;t t
23440 s,@CC@,$CC,;t t
23441 s,@CFLAGS@,$CFLAGS,;t t
23442 s,@LDFLAGS@,$LDFLAGS,;t t
23443 s,@CPPFLAGS@,$CPPFLAGS,;t t
23444 s,@ac_ct_CC@,$ac_ct_CC,;t t
23445 s,@EXEEXT@,$EXEEXT,;t t
23446 s,@OBJEXT@,$OBJEXT,;t t
23447 s,@CXX@,$CXX,;t t
23448 s,@MAINCC@,$MAINCC,;t t
23449 s,@CPP@,$CPP,;t t
23450 s,@EGREP@,$EGREP,;t t
23451 s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
23452 s,@LIBRARY@,$LIBRARY,;t t
23453 s,@LDLIBRARY@,$LDLIBRARY,;t t
23454 s,@DLLLIBRARY@,$DLLLIBRARY,;t t
23455 s,@BLDLIBRARY@,$BLDLIBRARY,;t t
23456 s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
23457 s,@INSTSONAME@,$INSTSONAME,;t t
23458 s,@RUNSHARED@,$RUNSHARED,;t t
23459 s,@LINKCC@,$LINKCC,;t t
23460 s,@RANLIB@,$RANLIB,;t t
23461 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23462 s,@AR@,$AR,;t t
23463 s,@SVNVERSION@,$SVNVERSION,;t t
23464 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23465 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23466 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23467 s,@LN@,$LN,;t t
23468 s,@OPT@,$OPT,;t t
23469 s,@BASECFLAGS@,$BASECFLAGS,;t t
23470 s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t
23471 s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
23472 s,@SO@,$SO,;t t
23473 s,@LDSHARED@,$LDSHARED,;t t
23474 s,@BLDSHARED@,$BLDSHARED,;t t
23475 s,@CCSHARED@,$CCSHARED,;t t
23476 s,@LINKFORSHARED@,$LINKFORSHARED,;t t
23477 s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
23478 s,@SHLIBS@,$SHLIBS,;t t
23479 s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
23480 s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
23481 s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
23482 s,@LDLAST@,$LDLAST,;t t
23483 s,@THREADOBJ@,$THREADOBJ,;t t
23484 s,@DLINCLDIR@,$DLINCLDIR,;t t
23485 s,@DYNLOADFILE@,$DYNLOADFILE,;t t
23486 s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
23487 s,@TRUE@,$TRUE,;t t
23488 s,@LIBOBJS@,$LIBOBJS,;t t
23489 s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
23490 s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
23491 s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
23492 s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
23493 s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
23494 s,@LIBM@,$LIBM,;t t
23495 s,@LIBC@,$LIBC,;t t
23496 s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
23497 s,@THREADHEADERS@,$THREADHEADERS,;t t
23498 s,@SRCDIRS@,$SRCDIRS,;t t
23499 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23500 CEOF
23502 _ACEOF
23504 cat >>$CONFIG_STATUS <<\_ACEOF
23505 # Split the substitutions into bite-sized pieces for seds with
23506 # small command number limits, like on Digital OSF/1 and HP-UX.
23507 ac_max_sed_lines=48
23508 ac_sed_frag=1 # Number of current file.
23509 ac_beg=1 # First line for current file.
23510 ac_end=$ac_max_sed_lines # Line after last line for current file.
23511 ac_more_lines=:
23512 ac_sed_cmds=
23513 while $ac_more_lines; do
23514 if test $ac_beg -gt 1; then
23515 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23516 else
23517 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23519 if test ! -s $tmp/subs.frag; then
23520 ac_more_lines=false
23521 else
23522 # The purpose of the label and of the branching condition is to
23523 # speed up the sed processing (if there are no `@' at all, there
23524 # is no need to browse any of the substitutions).
23525 # These are the two extra sed commands mentioned above.
23526 (echo ':t
23527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23528 if test -z "$ac_sed_cmds"; then
23529 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23530 else
23531 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23533 ac_sed_frag=`expr $ac_sed_frag + 1`
23534 ac_beg=$ac_end
23535 ac_end=`expr $ac_end + $ac_max_sed_lines`
23537 done
23538 if test -z "$ac_sed_cmds"; then
23539 ac_sed_cmds=cat
23541 fi # test -n "$CONFIG_FILES"
23543 _ACEOF
23544 cat >>$CONFIG_STATUS <<\_ACEOF
23545 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23546 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23547 case $ac_file in
23548 - | *:- | *:-:* ) # input from stdin
23549 cat >$tmp/stdin
23550 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23551 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23552 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23553 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23554 * ) ac_file_in=$ac_file.in ;;
23555 esac
23557 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23558 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23559 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23560 X"$ac_file" : 'X\(//\)[^/]' \| \
23561 X"$ac_file" : 'X\(//\)$' \| \
23562 X"$ac_file" : 'X\(/\)' \| \
23563 . : '\(.\)' 2>/dev/null ||
23564 echo X"$ac_file" |
23565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23566 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23567 /^X\(\/\/\)$/{ s//\1/; q; }
23568 /^X\(\/\).*/{ s//\1/; q; }
23569 s/.*/./; q'`
23570 { if $as_mkdir_p; then
23571 mkdir -p "$ac_dir"
23572 else
23573 as_dir="$ac_dir"
23574 as_dirs=
23575 while test ! -d "$as_dir"; do
23576 as_dirs="$as_dir $as_dirs"
23577 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23578 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23579 X"$as_dir" : 'X\(//\)[^/]' \| \
23580 X"$as_dir" : 'X\(//\)$' \| \
23581 X"$as_dir" : 'X\(/\)' \| \
23582 . : '\(.\)' 2>/dev/null ||
23583 echo X"$as_dir" |
23584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23585 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23586 /^X\(\/\/\)$/{ s//\1/; q; }
23587 /^X\(\/\).*/{ s//\1/; q; }
23588 s/.*/./; q'`
23589 done
23590 test ! -n "$as_dirs" || mkdir $as_dirs
23591 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23592 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23593 { (exit 1); exit 1; }; }; }
23595 ac_builddir=.
23597 if test "$ac_dir" != .; then
23598 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23599 # A "../" for each directory in $ac_dir_suffix.
23600 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23601 else
23602 ac_dir_suffix= ac_top_builddir=
23605 case $srcdir in
23606 .) # No --srcdir option. We are building in place.
23607 ac_srcdir=.
23608 if test -z "$ac_top_builddir"; then
23609 ac_top_srcdir=.
23610 else
23611 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23612 fi ;;
23613 [\\/]* | ?:[\\/]* ) # Absolute path.
23614 ac_srcdir=$srcdir$ac_dir_suffix;
23615 ac_top_srcdir=$srcdir ;;
23616 *) # Relative path.
23617 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23618 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23619 esac
23621 # Do not use `cd foo && pwd` to compute absolute paths, because
23622 # the directories may not exist.
23623 case `pwd` in
23624 .) ac_abs_builddir="$ac_dir";;
23626 case "$ac_dir" in
23627 .) ac_abs_builddir=`pwd`;;
23628 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23629 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23630 esac;;
23631 esac
23632 case $ac_abs_builddir in
23633 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23635 case ${ac_top_builddir}. in
23636 .) ac_abs_top_builddir=$ac_abs_builddir;;
23637 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23638 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23639 esac;;
23640 esac
23641 case $ac_abs_builddir in
23642 .) ac_abs_srcdir=$ac_srcdir;;
23644 case $ac_srcdir in
23645 .) ac_abs_srcdir=$ac_abs_builddir;;
23646 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23647 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23648 esac;;
23649 esac
23650 case $ac_abs_builddir in
23651 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23653 case $ac_top_srcdir in
23654 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23655 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23656 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23657 esac;;
23658 esac
23661 case $INSTALL in
23662 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23663 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23664 esac
23666 if test x"$ac_file" != x-; then
23667 { echo "$as_me:$LINENO: creating $ac_file" >&5
23668 echo "$as_me: creating $ac_file" >&6;}
23669 rm -f "$ac_file"
23671 # Let's still pretend it is `configure' which instantiates (i.e., don't
23672 # use $as_me), people would be surprised to read:
23673 # /* config.h. Generated by config.status. */
23674 if test x"$ac_file" = x-; then
23675 configure_input=
23676 else
23677 configure_input="$ac_file. "
23679 configure_input=$configure_input"Generated from `echo $ac_file_in |
23680 sed 's,.*/,,'` by configure."
23682 # First look for the input files in the build tree, otherwise in the
23683 # src tree.
23684 ac_file_inputs=`IFS=:
23685 for f in $ac_file_in; do
23686 case $f in
23687 -) echo $tmp/stdin ;;
23688 [\\/$]*)
23689 # Absolute (can't be DOS-style, as IFS=:)
23690 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23691 echo "$as_me: error: cannot find input file: $f" >&2;}
23692 { (exit 1); exit 1; }; }
23693 echo "$f";;
23694 *) # Relative
23695 if test -f "$f"; then
23696 # Build tree
23697 echo "$f"
23698 elif test -f "$srcdir/$f"; then
23699 # Source tree
23700 echo "$srcdir/$f"
23701 else
23702 # /dev/null tree
23703 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23704 echo "$as_me: error: cannot find input file: $f" >&2;}
23705 { (exit 1); exit 1; }; }
23706 fi;;
23707 esac
23708 done` || { (exit 1); exit 1; }
23709 _ACEOF
23710 cat >>$CONFIG_STATUS <<_ACEOF
23711 sed "$ac_vpsub
23712 $extrasub
23713 _ACEOF
23714 cat >>$CONFIG_STATUS <<\_ACEOF
23716 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23717 s,@configure_input@,$configure_input,;t t
23718 s,@srcdir@,$ac_srcdir,;t t
23719 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23720 s,@top_srcdir@,$ac_top_srcdir,;t t
23721 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23722 s,@builddir@,$ac_builddir,;t t
23723 s,@abs_builddir@,$ac_abs_builddir,;t t
23724 s,@top_builddir@,$ac_top_builddir,;t t
23725 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23726 s,@INSTALL@,$ac_INSTALL,;t t
23727 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23728 rm -f $tmp/stdin
23729 if test x"$ac_file" != x-; then
23730 mv $tmp/out $ac_file
23731 else
23732 cat $tmp/out
23733 rm -f $tmp/out
23736 done
23737 _ACEOF
23738 cat >>$CONFIG_STATUS <<\_ACEOF
23741 # CONFIG_HEADER section.
23744 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23745 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23747 # ac_d sets the value in "#define NAME VALUE" lines.
23748 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23749 ac_dB='[ ].*$,\1#\2'
23750 ac_dC=' '
23751 ac_dD=',;t'
23752 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23753 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23754 ac_uB='$,\1#\2define\3'
23755 ac_uC=' '
23756 ac_uD=',;t'
23758 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23759 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23760 case $ac_file in
23761 - | *:- | *:-:* ) # input from stdin
23762 cat >$tmp/stdin
23763 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23764 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23765 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23766 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23767 * ) ac_file_in=$ac_file.in ;;
23768 esac
23770 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23771 echo "$as_me: creating $ac_file" >&6;}
23773 # First look for the input files in the build tree, otherwise in the
23774 # src tree.
23775 ac_file_inputs=`IFS=:
23776 for f in $ac_file_in; do
23777 case $f in
23778 -) echo $tmp/stdin ;;
23779 [\\/$]*)
23780 # Absolute (can't be DOS-style, as IFS=:)
23781 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23782 echo "$as_me: error: cannot find input file: $f" >&2;}
23783 { (exit 1); exit 1; }; }
23784 # Do quote $f, to prevent DOS paths from being IFS'd.
23785 echo "$f";;
23786 *) # Relative
23787 if test -f "$f"; then
23788 # Build tree
23789 echo "$f"
23790 elif test -f "$srcdir/$f"; then
23791 # Source tree
23792 echo "$srcdir/$f"
23793 else
23794 # /dev/null tree
23795 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23796 echo "$as_me: error: cannot find input file: $f" >&2;}
23797 { (exit 1); exit 1; }; }
23798 fi;;
23799 esac
23800 done` || { (exit 1); exit 1; }
23801 # Remove the trailing spaces.
23802 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23804 _ACEOF
23806 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23807 # `conftest.undefs', that substitutes the proper values into
23808 # config.h.in to produce config.h. The first handles `#define'
23809 # templates, and the second `#undef' templates.
23810 # And first: Protect against being on the right side of a sed subst in
23811 # config.status. Protect against being in an unquoted here document
23812 # in config.status.
23813 rm -f conftest.defines conftest.undefs
23814 # Using a here document instead of a string reduces the quoting nightmare.
23815 # Putting comments in sed scripts is not portable.
23817 # `end' is used to avoid that the second main sed command (meant for
23818 # 0-ary CPP macros) applies to n-ary macro definitions.
23819 # See the Autoconf documentation for `clear'.
23820 cat >confdef2sed.sed <<\_ACEOF
23821 s/[\\&,]/\\&/g
23822 s,[\\$`],\\&,g
23823 t clear
23824 : clear
23825 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23826 t end
23827 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23828 : end
23829 _ACEOF
23830 # If some macros were called several times there might be several times
23831 # the same #defines, which is useless. Nevertheless, we may not want to
23832 # sort them, since we want the *last* AC-DEFINE to be honored.
23833 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23834 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23835 rm -f confdef2sed.sed
23837 # This sed command replaces #undef with comments. This is necessary, for
23838 # example, in the case of _POSIX_SOURCE, which is predefined and required
23839 # on some systems where configure will not decide to define it.
23840 cat >>conftest.undefs <<\_ACEOF
23841 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23842 _ACEOF
23844 # Break up conftest.defines because some shells have a limit on the size
23845 # of here documents, and old seds have small limits too (100 cmds).
23846 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23847 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23848 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23849 echo ' :' >>$CONFIG_STATUS
23850 rm -f conftest.tail
23851 while grep . conftest.defines >/dev/null
23853 # Write a limited-size here document to $tmp/defines.sed.
23854 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23855 # Speed up: don't consider the non `#define' lines.
23856 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23857 # Work around the forget-to-reset-the-flag bug.
23858 echo 't clr' >>$CONFIG_STATUS
23859 echo ': clr' >>$CONFIG_STATUS
23860 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23861 echo 'CEOF
23862 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23863 rm -f $tmp/in
23864 mv $tmp/out $tmp/in
23865 ' >>$CONFIG_STATUS
23866 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23867 rm -f conftest.defines
23868 mv conftest.tail conftest.defines
23869 done
23870 rm -f conftest.defines
23871 echo ' fi # grep' >>$CONFIG_STATUS
23872 echo >>$CONFIG_STATUS
23874 # Break up conftest.undefs because some shells have a limit on the size
23875 # of here documents, and old seds have small limits too (100 cmds).
23876 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23877 rm -f conftest.tail
23878 while grep . conftest.undefs >/dev/null
23880 # Write a limited-size here document to $tmp/undefs.sed.
23881 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23882 # Speed up: don't consider the non `#undef'
23883 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23884 # Work around the forget-to-reset-the-flag bug.
23885 echo 't clr' >>$CONFIG_STATUS
23886 echo ': clr' >>$CONFIG_STATUS
23887 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23888 echo 'CEOF
23889 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23890 rm -f $tmp/in
23891 mv $tmp/out $tmp/in
23892 ' >>$CONFIG_STATUS
23893 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23894 rm -f conftest.undefs
23895 mv conftest.tail conftest.undefs
23896 done
23897 rm -f conftest.undefs
23899 cat >>$CONFIG_STATUS <<\_ACEOF
23900 # Let's still pretend it is `configure' which instantiates (i.e., don't
23901 # use $as_me), people would be surprised to read:
23902 # /* config.h. Generated by config.status. */
23903 if test x"$ac_file" = x-; then
23904 echo "/* Generated by configure. */" >$tmp/config.h
23905 else
23906 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23908 cat $tmp/in >>$tmp/config.h
23909 rm -f $tmp/in
23910 if test x"$ac_file" != x-; then
23911 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23912 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23913 echo "$as_me: $ac_file is unchanged" >&6;}
23914 else
23915 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23916 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23917 X"$ac_file" : 'X\(//\)[^/]' \| \
23918 X"$ac_file" : 'X\(//\)$' \| \
23919 X"$ac_file" : 'X\(/\)' \| \
23920 . : '\(.\)' 2>/dev/null ||
23921 echo X"$ac_file" |
23922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23923 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23924 /^X\(\/\/\)$/{ s//\1/; q; }
23925 /^X\(\/\).*/{ s//\1/; q; }
23926 s/.*/./; q'`
23927 { if $as_mkdir_p; then
23928 mkdir -p "$ac_dir"
23929 else
23930 as_dir="$ac_dir"
23931 as_dirs=
23932 while test ! -d "$as_dir"; do
23933 as_dirs="$as_dir $as_dirs"
23934 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23935 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23936 X"$as_dir" : 'X\(//\)[^/]' \| \
23937 X"$as_dir" : 'X\(//\)$' \| \
23938 X"$as_dir" : 'X\(/\)' \| \
23939 . : '\(.\)' 2>/dev/null ||
23940 echo X"$as_dir" |
23941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23943 /^X\(\/\/\)$/{ s//\1/; q; }
23944 /^X\(\/\).*/{ s//\1/; q; }
23945 s/.*/./; q'`
23946 done
23947 test ! -n "$as_dirs" || mkdir $as_dirs
23948 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23949 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23950 { (exit 1); exit 1; }; }; }
23952 rm -f $ac_file
23953 mv $tmp/config.h $ac_file
23955 else
23956 cat $tmp/config.h
23957 rm -f $tmp/config.h
23959 done
23960 _ACEOF
23962 cat >>$CONFIG_STATUS <<\_ACEOF
23964 { (exit 0); exit 0; }
23965 _ACEOF
23966 chmod +x $CONFIG_STATUS
23967 ac_clean_files=$ac_clean_files_save
23970 # configure is writing to config.log, and then calls config.status.
23971 # config.status does its own redirection, appending to config.log.
23972 # Unfortunately, on DOS this fails, as config.log is still kept open
23973 # by configure, so config.status won't be able to write to it; its
23974 # output is simply discarded. So we exec the FD to /dev/null,
23975 # effectively closing config.log, so it can be properly (re)opened and
23976 # appended to by config.status. When coming back to configure, we
23977 # need to make the FD available again.
23978 if test "$no_create" != yes; then
23979 ac_cs_success=:
23980 ac_config_status_args=
23981 test "$silent" = yes &&
23982 ac_config_status_args="$ac_config_status_args --quiet"
23983 exec 5>/dev/null
23984 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23985 exec 5>>config.log
23986 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23987 # would make configure fail if this is the last instruction.
23988 $ac_cs_success || { (exit 1); exit 1; }
23992 echo "creating Modules/Setup"
23993 if test ! -f Modules/Setup
23994 then
23995 cp $srcdir/Modules/Setup.dist Modules/Setup
23998 echo "creating Modules/Setup.local"
23999 if test ! -f Modules/Setup.local
24000 then
24001 echo "# Edit this file for local setup changes" >Modules/Setup.local
24004 echo "creating Makefile"
24005 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
24006 -s Modules Modules/Setup.config \
24007 Modules/Setup.local Modules/Setup
24008 mv config.c Modules