2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Concurrent Versions System (CVS) 1.12.11.
5 # Report bugs to <bug-cvs@gnu.org>.
7 # Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
8 # 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
9 # Free Software Foundation, Inc.
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 2, or (at your option)
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # Copyright (C) 2003 Free Software Foundation, Inc.
22 # This configure script is free software; the Free Software Foundation
23 # gives unlimited permission to copy, distribute and modify it.
24 ## --------------------- ##
25 ## M4sh Initialization. ##
26 ## --------------------- ##
28 # Be Bourne compatible
29 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33 # is contrary to our usage. Disable this feature.
34 alias -g '${1+"$@"}'='"$@"'
35 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
38 DUALCASE=1; export DUALCASE # for MKS sh
40 # Support unset when possible.
41 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
48 # Work around bugs in pre-3.0 UWIN ksh.
49 $as_unset ENV MAIL MAILPATH
56 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
57 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
60 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
61 eval $as_var=C; export $as_var
67 # Required to use basename.
68 if expr a : '\(a\)' >/dev/null 2>&1; then
74 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
81 # Name of the executable.
82 as_me=`$as_basename "$0" ||
83 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
84 X"$0" : 'X\(//\)$' \| \
85 X"$0" : 'X\(/\)$' \| \
86 . : '\(.\)' 2>/dev/null ||
88 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
89 /^X\/\(\/\/\)$/{ s//\1/; q; }
90 /^X\/\(\/\).*/{ s//\1/; q; }
94 # PATH needs CR, and LINENO needs CR and PATH.
95 # Avoid depending upon Character Ranges.
96 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
97 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
98 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
99 as_cr_digits='0123456789'
100 as_cr_alnum=$as_cr_Letters$as_cr_digits
102 # The user is always right.
103 if test "${PATH_SEPARATOR+set}" != set; then
104 echo "#! /bin/sh" >conf$$.sh
105 echo "exit 0" >>conf$$.sh
107 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
118 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
119 test "x$as_lineno_1" != "x$as_lineno_2" &&
120 test "x$as_lineno_3" = "x$as_lineno_2" || {
121 # Find who we are. Look in the path if we contain no path at all
124 *[\\/]* ) as_myself=$0 ;;
125 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129 test -z "$as_dir" && as_dir=.
130 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
135 # We did not find ourselves, most probably we were run as `sh COMMAND'
136 # in which case we are not to be found in the path.
137 if test "x$as_myself" = x; then
140 if test ! -f "$as_myself"; then
141 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
142 { (exit 1); exit 1; }; }
144 case $CONFIG_SHELL in
146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
147 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
150 test -z "$as_dir" && as_dir=.
151 for as_base in sh bash ksh sh5; do
154 if ("$as_dir/$as_base" -c '
157 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
158 test "x$as_lineno_1" != "x$as_lineno_2" &&
159 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
160 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
161 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
162 CONFIG_SHELL=$as_dir/$as_base
164 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
172 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
173 # uniformly replaced by the line number. The first 'sed' inserts a
174 # line-number line before each line; the second 'sed' does the real
175 # work. The second script uses 'N' to pair each line-number line
176 # with the numbered line, and appends trailing '-' during
177 # substitution so that $LINENO is not a special case at line end.
178 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
179 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
180 sed '=' <$as_myself |
185 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
188 s,^['$as_cr_digits']*\n,,
190 chmod +x $as_me.lineno ||
191 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
192 { (exit 1); exit 1; }; }
194 # Don't try to exec as it changes $[0], causing all sort of problems
195 # (the dirname of $[0] is not the place where we might find the
196 # original and so on. Autoconf is especially sensible to this).
198 # Exit status is that of the last command.
203 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
204 *c*,-n*) ECHO_N= ECHO_C='
206 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
207 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
210 if expr a : '\(a\)' >/dev/null 2>&1; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if ln -s conf$$.file conf$$ 2>/dev/null; then
219 # We could just check for DJGPP; but this test a) works b) is more generic
220 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
221 if test -f conf$$.exe; then
222 # Don't use ln at all; we don't have any links
227 elif ln conf$$.file conf$$ 2>/dev/null; then
232 rm -f conf$$ conf$$.exe conf$$.file
234 if mkdir -p . 2>/dev/null; then
237 test -d ./-p && rmdir ./-p
241 as_executable_p="test -f"
243 # Sed expression to map a string onto a valid CPP name.
244 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
246 # Sed expression to map a string onto a valid variable name.
247 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
251 # We need space, tab and new line, in precisely that order.
261 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
262 # so uname gets run too.
263 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
270 ac_default_prefix=/usr/local
271 ac_config_libobj_dir=.
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Maximum number of lines to put in a shell here document.
279 # This variable seems obsolete. It should probably be removed, and
280 # only ac_max_sed_lines should be used.
281 : ${ac_max_here_lines=38}
283 # Identity of this package.
284 PACKAGE_NAME='Concurrent Versions System (CVS)'
285 PACKAGE_TARNAME='cvs'
286 PACKAGE_VERSION='1.12.11'
287 PACKAGE_STRING='Concurrent Versions System (CVS) 1.12.11'
288 PACKAGE_BUGREPORT='bug-cvs@gnu.org'
290 ac_unique_file="src/cvs.h"
291 # Factoring default headers for most tests.
292 ac_includes_default="\
295 # include <sys/types.h>
298 # include <sys/stat.h>
309 # if !STDC_HEADERS && HAVE_MEMORY_H
315 # include <strings.h>
318 # include <inttypes.h>
330 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar ac_prefix_program MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S PERL CSH MKTEMP SENDMAIL PR ROFF PS2PDF TEXI2DVI MAKE_TARGETS_IN_VPATH_TRUE MAKE_TARGETS_IN_VPATH_FALSE LIBOBJS ALLOCA ALLOCA_H FNMATCH_H STDBOOL_H HAVE__BOOL YACC YFLAGS LIB_CLOCK_GETTIME GETOPT_H LIB_NANOSLEEP HAVE_LONG_64BIT HAVE_LONGLONG_64BIT STDINT_H EOVERFLOW MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB HAVE_PUTENV cvs_client_objects KRB4 ZLIB_SUBDIRS ZLIB_CPPFLAGS ZLIB_LIBS with_default_rsh RSH_DFLT EDITOR LTLIBOBJS'
331 ac_subst_files='MKTEMP_SH_FUNCTION'
333 # Initialize some variables set by options.
335 ac_init_version=false
336 # The variables have the same names as the options, with
337 # dashes changed to underlines.
345 program_transform_name=s,x,x,
353 # Installation directory options.
354 # These are left unexpanded so users can "make install exec_prefix=/foo"
355 # and all the variables that are supposed to be based on exec_prefix
356 # by default will actually change.
357 # Use braces instead of parens because sh, perl, etc. also accept them.
358 bindir='${exec_prefix}/bin'
359 sbindir='${exec_prefix}/sbin'
360 libexecdir='${exec_prefix}/libexec'
361 datadir='${prefix}/share'
362 sysconfdir='${prefix}/etc'
363 sharedstatedir='${prefix}/com'
364 localstatedir='${prefix}/var'
365 libdir='${exec_prefix}/lib'
366 includedir='${prefix}/include'
367 oldincludedir='/usr/include'
368 infodir='${prefix}/info'
369 mandir='${prefix}/man'
374 # If the previous option needs an argument, assign it.
375 if test -n "$ac_prev"; then
376 eval "$ac_prev=\$ac_option"
381 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
383 # Accept the important Cygnus configure options, so we can diagnose typos.
387 -bindir | --bindir | --bindi | --bind | --bin | --bi)
389 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
392 -build | --build | --buil | --bui | --bu)
393 ac_prev=build_alias ;;
394 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
395 build_alias=$ac_optarg ;;
397 -cache-file | --cache-file | --cache-fil | --cache-fi \
398 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
399 ac_prev=cache_file ;;
400 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
401 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
402 cache_file=$ac_optarg ;;
405 cache_file=config.cache ;;
407 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
409 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
411 datadir=$ac_optarg ;;
413 -disable-* | --disable-*)
414 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
415 # Reject names that are not valid shell variable names.
416 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
417 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
418 { (exit 1); exit 1; }; }
419 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
420 eval "enable_$ac_feature=no" ;;
422 -enable-* | --enable-*)
423 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
424 # Reject names that are not valid shell variable names.
425 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
426 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
427 { (exit 1); exit 1; }; }
428 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
430 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433 eval "enable_$ac_feature='$ac_optarg'" ;;
435 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
436 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
437 | --exec | --exe | --ex)
438 ac_prev=exec_prefix ;;
439 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
440 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
441 | --exec=* | --exe=* | --ex=*)
442 exec_prefix=$ac_optarg ;;
444 -gas | --gas | --ga | --g)
445 # Obsolete; use --with-gas.
448 -help | --help | --hel | --he | -h)
450 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
451 ac_init_help=recursive ;;
452 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
453 ac_init_help=short ;;
455 -host | --host | --hos | --ho)
456 ac_prev=host_alias ;;
457 -host=* | --host=* | --hos=* | --ho=*)
458 host_alias=$ac_optarg ;;
460 -includedir | --includedir | --includedi | --included | --include \
461 | --includ | --inclu | --incl | --inc)
462 ac_prev=includedir ;;
463 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
464 | --includ=* | --inclu=* | --incl=* | --inc=*)
465 includedir=$ac_optarg ;;
467 -infodir | --infodir | --infodi | --infod | --info | --inf)
469 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
470 infodir=$ac_optarg ;;
472 -libdir | --libdir | --libdi | --libd)
474 -libdir=* | --libdir=* | --libdi=* | --libd=*)
477 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
478 | --libexe | --libex | --libe)
479 ac_prev=libexecdir ;;
480 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
481 | --libexe=* | --libex=* | --libe=*)
482 libexecdir=$ac_optarg ;;
484 -localstatedir | --localstatedir | --localstatedi | --localstated \
485 | --localstate | --localstat | --localsta | --localst \
486 | --locals | --local | --loca | --loc | --lo)
487 ac_prev=localstatedir ;;
488 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
489 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
490 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
491 localstatedir=$ac_optarg ;;
493 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
495 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
499 # Obsolete; use --without-fp.
502 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
503 | --no-cr | --no-c | -n)
506 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
507 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
510 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
511 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
512 | --oldin | --oldi | --old | --ol | --o)
513 ac_prev=oldincludedir ;;
514 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
515 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
516 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
517 oldincludedir=$ac_optarg ;;
519 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
521 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
524 -program-prefix | --program-prefix | --program-prefi | --program-pref \
525 | --program-pre | --program-pr | --program-p)
526 ac_prev=program_prefix ;;
527 -program-prefix=* | --program-prefix=* | --program-prefi=* \
528 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
529 program_prefix=$ac_optarg ;;
531 -program-suffix | --program-suffix | --program-suffi | --program-suff \
532 | --program-suf | --program-su | --program-s)
533 ac_prev=program_suffix ;;
534 -program-suffix=* | --program-suffix=* | --program-suffi=* \
535 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
536 program_suffix=$ac_optarg ;;
538 -program-transform-name | --program-transform-name \
539 | --program-transform-nam | --program-transform-na \
540 | --program-transform-n | --program-transform- \
541 | --program-transform | --program-transfor \
542 | --program-transfo | --program-transf \
543 | --program-trans | --program-tran \
544 | --progr-tra | --program-tr | --program-t)
545 ac_prev=program_transform_name ;;
546 -program-transform-name=* | --program-transform-name=* \
547 | --program-transform-nam=* | --program-transform-na=* \
548 | --program-transform-n=* | --program-transform-=* \
549 | --program-transform=* | --program-transfor=* \
550 | --program-transfo=* | --program-transf=* \
551 | --program-trans=* | --program-tran=* \
552 | --progr-tra=* | --program-tr=* | --program-t=*)
553 program_transform_name=$ac_optarg ;;
555 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
556 | -silent | --silent | --silen | --sile | --sil)
559 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
561 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
563 sbindir=$ac_optarg ;;
565 -sharedstatedir | --sharedstatedir | --sharedstatedi \
566 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
567 | --sharedst | --shareds | --shared | --share | --shar \
569 ac_prev=sharedstatedir ;;
570 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
571 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
572 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
574 sharedstatedir=$ac_optarg ;;
576 -site | --site | --sit)
578 -site=* | --site=* | --sit=*)
581 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
583 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
586 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
587 | --syscon | --sysco | --sysc | --sys | --sy)
588 ac_prev=sysconfdir ;;
589 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
590 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
591 sysconfdir=$ac_optarg ;;
593 -target | --target | --targe | --targ | --tar | --ta | --t)
594 ac_prev=target_alias ;;
595 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
596 target_alias=$ac_optarg ;;
598 -v | -verbose | --verbose | --verbos | --verbo | --verb)
601 -version | --version | --versio | --versi | --vers | -V)
605 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package| sed 's/-/_/g'`
612 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
615 eval "with_$ac_package='$ac_optarg'" ;;
617 -without-* | --without-*)
618 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
619 # Reject names that are not valid shell variable names.
620 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
621 { echo "$as_me: error: invalid package name: $ac_package" >&2
622 { (exit 1); exit 1; }; }
623 ac_package=`echo $ac_package | sed 's/-/_/g'`
624 eval "with_$ac_package=no" ;;
627 # Obsolete; use --with-x.
630 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
631 | --x-incl | --x-inc | --x-in | --x-i)
632 ac_prev=x_includes ;;
633 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
634 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
635 x_includes=$ac_optarg ;;
637 -x-libraries | --x-libraries | --x-librarie | --x-librari \
638 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
639 ac_prev=x_libraries ;;
640 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
641 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
642 x_libraries=$ac_optarg ;;
644 -*) { echo "$as_me: error: unrecognized option: $ac_option
645 Try \`$0 --help' for more information." >&2
646 { (exit 1); exit 1; }; }
650 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
651 # Reject names that are not valid shell variable names.
652 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
653 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
654 { (exit 1); exit 1; }; }
655 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
656 eval "$ac_envvar='$ac_optarg'"
660 # FIXME: should be removed in autoconf 3.0.
661 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
662 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
663 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
664 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
670 if test -n "$ac_prev"; then
671 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
672 { echo "$as_me: error: missing argument to $ac_option" >&2
673 { (exit 1); exit 1; }; }
676 # Be sure to have absolute paths.
677 for ac_var in exec_prefix prefix
679 eval ac_val=$`echo $ac_var`
681 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
687 # Be sure to have absolute paths.
688 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
689 localstatedir libdir includedir oldincludedir infodir mandir
691 eval ac_val=$`echo $ac_var`
693 [\\/$]* | ?:[\\/]* ) ;;
694 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
695 { (exit 1); exit 1; }; };;
699 # There might be people who depend on the old broken behavior: `$host'
700 # used to hold the argument of --host etc.
701 # FIXME: To remove some day.
706 # FIXME: To remove some day.
707 if test "x$host_alias" != x; then
708 if test "x$build_alias" = x; then
709 cross_compiling=maybe
710 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
711 If a cross compiler is detected then cross compile mode will be used." >&2
712 elif test "x$build_alias" != "x$host_alias"; then
718 test -n "$host_alias" && ac_tool_prefix=$host_alias-
720 test "$silent" = yes && exec 6>/dev/null
723 # Find the source files, if location was not specified.
724 if test -z "$srcdir"; then
725 ac_srcdir_defaulted=yes
726 # Try the directory containing this script, then its parent.
727 ac_confdir=`(dirname "$0") 2>/dev/null ||
728 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
729 X"$0" : 'X\(//\)[^/]' \| \
730 X"$0" : 'X\(//\)$' \| \
731 X"$0" : 'X\(/\)' \| \
732 . : '\(.\)' 2>/dev/null ||
734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
736 /^X\(\/\/\)$/{ s//\1/; q; }
737 /^X\(\/\).*/{ s//\1/; q; }
740 if test ! -r $srcdir/$ac_unique_file; then
744 ac_srcdir_defaulted=no
746 if test ! -r $srcdir/$ac_unique_file; then
747 if test "$ac_srcdir_defaulted" = yes; then
748 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
749 { (exit 1); exit 1; }; }
751 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
752 { (exit 1); exit 1; }; }
755 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
756 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
757 { (exit 1); exit 1; }; }
758 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
759 ac_env_build_alias_set=${build_alias+set}
760 ac_env_build_alias_value=$build_alias
761 ac_cv_env_build_alias_set=${build_alias+set}
762 ac_cv_env_build_alias_value=$build_alias
763 ac_env_host_alias_set=${host_alias+set}
764 ac_env_host_alias_value=$host_alias
765 ac_cv_env_host_alias_set=${host_alias+set}
766 ac_cv_env_host_alias_value=$host_alias
767 ac_env_target_alias_set=${target_alias+set}
768 ac_env_target_alias_value=$target_alias
769 ac_cv_env_target_alias_set=${target_alias+set}
770 ac_cv_env_target_alias_value=$target_alias
771 ac_env_CC_set=${CC+set}
773 ac_cv_env_CC_set=${CC+set}
774 ac_cv_env_CC_value=$CC
775 ac_env_CFLAGS_set=${CFLAGS+set}
776 ac_env_CFLAGS_value=$CFLAGS
777 ac_cv_env_CFLAGS_set=${CFLAGS+set}
778 ac_cv_env_CFLAGS_value=$CFLAGS
779 ac_env_LDFLAGS_set=${LDFLAGS+set}
780 ac_env_LDFLAGS_value=$LDFLAGS
781 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
782 ac_cv_env_LDFLAGS_value=$LDFLAGS
783 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
784 ac_env_CPPFLAGS_value=$CPPFLAGS
785 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
786 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
787 ac_env_CPP_set=${CPP+set}
788 ac_env_CPP_value=$CPP
789 ac_cv_env_CPP_set=${CPP+set}
790 ac_cv_env_CPP_value=$CPP
791 ac_env_YACC_set=${YACC+set}
792 ac_env_YACC_value=$YACC
793 ac_cv_env_YACC_set=${YACC+set}
794 ac_cv_env_YACC_value=$YACC
795 ac_env_YFLAGS_set=${YFLAGS+set}
796 ac_env_YFLAGS_value=$YFLAGS
797 ac_cv_env_YFLAGS_set=${YFLAGS+set}
798 ac_cv_env_YFLAGS_value=$YFLAGS
799 ac_env_EDITOR_set=${EDITOR+set}
800 ac_env_EDITOR_value=$EDITOR
801 ac_cv_env_EDITOR_set=${EDITOR+set}
802 ac_cv_env_EDITOR_value=$EDITOR
805 # Report the --help message.
807 if test "$ac_init_help" = "long"; then
808 # Omit some internal or obsolete options to make the list less imposing.
809 # This message is too long to be a string in the A/UX 3.1 sh.
811 \`configure' configures Concurrent Versions System (CVS) 1.12.11 to adapt to many kinds of systems.
813 Usage: $0 [OPTION]... [VAR=VALUE]...
815 To assign environment variables (e.g., CC, CFLAGS...), specify them as
816 VAR=VALUE. See below for descriptions of some of the useful variables.
818 Defaults for the options are specified in brackets.
821 -h, --help display this help and exit
822 --help=short display options specific to this package
823 --help=recursive display the short help of all the included packages
824 -V, --version display version information and exit
825 -q, --quiet, --silent do not print \`checking...' messages
826 --cache-file=FILE cache test results in FILE [disabled]
827 -C, --config-cache alias for \`--cache-file=config.cache'
828 -n, --no-create do not create output files
829 --srcdir=DIR find the sources in DIR [configure dir or \`..']
834 Installation directories:
835 --prefix=PREFIX install architecture-independent files in PREFIX
837 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
840 By default, \`make install' will install all the files in
841 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
842 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
843 for instance \`--prefix=\$HOME'.
845 For better control, use the options below.
847 Fine tuning of the installation directories:
848 --bindir=DIR user executables [EPREFIX/bin]
849 --sbindir=DIR system admin executables [EPREFIX/sbin]
850 --libexecdir=DIR program executables [EPREFIX/libexec]
851 --datadir=DIR read-only architecture-independent data [PREFIX/share]
852 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
853 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
854 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
855 --libdir=DIR object code libraries [EPREFIX/lib]
856 --includedir=DIR C header files [PREFIX/include]
857 --oldincludedir=DIR C header files for non-gcc [/usr/include]
858 --infodir=DIR info documentation [PREFIX/info]
859 --mandir=DIR man documentation [PREFIX/man]
865 --program-prefix=PREFIX prepend PREFIX to installed program names
866 --program-suffix=SUFFIX append SUFFIX to installed program names
867 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
870 --build=BUILD configure for building on BUILD [guessed]
871 --host=HOST cross-compile to build programs to run on HOST [BUILD]
875 if test -n "$ac_init_help"; then
876 case $ac_init_help in
877 short | recursive ) echo "Configuration of Concurrent Versions System (CVS) 1.12.11:";;
882 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
883 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
884 --enable-maintainer-mode enable make rules and dependencies not useful
885 (and sometimes confusing) to the casual installer
886 --disable-dependency-tracking speeds up one-time build
887 --enable-dependency-tracking do not reject slow dependency extractors
888 --disable-largefile omit support for large files
889 --disable-nls do not use Native Language Support
890 --disable-rpath do not hardcode runtime library paths
891 --enable-cvs-ndbm Use the NDBM library distributed with CVS rather
892 than attempting to use a system NDBM library.
893 Disabling this may not work. (default)
894 --enable-client Include code for running as a remote client
896 --enable-password-authenticated-client
897 Enable pserver as a remote access method in the CVS
899 --enable-server Include code for running as a server (default)
900 --enable-server-flow-control
901 If you are working with a large remote repository
902 and a 'cvs checkout' is swamping your network and
903 memory, define these to enable flow control. You may
904 optionally pass a low water mark in bytes and a high
905 water mark in bytes, separated by commas. (default
907 --enable-proxy Include code for running as a transparent proxy
908 server. Disabling this may produce a slight
909 performance gain on some systems, at the expense of
910 write proxy support. (default)
911 --enable-pam Use to enable system authentication with PAM instead
912 of using the simple getpwnam interface. This allows
913 authentication (in theory) with any PAM module, e.g.
914 on systems with shadow passwords or via LDAP
915 --enable-case-sensitivity
916 Force CVS to expect a case sensitive file system.
917 Enabling this on a case insensitive system should
918 have little effect on the server or client
919 operation, though client users may ocassionally be
920 suprised that the CVS server appears to be case
921 sensitive. Disabling this for a case sensitive
922 server disables server support for case insensitive
923 clients, which can confuse all users of case
924 insensitive clients contacting the server. Disabling
925 this for a case sensitive client will cause the
926 client to ask servers to behave case insensitively,
927 which could cause confusion for users, but also
928 probably no real harm. (default autoselects based on
929 the case sensitivity of the file system containing
930 the current working directory)
931 --enable-encryption Enable encryption support (disabled by default)
932 --enable-force-editor When committing or importing files, you must enter a
933 log message. Normally, you can do this either via
934 the -m flag on the command line, the -F flag on the
935 command line, or an editor will be started for you.
936 If you like to use logging templates (the rcsinfo
937 file within the $CVSROOT/CVSROOT directory), you
938 might want to force people to use the editor even if
939 they specify a message with -m or -F.
940 --enable-force-editor will cause the -m or -F
941 message to be appended to the temp file when the
942 editor is started. (disabled by default)
943 --enable-lock-compatibility
944 Include locking code which prevents versions of CVS
945 earlier than 1.12.4 directly accessing the same
946 repositiory as this executable from ignoring this
947 executable's promotable read locks. If only CVS
948 versions 1.12.4 and later will be accessing your
949 repository directly (as a server or locally), you
950 can safely disable this option in return for fewer
951 disk accesses and a small speed increase. Disabling
952 this option when versions of CVS earlier than 1,12,4
953 _will_ be accessing your repository, however, is
954 *VERY* *VERY* *VERY* dangerous and could result in
955 data loss. (enabled by default)
956 --enable-rootcommit Allow the root user to commit files (disabled by
958 --enable-old-info-format-support
959 Enable support for the pre 1.12.1 *info scripting
960 hook format strings. Disable this option for a
961 smaller executable once your scripting hooks have
962 been updated to use the new *info format strings
966 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
967 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
968 --without-included-regex don't compile regex; this is the default on
969 systems with version 2 of the GNU C library
970 (use with caution on other system)
971 --with-gnu-ld assume the C compiler uses GNU ld default=no
972 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
973 --without-libiconv-prefix don't search for libiconv in includedir and libdir
974 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
975 --without-libintl-prefix don't search for libintl in includedir and libdir
976 --with-krb4 Kerberos 4 directory (default /usr/kerberos)
977 --with-gssapi GSSAPI directory (default autoselects)
978 --with-external-zlib Use the specified ZLIB library (defaults to the
979 version distributed with the CVS source)
980 --with-rsh The default remote shell CVS will use for :ext:
981 transport (default rsh)
982 --with-editor The default text editor CVS should use for log
983 messages (default autoselects)
984 --with-hardcoded-pam-service-name
985 Use this to hard code a service name for PAM CVS
986 authentication. The special name, `program_name',
987 will cause CVS to use whatever name it was invoked
988 as as the service name. (defaults to `cvs')
989 --with-tmpdir The temporary directory CVS should use as a default
990 (default autoselects)
991 --with-umask Set the umask CVS will use by default in the
992 repository (default 002)
993 --with-cvs-admin-group=GROUP
994 The CVS admin command is restricted to the members
995 of this group. If this group does not exist, all
996 users are allowed to run CVS admin. To disable the
997 CVS admin command for all users, create an empty
998 group by specifying the --with-cvs-admin-group=
999 option. To disable access control for CVS admin, run
1000 configure with the --without-cvs-admin-group option.
1001 (default 'cvsadmin')
1003 Some influential environment variables:
1004 CC C compiler command
1005 CFLAGS C compiler flags
1006 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1007 nonstandard directory <lib dir>
1008 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1009 headers in a nonstandard directory <include dir>
1011 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1012 `bison -y'. Values other than `bison -y' will most likely break
1014 YFLAGS YFLAGS contains the list arguments that will be passed by
1015 default to Bison. This script will default YFLAGS to the empty
1016 string to avoid a default value of `-d' given by some make
1018 EDITOR The text editor CVS will use by default for log messages.
1020 Use these variables to override the choices made by `configure' or to help
1021 it to find libraries and programs with nonstandard names/locations.
1023 Report bugs to <bug-cvs@gnu.org>.
1027 if test "$ac_init_help" = "recursive"; then
1028 # If there are subdirs, report their specific --help.
1030 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1031 test -d $ac_dir || continue
1034 if test "$ac_dir" != .; then
1035 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1036 # A "../" for each directory in $ac_dir_suffix.
1037 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1039 ac_dir_suffix= ac_top_builddir=
1043 .) # No --srcdir option. We are building in place.
1045 if test -z "$ac_top_builddir"; then
1048 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1050 [\\/]* | ?:[\\/]* ) # Absolute path.
1051 ac_srcdir=$srcdir$ac_dir_suffix;
1052 ac_top_srcdir=$srcdir ;;
1054 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1055 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1058 # Do not use `cd foo && pwd` to compute absolute paths, because
1059 # the directories may not exist.
1061 .) ac_abs_builddir="$ac_dir";;
1064 .) ac_abs_builddir=`pwd`;;
1065 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1066 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1069 case $ac_abs_builddir in
1070 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1072 case ${ac_top_builddir}. in
1073 .) ac_abs_top_builddir=$ac_abs_builddir;;
1074 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1075 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1078 case $ac_abs_builddir in
1079 .) ac_abs_srcdir=$ac_srcdir;;
1082 .) ac_abs_srcdir=$ac_abs_builddir;;
1083 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1084 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1087 case $ac_abs_builddir in
1088 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1090 case $ac_top_srcdir in
1091 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1092 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1093 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1098 # Check for guested configure; otherwise get Cygnus style configure.
1099 if test -f $ac_srcdir/configure.gnu; then
1101 $SHELL $ac_srcdir/configure.gnu --help=recursive
1102 elif test -f $ac_srcdir/configure; then
1104 $SHELL $ac_srcdir/configure --help=recursive
1105 elif test -f $ac_srcdir/configure.ac ||
1106 test -f $ac_srcdir/configure.in; then
1108 $ac_configure --help
1110 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1116 test -n "$ac_init_help" && exit 0
1117 if $ac_init_version; then
1119 Concurrent Versions System (CVS) configure 1.12.11
1120 generated by GNU Autoconf 2.59
1122 Copyright (C) 2003 Free Software Foundation, Inc.
1123 This configure script is free software; the Free Software Foundation
1124 gives unlimited permission to copy, distribute and modify it.
1126 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
1127 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
1128 Free Software Foundation, Inc.
1130 This program is free software; you can redistribute it and/or modify
1131 it under the terms of the GNU General Public License as published by
1132 the Free Software Foundation; either version 2, or (at your option)
1135 This program is distributed in the hope that it will be useful,
1136 but WITHOUT ANY WARRANTY; without even the implied warranty of
1137 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1138 GNU General Public License for more details.
1144 This file contains any messages produced by compilers while
1145 running configure, to aid debugging if configure makes a mistake.
1147 It was created by Concurrent Versions System (CVS) $as_me 1.12.11, which was
1148 generated by GNU Autoconf 2.59. Invocation command line was
1159 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1168 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1198 # Keep a trace of the command line.
1199 # Strip out --no-create and --no-recursion so they do not pile up.
1200 # Strip out --silent because we don't want to record it for future runs.
1201 # Also quote any args containing shell meta-characters.
1202 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_must_keep_next=false
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 -* ) ac_must_keep_next=true ;;
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1246 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249 # When interrupted or exit'd, cleanup temporary files, and complete
1250 # config.log. We remove comments because anyway the quotes in there
1251 # would cause problems or look ugly.
1252 # WARNING: Be sure not to use single quotes in there, as some shells,
1253 # such as our DU 5.0 friend, will then `close' the trap.
1254 trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1260 ## ---------------- ##
1261 ## Cache variables. ##
1262 ## ---------------- ##
1265 # The following way of writing the cache mishandles newlines in values,
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1283 ## ----------------- ##
1284 ## Output variables. ##
1285 ## ----------------- ##
1288 for ac_var in $ac_subst_vars
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1295 if test -n "$ac_subst_files"; then
1302 for ac_var in $ac_subst_files
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1310 if test -s confdefs.h; then
1317 sed "/^$/d" confdefs.h | sort
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1324 rm -f core *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1334 rm -rf conftest* confdefs.h
1335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 # Predefined preprocessor variables.
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_NAME "$PACKAGE_NAME"
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_STRING "$PACKAGE_STRING"
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365 # Let the site file select an alternate cache file if it wants to.
1366 # Prefer explicitly selected file to automatically selected ones.
1367 if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377 echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1383 if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388 echo "$as_me: loading cache $cache_file" >&6;}
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396 echo "$as_me: creating cache $cache_file" >&6;}
1400 # Check that the precious variables saved in the cache have kept the same
1402 ac_cache_corrupted=false
1403 for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
1421 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1424 echo "$as_me: former value: $ac_old_val" >&2;}
1425 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1426 echo "$as_me: current value: $ac_new_val" >&2;}
1427 ac_cache_corrupted=:
1430 # Pass precious variables to config.status.
1431 if test "$ac_new_set" = set; then
1433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435 *) ac_arg=$ac_var=$ac_new_val ;;
1437 case " $ac_configure_args " in
1438 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1439 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443 if $ac_cache_corrupted; then
1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448 { (exit 1); exit 1; }; }
1452 ac_cpp='$CPP $CPPFLAGS'
1453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458 gl_header_list="$gl_header_list sys/time.h"
1459 gl_func_list="$gl_func_list isascii"
1460 gl_header_list="$gl_header_list sys/param.h"
1461 gl_header_list="$gl_header_list unistd.h"
1462 gl_header_list="$gl_header_list stdio_ext.h"
1463 gl_func_list="$gl_func_list gettimeofday"
1464 gl_header_list="$gl_header_list fcntl.h"
1465 gl_header_list="$gl_header_list wchar.h"
1466 gl_header_list="$gl_header_list wctype.h"
1467 gl_func_list="$gl_func_list mempcpy"
1468 gl_func_list="$gl_func_list mblen"
1469 gl_func_list="$gl_func_list mbrlen"
1470 gl_func_list="$gl_func_list tzset"
1497 am__api_version="1.9"
1499 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1500 if test -f $ac_dir/install-sh; then
1502 ac_install_sh="$ac_aux_dir/install-sh -c"
1504 elif test -f $ac_dir/install.sh; then
1506 ac_install_sh="$ac_aux_dir/install.sh -c"
1508 elif test -f $ac_dir/shtool; then
1510 ac_install_sh="$ac_aux_dir/shtool install -c"
1514 if test -z "$ac_aux_dir"; then
1515 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1516 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1517 { (exit 1); exit 1; }; }
1519 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1520 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1521 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1523 # Find a good install program. We prefer a C program (faster),
1524 # so one script is as good as another. But avoid the broken or
1525 # incompatible versions:
1526 # SysV /etc/install, /usr/sbin/install
1527 # SunOS /usr/etc/install
1528 # IRIX /sbin/install
1530 # AmigaOS /C/install, which installs bootblocks on floppy discs
1531 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1532 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1533 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1534 # OS/2's system install, which has a completely different semantic
1535 # ./install, which can be erroneously created by make from ./install.sh.
1536 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1537 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1538 if test -z "$INSTALL"; then
1539 if test "${ac_cv_path_install+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546 test -z "$as_dir" && as_dir=.
1547 # Account for people who put trailing slashes in PATH elements.
1549 ./ | .// | /cC/* | \
1550 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1551 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1554 # OSF1 and SCO ODT 3.0 have their own names for install.
1555 # Don't use installbsd from OSF since it installs stuff as root
1557 for ac_prog in ginstall scoinst install; do
1558 for ac_exec_ext in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1560 if test $ac_prog = install &&
1561 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1562 # AIX install. It has an incompatible calling convention.
1564 elif test $ac_prog = install &&
1565 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1566 # program-specific install script used by HP pwplus--don't use.
1569 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1581 if test "${ac_cv_path_install+set}" = set; then
1582 INSTALL=$ac_cv_path_install
1584 # As a last resort, use the slow shell script. We don't cache a
1585 # path for INSTALL within a source directory, because that will
1586 # break other packages using the cache if that directory is
1587 # removed, or if the path is relative.
1588 INSTALL=$ac_install_sh
1591 echo "$as_me:$LINENO: result: $INSTALL" >&5
1592 echo "${ECHO_T}$INSTALL" >&6
1594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1595 # It thinks the first close brace ends the variable substitution.
1596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1598 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1600 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1602 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1603 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1606 echo timestamp > conftest.file
1607 # Do `set' in a subshell so we don't clobber the current shell's
1608 # arguments. Must try -L first in case configure is actually a
1609 # symlink; some systems play weird games with the mod time of symlinks
1610 # (eg FreeBSD returns the mod time of the symlink's containing
1613 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1614 if test "$*" = "X"; then
1616 set X `ls -t $srcdir/configure conftest.file`
1619 if test "$*" != "X $srcdir/configure conftest.file" \
1620 && test "$*" != "X conftest.file $srcdir/configure"; then
1622 # If neither matched, then we have a broken ls. This can happen
1623 # if, for instance, CONFIG_SHELL is bash and it inherits a
1624 # broken ls alias from the environment. This has actually
1625 # happened. Such a system could not be considered "sane".
1626 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1627 alias in your environment" >&5
1628 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1629 alias in your environment" >&2;}
1630 { (exit 1); exit 1; }; }
1633 test "$2" = conftest.file
1639 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1640 Check your system clock" >&5
1641 echo "$as_me: error: newly created file is older than distributed files!
1642 Check your system clock" >&2;}
1643 { (exit 1); exit 1; }; }
1645 echo "$as_me:$LINENO: result: yes" >&5
1646 echo "${ECHO_T}yes" >&6
1647 test "$program_prefix" != NONE &&
1648 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1649 # Use a double $ so make ignores it.
1650 test "$program_suffix" != NONE &&
1651 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1652 # Double any \ or $. echo might interpret backslashes.
1653 # By default was `s,x,x', remove it if useless.
1654 cat <<\_ACEOF >conftest.sed
1655 s/[\\$]/&&/g;s/;s,x,x,$//
1657 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1660 # expand $ac_aux_dir to an absolute path
1661 am_aux_dir=`cd $ac_aux_dir && pwd`
1663 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1664 # Use eval to expand $SHELL
1665 if eval "$MISSING --run true"; then
1666 am_missing_run="$MISSING --run "
1669 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1670 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1673 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1674 # We used to keeping the `.' as first argument, in order to
1675 # allow $(mkdir_p) to be used without argument. As in
1676 # $(mkdir_p) $(somedir)
1677 # where $(somedir) is conditionally defined. However this is wrong
1679 # 1. if the package is installed by a user who cannot write `.'
1680 # make install will fail,
1681 # 2. the above comment should most certainly read
1682 # $(mkdir_p) $(DESTDIR)$(somedir)
1683 # so it does not work when $(somedir) is undefined and
1684 # $(DESTDIR) is not.
1685 # To support the latter case, we have to write
1686 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1687 # so the `.' trick is pointless.
1688 mkdir_p='mkdir -p --'
1690 # On NextStep and OpenStep, the `mkdir' command does not
1691 # recognize any option. It will interpret all options as
1692 # directories to create, and then abort because `.' already
1694 for d in ./-p ./--version;
1696 test -d $d && rmdir $d
1698 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1699 if test -f "$ac_aux_dir/mkinstalldirs"; then
1700 mkdir_p='$(mkinstalldirs)'
1702 mkdir_p='$(install_sh) -d'
1706 for ac_prog in gawk mawk nawk awk
1708 # Extract the first word of "$ac_prog", so it can be a program name with args.
1709 set dummy $ac_prog; ac_word=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_AWK+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 if test -n "$AWK"; then
1716 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 test -z "$as_dir" && as_dir=.
1723 for ac_exec_ext in '' $ac_executable_extensions; do
1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725 ac_cv_prog_AWK="$ac_prog"
1726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 if test -n "$AWK"; then
1736 echo "$as_me:$LINENO: result: $AWK" >&5
1737 echo "${ECHO_T}$AWK" >&6
1739 echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1743 test -n "$AWK" && break
1746 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1747 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1748 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1749 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 cat >conftest.make <<\_ACEOF
1754 @echo 'ac_maketemp="$(MAKE)"'
1756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1757 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1758 if test -n "$ac_maketemp"; then
1759 eval ac_cv_prog_make_${ac_make}_set=yes
1761 eval ac_cv_prog_make_${ac_make}_set=no
1765 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1766 echo "$as_me:$LINENO: result: yes" >&5
1767 echo "${ECHO_T}yes" >&6
1770 echo "$as_me:$LINENO: result: no" >&5
1771 echo "${ECHO_T}no" >&6
1772 SET_MAKE="MAKE=${MAKE-make}"
1775 rm -rf .tst 2>/dev/null
1776 mkdir .tst 2>/dev/null
1777 if test -d .tst; then
1782 rmdir .tst 2>/dev/null
1784 # test to see if srcdir already configured
1785 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1786 test -f $srcdir/config.status; then
1787 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1788 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1789 { (exit 1); exit 1; }; }
1792 # test whether we have cygpath
1793 if test -z "$CYGPATH_W"; then
1794 if (cygpath --version) >/dev/null 2>/dev/null; then
1795 CYGPATH_W='cygpath -w'
1802 # Define the identity of the package.
1807 # Some tools Automake needs.
1809 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1812 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1815 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1818 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1821 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1823 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1825 # Installed binaries are usually stripped using `strip' when the user
1826 # run `make install-strip'. However `strip' might not be the right
1827 # tool to use in cross-compilation environments, therefore Automake
1828 # will honor the `STRIP' environment variable to overrule this program.
1829 if test "$cross_compiling" != no; then
1830 if test -n "$ac_tool_prefix"; then
1831 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1832 set dummy ${ac_tool_prefix}strip; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_STRIP+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 if test -n "$STRIP"; then
1839 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 STRIP=$ac_cv_prog_STRIP
1858 if test -n "$STRIP"; then
1859 echo "$as_me:$LINENO: result: $STRIP" >&5
1860 echo "${ECHO_T}$STRIP" >&6
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1867 if test -z "$ac_cv_prog_STRIP"; then
1869 # Extract the first word of "strip", so it can be a program name with args.
1870 set dummy strip; ac_word=$2
1871 echo "$as_me:$LINENO: checking for $ac_word" >&5
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 if test -n "$ac_ct_STRIP"; then
1877 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 test -z "$as_dir" && as_dir=.
1884 for ac_exec_ext in '' $ac_executable_extensions; do
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886 ac_cv_prog_ac_ct_STRIP="strip"
1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1896 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1897 if test -n "$ac_ct_STRIP"; then
1898 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1899 echo "${ECHO_T}$ac_ct_STRIP" >&6
1901 echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1907 STRIP="$ac_cv_prog_STRIP"
1911 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1913 # We need awk for the "check" target. The system "awk" is bad on
1915 # Always define AMTAR for backward compatibility.
1917 AMTAR=${AMTAR-"${am_missing_run}tar"}
1919 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1927 if test "x$prefix" = xNONE; then
1928 echo $ECHO_N "checking for prefix by $ECHO_C" >&6
1929 # Extract the first word of "cvs", so it can be a program name with args.
1930 set dummy cvs; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 case $ac_prefix_program in
1938 ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 test -z "$as_dir" && as_dir=.
1946 for ac_exec_ext in '' $ac_executable_extensions; do
1947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948 ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 ac_prefix_program=$ac_cv_path_ac_prefix_program
1960 if test -n "$ac_prefix_program"; then
1961 echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
1962 echo "${ECHO_T}$ac_prefix_program" >&6
1964 echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1968 if test -n "$ac_prefix_program"; then
1969 prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
1970 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1971 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
1972 X"$ac_prefix_program" : 'X\(//\)$' \| \
1973 X"$ac_prefix_program" : 'X\(/\)' \| \
1974 . : '\(.\)' 2>/dev/null ||
1975 echo X"$ac_prefix_program" |
1976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1978 /^X\(\/\/\)$/{ s//\1/; q; }
1979 /^X\(\/\).*/{ s//\1/; q; }
1981 prefix=`(dirname "$prefix") 2>/dev/null ||
1982 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1983 X"$prefix" : 'X\(//\)[^/]' \| \
1984 X"$prefix" : 'X\(//\)$' \| \
1985 X"$prefix" : 'X\(/\)' \| \
1986 . : '\(.\)' 2>/dev/null ||
1988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1990 /^X\(\/\/\)$/{ s//\1/; q; }
1991 /^X\(\/\).*/{ s//\1/; q; }
1996 ac_config_headers="$ac_config_headers config.h"
1998 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1999 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2000 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2001 if test "${enable_maintainer_mode+set}" = set; then
2002 enableval="$enable_maintainer_mode"
2003 USE_MAINTAINER_MODE=$enableval
2005 USE_MAINTAINER_MODE=no
2007 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2008 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2011 if test $USE_MAINTAINER_MODE = yes; then
2012 MAINTAINER_MODE_TRUE=
2013 MAINTAINER_MODE_FALSE='#'
2015 MAINTAINER_MODE_TRUE='#'
2016 MAINTAINER_MODE_FALSE=
2019 MAINT=$MAINTAINER_MODE_TRUE
2023 DEPDIR="${am__leading_dot}deps"
2025 ac_config_commands="$ac_config_commands depfiles"
2028 am_make=${MAKE-make}
2029 cat > confinc << 'END'
2034 # If we don't find an include directive, just comment out the code.
2035 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2036 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2040 # First try GNU make style include.
2041 echo "include confinc" > confmf
2042 # We grep out `Entering directory' and `Leaving directory'
2043 # messages which can occur if `w' ends up in MAKEFLAGS.
2044 # In particular we don't look at `^make:' because GNU make might
2045 # be invoked under some other name (usually "gmake"), in which
2046 # case it prints its new name instead of `make'.
2047 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2052 # Now try BSD make style include.
2053 if test "$am__include" = "#"; then
2054 echo '.include "confinc"' > confmf
2055 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2056 am__include=.include
2063 echo "$as_me:$LINENO: result: $_am_result" >&5
2064 echo "${ECHO_T}$_am_result" >&6
2065 rm -f confinc confmf
2067 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2068 if test "${enable_dependency_tracking+set}" = set; then
2069 enableval="$enable_dependency_tracking"
2072 if test "x$enable_dependency_tracking" != xno; then
2073 am_depcomp="$ac_aux_dir/depcomp"
2078 if test "x$enable_dependency_tracking" != xno; then
2089 ac_cpp='$CPP $CPPFLAGS'
2090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2093 if test -n "$ac_tool_prefix"; then
2094 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2095 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2096 echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_CC+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 if test -n "$CC"; then
2102 ac_cv_prog_CC="$CC" # Let the user override the test.
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 if test -n "$CC"; then
2122 echo "$as_me:$LINENO: result: $CC" >&5
2123 echo "${ECHO_T}$CC" >&6
2125 echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6
2130 if test -z "$ac_cv_prog_CC"; then
2132 # Extract the first word of "gcc", so it can be a program name with args.
2133 set dummy gcc; ac_word=$2
2134 echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2136 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 if test -n "$ac_ct_CC"; then
2140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
2148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2149 ac_cv_prog_ac_ct_CC="gcc"
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2159 if test -n "$ac_ct_CC"; then
2160 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2161 echo "${ECHO_T}$ac_ct_CC" >&6
2163 echo "$as_me:$LINENO: result: no" >&5
2164 echo "${ECHO_T}no" >&6
2172 if test -z "$CC"; then
2173 if test -n "$ac_tool_prefix"; then
2174 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2175 set dummy ${ac_tool_prefix}cc; ac_word=$2
2176 echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2178 if test "${ac_cv_prog_CC+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 if test -n "$CC"; then
2182 ac_cv_prog_CC="$CC" # Let the user override the test.
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191 ac_cv_prog_CC="${ac_tool_prefix}cc"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 if test -n "$CC"; then
2202 echo "$as_me:$LINENO: result: $CC" >&5
2203 echo "${ECHO_T}$CC" >&6
2205 echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6
2210 if test -z "$ac_cv_prog_CC"; then
2212 # Extract the first word of "cc", so it can be a program name with args.
2213 set dummy cc; ac_word=$2
2214 echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 if test -n "$ac_ct_CC"; then
2220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229 ac_cv_prog_ac_ct_CC="cc"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239 if test -n "$ac_ct_CC"; then
2240 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241 echo "${ECHO_T}$ac_ct_CC" >&6
2243 echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2253 if test -z "$CC"; then
2254 # Extract the first word of "cc", so it can be a program name with args.
2255 set dummy cc; ac_word=$2
2256 echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2258 if test "${ac_cv_prog_CC+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 if test -n "$CC"; then
2262 ac_cv_prog_CC="$CC" # Let the user override the test.
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2273 ac_prog_rejected=yes
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283 if test $ac_prog_rejected = yes; then
2284 # We found a bogon in the path, so make sure we never use it.
2285 set dummy $ac_cv_prog_CC
2287 if test $# != 0; then
2288 # We chose a different compiler from the bogus one.
2289 # However, it has the same basename, so the bogon will be chosen
2290 # first if we set CC to just the basename; use the full file name.
2292 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2298 if test -n "$CC"; then
2299 echo "$as_me:$LINENO: result: $CC" >&5
2300 echo "${ECHO_T}$CC" >&6
2302 echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6
2307 if test -z "$CC"; then
2308 if test -n "$ac_tool_prefix"; then
2311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2312 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2313 echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2315 if test "${ac_cv_prog_CC+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 if test -n "$CC"; then
2319 ac_cv_prog_CC="$CC" # Let the user override the test.
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2328 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 if test -n "$CC"; then
2339 echo "$as_me:$LINENO: result: $CC" >&5
2340 echo "${ECHO_T}$CC" >&6
2342 echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6
2346 test -n "$CC" && break
2349 if test -z "$CC"; then
2353 # Extract the first word of "$ac_prog", so it can be a program name with args.
2354 set dummy $ac_prog; ac_word=$2
2355 echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 if test -n "$ac_ct_CC"; then
2361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370 ac_cv_prog_ac_ct_CC="$ac_prog"
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2380 if test -n "$ac_ct_CC"; then
2381 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2382 echo "${ECHO_T}$ac_ct_CC" >&6
2384 echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6
2388 test -n "$ac_ct_CC" && break
2397 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2398 See \`config.log' for more details." >&5
2399 echo "$as_me: error: no acceptable C compiler found in \$PATH
2400 See \`config.log' for more details." >&2;}
2401 { (exit 1); exit 1; }; }
2403 # Provide some information about the compiler.
2404 echo "$as_me:$LINENO:" \
2405 "checking for C compiler version" >&5
2406 ac_compiler=`set X $ac_compile; echo $2`
2407 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2408 (eval $ac_compiler --version </dev/null >&5) 2>&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }
2412 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2413 (eval $ac_compiler -v </dev/null >&5) 2>&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }
2417 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2418 (eval $ac_compiler -V </dev/null >&5) 2>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }
2423 cat >conftest.$ac_ext <<_ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2438 ac_clean_files_save=$ac_clean_files
2439 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2440 # Try to create an executable without -o first, disregard a.out.
2441 # It will help us diagnose broken compilers, and finding out an intuition
2443 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2444 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2445 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2446 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2447 (eval $ac_link_default) 2>&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; then
2451 # Find the output, starting from the most likely. This scheme is
2452 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2455 # Be careful to initialize this variable, since it used to be cached.
2456 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2458 # b.out is created by i960 compilers.
2459 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2461 test -f "$ac_file" || continue
2463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2466 # This is the source file.
2469 # We found the default executable, but exeext='' is most
2473 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2474 # FIXME: I believe we export ac_cv_exeext for Libtool,
2475 # but it would be cool to find out if it's true. Does anybody
2476 # maintain Libtool? --akim.
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2487 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2488 See \`config.log' for more details." >&5
2489 echo "$as_me: error: C compiler cannot create executables
2490 See \`config.log' for more details." >&2;}
2491 { (exit 77); exit 77; }; }
2494 ac_exeext=$ac_cv_exeext
2495 echo "$as_me:$LINENO: result: $ac_file" >&5
2496 echo "${ECHO_T}$ac_file" >&6
2498 # Check the compiler produces executables we can run. If not, either
2499 # the compiler is broken, or we cross compile.
2500 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2501 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2502 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2503 # If not cross compiling, check that we can run a simple program.
2504 if test "$cross_compiling" != yes; then
2505 if { ac_try='./$ac_file'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2513 if test "$cross_compiling" = maybe; then
2516 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2517 If you meant to cross compile, use \`--host'.
2518 See \`config.log' for more details." >&5
2519 echo "$as_me: error: cannot run C compiled programs.
2520 If you meant to cross compile, use \`--host'.
2521 See \`config.log' for more details." >&2;}
2522 { (exit 1); exit 1; }; }
2526 echo "$as_me:$LINENO: result: yes" >&5
2527 echo "${ECHO_T}yes" >&6
2529 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2530 ac_clean_files=$ac_clean_files_save
2531 # Check the compiler produces executables we can run. If not, either
2532 # the compiler is broken, or we cross compile.
2533 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2534 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2535 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2536 echo "${ECHO_T}$cross_compiling" >&6
2538 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2539 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2541 (eval $ac_link) 2>&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; then
2545 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2546 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2547 # work properly (i.e., refer to `conftest.exe'), while it won't with
2549 for ac_file in conftest.exe conftest conftest.*; do
2550 test -f "$ac_file" || continue
2552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2553 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2563 See \`config.log' for more details." >&2;}
2564 { (exit 1); exit 1; }; }
2567 rm -f conftest$ac_cv_exeext
2568 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2569 echo "${ECHO_T}$ac_cv_exeext" >&6
2571 rm -f conftest.$ac_ext
2572 EXEEXT=$ac_cv_exeext
2574 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2575 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2576 if test "${ac_cv_objext+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 cat >conftest.$ac_ext <<_ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2594 rm -f conftest.o conftest.obj
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; then
2600 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2603 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2611 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2612 See \`config.log' for more details." >&5
2613 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2614 See \`config.log' for more details." >&2;}
2615 { (exit 1); exit 1; }; }
2618 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2620 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2621 echo "${ECHO_T}$ac_cv_objext" >&6
2622 OBJEXT=$ac_cv_objext
2624 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2625 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2626 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>conftest.er1
2651 grep -v '^ *+' conftest.er1 >conftest.err
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try='test -z "$ac_c_werror_flag"
2657 || test ! -s conftest.err'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; } &&
2663 { ac_try='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2680 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2681 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2682 GCC=`test $ac_compiler_gnu = yes && echo yes`
2683 ac_test_CFLAGS=${CFLAGS+set}
2684 ac_save_CFLAGS=$CFLAGS
2686 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2687 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2688 if test "${ac_cv_prog_cc_g+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 cat >conftest.$ac_ext <<_ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>conftest.er1
2710 grep -v '^ *+' conftest.er1 >conftest.err
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -z "$ac_c_werror_flag"
2716 || test ! -s conftest.err'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest.$ac_objext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2737 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2738 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2739 if test "$ac_test_CFLAGS" = set; then
2740 CFLAGS=$ac_save_CFLAGS
2741 elif test $ac_cv_prog_cc_g = yes; then
2742 if test "$GCC" = yes; then
2748 if test "$GCC" = yes; then
2754 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2755 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2756 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 ac_cv_prog_cc_stdc=no
2761 cat >conftest.$ac_ext <<_ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2769 #include <sys/types.h>
2770 #include <sys/stat.h>
2771 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2772 struct buf { int x; };
2773 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2774 static char *e (p, i)
2780 static char *f (char * (*g) (char **, int), char **p, ...)
2785 s = g (p, va_arg (v,int));
2790 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2791 function prototypes and stuff, but not '\xHH' hex character constants.
2792 These don't provoke an error unfortunately, instead are silently treated
2793 as 'x'. The following induces an error, until -std1 is added to get
2794 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2795 array size at least. It's necessary to write '\x00'==0 to get something
2796 that's true only with -std1. */
2797 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2799 int test (int i, double x);
2800 struct s1 {int (*f) (int a);};
2801 struct s2 {int (*f) (double a);};
2802 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2808 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2813 # Don't try gcc -ansi; that turns off useful extensions and
2814 # breaks some systems' header files.
2815 # AIX -qlanglvl=ansi
2816 # Ultrix and OSF/1 -std1
2817 # HP-UX 10.20 and later -Ae
2818 # HP-UX older versions -Aa -D_HPUX_SOURCE
2819 # SVR4 -Xc -D__EXTENSIONS__
2820 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2822 CC="$ac_save_CC $ac_arg"
2823 rm -f conftest.$ac_objext
2824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825 (eval $ac_compile) 2>conftest.er1
2827 grep -v '^ *+' conftest.er1 >conftest.err
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } &&
2832 { ac_try='test -z "$ac_c_werror_flag"
2833 || test ! -s conftest.err'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; } &&
2839 { ac_try='test -s conftest.$ac_objext'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; }; then
2845 ac_cv_prog_cc_stdc=$ac_arg
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2852 rm -f conftest.err conftest.$ac_objext
2854 rm -f conftest.$ac_ext conftest.$ac_objext
2859 case "x$ac_cv_prog_cc_stdc" in
2861 echo "$as_me:$LINENO: result: none needed" >&5
2862 echo "${ECHO_T}none needed" >&6 ;;
2864 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2865 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2866 CC="$CC $ac_cv_prog_cc_stdc" ;;
2869 # Some people use a C++ compiler to compile C. Since we use `exit',
2870 # in C++ we need to declare it. In case someone uses the same compiler
2871 # for both compiling C and C++ we need to have the C++ compiler decide
2872 # the declaration of exit, since it's the most demanding environment.
2873 cat >conftest.$ac_ext <<_ACEOF
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2882 grep -v '^ *+' conftest.er1 >conftest.err
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -z "$ac_c_werror_flag"
2888 || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 for ac_declaration in \
2902 'extern "C" void std::exit (int) throw (); using std::exit;' \
2903 'extern "C" void std::exit (int); using std::exit;' \
2904 'extern "C" void exit (int) throw ();' \
2905 'extern "C" void exit (int);' \
2908 cat >conftest.$ac_ext <<_ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2924 rm -f conftest.$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>conftest.er1
2928 grep -v '^ *+' conftest.er1 >conftest.err
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -z "$ac_c_werror_flag"
2934 || test ! -s conftest.err'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try='test -s conftest.$ac_objext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2954 cat >conftest.$ac_ext <<_ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2969 rm -f conftest.$ac_objext
2970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2971 (eval $ac_compile) 2>conftest.er1
2973 grep -v '^ *+' conftest.er1 >conftest.err
2975 cat conftest.err >&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } &&
2978 { ac_try='test -z "$ac_c_werror_flag"
2979 || test ! -s conftest.err'
2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; } &&
2985 { ac_try='test -s conftest.$ac_objext'
2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; }; then
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3000 if test -n "$ac_declaration"; then
3001 echo '#ifdef __cplusplus' >>confdefs.h
3002 echo $ac_declaration >>confdefs.h
3003 echo '#endif' >>confdefs.h
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 depcc="$CC" am_compiler_list=
3020 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3021 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3022 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3026 # We make a subdir and do the tests there. Otherwise we can end up
3027 # making bogus files that we don't know about and never remove. For
3028 # instance it was reported that on HP-UX the gcc test will end up
3029 # making a dummy file named `D' -- because `-MD' means `put the output
3032 # Copy depcomp to subdir because otherwise we won't find it if we're
3033 # using a relative directory.
3034 cp "$am_depcomp" conftest.dir
3036 # We will build objects and dependencies in a subdirectory because
3037 # it helps to detect inapplicable dependency modes. For instance
3038 # both Tru64's cc and ICC support -MD to output dependencies as a
3039 # side effect of compilation, but ICC will put the dependencies in
3040 # the current directory while Tru64 will put them in the object
3044 am_cv_CC_dependencies_compiler_type=none
3045 if test "$am_compiler_list" = ""; then
3046 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3048 for depmode in $am_compiler_list; do
3049 # Setup a source with many dependencies, because some compilers
3050 # like to wrap large dependency lists on column 80 (with \), and
3051 # we should not choose a depcomp mode which is confused by this.
3053 # We need to recreate these files for each test, as the compiler may
3054 # overwrite some of them when testing with obscure command lines.
3055 # This happens at least with the AIX C compiler.
3057 for i in 1 2 3 4 5 6; do
3058 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3059 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3060 # Solaris 8's {/usr,}/bin/sh.
3061 touch sub/conftst$i.h
3063 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3067 # after this tag, mechanisms are not by side-effect, so they'll
3068 # only be used when explicitly requested
3069 if test "x$enable_dependency_tracking" = xyes; then
3077 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3078 # mode. It turns out that the SunPro C++ compiler does not properly
3079 # handle `-M -o', and we need to detect this.
3080 if depmode=$depmode \
3081 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3082 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3083 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3084 >/dev/null 2>conftest.err &&
3085 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3086 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3087 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3088 # icc doesn't choke on unknown options, it will just issue warnings
3089 # or remarks (even with -Werror). So we grep stderr for any message
3090 # that says an option was ignored or not supported.
3091 # When given -MP, icc 7.0 and 7.1 complain thusly:
3092 # icc: Command line warning: ignoring option '-M'; no argument required
3093 # The diagnosis changed in icc 8.0:
3094 # icc: Command line remark: option '-MP' not supported
3095 if (grep 'ignoring option' conftest.err ||
3096 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3097 am_cv_CC_dependencies_compiler_type=$depmode
3106 am_cv_CC_dependencies_compiler_type=none
3110 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3111 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3112 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3117 test "x$enable_dependency_tracking" != xno \
3118 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3120 am__fastdepCC_FALSE='#'
3122 am__fastdepCC_TRUE='#'
3123 am__fastdepCC_FALSE=
3129 ac_cpp='$CPP $CPPFLAGS'
3130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3134 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3135 # On Suns, sometimes $CPP names a directory.
3136 if test -n "$CPP" && test -d "$CPP"; then
3139 if test -z "$CPP"; then
3140 if test "${ac_cv_prog_CPP+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 # Double quotes because CPP needs to be expanded
3144 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3147 for ac_c_preproc_warn_flag in '' yes
3149 # Use a header file that comes with gcc, so configuring glibc
3150 # with a fresh cross-compiler works.
3151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3152 # <limits.h> exists even on freestanding compilers.
3153 # On the NeXT, cc -E runs the code through the compiler's parser,
3154 # not just through cpp. "Syntax error" is here to catch this case.
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3162 # include <limits.h>
3164 # include <assert.h>
3168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3171 grep -v '^ *+' conftest.er1 >conftest.err
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } >/dev/null; then
3176 if test -s conftest.err; then
3177 ac_cpp_err=$ac_c_preproc_warn_flag
3178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3185 if test -z "$ac_cpp_err"; then
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3191 # Broken: fails on valid input.
3194 rm -f conftest.err conftest.$ac_ext
3196 # OK, works on sane cases. Now check whether non-existent headers
3197 # can be detected and how.
3198 cat >conftest.$ac_ext <<_ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3204 #include <ac_nonexistent.h>
3206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3209 grep -v '^ *+' conftest.er1 >conftest.err
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } >/dev/null; then
3214 if test -s conftest.err; then
3215 ac_cpp_err=$ac_c_preproc_warn_flag
3216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3223 if test -z "$ac_cpp_err"; then
3224 # Broken: success on invalid input.
3227 echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3230 # Passes both tests.
3234 rm -f conftest.err conftest.$ac_ext
3237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3238 rm -f conftest.err conftest.$ac_ext
3239 if $ac_preproc_ok; then
3251 echo "$as_me:$LINENO: result: $CPP" >&5
3252 echo "${ECHO_T}$CPP" >&6
3254 for ac_c_preproc_warn_flag in '' yes
3256 # Use a header file that comes with gcc, so configuring glibc
3257 # with a fresh cross-compiler works.
3258 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3259 # <limits.h> exists even on freestanding compilers.
3260 # On the NeXT, cc -E runs the code through the compiler's parser,
3261 # not just through cpp. "Syntax error" is here to catch this case.
3262 cat >conftest.$ac_ext <<_ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3269 # include <limits.h>
3271 # include <assert.h>
3275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3278 grep -v '^ *+' conftest.er1 >conftest.err
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } >/dev/null; then
3283 if test -s conftest.err; then
3284 ac_cpp_err=$ac_c_preproc_warn_flag
3285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3292 if test -z "$ac_cpp_err"; then
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 # Broken: fails on valid input.
3301 rm -f conftest.err conftest.$ac_ext
3303 # OK, works on sane cases. Now check whether non-existent headers
3304 # can be detected and how.
3305 cat >conftest.$ac_ext <<_ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 #include <ac_nonexistent.h>
3313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3316 grep -v '^ *+' conftest.er1 >conftest.err
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } >/dev/null; then
3321 if test -s conftest.err; then
3322 ac_cpp_err=$ac_c_preproc_warn_flag
3323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3330 if test -z "$ac_cpp_err"; then
3331 # Broken: success on invalid input.
3334 echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3337 # Passes both tests.
3341 rm -f conftest.err conftest.$ac_ext
3344 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3345 rm -f conftest.err conftest.$ac_ext
3346 if $ac_preproc_ok; then
3349 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3350 See \`config.log' for more details." >&5
3351 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3352 See \`config.log' for more details." >&2;}
3353 { (exit 1); exit 1; }; }
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3363 echo "$as_me:$LINENO: checking for egrep" >&5
3364 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3365 if test "${ac_cv_prog_egrep+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3369 then ac_cv_prog_egrep='grep -E'
3370 else ac_cv_prog_egrep='egrep'
3373 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3374 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3375 EGREP=$ac_cv_prog_egrep
3379 echo "$as_me:$LINENO: checking for AIX" >&5
3380 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3393 $EGREP "yes" >/dev/null 2>&1; then
3394 echo "$as_me:$LINENO: result: yes" >&5
3395 echo "${ECHO_T}yes" >&6
3396 cat >>confdefs.h <<\_ACEOF
3397 #define _ALL_SOURCE 1
3401 echo "$as_me:$LINENO: result: no" >&5
3402 echo "${ECHO_T}no" >&6
3407 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3408 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3409 if test "${ac_cv_header_stdc+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 cat >conftest.$ac_ext <<_ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3431 rm -f conftest.$ac_objext
3432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3433 (eval $ac_compile) 2>conftest.er1
3435 grep -v '^ *+' conftest.er1 >conftest.err
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } &&
3440 { ac_try='test -z "$ac_c_werror_flag"
3441 || test ! -s conftest.err'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; } &&
3447 { ac_try='test -s conftest.$ac_objext'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; }; then
3453 ac_cv_header_stdc=yes
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458 ac_cv_header_stdc=no
3460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3462 if test $ac_cv_header_stdc = yes; then
3463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3464 cat >conftest.$ac_ext <<_ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3474 $EGREP "memchr" >/dev/null 2>&1; then
3477 ac_cv_header_stdc=no
3483 if test $ac_cv_header_stdc = yes; then
3484 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3485 cat >conftest.$ac_ext <<_ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3495 $EGREP "free" >/dev/null 2>&1; then
3498 ac_cv_header_stdc=no
3504 if test $ac_cv_header_stdc = yes; then
3505 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3506 if test "$cross_compiling" = yes; then
3509 cat >conftest.$ac_ext <<_ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3516 #if ((' ' & 0x0FF) == 0x020)
3517 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3518 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3520 # define ISLOWER(c) \
3521 (('a' <= (c) && (c) <= 'i') \
3522 || ('j' <= (c) && (c) <= 'r') \
3523 || ('s' <= (c) && (c) <= 'z'))
3524 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3527 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3532 for (i = 0; i < 256; i++)
3533 if (XOR (islower (i), ISLOWER (i))
3534 || toupper (i) != TOUPPER (i))
3539 rm -f conftest$ac_exeext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3541 (eval $ac_link) 2>&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; }; then
3552 echo "$as_me: program exited with status $ac_status" >&5
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3557 ac_cv_header_stdc=no
3559 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3563 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3564 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3565 if test $ac_cv_header_stdc = yes; then
3567 cat >>confdefs.h <<\_ACEOF
3568 #define STDC_HEADERS 1
3573 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3583 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3584 inttypes.h stdint.h unistd.h
3586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3587 echo "$as_me:$LINENO: checking for $ac_header" >&5
3588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 cat >conftest.$ac_ext <<_ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598 $ac_includes_default
3600 #include <$ac_header>
3602 rm -f conftest.$ac_objext
3603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3604 (eval $ac_compile) 2>conftest.er1
3606 grep -v '^ *+' conftest.er1 >conftest.err
3608 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } &&
3611 { ac_try='test -z "$ac_c_werror_flag"
3612 || test ! -s conftest.err'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; } &&
3618 { ac_try='test -s conftest.$ac_objext'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 eval "$as_ac_Header=yes"
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3629 eval "$as_ac_Header=no"
3631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3636 cat >>confdefs.h <<_ACEOF
3637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3645 if test "${ac_cv_header_minix_config_h+set}" = set; then
3646 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3647 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3648 if test "${ac_cv_header_minix_config_h+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3652 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3654 # Is the header compilable?
3655 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3656 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3657 cat >conftest.$ac_ext <<_ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3663 $ac_includes_default
3664 #include <minix/config.h>
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668 (eval $ac_compile) 2>conftest.er1
3670 grep -v '^ *+' conftest.er1 >conftest.err
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -z "$ac_c_werror_flag"
3676 || test ! -s conftest.err'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; } &&
3682 { ac_try='test -s conftest.$ac_objext'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 ac_header_compiler=yes
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3693 ac_header_compiler=no
3695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3697 echo "${ECHO_T}$ac_header_compiler" >&6
3699 # Is the header present?
3700 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3701 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3702 cat >conftest.$ac_ext <<_ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3708 #include <minix/config.h>
3710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3713 grep -v '^ *+' conftest.er1 >conftest.err
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } >/dev/null; then
3718 if test -s conftest.err; then
3719 ac_cpp_err=$ac_c_preproc_warn_flag
3720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3727 if test -z "$ac_cpp_err"; then
3728 ac_header_preproc=yes
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 ac_header_preproc=no
3735 rm -f conftest.err conftest.$ac_ext
3736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3737 echo "${ECHO_T}$ac_header_preproc" >&6
3739 # So? What about this header?
3740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3742 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3743 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3744 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3745 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3746 ac_header_preproc=yes
3749 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3750 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3751 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3752 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3753 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3754 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3755 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3756 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3757 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3758 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3759 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3760 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3763 ## ------------------------------ ##
3764 ## Report this to bug-cvs@gnu.org ##
3765 ## ------------------------------ ##
3768 sed "s/^/$as_me: WARNING: /" >&2
3771 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3772 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3773 if test "${ac_cv_header_minix_config_h+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 ac_cv_header_minix_config_h=$ac_header_preproc
3778 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3779 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3782 if test $ac_cv_header_minix_config_h = yes; then
3789 if test "$MINIX" = yes; then
3791 cat >>confdefs.h <<\_ACEOF
3792 #define _POSIX_SOURCE 1
3796 cat >>confdefs.h <<\_ACEOF
3797 #define _POSIX_1_SOURCE 2
3801 cat >>confdefs.h <<\_ACEOF
3809 cat >>confdefs.h <<\_ACEOF
3810 #define _GNU_SOURCE 1
3824 cat >>confdefs.h <<\_ACEOF
3825 #define __EXTENSIONS__ 1
3832 ac_cpp='$CPP $CPPFLAGS'
3833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836 if test -n "$ac_tool_prefix"; then
3837 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3838 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3839 echo "$as_me:$LINENO: checking for $ac_word" >&5
3840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3841 if test "${ac_cv_prog_CC+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 if test -n "$CC"; then
3845 ac_cv_prog_CC="$CC" # Let the user override the test.
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3854 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 if test -n "$CC"; then
3865 echo "$as_me:$LINENO: result: $CC" >&5
3866 echo "${ECHO_T}$CC" >&6
3868 echo "$as_me:$LINENO: result: no" >&5
3869 echo "${ECHO_T}no" >&6
3873 if test -z "$ac_cv_prog_CC"; then
3875 # Extract the first word of "gcc", so it can be a program name with args.
3876 set dummy gcc; ac_word=$2
3877 echo "$as_me:$LINENO: checking for $ac_word" >&5
3878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 if test -n "$ac_ct_CC"; then
3883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892 ac_cv_prog_ac_ct_CC="gcc"
3893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3902 if test -n "$ac_ct_CC"; then
3903 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3904 echo "${ECHO_T}$ac_ct_CC" >&6
3906 echo "$as_me:$LINENO: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3915 if test -z "$CC"; then
3916 if test -n "$ac_tool_prefix"; then
3917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3918 set dummy ${ac_tool_prefix}cc; ac_word=$2
3919 echo "$as_me:$LINENO: checking for $ac_word" >&5
3920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3921 if test "${ac_cv_prog_CC+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 if test -n "$CC"; then
3925 ac_cv_prog_CC="$CC" # Let the user override the test.
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 test -z "$as_dir" && as_dir=.
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3934 ac_cv_prog_CC="${ac_tool_prefix}cc"
3935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 if test -n "$CC"; then
3945 echo "$as_me:$LINENO: result: $CC" >&5
3946 echo "${ECHO_T}$CC" >&6
3948 echo "$as_me:$LINENO: result: no" >&5
3949 echo "${ECHO_T}no" >&6
3953 if test -z "$ac_cv_prog_CC"; then
3955 # Extract the first word of "cc", so it can be a program name with args.
3956 set dummy cc; ac_word=$2
3957 echo "$as_me:$LINENO: checking for $ac_word" >&5
3958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3959 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 if test -n "$ac_ct_CC"; then
3963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972 ac_cv_prog_ac_ct_CC="cc"
3973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3982 if test -n "$ac_ct_CC"; then
3983 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3984 echo "${ECHO_T}$ac_ct_CC" >&6
3986 echo "$as_me:$LINENO: result: no" >&5
3987 echo "${ECHO_T}no" >&6
3996 if test -z "$CC"; then
3997 # Extract the first word of "cc", so it can be a program name with args.
3998 set dummy cc; ac_word=$2
3999 echo "$as_me:$LINENO: checking for $ac_word" >&5
4000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4001 if test "${ac_cv_prog_CC+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4015 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4016 ac_prog_rejected=yes
4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 if test $ac_prog_rejected = yes; then
4027 # We found a bogon in the path, so make sure we never use it.
4028 set dummy $ac_cv_prog_CC
4030 if test $# != 0; then
4031 # We chose a different compiler from the bogus one.
4032 # However, it has the same basename, so the bogon will be chosen
4033 # first if we set CC to just the basename; use the full file name.
4035 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4041 if test -n "$CC"; then
4042 echo "$as_me:$LINENO: result: $CC" >&5
4043 echo "${ECHO_T}$CC" >&6
4045 echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6
4050 if test -z "$CC"; then
4051 if test -n "$ac_tool_prefix"; then
4054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4056 echo "$as_me:$LINENO: checking for $ac_word" >&5
4057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4058 if test "${ac_cv_prog_CC+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 if test -n "$CC"; then
4062 ac_cv_prog_CC="$CC" # Let the user override the test.
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 test -z "$as_dir" && as_dir=.
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4071 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 if test -n "$CC"; then
4082 echo "$as_me:$LINENO: result: $CC" >&5
4083 echo "${ECHO_T}$CC" >&6
4085 echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6
4089 test -n "$CC" && break
4092 if test -z "$CC"; then
4096 # Extract the first word of "$ac_prog", so it can be a program name with args.
4097 set dummy $ac_prog; ac_word=$2
4098 echo "$as_me:$LINENO: checking for $ac_word" >&5
4099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 if test -n "$ac_ct_CC"; then
4104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113 ac_cv_prog_ac_ct_CC="$ac_prog"
4114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4123 if test -n "$ac_ct_CC"; then
4124 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4125 echo "${ECHO_T}$ac_ct_CC" >&6
4127 echo "$as_me:$LINENO: result: no" >&5
4128 echo "${ECHO_T}no" >&6
4131 test -n "$ac_ct_CC" && break
4140 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4141 See \`config.log' for more details." >&5
4142 echo "$as_me: error: no acceptable C compiler found in \$PATH
4143 See \`config.log' for more details." >&2;}
4144 { (exit 1); exit 1; }; }
4146 # Provide some information about the compiler.
4147 echo "$as_me:$LINENO:" \
4148 "checking for C compiler version" >&5
4149 ac_compiler=`set X $ac_compile; echo $2`
4150 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4151 (eval $ac_compiler --version </dev/null >&5) 2>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }
4155 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4156 (eval $ac_compiler -v </dev/null >&5) 2>&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }
4160 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4161 (eval $ac_compiler -V </dev/null >&5) 2>&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }
4166 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4167 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4168 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4189 rm -f conftest.$ac_objext
4190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4191 (eval $ac_compile) 2>conftest.er1
4193 grep -v '^ *+' conftest.er1 >conftest.err
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } &&
4198 { ac_try='test -z "$ac_c_werror_flag"
4199 || test ! -s conftest.err'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; } &&
4205 { ac_try='test -s conftest.$ac_objext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4219 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4222 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4223 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4224 GCC=`test $ac_compiler_gnu = yes && echo yes`
4225 ac_test_CFLAGS=${CFLAGS+set}
4226 ac_save_CFLAGS=$CFLAGS
4228 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4229 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4230 if test "${ac_cv_prog_cc_g+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 cat >conftest.$ac_ext <<_ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4248 rm -f conftest.$ac_objext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250 (eval $ac_compile) 2>conftest.er1
4252 grep -v '^ *+' conftest.er1 >conftest.err
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag"
4258 || test ! -s conftest.err'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest.$ac_objext'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4279 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4280 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4281 if test "$ac_test_CFLAGS" = set; then
4282 CFLAGS=$ac_save_CFLAGS
4283 elif test $ac_cv_prog_cc_g = yes; then
4284 if test "$GCC" = yes; then
4290 if test "$GCC" = yes; then
4296 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4297 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4298 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 ac_cv_prog_cc_stdc=no
4303 cat >conftest.$ac_ext <<_ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4311 #include <sys/types.h>
4312 #include <sys/stat.h>
4313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4314 struct buf { int x; };
4315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4316 static char *e (p, i)
4322 static char *f (char * (*g) (char **, int), char **p, ...)
4327 s = g (p, va_arg (v,int));
4332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4333 function prototypes and stuff, but not '\xHH' hex character constants.
4334 These don't provoke an error unfortunately, instead are silently treated
4335 as 'x'. The following induces an error, until -std1 is added to get
4336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4337 array size at least. It's necessary to write '\x00'==0 to get something
4338 that's true only with -std1. */
4339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4341 int test (int i, double x);
4342 struct s1 {int (*f) (int a);};
4343 struct s2 {int (*f) (double a);};
4344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4350 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4355 # Don't try gcc -ansi; that turns off useful extensions and
4356 # breaks some systems' header files.
4357 # AIX -qlanglvl=ansi
4358 # Ultrix and OSF/1 -std1
4359 # HP-UX 10.20 and later -Ae
4360 # HP-UX older versions -Aa -D_HPUX_SOURCE
4361 # SVR4 -Xc -D__EXTENSIONS__
4362 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4364 CC="$ac_save_CC $ac_arg"
4365 rm -f conftest.$ac_objext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4367 (eval $ac_compile) 2>conftest.er1
4369 grep -v '^ *+' conftest.er1 >conftest.err
4371 cat conftest.err >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } &&
4374 { ac_try='test -z "$ac_c_werror_flag"
4375 || test ! -s conftest.err'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; } &&
4381 { ac_try='test -s conftest.$ac_objext'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4387 ac_cv_prog_cc_stdc=$ac_arg
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4394 rm -f conftest.err conftest.$ac_objext
4396 rm -f conftest.$ac_ext conftest.$ac_objext
4401 case "x$ac_cv_prog_cc_stdc" in
4403 echo "$as_me:$LINENO: result: none needed" >&5
4404 echo "${ECHO_T}none needed" >&6 ;;
4406 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4407 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4408 CC="$CC $ac_cv_prog_cc_stdc" ;;
4411 # Some people use a C++ compiler to compile C. Since we use `exit',
4412 # in C++ we need to declare it. In case someone uses the same compiler
4413 # for both compiling C and C++ we need to have the C++ compiler decide
4414 # the declaration of exit, since it's the most demanding environment.
4415 cat >conftest.$ac_ext <<_ACEOF
4420 rm -f conftest.$ac_objext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422 (eval $ac_compile) 2>conftest.er1
4424 grep -v '^ *+' conftest.er1 >conftest.err
4426 cat conftest.err >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try='test -z "$ac_c_werror_flag"
4430 || test ! -s conftest.err'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; } &&
4436 { ac_try='test -s conftest.$ac_objext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 for ac_declaration in \
4444 'extern "C" void std::exit (int) throw (); using std::exit;' \
4445 'extern "C" void std::exit (int); using std::exit;' \
4446 'extern "C" void exit (int) throw ();' \
4447 'extern "C" void exit (int);' \
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4466 rm -f conftest.$ac_objext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4468 (eval $ac_compile) 2>conftest.er1
4470 grep -v '^ *+' conftest.er1 >conftest.err
4472 cat conftest.err >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } &&
4475 { ac_try='test -z "$ac_c_werror_flag"
4476 || test ! -s conftest.err'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; } &&
4482 { ac_try='test -s conftest.$ac_objext'
4483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; }; then
4490 echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4496 cat >conftest.$ac_ext <<_ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4511 rm -f conftest.$ac_objext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4513 (eval $ac_compile) 2>conftest.er1
4515 grep -v '^ *+' conftest.er1 >conftest.err
4517 cat conftest.err >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } &&
4520 { ac_try='test -z "$ac_c_werror_flag"
4521 || test ! -s conftest.err'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; } &&
4527 { ac_try='test -s conftest.$ac_objext'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4542 if test -n "$ac_declaration"; then
4543 echo '#ifdef __cplusplus' >>confdefs.h
4544 echo $ac_declaration >>confdefs.h
4545 echo '#endif' >>confdefs.h
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560 depcc="$CC" am_compiler_list=
4562 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4563 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4564 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4568 # We make a subdir and do the tests there. Otherwise we can end up
4569 # making bogus files that we don't know about and never remove. For
4570 # instance it was reported that on HP-UX the gcc test will end up
4571 # making a dummy file named `D' -- because `-MD' means `put the output
4574 # Copy depcomp to subdir because otherwise we won't find it if we're
4575 # using a relative directory.
4576 cp "$am_depcomp" conftest.dir
4578 # We will build objects and dependencies in a subdirectory because
4579 # it helps to detect inapplicable dependency modes. For instance
4580 # both Tru64's cc and ICC support -MD to output dependencies as a
4581 # side effect of compilation, but ICC will put the dependencies in
4582 # the current directory while Tru64 will put them in the object
4586 am_cv_CC_dependencies_compiler_type=none
4587 if test "$am_compiler_list" = ""; then
4588 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4590 for depmode in $am_compiler_list; do
4591 # Setup a source with many dependencies, because some compilers
4592 # like to wrap large dependency lists on column 80 (with \), and
4593 # we should not choose a depcomp mode which is confused by this.
4595 # We need to recreate these files for each test, as the compiler may
4596 # overwrite some of them when testing with obscure command lines.
4597 # This happens at least with the AIX C compiler.
4599 for i in 1 2 3 4 5 6; do
4600 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4601 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4602 # Solaris 8's {/usr,}/bin/sh.
4603 touch sub/conftst$i.h
4605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4609 # after this tag, mechanisms are not by side-effect, so they'll
4610 # only be used when explicitly requested
4611 if test "x$enable_dependency_tracking" = xyes; then
4619 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4620 # mode. It turns out that the SunPro C++ compiler does not properly
4621 # handle `-M -o', and we need to detect this.
4622 if depmode=$depmode \
4623 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4624 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4625 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4626 >/dev/null 2>conftest.err &&
4627 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4628 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4629 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4630 # icc doesn't choke on unknown options, it will just issue warnings
4631 # or remarks (even with -Werror). So we grep stderr for any message
4632 # that says an option was ignored or not supported.
4633 # When given -MP, icc 7.0 and 7.1 complain thusly:
4634 # icc: Command line warning: ignoring option '-M'; no argument required
4635 # The diagnosis changed in icc 8.0:
4636 # icc: Command line remark: option '-MP' not supported
4637 if (grep 'ignoring option' conftest.err ||
4638 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4639 am_cv_CC_dependencies_compiler_type=$depmode
4648 am_cv_CC_dependencies_compiler_type=none
4652 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4653 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4654 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4659 test "x$enable_dependency_tracking" != xno \
4660 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4662 am__fastdepCC_FALSE='#'
4664 am__fastdepCC_TRUE='#'
4665 am__fastdepCC_FALSE=
4669 if test "x$CC" != xcc; then
4670 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4671 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4673 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4674 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4676 set dummy $CC; ac_cc=`echo $2 |
4677 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4678 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 cat >conftest.$ac_ext <<_ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4696 # Make sure it works both with $CC and with simple cc.
4697 # We do the test twice because some compilers refuse to overwrite an
4698 # existing .o file with -o, though they will create one.
4699 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4700 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } &&
4705 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); };
4711 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4712 if test "x$CC" != xcc; then
4713 # Test first that cc exists at all.
4714 if { ac_try='cc -c conftest.$ac_ext >&5'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4721 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); };
4735 # cc exists but doesn't like -o.
4736 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4741 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4746 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4747 echo "$as_me:$LINENO: result: yes" >&5
4748 echo "${ECHO_T}yes" >&6
4750 echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6
4753 cat >>confdefs.h <<\_ACEOF
4754 #define NO_MINUS_C_MINUS_O 1
4759 # FIXME: we rely on the cache variable name because
4760 # there is no other way.
4762 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4763 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4764 # Losing compiler, so override with the script.
4765 # FIXME: It is wrong to rewrite CC.
4766 # But if we don't then we get into trouble of one sort or another.
4767 # A longer-term fix would be to have automake use am__CC in this case,
4768 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4769 CC="$am_aux_dir/compile $CC"
4773 # Find the posix library needed on INTERACTIVE UNIX (ISC)
4774 echo "$as_me:$LINENO: checking for library containing strerror" >&5
4775 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4776 if test "${ac_cv_search_strerror+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 ac_func_search_save_LIBS=$LIBS
4780 ac_cv_search_strerror=no
4781 cat >conftest.$ac_ext <<_ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4788 /* Override any gcc2 internal prototype to avoid an error. */
4792 /* We use char because int might match the return type of a gcc2
4793 builtin and then its argument prototype would still apply. */
4803 rm -f conftest.$ac_objext conftest$ac_exeext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4805 (eval $ac_link) 2>conftest.er1
4807 grep -v '^ *+' conftest.er1 >conftest.err
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -z "$ac_c_werror_flag"
4813 || test ! -s conftest.err'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; } &&
4819 { ac_try='test -s conftest$ac_exeext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 ac_cv_search_strerror="none required"
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4831 rm -f conftest.err conftest.$ac_objext \
4832 conftest$ac_exeext conftest.$ac_ext
4833 if test "$ac_cv_search_strerror" = no; then
4834 for ac_lib in cposix; do
4835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4836 cat >conftest.$ac_ext <<_ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4843 /* Override any gcc2 internal prototype to avoid an error. */
4847 /* We use char because int might match the return type of a gcc2
4848 builtin and then its argument prototype would still apply. */
4858 rm -f conftest.$ac_objext conftest$ac_exeext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4860 (eval $ac_link) 2>conftest.er1
4862 grep -v '^ *+' conftest.er1 >conftest.err
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } &&
4867 { ac_try='test -z "$ac_c_werror_flag"
4868 || test ! -s conftest.err'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; } &&
4874 { ac_try='test -s conftest$ac_exeext'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; }; then
4880 ac_cv_search_strerror="-l$ac_lib"
4883 echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4887 rm -f conftest.err conftest.$ac_objext \
4888 conftest$ac_exeext conftest.$ac_ext
4891 LIBS=$ac_func_search_save_LIBS
4893 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4894 echo "${ECHO_T}$ac_cv_search_strerror" >&6
4895 if test "$ac_cv_search_strerror" != no; then
4896 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4902 if test -n "$ac_tool_prefix"; then
4903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4905 echo "$as_me:$LINENO: checking for $ac_word" >&5
4906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4907 if test "${ac_cv_prog_RANLIB+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 if test -n "$RANLIB"; then
4911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4920 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 RANLIB=$ac_cv_prog_RANLIB
4930 if test -n "$RANLIB"; then
4931 echo "$as_me:$LINENO: result: $RANLIB" >&5
4932 echo "${ECHO_T}$RANLIB" >&6
4934 echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6
4939 if test -z "$ac_cv_prog_RANLIB"; then
4940 ac_ct_RANLIB=$RANLIB
4941 # Extract the first word of "ranlib", so it can be a program name with args.
4942 set dummy ranlib; ac_word=$2
4943 echo "$as_me:$LINENO: checking for $ac_word" >&5
4944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4945 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 if test -n "$ac_ct_RANLIB"; then
4949 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958 ac_cv_prog_ac_ct_RANLIB="ranlib"
4959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4969 if test -n "$ac_ct_RANLIB"; then
4970 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4971 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4973 echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4977 RANLIB=$ac_ct_RANLIB
4979 RANLIB="$ac_cv_prog_RANLIB"
4982 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4983 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4985 if test "$LN_S" = "ln -s"; then
4986 echo "$as_me:$LINENO: result: yes" >&5
4987 echo "${ECHO_T}yes" >&6
4989 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4990 echo "${ECHO_T}no, using $LN_S" >&6
4993 # Check whether --enable-largefile or --disable-largefile was given.
4994 if test "${enable_largefile+set}" = set; then
4995 enableval="$enable_largefile"
4998 if test "$enable_largefile" != no; then
5000 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5001 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
5002 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 ac_cv_sys_largefile_CC=no
5006 if test "$GCC" != yes; then
5009 # IRIX 6.2 and later do not support large files by default,
5010 # so use the C compiler's -n32 option if that helps.
5011 cat >conftest.$ac_ext <<_ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5017 #include <sys/types.h>
5018 /* Check that off_t can represent 2**63 - 1 correctly.
5019 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5020 since some C++ compilers masquerading as C compilers
5021 incorrectly reject 9223372036854775807. */
5022 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5023 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5024 && LARGE_OFF_T % 2147483647 == 1)
5034 rm -f conftest.$ac_objext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5036 (eval $ac_compile) 2>conftest.er1
5038 grep -v '^ *+' conftest.er1 >conftest.err
5040 cat conftest.err >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } &&
5043 { ac_try='test -z "$ac_c_werror_flag"
5044 || test ! -s conftest.err'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; } &&
5050 { ac_try='test -s conftest.$ac_objext'
5051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }; }; then
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5062 rm -f conftest.err conftest.$ac_objext
5064 rm -f conftest.$ac_objext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066 (eval $ac_compile) 2>conftest.er1
5068 grep -v '^ *+' conftest.er1 >conftest.err
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } &&
5073 { ac_try='test -z "$ac_c_werror_flag"
5074 || test ! -s conftest.err'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; } &&
5080 { ac_try='test -s conftest.$ac_objext'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; }; then
5086 ac_cv_sys_largefile_CC=' -n32'; break
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5092 rm -f conftest.err conftest.$ac_objext
5096 rm -f conftest.$ac_ext
5099 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5100 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5101 if test "$ac_cv_sys_largefile_CC" != no; then
5102 CC=$CC$ac_cv_sys_largefile_CC
5105 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5106 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5107 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 ac_cv_sys_file_offset_bits=no
5112 cat >conftest.$ac_ext <<_ACEOF
5115 cat confdefs.h >>conftest.$ac_ext
5116 cat >>conftest.$ac_ext <<_ACEOF
5117 /* end confdefs.h. */
5118 #include <sys/types.h>
5119 /* Check that off_t can represent 2**63 - 1 correctly.
5120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5121 since some C++ compilers masquerading as C compilers
5122 incorrectly reject 9223372036854775807. */
5123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5125 && LARGE_OFF_T % 2147483647 == 1)
5135 rm -f conftest.$ac_objext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137 (eval $ac_compile) 2>conftest.er1
5139 grep -v '^ *+' conftest.er1 >conftest.err
5141 cat conftest.err >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } &&
5144 { ac_try='test -z "$ac_c_werror_flag"
5145 || test ! -s conftest.err'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; } &&
5151 { ac_try='test -s conftest.$ac_objext'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; }; then
5159 echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5164 cat >conftest.$ac_ext <<_ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h. */
5170 #define _FILE_OFFSET_BITS 64
5171 #include <sys/types.h>
5172 /* Check that off_t can represent 2**63 - 1 correctly.
5173 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5174 since some C++ compilers masquerading as C compilers
5175 incorrectly reject 9223372036854775807. */
5176 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5177 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5178 && LARGE_OFF_T % 2147483647 == 1)
5188 rm -f conftest.$ac_objext
5189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5190 (eval $ac_compile) 2>conftest.er1
5192 grep -v '^ *+' conftest.er1 >conftest.err
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } &&
5197 { ac_try='test -z "$ac_c_werror_flag"
5198 || test ! -s conftest.err'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; } &&
5204 { ac_try='test -s conftest.$ac_objext'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; }; then
5210 ac_cv_sys_file_offset_bits=64; break
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5220 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5221 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5222 if test "$ac_cv_sys_file_offset_bits" != no; then
5224 cat >>confdefs.h <<_ACEOF
5225 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5230 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5231 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5232 if test "${ac_cv_sys_large_files+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 ac_cv_sys_large_files=no
5237 cat >conftest.$ac_ext <<_ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 #include <sys/types.h>
5244 /* Check that off_t can represent 2**63 - 1 correctly.
5245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5246 since some C++ compilers masquerading as C compilers
5247 incorrectly reject 9223372036854775807. */
5248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5250 && LARGE_OFF_T % 2147483647 == 1)
5260 rm -f conftest.$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262 (eval $ac_compile) 2>conftest.er1
5264 grep -v '^ *+' conftest.er1 >conftest.err
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
5269 { ac_try='test -z "$ac_c_werror_flag"
5270 || test ! -s conftest.err'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; } &&
5276 { ac_try='test -s conftest.$ac_objext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5289 cat >conftest.$ac_ext <<_ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h. */
5295 #define _LARGE_FILES 1
5296 #include <sys/types.h>
5297 /* Check that off_t can represent 2**63 - 1 correctly.
5298 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5299 since some C++ compilers masquerading as C compilers
5300 incorrectly reject 9223372036854775807. */
5301 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5302 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5303 && LARGE_OFF_T % 2147483647 == 1)
5313 rm -f conftest.$ac_objext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5315 (eval $ac_compile) 2>conftest.er1
5317 grep -v '^ *+' conftest.er1 >conftest.err
5319 cat conftest.err >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } &&
5322 { ac_try='test -z "$ac_c_werror_flag"
5323 || test ! -s conftest.err'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; } &&
5329 { ac_try='test -s conftest.$ac_objext'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; }; then
5335 ac_cv_sys_large_files=1; break
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5345 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5346 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5347 if test "$ac_cv_sys_large_files" != no; then
5349 cat >>confdefs.h <<_ACEOF
5350 #define _LARGE_FILES $ac_cv_sys_large_files
5359 # Extract the first word of "perl", so it can be a program name with args.
5360 set dummy perl; ac_word=$2
5361 echo "$as_me:$LINENO: checking for $ac_word" >&5
5362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5363 if test "${ac_cv_path_PERL+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5389 PERL=$ac_cv_path_PERL
5391 if test -n "$PERL"; then
5392 echo "$as_me:$LINENO: result: $PERL" >&5
5393 echo "${ECHO_T}$PERL" >&6
5395 echo "$as_me:$LINENO: result: no" >&5
5396 echo "${ECHO_T}no" >&6
5399 # Extract the first word of "csh", so it can be a program name with args.
5400 set dummy csh; ac_word=$2
5401 echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403 if test "${ac_cv_path_CSH+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 ac_cv_path_CSH="$CSH" # Let the user override the test with a path.
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5418 ac_cv_path_CSH="$as_dir/$ac_word$ac_exec_ext"
5419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 test -z "$ac_cv_path_CSH" && ac_cv_path_CSH="no"
5431 if test -n "$CSH"; then
5432 echo "$as_me:$LINENO: result: $CSH" >&5
5433 echo "${ECHO_T}$CSH" >&6
5435 echo "$as_me:$LINENO: result: no" >&5
5436 echo "${ECHO_T}no" >&6
5439 # for contrib/rcs2log.sh & src/cvsbug.in.
5440 # Extract the first word of "mktemp", so it can be a program name with args.
5441 set dummy mktemp; ac_word=$2
5442 echo "$as_me:$LINENO: checking for $ac_word" >&5
5443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5444 if test "${ac_cv_path_MKTEMP+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 test -z "$ac_cv_path_MKTEMP" && ac_cv_path_MKTEMP="mktemp"
5470 MKTEMP=$ac_cv_path_MKTEMP
5472 if test -n "$MKTEMP"; then
5473 echo "$as_me:$LINENO: result: $MKTEMP" >&5
5474 echo "${ECHO_T}$MKTEMP" >&6
5476 echo "$as_me:$LINENO: result: no" >&5
5477 echo "${ECHO_T}no" >&6
5480 if test x"$MKTEMP" = xmktemp; then
5481 MKTEMP_SH_FUNCTION=$srcdir/mktemp.sh
5483 MKTEMP_SH_FUNCTION=/dev/null
5487 # Extract the first word of "sendmail", so it can be a program name with args.
5488 set dummy sendmail; ac_word=$2
5489 echo "$as_me:$LINENO: checking for $ac_word" >&5
5490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5491 if test "${ac_cv_path_SENDMAIL+set}" = set; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 as_dummy="$PATH:/usr/sbin:/usr/lib"
5501 for as_dir in $as_dummy
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
5508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="no"
5518 SENDMAIL=$ac_cv_path_SENDMAIL
5520 if test -n "$SENDMAIL"; then
5521 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
5522 echo "${ECHO_T}$SENDMAIL" >&6
5524 echo "$as_me:$LINENO: result: no" >&5
5525 echo "${ECHO_T}no" >&6
5529 # Extract the first word of "pr", so it can be a program name with args.
5530 set dummy pr; ac_word=$2
5531 echo "$as_me:$LINENO: checking for $ac_word" >&5
5532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5533 if test "${ac_cv_path_PR+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 ac_cv_path_PR="$PR" # Let the user override the test with a path.
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_path_PR="$as_dir/$ac_word$ac_exec_ext"
5549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 test -z "$ac_cv_path_PR" && ac_cv_path_PR="no"
5561 if test -n "$PR"; then
5562 echo "$as_me:$LINENO: result: $PR" >&5
5563 echo "${ECHO_T}$PR" >&6
5565 echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6
5569 if test x"$PR" != xno; then
5571 cat >>confdefs.h <<_ACEOF
5572 #define PR_PROGRAM "$PR"
5577 missing_dir=`cd $ac_aux_dir && pwd`
5578 glocs="$PATH:/usr/local/bin:/usr/contrib/bin:/usr/gnu/bin:/local/bin:/local/gnu/bin:/gnu/bin"
5579 for ac_prog in groff roff
5581 # Extract the first word of "$ac_prog", so it can be a program name with args.
5582 set dummy $ac_prog; ac_word=$2
5583 echo "$as_me:$LINENO: checking for $ac_word" >&5
5584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5585 if test "${ac_cv_path_ROFF+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 ac_cv_path_ROFF="$ROFF" # Let the user override the test with a path.
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $glocs
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_path_ROFF="$as_dir/$ac_word$ac_exec_ext"
5601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 ROFF=$ac_cv_path_ROFF
5612 if test -n "$ROFF"; then
5613 echo "$as_me:$LINENO: result: $ROFF" >&5
5614 echo "${ECHO_T}$ROFF" >&6
5616 echo "$as_me:$LINENO: result: no" >&5
5617 echo "${ECHO_T}no" >&6
5620 test -n "$ROFF" && break
5622 test -n "$ROFF" || ROFF="$missing_dir/missing roff"
5624 # Extract the first word of "ps2pdf", so it can be a program name with args.
5625 set dummy ps2pdf; ac_word=$2
5626 echo "$as_me:$LINENO: checking for $ac_word" >&5
5627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5628 if test "${ac_cv_path_PS2PDF+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 test -z "$as_dir" && as_dir=.
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5643 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
5644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="$missing_dir/missing ps2pdf"
5654 PS2PDF=$ac_cv_path_PS2PDF
5656 if test -n "$PS2PDF"; then
5657 echo "$as_me:$LINENO: result: $PS2PDF" >&5
5658 echo "${ECHO_T}$PS2PDF" >&6
5660 echo "$as_me:$LINENO: result: no" >&5
5661 echo "${ECHO_T}no" >&6
5664 # Extract the first word of "texi2dvi", so it can be a program name with args.
5665 set dummy texi2dvi; ac_word=$2
5666 echo "$as_me:$LINENO: checking for $ac_word" >&5
5667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5668 if test "${ac_cv_path_TEXI2DVI+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
5684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$missing_dir/missing texi2dvi"
5694 TEXI2DVI=$ac_cv_path_TEXI2DVI
5696 if test -n "$TEXI2DVI"; then
5697 echo "$as_me:$LINENO: result: $TEXI2DVI" >&5
5698 echo "${ECHO_T}$TEXI2DVI" >&6
5700 echo "$as_me:$LINENO: result: no" >&5
5701 echo "${ECHO_T}no" >&6
5705 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
5706 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
5707 if test "${ac_cv_sys_interpreter+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
5715 if test $? -ne 69; then
5716 ac_cv_sys_interpreter=yes
5718 ac_cv_sys_interpreter=no
5722 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
5723 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
5724 interpval=$ac_cv_sys_interpreter
5726 if test X"$ac_cv_sys_interpreter" != X"yes" ; then
5727 # silly trick to avoid problems in AC macros...
5728 ac_msg='perl scripts using #! may not be invoked properly'
5729 { echo "$as_me:$LINENO: WARNING: $ac_msg" >&5
5730 echo "$as_me: WARNING: $ac_msg" >&2;}
5733 # BSD's logo is a devil for a reason, hey?
5734 echo "$as_me:$LINENO: checking for BSD VPATH bug in make" >&5
5735 echo $ECHO_N "checking for BSD VPATH bug in make... $ECHO_C" >&6
5736 if test "${ccvs_cv_bsd_make_vpath_bug+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 if test ! -d ac_test_dir ; then
5740 { ac_try='mkdir ac_test_dir'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }
5747 cat >conftestmake <<EOF
5749 ac_test_target: ac_test_dep
5750 echo BSD VPATH bug present >&2
5751 ac_test_dep: ac_test_dep_dep
5753 touch ac_test_dir/ac_test_dep_dep
5754 touch ac_test_dir/ac_test_dep
5755 touch ac_test_target
5756 # Don't know why, but the following test doesn't work under FreeBSD 4.2
5757 # without this sleep command
5759 if { ac_try='make -f conftestmake 2>&1 >/dev/null |grep ^BSD\ VPATH\ bug\ present\$ >/dev/null'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; } ; then
5765 ccvs_cv_bsd_make_vpath_bug=yes
5767 ccvs_cv_bsd_make_vpath_bug=no
5769 { ac_try='rm -rf ac_test_dir ac_test_target conftestmake'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }
5776 echo "$as_me:$LINENO: result: $ccvs_cv_bsd_make_vpath_bug" >&5
5777 echo "${ECHO_T}$ccvs_cv_bsd_make_vpath_bug" >&6
5778 # We also don't need to worry about the bug when $srcdir = $builddir
5782 test $ccvs_cv_bsd_make_vpath_bug = no \
5783 || test $srcdir = .; then
5784 MAKE_TARGETS_IN_VPATH_TRUE=
5785 MAKE_TARGETS_IN_VPATH_FALSE='#'
5787 MAKE_TARGETS_IN_VPATH_TRUE='#'
5788 MAKE_TARGETS_IN_VPATH_FALSE=
5798 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5799 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5800 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5801 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 #include <sys/types.h>
5823 rm -f conftest.$ac_objext
5824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5825 (eval $ac_compile) 2>conftest.er1
5827 grep -v '^ *+' conftest.er1 >conftest.err
5829 cat conftest.err >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } &&
5832 { ac_try='test -z "$ac_c_werror_flag"
5833 || test ! -s conftest.err'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; } &&
5839 { ac_try='test -s conftest.$ac_objext'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; }; then
5845 eval "$as_ac_Header=yes"
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5850 eval "$as_ac_Header=no"
5852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5857 cat >>confdefs.h <<_ACEOF
5858 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5861 ac_header_dirent=$ac_hdr; break
5865 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5866 if test $ac_header_dirent = dirent.h; then
5867 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5868 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5869 if test "${ac_cv_search_opendir+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 ac_func_search_save_LIBS=$LIBS
5873 ac_cv_search_opendir=no
5874 cat >conftest.$ac_ext <<_ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5881 /* Override any gcc2 internal prototype to avoid an error. */
5885 /* We use char because int might match the return type of a gcc2
5886 builtin and then its argument prototype would still apply. */
5896 rm -f conftest.$ac_objext conftest$ac_exeext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5898 (eval $ac_link) 2>conftest.er1
5900 grep -v '^ *+' conftest.er1 >conftest.err
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -z "$ac_c_werror_flag"
5906 || test ! -s conftest.err'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; } &&
5912 { ac_try='test -s conftest$ac_exeext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5918 ac_cv_search_opendir="none required"
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5924 rm -f conftest.err conftest.$ac_objext \
5925 conftest$ac_exeext conftest.$ac_ext
5926 if test "$ac_cv_search_opendir" = no; then
5927 for ac_lib in dir; do
5928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5929 cat >conftest.$ac_ext <<_ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5936 /* Override any gcc2 internal prototype to avoid an error. */
5940 /* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */
5951 rm -f conftest.$ac_objext conftest$ac_exeext
5952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5953 (eval $ac_link) 2>conftest.er1
5955 grep -v '^ *+' conftest.er1 >conftest.err
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } &&
5960 { ac_try='test -z "$ac_c_werror_flag"
5961 || test ! -s conftest.err'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; } &&
5967 { ac_try='test -s conftest$ac_exeext'
5968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); }; }; then
5973 ac_cv_search_opendir="-l$ac_lib"
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5980 rm -f conftest.err conftest.$ac_objext \
5981 conftest$ac_exeext conftest.$ac_ext
5984 LIBS=$ac_func_search_save_LIBS
5986 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5987 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5988 if test "$ac_cv_search_opendir" != no; then
5989 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5994 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5995 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5996 if test "${ac_cv_search_opendir+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 ac_func_search_save_LIBS=$LIBS
6000 ac_cv_search_opendir=no
6001 cat >conftest.$ac_ext <<_ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6008 /* Override any gcc2 internal prototype to avoid an error. */
6012 /* We use char because int might match the return type of a gcc2
6013 builtin and then its argument prototype would still apply. */
6023 rm -f conftest.$ac_objext conftest$ac_exeext
6024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025 (eval $ac_link) 2>conftest.er1
6027 grep -v '^ *+' conftest.er1 >conftest.err
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } &&
6032 { ac_try='test -z "$ac_c_werror_flag"
6033 || test ! -s conftest.err'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; } &&
6039 { ac_try='test -s conftest$ac_exeext'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; }; then
6045 ac_cv_search_opendir="none required"
6047 echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6051 rm -f conftest.err conftest.$ac_objext \
6052 conftest$ac_exeext conftest.$ac_ext
6053 if test "$ac_cv_search_opendir" = no; then
6055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6056 cat >conftest.$ac_ext <<_ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6063 /* Override any gcc2 internal prototype to avoid an error. */
6067 /* We use char because int might match the return type of a gcc2
6068 builtin and then its argument prototype would still apply. */
6078 rm -f conftest.$ac_objext conftest$ac_exeext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6080 (eval $ac_link) 2>conftest.er1
6082 grep -v '^ *+' conftest.er1 >conftest.err
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
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try='test -s conftest$ac_exeext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 ac_cv_search_opendir="-l$ac_lib"
6103 echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6107 rm -f conftest.err conftest.$ac_objext \
6108 conftest$ac_exeext conftest.$ac_ext
6111 LIBS=$ac_func_search_save_LIBS
6113 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6114 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6115 if test "$ac_cv_search_opendir" != no; then
6116 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6122 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6123 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6124 if test "${ac_cv_header_stdc+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 cat >conftest.$ac_ext <<_ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6146 rm -f conftest.$ac_objext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148 (eval $ac_compile) 2>conftest.er1
6150 grep -v '^ *+' conftest.er1 >conftest.err
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try='test -z "$ac_c_werror_flag"
6156 || test ! -s conftest.err'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; } &&
6162 { ac_try='test -s conftest.$ac_objext'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 ac_cv_header_stdc=yes
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 ac_cv_header_stdc=no
6175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6177 if test $ac_cv_header_stdc = yes; then
6178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6179 cat >conftest.$ac_ext <<_ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6189 $EGREP "memchr" >/dev/null 2>&1; then
6192 ac_cv_header_stdc=no
6198 if test $ac_cv_header_stdc = yes; then
6199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6200 cat >conftest.$ac_ext <<_ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6210 $EGREP "free" >/dev/null 2>&1; then
6213 ac_cv_header_stdc=no
6219 if test $ac_cv_header_stdc = yes; then
6220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6221 if test "$cross_compiling" = yes; then
6224 cat >conftest.$ac_ext <<_ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6231 #if ((' ' & 0x0FF) == 0x020)
6232 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6233 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6235 # define ISLOWER(c) \
6236 (('a' <= (c) && (c) <= 'i') \
6237 || ('j' <= (c) && (c) <= 'r') \
6238 || ('s' <= (c) && (c) <= 'z'))
6239 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6242 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6247 for (i = 0; i < 256; i++)
6248 if (XOR (islower (i), ISLOWER (i))
6249 || toupper (i) != TOUPPER (i))
6254 rm -f conftest$ac_exeext
6255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6256 (eval $ac_link) 2>&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; }; then
6267 echo "$as_me: program exited with status $ac_status" >&5
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6272 ac_cv_header_stdc=no
6274 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6278 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6279 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6280 if test $ac_cv_header_stdc = yes; then
6282 cat >>confdefs.h <<\_ACEOF
6283 #define STDC_HEADERS 1
6288 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6289 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6290 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 cat >conftest.$ac_ext <<_ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 #include <sys/types.h>
6300 #include <sys/wait.h>
6302 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6305 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6313 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6318 rm -f conftest.$ac_objext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320 (eval $ac_compile) 2>conftest.er1
6322 grep -v '^ *+' conftest.er1 >conftest.err
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try='test -z "$ac_c_werror_flag"
6328 || test ! -s conftest.err'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; } &&
6334 { ac_try='test -s conftest.$ac_objext'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6340 ac_cv_header_sys_wait_h=yes
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6345 ac_cv_header_sys_wait_h=no
6347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6349 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6350 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6351 if test $ac_cv_header_sys_wait_h = yes; then
6353 cat >>confdefs.h <<\_ACEOF
6354 #define HAVE_SYS_WAIT_H 1
6390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6392 echo "$as_me:$LINENO: checking for $ac_header" >&5
6393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6400 # Is the header compilable?
6401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6403 cat >conftest.$ac_ext <<_ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6409 $ac_includes_default
6410 #include <$ac_header>
6412 rm -f conftest.$ac_objext
6413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6414 (eval $ac_compile) 2>conftest.er1
6416 grep -v '^ *+' conftest.er1 >conftest.err
6418 cat conftest.err >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } &&
6421 { ac_try='test -z "$ac_c_werror_flag"
6422 || test ! -s conftest.err'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; } &&
6428 { ac_try='test -s conftest.$ac_objext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 ac_header_compiler=yes
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6439 ac_header_compiler=no
6441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6443 echo "${ECHO_T}$ac_header_compiler" >&6
6445 # Is the header present?
6446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6448 cat >conftest.$ac_ext <<_ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6454 #include <$ac_header>
6456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6459 grep -v '^ *+' conftest.er1 >conftest.err
6461 cat conftest.err >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } >/dev/null; then
6464 if test -s conftest.err; then
6465 ac_cpp_err=$ac_c_preproc_warn_flag
6466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6473 if test -z "$ac_cpp_err"; then
6474 ac_header_preproc=yes
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6479 ac_header_preproc=no
6481 rm -f conftest.err conftest.$ac_ext
6482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6483 echo "${ECHO_T}$ac_header_preproc" >&6
6485 # So? What about this header?
6486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6492 ac_header_preproc=yes
6495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6509 ## ------------------------------ ##
6510 ## Report this to bug-cvs@gnu.org ##
6511 ## ------------------------------ ##
6514 sed "s/^/$as_me: WARNING: /" >&2
6517 echo "$as_me:$LINENO: checking for $ac_header" >&5
6518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 eval "$as_ac_Header=\$ac_header_preproc"
6524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6529 cat >>confdefs.h <<_ACEOF
6530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6537 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6538 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6539 if test "${ac_cv_header_stat_broken+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 cat >conftest.$ac_ext <<_ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6548 #include <sys/types.h>
6549 #include <sys/stat.h>
6551 #if defined(S_ISBLK) && defined(S_IFDIR)
6552 # if S_ISBLK (S_IFDIR)
6557 #if defined(S_ISBLK) && defined(S_IFCHR)
6558 # if S_ISBLK (S_IFCHR)
6563 #if defined(S_ISLNK) && defined(S_IFREG)
6564 # if S_ISLNK (S_IFREG)
6569 #if defined(S_ISSOCK) && defined(S_IFREG)
6570 # if S_ISSOCK (S_IFREG)
6576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6577 $EGREP "You lose" >/dev/null 2>&1; then
6578 ac_cv_header_stat_broken=yes
6580 ac_cv_header_stat_broken=no
6585 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6586 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6587 if test $ac_cv_header_stat_broken = yes; then
6589 cat >>confdefs.h <<\_ACEOF
6590 #define STAT_MACROS_BROKEN 1
6596 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6597 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6598 if test "${ac_cv_c_const+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 cat >conftest.$ac_ext <<_ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6611 /* FIXME: Include the comments suggested by Paul. */
6613 /* Ultrix mips cc rejects this. */
6614 typedef int charset[2];
6616 /* SunOS 4.1.1 cc rejects this. */
6617 char const *const *ccp;
6619 /* NEC SVR4.0.2 mips cc rejects this. */
6620 struct point {int x, y;};
6621 static struct point const zero = {0,0};
6622 /* AIX XL C 1.02.0.0 rejects this.
6623 It does not let you subtract one const X* pointer from another in
6624 an arm of an if-expression whose if-part is not a constant
6626 const char *g = "string";
6627 ccp = &g + (g ? g-g : 0);
6628 /* HPUX 7.0 cc rejects these. */
6631 ccp = (char const *const *) p;
6632 { /* SCO 3.2v4 cc rejects this. */
6634 char const *s = 0 ? (char *) 0 : (char const *) 0;
6638 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6640 const int *foo = &x[0];
6643 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6644 typedef const int *iptr;
6648 { /* AIX XL C 1.02.0.0 rejects this saying
6649 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6650 struct s { int j; const int *ap[3]; };
6651 struct s *b; b->j = 5;
6653 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6662 rm -f conftest.$ac_objext
6663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6664 (eval $ac_compile) 2>conftest.er1
6666 grep -v '^ *+' conftest.er1 >conftest.err
6668 cat conftest.err >&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } &&
6671 { ac_try='test -z "$ac_c_werror_flag"
6672 || test ! -s conftest.err'
6673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); }; } &&
6678 { ac_try='test -s conftest.$ac_objext'
6679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; }; then
6686 echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.$ac_ext >&5
6691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6693 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6694 echo "${ECHO_T}$ac_cv_c_const" >&6
6695 if test $ac_cv_c_const = no; then
6697 cat >>confdefs.h <<\_ACEOF
6703 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6704 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6705 if test "${ac_cv_type_uid_t+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 cat >conftest.$ac_ext <<_ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6714 #include <sys/types.h>
6717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6718 $EGREP "uid_t" >/dev/null 2>&1; then
6719 ac_cv_type_uid_t=yes
6726 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6727 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6728 if test $ac_cv_type_uid_t = no; then
6730 cat >>confdefs.h <<\_ACEOF
6735 cat >>confdefs.h <<\_ACEOF
6741 echo "$as_me:$LINENO: checking for mode_t" >&5
6742 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6743 if test "${ac_cv_type_mode_t+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 cat >conftest.$ac_ext <<_ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 $ac_includes_default
6758 if (sizeof (mode_t))
6764 rm -f conftest.$ac_objext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766 (eval $ac_compile) 2>conftest.er1
6768 grep -v '^ *+' conftest.er1 >conftest.err
6770 cat conftest.err >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -z "$ac_c_werror_flag"
6774 || test ! -s conftest.err'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; } &&
6780 { ac_try='test -s conftest.$ac_objext'
6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; }; then
6786 ac_cv_type_mode_t=yes
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6791 ac_cv_type_mode_t=no
6793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6795 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6796 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6797 if test $ac_cv_type_mode_t = yes; then
6801 cat >>confdefs.h <<_ACEOF
6807 echo "$as_me:$LINENO: checking for pid_t" >&5
6808 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6809 if test "${ac_cv_type_pid_t+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 cat >conftest.$ac_ext <<_ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6817 /* end confdefs.h. */
6818 $ac_includes_default
6830 rm -f conftest.$ac_objext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832 (eval $ac_compile) 2>conftest.er1
6834 grep -v '^ *+' conftest.er1 >conftest.err
6836 cat conftest.err >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } &&
6839 { ac_try='test -z "$ac_c_werror_flag"
6840 || test ! -s conftest.err'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; } &&
6846 { ac_try='test -s conftest.$ac_objext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 ac_cv_type_pid_t=yes
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6861 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6862 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6863 if test $ac_cv_type_pid_t = yes; then
6867 cat >>confdefs.h <<_ACEOF
6873 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6874 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6875 if test "${ac_cv_type_signal+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 cat >conftest.$ac_ext <<_ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 #include <sys/types.h>
6890 extern "C" void (*signal (int, void (*)(int)))(int);
6892 void (*signal ()) ();
6903 rm -f conftest.$ac_objext
6904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6905 (eval $ac_compile) 2>conftest.er1
6907 grep -v '^ *+' conftest.er1 >conftest.err
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } &&
6912 { ac_try='test -z "$ac_c_werror_flag"
6913 || test ! -s conftest.err'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; } &&
6919 { ac_try='test -s conftest.$ac_objext'
6920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; }; then
6925 ac_cv_type_signal=void
6927 echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6930 ac_cv_type_signal=int
6932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6934 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6935 echo "${ECHO_T}$ac_cv_type_signal" >&6
6937 cat >>confdefs.h <<_ACEOF
6938 #define RETSIGTYPE $ac_cv_type_signal
6943 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6944 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6945 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 cat >conftest.$ac_ext <<_ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6954 $ac_includes_default
6958 static struct stat ac_aggr;
6959 if (ac_aggr.st_blksize)
6965 rm -f conftest.$ac_objext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967 (eval $ac_compile) 2>conftest.er1
6969 grep -v '^ *+' conftest.er1 >conftest.err
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -z "$ac_c_werror_flag"
6975 || test ! -s conftest.err'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; } &&
6981 { ac_try='test -s conftest.$ac_objext'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6987 ac_cv_member_struct_stat_st_blksize=yes
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6992 cat >conftest.$ac_ext <<_ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 $ac_includes_default
7002 static struct stat ac_aggr;
7003 if (sizeof ac_aggr.st_blksize)
7009 rm -f conftest.$ac_objext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011 (eval $ac_compile) 2>conftest.er1
7013 grep -v '^ *+' conftest.er1 >conftest.err
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -z "$ac_c_werror_flag"
7019 || test ! -s conftest.err'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; } &&
7025 { ac_try='test -s conftest.$ac_objext'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7031 ac_cv_member_struct_stat_st_blksize=yes
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7036 ac_cv_member_struct_stat_st_blksize=no
7038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7042 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
7043 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
7044 if test $ac_cv_member_struct_stat_st_blksize = yes; then
7046 cat >>confdefs.h <<_ACEOF
7047 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7053 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7054 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
7055 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 cat >conftest.$ac_ext <<_ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7064 $ac_includes_default
7068 static struct stat ac_aggr;
7069 if (ac_aggr.st_rdev)
7075 rm -f conftest.$ac_objext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077 (eval $ac_compile) 2>conftest.er1
7079 grep -v '^ *+' conftest.er1 >conftest.err
7081 cat conftest.err >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } &&
7084 { ac_try='test -z "$ac_c_werror_flag"
7085 || test ! -s conftest.err'
7086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; } &&
7091 { ac_try='test -s conftest.$ac_objext'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; }; then
7097 ac_cv_member_struct_stat_st_rdev=yes
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7102 cat >conftest.$ac_ext <<_ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 $ac_includes_default
7112 static struct stat ac_aggr;
7113 if (sizeof ac_aggr.st_rdev)
7119 rm -f conftest.$ac_objext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7121 (eval $ac_compile) 2>conftest.er1
7123 grep -v '^ *+' conftest.er1 >conftest.err
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } &&
7128 { ac_try='test -z "$ac_c_werror_flag"
7129 || test ! -s conftest.err'
7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; } &&
7135 { ac_try='test -s conftest.$ac_objext'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; }; then
7141 ac_cv_member_struct_stat_st_rdev=yes
7143 echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7146 ac_cv_member_struct_stat_st_rdev=no
7148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7152 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7153 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7154 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7156 cat >>confdefs.h <<_ACEOF
7157 #define HAVE_STRUCT_STAT_ST_RDEV 1
7164 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7165 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
7166 if test "${ac_cv_sys_largefile_source+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 ac_cv_sys_largefile_source=no
7171 cat >conftest.$ac_ext <<_ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7186 rm -f conftest.$ac_objext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7188 (eval $ac_compile) 2>conftest.er1
7190 grep -v '^ *+' conftest.er1 >conftest.err
7192 cat conftest.err >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } &&
7195 { ac_try='test -z "$ac_c_werror_flag"
7196 || test ! -s conftest.err'
7197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); }; } &&
7202 { ac_try='test -s conftest.$ac_objext'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; }; then
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7215 cat >conftest.$ac_ext <<_ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7221 #define _LARGEFILE_SOURCE 1
7231 rm -f conftest.$ac_objext
7232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7233 (eval $ac_compile) 2>conftest.er1
7235 grep -v '^ *+' conftest.er1 >conftest.err
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } &&
7240 { ac_try='test -z "$ac_c_werror_flag"
7241 || test ! -s conftest.err'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; } &&
7247 { ac_try='test -s conftest.$ac_objext'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; }; then
7253 ac_cv_sys_largefile_source=1; break
7255 echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7263 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7264 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7265 if test "$ac_cv_sys_largefile_source" != no; then
7267 cat >>confdefs.h <<_ACEOF
7268 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7274 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7275 # in glibc 2.1.3, but that breaks too many other things.
7276 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7277 echo "$as_me:$LINENO: checking for fseeko" >&5
7278 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
7279 if test "${ac_cv_func_fseeko+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 cat >conftest.$ac_ext <<_ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7292 return fseeko && fseeko (stdin, 0, 0);
7297 rm -f conftest.$ac_objext conftest$ac_exeext
7298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7299 (eval $ac_link) 2>conftest.er1
7301 grep -v '^ *+' conftest.er1 >conftest.err
7303 cat conftest.err >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } &&
7306 { ac_try='test -z "$ac_c_werror_flag"
7307 || test ! -s conftest.err'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; } &&
7313 { ac_try='test -s conftest$ac_exeext'
7314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); }; }; then
7319 ac_cv_func_fseeko=yes
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7324 ac_cv_func_fseeko=no
7326 rm -f conftest.err conftest.$ac_objext \
7327 conftest$ac_exeext conftest.$ac_ext
7329 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
7330 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
7331 if test $ac_cv_func_fseeko = yes; then
7333 cat >>confdefs.h <<\_ACEOF
7334 #define HAVE_FSEEKO 1
7339 if test $ac_cv_func_fseeko = no; then
7341 "fseeko.$ac_objext" | \
7342 *" fseeko.$ac_objext" | \
7343 "fseeko.$ac_objext "* | \
7344 *" fseeko.$ac_objext "* ) ;;
7345 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext" ;;
7349 "ftello.$ac_objext" | \
7350 *" ftello.$ac_objext" | \
7351 "ftello.$ac_objext "* | \
7352 *" ftello.$ac_objext "* ) ;;
7353 *) LIBOBJS="$LIBOBJS ftello.$ac_objext" ;;
7358 # Replace functions with versions in lib/ when they can't be found.
7380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7381 echo "$as_me:$LINENO: checking for $ac_func" >&5
7382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7383 if eval "test \"\${$as_ac_var+set}\" = set"; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 cat >conftest.$ac_ext <<_ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7394 #define $ac_func innocuous_$ac_func
7396 /* System header to define __stub macros and hopefully few prototypes,
7397 which can conflict with char $ac_func (); below.
7398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7399 <limits.h> exists even on freestanding compilers. */
7402 # include <limits.h>
7404 # include <assert.h>
7409 /* Override any gcc2 internal prototype to avoid an error. */
7414 /* We use char because int might match the return type of a gcc2
7415 builtin and then its argument prototype would still apply. */
7417 /* The GNU C library defines this for functions which it implements
7418 to always fail with ENOSYS. Some functions are actually named
7419 something starting with __ and the normal name is an alias. */
7420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7423 char (*f) () = $ac_func;
7432 return f != $ac_func;
7437 rm -f conftest.$ac_objext conftest$ac_exeext
7438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7439 (eval $ac_link) 2>conftest.er1
7441 grep -v '^ *+' conftest.er1 >conftest.err
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } &&
7446 { ac_try='test -z "$ac_c_werror_flag"
7447 || test ! -s conftest.err'
7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; } &&
7453 { ac_try='test -s conftest$ac_exeext'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7459 eval "$as_ac_var=yes"
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7464 eval "$as_ac_var=no"
7466 rm -f conftest.err conftest.$ac_objext \
7467 conftest$ac_exeext conftest.$ac_ext
7469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7471 if test `eval echo '${'$as_ac_var'}'` = yes; then
7472 cat >>confdefs.h <<_ACEOF
7473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7478 "$ac_func.$ac_objext" | \
7479 *" $ac_func.$ac_objext" | \
7480 "$ac_func.$ac_objext "* | \
7481 *" $ac_func.$ac_objext "* ) ;;
7482 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7491 # Special hack for a SunOS 5.7 (aka Solaris 7) select() problem.
7495 for ac_header in fcntl.h
7497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7499 echo "$as_me:$LINENO: checking for $ac_header" >&5
7500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7507 # Is the header compilable?
7508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7510 cat >conftest.$ac_ext <<_ACEOF
7513 cat confdefs.h >>conftest.$ac_ext
7514 cat >>conftest.$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7516 $ac_includes_default
7517 #include <$ac_header>
7519 rm -f conftest.$ac_objext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7521 (eval $ac_compile) 2>conftest.er1
7523 grep -v '^ *+' conftest.er1 >conftest.err
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
7528 { ac_try='test -z "$ac_c_werror_flag"
7529 || test ! -s conftest.err'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; } &&
7535 { ac_try='test -s conftest.$ac_objext'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
7541 ac_header_compiler=yes
7543 echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7546 ac_header_compiler=no
7548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7550 echo "${ECHO_T}$ac_header_compiler" >&6
7552 # Is the header present?
7553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7555 cat >conftest.$ac_ext <<_ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 #include <$ac_header>
7563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7566 grep -v '^ *+' conftest.er1 >conftest.err
7568 cat conftest.err >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } >/dev/null; then
7571 if test -s conftest.err; then
7572 ac_cpp_err=$ac_c_preproc_warn_flag
7573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7580 if test -z "$ac_cpp_err"; then
7581 ac_header_preproc=yes
7583 echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7586 ac_header_preproc=no
7588 rm -f conftest.err conftest.$ac_ext
7589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7590 echo "${ECHO_T}$ac_header_preproc" >&6
7592 # So? What about this header?
7593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7599 ac_header_preproc=yes
7602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7616 ## ------------------------------ ##
7617 ## Report this to bug-cvs@gnu.org ##
7618 ## ------------------------------ ##
7621 sed "s/^/$as_me: WARNING: /" >&2
7624 echo "$as_me:$LINENO: checking for $ac_header" >&5
7625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 eval "$as_ac_Header=\$ac_header_preproc"
7631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7636 cat >>confdefs.h <<_ACEOF
7637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7644 echo "$as_me:$LINENO: checking whether select hangs on /dev/null fd when timeout is NULL" >&5
7645 echo $ECHO_N "checking whether select hangs on /dev/null fd when timeout is NULL... $ECHO_C" >&6
7646 if test "${ccvs_cv_func_select_hang+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 if test "$cross_compiling" = yes; then
7650 ccvs_cv_func_select_hang=yes
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7660 #include <sys/select.h>
7671 struct timeval timeout;
7672 int fd = open ("/dev/null", O_RDONLY);
7675 FD_SET (fd, &readfds);
7677 timeout.tv_usec = 1;
7679 while ((numfds = select (fd + 1, &readfds, NULL, NULL, &timeout)) < 0
7681 return (numfds <= 0);
7687 rm -f conftest$ac_exeext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689 (eval $ac_link) 2>&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; }; then
7698 ccvs_cv_func_select_hang=no
7700 echo "$as_me: program exited with status $ac_status" >&5
7701 echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7705 ccvs_cv_func_select_hang=yes
7707 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7711 echo "$as_me:$LINENO: result: $ccvs_cv_func_select_hang" >&5
7712 echo "${ECHO_T}$ccvs_cv_func_select_hang" >&6
7713 if test $ccvs_cv_func_select_hang = yes; then
7717 for ac_header in fcntl.h unistd.h
7719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7721 echo "$as_me:$LINENO: checking for $ac_header" >&5
7722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7729 # Is the header compilable?
7730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7732 cat >conftest.$ac_ext <<_ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7738 $ac_includes_default
7739 #include <$ac_header>
7741 rm -f conftest.$ac_objext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7743 (eval $ac_compile) 2>conftest.er1
7745 grep -v '^ *+' conftest.er1 >conftest.err
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } &&
7750 { ac_try='test -z "$ac_c_werror_flag"
7751 || test ! -s conftest.err'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; } &&
7757 { ac_try='test -s conftest.$ac_objext'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7763 ac_header_compiler=yes
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7768 ac_header_compiler=no
7770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7772 echo "${ECHO_T}$ac_header_compiler" >&6
7774 # Is the header present?
7775 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7777 cat >conftest.$ac_ext <<_ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7783 #include <$ac_header>
7785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7788 grep -v '^ *+' conftest.er1 >conftest.err
7790 cat conftest.err >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); } >/dev/null; then
7793 if test -s conftest.err; then
7794 ac_cpp_err=$ac_c_preproc_warn_flag
7795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7802 if test -z "$ac_cpp_err"; then
7803 ac_header_preproc=yes
7805 echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7808 ac_header_preproc=no
7810 rm -f conftest.err conftest.$ac_ext
7811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7812 echo "${ECHO_T}$ac_header_preproc" >&6
7814 # So? What about this header?
7815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7821 ac_header_preproc=yes
7824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7838 ## ------------------------------ ##
7839 ## Report this to bug-cvs@gnu.org ##
7840 ## ------------------------------ ##
7843 sed "s/^/$as_me: WARNING: /" >&2
7846 echo "$as_me:$LINENO: checking for $ac_header" >&5
7847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 eval "$as_ac_Header=\$ac_header_preproc"
7853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7858 cat >>confdefs.h <<_ACEOF
7859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7868 "sunos57-select.$ac_objext" | \
7869 *" sunos57-select.$ac_objext" | \
7870 "sunos57-select.$ac_objext "* | \
7871 *" sunos57-select.$ac_objext "* ) ;;
7872 *) LIBOBJS="$LIBOBJS sunos57-select.$ac_objext" ;;
7876 cat >>confdefs.h <<\_ACEOF
7877 #define select rpl_select
7884 # Begin GNULIB stuff.
7887 # Look for functions from GNULIB and replace with versions in lib/ when
7889 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7890 # for constant arguments. Useless!
7891 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7892 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7893 if test "${ac_cv_working_alloca_h+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 cat >conftest.$ac_ext <<_ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7906 char *p = (char *) alloca (2 * sizeof (int));
7911 rm -f conftest.$ac_objext conftest$ac_exeext
7912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7913 (eval $ac_link) 2>conftest.er1
7915 grep -v '^ *+' conftest.er1 >conftest.err
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } &&
7920 { ac_try='test -z "$ac_c_werror_flag"
7921 || test ! -s conftest.err'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; } &&
7927 { ac_try='test -s conftest$ac_exeext'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; }; then
7933 ac_cv_working_alloca_h=yes
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7938 ac_cv_working_alloca_h=no
7940 rm -f conftest.err conftest.$ac_objext \
7941 conftest$ac_exeext conftest.$ac_ext
7943 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7944 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7945 if test $ac_cv_working_alloca_h = yes; then
7947 cat >>confdefs.h <<\_ACEOF
7948 #define HAVE_ALLOCA_H 1
7953 echo "$as_me:$LINENO: checking for alloca" >&5
7954 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7955 if test "${ac_cv_func_alloca_works+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 cat >conftest.$ac_ext <<_ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7965 # define alloca __builtin_alloca
7968 # include <malloc.h>
7969 # define alloca _alloca
7972 # include <alloca.h>
7977 # ifndef alloca /* predefined by HP cc +Olibcalls */
7988 char *p = (char *) alloca (1);
7993 rm -f conftest.$ac_objext conftest$ac_exeext
7994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7995 (eval $ac_link) 2>conftest.er1
7997 grep -v '^ *+' conftest.er1 >conftest.err
7999 cat conftest.err >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } &&
8002 { ac_try='test -z "$ac_c_werror_flag"
8003 || test ! -s conftest.err'
8004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); }; } &&
8009 { ac_try='test -s conftest$ac_exeext'
8010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; }; then
8015 ac_cv_func_alloca_works=yes
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8020 ac_cv_func_alloca_works=no
8022 rm -f conftest.err conftest.$ac_objext \
8023 conftest$ac_exeext conftest.$ac_ext
8025 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8026 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8028 if test $ac_cv_func_alloca_works = yes; then
8030 cat >>confdefs.h <<\_ACEOF
8031 #define HAVE_ALLOCA 1
8035 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8036 # that cause trouble. Some versions do not even contain alloca or
8037 # contain a buggy version. If you still want to use their alloca,
8038 # use ar to extract alloca.o from them instead of compiling alloca.c.
8040 ALLOCA=alloca.$ac_objext
8042 cat >>confdefs.h <<\_ACEOF
8047 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8048 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8049 if test "${ac_cv_os_cray+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 cat >conftest.$ac_ext <<_ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8058 #if defined(CRAY) && ! defined(CRAY2)
8065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8066 $EGREP "webecray" >/dev/null 2>&1; then
8074 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8075 echo "${ECHO_T}$ac_cv_os_cray" >&6
8076 if test $ac_cv_os_cray = yes; then
8077 for ac_func in _getb67 GETB67 getb67; do
8078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8079 echo "$as_me:$LINENO: checking for $ac_func" >&5
8080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8081 if eval "test \"\${$as_ac_var+set}\" = set"; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 cat >conftest.$ac_ext <<_ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8092 #define $ac_func innocuous_$ac_func
8094 /* System header to define __stub macros and hopefully few prototypes,
8095 which can conflict with char $ac_func (); below.
8096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8097 <limits.h> exists even on freestanding compilers. */
8100 # include <limits.h>
8102 # include <assert.h>
8107 /* Override any gcc2 internal prototype to avoid an error. */
8112 /* We use char because int might match the return type of a gcc2
8113 builtin and then its argument prototype would still apply. */
8115 /* The GNU C library defines this for functions which it implements
8116 to always fail with ENOSYS. Some functions are actually named
8117 something starting with __ and the normal name is an alias. */
8118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8121 char (*f) () = $ac_func;
8130 return f != $ac_func;
8135 rm -f conftest.$ac_objext conftest$ac_exeext
8136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8137 (eval $ac_link) 2>conftest.er1
8139 grep -v '^ *+' conftest.er1 >conftest.err
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -z "$ac_c_werror_flag"
8145 || test ! -s conftest.err'
8146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); }; } &&
8151 { ac_try='test -s conftest$ac_exeext'
8152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }; }; then
8157 eval "$as_ac_var=yes"
8159 echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8162 eval "$as_ac_var=no"
8164 rm -f conftest.err conftest.$ac_objext \
8165 conftest$ac_exeext conftest.$ac_ext
8167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8169 if test `eval echo '${'$as_ac_var'}'` = yes; then
8171 cat >>confdefs.h <<_ACEOF
8172 #define CRAY_STACKSEG_END $ac_func
8181 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8182 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8183 if test "${ac_cv_c_stack_direction+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 if test "$cross_compiling" = yes; then
8187 ac_cv_c_stack_direction=0
8189 cat >conftest.$ac_ext <<_ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8196 find_stack_direction ()
8198 static char *addr = 0;
8203 return find_stack_direction ();
8206 return (&dummy > addr) ? 1 : -1;
8212 exit (find_stack_direction () < 0);
8215 rm -f conftest$ac_exeext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8217 (eval $ac_link) 2>&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8226 ac_cv_c_stack_direction=1
8228 echo "$as_me: program exited with status $ac_status" >&5
8229 echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8233 ac_cv_c_stack_direction=-1
8235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8238 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8239 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8241 cat >>confdefs.h <<_ACEOF
8242 #define STACK_DIRECTION $ac_cv_c_stack_direction
8250 for ac_header in stdlib.h
8252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8254 echo "$as_me:$LINENO: checking for $ac_header" >&5
8255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8262 # Is the header compilable?
8263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8265 cat >conftest.$ac_ext <<_ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 $ac_includes_default
8272 #include <$ac_header>
8274 rm -f conftest.$ac_objext
8275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8276 (eval $ac_compile) 2>conftest.er1
8278 grep -v '^ *+' conftest.er1 >conftest.err
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try='test -z "$ac_c_werror_flag"
8284 || test ! -s conftest.err'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; } &&
8290 { ac_try='test -s conftest.$ac_objext'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8296 ac_header_compiler=yes
8298 echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8301 ac_header_compiler=no
8303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8305 echo "${ECHO_T}$ac_header_compiler" >&6
8307 # Is the header present?
8308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8310 cat >conftest.$ac_ext <<_ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8316 #include <$ac_header>
8318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8321 grep -v '^ *+' conftest.er1 >conftest.err
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } >/dev/null; then
8326 if test -s conftest.err; then
8327 ac_cpp_err=$ac_c_preproc_warn_flag
8328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8335 if test -z "$ac_cpp_err"; then
8336 ac_header_preproc=yes
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8341 ac_header_preproc=no
8343 rm -f conftest.err conftest.$ac_ext
8344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8345 echo "${ECHO_T}$ac_header_preproc" >&6
8347 # So? What about this header?
8348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8354 ac_header_preproc=yes
8357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8371 ## ------------------------------ ##
8372 ## Report this to bug-cvs@gnu.org ##
8373 ## ------------------------------ ##
8376 sed "s/^/$as_me: WARNING: /" >&2
8379 echo "$as_me:$LINENO: checking for $ac_header" >&5
8380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 eval "$as_ac_Header=\$ac_header_preproc"
8386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8391 cat >>confdefs.h <<_ACEOF
8392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8399 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8400 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
8401 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 if test "$cross_compiling" = yes; then
8405 ac_cv_func_malloc_0_nonnull=no
8407 cat >conftest.$ac_ext <<_ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8413 #if STDC_HEADERS || HAVE_STDLIB_H
8414 # include <stdlib.h>
8422 exit (malloc (0) ? 0 : 1);
8427 rm -f conftest$ac_exeext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429 (eval $ac_link) 2>&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8438 ac_cv_func_malloc_0_nonnull=yes
8440 echo "$as_me: program exited with status $ac_status" >&5
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8445 ac_cv_func_malloc_0_nonnull=no
8447 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8450 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8451 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
8452 if test $ac_cv_func_malloc_0_nonnull = yes; then
8453 gl_cv_func_malloc_0_nonnull=1
8455 gl_cv_func_malloc_0_nonnull=0
8460 cat >>confdefs.h <<_ACEOF
8461 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
8466 echo "$as_me:$LINENO: checking for long long" >&5
8467 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8468 if test "${ac_cv_type_long_long+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 cat >conftest.$ac_ext <<_ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h. */
8477 long long ll = 1LL; int i = 63;
8481 long long llmax = (long long) -1;
8482 return ll << i | ll >> i | llmax / ll | llmax % ll;
8487 rm -f conftest.$ac_objext conftest$ac_exeext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8489 (eval $ac_link) 2>conftest.er1
8491 grep -v '^ *+' conftest.er1 >conftest.err
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try='test -z "$ac_c_werror_flag"
8497 || test ! -s conftest.err'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try='test -s conftest$ac_exeext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_type_long_long=yes
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 ac_cv_type_long_long=no
8516 rm -f conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8519 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8520 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8521 if test $ac_cv_type_long_long = yes; then
8523 cat >>confdefs.h <<\_ACEOF
8524 #define HAVE_LONG_LONG 1
8530 echo "$as_me:$LINENO: checking for long double" >&5
8531 echo $ECHO_N "checking for long double... $ECHO_C" >&6
8532 if test "${gt_cv_c_long_double+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 if test "$GCC" = yes; then
8536 gt_cv_c_long_double=yes
8538 cat >conftest.$ac_ext <<_ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8545 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8546 long double foo = 0.0;
8547 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8548 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8558 rm -f conftest.$ac_objext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8560 (eval $ac_compile) 2>conftest.er1
8562 grep -v '^ *+' conftest.er1 >conftest.err
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
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
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 gt_cv_c_long_double=yes
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 gt_cv_c_long_double=no
8587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8590 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8591 echo "${ECHO_T}$gt_cv_c_long_double" >&6
8592 if test $gt_cv_c_long_double = yes; then
8594 cat >>confdefs.h <<\_ACEOF
8595 #define HAVE_LONG_DOUBLE 1
8601 echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
8602 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
8603 if test "${ac_cv_win_or_dos+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 cat >conftest.$ac_ext <<_ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8617 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
8618 neither MSDOS nor Windows
8624 rm -f conftest.$ac_objext
8625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8626 (eval $ac_compile) 2>conftest.er1
8628 grep -v '^ *+' conftest.er1 >conftest.err
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } &&
8633 { ac_try='test -z "$ac_c_werror_flag"
8634 || test ! -s conftest.err'
8635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); }; } &&
8640 { ac_try='test -s conftest.$ac_objext'
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; }; then
8646 ac_cv_win_or_dos=yes
8648 echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8656 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
8657 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
8659 if test x"$ac_cv_win_or_dos" = xyes; then
8660 ac_fs_accepts_drive_letter_prefix=1
8661 ac_fs_backslash_is_file_name_separator=1
8663 ac_fs_accepts_drive_letter_prefix=0
8664 ac_fs_backslash_is_file_name_separator=0
8671 cat >>confdefs.h <<_ACEOF
8672 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
8680 cat >>confdefs.h <<_ACEOF
8681 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
8685 echo "$as_me:$LINENO: checking for mbstate_t" >&5
8686 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
8687 if test "${ac_cv_type_mbstate_t+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 cat >conftest.$ac_ext <<_ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8696 $ac_includes_default
8701 mbstate_t x; return sizeof x;
8706 rm -f conftest.$ac_objext
8707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8708 (eval $ac_compile) 2>conftest.er1
8710 grep -v '^ *+' conftest.er1 >conftest.err
8712 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } &&
8715 { ac_try='test -z "$ac_c_werror_flag"
8716 || test ! -s conftest.err'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; } &&
8722 { ac_try='test -s conftest.$ac_objext'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; }; then
8728 ac_cv_type_mbstate_t=yes
8730 echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8733 ac_cv_type_mbstate_t=no
8735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8737 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
8738 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
8739 if test $ac_cv_type_mbstate_t = yes; then
8741 cat >>confdefs.h <<\_ACEOF
8742 #define HAVE_MBSTATE_T 1
8747 cat >>confdefs.h <<\_ACEOF
8748 #define mbstate_t int
8752 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8753 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
8754 if test "${ac_cv_header_stdbool_h+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 cat >conftest.$ac_ext <<_ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h. */
8764 #include <stdbool.h>
8766 "error: bool is not defined"
8769 "error: false is not defined"
8772 "error: false is not 0"
8775 "error: true is not defined"
8778 "error: true is not 1"
8780 #ifndef __bool_true_false_are_defined
8781 "error: __bool_true_false_are_defined is not defined"
8784 struct s { _Bool s: 1; _Bool t; } s;
8786 char a[true == 1 ? 1 : -1];
8787 char b[false == 0 ? 1 : -1];
8788 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8789 char d[(bool) -0.5 == true ? 1 : -1];
8791 char f[(_Bool) -0.0 == false ? 1 : -1];
8793 char h[sizeof (_Bool)];
8795 enum { j = false, k = true, l = false * true, m = true * 256 };
8797 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8803 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
8810 rm -f conftest.$ac_objext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8812 (eval $ac_compile) 2>conftest.er1
8814 grep -v '^ *+' conftest.er1 >conftest.err
8816 cat conftest.err >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } &&
8819 { ac_try='test -z "$ac_c_werror_flag"
8820 || test ! -s conftest.err'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; } &&
8826 { ac_try='test -s conftest.$ac_objext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 ac_cv_header_stdbool_h=yes
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8837 ac_cv_header_stdbool_h=no
8839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8841 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8842 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
8843 echo "$as_me:$LINENO: checking for _Bool" >&5
8844 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
8845 if test "${ac_cv_type__Bool+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 cat >conftest.$ac_ext <<_ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854 $ac_includes_default
8866 rm -f conftest.$ac_objext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8868 (eval $ac_compile) 2>conftest.er1
8870 grep -v '^ *+' conftest.er1 >conftest.err
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try='test -z "$ac_c_werror_flag"
8876 || test ! -s conftest.err'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try='test -s conftest.$ac_objext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888 ac_cv_type__Bool=yes
8890 echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8897 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8898 echo "${ECHO_T}$ac_cv_type__Bool" >&6
8899 if test $ac_cv_type__Bool = yes; then
8901 cat >>confdefs.h <<_ACEOF
8902 #define HAVE__BOOL 1
8908 if test $ac_cv_header_stdbool_h = yes; then
8910 cat >>confdefs.h <<\_ACEOF
8911 #define HAVE_STDBOOL_H 1
8918 # Define two additional variables used in the Makefile substitution.
8920 if test "$ac_cv_header_stdbool_h" = yes; then
8923 STDBOOL_H='stdbool.h'
8927 if test "$ac_cv_type__Bool" = yes; then
8934 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8935 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8936 if test "${ac_cv_header_time+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 cat >conftest.$ac_ext <<_ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 #include <sys/types.h>
8946 #include <sys/time.h>
8952 if ((struct tm *) 0)
8958 rm -f conftest.$ac_objext
8959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8960 (eval $ac_compile) 2>conftest.er1
8962 grep -v '^ *+' conftest.er1 >conftest.err
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
8967 { ac_try='test -z "$ac_c_werror_flag"
8968 || test ! -s conftest.err'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; } &&
8974 { ac_try='test -s conftest.$ac_objext'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; }; then
8980 ac_cv_header_time=yes
8982 echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8985 ac_cv_header_time=no
8987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8989 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8990 echo "${ECHO_T}$ac_cv_header_time" >&6
8991 if test $ac_cv_header_time = yes; then
8993 cat >>confdefs.h <<\_ACEOF
8994 #define TIME_WITH_SYS_TIME 1
9004 for ac_header in $gl_header_list
9006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9008 echo "$as_me:$LINENO: checking for $ac_header" >&5
9009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9016 # Is the header compilable?
9017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9019 cat >conftest.$ac_ext <<_ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9025 $ac_includes_default
9026 #include <$ac_header>
9028 rm -f conftest.$ac_objext
9029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9030 (eval $ac_compile) 2>conftest.er1
9032 grep -v '^ *+' conftest.er1 >conftest.err
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } &&
9037 { ac_try='test -z "$ac_c_werror_flag"
9038 || test ! -s conftest.err'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; } &&
9044 { ac_try='test -s conftest.$ac_objext'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
9050 ac_header_compiler=yes
9052 echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9055 ac_header_compiler=no
9057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9059 echo "${ECHO_T}$ac_header_compiler" >&6
9061 # Is the header present?
9062 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9064 cat >conftest.$ac_ext <<_ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9070 #include <$ac_header>
9072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9075 grep -v '^ *+' conftest.er1 >conftest.err
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } >/dev/null; then
9080 if test -s conftest.err; then
9081 ac_cpp_err=$ac_c_preproc_warn_flag
9082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9089 if test -z "$ac_cpp_err"; then
9090 ac_header_preproc=yes
9092 echo "$as_me: failed program was:" >&5
9093 sed 's/^/| /' conftest.$ac_ext >&5
9095 ac_header_preproc=no
9097 rm -f conftest.err conftest.$ac_ext
9098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9099 echo "${ECHO_T}$ac_header_preproc" >&6
9101 # So? What about this header?
9102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9108 ac_header_preproc=yes
9111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9114 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9118 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9125 ## ------------------------------ ##
9126 ## Report this to bug-cvs@gnu.org ##
9127 ## ------------------------------ ##
9130 sed "s/^/$as_me: WARNING: /" >&2
9133 echo "$as_me:$LINENO: checking for $ac_header" >&5
9134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9138 eval "$as_ac_Header=\$ac_header_preproc"
9140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9145 cat >>confdefs.h <<_ACEOF
9146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9178 echo "$as_me:$LINENO: checking for struct timespec" >&5
9179 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
9180 if test "${fu_cv_sys_struct_timespec+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 cat >conftest.$ac_ext <<_ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9190 # if TIME_WITH_SYS_TIME
9191 # include <sys/time.h>
9194 # if HAVE_SYS_TIME_H
9195 # include <sys/time.h>
9204 static struct timespec x; x.tv_sec = x.tv_nsec;
9209 rm -f conftest.$ac_objext
9210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9211 (eval $ac_compile) 2>conftest.er1
9213 grep -v '^ *+' conftest.er1 >conftest.err
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } &&
9218 { ac_try='test -z "$ac_c_werror_flag"
9219 || test ! -s conftest.err'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; } &&
9225 { ac_try='test -s conftest.$ac_objext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 fu_cv_sys_struct_timespec=yes
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 fu_cv_sys_struct_timespec=no
9238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9241 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
9242 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
9244 if test $fu_cv_sys_struct_timespec = yes; then
9246 cat >>confdefs.h <<\_ACEOF
9247 #define HAVE_STRUCT_TIMESPEC 1
9252 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
9253 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
9254 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9257 ac_save_CPPFLAGS="$CPPFLAGS"
9258 ac_cv_struct_st_mtim_nsec=no
9259 # tv_nsec -- the usual case
9260 # _tv_nsec -- Solaris 2.6, if
9261 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
9262 # && !defined __EXTENSIONS__)
9263 # st__tim.tv_nsec -- UnixWare 2.1.2
9264 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
9265 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
9266 cat >conftest.$ac_ext <<_ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h. */
9272 #include <sys/types.h>
9273 #include <sys/stat.h>
9277 struct stat s; s.st_mtim.ST_MTIM_NSEC;
9282 rm -f conftest.$ac_objext
9283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9284 (eval $ac_compile) 2>conftest.er1
9286 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9304 ac_cv_struct_st_mtim_nsec=$ac_val; break
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9312 CPPFLAGS="$ac_save_CPPFLAGS"
9314 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
9315 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
9317 if test $ac_cv_struct_st_mtim_nsec != no; then
9319 cat >>confdefs.h <<_ACEOF
9320 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
9329 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
9330 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
9331 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
9332 echo $ECHO_N "(cached) $ECHO_C" >&6
9334 cat >conftest.$ac_ext <<_ACEOF
9337 cat confdefs.h >>conftest.$ac_ext
9338 cat >>conftest.$ac_ext <<_ACEOF
9339 /* end confdefs.h. */
9346 char *p = (char *) nanosleep;
9353 rm -f conftest.$ac_objext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9355 (eval $ac_compile) 2>conftest.er1
9357 grep -v '^ *+' conftest.er1 >conftest.err
9359 cat conftest.err >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } &&
9362 { ac_try='test -z "$ac_c_werror_flag"
9363 || test ! -s conftest.err'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; } &&
9369 { ac_try='test -s conftest.$ac_objext'
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; }; then
9375 ac_cv_have_decl_nanosleep=yes
9377 echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9380 ac_cv_have_decl_nanosleep=no
9382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9384 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
9385 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
9386 if test $ac_cv_have_decl_nanosleep = yes; then
9388 cat >>confdefs.h <<_ACEOF
9389 #define HAVE_DECL_NANOSLEEP 1
9394 cat >>confdefs.h <<_ACEOF
9395 #define HAVE_DECL_NANOSLEEP 0
9404 # getdate.y works with bison only.
9406 YACC=${YACC-"${am_missing_run}bison -y"}
9416 for ac_func in $gl_func_list
9418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9419 echo "$as_me:$LINENO: checking for $ac_func" >&5
9420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9421 if eval "test \"\${$as_ac_var+set}\" = set"; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 cat >conftest.$ac_ext <<_ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h. */
9430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9432 #define $ac_func innocuous_$ac_func
9434 /* System header to define __stub macros and hopefully few prototypes,
9435 which can conflict with char $ac_func (); below.
9436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9437 <limits.h> exists even on freestanding compilers. */
9440 # include <limits.h>
9442 # include <assert.h>
9447 /* Override any gcc2 internal prototype to avoid an error. */
9452 /* We use char because int might match the return type of a gcc2
9453 builtin and then its argument prototype would still apply. */
9455 /* The GNU C library defines this for functions which it implements
9456 to always fail with ENOSYS. Some functions are actually named
9457 something starting with __ and the normal name is an alias. */
9458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9461 char (*f) () = $ac_func;
9470 return f != $ac_func;
9475 rm -f conftest.$ac_objext conftest$ac_exeext
9476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9477 (eval $ac_link) 2>conftest.er1
9479 grep -v '^ *+' conftest.er1 >conftest.err
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } &&
9484 { ac_try='test -z "$ac_c_werror_flag"
9485 || test ! -s conftest.err'
9486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); }; } &&
9491 { ac_try='test -s conftest$ac_exeext'
9492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; }; then
9497 eval "$as_ac_var=yes"
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9502 eval "$as_ac_var=no"
9504 rm -f conftest.err conftest.$ac_objext \
9505 conftest$ac_exeext conftest.$ac_ext
9507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9509 if test `eval echo '${'$as_ac_var'}'` = yes; then
9510 cat >>confdefs.h <<_ACEOF
9511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9522 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9523 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9524 if test "${ac_cv_struct_tm+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9527 cat >conftest.$ac_ext <<_ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9533 #include <sys/types.h>
9539 struct tm *tp; tp->tm_sec;
9544 rm -f conftest.$ac_objext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9546 (eval $ac_compile) 2>conftest.er1
9548 grep -v '^ *+' conftest.er1 >conftest.err
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } &&
9553 { ac_try='test -z "$ac_c_werror_flag"
9554 || test ! -s conftest.err'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; } &&
9560 { ac_try='test -s conftest.$ac_objext'
9561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; }; then
9566 ac_cv_struct_tm=time.h
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9571 ac_cv_struct_tm=sys/time.h
9573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9575 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9576 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9577 if test $ac_cv_struct_tm = sys/time.h; then
9579 cat >>confdefs.h <<\_ACEOF
9580 #define TM_IN_SYS_TIME 1
9586 # dnl Persuade glibc <time.h> to declare these functions.
9589 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
9590 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
9592 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
9593 # programs in the package would end up linked with that potentially-shared
9594 # library, inducing unnecessary run-time overhead.
9595 fetish_saved_libs=$LIBS
9596 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9597 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
9598 if test "${ac_cv_search_clock_gettime+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 ac_func_search_save_LIBS=$LIBS
9602 ac_cv_search_clock_gettime=no
9603 cat >conftest.$ac_ext <<_ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9610 /* Override any gcc2 internal prototype to avoid an error. */
9614 /* We use char because int might match the return type of a gcc2
9615 builtin and then its argument prototype would still apply. */
9616 char clock_gettime ();
9625 rm -f conftest.$ac_objext conftest$ac_exeext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9627 (eval $ac_link) 2>conftest.er1
9629 grep -v '^ *+' conftest.er1 >conftest.err
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } &&
9634 { ac_try='test -z "$ac_c_werror_flag"
9635 || test ! -s conftest.err'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; } &&
9641 { ac_try='test -s conftest$ac_exeext'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; }; then
9647 ac_cv_search_clock_gettime="none required"
9649 echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.$ac_ext >&5
9653 rm -f conftest.err conftest.$ac_objext \
9654 conftest$ac_exeext conftest.$ac_ext
9655 if test "$ac_cv_search_clock_gettime" = no; then
9656 for ac_lib in rt posix4; do
9657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9658 cat >conftest.$ac_ext <<_ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9665 /* Override any gcc2 internal prototype to avoid an error. */
9669 /* We use char because int might match the return type of a gcc2
9670 builtin and then its argument prototype would still apply. */
9671 char clock_gettime ();
9680 rm -f conftest.$ac_objext conftest$ac_exeext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9682 (eval $ac_link) 2>conftest.er1
9684 grep -v '^ *+' conftest.er1 >conftest.err
9686 cat conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -z "$ac_c_werror_flag"
9690 || test ! -s conftest.err'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; } &&
9696 { ac_try='test -s conftest$ac_exeext'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; }; then
9702 ac_cv_search_clock_gettime="-l$ac_lib"
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9709 rm -f conftest.err conftest.$ac_objext \
9710 conftest$ac_exeext conftest.$ac_ext
9713 LIBS=$ac_func_search_save_LIBS
9715 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9716 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
9717 if test "$ac_cv_search_clock_gettime" != no; then
9718 test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
9719 test "$ac_cv_search_clock_gettime" = "none required" ||
9720 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
9726 for ac_func in clock_gettime clock_settime
9728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9729 echo "$as_me:$LINENO: checking for $ac_func" >&5
9730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9731 if eval "test \"\${$as_ac_var+set}\" = set"; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 cat >conftest.$ac_ext <<_ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9742 #define $ac_func innocuous_$ac_func
9744 /* System header to define __stub macros and hopefully few prototypes,
9745 which can conflict with char $ac_func (); below.
9746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9747 <limits.h> exists even on freestanding compilers. */
9750 # include <limits.h>
9752 # include <assert.h>
9757 /* Override any gcc2 internal prototype to avoid an error. */
9762 /* We use char because int might match the return type of a gcc2
9763 builtin and then its argument prototype would still apply. */
9765 /* The GNU C library defines this for functions which it implements
9766 to always fail with ENOSYS. Some functions are actually named
9767 something starting with __ and the normal name is an alias. */
9768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9771 char (*f) () = $ac_func;
9780 return f != $ac_func;
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787 (eval $ac_link) 2>conftest.er1
9789 grep -v '^ *+' conftest.er1 >conftest.err
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
9794 { ac_try='test -z "$ac_c_werror_flag"
9795 || test ! -s conftest.err'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; } &&
9801 { ac_try='test -s conftest$ac_exeext'
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
9807 eval "$as_ac_var=yes"
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9812 eval "$as_ac_var=no"
9814 rm -f conftest.err conftest.$ac_objext \
9815 conftest$ac_exeext conftest.$ac_ext
9817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9819 if test `eval echo '${'$as_ac_var'}'` = yes; then
9820 cat >>confdefs.h <<_ACEOF
9821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9827 LIBS=$fetish_saved_libs
9830 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
9831 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
9832 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 cat >conftest.$ac_ext <<_ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9846 static struct tm ac_aggr;
9847 if (ac_aggr.tm_gmtoff)
9853 rm -f conftest.$ac_objext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9855 (eval $ac_compile) 2>conftest.er1
9857 grep -v '^ *+' conftest.er1 >conftest.err
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try='test -z "$ac_c_werror_flag"
9863 || test ! -s conftest.err'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try='test -s conftest.$ac_objext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 ac_cv_member_struct_tm_tm_gmtoff=yes
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 cat >conftest.$ac_ext <<_ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9891 static struct tm ac_aggr;
9892 if (sizeof ac_aggr.tm_gmtoff)
9898 rm -f conftest.$ac_objext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9900 (eval $ac_compile) 2>conftest.er1
9902 grep -v '^ *+' conftest.er1 >conftest.err
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } &&
9907 { ac_try='test -z "$ac_c_werror_flag"
9908 || test ! -s conftest.err'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } &&
9914 { ac_try='test -s conftest.$ac_objext'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 ac_cv_member_struct_tm_tm_gmtoff=yes
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9925 ac_cv_member_struct_tm_tm_gmtoff=no
9927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9931 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
9932 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
9933 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
9935 cat >>confdefs.h <<\_ACEOF
9936 #define HAVE_TM_GMTOFF 1
9943 echo "$as_me:$LINENO: checking for ssize_t" >&5
9944 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9945 if test "${gt_cv_ssize_t+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 cat >conftest.$ac_ext <<_ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 #include <sys/types.h>
9958 int x = sizeof (ssize_t *) + sizeof (ssize_t);
9963 rm -f conftest.$ac_objext
9964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9965 (eval $ac_compile) 2>conftest.er1
9967 grep -v '^ *+' conftest.er1 >conftest.err
9969 cat conftest.err >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } &&
9972 { ac_try='test -z "$ac_c_werror_flag"
9973 || test ! -s conftest.err'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; } &&
9979 { ac_try='test -s conftest.$ac_objext'
9980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9987 echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9994 echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
9995 echo "${ECHO_T}$gt_cv_ssize_t" >&6
9996 if test $gt_cv_ssize_t = no; then
9998 cat >>confdefs.h <<\_ACEOF
10017 echo "$as_me:$LINENO: checking whether getpass is declared" >&5
10018 echo $ECHO_N "checking whether getpass is declared... $ECHO_C" >&6
10019 if test "${ac_cv_have_decl_getpass+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 cat >conftest.$ac_ext <<_ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 $ac_includes_default
10033 char *p = (char *) getpass;
10040 rm -f conftest.$ac_objext
10041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10042 (eval $ac_compile) 2>conftest.er1
10044 grep -v '^ *+' conftest.er1 >conftest.err
10046 cat conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } &&
10049 { ac_try='test -z "$ac_c_werror_flag"
10050 || test ! -s conftest.err'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; } &&
10056 { ac_try='test -s conftest.$ac_objext'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; }; then
10062 ac_cv_have_decl_getpass=yes
10064 echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10067 ac_cv_have_decl_getpass=no
10069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10071 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
10072 echo "${ECHO_T}$ac_cv_have_decl_getpass" >&6
10073 if test $ac_cv_have_decl_getpass = yes; then
10075 cat >>confdefs.h <<_ACEOF
10076 #define HAVE_DECL_GETPASS 1
10081 cat >>confdefs.h <<_ACEOF
10082 #define HAVE_DECL_GETPASS 0
10097 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
10098 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
10099 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 cat >conftest.$ac_ext <<_ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h. */
10108 $ac_includes_default
10112 #ifndef fflush_unlocked
10113 char *p = (char *) fflush_unlocked;
10120 rm -f conftest.$ac_objext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10122 (eval $ac_compile) 2>conftest.er1
10124 grep -v '^ *+' conftest.er1 >conftest.err
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try='test -z "$ac_c_werror_flag"
10130 || test ! -s conftest.err'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; } &&
10136 { ac_try='test -s conftest.$ac_objext'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 ac_cv_have_decl_fflush_unlocked=yes
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10147 ac_cv_have_decl_fflush_unlocked=no
10149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10151 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
10152 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
10153 if test $ac_cv_have_decl_fflush_unlocked = yes; then
10155 cat >>confdefs.h <<_ACEOF
10156 #define HAVE_DECL_FFLUSH_UNLOCKED 1
10161 cat >>confdefs.h <<_ACEOF
10162 #define HAVE_DECL_FFLUSH_UNLOCKED 0
10171 echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
10172 echo $ECHO_N "checking whether flockfile is declared... $ECHO_C" >&6
10173 if test "${ac_cv_have_decl_flockfile+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10176 cat >conftest.$ac_ext <<_ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h. */
10182 $ac_includes_default
10187 char *p = (char *) flockfile;
10194 rm -f conftest.$ac_objext
10195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10196 (eval $ac_compile) 2>conftest.er1
10198 grep -v '^ *+' conftest.er1 >conftest.err
10200 cat conftest.err >&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); } &&
10203 { ac_try='test -z "$ac_c_werror_flag"
10204 || test ! -s conftest.err'
10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206 (eval $ac_try) 2>&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; } &&
10210 { ac_try='test -s conftest.$ac_objext'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; }; then
10216 ac_cv_have_decl_flockfile=yes
10218 echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10221 ac_cv_have_decl_flockfile=no
10223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10225 echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
10226 echo "${ECHO_T}$ac_cv_have_decl_flockfile" >&6
10227 if test $ac_cv_have_decl_flockfile = yes; then
10229 cat >>confdefs.h <<_ACEOF
10230 #define HAVE_DECL_FLOCKFILE 1
10235 cat >>confdefs.h <<_ACEOF
10236 #define HAVE_DECL_FLOCKFILE 0
10245 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
10246 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
10247 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 cat >conftest.$ac_ext <<_ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10256 $ac_includes_default
10260 #ifndef fputs_unlocked
10261 char *p = (char *) fputs_unlocked;
10268 rm -f conftest.$ac_objext
10269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10270 (eval $ac_compile) 2>conftest.er1
10272 grep -v '^ *+' conftest.er1 >conftest.err
10274 cat conftest.err >&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } &&
10277 { ac_try='test -z "$ac_c_werror_flag"
10278 || test ! -s conftest.err'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; } &&
10284 { ac_try='test -s conftest.$ac_objext'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; }; then
10290 ac_cv_have_decl_fputs_unlocked=yes
10292 echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10295 ac_cv_have_decl_fputs_unlocked=no
10297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10299 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
10300 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
10301 if test $ac_cv_have_decl_fputs_unlocked = yes; then
10303 cat >>confdefs.h <<_ACEOF
10304 #define HAVE_DECL_FPUTS_UNLOCKED 1
10309 cat >>confdefs.h <<_ACEOF
10310 #define HAVE_DECL_FPUTS_UNLOCKED 0
10319 echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
10320 echo $ECHO_N "checking whether funlockfile is declared... $ECHO_C" >&6
10321 if test "${ac_cv_have_decl_funlockfile+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 cat >conftest.$ac_ext <<_ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10330 $ac_includes_default
10334 #ifndef funlockfile
10335 char *p = (char *) funlockfile;
10342 rm -f conftest.$ac_objext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10344 (eval $ac_compile) 2>conftest.er1
10346 grep -v '^ *+' conftest.er1 >conftest.err
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } &&
10351 { ac_try='test -z "$ac_c_werror_flag"
10352 || test ! -s conftest.err'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; } &&
10358 { ac_try='test -s conftest.$ac_objext'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; }; then
10364 ac_cv_have_decl_funlockfile=yes
10366 echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10369 ac_cv_have_decl_funlockfile=no
10371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10373 echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
10374 echo "${ECHO_T}$ac_cv_have_decl_funlockfile" >&6
10375 if test $ac_cv_have_decl_funlockfile = yes; then
10377 cat >>confdefs.h <<_ACEOF
10378 #define HAVE_DECL_FUNLOCKFILE 1
10383 cat >>confdefs.h <<_ACEOF
10384 #define HAVE_DECL_FUNLOCKFILE 0
10393 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
10394 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
10395 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 cat >conftest.$ac_ext <<_ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h. */
10404 $ac_includes_default
10408 #ifndef putc_unlocked
10409 char *p = (char *) putc_unlocked;
10416 rm -f conftest.$ac_objext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10418 (eval $ac_compile) 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag"
10426 || test ! -s conftest.err'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428 (eval $ac_try) 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; } &&
10432 { ac_try='test -s conftest.$ac_objext'
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
10438 ac_cv_have_decl_putc_unlocked=yes
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 ac_cv_have_decl_putc_unlocked=no
10445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10447 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
10448 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
10449 if test $ac_cv_have_decl_putc_unlocked = yes; then
10451 cat >>confdefs.h <<_ACEOF
10452 #define HAVE_DECL_PUTC_UNLOCKED 1
10457 cat >>confdefs.h <<_ACEOF
10458 #define HAVE_DECL_PUTC_UNLOCKED 0
10472 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
10473 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
10474 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
10475 echo $ECHO_N "(cached) $ECHO_C" >&6
10477 rm -f conftest.sym conftest.file
10478 echo >conftest.file
10479 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10480 if test "$cross_compiling" = yes; then
10481 ac_cv_func_lstat_dereferences_slashed_symlink=no
10483 cat >conftest.$ac_ext <<_ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10489 $ac_includes_default
10494 /* Linux will dereference the symlink and fail.
10495 That is better in the sense that it means we will not
10496 have to compile and use the lstat wrapper. */
10497 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
10502 rm -f conftest$ac_exeext
10503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10504 (eval $ac_link) 2>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10515 echo "$as_me: program exited with status $ac_status" >&5
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10519 ( exit $ac_status )
10520 ac_cv_func_lstat_dereferences_slashed_symlink=no
10522 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10525 # If the `ln -s' command failed, then we probably don't even
10526 # have an lstat function.
10527 ac_cv_func_lstat_dereferences_slashed_symlink=no
10529 rm -f conftest.sym conftest.file
10532 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10533 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
10535 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10537 cat >>confdefs.h <<_ACEOF
10538 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10542 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
10544 "lstat.$ac_objext" | \
10545 *" lstat.$ac_objext" | \
10546 "lstat.$ac_objext "* | \
10547 *" lstat.$ac_objext "* ) ;;
10548 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
10554 echo "$as_me:$LINENO: checking for uint32_t" >&5
10555 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
10556 if test "${gl_cv_c_uint32_t+set}" = set; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
10559 gl_cv_c_uint32_t=no
10560 for ac_type in "uint32_t" "unsigned int" \
10561 "unsigned long int" "unsigned short int"; do
10562 cat >conftest.$ac_ext <<_ACEOF
10565 cat confdefs.h >>conftest.$ac_ext
10566 cat >>conftest.$ac_ext <<_ACEOF
10567 /* end confdefs.h. */
10568 $ac_includes_default
10572 static int test_array [1 - 2 * !(($ac_type) -1 == 4294967295U)];
10579 rm -f conftest.$ac_objext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10581 (eval $ac_compile) 2>conftest.er1
10583 grep -v '^ *+' conftest.er1 >conftest.err
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } &&
10588 { ac_try='test -z "$ac_c_werror_flag"
10589 || test ! -s conftest.err'
10590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591 (eval $ac_try) 2>&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); }; } &&
10595 { ac_try='test -s conftest.$ac_objext'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 gl_cv_c_uint32_t=$ac_type
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10608 test "$gl_cv_c_uint32_t" != no && break
10611 echo "$as_me:$LINENO: result: $gl_cv_c_uint32_t" >&5
10612 echo "${ECHO_T}$gl_cv_c_uint32_t" >&6
10613 case "$gl_cv_c_uint32_t" in
10617 cat >>confdefs.h <<\_ACEOF
10618 #define _UINT32_T 1
10622 cat >>confdefs.h <<_ACEOF
10623 #define uint32_t $gl_cv_c_uint32_t
10629 echo "$as_me:$LINENO: checking for UINT32_MAX" >&5
10630 echo $ECHO_N "checking for UINT32_MAX... $ECHO_C" >&6
10631 if test "${gl_cv_c_uint32_max+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 cat >conftest.$ac_ext <<_ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10640 $ac_includes_default
10644 static int test_array [1 - 2 * !(UINT32_MAX == 4294967295U)];
10651 rm -f conftest.$ac_objext
10652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10653 (eval $ac_compile) 2>conftest.er1
10655 grep -v '^ *+' conftest.er1 >conftest.err
10657 cat conftest.err >&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } &&
10660 { ac_try='test -z "$ac_c_werror_flag"
10661 || test ! -s conftest.err'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; } &&
10667 { ac_try='test -s conftest.$ac_objext'
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 gl_cv_c_uint32_max=yes
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10678 gl_cv_c_uint32_max=no
10680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10682 echo "$as_me:$LINENO: result: $gl_cv_c_uint32_max" >&5
10683 echo "${ECHO_T}$gl_cv_c_uint32_max" >&6
10684 case $gl_cv_c_uint32_max,$gl_cv_c_uint32_t in
10689 cat >>confdefs.h <<\_ACEOF
10690 #define UINT32_MAX 4294967295U
10696 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10697 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10698 if test "${ac_cv_c_bigendian+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 # See if sys/param.h defines the BYTE_ORDER macro.
10702 cat >conftest.$ac_ext <<_ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10708 #include <sys/types.h>
10709 #include <sys/param.h>
10714 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10715 bogus endian macros
10722 rm -f conftest.$ac_objext
10723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10724 (eval $ac_compile) 2>conftest.er1
10726 grep -v '^ *+' conftest.er1 >conftest.err
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } &&
10731 { ac_try='test -z "$ac_c_werror_flag"
10732 || test ! -s conftest.err'
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; } &&
10738 { ac_try='test -s conftest.$ac_objext'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; }; then
10744 # It does; now see whether it defined to BIG_ENDIAN or not.
10745 cat >conftest.$ac_ext <<_ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10751 #include <sys/types.h>
10752 #include <sys/param.h>
10757 #if BYTE_ORDER != BIG_ENDIAN
10765 rm -f conftest.$ac_objext
10766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10767 (eval $ac_compile) 2>conftest.er1
10769 grep -v '^ *+' conftest.er1 >conftest.err
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } &&
10774 { ac_try='test -z "$ac_c_werror_flag"
10775 || test ! -s conftest.err'
10776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777 (eval $ac_try) 2>&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; } &&
10781 { ac_try='test -s conftest.$ac_objext'
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; }; then
10787 ac_cv_c_bigendian=yes
10789 echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10792 ac_cv_c_bigendian=no
10794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 # It does not; compile a test program.
10800 if test "$cross_compiling" = yes; then
10801 # try to guess the endianness by grepping values into an object file
10802 ac_cv_c_bigendian=unknown
10803 cat >conftest.$ac_ext <<_ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10810 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10811 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10812 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10813 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10814 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10818 _ascii (); _ebcdic ();
10823 rm -f conftest.$ac_objext
10824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10825 (eval $ac_compile) 2>conftest.er1
10827 grep -v '^ *+' conftest.er1 >conftest.err
10829 cat conftest.err >&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } &&
10832 { ac_try='test -z "$ac_c_werror_flag"
10833 || test ! -s conftest.err'
10834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835 (eval $ac_try) 2>&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; } &&
10839 { ac_try='test -s conftest.$ac_objext'
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; }; then
10845 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10846 ac_cv_c_bigendian=yes
10848 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10849 if test "$ac_cv_c_bigendian" = unknown; then
10850 ac_cv_c_bigendian=no
10852 # finding both strings is unlikely to happen, but who knows?
10853 ac_cv_c_bigendian=unknown
10857 echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.$ac_ext >&5
10861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10863 cat >conftest.$ac_ext <<_ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h. */
10872 /* Are we little or big endian? From Harbison&Steele. */
10876 char c[sizeof (long)];
10879 exit (u.c[sizeof (long) - 1] == 1);
10882 rm -f conftest$ac_exeext
10883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10884 (eval $ac_link) 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
10893 ac_cv_c_bigendian=no
10895 echo "$as_me: program exited with status $ac_status" >&5
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10899 ( exit $ac_status )
10900 ac_cv_c_bigendian=yes
10902 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10907 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10908 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10909 case $ac_cv_c_bigendian in
10912 cat >>confdefs.h <<\_ACEOF
10913 #define WORDS_BIGENDIAN 1
10919 { { echo "$as_me:$LINENO: error: unknown endianness
10920 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10921 echo "$as_me: error: unknown endianness
10922 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10923 { (exit 1); exit 1; }; } ;;
10933 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10934 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10935 if test "${ac_cv_have_decl_getenv+set}" = set; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 cat >conftest.$ac_ext <<_ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10944 $ac_includes_default
10949 char *p = (char *) getenv;
10956 rm -f conftest.$ac_objext
10957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10958 (eval $ac_compile) 2>conftest.er1
10960 grep -v '^ *+' conftest.er1 >conftest.err
10962 cat conftest.err >&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } &&
10965 { ac_try='test -z "$ac_c_werror_flag"
10966 || test ! -s conftest.err'
10967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968 (eval $ac_try) 2>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; } &&
10972 { ac_try='test -s conftest.$ac_objext'
10973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974 (eval $ac_try) 2>&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; }; then
10978 ac_cv_have_decl_getenv=yes
10980 echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10983 ac_cv_have_decl_getenv=no
10985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10987 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10988 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10989 if test $ac_cv_have_decl_getenv = yes; then
10991 cat >>confdefs.h <<_ACEOF
10992 #define HAVE_DECL_GETENV 1
10997 cat >>confdefs.h <<_ACEOF
10998 #define HAVE_DECL_GETENV 0
11007 echo "$as_me:$LINENO: checking for inttypes.h" >&5
11008 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
11009 if test "${gl_cv_header_inttypes_h+set}" = set; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11012 cat >conftest.$ac_ext <<_ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11018 #include <sys/types.h>
11019 #include <inttypes.h>
11023 uintmax_t i = (uintmax_t) -1;
11028 rm -f conftest.$ac_objext
11029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11030 (eval $ac_compile) 2>conftest.er1
11032 grep -v '^ *+' conftest.er1 >conftest.err
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -z "$ac_c_werror_flag"
11038 || test ! -s conftest.err'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; } &&
11044 { ac_try='test -s conftest.$ac_objext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 gl_cv_header_inttypes_h=yes
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11055 gl_cv_header_inttypes_h=no
11057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11059 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
11060 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
11061 if test $gl_cv_header_inttypes_h = yes; then
11063 cat >>confdefs.h <<_ACEOF
11064 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
11070 echo "$as_me:$LINENO: checking for stdint.h" >&5
11071 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11072 if test "${gl_cv_header_stdint_h+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 cat >conftest.$ac_ext <<_ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h. */
11081 #include <sys/types.h>
11082 #include <stdint.h>
11086 uintmax_t i = (uintmax_t) -1;
11091 rm -f conftest.$ac_objext
11092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11093 (eval $ac_compile) 2>conftest.er1
11095 grep -v '^ *+' conftest.er1 >conftest.err
11097 cat conftest.err >&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } &&
11100 { ac_try='test -z "$ac_c_werror_flag"
11101 || test ! -s conftest.err'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; } &&
11107 { ac_try='test -s conftest.$ac_objext'
11108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109 (eval $ac_try) 2>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; }; then
11113 gl_cv_header_stdint_h=yes
11115 echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11118 gl_cv_header_stdint_h=no
11120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11122 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
11123 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
11124 if test $gl_cv_header_stdint_h = yes; then
11126 cat >>confdefs.h <<_ACEOF
11127 #define HAVE_STDINT_H_WITH_UINTMAX 1
11133 echo "$as_me:$LINENO: checking for unsigned long long" >&5
11134 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
11135 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 cat >conftest.$ac_ext <<_ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h. */
11144 unsigned long long ull = 1ULL; int i = 63;
11148 unsigned long long ullmax = (unsigned long long) -1;
11149 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
11154 rm -f conftest.$ac_objext conftest$ac_exeext
11155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156 (eval $ac_link) 2>conftest.er1
11158 grep -v '^ *+' conftest.er1 >conftest.err
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -z "$ac_c_werror_flag"
11164 || test ! -s conftest.err'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; } &&
11170 { ac_try='test -s conftest$ac_exeext'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 ac_cv_type_unsigned_long_long=yes
11178 echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11181 ac_cv_type_unsigned_long_long=no
11183 rm -f conftest.err conftest.$ac_objext \
11184 conftest$ac_exeext conftest.$ac_ext
11186 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
11187 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
11188 if test $ac_cv_type_unsigned_long_long = yes; then
11190 cat >>confdefs.h <<\_ACEOF
11191 #define HAVE_UNSIGNED_LONG_LONG 1
11199 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
11201 test $ac_cv_type_unsigned_long_long = yes \
11202 && ac_type='unsigned long long' \
11203 || ac_type='unsigned long'
11205 cat >>confdefs.h <<_ACEOF
11206 #define uintmax_t $ac_type
11211 cat >>confdefs.h <<\_ACEOF
11212 #define HAVE_UINTMAX_T 1
11220 for ac_header in stdlib.h sys/time.h unistd.h
11222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11224 echo "$as_me:$LINENO: checking for $ac_header" >&5
11225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11232 # Is the header compilable?
11233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11235 cat >conftest.$ac_ext <<_ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h. */
11241 $ac_includes_default
11242 #include <$ac_header>
11244 rm -f conftest.$ac_objext
11245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11246 (eval $ac_compile) 2>conftest.er1
11248 grep -v '^ *+' conftest.er1 >conftest.err
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } &&
11253 { ac_try='test -z "$ac_c_werror_flag"
11254 || test ! -s conftest.err'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; } &&
11260 { ac_try='test -s conftest.$ac_objext'
11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; }; then
11266 ac_header_compiler=yes
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11271 ac_header_compiler=no
11273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11275 echo "${ECHO_T}$ac_header_compiler" >&6
11277 # Is the header present?
11278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11280 cat >conftest.$ac_ext <<_ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 #include <$ac_header>
11288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11291 grep -v '^ *+' conftest.er1 >conftest.err
11293 cat conftest.err >&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } >/dev/null; then
11296 if test -s conftest.err; then
11297 ac_cpp_err=$ac_c_preproc_warn_flag
11298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11305 if test -z "$ac_cpp_err"; then
11306 ac_header_preproc=yes
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11311 ac_header_preproc=no
11313 rm -f conftest.err conftest.$ac_ext
11314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11315 echo "${ECHO_T}$ac_header_preproc" >&6
11317 # So? What about this header?
11318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11324 ac_header_preproc=yes
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11341 ## ------------------------------ ##
11342 ## Report this to bug-cvs@gnu.org ##
11343 ## ------------------------------ ##
11346 sed "s/^/$as_me: WARNING: /" >&2
11349 echo "$as_me:$LINENO: checking for $ac_header" >&5
11350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 eval "$as_ac_Header=\$ac_header_preproc"
11356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11361 cat >>confdefs.h <<_ACEOF
11362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11370 for ac_func in alarm
11372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11373 echo "$as_me:$LINENO: checking for $ac_func" >&5
11374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11375 if eval "test \"\${$as_ac_var+set}\" = set"; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 cat >conftest.$ac_ext <<_ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11386 #define $ac_func innocuous_$ac_func
11388 /* System header to define __stub macros and hopefully few prototypes,
11389 which can conflict with char $ac_func (); below.
11390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11391 <limits.h> exists even on freestanding compilers. */
11394 # include <limits.h>
11396 # include <assert.h>
11401 /* Override any gcc2 internal prototype to avoid an error. */
11406 /* We use char because int might match the return type of a gcc2
11407 builtin and then its argument prototype would still apply. */
11409 /* The GNU C library defines this for functions which it implements
11410 to always fail with ENOSYS. Some functions are actually named
11411 something starting with __ and the normal name is an alias. */
11412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11415 char (*f) () = $ac_func;
11424 return f != $ac_func;
11429 rm -f conftest.$ac_objext conftest$ac_exeext
11430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11431 (eval $ac_link) 2>conftest.er1
11433 grep -v '^ *+' conftest.er1 >conftest.err
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -z "$ac_c_werror_flag"
11439 || test ! -s conftest.err'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; } &&
11445 { ac_try='test -s conftest$ac_exeext'
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; }; then
11451 eval "$as_ac_var=yes"
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11456 eval "$as_ac_var=no"
11458 rm -f conftest.err conftest.$ac_objext \
11459 conftest$ac_exeext conftest.$ac_ext
11461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11463 if test `eval echo '${'$as_ac_var'}'` = yes; then
11464 cat >>confdefs.h <<_ACEOF
11465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11471 echo "$as_me:$LINENO: checking for working mktime" >&5
11472 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11473 if test "${ac_cv_func_working_mktime+set}" = set; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11476 if test "$cross_compiling" = yes; then
11477 ac_cv_func_working_mktime=no
11479 cat >conftest.$ac_ext <<_ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 /* Test program from Paul Eggert and Tony Leneis. */
11486 #if TIME_WITH_SYS_TIME
11487 # include <sys/time.h>
11490 # if HAVE_SYS_TIME_H
11491 # include <sys/time.h>
11498 # include <stdlib.h>
11502 # include <unistd.h>
11506 # define alarm(X) /* empty */
11509 /* Work around redefinition to rpl_putenv by other config tests. */
11512 static time_t time_t_max;
11513 static time_t time_t_min;
11515 /* Values we'll use to set the TZ environment variable. */
11516 static char *tz_strings[] = {
11517 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11518 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11520 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11522 /* Fail if mktime fails to convert a date in the spring-forward gap.
11523 Based on a problem report from Andreas Jaeger. */
11525 spring_forward_gap ()
11527 /* glibc (up to about 1998-10-07) failed this test. */
11530 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11531 instead of "TZ=America/Vancouver" in order to detect the bug even
11532 on systems that don't support the Olson extension, or don't have the
11533 full zoneinfo tables installed. */
11534 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11543 if (mktime (&tm) == (time_t)-1)
11552 if ((lt = localtime (&now)) && mktime (lt) != now)
11560 mktime_test1 (now);
11561 mktime_test1 ((time_t) (time_t_max - now));
11562 mktime_test1 ((time_t) (time_t_min + now));
11568 /* Based on code from Ariel Faigon. */
11578 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11588 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11589 now = mktime (&tm);
11590 if (now != (time_t) -1)
11592 struct tm *lt = localtime (&now);
11594 && lt->tm_year == tm.tm_year
11595 && lt->tm_mon == tm.tm_mon
11596 && lt->tm_mday == tm.tm_mday
11597 && lt->tm_hour == tm.tm_hour
11598 && lt->tm_min == tm.tm_min
11599 && lt->tm_sec == tm.tm_sec
11600 && lt->tm_yday == tm.tm_yday
11601 && lt->tm_wday == tm.tm_wday
11602 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11603 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11614 /* This test makes some buggy mktime implementations loop.
11615 Give up after 60 seconds; a mktime slower than that
11616 isn't worth using anyway. */
11619 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11622 if ((time_t) -1 < 0)
11623 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
11625 delta = time_t_max / 997; /* a suitable prime number */
11626 for (i = 0; i < N_STRINGS; i++)
11629 putenv (tz_strings[i]);
11631 for (t = 0; t <= time_t_max - delta; t += delta)
11633 mktime_test ((time_t) 1);
11634 mktime_test ((time_t) (60 * 60));
11635 mktime_test ((time_t) (60 * 60 * 24));
11637 for (j = 1; 0 < j; j *= 2)
11639 bigtime_test (j - 1);
11642 spring_forward_gap ();
11646 rm -f conftest$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648 (eval $ac_link) 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 ac_cv_func_working_mktime=yes
11659 echo "$as_me: program exited with status $ac_status" >&5
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11663 ( exit $ac_status )
11664 ac_cv_func_working_mktime=no
11666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11669 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11670 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11671 if test $ac_cv_func_working_mktime = no; then
11673 "mktime.$ac_objext" | \
11674 *" mktime.$ac_objext" | \
11675 "mktime.$ac_objext "* | \
11676 *" mktime.$ac_objext "* ) ;;
11677 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
11682 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
11683 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
11684 if test "${gl_cv_c_restrict+set}" = set; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11687 gl_cv_c_restrict=no
11688 # Try the official restrict keyword, then gcc's __restrict, and
11689 # the less common variants.
11690 for ac_kw in restrict __restrict __restrict__ _Restrict; do
11691 cat >conftest.$ac_ext <<_ACEOF
11694 cat confdefs.h >>conftest.$ac_ext
11695 cat >>conftest.$ac_ext <<_ACEOF
11696 /* end confdefs.h. */
11699 rm -f conftest.$ac_objext
11700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11701 (eval $ac_compile) 2>conftest.er1
11703 grep -v '^ *+' conftest.er1 >conftest.err
11705 cat conftest.err >&5
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } &&
11708 { ac_try='test -z "$ac_c_werror_flag"
11709 || test ! -s conftest.err'
11710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711 (eval $ac_try) 2>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; } &&
11715 { ac_try='test -s conftest.$ac_objext'
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; }; then
11721 gl_cv_c_restrict=$ac_kw; break
11723 echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11731 echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
11732 echo "${ECHO_T}$gl_cv_c_restrict" >&6
11733 case $gl_cv_c_restrict in
11736 cat >>confdefs.h <<\_ACEOF
11740 *) cat >>confdefs.h <<_ACEOF
11741 #define restrict $gl_cv_c_restrict
11765 echo "$as_me:$LINENO: checking for inttypes.h" >&5
11766 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
11767 if test "${gt_cv_header_inttypes_h+set}" = set; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 cat >conftest.$ac_ext <<_ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 #include <sys/types.h>
11778 #include <inttypes.h>
11787 rm -f conftest.$ac_objext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11791 grep -v '^ *+' conftest.er1 >conftest.err
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag"
11797 || test ! -s conftest.err'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 gt_cv_header_inttypes_h=yes
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 gt_cv_header_inttypes_h=no
11816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11819 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
11820 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
11821 if test $gt_cv_header_inttypes_h = yes; then
11823 cat >>confdefs.h <<_ACEOF
11824 #define HAVE_INTTYPES_H 1
11830 for ac_func in strftime
11832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11833 echo "$as_me:$LINENO: checking for $ac_func" >&5
11834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11835 if eval "test \"\${$as_ac_var+set}\" = set"; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11838 cat >conftest.$ac_ext <<_ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h. */
11844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11846 #define $ac_func innocuous_$ac_func
11848 /* System header to define __stub macros and hopefully few prototypes,
11849 which can conflict with char $ac_func (); below.
11850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11851 <limits.h> exists even on freestanding compilers. */
11854 # include <limits.h>
11856 # include <assert.h>
11861 /* Override any gcc2 internal prototype to avoid an error. */
11866 /* We use char because int might match the return type of a gcc2
11867 builtin and then its argument prototype would still apply. */
11869 /* The GNU C library defines this for functions which it implements
11870 to always fail with ENOSYS. Some functions are actually named
11871 something starting with __ and the normal name is an alias. */
11872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11875 char (*f) () = $ac_func;
11884 return f != $ac_func;
11889 rm -f conftest.$ac_objext conftest$ac_exeext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11891 (eval $ac_link) 2>conftest.er1
11893 grep -v '^ *+' conftest.er1 >conftest.err
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } &&
11898 { ac_try='test -z "$ac_c_werror_flag"
11899 || test ! -s conftest.err'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; } &&
11905 { ac_try='test -s conftest$ac_exeext'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 eval "$as_ac_var=yes"
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 eval "$as_ac_var=no"
11918 rm -f conftest.err conftest.$ac_objext \
11919 conftest$ac_exeext conftest.$ac_ext
11921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11923 if test `eval echo '${'$as_ac_var'}'` = yes; then
11924 cat >>confdefs.h <<_ACEOF
11925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11929 # strftime is in -lintl on SCO UNIX.
11930 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11931 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
11932 if test "${ac_cv_lib_intl_strftime+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 ac_check_lib_save_LIBS=$LIBS
11936 LIBS="-lintl $LIBS"
11937 cat >conftest.$ac_ext <<_ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h. */
11944 /* Override any gcc2 internal prototype to avoid an error. */
11948 /* We use char because int might match the return type of a gcc2
11949 builtin and then its argument prototype would still apply. */
11959 rm -f conftest.$ac_objext conftest$ac_exeext
11960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11961 (eval $ac_link) 2>conftest.er1
11963 grep -v '^ *+' conftest.er1 >conftest.err
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_c_werror_flag"
11969 || test ! -s conftest.err'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try='test -s conftest$ac_exeext'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 ac_cv_lib_intl_strftime=yes
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ac_cv_lib_intl_strftime=no
11988 rm -f conftest.err conftest.$ac_objext \
11989 conftest$ac_exeext conftest.$ac_ext
11990 LIBS=$ac_check_lib_save_LIBS
11992 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11993 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
11994 if test $ac_cv_lib_intl_strftime = yes; then
11995 cat >>confdefs.h <<\_ACEOF
11996 #define HAVE_STRFTIME 1
11999 LIBS="-lintl $LIBS"
12007 echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
12008 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
12009 if test "${gl_cv_func_tzset_clobber+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 if test "$cross_compiling" = yes; then
12014 gl_cv_func_tzset_clobber=yes
12016 cat >conftest.$ac_ext <<_ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12023 #if TIME_WITH_SYS_TIME
12024 # include <sys/time.h>
12027 # if HAVE_SYS_TIME_H
12028 # include <sys/time.h>
12033 #include <stdlib.h>
12038 time_t t1 = 853958121;
12040 putenv ("TZ=GMT0");
12041 p = localtime (&t1);
12043 putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
12045 exit (p->tm_year != s.tm_year
12046 || p->tm_mon != s.tm_mon
12047 || p->tm_mday != s.tm_mday
12048 || p->tm_hour != s.tm_hour
12049 || p->tm_min != s.tm_min
12050 || p->tm_sec != s.tm_sec);
12054 rm -f conftest$ac_exeext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056 (eval $ac_link) 2>&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12061 (eval $ac_try) 2>&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); }; }; then
12065 gl_cv_func_tzset_clobber=no
12067 echo "$as_me: program exited with status $ac_status" >&5
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12071 ( exit $ac_status )
12072 gl_cv_func_tzset_clobber=yes
12074 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12077 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
12078 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
12081 cat >>confdefs.h <<\_ACEOF
12082 #define HAVE_RUN_TZSET_TEST 1
12086 if test $gl_cv_func_tzset_clobber = yes; then
12089 "gettimeofday.$ac_objext" | \
12090 *" gettimeofday.$ac_objext" | \
12091 "gettimeofday.$ac_objext "* | \
12092 *" gettimeofday.$ac_objext "* ) ;;
12093 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
12097 cat >>confdefs.h <<\_ACEOF
12098 #define gmtime rpl_gmtime
12102 cat >>confdefs.h <<\_ACEOF
12103 #define localtime rpl_localtime
12109 cat >>confdefs.h <<\_ACEOF
12110 #define tzset rpl_tzset
12114 cat >>confdefs.h <<\_ACEOF
12115 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
12139 # strftime.c uses the underyling system strftime if it exists.
12142 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
12178 cat >>confdefs.h <<\_ACEOF
12179 #define my_strftime nstrftime
12184 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
12185 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
12186 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 cat >conftest.$ac_ext <<_ACEOF
12192 cat confdefs.h >>conftest.$ac_ext
12193 cat >>conftest.$ac_ext <<_ACEOF
12194 /* end confdefs.h. */
12195 $ac_includes_default
12199 #ifndef clearerr_unlocked
12200 char *p = (char *) clearerr_unlocked;
12207 rm -f conftest.$ac_objext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12209 (eval $ac_compile) 2>conftest.er1
12211 grep -v '^ *+' conftest.er1 >conftest.err
12213 cat conftest.err >&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } &&
12216 { ac_try='test -z "$ac_c_werror_flag"
12217 || test ! -s conftest.err'
12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; } &&
12223 { ac_try='test -s conftest.$ac_objext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_cv_have_decl_clearerr_unlocked=yes
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 ac_cv_have_decl_clearerr_unlocked=no
12236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12238 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
12239 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
12240 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
12242 cat >>confdefs.h <<_ACEOF
12243 #define HAVE_DECL_CLEARERR_UNLOCKED 1
12248 cat >>confdefs.h <<_ACEOF
12249 #define HAVE_DECL_CLEARERR_UNLOCKED 0
12258 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12259 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
12260 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 cat >conftest.$ac_ext <<_ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12269 $ac_includes_default
12273 #ifndef feof_unlocked
12274 char *p = (char *) feof_unlocked;
12281 rm -f conftest.$ac_objext
12282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12283 (eval $ac_compile) 2>conftest.er1
12285 grep -v '^ *+' conftest.er1 >conftest.err
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try='test -z "$ac_c_werror_flag"
12291 || test ! -s conftest.err'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try='test -s conftest.$ac_objext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 ac_cv_have_decl_feof_unlocked=yes
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12308 ac_cv_have_decl_feof_unlocked=no
12310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12312 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12313 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
12314 if test $ac_cv_have_decl_feof_unlocked = yes; then
12316 cat >>confdefs.h <<_ACEOF
12317 #define HAVE_DECL_FEOF_UNLOCKED 1
12322 cat >>confdefs.h <<_ACEOF
12323 #define HAVE_DECL_FEOF_UNLOCKED 0
12332 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
12333 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
12334 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 cat >conftest.$ac_ext <<_ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343 $ac_includes_default
12347 #ifndef ferror_unlocked
12348 char *p = (char *) ferror_unlocked;
12355 rm -f conftest.$ac_objext
12356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12357 (eval $ac_compile) 2>conftest.er1
12359 grep -v '^ *+' conftest.er1 >conftest.err
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -z "$ac_c_werror_flag"
12365 || test ! -s conftest.err'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; } &&
12371 { ac_try='test -s conftest.$ac_objext'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; }; then
12377 ac_cv_have_decl_ferror_unlocked=yes
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 ac_cv_have_decl_ferror_unlocked=no
12384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12386 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
12387 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
12388 if test $ac_cv_have_decl_ferror_unlocked = yes; then
12390 cat >>confdefs.h <<_ACEOF
12391 #define HAVE_DECL_FERROR_UNLOCKED 1
12396 cat >>confdefs.h <<_ACEOF
12397 #define HAVE_DECL_FERROR_UNLOCKED 0
12406 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12407 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
12408 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 cat >conftest.$ac_ext <<_ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 $ac_includes_default
12421 #ifndef fgets_unlocked
12422 char *p = (char *) fgets_unlocked;
12429 rm -f conftest.$ac_objext
12430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12431 (eval $ac_compile) 2>conftest.er1
12433 grep -v '^ *+' conftest.er1 >conftest.err
12435 cat conftest.err >&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } &&
12438 { ac_try='test -z "$ac_c_werror_flag"
12439 || test ! -s conftest.err'
12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; } &&
12445 { ac_try='test -s conftest.$ac_objext'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
12451 ac_cv_have_decl_fgets_unlocked=yes
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12456 ac_cv_have_decl_fgets_unlocked=no
12458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12460 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12461 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
12462 if test $ac_cv_have_decl_fgets_unlocked = yes; then
12464 cat >>confdefs.h <<_ACEOF
12465 #define HAVE_DECL_FGETS_UNLOCKED 1
12470 cat >>confdefs.h <<_ACEOF
12471 #define HAVE_DECL_FGETS_UNLOCKED 0
12480 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
12481 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
12482 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 cat >conftest.$ac_ext <<_ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12491 $ac_includes_default
12495 #ifndef fputc_unlocked
12496 char *p = (char *) fputc_unlocked;
12503 rm -f conftest.$ac_objext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505 (eval $ac_compile) 2>conftest.er1
12507 grep -v '^ *+' conftest.er1 >conftest.err
12509 cat conftest.err >&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } &&
12512 { ac_try='test -z "$ac_c_werror_flag"
12513 || test ! -s conftest.err'
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; } &&
12519 { ac_try='test -s conftest.$ac_objext'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 ac_cv_have_decl_fputc_unlocked=yes
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 ac_cv_have_decl_fputc_unlocked=no
12532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12534 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
12535 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
12536 if test $ac_cv_have_decl_fputc_unlocked = yes; then
12538 cat >>confdefs.h <<_ACEOF
12539 #define HAVE_DECL_FPUTC_UNLOCKED 1
12544 cat >>confdefs.h <<_ACEOF
12545 #define HAVE_DECL_FPUTC_UNLOCKED 0
12554 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
12555 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
12556 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 cat >conftest.$ac_ext <<_ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12565 $ac_includes_default
12569 #ifndef fread_unlocked
12570 char *p = (char *) fread_unlocked;
12577 rm -f conftest.$ac_objext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12579 (eval $ac_compile) 2>conftest.er1
12581 grep -v '^ *+' conftest.er1 >conftest.err
12583 cat conftest.err >&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } &&
12586 { ac_try='test -z "$ac_c_werror_flag"
12587 || test ! -s conftest.err'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } &&
12593 { ac_try='test -s conftest.$ac_objext'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12599 ac_cv_have_decl_fread_unlocked=yes
12601 echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12604 ac_cv_have_decl_fread_unlocked=no
12606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12608 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
12609 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
12610 if test $ac_cv_have_decl_fread_unlocked = yes; then
12612 cat >>confdefs.h <<_ACEOF
12613 #define HAVE_DECL_FREAD_UNLOCKED 1
12618 cat >>confdefs.h <<_ACEOF
12619 #define HAVE_DECL_FREAD_UNLOCKED 0
12628 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
12629 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
12630 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 cat >conftest.$ac_ext <<_ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 $ac_includes_default
12643 #ifndef fwrite_unlocked
12644 char *p = (char *) fwrite_unlocked;
12651 rm -f conftest.$ac_objext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12653 (eval $ac_compile) 2>conftest.er1
12655 grep -v '^ *+' conftest.er1 >conftest.err
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } &&
12660 { ac_try='test -z "$ac_c_werror_flag"
12661 || test ! -s conftest.err'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; } &&
12667 { ac_try='test -s conftest.$ac_objext'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12673 ac_cv_have_decl_fwrite_unlocked=yes
12675 echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12678 ac_cv_have_decl_fwrite_unlocked=no
12680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12682 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
12683 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
12684 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
12686 cat >>confdefs.h <<_ACEOF
12687 #define HAVE_DECL_FWRITE_UNLOCKED 1
12692 cat >>confdefs.h <<_ACEOF
12693 #define HAVE_DECL_FWRITE_UNLOCKED 0
12702 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12703 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
12704 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12707 cat >conftest.$ac_ext <<_ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12713 $ac_includes_default
12717 #ifndef getc_unlocked
12718 char *p = (char *) getc_unlocked;
12725 rm -f conftest.$ac_objext
12726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12727 (eval $ac_compile) 2>conftest.er1
12729 grep -v '^ *+' conftest.er1 >conftest.err
12731 cat conftest.err >&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } &&
12734 { ac_try='test -z "$ac_c_werror_flag"
12735 || test ! -s conftest.err'
12736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); }; } &&
12741 { ac_try='test -s conftest.$ac_objext'
12742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743 (eval $ac_try) 2>&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; }; then
12747 ac_cv_have_decl_getc_unlocked=yes
12749 echo "$as_me: failed program was:" >&5
12750 sed 's/^/| /' conftest.$ac_ext >&5
12752 ac_cv_have_decl_getc_unlocked=no
12754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12756 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12757 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
12758 if test $ac_cv_have_decl_getc_unlocked = yes; then
12760 cat >>confdefs.h <<_ACEOF
12761 #define HAVE_DECL_GETC_UNLOCKED 1
12766 cat >>confdefs.h <<_ACEOF
12767 #define HAVE_DECL_GETC_UNLOCKED 0
12776 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
12777 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
12778 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 cat >conftest.$ac_ext <<_ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12787 $ac_includes_default
12791 #ifndef getchar_unlocked
12792 char *p = (char *) getchar_unlocked;
12799 rm -f conftest.$ac_objext
12800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801 (eval $ac_compile) 2>conftest.er1
12803 grep -v '^ *+' conftest.er1 >conftest.err
12805 cat conftest.err >&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
12808 { ac_try='test -z "$ac_c_werror_flag"
12809 || test ! -s conftest.err'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; } &&
12815 { ac_try='test -s conftest.$ac_objext'
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; }; then
12821 ac_cv_have_decl_getchar_unlocked=yes
12823 echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.$ac_ext >&5
12826 ac_cv_have_decl_getchar_unlocked=no
12828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12830 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
12831 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
12832 if test $ac_cv_have_decl_getchar_unlocked = yes; then
12834 cat >>confdefs.h <<_ACEOF
12835 #define HAVE_DECL_GETCHAR_UNLOCKED 1
12840 cat >>confdefs.h <<_ACEOF
12841 #define HAVE_DECL_GETCHAR_UNLOCKED 0
12850 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
12851 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
12852 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 cat >conftest.$ac_ext <<_ACEOF
12858 cat confdefs.h >>conftest.$ac_ext
12859 cat >>conftest.$ac_ext <<_ACEOF
12860 /* end confdefs.h. */
12861 $ac_includes_default
12865 #ifndef putchar_unlocked
12866 char *p = (char *) putchar_unlocked;
12873 rm -f conftest.$ac_objext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12875 (eval $ac_compile) 2>conftest.er1
12877 grep -v '^ *+' conftest.er1 >conftest.err
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -z "$ac_c_werror_flag"
12883 || test ! -s conftest.err'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest.$ac_objext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 ac_cv_have_decl_putchar_unlocked=yes
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12900 ac_cv_have_decl_putchar_unlocked=no
12902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12904 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
12905 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
12906 if test $ac_cv_have_decl_putchar_unlocked = yes; then
12908 cat >>confdefs.h <<_ACEOF
12909 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
12914 cat >>confdefs.h <<_ACEOF
12915 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
12925 echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
12926 echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6
12927 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
12928 echo $ECHO_N "(cached) $ECHO_C" >&6
12931 cat >conftest.$ac_ext <<_ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12945 $EGREP "yes" >/dev/null 2>&1; then
12950 if test -n "$have_eoverflow"; then
12951 ac_cv_decl_EOVERFLOW=yes
12953 cat >conftest.$ac_ext <<_ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12960 #define _XOPEN_SOURCE_EXTENDED 1
12967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12968 $EGREP "yes" >/dev/null 2>&1; then
12973 if test -n "$have_eoverflow"; then
12974 if test "$cross_compiling" = yes; then
12975 # Depending upon the size, compute the lo and hi bounds.
12976 cat >conftest.$ac_ext <<_ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h. */
12983 #define _XOPEN_SOURCE_EXTENDED 1
12985 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12987 #include <stdlib.h>
12992 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
12999 rm -f conftest.$ac_objext
13000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13001 (eval $ac_compile) 2>conftest.er1
13003 grep -v '^ *+' conftest.er1 >conftest.err
13005 cat conftest.err >&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } &&
13008 { ac_try='test -z "$ac_c_werror_flag"
13009 || test ! -s conftest.err'
13010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011 (eval $ac_try) 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; } &&
13015 { ac_try='test -s conftest.$ac_objext'
13016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13017 (eval $ac_try) 2>&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; }; then
13023 cat >conftest.$ac_ext <<_ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h. */
13030 #define _XOPEN_SOURCE_EXTENDED 1
13032 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13034 #include <stdlib.h>
13039 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13046 rm -f conftest.$ac_objext
13047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048 (eval $ac_compile) 2>conftest.er1
13050 grep -v '^ *+' conftest.er1 >conftest.err
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try='test -z "$ac_c_werror_flag"
13056 || test ! -s conftest.err'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; } &&
13062 { ac_try='test -s conftest.$ac_objext'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; }; then
13068 ac_hi=$ac_mid; break
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13073 ac_lo=`expr $ac_mid + 1`
13074 if test $ac_lo -le $ac_mid; then
13078 ac_mid=`expr 2 '*' $ac_mid + 1`
13080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13083 echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13086 cat >conftest.$ac_ext <<_ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13093 #define _XOPEN_SOURCE_EXTENDED 1
13095 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13097 #include <stdlib.h>
13102 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
13109 rm -f conftest.$ac_objext
13110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13111 (eval $ac_compile) 2>conftest.er1
13113 grep -v '^ *+' conftest.er1 >conftest.err
13115 cat conftest.err >&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } &&
13118 { ac_try='test -z "$ac_c_werror_flag"
13119 || test ! -s conftest.err'
13120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121 (eval $ac_try) 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; } &&
13125 { ac_try='test -s conftest.$ac_objext'
13126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127 (eval $ac_try) 2>&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; }; then
13133 cat >conftest.$ac_ext <<_ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13140 #define _XOPEN_SOURCE_EXTENDED 1
13142 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13144 #include <stdlib.h>
13149 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
13156 rm -f conftest.$ac_objext
13157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13158 (eval $ac_compile) 2>conftest.er1
13160 grep -v '^ *+' conftest.er1 >conftest.err
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } &&
13165 { ac_try='test -z "$ac_c_werror_flag"
13166 || test ! -s conftest.err'
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; } &&
13172 { ac_try='test -s conftest.$ac_objext'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; }; then
13178 ac_lo=$ac_mid; break
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13183 ac_hi=`expr '(' $ac_mid ')' - 1`
13184 if test $ac_mid -le $ac_hi; then
13188 ac_mid=`expr 2 '*' $ac_mid`
13190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13193 echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13201 # Binary search between lo and hi bounds.
13202 while test "x$ac_lo" != "x$ac_hi"; do
13203 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13204 cat >conftest.$ac_ext <<_ACEOF
13207 cat confdefs.h >>conftest.$ac_ext
13208 cat >>conftest.$ac_ext <<_ACEOF
13209 /* end confdefs.h. */
13211 #define _XOPEN_SOURCE_EXTENDED 1
13213 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13215 #include <stdlib.h>
13220 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13227 rm -f conftest.$ac_objext
13228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13229 (eval $ac_compile) 2>conftest.er1
13231 grep -v '^ *+' conftest.er1 >conftest.err
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } &&
13236 { ac_try='test -z "$ac_c_werror_flag"
13237 || test ! -s conftest.err'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; } &&
13243 { ac_try='test -s conftest.$ac_objext'
13244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245 (eval $ac_try) 2>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13254 ac_lo=`expr '(' $ac_mid ')' + 1`
13256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13259 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
13263 if test "$cross_compiling" = yes; then
13264 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13265 See \`config.log' for more details." >&5
13266 echo "$as_me: error: cannot run test program while cross compiling
13267 See \`config.log' for more details." >&2;}
13268 { (exit 1); exit 1; }; }
13270 cat >conftest.$ac_ext <<_ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13277 #define _XOPEN_SOURCE_EXTENDED 1
13279 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13281 #include <stdlib.h>
13283 long longval () { return EOVERFLOW; }
13284 unsigned long ulongval () { return EOVERFLOW; }
13286 #include <stdlib.h>
13291 FILE *f = fopen ("conftest.val", "w");
13294 if ((EOVERFLOW) < 0)
13296 long i = longval ();
13297 if (i != (EOVERFLOW))
13299 fprintf (f, "%ld\n", i);
13303 unsigned long i = ulongval ();
13304 if (i != (EOVERFLOW))
13306 fprintf (f, "%lu\n", i);
13308 exit (ferror (f) || fclose (f) != 0);
13314 rm -f conftest$ac_exeext
13315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13316 (eval $ac_link) 2>&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13325 ac_cv_decl_EOVERFLOW=`cat conftest.val`
13327 echo "$as_me: program exited with status $ac_status" >&5
13328 echo "$as_me: failed program was:" >&5
13329 sed 's/^/| /' conftest.$ac_ext >&5
13332 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13337 ac_cv_decl_EOVERFLOW=E2BIG
13342 echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
13343 echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6
13344 if test "$ac_cv_decl_EOVERFLOW" != yes; then
13346 cat >>confdefs.h <<_ACEOF
13347 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
13350 EOVERFLOW="$ac_cv_decl_EOVERFLOW"
13355 echo "$as_me:$LINENO: checking for signed" >&5
13356 echo $ECHO_N "checking for signed... $ECHO_C" >&6
13357 if test "${bh_cv_c_signed+set}" = set; then
13358 echo $ECHO_N "(cached) $ECHO_C" >&6
13360 cat >conftest.$ac_ext <<_ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13375 rm -f conftest.$ac_objext
13376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13377 (eval $ac_compile) 2>conftest.er1
13379 grep -v '^ *+' conftest.er1 >conftest.err
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } &&
13384 { ac_try='test -z "$ac_c_werror_flag"
13385 || test ! -s conftest.err'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; } &&
13391 { ac_try='test -s conftest.$ac_objext'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13399 echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13406 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
13407 echo "${ECHO_T}$bh_cv_c_signed" >&6
13408 if test $bh_cv_c_signed = no; then
13410 cat >>confdefs.h <<\_ACEOF
13417 echo "$as_me:$LINENO: checking for wchar_t" >&5
13418 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
13419 if test "${gt_cv_c_wchar_t+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 cat >conftest.$ac_ext <<_ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h. */
13428 #include <stddef.h>
13429 wchar_t foo = (wchar_t)'\0';
13438 rm -f conftest.$ac_objext
13439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13440 (eval $ac_compile) 2>conftest.er1
13442 grep -v '^ *+' conftest.er1 >conftest.err
13444 cat conftest.err >&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
13447 { ac_try='test -z "$ac_c_werror_flag"
13448 || test ! -s conftest.err'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; } &&
13454 { ac_try='test -s conftest.$ac_objext'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 gt_cv_c_wchar_t=yes
13462 echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13469 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
13470 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
13471 if test $gt_cv_c_wchar_t = yes; then
13473 cat >>confdefs.h <<\_ACEOF
13474 #define HAVE_WCHAR_T 1
13480 echo "$as_me:$LINENO: checking for wint_t" >&5
13481 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
13482 if test "${gt_cv_c_wint_t+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 cat >conftest.$ac_ext <<_ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13492 wint_t foo = (wchar_t)'\0';
13501 rm -f conftest.$ac_objext
13502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13503 (eval $ac_compile) 2>conftest.er1
13505 grep -v '^ *+' conftest.er1 >conftest.err
13507 cat conftest.err >&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
13510 { ac_try='test -z "$ac_c_werror_flag"
13511 || test ! -s conftest.err'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try='test -s conftest.$ac_objext'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13525 echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13532 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
13533 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
13534 if test $gt_cv_c_wint_t = yes; then
13536 cat >>confdefs.h <<\_ACEOF
13537 #define HAVE_WINT_T 1
13542 echo "$as_me:$LINENO: checking for size_t" >&5
13543 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13544 if test "${ac_cv_type_size_t+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13547 cat >conftest.$ac_ext <<_ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13553 $ac_includes_default
13559 if (sizeof (size_t))
13565 rm -f conftest.$ac_objext
13566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13567 (eval $ac_compile) 2>conftest.er1
13569 grep -v '^ *+' conftest.er1 >conftest.err
13571 cat conftest.err >&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } &&
13574 { ac_try='test -z "$ac_c_werror_flag"
13575 || test ! -s conftest.err'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest.$ac_objext'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 ac_cv_type_size_t=yes
13589 echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13592 ac_cv_type_size_t=no
13594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13596 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13597 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13598 if test $ac_cv_type_size_t = yes; then
13602 cat >>confdefs.h <<_ACEOF
13603 #define size_t unsigned
13611 echo "$as_me:$LINENO: checking for intmax_t" >&5
13612 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
13613 if test "${gt_cv_c_intmax_t+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 cat >conftest.$ac_ext <<_ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h. */
13623 #include <stddef.h>
13624 #include <stdlib.h>
13625 #if HAVE_STDINT_H_WITH_UINTMAX
13626 #include <stdint.h>
13628 #if HAVE_INTTYPES_H_WITH_UINTMAX
13629 #include <inttypes.h>
13640 rm -f conftest.$ac_objext
13641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13642 (eval $ac_compile) 2>conftest.er1
13644 grep -v '^ *+' conftest.er1 >conftest.err
13646 cat conftest.err >&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); } &&
13649 { ac_try='test -z "$ac_c_werror_flag"
13650 || test ! -s conftest.err'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; } &&
13656 { ac_try='test -s conftest.$ac_objext'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }; then
13662 gt_cv_c_intmax_t=yes
13664 echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13667 gt_cv_c_intmax_t=no
13669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13671 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
13672 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
13673 if test $gt_cv_c_intmax_t = yes; then
13675 cat >>confdefs.h <<\_ACEOF
13676 #define HAVE_INTMAX_T 1
13681 test $ac_cv_type_long_long = yes \
13682 && ac_type='long long' \
13685 cat >>confdefs.h <<_ACEOF
13686 #define intmax_t $ac_type
13691 echo "$as_me:$LINENO: checking for inline" >&5
13692 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13693 if test "${ac_cv_c_inline+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13697 for ac_kw in inline __inline__ __inline; do
13698 cat >conftest.$ac_ext <<_ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h. */
13704 #ifndef __cplusplus
13706 static $ac_kw foo_t static_foo () {return 0; }
13707 $ac_kw foo_t foo () {return 0; }
13711 rm -f conftest.$ac_objext
13712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13713 (eval $ac_compile) 2>conftest.er1
13715 grep -v '^ *+' conftest.er1 >conftest.err
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
13720 { ac_try='test -z "$ac_c_werror_flag"
13721 || test ! -s conftest.err'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; } &&
13727 { ac_try='test -s conftest.$ac_objext'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; }; then
13733 ac_cv_c_inline=$ac_kw; break
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13743 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13744 echo "${ECHO_T}$ac_cv_c_inline" >&6
13747 case $ac_cv_c_inline in
13750 case $ac_cv_c_inline in
13752 *) ac_val=$ac_cv_c_inline;;
13754 cat >>confdefs.h <<_ACEOF
13755 #ifndef __cplusplus
13756 #define inline $ac_val
13764 for ac_header in stdint.h
13766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13768 echo "$as_me:$LINENO: checking for $ac_header" >&5
13769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13776 # Is the header compilable?
13777 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13779 cat >conftest.$ac_ext <<_ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13785 $ac_includes_default
13786 #include <$ac_header>
13788 rm -f conftest.$ac_objext
13789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13790 (eval $ac_compile) 2>conftest.er1
13792 grep -v '^ *+' conftest.er1 >conftest.err
13794 cat conftest.err >&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } &&
13797 { ac_try='test -z "$ac_c_werror_flag"
13798 || test ! -s conftest.err'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; } &&
13804 { ac_try='test -s conftest.$ac_objext'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13810 ac_header_compiler=yes
13812 echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13815 ac_header_compiler=no
13817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13819 echo "${ECHO_T}$ac_header_compiler" >&6
13821 # Is the header present?
13822 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13824 cat >conftest.$ac_ext <<_ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13830 #include <$ac_header>
13832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13835 grep -v '^ *+' conftest.er1 >conftest.err
13837 cat conftest.err >&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } >/dev/null; then
13840 if test -s conftest.err; then
13841 ac_cpp_err=$ac_c_preproc_warn_flag
13842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13849 if test -z "$ac_cpp_err"; then
13850 ac_header_preproc=yes
13852 echo "$as_me: failed program was:" >&5
13853 sed 's/^/| /' conftest.$ac_ext >&5
13855 ac_header_preproc=no
13857 rm -f conftest.err conftest.$ac_ext
13858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13859 echo "${ECHO_T}$ac_header_preproc" >&6
13861 # So? What about this header?
13862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13868 ac_header_preproc=yes
13871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13885 ## ------------------------------ ##
13886 ## Report this to bug-cvs@gnu.org ##
13887 ## ------------------------------ ##
13890 sed "s/^/$as_me: WARNING: /" >&2
13893 echo "$as_me:$LINENO: checking for $ac_header" >&5
13894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 eval "$as_ac_Header=\$ac_header_preproc"
13900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13905 cat >>confdefs.h <<_ACEOF
13906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13913 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
13914 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
13916 cat >conftest.$ac_ext <<_ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13923 #include <limits.h>
13925 #include <stdint.h>
13932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13933 $EGREP "Found it" >/dev/null 2>&1; then
13938 if test -z "$result"; then
13939 if test "$cross_compiling" = yes; then
13940 # Depending upon the size, compute the lo and hi bounds.
13941 cat >conftest.$ac_ext <<_ACEOF
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h. */
13947 #include <stddef.h>
13951 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
13958 rm -f conftest.$ac_objext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960 (eval $ac_compile) 2>conftest.er1
13962 grep -v '^ *+' conftest.er1 >conftest.err
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } &&
13967 { ac_try='test -z "$ac_c_werror_flag"
13968 || test ! -s conftest.err'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; } &&
13974 { ac_try='test -s conftest.$ac_objext'
13975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; }; then
13982 cat >conftest.$ac_ext <<_ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 #include <stddef.h>
13992 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
13999 rm -f conftest.$ac_objext
14000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14001 (eval $ac_compile) 2>conftest.er1
14003 grep -v '^ *+' conftest.er1 >conftest.err
14005 cat conftest.err >&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } &&
14008 { ac_try='test -z "$ac_c_werror_flag"
14009 || test ! -s conftest.err'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; } &&
14015 { ac_try='test -s conftest.$ac_objext'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; }; then
14021 ac_hi=$ac_mid; break
14023 echo "$as_me: failed program was:" >&5
14024 sed 's/^/| /' conftest.$ac_ext >&5
14026 ac_lo=`expr $ac_mid + 1`
14027 if test $ac_lo -le $ac_mid; then
14031 ac_mid=`expr 2 '*' $ac_mid + 1`
14033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14036 echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14039 cat >conftest.$ac_ext <<_ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14045 #include <stddef.h>
14049 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
14056 rm -f conftest.$ac_objext
14057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14058 (eval $ac_compile) 2>conftest.er1
14060 grep -v '^ *+' conftest.er1 >conftest.err
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
14065 { ac_try='test -z "$ac_c_werror_flag"
14066 || test ! -s conftest.err'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; } &&
14072 { ac_try='test -s conftest.$ac_objext'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14080 cat >conftest.$ac_ext <<_ACEOF
14083 cat confdefs.h >>conftest.$ac_ext
14084 cat >>conftest.$ac_ext <<_ACEOF
14085 /* end confdefs.h. */
14086 #include <stddef.h>
14090 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
14097 rm -f conftest.$ac_objext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14099 (eval $ac_compile) 2>conftest.er1
14101 grep -v '^ *+' conftest.er1 >conftest.err
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -z "$ac_c_werror_flag"
14107 || test ! -s conftest.err'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest.$ac_objext'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 ac_lo=$ac_mid; break
14121 echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14124 ac_hi=`expr '(' $ac_mid ')' - 1`
14125 if test $ac_mid -le $ac_hi; then
14129 ac_mid=`expr 2 '*' $ac_mid`
14131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14134 echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14142 # Binary search between lo and hi bounds.
14143 while test "x$ac_lo" != "x$ac_hi"; do
14144 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14145 cat >conftest.$ac_ext <<_ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 #include <stddef.h>
14155 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
14162 rm -f conftest.$ac_objext
14163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14164 (eval $ac_compile) 2>conftest.er1
14166 grep -v '^ *+' conftest.er1 >conftest.err
14168 cat conftest.err >&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } &&
14171 { ac_try='test -z "$ac_c_werror_flag"
14172 || test ! -s conftest.err'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; } &&
14178 { ac_try='test -s conftest.$ac_objext'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; }; then
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 ac_lo=`expr '(' $ac_mid ')' + 1`
14191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14194 ?*) res_hi=$ac_lo;;
14198 if test "$cross_compiling" = yes; then
14199 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14200 See \`config.log' for more details." >&5
14201 echo "$as_me: error: cannot run test program while cross compiling
14202 See \`config.log' for more details." >&2;}
14203 { (exit 1); exit 1; }; }
14205 cat >conftest.$ac_ext <<_ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h. */
14211 #include <stddef.h>
14212 long longval () { return ~(size_t)0 / 10; }
14213 unsigned long ulongval () { return ~(size_t)0 / 10; }
14215 #include <stdlib.h>
14220 FILE *f = fopen ("conftest.val", "w");
14223 if ((~(size_t)0 / 10) < 0)
14225 long i = longval ();
14226 if (i != (~(size_t)0 / 10))
14228 fprintf (f, "%ld\n", i);
14232 unsigned long i = ulongval ();
14233 if (i != (~(size_t)0 / 10))
14235 fprintf (f, "%lu\n", i);
14237 exit (ferror (f) || fclose (f) != 0);
14243 rm -f conftest$ac_exeext
14244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14245 (eval $ac_link) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; }; then
14254 res_hi=`cat conftest.val`
14256 echo "$as_me: program exited with status $ac_status" >&5
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ( exit $ac_status )
14263 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14267 if test "$cross_compiling" = yes; then
14268 # Depending upon the size, compute the lo and hi bounds.
14269 cat >conftest.$ac_ext <<_ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275 #include <stddef.h>
14279 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
14286 rm -f conftest.$ac_objext
14287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14288 (eval $ac_compile) 2>conftest.er1
14290 grep -v '^ *+' conftest.er1 >conftest.err
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } &&
14295 { ac_try='test -z "$ac_c_werror_flag"
14296 || test ! -s conftest.err'
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; } &&
14302 { ac_try='test -s conftest.$ac_objext'
14303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304 (eval $ac_try) 2>&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); }; }; then
14310 cat >conftest.$ac_ext <<_ACEOF
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h. */
14316 #include <stddef.h>
14320 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
14327 rm -f conftest.$ac_objext
14328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14329 (eval $ac_compile) 2>conftest.er1
14331 grep -v '^ *+' conftest.er1 >conftest.err
14333 cat conftest.err >&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); } &&
14336 { ac_try='test -z "$ac_c_werror_flag"
14337 || test ! -s conftest.err'
14338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; } &&
14343 { ac_try='test -s conftest.$ac_objext'
14344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345 (eval $ac_try) 2>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); }; }; then
14349 ac_hi=$ac_mid; break
14351 echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14354 ac_lo=`expr $ac_mid + 1`
14355 if test $ac_lo -le $ac_mid; then
14359 ac_mid=`expr 2 '*' $ac_mid + 1`
14361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14364 echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14367 cat >conftest.$ac_ext <<_ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14373 #include <stddef.h>
14377 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
14384 rm -f conftest.$ac_objext
14385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14386 (eval $ac_compile) 2>conftest.er1
14388 grep -v '^ *+' conftest.er1 >conftest.err
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } &&
14393 { ac_try='test -z "$ac_c_werror_flag"
14394 || test ! -s conftest.err'
14395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; } &&
14400 { ac_try='test -s conftest.$ac_objext'
14401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402 (eval $ac_try) 2>&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; }; then
14408 cat >conftest.$ac_ext <<_ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414 #include <stddef.h>
14418 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
14425 rm -f conftest.$ac_objext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427 (eval $ac_compile) 2>conftest.er1
14429 grep -v '^ *+' conftest.er1 >conftest.err
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag"
14435 || test ! -s conftest.err'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest.$ac_objext'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
14447 ac_lo=$ac_mid; break
14449 echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14452 ac_hi=`expr '(' $ac_mid ')' - 1`
14453 if test $ac_mid -le $ac_hi; then
14457 ac_mid=`expr 2 '*' $ac_mid`
14459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14470 # Binary search between lo and hi bounds.
14471 while test "x$ac_lo" != "x$ac_hi"; do
14472 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14473 cat >conftest.$ac_ext <<_ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14479 #include <stddef.h>
14483 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
14490 rm -f conftest.$ac_objext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14492 (eval $ac_compile) 2>conftest.er1
14494 grep -v '^ *+' conftest.er1 >conftest.err
14496 cat conftest.err >&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } &&
14499 { ac_try='test -z "$ac_c_werror_flag"
14500 || test ! -s conftest.err'
14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; } &&
14506 { ac_try='test -s conftest.$ac_objext'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14514 echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14517 ac_lo=`expr '(' $ac_mid ')' + 1`
14519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14522 ?*) res_lo=$ac_lo;;
14526 if test "$cross_compiling" = yes; then
14527 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14528 See \`config.log' for more details." >&5
14529 echo "$as_me: error: cannot run test program while cross compiling
14530 See \`config.log' for more details." >&2;}
14531 { (exit 1); exit 1; }; }
14533 cat >conftest.$ac_ext <<_ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14539 #include <stddef.h>
14540 long longval () { return ~(size_t)0 % 10; }
14541 unsigned long ulongval () { return ~(size_t)0 % 10; }
14543 #include <stdlib.h>
14548 FILE *f = fopen ("conftest.val", "w");
14551 if ((~(size_t)0 % 10) < 0)
14553 long i = longval ();
14554 if (i != (~(size_t)0 % 10))
14556 fprintf (f, "%ld\n", i);
14560 unsigned long i = ulongval ();
14561 if (i != (~(size_t)0 % 10))
14563 fprintf (f, "%lu\n", i);
14565 exit (ferror (f) || fclose (f) != 0);
14571 rm -f conftest$ac_exeext
14572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14573 (eval $ac_link) 2>&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; }; then
14582 res_lo=`cat conftest.val`
14584 echo "$as_me: program exited with status $ac_status" >&5
14585 echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14588 ( exit $ac_status )
14591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14595 if test "$cross_compiling" = yes; then
14596 # Depending upon the size, compute the lo and hi bounds.
14597 cat >conftest.$ac_ext <<_ACEOF
14600 cat confdefs.h >>conftest.$ac_ext
14601 cat >>conftest.$ac_ext <<_ACEOF
14602 /* end confdefs.h. */
14603 #include <stddef.h>
14607 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
14614 rm -f conftest.$ac_objext
14615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14616 (eval $ac_compile) 2>conftest.er1
14618 grep -v '^ *+' conftest.er1 >conftest.err
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
14623 { ac_try='test -z "$ac_c_werror_flag"
14624 || test ! -s conftest.err'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; } &&
14630 { ac_try='test -s conftest.$ac_objext'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14638 cat >conftest.$ac_ext <<_ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h. */
14644 #include <stddef.h>
14648 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
14655 rm -f conftest.$ac_objext
14656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14657 (eval $ac_compile) 2>conftest.er1
14659 grep -v '^ *+' conftest.er1 >conftest.err
14661 cat conftest.err >&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); } &&
14664 { ac_try='test -z "$ac_c_werror_flag"
14665 || test ! -s conftest.err'
14666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; } &&
14671 { ac_try='test -s conftest.$ac_objext'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }; then
14677 ac_hi=$ac_mid; break
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 ac_lo=`expr $ac_mid + 1`
14683 if test $ac_lo -le $ac_mid; then
14687 ac_mid=`expr 2 '*' $ac_mid + 1`
14689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14692 echo "$as_me: failed program was:" >&5
14693 sed 's/^/| /' conftest.$ac_ext >&5
14695 cat >conftest.$ac_ext <<_ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h. */
14701 #include <stddef.h>
14705 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
14712 rm -f conftest.$ac_objext
14713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14714 (eval $ac_compile) 2>conftest.er1
14716 grep -v '^ *+' conftest.er1 >conftest.err
14718 cat conftest.err >&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } &&
14721 { ac_try='test -z "$ac_c_werror_flag"
14722 || test ! -s conftest.err'
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; } &&
14728 { ac_try='test -s conftest.$ac_objext'
14729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730 (eval $ac_try) 2>&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); }; }; then
14736 cat >conftest.$ac_ext <<_ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h. */
14742 #include <stddef.h>
14746 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
14753 rm -f conftest.$ac_objext
14754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14755 (eval $ac_compile) 2>conftest.er1
14757 grep -v '^ *+' conftest.er1 >conftest.err
14759 cat conftest.err >&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } &&
14762 { ac_try='test -z "$ac_c_werror_flag"
14763 || test ! -s conftest.err'
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; } &&
14769 { ac_try='test -s conftest.$ac_objext'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; }; then
14775 ac_lo=$ac_mid; break
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 ac_hi=`expr '(' $ac_mid ')' - 1`
14781 if test $ac_mid -le $ac_hi; then
14785 ac_mid=`expr 2 '*' $ac_mid`
14787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14798 # Binary search between lo and hi bounds.
14799 while test "x$ac_lo" != "x$ac_hi"; do
14800 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14801 cat >conftest.$ac_ext <<_ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14807 #include <stddef.h>
14811 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
14818 rm -f conftest.$ac_objext
14819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14820 (eval $ac_compile) 2>conftest.er1
14822 grep -v '^ *+' conftest.er1 >conftest.err
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } &&
14827 { ac_try='test -z "$ac_c_werror_flag"
14828 || test ! -s conftest.err'
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; } &&
14834 { ac_try='test -s conftest.$ac_objext'
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; }; then
14842 echo "$as_me: failed program was:" >&5
14843 sed 's/^/| /' conftest.$ac_ext >&5
14845 ac_lo=`expr '(' $ac_mid ')' + 1`
14847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14850 ?*) fits_in_uint=$ac_lo;;
14854 if test "$cross_compiling" = yes; then
14855 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14856 See \`config.log' for more details." >&5
14857 echo "$as_me: error: cannot run test program while cross compiling
14858 See \`config.log' for more details." >&2;}
14859 { (exit 1); exit 1; }; }
14861 cat >conftest.$ac_ext <<_ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14867 #include <stddef.h>
14868 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
14869 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
14871 #include <stdlib.h>
14876 FILE *f = fopen ("conftest.val", "w");
14879 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
14881 long i = longval ();
14882 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
14884 fprintf (f, "%ld\n", i);
14888 unsigned long i = ulongval ();
14889 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
14891 fprintf (f, "%lu\n", i);
14893 exit (ferror (f) || fclose (f) != 0);
14899 rm -f conftest$ac_exeext
14900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14901 (eval $ac_link) 2>&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906 (eval $ac_try) 2>&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; }; then
14910 fits_in_uint=`cat conftest.val`
14912 echo "$as_me: program exited with status $ac_status" >&5
14913 echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14916 ( exit $ac_status )
14919 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14923 if test "$fits_in_uint" = 1; then
14924 cat >conftest.$ac_ext <<_ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14930 #include <stddef.h>
14932 extern unsigned long foo;
14942 rm -f conftest.$ac_objext
14943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14944 (eval $ac_compile) 2>conftest.er1
14946 grep -v '^ *+' conftest.er1 >conftest.err
14948 cat conftest.err >&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); } &&
14951 { ac_try='test -z "$ac_c_werror_flag"
14952 || test ! -s conftest.err'
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; } &&
14958 { ac_try='test -s conftest.$ac_objext'
14959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960 (eval $ac_try) 2>&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; }; then
14966 echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14972 if test -z "$result"; then
14973 if test "$fits_in_uint" = 1; then
14974 result="$res_hi$res_lo"U
14976 result="$res_hi$res_lo"UL
14979 result='~(size_t)0'
14982 echo "$as_me:$LINENO: result: $result" >&5
14983 echo "${ECHO_T}$result" >&6
14984 if test "$result" != yes; then
14986 cat >>confdefs.h <<_ACEOF
14987 #define SIZE_MAX $result
14998 if test $ac_cv_func_alloca_works = no; then
15002 # Define an additional variable used in the Makefile substitution.
15003 if test $ac_cv_working_alloca_h = yes; then
15004 cat >conftest.$ac_ext <<_ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15011 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
15016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15017 $EGREP "Need own alloca" >/dev/null 2>&1; then
15019 cat >>confdefs.h <<\_ACEOF
15020 #define HAVE_ALLOCA 1
15035 cat >>confdefs.h <<\_ACEOF
15036 #define HAVE_ALLOCA_H 1
15045 if test $ac_cv_func_alloca_works = no; then
15049 # Define an additional variable used in the Makefile substitution.
15050 if test $ac_cv_working_alloca_h = yes; then
15051 cat >conftest.$ac_ext <<_ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15058 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
15063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15064 $EGREP "Need own alloca" >/dev/null 2>&1; then
15066 cat >>confdefs.h <<\_ACEOF
15067 #define HAVE_ALLOCA 1
15082 cat >>confdefs.h <<\_ACEOF
15083 #define HAVE_ALLOCA_H 1
15095 for ac_func in atexit
15097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15098 echo "$as_me:$LINENO: checking for $ac_func" >&5
15099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15100 if eval "test \"\${$as_ac_var+set}\" = set"; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15103 cat >conftest.$ac_ext <<_ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15111 #define $ac_func innocuous_$ac_func
15113 /* System header to define __stub macros and hopefully few prototypes,
15114 which can conflict with char $ac_func (); below.
15115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15116 <limits.h> exists even on freestanding compilers. */
15119 # include <limits.h>
15121 # include <assert.h>
15126 /* Override any gcc2 internal prototype to avoid an error. */
15131 /* We use char because int might match the return type of a gcc2
15132 builtin and then its argument prototype would still apply. */
15134 /* The GNU C library defines this for functions which it implements
15135 to always fail with ENOSYS. Some functions are actually named
15136 something starting with __ and the normal name is an alias. */
15137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15140 char (*f) () = $ac_func;
15149 return f != $ac_func;
15154 rm -f conftest.$ac_objext conftest$ac_exeext
15155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15156 (eval $ac_link) 2>conftest.er1
15158 grep -v '^ *+' conftest.er1 >conftest.err
15160 cat conftest.err >&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } &&
15163 { ac_try='test -z "$ac_c_werror_flag"
15164 || test ! -s conftest.err'
15165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166 (eval $ac_try) 2>&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; } &&
15170 { ac_try='test -s conftest$ac_exeext'
15171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172 (eval $ac_try) 2>&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; }; then
15176 eval "$as_ac_var=yes"
15178 echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15181 eval "$as_ac_var=no"
15183 rm -f conftest.err conftest.$ac_objext \
15184 conftest$ac_exeext conftest.$ac_ext
15186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15188 if test `eval echo '${'$as_ac_var'}'` = yes; then
15189 cat >>confdefs.h <<_ACEOF
15190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15195 "$ac_func.$ac_objext" | \
15196 *" $ac_func.$ac_objext" | \
15197 "$ac_func.$ac_objext "* | \
15198 *" $ac_func.$ac_objext "* ) ;;
15199 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15206 if test $ac_cv_func_atexit = no; then
15219 # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
15222 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
15223 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
15224 if test "${ac_cv_func_fnmatch_posix+set}" = set; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15227 if test "$cross_compiling" = yes; then
15228 ac_cv_func_fnmatch_posix=cross
15230 cat >conftest.$ac_ext <<_ACEOF
15233 cat confdefs.h >>conftest.$ac_ext
15234 cat >>conftest.$ac_ext <<_ACEOF
15235 /* end confdefs.h. */
15237 # include <stdlib.h>
15238 # include <fnmatch.h>
15239 # define y(a, b, c) (fnmatch (a, b, c) == 0)
15240 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
15246 (!(y ("a*", "abc", 0)
15247 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
15248 && y ("a\\\\bc", "abc", 0)
15249 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
15250 && y ("*x", ".x", 0)
15251 && n ("*x", ".x", FNM_PERIOD)
15257 rm -f conftest$ac_exeext
15258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15259 (eval $ac_link) 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 ac_cv_func_fnmatch_posix=yes
15270 echo "$as_me: program exited with status $ac_status" >&5
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15274 ( exit $ac_status )
15275 ac_cv_func_fnmatch_posix=no
15277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15280 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_posix" >&5
15281 echo "${ECHO_T}$ac_cv_func_fnmatch_posix" >&6
15282 if test $ac_cv_func_fnmatch_posix = yes; then
15283 rm -f lib/fnmatch.h
15285 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
15286 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
15287 if test "${ac_cv_have_decl_getenv+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 cat >conftest.$ac_ext <<_ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15296 $ac_includes_default
15301 char *p = (char *) getenv;
15308 rm -f conftest.$ac_objext
15309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15310 (eval $ac_compile) 2>conftest.er1
15312 grep -v '^ *+' conftest.er1 >conftest.err
15314 cat conftest.err >&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } &&
15317 { ac_try='test -z "$ac_c_werror_flag"
15318 || test ! -s conftest.err'
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; } &&
15324 { ac_try='test -s conftest.$ac_objext'
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15330 ac_cv_have_decl_getenv=yes
15332 echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15335 ac_cv_have_decl_getenv=no
15337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15339 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
15340 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
15341 if test $ac_cv_have_decl_getenv = yes; then
15343 cat >>confdefs.h <<_ACEOF
15344 #define HAVE_DECL_GETENV 1
15349 cat >>confdefs.h <<_ACEOF
15350 #define HAVE_DECL_GETENV 0
15363 for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy
15365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15366 echo "$as_me:$LINENO: checking for $ac_func" >&5
15367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15368 if eval "test \"\${$as_ac_var+set}\" = set"; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 cat >conftest.$ac_ext <<_ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15379 #define $ac_func innocuous_$ac_func
15381 /* System header to define __stub macros and hopefully few prototypes,
15382 which can conflict with char $ac_func (); below.
15383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15384 <limits.h> exists even on freestanding compilers. */
15387 # include <limits.h>
15389 # include <assert.h>
15394 /* Override any gcc2 internal prototype to avoid an error. */
15399 /* We use char because int might match the return type of a gcc2
15400 builtin and then its argument prototype would still apply. */
15402 /* The GNU C library defines this for functions which it implements
15403 to always fail with ENOSYS. Some functions are actually named
15404 something starting with __ and the normal name is an alias. */
15405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15408 char (*f) () = $ac_func;
15417 return f != $ac_func;
15422 rm -f conftest.$ac_objext conftest$ac_exeext
15423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15424 (eval $ac_link) 2>conftest.er1
15426 grep -v '^ *+' conftest.er1 >conftest.err
15428 cat conftest.err >&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } &&
15431 { ac_try='test -z "$ac_c_werror_flag"
15432 || test ! -s conftest.err'
15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434 (eval $ac_try) 2>&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; } &&
15438 { ac_try='test -s conftest$ac_exeext'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15444 eval "$as_ac_var=yes"
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 eval "$as_ac_var=no"
15451 rm -f conftest.err conftest.$ac_objext \
15452 conftest$ac_exeext conftest.$ac_ext
15454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15456 if test `eval echo '${'$as_ac_var'}'` = yes; then
15457 cat >>confdefs.h <<_ACEOF
15458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15466 for ac_header in wchar.h wctype.h
15468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15470 echo "$as_me:$LINENO: checking for $ac_header" >&5
15471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15478 # Is the header compilable?
15479 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15481 cat >conftest.$ac_ext <<_ACEOF
15484 cat confdefs.h >>conftest.$ac_ext
15485 cat >>conftest.$ac_ext <<_ACEOF
15486 /* end confdefs.h. */
15487 $ac_includes_default
15488 #include <$ac_header>
15490 rm -f conftest.$ac_objext
15491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15492 (eval $ac_compile) 2>conftest.er1
15494 grep -v '^ *+' conftest.er1 >conftest.err
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } &&
15499 { ac_try='test -z "$ac_c_werror_flag"
15500 || test ! -s conftest.err'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; } &&
15506 { ac_try='test -s conftest.$ac_objext'
15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; }; then
15512 ac_header_compiler=yes
15514 echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.$ac_ext >&5
15517 ac_header_compiler=no
15519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15521 echo "${ECHO_T}$ac_header_compiler" >&6
15523 # Is the header present?
15524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15526 cat >conftest.$ac_ext <<_ACEOF
15529 cat confdefs.h >>conftest.$ac_ext
15530 cat >>conftest.$ac_ext <<_ACEOF
15531 /* end confdefs.h. */
15532 #include <$ac_header>
15534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15537 grep -v '^ *+' conftest.er1 >conftest.err
15539 cat conftest.err >&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } >/dev/null; then
15542 if test -s conftest.err; then
15543 ac_cpp_err=$ac_c_preproc_warn_flag
15544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15551 if test -z "$ac_cpp_err"; then
15552 ac_header_preproc=yes
15554 echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15557 ac_header_preproc=no
15559 rm -f conftest.err conftest.$ac_ext
15560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15561 echo "${ECHO_T}$ac_header_preproc" >&6
15563 # So? What about this header?
15564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15570 ac_header_preproc=yes
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15587 ## ------------------------------ ##
15588 ## Report this to bug-cvs@gnu.org ##
15589 ## ------------------------------ ##
15592 sed "s/^/$as_me: WARNING: /" >&2
15595 echo "$as_me:$LINENO: checking for $ac_header" >&5
15596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15598 echo $ECHO_N "(cached) $ECHO_C" >&6
15600 eval "$as_ac_Header=\$ac_header_preproc"
15602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15607 cat >>confdefs.h <<_ACEOF
15608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15616 "fnmatch.$ac_objext" | \
15617 *" fnmatch.$ac_objext" | \
15618 "fnmatch.$ac_objext "* | \
15619 *" fnmatch.$ac_objext "* ) ;;
15620 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
15623 FNMATCH_H=fnmatch.h
15628 if test $ac_cv_func_fnmatch_posix != yes; then
15630 cat >>confdefs.h <<\_ACEOF
15631 #define fnmatch posix_fnmatch
15651 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15652 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
15653 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15654 echo $ECHO_N "(cached) $ECHO_C" >&6
15656 cat >conftest.$ac_ext <<_ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15662 #include <sys/types.h>
15663 #include <$ac_cv_struct_tm>
15669 static struct tm ac_aggr;
15670 if (ac_aggr.tm_zone)
15676 rm -f conftest.$ac_objext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15678 (eval $ac_compile) 2>conftest.er1
15680 grep -v '^ *+' conftest.er1 >conftest.err
15682 cat conftest.err >&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } &&
15685 { ac_try='test -z "$ac_c_werror_flag"
15686 || test ! -s conftest.err'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; } &&
15692 { ac_try='test -s conftest.$ac_objext'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_cv_member_struct_tm_tm_zone=yes
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15703 cat >conftest.$ac_ext <<_ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15709 #include <sys/types.h>
15710 #include <$ac_cv_struct_tm>
15716 static struct tm ac_aggr;
15717 if (sizeof ac_aggr.tm_zone)
15723 rm -f conftest.$ac_objext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15725 (eval $ac_compile) 2>conftest.er1
15727 grep -v '^ *+' conftest.er1 >conftest.err
15729 cat conftest.err >&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try='test -z "$ac_c_werror_flag"
15733 || test ! -s conftest.err'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; } &&
15739 { ac_try='test -s conftest.$ac_objext'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_cv_member_struct_tm_tm_zone=yes
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 ac_cv_member_struct_tm_tm_zone=no
15752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15756 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15757 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
15758 if test $ac_cv_member_struct_tm_tm_zone = yes; then
15760 cat >>confdefs.h <<_ACEOF
15761 #define HAVE_STRUCT_TM_TM_ZONE 1
15767 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15769 cat >>confdefs.h <<\_ACEOF
15770 #define HAVE_TM_ZONE 1
15774 echo "$as_me:$LINENO: checking for tzname" >&5
15775 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
15776 if test "${ac_cv_var_tzname+set}" = set; then
15777 echo $ECHO_N "(cached) $ECHO_C" >&6
15779 cat >conftest.$ac_ext <<_ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h. */
15786 #ifndef tzname /* For SGI. */
15787 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15798 rm -f conftest.$ac_objext conftest$ac_exeext
15799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15800 (eval $ac_link) 2>conftest.er1
15802 grep -v '^ *+' conftest.er1 >conftest.err
15804 cat conftest.err >&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } &&
15807 { ac_try='test -z "$ac_c_werror_flag"
15808 || test ! -s conftest.err'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; } &&
15814 { ac_try='test -s conftest$ac_exeext'
15815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816 (eval $ac_try) 2>&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); }; }; then
15820 ac_cv_var_tzname=yes
15822 echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15825 ac_cv_var_tzname=no
15827 rm -f conftest.err conftest.$ac_objext \
15828 conftest$ac_exeext conftest.$ac_ext
15830 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15831 echo "${ECHO_T}$ac_cv_var_tzname" >&6
15832 if test $ac_cv_var_tzname = yes; then
15834 cat >>confdefs.h <<\_ACEOF
15835 #define HAVE_TZNAME 1
15846 for ac_func in gethostname
15848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15849 echo "$as_me:$LINENO: checking for $ac_func" >&5
15850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15851 if eval "test \"\${$as_ac_var+set}\" = set"; then
15852 echo $ECHO_N "(cached) $ECHO_C" >&6
15854 cat >conftest.$ac_ext <<_ACEOF
15857 cat confdefs.h >>conftest.$ac_ext
15858 cat >>conftest.$ac_ext <<_ACEOF
15859 /* end confdefs.h. */
15860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15862 #define $ac_func innocuous_$ac_func
15864 /* System header to define __stub macros and hopefully few prototypes,
15865 which can conflict with char $ac_func (); below.
15866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15867 <limits.h> exists even on freestanding compilers. */
15870 # include <limits.h>
15872 # include <assert.h>
15877 /* Override any gcc2 internal prototype to avoid an error. */
15882 /* We use char because int might match the return type of a gcc2
15883 builtin and then its argument prototype would still apply. */
15885 /* The GNU C library defines this for functions which it implements
15886 to always fail with ENOSYS. Some functions are actually named
15887 something starting with __ and the normal name is an alias. */
15888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15891 char (*f) () = $ac_func;
15900 return f != $ac_func;
15905 rm -f conftest.$ac_objext conftest$ac_exeext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15907 (eval $ac_link) 2>conftest.er1
15909 grep -v '^ *+' conftest.er1 >conftest.err
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try='test -z "$ac_c_werror_flag"
15915 || test ! -s conftest.err'
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; } &&
15921 { ac_try='test -s conftest$ac_exeext'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 eval "$as_ac_var=yes"
15929 echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15932 eval "$as_ac_var=no"
15934 rm -f conftest.err conftest.$ac_objext \
15935 conftest$ac_exeext conftest.$ac_ext
15937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15939 if test `eval echo '${'$as_ac_var'}'` = yes; then
15940 cat >>confdefs.h <<_ACEOF
15941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15946 "$ac_func.$ac_objext" | \
15947 *" $ac_func.$ac_objext" | \
15948 "$ac_func.$ac_objext "* | \
15949 *" $ac_func.$ac_objext "* ) ;;
15950 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15957 if test $ac_cv_func_gethostname = no; then
15960 for ac_func in uname
15962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15963 echo "$as_me:$LINENO: checking for $ac_func" >&5
15964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15965 if eval "test \"\${$as_ac_var+set}\" = set"; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15968 cat >conftest.$ac_ext <<_ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h. */
15974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15976 #define $ac_func innocuous_$ac_func
15978 /* System header to define __stub macros and hopefully few prototypes,
15979 which can conflict with char $ac_func (); below.
15980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15981 <limits.h> exists even on freestanding compilers. */
15984 # include <limits.h>
15986 # include <assert.h>
15991 /* Override any gcc2 internal prototype to avoid an error. */
15996 /* We use char because int might match the return type of a gcc2
15997 builtin and then its argument prototype would still apply. */
15999 /* The GNU C library defines this for functions which it implements
16000 to always fail with ENOSYS. Some functions are actually named
16001 something starting with __ and the normal name is an alias. */
16002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16005 char (*f) () = $ac_func;
16014 return f != $ac_func;
16019 rm -f conftest.$ac_objext conftest$ac_exeext
16020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16021 (eval $ac_link) 2>conftest.er1
16023 grep -v '^ *+' conftest.er1 >conftest.err
16025 cat conftest.err >&5
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); } &&
16028 { ac_try='test -z "$ac_c_werror_flag"
16029 || test ! -s conftest.err'
16030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031 (eval $ac_try) 2>&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; } &&
16035 { ac_try='test -s conftest$ac_exeext'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; }; then
16041 eval "$as_ac_var=yes"
16043 echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16046 eval "$as_ac_var=no"
16048 rm -f conftest.err conftest.$ac_objext \
16049 conftest$ac_exeext conftest.$ac_ext
16051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16053 if test `eval echo '${'$as_ac_var'}'` = yes; then
16054 cat >>confdefs.h <<_ACEOF
16055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16067 am_getline_needs_run_time_check=no
16068 echo "$as_me:$LINENO: checking for getline" >&5
16069 echo $ECHO_N "checking for getline... $ECHO_C" >&6
16070 if test "${ac_cv_func_getline+set}" = set; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 cat >conftest.$ac_ext <<_ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
16080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16081 #define getline innocuous_getline
16083 /* System header to define __stub macros and hopefully few prototypes,
16084 which can conflict with char getline (); below.
16085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16086 <limits.h> exists even on freestanding compilers. */
16089 # include <limits.h>
16091 # include <assert.h>
16096 /* Override any gcc2 internal prototype to avoid an error. */
16101 /* We use char because int might match the return type of a gcc2
16102 builtin and then its argument prototype would still apply. */
16104 /* The GNU C library defines this for functions which it implements
16105 to always fail with ENOSYS. Some functions are actually named
16106 something starting with __ and the normal name is an alias. */
16107 #if defined (__stub_getline) || defined (__stub___getline)
16110 char (*f) () = getline;
16119 return f != getline;
16124 rm -f conftest.$ac_objext conftest$ac_exeext
16125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16126 (eval $ac_link) 2>conftest.er1
16128 grep -v '^ *+' conftest.er1 >conftest.err
16130 cat conftest.err >&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } &&
16133 { ac_try='test -z "$ac_c_werror_flag"
16134 || test ! -s conftest.err'
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; } &&
16140 { ac_try='test -s conftest$ac_exeext'
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; }; then
16146 ac_cv_func_getline=yes
16148 echo "$as_me: failed program was:" >&5
16149 sed 's/^/| /' conftest.$ac_ext >&5
16151 ac_cv_func_getline=no
16153 rm -f conftest.err conftest.$ac_objext \
16154 conftest$ac_exeext conftest.$ac_ext
16156 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
16157 echo "${ECHO_T}$ac_cv_func_getline" >&6
16158 if test $ac_cv_func_getline = yes; then
16159 am_getline_needs_run_time_check=yes
16161 am_cv_func_working_getline=no
16164 if test $am_getline_needs_run_time_check = yes; then
16165 echo "$as_me:$LINENO: checking for working getline function" >&5
16166 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
16167 if test "${am_cv_func_working_getline+set}" = set; then
16168 echo $ECHO_N "(cached) $ECHO_C" >&6
16170 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
16171 if test "$cross_compiling" = yes; then
16172 am_cv_func_working_getline=no
16174 cat >conftest.$ac_ext <<_ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h. */
16181 # include <stdio.h>
16182 # include <stdlib.h>
16183 # include <string.h>
16185 { /* Based on a test program from Karl Heuer. */
16189 FILE *in = fopen ("./conftest.data", "r");
16192 len = getline (&line, &siz, in);
16193 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
16197 rm -f conftest$ac_exeext
16198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16199 (eval $ac_link) 2>&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; }; then
16208 am_cv_func_working_getline=yes
16210 echo "$as_me: program exited with status $ac_status" >&5
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16214 ( exit $ac_status )
16215 am_cv_func_working_getline=no
16217 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16220 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
16221 echo "${ECHO_T}$am_cv_func_working_getline" >&6
16224 if test $am_cv_func_working_getline = no; then
16226 cat >>confdefs.h <<\_ACEOF
16227 #define getline gnu_getline
16231 "getline.$ac_objext" | \
16232 *" getline.$ac_objext" | \
16233 "getline.$ac_objext "* | \
16234 *" getline.$ac_objext "* ) ;;
16235 *) LIBOBJS="$LIBOBJS getline.$ac_objext" ;;
16239 # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
16240 # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
16241 case " $LIBOBJS " in
16242 *" getndelim2.$ac_objext "* ) ;;
16243 *) case $LIBOBJS in
16244 "getndelim2.$ac_objext" | \
16245 *" getndelim2.$ac_objext" | \
16246 "getndelim2.$ac_objext "* | \
16247 *" getndelim2.$ac_objext "* ) ;;
16248 *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
16255 for ac_func in getdelim
16257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16258 echo "$as_me:$LINENO: checking for $ac_func" >&5
16259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16260 if eval "test \"\${$as_ac_var+set}\" = set"; then
16261 echo $ECHO_N "(cached) $ECHO_C" >&6
16263 cat >conftest.$ac_ext <<_ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h. */
16269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16271 #define $ac_func innocuous_$ac_func
16273 /* System header to define __stub macros and hopefully few prototypes,
16274 which can conflict with char $ac_func (); below.
16275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16276 <limits.h> exists even on freestanding compilers. */
16279 # include <limits.h>
16281 # include <assert.h>
16286 /* Override any gcc2 internal prototype to avoid an error. */
16291 /* We use char because int might match the return type of a gcc2
16292 builtin and then its argument prototype would still apply. */
16294 /* The GNU C library defines this for functions which it implements
16295 to always fail with ENOSYS. Some functions are actually named
16296 something starting with __ and the normal name is an alias. */
16297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16300 char (*f) () = $ac_func;
16309 return f != $ac_func;
16314 rm -f conftest.$ac_objext conftest$ac_exeext
16315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16316 (eval $ac_link) 2>conftest.er1
16318 grep -v '^ *+' conftest.er1 >conftest.err
16320 cat conftest.err >&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } &&
16323 { ac_try='test -z "$ac_c_werror_flag"
16324 || test ! -s conftest.err'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; } &&
16330 { ac_try='test -s conftest$ac_exeext'
16331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332 (eval $ac_try) 2>&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); }; }; then
16336 eval "$as_ac_var=yes"
16338 echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16341 eval "$as_ac_var=no"
16343 rm -f conftest.err conftest.$ac_objext \
16344 conftest$ac_exeext conftest.$ac_ext
16346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16348 if test `eval echo '${'$as_ac_var'}'` = yes; then
16349 cat >>confdefs.h <<_ACEOF
16350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16363 # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
16364 # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
16365 case " $LIBOBJS " in
16366 *" getndelim2.$ac_objext "* ) ;;
16367 *) case $LIBOBJS in
16368 "getndelim2.$ac_objext" | \
16369 *" getndelim2.$ac_objext" | \
16370 "getndelim2.$ac_objext "* | \
16371 *" getndelim2.$ac_objext "* ) ;;
16372 *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
16390 for ac_header in getopt.h
16392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16394 echo "$as_me:$LINENO: checking for $ac_header" >&5
16395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16397 echo $ECHO_N "(cached) $ECHO_C" >&6
16399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16402 # Is the header compilable?
16403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16405 cat >conftest.$ac_ext <<_ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h. */
16411 $ac_includes_default
16412 #include <$ac_header>
16414 rm -f conftest.$ac_objext
16415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16416 (eval $ac_compile) 2>conftest.er1
16418 grep -v '^ *+' conftest.er1 >conftest.err
16420 cat conftest.err >&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } &&
16423 { ac_try='test -z "$ac_c_werror_flag"
16424 || test ! -s conftest.err'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; } &&
16430 { ac_try='test -s conftest.$ac_objext'
16431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 ac_header_compiler=yes
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 ac_header_compiler=no
16443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16445 echo "${ECHO_T}$ac_header_compiler" >&6
16447 # Is the header present?
16448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16450 cat >conftest.$ac_ext <<_ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456 #include <$ac_header>
16458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16461 grep -v '^ *+' conftest.er1 >conftest.err
16463 cat conftest.err >&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); } >/dev/null; then
16466 if test -s conftest.err; then
16467 ac_cpp_err=$ac_c_preproc_warn_flag
16468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16475 if test -z "$ac_cpp_err"; then
16476 ac_header_preproc=yes
16478 echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16481 ac_header_preproc=no
16483 rm -f conftest.err conftest.$ac_ext
16484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16485 echo "${ECHO_T}$ac_header_preproc" >&6
16487 # So? What about this header?
16488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16494 ac_header_preproc=yes
16497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16511 ## ------------------------------ ##
16512 ## Report this to bug-cvs@gnu.org ##
16513 ## ------------------------------ ##
16516 sed "s/^/$as_me: WARNING: /" >&2
16519 echo "$as_me:$LINENO: checking for $ac_header" >&5
16520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16524 eval "$as_ac_Header=\$ac_header_preproc"
16526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16531 cat >>confdefs.h <<_ACEOF
16532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16542 for ac_func in getopt_long_only
16544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16545 echo "$as_me:$LINENO: checking for $ac_func" >&5
16546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16547 if eval "test \"\${$as_ac_var+set}\" = set"; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 cat >conftest.$ac_ext <<_ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16558 #define $ac_func innocuous_$ac_func
16560 /* System header to define __stub macros and hopefully few prototypes,
16561 which can conflict with char $ac_func (); below.
16562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16563 <limits.h> exists even on freestanding compilers. */
16566 # include <limits.h>
16568 # include <assert.h>
16573 /* Override any gcc2 internal prototype to avoid an error. */
16578 /* We use char because int might match the return type of a gcc2
16579 builtin and then its argument prototype would still apply. */
16581 /* The GNU C library defines this for functions which it implements
16582 to always fail with ENOSYS. Some functions are actually named
16583 something starting with __ and the normal name is an alias. */
16584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16587 char (*f) () = $ac_func;
16596 return f != $ac_func;
16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16603 (eval $ac_link) 2>conftest.er1
16605 grep -v '^ *+' conftest.er1 >conftest.err
16607 cat conftest.err >&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } &&
16610 { ac_try='test -z "$ac_c_werror_flag"
16611 || test ! -s conftest.err'
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; } &&
16617 { ac_try='test -s conftest$ac_exeext'
16618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619 (eval $ac_try) 2>&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; }; then
16623 eval "$as_ac_var=yes"
16625 echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16628 eval "$as_ac_var=no"
16630 rm -f conftest.err conftest.$ac_objext \
16631 conftest$ac_exeext conftest.$ac_ext
16633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16635 if test `eval echo '${'$as_ac_var'}'` = yes; then
16636 cat >>confdefs.h <<_ACEOF
16637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16646 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
16647 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
16648 if test "${ac_cv_have_decl_optreset+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 cat >conftest.$ac_ext <<_ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16657 #include <getopt.h>
16663 char *p = (char *) optreset;
16670 rm -f conftest.$ac_objext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16672 (eval $ac_compile) 2>conftest.er1
16674 grep -v '^ *+' conftest.er1 >conftest.err
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
16679 { ac_try='test -z "$ac_c_werror_flag"
16680 || test ! -s conftest.err'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; } &&
16686 { ac_try='test -s conftest.$ac_objext'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; }; then
16692 ac_cv_have_decl_optreset=yes
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16697 ac_cv_have_decl_optreset=no
16699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16701 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
16702 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
16703 if test $ac_cv_have_decl_optreset = yes; then
16708 if test -n "$GETOPT_H"; then
16712 "getopt.$ac_objext" | \
16713 *" getopt.$ac_objext" | \
16714 "getopt.$ac_objext "* | \
16715 *" getopt.$ac_objext "* ) ;;
16716 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
16720 "getopt1.$ac_objext" | \
16721 *" getopt1.$ac_objext" | \
16722 "getopt1.$ac_objext "* | \
16723 *" getopt1.$ac_objext "* ) ;;
16724 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
16728 cat >>confdefs.h <<\_ACEOF
16729 #define __GETOPT_PREFIX rpl_
16748 for ac_header in OS.h
16750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16752 echo "$as_me:$LINENO: checking for $ac_header" >&5
16753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16760 # Is the header compilable?
16761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16763 cat >conftest.$ac_ext <<_ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 $ac_includes_default
16770 #include <$ac_header>
16772 rm -f conftest.$ac_objext
16773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16774 (eval $ac_compile) 2>conftest.er1
16776 grep -v '^ *+' conftest.er1 >conftest.err
16778 cat conftest.err >&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } &&
16781 { ac_try='test -z "$ac_c_werror_flag"
16782 || test ! -s conftest.err'
16783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784 (eval $ac_try) 2>&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; } &&
16788 { ac_try='test -s conftest.$ac_objext'
16789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; }; then
16794 ac_header_compiler=yes
16796 echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16799 ac_header_compiler=no
16801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16803 echo "${ECHO_T}$ac_header_compiler" >&6
16805 # Is the header present?
16806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16808 cat >conftest.$ac_ext <<_ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16814 #include <$ac_header>
16816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16819 grep -v '^ *+' conftest.er1 >conftest.err
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } >/dev/null; then
16824 if test -s conftest.err; then
16825 ac_cpp_err=$ac_c_preproc_warn_flag
16826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16833 if test -z "$ac_cpp_err"; then
16834 ac_header_preproc=yes
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 ac_header_preproc=no
16841 rm -f conftest.err conftest.$ac_ext
16842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16843 echo "${ECHO_T}$ac_header_preproc" >&6
16845 # So? What about this header?
16846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16852 ac_header_preproc=yes
16855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16869 ## ------------------------------ ##
16870 ## Report this to bug-cvs@gnu.org ##
16871 ## ------------------------------ ##
16874 sed "s/^/$as_me: WARNING: /" >&2
16877 echo "$as_me:$LINENO: checking for $ac_header" >&5
16878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16882 eval "$as_ac_Header=\$ac_header_preproc"
16884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16889 cat >>confdefs.h <<_ACEOF
16890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16898 for ac_func in getpagesize
16900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16901 echo "$as_me:$LINENO: checking for $ac_func" >&5
16902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16903 if eval "test \"\${$as_ac_var+set}\" = set"; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 cat >conftest.$ac_ext <<_ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16914 #define $ac_func innocuous_$ac_func
16916 /* System header to define __stub macros and hopefully few prototypes,
16917 which can conflict with char $ac_func (); below.
16918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16919 <limits.h> exists even on freestanding compilers. */
16922 # include <limits.h>
16924 # include <assert.h>
16929 /* Override any gcc2 internal prototype to avoid an error. */
16934 /* We use char because int might match the return type of a gcc2
16935 builtin and then its argument prototype would still apply. */
16937 /* The GNU C library defines this for functions which it implements
16938 to always fail with ENOSYS. Some functions are actually named
16939 something starting with __ and the normal name is an alias. */
16940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16943 char (*f) () = $ac_func;
16952 return f != $ac_func;
16957 rm -f conftest.$ac_objext conftest$ac_exeext
16958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16959 (eval $ac_link) 2>conftest.er1
16961 grep -v '^ *+' conftest.er1 >conftest.err
16963 cat conftest.err >&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
16966 { ac_try='test -z "$ac_c_werror_flag"
16967 || test ! -s conftest.err'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; } &&
16973 { ac_try='test -s conftest$ac_exeext'
16974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975 (eval $ac_try) 2>&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; }; then
16979 eval "$as_ac_var=yes"
16981 echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16984 eval "$as_ac_var=no"
16986 rm -f conftest.err conftest.$ac_objext \
16987 conftest$ac_exeext conftest.$ac_ext
16989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16991 if test `eval echo '${'$as_ac_var'}'` = yes; then
16992 cat >>confdefs.h <<_ACEOF
16993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17009 "getpass.$ac_objext" | \
17010 *" getpass.$ac_objext" | \
17011 "getpass.$ac_objext "* | \
17012 *" getpass.$ac_objext "* ) ;;
17013 *) LIBOBJS="$LIBOBJS getpass.$ac_objext" ;;
17046 cat >>confdefs.h <<\_ACEOF
17047 #define getpass gnu_getpass
17064 echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
17065 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
17066 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17069 if test "$cross_compiling" = yes; then
17070 jm_cv_func_gettimeofday_clobber=yes
17072 cat >conftest.$ac_ext <<_ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17080 #include <string.h>
17082 #if TIME_WITH_SYS_TIME
17083 # include <sys/time.h>
17086 # if HAVE_SYS_TIME_H
17087 # include <sys/time.h>
17093 #include <stdlib.h>
17100 struct tm saved_lt;
17102 lt = localtime (&t);
17104 gettimeofday (&tv, NULL);
17105 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
17112 rm -f conftest$ac_exeext
17113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17114 (eval $ac_link) 2>&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; }; then
17123 jm_cv_func_gettimeofday_clobber=no
17125 echo "$as_me: program exited with status $ac_status" >&5
17126 echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17129 ( exit $ac_status )
17130 jm_cv_func_gettimeofday_clobber=yes
17132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17136 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
17137 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
17138 if test $jm_cv_func_gettimeofday_clobber = yes; then
17141 "gettimeofday.$ac_objext" | \
17142 *" gettimeofday.$ac_objext" | \
17143 "gettimeofday.$ac_objext "* | \
17144 *" gettimeofday.$ac_objext "* ) ;;
17145 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
17149 cat >>confdefs.h <<\_ACEOF
17150 #define gmtime rpl_gmtime
17154 cat >>confdefs.h <<\_ACEOF
17155 #define localtime rpl_localtime
17161 cat >>confdefs.h <<\_ACEOF
17162 #define gettimeofday rpl_gettimeofday
17166 cat >>confdefs.h <<\_ACEOF
17167 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
17176 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
17177 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
17178 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
17179 echo $ECHO_N "(cached) $ECHO_C" >&6
17181 if test "$cross_compiling" = yes; then
17182 ac_cv_func_lstat_empty_string_bug=yes
17184 cat >conftest.$ac_ext <<_ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 $ac_includes_default
17195 exit (lstat ("", &sbuf) ? 1 : 0);
17200 rm -f conftest$ac_exeext
17201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17202 (eval $ac_link) 2>&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; }; then
17211 ac_cv_func_lstat_empty_string_bug=yes
17213 echo "$as_me: program exited with status $ac_status" >&5
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17217 ( exit $ac_status )
17218 ac_cv_func_lstat_empty_string_bug=no
17220 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17223 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
17224 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
17225 if test $ac_cv_func_lstat_empty_string_bug = yes; then
17227 "lstat.$ac_objext" | \
17228 *" lstat.$ac_objext" | \
17229 "lstat.$ac_objext "* | \
17230 *" lstat.$ac_objext "* ) ;;
17231 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
17235 cat >>confdefs.h <<_ACEOF
17236 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
17241 if test $ac_cv_func_lstat_empty_string_bug = yes; then
17249 for ac_header in stdlib.h
17251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17253 echo "$as_me:$LINENO: checking for $ac_header" >&5
17254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17256 echo $ECHO_N "(cached) $ECHO_C" >&6
17258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17261 # Is the header compilable?
17262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17264 cat >conftest.$ac_ext <<_ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h. */
17270 $ac_includes_default
17271 #include <$ac_header>
17273 rm -f conftest.$ac_objext
17274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17275 (eval $ac_compile) 2>conftest.er1
17277 grep -v '^ *+' conftest.er1 >conftest.err
17279 cat conftest.err >&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } &&
17282 { ac_try='test -z "$ac_c_werror_flag"
17283 || test ! -s conftest.err'
17284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285 (eval $ac_try) 2>&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; } &&
17289 { ac_try='test -s conftest.$ac_objext'
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; }; then
17295 ac_header_compiler=yes
17297 echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17300 ac_header_compiler=no
17302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17304 echo "${ECHO_T}$ac_header_compiler" >&6
17306 # Is the header present?
17307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17309 cat >conftest.$ac_ext <<_ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17315 #include <$ac_header>
17317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17320 grep -v '^ *+' conftest.er1 >conftest.err
17322 cat conftest.err >&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } >/dev/null; then
17325 if test -s conftest.err; then
17326 ac_cpp_err=$ac_c_preproc_warn_flag
17327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17334 if test -z "$ac_cpp_err"; then
17335 ac_header_preproc=yes
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 ac_header_preproc=no
17342 rm -f conftest.err conftest.$ac_ext
17343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17344 echo "${ECHO_T}$ac_header_preproc" >&6
17346 # So? What about this header?
17347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17353 ac_header_preproc=yes
17356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17370 ## ------------------------------ ##
17371 ## Report this to bug-cvs@gnu.org ##
17372 ## ------------------------------ ##
17375 sed "s/^/$as_me: WARNING: /" >&2
17378 echo "$as_me:$LINENO: checking for $ac_header" >&5
17379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17383 eval "$as_ac_Header=\$ac_header_preproc"
17385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17390 cat >>confdefs.h <<_ACEOF
17391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17398 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
17399 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
17400 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
17401 echo $ECHO_N "(cached) $ECHO_C" >&6
17403 if test "$cross_compiling" = yes; then
17404 ac_cv_func_malloc_0_nonnull=no
17406 cat >conftest.$ac_ext <<_ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h. */
17412 #if STDC_HEADERS || HAVE_STDLIB_H
17413 # include <stdlib.h>
17421 exit (malloc (0) ? 0 : 1);
17426 rm -f conftest$ac_exeext
17427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17428 (eval $ac_link) 2>&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 ac_cv_func_malloc_0_nonnull=yes
17439 echo "$as_me: program exited with status $ac_status" >&5
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 ( exit $ac_status )
17444 ac_cv_func_malloc_0_nonnull=no
17446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17449 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
17450 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
17451 if test $ac_cv_func_malloc_0_nonnull = yes; then
17453 cat >>confdefs.h <<\_ACEOF
17454 #define HAVE_MALLOC 1
17458 cat >>confdefs.h <<\_ACEOF
17459 #define HAVE_MALLOC 0
17463 "malloc.$ac_objext" | \
17464 *" malloc.$ac_objext" | \
17465 "malloc.$ac_objext "* | \
17466 *" malloc.$ac_objext "* ) ;;
17467 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
17471 cat >>confdefs.h <<\_ACEOF
17472 #define malloc rpl_malloc
17487 for ac_func in memmove
17489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17490 echo "$as_me:$LINENO: checking for $ac_func" >&5
17491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17492 if eval "test \"\${$as_ac_var+set}\" = set"; then
17493 echo $ECHO_N "(cached) $ECHO_C" >&6
17495 cat >conftest.$ac_ext <<_ACEOF
17498 cat confdefs.h >>conftest.$ac_ext
17499 cat >>conftest.$ac_ext <<_ACEOF
17500 /* end confdefs.h. */
17501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17503 #define $ac_func innocuous_$ac_func
17505 /* System header to define __stub macros and hopefully few prototypes,
17506 which can conflict with char $ac_func (); below.
17507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17508 <limits.h> exists even on freestanding compilers. */
17511 # include <limits.h>
17513 # include <assert.h>
17518 /* Override any gcc2 internal prototype to avoid an error. */
17523 /* We use char because int might match the return type of a gcc2
17524 builtin and then its argument prototype would still apply. */
17526 /* The GNU C library defines this for functions which it implements
17527 to always fail with ENOSYS. Some functions are actually named
17528 something starting with __ and the normal name is an alias. */
17529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17532 char (*f) () = $ac_func;
17541 return f != $ac_func;
17546 rm -f conftest.$ac_objext conftest$ac_exeext
17547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17548 (eval $ac_link) 2>conftest.er1
17550 grep -v '^ *+' conftest.er1 >conftest.err
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try='test -z "$ac_c_werror_flag"
17556 || test ! -s conftest.err'
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; } &&
17562 { ac_try='test -s conftest$ac_exeext'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 eval "$as_ac_var=yes"
17570 echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17573 eval "$as_ac_var=no"
17575 rm -f conftest.err conftest.$ac_objext \
17576 conftest$ac_exeext conftest.$ac_ext
17578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17580 if test `eval echo '${'$as_ac_var'}'` = yes; then
17581 cat >>confdefs.h <<_ACEOF
17582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17587 "$ac_func.$ac_objext" | \
17588 *" $ac_func.$ac_objext" | \
17589 "$ac_func.$ac_objext "* | \
17590 *" $ac_func.$ac_objext "* ) ;;
17591 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
17598 if test $ac_cv_func_memmove = no; then
17605 for ac_func in mkstemp
17607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17608 echo "$as_me:$LINENO: checking for $ac_func" >&5
17609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17610 if eval "test \"\${$as_ac_var+set}\" = set"; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17613 cat >conftest.$ac_ext <<_ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17621 #define $ac_func innocuous_$ac_func
17623 /* System header to define __stub macros and hopefully few prototypes,
17624 which can conflict with char $ac_func (); below.
17625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17626 <limits.h> exists even on freestanding compilers. */
17629 # include <limits.h>
17631 # include <assert.h>
17636 /* Override any gcc2 internal prototype to avoid an error. */
17641 /* We use char because int might match the return type of a gcc2
17642 builtin and then its argument prototype would still apply. */
17644 /* The GNU C library defines this for functions which it implements
17645 to always fail with ENOSYS. Some functions are actually named
17646 something starting with __ and the normal name is an alias. */
17647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17650 char (*f) () = $ac_func;
17659 return f != $ac_func;
17664 rm -f conftest.$ac_objext conftest$ac_exeext
17665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17666 (eval $ac_link) 2>conftest.er1
17668 grep -v '^ *+' conftest.er1 >conftest.err
17670 cat conftest.err >&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } &&
17673 { ac_try='test -z "$ac_c_werror_flag"
17674 || test ! -s conftest.err'
17675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17676 (eval $ac_try) 2>&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; } &&
17680 { ac_try='test -s conftest$ac_exeext'
17681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682 (eval $ac_try) 2>&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; }; then
17686 eval "$as_ac_var=yes"
17688 echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17691 eval "$as_ac_var=no"
17693 rm -f conftest.err conftest.$ac_objext \
17694 conftest$ac_exeext conftest.$ac_ext
17696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17698 if test `eval echo '${'$as_ac_var'}'` = yes; then
17699 cat >>confdefs.h <<_ACEOF
17700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17705 "$ac_func.$ac_objext" | \
17706 *" $ac_func.$ac_objext" | \
17707 "$ac_func.$ac_objext "* | \
17708 *" $ac_func.$ac_objext "* ) ;;
17709 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
17716 if test $ac_cv_func_mkstemp = no; then
17717 gl_cv_func_mkstemp_limitations=yes
17719 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
17720 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
17721 if test "${gl_cv_func_mkstemp_limitations+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17725 if test "$cross_compiling" = yes; then
17726 gl_cv_func_mkstemp_limitations=yes
17729 cat >conftest.$ac_ext <<_ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h. */
17736 # include <stdlib.h>
17740 for (i = 0; i < 70; i++)
17742 char template[] = "conftestXXXXXX";
17743 int fd = mkstemp (template);
17752 rm -f conftest$ac_exeext
17753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17754 (eval $ac_link) 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759 (eval $ac_try) 2>&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; }; then
17763 gl_cv_func_mkstemp_limitations=no
17765 echo "$as_me: program exited with status $ac_status" >&5
17766 echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17769 ( exit $ac_status )
17770 gl_cv_func_mkstemp_limitations=yes
17772 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17777 echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5
17778 echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6
17781 if test $gl_cv_func_mkstemp_limitations = yes; then
17783 "mkstemp.$ac_objext" | \
17784 *" mkstemp.$ac_objext" | \
17785 "mkstemp.$ac_objext "* | \
17786 *" mkstemp.$ac_objext "* ) ;;
17787 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
17791 "tempname.$ac_objext" | \
17792 *" tempname.$ac_objext" | \
17793 "tempname.$ac_objext "* | \
17794 *" tempname.$ac_objext "* ) ;;
17795 *) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;;
17799 cat >>confdefs.h <<\_ACEOF
17800 #define mkstemp rpl_mkstemp
17821 for ac_header in stdint.h
17823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17825 echo "$as_me:$LINENO: checking for $ac_header" >&5
17826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17833 # Is the header compilable?
17834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17836 cat >conftest.$ac_ext <<_ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h. */
17842 $ac_includes_default
17843 #include <$ac_header>
17845 rm -f conftest.$ac_objext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17847 (eval $ac_compile) 2>conftest.er1
17849 grep -v '^ *+' conftest.er1 >conftest.err
17851 cat conftest.err >&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } &&
17854 { ac_try='test -z "$ac_c_werror_flag"
17855 || test ! -s conftest.err'
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; } &&
17861 { ac_try='test -s conftest.$ac_objext'
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; }; then
17867 ac_header_compiler=yes
17869 echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17872 ac_header_compiler=no
17874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17876 echo "${ECHO_T}$ac_header_compiler" >&6
17878 # Is the header present?
17879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17881 cat >conftest.$ac_ext <<_ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17887 #include <$ac_header>
17889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17892 grep -v '^ *+' conftest.er1 >conftest.err
17894 cat conftest.err >&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); } >/dev/null; then
17897 if test -s conftest.err; then
17898 ac_cpp_err=$ac_c_preproc_warn_flag
17899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17906 if test -z "$ac_cpp_err"; then
17907 ac_header_preproc=yes
17909 echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17912 ac_header_preproc=no
17914 rm -f conftest.err conftest.$ac_ext
17915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17916 echo "${ECHO_T}$ac_header_preproc" >&6
17918 # So? What about this header?
17919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17925 ac_header_preproc=yes
17928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17942 ## ------------------------------ ##
17943 ## Report this to bug-cvs@gnu.org ##
17944 ## ------------------------------ ##
17947 sed "s/^/$as_me: WARNING: /" >&2
17950 echo "$as_me:$LINENO: checking for $ac_header" >&5
17951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 eval "$as_ac_Header=\$ac_header_preproc"
17957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17962 cat >>confdefs.h <<_ACEOF
17963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17972 for ac_func in __secure_getenv gettimeofday
17974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17975 echo "$as_me:$LINENO: checking for $ac_func" >&5
17976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17977 if eval "test \"\${$as_ac_var+set}\" = set"; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17980 cat >conftest.$ac_ext <<_ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h. */
17986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17988 #define $ac_func innocuous_$ac_func
17990 /* System header to define __stub macros and hopefully few prototypes,
17991 which can conflict with char $ac_func (); below.
17992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17993 <limits.h> exists even on freestanding compilers. */
17996 # include <limits.h>
17998 # include <assert.h>
18003 /* Override any gcc2 internal prototype to avoid an error. */
18008 /* We use char because int might match the return type of a gcc2
18009 builtin and then its argument prototype would still apply. */
18011 /* The GNU C library defines this for functions which it implements
18012 to always fail with ENOSYS. Some functions are actually named
18013 something starting with __ and the normal name is an alias. */
18014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18017 char (*f) () = $ac_func;
18026 return f != $ac_func;
18031 rm -f conftest.$ac_objext conftest$ac_exeext
18032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18033 (eval $ac_link) 2>conftest.er1
18035 grep -v '^ *+' conftest.er1 >conftest.err
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } &&
18040 { ac_try='test -z "$ac_c_werror_flag"
18041 || test ! -s conftest.err'
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; } &&
18047 { ac_try='test -s conftest$ac_exeext'
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 eval "$as_ac_var=yes"
18055 echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 eval "$as_ac_var=no"
18060 rm -f conftest.err conftest.$ac_objext \
18061 conftest$ac_exeext conftest.$ac_ext
18063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18065 if test `eval echo '${'$as_ac_var'}'` = yes; then
18066 cat >>confdefs.h <<_ACEOF
18067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18086 if test $ac_cv_func_working_mktime = no; then
18088 cat >>confdefs.h <<\_ACEOF
18089 #define mktime rpl_mktime
18096 nanosleep_save_libs=$LIBS
18098 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
18099 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
18100 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
18101 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
18102 if test "${ac_cv_search_nanosleep+set}" = set; then
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
18105 ac_func_search_save_LIBS=$LIBS
18106 ac_cv_search_nanosleep=no
18107 cat >conftest.$ac_ext <<_ACEOF
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18114 /* Override any gcc2 internal prototype to avoid an error. */
18118 /* We use char because int might match the return type of a gcc2
18119 builtin and then its argument prototype would still apply. */
18129 rm -f conftest.$ac_objext conftest$ac_exeext
18130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18131 (eval $ac_link) 2>conftest.er1
18133 grep -v '^ *+' conftest.er1 >conftest.err
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } &&
18138 { ac_try='test -z "$ac_c_werror_flag"
18139 || test ! -s conftest.err'
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; } &&
18145 { ac_try='test -s conftest$ac_exeext'
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; }; then
18151 ac_cv_search_nanosleep="none required"
18153 echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18157 rm -f conftest.err conftest.$ac_objext \
18158 conftest$ac_exeext conftest.$ac_ext
18159 if test "$ac_cv_search_nanosleep" = no; then
18160 for ac_lib in rt posix4; do
18161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18162 cat >conftest.$ac_ext <<_ACEOF
18165 cat confdefs.h >>conftest.$ac_ext
18166 cat >>conftest.$ac_ext <<_ACEOF
18167 /* end confdefs.h. */
18169 /* Override any gcc2 internal prototype to avoid an error. */
18173 /* We use char because int might match the return type of a gcc2
18174 builtin and then its argument prototype would still apply. */
18184 rm -f conftest.$ac_objext conftest$ac_exeext
18185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18186 (eval $ac_link) 2>conftest.er1
18188 grep -v '^ *+' conftest.er1 >conftest.err
18190 cat conftest.err >&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } &&
18193 { ac_try='test -z "$ac_c_werror_flag"
18194 || test ! -s conftest.err'
18195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18196 (eval $ac_try) 2>&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; } &&
18200 { ac_try='test -s conftest$ac_exeext'
18201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202 (eval $ac_try) 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; }; then
18206 ac_cv_search_nanosleep="-l$ac_lib"
18209 echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18213 rm -f conftest.err conftest.$ac_objext \
18214 conftest$ac_exeext conftest.$ac_ext
18217 LIBS=$ac_func_search_save_LIBS
18219 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
18220 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
18221 if test "$ac_cv_search_nanosleep" != no; then
18222 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
18223 test "$ac_cv_search_nanosleep" = "none required" ||
18224 LIB_NANOSLEEP=$ac_cv_search_nanosleep
18229 echo "$as_me:$LINENO: checking whether nanosleep works" >&5
18230 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
18231 if test "${jm_cv_func_nanosleep_works+set}" = set; then
18232 echo $ECHO_N "(cached) $ECHO_C" >&6
18243 if test "$cross_compiling" = yes; then
18244 jm_cv_func_nanosleep_works=no
18246 cat >conftest.$ac_ext <<_ACEOF
18249 cat confdefs.h >>conftest.$ac_ext
18250 cat >>conftest.$ac_ext <<_ACEOF
18251 /* end confdefs.h. */
18253 # if TIME_WITH_SYS_TIME
18254 # include <sys/time.h>
18257 # if HAVE_SYS_TIME_H
18258 # include <sys/time.h>
18267 struct timespec ts_sleep, ts_remaining;
18268 ts_sleep.tv_sec = 0;
18269 ts_sleep.tv_nsec = 1;
18270 exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
18274 rm -f conftest$ac_exeext
18275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18276 (eval $ac_link) 2>&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; }; then
18285 jm_cv_func_nanosleep_works=yes
18287 echo "$as_me: program exited with status $ac_status" >&5
18288 echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18291 ( exit $ac_status )
18292 jm_cv_func_nanosleep_works=no
18294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18298 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
18299 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
18300 if test $jm_cv_func_nanosleep_works = no; then
18302 "nanosleep.$ac_objext" | \
18303 *" nanosleep.$ac_objext" | \
18304 "nanosleep.$ac_objext "* | \
18305 *" nanosleep.$ac_objext "* ) ;;
18306 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext" ;;
18310 cat >>confdefs.h <<\_ACEOF
18311 #define nanosleep rpl_nanosleep
18325 LIBS=$nanosleep_save_libs
18341 for ac_func in readlink
18343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18344 echo "$as_me:$LINENO: checking for $ac_func" >&5
18345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18346 if eval "test \"\${$as_ac_var+set}\" = set"; then
18347 echo $ECHO_N "(cached) $ECHO_C" >&6
18349 cat >conftest.$ac_ext <<_ACEOF
18352 cat confdefs.h >>conftest.$ac_ext
18353 cat >>conftest.$ac_ext <<_ACEOF
18354 /* end confdefs.h. */
18355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18357 #define $ac_func innocuous_$ac_func
18359 /* System header to define __stub macros and hopefully few prototypes,
18360 which can conflict with char $ac_func (); below.
18361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18362 <limits.h> exists even on freestanding compilers. */
18365 # include <limits.h>
18367 # include <assert.h>
18372 /* Override any gcc2 internal prototype to avoid an error. */
18377 /* We use char because int might match the return type of a gcc2
18378 builtin and then its argument prototype would still apply. */
18380 /* The GNU C library defines this for functions which it implements
18381 to always fail with ENOSYS. Some functions are actually named
18382 something starting with __ and the normal name is an alias. */
18383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18386 char (*f) () = $ac_func;
18395 return f != $ac_func;
18400 rm -f conftest.$ac_objext conftest$ac_exeext
18401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18402 (eval $ac_link) 2>conftest.er1
18404 grep -v '^ *+' conftest.er1 >conftest.err
18406 cat conftest.err >&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
18409 { ac_try='test -z "$ac_c_werror_flag"
18410 || test ! -s conftest.err'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; } &&
18416 { ac_try='test -s conftest$ac_exeext'
18417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; }; then
18422 eval "$as_ac_var=yes"
18424 echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.$ac_ext >&5
18427 eval "$as_ac_var=no"
18429 rm -f conftest.err conftest.$ac_objext \
18430 conftest$ac_exeext conftest.$ac_ext
18432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18434 if test `eval echo '${'$as_ac_var'}'` = yes; then
18435 cat >>confdefs.h <<_ACEOF
18436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18442 if test $ac_cv_func_readlink = no; then
18444 "readlink.$ac_objext" | \
18445 *" readlink.$ac_objext" | \
18446 "readlink.$ac_objext "* | \
18447 *" readlink.$ac_objext "* ) ;;
18448 *) LIBOBJS="$LIBOBJS readlink.$ac_objext" ;;
18457 for ac_header in stdlib.h
18459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18461 echo "$as_me:$LINENO: checking for $ac_header" >&5
18462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18464 echo $ECHO_N "(cached) $ECHO_C" >&6
18466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18469 # Is the header compilable?
18470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18472 cat >conftest.$ac_ext <<_ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h. */
18478 $ac_includes_default
18479 #include <$ac_header>
18481 rm -f conftest.$ac_objext
18482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18483 (eval $ac_compile) 2>conftest.er1
18485 grep -v '^ *+' conftest.er1 >conftest.err
18487 cat conftest.err >&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); } &&
18490 { ac_try='test -z "$ac_c_werror_flag"
18491 || test ! -s conftest.err'
18492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18493 (eval $ac_try) 2>&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; } &&
18497 { ac_try='test -s conftest.$ac_objext'
18498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499 (eval $ac_try) 2>&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; }; then
18503 ac_header_compiler=yes
18505 echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18508 ac_header_compiler=no
18510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18512 echo "${ECHO_T}$ac_header_compiler" >&6
18514 # Is the header present?
18515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18517 cat >conftest.$ac_ext <<_ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18523 #include <$ac_header>
18525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18528 grep -v '^ *+' conftest.er1 >conftest.err
18530 cat conftest.err >&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); } >/dev/null; then
18533 if test -s conftest.err; then
18534 ac_cpp_err=$ac_c_preproc_warn_flag
18535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18542 if test -z "$ac_cpp_err"; then
18543 ac_header_preproc=yes
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18548 ac_header_preproc=no
18550 rm -f conftest.err conftest.$ac_ext
18551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18552 echo "${ECHO_T}$ac_header_preproc" >&6
18554 # So? What about this header?
18555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18561 ac_header_preproc=yes
18564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18578 ## ------------------------------ ##
18579 ## Report this to bug-cvs@gnu.org ##
18580 ## ------------------------------ ##
18583 sed "s/^/$as_me: WARNING: /" >&2
18586 echo "$as_me:$LINENO: checking for $ac_header" >&5
18587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
18591 eval "$as_ac_Header=\$ac_header_preproc"
18593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18598 cat >>confdefs.h <<_ACEOF
18599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18606 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
18607 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
18608 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
18609 echo $ECHO_N "(cached) $ECHO_C" >&6
18611 if test "$cross_compiling" = yes; then
18612 ac_cv_func_realloc_0_nonnull=no
18614 cat >conftest.$ac_ext <<_ACEOF
18617 cat confdefs.h >>conftest.$ac_ext
18618 cat >>conftest.$ac_ext <<_ACEOF
18619 /* end confdefs.h. */
18620 #if STDC_HEADERS || HAVE_STDLIB_H
18621 # include <stdlib.h>
18629 exit (realloc (0, 0) ? 0 : 1);
18634 rm -f conftest$ac_exeext
18635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18636 (eval $ac_link) 2>&5
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; }; then
18645 ac_cv_func_realloc_0_nonnull=yes
18647 echo "$as_me: program exited with status $ac_status" >&5
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18651 ( exit $ac_status )
18652 ac_cv_func_realloc_0_nonnull=no
18654 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18657 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
18658 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
18659 if test $ac_cv_func_realloc_0_nonnull = yes; then
18661 cat >>confdefs.h <<\_ACEOF
18662 #define HAVE_REALLOC 1
18666 cat >>confdefs.h <<\_ACEOF
18667 #define HAVE_REALLOC 0
18671 "realloc.$ac_objext" | \
18672 *" realloc.$ac_objext" | \
18673 "realloc.$ac_objext "* | \
18674 *" realloc.$ac_objext "* ) ;;
18675 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
18679 cat >>confdefs.h <<\_ACEOF
18680 #define realloc rpl_realloc
18690 # Assume we'll default to using the included regex.c.
18691 ac_use_included_regex=yes
18693 # However, if the system regex support is good enough that it passes the
18694 # the following run test, then default to *not* using the included regex.c.
18695 # If cross compiling, assume the test would fail and use the included
18696 # regex.c. The first failing regular expression is from `Spencer ere
18697 # test #75' in grep-2.3.
18698 echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
18699 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
18700 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
18703 if test "$cross_compiling" = yes; then
18704 jm_cv_func_working_re_compile_pattern=no
18706 cat >conftest.$ac_ext <<_ACEOF
18709 cat confdefs.h >>conftest.$ac_ext
18710 cat >>conftest.$ac_ext <<_ACEOF
18711 /* end confdefs.h. */
18713 #include <string.h>
18718 static struct re_pattern_buffer regex;
18720 struct re_registers regs;
18721 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
18722 memset (®ex, 0, sizeof (regex));
18723 s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex);
18724 /* This should fail with _Invalid character class name_ error. */
18728 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
18729 memset (®ex, 0, sizeof (regex));
18730 s = re_compile_pattern ("{1", 2, ®ex);
18735 /* The following example is derived from a problem report
18736 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
18737 memset (®ex, 0, sizeof (regex));
18738 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
18742 /* This should match, but doesn't for e.g. glibc-2.2.1. */
18743 if (re_match (®ex, "an", 2, 0, ®s) != 2)
18746 memset (®ex, 0, sizeof (regex));
18747 s = re_compile_pattern ("x", 1, ®ex);
18751 /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
18752 work with a negative RANGE argument. */
18753 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
18760 rm -f conftest$ac_exeext
18761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18762 (eval $ac_link) 2>&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 jm_cv_func_working_re_compile_pattern=yes
18773 echo "$as_me: program exited with status $ac_status" >&5
18774 echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18777 ( exit $ac_status )
18778 jm_cv_func_working_re_compile_pattern=no
18780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18783 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
18784 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
18785 if test $jm_cv_func_working_re_compile_pattern = yes; then
18786 ac_use_included_regex=no
18789 test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
18790 echo "$as_me: error: missing argument" >&2;}
18791 { (exit 1); exit 1; }; }
18795 # Check whether --with-included-regex or --without-included-regex was given.
18796 if test "${with_included_regex+set}" = set; then
18797 withval="$with_included_regex"
18798 jm_with_regex=$withval
18800 jm_with_regex=$ac_use_included_regex
18802 if test "$jm_with_regex" = yes; then
18804 "regex.$ac_objext" | \
18805 *" regex.$ac_objext" | \
18806 "regex.$ac_objext "* | \
18807 *" regex.$ac_objext "* ) ;;
18808 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
18839 for ac_func in btowc
18841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18842 echo "$as_me:$LINENO: checking for $ac_func" >&5
18843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18844 if eval "test \"\${$as_ac_var+set}\" = set"; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18847 cat >conftest.$ac_ext <<_ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h. */
18853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18855 #define $ac_func innocuous_$ac_func
18857 /* System header to define __stub macros and hopefully few prototypes,
18858 which can conflict with char $ac_func (); below.
18859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18860 <limits.h> exists even on freestanding compilers. */
18863 # include <limits.h>
18865 # include <assert.h>
18870 /* Override any gcc2 internal prototype to avoid an error. */
18875 /* We use char because int might match the return type of a gcc2
18876 builtin and then its argument prototype would still apply. */
18878 /* The GNU C library defines this for functions which it implements
18879 to always fail with ENOSYS. Some functions are actually named
18880 something starting with __ and the normal name is an alias. */
18881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18884 char (*f) () = $ac_func;
18893 return f != $ac_func;
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18900 (eval $ac_link) 2>conftest.er1
18902 grep -v '^ *+' conftest.er1 >conftest.err
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } &&
18907 { ac_try='test -z "$ac_c_werror_flag"
18908 || test ! -s conftest.err'
18909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; } &&
18914 { ac_try='test -s conftest$ac_exeext'
18915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; }; then
18920 eval "$as_ac_var=yes"
18922 echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18925 eval "$as_ac_var=no"
18927 rm -f conftest.err conftest.$ac_objext \
18928 conftest$ac_exeext conftest.$ac_ext
18930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18932 if test `eval echo '${'$as_ac_var'}'` = yes; then
18933 cat >>confdefs.h <<_ACEOF
18934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18946 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
18947 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
18948 if test "${gl_cv_c_restrict+set}" = set; then
18949 echo $ECHO_N "(cached) $ECHO_C" >&6
18951 gl_cv_c_restrict=no
18952 # Try the official restrict keyword, then gcc's __restrict, and
18953 # the less common variants.
18954 for ac_kw in restrict __restrict __restrict__ _Restrict; do
18955 cat >conftest.$ac_ext <<_ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18963 rm -f conftest.$ac_objext
18964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18965 (eval $ac_compile) 2>conftest.er1
18967 grep -v '^ *+' conftest.er1 >conftest.err
18969 cat conftest.err >&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } &&
18972 { ac_try='test -z "$ac_c_werror_flag"
18973 || test ! -s conftest.err'
18974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975 (eval $ac_try) 2>&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; } &&
18979 { ac_try='test -s conftest.$ac_objext'
18980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18981 (eval $ac_try) 2>&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; }; then
18985 gl_cv_c_restrict=$ac_kw; break
18987 echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.$ac_ext >&5
18991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18995 echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
18996 echo "${ECHO_T}$gl_cv_c_restrict" >&6
18997 case $gl_cv_c_restrict in
19000 cat >>confdefs.h <<\_ACEOF
19004 *) cat >>confdefs.h <<_ACEOF
19005 #define restrict $gl_cv_c_restrict
19012 for ac_func in rpmatch
19014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19015 echo "$as_me:$LINENO: checking for $ac_func" >&5
19016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19017 if eval "test \"\${$as_ac_var+set}\" = set"; then
19018 echo $ECHO_N "(cached) $ECHO_C" >&6
19020 cat >conftest.$ac_ext <<_ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h. */
19026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19028 #define $ac_func innocuous_$ac_func
19030 /* System header to define __stub macros and hopefully few prototypes,
19031 which can conflict with char $ac_func (); below.
19032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19033 <limits.h> exists even on freestanding compilers. */
19036 # include <limits.h>
19038 # include <assert.h>
19043 /* Override any gcc2 internal prototype to avoid an error. */
19048 /* We use char because int might match the return type of a gcc2
19049 builtin and then its argument prototype would still apply. */
19051 /* The GNU C library defines this for functions which it implements
19052 to always fail with ENOSYS. Some functions are actually named
19053 something starting with __ and the normal name is an alias. */
19054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19057 char (*f) () = $ac_func;
19066 return f != $ac_func;
19071 rm -f conftest.$ac_objext conftest$ac_exeext
19072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19073 (eval $ac_link) 2>conftest.er1
19075 grep -v '^ *+' conftest.er1 >conftest.err
19077 cat conftest.err >&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); } &&
19080 { ac_try='test -z "$ac_c_werror_flag"
19081 || test ! -s conftest.err'
19082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19083 (eval $ac_try) 2>&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; } &&
19087 { ac_try='test -s conftest$ac_exeext'
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; }; then
19093 eval "$as_ac_var=yes"
19095 echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19098 eval "$as_ac_var=no"
19100 rm -f conftest.err conftest.$ac_objext \
19101 conftest$ac_exeext conftest.$ac_ext
19103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19105 if test `eval echo '${'$as_ac_var'}'` = yes; then
19106 cat >>confdefs.h <<_ACEOF
19107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19112 "$ac_func.$ac_objext" | \
19113 *" $ac_func.$ac_objext" | \
19114 "$ac_func.$ac_objext "* | \
19115 *" $ac_func.$ac_objext "* ) ;;
19116 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19123 if test $ac_cv_func_rpmatch = no; then
19139 for ac_func in fchdir
19141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19142 echo "$as_me:$LINENO: checking for $ac_func" >&5
19143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19144 if eval "test \"\${$as_ac_var+set}\" = set"; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19147 cat >conftest.$ac_ext <<_ACEOF
19150 cat confdefs.h >>conftest.$ac_ext
19151 cat >>conftest.$ac_ext <<_ACEOF
19152 /* end confdefs.h. */
19153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19155 #define $ac_func innocuous_$ac_func
19157 /* System header to define __stub macros and hopefully few prototypes,
19158 which can conflict with char $ac_func (); below.
19159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19160 <limits.h> exists even on freestanding compilers. */
19163 # include <limits.h>
19165 # include <assert.h>
19170 /* Override any gcc2 internal prototype to avoid an error. */
19175 /* We use char because int might match the return type of a gcc2
19176 builtin and then its argument prototype would still apply. */
19178 /* The GNU C library defines this for functions which it implements
19179 to always fail with ENOSYS. Some functions are actually named
19180 something starting with __ and the normal name is an alias. */
19181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19184 char (*f) () = $ac_func;
19193 return f != $ac_func;
19198 rm -f conftest.$ac_objext conftest$ac_exeext
19199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19200 (eval $ac_link) 2>conftest.er1
19202 grep -v '^ *+' conftest.er1 >conftest.err
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } &&
19207 { ac_try='test -z "$ac_c_werror_flag"
19208 || test ! -s conftest.err'
19209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210 (eval $ac_try) 2>&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; } &&
19214 { ac_try='test -s conftest$ac_exeext'
19215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; }; then
19220 eval "$as_ac_var=yes"
19222 echo "$as_me: failed program was:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19225 eval "$as_ac_var=no"
19227 rm -f conftest.err conftest.$ac_objext \
19228 conftest$ac_exeext conftest.$ac_ext
19230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19232 if test `eval echo '${'$as_ac_var'}'` = yes; then
19233 cat >>confdefs.h <<_ACEOF
19234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19244 for ac_func in setenv unsetenv
19246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19247 echo "$as_me:$LINENO: checking for $ac_func" >&5
19248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19249 if eval "test \"\${$as_ac_var+set}\" = set"; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
19252 cat >conftest.$ac_ext <<_ACEOF
19255 cat confdefs.h >>conftest.$ac_ext
19256 cat >>conftest.$ac_ext <<_ACEOF
19257 /* end confdefs.h. */
19258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19260 #define $ac_func innocuous_$ac_func
19262 /* System header to define __stub macros and hopefully few prototypes,
19263 which can conflict with char $ac_func (); below.
19264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19265 <limits.h> exists even on freestanding compilers. */
19268 # include <limits.h>
19270 # include <assert.h>
19275 /* Override any gcc2 internal prototype to avoid an error. */
19280 /* We use char because int might match the return type of a gcc2
19281 builtin and then its argument prototype would still apply. */
19283 /* The GNU C library defines this for functions which it implements
19284 to always fail with ENOSYS. Some functions are actually named
19285 something starting with __ and the normal name is an alias. */
19286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19289 char (*f) () = $ac_func;
19298 return f != $ac_func;
19303 rm -f conftest.$ac_objext conftest$ac_exeext
19304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19305 (eval $ac_link) 2>conftest.er1
19307 grep -v '^ *+' conftest.er1 >conftest.err
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } &&
19312 { ac_try='test -z "$ac_c_werror_flag"
19313 || test ! -s conftest.err'
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; } &&
19319 { ac_try='test -s conftest$ac_exeext'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 eval "$as_ac_var=yes"
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19330 eval "$as_ac_var=no"
19332 rm -f conftest.err conftest.$ac_objext \
19333 conftest$ac_exeext conftest.$ac_ext
19335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19337 if test `eval echo '${'$as_ac_var'}'` = yes; then
19338 cat >>confdefs.h <<_ACEOF
19339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19344 "$ac_func.$ac_objext" | \
19345 *" $ac_func.$ac_objext" | \
19346 "$ac_func.$ac_objext "* | \
19347 *" $ac_func.$ac_objext "* ) ;;
19348 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19355 if test $ac_cv_func_setenv = no; then
19366 for ac_header in search.h
19368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19370 echo "$as_me:$LINENO: checking for $ac_header" >&5
19371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19378 # Is the header compilable?
19379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19381 cat >conftest.$ac_ext <<_ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19387 $ac_includes_default
19388 #include <$ac_header>
19390 rm -f conftest.$ac_objext
19391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19392 (eval $ac_compile) 2>conftest.er1
19394 grep -v '^ *+' conftest.er1 >conftest.err
19396 cat conftest.err >&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } &&
19399 { ac_try='test -z "$ac_c_werror_flag"
19400 || test ! -s conftest.err'
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try='test -s conftest.$ac_objext'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; }; then
19412 ac_header_compiler=yes
19414 echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19417 ac_header_compiler=no
19419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19421 echo "${ECHO_T}$ac_header_compiler" >&6
19423 # Is the header present?
19424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19426 cat >conftest.$ac_ext <<_ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19432 #include <$ac_header>
19434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19437 grep -v '^ *+' conftest.er1 >conftest.err
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } >/dev/null; then
19442 if test -s conftest.err; then
19443 ac_cpp_err=$ac_c_preproc_warn_flag
19444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19451 if test -z "$ac_cpp_err"; then
19452 ac_header_preproc=yes
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19457 ac_header_preproc=no
19459 rm -f conftest.err conftest.$ac_ext
19460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19461 echo "${ECHO_T}$ac_header_preproc" >&6
19463 # So? What about this header?
19464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19470 ac_header_preproc=yes
19473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19487 ## ------------------------------ ##
19488 ## Report this to bug-cvs@gnu.org ##
19489 ## ------------------------------ ##
19492 sed "s/^/$as_me: WARNING: /" >&2
19495 echo "$as_me:$LINENO: checking for $ac_header" >&5
19496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19498 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 eval "$as_ac_Header=\$ac_header_preproc"
19502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19507 cat >>confdefs.h <<_ACEOF
19508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19516 for ac_func in tsearch
19518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19519 echo "$as_me:$LINENO: checking for $ac_func" >&5
19520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19521 if eval "test \"\${$as_ac_var+set}\" = set"; then
19522 echo $ECHO_N "(cached) $ECHO_C" >&6
19524 cat >conftest.$ac_ext <<_ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h. */
19530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19532 #define $ac_func innocuous_$ac_func
19534 /* System header to define __stub macros and hopefully few prototypes,
19535 which can conflict with char $ac_func (); below.
19536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19537 <limits.h> exists even on freestanding compilers. */
19540 # include <limits.h>
19542 # include <assert.h>
19547 /* Override any gcc2 internal prototype to avoid an error. */
19552 /* We use char because int might match the return type of a gcc2
19553 builtin and then its argument prototype would still apply. */
19555 /* The GNU C library defines this for functions which it implements
19556 to always fail with ENOSYS. Some functions are actually named
19557 something starting with __ and the normal name is an alias. */
19558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19561 char (*f) () = $ac_func;
19570 return f != $ac_func;
19575 rm -f conftest.$ac_objext conftest$ac_exeext
19576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19577 (eval $ac_link) 2>conftest.er1
19579 grep -v '^ *+' conftest.er1 >conftest.err
19581 cat conftest.err >&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } &&
19584 { ac_try='test -z "$ac_c_werror_flag"
19585 || test ! -s conftest.err'
19586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587 (eval $ac_try) 2>&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); }; } &&
19591 { ac_try='test -s conftest$ac_exeext'
19592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19593 (eval $ac_try) 2>&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; }; then
19597 eval "$as_ac_var=yes"
19599 echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19602 eval "$as_ac_var=no"
19604 rm -f conftest.err conftest.$ac_objext \
19605 conftest$ac_exeext conftest.$ac_ext
19607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19609 if test `eval echo '${'$as_ac_var'}'` = yes; then
19610 cat >>confdefs.h <<_ACEOF
19611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19619 echo "$as_me:$LINENO: checking if errno is properly declared" >&5
19620 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
19621 if test "${gt_cv_var_errno_declaration+set}" = set; then
19622 echo $ECHO_N "(cached) $ECHO_C" >&6
19625 cat >conftest.$ac_ext <<_ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h. */
19632 extern struct { int foo; } errno;
19641 rm -f conftest.$ac_objext
19642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19643 (eval $ac_compile) 2>conftest.er1
19645 grep -v '^ *+' conftest.er1 >conftest.err
19647 cat conftest.err >&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } &&
19650 { ac_try='test -z "$ac_c_werror_flag"
19651 || test ! -s conftest.err'
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; } &&
19657 { ac_try='test -s conftest.$ac_objext'
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; }; then
19663 gt_cv_var_errno_declaration=no
19665 echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19668 gt_cv_var_errno_declaration=yes
19670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19673 echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
19674 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
19675 if test $gt_cv_var_errno_declaration = yes; then
19677 cat >>confdefs.h <<\_ACEOF
19678 #define HAVE_ERRNO_DECL 1
19685 echo "$as_me:$LINENO: checking if environ is properly declared" >&5
19686 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
19687 if test "${gt_cv_var_environ_declaration+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19691 cat >conftest.$ac_ext <<_ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19697 #include <unistd.h>
19698 extern struct { int foo; } environ;
19707 rm -f conftest.$ac_objext
19708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19709 (eval $ac_compile) 2>conftest.er1
19711 grep -v '^ *+' conftest.er1 >conftest.err
19713 cat conftest.err >&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } &&
19716 { ac_try='test -z "$ac_c_werror_flag"
19717 || test ! -s conftest.err'
19718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719 (eval $ac_try) 2>&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; } &&
19723 { ac_try='test -s conftest.$ac_objext'
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; }; then
19729 gt_cv_var_environ_declaration=no
19731 echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19734 gt_cv_var_environ_declaration=yes
19736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19739 echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
19740 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
19741 if test $gt_cv_var_environ_declaration = yes; then
19743 cat >>confdefs.h <<\_ACEOF
19744 #define HAVE_ENVIRON_DECL 1
19751 if test $ac_cv_func_unsetenv = no; then
19762 echo "$as_me:$LINENO: checking if errno is properly declared" >&5
19763 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
19764 if test "${gt_cv_var_errno_declaration+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19768 cat >conftest.$ac_ext <<_ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19775 extern struct { int foo; } errno;
19784 rm -f conftest.$ac_objext
19785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19786 (eval $ac_compile) 2>conftest.er1
19788 grep -v '^ *+' conftest.er1 >conftest.err
19790 cat conftest.err >&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } &&
19793 { ac_try='test -z "$ac_c_werror_flag"
19794 || test ! -s conftest.err'
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; } &&
19800 { ac_try='test -s conftest.$ac_objext'
19801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19802 (eval $ac_try) 2>&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; }; then
19806 gt_cv_var_errno_declaration=no
19808 echo "$as_me: failed program was:" >&5
19809 sed 's/^/| /' conftest.$ac_ext >&5
19811 gt_cv_var_errno_declaration=yes
19813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19816 echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
19817 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
19818 if test $gt_cv_var_errno_declaration = yes; then
19820 cat >>confdefs.h <<\_ACEOF
19821 #define HAVE_ERRNO_DECL 1
19828 echo "$as_me:$LINENO: checking if environ is properly declared" >&5
19829 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
19830 if test "${gt_cv_var_environ_declaration+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840 #include <unistd.h>
19841 extern struct { int foo; } environ;
19850 rm -f conftest.$ac_objext
19851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19852 (eval $ac_compile) 2>conftest.er1
19854 grep -v '^ *+' conftest.er1 >conftest.err
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
19859 { ac_try='test -z "$ac_c_werror_flag"
19860 || test ! -s conftest.err'
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try='test -s conftest.$ac_objext'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 gt_cv_var_environ_declaration=no
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19877 gt_cv_var_environ_declaration=yes
19879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19882 echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
19883 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
19884 if test $gt_cv_var_environ_declaration = yes; then
19886 cat >>confdefs.h <<\_ACEOF
19887 #define HAVE_ENVIRON_DECL 1
19894 echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
19895 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6
19896 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19899 cat >conftest.$ac_ext <<_ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19905 #include <stdlib.h>
19910 #if defined(__STDC__) || defined(__cplusplus)
19911 int unsetenv (const char *name);
19924 rm -f conftest.$ac_objext
19925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19926 (eval $ac_compile) 2>conftest.er1
19928 grep -v '^ *+' conftest.er1 >conftest.err
19930 cat conftest.err >&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } &&
19933 { ac_try='test -z "$ac_c_werror_flag"
19934 || test ! -s conftest.err'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; } &&
19940 { ac_try='test -s conftest.$ac_objext'
19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; }; then
19946 gt_cv_func_unsetenv_ret='int'
19948 echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19951 gt_cv_func_unsetenv_ret='void'
19953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19955 echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
19956 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6
19957 if test $gt_cv_func_unsetenv_ret = 'void'; then
19959 cat >>confdefs.h <<\_ACEOF
19960 #define VOID_UNSETENV 1
19967 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
19968 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
19969 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19972 if test "$cross_compiling" = yes; then
19973 ac_cv_func_stat_empty_string_bug=yes
19975 cat >conftest.$ac_ext <<_ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 $ac_includes_default
19986 exit (stat ("", &sbuf) ? 1 : 0);
19991 rm -f conftest$ac_exeext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19993 (eval $ac_link) 2>&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998 (eval $ac_try) 2>&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; }; then
20002 ac_cv_func_stat_empty_string_bug=yes
20004 echo "$as_me: program exited with status $ac_status" >&5
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20008 ( exit $ac_status )
20009 ac_cv_func_stat_empty_string_bug=no
20011 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20014 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
20015 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
20016 if test $ac_cv_func_stat_empty_string_bug = yes; then
20018 "stat.$ac_objext" | \
20019 *" stat.$ac_objext" | \
20020 "stat.$ac_objext "* | \
20021 *" stat.$ac_objext "* ) ;;
20022 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
20026 cat >>confdefs.h <<_ACEOF
20027 #define HAVE_STAT_EMPTY_STRING_BUG 1
20032 if test $ac_cv_func_stat_empty_string_bug = yes; then
20041 # Define two additional variables used in the Makefile substitution.
20043 if test "$ac_cv_header_stdbool_h" = yes; then
20046 STDBOOL_H='stdbool.h'
20050 if test "$ac_cv_type__Bool" = yes; then
20059 for ac_header in sys/inttypes.h
20061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20063 echo "$as_me:$LINENO: checking for $ac_header" >&5
20064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20066 echo $ECHO_N "(cached) $ECHO_C" >&6
20068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20071 # Is the header compilable?
20072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20074 cat >conftest.$ac_ext <<_ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h. */
20080 $ac_includes_default
20081 #include <$ac_header>
20083 rm -f conftest.$ac_objext
20084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20085 (eval $ac_compile) 2>conftest.er1
20087 grep -v '^ *+' conftest.er1 >conftest.err
20089 cat conftest.err >&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } &&
20092 { ac_try='test -z "$ac_c_werror_flag"
20093 || test ! -s conftest.err'
20094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; } &&
20099 { ac_try='test -s conftest.$ac_objext'
20100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101 (eval $ac_try) 2>&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; }; then
20105 ac_header_compiler=yes
20107 echo "$as_me: failed program was:" >&5
20108 sed 's/^/| /' conftest.$ac_ext >&5
20110 ac_header_compiler=no
20112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20114 echo "${ECHO_T}$ac_header_compiler" >&6
20116 # Is the header present?
20117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20119 cat >conftest.$ac_ext <<_ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20125 #include <$ac_header>
20127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20130 grep -v '^ *+' conftest.er1 >conftest.err
20132 cat conftest.err >&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); } >/dev/null; then
20135 if test -s conftest.err; then
20136 ac_cpp_err=$ac_c_preproc_warn_flag
20137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20144 if test -z "$ac_cpp_err"; then
20145 ac_header_preproc=yes
20147 echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20150 ac_header_preproc=no
20152 rm -f conftest.err conftest.$ac_ext
20153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20154 echo "${ECHO_T}$ac_header_preproc" >&6
20156 # So? What about this header?
20157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20163 ac_header_preproc=yes
20166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20180 ## ------------------------------ ##
20181 ## Report this to bug-cvs@gnu.org ##
20182 ## ------------------------------ ##
20185 sed "s/^/$as_me: WARNING: /" >&2
20188 echo "$as_me:$LINENO: checking for $ac_header" >&5
20189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20191 echo $ECHO_N "(cached) $ECHO_C" >&6
20193 eval "$as_ac_Header=\$ac_header_preproc"
20195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20200 cat >>confdefs.h <<_ACEOF
20201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20209 echo "$as_me:$LINENO: checking for stdint.h" >&5
20210 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20211 if test "${gl_cv_header_stdint_h+set}" = set; then
20212 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 cat >conftest.$ac_ext <<_ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20221 #include <stdint.h>
20230 rm -f conftest.$ac_objext
20231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232 (eval $ac_compile) 2>conftest.er1
20234 grep -v '^ *+' conftest.er1 >conftest.err
20236 cat conftest.err >&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); } &&
20239 { ac_try='test -z "$ac_c_werror_flag"
20240 || test ! -s conftest.err'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; } &&
20246 { ac_try='test -s conftest.$ac_objext'
20247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248 (eval $ac_try) 2>&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
20252 gl_cv_header_stdint_h=yes
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20257 gl_cv_header_stdint_h=no
20259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20262 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
20263 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
20264 if test $gl_cv_header_stdint_h = yes; then
20266 cat >>confdefs.h <<\_ACEOF
20267 #define HAVE_STDINT_H 1
20272 STDINT_H='stdint.h'
20274 echo "$as_me:$LINENO: checking whether 'long' is 64 bit wide" >&5
20275 echo $ECHO_N "checking whether 'long' is 64 bit wide... $ECHO_C" >&6
20276 if test "${gl_cv_long_bitsize_64+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20280 cat >conftest.$ac_ext <<_ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20287 #define POW63 ((((((long) 1 << 15) << 15) << 15) << 15) << 3)
20288 #define POW64 ((((((long) 1 << 15) << 15) << 15) << 15) << 4)
20289 typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
20299 rm -f conftest.$ac_objext
20300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20301 (eval $ac_compile) 2>conftest.er1
20303 grep -v '^ *+' conftest.er1 >conftest.err
20305 cat conftest.err >&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); } &&
20308 { ac_try='test -z "$ac_c_werror_flag"
20309 || test ! -s conftest.err'
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; } &&
20315 { ac_try='test -s conftest.$ac_objext'
20316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317 (eval $ac_try) 2>&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; }; then
20321 gl_cv_long_bitsize_64=yes
20323 echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20326 gl_cv_long_bitsize_64=no
20328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20330 echo "$as_me:$LINENO: result: $gl_cv_long_bitsize_64" >&5
20331 echo "${ECHO_T}$gl_cv_long_bitsize_64" >&6
20332 if test $gl_cv_long_bitsize_64 = yes; then
20339 echo "$as_me:$LINENO: checking whether 'long long' is 64 bit wide" >&5
20340 echo $ECHO_N "checking whether 'long long' is 64 bit wide... $ECHO_C" >&6
20341 if test "${gl_cv_longlong_bitsize_64+set}" = set; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20345 cat >conftest.$ac_ext <<_ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h. */
20352 #define POW63 ((((((long long) 1 << 15) << 15) << 15) << 15) << 3)
20353 #define POW64 ((((((long long) 1 << 15) << 15) << 15) << 15) << 4)
20354 typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
20364 rm -f conftest.$ac_objext
20365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20366 (eval $ac_compile) 2>conftest.er1
20368 grep -v '^ *+' conftest.er1 >conftest.err
20370 cat conftest.err >&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } &&
20373 { ac_try='test -z "$ac_c_werror_flag"
20374 || test ! -s conftest.err'
20375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376 (eval $ac_try) 2>&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; } &&
20380 { ac_try='test -s conftest.$ac_objext'
20381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382 (eval $ac_try) 2>&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; }; then
20386 gl_cv_longlong_bitsize_64=yes
20388 echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20391 gl_cv_longlong_bitsize_64=no
20393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20395 echo "$as_me:$LINENO: result: $gl_cv_longlong_bitsize_64" >&5
20396 echo "${ECHO_T}$gl_cv_longlong_bitsize_64" >&6
20397 if test $gl_cv_longlong_bitsize_64 = yes; then
20398 HAVE_LONGLONG_64BIT=1
20400 HAVE_LONGLONG_64BIT=0
20410 for ac_func in strcasecmp
20412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20413 echo "$as_me:$LINENO: checking for $ac_func" >&5
20414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20415 if eval "test \"\${$as_ac_var+set}\" = set"; then
20416 echo $ECHO_N "(cached) $ECHO_C" >&6
20418 cat >conftest.$ac_ext <<_ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h. */
20424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20426 #define $ac_func innocuous_$ac_func
20428 /* System header to define __stub macros and hopefully few prototypes,
20429 which can conflict with char $ac_func (); below.
20430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20431 <limits.h> exists even on freestanding compilers. */
20434 # include <limits.h>
20436 # include <assert.h>
20441 /* Override any gcc2 internal prototype to avoid an error. */
20446 /* We use char because int might match the return type of a gcc2
20447 builtin and then its argument prototype would still apply. */
20449 /* The GNU C library defines this for functions which it implements
20450 to always fail with ENOSYS. Some functions are actually named
20451 something starting with __ and the normal name is an alias. */
20452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20455 char (*f) () = $ac_func;
20464 return f != $ac_func;
20469 rm -f conftest.$ac_objext conftest$ac_exeext
20470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20471 (eval $ac_link) 2>conftest.er1
20473 grep -v '^ *+' conftest.er1 >conftest.err
20475 cat conftest.err >&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } &&
20478 { ac_try='test -z "$ac_c_werror_flag"
20479 || test ! -s conftest.err'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; } &&
20485 { ac_try='test -s conftest$ac_exeext'
20486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487 (eval $ac_try) 2>&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; }; then
20491 eval "$as_ac_var=yes"
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20496 eval "$as_ac_var=no"
20498 rm -f conftest.err conftest.$ac_objext \
20499 conftest$ac_exeext conftest.$ac_ext
20501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20503 if test `eval echo '${'$as_ac_var'}'` = yes; then
20504 cat >>confdefs.h <<_ACEOF
20505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20510 "$ac_func.$ac_objext" | \
20511 *" $ac_func.$ac_objext" | \
20512 "$ac_func.$ac_objext "* | \
20513 *" $ac_func.$ac_objext "* ) ;;
20514 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20521 if test $ac_cv_func_strcasecmp = no; then
20529 for ac_func in strncasecmp
20531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20532 echo "$as_me:$LINENO: checking for $ac_func" >&5
20533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20534 if eval "test \"\${$as_ac_var+set}\" = set"; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
20537 cat >conftest.$ac_ext <<_ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20545 #define $ac_func innocuous_$ac_func
20547 /* System header to define __stub macros and hopefully few prototypes,
20548 which can conflict with char $ac_func (); below.
20549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20550 <limits.h> exists even on freestanding compilers. */
20553 # include <limits.h>
20555 # include <assert.h>
20560 /* Override any gcc2 internal prototype to avoid an error. */
20565 /* We use char because int might match the return type of a gcc2
20566 builtin and then its argument prototype would still apply. */
20568 /* The GNU C library defines this for functions which it implements
20569 to always fail with ENOSYS. Some functions are actually named
20570 something starting with __ and the normal name is an alias. */
20571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20574 char (*f) () = $ac_func;
20583 return f != $ac_func;
20588 rm -f conftest.$ac_objext conftest$ac_exeext
20589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20590 (eval $ac_link) 2>conftest.er1
20592 grep -v '^ *+' conftest.er1 >conftest.err
20594 cat conftest.err >&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } &&
20597 { ac_try='test -z "$ac_c_werror_flag"
20598 || test ! -s conftest.err'
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; } &&
20604 { ac_try='test -s conftest$ac_exeext'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; }; then
20610 eval "$as_ac_var=yes"
20612 echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.$ac_ext >&5
20615 eval "$as_ac_var=no"
20617 rm -f conftest.err conftest.$ac_objext \
20618 conftest$ac_exeext conftest.$ac_ext
20620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20622 if test `eval echo '${'$as_ac_var'}'` = yes; then
20623 cat >>confdefs.h <<_ACEOF
20624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20629 "$ac_func.$ac_objext" | \
20630 *" $ac_func.$ac_objext" | \
20631 "$ac_func.$ac_objext "* | \
20632 *" $ac_func.$ac_objext "* ) ;;
20633 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20640 if test $ac_cv_func_strncasecmp = no; then
20649 for ac_func in strerror
20651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20652 echo "$as_me:$LINENO: checking for $ac_func" >&5
20653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20654 if eval "test \"\${$as_ac_var+set}\" = set"; then
20655 echo $ECHO_N "(cached) $ECHO_C" >&6
20657 cat >conftest.$ac_ext <<_ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20665 #define $ac_func innocuous_$ac_func
20667 /* System header to define __stub macros and hopefully few prototypes,
20668 which can conflict with char $ac_func (); below.
20669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20670 <limits.h> exists even on freestanding compilers. */
20673 # include <limits.h>
20675 # include <assert.h>
20680 /* Override any gcc2 internal prototype to avoid an error. */
20685 /* We use char because int might match the return type of a gcc2
20686 builtin and then its argument prototype would still apply. */
20688 /* The GNU C library defines this for functions which it implements
20689 to always fail with ENOSYS. Some functions are actually named
20690 something starting with __ and the normal name is an alias. */
20691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20694 char (*f) () = $ac_func;
20703 return f != $ac_func;
20708 rm -f conftest.$ac_objext conftest$ac_exeext
20709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20710 (eval $ac_link) 2>conftest.er1
20712 grep -v '^ *+' conftest.er1 >conftest.err
20714 cat conftest.err >&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } &&
20717 { ac_try='test -z "$ac_c_werror_flag"
20718 || test ! -s conftest.err'
20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; } &&
20724 { ac_try='test -s conftest$ac_exeext'
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; }; then
20730 eval "$as_ac_var=yes"
20732 echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20735 eval "$as_ac_var=no"
20737 rm -f conftest.err conftest.$ac_objext \
20738 conftest$ac_exeext conftest.$ac_ext
20740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20742 if test `eval echo '${'$as_ac_var'}'` = yes; then
20743 cat >>confdefs.h <<_ACEOF
20744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20749 "$ac_func.$ac_objext" | \
20750 *" $ac_func.$ac_objext" | \
20751 "$ac_func.$ac_objext "* | \
20752 *" $ac_func.$ac_objext "* ) ;;
20753 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20760 if test $ac_cv_func_strerror = no; then
20771 echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
20772 echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6
20773 if test "${gl_cv_time_r_posix+set}" = set; then
20774 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 cat >conftest.$ac_ext <<_ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20786 /* We don't need to append 'restrict's to the argument types,
20787 even though the POSIX signature has the 'restrict's,
20788 since C99 says they can't affect type compatibility. */
20789 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
20794 rm -f conftest.$ac_objext
20795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20796 (eval $ac_compile) 2>conftest.er1
20798 grep -v '^ *+' conftest.er1 >conftest.err
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } &&
20803 { ac_try='test -z "$ac_c_werror_flag"
20804 || test ! -s conftest.err'
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; } &&
20810 { ac_try='test -s conftest.$ac_objext'
20811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20812 (eval $ac_try) 2>&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); }; }; then
20816 gl_cv_time_r_posix=yes
20818 echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20821 gl_cv_time_r_posix=no
20823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20825 echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
20826 echo "${ECHO_T}$gl_cv_time_r_posix" >&6
20827 if test $gl_cv_time_r_posix = yes; then
20829 cat >>confdefs.h <<\_ACEOF
20830 #define HAVE_TIME_R_POSIX 1
20835 "time_r.$ac_objext" | \
20836 *" time_r.$ac_objext" | \
20837 "time_r.$ac_objext "* | \
20838 *" time_r.$ac_objext "* ) ;;
20839 *) LIBOBJS="$LIBOBJS time_r.$ac_objext" ;;
20867 echo "$as_me:$LINENO: checking for struct timespec" >&5
20868 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
20869 if test "${fu_cv_sys_struct_timespec+set}" = set; then
20870 echo $ECHO_N "(cached) $ECHO_C" >&6
20872 cat >conftest.$ac_ext <<_ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20879 # if TIME_WITH_SYS_TIME
20880 # include <sys/time.h>
20883 # if HAVE_SYS_TIME_H
20884 # include <sys/time.h>
20893 static struct timespec x; x.tv_sec = x.tv_nsec;
20898 rm -f conftest.$ac_objext
20899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20900 (eval $ac_compile) 2>conftest.er1
20902 grep -v '^ *+' conftest.er1 >conftest.err
20904 cat conftest.err >&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); } &&
20907 { ac_try='test -z "$ac_c_werror_flag"
20908 || test ! -s conftest.err'
20909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910 (eval $ac_try) 2>&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; } &&
20914 { ac_try='test -s conftest.$ac_objext'
20915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20916 (eval $ac_try) 2>&5
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; }; then
20920 fu_cv_sys_struct_timespec=yes
20922 echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20925 fu_cv_sys_struct_timespec=no
20927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20930 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
20931 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
20933 if test $fu_cv_sys_struct_timespec = yes; then
20935 cat >>confdefs.h <<\_ACEOF
20936 #define HAVE_STRUCT_TIMESPEC 1
20941 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
20942 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
20943 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
20944 echo $ECHO_N "(cached) $ECHO_C" >&6
20946 ac_save_CPPFLAGS="$CPPFLAGS"
20947 ac_cv_struct_st_mtim_nsec=no
20948 # tv_nsec -- the usual case
20949 # _tv_nsec -- Solaris 2.6, if
20950 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
20951 # && !defined __EXTENSIONS__)
20952 # st__tim.tv_nsec -- UnixWare 2.1.2
20953 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
20954 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
20955 cat >conftest.$ac_ext <<_ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 #include <sys/types.h>
20962 #include <sys/stat.h>
20966 struct stat s; s.st_mtim.ST_MTIM_NSEC;
20971 rm -f conftest.$ac_objext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20973 (eval $ac_compile) 2>conftest.er1
20975 grep -v '^ *+' conftest.er1 >conftest.err
20977 cat conftest.err >&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } &&
20980 { ac_try='test -z "$ac_c_werror_flag"
20981 || test ! -s conftest.err'
20982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983 (eval $ac_try) 2>&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; } &&
20987 { ac_try='test -s conftest.$ac_objext'
20988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989 (eval $ac_try) 2>&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; }; then
20993 ac_cv_struct_st_mtim_nsec=$ac_val; break
20995 echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21001 CPPFLAGS="$ac_save_CPPFLAGS"
21003 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
21004 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
21006 if test $ac_cv_struct_st_mtim_nsec != no; then
21008 cat >>confdefs.h <<_ACEOF
21009 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
21018 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
21019 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
21020 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
21021 echo $ECHO_N "(cached) $ECHO_C" >&6
21023 cat >conftest.$ac_ext <<_ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21035 char *p = (char *) nanosleep;
21042 rm -f conftest.$ac_objext
21043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21044 (eval $ac_compile) 2>conftest.er1
21046 grep -v '^ *+' conftest.er1 >conftest.err
21048 cat conftest.err >&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } &&
21051 { ac_try='test -z "$ac_c_werror_flag"
21052 || test ! -s conftest.err'
21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054 (eval $ac_try) 2>&5
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; } &&
21058 { ac_try='test -s conftest.$ac_objext'
21059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060 (eval $ac_try) 2>&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; }; then
21064 ac_cv_have_decl_nanosleep=yes
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ac_cv_have_decl_nanosleep=no
21071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21073 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
21074 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
21075 if test $ac_cv_have_decl_nanosleep = yes; then
21077 cat >>confdefs.h <<_ACEOF
21078 #define HAVE_DECL_NANOSLEEP 1
21083 cat >>confdefs.h <<_ACEOF
21084 #define HAVE_DECL_NANOSLEEP 0
21094 echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
21095 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
21096 if test "${gl_cv_func_tzset_clobber+set}" = set; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21100 if test "$cross_compiling" = yes; then
21101 gl_cv_func_tzset_clobber=yes
21103 cat >conftest.$ac_ext <<_ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h. */
21110 #if TIME_WITH_SYS_TIME
21111 # include <sys/time.h>
21114 # if HAVE_SYS_TIME_H
21115 # include <sys/time.h>
21120 #include <stdlib.h>
21125 time_t t1 = 853958121;
21127 putenv ("TZ=GMT0");
21128 p = localtime (&t1);
21130 putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
21132 exit (p->tm_year != s.tm_year
21133 || p->tm_mon != s.tm_mon
21134 || p->tm_mday != s.tm_mday
21135 || p->tm_hour != s.tm_hour
21136 || p->tm_min != s.tm_min
21137 || p->tm_sec != s.tm_sec);
21141 rm -f conftest$ac_exeext
21142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21143 (eval $ac_link) 2>&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21148 (eval $ac_try) 2>&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); }; }; then
21152 gl_cv_func_tzset_clobber=no
21154 echo "$as_me: program exited with status $ac_status" >&5
21155 echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21158 ( exit $ac_status )
21159 gl_cv_func_tzset_clobber=yes
21161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21164 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
21165 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
21168 cat >>confdefs.h <<\_ACEOF
21169 #define HAVE_RUN_TZSET_TEST 1
21173 if test $gl_cv_func_tzset_clobber = yes; then
21176 "gettimeofday.$ac_objext" | \
21177 *" gettimeofday.$ac_objext" | \
21178 "gettimeofday.$ac_objext "* | \
21179 *" gettimeofday.$ac_objext "* ) ;;
21180 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
21184 cat >>confdefs.h <<\_ACEOF
21185 #define gmtime rpl_gmtime
21189 cat >>confdefs.h <<\_ACEOF
21190 #define localtime rpl_localtime
21196 cat >>confdefs.h <<\_ACEOF
21197 #define tzset rpl_tzset
21201 cat >>confdefs.h <<\_ACEOF
21202 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
21209 cat >>confdefs.h <<\_ACEOF
21210 #define USE_UNLOCKED_IO 1
21263 for ac_func in vasnprintf
21265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21266 echo "$as_me:$LINENO: checking for $ac_func" >&5
21267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21268 if eval "test \"\${$as_ac_var+set}\" = set"; then
21269 echo $ECHO_N "(cached) $ECHO_C" >&6
21271 cat >conftest.$ac_ext <<_ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21279 #define $ac_func innocuous_$ac_func
21281 /* System header to define __stub macros and hopefully few prototypes,
21282 which can conflict with char $ac_func (); below.
21283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21284 <limits.h> exists even on freestanding compilers. */
21287 # include <limits.h>
21289 # include <assert.h>
21294 /* Override any gcc2 internal prototype to avoid an error. */
21299 /* We use char because int might match the return type of a gcc2
21300 builtin and then its argument prototype would still apply. */
21302 /* The GNU C library defines this for functions which it implements
21303 to always fail with ENOSYS. Some functions are actually named
21304 something starting with __ and the normal name is an alias. */
21305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21308 char (*f) () = $ac_func;
21317 return f != $ac_func;
21322 rm -f conftest.$ac_objext conftest$ac_exeext
21323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21324 (eval $ac_link) 2>conftest.er1
21326 grep -v '^ *+' conftest.er1 >conftest.err
21328 cat conftest.err >&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } &&
21331 { ac_try='test -z "$ac_c_werror_flag"
21332 || test ! -s conftest.err'
21333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334 (eval $ac_try) 2>&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; } &&
21338 { ac_try='test -s conftest$ac_exeext'
21339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340 (eval $ac_try) 2>&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); }; }; then
21344 eval "$as_ac_var=yes"
21346 echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21349 eval "$as_ac_var=no"
21351 rm -f conftest.err conftest.$ac_objext \
21352 conftest$ac_exeext conftest.$ac_ext
21354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21356 if test `eval echo '${'$as_ac_var'}'` = yes; then
21357 cat >>confdefs.h <<_ACEOF
21358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21363 "$ac_func.$ac_objext" | \
21364 *" $ac_func.$ac_objext" | \
21365 "$ac_func.$ac_objext "* | \
21366 *" $ac_func.$ac_objext "* ) ;;
21367 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21374 if test $ac_cv_func_vasnprintf = no; then
21376 "printf-args.$ac_objext" | \
21377 *" printf-args.$ac_objext" | \
21378 "printf-args.$ac_objext "* | \
21379 *" printf-args.$ac_objext "* ) ;;
21380 *) LIBOBJS="$LIBOBJS printf-args.$ac_objext" ;;
21384 "printf-parse.$ac_objext" | \
21385 *" printf-parse.$ac_objext" | \
21386 "printf-parse.$ac_objext "* | \
21387 *" printf-parse.$ac_objext "* ) ;;
21388 *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext" ;;
21392 "asnprintf.$ac_objext" | \
21393 *" asnprintf.$ac_objext" | \
21394 "asnprintf.$ac_objext "* | \
21395 *" asnprintf.$ac_objext "* ) ;;
21396 *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext" ;;
21412 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21413 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
21414 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21415 echo $ECHO_N "(cached) $ECHO_C" >&6
21417 cat >conftest.$ac_ext <<_ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 $ac_includes_default
21427 if ((ptrdiff_t *) 0)
21429 if (sizeof (ptrdiff_t))
21435 rm -f conftest.$ac_objext
21436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21437 (eval $ac_compile) 2>conftest.er1
21439 grep -v '^ *+' conftest.er1 >conftest.err
21441 cat conftest.err >&5
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); } &&
21444 { ac_try='test -z "$ac_c_werror_flag"
21445 || test ! -s conftest.err'
21446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447 (eval $ac_try) 2>&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; } &&
21451 { ac_try='test -s conftest.$ac_objext'
21452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21453 (eval $ac_try) 2>&5
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); }; }; then
21457 ac_cv_type_ptrdiff_t=yes
21459 echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.$ac_ext >&5
21462 ac_cv_type_ptrdiff_t=no
21464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21466 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21467 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
21468 if test $ac_cv_type_ptrdiff_t = yes; then
21470 cat >>confdefs.h <<_ACEOF
21471 #define HAVE_PTRDIFF_T 1
21487 for ac_func in snprintf wcslen
21489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21490 echo "$as_me:$LINENO: checking for $ac_func" >&5
21491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21492 if eval "test \"\${$as_ac_var+set}\" = set"; then
21493 echo $ECHO_N "(cached) $ECHO_C" >&6
21495 cat >conftest.$ac_ext <<_ACEOF
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h. */
21501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21503 #define $ac_func innocuous_$ac_func
21505 /* System header to define __stub macros and hopefully few prototypes,
21506 which can conflict with char $ac_func (); below.
21507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21508 <limits.h> exists even on freestanding compilers. */
21511 # include <limits.h>
21513 # include <assert.h>
21518 /* Override any gcc2 internal prototype to avoid an error. */
21523 /* We use char because int might match the return type of a gcc2
21524 builtin and then its argument prototype would still apply. */
21526 /* The GNU C library defines this for functions which it implements
21527 to always fail with ENOSYS. Some functions are actually named
21528 something starting with __ and the normal name is an alias. */
21529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21532 char (*f) () = $ac_func;
21541 return f != $ac_func;
21546 rm -f conftest.$ac_objext conftest$ac_exeext
21547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21548 (eval $ac_link) 2>conftest.er1
21550 grep -v '^ *+' conftest.er1 >conftest.err
21552 cat conftest.err >&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); } &&
21555 { ac_try='test -z "$ac_c_werror_flag"
21556 || test ! -s conftest.err'
21557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558 (eval $ac_try) 2>&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); }; } &&
21562 { ac_try='test -s conftest$ac_exeext'
21563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564 (eval $ac_try) 2>&5
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); }; }; then
21568 eval "$as_ac_var=yes"
21570 echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21573 eval "$as_ac_var=no"
21575 rm -f conftest.err conftest.$ac_objext \
21576 conftest$ac_exeext conftest.$ac_ext
21578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21580 if test `eval echo '${'$as_ac_var'}'` = yes; then
21581 cat >>confdefs.h <<_ACEOF
21582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21595 for ac_func in vasprintf
21597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21598 echo "$as_me:$LINENO: checking for $ac_func" >&5
21599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21600 if eval "test \"\${$as_ac_var+set}\" = set"; then
21601 echo $ECHO_N "(cached) $ECHO_C" >&6
21603 cat >conftest.$ac_ext <<_ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21611 #define $ac_func innocuous_$ac_func
21613 /* System header to define __stub macros and hopefully few prototypes,
21614 which can conflict with char $ac_func (); below.
21615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21616 <limits.h> exists even on freestanding compilers. */
21619 # include <limits.h>
21621 # include <assert.h>
21626 /* Override any gcc2 internal prototype to avoid an error. */
21631 /* We use char because int might match the return type of a gcc2
21632 builtin and then its argument prototype would still apply. */
21634 /* The GNU C library defines this for functions which it implements
21635 to always fail with ENOSYS. Some functions are actually named
21636 something starting with __ and the normal name is an alias. */
21637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21640 char (*f) () = $ac_func;
21649 return f != $ac_func;
21654 rm -f conftest.$ac_objext conftest$ac_exeext
21655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21656 (eval $ac_link) 2>conftest.er1
21658 grep -v '^ *+' conftest.er1 >conftest.err
21660 cat conftest.err >&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } &&
21663 { ac_try='test -z "$ac_c_werror_flag"
21664 || test ! -s conftest.err'
21665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666 (eval $ac_try) 2>&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; } &&
21670 { ac_try='test -s conftest$ac_exeext'
21671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672 (eval $ac_try) 2>&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; }; then
21676 eval "$as_ac_var=yes"
21678 echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21681 eval "$as_ac_var=no"
21683 rm -f conftest.err conftest.$ac_objext \
21684 conftest$ac_exeext conftest.$ac_ext
21686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21688 if test `eval echo '${'$as_ac_var'}'` = yes; then
21689 cat >>confdefs.h <<_ACEOF
21690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21695 "$ac_func.$ac_objext" | \
21696 *" $ac_func.$ac_objext" | \
21697 "$ac_func.$ac_objext "* | \
21698 *" $ac_func.$ac_objext "* ) ;;
21699 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21706 if test $ac_cv_func_vasprintf = no; then
21708 "asprintf.$ac_objext" | \
21709 *" asprintf.$ac_objext" | \
21710 "asprintf.$ac_objext "* | \
21711 *" asprintf.$ac_objext "* ) ;;
21712 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
21739 for ac_func in getcwd
21741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21742 echo "$as_me:$LINENO: checking for $ac_func" >&5
21743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21744 if eval "test \"\${$as_ac_var+set}\" = set"; then
21745 echo $ECHO_N "(cached) $ECHO_C" >&6
21747 cat >conftest.$ac_ext <<_ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h. */
21753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21755 #define $ac_func innocuous_$ac_func
21757 /* System header to define __stub macros and hopefully few prototypes,
21758 which can conflict with char $ac_func (); below.
21759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21760 <limits.h> exists even on freestanding compilers. */
21763 # include <limits.h>
21765 # include <assert.h>
21770 /* Override any gcc2 internal prototype to avoid an error. */
21775 /* We use char because int might match the return type of a gcc2
21776 builtin and then its argument prototype would still apply. */
21778 /* The GNU C library defines this for functions which it implements
21779 to always fail with ENOSYS. Some functions are actually named
21780 something starting with __ and the normal name is an alias. */
21781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21784 char (*f) () = $ac_func;
21793 return f != $ac_func;
21798 rm -f conftest.$ac_objext conftest$ac_exeext
21799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21800 (eval $ac_link) 2>conftest.er1
21802 grep -v '^ *+' conftest.er1 >conftest.err
21804 cat conftest.err >&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } &&
21807 { ac_try='test -z "$ac_c_werror_flag"
21808 || test ! -s conftest.err'
21809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810 (eval $ac_try) 2>&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); }; } &&
21814 { ac_try='test -s conftest$ac_exeext'
21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; }; then
21820 eval "$as_ac_var=yes"
21822 echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21825 eval "$as_ac_var=no"
21827 rm -f conftest.err conftest.$ac_objext \
21828 conftest$ac_exeext conftest.$ac_ext
21830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21832 if test `eval echo '${'$as_ac_var'}'` = yes; then
21833 cat >>confdefs.h <<_ACEOF
21834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21848 echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
21849 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
21850 if test "${ac_cv_func_getcwd_null+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21853 if test "$cross_compiling" = yes; then
21854 ac_cv_func_getcwd_null=no
21856 cat >conftest.$ac_ext <<_ACEOF
21859 cat confdefs.h >>conftest.$ac_ext
21860 cat >>conftest.$ac_ext <<_ACEOF
21861 /* end confdefs.h. */
21863 # include <stdlib.h>
21864 # ifdef HAVE_UNISTD_H
21865 # include <unistd.h>
21873 if (chdir ("/") != 0)
21877 char *f = getcwd (NULL, 0);
21878 exit (! (f && f[0] == '/' && !f[1]));
21882 rm -f conftest$ac_exeext
21883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21884 (eval $ac_link) 2>&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; }; then
21893 ac_cv_func_getcwd_null=yes
21895 echo "$as_me: program exited with status $ac_status" >&5
21896 echo "$as_me: failed program was:" >&5
21897 sed 's/^/| /' conftest.$ac_ext >&5
21899 ( exit $ac_status )
21900 ac_cv_func_getcwd_null=no
21902 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21905 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
21906 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
21907 if test $ac_cv_func_getcwd_null = yes; then
21909 cat >>confdefs.h <<\_ACEOF
21910 #define HAVE_GETCWD_NULL 1
21929 for ac_header in stdint.h
21931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21933 echo "$as_me:$LINENO: checking for $ac_header" >&5
21934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21941 # Is the header compilable?
21942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21944 cat >conftest.$ac_ext <<_ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h. */
21950 $ac_includes_default
21951 #include <$ac_header>
21953 rm -f conftest.$ac_objext
21954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21955 (eval $ac_compile) 2>conftest.er1
21957 grep -v '^ *+' conftest.er1 >conftest.err
21959 cat conftest.err >&5
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); } &&
21962 { ac_try='test -z "$ac_c_werror_flag"
21963 || test ! -s conftest.err'
21964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21965 (eval $ac_try) 2>&5
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); }; } &&
21969 { ac_try='test -s conftest.$ac_objext'
21970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21971 (eval $ac_try) 2>&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); }; }; then
21975 ac_header_compiler=yes
21977 echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21980 ac_header_compiler=no
21982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21984 echo "${ECHO_T}$ac_header_compiler" >&6
21986 # Is the header present?
21987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21989 cat >conftest.$ac_ext <<_ACEOF
21992 cat confdefs.h >>conftest.$ac_ext
21993 cat >>conftest.$ac_ext <<_ACEOF
21994 /* end confdefs.h. */
21995 #include <$ac_header>
21997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22000 grep -v '^ *+' conftest.er1 >conftest.err
22002 cat conftest.err >&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } >/dev/null; then
22005 if test -s conftest.err; then
22006 ac_cpp_err=$ac_c_preproc_warn_flag
22007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22014 if test -z "$ac_cpp_err"; then
22015 ac_header_preproc=yes
22017 echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22020 ac_header_preproc=no
22022 rm -f conftest.err conftest.$ac_ext
22023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22024 echo "${ECHO_T}$ac_header_preproc" >&6
22026 # So? What about this header?
22027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22033 ac_header_preproc=yes
22036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22050 ## ------------------------------ ##
22051 ## Report this to bug-cvs@gnu.org ##
22052 ## ------------------------------ ##
22055 sed "s/^/$as_me: WARNING: /" >&2
22058 echo "$as_me:$LINENO: checking for $ac_header" >&5
22059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22061 echo $ECHO_N "(cached) $ECHO_C" >&6
22063 eval "$as_ac_Header=\$ac_header_preproc"
22065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22070 cat >>confdefs.h <<_ACEOF
22071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22085 if test -n "$ac_aux_dir"; then
22086 case "$ac_aux_dir" in
22087 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
22088 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
22091 if test -z "$MKINSTALLDIRS"; then
22092 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22097 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22098 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
22099 # Check whether --enable-nls or --disable-nls was given.
22100 if test "${enable_nls+set}" = set; then
22101 enableval="$enable_nls"
22106 echo "$as_me:$LINENO: result: $USE_NLS" >&5
22107 echo "${ECHO_T}$USE_NLS" >&6
22114 # Prepare PATH_SEPARATOR.
22115 # The user is always right.
22116 if test "${PATH_SEPARATOR+set}" != set; then
22117 echo "#! /bin/sh" >conf$$.sh
22118 echo "exit 0" >>conf$$.sh
22120 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22128 # Find out how to test for executable files. Don't use a zero-byte file,
22129 # as systems may use methods other than mode bits to determine executability.
22130 cat >conf$$.file <<_ASEOF
22134 chmod +x conf$$.file
22135 if test -x conf$$.file >/dev/null 2>&1; then
22136 ac_executable_p="test -x"
22138 ac_executable_p="test -f"
22142 # Extract the first word of "msgfmt", so it can be a program name with args.
22143 set dummy msgfmt; ac_word=$2
22144 echo "$as_me:$LINENO: checking for $ac_word" >&5
22145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22146 if test "${ac_cv_path_MSGFMT+set}" = set; then
22147 echo $ECHO_N "(cached) $ECHO_C" >&6
22151 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22154 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22155 for ac_dir in $PATH; do
22157 test -z "$ac_dir" && ac_dir=.
22158 for ac_exec_ext in '' $ac_executable_extensions; do
22159 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22160 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
22161 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22162 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
22169 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
22173 MSGFMT="$ac_cv_path_MSGFMT"
22174 if test "$MSGFMT" != ":"; then
22175 echo "$as_me:$LINENO: result: $MSGFMT" >&5
22176 echo "${ECHO_T}$MSGFMT" >&6
22178 echo "$as_me:$LINENO: result: no" >&5
22179 echo "${ECHO_T}no" >&6
22182 # Extract the first word of "gmsgfmt", so it can be a program name with args.
22183 set dummy gmsgfmt; ac_word=$2
22184 echo "$as_me:$LINENO: checking for $ac_word" >&5
22185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22186 if test "${ac_cv_path_GMSGFMT+set}" = set; then
22187 echo $ECHO_N "(cached) $ECHO_C" >&6
22191 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22195 for as_dir in $PATH
22198 test -z "$as_dir" && as_dir=.
22199 for ac_exec_ext in '' $ac_executable_extensions; do
22200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22201 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22208 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22212 GMSGFMT=$ac_cv_path_GMSGFMT
22214 if test -n "$GMSGFMT"; then
22215 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22216 echo "${ECHO_T}$GMSGFMT" >&6
22218 echo "$as_me:$LINENO: result: no" >&5
22219 echo "${ECHO_T}no" >&6
22224 # Prepare PATH_SEPARATOR.
22225 # The user is always right.
22226 if test "${PATH_SEPARATOR+set}" != set; then
22227 echo "#! /bin/sh" >conf$$.sh
22228 echo "exit 0" >>conf$$.sh
22230 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22238 # Find out how to test for executable files. Don't use a zero-byte file,
22239 # as systems may use methods other than mode bits to determine executability.
22240 cat >conf$$.file <<_ASEOF
22244 chmod +x conf$$.file
22245 if test -x conf$$.file >/dev/null 2>&1; then
22246 ac_executable_p="test -x"
22248 ac_executable_p="test -f"
22252 # Extract the first word of "xgettext", so it can be a program name with args.
22253 set dummy xgettext; ac_word=$2
22254 echo "$as_me:$LINENO: checking for $ac_word" >&5
22255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22256 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22259 case "$XGETTEXT" in
22261 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22264 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22265 for ac_dir in $PATH; do
22267 test -z "$ac_dir" && ac_dir=.
22268 for ac_exec_ext in '' $ac_executable_extensions; do
22269 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22270 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22271 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22272 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22279 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22283 XGETTEXT="$ac_cv_path_XGETTEXT"
22284 if test "$XGETTEXT" != ":"; then
22285 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22286 echo "${ECHO_T}$XGETTEXT" >&6
22288 echo "$as_me:$LINENO: result: no" >&5
22289 echo "${ECHO_T}no" >&6
22295 # Prepare PATH_SEPARATOR.
22296 # The user is always right.
22297 if test "${PATH_SEPARATOR+set}" != set; then
22298 echo "#! /bin/sh" >conf$$.sh
22299 echo "exit 0" >>conf$$.sh
22301 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22309 # Find out how to test for executable files. Don't use a zero-byte file,
22310 # as systems may use methods other than mode bits to determine executability.
22311 cat >conf$$.file <<_ASEOF
22315 chmod +x conf$$.file
22316 if test -x conf$$.file >/dev/null 2>&1; then
22317 ac_executable_p="test -x"
22319 ac_executable_p="test -f"
22323 # Extract the first word of "msgmerge", so it can be a program name with args.
22324 set dummy msgmerge; ac_word=$2
22325 echo "$as_me:$LINENO: checking for $ac_word" >&5
22326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22327 if test "${ac_cv_path_MSGMERGE+set}" = set; then
22328 echo $ECHO_N "(cached) $ECHO_C" >&6
22330 case "$MSGMERGE" in
22332 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22335 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22336 for ac_dir in $PATH; do
22338 test -z "$ac_dir" && ac_dir=.
22339 for ac_exec_ext in '' $ac_executable_extensions; do
22340 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22341 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
22342 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22349 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
22353 MSGMERGE="$ac_cv_path_MSGMERGE"
22354 if test "$MSGMERGE" != ":"; then
22355 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22356 echo "${ECHO_T}$MSGMERGE" >&6
22358 echo "$as_me:$LINENO: result: no" >&5
22359 echo "${ECHO_T}no" >&6
22363 if test "$GMSGFMT" != ":"; then
22364 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
22365 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22368 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
22369 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
22370 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
22375 if test "$XGETTEXT" != ":"; then
22376 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22377 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22380 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22381 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
22387 ac_config_commands="$ac_config_commands default-1"
22391 if test "X$prefix" = "XNONE"; then
22392 acl_final_prefix="$ac_default_prefix"
22394 acl_final_prefix="$prefix"
22396 if test "X$exec_prefix" = "XNONE"; then
22397 acl_final_exec_prefix='${prefix}'
22399 acl_final_exec_prefix="$exec_prefix"
22401 acl_save_prefix="$prefix"
22402 prefix="$acl_final_prefix"
22403 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22404 prefix="$acl_save_prefix"
22406 # Make sure we can run config.sub.
22407 $ac_config_sub sun4 >/dev/null 2>&1 ||
22408 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
22409 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
22410 { (exit 1); exit 1; }; }
22412 echo "$as_me:$LINENO: checking build system type" >&5
22413 echo $ECHO_N "checking build system type... $ECHO_C" >&6
22414 if test "${ac_cv_build+set}" = set; then
22415 echo $ECHO_N "(cached) $ECHO_C" >&6
22417 ac_cv_build_alias=$build_alias
22418 test -z "$ac_cv_build_alias" &&
22419 ac_cv_build_alias=`$ac_config_guess`
22420 test -z "$ac_cv_build_alias" &&
22421 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
22422 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
22423 { (exit 1); exit 1; }; }
22424 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
22425 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
22426 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
22427 { (exit 1); exit 1; }; }
22430 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
22431 echo "${ECHO_T}$ac_cv_build" >&6
22433 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
22434 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
22435 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
22438 echo "$as_me:$LINENO: checking host system type" >&5
22439 echo $ECHO_N "checking host system type... $ECHO_C" >&6
22440 if test "${ac_cv_host+set}" = set; then
22441 echo $ECHO_N "(cached) $ECHO_C" >&6
22443 ac_cv_host_alias=$host_alias
22444 test -z "$ac_cv_host_alias" &&
22445 ac_cv_host_alias=$ac_cv_build_alias
22446 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
22447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
22448 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
22449 { (exit 1); exit 1; }; }
22452 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
22453 echo "${ECHO_T}$ac_cv_host" >&6
22455 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
22456 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
22457 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
22461 # Check whether --with-gnu-ld or --without-gnu-ld was given.
22462 if test "${with_gnu_ld+set}" = set; then
22463 withval="$with_gnu_ld"
22464 test "$withval" = no || with_gnu_ld=yes
22468 # Prepare PATH_SEPARATOR.
22469 # The user is always right.
22470 if test "${PATH_SEPARATOR+set}" != set; then
22471 echo "#! /bin/sh" >conf$$.sh
22472 echo "exit 0" >>conf$$.sh
22474 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22482 if test "$GCC" = yes; then
22483 # Check if gcc -print-prog-name=ld gives a path.
22484 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22485 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
22488 # gcc leaves a trailing carriage return which upsets mingw
22489 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22491 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22494 # Accept absolute paths.
22495 [\\/]* | [A-Za-z]:[\\/]*)
22496 re_direlt='/[^/][^/]*/\.\./'
22497 # Canonicalize the path of ld
22498 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
22499 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22500 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22502 test -z "$LD" && LD="$ac_prog"
22505 # If it fails, then pretend we aren't using GCC.
22509 # If it is relative, then search for the first ld in PATH.
22510 with_gnu_ld=unknown
22513 elif test "$with_gnu_ld" = yes; then
22514 echo "$as_me:$LINENO: checking for GNU ld" >&5
22515 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
22517 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22518 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
22520 if test "${acl_cv_path_LD+set}" = set; then
22521 echo $ECHO_N "(cached) $ECHO_C" >&6
22523 if test -z "$LD"; then
22524 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22525 for ac_dir in $PATH; do
22526 test -z "$ac_dir" && ac_dir=.
22527 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22528 acl_cv_path_LD="$ac_dir/$ac_prog"
22529 # Check to see if the program is GNU ld. I'd rather use --version,
22530 # but apparently some GNU ld's only accept -v.
22531 # Break only if it was the GNU/non-GNU ld that we prefer.
22532 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
22533 *GNU* | *'with BFD'*)
22534 test "$with_gnu_ld" != no && break ;;
22536 test "$with_gnu_ld" != yes && break ;;
22542 acl_cv_path_LD="$LD" # Let the user override the test with a path.
22546 LD="$acl_cv_path_LD"
22547 if test -n "$LD"; then
22548 echo "$as_me:$LINENO: result: $LD" >&5
22549 echo "${ECHO_T}$LD" >&6
22551 echo "$as_me:$LINENO: result: no" >&5
22552 echo "${ECHO_T}no" >&6
22554 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22555 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22556 { (exit 1); exit 1; }; }
22557 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22558 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
22559 if test "${acl_cv_prog_gnu_ld+set}" = set; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22562 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22563 case `$LD -v 2>&1 </dev/null` in
22564 *GNU* | *'with BFD'*)
22565 acl_cv_prog_gnu_ld=yes ;;
22567 acl_cv_prog_gnu_ld=no ;;
22570 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22571 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
22572 with_gnu_ld=$acl_cv_prog_gnu_ld
22576 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22577 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
22578 if test "${acl_cv_rpath+set}" = set; then
22579 echo $ECHO_N "(cached) $ECHO_C" >&6
22582 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22583 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22585 rm -f ./conftest.sh
22589 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22590 echo "${ECHO_T}$acl_cv_rpath" >&6
22592 libext="$acl_cv_libext"
22593 shlibext="$acl_cv_shlibext"
22594 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22595 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22596 hardcode_direct="$acl_cv_hardcode_direct"
22597 hardcode_minus_L="$acl_cv_hardcode_minus_L"
22598 # Check whether --enable-rpath or --disable-rpath was given.
22599 if test "${enable_rpath+set}" = set; then
22600 enableval="$enable_rpath"
22614 acl_save_prefix="$prefix"
22615 prefix="$acl_final_prefix"
22616 acl_save_exec_prefix="$exec_prefix"
22617 exec_prefix="$acl_final_exec_prefix"
22619 eval additional_includedir=\"$includedir\"
22620 eval additional_libdir=\"$libdir\"
22622 exec_prefix="$acl_save_exec_prefix"
22623 prefix="$acl_save_prefix"
22626 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22627 if test "${with_libiconv_prefix+set}" = set; then
22628 withval="$with_libiconv_prefix"
22630 if test "X$withval" = "Xno"; then
22633 if test "X$withval" = "X"; then
22635 acl_save_prefix="$prefix"
22636 prefix="$acl_final_prefix"
22637 acl_save_exec_prefix="$exec_prefix"
22638 exec_prefix="$acl_final_exec_prefix"
22640 eval additional_includedir=\"$includedir\"
22641 eval additional_libdir=\"$libdir\"
22643 exec_prefix="$acl_save_exec_prefix"
22644 prefix="$acl_save_prefix"
22647 additional_includedir="$withval/include"
22648 additional_libdir="$withval/lib"
22658 names_already_handled=
22659 names_next_round='iconv '
22660 while test -n "$names_next_round"; do
22661 names_this_round="$names_next_round"
22663 for name in $names_this_round; do
22665 for n in $names_already_handled; do
22666 if test "$n" = "$name"; then
22667 already_handled=yes
22671 if test -z "$already_handled"; then
22672 names_already_handled="$names_already_handled $name"
22673 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22674 eval value=\"\$HAVE_LIB$uppername\"
22675 if test -n "$value"; then
22676 if test "$value" = yes; then
22677 eval value=\"\$LIB$uppername\"
22678 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22679 eval value=\"\$LTLIB$uppername\"
22680 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22689 if test $use_additional = yes; then
22690 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22691 found_dir="$additional_libdir"
22692 found_so="$additional_libdir/lib$name.$shlibext"
22693 if test -f "$additional_libdir/lib$name.la"; then
22694 found_la="$additional_libdir/lib$name.la"
22697 if test -f "$additional_libdir/lib$name.$libext"; then
22698 found_dir="$additional_libdir"
22699 found_a="$additional_libdir/lib$name.$libext"
22700 if test -f "$additional_libdir/lib$name.la"; then
22701 found_la="$additional_libdir/lib$name.la"
22706 if test "X$found_dir" = "X"; then
22707 for x in $LDFLAGS $LTLIBICONV; do
22709 acl_save_prefix="$prefix"
22710 prefix="$acl_final_prefix"
22711 acl_save_exec_prefix="$exec_prefix"
22712 exec_prefix="$acl_final_exec_prefix"
22714 exec_prefix="$acl_save_exec_prefix"
22715 prefix="$acl_save_prefix"
22719 dir=`echo "X$x" | sed -e 's/^X-L//'`
22720 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22722 found_so="$dir/lib$name.$shlibext"
22723 if test -f "$dir/lib$name.la"; then
22724 found_la="$dir/lib$name.la"
22727 if test -f "$dir/lib$name.$libext"; then
22729 found_a="$dir/lib$name.$libext"
22730 if test -f "$dir/lib$name.la"; then
22731 found_la="$dir/lib$name.la"
22737 if test "X$found_dir" != "X"; then
22742 if test "X$found_dir" != "X"; then
22743 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22744 if test "X$found_so" != "X"; then
22745 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22746 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22749 for x in $ltrpathdirs; do
22750 if test "X$x" = "X$found_dir"; then
22755 if test -z "$haveit"; then
22756 ltrpathdirs="$ltrpathdirs $found_dir"
22758 if test "$hardcode_direct" = yes; then
22759 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22761 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22762 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22764 for x in $rpathdirs; do
22765 if test "X$x" = "X$found_dir"; then
22770 if test -z "$haveit"; then
22771 rpathdirs="$rpathdirs $found_dir"
22775 for x in $LDFLAGS $LIBICONV; do
22777 acl_save_prefix="$prefix"
22778 prefix="$acl_final_prefix"
22779 acl_save_exec_prefix="$exec_prefix"
22780 exec_prefix="$acl_final_exec_prefix"
22782 exec_prefix="$acl_save_exec_prefix"
22783 prefix="$acl_save_prefix"
22785 if test "X$x" = "X-L$found_dir"; then
22790 if test -z "$haveit"; then
22791 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22793 if test "$hardcode_minus_L" != no; then
22794 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22796 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22802 if test "X$found_a" != "X"; then
22803 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22805 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22808 additional_includedir=
22809 case "$found_dir" in
22811 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22812 additional_includedir="$basedir/include"
22815 if test "X$additional_includedir" != "X"; then
22816 if test "X$additional_includedir" != "X/usr/include"; then
22818 if test "X$additional_includedir" = "X/usr/local/include"; then
22819 if test -n "$GCC"; then
22821 linux*) haveit=yes;;
22825 if test -z "$haveit"; then
22826 for x in $CPPFLAGS $INCICONV; do
22828 acl_save_prefix="$prefix"
22829 prefix="$acl_final_prefix"
22830 acl_save_exec_prefix="$exec_prefix"
22831 exec_prefix="$acl_final_exec_prefix"
22833 exec_prefix="$acl_save_exec_prefix"
22834 prefix="$acl_save_prefix"
22836 if test "X$x" = "X-I$additional_includedir"; then
22841 if test -z "$haveit"; then
22842 if test -d "$additional_includedir"; then
22843 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22849 if test -n "$found_la"; then
22850 save_libdir="$libdir"
22851 case "$found_la" in
22852 */* | *\\*) . "$found_la" ;;
22853 *) . "./$found_la" ;;
22855 libdir="$save_libdir"
22856 for dep in $dependency_libs; do
22859 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22860 if test "X$additional_libdir" != "X/usr/lib"; then
22862 if test "X$additional_libdir" = "X/usr/local/lib"; then
22863 if test -n "$GCC"; then
22865 linux*) haveit=yes;;
22869 if test -z "$haveit"; then
22871 for x in $LDFLAGS $LIBICONV; do
22873 acl_save_prefix="$prefix"
22874 prefix="$acl_final_prefix"
22875 acl_save_exec_prefix="$exec_prefix"
22876 exec_prefix="$acl_final_exec_prefix"
22878 exec_prefix="$acl_save_exec_prefix"
22879 prefix="$acl_save_prefix"
22881 if test "X$x" = "X-L$additional_libdir"; then
22886 if test -z "$haveit"; then
22887 if test -d "$additional_libdir"; then
22888 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22892 for x in $LDFLAGS $LTLIBICONV; do
22894 acl_save_prefix="$prefix"
22895 prefix="$acl_final_prefix"
22896 acl_save_exec_prefix="$exec_prefix"
22897 exec_prefix="$acl_final_exec_prefix"
22899 exec_prefix="$acl_save_exec_prefix"
22900 prefix="$acl_save_prefix"
22902 if test "X$x" = "X-L$additional_libdir"; then
22907 if test -z "$haveit"; then
22908 if test -d "$additional_libdir"; then
22909 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22916 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22917 if test "$enable_rpath" != no; then
22919 for x in $rpathdirs; do
22920 if test "X$x" = "X$dir"; then
22925 if test -z "$haveit"; then
22926 rpathdirs="$rpathdirs $dir"
22929 for x in $ltrpathdirs; do
22930 if test "X$x" = "X$dir"; then
22935 if test -z "$haveit"; then
22936 ltrpathdirs="$ltrpathdirs $dir"
22941 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22944 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22947 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22948 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22954 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22955 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22961 if test "X$rpathdirs" != "X"; then
22962 if test -n "$hardcode_libdir_separator"; then
22964 for found_dir in $rpathdirs; do
22965 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22967 acl_save_libdir="$libdir"
22969 eval flag=\"$hardcode_libdir_flag_spec\"
22970 libdir="$acl_save_libdir"
22971 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22973 for found_dir in $rpathdirs; do
22974 acl_save_libdir="$libdir"
22975 libdir="$found_dir"
22976 eval flag=\"$hardcode_libdir_flag_spec\"
22977 libdir="$acl_save_libdir"
22978 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22982 if test "X$ltrpathdirs" != "X"; then
22983 for found_dir in $ltrpathdirs; do
22984 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
23005 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23006 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
23007 # Check whether --enable-nls or --disable-nls was given.
23008 if test "${enable_nls+set}" = set; then
23009 enableval="$enable_nls"
23014 echo "$as_me:$LINENO: result: $USE_NLS" >&5
23015 echo "${ECHO_T}$USE_NLS" >&6
23024 if test "$USE_NLS" = "yes"; then
23025 gt_use_preinstalled_gnugettext=no
23032 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23033 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
23034 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23035 echo $ECHO_N "(cached) $ECHO_C" >&6
23037 cat >conftest.$ac_ext <<_ACEOF
23040 cat confdefs.h >>conftest.$ac_ext
23041 cat >>conftest.$ac_ext <<_ACEOF
23042 /* end confdefs.h. */
23043 #include <libintl.h>
23044 extern int _nl_msg_cat_cntr;
23045 extern int *_nl_domain_bindings;
23049 bindtextdomain ("", "");
23050 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23055 rm -f conftest.$ac_objext conftest$ac_exeext
23056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23057 (eval $ac_link) 2>conftest.er1
23059 grep -v '^ *+' conftest.er1 >conftest.err
23061 cat conftest.err >&5
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); } &&
23064 { ac_try='test -z "$ac_c_werror_flag"
23065 || test ! -s conftest.err'
23066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23067 (eval $ac_try) 2>&5
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); }; } &&
23071 { ac_try='test -s conftest$ac_exeext'
23072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073 (eval $ac_try) 2>&5
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); }; }; then
23077 gt_cv_func_gnugettext1_libc=yes
23079 echo "$as_me: failed program was:" >&5
23080 sed 's/^/| /' conftest.$ac_ext >&5
23082 gt_cv_func_gnugettext1_libc=no
23084 rm -f conftest.err conftest.$ac_objext \
23085 conftest$ac_exeext conftest.$ac_ext
23087 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23088 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
23090 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23096 am_save_CPPFLAGS="$CPPFLAGS"
23098 for element in $INCICONV; do
23100 for x in $CPPFLAGS; do
23102 acl_save_prefix="$prefix"
23103 prefix="$acl_final_prefix"
23104 acl_save_exec_prefix="$exec_prefix"
23105 exec_prefix="$acl_final_exec_prefix"
23107 exec_prefix="$acl_save_exec_prefix"
23108 prefix="$acl_save_prefix"
23110 if test "X$x" = "X$element"; then
23115 if test -z "$haveit"; then
23116 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23121 echo "$as_me:$LINENO: checking for iconv" >&5
23122 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
23123 if test "${am_cv_func_iconv+set}" = set; then
23124 echo $ECHO_N "(cached) $ECHO_C" >&6
23127 am_cv_func_iconv="no, consider installing GNU libiconv"
23129 cat >conftest.$ac_ext <<_ACEOF
23132 cat confdefs.h >>conftest.$ac_ext
23133 cat >>conftest.$ac_ext <<_ACEOF
23134 /* end confdefs.h. */
23135 #include <stdlib.h>
23140 iconv_t cd = iconv_open("","");
23141 iconv(cd,NULL,NULL,NULL,NULL);
23147 rm -f conftest.$ac_objext conftest$ac_exeext
23148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23149 (eval $ac_link) 2>conftest.er1
23151 grep -v '^ *+' conftest.er1 >conftest.err
23153 cat conftest.err >&5
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); } &&
23156 { ac_try='test -z "$ac_c_werror_flag"
23157 || test ! -s conftest.err'
23158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23159 (eval $ac_try) 2>&5
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); }; } &&
23163 { ac_try='test -s conftest$ac_exeext'
23164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23165 (eval $ac_try) 2>&5
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); }; }; then
23169 am_cv_func_iconv=yes
23171 echo "$as_me: failed program was:" >&5
23172 sed 's/^/| /' conftest.$ac_ext >&5
23175 rm -f conftest.err conftest.$ac_objext \
23176 conftest$ac_exeext conftest.$ac_ext
23177 if test "$am_cv_func_iconv" != yes; then
23178 am_save_LIBS="$LIBS"
23179 LIBS="$LIBS $LIBICONV"
23180 cat >conftest.$ac_ext <<_ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23186 #include <stdlib.h>
23191 iconv_t cd = iconv_open("","");
23192 iconv(cd,NULL,NULL,NULL,NULL);
23198 rm -f conftest.$ac_objext conftest$ac_exeext
23199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23200 (eval $ac_link) 2>conftest.er1
23202 grep -v '^ *+' conftest.er1 >conftest.err
23204 cat conftest.err >&5
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); } &&
23207 { ac_try='test -z "$ac_c_werror_flag"
23208 || test ! -s conftest.err'
23209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23210 (eval $ac_try) 2>&5
23212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); }; } &&
23214 { ac_try='test -s conftest$ac_exeext'
23215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23216 (eval $ac_try) 2>&5
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); }; }; then
23220 am_cv_lib_iconv=yes
23221 am_cv_func_iconv=yes
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23227 rm -f conftest.err conftest.$ac_objext \
23228 conftest$ac_exeext conftest.$ac_ext
23229 LIBS="$am_save_LIBS"
23233 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23234 echo "${ECHO_T}$am_cv_func_iconv" >&6
23235 if test "$am_cv_func_iconv" = yes; then
23237 cat >>confdefs.h <<\_ACEOF
23238 #define HAVE_ICONV 1
23242 if test "$am_cv_lib_iconv" = yes; then
23243 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23244 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
23245 echo "$as_me:$LINENO: result: $LIBICONV" >&5
23246 echo "${ECHO_T}$LIBICONV" >&6
23248 CPPFLAGS="$am_save_CPPFLAGS"
23260 acl_save_prefix="$prefix"
23261 prefix="$acl_final_prefix"
23262 acl_save_exec_prefix="$exec_prefix"
23263 exec_prefix="$acl_final_exec_prefix"
23265 eval additional_includedir=\"$includedir\"
23266 eval additional_libdir=\"$libdir\"
23268 exec_prefix="$acl_save_exec_prefix"
23269 prefix="$acl_save_prefix"
23272 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
23273 if test "${with_libintl_prefix+set}" = set; then
23274 withval="$with_libintl_prefix"
23276 if test "X$withval" = "Xno"; then
23279 if test "X$withval" = "X"; then
23281 acl_save_prefix="$prefix"
23282 prefix="$acl_final_prefix"
23283 acl_save_exec_prefix="$exec_prefix"
23284 exec_prefix="$acl_final_exec_prefix"
23286 eval additional_includedir=\"$includedir\"
23287 eval additional_libdir=\"$libdir\"
23289 exec_prefix="$acl_save_exec_prefix"
23290 prefix="$acl_save_prefix"
23293 additional_includedir="$withval/include"
23294 additional_libdir="$withval/lib"
23304 names_already_handled=
23305 names_next_round='intl '
23306 while test -n "$names_next_round"; do
23307 names_this_round="$names_next_round"
23309 for name in $names_this_round; do
23311 for n in $names_already_handled; do
23312 if test "$n" = "$name"; then
23313 already_handled=yes
23317 if test -z "$already_handled"; then
23318 names_already_handled="$names_already_handled $name"
23319 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23320 eval value=\"\$HAVE_LIB$uppername\"
23321 if test -n "$value"; then
23322 if test "$value" = yes; then
23323 eval value=\"\$LIB$uppername\"
23324 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23325 eval value=\"\$LTLIB$uppername\"
23326 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23335 if test $use_additional = yes; then
23336 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23337 found_dir="$additional_libdir"
23338 found_so="$additional_libdir/lib$name.$shlibext"
23339 if test -f "$additional_libdir/lib$name.la"; then
23340 found_la="$additional_libdir/lib$name.la"
23343 if test -f "$additional_libdir/lib$name.$libext"; then
23344 found_dir="$additional_libdir"
23345 found_a="$additional_libdir/lib$name.$libext"
23346 if test -f "$additional_libdir/lib$name.la"; then
23347 found_la="$additional_libdir/lib$name.la"
23352 if test "X$found_dir" = "X"; then
23353 for x in $LDFLAGS $LTLIBINTL; do
23355 acl_save_prefix="$prefix"
23356 prefix="$acl_final_prefix"
23357 acl_save_exec_prefix="$exec_prefix"
23358 exec_prefix="$acl_final_exec_prefix"
23360 exec_prefix="$acl_save_exec_prefix"
23361 prefix="$acl_save_prefix"
23365 dir=`echo "X$x" | sed -e 's/^X-L//'`
23366 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23368 found_so="$dir/lib$name.$shlibext"
23369 if test -f "$dir/lib$name.la"; then
23370 found_la="$dir/lib$name.la"
23373 if test -f "$dir/lib$name.$libext"; then
23375 found_a="$dir/lib$name.$libext"
23376 if test -f "$dir/lib$name.la"; then
23377 found_la="$dir/lib$name.la"
23383 if test "X$found_dir" != "X"; then
23388 if test "X$found_dir" != "X"; then
23389 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23390 if test "X$found_so" != "X"; then
23391 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23392 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23395 for x in $ltrpathdirs; do
23396 if test "X$x" = "X$found_dir"; then
23401 if test -z "$haveit"; then
23402 ltrpathdirs="$ltrpathdirs $found_dir"
23404 if test "$hardcode_direct" = yes; then
23405 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23407 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23408 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23410 for x in $rpathdirs; do
23411 if test "X$x" = "X$found_dir"; then
23416 if test -z "$haveit"; then
23417 rpathdirs="$rpathdirs $found_dir"
23421 for x in $LDFLAGS $LIBINTL; do
23423 acl_save_prefix="$prefix"
23424 prefix="$acl_final_prefix"
23425 acl_save_exec_prefix="$exec_prefix"
23426 exec_prefix="$acl_final_exec_prefix"
23428 exec_prefix="$acl_save_exec_prefix"
23429 prefix="$acl_save_prefix"
23431 if test "X$x" = "X-L$found_dir"; then
23436 if test -z "$haveit"; then
23437 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23439 if test "$hardcode_minus_L" != no; then
23440 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23442 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23448 if test "X$found_a" != "X"; then
23449 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23451 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23454 additional_includedir=
23455 case "$found_dir" in
23457 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23458 additional_includedir="$basedir/include"
23461 if test "X$additional_includedir" != "X"; then
23462 if test "X$additional_includedir" != "X/usr/include"; then
23464 if test "X$additional_includedir" = "X/usr/local/include"; then
23465 if test -n "$GCC"; then
23467 linux*) haveit=yes;;
23471 if test -z "$haveit"; then
23472 for x in $CPPFLAGS $INCINTL; do
23474 acl_save_prefix="$prefix"
23475 prefix="$acl_final_prefix"
23476 acl_save_exec_prefix="$exec_prefix"
23477 exec_prefix="$acl_final_exec_prefix"
23479 exec_prefix="$acl_save_exec_prefix"
23480 prefix="$acl_save_prefix"
23482 if test "X$x" = "X-I$additional_includedir"; then
23487 if test -z "$haveit"; then
23488 if test -d "$additional_includedir"; then
23489 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23495 if test -n "$found_la"; then
23496 save_libdir="$libdir"
23497 case "$found_la" in
23498 */* | *\\*) . "$found_la" ;;
23499 *) . "./$found_la" ;;
23501 libdir="$save_libdir"
23502 for dep in $dependency_libs; do
23505 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23506 if test "X$additional_libdir" != "X/usr/lib"; then
23508 if test "X$additional_libdir" = "X/usr/local/lib"; then
23509 if test -n "$GCC"; then
23511 linux*) haveit=yes;;
23515 if test -z "$haveit"; then
23517 for x in $LDFLAGS $LIBINTL; do
23519 acl_save_prefix="$prefix"
23520 prefix="$acl_final_prefix"
23521 acl_save_exec_prefix="$exec_prefix"
23522 exec_prefix="$acl_final_exec_prefix"
23524 exec_prefix="$acl_save_exec_prefix"
23525 prefix="$acl_save_prefix"
23527 if test "X$x" = "X-L$additional_libdir"; then
23532 if test -z "$haveit"; then
23533 if test -d "$additional_libdir"; then
23534 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23538 for x in $LDFLAGS $LTLIBINTL; do
23540 acl_save_prefix="$prefix"
23541 prefix="$acl_final_prefix"
23542 acl_save_exec_prefix="$exec_prefix"
23543 exec_prefix="$acl_final_exec_prefix"
23545 exec_prefix="$acl_save_exec_prefix"
23546 prefix="$acl_save_prefix"
23548 if test "X$x" = "X-L$additional_libdir"; then
23553 if test -z "$haveit"; then
23554 if test -d "$additional_libdir"; then
23555 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23562 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23563 if test "$enable_rpath" != no; then
23565 for x in $rpathdirs; do
23566 if test "X$x" = "X$dir"; then
23571 if test -z "$haveit"; then
23572 rpathdirs="$rpathdirs $dir"
23575 for x in $ltrpathdirs; do
23576 if test "X$x" = "X$dir"; then
23581 if test -z "$haveit"; then
23582 ltrpathdirs="$ltrpathdirs $dir"
23587 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23590 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23593 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23594 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23600 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23601 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23607 if test "X$rpathdirs" != "X"; then
23608 if test -n "$hardcode_libdir_separator"; then
23610 for found_dir in $rpathdirs; do
23611 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23613 acl_save_libdir="$libdir"
23615 eval flag=\"$hardcode_libdir_flag_spec\"
23616 libdir="$acl_save_libdir"
23617 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23619 for found_dir in $rpathdirs; do
23620 acl_save_libdir="$libdir"
23621 libdir="$found_dir"
23622 eval flag=\"$hardcode_libdir_flag_spec\"
23623 libdir="$acl_save_libdir"
23624 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23628 if test "X$ltrpathdirs" != "X"; then
23629 for found_dir in $ltrpathdirs; do
23630 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23634 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23635 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
23636 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23637 echo $ECHO_N "(cached) $ECHO_C" >&6
23639 gt_save_CPPFLAGS="$CPPFLAGS"
23640 CPPFLAGS="$CPPFLAGS $INCINTL"
23641 gt_save_LIBS="$LIBS"
23642 LIBS="$LIBS $LIBINTL"
23643 cat >conftest.$ac_ext <<_ACEOF
23646 cat confdefs.h >>conftest.$ac_ext
23647 cat >>conftest.$ac_ext <<_ACEOF
23648 /* end confdefs.h. */
23649 #include <libintl.h>
23650 extern int _nl_msg_cat_cntr;
23655 const char *_nl_expand_alias ();
23659 bindtextdomain ("", "");
23660 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23665 rm -f conftest.$ac_objext conftest$ac_exeext
23666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23667 (eval $ac_link) 2>conftest.er1
23669 grep -v '^ *+' conftest.er1 >conftest.err
23671 cat conftest.err >&5
23672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673 (exit $ac_status); } &&
23674 { ac_try='test -z "$ac_c_werror_flag"
23675 || test ! -s conftest.err'
23676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677 (eval $ac_try) 2>&5
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); }; } &&
23681 { ac_try='test -s conftest$ac_exeext'
23682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683 (eval $ac_try) 2>&5
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); }; }; then
23687 gt_cv_func_gnugettext1_libintl=yes
23689 echo "$as_me: failed program was:" >&5
23690 sed 's/^/| /' conftest.$ac_ext >&5
23692 gt_cv_func_gnugettext1_libintl=no
23694 rm -f conftest.err conftest.$ac_objext \
23695 conftest$ac_exeext conftest.$ac_ext
23696 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23697 LIBS="$LIBS $LIBICONV"
23698 cat >conftest.$ac_ext <<_ACEOF
23701 cat confdefs.h >>conftest.$ac_ext
23702 cat >>conftest.$ac_ext <<_ACEOF
23703 /* end confdefs.h. */
23704 #include <libintl.h>
23705 extern int _nl_msg_cat_cntr;
23710 const char *_nl_expand_alias ();
23714 bindtextdomain ("", "");
23715 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23720 rm -f conftest.$ac_objext conftest$ac_exeext
23721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23722 (eval $ac_link) 2>conftest.er1
23724 grep -v '^ *+' conftest.er1 >conftest.err
23726 cat conftest.err >&5
23727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728 (exit $ac_status); } &&
23729 { ac_try='test -z "$ac_c_werror_flag"
23730 || test ! -s conftest.err'
23731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23732 (eval $ac_try) 2>&5
23734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); }; } &&
23736 { ac_try='test -s conftest$ac_exeext'
23737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23738 (eval $ac_try) 2>&5
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); }; }; then
23742 LIBINTL="$LIBINTL $LIBICONV"
23743 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23744 gt_cv_func_gnugettext1_libintl=yes
23747 echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23751 rm -f conftest.err conftest.$ac_objext \
23752 conftest$ac_exeext conftest.$ac_ext
23754 CPPFLAGS="$gt_save_CPPFLAGS"
23755 LIBS="$gt_save_LIBS"
23757 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23758 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
23761 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23762 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23763 && test "$PACKAGE" != gettext-runtime \
23764 && test "$PACKAGE" != gettext-tools; }; then
23765 gt_use_preinstalled_gnugettext=yes
23774 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23775 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23777 cat >>confdefs.h <<\_ACEOF
23778 #define ENABLE_NLS 1
23786 echo "$as_me:$LINENO: checking whether to use NLS" >&5
23787 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
23788 echo "$as_me:$LINENO: result: $USE_NLS" >&5
23789 echo "${ECHO_T}$USE_NLS" >&6
23790 if test "$USE_NLS" = "yes"; then
23791 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23792 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
23793 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23794 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23795 gt_source="external libintl"
23800 gt_source="included intl directory"
23802 echo "$as_me:$LINENO: result: $gt_source" >&5
23803 echo "${ECHO_T}$gt_source" >&6
23806 if test "$USE_NLS" = "yes"; then
23808 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23809 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23810 echo "$as_me:$LINENO: checking how to link with libintl" >&5
23811 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
23812 echo "$as_me:$LINENO: result: $LIBINTL" >&5
23813 echo "${ECHO_T}$LIBINTL" >&6
23815 for element in $INCINTL; do
23817 for x in $CPPFLAGS; do
23819 acl_save_prefix="$prefix"
23820 prefix="$acl_final_prefix"
23821 acl_save_exec_prefix="$exec_prefix"
23822 exec_prefix="$acl_final_exec_prefix"
23824 exec_prefix="$acl_save_exec_prefix"
23825 prefix="$acl_save_prefix"
23827 if test "X$x" = "X$element"; then
23832 if test -z "$haveit"; then
23833 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23840 cat >>confdefs.h <<\_ACEOF
23841 #define HAVE_GETTEXT 1
23845 cat >>confdefs.h <<\_ACEOF
23846 #define HAVE_DCGETTEXT 1
23856 INTLLIBS="$LIBINTL"
23863 # The error module still poses merge problems.
23864 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
23865 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
23866 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
23867 echo $ECHO_N "(cached) $ECHO_C" >&6
23869 cat >conftest.$ac_ext <<_ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h. */
23875 $ac_includes_default
23880 char *p = (char *) strerror_r;
23887 rm -f conftest.$ac_objext
23888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23889 (eval $ac_compile) 2>conftest.er1
23891 grep -v '^ *+' conftest.er1 >conftest.err
23893 cat conftest.err >&5
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); } &&
23896 { ac_try='test -z "$ac_c_werror_flag"
23897 || test ! -s conftest.err'
23898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23899 (eval $ac_try) 2>&5
23901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); }; } &&
23903 { ac_try='test -s conftest.$ac_objext'
23904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23905 (eval $ac_try) 2>&5
23907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); }; }; then
23909 ac_cv_have_decl_strerror_r=yes
23911 echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23914 ac_cv_have_decl_strerror_r=no
23916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23918 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
23919 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
23920 if test $ac_cv_have_decl_strerror_r = yes; then
23922 cat >>confdefs.h <<_ACEOF
23923 #define HAVE_DECL_STRERROR_R 1
23928 cat >>confdefs.h <<_ACEOF
23929 #define HAVE_DECL_STRERROR_R 0
23937 for ac_func in strerror_r
23939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23940 echo "$as_me:$LINENO: checking for $ac_func" >&5
23941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23942 if eval "test \"\${$as_ac_var+set}\" = set"; then
23943 echo $ECHO_N "(cached) $ECHO_C" >&6
23945 cat >conftest.$ac_ext <<_ACEOF
23948 cat confdefs.h >>conftest.$ac_ext
23949 cat >>conftest.$ac_ext <<_ACEOF
23950 /* end confdefs.h. */
23951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23953 #define $ac_func innocuous_$ac_func
23955 /* System header to define __stub macros and hopefully few prototypes,
23956 which can conflict with char $ac_func (); below.
23957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23958 <limits.h> exists even on freestanding compilers. */
23961 # include <limits.h>
23963 # include <assert.h>
23968 /* Override any gcc2 internal prototype to avoid an error. */
23973 /* We use char because int might match the return type of a gcc2
23974 builtin and then its argument prototype would still apply. */
23976 /* The GNU C library defines this for functions which it implements
23977 to always fail with ENOSYS. Some functions are actually named
23978 something starting with __ and the normal name is an alias. */
23979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23982 char (*f) () = $ac_func;
23991 return f != $ac_func;
23996 rm -f conftest.$ac_objext conftest$ac_exeext
23997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23998 (eval $ac_link) 2>conftest.er1
24000 grep -v '^ *+' conftest.er1 >conftest.err
24002 cat conftest.err >&5
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); } &&
24005 { ac_try='test -z "$ac_c_werror_flag"
24006 || test ! -s conftest.err'
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; } &&
24012 { ac_try='test -s conftest$ac_exeext'
24013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014 (eval $ac_try) 2>&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); }; }; then
24018 eval "$as_ac_var=yes"
24020 echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24023 eval "$as_ac_var=no"
24025 rm -f conftest.err conftest.$ac_objext \
24026 conftest$ac_exeext conftest.$ac_ext
24028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24030 if test `eval echo '${'$as_ac_var'}'` = yes; then
24031 cat >>confdefs.h <<_ACEOF
24032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24038 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
24039 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
24040 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
24041 echo $ECHO_N "(cached) $ECHO_C" >&6
24044 ac_cv_func_strerror_r_char_p=no
24045 if test $ac_cv_have_decl_strerror_r = yes; then
24046 cat >conftest.$ac_ext <<_ACEOF
24049 cat confdefs.h >>conftest.$ac_ext
24050 cat >>conftest.$ac_ext <<_ACEOF
24051 /* end confdefs.h. */
24052 $ac_includes_default
24058 char x = *strerror_r (0, buf, sizeof buf);
24059 char *p = strerror_r (0, buf, sizeof buf);
24065 rm -f conftest.$ac_objext
24066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24067 (eval $ac_compile) 2>conftest.er1
24069 grep -v '^ *+' conftest.er1 >conftest.err
24071 cat conftest.err >&5
24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); } &&
24074 { ac_try='test -z "$ac_c_werror_flag"
24075 || test ! -s conftest.err'
24076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24077 (eval $ac_try) 2>&5
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); }; } &&
24081 { ac_try='test -s conftest.$ac_objext'
24082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24083 (eval $ac_try) 2>&5
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); }; }; then
24087 ac_cv_func_strerror_r_char_p=yes
24089 echo "$as_me: failed program was:" >&5
24090 sed 's/^/| /' conftest.$ac_ext >&5
24093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24095 # strerror_r is not declared. Choose between
24096 # systems that have relatively inaccessible declarations for the
24097 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24098 # former has a strerror_r that returns char*, while the latter
24099 # has a strerror_r that returns `int'.
24100 # This test should segfault on the DEC system.
24101 if test "$cross_compiling" = yes; then
24104 cat >conftest.$ac_ext <<_ACEOF
24107 cat confdefs.h >>conftest.$ac_ext
24108 cat >>conftest.$ac_ext <<_ACEOF
24109 /* end confdefs.h. */
24110 $ac_includes_default
24111 extern char *strerror_r ();
24116 char x = *strerror_r (0, buf, sizeof buf);
24117 exit (!isalpha (x));
24122 rm -f conftest$ac_exeext
24123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24124 (eval $ac_link) 2>&5
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24129 (eval $ac_try) 2>&5
24131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132 (exit $ac_status); }; }; then
24133 ac_cv_func_strerror_r_char_p=yes
24135 echo "$as_me: program exited with status $ac_status" >&5
24136 echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24145 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
24146 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
24147 if test $ac_cv_func_strerror_r_char_p = yes; then
24149 cat >>confdefs.h <<\_ACEOF
24150 #define STRERROR_R_CHAR_P 1
24159 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
24161 test $ac_cv_type_long_long = yes \
24162 && ac_type='long long' \
24165 cat >>confdefs.h <<_ACEOF
24166 #define intmax_t $ac_type
24171 cat >>confdefs.h <<\_ACEOF
24172 #define HAVE_INTMAX_T 1
24184 # End GNULIB stuff.
24189 # Check for function existance.
24245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24246 echo "$as_me:$LINENO: checking for $ac_func" >&5
24247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24248 if eval "test \"\${$as_ac_var+set}\" = set"; then
24249 echo $ECHO_N "(cached) $ECHO_C" >&6
24251 cat >conftest.$ac_ext <<_ACEOF
24254 cat confdefs.h >>conftest.$ac_ext
24255 cat >>conftest.$ac_ext <<_ACEOF
24256 /* end confdefs.h. */
24257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24259 #define $ac_func innocuous_$ac_func
24261 /* System header to define __stub macros and hopefully few prototypes,
24262 which can conflict with char $ac_func (); below.
24263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24264 <limits.h> exists even on freestanding compilers. */
24267 # include <limits.h>
24269 # include <assert.h>
24274 /* Override any gcc2 internal prototype to avoid an error. */
24279 /* We use char because int might match the return type of a gcc2
24280 builtin and then its argument prototype would still apply. */
24282 /* The GNU C library defines this for functions which it implements
24283 to always fail with ENOSYS. Some functions are actually named
24284 something starting with __ and the normal name is an alias. */
24285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24288 char (*f) () = $ac_func;
24297 return f != $ac_func;
24302 rm -f conftest.$ac_objext conftest$ac_exeext
24303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24304 (eval $ac_link) 2>conftest.er1
24306 grep -v '^ *+' conftest.er1 >conftest.err
24308 cat conftest.err >&5
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); } &&
24311 { ac_try='test -z "$ac_c_werror_flag"
24312 || test ! -s conftest.err'
24313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24314 (eval $ac_try) 2>&5
24316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); }; } &&
24318 { ac_try='test -s conftest$ac_exeext'
24319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24320 (eval $ac_try) 2>&5
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); }; }; then
24324 eval "$as_ac_var=yes"
24326 echo "$as_me: failed program was:" >&5
24327 sed 's/^/| /' conftest.$ac_ext >&5
24329 eval "$as_ac_var=no"
24331 rm -f conftest.err conftest.$ac_objext \
24332 conftest$ac_exeext conftest.$ac_ext
24334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24336 if test `eval echo '${'$as_ac_var'}'` = yes; then
24337 cat >>confdefs.h <<_ACEOF
24338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24344 HAVE_PUTENV=$ac_cv_func_putenv
24347 if test $cross_compiling = yes ; then
24349 cat >>confdefs.h <<\_ACEOF
24350 #define CROSS_COMPILING 1
24354 echo "$as_me:$LINENO: checking for char" >&5
24355 echo $ECHO_N "checking for char... $ECHO_C" >&6
24356 if test "${ac_cv_type_char+set}" = set; then
24357 echo $ECHO_N "(cached) $ECHO_C" >&6
24359 cat >conftest.$ac_ext <<_ACEOF
24362 cat confdefs.h >>conftest.$ac_ext
24363 cat >>conftest.$ac_ext <<_ACEOF
24364 /* end confdefs.h. */
24365 $ac_includes_default
24377 rm -f conftest.$ac_objext
24378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24379 (eval $ac_compile) 2>conftest.er1
24381 grep -v '^ *+' conftest.er1 >conftest.err
24383 cat conftest.err >&5
24384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385 (exit $ac_status); } &&
24386 { ac_try='test -z "$ac_c_werror_flag"
24387 || test ! -s conftest.err'
24388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24389 (eval $ac_try) 2>&5
24391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392 (exit $ac_status); }; } &&
24393 { ac_try='test -s conftest.$ac_objext'
24394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24395 (eval $ac_try) 2>&5
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); }; }; then
24399 ac_cv_type_char=yes
24401 echo "$as_me: failed program was:" >&5
24402 sed 's/^/| /' conftest.$ac_ext >&5
24406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24408 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
24409 echo "${ECHO_T}$ac_cv_type_char" >&6
24411 echo "$as_me:$LINENO: checking size of char" >&5
24412 echo $ECHO_N "checking size of char... $ECHO_C" >&6
24413 if test "${ac_cv_sizeof_char+set}" = set; then
24414 echo $ECHO_N "(cached) $ECHO_C" >&6
24416 if test "$ac_cv_type_char" = yes; then
24417 # The cast to unsigned long works around a bug in the HP C Compiler
24418 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24419 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24420 # This bug is HP SR number 8606223364.
24421 if test "$cross_compiling" = yes; then
24422 # Depending upon the size, compute the lo and hi bounds.
24423 cat >conftest.$ac_ext <<_ACEOF
24426 cat confdefs.h >>conftest.$ac_ext
24427 cat >>conftest.$ac_ext <<_ACEOF
24428 /* end confdefs.h. */
24429 $ac_includes_default
24433 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
24440 rm -f conftest.$ac_objext
24441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24442 (eval $ac_compile) 2>conftest.er1
24444 grep -v '^ *+' conftest.er1 >conftest.err
24446 cat conftest.err >&5
24447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); } &&
24449 { ac_try='test -z "$ac_c_werror_flag"
24450 || test ! -s conftest.err'
24451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24452 (eval $ac_try) 2>&5
24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); }; } &&
24456 { ac_try='test -s conftest.$ac_objext'
24457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24458 (eval $ac_try) 2>&5
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); }; }; then
24464 cat >conftest.$ac_ext <<_ACEOF
24467 cat confdefs.h >>conftest.$ac_ext
24468 cat >>conftest.$ac_ext <<_ACEOF
24469 /* end confdefs.h. */
24470 $ac_includes_default
24474 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
24481 rm -f conftest.$ac_objext
24482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24483 (eval $ac_compile) 2>conftest.er1
24485 grep -v '^ *+' conftest.er1 >conftest.err
24487 cat conftest.err >&5
24488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489 (exit $ac_status); } &&
24490 { ac_try='test -z "$ac_c_werror_flag"
24491 || test ! -s conftest.err'
24492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24493 (eval $ac_try) 2>&5
24495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496 (exit $ac_status); }; } &&
24497 { ac_try='test -s conftest.$ac_objext'
24498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24499 (eval $ac_try) 2>&5
24501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502 (exit $ac_status); }; }; then
24503 ac_hi=$ac_mid; break
24505 echo "$as_me: failed program was:" >&5
24506 sed 's/^/| /' conftest.$ac_ext >&5
24508 ac_lo=`expr $ac_mid + 1`
24509 if test $ac_lo -le $ac_mid; then
24513 ac_mid=`expr 2 '*' $ac_mid + 1`
24515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24518 echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24521 cat >conftest.$ac_ext <<_ACEOF
24524 cat confdefs.h >>conftest.$ac_ext
24525 cat >>conftest.$ac_ext <<_ACEOF
24526 /* end confdefs.h. */
24527 $ac_includes_default
24531 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
24538 rm -f conftest.$ac_objext
24539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24540 (eval $ac_compile) 2>conftest.er1
24542 grep -v '^ *+' conftest.er1 >conftest.err
24544 cat conftest.err >&5
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); } &&
24547 { ac_try='test -z "$ac_c_werror_flag"
24548 || test ! -s conftest.err'
24549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24550 (eval $ac_try) 2>&5
24552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553 (exit $ac_status); }; } &&
24554 { ac_try='test -s conftest.$ac_objext'
24555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24556 (eval $ac_try) 2>&5
24558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); }; }; then
24562 cat >conftest.$ac_ext <<_ACEOF
24565 cat confdefs.h >>conftest.$ac_ext
24566 cat >>conftest.$ac_ext <<_ACEOF
24567 /* end confdefs.h. */
24568 $ac_includes_default
24572 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
24579 rm -f conftest.$ac_objext
24580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24581 (eval $ac_compile) 2>conftest.er1
24583 grep -v '^ *+' conftest.er1 >conftest.err
24585 cat conftest.err >&5
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); } &&
24588 { ac_try='test -z "$ac_c_werror_flag"
24589 || test ! -s conftest.err'
24590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591 (eval $ac_try) 2>&5
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); }; } &&
24595 { ac_try='test -s conftest.$ac_objext'
24596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24597 (eval $ac_try) 2>&5
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); }; }; then
24601 ac_lo=$ac_mid; break
24603 echo "$as_me: failed program was:" >&5
24604 sed 's/^/| /' conftest.$ac_ext >&5
24606 ac_hi=`expr '(' $ac_mid ')' - 1`
24607 if test $ac_mid -le $ac_hi; then
24611 ac_mid=`expr 2 '*' $ac_mid`
24613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24616 echo "$as_me: failed program was:" >&5
24617 sed 's/^/| /' conftest.$ac_ext >&5
24621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24624 # Binary search between lo and hi bounds.
24625 while test "x$ac_lo" != "x$ac_hi"; do
24626 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24627 cat >conftest.$ac_ext <<_ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h. */
24633 $ac_includes_default
24637 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
24644 rm -f conftest.$ac_objext
24645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24646 (eval $ac_compile) 2>conftest.er1
24648 grep -v '^ *+' conftest.er1 >conftest.err
24650 cat conftest.err >&5
24651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652 (exit $ac_status); } &&
24653 { ac_try='test -z "$ac_c_werror_flag"
24654 || test ! -s conftest.err'
24655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24656 (eval $ac_try) 2>&5
24658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659 (exit $ac_status); }; } &&
24660 { ac_try='test -s conftest.$ac_objext'
24661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24662 (eval $ac_try) 2>&5
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); }; }; then
24668 echo "$as_me: failed program was:" >&5
24669 sed 's/^/| /' conftest.$ac_ext >&5
24671 ac_lo=`expr '(' $ac_mid ')' + 1`
24673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24676 ?*) ac_cv_sizeof_char=$ac_lo;;
24677 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
24678 See \`config.log' for more details." >&5
24679 echo "$as_me: error: cannot compute sizeof (char), 77
24680 See \`config.log' for more details." >&2;}
24681 { (exit 1); exit 1; }; } ;;
24684 if test "$cross_compiling" = yes; then
24685 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24686 See \`config.log' for more details." >&5
24687 echo "$as_me: error: cannot run test program while cross compiling
24688 See \`config.log' for more details." >&2;}
24689 { (exit 1); exit 1; }; }
24691 cat >conftest.$ac_ext <<_ACEOF
24694 cat confdefs.h >>conftest.$ac_ext
24695 cat >>conftest.$ac_ext <<_ACEOF
24696 /* end confdefs.h. */
24697 $ac_includes_default
24698 long longval () { return (long) (sizeof (char)); }
24699 unsigned long ulongval () { return (long) (sizeof (char)); }
24701 #include <stdlib.h>
24706 FILE *f = fopen ("conftest.val", "w");
24709 if (((long) (sizeof (char))) < 0)
24711 long i = longval ();
24712 if (i != ((long) (sizeof (char))))
24714 fprintf (f, "%ld\n", i);
24718 unsigned long i = ulongval ();
24719 if (i != ((long) (sizeof (char))))
24721 fprintf (f, "%lu\n", i);
24723 exit (ferror (f) || fclose (f) != 0);
24729 rm -f conftest$ac_exeext
24730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24731 (eval $ac_link) 2>&5
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24736 (eval $ac_try) 2>&5
24738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); }; }; then
24740 ac_cv_sizeof_char=`cat conftest.val`
24742 echo "$as_me: program exited with status $ac_status" >&5
24743 echo "$as_me: failed program was:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24746 ( exit $ac_status )
24747 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
24748 See \`config.log' for more details." >&5
24749 echo "$as_me: error: cannot compute sizeof (char), 77
24750 See \`config.log' for more details." >&2;}
24751 { (exit 1); exit 1; }; }
24753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24758 ac_cv_sizeof_char=0
24761 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
24762 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
24763 cat >>confdefs.h <<_ACEOF
24764 #define SIZEOF_CHAR $ac_cv_sizeof_char
24768 echo "$as_me:$LINENO: checking for uniquely sized char" >&5
24769 echo $ECHO_N "checking for uniquely sized char... $ECHO_C" >&6
24770 if test "${ccvs_cv_unique_int_type_char+set}" = set; then
24771 echo $ECHO_N "(cached) $ECHO_C" >&6
24773 if set |grep ^ccvs_cv_unique_int_type_ \
24774 |grep "($ac_cv_sizeof_char)" >/dev/null ; then
24775 ccvs_cv_unique_int_type_char=no
24777 ccvs_cv_unique_int_type_char=yes\($ac_cv_sizeof_char\)
24780 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_char" >&5
24781 echo "${ECHO_T}$ccvs_cv_unique_int_type_char" >&6
24782 if test $ccvs_cv_unique_int_type_char != no ; then
24784 cat >>confdefs.h <<\_ACEOF
24785 #define UNIQUE_INT_TYPE_CHAR 1
24789 echo "$as_me:$LINENO: checking for short" >&5
24790 echo $ECHO_N "checking for short... $ECHO_C" >&6
24791 if test "${ac_cv_type_short+set}" = set; then
24792 echo $ECHO_N "(cached) $ECHO_C" >&6
24794 cat >conftest.$ac_ext <<_ACEOF
24797 cat confdefs.h >>conftest.$ac_ext
24798 cat >>conftest.$ac_ext <<_ACEOF
24799 /* end confdefs.h. */
24800 $ac_includes_default
24806 if (sizeof (short))
24812 rm -f conftest.$ac_objext
24813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24814 (eval $ac_compile) 2>conftest.er1
24816 grep -v '^ *+' conftest.er1 >conftest.err
24818 cat conftest.err >&5
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); } &&
24821 { ac_try='test -z "$ac_c_werror_flag"
24822 || test ! -s conftest.err'
24823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24824 (eval $ac_try) 2>&5
24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); }; } &&
24828 { ac_try='test -s conftest.$ac_objext'
24829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24830 (eval $ac_try) 2>&5
24832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833 (exit $ac_status); }; }; then
24834 ac_cv_type_short=yes
24836 echo "$as_me: failed program was:" >&5
24837 sed 's/^/| /' conftest.$ac_ext >&5
24839 ac_cv_type_short=no
24841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24843 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
24844 echo "${ECHO_T}$ac_cv_type_short" >&6
24846 echo "$as_me:$LINENO: checking size of short" >&5
24847 echo $ECHO_N "checking size of short... $ECHO_C" >&6
24848 if test "${ac_cv_sizeof_short+set}" = set; then
24849 echo $ECHO_N "(cached) $ECHO_C" >&6
24851 if test "$ac_cv_type_short" = yes; then
24852 # The cast to unsigned long works around a bug in the HP C Compiler
24853 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24854 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24855 # This bug is HP SR number 8606223364.
24856 if test "$cross_compiling" = yes; then
24857 # Depending upon the size, compute the lo and hi bounds.
24858 cat >conftest.$ac_ext <<_ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h. */
24864 $ac_includes_default
24868 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
24875 rm -f conftest.$ac_objext
24876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24877 (eval $ac_compile) 2>conftest.er1
24879 grep -v '^ *+' conftest.er1 >conftest.err
24881 cat conftest.err >&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } &&
24884 { ac_try='test -z "$ac_c_werror_flag"
24885 || test ! -s conftest.err'
24886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; } &&
24891 { ac_try='test -s conftest.$ac_objext'
24892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893 (eval $ac_try) 2>&5
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }; }; then
24899 cat >conftest.$ac_ext <<_ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h. */
24905 $ac_includes_default
24909 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
24916 rm -f conftest.$ac_objext
24917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24918 (eval $ac_compile) 2>conftest.er1
24920 grep -v '^ *+' conftest.er1 >conftest.err
24922 cat conftest.err >&5
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } &&
24925 { ac_try='test -z "$ac_c_werror_flag"
24926 || test ! -s conftest.err'
24927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24928 (eval $ac_try) 2>&5
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); }; } &&
24932 { ac_try='test -s conftest.$ac_objext'
24933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24934 (eval $ac_try) 2>&5
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); }; }; then
24938 ac_hi=$ac_mid; break
24940 echo "$as_me: failed program was:" >&5
24941 sed 's/^/| /' conftest.$ac_ext >&5
24943 ac_lo=`expr $ac_mid + 1`
24944 if test $ac_lo -le $ac_mid; then
24948 ac_mid=`expr 2 '*' $ac_mid + 1`
24950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24953 echo "$as_me: failed program was:" >&5
24954 sed 's/^/| /' conftest.$ac_ext >&5
24956 cat >conftest.$ac_ext <<_ACEOF
24959 cat confdefs.h >>conftest.$ac_ext
24960 cat >>conftest.$ac_ext <<_ACEOF
24961 /* end confdefs.h. */
24962 $ac_includes_default
24966 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
24973 rm -f conftest.$ac_objext
24974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24975 (eval $ac_compile) 2>conftest.er1
24977 grep -v '^ *+' conftest.er1 >conftest.err
24979 cat conftest.err >&5
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); } &&
24982 { ac_try='test -z "$ac_c_werror_flag"
24983 || test ! -s conftest.err'
24984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985 (eval $ac_try) 2>&5
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); }; } &&
24989 { ac_try='test -s conftest.$ac_objext'
24990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24991 (eval $ac_try) 2>&5
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); }; }; then
24997 cat >conftest.$ac_ext <<_ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h. */
25003 $ac_includes_default
25007 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
25014 rm -f conftest.$ac_objext
25015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25016 (eval $ac_compile) 2>conftest.er1
25018 grep -v '^ *+' conftest.er1 >conftest.err
25020 cat conftest.err >&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); } &&
25023 { ac_try='test -z "$ac_c_werror_flag"
25024 || test ! -s conftest.err'
25025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026 (eval $ac_try) 2>&5
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); }; } &&
25030 { ac_try='test -s conftest.$ac_objext'
25031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25032 (eval $ac_try) 2>&5
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); }; }; then
25036 ac_lo=$ac_mid; break
25038 echo "$as_me: failed program was:" >&5
25039 sed 's/^/| /' conftest.$ac_ext >&5
25041 ac_hi=`expr '(' $ac_mid ')' - 1`
25042 if test $ac_mid -le $ac_hi; then
25046 ac_mid=`expr 2 '*' $ac_mid`
25048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25051 echo "$as_me: failed program was:" >&5
25052 sed 's/^/| /' conftest.$ac_ext >&5
25056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25059 # Binary search between lo and hi bounds.
25060 while test "x$ac_lo" != "x$ac_hi"; do
25061 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25062 cat >conftest.$ac_ext <<_ACEOF
25065 cat confdefs.h >>conftest.$ac_ext
25066 cat >>conftest.$ac_ext <<_ACEOF
25067 /* end confdefs.h. */
25068 $ac_includes_default
25072 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
25079 rm -f conftest.$ac_objext
25080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25081 (eval $ac_compile) 2>conftest.er1
25083 grep -v '^ *+' conftest.er1 >conftest.err
25085 cat conftest.err >&5
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } &&
25088 { ac_try='test -z "$ac_c_werror_flag"
25089 || test ! -s conftest.err'
25090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25091 (eval $ac_try) 2>&5
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); }; } &&
25095 { ac_try='test -s conftest.$ac_objext'
25096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25097 (eval $ac_try) 2>&5
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); }; }; then
25103 echo "$as_me: failed program was:" >&5
25104 sed 's/^/| /' conftest.$ac_ext >&5
25106 ac_lo=`expr '(' $ac_mid ')' + 1`
25108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25111 ?*) ac_cv_sizeof_short=$ac_lo;;
25112 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
25113 See \`config.log' for more details." >&5
25114 echo "$as_me: error: cannot compute sizeof (short), 77
25115 See \`config.log' for more details." >&2;}
25116 { (exit 1); exit 1; }; } ;;
25119 if test "$cross_compiling" = yes; then
25120 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25121 See \`config.log' for more details." >&5
25122 echo "$as_me: error: cannot run test program while cross compiling
25123 See \`config.log' for more details." >&2;}
25124 { (exit 1); exit 1; }; }
25126 cat >conftest.$ac_ext <<_ACEOF
25129 cat confdefs.h >>conftest.$ac_ext
25130 cat >>conftest.$ac_ext <<_ACEOF
25131 /* end confdefs.h. */
25132 $ac_includes_default
25133 long longval () { return (long) (sizeof (short)); }
25134 unsigned long ulongval () { return (long) (sizeof (short)); }
25136 #include <stdlib.h>
25141 FILE *f = fopen ("conftest.val", "w");
25144 if (((long) (sizeof (short))) < 0)
25146 long i = longval ();
25147 if (i != ((long) (sizeof (short))))
25149 fprintf (f, "%ld\n", i);
25153 unsigned long i = ulongval ();
25154 if (i != ((long) (sizeof (short))))
25156 fprintf (f, "%lu\n", i);
25158 exit (ferror (f) || fclose (f) != 0);
25164 rm -f conftest$ac_exeext
25165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25166 (eval $ac_link) 2>&5
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25171 (eval $ac_try) 2>&5
25173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); }; }; then
25175 ac_cv_sizeof_short=`cat conftest.val`
25177 echo "$as_me: program exited with status $ac_status" >&5
25178 echo "$as_me: failed program was:" >&5
25179 sed 's/^/| /' conftest.$ac_ext >&5
25181 ( exit $ac_status )
25182 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
25183 See \`config.log' for more details." >&5
25184 echo "$as_me: error: cannot compute sizeof (short), 77
25185 See \`config.log' for more details." >&2;}
25186 { (exit 1); exit 1; }; }
25188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25193 ac_cv_sizeof_short=0
25196 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
25197 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
25198 cat >>confdefs.h <<_ACEOF
25199 #define SIZEOF_SHORT $ac_cv_sizeof_short
25203 echo "$as_me:$LINENO: checking for uniquely sized short" >&5
25204 echo $ECHO_N "checking for uniquely sized short... $ECHO_C" >&6
25205 if test "${ccvs_cv_unique_int_type_short+set}" = set; then
25206 echo $ECHO_N "(cached) $ECHO_C" >&6
25208 if set |grep ^ccvs_cv_unique_int_type_ \
25209 |grep "($ac_cv_sizeof_short)" >/dev/null ; then
25210 ccvs_cv_unique_int_type_short=no
25212 ccvs_cv_unique_int_type_short=yes\($ac_cv_sizeof_short\)
25215 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_short" >&5
25216 echo "${ECHO_T}$ccvs_cv_unique_int_type_short" >&6
25217 if test $ccvs_cv_unique_int_type_short != no ; then
25219 cat >>confdefs.h <<\_ACEOF
25220 #define UNIQUE_INT_TYPE_SHORT 1
25224 echo "$as_me:$LINENO: checking for int" >&5
25225 echo $ECHO_N "checking for int... $ECHO_C" >&6
25226 if test "${ac_cv_type_int+set}" = set; then
25227 echo $ECHO_N "(cached) $ECHO_C" >&6
25229 cat >conftest.$ac_ext <<_ACEOF
25232 cat confdefs.h >>conftest.$ac_ext
25233 cat >>conftest.$ac_ext <<_ACEOF
25234 /* end confdefs.h. */
25235 $ac_includes_default
25247 rm -f conftest.$ac_objext
25248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25249 (eval $ac_compile) 2>conftest.er1
25251 grep -v '^ *+' conftest.er1 >conftest.err
25253 cat conftest.err >&5
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); } &&
25256 { ac_try='test -z "$ac_c_werror_flag"
25257 || test ! -s conftest.err'
25258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25259 (eval $ac_try) 2>&5
25261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262 (exit $ac_status); }; } &&
25263 { ac_try='test -s conftest.$ac_objext'
25264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25265 (eval $ac_try) 2>&5
25267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268 (exit $ac_status); }; }; then
25271 echo "$as_me: failed program was:" >&5
25272 sed 's/^/| /' conftest.$ac_ext >&5
25276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25278 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
25279 echo "${ECHO_T}$ac_cv_type_int" >&6
25281 echo "$as_me:$LINENO: checking size of int" >&5
25282 echo $ECHO_N "checking size of int... $ECHO_C" >&6
25283 if test "${ac_cv_sizeof_int+set}" = set; then
25284 echo $ECHO_N "(cached) $ECHO_C" >&6
25286 if test "$ac_cv_type_int" = yes; then
25287 # The cast to unsigned long works around a bug in the HP C Compiler
25288 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25289 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25290 # This bug is HP SR number 8606223364.
25291 if test "$cross_compiling" = yes; then
25292 # Depending upon the size, compute the lo and hi bounds.
25293 cat >conftest.$ac_ext <<_ACEOF
25296 cat confdefs.h >>conftest.$ac_ext
25297 cat >>conftest.$ac_ext <<_ACEOF
25298 /* end confdefs.h. */
25299 $ac_includes_default
25303 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
25310 rm -f conftest.$ac_objext
25311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25312 (eval $ac_compile) 2>conftest.er1
25314 grep -v '^ *+' conftest.er1 >conftest.err
25316 cat conftest.err >&5
25317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318 (exit $ac_status); } &&
25319 { ac_try='test -z "$ac_c_werror_flag"
25320 || test ! -s conftest.err'
25321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25322 (eval $ac_try) 2>&5
25324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); }; } &&
25326 { ac_try='test -s conftest.$ac_objext'
25327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25328 (eval $ac_try) 2>&5
25330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); }; }; then
25334 cat >conftest.$ac_ext <<_ACEOF
25337 cat confdefs.h >>conftest.$ac_ext
25338 cat >>conftest.$ac_ext <<_ACEOF
25339 /* end confdefs.h. */
25340 $ac_includes_default
25344 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
25351 rm -f conftest.$ac_objext
25352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25353 (eval $ac_compile) 2>conftest.er1
25355 grep -v '^ *+' conftest.er1 >conftest.err
25357 cat conftest.err >&5
25358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); } &&
25360 { ac_try='test -z "$ac_c_werror_flag"
25361 || test ! -s conftest.err'
25362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25363 (eval $ac_try) 2>&5
25365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); }; } &&
25367 { ac_try='test -s conftest.$ac_objext'
25368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25369 (eval $ac_try) 2>&5
25371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372 (exit $ac_status); }; }; then
25373 ac_hi=$ac_mid; break
25375 echo "$as_me: failed program was:" >&5
25376 sed 's/^/| /' conftest.$ac_ext >&5
25378 ac_lo=`expr $ac_mid + 1`
25379 if test $ac_lo -le $ac_mid; then
25383 ac_mid=`expr 2 '*' $ac_mid + 1`
25385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25388 echo "$as_me: failed program was:" >&5
25389 sed 's/^/| /' conftest.$ac_ext >&5
25391 cat >conftest.$ac_ext <<_ACEOF
25394 cat confdefs.h >>conftest.$ac_ext
25395 cat >>conftest.$ac_ext <<_ACEOF
25396 /* end confdefs.h. */
25397 $ac_includes_default
25401 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
25408 rm -f conftest.$ac_objext
25409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25410 (eval $ac_compile) 2>conftest.er1
25412 grep -v '^ *+' conftest.er1 >conftest.err
25414 cat conftest.err >&5
25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); } &&
25417 { ac_try='test -z "$ac_c_werror_flag"
25418 || test ! -s conftest.err'
25419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25420 (eval $ac_try) 2>&5
25422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423 (exit $ac_status); }; } &&
25424 { ac_try='test -s conftest.$ac_objext'
25425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25426 (eval $ac_try) 2>&5
25428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); }; }; then
25432 cat >conftest.$ac_ext <<_ACEOF
25435 cat confdefs.h >>conftest.$ac_ext
25436 cat >>conftest.$ac_ext <<_ACEOF
25437 /* end confdefs.h. */
25438 $ac_includes_default
25442 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
25449 rm -f conftest.$ac_objext
25450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25451 (eval $ac_compile) 2>conftest.er1
25453 grep -v '^ *+' conftest.er1 >conftest.err
25455 cat conftest.err >&5
25456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); } &&
25458 { ac_try='test -z "$ac_c_werror_flag"
25459 || test ! -s conftest.err'
25460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25461 (eval $ac_try) 2>&5
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); }; } &&
25465 { ac_try='test -s conftest.$ac_objext'
25466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25467 (eval $ac_try) 2>&5
25469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470 (exit $ac_status); }; }; then
25471 ac_lo=$ac_mid; break
25473 echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25476 ac_hi=`expr '(' $ac_mid ')' - 1`
25477 if test $ac_mid -le $ac_hi; then
25481 ac_mid=`expr 2 '*' $ac_mid`
25483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25486 echo "$as_me: failed program was:" >&5
25487 sed 's/^/| /' conftest.$ac_ext >&5
25491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25494 # Binary search between lo and hi bounds.
25495 while test "x$ac_lo" != "x$ac_hi"; do
25496 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25497 cat >conftest.$ac_ext <<_ACEOF
25500 cat confdefs.h >>conftest.$ac_ext
25501 cat >>conftest.$ac_ext <<_ACEOF
25502 /* end confdefs.h. */
25503 $ac_includes_default
25507 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
25514 rm -f conftest.$ac_objext
25515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25516 (eval $ac_compile) 2>conftest.er1
25518 grep -v '^ *+' conftest.er1 >conftest.err
25520 cat conftest.err >&5
25521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522 (exit $ac_status); } &&
25523 { ac_try='test -z "$ac_c_werror_flag"
25524 || test ! -s conftest.err'
25525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526 (eval $ac_try) 2>&5
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); }; } &&
25530 { ac_try='test -s conftest.$ac_objext'
25531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532 (eval $ac_try) 2>&5
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); }; }; then
25538 echo "$as_me: failed program was:" >&5
25539 sed 's/^/| /' conftest.$ac_ext >&5
25541 ac_lo=`expr '(' $ac_mid ')' + 1`
25543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25546 ?*) ac_cv_sizeof_int=$ac_lo;;
25547 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
25548 See \`config.log' for more details." >&5
25549 echo "$as_me: error: cannot compute sizeof (int), 77
25550 See \`config.log' for more details." >&2;}
25551 { (exit 1); exit 1; }; } ;;
25554 if test "$cross_compiling" = yes; then
25555 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25556 See \`config.log' for more details." >&5
25557 echo "$as_me: error: cannot run test program while cross compiling
25558 See \`config.log' for more details." >&2;}
25559 { (exit 1); exit 1; }; }
25561 cat >conftest.$ac_ext <<_ACEOF
25564 cat confdefs.h >>conftest.$ac_ext
25565 cat >>conftest.$ac_ext <<_ACEOF
25566 /* end confdefs.h. */
25567 $ac_includes_default
25568 long longval () { return (long) (sizeof (int)); }
25569 unsigned long ulongval () { return (long) (sizeof (int)); }
25571 #include <stdlib.h>
25576 FILE *f = fopen ("conftest.val", "w");
25579 if (((long) (sizeof (int))) < 0)
25581 long i = longval ();
25582 if (i != ((long) (sizeof (int))))
25584 fprintf (f, "%ld\n", i);
25588 unsigned long i = ulongval ();
25589 if (i != ((long) (sizeof (int))))
25591 fprintf (f, "%lu\n", i);
25593 exit (ferror (f) || fclose (f) != 0);
25599 rm -f conftest$ac_exeext
25600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25601 (eval $ac_link) 2>&5
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25606 (eval $ac_try) 2>&5
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); }; }; then
25610 ac_cv_sizeof_int=`cat conftest.val`
25612 echo "$as_me: program exited with status $ac_status" >&5
25613 echo "$as_me: failed program was:" >&5
25614 sed 's/^/| /' conftest.$ac_ext >&5
25616 ( exit $ac_status )
25617 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
25618 See \`config.log' for more details." >&5
25619 echo "$as_me: error: cannot compute sizeof (int), 77
25620 See \`config.log' for more details." >&2;}
25621 { (exit 1); exit 1; }; }
25623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25631 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
25632 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
25633 cat >>confdefs.h <<_ACEOF
25634 #define SIZEOF_INT $ac_cv_sizeof_int
25638 echo "$as_me:$LINENO: checking for uniquely sized int" >&5
25639 echo $ECHO_N "checking for uniquely sized int... $ECHO_C" >&6
25640 if test "${ccvs_cv_unique_int_type_int+set}" = set; then
25641 echo $ECHO_N "(cached) $ECHO_C" >&6
25643 if set |grep ^ccvs_cv_unique_int_type_ \
25644 |grep "($ac_cv_sizeof_int)" >/dev/null ; then
25645 ccvs_cv_unique_int_type_int=no
25647 ccvs_cv_unique_int_type_int=yes\($ac_cv_sizeof_int\)
25650 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_int" >&5
25651 echo "${ECHO_T}$ccvs_cv_unique_int_type_int" >&6
25652 if test $ccvs_cv_unique_int_type_int != no ; then
25654 cat >>confdefs.h <<\_ACEOF
25655 #define UNIQUE_INT_TYPE_INT 1
25659 echo "$as_me:$LINENO: checking for long" >&5
25660 echo $ECHO_N "checking for long... $ECHO_C" >&6
25661 if test "${ac_cv_type_long+set}" = set; then
25662 echo $ECHO_N "(cached) $ECHO_C" >&6
25664 cat >conftest.$ac_ext <<_ACEOF
25667 cat confdefs.h >>conftest.$ac_ext
25668 cat >>conftest.$ac_ext <<_ACEOF
25669 /* end confdefs.h. */
25670 $ac_includes_default
25682 rm -f conftest.$ac_objext
25683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25684 (eval $ac_compile) 2>conftest.er1
25686 grep -v '^ *+' conftest.er1 >conftest.err
25688 cat conftest.err >&5
25689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690 (exit $ac_status); } &&
25691 { ac_try='test -z "$ac_c_werror_flag"
25692 || test ! -s conftest.err'
25693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25694 (eval $ac_try) 2>&5
25696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697 (exit $ac_status); }; } &&
25698 { ac_try='test -s conftest.$ac_objext'
25699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25700 (eval $ac_try) 2>&5
25702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); }; }; then
25704 ac_cv_type_long=yes
25706 echo "$as_me: failed program was:" >&5
25707 sed 's/^/| /' conftest.$ac_ext >&5
25711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25713 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
25714 echo "${ECHO_T}$ac_cv_type_long" >&6
25716 echo "$as_me:$LINENO: checking size of long" >&5
25717 echo $ECHO_N "checking size of long... $ECHO_C" >&6
25718 if test "${ac_cv_sizeof_long+set}" = set; then
25719 echo $ECHO_N "(cached) $ECHO_C" >&6
25721 if test "$ac_cv_type_long" = yes; then
25722 # The cast to unsigned long works around a bug in the HP C Compiler
25723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25725 # This bug is HP SR number 8606223364.
25726 if test "$cross_compiling" = yes; then
25727 # Depending upon the size, compute the lo and hi bounds.
25728 cat >conftest.$ac_ext <<_ACEOF
25731 cat confdefs.h >>conftest.$ac_ext
25732 cat >>conftest.$ac_ext <<_ACEOF
25733 /* end confdefs.h. */
25734 $ac_includes_default
25738 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
25745 rm -f conftest.$ac_objext
25746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25747 (eval $ac_compile) 2>conftest.er1
25749 grep -v '^ *+' conftest.er1 >conftest.err
25751 cat conftest.err >&5
25752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); } &&
25754 { ac_try='test -z "$ac_c_werror_flag"
25755 || test ! -s conftest.err'
25756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25757 (eval $ac_try) 2>&5
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); }; } &&
25761 { ac_try='test -s conftest.$ac_objext'
25762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25763 (eval $ac_try) 2>&5
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); }; }; then
25769 cat >conftest.$ac_ext <<_ACEOF
25772 cat confdefs.h >>conftest.$ac_ext
25773 cat >>conftest.$ac_ext <<_ACEOF
25774 /* end confdefs.h. */
25775 $ac_includes_default
25779 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
25786 rm -f conftest.$ac_objext
25787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25788 (eval $ac_compile) 2>conftest.er1
25790 grep -v '^ *+' conftest.er1 >conftest.err
25792 cat conftest.err >&5
25793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); } &&
25795 { ac_try='test -z "$ac_c_werror_flag"
25796 || test ! -s conftest.err'
25797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25798 (eval $ac_try) 2>&5
25800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); }; } &&
25802 { ac_try='test -s conftest.$ac_objext'
25803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25804 (eval $ac_try) 2>&5
25806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807 (exit $ac_status); }; }; then
25808 ac_hi=$ac_mid; break
25810 echo "$as_me: failed program was:" >&5
25811 sed 's/^/| /' conftest.$ac_ext >&5
25813 ac_lo=`expr $ac_mid + 1`
25814 if test $ac_lo -le $ac_mid; then
25818 ac_mid=`expr 2 '*' $ac_mid + 1`
25820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25823 echo "$as_me: failed program was:" >&5
25824 sed 's/^/| /' conftest.$ac_ext >&5
25826 cat >conftest.$ac_ext <<_ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h. */
25832 $ac_includes_default
25836 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
25843 rm -f conftest.$ac_objext
25844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25845 (eval $ac_compile) 2>conftest.er1
25847 grep -v '^ *+' conftest.er1 >conftest.err
25849 cat conftest.err >&5
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); } &&
25852 { ac_try='test -z "$ac_c_werror_flag"
25853 || test ! -s conftest.err'
25854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855 (eval $ac_try) 2>&5
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); }; } &&
25859 { ac_try='test -s conftest.$ac_objext'
25860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25861 (eval $ac_try) 2>&5
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); }; }; then
25867 cat >conftest.$ac_ext <<_ACEOF
25870 cat confdefs.h >>conftest.$ac_ext
25871 cat >>conftest.$ac_ext <<_ACEOF
25872 /* end confdefs.h. */
25873 $ac_includes_default
25877 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
25884 rm -f conftest.$ac_objext
25885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25886 (eval $ac_compile) 2>conftest.er1
25888 grep -v '^ *+' conftest.er1 >conftest.err
25890 cat conftest.err >&5
25891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892 (exit $ac_status); } &&
25893 { ac_try='test -z "$ac_c_werror_flag"
25894 || test ! -s conftest.err'
25895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25896 (eval $ac_try) 2>&5
25898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899 (exit $ac_status); }; } &&
25900 { ac_try='test -s conftest.$ac_objext'
25901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25902 (eval $ac_try) 2>&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); }; }; then
25906 ac_lo=$ac_mid; break
25908 echo "$as_me: failed program was:" >&5
25909 sed 's/^/| /' conftest.$ac_ext >&5
25911 ac_hi=`expr '(' $ac_mid ')' - 1`
25912 if test $ac_mid -le $ac_hi; then
25916 ac_mid=`expr 2 '*' $ac_mid`
25918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25921 echo "$as_me: failed program was:" >&5
25922 sed 's/^/| /' conftest.$ac_ext >&5
25926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25929 # Binary search between lo and hi bounds.
25930 while test "x$ac_lo" != "x$ac_hi"; do
25931 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25932 cat >conftest.$ac_ext <<_ACEOF
25935 cat confdefs.h >>conftest.$ac_ext
25936 cat >>conftest.$ac_ext <<_ACEOF
25937 /* end confdefs.h. */
25938 $ac_includes_default
25942 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
25949 rm -f conftest.$ac_objext
25950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25951 (eval $ac_compile) 2>conftest.er1
25953 grep -v '^ *+' conftest.er1 >conftest.err
25955 cat conftest.err >&5
25956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); } &&
25958 { ac_try='test -z "$ac_c_werror_flag"
25959 || test ! -s conftest.err'
25960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25961 (eval $ac_try) 2>&5
25963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 (exit $ac_status); }; } &&
25965 { ac_try='test -s conftest.$ac_objext'
25966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25967 (eval $ac_try) 2>&5
25969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25970 (exit $ac_status); }; }; then
25973 echo "$as_me: failed program was:" >&5
25974 sed 's/^/| /' conftest.$ac_ext >&5
25976 ac_lo=`expr '(' $ac_mid ')' + 1`
25978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25981 ?*) ac_cv_sizeof_long=$ac_lo;;
25982 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
25983 See \`config.log' for more details." >&5
25984 echo "$as_me: error: cannot compute sizeof (long), 77
25985 See \`config.log' for more details." >&2;}
25986 { (exit 1); exit 1; }; } ;;
25989 if test "$cross_compiling" = yes; then
25990 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25991 See \`config.log' for more details." >&5
25992 echo "$as_me: error: cannot run test program while cross compiling
25993 See \`config.log' for more details." >&2;}
25994 { (exit 1); exit 1; }; }
25996 cat >conftest.$ac_ext <<_ACEOF
25999 cat confdefs.h >>conftest.$ac_ext
26000 cat >>conftest.$ac_ext <<_ACEOF
26001 /* end confdefs.h. */
26002 $ac_includes_default
26003 long longval () { return (long) (sizeof (long)); }
26004 unsigned long ulongval () { return (long) (sizeof (long)); }
26006 #include <stdlib.h>
26011 FILE *f = fopen ("conftest.val", "w");
26014 if (((long) (sizeof (long))) < 0)
26016 long i = longval ();
26017 if (i != ((long) (sizeof (long))))
26019 fprintf (f, "%ld\n", i);
26023 unsigned long i = ulongval ();
26024 if (i != ((long) (sizeof (long))))
26026 fprintf (f, "%lu\n", i);
26028 exit (ferror (f) || fclose (f) != 0);
26034 rm -f conftest$ac_exeext
26035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26036 (eval $ac_link) 2>&5
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041 (eval $ac_try) 2>&5
26043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044 (exit $ac_status); }; }; then
26045 ac_cv_sizeof_long=`cat conftest.val`
26047 echo "$as_me: program exited with status $ac_status" >&5
26048 echo "$as_me: failed program was:" >&5
26049 sed 's/^/| /' conftest.$ac_ext >&5
26051 ( exit $ac_status )
26052 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
26053 See \`config.log' for more details." >&5
26054 echo "$as_me: error: cannot compute sizeof (long), 77
26055 See \`config.log' for more details." >&2;}
26056 { (exit 1); exit 1; }; }
26058 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26063 ac_cv_sizeof_long=0
26066 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26067 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
26068 cat >>confdefs.h <<_ACEOF
26069 #define SIZEOF_LONG $ac_cv_sizeof_long
26073 echo "$as_me:$LINENO: checking for uniquely sized long" >&5
26074 echo $ECHO_N "checking for uniquely sized long... $ECHO_C" >&6
26075 if test "${ccvs_cv_unique_int_type_long+set}" = set; then
26076 echo $ECHO_N "(cached) $ECHO_C" >&6
26078 if set |grep ^ccvs_cv_unique_int_type_ \
26079 |grep "($ac_cv_sizeof_long)" >/dev/null ; then
26080 ccvs_cv_unique_int_type_long=no
26082 ccvs_cv_unique_int_type_long=yes\($ac_cv_sizeof_long\)
26085 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_long" >&5
26086 echo "${ECHO_T}$ccvs_cv_unique_int_type_long" >&6
26087 if test $ccvs_cv_unique_int_type_long != no ; then
26089 cat >>confdefs.h <<\_ACEOF
26090 #define UNIQUE_INT_TYPE_LONG 1
26094 if test $ac_cv_type_long_long != no; then
26095 echo "$as_me:$LINENO: checking for long long" >&5
26096 echo $ECHO_N "checking for long long... $ECHO_C" >&6
26097 if test "${ac_cv_type_long_long+set}" = set; then
26098 echo $ECHO_N "(cached) $ECHO_C" >&6
26100 cat >conftest.$ac_ext <<_ACEOF
26103 cat confdefs.h >>conftest.$ac_ext
26104 cat >>conftest.$ac_ext <<_ACEOF
26105 /* end confdefs.h. */
26106 $ac_includes_default
26110 if ((long long *) 0)
26112 if (sizeof (long long))
26118 rm -f conftest.$ac_objext
26119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26120 (eval $ac_compile) 2>conftest.er1
26122 grep -v '^ *+' conftest.er1 >conftest.err
26124 cat conftest.err >&5
26125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126 (exit $ac_status); } &&
26127 { ac_try='test -z "$ac_c_werror_flag"
26128 || test ! -s conftest.err'
26129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26130 (eval $ac_try) 2>&5
26132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133 (exit $ac_status); }; } &&
26134 { ac_try='test -s conftest.$ac_objext'
26135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26136 (eval $ac_try) 2>&5
26138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139 (exit $ac_status); }; }; then
26140 ac_cv_type_long_long=yes
26142 echo "$as_me: failed program was:" >&5
26143 sed 's/^/| /' conftest.$ac_ext >&5
26145 ac_cv_type_long_long=no
26147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26149 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
26150 echo "${ECHO_T}$ac_cv_type_long_long" >&6
26152 echo "$as_me:$LINENO: checking size of long long" >&5
26153 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
26154 if test "${ac_cv_sizeof_long_long+set}" = set; then
26155 echo $ECHO_N "(cached) $ECHO_C" >&6
26157 if test "$ac_cv_type_long_long" = yes; then
26158 # The cast to unsigned long works around a bug in the HP C Compiler
26159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26161 # This bug is HP SR number 8606223364.
26162 if test "$cross_compiling" = yes; then
26163 # Depending upon the size, compute the lo and hi bounds.
26164 cat >conftest.$ac_ext <<_ACEOF
26167 cat confdefs.h >>conftest.$ac_ext
26168 cat >>conftest.$ac_ext <<_ACEOF
26169 /* end confdefs.h. */
26170 $ac_includes_default
26174 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
26181 rm -f conftest.$ac_objext
26182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26183 (eval $ac_compile) 2>conftest.er1
26185 grep -v '^ *+' conftest.er1 >conftest.err
26187 cat conftest.err >&5
26188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189 (exit $ac_status); } &&
26190 { ac_try='test -z "$ac_c_werror_flag"
26191 || test ! -s conftest.err'
26192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26193 (eval $ac_try) 2>&5
26195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); }; } &&
26197 { ac_try='test -s conftest.$ac_objext'
26198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26199 (eval $ac_try) 2>&5
26201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 (exit $ac_status); }; }; then
26205 cat >conftest.$ac_ext <<_ACEOF
26208 cat confdefs.h >>conftest.$ac_ext
26209 cat >>conftest.$ac_ext <<_ACEOF
26210 /* end confdefs.h. */
26211 $ac_includes_default
26215 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
26222 rm -f conftest.$ac_objext
26223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26224 (eval $ac_compile) 2>conftest.er1
26226 grep -v '^ *+' conftest.er1 >conftest.err
26228 cat conftest.err >&5
26229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230 (exit $ac_status); } &&
26231 { ac_try='test -z "$ac_c_werror_flag"
26232 || test ! -s conftest.err'
26233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26234 (eval $ac_try) 2>&5
26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); }; } &&
26238 { ac_try='test -s conftest.$ac_objext'
26239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26240 (eval $ac_try) 2>&5
26242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243 (exit $ac_status); }; }; then
26244 ac_hi=$ac_mid; break
26246 echo "$as_me: failed program was:" >&5
26247 sed 's/^/| /' conftest.$ac_ext >&5
26249 ac_lo=`expr $ac_mid + 1`
26250 if test $ac_lo -le $ac_mid; then
26254 ac_mid=`expr 2 '*' $ac_mid + 1`
26256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26259 echo "$as_me: failed program was:" >&5
26260 sed 's/^/| /' conftest.$ac_ext >&5
26262 cat >conftest.$ac_ext <<_ACEOF
26265 cat confdefs.h >>conftest.$ac_ext
26266 cat >>conftest.$ac_ext <<_ACEOF
26267 /* end confdefs.h. */
26268 $ac_includes_default
26272 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
26279 rm -f conftest.$ac_objext
26280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26281 (eval $ac_compile) 2>conftest.er1
26283 grep -v '^ *+' conftest.er1 >conftest.err
26285 cat conftest.err >&5
26286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287 (exit $ac_status); } &&
26288 { ac_try='test -z "$ac_c_werror_flag"
26289 || test ! -s conftest.err'
26290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26291 (eval $ac_try) 2>&5
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); }; } &&
26295 { ac_try='test -s conftest.$ac_objext'
26296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26297 (eval $ac_try) 2>&5
26299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); }; }; then
26303 cat >conftest.$ac_ext <<_ACEOF
26306 cat confdefs.h >>conftest.$ac_ext
26307 cat >>conftest.$ac_ext <<_ACEOF
26308 /* end confdefs.h. */
26309 $ac_includes_default
26313 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
26320 rm -f conftest.$ac_objext
26321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26322 (eval $ac_compile) 2>conftest.er1
26324 grep -v '^ *+' conftest.er1 >conftest.err
26326 cat conftest.err >&5
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); } &&
26329 { ac_try='test -z "$ac_c_werror_flag"
26330 || test ! -s conftest.err'
26331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26332 (eval $ac_try) 2>&5
26334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335 (exit $ac_status); }; } &&
26336 { ac_try='test -s conftest.$ac_objext'
26337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26338 (eval $ac_try) 2>&5
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); }; }; then
26342 ac_lo=$ac_mid; break
26344 echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26347 ac_hi=`expr '(' $ac_mid ')' - 1`
26348 if test $ac_mid -le $ac_hi; then
26352 ac_mid=`expr 2 '*' $ac_mid`
26354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26357 echo "$as_me: failed program was:" >&5
26358 sed 's/^/| /' conftest.$ac_ext >&5
26362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26365 # Binary search between lo and hi bounds.
26366 while test "x$ac_lo" != "x$ac_hi"; do
26367 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26368 cat >conftest.$ac_ext <<_ACEOF
26371 cat confdefs.h >>conftest.$ac_ext
26372 cat >>conftest.$ac_ext <<_ACEOF
26373 /* end confdefs.h. */
26374 $ac_includes_default
26378 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
26385 rm -f conftest.$ac_objext
26386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26387 (eval $ac_compile) 2>conftest.er1
26389 grep -v '^ *+' conftest.er1 >conftest.err
26391 cat conftest.err >&5
26392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); } &&
26394 { ac_try='test -z "$ac_c_werror_flag"
26395 || test ! -s conftest.err'
26396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26397 (eval $ac_try) 2>&5
26399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400 (exit $ac_status); }; } &&
26401 { ac_try='test -s conftest.$ac_objext'
26402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26403 (eval $ac_try) 2>&5
26405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406 (exit $ac_status); }; }; then
26409 echo "$as_me: failed program was:" >&5
26410 sed 's/^/| /' conftest.$ac_ext >&5
26412 ac_lo=`expr '(' $ac_mid ')' + 1`
26414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26417 ?*) ac_cv_sizeof_long_long=$ac_lo;;
26418 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
26419 See \`config.log' for more details." >&5
26420 echo "$as_me: error: cannot compute sizeof (long long), 77
26421 See \`config.log' for more details." >&2;}
26422 { (exit 1); exit 1; }; } ;;
26425 if test "$cross_compiling" = yes; then
26426 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26427 See \`config.log' for more details." >&5
26428 echo "$as_me: error: cannot run test program while cross compiling
26429 See \`config.log' for more details." >&2;}
26430 { (exit 1); exit 1; }; }
26432 cat >conftest.$ac_ext <<_ACEOF
26435 cat confdefs.h >>conftest.$ac_ext
26436 cat >>conftest.$ac_ext <<_ACEOF
26437 /* end confdefs.h. */
26438 $ac_includes_default
26439 long longval () { return (long) (sizeof (long long)); }
26440 unsigned long ulongval () { return (long) (sizeof (long long)); }
26442 #include <stdlib.h>
26447 FILE *f = fopen ("conftest.val", "w");
26450 if (((long) (sizeof (long long))) < 0)
26452 long i = longval ();
26453 if (i != ((long) (sizeof (long long))))
26455 fprintf (f, "%ld\n", i);
26459 unsigned long i = ulongval ();
26460 if (i != ((long) (sizeof (long long))))
26462 fprintf (f, "%lu\n", i);
26464 exit (ferror (f) || fclose (f) != 0);
26470 rm -f conftest$ac_exeext
26471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26472 (eval $ac_link) 2>&5
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26477 (eval $ac_try) 2>&5
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); }; }; then
26481 ac_cv_sizeof_long_long=`cat conftest.val`
26483 echo "$as_me: program exited with status $ac_status" >&5
26484 echo "$as_me: failed program was:" >&5
26485 sed 's/^/| /' conftest.$ac_ext >&5
26487 ( exit $ac_status )
26488 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
26489 See \`config.log' for more details." >&5
26490 echo "$as_me: error: cannot compute sizeof (long long), 77
26491 See \`config.log' for more details." >&2;}
26492 { (exit 1); exit 1; }; }
26494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26499 ac_cv_sizeof_long_long=0
26502 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
26503 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
26504 cat >>confdefs.h <<_ACEOF
26505 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
26509 echo "$as_me:$LINENO: checking for uniquely sized long long" >&5
26510 echo $ECHO_N "checking for uniquely sized long long... $ECHO_C" >&6
26511 if test "${ccvs_cv_unique_int_type_long_long+set}" = set; then
26512 echo $ECHO_N "(cached) $ECHO_C" >&6
26514 if set |grep ^ccvs_cv_unique_int_type_ \
26515 |grep "($ac_cv_sizeof_long_long)" >/dev/null ; then
26516 ccvs_cv_unique_int_type_long_long=no
26518 ccvs_cv_unique_int_type_long_long=yes\($ac_cv_sizeof_long_long\)
26521 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_long_long" >&5
26522 echo "${ECHO_T}$ccvs_cv_unique_int_type_long_long" >&6
26523 if test $ccvs_cv_unique_int_type_long_long != no ; then
26525 cat >>confdefs.h <<\_ACEOF
26526 #define UNIQUE_INT_TYPE_LONG_LONG 1
26531 echo "$as_me:$LINENO: checking for size_t" >&5
26532 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26533 if test "${ac_cv_type_size_t+set}" = set; then
26534 echo $ECHO_N "(cached) $ECHO_C" >&6
26536 cat >conftest.$ac_ext <<_ACEOF
26539 cat confdefs.h >>conftest.$ac_ext
26540 cat >>conftest.$ac_ext <<_ACEOF
26541 /* end confdefs.h. */
26542 $ac_includes_default
26548 if (sizeof (size_t))
26554 rm -f conftest.$ac_objext
26555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26556 (eval $ac_compile) 2>conftest.er1
26558 grep -v '^ *+' conftest.er1 >conftest.err
26560 cat conftest.err >&5
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); } &&
26563 { ac_try='test -z "$ac_c_werror_flag"
26564 || test ! -s conftest.err'
26565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26566 (eval $ac_try) 2>&5
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); }; } &&
26570 { ac_try='test -s conftest.$ac_objext'
26571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572 (eval $ac_try) 2>&5
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }; }; then
26576 ac_cv_type_size_t=yes
26578 echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26581 ac_cv_type_size_t=no
26583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26585 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26586 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26588 echo "$as_me:$LINENO: checking size of size_t" >&5
26589 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
26590 if test "${ac_cv_sizeof_size_t+set}" = set; then
26591 echo $ECHO_N "(cached) $ECHO_C" >&6
26593 if test "$ac_cv_type_size_t" = yes; then
26594 # The cast to unsigned long works around a bug in the HP C Compiler
26595 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26596 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26597 # This bug is HP SR number 8606223364.
26598 if test "$cross_compiling" = yes; then
26599 # Depending upon the size, compute the lo and hi bounds.
26600 cat >conftest.$ac_ext <<_ACEOF
26603 cat confdefs.h >>conftest.$ac_ext
26604 cat >>conftest.$ac_ext <<_ACEOF
26605 /* end confdefs.h. */
26606 $ac_includes_default
26610 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
26617 rm -f conftest.$ac_objext
26618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26619 (eval $ac_compile) 2>conftest.er1
26621 grep -v '^ *+' conftest.er1 >conftest.err
26623 cat conftest.err >&5
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); } &&
26626 { ac_try='test -z "$ac_c_werror_flag"
26627 || test ! -s conftest.err'
26628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26629 (eval $ac_try) 2>&5
26631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632 (exit $ac_status); }; } &&
26633 { ac_try='test -s conftest.$ac_objext'
26634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26635 (eval $ac_try) 2>&5
26637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638 (exit $ac_status); }; }; then
26641 cat >conftest.$ac_ext <<_ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h. */
26647 $ac_includes_default
26651 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
26658 rm -f conftest.$ac_objext
26659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26660 (eval $ac_compile) 2>conftest.er1
26662 grep -v '^ *+' conftest.er1 >conftest.err
26664 cat conftest.err >&5
26665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666 (exit $ac_status); } &&
26667 { ac_try='test -z "$ac_c_werror_flag"
26668 || test ! -s conftest.err'
26669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26670 (eval $ac_try) 2>&5
26672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26673 (exit $ac_status); }; } &&
26674 { ac_try='test -s conftest.$ac_objext'
26675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26676 (eval $ac_try) 2>&5
26678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679 (exit $ac_status); }; }; then
26680 ac_hi=$ac_mid; break
26682 echo "$as_me: failed program was:" >&5
26683 sed 's/^/| /' conftest.$ac_ext >&5
26685 ac_lo=`expr $ac_mid + 1`
26686 if test $ac_lo -le $ac_mid; then
26690 ac_mid=`expr 2 '*' $ac_mid + 1`
26692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26695 echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26698 cat >conftest.$ac_ext <<_ACEOF
26701 cat confdefs.h >>conftest.$ac_ext
26702 cat >>conftest.$ac_ext <<_ACEOF
26703 /* end confdefs.h. */
26704 $ac_includes_default
26708 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
26715 rm -f conftest.$ac_objext
26716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26717 (eval $ac_compile) 2>conftest.er1
26719 grep -v '^ *+' conftest.er1 >conftest.err
26721 cat conftest.err >&5
26722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723 (exit $ac_status); } &&
26724 { ac_try='test -z "$ac_c_werror_flag"
26725 || test ! -s conftest.err'
26726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26727 (eval $ac_try) 2>&5
26729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); }; } &&
26731 { ac_try='test -s conftest.$ac_objext'
26732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26733 (eval $ac_try) 2>&5
26735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); }; }; then
26739 cat >conftest.$ac_ext <<_ACEOF
26742 cat confdefs.h >>conftest.$ac_ext
26743 cat >>conftest.$ac_ext <<_ACEOF
26744 /* end confdefs.h. */
26745 $ac_includes_default
26749 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
26756 rm -f conftest.$ac_objext
26757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26758 (eval $ac_compile) 2>conftest.er1
26760 grep -v '^ *+' conftest.er1 >conftest.err
26762 cat conftest.err >&5
26763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764 (exit $ac_status); } &&
26765 { ac_try='test -z "$ac_c_werror_flag"
26766 || test ! -s conftest.err'
26767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26768 (eval $ac_try) 2>&5
26770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771 (exit $ac_status); }; } &&
26772 { ac_try='test -s conftest.$ac_objext'
26773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26774 (eval $ac_try) 2>&5
26776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777 (exit $ac_status); }; }; then
26778 ac_lo=$ac_mid; break
26780 echo "$as_me: failed program was:" >&5
26781 sed 's/^/| /' conftest.$ac_ext >&5
26783 ac_hi=`expr '(' $ac_mid ')' - 1`
26784 if test $ac_mid -le $ac_hi; then
26788 ac_mid=`expr 2 '*' $ac_mid`
26790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26793 echo "$as_me: failed program was:" >&5
26794 sed 's/^/| /' conftest.$ac_ext >&5
26798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26801 # Binary search between lo and hi bounds.
26802 while test "x$ac_lo" != "x$ac_hi"; do
26803 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26804 cat >conftest.$ac_ext <<_ACEOF
26807 cat confdefs.h >>conftest.$ac_ext
26808 cat >>conftest.$ac_ext <<_ACEOF
26809 /* end confdefs.h. */
26810 $ac_includes_default
26814 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
26821 rm -f conftest.$ac_objext
26822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26823 (eval $ac_compile) 2>conftest.er1
26825 grep -v '^ *+' conftest.er1 >conftest.err
26827 cat conftest.err >&5
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); } &&
26830 { ac_try='test -z "$ac_c_werror_flag"
26831 || test ! -s conftest.err'
26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833 (eval $ac_try) 2>&5
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; } &&
26837 { ac_try='test -s conftest.$ac_objext'
26838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26839 (eval $ac_try) 2>&5
26841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842 (exit $ac_status); }; }; then
26845 echo "$as_me: failed program was:" >&5
26846 sed 's/^/| /' conftest.$ac_ext >&5
26848 ac_lo=`expr '(' $ac_mid ')' + 1`
26850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26853 ?*) ac_cv_sizeof_size_t=$ac_lo;;
26854 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
26855 See \`config.log' for more details." >&5
26856 echo "$as_me: error: cannot compute sizeof (size_t), 77
26857 See \`config.log' for more details." >&2;}
26858 { (exit 1); exit 1; }; } ;;
26861 if test "$cross_compiling" = yes; then
26862 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26863 See \`config.log' for more details." >&5
26864 echo "$as_me: error: cannot run test program while cross compiling
26865 See \`config.log' for more details." >&2;}
26866 { (exit 1); exit 1; }; }
26868 cat >conftest.$ac_ext <<_ACEOF
26871 cat confdefs.h >>conftest.$ac_ext
26872 cat >>conftest.$ac_ext <<_ACEOF
26873 /* end confdefs.h. */
26874 $ac_includes_default
26875 long longval () { return (long) (sizeof (size_t)); }
26876 unsigned long ulongval () { return (long) (sizeof (size_t)); }
26878 #include <stdlib.h>
26883 FILE *f = fopen ("conftest.val", "w");
26886 if (((long) (sizeof (size_t))) < 0)
26888 long i = longval ();
26889 if (i != ((long) (sizeof (size_t))))
26891 fprintf (f, "%ld\n", i);
26895 unsigned long i = ulongval ();
26896 if (i != ((long) (sizeof (size_t))))
26898 fprintf (f, "%lu\n", i);
26900 exit (ferror (f) || fclose (f) != 0);
26906 rm -f conftest$ac_exeext
26907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26908 (eval $ac_link) 2>&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26913 (eval $ac_try) 2>&5
26915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26916 (exit $ac_status); }; }; then
26917 ac_cv_sizeof_size_t=`cat conftest.val`
26919 echo "$as_me: program exited with status $ac_status" >&5
26920 echo "$as_me: failed program was:" >&5
26921 sed 's/^/| /' conftest.$ac_ext >&5
26923 ( exit $ac_status )
26924 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
26925 See \`config.log' for more details." >&5
26926 echo "$as_me: error: cannot compute sizeof (size_t), 77
26927 See \`config.log' for more details." >&2;}
26928 { (exit 1); exit 1; }; }
26930 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26935 ac_cv_sizeof_size_t=0
26938 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
26939 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
26940 cat >>confdefs.h <<_ACEOF
26941 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
26945 echo "$as_me:$LINENO: checking for uniquely sized size_t" >&5
26946 echo $ECHO_N "checking for uniquely sized size_t... $ECHO_C" >&6
26947 if test "${ccvs_cv_unique_int_type_size_t+set}" = set; then
26948 echo $ECHO_N "(cached) $ECHO_C" >&6
26950 if set |grep ^ccvs_cv_unique_int_type_ \
26951 |grep "($ac_cv_sizeof_size_t)" >/dev/null ; then
26952 ccvs_cv_unique_int_type_size_t=no
26954 ccvs_cv_unique_int_type_size_t=yes\($ac_cv_sizeof_size_t\)
26957 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_size_t" >&5
26958 echo "${ECHO_T}$ccvs_cv_unique_int_type_size_t" >&6
26959 if test $ccvs_cv_unique_int_type_size_t != no ; then
26961 cat >>confdefs.h <<\_ACEOF
26962 #define UNIQUE_INT_TYPE_SIZE_T 1
26966 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
26967 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
26968 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
26969 echo $ECHO_N "(cached) $ECHO_C" >&6
26971 cat >conftest.$ac_ext <<_ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h. */
26977 $ac_includes_default
26981 if ((ptrdiff_t *) 0)
26983 if (sizeof (ptrdiff_t))
26989 rm -f conftest.$ac_objext
26990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26991 (eval $ac_compile) 2>conftest.er1
26993 grep -v '^ *+' conftest.er1 >conftest.err
26995 cat conftest.err >&5
26996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); } &&
26998 { ac_try='test -z "$ac_c_werror_flag"
26999 || test ! -s conftest.err'
27000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27001 (eval $ac_try) 2>&5
27003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); }; } &&
27005 { ac_try='test -s conftest.$ac_objext'
27006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27007 (eval $ac_try) 2>&5
27009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010 (exit $ac_status); }; }; then
27011 ac_cv_type_ptrdiff_t=yes
27013 echo "$as_me: failed program was:" >&5
27014 sed 's/^/| /' conftest.$ac_ext >&5
27016 ac_cv_type_ptrdiff_t=no
27018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27020 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
27021 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
27023 echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
27024 echo $ECHO_N "checking size of ptrdiff_t... $ECHO_C" >&6
27025 if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
27026 echo $ECHO_N "(cached) $ECHO_C" >&6
27028 if test "$ac_cv_type_ptrdiff_t" = yes; then
27029 # The cast to unsigned long works around a bug in the HP C Compiler
27030 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27031 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27032 # This bug is HP SR number 8606223364.
27033 if test "$cross_compiling" = yes; then
27034 # Depending upon the size, compute the lo and hi bounds.
27035 cat >conftest.$ac_ext <<_ACEOF
27038 cat confdefs.h >>conftest.$ac_ext
27039 cat >>conftest.$ac_ext <<_ACEOF
27040 /* end confdefs.h. */
27041 $ac_includes_default
27045 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= 0)];
27052 rm -f conftest.$ac_objext
27053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27054 (eval $ac_compile) 2>conftest.er1
27056 grep -v '^ *+' conftest.er1 >conftest.err
27058 cat conftest.err >&5
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); } &&
27061 { ac_try='test -z "$ac_c_werror_flag"
27062 || test ! -s conftest.err'
27063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27064 (eval $ac_try) 2>&5
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); }; } &&
27068 { ac_try='test -s conftest.$ac_objext'
27069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27070 (eval $ac_try) 2>&5
27072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073 (exit $ac_status); }; }; then
27076 cat >conftest.$ac_ext <<_ACEOF
27079 cat confdefs.h >>conftest.$ac_ext
27080 cat >>conftest.$ac_ext <<_ACEOF
27081 /* end confdefs.h. */
27082 $ac_includes_default
27086 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
27093 rm -f conftest.$ac_objext
27094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27095 (eval $ac_compile) 2>conftest.er1
27097 grep -v '^ *+' conftest.er1 >conftest.err
27099 cat conftest.err >&5
27100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 (exit $ac_status); } &&
27102 { ac_try='test -z "$ac_c_werror_flag"
27103 || test ! -s conftest.err'
27104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27105 (eval $ac_try) 2>&5
27107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108 (exit $ac_status); }; } &&
27109 { ac_try='test -s conftest.$ac_objext'
27110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27111 (eval $ac_try) 2>&5
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); }; }; then
27115 ac_hi=$ac_mid; break
27117 echo "$as_me: failed program was:" >&5
27118 sed 's/^/| /' conftest.$ac_ext >&5
27120 ac_lo=`expr $ac_mid + 1`
27121 if test $ac_lo -le $ac_mid; then
27125 ac_mid=`expr 2 '*' $ac_mid + 1`
27127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27130 echo "$as_me: failed program was:" >&5
27131 sed 's/^/| /' conftest.$ac_ext >&5
27133 cat >conftest.$ac_ext <<_ACEOF
27136 cat confdefs.h >>conftest.$ac_ext
27137 cat >>conftest.$ac_ext <<_ACEOF
27138 /* end confdefs.h. */
27139 $ac_includes_default
27143 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) < 0)];
27150 rm -f conftest.$ac_objext
27151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27152 (eval $ac_compile) 2>conftest.er1
27154 grep -v '^ *+' conftest.er1 >conftest.err
27156 cat conftest.err >&5
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); } &&
27159 { ac_try='test -z "$ac_c_werror_flag"
27160 || test ! -s conftest.err'
27161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27162 (eval $ac_try) 2>&5
27164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165 (exit $ac_status); }; } &&
27166 { ac_try='test -s conftest.$ac_objext'
27167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27168 (eval $ac_try) 2>&5
27170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27171 (exit $ac_status); }; }; then
27174 cat >conftest.$ac_ext <<_ACEOF
27177 cat confdefs.h >>conftest.$ac_ext
27178 cat >>conftest.$ac_ext <<_ACEOF
27179 /* end confdefs.h. */
27180 $ac_includes_default
27184 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= $ac_mid)];
27191 rm -f conftest.$ac_objext
27192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27193 (eval $ac_compile) 2>conftest.er1
27195 grep -v '^ *+' conftest.er1 >conftest.err
27197 cat conftest.err >&5
27198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199 (exit $ac_status); } &&
27200 { ac_try='test -z "$ac_c_werror_flag"
27201 || test ! -s conftest.err'
27202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27203 (eval $ac_try) 2>&5
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); }; } &&
27207 { ac_try='test -s conftest.$ac_objext'
27208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27209 (eval $ac_try) 2>&5
27211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212 (exit $ac_status); }; }; then
27213 ac_lo=$ac_mid; break
27215 echo "$as_me: failed program was:" >&5
27216 sed 's/^/| /' conftest.$ac_ext >&5
27218 ac_hi=`expr '(' $ac_mid ')' - 1`
27219 if test $ac_mid -le $ac_hi; then
27223 ac_mid=`expr 2 '*' $ac_mid`
27225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27228 echo "$as_me: failed program was:" >&5
27229 sed 's/^/| /' conftest.$ac_ext >&5
27233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27236 # Binary search between lo and hi bounds.
27237 while test "x$ac_lo" != "x$ac_hi"; do
27238 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27239 cat >conftest.$ac_ext <<_ACEOF
27242 cat confdefs.h >>conftest.$ac_ext
27243 cat >>conftest.$ac_ext <<_ACEOF
27244 /* end confdefs.h. */
27245 $ac_includes_default
27249 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
27256 rm -f conftest.$ac_objext
27257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27258 (eval $ac_compile) 2>conftest.er1
27260 grep -v '^ *+' conftest.er1 >conftest.err
27262 cat conftest.err >&5
27263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264 (exit $ac_status); } &&
27265 { ac_try='test -z "$ac_c_werror_flag"
27266 || test ! -s conftest.err'
27267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27268 (eval $ac_try) 2>&5
27270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); }; } &&
27272 { ac_try='test -s conftest.$ac_objext'
27273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27274 (eval $ac_try) 2>&5
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277 (exit $ac_status); }; }; then
27280 echo "$as_me: failed program was:" >&5
27281 sed 's/^/| /' conftest.$ac_ext >&5
27283 ac_lo=`expr '(' $ac_mid ')' + 1`
27285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27288 ?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
27289 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
27290 See \`config.log' for more details." >&5
27291 echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
27292 See \`config.log' for more details." >&2;}
27293 { (exit 1); exit 1; }; } ;;
27296 if test "$cross_compiling" = yes; then
27297 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27298 See \`config.log' for more details." >&5
27299 echo "$as_me: error: cannot run test program while cross compiling
27300 See \`config.log' for more details." >&2;}
27301 { (exit 1); exit 1; }; }
27303 cat >conftest.$ac_ext <<_ACEOF
27306 cat confdefs.h >>conftest.$ac_ext
27307 cat >>conftest.$ac_ext <<_ACEOF
27308 /* end confdefs.h. */
27309 $ac_includes_default
27310 long longval () { return (long) (sizeof (ptrdiff_t)); }
27311 unsigned long ulongval () { return (long) (sizeof (ptrdiff_t)); }
27313 #include <stdlib.h>
27318 FILE *f = fopen ("conftest.val", "w");
27321 if (((long) (sizeof (ptrdiff_t))) < 0)
27323 long i = longval ();
27324 if (i != ((long) (sizeof (ptrdiff_t))))
27326 fprintf (f, "%ld\n", i);
27330 unsigned long i = ulongval ();
27331 if (i != ((long) (sizeof (ptrdiff_t))))
27333 fprintf (f, "%lu\n", i);
27335 exit (ferror (f) || fclose (f) != 0);
27341 rm -f conftest$ac_exeext
27342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27343 (eval $ac_link) 2>&5
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27348 (eval $ac_try) 2>&5
27350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351 (exit $ac_status); }; }; then
27352 ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
27354 echo "$as_me: program exited with status $ac_status" >&5
27355 echo "$as_me: failed program was:" >&5
27356 sed 's/^/| /' conftest.$ac_ext >&5
27358 ( exit $ac_status )
27359 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
27360 See \`config.log' for more details." >&5
27361 echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
27362 See \`config.log' for more details." >&2;}
27363 { (exit 1); exit 1; }; }
27365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27370 ac_cv_sizeof_ptrdiff_t=0
27373 echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
27374 echo "${ECHO_T}$ac_cv_sizeof_ptrdiff_t" >&6
27375 cat >>confdefs.h <<_ACEOF
27376 #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
27380 echo "$as_me:$LINENO: checking for uniquely sized ptrdiff_t" >&5
27381 echo $ECHO_N "checking for uniquely sized ptrdiff_t... $ECHO_C" >&6
27382 if test "${ccvs_cv_unique_int_type_ptrdiff_t+set}" = set; then
27383 echo $ECHO_N "(cached) $ECHO_C" >&6
27385 if set |grep ^ccvs_cv_unique_int_type_ \
27386 |grep "($ac_cv_sizeof_ptrdiff_t)" >/dev/null ; then
27387 ccvs_cv_unique_int_type_ptrdiff_t=no
27389 ccvs_cv_unique_int_type_ptrdiff_t=yes\($ac_cv_sizeof_ptrdiff_t\)
27392 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_ptrdiff_t" >&5
27393 echo "${ECHO_T}$ccvs_cv_unique_int_type_ptrdiff_t" >&6
27394 if test $ccvs_cv_unique_int_type_ptrdiff_t != no ; then
27396 cat >>confdefs.h <<\_ACEOF
27397 #define UNIQUE_INT_TYPE_PTRDIFF_T 1
27401 if test $gt_cv_c_wint_t != no; then
27402 echo "$as_me:$LINENO: checking for wint_t" >&5
27403 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
27404 if test "${ac_cv_type_wint_t+set}" = set; then
27405 echo $ECHO_N "(cached) $ECHO_C" >&6
27407 cat >conftest.$ac_ext <<_ACEOF
27410 cat confdefs.h >>conftest.$ac_ext
27411 cat >>conftest.$ac_ext <<_ACEOF
27412 /* end confdefs.h. */
27422 if (sizeof (wint_t))
27428 rm -f conftest.$ac_objext
27429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27430 (eval $ac_compile) 2>conftest.er1
27432 grep -v '^ *+' conftest.er1 >conftest.err
27434 cat conftest.err >&5
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); } &&
27437 { ac_try='test -z "$ac_c_werror_flag"
27438 || test ! -s conftest.err'
27439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27440 (eval $ac_try) 2>&5
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); }; } &&
27444 { ac_try='test -s conftest.$ac_objext'
27445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27446 (eval $ac_try) 2>&5
27448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449 (exit $ac_status); }; }; then
27450 ac_cv_type_wint_t=yes
27452 echo "$as_me: failed program was:" >&5
27453 sed 's/^/| /' conftest.$ac_ext >&5
27455 ac_cv_type_wint_t=no
27457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27459 echo "$as_me:$LINENO: result: $ac_cv_type_wint_t" >&5
27460 echo "${ECHO_T}$ac_cv_type_wint_t" >&6
27462 echo "$as_me:$LINENO: checking size of wint_t" >&5
27463 echo $ECHO_N "checking size of wint_t... $ECHO_C" >&6
27464 if test "${ac_cv_sizeof_wint_t+set}" = set; then
27465 echo $ECHO_N "(cached) $ECHO_C" >&6
27467 if test "$ac_cv_type_wint_t" = yes; then
27468 # The cast to unsigned long works around a bug in the HP C Compiler
27469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27471 # This bug is HP SR number 8606223364.
27472 if test "$cross_compiling" = yes; then
27473 # Depending upon the size, compute the lo and hi bounds.
27474 cat >conftest.$ac_ext <<_ACEOF
27477 cat confdefs.h >>conftest.$ac_ext
27478 cat >>conftest.$ac_ext <<_ACEOF
27479 /* end confdefs.h. */
27487 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) >= 0)];
27494 rm -f conftest.$ac_objext
27495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27496 (eval $ac_compile) 2>conftest.er1
27498 grep -v '^ *+' conftest.er1 >conftest.err
27500 cat conftest.err >&5
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); } &&
27503 { ac_try='test -z "$ac_c_werror_flag"
27504 || test ! -s conftest.err'
27505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27506 (eval $ac_try) 2>&5
27508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509 (exit $ac_status); }; } &&
27510 { ac_try='test -s conftest.$ac_objext'
27511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27512 (eval $ac_try) 2>&5
27514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515 (exit $ac_status); }; }; then
27518 cat >conftest.$ac_ext <<_ACEOF
27521 cat confdefs.h >>conftest.$ac_ext
27522 cat >>conftest.$ac_ext <<_ACEOF
27523 /* end confdefs.h. */
27531 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) <= $ac_mid)];
27538 rm -f conftest.$ac_objext
27539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27540 (eval $ac_compile) 2>conftest.er1
27542 grep -v '^ *+' conftest.er1 >conftest.err
27544 cat conftest.err >&5
27545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546 (exit $ac_status); } &&
27547 { ac_try='test -z "$ac_c_werror_flag"
27548 || test ! -s conftest.err'
27549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27550 (eval $ac_try) 2>&5
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); }; } &&
27554 { ac_try='test -s conftest.$ac_objext'
27555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27556 (eval $ac_try) 2>&5
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); }; }; then
27560 ac_hi=$ac_mid; break
27562 echo "$as_me: failed program was:" >&5
27563 sed 's/^/| /' conftest.$ac_ext >&5
27565 ac_lo=`expr $ac_mid + 1`
27566 if test $ac_lo -le $ac_mid; then
27570 ac_mid=`expr 2 '*' $ac_mid + 1`
27572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27575 echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27578 cat >conftest.$ac_ext <<_ACEOF
27581 cat confdefs.h >>conftest.$ac_ext
27582 cat >>conftest.$ac_ext <<_ACEOF
27583 /* end confdefs.h. */
27591 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) < 0)];
27598 rm -f conftest.$ac_objext
27599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27600 (eval $ac_compile) 2>conftest.er1
27602 grep -v '^ *+' conftest.er1 >conftest.err
27604 cat conftest.err >&5
27605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606 (exit $ac_status); } &&
27607 { ac_try='test -z "$ac_c_werror_flag"
27608 || test ! -s conftest.err'
27609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27610 (eval $ac_try) 2>&5
27612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613 (exit $ac_status); }; } &&
27614 { ac_try='test -s conftest.$ac_objext'
27615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27616 (eval $ac_try) 2>&5
27618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); }; }; then
27622 cat >conftest.$ac_ext <<_ACEOF
27625 cat confdefs.h >>conftest.$ac_ext
27626 cat >>conftest.$ac_ext <<_ACEOF
27627 /* end confdefs.h. */
27635 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) >= $ac_mid)];
27642 rm -f conftest.$ac_objext
27643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27644 (eval $ac_compile) 2>conftest.er1
27646 grep -v '^ *+' conftest.er1 >conftest.err
27648 cat conftest.err >&5
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); } &&
27651 { ac_try='test -z "$ac_c_werror_flag"
27652 || test ! -s conftest.err'
27653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654 (eval $ac_try) 2>&5
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); }; } &&
27658 { ac_try='test -s conftest.$ac_objext'
27659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27660 (eval $ac_try) 2>&5
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); }; }; then
27664 ac_lo=$ac_mid; break
27666 echo "$as_me: failed program was:" >&5
27667 sed 's/^/| /' conftest.$ac_ext >&5
27669 ac_hi=`expr '(' $ac_mid ')' - 1`
27670 if test $ac_mid -le $ac_hi; then
27674 ac_mid=`expr 2 '*' $ac_mid`
27676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27679 echo "$as_me: failed program was:" >&5
27680 sed 's/^/| /' conftest.$ac_ext >&5
27684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27687 # Binary search between lo and hi bounds.
27688 while test "x$ac_lo" != "x$ac_hi"; do
27689 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27690 cat >conftest.$ac_ext <<_ACEOF
27693 cat confdefs.h >>conftest.$ac_ext
27694 cat >>conftest.$ac_ext <<_ACEOF
27695 /* end confdefs.h. */
27703 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) <= $ac_mid)];
27710 rm -f conftest.$ac_objext
27711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27712 (eval $ac_compile) 2>conftest.er1
27714 grep -v '^ *+' conftest.er1 >conftest.err
27716 cat conftest.err >&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); } &&
27719 { ac_try='test -z "$ac_c_werror_flag"
27720 || test ! -s conftest.err'
27721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722 (eval $ac_try) 2>&5
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); }; } &&
27726 { ac_try='test -s conftest.$ac_objext'
27727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728 (eval $ac_try) 2>&5
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); }; }; then
27734 echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27737 ac_lo=`expr '(' $ac_mid ')' + 1`
27739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27742 ?*) ac_cv_sizeof_wint_t=$ac_lo;;
27743 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wint_t), 77
27744 See \`config.log' for more details." >&5
27745 echo "$as_me: error: cannot compute sizeof (wint_t), 77
27746 See \`config.log' for more details." >&2;}
27747 { (exit 1); exit 1; }; } ;;
27750 if test "$cross_compiling" = yes; then
27751 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27752 See \`config.log' for more details." >&5
27753 echo "$as_me: error: cannot run test program while cross compiling
27754 See \`config.log' for more details." >&2;}
27755 { (exit 1); exit 1; }; }
27757 cat >conftest.$ac_ext <<_ACEOF
27760 cat confdefs.h >>conftest.$ac_ext
27761 cat >>conftest.$ac_ext <<_ACEOF
27762 /* end confdefs.h. */
27767 long longval () { return (long) (sizeof (wint_t)); }
27768 unsigned long ulongval () { return (long) (sizeof (wint_t)); }
27770 #include <stdlib.h>
27775 FILE *f = fopen ("conftest.val", "w");
27778 if (((long) (sizeof (wint_t))) < 0)
27780 long i = longval ();
27781 if (i != ((long) (sizeof (wint_t))))
27783 fprintf (f, "%ld\n", i);
27787 unsigned long i = ulongval ();
27788 if (i != ((long) (sizeof (wint_t))))
27790 fprintf (f, "%lu\n", i);
27792 exit (ferror (f) || fclose (f) != 0);
27798 rm -f conftest$ac_exeext
27799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27800 (eval $ac_link) 2>&5
27802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27805 (eval $ac_try) 2>&5
27807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); }; }; then
27809 ac_cv_sizeof_wint_t=`cat conftest.val`
27811 echo "$as_me: program exited with status $ac_status" >&5
27812 echo "$as_me: failed program was:" >&5
27813 sed 's/^/| /' conftest.$ac_ext >&5
27815 ( exit $ac_status )
27816 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wint_t), 77
27817 See \`config.log' for more details." >&5
27818 echo "$as_me: error: cannot compute sizeof (wint_t), 77
27819 See \`config.log' for more details." >&2;}
27820 { (exit 1); exit 1; }; }
27822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27827 ac_cv_sizeof_wint_t=0
27830 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wint_t" >&5
27831 echo "${ECHO_T}$ac_cv_sizeof_wint_t" >&6
27832 cat >>confdefs.h <<_ACEOF
27833 #define SIZEOF_WINT_T $ac_cv_sizeof_wint_t
27837 echo "$as_me:$LINENO: checking for uniquely sized wint_t" >&5
27838 echo $ECHO_N "checking for uniquely sized wint_t... $ECHO_C" >&6
27839 if test "${ccvs_cv_unique_int_type_wint_t+set}" = set; then
27840 echo $ECHO_N "(cached) $ECHO_C" >&6
27842 if set |grep ^ccvs_cv_unique_int_type_ \
27843 |grep "($ac_cv_sizeof_wint_t)" >/dev/null ; then
27844 ccvs_cv_unique_int_type_wint_t=no
27846 ccvs_cv_unique_int_type_wint_t=yes\($ac_cv_sizeof_wint_t\)
27849 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_wint_t" >&5
27850 echo "${ECHO_T}$ccvs_cv_unique_int_type_wint_t" >&6
27851 if test $ccvs_cv_unique_int_type_wint_t != no ; then
27853 cat >>confdefs.h <<\_ACEOF
27854 #define UNIQUE_INT_TYPE_WINT_T 1
27859 if test $gt_cv_c_intmax_t != no; then
27860 echo "$as_me:$LINENO: checking for intmax_t" >&5
27861 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
27862 if test "${ac_cv_type_intmax_t+set}" = set; then
27863 echo $ECHO_N "(cached) $ECHO_C" >&6
27865 cat >conftest.$ac_ext <<_ACEOF
27868 cat confdefs.h >>conftest.$ac_ext
27869 cat >>conftest.$ac_ext <<_ACEOF
27870 /* end confdefs.h. */
27872 #ifdef HAVE_INTTYPES_H
27873 #include <inttypes.h>
27875 #ifdef HAVE_STDINT_H
27876 #include <stdint.h>
27884 if ((intmax_t *) 0)
27886 if (sizeof (intmax_t))
27892 rm -f conftest.$ac_objext
27893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27894 (eval $ac_compile) 2>conftest.er1
27896 grep -v '^ *+' conftest.er1 >conftest.err
27898 cat conftest.err >&5
27899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900 (exit $ac_status); } &&
27901 { ac_try='test -z "$ac_c_werror_flag"
27902 || test ! -s conftest.err'
27903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27904 (eval $ac_try) 2>&5
27906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907 (exit $ac_status); }; } &&
27908 { ac_try='test -s conftest.$ac_objext'
27909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27910 (eval $ac_try) 2>&5
27912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27913 (exit $ac_status); }; }; then
27914 ac_cv_type_intmax_t=yes
27916 echo "$as_me: failed program was:" >&5
27917 sed 's/^/| /' conftest.$ac_ext >&5
27919 ac_cv_type_intmax_t=no
27921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27923 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
27924 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
27926 echo "$as_me:$LINENO: checking size of intmax_t" >&5
27927 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6
27928 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
27929 echo $ECHO_N "(cached) $ECHO_C" >&6
27931 if test "$ac_cv_type_intmax_t" = yes; then
27932 # The cast to unsigned long works around a bug in the HP C Compiler
27933 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27934 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27935 # This bug is HP SR number 8606223364.
27936 if test "$cross_compiling" = yes; then
27937 # Depending upon the size, compute the lo and hi bounds.
27938 cat >conftest.$ac_ext <<_ACEOF
27941 cat confdefs.h >>conftest.$ac_ext
27942 cat >>conftest.$ac_ext <<_ACEOF
27943 /* end confdefs.h. */
27945 #ifdef HAVE_INTTYPES_H
27946 #include <inttypes.h>
27948 #ifdef HAVE_STDINT_H
27949 #include <stdint.h>
27957 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= 0)];
27964 rm -f conftest.$ac_objext
27965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27966 (eval $ac_compile) 2>conftest.er1
27968 grep -v '^ *+' conftest.er1 >conftest.err
27970 cat conftest.err >&5
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); } &&
27973 { ac_try='test -z "$ac_c_werror_flag"
27974 || test ! -s conftest.err'
27975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27976 (eval $ac_try) 2>&5
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); }; } &&
27980 { ac_try='test -s conftest.$ac_objext'
27981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27982 (eval $ac_try) 2>&5
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); }; }; then
27988 cat >conftest.$ac_ext <<_ACEOF
27991 cat confdefs.h >>conftest.$ac_ext
27992 cat >>conftest.$ac_ext <<_ACEOF
27993 /* end confdefs.h. */
27995 #ifdef HAVE_INTTYPES_H
27996 #include <inttypes.h>
27998 #ifdef HAVE_STDINT_H
27999 #include <stdint.h>
28007 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
28014 rm -f conftest.$ac_objext
28015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28016 (eval $ac_compile) 2>conftest.er1
28018 grep -v '^ *+' conftest.er1 >conftest.err
28020 cat conftest.err >&5
28021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022 (exit $ac_status); } &&
28023 { ac_try='test -z "$ac_c_werror_flag"
28024 || test ! -s conftest.err'
28025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28026 (eval $ac_try) 2>&5
28028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029 (exit $ac_status); }; } &&
28030 { ac_try='test -s conftest.$ac_objext'
28031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28032 (eval $ac_try) 2>&5
28034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035 (exit $ac_status); }; }; then
28036 ac_hi=$ac_mid; break
28038 echo "$as_me: failed program was:" >&5
28039 sed 's/^/| /' conftest.$ac_ext >&5
28041 ac_lo=`expr $ac_mid + 1`
28042 if test $ac_lo -le $ac_mid; then
28046 ac_mid=`expr 2 '*' $ac_mid + 1`
28048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28051 echo "$as_me: failed program was:" >&5
28052 sed 's/^/| /' conftest.$ac_ext >&5
28054 cat >conftest.$ac_ext <<_ACEOF
28057 cat confdefs.h >>conftest.$ac_ext
28058 cat >>conftest.$ac_ext <<_ACEOF
28059 /* end confdefs.h. */
28061 #ifdef HAVE_INTTYPES_H
28062 #include <inttypes.h>
28064 #ifdef HAVE_STDINT_H
28065 #include <stdint.h>
28073 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) < 0)];
28080 rm -f conftest.$ac_objext
28081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28082 (eval $ac_compile) 2>conftest.er1
28084 grep -v '^ *+' conftest.er1 >conftest.err
28086 cat conftest.err >&5
28087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); } &&
28089 { ac_try='test -z "$ac_c_werror_flag"
28090 || test ! -s conftest.err'
28091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28092 (eval $ac_try) 2>&5
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); }; } &&
28096 { ac_try='test -s conftest.$ac_objext'
28097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28098 (eval $ac_try) 2>&5
28100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101 (exit $ac_status); }; }; then
28104 cat >conftest.$ac_ext <<_ACEOF
28107 cat confdefs.h >>conftest.$ac_ext
28108 cat >>conftest.$ac_ext <<_ACEOF
28109 /* end confdefs.h. */
28111 #ifdef HAVE_INTTYPES_H
28112 #include <inttypes.h>
28114 #ifdef HAVE_STDINT_H
28115 #include <stdint.h>
28123 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= $ac_mid)];
28130 rm -f conftest.$ac_objext
28131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28132 (eval $ac_compile) 2>conftest.er1
28134 grep -v '^ *+' conftest.er1 >conftest.err
28136 cat conftest.err >&5
28137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28138 (exit $ac_status); } &&
28139 { ac_try='test -z "$ac_c_werror_flag"
28140 || test ! -s conftest.err'
28141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28142 (eval $ac_try) 2>&5
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); }; } &&
28146 { ac_try='test -s conftest.$ac_objext'
28147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28148 (eval $ac_try) 2>&5
28150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); }; }; then
28152 ac_lo=$ac_mid; break
28154 echo "$as_me: failed program was:" >&5
28155 sed 's/^/| /' conftest.$ac_ext >&5
28157 ac_hi=`expr '(' $ac_mid ')' - 1`
28158 if test $ac_mid -le $ac_hi; then
28162 ac_mid=`expr 2 '*' $ac_mid`
28164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28167 echo "$as_me: failed program was:" >&5
28168 sed 's/^/| /' conftest.$ac_ext >&5
28172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28175 # Binary search between lo and hi bounds.
28176 while test "x$ac_lo" != "x$ac_hi"; do
28177 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28178 cat >conftest.$ac_ext <<_ACEOF
28181 cat confdefs.h >>conftest.$ac_ext
28182 cat >>conftest.$ac_ext <<_ACEOF
28183 /* end confdefs.h. */
28185 #ifdef HAVE_INTTYPES_H
28186 #include <inttypes.h>
28188 #ifdef HAVE_STDINT_H
28189 #include <stdint.h>
28197 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
28204 rm -f conftest.$ac_objext
28205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28206 (eval $ac_compile) 2>conftest.er1
28208 grep -v '^ *+' conftest.er1 >conftest.err
28210 cat conftest.err >&5
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); } &&
28213 { ac_try='test -z "$ac_c_werror_flag"
28214 || test ! -s conftest.err'
28215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28216 (eval $ac_try) 2>&5
28218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219 (exit $ac_status); }; } &&
28220 { ac_try='test -s conftest.$ac_objext'
28221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28222 (eval $ac_try) 2>&5
28224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225 (exit $ac_status); }; }; then
28228 echo "$as_me: failed program was:" >&5
28229 sed 's/^/| /' conftest.$ac_ext >&5
28231 ac_lo=`expr '(' $ac_mid ')' + 1`
28233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28236 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
28237 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
28238 See \`config.log' for more details." >&5
28239 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
28240 See \`config.log' for more details." >&2;}
28241 { (exit 1); exit 1; }; } ;;
28244 if test "$cross_compiling" = yes; then
28245 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28246 See \`config.log' for more details." >&5
28247 echo "$as_me: error: cannot run test program while cross compiling
28248 See \`config.log' for more details." >&2;}
28249 { (exit 1); exit 1; }; }
28251 cat >conftest.$ac_ext <<_ACEOF
28254 cat confdefs.h >>conftest.$ac_ext
28255 cat >>conftest.$ac_ext <<_ACEOF
28256 /* end confdefs.h. */
28258 #ifdef HAVE_INTTYPES_H
28259 #include <inttypes.h>
28261 #ifdef HAVE_STDINT_H
28262 #include <stdint.h>
28267 long longval () { return (long) (sizeof (intmax_t)); }
28268 unsigned long ulongval () { return (long) (sizeof (intmax_t)); }
28270 #include <stdlib.h>
28275 FILE *f = fopen ("conftest.val", "w");
28278 if (((long) (sizeof (intmax_t))) < 0)
28280 long i = longval ();
28281 if (i != ((long) (sizeof (intmax_t))))
28283 fprintf (f, "%ld\n", i);
28287 unsigned long i = ulongval ();
28288 if (i != ((long) (sizeof (intmax_t))))
28290 fprintf (f, "%lu\n", i);
28292 exit (ferror (f) || fclose (f) != 0);
28298 rm -f conftest$ac_exeext
28299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28300 (eval $ac_link) 2>&5
28302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305 (eval $ac_try) 2>&5
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); }; }; then
28309 ac_cv_sizeof_intmax_t=`cat conftest.val`
28311 echo "$as_me: program exited with status $ac_status" >&5
28312 echo "$as_me: failed program was:" >&5
28313 sed 's/^/| /' conftest.$ac_ext >&5
28315 ( exit $ac_status )
28316 { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
28317 See \`config.log' for more details." >&5
28318 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
28319 See \`config.log' for more details." >&2;}
28320 { (exit 1); exit 1; }; }
28322 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28327 ac_cv_sizeof_intmax_t=0
28330 echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
28331 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6
28332 cat >>confdefs.h <<_ACEOF
28333 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
28337 echo "$as_me:$LINENO: checking for uniquely sized intmax_t" >&5
28338 echo $ECHO_N "checking for uniquely sized intmax_t... $ECHO_C" >&6
28339 if test "${ccvs_cv_unique_int_type_intmax_t+set}" = set; then
28340 echo $ECHO_N "(cached) $ECHO_C" >&6
28342 if set |grep ^ccvs_cv_unique_int_type_ \
28343 |grep "($ac_cv_sizeof_intmax_t)" >/dev/null ; then
28344 ccvs_cv_unique_int_type_intmax_t=no
28346 ccvs_cv_unique_int_type_intmax_t=yes\($ac_cv_sizeof_intmax_t\)
28349 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_intmax_t" >&5
28350 echo "${ECHO_T}$ccvs_cv_unique_int_type_intmax_t" >&6
28351 if test $ccvs_cv_unique_int_type_intmax_t != no ; then
28353 cat >>confdefs.h <<\_ACEOF
28354 #define UNIQUE_INT_TYPE_INTMAX_T 1
28360 echo "$as_me:$LINENO: checking for float" >&5
28361 echo $ECHO_N "checking for float... $ECHO_C" >&6
28362 if test "${ac_cv_type_float+set}" = set; then
28363 echo $ECHO_N "(cached) $ECHO_C" >&6
28365 cat >conftest.$ac_ext <<_ACEOF
28368 cat confdefs.h >>conftest.$ac_ext
28369 cat >>conftest.$ac_ext <<_ACEOF
28370 /* end confdefs.h. */
28371 $ac_includes_default
28377 if (sizeof (float))
28383 rm -f conftest.$ac_objext
28384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28385 (eval $ac_compile) 2>conftest.er1
28387 grep -v '^ *+' conftest.er1 >conftest.err
28389 cat conftest.err >&5
28390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391 (exit $ac_status); } &&
28392 { ac_try='test -z "$ac_c_werror_flag"
28393 || test ! -s conftest.err'
28394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28395 (eval $ac_try) 2>&5
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); }; } &&
28399 { ac_try='test -s conftest.$ac_objext'
28400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28401 (eval $ac_try) 2>&5
28403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); }; }; then
28405 ac_cv_type_float=yes
28407 echo "$as_me: failed program was:" >&5
28408 sed 's/^/| /' conftest.$ac_ext >&5
28410 ac_cv_type_float=no
28412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28414 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
28415 echo "${ECHO_T}$ac_cv_type_float" >&6
28417 echo "$as_me:$LINENO: checking size of float" >&5
28418 echo $ECHO_N "checking size of float... $ECHO_C" >&6
28419 if test "${ac_cv_sizeof_float+set}" = set; then
28420 echo $ECHO_N "(cached) $ECHO_C" >&6
28422 if test "$ac_cv_type_float" = yes; then
28423 # The cast to unsigned long works around a bug in the HP C Compiler
28424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28426 # This bug is HP SR number 8606223364.
28427 if test "$cross_compiling" = yes; then
28428 # Depending upon the size, compute the lo and hi bounds.
28429 cat >conftest.$ac_ext <<_ACEOF
28432 cat confdefs.h >>conftest.$ac_ext
28433 cat >>conftest.$ac_ext <<_ACEOF
28434 /* end confdefs.h. */
28435 $ac_includes_default
28439 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
28446 rm -f conftest.$ac_objext
28447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28448 (eval $ac_compile) 2>conftest.er1
28450 grep -v '^ *+' conftest.er1 >conftest.err
28452 cat conftest.err >&5
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); } &&
28455 { ac_try='test -z "$ac_c_werror_flag"
28456 || test ! -s conftest.err'
28457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28458 (eval $ac_try) 2>&5
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); }; } &&
28462 { ac_try='test -s conftest.$ac_objext'
28463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28464 (eval $ac_try) 2>&5
28466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467 (exit $ac_status); }; }; then
28470 cat >conftest.$ac_ext <<_ACEOF
28473 cat confdefs.h >>conftest.$ac_ext
28474 cat >>conftest.$ac_ext <<_ACEOF
28475 /* end confdefs.h. */
28476 $ac_includes_default
28480 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
28487 rm -f conftest.$ac_objext
28488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28489 (eval $ac_compile) 2>conftest.er1
28491 grep -v '^ *+' conftest.er1 >conftest.err
28493 cat conftest.err >&5
28494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495 (exit $ac_status); } &&
28496 { ac_try='test -z "$ac_c_werror_flag"
28497 || test ! -s conftest.err'
28498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28499 (eval $ac_try) 2>&5
28501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502 (exit $ac_status); }; } &&
28503 { ac_try='test -s conftest.$ac_objext'
28504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28505 (eval $ac_try) 2>&5
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); }; }; then
28509 ac_hi=$ac_mid; break
28511 echo "$as_me: failed program was:" >&5
28512 sed 's/^/| /' conftest.$ac_ext >&5
28514 ac_lo=`expr $ac_mid + 1`
28515 if test $ac_lo -le $ac_mid; then
28519 ac_mid=`expr 2 '*' $ac_mid + 1`
28521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28524 echo "$as_me: failed program was:" >&5
28525 sed 's/^/| /' conftest.$ac_ext >&5
28527 cat >conftest.$ac_ext <<_ACEOF
28530 cat confdefs.h >>conftest.$ac_ext
28531 cat >>conftest.$ac_ext <<_ACEOF
28532 /* end confdefs.h. */
28533 $ac_includes_default
28537 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
28544 rm -f conftest.$ac_objext
28545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28546 (eval $ac_compile) 2>conftest.er1
28548 grep -v '^ *+' conftest.er1 >conftest.err
28550 cat conftest.err >&5
28551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); } &&
28553 { ac_try='test -z "$ac_c_werror_flag"
28554 || test ! -s conftest.err'
28555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28556 (eval $ac_try) 2>&5
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); }; } &&
28560 { ac_try='test -s conftest.$ac_objext'
28561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28562 (eval $ac_try) 2>&5
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); }; }; then
28568 cat >conftest.$ac_ext <<_ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h. */
28574 $ac_includes_default
28578 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
28585 rm -f conftest.$ac_objext
28586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28587 (eval $ac_compile) 2>conftest.er1
28589 grep -v '^ *+' conftest.er1 >conftest.err
28591 cat conftest.err >&5
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); } &&
28594 { ac_try='test -z "$ac_c_werror_flag"
28595 || test ! -s conftest.err'
28596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28597 (eval $ac_try) 2>&5
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); }; } &&
28601 { ac_try='test -s conftest.$ac_objext'
28602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28603 (eval $ac_try) 2>&5
28605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606 (exit $ac_status); }; }; then
28607 ac_lo=$ac_mid; break
28609 echo "$as_me: failed program was:" >&5
28610 sed 's/^/| /' conftest.$ac_ext >&5
28612 ac_hi=`expr '(' $ac_mid ')' - 1`
28613 if test $ac_mid -le $ac_hi; then
28617 ac_mid=`expr 2 '*' $ac_mid`
28619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28622 echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28630 # Binary search between lo and hi bounds.
28631 while test "x$ac_lo" != "x$ac_hi"; do
28632 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28633 cat >conftest.$ac_ext <<_ACEOF
28636 cat confdefs.h >>conftest.$ac_ext
28637 cat >>conftest.$ac_ext <<_ACEOF
28638 /* end confdefs.h. */
28639 $ac_includes_default
28643 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
28650 rm -f conftest.$ac_objext
28651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28652 (eval $ac_compile) 2>conftest.er1
28654 grep -v '^ *+' conftest.er1 >conftest.err
28656 cat conftest.err >&5
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); } &&
28659 { ac_try='test -z "$ac_c_werror_flag"
28660 || test ! -s conftest.err'
28661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28662 (eval $ac_try) 2>&5
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); }; } &&
28666 { ac_try='test -s conftest.$ac_objext'
28667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28668 (eval $ac_try) 2>&5
28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); }; }; then
28674 echo "$as_me: failed program was:" >&5
28675 sed 's/^/| /' conftest.$ac_ext >&5
28677 ac_lo=`expr '(' $ac_mid ')' + 1`
28679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28682 ?*) ac_cv_sizeof_float=$ac_lo;;
28683 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
28684 See \`config.log' for more details." >&5
28685 echo "$as_me: error: cannot compute sizeof (float), 77
28686 See \`config.log' for more details." >&2;}
28687 { (exit 1); exit 1; }; } ;;
28690 if test "$cross_compiling" = yes; then
28691 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28692 See \`config.log' for more details." >&5
28693 echo "$as_me: error: cannot run test program while cross compiling
28694 See \`config.log' for more details." >&2;}
28695 { (exit 1); exit 1; }; }
28697 cat >conftest.$ac_ext <<_ACEOF
28700 cat confdefs.h >>conftest.$ac_ext
28701 cat >>conftest.$ac_ext <<_ACEOF
28702 /* end confdefs.h. */
28703 $ac_includes_default
28704 long longval () { return (long) (sizeof (float)); }
28705 unsigned long ulongval () { return (long) (sizeof (float)); }
28707 #include <stdlib.h>
28712 FILE *f = fopen ("conftest.val", "w");
28715 if (((long) (sizeof (float))) < 0)
28717 long i = longval ();
28718 if (i != ((long) (sizeof (float))))
28720 fprintf (f, "%ld\n", i);
28724 unsigned long i = ulongval ();
28725 if (i != ((long) (sizeof (float))))
28727 fprintf (f, "%lu\n", i);
28729 exit (ferror (f) || fclose (f) != 0);
28735 rm -f conftest$ac_exeext
28736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28737 (eval $ac_link) 2>&5
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742 (eval $ac_try) 2>&5
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); }; }; then
28746 ac_cv_sizeof_float=`cat conftest.val`
28748 echo "$as_me: program exited with status $ac_status" >&5
28749 echo "$as_me: failed program was:" >&5
28750 sed 's/^/| /' conftest.$ac_ext >&5
28752 ( exit $ac_status )
28753 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
28754 See \`config.log' for more details." >&5
28755 echo "$as_me: error: cannot compute sizeof (float), 77
28756 See \`config.log' for more details." >&2;}
28757 { (exit 1); exit 1; }; }
28759 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28764 ac_cv_sizeof_float=0
28767 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
28768 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
28769 cat >>confdefs.h <<_ACEOF
28770 #define SIZEOF_FLOAT $ac_cv_sizeof_float
28774 echo "$as_me:$LINENO: checking for uniquely sized float" >&5
28775 echo $ECHO_N "checking for uniquely sized float... $ECHO_C" >&6
28776 if test "${ccvs_cv_unique_float_type_float+set}" = set; then
28777 echo $ECHO_N "(cached) $ECHO_C" >&6
28779 if set |grep ^ccvs_cv_unique_float_type_ \
28780 |grep "($ac_cv_sizeof_float)" >/dev/null ; then
28781 ccvs_cv_unique_float_type_float=no
28783 ccvs_cv_unique_float_type_float=yes\($ac_cv_sizeof_float\)
28786 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_float" >&5
28787 echo "${ECHO_T}$ccvs_cv_unique_float_type_float" >&6
28788 if test $ccvs_cv_unique_float_type_float != no ; then
28790 cat >>confdefs.h <<\_ACEOF
28791 #define UNIQUE_FLOAT_TYPE_FLOAT 1
28795 echo "$as_me:$LINENO: checking for double" >&5
28796 echo $ECHO_N "checking for double... $ECHO_C" >&6
28797 if test "${ac_cv_type_double+set}" = set; then
28798 echo $ECHO_N "(cached) $ECHO_C" >&6
28800 cat >conftest.$ac_ext <<_ACEOF
28803 cat confdefs.h >>conftest.$ac_ext
28804 cat >>conftest.$ac_ext <<_ACEOF
28805 /* end confdefs.h. */
28806 $ac_includes_default
28812 if (sizeof (double))
28818 rm -f conftest.$ac_objext
28819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28820 (eval $ac_compile) 2>conftest.er1
28822 grep -v '^ *+' conftest.er1 >conftest.err
28824 cat conftest.err >&5
28825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826 (exit $ac_status); } &&
28827 { ac_try='test -z "$ac_c_werror_flag"
28828 || test ! -s conftest.err'
28829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28830 (eval $ac_try) 2>&5
28832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); }; } &&
28834 { ac_try='test -s conftest.$ac_objext'
28835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28836 (eval $ac_try) 2>&5
28838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839 (exit $ac_status); }; }; then
28840 ac_cv_type_double=yes
28842 echo "$as_me: failed program was:" >&5
28843 sed 's/^/| /' conftest.$ac_ext >&5
28845 ac_cv_type_double=no
28847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28849 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
28850 echo "${ECHO_T}$ac_cv_type_double" >&6
28852 echo "$as_me:$LINENO: checking size of double" >&5
28853 echo $ECHO_N "checking size of double... $ECHO_C" >&6
28854 if test "${ac_cv_sizeof_double+set}" = set; then
28855 echo $ECHO_N "(cached) $ECHO_C" >&6
28857 if test "$ac_cv_type_double" = yes; then
28858 # The cast to unsigned long works around a bug in the HP C Compiler
28859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28861 # This bug is HP SR number 8606223364.
28862 if test "$cross_compiling" = yes; then
28863 # Depending upon the size, compute the lo and hi bounds.
28864 cat >conftest.$ac_ext <<_ACEOF
28867 cat confdefs.h >>conftest.$ac_ext
28868 cat >>conftest.$ac_ext <<_ACEOF
28869 /* end confdefs.h. */
28870 $ac_includes_default
28874 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
28881 rm -f conftest.$ac_objext
28882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28883 (eval $ac_compile) 2>conftest.er1
28885 grep -v '^ *+' conftest.er1 >conftest.err
28887 cat conftest.err >&5
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); } &&
28890 { ac_try='test -z "$ac_c_werror_flag"
28891 || test ! -s conftest.err'
28892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28893 (eval $ac_try) 2>&5
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); }; } &&
28897 { ac_try='test -s conftest.$ac_objext'
28898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899 (eval $ac_try) 2>&5
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); }; }; then
28905 cat >conftest.$ac_ext <<_ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h. */
28911 $ac_includes_default
28915 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
28922 rm -f conftest.$ac_objext
28923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28924 (eval $ac_compile) 2>conftest.er1
28926 grep -v '^ *+' conftest.er1 >conftest.err
28928 cat conftest.err >&5
28929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930 (exit $ac_status); } &&
28931 { ac_try='test -z "$ac_c_werror_flag"
28932 || test ! -s conftest.err'
28933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28934 (eval $ac_try) 2>&5
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); }; } &&
28938 { ac_try='test -s conftest.$ac_objext'
28939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28940 (eval $ac_try) 2>&5
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); }; }; then
28944 ac_hi=$ac_mid; break
28946 echo "$as_me: failed program was:" >&5
28947 sed 's/^/| /' conftest.$ac_ext >&5
28949 ac_lo=`expr $ac_mid + 1`
28950 if test $ac_lo -le $ac_mid; then
28954 ac_mid=`expr 2 '*' $ac_mid + 1`
28956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28959 echo "$as_me: failed program was:" >&5
28960 sed 's/^/| /' conftest.$ac_ext >&5
28962 cat >conftest.$ac_ext <<_ACEOF
28965 cat confdefs.h >>conftest.$ac_ext
28966 cat >>conftest.$ac_ext <<_ACEOF
28967 /* end confdefs.h. */
28968 $ac_includes_default
28972 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
28979 rm -f conftest.$ac_objext
28980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28981 (eval $ac_compile) 2>conftest.er1
28983 grep -v '^ *+' conftest.er1 >conftest.err
28985 cat conftest.err >&5
28986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987 (exit $ac_status); } &&
28988 { ac_try='test -z "$ac_c_werror_flag"
28989 || test ! -s conftest.err'
28990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28991 (eval $ac_try) 2>&5
28993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994 (exit $ac_status); }; } &&
28995 { ac_try='test -s conftest.$ac_objext'
28996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28997 (eval $ac_try) 2>&5
28999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000 (exit $ac_status); }; }; then
29003 cat >conftest.$ac_ext <<_ACEOF
29006 cat confdefs.h >>conftest.$ac_ext
29007 cat >>conftest.$ac_ext <<_ACEOF
29008 /* end confdefs.h. */
29009 $ac_includes_default
29013 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
29020 rm -f conftest.$ac_objext
29021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29022 (eval $ac_compile) 2>conftest.er1
29024 grep -v '^ *+' conftest.er1 >conftest.err
29026 cat conftest.err >&5
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); } &&
29029 { ac_try='test -z "$ac_c_werror_flag"
29030 || test ! -s conftest.err'
29031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29032 (eval $ac_try) 2>&5
29034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035 (exit $ac_status); }; } &&
29036 { ac_try='test -s conftest.$ac_objext'
29037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29038 (eval $ac_try) 2>&5
29040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041 (exit $ac_status); }; }; then
29042 ac_lo=$ac_mid; break
29044 echo "$as_me: failed program was:" >&5
29045 sed 's/^/| /' conftest.$ac_ext >&5
29047 ac_hi=`expr '(' $ac_mid ')' - 1`
29048 if test $ac_mid -le $ac_hi; then
29052 ac_mid=`expr 2 '*' $ac_mid`
29054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29057 echo "$as_me: failed program was:" >&5
29058 sed 's/^/| /' conftest.$ac_ext >&5
29062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29065 # Binary search between lo and hi bounds.
29066 while test "x$ac_lo" != "x$ac_hi"; do
29067 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29068 cat >conftest.$ac_ext <<_ACEOF
29071 cat confdefs.h >>conftest.$ac_ext
29072 cat >>conftest.$ac_ext <<_ACEOF
29073 /* end confdefs.h. */
29074 $ac_includes_default
29078 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
29085 rm -f conftest.$ac_objext
29086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29087 (eval $ac_compile) 2>conftest.er1
29089 grep -v '^ *+' conftest.er1 >conftest.err
29091 cat conftest.err >&5
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); } &&
29094 { ac_try='test -z "$ac_c_werror_flag"
29095 || test ! -s conftest.err'
29096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29097 (eval $ac_try) 2>&5
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); }; } &&
29101 { ac_try='test -s conftest.$ac_objext'
29102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29103 (eval $ac_try) 2>&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); }; }; then
29109 echo "$as_me: failed program was:" >&5
29110 sed 's/^/| /' conftest.$ac_ext >&5
29112 ac_lo=`expr '(' $ac_mid ')' + 1`
29114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29117 ?*) ac_cv_sizeof_double=$ac_lo;;
29118 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
29119 See \`config.log' for more details." >&5
29120 echo "$as_me: error: cannot compute sizeof (double), 77
29121 See \`config.log' for more details." >&2;}
29122 { (exit 1); exit 1; }; } ;;
29125 if test "$cross_compiling" = yes; then
29126 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29127 See \`config.log' for more details." >&5
29128 echo "$as_me: error: cannot run test program while cross compiling
29129 See \`config.log' for more details." >&2;}
29130 { (exit 1); exit 1; }; }
29132 cat >conftest.$ac_ext <<_ACEOF
29135 cat confdefs.h >>conftest.$ac_ext
29136 cat >>conftest.$ac_ext <<_ACEOF
29137 /* end confdefs.h. */
29138 $ac_includes_default
29139 long longval () { return (long) (sizeof (double)); }
29140 unsigned long ulongval () { return (long) (sizeof (double)); }
29142 #include <stdlib.h>
29147 FILE *f = fopen ("conftest.val", "w");
29150 if (((long) (sizeof (double))) < 0)
29152 long i = longval ();
29153 if (i != ((long) (sizeof (double))))
29155 fprintf (f, "%ld\n", i);
29159 unsigned long i = ulongval ();
29160 if (i != ((long) (sizeof (double))))
29162 fprintf (f, "%lu\n", i);
29164 exit (ferror (f) || fclose (f) != 0);
29170 rm -f conftest$ac_exeext
29171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29172 (eval $ac_link) 2>&5
29174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29177 (eval $ac_try) 2>&5
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); }; }; then
29181 ac_cv_sizeof_double=`cat conftest.val`
29183 echo "$as_me: program exited with status $ac_status" >&5
29184 echo "$as_me: failed program was:" >&5
29185 sed 's/^/| /' conftest.$ac_ext >&5
29187 ( exit $ac_status )
29188 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
29189 See \`config.log' for more details." >&5
29190 echo "$as_me: error: cannot compute sizeof (double), 77
29191 See \`config.log' for more details." >&2;}
29192 { (exit 1); exit 1; }; }
29194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29199 ac_cv_sizeof_double=0
29202 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
29203 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
29204 cat >>confdefs.h <<_ACEOF
29205 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
29209 echo "$as_me:$LINENO: checking for uniquely sized double" >&5
29210 echo $ECHO_N "checking for uniquely sized double... $ECHO_C" >&6
29211 if test "${ccvs_cv_unique_float_type_double+set}" = set; then
29212 echo $ECHO_N "(cached) $ECHO_C" >&6
29214 if set |grep ^ccvs_cv_unique_float_type_ \
29215 |grep "($ac_cv_sizeof_double)" >/dev/null ; then
29216 ccvs_cv_unique_float_type_double=no
29218 ccvs_cv_unique_float_type_double=yes\($ac_cv_sizeof_double\)
29221 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_double" >&5
29222 echo "${ECHO_T}$ccvs_cv_unique_float_type_double" >&6
29223 if test $ccvs_cv_unique_float_type_double != no ; then
29225 cat >>confdefs.h <<\_ACEOF
29226 #define UNIQUE_FLOAT_TYPE_DOUBLE 1
29230 if test $gt_cv_c_long_double != no; then
29231 echo "$as_me:$LINENO: checking for long double" >&5
29232 echo $ECHO_N "checking for long double... $ECHO_C" >&6
29233 if test "${ac_cv_type_long_double+set}" = set; then
29234 echo $ECHO_N "(cached) $ECHO_C" >&6
29236 cat >conftest.$ac_ext <<_ACEOF
29239 cat confdefs.h >>conftest.$ac_ext
29240 cat >>conftest.$ac_ext <<_ACEOF
29241 /* end confdefs.h. */
29242 $ac_includes_default
29246 if ((long double *) 0)
29248 if (sizeof (long double))
29254 rm -f conftest.$ac_objext
29255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29256 (eval $ac_compile) 2>conftest.er1
29258 grep -v '^ *+' conftest.er1 >conftest.err
29260 cat conftest.err >&5
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); } &&
29263 { ac_try='test -z "$ac_c_werror_flag"
29264 || test ! -s conftest.err'
29265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29266 (eval $ac_try) 2>&5
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); }; } &&
29270 { ac_try='test -s conftest.$ac_objext'
29271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29272 (eval $ac_try) 2>&5
29274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275 (exit $ac_status); }; }; then
29276 ac_cv_type_long_double=yes
29278 echo "$as_me: failed program was:" >&5
29279 sed 's/^/| /' conftest.$ac_ext >&5
29281 ac_cv_type_long_double=no
29283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29285 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
29286 echo "${ECHO_T}$ac_cv_type_long_double" >&6
29288 echo "$as_me:$LINENO: checking size of long double" >&5
29289 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
29290 if test "${ac_cv_sizeof_long_double+set}" = set; then
29291 echo $ECHO_N "(cached) $ECHO_C" >&6
29293 if test "$ac_cv_type_long_double" = yes; then
29294 # The cast to unsigned long works around a bug in the HP C Compiler
29295 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29296 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29297 # This bug is HP SR number 8606223364.
29298 if test "$cross_compiling" = yes; then
29299 # Depending upon the size, compute the lo and hi bounds.
29300 cat >conftest.$ac_ext <<_ACEOF
29303 cat confdefs.h >>conftest.$ac_ext
29304 cat >>conftest.$ac_ext <<_ACEOF
29305 /* end confdefs.h. */
29306 $ac_includes_default
29310 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
29317 rm -f conftest.$ac_objext
29318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29319 (eval $ac_compile) 2>conftest.er1
29321 grep -v '^ *+' conftest.er1 >conftest.err
29323 cat conftest.err >&5
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); } &&
29326 { ac_try='test -z "$ac_c_werror_flag"
29327 || test ! -s conftest.err'
29328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329 (eval $ac_try) 2>&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; } &&
29333 { ac_try='test -s conftest.$ac_objext'
29334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335 (eval $ac_try) 2>&5
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); }; }; then
29341 cat >conftest.$ac_ext <<_ACEOF
29344 cat confdefs.h >>conftest.$ac_ext
29345 cat >>conftest.$ac_ext <<_ACEOF
29346 /* end confdefs.h. */
29347 $ac_includes_default
29351 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
29358 rm -f conftest.$ac_objext
29359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29360 (eval $ac_compile) 2>conftest.er1
29362 grep -v '^ *+' conftest.er1 >conftest.err
29364 cat conftest.err >&5
29365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29366 (exit $ac_status); } &&
29367 { ac_try='test -z "$ac_c_werror_flag"
29368 || test ! -s conftest.err'
29369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29370 (eval $ac_try) 2>&5
29372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29373 (exit $ac_status); }; } &&
29374 { ac_try='test -s conftest.$ac_objext'
29375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29376 (eval $ac_try) 2>&5
29378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379 (exit $ac_status); }; }; then
29380 ac_hi=$ac_mid; break
29382 echo "$as_me: failed program was:" >&5
29383 sed 's/^/| /' conftest.$ac_ext >&5
29385 ac_lo=`expr $ac_mid + 1`
29386 if test $ac_lo -le $ac_mid; then
29390 ac_mid=`expr 2 '*' $ac_mid + 1`
29392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29395 echo "$as_me: failed program was:" >&5
29396 sed 's/^/| /' conftest.$ac_ext >&5
29398 cat >conftest.$ac_ext <<_ACEOF
29401 cat confdefs.h >>conftest.$ac_ext
29402 cat >>conftest.$ac_ext <<_ACEOF
29403 /* end confdefs.h. */
29404 $ac_includes_default
29408 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
29415 rm -f conftest.$ac_objext
29416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29417 (eval $ac_compile) 2>conftest.er1
29419 grep -v '^ *+' conftest.er1 >conftest.err
29421 cat conftest.err >&5
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); } &&
29424 { ac_try='test -z "$ac_c_werror_flag"
29425 || test ! -s conftest.err'
29426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29427 (eval $ac_try) 2>&5
29429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430 (exit $ac_status); }; } &&
29431 { ac_try='test -s conftest.$ac_objext'
29432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433 (eval $ac_try) 2>&5
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); }; }; then
29439 cat >conftest.$ac_ext <<_ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h. */
29445 $ac_includes_default
29449 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
29456 rm -f conftest.$ac_objext
29457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29458 (eval $ac_compile) 2>conftest.er1
29460 grep -v '^ *+' conftest.er1 >conftest.err
29462 cat conftest.err >&5
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); } &&
29465 { ac_try='test -z "$ac_c_werror_flag"
29466 || test ! -s conftest.err'
29467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29468 (eval $ac_try) 2>&5
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); }; } &&
29472 { ac_try='test -s conftest.$ac_objext'
29473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29474 (eval $ac_try) 2>&5
29476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477 (exit $ac_status); }; }; then
29478 ac_lo=$ac_mid; break
29480 echo "$as_me: failed program was:" >&5
29481 sed 's/^/| /' conftest.$ac_ext >&5
29483 ac_hi=`expr '(' $ac_mid ')' - 1`
29484 if test $ac_mid -le $ac_hi; then
29488 ac_mid=`expr 2 '*' $ac_mid`
29490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29493 echo "$as_me: failed program was:" >&5
29494 sed 's/^/| /' conftest.$ac_ext >&5
29498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29501 # Binary search between lo and hi bounds.
29502 while test "x$ac_lo" != "x$ac_hi"; do
29503 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29504 cat >conftest.$ac_ext <<_ACEOF
29507 cat confdefs.h >>conftest.$ac_ext
29508 cat >>conftest.$ac_ext <<_ACEOF
29509 /* end confdefs.h. */
29510 $ac_includes_default
29514 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
29521 rm -f conftest.$ac_objext
29522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29523 (eval $ac_compile) 2>conftest.er1
29525 grep -v '^ *+' conftest.er1 >conftest.err
29527 cat conftest.err >&5
29528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529 (exit $ac_status); } &&
29530 { ac_try='test -z "$ac_c_werror_flag"
29531 || test ! -s conftest.err'
29532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29533 (eval $ac_try) 2>&5
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); }; } &&
29537 { ac_try='test -s conftest.$ac_objext'
29538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29539 (eval $ac_try) 2>&5
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); }; }; then
29545 echo "$as_me: failed program was:" >&5
29546 sed 's/^/| /' conftest.$ac_ext >&5
29548 ac_lo=`expr '(' $ac_mid ')' + 1`
29550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29553 ?*) ac_cv_sizeof_long_double=$ac_lo;;
29554 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
29555 See \`config.log' for more details." >&5
29556 echo "$as_me: error: cannot compute sizeof (long double), 77
29557 See \`config.log' for more details." >&2;}
29558 { (exit 1); exit 1; }; } ;;
29561 if test "$cross_compiling" = yes; then
29562 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29563 See \`config.log' for more details." >&5
29564 echo "$as_me: error: cannot run test program while cross compiling
29565 See \`config.log' for more details." >&2;}
29566 { (exit 1); exit 1; }; }
29568 cat >conftest.$ac_ext <<_ACEOF
29571 cat confdefs.h >>conftest.$ac_ext
29572 cat >>conftest.$ac_ext <<_ACEOF
29573 /* end confdefs.h. */
29574 $ac_includes_default
29575 long longval () { return (long) (sizeof (long double)); }
29576 unsigned long ulongval () { return (long) (sizeof (long double)); }
29578 #include <stdlib.h>
29583 FILE *f = fopen ("conftest.val", "w");
29586 if (((long) (sizeof (long double))) < 0)
29588 long i = longval ();
29589 if (i != ((long) (sizeof (long double))))
29591 fprintf (f, "%ld\n", i);
29595 unsigned long i = ulongval ();
29596 if (i != ((long) (sizeof (long double))))
29598 fprintf (f, "%lu\n", i);
29600 exit (ferror (f) || fclose (f) != 0);
29606 rm -f conftest$ac_exeext
29607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29608 (eval $ac_link) 2>&5
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29613 (eval $ac_try) 2>&5
29615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616 (exit $ac_status); }; }; then
29617 ac_cv_sizeof_long_double=`cat conftest.val`
29619 echo "$as_me: program exited with status $ac_status" >&5
29620 echo "$as_me: failed program was:" >&5
29621 sed 's/^/| /' conftest.$ac_ext >&5
29623 ( exit $ac_status )
29624 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
29625 See \`config.log' for more details." >&5
29626 echo "$as_me: error: cannot compute sizeof (long double), 77
29627 See \`config.log' for more details." >&2;}
29628 { (exit 1); exit 1; }; }
29630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29635 ac_cv_sizeof_long_double=0
29638 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
29639 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
29640 cat >>confdefs.h <<_ACEOF
29641 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
29645 echo "$as_me:$LINENO: checking for uniquely sized long double" >&5
29646 echo $ECHO_N "checking for uniquely sized long double... $ECHO_C" >&6
29647 if test "${ccvs_cv_unique_float_type_long_double+set}" = set; then
29648 echo $ECHO_N "(cached) $ECHO_C" >&6
29650 if set |grep ^ccvs_cv_unique_float_type_ \
29651 |grep "($ac_cv_sizeof_long_double)" >/dev/null ; then
29652 ccvs_cv_unique_float_type_long_double=no
29654 ccvs_cv_unique_float_type_long_double=yes\($ac_cv_sizeof_long_double\)
29657 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_long_double" >&5
29658 echo "${ECHO_T}$ccvs_cv_unique_float_type_long_double" >&6
29659 if test $ccvs_cv_unique_float_type_long_double != no ; then
29661 cat >>confdefs.h <<\_ACEOF
29662 #define UNIQUE_FLOAT_TYPE_LONG_DOUBLE 1
29670 cat >>confdefs.h <<\_ACEOF
29671 #define HAVE_STRCHR 1
29675 cat >>confdefs.h <<\_ACEOF
29676 #define HAVE_MEMCHR 1
29681 cat >>confdefs.h <<\_ACEOF
29682 #define REGEX_MALLOC 1
29686 cat >>confdefs.h <<\_ACEOF
29687 #define _REGEX_RE_COMP 1
29692 for ac_header in unistd.h vfork.h
29694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29696 echo "$as_me:$LINENO: checking for $ac_header" >&5
29697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29699 echo $ECHO_N "(cached) $ECHO_C" >&6
29701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29704 # Is the header compilable?
29705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29707 cat >conftest.$ac_ext <<_ACEOF
29710 cat confdefs.h >>conftest.$ac_ext
29711 cat >>conftest.$ac_ext <<_ACEOF
29712 /* end confdefs.h. */
29713 $ac_includes_default
29714 #include <$ac_header>
29716 rm -f conftest.$ac_objext
29717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29718 (eval $ac_compile) 2>conftest.er1
29720 grep -v '^ *+' conftest.er1 >conftest.err
29722 cat conftest.err >&5
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); } &&
29725 { ac_try='test -z "$ac_c_werror_flag"
29726 || test ! -s conftest.err'
29727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29728 (eval $ac_try) 2>&5
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731 (exit $ac_status); }; } &&
29732 { ac_try='test -s conftest.$ac_objext'
29733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29734 (eval $ac_try) 2>&5
29736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737 (exit $ac_status); }; }; then
29738 ac_header_compiler=yes
29740 echo "$as_me: failed program was:" >&5
29741 sed 's/^/| /' conftest.$ac_ext >&5
29743 ac_header_compiler=no
29745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29747 echo "${ECHO_T}$ac_header_compiler" >&6
29749 # Is the header present?
29750 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29752 cat >conftest.$ac_ext <<_ACEOF
29755 cat confdefs.h >>conftest.$ac_ext
29756 cat >>conftest.$ac_ext <<_ACEOF
29757 /* end confdefs.h. */
29758 #include <$ac_header>
29760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29763 grep -v '^ *+' conftest.er1 >conftest.err
29765 cat conftest.err >&5
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); } >/dev/null; then
29768 if test -s conftest.err; then
29769 ac_cpp_err=$ac_c_preproc_warn_flag
29770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29777 if test -z "$ac_cpp_err"; then
29778 ac_header_preproc=yes
29780 echo "$as_me: failed program was:" >&5
29781 sed 's/^/| /' conftest.$ac_ext >&5
29783 ac_header_preproc=no
29785 rm -f conftest.err conftest.$ac_ext
29786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29787 echo "${ECHO_T}$ac_header_preproc" >&6
29789 # So? What about this header?
29790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29796 ac_header_preproc=yes
29799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29806 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29813 ## ------------------------------ ##
29814 ## Report this to bug-cvs@gnu.org ##
29815 ## ------------------------------ ##
29818 sed "s/^/$as_me: WARNING: /" >&2
29821 echo "$as_me:$LINENO: checking for $ac_header" >&5
29822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29824 echo $ECHO_N "(cached) $ECHO_C" >&6
29826 eval "$as_ac_Header=\$ac_header_preproc"
29828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29833 cat >>confdefs.h <<_ACEOF
29834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29843 for ac_func in fork vfork
29845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29846 echo "$as_me:$LINENO: checking for $ac_func" >&5
29847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29848 if eval "test \"\${$as_ac_var+set}\" = set"; then
29849 echo $ECHO_N "(cached) $ECHO_C" >&6
29851 cat >conftest.$ac_ext <<_ACEOF
29854 cat confdefs.h >>conftest.$ac_ext
29855 cat >>conftest.$ac_ext <<_ACEOF
29856 /* end confdefs.h. */
29857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29859 #define $ac_func innocuous_$ac_func
29861 /* System header to define __stub macros and hopefully few prototypes,
29862 which can conflict with char $ac_func (); below.
29863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29864 <limits.h> exists even on freestanding compilers. */
29867 # include <limits.h>
29869 # include <assert.h>
29874 /* Override any gcc2 internal prototype to avoid an error. */
29879 /* We use char because int might match the return type of a gcc2
29880 builtin and then its argument prototype would still apply. */
29882 /* The GNU C library defines this for functions which it implements
29883 to always fail with ENOSYS. Some functions are actually named
29884 something starting with __ and the normal name is an alias. */
29885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29888 char (*f) () = $ac_func;
29897 return f != $ac_func;
29902 rm -f conftest.$ac_objext conftest$ac_exeext
29903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29904 (eval $ac_link) 2>conftest.er1
29906 grep -v '^ *+' conftest.er1 >conftest.err
29908 cat conftest.err >&5
29909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910 (exit $ac_status); } &&
29911 { ac_try='test -z "$ac_c_werror_flag"
29912 || test ! -s conftest.err'
29913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29914 (eval $ac_try) 2>&5
29916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917 (exit $ac_status); }; } &&
29918 { ac_try='test -s conftest$ac_exeext'
29919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29920 (eval $ac_try) 2>&5
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); }; }; then
29924 eval "$as_ac_var=yes"
29926 echo "$as_me: failed program was:" >&5
29927 sed 's/^/| /' conftest.$ac_ext >&5
29929 eval "$as_ac_var=no"
29931 rm -f conftest.err conftest.$ac_objext \
29932 conftest$ac_exeext conftest.$ac_ext
29934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29936 if test `eval echo '${'$as_ac_var'}'` = yes; then
29937 cat >>confdefs.h <<_ACEOF
29938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29944 if test "x$ac_cv_func_fork" = xyes; then
29945 echo "$as_me:$LINENO: checking for working fork" >&5
29946 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
29947 if test "${ac_cv_func_fork_works+set}" = set; then
29948 echo $ECHO_N "(cached) $ECHO_C" >&6
29950 if test "$cross_compiling" = yes; then
29951 ac_cv_func_fork_works=cross
29953 cat >conftest.$ac_ext <<_ACEOF
29954 /* By Ruediger Kuhlmann. */
29955 #include <sys/types.h>
29957 # include <unistd.h>
29959 /* Some systems only have a dummy stub for fork() */
29967 rm -f conftest$ac_exeext
29968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29969 (eval $ac_link) 2>&5
29971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29974 (eval $ac_try) 2>&5
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); }; }; then
29978 ac_cv_func_fork_works=yes
29980 echo "$as_me: program exited with status $ac_status" >&5
29981 echo "$as_me: failed program was:" >&5
29982 sed 's/^/| /' conftest.$ac_ext >&5
29984 ( exit $ac_status )
29985 ac_cv_func_fork_works=no
29987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29990 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
29991 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
29994 ac_cv_func_fork_works=$ac_cv_func_fork
29996 if test "x$ac_cv_func_fork_works" = xcross; then
29998 *-*-amigaos* | *-*-msdosdjgpp*)
29999 # Override, as these systems have only a dummy fork() stub
30000 ac_cv_func_fork_works=no
30003 ac_cv_func_fork_works=yes
30006 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
30007 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
30009 ac_cv_func_vfork_works=$ac_cv_func_vfork
30010 if test "x$ac_cv_func_vfork" = xyes; then
30011 echo "$as_me:$LINENO: checking for working vfork" >&5
30012 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
30013 if test "${ac_cv_func_vfork_works+set}" = set; then
30014 echo $ECHO_N "(cached) $ECHO_C" >&6
30016 if test "$cross_compiling" = yes; then
30017 ac_cv_func_vfork_works=cross
30019 cat >conftest.$ac_ext <<_ACEOF
30022 cat confdefs.h >>conftest.$ac_ext
30023 cat >>conftest.$ac_ext <<_ACEOF
30024 /* end confdefs.h. */
30025 /* Thanks to Paul Eggert for this test. */
30027 #include <stdlib.h>
30028 #include <sys/types.h>
30029 #include <sys/stat.h>
30030 #include <sys/wait.h>
30032 # include <unistd.h>
30035 # include <vfork.h>
30037 /* On some sparc systems, changes by the child to local and incoming
30038 argument registers are propagated back to the parent. The compiler
30039 is told about this with #include <vfork.h>, but some compilers
30040 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
30041 static variable whose address is put into a register that is
30042 clobbered by the vfork. */
30045 sparc_address_test (int arg)
30047 sparc_address_test (arg) int arg;
30050 static pid_t child;
30068 pid_t parent = getpid ();
30071 sparc_address_test (0);
30076 /* Here is another test for sparc vfork register problems. This
30077 test uses lots of local variables, at least as many local
30078 variables as main has allocated so far including compiler
30079 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
30080 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
30081 reuse the register of parent for one of the local variables,
30082 since it will think that parent can't possibly be used any more
30083 in this routine. Assigning to the local variable will thus
30084 munge parent in the parent process. */
30086 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
30087 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
30088 /* Convince the compiler that p..p7 are live; otherwise, it might
30089 use the same hardware register for all 8 local variables. */
30090 if (p != p1 || p != p2 || p != p3 || p != p4
30091 || p != p5 || p != p6 || p != p7)
30094 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
30095 from child file descriptors. If the child closes a descriptor
30096 before it execs or exits, this munges the parent's descriptor
30097 as well. Test for this by closing stdout in the child. */
30098 _exit(close(fileno(stdout)) != 0);
30103 while (wait(&status) != child)
30106 /* Was there some problem with vforking? */
30109 /* Did the child fail? (This shouldn't happen.) */
30112 /* Did the vfork/compiler bug occur? */
30113 || parent != getpid()
30115 /* Did the file descriptor bug occur? */
30116 || fstat(fileno(stdout), &st) != 0
30121 rm -f conftest$ac_exeext
30122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30123 (eval $ac_link) 2>&5
30125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30128 (eval $ac_try) 2>&5
30130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131 (exit $ac_status); }; }; then
30132 ac_cv_func_vfork_works=yes
30134 echo "$as_me: program exited with status $ac_status" >&5
30135 echo "$as_me: failed program was:" >&5
30136 sed 's/^/| /' conftest.$ac_ext >&5
30138 ( exit $ac_status )
30139 ac_cv_func_vfork_works=no
30141 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30144 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
30145 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
30148 if test "x$ac_cv_func_fork_works" = xcross; then
30149 ac_cv_func_vfork_works=$ac_cv_func_vfork
30150 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
30151 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
30154 if test "x$ac_cv_func_vfork_works" = xyes; then
30156 cat >>confdefs.h <<\_ACEOF
30157 #define HAVE_WORKING_VFORK 1
30162 cat >>confdefs.h <<\_ACEOF
30167 if test "x$ac_cv_func_fork_works" = xyes; then
30169 cat >>confdefs.h <<\_ACEOF
30170 #define HAVE_WORKING_FORK 1
30175 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
30176 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
30177 if test "${ac_cv_func_closedir_void+set}" = set; then
30178 echo $ECHO_N "(cached) $ECHO_C" >&6
30180 if test "$cross_compiling" = yes; then
30181 ac_cv_func_closedir_void=yes
30183 cat >conftest.$ac_ext <<_ACEOF
30186 cat confdefs.h >>conftest.$ac_ext
30187 cat >>conftest.$ac_ext <<_ACEOF
30188 /* end confdefs.h. */
30189 $ac_includes_default
30190 #include <$ac_header_dirent>
30191 #ifndef __cplusplus
30198 exit (closedir (opendir (".")) != 0);
30203 rm -f conftest$ac_exeext
30204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30205 (eval $ac_link) 2>&5
30207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30210 (eval $ac_try) 2>&5
30212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); }; }; then
30214 ac_cv_func_closedir_void=no
30216 echo "$as_me: program exited with status $ac_status" >&5
30217 echo "$as_me: failed program was:" >&5
30218 sed 's/^/| /' conftest.$ac_ext >&5
30220 ( exit $ac_status )
30221 ac_cv_func_closedir_void=yes
30223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30226 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
30227 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
30228 if test $ac_cv_func_closedir_void = yes; then
30230 cat >>confdefs.h <<\_ACEOF
30231 #define CLOSEDIR_VOID 1
30237 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
30238 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
30239 if test "${ac_cv_search_getspnam+set}" = set; then
30240 echo $ECHO_N "(cached) $ECHO_C" >&6
30242 ac_func_search_save_LIBS=$LIBS
30243 ac_cv_search_getspnam=no
30244 cat >conftest.$ac_ext <<_ACEOF
30247 cat confdefs.h >>conftest.$ac_ext
30248 cat >>conftest.$ac_ext <<_ACEOF
30249 /* end confdefs.h. */
30251 /* Override any gcc2 internal prototype to avoid an error. */
30255 /* We use char because int might match the return type of a gcc2
30256 builtin and then its argument prototype would still apply. */
30266 rm -f conftest.$ac_objext conftest$ac_exeext
30267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30268 (eval $ac_link) 2>conftest.er1
30270 grep -v '^ *+' conftest.er1 >conftest.err
30272 cat conftest.err >&5
30273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274 (exit $ac_status); } &&
30275 { ac_try='test -z "$ac_c_werror_flag"
30276 || test ! -s conftest.err'
30277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30278 (eval $ac_try) 2>&5
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); }; } &&
30282 { ac_try='test -s conftest$ac_exeext'
30283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30284 (eval $ac_try) 2>&5
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); }; }; then
30288 ac_cv_search_getspnam="none required"
30290 echo "$as_me: failed program was:" >&5
30291 sed 's/^/| /' conftest.$ac_ext >&5
30294 rm -f conftest.err conftest.$ac_objext \
30295 conftest$ac_exeext conftest.$ac_ext
30296 if test "$ac_cv_search_getspnam" = no; then
30297 for ac_lib in sec gen; do
30298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30299 cat >conftest.$ac_ext <<_ACEOF
30302 cat confdefs.h >>conftest.$ac_ext
30303 cat >>conftest.$ac_ext <<_ACEOF
30304 /* end confdefs.h. */
30306 /* Override any gcc2 internal prototype to avoid an error. */
30310 /* We use char because int might match the return type of a gcc2
30311 builtin and then its argument prototype would still apply. */
30321 rm -f conftest.$ac_objext conftest$ac_exeext
30322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30323 (eval $ac_link) 2>conftest.er1
30325 grep -v '^ *+' conftest.er1 >conftest.err
30327 cat conftest.err >&5
30328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329 (exit $ac_status); } &&
30330 { ac_try='test -z "$ac_c_werror_flag"
30331 || test ! -s conftest.err'
30332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30333 (eval $ac_try) 2>&5
30335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30336 (exit $ac_status); }; } &&
30337 { ac_try='test -s conftest$ac_exeext'
30338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30339 (eval $ac_try) 2>&5
30341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342 (exit $ac_status); }; }; then
30343 ac_cv_search_getspnam="-l$ac_lib"
30346 echo "$as_me: failed program was:" >&5
30347 sed 's/^/| /' conftest.$ac_ext >&5
30350 rm -f conftest.err conftest.$ac_objext \
30351 conftest$ac_exeext conftest.$ac_ext
30354 LIBS=$ac_func_search_save_LIBS
30356 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
30357 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
30358 if test "$ac_cv_search_getspnam" != no; then
30359 test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
30361 cat >>confdefs.h <<\_ACEOF
30362 #define HAVE_GETSPNAM 1
30368 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
30369 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
30370 if test "${ac_cv_func_utime_null+set}" = set; then
30371 echo $ECHO_N "(cached) $ECHO_C" >&6
30373 rm -f conftest.data; >conftest.data
30374 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
30375 if test "$cross_compiling" = yes; then
30376 ac_cv_func_utime_null=no
30378 cat >conftest.$ac_ext <<_ACEOF
30381 cat confdefs.h >>conftest.$ac_ext
30382 cat >>conftest.$ac_ext <<_ACEOF
30383 /* end confdefs.h. */
30384 $ac_includes_default
30389 exit (!(stat ("conftest.data", &s) == 0
30390 && utime ("conftest.data", (long *)0) == 0
30391 && stat ("conftest.data", &t) == 0
30392 && t.st_mtime >= s.st_mtime
30393 && t.st_mtime - s.st_mtime < 120));
30398 rm -f conftest$ac_exeext
30399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30400 (eval $ac_link) 2>&5
30402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30405 (eval $ac_try) 2>&5
30407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408 (exit $ac_status); }; }; then
30409 ac_cv_func_utime_null=yes
30411 echo "$as_me: program exited with status $ac_status" >&5
30412 echo "$as_me: failed program was:" >&5
30413 sed 's/^/| /' conftest.$ac_ext >&5
30415 ( exit $ac_status )
30416 ac_cv_func_utime_null=no
30418 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30422 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
30423 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
30424 if test $ac_cv_func_utime_null = yes; then
30426 cat >>confdefs.h <<\_ACEOF
30427 #define HAVE_UTIME_NULL 1
30431 rm -f conftest.data
30433 echo "$as_me:$LINENO: checking for long file names" >&5
30434 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
30435 if test "${ac_cv_sys_long_file_names+set}" = set; then
30436 echo $ECHO_N "(cached) $ECHO_C" >&6
30438 ac_cv_sys_long_file_names=yes
30439 # Test for long file names in all the places we know might matter:
30440 # . the current directory, where building will happen
30441 # $prefix/lib where we will be installing things
30442 # $exec_prefix/lib likewise
30443 # eval it to expand exec_prefix.
30444 # $TMPDIR if set, where it might want to write temporary files
30445 # if $TMPDIR is not set:
30446 # /tmp where it might want to write temporary files
30447 # /var/tmp likewise
30448 # /usr/tmp likewise
30449 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
30452 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
30454 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
30455 test -d $ac_dir || continue
30456 test -w $ac_dir || continue # It is less confusing to not echo anything here.
30457 ac_xdir=$ac_dir/cf$$
30458 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
30459 ac_tf1=$ac_xdir/conftest9012345
30460 ac_tf2=$ac_xdir/conftest9012346
30461 (echo 1 >$ac_tf1) 2>/dev/null
30462 (echo 2 >$ac_tf2) 2>/dev/null
30463 ac_val=`cat $ac_tf1 2>/dev/null`
30464 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
30465 ac_cv_sys_long_file_names=no
30466 rm -rf $ac_xdir 2>/dev/null
30469 rm -rf $ac_xdir 2>/dev/null
30472 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
30473 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
30474 if test $ac_cv_sys_long_file_names = yes; then
30476 cat >>confdefs.h <<\_ACEOF
30477 #define HAVE_LONG_FILE_NAMES 1
30485 for ac_header in stdlib.h unistd.h
30487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30489 echo "$as_me:$LINENO: checking for $ac_header" >&5
30490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30492 echo $ECHO_N "(cached) $ECHO_C" >&6
30494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30497 # Is the header compilable?
30498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30500 cat >conftest.$ac_ext <<_ACEOF
30503 cat confdefs.h >>conftest.$ac_ext
30504 cat >>conftest.$ac_ext <<_ACEOF
30505 /* end confdefs.h. */
30506 $ac_includes_default
30507 #include <$ac_header>
30509 rm -f conftest.$ac_objext
30510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30511 (eval $ac_compile) 2>conftest.er1
30513 grep -v '^ *+' conftest.er1 >conftest.err
30515 cat conftest.err >&5
30516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517 (exit $ac_status); } &&
30518 { ac_try='test -z "$ac_c_werror_flag"
30519 || test ! -s conftest.err'
30520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30521 (eval $ac_try) 2>&5
30523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524 (exit $ac_status); }; } &&
30525 { ac_try='test -s conftest.$ac_objext'
30526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30527 (eval $ac_try) 2>&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); }; }; then
30531 ac_header_compiler=yes
30533 echo "$as_me: failed program was:" >&5
30534 sed 's/^/| /' conftest.$ac_ext >&5
30536 ac_header_compiler=no
30538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30540 echo "${ECHO_T}$ac_header_compiler" >&6
30542 # Is the header present?
30543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30545 cat >conftest.$ac_ext <<_ACEOF
30548 cat confdefs.h >>conftest.$ac_ext
30549 cat >>conftest.$ac_ext <<_ACEOF
30550 /* end confdefs.h. */
30551 #include <$ac_header>
30553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30556 grep -v '^ *+' conftest.er1 >conftest.err
30558 cat conftest.err >&5
30559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30560 (exit $ac_status); } >/dev/null; then
30561 if test -s conftest.err; then
30562 ac_cpp_err=$ac_c_preproc_warn_flag
30563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30570 if test -z "$ac_cpp_err"; then
30571 ac_header_preproc=yes
30573 echo "$as_me: failed program was:" >&5
30574 sed 's/^/| /' conftest.$ac_ext >&5
30576 ac_header_preproc=no
30578 rm -f conftest.err conftest.$ac_ext
30579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30580 echo "${ECHO_T}$ac_header_preproc" >&6
30582 # So? What about this header?
30583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30589 ac_header_preproc=yes
30592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30606 ## ------------------------------ ##
30607 ## Report this to bug-cvs@gnu.org ##
30608 ## ------------------------------ ##
30611 sed "s/^/$as_me: WARNING: /" >&2
30614 echo "$as_me:$LINENO: checking for $ac_header" >&5
30615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30617 echo $ECHO_N "(cached) $ECHO_C" >&6
30619 eval "$as_ac_Header=\$ac_header_preproc"
30621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30626 cat >>confdefs.h <<_ACEOF
30627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30635 for ac_func in getpagesize
30637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30638 echo "$as_me:$LINENO: checking for $ac_func" >&5
30639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30640 if eval "test \"\${$as_ac_var+set}\" = set"; then
30641 echo $ECHO_N "(cached) $ECHO_C" >&6
30643 cat >conftest.$ac_ext <<_ACEOF
30646 cat confdefs.h >>conftest.$ac_ext
30647 cat >>conftest.$ac_ext <<_ACEOF
30648 /* end confdefs.h. */
30649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30651 #define $ac_func innocuous_$ac_func
30653 /* System header to define __stub macros and hopefully few prototypes,
30654 which can conflict with char $ac_func (); below.
30655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30656 <limits.h> exists even on freestanding compilers. */
30659 # include <limits.h>
30661 # include <assert.h>
30666 /* Override any gcc2 internal prototype to avoid an error. */
30671 /* We use char because int might match the return type of a gcc2
30672 builtin and then its argument prototype would still apply. */
30674 /* The GNU C library defines this for functions which it implements
30675 to always fail with ENOSYS. Some functions are actually named
30676 something starting with __ and the normal name is an alias. */
30677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30680 char (*f) () = $ac_func;
30689 return f != $ac_func;
30694 rm -f conftest.$ac_objext conftest$ac_exeext
30695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30696 (eval $ac_link) 2>conftest.er1
30698 grep -v '^ *+' conftest.er1 >conftest.err
30700 cat conftest.err >&5
30701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30702 (exit $ac_status); } &&
30703 { ac_try='test -z "$ac_c_werror_flag"
30704 || test ! -s conftest.err'
30705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30706 (eval $ac_try) 2>&5
30708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709 (exit $ac_status); }; } &&
30710 { ac_try='test -s conftest$ac_exeext'
30711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30712 (eval $ac_try) 2>&5
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); }; }; then
30716 eval "$as_ac_var=yes"
30718 echo "$as_me: failed program was:" >&5
30719 sed 's/^/| /' conftest.$ac_ext >&5
30721 eval "$as_ac_var=no"
30723 rm -f conftest.err conftest.$ac_objext \
30724 conftest$ac_exeext conftest.$ac_ext
30726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30728 if test `eval echo '${'$as_ac_var'}'` = yes; then
30729 cat >>confdefs.h <<_ACEOF
30730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30736 echo "$as_me:$LINENO: checking for working mmap" >&5
30737 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30738 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30739 echo $ECHO_N "(cached) $ECHO_C" >&6
30741 if test "$cross_compiling" = yes; then
30742 ac_cv_func_mmap_fixed_mapped=no
30744 cat >conftest.$ac_ext <<_ACEOF
30747 cat confdefs.h >>conftest.$ac_ext
30748 cat >>conftest.$ac_ext <<_ACEOF
30749 /* end confdefs.h. */
30750 $ac_includes_default
30751 /* malloc might have been renamed as rpl_malloc. */
30754 /* Thanks to Mike Haertel and Jim Avera for this test.
30755 Here is a matrix of mmap possibilities:
30756 mmap private not fixed
30757 mmap private fixed at somewhere currently unmapped
30758 mmap private fixed at somewhere already mapped
30759 mmap shared not fixed
30760 mmap shared fixed at somewhere currently unmapped
30761 mmap shared fixed at somewhere already mapped
30762 For private mappings, we should verify that changes cannot be read()
30763 back from the file, nor mmap's back from the file at a different
30764 address. (There have been systems where private was not correctly
30765 implemented like the infamous i386 svr4.0, and systems where the
30766 VM page cache was not coherent with the file system buffer cache
30767 like early versions of FreeBSD and possibly contemporary NetBSD.)
30768 For shared mappings, we should conversely verify that changes get
30769 propagated back to all the places they're supposed to be.
30771 Grep wants private fixed already mapped.
30772 The main things grep needs to know about mmap are:
30773 * does it exist and is it safe to write into the mmap'd area
30774 * how to use it (BSD variants) */
30777 #include <sys/mman.h>
30779 #if !STDC_HEADERS && !HAVE_STDLIB_H
30783 /* This mess was copied from the GNU getpagesize.h. */
30784 #if !HAVE_GETPAGESIZE
30785 /* Assume that all systems that can run configure have sys/param.h. */
30786 # if !HAVE_SYS_PARAM_H
30787 # define HAVE_SYS_PARAM_H 1
30790 # ifdef _SC_PAGESIZE
30791 # define getpagesize() sysconf(_SC_PAGESIZE)
30792 # else /* no _SC_PAGESIZE */
30793 # if HAVE_SYS_PARAM_H
30794 # include <sys/param.h>
30795 # ifdef EXEC_PAGESIZE
30796 # define getpagesize() EXEC_PAGESIZE
30797 # else /* no EXEC_PAGESIZE */
30799 # define getpagesize() NBPG * CLSIZE
30802 # endif /* no CLSIZE */
30803 # else /* no NBPG */
30805 # define getpagesize() NBPC
30806 # else /* no NBPC */
30808 # define getpagesize() PAGESIZE
30809 # endif /* PAGESIZE */
30810 # endif /* no NBPC */
30811 # endif /* no NBPG */
30812 # endif /* no EXEC_PAGESIZE */
30813 # else /* no HAVE_SYS_PARAM_H */
30814 # define getpagesize() 8192 /* punt totally */
30815 # endif /* no HAVE_SYS_PARAM_H */
30816 # endif /* no _SC_PAGESIZE */
30818 #endif /* no HAVE_GETPAGESIZE */
30823 char *data, *data2, *data3;
30827 pagesize = getpagesize ();
30829 /* First, make a file with some known garbage in it. */
30830 data = (char *) malloc (pagesize);
30833 for (i = 0; i < pagesize; ++i)
30834 *(data + i) = rand ();
30836 fd = creat ("conftest.mmap", 0600);
30839 if (write (fd, data, pagesize) != pagesize)
30843 /* Next, try to mmap the file at a fixed address which already has
30844 something else allocated at it. If we can, also make sure that
30845 we see the same garbage. */
30846 fd = open ("conftest.mmap", O_RDWR);
30849 data2 = (char *) malloc (2 * pagesize);
30852 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30853 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30854 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30856 for (i = 0; i < pagesize; ++i)
30857 if (*(data + i) != *(data2 + i))
30860 /* Finally, make sure that changes to the mapped area do not
30861 percolate back to the file as seen by read(). (This is a bug on
30862 some variants of i386 svr4.0.) */
30863 for (i = 0; i < pagesize; ++i)
30864 *(data2 + i) = *(data2 + i) + 1;
30865 data3 = (char *) malloc (pagesize);
30868 if (read (fd, data3, pagesize) != pagesize)
30870 for (i = 0; i < pagesize; ++i)
30871 if (*(data + i) != *(data3 + i))
30877 rm -f conftest$ac_exeext
30878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30879 (eval $ac_link) 2>&5
30881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30884 (eval $ac_try) 2>&5
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); }; }; then
30888 ac_cv_func_mmap_fixed_mapped=yes
30890 echo "$as_me: program exited with status $ac_status" >&5
30891 echo "$as_me: failed program was:" >&5
30892 sed 's/^/| /' conftest.$ac_ext >&5
30894 ( exit $ac_status )
30895 ac_cv_func_mmap_fixed_mapped=no
30897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30900 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30901 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30902 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30904 cat >>confdefs.h <<\_ACEOF
30905 #define HAVE_MMAP 1
30909 rm -f conftest.mmap
30912 echo "$as_me:$LINENO: checking whether printf supports %p" >&5
30913 echo $ECHO_N "checking whether printf supports %p... $ECHO_C" >&6
30914 if test "${cvs_cv_func_printf_ptr+set}" = set; then
30915 echo $ECHO_N "(cached) $ECHO_C" >&6
30917 if test "$cross_compiling" = yes; then
30918 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30919 See \`config.log' for more details." >&5
30920 echo "$as_me: error: cannot run test program while cross compiling
30921 See \`config.log' for more details." >&2;}
30922 { (exit 1); exit 1; }; }
30924 cat >conftest.$ac_ext <<_ACEOF
30927 cat confdefs.h >>conftest.$ac_ext
30928 cat >>conftest.$ac_ext <<_ACEOF
30929 /* end confdefs.h. */
30931 /* If printf supports %p, exit 0. */
30937 p1 = &p1; p2 = &p2;
30938 sprintf(buf, "%p", p1);
30939 exit(sscanf(buf, "%p", &p2) != 1 || p2 != p1);
30942 rm -f conftest$ac_exeext
30943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30944 (eval $ac_link) 2>&5
30946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30949 (eval $ac_try) 2>&5
30951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952 (exit $ac_status); }; }; then
30953 cvs_cv_func_printf_ptr=yes
30955 echo "$as_me: program exited with status $ac_status" >&5
30956 echo "$as_me: failed program was:" >&5
30957 sed 's/^/| /' conftest.$ac_ext >&5
30959 ( exit $ac_status )
30960 cvs_cv_func_printf_ptr=no
30962 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30964 rm -f core core.* *.core
30966 echo "$as_me:$LINENO: result: $cvs_cv_func_printf_ptr" >&5
30967 echo "${ECHO_T}$cvs_cv_func_printf_ptr" >&6
30968 if test $cvs_cv_func_printf_ptr = yes; then
30970 cat >>confdefs.h <<\_ACEOF
30971 #define HAVE_PRINTF_PTR 1
30977 # Try to find connect and gethostbyname.
30979 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
30980 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
30981 if test "${ac_cv_lib_nsl_main+set}" = set; then
30982 echo $ECHO_N "(cached) $ECHO_C" >&6
30984 ac_check_lib_save_LIBS=$LIBS
30986 cat >conftest.$ac_ext <<_ACEOF
30989 cat confdefs.h >>conftest.$ac_ext
30990 cat >>conftest.$ac_ext <<_ACEOF
30991 /* end confdefs.h. */
31002 rm -f conftest.$ac_objext conftest$ac_exeext
31003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31004 (eval $ac_link) 2>conftest.er1
31006 grep -v '^ *+' conftest.er1 >conftest.err
31008 cat conftest.err >&5
31009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31010 (exit $ac_status); } &&
31011 { ac_try='test -z "$ac_c_werror_flag"
31012 || test ! -s conftest.err'
31013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31014 (eval $ac_try) 2>&5
31016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017 (exit $ac_status); }; } &&
31018 { ac_try='test -s conftest$ac_exeext'
31019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31020 (eval $ac_try) 2>&5
31022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31023 (exit $ac_status); }; }; then
31024 ac_cv_lib_nsl_main=yes
31026 echo "$as_me: failed program was:" >&5
31027 sed 's/^/| /' conftest.$ac_ext >&5
31029 ac_cv_lib_nsl_main=no
31031 rm -f conftest.err conftest.$ac_objext \
31032 conftest$ac_exeext conftest.$ac_ext
31033 LIBS=$ac_check_lib_save_LIBS
31035 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
31036 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
31037 if test $ac_cv_lib_nsl_main = yes; then
31038 cat >>confdefs.h <<_ACEOF
31039 #define HAVE_LIBNSL 1
31046 echo "$as_me:$LINENO: checking for library containing connect" >&5
31047 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
31048 if test "${ac_cv_search_connect+set}" = set; then
31049 echo $ECHO_N "(cached) $ECHO_C" >&6
31051 ac_func_search_save_LIBS=$LIBS
31052 ac_cv_search_connect=no
31053 cat >conftest.$ac_ext <<_ACEOF
31056 cat confdefs.h >>conftest.$ac_ext
31057 cat >>conftest.$ac_ext <<_ACEOF
31058 /* end confdefs.h. */
31060 /* Override any gcc2 internal prototype to avoid an error. */
31064 /* We use char because int might match the return type of a gcc2
31065 builtin and then its argument prototype would still apply. */
31075 rm -f conftest.$ac_objext conftest$ac_exeext
31076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31077 (eval $ac_link) 2>conftest.er1
31079 grep -v '^ *+' conftest.er1 >conftest.err
31081 cat conftest.err >&5
31082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31083 (exit $ac_status); } &&
31084 { ac_try='test -z "$ac_c_werror_flag"
31085 || test ! -s conftest.err'
31086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31087 (eval $ac_try) 2>&5
31089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090 (exit $ac_status); }; } &&
31091 { ac_try='test -s conftest$ac_exeext'
31092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31093 (eval $ac_try) 2>&5
31095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096 (exit $ac_status); }; }; then
31097 ac_cv_search_connect="none required"
31099 echo "$as_me: failed program was:" >&5
31100 sed 's/^/| /' conftest.$ac_ext >&5
31103 rm -f conftest.err conftest.$ac_objext \
31104 conftest$ac_exeext conftest.$ac_ext
31105 if test "$ac_cv_search_connect" = no; then
31106 for ac_lib in xnet socket inet; do
31107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31108 cat >conftest.$ac_ext <<_ACEOF
31111 cat confdefs.h >>conftest.$ac_ext
31112 cat >>conftest.$ac_ext <<_ACEOF
31113 /* end confdefs.h. */
31115 /* Override any gcc2 internal prototype to avoid an error. */
31119 /* We use char because int might match the return type of a gcc2
31120 builtin and then its argument prototype would still apply. */
31130 rm -f conftest.$ac_objext conftest$ac_exeext
31131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31132 (eval $ac_link) 2>conftest.er1
31134 grep -v '^ *+' conftest.er1 >conftest.err
31136 cat conftest.err >&5
31137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31138 (exit $ac_status); } &&
31139 { ac_try='test -z "$ac_c_werror_flag"
31140 || test ! -s conftest.err'
31141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31142 (eval $ac_try) 2>&5
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); }; } &&
31146 { ac_try='test -s conftest$ac_exeext'
31147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31148 (eval $ac_try) 2>&5
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); }; }; then
31152 ac_cv_search_connect="-l$ac_lib"
31155 echo "$as_me: failed program was:" >&5
31156 sed 's/^/| /' conftest.$ac_ext >&5
31159 rm -f conftest.err conftest.$ac_objext \
31160 conftest$ac_exeext conftest.$ac_ext
31163 LIBS=$ac_func_search_save_LIBS
31165 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
31166 echo "${ECHO_T}$ac_cv_search_connect" >&6
31167 if test "$ac_cv_search_connect" != no; then
31168 test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
31170 cat >>confdefs.h <<\_ACEOF
31171 #define HAVE_CONNECT 1
31176 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
31177 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
31178 if test "${ac_cv_search_gethostbyname+set}" = set; then
31179 echo $ECHO_N "(cached) $ECHO_C" >&6
31181 ac_func_search_save_LIBS=$LIBS
31182 ac_cv_search_gethostbyname=no
31183 cat >conftest.$ac_ext <<_ACEOF
31186 cat confdefs.h >>conftest.$ac_ext
31187 cat >>conftest.$ac_ext <<_ACEOF
31188 /* end confdefs.h. */
31190 /* Override any gcc2 internal prototype to avoid an error. */
31194 /* We use char because int might match the return type of a gcc2
31195 builtin and then its argument prototype would still apply. */
31196 char gethostbyname ();
31205 rm -f conftest.$ac_objext conftest$ac_exeext
31206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31207 (eval $ac_link) 2>conftest.er1
31209 grep -v '^ *+' conftest.er1 >conftest.err
31211 cat conftest.err >&5
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); } &&
31214 { ac_try='test -z "$ac_c_werror_flag"
31215 || test ! -s conftest.err'
31216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31217 (eval $ac_try) 2>&5
31219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220 (exit $ac_status); }; } &&
31221 { ac_try='test -s conftest$ac_exeext'
31222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31223 (eval $ac_try) 2>&5
31225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31226 (exit $ac_status); }; }; then
31227 ac_cv_search_gethostbyname="none required"
31229 echo "$as_me: failed program was:" >&5
31230 sed 's/^/| /' conftest.$ac_ext >&5
31233 rm -f conftest.err conftest.$ac_objext \
31234 conftest$ac_exeext conftest.$ac_ext
31235 if test "$ac_cv_search_gethostbyname" = no; then
31236 for ac_lib in netinet; do
31237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31238 cat >conftest.$ac_ext <<_ACEOF
31241 cat confdefs.h >>conftest.$ac_ext
31242 cat >>conftest.$ac_ext <<_ACEOF
31243 /* end confdefs.h. */
31245 /* Override any gcc2 internal prototype to avoid an error. */
31249 /* We use char because int might match the return type of a gcc2
31250 builtin and then its argument prototype would still apply. */
31251 char gethostbyname ();
31260 rm -f conftest.$ac_objext conftest$ac_exeext
31261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31262 (eval $ac_link) 2>conftest.er1
31264 grep -v '^ *+' conftest.er1 >conftest.err
31266 cat conftest.err >&5
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); } &&
31269 { ac_try='test -z "$ac_c_werror_flag"
31270 || test ! -s conftest.err'
31271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31272 (eval $ac_try) 2>&5
31274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275 (exit $ac_status); }; } &&
31276 { ac_try='test -s conftest$ac_exeext'
31277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31278 (eval $ac_try) 2>&5
31280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281 (exit $ac_status); }; }; then
31282 ac_cv_search_gethostbyname="-l$ac_lib"
31285 echo "$as_me: failed program was:" >&5
31286 sed 's/^/| /' conftest.$ac_ext >&5
31289 rm -f conftest.err conftest.$ac_objext \
31290 conftest$ac_exeext conftest.$ac_ext
31293 LIBS=$ac_func_search_save_LIBS
31295 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
31296 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
31297 if test "$ac_cv_search_gethostbyname" != no; then
31298 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
31303 echo "$as_me:$LINENO: checking for library containing hstrerror" >&5
31304 echo $ECHO_N "checking for library containing hstrerror... $ECHO_C" >&6
31305 if test "${ac_cv_search_hstrerror+set}" = set; then
31306 echo $ECHO_N "(cached) $ECHO_C" >&6
31308 ac_func_search_save_LIBS=$LIBS
31309 ac_cv_search_hstrerror=no
31310 cat >conftest.$ac_ext <<_ACEOF
31313 cat confdefs.h >>conftest.$ac_ext
31314 cat >>conftest.$ac_ext <<_ACEOF
31315 /* end confdefs.h. */
31317 /* Override any gcc2 internal prototype to avoid an error. */
31321 /* We use char because int might match the return type of a gcc2
31322 builtin and then its argument prototype would still apply. */
31332 rm -f conftest.$ac_objext conftest$ac_exeext
31333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31334 (eval $ac_link) 2>conftest.er1
31336 grep -v '^ *+' conftest.er1 >conftest.err
31338 cat conftest.err >&5
31339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31340 (exit $ac_status); } &&
31341 { ac_try='test -z "$ac_c_werror_flag"
31342 || test ! -s conftest.err'
31343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31344 (eval $ac_try) 2>&5
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); }; } &&
31348 { ac_try='test -s conftest$ac_exeext'
31349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31350 (eval $ac_try) 2>&5
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); }; }; then
31354 ac_cv_search_hstrerror="none required"
31356 echo "$as_me: failed program was:" >&5
31357 sed 's/^/| /' conftest.$ac_ext >&5
31360 rm -f conftest.err conftest.$ac_objext \
31361 conftest$ac_exeext conftest.$ac_ext
31362 if test "$ac_cv_search_hstrerror" = no; then
31363 for ac_lib in resolv; do
31364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31365 cat >conftest.$ac_ext <<_ACEOF
31368 cat confdefs.h >>conftest.$ac_ext
31369 cat >>conftest.$ac_ext <<_ACEOF
31370 /* end confdefs.h. */
31372 /* Override any gcc2 internal prototype to avoid an error. */
31376 /* We use char because int might match the return type of a gcc2
31377 builtin and then its argument prototype would still apply. */
31387 rm -f conftest.$ac_objext conftest$ac_exeext
31388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31389 (eval $ac_link) 2>conftest.er1
31391 grep -v '^ *+' conftest.er1 >conftest.err
31393 cat conftest.err >&5
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); } &&
31396 { ac_try='test -z "$ac_c_werror_flag"
31397 || test ! -s conftest.err'
31398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31399 (eval $ac_try) 2>&5
31401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402 (exit $ac_status); }; } &&
31403 { ac_try='test -s conftest$ac_exeext'
31404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31405 (eval $ac_try) 2>&5
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 (exit $ac_status); }; }; then
31409 ac_cv_search_hstrerror="-l$ac_lib"
31412 echo "$as_me: failed program was:" >&5
31413 sed 's/^/| /' conftest.$ac_ext >&5
31416 rm -f conftest.err conftest.$ac_objext \
31417 conftest$ac_exeext conftest.$ac_ext
31420 LIBS=$ac_func_search_save_LIBS
31422 echo "$as_me:$LINENO: result: $ac_cv_search_hstrerror" >&5
31423 echo "${ECHO_T}$ac_cv_search_hstrerror" >&6
31424 if test "$ac_cv_search_hstrerror" != no; then
31425 test "$ac_cv_search_hstrerror" = "none required" || LIBS="$ac_cv_search_hstrerror $LIBS"
31427 cat >>confdefs.h <<\_ACEOF
31428 #define HAVE_HSTRERROR 1
31441 # Check whether --with-krb4 or --without-krb4 was given.
31442 if test "${with_krb4+set}" = set; then
31443 withval="$with_krb4"
31445 fi; echo "$as_me:$LINENO: checking for KRB4 in $KRB4" >&5
31446 echo $ECHO_N "checking for KRB4 in $KRB4... $ECHO_C" >&6
31447 echo "$as_me:$LINENO: result: " >&5
31448 echo "${ECHO_T}" >&6
31452 echo "$as_me:$LINENO: checking for krb.h" >&5
31453 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
31454 if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then
31455 hold_cflags=$CFLAGS
31456 CFLAGS="$CFLAGS -I$KRB4/include"
31457 cat >conftest.$ac_ext <<_ACEOF
31460 cat confdefs.h >>conftest.$ac_ext
31461 cat >>conftest.$ac_ext <<_ACEOF
31462 /* end confdefs.h. */
31472 rm -f conftest.$ac_objext conftest$ac_exeext
31473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31474 (eval $ac_link) 2>conftest.er1
31476 grep -v '^ *+' conftest.er1 >conftest.err
31478 cat conftest.err >&5
31479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480 (exit $ac_status); } &&
31481 { ac_try='test -z "$ac_c_werror_flag"
31482 || test ! -s conftest.err'
31483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31484 (eval $ac_try) 2>&5
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); }; } &&
31488 { ac_try='test -s conftest$ac_exeext'
31489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31490 (eval $ac_try) 2>&5
31492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493 (exit $ac_status); }; }; then
31494 krb_h=yes krb_incdir=$KRB4/include
31496 echo "$as_me: failed program was:" >&5
31497 sed 's/^/| /' conftest.$ac_ext >&5
31499 CFLAGS=$hold_cflags
31500 cat >conftest.$ac_ext <<_ACEOF
31503 cat confdefs.h >>conftest.$ac_ext
31504 cat >>conftest.$ac_ext <<_ACEOF
31505 /* end confdefs.h. */
31515 rm -f conftest.$ac_objext conftest$ac_exeext
31516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31517 (eval $ac_link) 2>conftest.er1
31519 grep -v '^ *+' conftest.er1 >conftest.err
31521 cat conftest.err >&5
31522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523 (exit $ac_status); } &&
31524 { ac_try='test -z "$ac_c_werror_flag"
31525 || test ! -s conftest.err'
31526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31527 (eval $ac_try) 2>&5
31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530 (exit $ac_status); }; } &&
31531 { ac_try='test -s conftest$ac_exeext'
31532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31533 (eval $ac_try) 2>&5
31535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31536 (exit $ac_status); }; }; then
31537 krb_h=yes krb_incdir=
31539 echo "$as_me: failed program was:" >&5
31540 sed 's/^/| /' conftest.$ac_ext >&5
31543 rm -f conftest.err conftest.$ac_objext \
31544 conftest$ac_exeext conftest.$ac_ext
31546 rm -f conftest.err conftest.$ac_objext \
31547 conftest$ac_exeext conftest.$ac_ext
31548 CFLAGS=$hold_cflags
31550 cat >conftest.$ac_ext <<_ACEOF
31553 cat confdefs.h >>conftest.$ac_ext
31554 cat >>conftest.$ac_ext <<_ACEOF
31555 /* end confdefs.h. */
31565 rm -f conftest.$ac_objext conftest$ac_exeext
31566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31567 (eval $ac_link) 2>conftest.er1
31569 grep -v '^ *+' conftest.er1 >conftest.err
31571 cat conftest.err >&5
31572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573 (exit $ac_status); } &&
31574 { ac_try='test -z "$ac_c_werror_flag"
31575 || test ! -s conftest.err'
31576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31577 (eval $ac_try) 2>&5
31579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31580 (exit $ac_status); }; } &&
31581 { ac_try='test -s conftest$ac_exeext'
31582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31583 (eval $ac_try) 2>&5
31585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586 (exit $ac_status); }; }; then
31587 krb_h=yes krb_incdir=
31589 echo "$as_me: failed program was:" >&5
31590 sed 's/^/| /' conftest.$ac_ext >&5
31593 rm -f conftest.err conftest.$ac_objext \
31594 conftest$ac_exeext conftest.$ac_ext
31596 if test -z "$krb_h"; then
31597 cat >conftest.$ac_ext <<_ACEOF
31600 cat confdefs.h >>conftest.$ac_ext
31601 cat >>conftest.$ac_ext <<_ACEOF
31602 /* end confdefs.h. */
31612 rm -f conftest.$ac_objext conftest$ac_exeext
31613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31614 (eval $ac_link) 2>conftest.er1
31616 grep -v '^ *+' conftest.er1 >conftest.err
31618 cat conftest.err >&5
31619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620 (exit $ac_status); } &&
31621 { ac_try='test -z "$ac_c_werror_flag"
31622 || test ! -s conftest.err'
31623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31624 (eval $ac_try) 2>&5
31626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627 (exit $ac_status); }; } &&
31628 { ac_try='test -s conftest$ac_exeext'
31629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31630 (eval $ac_try) 2>&5
31632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31633 (exit $ac_status); }; }; then
31634 krb_h=yes krb_incdir=
31636 echo "$as_me: failed program was:" >&5
31637 sed 's/^/| /' conftest.$ac_ext >&5
31639 if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then
31640 hold_cflags=$CFLAGS
31641 CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV"
31642 cat >conftest.$ac_ext <<_ACEOF
31645 cat confdefs.h >>conftest.$ac_ext
31646 cat >>conftest.$ac_ext <<_ACEOF
31647 /* end confdefs.h. */
31657 rm -f conftest.$ac_objext conftest$ac_exeext
31658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31659 (eval $ac_link) 2>conftest.er1
31661 grep -v '^ *+' conftest.er1 >conftest.err
31663 cat conftest.err >&5
31664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665 (exit $ac_status); } &&
31666 { ac_try='test -z "$ac_c_werror_flag"
31667 || test ! -s conftest.err'
31668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31669 (eval $ac_try) 2>&5
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672 (exit $ac_status); }; } &&
31673 { ac_try='test -s conftest$ac_exeext'
31674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31675 (eval $ac_try) 2>&5
31677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678 (exit $ac_status); }; }; then
31679 krb_h=yes krb_incdir=$KRB4/include/kerberosIV
31681 echo "$as_me: failed program was:" >&5
31682 sed 's/^/| /' conftest.$ac_ext >&5
31685 rm -f conftest.err conftest.$ac_objext \
31686 conftest$ac_exeext conftest.$ac_ext
31687 CFLAGS=$hold_cflags
31690 rm -f conftest.err conftest.$ac_objext \
31691 conftest$ac_exeext conftest.$ac_ext
31693 echo "$as_me:$LINENO: result: $krb_h" >&5
31694 echo "${ECHO_T}$krb_h" >&6
31696 if test -n "$krb_h"; then
31698 if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then
31699 hold_ldflags=$LDFLAGS
31700 LDFLAGS="-L${KRB4}/lib $LDFLAGS"
31701 echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
31702 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
31703 if test "${ac_cv_lib_krb_printf+set}" = set; then
31704 echo $ECHO_N "(cached) $ECHO_C" >&6
31706 ac_check_lib_save_LIBS=$LIBS
31708 cat >conftest.$ac_ext <<_ACEOF
31711 cat confdefs.h >>conftest.$ac_ext
31712 cat >>conftest.$ac_ext <<_ACEOF
31713 /* end confdefs.h. */
31715 /* Override any gcc2 internal prototype to avoid an error. */
31719 /* We use char because int might match the return type of a gcc2
31720 builtin and then its argument prototype would still apply. */
31730 rm -f conftest.$ac_objext conftest$ac_exeext
31731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31732 (eval $ac_link) 2>conftest.er1
31734 grep -v '^ *+' conftest.er1 >conftest.err
31736 cat conftest.err >&5
31737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738 (exit $ac_status); } &&
31739 { ac_try='test -z "$ac_c_werror_flag"
31740 || test ! -s conftest.err'
31741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31742 (eval $ac_try) 2>&5
31744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31745 (exit $ac_status); }; } &&
31746 { ac_try='test -s conftest$ac_exeext'
31747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31748 (eval $ac_try) 2>&5
31750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751 (exit $ac_status); }; }; then
31752 ac_cv_lib_krb_printf=yes
31754 echo "$as_me: failed program was:" >&5
31755 sed 's/^/| /' conftest.$ac_ext >&5
31757 ac_cv_lib_krb_printf=no
31759 rm -f conftest.err conftest.$ac_objext \
31760 conftest$ac_exeext conftest.$ac_ext
31761 LIBS=$ac_check_lib_save_LIBS
31763 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
31764 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
31765 if test $ac_cv_lib_krb_printf = yes; then
31766 krb_lib=yes krb_libdir=${KRB4}/lib
31768 LDFLAGS=$hold_ldflags
31769 # Using open here instead of printf so we don't
31770 # get confused by the cached value for printf from above.
31771 echo "$as_me:$LINENO: checking for open in -lkrb" >&5
31772 echo $ECHO_N "checking for open in -lkrb... $ECHO_C" >&6
31773 if test "${ac_cv_lib_krb_open+set}" = set; then
31774 echo $ECHO_N "(cached) $ECHO_C" >&6
31776 ac_check_lib_save_LIBS=$LIBS
31778 cat >conftest.$ac_ext <<_ACEOF
31781 cat confdefs.h >>conftest.$ac_ext
31782 cat >>conftest.$ac_ext <<_ACEOF
31783 /* end confdefs.h. */
31785 /* Override any gcc2 internal prototype to avoid an error. */
31789 /* We use char because int might match the return type of a gcc2
31790 builtin and then its argument prototype would still apply. */
31800 rm -f conftest.$ac_objext conftest$ac_exeext
31801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31802 (eval $ac_link) 2>conftest.er1
31804 grep -v '^ *+' conftest.er1 >conftest.err
31806 cat conftest.err >&5
31807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808 (exit $ac_status); } &&
31809 { ac_try='test -z "$ac_c_werror_flag"
31810 || test ! -s conftest.err'
31811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31812 (eval $ac_try) 2>&5
31814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815 (exit $ac_status); }; } &&
31816 { ac_try='test -s conftest$ac_exeext'
31817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31818 (eval $ac_try) 2>&5
31820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821 (exit $ac_status); }; }; then
31822 ac_cv_lib_krb_open=yes
31824 echo "$as_me: failed program was:" >&5
31825 sed 's/^/| /' conftest.$ac_ext >&5
31827 ac_cv_lib_krb_open=no
31829 rm -f conftest.err conftest.$ac_objext \
31830 conftest$ac_exeext conftest.$ac_ext
31831 LIBS=$ac_check_lib_save_LIBS
31833 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_open" >&5
31834 echo "${ECHO_T}$ac_cv_lib_krb_open" >&6
31835 if test $ac_cv_lib_krb_open = yes; then
31836 krb_lib=yes krb_libdir=
31841 LDFLAGS=$hold_ldflags
31843 echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
31844 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
31845 if test "${ac_cv_lib_krb_printf+set}" = set; then
31846 echo $ECHO_N "(cached) $ECHO_C" >&6
31848 ac_check_lib_save_LIBS=$LIBS
31850 cat >conftest.$ac_ext <<_ACEOF
31853 cat confdefs.h >>conftest.$ac_ext
31854 cat >>conftest.$ac_ext <<_ACEOF
31855 /* end confdefs.h. */
31857 /* Override any gcc2 internal prototype to avoid an error. */
31861 /* We use char because int might match the return type of a gcc2
31862 builtin and then its argument prototype would still apply. */
31872 rm -f conftest.$ac_objext conftest$ac_exeext
31873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31874 (eval $ac_link) 2>conftest.er1
31876 grep -v '^ *+' conftest.er1 >conftest.err
31878 cat conftest.err >&5
31879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880 (exit $ac_status); } &&
31881 { ac_try='test -z "$ac_c_werror_flag"
31882 || test ! -s conftest.err'
31883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31884 (eval $ac_try) 2>&5
31886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887 (exit $ac_status); }; } &&
31888 { ac_try='test -s conftest$ac_exeext'
31889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31890 (eval $ac_try) 2>&5
31892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893 (exit $ac_status); }; }; then
31894 ac_cv_lib_krb_printf=yes
31896 echo "$as_me: failed program was:" >&5
31897 sed 's/^/| /' conftest.$ac_ext >&5
31899 ac_cv_lib_krb_printf=no
31901 rm -f conftest.err conftest.$ac_objext \
31902 conftest$ac_exeext conftest.$ac_ext
31903 LIBS=$ac_check_lib_save_LIBS
31905 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
31906 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
31907 if test $ac_cv_lib_krb_printf = yes; then
31908 krb_lib=yes krb_libdir=
31911 echo "$as_me:$LINENO: checking for krb_recvauth" >&5
31912 echo $ECHO_N "checking for krb_recvauth... $ECHO_C" >&6
31913 if test "${ac_cv_func_krb_recvauth+set}" = set; then
31914 echo $ECHO_N "(cached) $ECHO_C" >&6
31916 cat >conftest.$ac_ext <<_ACEOF
31919 cat confdefs.h >>conftest.$ac_ext
31920 cat >>conftest.$ac_ext <<_ACEOF
31921 /* end confdefs.h. */
31922 /* Define krb_recvauth to an innocuous variant, in case <limits.h> declares krb_recvauth.
31923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31924 #define krb_recvauth innocuous_krb_recvauth
31926 /* System header to define __stub macros and hopefully few prototypes,
31927 which can conflict with char krb_recvauth (); below.
31928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31929 <limits.h> exists even on freestanding compilers. */
31932 # include <limits.h>
31934 # include <assert.h>
31937 #undef krb_recvauth
31939 /* Override any gcc2 internal prototype to avoid an error. */
31944 /* We use char because int might match the return type of a gcc2
31945 builtin and then its argument prototype would still apply. */
31946 char krb_recvauth ();
31947 /* The GNU C library defines this for functions which it implements
31948 to always fail with ENOSYS. Some functions are actually named
31949 something starting with __ and the normal name is an alias. */
31950 #if defined (__stub_krb_recvauth) || defined (__stub___krb_recvauth)
31953 char (*f) () = krb_recvauth;
31962 return f != krb_recvauth;
31967 rm -f conftest.$ac_objext conftest$ac_exeext
31968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31969 (eval $ac_link) 2>conftest.er1
31971 grep -v '^ *+' conftest.er1 >conftest.err
31973 cat conftest.err >&5
31974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31975 (exit $ac_status); } &&
31976 { ac_try='test -z "$ac_c_werror_flag"
31977 || test ! -s conftest.err'
31978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31979 (eval $ac_try) 2>&5
31981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982 (exit $ac_status); }; } &&
31983 { ac_try='test -s conftest$ac_exeext'
31984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31985 (eval $ac_try) 2>&5
31987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988 (exit $ac_status); }; }; then
31989 ac_cv_func_krb_recvauth=yes
31991 echo "$as_me: failed program was:" >&5
31992 sed 's/^/| /' conftest.$ac_ext >&5
31994 ac_cv_func_krb_recvauth=no
31996 rm -f conftest.err conftest.$ac_objext \
31997 conftest$ac_exeext conftest.$ac_ext
31999 echo "$as_me:$LINENO: result: $ac_cv_func_krb_recvauth" >&5
32000 echo "${ECHO_T}$ac_cv_func_krb_recvauth" >&6
32001 if test $ac_cv_func_krb_recvauth = yes; then
32002 krb_lib=yes krb_libdir=
32006 if test -n "$krb_lib"; then
32008 cat >>confdefs.h <<\_ACEOF
32009 #define HAVE_KERBEROS 1
32012 cvs_client_objects="$cvs_client_objects kerberos4-client.o"
32013 test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}"
32014 # Put -L${krb_libdir} in LDFLAGS temporarily so that it appears before
32015 # -ldes in the command line. Don't do it permanently so that we honor
32016 # the user's setting for LDFLAGS
32017 hold_ldflags=$LDFLAGS
32018 test -n "${krb_libdir}" && LDFLAGS="$LDFLAGS -L${krb_libdir}"
32019 echo "$as_me:$LINENO: checking for printf in -ldes" >&5
32020 echo $ECHO_N "checking for printf in -ldes... $ECHO_C" >&6
32021 if test "${ac_cv_lib_des_printf+set}" = set; then
32022 echo $ECHO_N "(cached) $ECHO_C" >&6
32024 ac_check_lib_save_LIBS=$LIBS
32026 cat >conftest.$ac_ext <<_ACEOF
32029 cat confdefs.h >>conftest.$ac_ext
32030 cat >>conftest.$ac_ext <<_ACEOF
32031 /* end confdefs.h. */
32033 /* Override any gcc2 internal prototype to avoid an error. */
32037 /* We use char because int might match the return type of a gcc2
32038 builtin and then its argument prototype would still apply. */
32048 rm -f conftest.$ac_objext conftest$ac_exeext
32049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32050 (eval $ac_link) 2>conftest.er1
32052 grep -v '^ *+' conftest.er1 >conftest.err
32054 cat conftest.err >&5
32055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056 (exit $ac_status); } &&
32057 { ac_try='test -z "$ac_c_werror_flag"
32058 || test ! -s conftest.err'
32059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32060 (eval $ac_try) 2>&5
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); }; } &&
32064 { ac_try='test -s conftest$ac_exeext'
32065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32066 (eval $ac_try) 2>&5
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); }; }; then
32070 ac_cv_lib_des_printf=yes
32072 echo "$as_me: failed program was:" >&5
32073 sed 's/^/| /' conftest.$ac_ext >&5
32075 ac_cv_lib_des_printf=no
32077 rm -f conftest.err conftest.$ac_objext \
32078 conftest$ac_exeext conftest.$ac_ext
32079 LIBS=$ac_check_lib_save_LIBS
32081 echo "$as_me:$LINENO: result: $ac_cv_lib_des_printf" >&5
32082 echo "${ECHO_T}$ac_cv_lib_des_printf" >&6
32083 if test $ac_cv_lib_des_printf = yes; then
32084 LIBS="${LIBS} -ldes"
32088 echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb" >&5
32089 echo $ECHO_N "checking for krb_recvauth in -lkrb... $ECHO_C" >&6
32090 if test "${ac_cv_lib_krb_krb_recvauth+set}" = set; then
32091 echo $ECHO_N "(cached) $ECHO_C" >&6
32093 ac_check_lib_save_LIBS=$LIBS
32095 cat >conftest.$ac_ext <<_ACEOF
32098 cat confdefs.h >>conftest.$ac_ext
32099 cat >>conftest.$ac_ext <<_ACEOF
32100 /* end confdefs.h. */
32102 /* Override any gcc2 internal prototype to avoid an error. */
32106 /* We use char because int might match the return type of a gcc2
32107 builtin and then its argument prototype would still apply. */
32108 char krb_recvauth ();
32117 rm -f conftest.$ac_objext conftest$ac_exeext
32118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32119 (eval $ac_link) 2>conftest.er1
32121 grep -v '^ *+' conftest.er1 >conftest.err
32123 cat conftest.err >&5
32124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125 (exit $ac_status); } &&
32126 { ac_try='test -z "$ac_c_werror_flag"
32127 || test ! -s conftest.err'
32128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32129 (eval $ac_try) 2>&5
32131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132 (exit $ac_status); }; } &&
32133 { ac_try='test -s conftest$ac_exeext'
32134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32135 (eval $ac_try) 2>&5
32137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32138 (exit $ac_status); }; }; then
32139 ac_cv_lib_krb_krb_recvauth=yes
32141 echo "$as_me: failed program was:" >&5
32142 sed 's/^/| /' conftest.$ac_ext >&5
32144 ac_cv_lib_krb_krb_recvauth=no
32146 rm -f conftest.err conftest.$ac_objext \
32147 conftest$ac_exeext conftest.$ac_ext
32148 LIBS=$ac_check_lib_save_LIBS
32150 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_recvauth" >&5
32151 echo "${ECHO_T}$ac_cv_lib_krb_krb_recvauth" >&6
32152 if test $ac_cv_lib_krb_krb_recvauth = yes; then
32153 cat >>confdefs.h <<_ACEOF
32154 #define HAVE_LIBKRB 1
32162 echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb4" >&5
32163 echo $ECHO_N "checking for krb_recvauth in -lkrb4... $ECHO_C" >&6
32164 if test "${ac_cv_lib_krb4_krb_recvauth+set}" = set; then
32165 echo $ECHO_N "(cached) $ECHO_C" >&6
32167 ac_check_lib_save_LIBS=$LIBS
32168 LIBS="-lkrb4 $LIBS"
32169 cat >conftest.$ac_ext <<_ACEOF
32172 cat confdefs.h >>conftest.$ac_ext
32173 cat >>conftest.$ac_ext <<_ACEOF
32174 /* end confdefs.h. */
32176 /* Override any gcc2 internal prototype to avoid an error. */
32180 /* We use char because int might match the return type of a gcc2
32181 builtin and then its argument prototype would still apply. */
32182 char krb_recvauth ();
32191 rm -f conftest.$ac_objext conftest$ac_exeext
32192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32193 (eval $ac_link) 2>conftest.er1
32195 grep -v '^ *+' conftest.er1 >conftest.err
32197 cat conftest.err >&5
32198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32199 (exit $ac_status); } &&
32200 { ac_try='test -z "$ac_c_werror_flag"
32201 || test ! -s conftest.err'
32202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32203 (eval $ac_try) 2>&5
32205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206 (exit $ac_status); }; } &&
32207 { ac_try='test -s conftest$ac_exeext'
32208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32209 (eval $ac_try) 2>&5
32211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212 (exit $ac_status); }; }; then
32213 ac_cv_lib_krb4_krb_recvauth=yes
32215 echo "$as_me: failed program was:" >&5
32216 sed 's/^/| /' conftest.$ac_ext >&5
32218 ac_cv_lib_krb4_krb_recvauth=no
32220 rm -f conftest.err conftest.$ac_objext \
32221 conftest$ac_exeext conftest.$ac_ext
32222 LIBS=$ac_check_lib_save_LIBS
32224 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_recvauth" >&5
32225 echo "${ECHO_T}$ac_cv_lib_krb4_krb_recvauth" >&6
32226 if test $ac_cv_lib_krb4_krb_recvauth = yes; then
32227 cat >>confdefs.h <<_ACEOF
32228 #define HAVE_LIBKRB4 1
32231 LIBS="-lkrb4 $LIBS"
32235 LDFLAGS=$hold_ldflags
32236 if test -n "$krb_incdir"; then
32237 CPPFLAGS="$CPPFLAGS -I$krb_incdir"
32242 for ac_func in krb_get_err_text
32244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32245 echo "$as_me:$LINENO: checking for $ac_func" >&5
32246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32247 if eval "test \"\${$as_ac_var+set}\" = set"; then
32248 echo $ECHO_N "(cached) $ECHO_C" >&6
32250 cat >conftest.$ac_ext <<_ACEOF
32253 cat confdefs.h >>conftest.$ac_ext
32254 cat >>conftest.$ac_ext <<_ACEOF
32255 /* end confdefs.h. */
32256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32258 #define $ac_func innocuous_$ac_func
32260 /* System header to define __stub macros and hopefully few prototypes,
32261 which can conflict with char $ac_func (); below.
32262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32263 <limits.h> exists even on freestanding compilers. */
32266 # include <limits.h>
32268 # include <assert.h>
32273 /* Override any gcc2 internal prototype to avoid an error. */
32278 /* We use char because int might match the return type of a gcc2
32279 builtin and then its argument prototype would still apply. */
32281 /* The GNU C library defines this for functions which it implements
32282 to always fail with ENOSYS. Some functions are actually named
32283 something starting with __ and the normal name is an alias. */
32284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32287 char (*f) () = $ac_func;
32296 return f != $ac_func;
32301 rm -f conftest.$ac_objext conftest$ac_exeext
32302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32303 (eval $ac_link) 2>conftest.er1
32305 grep -v '^ *+' conftest.er1 >conftest.err
32307 cat conftest.err >&5
32308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); } &&
32310 { ac_try='test -z "$ac_c_werror_flag"
32311 || test ! -s conftest.err'
32312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32313 (eval $ac_try) 2>&5
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); }; } &&
32317 { ac_try='test -s conftest$ac_exeext'
32318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32319 (eval $ac_try) 2>&5
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; }; then
32323 eval "$as_ac_var=yes"
32325 echo "$as_me: failed program was:" >&5
32326 sed 's/^/| /' conftest.$ac_ext >&5
32328 eval "$as_ac_var=no"
32330 rm -f conftest.err conftest.$ac_objext \
32331 conftest$ac_exeext conftest.$ac_ext
32333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32334 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32335 if test `eval echo '${'$as_ac_var'}'` = yes; then
32336 cat >>confdefs.h <<_ACEOF
32337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32347 # Use --with-gssapi[=DIR] to enable GSSAPI support.
32349 # defaults to enabled with DIR in default list below
32351 # Search for /SUNHEA/ and read the comments about this default below.
32354 # Check whether --with-gssapi or --without-gssapi was given.
32355 if test "${with_gssapi+set}" = set; then
32356 withval="$with_gssapi"
32362 # Try to locate a GSSAPI installation if no location was specified, assuming
32363 # GSSAPI was enabled (the default).
32365 if test -n "$acx_gssapi_cv_gssapi"; then
32366 # Granted, this is a slightly ugly way to print this info, but the
32367 # AC_CHECK_HEADER used in the search for a GSSAPI installation makes using
32368 # AC_CACHE_CHECK worse
32369 echo "$as_me:$LINENO: checking for GSSAPI" >&5
32370 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
32372 if test "${acx_gssapi_cv_gssapi+set}" = set; then
32373 echo $ECHO_N "(cached) $ECHO_C" >&6
32376 if test x$with_gssapi = xyes; then
32377 # --with but no location specified
32378 # assume a gssapi.h or gssapi/gssapi.h locates our install.
32380 # This isn't always strictly true. For instance Solaris 7's SUNHEA (header)
32381 # package installs gssapi.h whether or not the necessary libraries are
32382 # installed. I'm still not sure whether to consider this a bug. The long
32383 # way around is to not consider GSSPAI installed unless gss_import_name is
32384 # found, but that brings up a lot of other hassles, like continuing to let
32385 # gcc & ld generate the error messages when the user uses --with-gssapi=dir
32386 # as a debugging aid. The short way around is to disable GSSAPI by default,
32387 # but I think Sun users have been faced with this for awhile and I haven't
32388 # heard many complaints.
32389 acx_gssapi_save_CPPFLAGS=$CPPFLAGS
32390 for acx_gssapi_cv_gssapi in yes /usr/kerberos /usr/cygnus/kerbnet no; do
32391 if test x$acx_gssapi_cv_gssapi = xno; then
32394 if test x$acx_gssapi_cv_gssapi = xyes; then
32395 echo "$as_me:$LINENO: checking for GSSAPI" >&5
32396 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
32397 echo "$as_me:$LINENO: result: " >&5
32398 echo "${ECHO_T}" >&6
32400 CPPFLAGS="$acx_gssapi_save_CPPFLAGS -I$acx_gssapi_cv_gssapi/include"
32401 echo "$as_me:$LINENO: checking for GSSAPI in $acx_gssapi_cv_gssapi" >&5
32402 echo $ECHO_N "checking for GSSAPI in $acx_gssapi_cv_gssapi... $ECHO_C" >&6
32403 echo "$as_me:$LINENO: result: " >&5
32404 echo "${ECHO_T}" >&6
32406 unset ac_cv_header_gssapi_h
32407 unset ac_cv_header_gssapi_gssapi_h
32408 unset ac_cv_header_krb5_h
32412 for ac_header in gssapi.h gssapi/gssapi.h krb5.h
32414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32416 echo "$as_me:$LINENO: checking for $ac_header" >&5
32417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32419 echo $ECHO_N "(cached) $ECHO_C" >&6
32421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32424 # Is the header compilable?
32425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32427 cat >conftest.$ac_ext <<_ACEOF
32430 cat confdefs.h >>conftest.$ac_ext
32431 cat >>conftest.$ac_ext <<_ACEOF
32432 /* end confdefs.h. */
32433 $ac_includes_default
32434 #include <$ac_header>
32436 rm -f conftest.$ac_objext
32437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32438 (eval $ac_compile) 2>conftest.er1
32440 grep -v '^ *+' conftest.er1 >conftest.err
32442 cat conftest.err >&5
32443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444 (exit $ac_status); } &&
32445 { ac_try='test -z "$ac_c_werror_flag"
32446 || test ! -s conftest.err'
32447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32448 (eval $ac_try) 2>&5
32450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451 (exit $ac_status); }; } &&
32452 { ac_try='test -s conftest.$ac_objext'
32453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32454 (eval $ac_try) 2>&5
32456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457 (exit $ac_status); }; }; then
32458 ac_header_compiler=yes
32460 echo "$as_me: failed program was:" >&5
32461 sed 's/^/| /' conftest.$ac_ext >&5
32463 ac_header_compiler=no
32465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32467 echo "${ECHO_T}$ac_header_compiler" >&6
32469 # Is the header present?
32470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32472 cat >conftest.$ac_ext <<_ACEOF
32475 cat confdefs.h >>conftest.$ac_ext
32476 cat >>conftest.$ac_ext <<_ACEOF
32477 /* end confdefs.h. */
32478 #include <$ac_header>
32480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32483 grep -v '^ *+' conftest.er1 >conftest.err
32485 cat conftest.err >&5
32486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487 (exit $ac_status); } >/dev/null; then
32488 if test -s conftest.err; then
32489 ac_cpp_err=$ac_c_preproc_warn_flag
32490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32497 if test -z "$ac_cpp_err"; then
32498 ac_header_preproc=yes
32500 echo "$as_me: failed program was:" >&5
32501 sed 's/^/| /' conftest.$ac_ext >&5
32503 ac_header_preproc=no
32505 rm -f conftest.err conftest.$ac_ext
32506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32507 echo "${ECHO_T}$ac_header_preproc" >&6
32509 # So? What about this header?
32510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32516 ac_header_preproc=yes
32519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32533 ## ------------------------------ ##
32534 ## Report this to bug-cvs@gnu.org ##
32535 ## ------------------------------ ##
32538 sed "s/^/$as_me: WARNING: /" >&2
32541 echo "$as_me:$LINENO: checking for $ac_header" >&5
32542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32544 echo $ECHO_N "(cached) $ECHO_C" >&6
32546 eval "$as_ac_Header=\$ac_header_preproc"
32548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32553 cat >>confdefs.h <<_ACEOF
32554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32561 if (test "$ac_cv_header_gssapi_h" = yes ||
32562 test "$ac_cv_header_gssapi_gssapi_h" = yes) &&
32563 test "$ac_cv_header_krb5_h" = yes; then
32567 CPPFLAGS=$acx_gssapi_save_CPPFLAGS
32569 acx_gssapi_cv_gssapi=$with_gssapi
32571 echo "$as_me:$LINENO: checking for GSSAPI" >&5
32572 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
32575 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gssapi" >&5
32576 echo "${ECHO_T}$acx_gssapi_cv_gssapi" >&6
32579 # Set up GSSAPI includes for later use. We don't bother to check for
32580 # $acx_gssapi_cv_gssapi=no here since that will be caught later.
32582 if test x$acx_gssapi_cv_gssapi = xyes; then
32583 # no special includes necessary
32586 # GSSAPI at $acx_gssapi_cv_gssapi (could be 'no')
32587 GSSAPI_INCLUDES=" -I$acx_gssapi_cv_gssapi/include"
32591 # Get the rest of the information CVS needs to compile with GSSAPI support
32593 if test x$acx_gssapi_cv_gssapi != xno; then
32594 # define HAVE_GSSAPI and set up the includes
32596 cat >>confdefs.h <<\_ACEOF
32597 #define HAVE_GSSAPI
32600 CPPFLAGS=$CPPFLAGS$GSSAPI_INCLUDES
32602 cvs_client_objects="$cvs_client_objects gssapi-client.o"
32604 # locate any other headers
32609 for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h krb5.h
32611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32613 echo "$as_me:$LINENO: checking for $ac_header" >&5
32614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32616 echo $ECHO_N "(cached) $ECHO_C" >&6
32618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32621 # Is the header compilable?
32622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32624 cat >conftest.$ac_ext <<_ACEOF
32627 cat confdefs.h >>conftest.$ac_ext
32628 cat >>conftest.$ac_ext <<_ACEOF
32629 /* end confdefs.h. */
32630 $ac_includes_default
32631 #include <$ac_header>
32633 rm -f conftest.$ac_objext
32634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32635 (eval $ac_compile) 2>conftest.er1
32637 grep -v '^ *+' conftest.er1 >conftest.err
32639 cat conftest.err >&5
32640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641 (exit $ac_status); } &&
32642 { ac_try='test -z "$ac_c_werror_flag"
32643 || test ! -s conftest.err'
32644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32645 (eval $ac_try) 2>&5
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); }; } &&
32649 { ac_try='test -s conftest.$ac_objext'
32650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32651 (eval $ac_try) 2>&5
32653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654 (exit $ac_status); }; }; then
32655 ac_header_compiler=yes
32657 echo "$as_me: failed program was:" >&5
32658 sed 's/^/| /' conftest.$ac_ext >&5
32660 ac_header_compiler=no
32662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32664 echo "${ECHO_T}$ac_header_compiler" >&6
32666 # Is the header present?
32667 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32669 cat >conftest.$ac_ext <<_ACEOF
32672 cat confdefs.h >>conftest.$ac_ext
32673 cat >>conftest.$ac_ext <<_ACEOF
32674 /* end confdefs.h. */
32675 #include <$ac_header>
32677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32680 grep -v '^ *+' conftest.er1 >conftest.err
32682 cat conftest.err >&5
32683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684 (exit $ac_status); } >/dev/null; then
32685 if test -s conftest.err; then
32686 ac_cpp_err=$ac_c_preproc_warn_flag
32687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32694 if test -z "$ac_cpp_err"; then
32695 ac_header_preproc=yes
32697 echo "$as_me: failed program was:" >&5
32698 sed 's/^/| /' conftest.$ac_ext >&5
32700 ac_header_preproc=no
32702 rm -f conftest.err conftest.$ac_ext
32703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32704 echo "${ECHO_T}$ac_header_preproc" >&6
32706 # So? What about this header?
32707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32713 ac_header_preproc=yes
32716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32730 ## ------------------------------ ##
32731 ## Report this to bug-cvs@gnu.org ##
32732 ## ------------------------------ ##
32735 sed "s/^/$as_me: WARNING: /" >&2
32738 echo "$as_me:$LINENO: checking for $ac_header" >&5
32739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32741 echo $ECHO_N "(cached) $ECHO_C" >&6
32743 eval "$as_ac_Header=\$ac_header_preproc"
32745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32750 cat >>confdefs.h <<_ACEOF
32751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32758 # And look through them for GSS_C_NT_HOSTBASED_SERVICE or its alternatives
32759 echo "$as_me:$LINENO: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
32760 echo $ECHO_N "checking for GSS_C_NT_HOSTBASED_SERVICE... $ECHO_C" >&6
32761 if test "${acx_gssapi_cv_gss_c_nt_hostbased_service+set}" = set; then
32762 echo $ECHO_N "(cached) $ECHO_C" >&6
32765 acx_gssapi_cv_gss_c_nt_hostbased_service=no
32766 if test "$ac_cv_header_gssapi_h" = "yes"; then
32767 cat >conftest.$ac_ext <<_ACEOF
32770 cat confdefs.h >>conftest.$ac_ext
32771 cat >>conftest.$ac_ext <<_ACEOF
32772 /* end confdefs.h. */
32773 #include <gssapi.h>
32776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32777 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
32778 acx_gssapi_cv_gss_c_nt_hostbased_service=yes
32781 cat >conftest.$ac_ext <<_ACEOF
32784 cat confdefs.h >>conftest.$ac_ext
32785 cat >>conftest.$ac_ext <<_ACEOF
32786 /* end confdefs.h. */
32787 #include <gssapi.h>
32790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32791 $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
32792 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
32801 if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
32802 test "$ac_cv_header_gssapi_gssapi_h" = "yes"; then
32803 cat >conftest.$ac_ext <<_ACEOF
32806 cat confdefs.h >>conftest.$ac_ext
32807 cat >>conftest.$ac_ext <<_ACEOF
32808 /* end confdefs.h. */
32809 #include <gssapi/gssapi.h>
32812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32813 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
32814 acx_gssapi_cv_gss_c_nt_hostbased_service=yes
32817 cat >conftest.$ac_ext <<_ACEOF
32820 cat confdefs.h >>conftest.$ac_ext
32821 cat >>conftest.$ac_ext <<_ACEOF
32822 /* end confdefs.h. */
32823 #include <gssapi/gssapi.h>
32826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32827 $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
32828 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
32837 if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
32838 test "$ac_cv_header_gssapi_gssapi_generic_h" = "yes"; then
32839 cat >conftest.$ac_ext <<_ACEOF
32842 cat confdefs.h >>conftest.$ac_ext
32843 cat >>conftest.$ac_ext <<_ACEOF
32844 /* end confdefs.h. */
32845 #include <gssapi/gssapi_generic.h>
32848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32849 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
32850 acx_gssapi_cv_gss_c_nt_hostbased_service=yes
32853 cat >conftest.$ac_ext <<_ACEOF
32856 cat confdefs.h >>conftest.$ac_ext
32857 cat >>conftest.$ac_ext <<_ACEOF
32858 /* end confdefs.h. */
32859 #include <gssapi/gssapi_generic.h>
32862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32863 $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
32864 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
32875 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gss_c_nt_hostbased_service" >&5
32876 echo "${ECHO_T}$acx_gssapi_cv_gss_c_nt_hostbased_service" >&6
32877 if test $acx_gssapi_cv_gss_c_nt_hostbased_service != yes &&
32878 test $acx_gssapi_cv_gss_c_nt_hostbased_service != no; then
32879 # don't define for yes since that means it already means something and
32880 # don't define for no since we'd rather the compiler catch the error
32881 # It's debatable whether we'd prefer that the compiler catch the error
32882 # - it seems our estranged developer is more likely to be familiar with
32883 # the intricacies of the compiler than with those of autoconf, but by
32884 # the same token, maybe we'd rather alert them to the fact that most
32885 # of the support they need to fix the problem is installed if they can
32886 # simply locate the appropriate symbol.
32888 cat >>confdefs.h <<_ACEOF
32889 #define GSS_C_NT_HOSTBASED_SERVICE $acx_gssapi_cv_gss_c_nt_hostbased_service
32894 # Expect the libs to be installed parallel to the headers
32896 # We could try once with and once without, but I'm not sure it's worth the
32898 if test x$acx_gssapi_cv_gssapi != xyes; then
32899 if test -z "$LIBS"; then
32900 LIBS="-L$acx_gssapi_cv_gssapi/lib"
32902 LIBS="-L$acx_gssapi_cv_gssapi/lib $LIBS"
32907 # Some of the order below is particular due to library dependencies
32911 # des Heimdal K 0.3d, but Heimdal seems to be set up such
32912 # that it could have been installed from elsewhere.
32914 echo "$as_me:$LINENO: checking for library containing des_set_odd_parity" >&5
32915 echo $ECHO_N "checking for library containing des_set_odd_parity... $ECHO_C" >&6
32916 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
32917 echo $ECHO_N "(cached) $ECHO_C" >&6
32919 ac_func_search_save_LIBS=$LIBS
32920 ac_cv_search_des_set_odd_parity=no
32921 cat >conftest.$ac_ext <<_ACEOF
32924 cat confdefs.h >>conftest.$ac_ext
32925 cat >>conftest.$ac_ext <<_ACEOF
32926 /* end confdefs.h. */
32928 /* Override any gcc2 internal prototype to avoid an error. */
32932 /* We use char because int might match the return type of a gcc2
32933 builtin and then its argument prototype would still apply. */
32934 char des_set_odd_parity ();
32938 des_set_odd_parity ();
32943 rm -f conftest.$ac_objext conftest$ac_exeext
32944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32945 (eval $ac_link) 2>conftest.er1
32947 grep -v '^ *+' conftest.er1 >conftest.err
32949 cat conftest.err >&5
32950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951 (exit $ac_status); } &&
32952 { ac_try='test -z "$ac_c_werror_flag"
32953 || test ! -s conftest.err'
32954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32955 (eval $ac_try) 2>&5
32957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958 (exit $ac_status); }; } &&
32959 { ac_try='test -s conftest$ac_exeext'
32960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32961 (eval $ac_try) 2>&5
32963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964 (exit $ac_status); }; }; then
32965 ac_cv_search_des_set_odd_parity="none required"
32967 echo "$as_me: failed program was:" >&5
32968 sed 's/^/| /' conftest.$ac_ext >&5
32971 rm -f conftest.err conftest.$ac_objext \
32972 conftest$ac_exeext conftest.$ac_ext
32973 if test "$ac_cv_search_des_set_odd_parity" = no; then
32974 for ac_lib in des; do
32975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32976 cat >conftest.$ac_ext <<_ACEOF
32979 cat confdefs.h >>conftest.$ac_ext
32980 cat >>conftest.$ac_ext <<_ACEOF
32981 /* end confdefs.h. */
32983 /* Override any gcc2 internal prototype to avoid an error. */
32987 /* We use char because int might match the return type of a gcc2
32988 builtin and then its argument prototype would still apply. */
32989 char des_set_odd_parity ();
32993 des_set_odd_parity ();
32998 rm -f conftest.$ac_objext conftest$ac_exeext
32999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33000 (eval $ac_link) 2>conftest.er1
33002 grep -v '^ *+' conftest.er1 >conftest.err
33004 cat conftest.err >&5
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); } &&
33007 { ac_try='test -z "$ac_c_werror_flag"
33008 || test ! -s conftest.err'
33009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33010 (eval $ac_try) 2>&5
33012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013 (exit $ac_status); }; } &&
33014 { ac_try='test -s conftest$ac_exeext'
33015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33016 (eval $ac_try) 2>&5
33018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019 (exit $ac_status); }; }; then
33020 ac_cv_search_des_set_odd_parity="-l$ac_lib"
33023 echo "$as_me: failed program was:" >&5
33024 sed 's/^/| /' conftest.$ac_ext >&5
33027 rm -f conftest.err conftest.$ac_objext \
33028 conftest$ac_exeext conftest.$ac_ext
33031 LIBS=$ac_func_search_save_LIBS
33033 echo "$as_me:$LINENO: result: $ac_cv_search_des_set_odd_parity" >&5
33034 echo "${ECHO_T}$ac_cv_search_des_set_odd_parity" >&6
33035 if test "$ac_cv_search_des_set_odd_parity" != no; then
33036 test "$ac_cv_search_des_set_odd_parity" = "none required" || LIBS="$ac_cv_search_des_set_odd_parity $LIBS"
33042 # com_err Heimdal K 0.3d
33044 # com_err MIT K5 v1.2.2-beta1
33046 echo "$as_me:$LINENO: checking for library containing com_err" >&5
33047 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
33048 if test "${ac_cv_search_com_err+set}" = set; then
33049 echo $ECHO_N "(cached) $ECHO_C" >&6
33051 ac_func_search_save_LIBS=$LIBS
33052 ac_cv_search_com_err=no
33053 cat >conftest.$ac_ext <<_ACEOF
33056 cat confdefs.h >>conftest.$ac_ext
33057 cat >>conftest.$ac_ext <<_ACEOF
33058 /* end confdefs.h. */
33060 /* Override any gcc2 internal prototype to avoid an error. */
33064 /* We use char because int might match the return type of a gcc2
33065 builtin and then its argument prototype would still apply. */
33075 rm -f conftest.$ac_objext conftest$ac_exeext
33076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33077 (eval $ac_link) 2>conftest.er1
33079 grep -v '^ *+' conftest.er1 >conftest.err
33081 cat conftest.err >&5
33082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083 (exit $ac_status); } &&
33084 { ac_try='test -z "$ac_c_werror_flag"
33085 || test ! -s conftest.err'
33086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33087 (eval $ac_try) 2>&5
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); }; } &&
33091 { ac_try='test -s conftest$ac_exeext'
33092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33093 (eval $ac_try) 2>&5
33095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33096 (exit $ac_status); }; }; then
33097 ac_cv_search_com_err="none required"
33099 echo "$as_me: failed program was:" >&5
33100 sed 's/^/| /' conftest.$ac_ext >&5
33103 rm -f conftest.err conftest.$ac_objext \
33104 conftest$ac_exeext conftest.$ac_ext
33105 if test "$ac_cv_search_com_err" = no; then
33106 for ac_lib in com_err; do
33107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33108 cat >conftest.$ac_ext <<_ACEOF
33111 cat confdefs.h >>conftest.$ac_ext
33112 cat >>conftest.$ac_ext <<_ACEOF
33113 /* end confdefs.h. */
33115 /* Override any gcc2 internal prototype to avoid an error. */
33119 /* We use char because int might match the return type of a gcc2
33120 builtin and then its argument prototype would still apply. */
33130 rm -f conftest.$ac_objext conftest$ac_exeext
33131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33132 (eval $ac_link) 2>conftest.er1
33134 grep -v '^ *+' conftest.er1 >conftest.err
33136 cat conftest.err >&5
33137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138 (exit $ac_status); } &&
33139 { ac_try='test -z "$ac_c_werror_flag"
33140 || test ! -s conftest.err'
33141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33142 (eval $ac_try) 2>&5
33144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145 (exit $ac_status); }; } &&
33146 { ac_try='test -s conftest$ac_exeext'
33147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33148 (eval $ac_try) 2>&5
33150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151 (exit $ac_status); }; }; then
33152 ac_cv_search_com_err="-l$ac_lib"
33155 echo "$as_me: failed program was:" >&5
33156 sed 's/^/| /' conftest.$ac_ext >&5
33159 rm -f conftest.err conftest.$ac_objext \
33160 conftest$ac_exeext conftest.$ac_ext
33163 LIBS=$ac_func_search_save_LIBS
33165 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
33166 echo "${ECHO_T}$ac_cv_search_com_err" >&6
33167 if test "$ac_cv_search_com_err" != no; then
33168 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
33174 # asn1 Heimdal K 0.3d -lcom_err
33176 echo "$as_me:$LINENO: checking for library containing initialize_asn1_error_table_r" >&5
33177 echo $ECHO_N "checking for library containing initialize_asn1_error_table_r... $ECHO_C" >&6
33178 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
33179 echo $ECHO_N "(cached) $ECHO_C" >&6
33181 ac_func_search_save_LIBS=$LIBS
33182 ac_cv_search_initialize_asn1_error_table_r=no
33183 cat >conftest.$ac_ext <<_ACEOF
33186 cat confdefs.h >>conftest.$ac_ext
33187 cat >>conftest.$ac_ext <<_ACEOF
33188 /* end confdefs.h. */
33190 /* Override any gcc2 internal prototype to avoid an error. */
33194 /* We use char because int might match the return type of a gcc2
33195 builtin and then its argument prototype would still apply. */
33196 char initialize_asn1_error_table_r ();
33200 initialize_asn1_error_table_r ();
33205 rm -f conftest.$ac_objext conftest$ac_exeext
33206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33207 (eval $ac_link) 2>conftest.er1
33209 grep -v '^ *+' conftest.er1 >conftest.err
33211 cat conftest.err >&5
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); } &&
33214 { ac_try='test -z "$ac_c_werror_flag"
33215 || test ! -s conftest.err'
33216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33217 (eval $ac_try) 2>&5
33219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33220 (exit $ac_status); }; } &&
33221 { ac_try='test -s conftest$ac_exeext'
33222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33223 (eval $ac_try) 2>&5
33225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226 (exit $ac_status); }; }; then
33227 ac_cv_search_initialize_asn1_error_table_r="none required"
33229 echo "$as_me: failed program was:" >&5
33230 sed 's/^/| /' conftest.$ac_ext >&5
33233 rm -f conftest.err conftest.$ac_objext \
33234 conftest$ac_exeext conftest.$ac_ext
33235 if test "$ac_cv_search_initialize_asn1_error_table_r" = no; then
33236 for ac_lib in asn1; do
33237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33238 cat >conftest.$ac_ext <<_ACEOF
33241 cat confdefs.h >>conftest.$ac_ext
33242 cat >>conftest.$ac_ext <<_ACEOF
33243 /* end confdefs.h. */
33245 /* Override any gcc2 internal prototype to avoid an error. */
33249 /* We use char because int might match the return type of a gcc2
33250 builtin and then its argument prototype would still apply. */
33251 char initialize_asn1_error_table_r ();
33255 initialize_asn1_error_table_r ();
33260 rm -f conftest.$ac_objext conftest$ac_exeext
33261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33262 (eval $ac_link) 2>conftest.er1
33264 grep -v '^ *+' conftest.er1 >conftest.err
33266 cat conftest.err >&5
33267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268 (exit $ac_status); } &&
33269 { ac_try='test -z "$ac_c_werror_flag"
33270 || test ! -s conftest.err'
33271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33272 (eval $ac_try) 2>&5
33274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33275 (exit $ac_status); }; } &&
33276 { ac_try='test -s conftest$ac_exeext'
33277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33278 (eval $ac_try) 2>&5
33280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33281 (exit $ac_status); }; }; then
33282 ac_cv_search_initialize_asn1_error_table_r="-l$ac_lib"
33285 echo "$as_me: failed program was:" >&5
33286 sed 's/^/| /' conftest.$ac_ext >&5
33289 rm -f conftest.err conftest.$ac_objext \
33290 conftest$ac_exeext conftest.$ac_ext
33293 LIBS=$ac_func_search_save_LIBS
33295 echo "$as_me:$LINENO: result: $ac_cv_search_initialize_asn1_error_table_r" >&5
33296 echo "${ECHO_T}$ac_cv_search_initialize_asn1_error_table_r" >&6
33297 if test "$ac_cv_search_initialize_asn1_error_table_r" != no; then
33298 test "$ac_cv_search_initialize_asn1_error_table_r" = "none required" || LIBS="$ac_cv_search_initialize_asn1_error_table_r $LIBS"
33304 # resolv required, but not installed by Heimdal K 0.3d
33306 # resolv MIT K5 1.2.2-beta1
33309 echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
33310 echo $ECHO_N "checking for library containing __dn_expand... $ECHO_C" >&6
33311 if test "${ac_cv_search___dn_expand+set}" = set; then
33312 echo $ECHO_N "(cached) $ECHO_C" >&6
33314 ac_func_search_save_LIBS=$LIBS
33315 ac_cv_search___dn_expand=no
33316 cat >conftest.$ac_ext <<_ACEOF
33319 cat confdefs.h >>conftest.$ac_ext
33320 cat >>conftest.$ac_ext <<_ACEOF
33321 /* end confdefs.h. */
33323 /* Override any gcc2 internal prototype to avoid an error. */
33327 /* We use char because int might match the return type of a gcc2
33328 builtin and then its argument prototype would still apply. */
33329 char __dn_expand ();
33338 rm -f conftest.$ac_objext conftest$ac_exeext
33339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33340 (eval $ac_link) 2>conftest.er1
33342 grep -v '^ *+' conftest.er1 >conftest.err
33344 cat conftest.err >&5
33345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346 (exit $ac_status); } &&
33347 { ac_try='test -z "$ac_c_werror_flag"
33348 || test ! -s conftest.err'
33349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33350 (eval $ac_try) 2>&5
33352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353 (exit $ac_status); }; } &&
33354 { ac_try='test -s conftest$ac_exeext'
33355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33356 (eval $ac_try) 2>&5
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); }; }; then
33360 ac_cv_search___dn_expand="none required"
33362 echo "$as_me: failed program was:" >&5
33363 sed 's/^/| /' conftest.$ac_ext >&5
33366 rm -f conftest.err conftest.$ac_objext \
33367 conftest$ac_exeext conftest.$ac_ext
33368 if test "$ac_cv_search___dn_expand" = no; then
33369 for ac_lib in resolv; do
33370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33371 cat >conftest.$ac_ext <<_ACEOF
33374 cat confdefs.h >>conftest.$ac_ext
33375 cat >>conftest.$ac_ext <<_ACEOF
33376 /* end confdefs.h. */
33378 /* Override any gcc2 internal prototype to avoid an error. */
33382 /* We use char because int might match the return type of a gcc2
33383 builtin and then its argument prototype would still apply. */
33384 char __dn_expand ();
33393 rm -f conftest.$ac_objext conftest$ac_exeext
33394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33395 (eval $ac_link) 2>conftest.er1
33397 grep -v '^ *+' conftest.er1 >conftest.err
33399 cat conftest.err >&5
33400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33401 (exit $ac_status); } &&
33402 { ac_try='test -z "$ac_c_werror_flag"
33403 || test ! -s conftest.err'
33404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33405 (eval $ac_try) 2>&5
33407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408 (exit $ac_status); }; } &&
33409 { ac_try='test -s conftest$ac_exeext'
33410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33411 (eval $ac_try) 2>&5
33413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414 (exit $ac_status); }; }; then
33415 ac_cv_search___dn_expand="-l$ac_lib"
33418 echo "$as_me: failed program was:" >&5
33419 sed 's/^/| /' conftest.$ac_ext >&5
33422 rm -f conftest.err conftest.$ac_objext \
33423 conftest$ac_exeext conftest.$ac_ext
33426 LIBS=$ac_func_search_save_LIBS
33428 echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
33429 echo "${ECHO_T}$ac_cv_search___dn_expand" >&6
33430 if test "$ac_cv_search___dn_expand" != no; then
33431 test "$ac_cv_search___dn_expand" = "none required" || LIBS="$ac_cv_search___dn_expand $LIBS"
33437 # crypt Needed by roken under FreeBSD 4.6.
33439 echo "$as_me:$LINENO: checking for library containing crypt" >&5
33440 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
33441 if test "${ac_cv_search_crypt+set}" = set; then
33442 echo $ECHO_N "(cached) $ECHO_C" >&6
33444 ac_func_search_save_LIBS=$LIBS
33445 ac_cv_search_crypt=no
33446 cat >conftest.$ac_ext <<_ACEOF
33449 cat confdefs.h >>conftest.$ac_ext
33450 cat >>conftest.$ac_ext <<_ACEOF
33451 /* end confdefs.h. */
33453 /* Override any gcc2 internal prototype to avoid an error. */
33457 /* We use char because int might match the return type of a gcc2
33458 builtin and then its argument prototype would still apply. */
33468 rm -f conftest.$ac_objext conftest$ac_exeext
33469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33470 (eval $ac_link) 2>conftest.er1
33472 grep -v '^ *+' conftest.er1 >conftest.err
33474 cat conftest.err >&5
33475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476 (exit $ac_status); } &&
33477 { ac_try='test -z "$ac_c_werror_flag"
33478 || test ! -s conftest.err'
33479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33480 (eval $ac_try) 2>&5
33482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33483 (exit $ac_status); }; } &&
33484 { ac_try='test -s conftest$ac_exeext'
33485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33486 (eval $ac_try) 2>&5
33488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33489 (exit $ac_status); }; }; then
33490 ac_cv_search_crypt="none required"
33492 echo "$as_me: failed program was:" >&5
33493 sed 's/^/| /' conftest.$ac_ext >&5
33496 rm -f conftest.err conftest.$ac_objext \
33497 conftest$ac_exeext conftest.$ac_ext
33498 if test "$ac_cv_search_crypt" = no; then
33499 for ac_lib in crypt; do
33500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33501 cat >conftest.$ac_ext <<_ACEOF
33504 cat confdefs.h >>conftest.$ac_ext
33505 cat >>conftest.$ac_ext <<_ACEOF
33506 /* end confdefs.h. */
33508 /* Override any gcc2 internal prototype to avoid an error. */
33512 /* We use char because int might match the return type of a gcc2
33513 builtin and then its argument prototype would still apply. */
33523 rm -f conftest.$ac_objext conftest$ac_exeext
33524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33525 (eval $ac_link) 2>conftest.er1
33527 grep -v '^ *+' conftest.er1 >conftest.err
33529 cat conftest.err >&5
33530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531 (exit $ac_status); } &&
33532 { ac_try='test -z "$ac_c_werror_flag"
33533 || test ! -s conftest.err'
33534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33535 (eval $ac_try) 2>&5
33537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538 (exit $ac_status); }; } &&
33539 { ac_try='test -s conftest$ac_exeext'
33540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33541 (eval $ac_try) 2>&5
33543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544 (exit $ac_status); }; }; then
33545 ac_cv_search_crypt="-l$ac_lib"
33548 echo "$as_me: failed program was:" >&5
33549 sed 's/^/| /' conftest.$ac_ext >&5
33552 rm -f conftest.err conftest.$ac_objext \
33553 conftest$ac_exeext conftest.$ac_ext
33556 LIBS=$ac_func_search_save_LIBS
33558 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
33559 echo "${ECHO_T}$ac_cv_search_crypt" >&6
33560 if test "$ac_cv_search_crypt" != no; then
33561 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
33567 # roken Heimdal K 0.3d -lresolv
33568 # roken FreeBSD 4.6 -lcrypt
33570 echo "$as_me:$LINENO: checking for library containing roken_gethostbyaddr" >&5
33571 echo $ECHO_N "checking for library containing roken_gethostbyaddr... $ECHO_C" >&6
33572 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
33573 echo $ECHO_N "(cached) $ECHO_C" >&6
33575 ac_func_search_save_LIBS=$LIBS
33576 ac_cv_search_roken_gethostbyaddr=no
33577 cat >conftest.$ac_ext <<_ACEOF
33580 cat confdefs.h >>conftest.$ac_ext
33581 cat >>conftest.$ac_ext <<_ACEOF
33582 /* end confdefs.h. */
33584 /* Override any gcc2 internal prototype to avoid an error. */
33588 /* We use char because int might match the return type of a gcc2
33589 builtin and then its argument prototype would still apply. */
33590 char roken_gethostbyaddr ();
33594 roken_gethostbyaddr ();
33599 rm -f conftest.$ac_objext conftest$ac_exeext
33600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33601 (eval $ac_link) 2>conftest.er1
33603 grep -v '^ *+' conftest.er1 >conftest.err
33605 cat conftest.err >&5
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); } &&
33608 { ac_try='test -z "$ac_c_werror_flag"
33609 || test ! -s conftest.err'
33610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33611 (eval $ac_try) 2>&5
33613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614 (exit $ac_status); }; } &&
33615 { ac_try='test -s conftest$ac_exeext'
33616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33617 (eval $ac_try) 2>&5
33619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620 (exit $ac_status); }; }; then
33621 ac_cv_search_roken_gethostbyaddr="none required"
33623 echo "$as_me: failed program was:" >&5
33624 sed 's/^/| /' conftest.$ac_ext >&5
33627 rm -f conftest.err conftest.$ac_objext \
33628 conftest$ac_exeext conftest.$ac_ext
33629 if test "$ac_cv_search_roken_gethostbyaddr" = no; then
33630 for ac_lib in roken; do
33631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33632 cat >conftest.$ac_ext <<_ACEOF
33635 cat confdefs.h >>conftest.$ac_ext
33636 cat >>conftest.$ac_ext <<_ACEOF
33637 /* end confdefs.h. */
33639 /* Override any gcc2 internal prototype to avoid an error. */
33643 /* We use char because int might match the return type of a gcc2
33644 builtin and then its argument prototype would still apply. */
33645 char roken_gethostbyaddr ();
33649 roken_gethostbyaddr ();
33654 rm -f conftest.$ac_objext conftest$ac_exeext
33655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33656 (eval $ac_link) 2>conftest.er1
33658 grep -v '^ *+' conftest.er1 >conftest.err
33660 cat conftest.err >&5
33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); } &&
33663 { ac_try='test -z "$ac_c_werror_flag"
33664 || test ! -s conftest.err'
33665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33666 (eval $ac_try) 2>&5
33668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33669 (exit $ac_status); }; } &&
33670 { ac_try='test -s conftest$ac_exeext'
33671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33672 (eval $ac_try) 2>&5
33674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675 (exit $ac_status); }; }; then
33676 ac_cv_search_roken_gethostbyaddr="-l$ac_lib"
33679 echo "$as_me: failed program was:" >&5
33680 sed 's/^/| /' conftest.$ac_ext >&5
33683 rm -f conftest.err conftest.$ac_objext \
33684 conftest$ac_exeext conftest.$ac_ext
33687 LIBS=$ac_func_search_save_LIBS
33689 echo "$as_me:$LINENO: result: $ac_cv_search_roken_gethostbyaddr" >&5
33690 echo "${ECHO_T}$ac_cv_search_roken_gethostbyaddr" >&6
33691 if test "$ac_cv_search_roken_gethostbyaddr" != no; then
33692 test "$ac_cv_search_roken_gethostbyaddr" = "none required" || LIBS="$ac_cv_search_roken_gethostbyaddr $LIBS"
33698 # k5crypto MIT K5 v1.2.2-beta1
33700 echo "$as_me:$LINENO: checking for library containing valid_enctype" >&5
33701 echo $ECHO_N "checking for library containing valid_enctype... $ECHO_C" >&6
33702 if test "${ac_cv_search_valid_enctype+set}" = set; then
33703 echo $ECHO_N "(cached) $ECHO_C" >&6
33705 ac_func_search_save_LIBS=$LIBS
33706 ac_cv_search_valid_enctype=no
33707 cat >conftest.$ac_ext <<_ACEOF
33710 cat confdefs.h >>conftest.$ac_ext
33711 cat >>conftest.$ac_ext <<_ACEOF
33712 /* end confdefs.h. */
33714 /* Override any gcc2 internal prototype to avoid an error. */
33718 /* We use char because int might match the return type of a gcc2
33719 builtin and then its argument prototype would still apply. */
33720 char valid_enctype ();
33729 rm -f conftest.$ac_objext conftest$ac_exeext
33730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33731 (eval $ac_link) 2>conftest.er1
33733 grep -v '^ *+' conftest.er1 >conftest.err
33735 cat conftest.err >&5
33736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737 (exit $ac_status); } &&
33738 { ac_try='test -z "$ac_c_werror_flag"
33739 || test ! -s conftest.err'
33740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33741 (eval $ac_try) 2>&5
33743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744 (exit $ac_status); }; } &&
33745 { ac_try='test -s conftest$ac_exeext'
33746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33747 (eval $ac_try) 2>&5
33749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750 (exit $ac_status); }; }; then
33751 ac_cv_search_valid_enctype="none required"
33753 echo "$as_me: failed program was:" >&5
33754 sed 's/^/| /' conftest.$ac_ext >&5
33757 rm -f conftest.err conftest.$ac_objext \
33758 conftest$ac_exeext conftest.$ac_ext
33759 if test "$ac_cv_search_valid_enctype" = no; then
33760 for ac_lib in k5crypto; do
33761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33762 cat >conftest.$ac_ext <<_ACEOF
33765 cat confdefs.h >>conftest.$ac_ext
33766 cat >>conftest.$ac_ext <<_ACEOF
33767 /* end confdefs.h. */
33769 /* Override any gcc2 internal prototype to avoid an error. */
33773 /* We use char because int might match the return type of a gcc2
33774 builtin and then its argument prototype would still apply. */
33775 char valid_enctype ();
33784 rm -f conftest.$ac_objext conftest$ac_exeext
33785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33786 (eval $ac_link) 2>conftest.er1
33788 grep -v '^ *+' conftest.er1 >conftest.err
33790 cat conftest.err >&5
33791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792 (exit $ac_status); } &&
33793 { ac_try='test -z "$ac_c_werror_flag"
33794 || test ! -s conftest.err'
33795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33796 (eval $ac_try) 2>&5
33798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799 (exit $ac_status); }; } &&
33800 { ac_try='test -s conftest$ac_exeext'
33801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33802 (eval $ac_try) 2>&5
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); }; }; then
33806 ac_cv_search_valid_enctype="-l$ac_lib"
33809 echo "$as_me: failed program was:" >&5
33810 sed 's/^/| /' conftest.$ac_ext >&5
33813 rm -f conftest.err conftest.$ac_objext \
33814 conftest$ac_exeext conftest.$ac_ext
33817 LIBS=$ac_func_search_save_LIBS
33819 echo "$as_me:$LINENO: result: $ac_cv_search_valid_enctype" >&5
33820 echo "${ECHO_T}$ac_cv_search_valid_enctype" >&6
33821 if test "$ac_cv_search_valid_enctype" != no; then
33822 test "$ac_cv_search_valid_enctype" = "none required" || LIBS="$ac_cv_search_valid_enctype $LIBS"
33828 # gen ? ? ? Needed on Irix 5.3 with some
33829 # Irix 5.3 version of Kerberos. I'm not
33830 # sure which since Irix didn't
33831 # get any testing this time
33832 # around. Original comment:
33834 # This is necessary on Irix 5.3, in order to link against libkrb5 --
33835 # there, an_to_ln.o refers to things defined only in -lgen.
33837 echo "$as_me:$LINENO: checking for library containing compile" >&5
33838 echo $ECHO_N "checking for library containing compile... $ECHO_C" >&6
33839 if test "${ac_cv_search_compile+set}" = set; then
33840 echo $ECHO_N "(cached) $ECHO_C" >&6
33842 ac_func_search_save_LIBS=$LIBS
33843 ac_cv_search_compile=no
33844 cat >conftest.$ac_ext <<_ACEOF
33847 cat confdefs.h >>conftest.$ac_ext
33848 cat >>conftest.$ac_ext <<_ACEOF
33849 /* end confdefs.h. */
33851 /* Override any gcc2 internal prototype to avoid an error. */
33855 /* We use char because int might match the return type of a gcc2
33856 builtin and then its argument prototype would still apply. */
33866 rm -f conftest.$ac_objext conftest$ac_exeext
33867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33868 (eval $ac_link) 2>conftest.er1
33870 grep -v '^ *+' conftest.er1 >conftest.err
33872 cat conftest.err >&5
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); } &&
33875 { ac_try='test -z "$ac_c_werror_flag"
33876 || test ! -s conftest.err'
33877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33878 (eval $ac_try) 2>&5
33880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881 (exit $ac_status); }; } &&
33882 { ac_try='test -s conftest$ac_exeext'
33883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33884 (eval $ac_try) 2>&5
33886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33887 (exit $ac_status); }; }; then
33888 ac_cv_search_compile="none required"
33890 echo "$as_me: failed program was:" >&5
33891 sed 's/^/| /' conftest.$ac_ext >&5
33894 rm -f conftest.err conftest.$ac_objext \
33895 conftest$ac_exeext conftest.$ac_ext
33896 if test "$ac_cv_search_compile" = no; then
33897 for ac_lib in gen; do
33898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33899 cat >conftest.$ac_ext <<_ACEOF
33902 cat confdefs.h >>conftest.$ac_ext
33903 cat >>conftest.$ac_ext <<_ACEOF
33904 /* end confdefs.h. */
33906 /* Override any gcc2 internal prototype to avoid an error. */
33910 /* We use char because int might match the return type of a gcc2
33911 builtin and then its argument prototype would still apply. */
33921 rm -f conftest.$ac_objext conftest$ac_exeext
33922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33923 (eval $ac_link) 2>conftest.er1
33925 grep -v '^ *+' conftest.er1 >conftest.err
33927 cat conftest.err >&5
33928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929 (exit $ac_status); } &&
33930 { ac_try='test -z "$ac_c_werror_flag"
33931 || test ! -s conftest.err'
33932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33933 (eval $ac_try) 2>&5
33935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936 (exit $ac_status); }; } &&
33937 { ac_try='test -s conftest$ac_exeext'
33938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33939 (eval $ac_try) 2>&5
33941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942 (exit $ac_status); }; }; then
33943 ac_cv_search_compile="-l$ac_lib"
33946 echo "$as_me: failed program was:" >&5
33947 sed 's/^/| /' conftest.$ac_ext >&5
33950 rm -f conftest.err conftest.$ac_objext \
33951 conftest$ac_exeext conftest.$ac_ext
33954 LIBS=$ac_func_search_save_LIBS
33956 echo "$as_me:$LINENO: result: $ac_cv_search_compile" >&5
33957 echo "${ECHO_T}$ac_cv_search_compile" >&6
33958 if test "$ac_cv_search_compile" != no; then
33959 test "$ac_cv_search_compile" = "none required" || LIBS="$ac_cv_search_compile $LIBS"
33965 # krb5 ? ? ? -lgen -l???
33968 # krb5 MIT K5 v1.1.1
33970 # krb5 MIT K5 v1.2.2-beta1 -lcrypto -lcom_err
33973 # krb5 MIT K5 v1.2.2-beta1 -lcrypto -lcom_err -lresolv
33975 # krb5 Heimdal K 0.3d -lasn1 -lroken -ldes
33977 echo "$as_me:$LINENO: checking for library containing krb5_free_context" >&5
33978 echo $ECHO_N "checking for library containing krb5_free_context... $ECHO_C" >&6
33979 if test "${ac_cv_search_krb5_free_context+set}" = set; then
33980 echo $ECHO_N "(cached) $ECHO_C" >&6
33982 ac_func_search_save_LIBS=$LIBS
33983 ac_cv_search_krb5_free_context=no
33984 cat >conftest.$ac_ext <<_ACEOF
33987 cat confdefs.h >>conftest.$ac_ext
33988 cat >>conftest.$ac_ext <<_ACEOF
33989 /* end confdefs.h. */
33991 /* Override any gcc2 internal prototype to avoid an error. */
33995 /* We use char because int might match the return type of a gcc2
33996 builtin and then its argument prototype would still apply. */
33997 char krb5_free_context ();
34001 krb5_free_context ();
34006 rm -f conftest.$ac_objext conftest$ac_exeext
34007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34008 (eval $ac_link) 2>conftest.er1
34010 grep -v '^ *+' conftest.er1 >conftest.err
34012 cat conftest.err >&5
34013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014 (exit $ac_status); } &&
34015 { ac_try='test -z "$ac_c_werror_flag"
34016 || test ! -s conftest.err'
34017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34018 (eval $ac_try) 2>&5
34020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021 (exit $ac_status); }; } &&
34022 { ac_try='test -s conftest$ac_exeext'
34023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34024 (eval $ac_try) 2>&5
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); }; }; then
34028 ac_cv_search_krb5_free_context="none required"
34030 echo "$as_me: failed program was:" >&5
34031 sed 's/^/| /' conftest.$ac_ext >&5
34034 rm -f conftest.err conftest.$ac_objext \
34035 conftest$ac_exeext conftest.$ac_ext
34036 if test "$ac_cv_search_krb5_free_context" = no; then
34037 for ac_lib in krb5; do
34038 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34039 cat >conftest.$ac_ext <<_ACEOF
34042 cat confdefs.h >>conftest.$ac_ext
34043 cat >>conftest.$ac_ext <<_ACEOF
34044 /* end confdefs.h. */
34046 /* Override any gcc2 internal prototype to avoid an error. */
34050 /* We use char because int might match the return type of a gcc2
34051 builtin and then its argument prototype would still apply. */
34052 char krb5_free_context ();
34056 krb5_free_context ();
34061 rm -f conftest.$ac_objext conftest$ac_exeext
34062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34063 (eval $ac_link) 2>conftest.er1
34065 grep -v '^ *+' conftest.er1 >conftest.err
34067 cat conftest.err >&5
34068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34069 (exit $ac_status); } &&
34070 { ac_try='test -z "$ac_c_werror_flag"
34071 || test ! -s conftest.err'
34072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34073 (eval $ac_try) 2>&5
34075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076 (exit $ac_status); }; } &&
34077 { ac_try='test -s conftest$ac_exeext'
34078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34079 (eval $ac_try) 2>&5
34081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082 (exit $ac_status); }; }; then
34083 ac_cv_search_krb5_free_context="-l$ac_lib"
34086 echo "$as_me: failed program was:" >&5
34087 sed 's/^/| /' conftest.$ac_ext >&5
34090 rm -f conftest.err conftest.$ac_objext \
34091 conftest$ac_exeext conftest.$ac_ext
34094 LIBS=$ac_func_search_save_LIBS
34096 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_free_context" >&5
34097 echo "${ECHO_T}$ac_cv_search_krb5_free_context" >&6
34098 if test "$ac_cv_search_krb5_free_context" != no; then
34099 test "$ac_cv_search_krb5_free_context" = "none required" || LIBS="$ac_cv_search_krb5_free_context $LIBS"
34105 # gssapi_krb5 Only lib needed with MIT K5 v1.2.1, so find it first in
34106 # order to prefer MIT Kerberos. If both MIT & Heimdal
34107 # Kerberos are installed and in the path, this will leave
34108 # some of the libraries above in LIBS unnecessarily, but
34109 # noone would ever do that, right?
34111 # gssapi_krb5 MIT K5 v1.2.2-beta1 -lkrb5
34113 # gssapi Heimdal K 0.3d -lkrb5
34115 echo "$as_me:$LINENO: checking for library containing gss_import_name" >&5
34116 echo $ECHO_N "checking for library containing gss_import_name... $ECHO_C" >&6
34117 if test "${ac_cv_search_gss_import_name+set}" = set; then
34118 echo $ECHO_N "(cached) $ECHO_C" >&6
34120 ac_func_search_save_LIBS=$LIBS
34121 ac_cv_search_gss_import_name=no
34122 cat >conftest.$ac_ext <<_ACEOF
34125 cat confdefs.h >>conftest.$ac_ext
34126 cat >>conftest.$ac_ext <<_ACEOF
34127 /* end confdefs.h. */
34129 /* Override any gcc2 internal prototype to avoid an error. */
34133 /* We use char because int might match the return type of a gcc2
34134 builtin and then its argument prototype would still apply. */
34135 char gss_import_name ();
34139 gss_import_name ();
34144 rm -f conftest.$ac_objext conftest$ac_exeext
34145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34146 (eval $ac_link) 2>conftest.er1
34148 grep -v '^ *+' conftest.er1 >conftest.err
34150 cat conftest.err >&5
34151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34152 (exit $ac_status); } &&
34153 { ac_try='test -z "$ac_c_werror_flag"
34154 || test ! -s conftest.err'
34155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34156 (eval $ac_try) 2>&5
34158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159 (exit $ac_status); }; } &&
34160 { ac_try='test -s conftest$ac_exeext'
34161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34162 (eval $ac_try) 2>&5
34164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34165 (exit $ac_status); }; }; then
34166 ac_cv_search_gss_import_name="none required"
34168 echo "$as_me: failed program was:" >&5
34169 sed 's/^/| /' conftest.$ac_ext >&5
34172 rm -f conftest.err conftest.$ac_objext \
34173 conftest$ac_exeext conftest.$ac_ext
34174 if test "$ac_cv_search_gss_import_name" = no; then
34175 for ac_lib in gssapi_krb5 gssapi; do
34176 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34177 cat >conftest.$ac_ext <<_ACEOF
34180 cat confdefs.h >>conftest.$ac_ext
34181 cat >>conftest.$ac_ext <<_ACEOF
34182 /* end confdefs.h. */
34184 /* Override any gcc2 internal prototype to avoid an error. */
34188 /* We use char because int might match the return type of a gcc2
34189 builtin and then its argument prototype would still apply. */
34190 char gss_import_name ();
34194 gss_import_name ();
34199 rm -f conftest.$ac_objext conftest$ac_exeext
34200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34201 (eval $ac_link) 2>conftest.er1
34203 grep -v '^ *+' conftest.er1 >conftest.err
34205 cat conftest.err >&5
34206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207 (exit $ac_status); } &&
34208 { ac_try='test -z "$ac_c_werror_flag"
34209 || test ! -s conftest.err'
34210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34211 (eval $ac_try) 2>&5
34213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214 (exit $ac_status); }; } &&
34215 { ac_try='test -s conftest$ac_exeext'
34216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34217 (eval $ac_try) 2>&5
34219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34220 (exit $ac_status); }; }; then
34221 ac_cv_search_gss_import_name="-l$ac_lib"
34224 echo "$as_me: failed program was:" >&5
34225 sed 's/^/| /' conftest.$ac_ext >&5
34228 rm -f conftest.err conftest.$ac_objext \
34229 conftest$ac_exeext conftest.$ac_ext
34232 LIBS=$ac_func_search_save_LIBS
34234 echo "$as_me:$LINENO: result: $ac_cv_search_gss_import_name" >&5
34235 echo "${ECHO_T}$ac_cv_search_gss_import_name" >&6
34236 if test "$ac_cv_search_gss_import_name" != no; then
34237 test "$ac_cv_search_gss_import_name" = "none required" || LIBS="$ac_cv_search_gss_import_name $LIBS"
34246 # Use --with-zlib to build with a zlib other than the version distributed
34249 # defaults to the included snapshot of zlib
34252 # Check whether --with-external-zlib or --without-external-zlib was given.
34253 if test "${with_external_zlib+set}" = set; then
34254 withval="$with_external_zlib"
34255 with_external_zlib=$withval
34257 with_external_zlib=no
34261 # Try to locate a ZLIB installation if no location was specified, assuming
34262 # external ZLIB was enabled.
34264 if test -n "$acx_zlib_cv_external_zlib"; then
34265 # Granted, this is a slightly ugly way to print this info, but the
34266 # AC_CHECK_HEADER used in the search for a ZLIB installation makes using
34267 # AC_CACHE_CHECK worse
34268 echo "$as_me:$LINENO: checking for external ZLIB" >&5
34269 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
34271 if test "${acx_zlib_cv_external_zlib+set}" = set; then
34272 echo $ECHO_N "(cached) $ECHO_C" >&6
34276 # --with but no location specified
34277 # assume zlib.h locates our install.
34279 acx_zlib_save_CPPFLAGS=$CPPFLAGS
34280 for acx_zlib_cv_external_zlib in yes /usr/local no; do
34281 if test x$acx_zlib_cv_external_zlib = xno; then
34284 if test x$acx_zlib_cv_external_zlib = xyes; then
34285 echo "$as_me:$LINENO: checking for external ZLIB" >&5
34286 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
34287 echo "$as_me:$LINENO: result: " >&5
34288 echo "${ECHO_T}" >&6
34290 CPPFLAGS="$acx_zlib_save_CPPFLAGS -I$acx_zlib_cv_external_zlib/include"
34291 echo "$as_me:$LINENO: checking for external ZLIB in $acx_zlib_cv_external_zlib" >&5
34292 echo $ECHO_N "checking for external ZLIB in $acx_zlib_cv_external_zlib... $ECHO_C" >&6
34293 echo "$as_me:$LINENO: result: " >&5
34294 echo "${ECHO_T}" >&6
34296 unset ac_cv_header_zlib_h
34298 for ac_header in zlib.h
34300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34302 echo "$as_me:$LINENO: checking for $ac_header" >&5
34303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34305 echo $ECHO_N "(cached) $ECHO_C" >&6
34307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34310 # Is the header compilable?
34311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34313 cat >conftest.$ac_ext <<_ACEOF
34316 cat confdefs.h >>conftest.$ac_ext
34317 cat >>conftest.$ac_ext <<_ACEOF
34318 /* end confdefs.h. */
34319 $ac_includes_default
34320 #include <$ac_header>
34322 rm -f conftest.$ac_objext
34323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34324 (eval $ac_compile) 2>conftest.er1
34326 grep -v '^ *+' conftest.er1 >conftest.err
34328 cat conftest.err >&5
34329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330 (exit $ac_status); } &&
34331 { ac_try='test -z "$ac_c_werror_flag"
34332 || test ! -s conftest.err'
34333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34334 (eval $ac_try) 2>&5
34336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337 (exit $ac_status); }; } &&
34338 { ac_try='test -s conftest.$ac_objext'
34339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34340 (eval $ac_try) 2>&5
34342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34343 (exit $ac_status); }; }; then
34344 ac_header_compiler=yes
34346 echo "$as_me: failed program was:" >&5
34347 sed 's/^/| /' conftest.$ac_ext >&5
34349 ac_header_compiler=no
34351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34353 echo "${ECHO_T}$ac_header_compiler" >&6
34355 # Is the header present?
34356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34358 cat >conftest.$ac_ext <<_ACEOF
34361 cat confdefs.h >>conftest.$ac_ext
34362 cat >>conftest.$ac_ext <<_ACEOF
34363 /* end confdefs.h. */
34364 #include <$ac_header>
34366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34369 grep -v '^ *+' conftest.er1 >conftest.err
34371 cat conftest.err >&5
34372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373 (exit $ac_status); } >/dev/null; then
34374 if test -s conftest.err; then
34375 ac_cpp_err=$ac_c_preproc_warn_flag
34376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34383 if test -z "$ac_cpp_err"; then
34384 ac_header_preproc=yes
34386 echo "$as_me: failed program was:" >&5
34387 sed 's/^/| /' conftest.$ac_ext >&5
34389 ac_header_preproc=no
34391 rm -f conftest.err conftest.$ac_ext
34392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34393 echo "${ECHO_T}$ac_header_preproc" >&6
34395 # So? What about this header?
34396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34402 ac_header_preproc=yes
34405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34419 ## ------------------------------ ##
34420 ## Report this to bug-cvs@gnu.org ##
34421 ## ------------------------------ ##
34424 sed "s/^/$as_me: WARNING: /" >&2
34427 echo "$as_me:$LINENO: checking for $ac_header" >&5
34428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34430 echo $ECHO_N "(cached) $ECHO_C" >&6
34432 eval "$as_ac_Header=\$ac_header_preproc"
34434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34439 cat >>confdefs.h <<_ACEOF
34440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34447 if test "$ac_cv_header_zlib_h" = yes; then
34451 CPPFLAGS=$acx_zlib_save_CPPFLAGS
34452 echo "$as_me:$LINENO: checking for external ZLIB" >&5
34453 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
34456 echo "$as_me:$LINENO: result: $acx_zlib_cv_external_zlib" >&5
34457 echo "${ECHO_T}$acx_zlib_cv_external_zlib" >&6
34461 # Output a pretty message naming our selected ZLIB "external" or "package"
34462 # so that any warnings printed by the version check make more sense.
34464 echo "$as_me:$LINENO: checking selected ZLIB" >&5
34465 echo $ECHO_N "checking selected ZLIB... $ECHO_C" >&6
34466 if test "x$with_external_zlib" = xno; then
34467 echo "$as_me:$LINENO: result: package" >&5
34468 echo "${ECHO_T}package" >&6
34470 echo "$as_me:$LINENO: result: external" >&5
34471 echo "${ECHO_T}external" >&6
34476 # Verify that the ZLIB we aren't using isn't newer than the one we are.
34478 if test "x$acx_zlib_cv_external_zlib" != xno; then
34479 LOCAL_ZLIB_VERSION=`sed -n '/^#define ZLIB_VERSION ".*"$/{
34480 s/^#define ZLIB_VERSION "\(.*\)"$/\1/;
34481 p;}' <$srcdir/zlib/zlib.h 2>&5`
34482 cat >conftest.$ac_ext <<_ACEOF
34485 cat confdefs.h >>conftest.$ac_ext
34486 cat >>conftest.$ac_ext <<_ACEOF
34487 /* end confdefs.h. */
34491 ac_extract_cpp_result=`(eval "$ac_cpp -dM conftest.$ac_ext") 2>&5 |
34492 sed -n "/^#define ZLIB_VERSION /{
34493 s/^#define ZLIB_VERSION //;
34497 if test -n "$ac_extract_cpp_result"; then
34498 ZLIB_VERSION=$ac_extract_cpp_result
34502 ZLIB_VERSION=`echo "$ZLIB_VERSION" |sed 's/"//g'`
34503 if test "x$LOCAL_ZLIB_VERSION" = "x$ZLIB_VERSION"; then
34504 # the strings are equal. run ACTION-IF-EQUAL and bail
34507 # first unletter the versions
34508 # this only works for a single trailing letter
34509 asx_version_1=`echo "$LOCAL_ZLIB_VERSION" |
34510 sed 's/\(abcedfghi\)/.\1/;
34511 s/\(jklmnopqrs\)/.1\1/;
34512 s/\(tuvwxyz\)/.2\1/;
34513 y/abcdefghijklmnopqrstuvwxyz/12345678901234567890123456/;'`
34514 asx_version_2=`echo "$ZLIB_VERSION" |
34515 sed 's/\(abcedfghi\)/.\1/;
34516 s/\(jklmnopqrs\)/.1\1/;
34517 s/\(tuvwxyz\)/.2\1/;
34518 y/abcdefghijklmnopqrstuvwxyz/12345678901234567890123456/;'`
34523 for vsub1 in $asx_version_1; do
34524 vsub2=`echo "$asx_version_2" |awk -F. "{print \\\$$asx_count}"`
34525 if test -z "$vsub2" || test $vsub1 -gt $vsub2; then
34528 elif test $vsub1 -lt $vsub2; then
34531 asx_count=`expr $asx_count + 1`
34534 if test $asx_retval -eq -1; then
34535 if test "x$with_external_zlib" = xno; then
34536 { echo "$as_me:$LINENO: WARNING: Found external ZLIB with a more recent version than the
34537 package version ($ZLIB_VERSION > $LOCAL_ZLIB_VERSION). configure with the
34538 --with-external-zlib option to select the more recent version." >&5
34539 echo "$as_me: WARNING: Found external ZLIB with a more recent version than the
34540 package version ($ZLIB_VERSION > $LOCAL_ZLIB_VERSION). configure with the
34541 --with-external-zlib option to select the more recent version." >&2;}
34544 if test "x$with_external_zlib" != xno; then
34545 { echo "$as_me:$LINENO: WARNING: Package ZLIB is more recent than requested external version
34546 ($LOCAL_ZLIB_VERSION > $ZLIB_VERSION). configure with the --without-external-zlib
34547 option to select the more recent version." >&5
34548 echo "$as_me: WARNING: Package ZLIB is more recent than requested external version
34549 ($LOCAL_ZLIB_VERSION > $ZLIB_VERSION). configure with the --without-external-zlib
34550 option to select the more recent version." >&2;}
34559 # Now set with_external_zlib to our discovered value or the user specified
34560 # value, as appropriate.
34561 if test x$with_external_zlib = xyes; then
34562 with_external_zlib=$acx_zlib_cv_external_zlib
34564 # $with_external_zlib could still be "no"
34568 # Set up ZLIB includes for later use.
34570 if test x$with_external_zlib != xyes \
34571 && test x$with_external_zlib != no; then
34572 if test -z "$CPPFLAGS"; then
34573 CPPFLAGS="-I$with_external_zlib/include"
34575 CPPFLAGS="$CPPFLAGS -I$with_external_zlib/include"
34577 if test -z "$LDFLAGS"; then
34578 LDFLAGS="-L$with_external_zlib/lib"
34580 LDFLAGS="$LDFLAGS -L$with_external_zlib/lib"
34587 if test x$with_external_zlib = xno; then
34588 # We need ZLIB_CPPFLAGS so that later executions of cpp from configure
34589 # don't try to interpret $(top_srcdir)
34590 ZLIB_CPPFLAGS='-I$(top_srcdir)/zlib'
34591 ZLIB_LIBS='$(top_builddir)/zlib/libz.a'
34592 # ZLIB_SUBDIRS is only used in the top level Makefiles.
34595 # We know what to do now, so set up the CPPFLAGS, LDFLAGS, and LIBS for later
34597 if test -z "$LIBS"; then
34604 # Verify external installed zlib works
34606 # Ideally, we would also check that the version is newer
34608 echo "$as_me:$LINENO: checking that ZLIB library works" >&5
34609 echo $ECHO_N "checking that ZLIB library works... $ECHO_C" >&6
34610 cat >conftest.$ac_ext <<_ACEOF
34613 cat confdefs.h >>conftest.$ac_ext
34614 cat >>conftest.$ac_ext <<_ACEOF
34615 /* end confdefs.h. */
34620 int i = Z_OK; const char *version = zlibVersion();
34625 rm -f conftest.$ac_objext conftest$ac_exeext
34626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34627 (eval $ac_link) 2>conftest.er1
34629 grep -v '^ *+' conftest.er1 >conftest.err
34631 cat conftest.err >&5
34632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34633 (exit $ac_status); } &&
34634 { ac_try='test -z "$ac_c_werror_flag"
34635 || test ! -s conftest.err'
34636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34637 (eval $ac_try) 2>&5
34639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34640 (exit $ac_status); }; } &&
34641 { ac_try='test -s conftest$ac_exeext'
34642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34643 (eval $ac_try) 2>&5
34645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646 (exit $ac_status); }; }; then
34647 echo "$as_me:$LINENO: result: yes" >&5
34648 echo "${ECHO_T}yes" >&6
34650 echo "$as_me: failed program was:" >&5
34651 sed 's/^/| /' conftest.$ac_ext >&5
34653 echo "$as_me:$LINENO: result: no" >&5
34654 echo "${ECHO_T}no" >&6
34655 { { echo "$as_me:$LINENO: error: ZLIB failed to link" >&5
34656 echo "$as_me: error: ZLIB failed to link" >&2;}
34657 { (exit 1); exit 1; }; }
34659 rm -f conftest.err conftest.$ac_objext \
34660 conftest$ac_exeext conftest.$ac_ext
34666 # What remote shell transport should our client cvs default to using?
34668 # Check whether --with-rsh or --without-rsh was given.
34669 if test "${with_rsh+set}" = set; then
34670 withval="$with_rsh"
34676 if test no = "$with_rsh"; then
34677 { echo "$as_me:$LINENO: WARNING: Failed to find usable remote shell. Using 'rsh'." >&5
34678 echo "$as_me: WARNING: Failed to find usable remote shell. Using 'rsh'." >&2;}
34680 elif test yes = "$with_rsh"; then
34681 # Make --with-rsh mean the same thing as --with-rsh=rsh
34685 if echo $with_rsh |grep ^/ >/dev/null; then
34686 # If $with_rsh is an absolute path, issue a warning if the executable
34687 # doesn't exist or isn't usable, but then trust the user and use it
34689 with_default_rsh=$with_rsh
34690 echo "$as_me:$LINENO: checking for a remote shell" >&5
34691 echo $ECHO_N "checking for a remote shell... $ECHO_C" >&6
34692 if ! test -f $with_rsh \
34693 || ! test -x $with_rsh; then
34694 # warn the user that they may encounter problems
34695 { echo "$as_me:$LINENO: WARNING: $with_rsh is not a path to an executable file" >&5
34696 echo "$as_me: WARNING: $with_rsh is not a path to an executable file" >&2;}
34699 # Search for a remote shell
34700 for ac_prog in $with_rsh
34702 # Extract the first word of "$ac_prog", so it can be a program name with args.
34703 set dummy $ac_prog; ac_word=$2
34704 echo "$as_me:$LINENO: checking for $ac_word" >&5
34705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34706 if test "${ac_cv_prog_with_default_rsh+set}" = set; then
34707 echo $ECHO_N "(cached) $ECHO_C" >&6
34709 if test -n "$with_default_rsh"; then
34710 ac_cv_prog_with_default_rsh="$with_default_rsh" # Let the user override the test.
34712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34713 for as_dir in $PATH
34716 test -z "$as_dir" && as_dir=.
34717 for ac_exec_ext in '' $ac_executable_extensions; do
34718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34719 ac_cv_prog_with_default_rsh="$ac_prog"
34720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34728 with_default_rsh=$ac_cv_prog_with_default_rsh
34729 if test -n "$with_default_rsh"; then
34730 echo "$as_me:$LINENO: result: $with_default_rsh" >&5
34731 echo "${ECHO_T}$with_default_rsh" >&6
34733 echo "$as_me:$LINENO: result: no" >&5
34734 echo "${ECHO_T}no" >&6
34737 test -n "$with_default_rsh" && break
34739 test -n "$with_default_rsh" || with_default_rsh=""rsh""
34744 cat >>confdefs.h <<_ACEOF
34745 #define RSH_DFLT "$with_default_rsh"
34748 RSH_DFLT=$with_default_rsh
34754 # Let the confiscator request a specific editor
34756 # Check whether --with-editor or --without-editor was given.
34757 if test "${with_editor+set}" = set; then
34758 withval="$with_editor"
34764 # If --with-editor was supplied with an argument, let it override $EDITOR from
34765 # the user's environment. We need to unset EDITOR here because AC_CHECK_PROGS
34766 # will let the value of EDITOR ride when it is set rather than searching. We
34767 # ignore the --without-editor case since it will be caught below.
34768 if test -n "$EDITOR" && test yes != $with_editor; then
34769 $as_unset EDITOR || test "${EDITOR+set}" != set || { EDITOR=; export EDITOR; }
34772 # Set the default when --with-editor wasn't supplied or when it was supplied
34773 # without an argument.
34774 if test yes = $with_editor; then
34775 with_editor="vim vi emacs nano pico edit"
34778 if echo $with_editor |grep ^/ >/dev/null; then
34779 # If $with_editor is an absolute path, issue a warning if the executable
34780 # doesn't exist or isn't usable, but then trust the user and use it
34782 EDITOR=$with_editor
34783 echo "$as_me:$LINENO: checking for an editor" >&5
34784 echo $ECHO_N "checking for an editor... $ECHO_C" >&6
34785 echo "$as_me:$LINENO: result: $EDITOR" >&5
34786 echo "${ECHO_T}$EDITOR" >&6
34787 if ! test -f $with_editor \
34788 || ! test -x $with_editor; then
34789 # warn the user that they may encounter problems
34790 { echo "$as_me:$LINENO: WARNING: \`$with_editor' is not a path to an executable file" >&5
34791 echo "$as_me: WARNING: \`$with_editor' is not a path to an executable file" >&2;}
34793 elif test no != "${with_editor}"; then
34794 # Search for an editor
34795 for ac_prog in $with_editor
34797 # Extract the first word of "$ac_prog", so it can be a program name with args.
34798 set dummy $ac_prog; ac_word=$2
34799 echo "$as_me:$LINENO: checking for $ac_word" >&5
34800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34801 if test "${ac_cv_prog_EDITOR+set}" = set; then
34802 echo $ECHO_N "(cached) $ECHO_C" >&6
34804 if test -n "$EDITOR"; then
34805 ac_cv_prog_EDITOR="$EDITOR" # Let the user override the test.
34807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34808 for as_dir in $PATH
34811 test -z "$as_dir" && as_dir=.
34812 for ac_exec_ext in '' $ac_executable_extensions; do
34813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34814 ac_cv_prog_EDITOR="$ac_prog"
34815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34823 EDITOR=$ac_cv_prog_EDITOR
34824 if test -n "$EDITOR"; then
34825 echo "$as_me:$LINENO: result: $EDITOR" >&5
34826 echo "${ECHO_T}$EDITOR" >&6
34828 echo "$as_me:$LINENO: result: no" >&5
34829 echo "${ECHO_T}no" >&6
34832 test -n "$EDITOR" && break
34834 test -n "$EDITOR" || EDITOR="no"
34836 if test no = "${EDITOR}"; then
34837 { { echo "$as_me:$LINENO: error:
34838 Failed to find a text file editor. CVS cannot be compiled
34839 without a default log message editor. Searched for
34840 \`$with_editor'. Try \`configure --with-editor'." >&5
34841 echo "$as_me: error:
34842 Failed to find a text file editor. CVS cannot be compiled
34843 without a default log message editor. Searched for
34844 \`$with_editor'. Try \`configure --with-editor'." >&2;}
34845 { (exit 1); exit 1; }; }
34848 { { echo "$as_me:$LINENO: error:
34849 CVS cannot be compiled without a default log message editor.
34850 Try \`configure --with-editor'." >&5
34851 echo "$as_me: error:
34852 CVS cannot be compiled without a default log message editor.
34853 Try \`configure --with-editor'." >&2;}
34854 { (exit 1); exit 1; }; }
34858 cat >>confdefs.h <<_ACEOF
34859 #define EDITOR_DFLT "$EDITOR"
34867 # Check whether --with-hardcoded-pam-service-name or --without-hardcoded-pam-service-name was given.
34868 if test "${with_hardcoded_pam_service_name+set}" = set; then
34869 withval="$with_hardcoded_pam_service_name"
34872 with_hardcoded_pam_service_name=cvs
34875 if test "x$with_hardcoded_pam_service_name" = xno ||
34876 test "x$with_hardcoded_pam_service_name" = xprogram_name; then
34878 cat >>confdefs.h <<\_ACEOF
34879 #define PAM_SERVICE_NAME program_name
34883 if test x"$with_hardcoded_pam_service_name" = xyes; then
34884 with_hardcoded_pam_service_name=cvs
34886 cat >>confdefs.h <<_ACEOF
34887 #define PAM_SERVICE_NAME "$with_hardcoded_pam_service_name"
34895 # Check whether --with-tmpdir or --without-tmpdir was given.
34896 if test "${with_tmpdir+set}" = set; then
34897 withval="$with_tmpdir"
34901 echo "$as_me:$LINENO: checking for temporary directory" >&5
34902 echo $ECHO_N "checking for temporary directory... $ECHO_C" >&6
34903 if test -z "$with_tmpdir" || test yes = "$with_tmpdir"; then
34904 for with_tmpdir in /tmp /var/tmp no; do
34905 if test -d "$with_tmpdir" && test -x "$with_tmpdir" \
34906 && test -w "$with_tmpdir" && test -r "$with_tmpdir"; then
34910 if test no = "$with_tmpdir"; then
34911 { echo "$as_me:$LINENO: WARNING: Failed to find usable temporary directory. Using '/tmp'." >&5
34912 echo "$as_me: WARNING: Failed to find usable temporary directory. Using '/tmp'." >&2;}
34915 echo "$as_me:$LINENO: result: $with_tmpdir" >&5
34916 echo "${ECHO_T}$with_tmpdir" >&6
34917 elif ! echo "$with_tmpdir" |grep '^[\\/]'; then
34918 echo "$as_me:$LINENO: result: $with_tmpdir" >&5
34919 echo "${ECHO_T}$with_tmpdir" >&6
34920 { { echo "$as_me:$LINENO: error: --with-tmpdir requires an absolute path." >&5
34921 echo "$as_me: error: --with-tmpdir requires an absolute path." >&2;}
34922 { (exit 1); exit 1; }; }
34923 elif ! test -d "$with_tmpdir" || ! test -x "$with_tmpdir" \
34924 || ! test -w "$with_tmpdir" || ! test -r "$with_tmpdir"; then
34925 echo "$as_me:$LINENO: result: $with_tmpdir" >&5
34926 echo "${ECHO_T}$with_tmpdir" >&6
34927 { echo "$as_me:$LINENO: WARNING: User supplied temporary directory ('$with_tmpdir') does not
34928 exist or lacks sufficient permissions for read/write." >&5
34929 echo "$as_me: WARNING: User supplied temporary directory ('$with_tmpdir') does not
34930 exist or lacks sufficient permissions for read/write." >&2;}
34934 cat >>confdefs.h <<_ACEOF
34935 #define TMPDIR_DFLT "$with_tmpdir"
34943 # Check whether --with-umask or --without-umask was given.
34944 if test "${with_umask+set}" = set; then
34945 withval="$with_umask"
34949 if test -z "$with_umask" || test yes = "$with_umask"; then
34951 elif test no = "$with_umask"; then
34956 cat >>confdefs.h <<_ACEOF
34957 #define UMASK_DFLT $with_umask
34963 # Check whether --with-cvs-admin-group or --without-cvs-admin-group was given.
34964 if test "${with_cvs_admin_group+set}" = set; then
34965 withval="$with_cvs_admin_group"
34968 with_cvs_admin_group=cvsadmin
34971 if test yes = "$with_cvs_admin_group"; then
34972 with_cvs_admin_group=cvsadmin
34974 if test no != "$with_cvs_admin_group"; then
34976 cat >>confdefs.h <<_ACEOF
34977 #define CVS_ADMIN_GROUP "$with_cvs_admin_group"
34983 # Check whether --enable-cvs-ndbm or --disable-cvs-ndbm was given.
34984 if test "${enable_cvs_ndbm+set}" = set; then
34985 enableval="$enable_cvs_ndbm"
34988 enable_cvs_ndbm=yes
34990 if test no != "$enable_cvs_ndbm"; then
34992 cat >>confdefs.h <<\_ACEOF
35006 # Check for options requesting client and server feature. If none are
35007 # given and we have connect(), we want the full client & server arrangement.
35008 # Check whether --enable-client or --disable-client was given.
35009 if test "${enable_client+set}" = set; then
35010 enableval="$enable_client"
35013 if test "$ac_cv_search_connect" != no; then
35017 if test no != "$enable_client"; then
35019 cat >>confdefs.h <<\_ACEOF
35020 #define CLIENT_SUPPORT 1
35027 # Check whether --enable-password-authenticated-client or --disable-password-authenticated-client was given.
35028 if test "${enable_password_authenticated_client+set}" = set; then
35029 enableval="$enable_password_authenticated_client"
35033 if test no != "$enable_password_authenticated_client"; then
35034 if test no != "$enable_client"; then
35036 cat >>confdefs.h <<\_ACEOF
35037 #define AUTH_CLIENT_SUPPORT 1
35041 { echo "$as_me:$LINENO: WARNING: --enable-password-authenticated-client is meaningless with
35042 the CVS client disabled (--disable-client)" >&5
35043 echo "$as_me: WARNING: --enable-password-authenticated-client is meaningless with
35044 the CVS client disabled (--disable-client)" >&2;}
35051 # Check whether --enable-server or --disable-server was given.
35052 if test "${enable_server+set}" = set; then
35053 enableval="$enable_server"
35056 if test "$ac_cv_search_connect" != no; then
35061 if test no != "$enable_server"; then
35063 cat >>confdefs.h <<\_ACEOF
35064 #define SERVER_SUPPORT 1
35068 echo "$as_me:$LINENO: checking for library containing crypt" >&5
35069 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
35070 if test "${ac_cv_search_crypt+set}" = set; then
35071 echo $ECHO_N "(cached) $ECHO_C" >&6
35073 ac_func_search_save_LIBS=$LIBS
35074 ac_cv_search_crypt=no
35075 cat >conftest.$ac_ext <<_ACEOF
35078 cat confdefs.h >>conftest.$ac_ext
35079 cat >>conftest.$ac_ext <<_ACEOF
35080 /* end confdefs.h. */
35082 /* Override any gcc2 internal prototype to avoid an error. */
35086 /* We use char because int might match the return type of a gcc2
35087 builtin and then its argument prototype would still apply. */
35097 rm -f conftest.$ac_objext conftest$ac_exeext
35098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35099 (eval $ac_link) 2>conftest.er1
35101 grep -v '^ *+' conftest.er1 >conftest.err
35103 cat conftest.err >&5
35104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 (exit $ac_status); } &&
35106 { ac_try='test -z "$ac_c_werror_flag"
35107 || test ! -s conftest.err'
35108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35109 (eval $ac_try) 2>&5
35111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35112 (exit $ac_status); }; } &&
35113 { ac_try='test -s conftest$ac_exeext'
35114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35115 (eval $ac_try) 2>&5
35117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118 (exit $ac_status); }; }; then
35119 ac_cv_search_crypt="none required"
35121 echo "$as_me: failed program was:" >&5
35122 sed 's/^/| /' conftest.$ac_ext >&5
35125 rm -f conftest.err conftest.$ac_objext \
35126 conftest$ac_exeext conftest.$ac_ext
35127 if test "$ac_cv_search_crypt" = no; then
35128 for ac_lib in crypt; do
35129 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
35130 cat >conftest.$ac_ext <<_ACEOF
35133 cat confdefs.h >>conftest.$ac_ext
35134 cat >>conftest.$ac_ext <<_ACEOF
35135 /* end confdefs.h. */
35137 /* Override any gcc2 internal prototype to avoid an error. */
35141 /* We use char because int might match the return type of a gcc2
35142 builtin and then its argument prototype would still apply. */
35152 rm -f conftest.$ac_objext conftest$ac_exeext
35153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35154 (eval $ac_link) 2>conftest.er1
35156 grep -v '^ *+' conftest.er1 >conftest.err
35158 cat conftest.err >&5
35159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35160 (exit $ac_status); } &&
35161 { ac_try='test -z "$ac_c_werror_flag"
35162 || test ! -s conftest.err'
35163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35164 (eval $ac_try) 2>&5
35166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167 (exit $ac_status); }; } &&
35168 { ac_try='test -s conftest$ac_exeext'
35169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35170 (eval $ac_try) 2>&5
35172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173 (exit $ac_status); }; }; then
35174 ac_cv_search_crypt="-l$ac_lib"
35177 echo "$as_me: failed program was:" >&5
35178 sed 's/^/| /' conftest.$ac_ext >&5
35181 rm -f conftest.err conftest.$ac_objext \
35182 conftest$ac_exeext conftest.$ac_ext
35185 LIBS=$ac_func_search_save_LIBS
35187 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
35188 echo "${ECHO_T}$ac_cv_search_crypt" >&6
35189 if test "$ac_cv_search_crypt" != no; then
35190 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
35192 cat >>confdefs.h <<\_ACEOF
35193 #define HAVE_CRYPT 1
35197 cat >>confdefs.h <<\_ACEOF
35198 #define AUTH_SERVER_SUPPORT 1
35203 # Check whether --enable-server-flow-control or --disable-server-flow-control was given.
35204 if test "${enable_server_flow_control+set}" = set; then
35205 enableval="$enable_server_flow_control"
35206 if test yes = $enable_server_flow_control; then
35207 enable_server_flow_control=1M,2M
35210 enable_server_flow_control=1M,2M
35212 if test no != $enable_server_flow_control; then
35213 ccvs_lwm=`expr "$enable_server_flow_control" : '\(.*\),'`
35214 ccvs_hwm=`expr "$enable_server_flow_control" : '.*,\(.*\)'`
35215 ccvs_lwm_E=`expr "$ccvs_lwm" : '[0-9][0-9]*\(.*\)'`
35216 ccvs_lwm=`expr "$ccvs_lwm" : '\([0-9][0-9]*\)'`
35217 test "" != "$ccvs_lwm" || ccvs_lwm_E="?"
35218 case $ccvs_lwm_E in
35219 G) ccvs_lwm="$ccvs_lwm * 1024 * 1024 * 1024";;
35220 M) ccvs_lwm="$ccvs_lwm * 1024 * 1024";;
35221 k) ccvs_lwm="$ccvs_lwm * 1024";;
35223 *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
35224 ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
35225 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
35226 ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
35227 { (exit 1); exit 1; }; }
35229 ccvs_hwm_E=`expr "$ccvs_hwm" : '[0-9][0-9]*\(.*\)'`
35230 ccvs_hwm=`expr "$ccvs_hwm" : '\([0-9][0-9]*\).*'`
35231 test "" != "$ccvs_hwm" || ccvs_hwm_E="?"
35232 case $ccvs_hwm_E in
35233 G) ccvs_hwm="$ccvs_hwm * 1024 * 1024 * 1024";;
35234 M) ccvs_hwm="$ccvs_hwm * 1024 * 1024";;
35235 k) ccvs_hwm="$ccvs_hwm * 1024";;
35236 b | '') ccvs_hwm="$ccvs_hwm";;
35237 *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
35238 ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
35239 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
35240 ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
35241 { (exit 1); exit 1; }; }
35245 cat >>confdefs.h <<\_ACEOF
35246 #define SERVER_FLOWCONTROL 1
35250 cat >>confdefs.h <<_ACEOF
35251 #define SERVER_LO_WATER ($ccvs_lwm)
35255 cat >>confdefs.h <<_ACEOF
35256 #define SERVER_HI_WATER ($ccvs_hwm)
35259 fi # enable_server_flow_control
35265 # Check whether --enable-proxy or --disable-proxy was given.
35266 if test "${enable_proxy+set}" = set; then
35267 enableval="$enable_proxy"
35273 if test no != "$enable_proxy"; then
35275 cat >>confdefs.h <<\_ACEOF
35276 #define PROXY_SUPPORT 1
35283 # Check whether --enable-pam or --disable-pam was given.
35284 if test "${enable_pam+set}" = set; then
35285 enableval="$enable_pam"
35292 if test yes = $enable_pam; then
35293 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
35294 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
35295 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
35296 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
35297 echo $ECHO_N "(cached) $ECHO_C" >&6
35299 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
35300 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
35302 # Is the header compilable?
35303 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
35304 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
35305 cat >conftest.$ac_ext <<_ACEOF
35308 cat confdefs.h >>conftest.$ac_ext
35309 cat >>conftest.$ac_ext <<_ACEOF
35310 /* end confdefs.h. */
35311 $ac_includes_default
35312 #include <security/pam_appl.h>
35314 rm -f conftest.$ac_objext
35315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35316 (eval $ac_compile) 2>conftest.er1
35318 grep -v '^ *+' conftest.er1 >conftest.err
35320 cat conftest.err >&5
35321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35322 (exit $ac_status); } &&
35323 { ac_try='test -z "$ac_c_werror_flag"
35324 || test ! -s conftest.err'
35325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35326 (eval $ac_try) 2>&5
35328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35329 (exit $ac_status); }; } &&
35330 { ac_try='test -s conftest.$ac_objext'
35331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35332 (eval $ac_try) 2>&5
35334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35335 (exit $ac_status); }; }; then
35336 ac_header_compiler=yes
35338 echo "$as_me: failed program was:" >&5
35339 sed 's/^/| /' conftest.$ac_ext >&5
35341 ac_header_compiler=no
35343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35345 echo "${ECHO_T}$ac_header_compiler" >&6
35347 # Is the header present?
35348 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
35349 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
35350 cat >conftest.$ac_ext <<_ACEOF
35353 cat confdefs.h >>conftest.$ac_ext
35354 cat >>conftest.$ac_ext <<_ACEOF
35355 /* end confdefs.h. */
35356 #include <security/pam_appl.h>
35358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35361 grep -v '^ *+' conftest.er1 >conftest.err
35363 cat conftest.err >&5
35364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35365 (exit $ac_status); } >/dev/null; then
35366 if test -s conftest.err; then
35367 ac_cpp_err=$ac_c_preproc_warn_flag
35368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35375 if test -z "$ac_cpp_err"; then
35376 ac_header_preproc=yes
35378 echo "$as_me: failed program was:" >&5
35379 sed 's/^/| /' conftest.$ac_ext >&5
35381 ac_header_preproc=no
35383 rm -f conftest.err conftest.$ac_ext
35384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35385 echo "${ECHO_T}$ac_header_preproc" >&6
35387 # So? What about this header?
35388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35390 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
35391 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35392 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&5
35393 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&2;}
35394 ac_header_preproc=yes
35397 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
35398 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
35399 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
35400 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
35401 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: see the Autoconf documentation" >&5
35402 echo "$as_me: WARNING: security/pam_appl.h: see the Autoconf documentation" >&2;}
35403 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&5
35404 echo "$as_me: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&2;}
35405 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
35406 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
35407 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&5
35408 echo "$as_me: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&2;}
35411 ## ------------------------------ ##
35412 ## Report this to bug-cvs@gnu.org ##
35413 ## ------------------------------ ##
35416 sed "s/^/$as_me: WARNING: /" >&2
35419 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
35420 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
35421 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
35422 echo $ECHO_N "(cached) $ECHO_C" >&6
35424 ac_cv_header_security_pam_appl_h=$ac_header_preproc
35426 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
35427 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
35430 if test $ac_cv_header_security_pam_appl_h = yes; then
35432 cat >>confdefs.h <<\_ACEOF
35436 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
35437 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
35438 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
35439 echo $ECHO_N "(cached) $ECHO_C" >&6
35441 ac_check_lib_save_LIBS=$LIBS
35443 cat >conftest.$ac_ext <<_ACEOF
35446 cat confdefs.h >>conftest.$ac_ext
35447 cat >>conftest.$ac_ext <<_ACEOF
35448 /* end confdefs.h. */
35450 /* Override any gcc2 internal prototype to avoid an error. */
35454 /* We use char because int might match the return type of a gcc2
35455 builtin and then its argument prototype would still apply. */
35465 rm -f conftest.$ac_objext conftest$ac_exeext
35466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35467 (eval $ac_link) 2>conftest.er1
35469 grep -v '^ *+' conftest.er1 >conftest.err
35471 cat conftest.err >&5
35472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35473 (exit $ac_status); } &&
35474 { ac_try='test -z "$ac_c_werror_flag"
35475 || test ! -s conftest.err'
35476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35477 (eval $ac_try) 2>&5
35479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35480 (exit $ac_status); }; } &&
35481 { ac_try='test -s conftest$ac_exeext'
35482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35483 (eval $ac_try) 2>&5
35485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486 (exit $ac_status); }; }; then
35487 ac_cv_lib_pam_pam_start=yes
35489 echo "$as_me: failed program was:" >&5
35490 sed 's/^/| /' conftest.$ac_ext >&5
35492 ac_cv_lib_pam_pam_start=no
35494 rm -f conftest.err conftest.$ac_objext \
35495 conftest$ac_exeext conftest.$ac_ext
35496 LIBS=$ac_check_lib_save_LIBS
35498 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
35499 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
35500 if test $ac_cv_lib_pam_pam_start = yes; then
35501 LIBS="${LIBS} -lpam"
35503 { { echo "$as_me:$LINENO: error: Could not find PAM libraries but the headers exist.
35504 Give the --disable-pam option to compile without PAM support (or fix
35505 your broken configuration)" >&5
35506 echo "$as_me: error: Could not find PAM libraries but the headers exist.
35507 Give the --disable-pam option to compile without PAM support (or fix
35508 your broken configuration)" >&2;}
35509 { (exit 1); exit 1; }; }
35514 { { echo "$as_me:$LINENO: error: Could not find PAM headers" >&5
35515 echo "$as_me: error: Could not find PAM headers" >&2;}
35516 { (exit 1); exit 1; }; }
35526 # Check whether --enable-case-sensitivity or --disable-case-sensitivity was given.
35527 if test "${enable_case_sensitivity+set}" = set; then
35528 enableval="$enable_case_sensitivity"
35529 case "$enable_case_sensitivity" in
35530 yes | no | auto) ;;
35532 { { echo "$as_me:$LINENO: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'. Acceptable values are \`yes', \`no', and \`auto'." >&5
35533 echo "$as_me: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'. Acceptable values are \`yes', \`no', and \`auto'." >&2;}
35534 { (exit 1); exit 1; }; }
35538 enable_case_sensitivity=auto
35541 acx_forced=' (forced)'
35542 echo "$as_me:$LINENO: checking for a case sensitive file system" >&5
35543 echo $ECHO_N "checking for a case sensitive file system... $ECHO_C" >&6
35544 if test $enable_case_sensitivity = auto; then
35545 if test "${acx_cv_case_sensitive+set}" = set; then
35546 echo $ECHO_N "(cached) $ECHO_C" >&6
35548 rm -f ac_TEST_filenames_CASE_sensitive
35549 echo foo >ac_test_filenames_case_sensitive
35550 if test -f ac_TEST_filenames_CASE_sensitive; then
35551 acx_cv_case_sensitive=no
35553 acx_cv_case_sensitive=yes
35555 rm ac_test_filenames_case_sensitive
35559 enable_case_sensitivity=$acx_cv_case_sensitive
35562 echo "$as_me:$LINENO: result: $enable_case_sensitivity$acx_forced" >&5
35563 echo "${ECHO_T}$enable_case_sensitivity$acx_forced" >&6
35564 if test $enable_case_sensitivity = no; then
35566 cat >>confdefs.h <<\_ACEOF
35567 #define FILENAMES_CASE_INSENSITIVE 1
35571 "fncase.$ac_objext" | \
35572 *" fncase.$ac_objext" | \
35573 "fncase.$ac_objext "* | \
35574 *" fncase.$ac_objext "* ) ;;
35575 *) LIBOBJS="$LIBOBJS fncase.$ac_objext" ;;
35583 # Check whether --enable-encryption or --disable-encryption was given.
35584 if test "${enable_encryption+set}" = set; then
35585 enableval="$enable_encryption"
35588 enable_encryption=no
35590 if test "$enable_encryption" = yes; then
35591 if test no != "$with_client" || test no != "$with_server"; then
35593 cat >>confdefs.h <<\_ACEOF
35594 #define ENCRYPTION 1
35598 { echo "$as_me:$LINENO: WARNING: --enable-encryption is meaningless when neither the CVS client
35599 nor the CVS server is enabled (--disable-client and --disable-server)." >&5
35600 echo "$as_me: WARNING: --enable-encryption is meaningless when neither the CVS client
35601 nor the CVS server is enabled (--disable-client and --disable-server)." >&2;}
35608 # Check whether --enable-force-editor or --disable-force-editor was given.
35609 if test "${enable_force_editor+set}" = set; then
35610 enableval="$enable_force_editor"
35613 enable_force_editor=no
35616 if test yes = "$enable_force_editor"; then
35618 cat >>confdefs.h <<\_ACEOF
35619 #define FORCE_USE_EDITOR 1
35627 # Check for options requesting client and server feature. If none are
35628 # given and we have connect(), we want the full client & server arrangement.
35629 # Check whether --enable-lock-compatibility or --disable-lock-compatibility was given.
35630 if test "${enable_lock_compatibility+set}" = set; then
35631 enableval="$enable_lock_compatibility"
35634 enable_lock_compatibility=yes
35637 if test x$enable_lock_compatibility = xyes; then
35639 cat >>confdefs.h <<\_ACEOF
35640 #define LOCK_COMPATIBILITY 1
35648 # Check whether --enable-rootcommit or --disable-rootcommit was given.
35649 if test "${enable_rootcommit+set}" = set; then
35650 enableval="$enable_rootcommit"
35653 enable_rootcommit=no
35655 if test "$enable_rootcommit" = no; then
35657 cat >>confdefs.h <<\_ACEOF
35658 #define CVS_BADROOT 1
35664 # Check whether --enable-old-info-support or --disable-old-info-support was given.
35665 if test "${enable_old_info_support+set}" = set; then
35666 enableval="$enable_old_info_support"
35669 enable_old_info_format_support=yes
35671 if test "$enable_old_info_format_support" = yes; then
35673 cat >>confdefs.h <<\_ACEOF
35674 #define SUPPORT_OLD_INFO_FMT_STRINGS 1
35686 echo "$as_me:$LINENO: checking for cygwin32" >&5
35687 echo $ECHO_N "checking for cygwin32... $ECHO_C" >&6
35688 if test "${ccvs_cv_sys_cygwin32+set}" = set; then
35689 echo $ECHO_N "(cached) $ECHO_C" >&6
35691 cat >conftest.$ac_ext <<_ACEOF
35694 cat confdefs.h >>conftest.$ac_ext
35695 cat >>conftest.$ac_ext <<_ACEOF
35696 /* end confdefs.h. */
35701 return __CYGWIN32__;
35706 rm -f conftest.$ac_objext
35707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35708 (eval $ac_compile) 2>conftest.er1
35710 grep -v '^ *+' conftest.er1 >conftest.err
35712 cat conftest.err >&5
35713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35714 (exit $ac_status); } &&
35715 { ac_try='test -z "$ac_c_werror_flag"
35716 || test ! -s conftest.err'
35717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35718 (eval $ac_try) 2>&5
35720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35721 (exit $ac_status); }; } &&
35722 { ac_try='test -s conftest.$ac_objext'
35723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35724 (eval $ac_try) 2>&5
35726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35727 (exit $ac_status); }; }; then
35728 ccvs_cv_sys_cygwin32=yes
35730 echo "$as_me: failed program was:" >&5
35731 sed 's/^/| /' conftest.$ac_ext >&5
35733 ccvs_cv_sys_cygwin32=no
35735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35737 echo "$as_me:$LINENO: result: $ccvs_cv_sys_cygwin32" >&5
35738 echo "${ECHO_T}$ccvs_cv_sys_cygwin32" >&6
35739 if test $ccvs_cv_sys_cygwin32 = yes; then
35740 LIBS="$LIBS -ladvapi32"
35743 cat >>confdefs.h <<\_ACEOF
35744 #define UTIME_EXPECTS_WRITABLE 1
35749 cat >>confdefs.h <<\_ACEOF
35750 #define USE_SETMODE_STDOUT 1
35754 cat >>confdefs.h <<\_ACEOF
35755 #define HAVE_SETMODE 1
35760 ac_config_files="$ac_config_files contrib/validate_repo"
35762 ac_config_files="$ac_config_files contrib/clmerge"
35764 ac_config_files="$ac_config_files contrib/cln_hist"
35766 ac_config_files="$ac_config_files contrib/commit_prep"
35768 ac_config_files="$ac_config_files contrib/cvs_acls"
35770 ac_config_files="$ac_config_files contrib/log"
35772 ac_config_files="$ac_config_files contrib/log_accum"
35774 ac_config_files="$ac_config_files contrib/mfpipe"
35776 ac_config_files="$ac_config_files contrib/pvcs2rcs"
35778 ac_config_files="$ac_config_files contrib/rcs2log:contrib/rcs2log.sh"
35780 ac_config_files="$ac_config_files contrib/rcslock"
35782 ac_config_files="$ac_config_files contrib/sccs2rcs"
35784 ac_config_files="$ac_config_files doc/mkman:doc/mkman.pl"
35786 ac_config_files="$ac_config_files src/cvsbug"
35788 ac_config_files="$ac_config_files windows-NT/fix-msvc-mak:windows-NT/plhead.pl:windows-NT/fix-msvc-mak.pl"
35790 ac_config_files="$ac_config_files windows-NT/mkconfig:windows-NT/plhead.pl:windows-NT/mkconfig.pl"
35793 ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/pam/Makefile cvs.spec diff/Makefile doc/Makefile emx/Makefile lib/Makefile man/Makefile os2/Makefile src/Makefile src/sanity.config.sh tools/Makefile vms/Makefile windows-NT/Makefile windows-NT/SCC/Makefile zlib/Makefile"
35796 cat >confcache <<\_ACEOF
35797 # This file is a shell script that caches the results of configure
35798 # tests run on this system so they can be shared between configure
35799 # scripts and configure runs, see configure's option --config-cache.
35800 # It is not useful on other systems. If it contains results you don't
35801 # want to keep, you may remove or edit it.
35803 # config.status only pays attention to the cache file if you give it
35804 # the --recheck option to rerun configure.
35806 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35807 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35808 # following values.
35812 # The following way of writing the cache mishandles newlines in values,
35813 # but we know of no workaround that is simple, portable, and efficient.
35814 # So, don't put newlines in cache variables' values.
35815 # Ultrix sh set writes to stderr and can't be redirected directly,
35816 # and sets the high bit in the cache file unless we assign to the vars.
35819 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35821 # `set' does not quote correctly, so add quotes (double-quote
35822 # substitution turns \\\\ into \\, and sed turns \\ into \).
35825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35828 # `set' quotes correctly as required by POSIX, so do not add quotes.
35830 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35837 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35839 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35841 if diff $cache_file confcache >/dev/null 2>&1; then :; else
35842 if test -w $cache_file; then
35843 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35844 cat confcache >$cache_file
35846 echo "not updating unwritable cache $cache_file"
35851 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35852 # Let make expand exec_prefix.
35853 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35855 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35856 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35857 # trailing colons and then remove the whole line if VPATH becomes empty
35858 # (actually we leave an empty line to preserve line numbers).
35859 if test "x$srcdir" = x.; then
35860 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35861 s/:*\$(srcdir):*/:/;
35862 s/:*\${srcdir}:*/:/;
35864 s/^\([^=]*=[ ]*\):*/\1/;
35870 DEFS=-DHAVE_CONFIG_H
35874 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35875 # 1. Remove the extension, and $U if already installed.
35876 ac_i=`echo "$ac_i" |
35877 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35879 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35880 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35882 LIBOBJS=$ac_libobjs
35884 LTLIBOBJS=$ac_ltlibobjs
35887 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
35888 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
35889 Usually this means the macro was only invoked conditionally." >&5
35890 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
35891 Usually this means the macro was only invoked conditionally." >&2;}
35892 { (exit 1); exit 1; }; }
35894 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35895 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
35896 Usually this means the macro was only invoked conditionally." >&5
35897 echo "$as_me: error: conditional \"AMDEP\" was never defined.
35898 Usually this means the macro was only invoked conditionally." >&2;}
35899 { (exit 1); exit 1; }; }
35901 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35902 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
35903 Usually this means the macro was only invoked conditionally." >&5
35904 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
35905 Usually this means the macro was only invoked conditionally." >&2;}
35906 { (exit 1); exit 1; }; }
35908 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35909 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
35910 Usually this means the macro was only invoked conditionally." >&5
35911 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
35912 Usually this means the macro was only invoked conditionally." >&2;}
35913 { (exit 1); exit 1; }; }
35915 if test -z "${MAKE_TARGETS_IN_VPATH_TRUE}" && test -z "${MAKE_TARGETS_IN_VPATH_FALSE}"; then
35916 { { echo "$as_me:$LINENO: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
35917 Usually this means the macro was only invoked conditionally." >&5
35918 echo "$as_me: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
35919 Usually this means the macro was only invoked conditionally." >&2;}
35920 { (exit 1); exit 1; }; }
35923 : ${CONFIG_STATUS=./config.status}
35924 ac_clean_files_save=$ac_clean_files
35925 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35926 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35927 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35928 cat >$CONFIG_STATUS <<_ACEOF
35930 # Generated by $as_me.
35931 # Run this file to recreate the current configuration.
35932 # Compiler output produced by configure, useful for debugging
35933 # configure, is in config.log if it exists.
35936 ac_cs_recheck=false
35938 SHELL=\${CONFIG_SHELL-$SHELL}
35941 cat >>$CONFIG_STATUS <<\_ACEOF
35942 ## --------------------- ##
35943 ## M4sh Initialization. ##
35944 ## --------------------- ##
35946 # Be Bourne compatible
35947 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35950 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35951 # is contrary to our usage. Disable this feature.
35952 alias -g '${1+"$@"}'='"$@"'
35953 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35956 DUALCASE=1; export DUALCASE # for MKS sh
35958 # Support unset when possible.
35959 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35966 # Work around bugs in pre-3.0 UWIN ksh.
35967 $as_unset ENV MAIL MAILPATH
35974 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35975 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35976 LC_TELEPHONE LC_TIME
35978 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35979 eval $as_var=C; export $as_var
35985 # Required to use basename.
35986 if expr a : '\(a\)' >/dev/null 2>&1; then
35992 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
35993 as_basename=basename
35999 # Name of the executable.
36000 as_me=`$as_basename "$0" ||
36001 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36002 X"$0" : 'X\(//\)$' \| \
36003 X"$0" : 'X\(/\)$' \| \
36004 . : '\(.\)' 2>/dev/null ||
36006 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
36007 /^X\/\(\/\/\)$/{ s//\1/; q; }
36008 /^X\/\(\/\).*/{ s//\1/; q; }
36012 # PATH needs CR, and LINENO needs CR and PATH.
36013 # Avoid depending upon Character Ranges.
36014 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36015 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36016 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36017 as_cr_digits='0123456789'
36018 as_cr_alnum=$as_cr_Letters$as_cr_digits
36020 # The user is always right.
36021 if test "${PATH_SEPARATOR+set}" != set; then
36022 echo "#! /bin/sh" >conf$$.sh
36023 echo "exit 0" >>conf$$.sh
36025 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36034 as_lineno_1=$LINENO
36035 as_lineno_2=$LINENO
36036 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36037 test "x$as_lineno_1" != "x$as_lineno_2" &&
36038 test "x$as_lineno_3" = "x$as_lineno_2" || {
36039 # Find who we are. Look in the path if we contain no path at all
36042 *[\\/]* ) as_myself=$0 ;;
36043 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36044 for as_dir in $PATH
36047 test -z "$as_dir" && as_dir=.
36048 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36053 # We did not find ourselves, most probably we were run as `sh COMMAND'
36054 # in which case we are not to be found in the path.
36055 if test "x$as_myself" = x; then
36058 if test ! -f "$as_myself"; then
36059 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
36060 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
36061 { (exit 1); exit 1; }; }
36063 case $CONFIG_SHELL in
36065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36066 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
36069 test -z "$as_dir" && as_dir=.
36070 for as_base in sh bash ksh sh5; do
36073 if ("$as_dir/$as_base" -c '
36074 as_lineno_1=$LINENO
36075 as_lineno_2=$LINENO
36076 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36077 test "x$as_lineno_1" != "x$as_lineno_2" &&
36078 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
36079 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
36080 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
36081 CONFIG_SHELL=$as_dir/$as_base
36082 export CONFIG_SHELL
36083 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
36091 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36092 # uniformly replaced by the line number. The first 'sed' inserts a
36093 # line-number line before each line; the second 'sed' does the real
36094 # work. The second script uses 'N' to pair each line-number line
36095 # with the numbered line, and appends trailing '-' during
36096 # substitution so that $LINENO is not a special case at line end.
36097 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
36098 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
36099 sed '=' <$as_myself |
36104 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
36107 s,^['$as_cr_digits']*\n,,
36108 ' >$as_me.lineno &&
36109 chmod +x $as_me.lineno ||
36110 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
36111 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
36112 { (exit 1); exit 1; }; }
36114 # Don't try to exec as it changes $[0], causing all sort of problems
36115 # (the dirname of $[0] is not the place where we might find the
36116 # original and so on. Autoconf is especially sensible to this).
36118 # Exit status is that of the last command.
36123 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
36124 *c*,-n*) ECHO_N= ECHO_C='
36126 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
36127 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
36130 if expr a : '\(a\)' >/dev/null 2>&1; then
36136 rm -f conf$$ conf$$.exe conf$$.file
36138 if ln -s conf$$.file conf$$ 2>/dev/null; then
36139 # We could just check for DJGPP; but this test a) works b) is more generic
36140 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
36141 if test -f conf$$.exe; then
36142 # Don't use ln at all; we don't have any links
36147 elif ln conf$$.file conf$$ 2>/dev/null; then
36152 rm -f conf$$ conf$$.exe conf$$.file
36154 if mkdir -p . 2>/dev/null; then
36157 test -d ./-p && rmdir ./-p
36161 as_executable_p="test -f"
36163 # Sed expression to map a string onto a valid CPP name.
36164 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36166 # Sed expression to map a string onto a valid variable name.
36167 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36171 # We need space, tab and new line, in precisely that order.
36181 # Open the log real soon, to keep \$[0] and so on meaningful, and to
36182 # report actual input values of CONFIG_FILES etc. instead of their
36183 # values after options handling. Logging --version etc. is OK.
36187 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36188 ## Running $as_me. ##
36193 This file was extended by Concurrent Versions System (CVS) $as_me 1.12.11, which was
36194 generated by GNU Autoconf 2.59. Invocation command line was
36196 CONFIG_FILES = $CONFIG_FILES
36197 CONFIG_HEADERS = $CONFIG_HEADERS
36198 CONFIG_LINKS = $CONFIG_LINKS
36199 CONFIG_COMMANDS = $CONFIG_COMMANDS
36203 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36207 # Files that config.status was made for.
36208 if test -n "$ac_config_files"; then
36209 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36212 if test -n "$ac_config_headers"; then
36213 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36216 if test -n "$ac_config_links"; then
36217 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36220 if test -n "$ac_config_commands"; then
36221 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36224 cat >>$CONFIG_STATUS <<\_ACEOF
36227 \`$as_me' instantiates files from templates according to the
36228 current configuration.
36230 Usage: $0 [OPTIONS] [FILE]...
36232 -h, --help print this help, then exit
36233 -V, --version print version number, then exit
36234 -q, --quiet do not print progress messages
36235 -d, --debug don't remove temporary files
36236 --recheck update $as_me by reconfiguring in the same conditions
36237 --file=FILE[:TEMPLATE]
36238 instantiate the configuration file FILE
36239 --header=FILE[:TEMPLATE]
36240 instantiate the configuration header FILE
36242 Configuration files:
36245 Configuration headers:
36248 Configuration commands:
36251 Report bugs to <bug-autoconf@gnu.org>."
36254 cat >>$CONFIG_STATUS <<_ACEOF
36256 Concurrent Versions System (CVS) config.status 1.12.11
36257 configured by $0, generated by GNU Autoconf 2.59,
36258 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36260 Copyright (C) 2003 Free Software Foundation, Inc.
36261 This config.status script is free software; the Free Software Foundation
36262 gives unlimited permission to copy, distribute and modify it."
36267 cat >>$CONFIG_STATUS <<\_ACEOF
36268 # If no file are specified by the user, then we need to provide default
36269 # value. By we need to know if files were specified by the user.
36275 ac_option=`expr "x$1" : 'x\([^=]*\)='`
36276 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36284 *) # This is not an option, so the user has probably given explicit
36287 ac_need_defaults=false;;
36291 # Handling of the options.
36293 cat >>$CONFIG_STATUS <<\_ACEOF
36294 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36296 --version | --vers* | -V )
36297 echo "$ac_cs_version"; exit 0 ;;
36299 # Conflict between --help and --header
36300 { { echo "$as_me:$LINENO: error: ambiguous option: $1
36301 Try \`$0 --help' for more information." >&5
36302 echo "$as_me: error: ambiguous option: $1
36303 Try \`$0 --help' for more information." >&2;}
36304 { (exit 1); exit 1; }; };;
36305 --help | --hel | -h )
36306 echo "$ac_cs_usage"; exit 0 ;;
36307 --debug | --d* | -d )
36309 --file | --fil | --fi | --f )
36311 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36312 ac_need_defaults=false;;
36313 --header | --heade | --head | --hea )
36315 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36316 ac_need_defaults=false;;
36317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36318 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36321 # This is an error.
36322 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36323 Try \`$0 --help' for more information." >&5
36324 echo "$as_me: error: unrecognized option: $1
36325 Try \`$0 --help' for more information." >&2;}
36326 { (exit 1); exit 1; }; } ;;
36328 *) ac_config_targets="$ac_config_targets $1" ;;
36334 ac_configure_extra_args=
36336 if $ac_cs_silent; then
36338 ac_configure_extra_args="$ac_configure_extra_args --silent"
36342 cat >>$CONFIG_STATUS <<_ACEOF
36343 if \$ac_cs_recheck; then
36344 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36345 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36350 cat >>$CONFIG_STATUS <<_ACEOF
36352 # INIT-COMMANDS section.
36355 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36356 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
36357 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
36359 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
36360 # Capture the value of LINGUAS because we need it to compute CATALOGS.
36361 LINGUAS="${LINGUAS-%UNSET%}"
36368 cat >>$CONFIG_STATUS <<\_ACEOF
36369 for ac_config_target in $ac_config_targets
36371 case "$ac_config_target" in
36372 # Handling of arguments.
36373 "contrib/validate_repo" ) CONFIG_FILES="$CONFIG_FILES contrib/validate_repo" ;;
36374 "contrib/clmerge" ) CONFIG_FILES="$CONFIG_FILES contrib/clmerge" ;;
36375 "contrib/cln_hist" ) CONFIG_FILES="$CONFIG_FILES contrib/cln_hist" ;;
36376 "contrib/commit_prep" ) CONFIG_FILES="$CONFIG_FILES contrib/commit_prep" ;;
36377 "contrib/cvs_acls" ) CONFIG_FILES="$CONFIG_FILES contrib/cvs_acls" ;;
36378 "contrib/log" ) CONFIG_FILES="$CONFIG_FILES contrib/log" ;;
36379 "contrib/log_accum" ) CONFIG_FILES="$CONFIG_FILES contrib/log_accum" ;;
36380 "contrib/mfpipe" ) CONFIG_FILES="$CONFIG_FILES contrib/mfpipe" ;;
36381 "contrib/pvcs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/pvcs2rcs" ;;
36382 "contrib/rcs2log" ) CONFIG_FILES="$CONFIG_FILES contrib/rcs2log:contrib/rcs2log.sh" ;;
36383 "contrib/rcslock" ) CONFIG_FILES="$CONFIG_FILES contrib/rcslock" ;;
36384 "contrib/sccs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/sccs2rcs" ;;
36385 "doc/mkman" ) CONFIG_FILES="$CONFIG_FILES doc/mkman:doc/mkman.pl" ;;
36386 "src/cvsbug" ) CONFIG_FILES="$CONFIG_FILES src/cvsbug" ;;
36387 "windows-NT/fix-msvc-mak" ) CONFIG_FILES="$CONFIG_FILES windows-NT/fix-msvc-mak:windows-NT/plhead.pl:windows-NT/fix-msvc-mak.pl" ;;
36388 "windows-NT/mkconfig" ) CONFIG_FILES="$CONFIG_FILES windows-NT/mkconfig:windows-NT/plhead.pl:windows-NT/mkconfig.pl" ;;
36389 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36390 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
36391 "contrib/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/pam/Makefile" ;;
36392 "cvs.spec" ) CONFIG_FILES="$CONFIG_FILES cvs.spec" ;;
36393 "diff/Makefile" ) CONFIG_FILES="$CONFIG_FILES diff/Makefile" ;;
36394 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
36395 "emx/Makefile" ) CONFIG_FILES="$CONFIG_FILES emx/Makefile" ;;
36396 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
36397 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
36398 "os2/Makefile" ) CONFIG_FILES="$CONFIG_FILES os2/Makefile" ;;
36399 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
36400 "src/sanity.config.sh" ) CONFIG_FILES="$CONFIG_FILES src/sanity.config.sh" ;;
36401 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
36402 "vms/Makefile" ) CONFIG_FILES="$CONFIG_FILES vms/Makefile" ;;
36403 "windows-NT/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/Makefile" ;;
36404 "windows-NT/SCC/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/SCC/Makefile" ;;
36405 "zlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
36406 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36407 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
36408 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
36409 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36410 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36411 { (exit 1); exit 1; }; };;
36415 # If the user did not use the arguments to specify the items to instantiate,
36416 # then the envvar interface is used. Set only those that are not.
36417 # We use the long form for the default assignment because of an extremely
36418 # bizarre bug on SunOS 4.1.3.
36419 if $ac_need_defaults; then
36420 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36421 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36422 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36425 # Have a temporary directory for convenience. Make it in the build tree
36426 # simply because there is no reason to put it here, and in addition,
36427 # creating and moving files from /tmp can sometimes cause problems.
36428 # Create a temporary directory, and hook for its removal unless debugging.
36431 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36432 trap '{ (exit 1); exit 1; }' 1 2 13 15
36435 # Create a (secure) tmp directory for tmp files.
36438 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
36439 test -n "$tmp" && test -d "$tmp"
36442 tmp=./confstat$$-$RANDOM
36443 (umask 077 && mkdir $tmp)
36446 echo "$me: cannot create a temporary directory in ." >&2
36447 { (exit 1); exit 1; }
36452 cat >>$CONFIG_STATUS <<_ACEOF
36455 # CONFIG_FILES section.
36458 # No need to generate the scripts if there are no CONFIG_FILES.
36459 # This happens for instance when ./config.status config.h
36460 if test -n "\$CONFIG_FILES"; then
36461 # Protect against being on the right side of a sed subst in config.status.
36462 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36463 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36464 s,@SHELL@,$SHELL,;t t
36465 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36466 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36467 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36468 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36469 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36470 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36471 s,@exec_prefix@,$exec_prefix,;t t
36472 s,@prefix@,$prefix,;t t
36473 s,@program_transform_name@,$program_transform_name,;t t
36474 s,@bindir@,$bindir,;t t
36475 s,@sbindir@,$sbindir,;t t
36476 s,@libexecdir@,$libexecdir,;t t
36477 s,@datadir@,$datadir,;t t
36478 s,@sysconfdir@,$sysconfdir,;t t
36479 s,@sharedstatedir@,$sharedstatedir,;t t
36480 s,@localstatedir@,$localstatedir,;t t
36481 s,@libdir@,$libdir,;t t
36482 s,@includedir@,$includedir,;t t
36483 s,@oldincludedir@,$oldincludedir,;t t
36484 s,@infodir@,$infodir,;t t
36485 s,@mandir@,$mandir,;t t
36486 s,@build_alias@,$build_alias,;t t
36487 s,@host_alias@,$host_alias,;t t
36488 s,@target_alias@,$target_alias,;t t
36489 s,@DEFS@,$DEFS,;t t
36490 s,@ECHO_C@,$ECHO_C,;t t
36491 s,@ECHO_N@,$ECHO_N,;t t
36492 s,@ECHO_T@,$ECHO_T,;t t
36493 s,@LIBS@,$LIBS,;t t
36494 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36495 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36496 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36497 s,@CYGPATH_W@,$CYGPATH_W,;t t
36498 s,@PACKAGE@,$PACKAGE,;t t
36499 s,@VERSION@,$VERSION,;t t
36500 s,@ACLOCAL@,$ACLOCAL,;t t
36501 s,@AUTOCONF@,$AUTOCONF,;t t
36502 s,@AUTOMAKE@,$AUTOMAKE,;t t
36503 s,@AUTOHEADER@,$AUTOHEADER,;t t
36504 s,@MAKEINFO@,$MAKEINFO,;t t
36505 s,@install_sh@,$install_sh,;t t
36506 s,@STRIP@,$STRIP,;t t
36507 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
36508 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
36509 s,@mkdir_p@,$mkdir_p,;t t
36511 s,@SET_MAKE@,$SET_MAKE,;t t
36512 s,@am__leading_dot@,$am__leading_dot,;t t
36513 s,@AMTAR@,$AMTAR,;t t
36514 s,@am__tar@,$am__tar,;t t
36515 s,@am__untar@,$am__untar,;t t
36516 s,@ac_prefix_program@,$ac_prefix_program,;t t
36517 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
36518 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
36519 s,@MAINT@,$MAINT,;t t
36521 s,@CFLAGS@,$CFLAGS,;t t
36522 s,@LDFLAGS@,$LDFLAGS,;t t
36523 s,@CPPFLAGS@,$CPPFLAGS,;t t
36524 s,@ac_ct_CC@,$ac_ct_CC,;t t
36525 s,@EXEEXT@,$EXEEXT,;t t
36526 s,@OBJEXT@,$OBJEXT,;t t
36527 s,@DEPDIR@,$DEPDIR,;t t
36528 s,@am__include@,$am__include,;t t
36529 s,@am__quote@,$am__quote,;t t
36530 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
36531 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
36532 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
36533 s,@CCDEPMODE@,$CCDEPMODE,;t t
36534 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
36535 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
36537 s,@EGREP@,$EGREP,;t t
36538 s,@RANLIB@,$RANLIB,;t t
36539 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36540 s,@LN_S@,$LN_S,;t t
36541 s,@PERL@,$PERL,;t t
36543 s,@MKTEMP@,$MKTEMP,;t t
36544 s,@SENDMAIL@,$SENDMAIL,;t t
36546 s,@ROFF@,$ROFF,;t t
36547 s,@PS2PDF@,$PS2PDF,;t t
36548 s,@TEXI2DVI@,$TEXI2DVI,;t t
36549 s,@MAKE_TARGETS_IN_VPATH_TRUE@,$MAKE_TARGETS_IN_VPATH_TRUE,;t t
36550 s,@MAKE_TARGETS_IN_VPATH_FALSE@,$MAKE_TARGETS_IN_VPATH_FALSE,;t t
36551 s,@LIBOBJS@,$LIBOBJS,;t t
36552 s,@ALLOCA@,$ALLOCA,;t t
36553 s,@ALLOCA_H@,$ALLOCA_H,;t t
36554 s,@FNMATCH_H@,$FNMATCH_H,;t t
36555 s,@STDBOOL_H@,$STDBOOL_H,;t t
36556 s,@HAVE__BOOL@,$HAVE__BOOL,;t t
36557 s,@YACC@,$YACC,;t t
36558 s,@YFLAGS@,$YFLAGS,;t t
36559 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
36560 s,@GETOPT_H@,$GETOPT_H,;t t
36561 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
36562 s,@HAVE_LONG_64BIT@,$HAVE_LONG_64BIT,;t t
36563 s,@HAVE_LONGLONG_64BIT@,$HAVE_LONGLONG_64BIT,;t t
36564 s,@STDINT_H@,$STDINT_H,;t t
36565 s,@EOVERFLOW@,$EOVERFLOW,;t t
36566 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
36567 s,@USE_NLS@,$USE_NLS,;t t
36568 s,@MSGFMT@,$MSGFMT,;t t
36569 s,@GMSGFMT@,$GMSGFMT,;t t
36570 s,@XGETTEXT@,$XGETTEXT,;t t
36571 s,@MSGMERGE@,$MSGMERGE,;t t
36572 s,@build@,$build,;t t
36573 s,@build_cpu@,$build_cpu,;t t
36574 s,@build_vendor@,$build_vendor,;t t
36575 s,@build_os@,$build_os,;t t
36576 s,@host@,$host,;t t
36577 s,@host_cpu@,$host_cpu,;t t
36578 s,@host_vendor@,$host_vendor,;t t
36579 s,@host_os@,$host_os,;t t
36580 s,@LIBICONV@,$LIBICONV,;t t
36581 s,@LTLIBICONV@,$LTLIBICONV,;t t
36582 s,@INTLLIBS@,$INTLLIBS,;t t
36583 s,@LIBINTL@,$LIBINTL,;t t
36584 s,@LTLIBINTL@,$LTLIBINTL,;t t
36585 s,@POSUB@,$POSUB,;t t
36586 s,@HAVE_PUTENV@,$HAVE_PUTENV,;t t
36587 s,@cvs_client_objects@,$cvs_client_objects,;t t
36588 s,@KRB4@,$KRB4,;t t
36589 s,@ZLIB_SUBDIRS@,$ZLIB_SUBDIRS,;t t
36590 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
36591 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
36592 s,@with_default_rsh@,$with_default_rsh,;t t
36593 s,@RSH_DFLT@,$RSH_DFLT,;t t
36594 s,@EDITOR@,$EDITOR,;t t
36595 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
36596 /@MKTEMP_SH_FUNCTION@/r $MKTEMP_SH_FUNCTION
36597 s,@MKTEMP_SH_FUNCTION@,,;t t
36602 cat >>$CONFIG_STATUS <<\_ACEOF
36603 # Split the substitutions into bite-sized pieces for seds with
36604 # small command number limits, like on Digital OSF/1 and HP-UX.
36605 ac_max_sed_lines=48
36606 ac_sed_frag=1 # Number of current file.
36607 ac_beg=1 # First line for current file.
36608 ac_end=$ac_max_sed_lines # Line after last line for current file.
36611 while $ac_more_lines; do
36612 if test $ac_beg -gt 1; then
36613 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36615 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36617 if test ! -s $tmp/subs.frag; then
36618 ac_more_lines=false
36620 # The purpose of the label and of the branching condition is to
36621 # speed up the sed processing (if there are no `@' at all, there
36622 # is no need to browse any of the substitutions).
36623 # These are the two extra sed commands mentioned above.
36625 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36626 if test -z "$ac_sed_cmds"; then
36627 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36629 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36631 ac_sed_frag=`expr $ac_sed_frag + 1`
36633 ac_end=`expr $ac_end + $ac_max_sed_lines`
36636 if test -z "$ac_sed_cmds"; then
36639 fi # test -n "$CONFIG_FILES"
36642 cat >>$CONFIG_STATUS <<\_ACEOF
36643 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
36644 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36646 - | *:- | *:-:* ) # input from stdin
36648 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36649 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36650 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36651 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36652 * ) ac_file_in=$ac_file.in ;;
36655 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36656 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36657 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36658 X"$ac_file" : 'X\(//\)[^/]' \| \
36659 X"$ac_file" : 'X\(//\)$' \| \
36660 X"$ac_file" : 'X\(/\)' \| \
36661 . : '\(.\)' 2>/dev/null ||
36663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36665 /^X\(\/\/\)$/{ s//\1/; q; }
36666 /^X\(\/\).*/{ s//\1/; q; }
36668 { if $as_mkdir_p; then
36673 while test ! -d "$as_dir"; do
36674 as_dirs="$as_dir $as_dirs"
36675 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36676 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36677 X"$as_dir" : 'X\(//\)[^/]' \| \
36678 X"$as_dir" : 'X\(//\)$' \| \
36679 X"$as_dir" : 'X\(/\)' \| \
36680 . : '\(.\)' 2>/dev/null ||
36682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36684 /^X\(\/\/\)$/{ s//\1/; q; }
36685 /^X\(\/\).*/{ s//\1/; q; }
36688 test ! -n "$as_dirs" || mkdir $as_dirs
36689 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36690 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36691 { (exit 1); exit 1; }; }; }
36695 if test "$ac_dir" != .; then
36696 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36697 # A "../" for each directory in $ac_dir_suffix.
36698 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36700 ac_dir_suffix= ac_top_builddir=
36704 .) # No --srcdir option. We are building in place.
36706 if test -z "$ac_top_builddir"; then
36709 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36711 [\\/]* | ?:[\\/]* ) # Absolute path.
36712 ac_srcdir=$srcdir$ac_dir_suffix;
36713 ac_top_srcdir=$srcdir ;;
36714 *) # Relative path.
36715 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36716 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36719 # Do not use `cd foo && pwd` to compute absolute paths, because
36720 # the directories may not exist.
36722 .) ac_abs_builddir="$ac_dir";;
36725 .) ac_abs_builddir=`pwd`;;
36726 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
36727 *) ac_abs_builddir=`pwd`/"$ac_dir";;
36730 case $ac_abs_builddir in
36731 .) ac_abs_top_builddir=${ac_top_builddir}.;;
36733 case ${ac_top_builddir}. in
36734 .) ac_abs_top_builddir=$ac_abs_builddir;;
36735 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
36736 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
36739 case $ac_abs_builddir in
36740 .) ac_abs_srcdir=$ac_srcdir;;
36743 .) ac_abs_srcdir=$ac_abs_builddir;;
36744 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
36745 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
36748 case $ac_abs_builddir in
36749 .) ac_abs_top_srcdir=$ac_top_srcdir;;
36751 case $ac_top_srcdir in
36752 .) ac_abs_top_srcdir=$ac_abs_builddir;;
36753 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
36754 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
36760 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36761 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
36764 if test x"$ac_file" != x-; then
36765 { echo "$as_me:$LINENO: creating $ac_file" >&5
36766 echo "$as_me: creating $ac_file" >&6;}
36769 # Let's still pretend it is `configure' which instantiates (i.e., don't
36770 # use $as_me), people would be surprised to read:
36771 # /* config.h. Generated by config.status. */
36772 if test x"$ac_file" = x-; then
36775 configure_input="$ac_file. "
36777 configure_input=$configure_input"Generated from `echo $ac_file_in |
36778 sed 's,.*/,,'` by configure."
36780 # First look for the input files in the build tree, otherwise in the
36782 ac_file_inputs=`IFS=:
36783 for f in $ac_file_in; do
36785 -) echo $tmp/stdin ;;
36787 # Absolute (can't be DOS-style, as IFS=:)
36788 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36789 echo "$as_me: error: cannot find input file: $f" >&2;}
36790 { (exit 1); exit 1; }; }
36793 if test -f "$f"; then
36796 elif test -f "$srcdir/$f"; then
36801 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36802 echo "$as_me: error: cannot find input file: $f" >&2;}
36803 { (exit 1); exit 1; }; }
36806 done` || { (exit 1); exit 1; }
36808 cat >>$CONFIG_STATUS <<_ACEOF
36812 cat >>$CONFIG_STATUS <<\_ACEOF
36814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36815 s,@configure_input@,$configure_input,;t t
36816 s,@srcdir@,$ac_srcdir,;t t
36817 s,@abs_srcdir@,$ac_abs_srcdir,;t t
36818 s,@top_srcdir@,$ac_top_srcdir,;t t
36819 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36820 s,@builddir@,$ac_builddir,;t t
36821 s,@abs_builddir@,$ac_abs_builddir,;t t
36822 s,@top_builddir@,$ac_top_builddir,;t t
36823 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36824 s,@INSTALL@,$ac_INSTALL,;t t
36825 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36827 if test x"$ac_file" != x-; then
36828 mv $tmp/out $ac_file
36834 # Run the commands associated with the file.
36836 contrib/validate_repo ) chmod +x contrib/validate_repo ;;
36837 contrib/clmerge ) chmod +x contrib/clmerge ;;
36838 contrib/cln_hist ) chmod +x contrib/cln_hist ;;
36839 contrib/commit_prep ) chmod +x contrib/commit_prep ;;
36840 contrib/cvs_acls ) chmod +x contrib/cvs_acls ;;
36841 contrib/log ) chmod +x contrib/log ;;
36842 contrib/log_accum ) chmod +x contrib/log_accum ;;
36843 contrib/mfpipe ) chmod +x contrib/mfpipe ;;
36844 contrib/pvcs2rcs ) chmod +x contrib/pvcs2rcs ;;
36845 contrib/rcs2log ) chmod +x contrib/rcs2log ;;
36846 contrib/rcslock ) chmod +x contrib/rcslock ;;
36847 contrib/sccs2rcs ) chmod +x contrib/sccs2rcs ;;
36848 doc/mkman ) chmod +x doc/mkman ;;
36849 src/cvsbug ) chmod +x src/cvsbug ;;
36850 windows-NT/fix-msvc-mak ) chmod +x windows-NT/fix-msvc-mak ;;
36851 windows-NT/mkconfig ) chmod +x windows-NT/mkconfig ;;
36855 cat >>$CONFIG_STATUS <<\_ACEOF
36858 # CONFIG_HEADER section.
36861 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36862 # NAME is the cpp macro being defined and VALUE is the value it is being given.
36864 # ac_d sets the value in "#define NAME VALUE" lines.
36865 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
36866 ac_dB='[ ].*$,\1#\2'
36869 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36870 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
36871 ac_uB='$,\1#\2define\3'
36875 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
36876 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36878 - | *:- | *:-:* ) # input from stdin
36880 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36881 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36882 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36883 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36884 * ) ac_file_in=$ac_file.in ;;
36887 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36888 echo "$as_me: creating $ac_file" >&6;}
36890 # First look for the input files in the build tree, otherwise in the
36892 ac_file_inputs=`IFS=:
36893 for f in $ac_file_in; do
36895 -) echo $tmp/stdin ;;
36897 # Absolute (can't be DOS-style, as IFS=:)
36898 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36899 echo "$as_me: error: cannot find input file: $f" >&2;}
36900 { (exit 1); exit 1; }; }
36901 # Do quote $f, to prevent DOS paths from being IFS'd.
36904 if test -f "$f"; then
36907 elif test -f "$srcdir/$f"; then
36912 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36913 echo "$as_me: error: cannot find input file: $f" >&2;}
36914 { (exit 1); exit 1; }; }
36917 done` || { (exit 1); exit 1; }
36918 # Remove the trailing spaces.
36919 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
36923 # Transform confdefs.h into two sed scripts, `conftest.defines' and
36924 # `conftest.undefs', that substitutes the proper values into
36925 # config.h.in to produce config.h. The first handles `#define'
36926 # templates, and the second `#undef' templates.
36927 # And first: Protect against being on the right side of a sed subst in
36928 # config.status. Protect against being in an unquoted here document
36929 # in config.status.
36930 rm -f conftest.defines conftest.undefs
36931 # Using a here document instead of a string reduces the quoting nightmare.
36932 # Putting comments in sed scripts is not portable.
36934 # `end' is used to avoid that the second main sed command (meant for
36935 # 0-ary CPP macros) applies to n-ary macro definitions.
36936 # See the Autoconf documentation for `clear'.
36937 cat >confdef2sed.sed <<\_ACEOF
36942 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
36944 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
36947 # If some macros were called several times there might be several times
36948 # the same #defines, which is useless. Nevertheless, we may not want to
36949 # sort them, since we want the *last* AC-DEFINE to be honored.
36950 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
36951 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
36952 rm -f confdef2sed.sed
36954 # This sed command replaces #undef with comments. This is necessary, for
36955 # example, in the case of _POSIX_SOURCE, which is predefined and required
36956 # on some systems where configure will not decide to define it.
36957 cat >>conftest.undefs <<\_ACEOF
36958 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
36961 # Break up conftest.defines because some shells have a limit on the size
36962 # of here documents, and old seds have small limits too (100 cmds).
36963 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36964 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
36965 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
36966 echo ' :' >>$CONFIG_STATUS
36967 rm -f conftest.tail
36968 while grep . conftest.defines >/dev/null
36970 # Write a limited-size here document to $tmp/defines.sed.
36971 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
36972 # Speed up: don't consider the non `#define' lines.
36973 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
36974 # Work around the forget-to-reset-the-flag bug.
36975 echo 't clr' >>$CONFIG_STATUS
36976 echo ': clr' >>$CONFIG_STATUS
36977 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
36979 sed -f $tmp/defines.sed $tmp/in >$tmp/out
36981 mv $tmp/out $tmp/in
36983 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
36984 rm -f conftest.defines
36985 mv conftest.tail conftest.defines
36987 rm -f conftest.defines
36988 echo ' fi # grep' >>$CONFIG_STATUS
36989 echo >>$CONFIG_STATUS
36991 # Break up conftest.undefs because some shells have a limit on the size
36992 # of here documents, and old seds have small limits too (100 cmds).
36993 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
36994 rm -f conftest.tail
36995 while grep . conftest.undefs >/dev/null
36997 # Write a limited-size here document to $tmp/undefs.sed.
36998 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
36999 # Speed up: don't consider the non `#undef'
37000 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
37001 # Work around the forget-to-reset-the-flag bug.
37002 echo 't clr' >>$CONFIG_STATUS
37003 echo ': clr' >>$CONFIG_STATUS
37004 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
37006 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
37008 mv $tmp/out $tmp/in
37010 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
37011 rm -f conftest.undefs
37012 mv conftest.tail conftest.undefs
37014 rm -f conftest.undefs
37016 cat >>$CONFIG_STATUS <<\_ACEOF
37017 # Let's still pretend it is `configure' which instantiates (i.e., don't
37018 # use $as_me), people would be surprised to read:
37019 # /* config.h. Generated by config.status. */
37020 if test x"$ac_file" = x-; then
37021 echo "/* Generated by configure. */" >$tmp/config.h
37023 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
37025 cat $tmp/in >>$tmp/config.h
37027 if test x"$ac_file" != x-; then
37028 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
37029 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37030 echo "$as_me: $ac_file is unchanged" >&6;}
37032 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37034 X"$ac_file" : 'X\(//\)[^/]' \| \
37035 X"$ac_file" : 'X\(//\)$' \| \
37036 X"$ac_file" : 'X\(/\)' \| \
37037 . : '\(.\)' 2>/dev/null ||
37039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37040 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37041 /^X\(\/\/\)$/{ s//\1/; q; }
37042 /^X\(\/\).*/{ s//\1/; q; }
37044 { if $as_mkdir_p; then
37049 while test ! -d "$as_dir"; do
37050 as_dirs="$as_dir $as_dirs"
37051 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37053 X"$as_dir" : 'X\(//\)[^/]' \| \
37054 X"$as_dir" : 'X\(//\)$' \| \
37055 X"$as_dir" : 'X\(/\)' \| \
37056 . : '\(.\)' 2>/dev/null ||
37058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37060 /^X\(\/\/\)$/{ s//\1/; q; }
37061 /^X\(\/\).*/{ s//\1/; q; }
37064 test ! -n "$as_dirs" || mkdir $as_dirs
37065 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37066 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37067 { (exit 1); exit 1; }; }; }
37070 mv $tmp/config.h $ac_file
37074 rm -f $tmp/config.h
37076 # Compute $ac_file's index in $config_headers.
37078 for _am_header in $config_headers :; do
37079 case $_am_header in
37080 $ac_file | $ac_file:* )
37083 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37086 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
37087 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37088 X$ac_file : 'X\(//\)[^/]' \| \
37089 X$ac_file : 'X\(//\)$' \| \
37090 X$ac_file : 'X\(/\)' \| \
37091 . : '\(.\)' 2>/dev/null ||
37093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37095 /^X\(\/\/\)$/{ s//\1/; q; }
37096 /^X\(\/\).*/{ s//\1/; q; }
37097 s/.*/./; q'`/stamp-h$_am_stamp_count
37100 cat >>$CONFIG_STATUS <<\_ACEOF
37103 # CONFIG_COMMANDS section.
37105 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
37106 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
37107 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
37108 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
37109 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37110 X"$ac_dest" : 'X\(//\)[^/]' \| \
37111 X"$ac_dest" : 'X\(//\)$' \| \
37112 X"$ac_dest" : 'X\(/\)' \| \
37113 . : '\(.\)' 2>/dev/null ||
37115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37117 /^X\(\/\/\)$/{ s//\1/; q; }
37118 /^X\(\/\).*/{ s//\1/; q; }
37120 { if $as_mkdir_p; then
37125 while test ! -d "$as_dir"; do
37126 as_dirs="$as_dir $as_dirs"
37127 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37129 X"$as_dir" : 'X\(//\)[^/]' \| \
37130 X"$as_dir" : 'X\(//\)$' \| \
37131 X"$as_dir" : 'X\(/\)' \| \
37132 . : '\(.\)' 2>/dev/null ||
37134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37136 /^X\(\/\/\)$/{ s//\1/; q; }
37137 /^X\(\/\).*/{ s//\1/; q; }
37140 test ! -n "$as_dirs" || mkdir $as_dirs
37141 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37142 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37143 { (exit 1); exit 1; }; }; }
37147 if test "$ac_dir" != .; then
37148 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37149 # A "../" for each directory in $ac_dir_suffix.
37150 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37152 ac_dir_suffix= ac_top_builddir=
37156 .) # No --srcdir option. We are building in place.
37158 if test -z "$ac_top_builddir"; then
37161 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37163 [\\/]* | ?:[\\/]* ) # Absolute path.
37164 ac_srcdir=$srcdir$ac_dir_suffix;
37165 ac_top_srcdir=$srcdir ;;
37166 *) # Relative path.
37167 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37168 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37171 # Do not use `cd foo && pwd` to compute absolute paths, because
37172 # the directories may not exist.
37174 .) ac_abs_builddir="$ac_dir";;
37177 .) ac_abs_builddir=`pwd`;;
37178 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
37179 *) ac_abs_builddir=`pwd`/"$ac_dir";;
37182 case $ac_abs_builddir in
37183 .) ac_abs_top_builddir=${ac_top_builddir}.;;
37185 case ${ac_top_builddir}. in
37186 .) ac_abs_top_builddir=$ac_abs_builddir;;
37187 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
37188 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
37191 case $ac_abs_builddir in
37192 .) ac_abs_srcdir=$ac_srcdir;;
37195 .) ac_abs_srcdir=$ac_abs_builddir;;
37196 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
37197 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
37200 case $ac_abs_builddir in
37201 .) ac_abs_top_srcdir=$ac_top_srcdir;;
37203 case $ac_top_srcdir in
37204 .) ac_abs_top_srcdir=$ac_abs_builddir;;
37205 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
37206 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
37211 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37212 echo "$as_me: executing $ac_dest commands" >&6;}
37214 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
37215 # Strip MF so we end up with the name of the file.
37216 mf=`echo "$mf" | sed -e 's/:.*$//'`
37217 # Check whether this is an Automake generated Makefile or not.
37218 # We used to match only the files named `Makefile.in', but
37219 # some people rename them; so instead we look at the file content.
37220 # Grep'ing the first line is not enough: some people post-process
37221 # each Makefile.in and add a new line on top of each file to say so.
37222 # So let's grep whole file.
37223 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
37224 dirpart=`(dirname "$mf") 2>/dev/null ||
37225 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37226 X"$mf" : 'X\(//\)[^/]' \| \
37227 X"$mf" : 'X\(//\)$' \| \
37228 X"$mf" : 'X\(/\)' \| \
37229 . : '\(.\)' 2>/dev/null ||
37231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37233 /^X\(\/\/\)$/{ s//\1/; q; }
37234 /^X\(\/\).*/{ s//\1/; q; }
37239 # Extract the definition of DEPDIR, am__include, and am__quote
37240 # from the Makefile without running `make'.
37241 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37242 test -z "$DEPDIR" && continue
37243 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37244 test -z "am__include" && continue
37245 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37246 # When using ansi2knr, U may be empty or an underscore; expand it
37247 U=`sed -n 's/^U = //p' < "$mf"`
37248 # Find all dependency output files, they are included files with
37249 # $(DEPDIR) in their names. We invoke sed twice because it is the
37250 # simplest approach to changing $(DEPDIR) to its actual value in the
37252 for file in `sed -n "
37253 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37254 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37255 # Make sure the directory exists.
37256 test -f "$dirpart/$file" && continue
37257 fdir=`(dirname "$file") 2>/dev/null ||
37258 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37259 X"$file" : 'X\(//\)[^/]' \| \
37260 X"$file" : 'X\(//\)$' \| \
37261 X"$file" : 'X\(/\)' \| \
37262 . : '\(.\)' 2>/dev/null ||
37264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37266 /^X\(\/\/\)$/{ s//\1/; q; }
37267 /^X\(\/\).*/{ s//\1/; q; }
37269 { if $as_mkdir_p; then
37270 mkdir -p $dirpart/$fdir
37272 as_dir=$dirpart/$fdir
37274 while test ! -d "$as_dir"; do
37275 as_dirs="$as_dir $as_dirs"
37276 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37278 X"$as_dir" : 'X\(//\)[^/]' \| \
37279 X"$as_dir" : 'X\(//\)$' \| \
37280 X"$as_dir" : 'X\(/\)' \| \
37281 . : '\(.\)' 2>/dev/null ||
37283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37284 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37285 /^X\(\/\/\)$/{ s//\1/; q; }
37286 /^X\(\/\).*/{ s//\1/; q; }
37289 test ! -n "$as_dirs" || mkdir $as_dirs
37290 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
37291 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
37292 { (exit 1); exit 1; }; }; }
37294 # echo "creating $dirpart/$file"
37295 echo '# dummy' > "$dirpart/$file"
37300 for ac_file in $CONFIG_FILES; do
37301 # Support "outfile[:infile[:infile...]]"
37303 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
37305 # PO directories have a Makefile.in generated from Makefile.in.in.
37306 case "$ac_file" in */Makefile.in)
37307 # Adjust a relative srcdir.
37308 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
37309 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
37310 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
37311 # In autoconf-2.13 it is called $ac_given_srcdir.
37312 # In autoconf-2.50 it is called $srcdir.
37313 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
37314 case "$ac_given_srcdir" in
37315 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
37316 /*) top_srcdir="$ac_given_srcdir" ;;
37317 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
37319 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
37320 rm -f "$ac_dir/POTFILES"
37321 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
37322 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
37323 POMAKEFILEDEPS="POTFILES.in"
37324 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
37325 # on $ac_dir but don't depend on user-specified configuration
37327 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
37328 # The LINGUAS file contains the set of available languages.
37329 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37330 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
37332 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
37333 # Hide the ALL_LINGUAS assigment from automake.
37334 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
37335 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
37337 # The set of available languages was given in configure.in.
37338 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
37341 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
37342 # Compute UPDATEPOFILES
37343 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
37344 # Compute DUMMYPOFILES
37345 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
37347 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
37348 case "$ac_given_srcdir" in
37350 *) srcdirpre='$(srcdir)/' ;;
37356 for lang in $ALL_LINGUAS; do
37357 POFILES="$POFILES $srcdirpre$lang.po"
37358 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
37359 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
37360 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
37362 # CATALOGS depends on both $ac_dir and the user's LINGUAS
37363 # environment variable.
37365 if test -n "$ALL_LINGUAS"; then
37366 for presentlang in $ALL_LINGUAS; do
37368 if test "%UNSET%" != "$LINGUAS"; then
37369 desiredlanguages="$LINGUAS"
37371 desiredlanguages="$ALL_LINGUAS"
37373 for desiredlang in $desiredlanguages; do
37374 # Use the presentlang catalog if desiredlang is
37375 # a. equal to presentlang, or
37376 # b. a variant of presentlang (because in this case,
37377 # presentlang can be used as a fallback for messages
37378 # which are not translated in the desiredlang catalog).
37379 case "$desiredlang" in
37380 "$presentlang"*) useit=yes;;
37383 if test $useit = yes; then
37384 INST_LINGUAS="$INST_LINGUAS $presentlang"
37389 if test -n "$INST_LINGUAS"; then
37390 for lang in $INST_LINGUAS; do
37391 CATALOGS="$CATALOGS $lang.gmo"
37394 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
37395 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
37396 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
37397 if test -f "$f"; then
37399 *.orig | *.bak | *~) ;;
37400 *) cat "$f" >> "$ac_dir/Makefile" ;;
37412 cat >>$CONFIG_STATUS <<\_ACEOF
37414 { (exit 0); exit 0; }
37416 chmod +x $CONFIG_STATUS
37417 ac_clean_files=$ac_clean_files_save
37420 # configure is writing to config.log, and then calls config.status.
37421 # config.status does its own redirection, appending to config.log.
37422 # Unfortunately, on DOS this fails, as config.log is still kept open
37423 # by configure, so config.status won't be able to write to it; its
37424 # output is simply discarded. So we exec the FD to /dev/null,
37425 # effectively closing config.log, so it can be properly (re)opened and
37426 # appended to by config.status. When coming back to configure, we
37427 # need to make the FD available again.
37428 if test "$no_create" != yes; then
37430 ac_config_status_args=
37431 test "$silent" = yes &&
37432 ac_config_status_args="$ac_config_status_args --quiet"
37434 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37436 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37437 # would make configure fail if this is the last instruction.
37438 $ac_cs_success || { (exit 1); exit 1; }
37444 # Report the state of this version of CVS if this is from dev.