tweak comment
[coreutils.git] / configure
blob1d15387a526cb9809c576e003813c20ad32c3cb6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for GNU coreutils 4.5.7.
5 # Report bugs to <bug-coreutils@gnu.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 as_mkdir_p=false
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
239 IFS=" $as_nl"
241 # CDPATH.
242 $as_unset CDPATH
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 exec 6>&1
253 # Initializations.
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
269 PACKAGE_NAME='GNU coreutils'
270 PACKAGE_TARNAME='coreutils'
271 PACKAGE_VERSION='4.5.7'
272 PACKAGE_STRING='GNU coreutils 4.5.7'
273 PACKAGE_BUGREPORT='bug-coreutils@gnu.org'
275 ac_unique_file="src/ls.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_config_libobj_dir=lib
314 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE PERL 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 GNU_PACKAGE HELP2MAN OPTIONAL_BIN_PROGS OPTIONAL_BIN_ZCRIPTS MAN DF_PROG U ANSI2KNR LIBOBJS ALLOCA YACC LIB_NANOSLEEP NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS LIB_CLOCK_GETTIME POW_LIB SEQ_LIBM GLIBC21 LIBICONV LTLIBICONV SQRT_LIBM FESETROUND_LIBM LIB_CRYPT MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE USE_NLS INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures GNU coreutils 4.5.7 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
834 cat <<\_ACEOF
836 Program names:
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841 System types:
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 _ACEOF
847 if test -n "$ac_init_help"; then
848 case $ac_init_help in
849 short | recursive ) echo "Configuration of GNU coreutils 4.5.7:";;
850 esac
851 cat <<\_ACEOF
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --disable-dependency-tracking Speeds up one-time builds
857 --enable-dependency-tracking Do not reject slow dependency extractors
858 --disable-largefile omit support for large files
859 --disable-assert turn off assertions
860 --disable-rpath do not hardcode runtime library paths
861 --disable-nls do not use Native Language Support
863 Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --without-included-regex don't compile regex; this is the default on
867 systems with version 2 of the GNU C library
868 (use with caution on other system)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
871 --without-libiconv-prefix don't search for libiconv in includedir and libdir
872 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
873 --without-libintl-prefix don't search for libintl in includedir and libdir
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CPP C preprocessor
884 Use these variables to override the choices made by `configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
887 Report bugs to <bug-coreutils@gnu.org>.
888 _ACEOF
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 else
903 ac_dir_suffix= ac_top_builddir=
906 case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 esac
921 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
922 # absolute.
923 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
924 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
925 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
926 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
928 cd $ac_dir
929 # Check for guested configure; otherwise get Cygnus style configure.
930 if test -f $ac_srcdir/configure.gnu; then
931 echo
932 $SHELL $ac_srcdir/configure.gnu --help=recursive
933 elif test -f $ac_srcdir/configure; then
934 echo
935 $SHELL $ac_srcdir/configure --help=recursive
936 elif test -f $ac_srcdir/configure.ac ||
937 test -f $ac_srcdir/configure.in; then
938 echo
939 $ac_configure --help
940 else
941 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
943 cd $ac_popdir
944 done
947 test -n "$ac_init_help" && exit 0
948 if $ac_init_version; then
949 cat <<\_ACEOF
950 GNU coreutils configure 4.5.7
951 generated by GNU Autoconf 2.57
953 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
954 Free Software Foundation, Inc.
955 This configure script is free software; the Free Software Foundation
956 gives unlimited permission to copy, distribute and modify it.
957 _ACEOF
958 exit 0
960 exec 5>config.log
961 cat >&5 <<_ACEOF
962 This file contains any messages produced by compilers while
963 running configure, to aid debugging if configure makes a mistake.
965 It was created by GNU coreutils $as_me 4.5.7, which was
966 generated by GNU Autoconf 2.57. Invocation command line was
968 $ $0 $@
970 _ACEOF
972 cat <<_ASUNAME
973 ## --------- ##
974 ## Platform. ##
975 ## --------- ##
977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
986 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
987 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
990 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
991 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
992 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
994 _ASUNAME
996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
997 for as_dir in $PATH
999 IFS=$as_save_IFS
1000 test -z "$as_dir" && as_dir=.
1001 echo "PATH: $as_dir"
1002 done
1004 } >&5
1006 cat >&5 <<_ACEOF
1009 ## ----------- ##
1010 ## Core tests. ##
1011 ## ----------- ##
1013 _ACEOF
1016 # Keep a trace of the command line.
1017 # Strip out --no-create and --no-recursion so they do not pile up.
1018 # Strip out --silent because we don't want to record it for future runs.
1019 # Also quote any args containing shell meta-characters.
1020 # Make two passes to allow for proper duplicate-argument suppression.
1021 ac_configure_args=
1022 ac_configure_args0=
1023 ac_configure_args1=
1024 ac_sep=
1025 ac_must_keep_next=false
1026 for ac_pass in 1 2
1028 for ac_arg
1030 case $ac_arg in
1031 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1034 continue ;;
1035 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037 esac
1038 case $ac_pass in
1039 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1041 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1042 if test $ac_must_keep_next = true; then
1043 ac_must_keep_next=false # Got value, back to normal.
1044 else
1045 case $ac_arg in
1046 *=* | --config-cache | -C | -disable-* | --disable-* \
1047 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1048 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1049 | -with-* | --with-* | -without-* | --without-* | --x)
1050 case "$ac_configure_args0 " in
1051 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1052 esac
1054 -* ) ac_must_keep_next=true ;;
1055 esac
1057 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058 # Get rid of the leading space.
1059 ac_sep=" "
1061 esac
1062 done
1063 done
1064 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1065 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1067 # When interrupted or exit'd, cleanup temporary files, and complete
1068 # config.log. We remove comments because anyway the quotes in there
1069 # would cause problems or look ugly.
1070 # WARNING: Be sure not to use single quotes in there, as some shells,
1071 # such as our DU 5.0 friend, will then `close' the trap.
1072 trap 'exit_status=$?
1073 # Save into config.log some information that might help in debugging.
1075 echo
1077 cat <<\_ASBOX
1078 ## ---------------- ##
1079 ## Cache variables. ##
1080 ## ---------------- ##
1081 _ASBOX
1082 echo
1083 # The following way of writing the cache mishandles newlines in values,
1085 (set) 2>&1 |
1086 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1087 *ac_space=\ *)
1088 sed -n \
1089 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1093 sed -n \
1094 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1096 esac;
1098 echo
1100 cat <<\_ASBOX
1101 ## ----------------- ##
1102 ## Output variables. ##
1103 ## ----------------- ##
1104 _ASBOX
1105 echo
1106 for ac_var in $ac_subst_vars
1108 eval ac_val=$`echo $ac_var`
1109 echo "$ac_var='"'"'$ac_val'"'"'"
1110 done | sort
1111 echo
1113 if test -n "$ac_subst_files"; then
1114 cat <<\_ASBOX
1115 ## ------------- ##
1116 ## Output files. ##
1117 ## ------------- ##
1118 _ASBOX
1119 echo
1120 for ac_var in $ac_subst_files
1122 eval ac_val=$`echo $ac_var`
1123 echo "$ac_var='"'"'$ac_val'"'"'"
1124 done | sort
1125 echo
1128 if test -s confdefs.h; then
1129 cat <<\_ASBOX
1130 ## ----------- ##
1131 ## confdefs.h. ##
1132 ## ----------- ##
1133 _ASBOX
1134 echo
1135 sed "/^$/d" confdefs.h | sort
1136 echo
1138 test "$ac_signal" != 0 &&
1139 echo "$as_me: caught signal $ac_signal"
1140 echo "$as_me: exit $exit_status"
1141 } >&5
1142 rm -f core core.* *.core &&
1143 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1144 exit $exit_status
1146 for ac_signal in 1 2 13 15; do
1147 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1148 done
1149 ac_signal=0
1151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1152 rm -rf conftest* confdefs.h
1153 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1154 echo >confdefs.h
1156 # Predefined preprocessor variables.
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_NAME "$PACKAGE_NAME"
1160 _ACEOF
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1165 _ACEOF
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1170 _ACEOF
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_STRING "$PACKAGE_STRING"
1175 _ACEOF
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1180 _ACEOF
1183 # Let the site file select an alternate cache file if it wants to.
1184 # Prefer explicitly selected file to automatically selected ones.
1185 if test -z "$CONFIG_SITE"; then
1186 if test "x$prefix" != xNONE; then
1187 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1188 else
1189 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1192 for ac_site_file in $CONFIG_SITE; do
1193 if test -r "$ac_site_file"; then
1194 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195 echo "$as_me: loading site script $ac_site_file" >&6;}
1196 sed 's/^/| /' "$ac_site_file" >&5
1197 . "$ac_site_file"
1199 done
1201 if test -r "$cache_file"; then
1202 # Some versions of bash will fail to source /dev/null (special
1203 # files actually), so we avoid doing that.
1204 if test -f "$cache_file"; then
1205 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206 echo "$as_me: loading cache $cache_file" >&6;}
1207 case $cache_file in
1208 [\\/]* | ?:[\\/]* ) . $cache_file;;
1209 *) . ./$cache_file;;
1210 esac
1212 else
1213 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214 echo "$as_me: creating cache $cache_file" >&6;}
1215 >$cache_file
1218 # Check that the precious variables saved in the cache have kept the same
1219 # value.
1220 ac_cache_corrupted=false
1221 for ac_var in `(set) 2>&1 |
1222 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1224 eval ac_new_set=\$ac_env_${ac_var}_set
1225 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226 eval ac_new_val="\$ac_env_${ac_var}_value"
1227 case $ac_old_set,$ac_new_set in
1228 set,)
1229 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231 ac_cache_corrupted=: ;;
1232 ,set)
1233 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235 ac_cache_corrupted=: ;;
1236 ,);;
1238 if test "x$ac_old_val" != "x$ac_new_val"; then
1239 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1242 echo "$as_me: former value: $ac_old_val" >&2;}
1243 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1244 echo "$as_me: current value: $ac_new_val" >&2;}
1245 ac_cache_corrupted=:
1246 fi;;
1247 esac
1248 # Pass precious variables to config.status.
1249 if test "$ac_new_set" = set; then
1250 case $ac_new_val in
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 *) ac_arg=$ac_var=$ac_new_val ;;
1254 esac
1255 case " $ac_configure_args " in
1256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1257 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1258 esac
1260 done
1261 if $ac_cache_corrupted; then
1262 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266 { (exit 1); exit 1; }; }
1269 ac_ext=c
1270 ac_cpp='$CPP $CPPFLAGS'
1271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303 ac_aux_dir=
1304 for ac_dir in config $srcdir/config; do
1305 if test -f $ac_dir/install-sh; then
1306 ac_aux_dir=$ac_dir
1307 ac_install_sh="$ac_aux_dir/install-sh -c"
1308 break
1309 elif test -f $ac_dir/install.sh; then
1310 ac_aux_dir=$ac_dir
1311 ac_install_sh="$ac_aux_dir/install.sh -c"
1312 break
1313 elif test -f $ac_dir/shtool; then
1314 ac_aux_dir=$ac_dir
1315 ac_install_sh="$ac_aux_dir/shtool install -c"
1316 break
1318 done
1319 if test -z "$ac_aux_dir"; then
1320 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1321 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1322 { (exit 1); exit 1; }; }
1324 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1325 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1326 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1328 ac_config_headers="$ac_config_headers config.h:config.hin"
1330 # Make sure we can run config.sub.
1331 $ac_config_sub sun4 >/dev/null 2>&1 ||
1332 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1333 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1334 { (exit 1); exit 1; }; }
1336 echo "$as_me:$LINENO: checking build system type" >&5
1337 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1338 if test "${ac_cv_build+set}" = set; then
1339 echo $ECHO_N "(cached) $ECHO_C" >&6
1340 else
1341 ac_cv_build_alias=$build_alias
1342 test -z "$ac_cv_build_alias" &&
1343 ac_cv_build_alias=`$ac_config_guess`
1344 test -z "$ac_cv_build_alias" &&
1345 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1346 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1347 { (exit 1); exit 1; }; }
1348 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1349 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1350 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1351 { (exit 1); exit 1; }; }
1354 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1355 echo "${ECHO_T}$ac_cv_build" >&6
1356 build=$ac_cv_build
1357 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1362 echo "$as_me:$LINENO: checking host system type" >&5
1363 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1364 if test "${ac_cv_host+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1366 else
1367 ac_cv_host_alias=$host_alias
1368 test -z "$ac_cv_host_alias" &&
1369 ac_cv_host_alias=$ac_cv_build_alias
1370 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1376 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1377 echo "${ECHO_T}$ac_cv_host" >&6
1378 host=$ac_cv_host
1379 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1385 am__api_version="1.7"
1386 # Find a good install program. We prefer a C program (faster),
1387 # so one script is as good as another. But avoid the broken or
1388 # incompatible versions:
1389 # SysV /etc/install, /usr/sbin/install
1390 # SunOS /usr/etc/install
1391 # IRIX /sbin/install
1392 # AIX /bin/install
1393 # AmigaOS /C/install, which installs bootblocks on floppy discs
1394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1397 # ./install, which can be erroneously created by make from ./install.sh.
1398 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1399 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1400 if test -z "$INSTALL"; then
1401 if test "${ac_cv_path_install+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1403 else
1404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1405 for as_dir in $PATH
1407 IFS=$as_save_IFS
1408 test -z "$as_dir" && as_dir=.
1409 # Account for people who put trailing slashes in PATH elements.
1410 case $as_dir/ in
1411 ./ | .// | /cC/* | \
1412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1413 /usr/ucb/* ) ;;
1415 # OSF1 and SCO ODT 3.0 have their own names for install.
1416 # Don't use installbsd from OSF since it installs stuff as root
1417 # by default.
1418 for ac_prog in ginstall scoinst install; do
1419 for ac_exec_ext in '' $ac_executable_extensions; do
1420 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1421 if test $ac_prog = install &&
1422 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1423 # AIX install. It has an incompatible calling convention.
1425 elif test $ac_prog = install &&
1426 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1427 # program-specific install script used by HP pwplus--don't use.
1429 else
1430 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1431 break 3
1434 done
1435 done
1437 esac
1438 done
1442 if test "${ac_cv_path_install+set}" = set; then
1443 INSTALL=$ac_cv_path_install
1444 else
1445 # As a last resort, use the slow shell script. We don't cache a
1446 # path for INSTALL within a source directory, because that will
1447 # break other packages using the cache if that directory is
1448 # removed, or if the path is relative.
1449 INSTALL=$ac_install_sh
1452 echo "$as_me:$LINENO: result: $INSTALL" >&5
1453 echo "${ECHO_T}$INSTALL" >&6
1455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1456 # It thinks the first close brace ends the variable substitution.
1457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1463 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1464 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1465 # Just in case
1466 sleep 1
1467 echo timestamp > conftest.file
1468 # Do `set' in a subshell so we don't clobber the current shell's
1469 # arguments. Must try -L first in case configure is actually a
1470 # symlink; some systems play weird games with the mod time of symlinks
1471 # (eg FreeBSD returns the mod time of the symlink's containing
1472 # directory).
1473 if (
1474 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1475 if test "$*" = "X"; then
1476 # -L didn't work.
1477 set X `ls -t $srcdir/configure conftest.file`
1479 rm -f conftest.file
1480 if test "$*" != "X $srcdir/configure conftest.file" \
1481 && test "$*" != "X conftest.file $srcdir/configure"; then
1483 # If neither matched, then we have a broken ls. This can happen
1484 # if, for instance, CONFIG_SHELL is bash and it inherits a
1485 # broken ls alias from the environment. This has actually
1486 # happened. Such a system could not be considered "sane".
1487 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1488 alias in your environment" >&5
1489 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1490 alias in your environment" >&2;}
1491 { (exit 1); exit 1; }; }
1494 test "$2" = conftest.file
1496 then
1497 # Ok.
1499 else
1500 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1501 Check your system clock" >&5
1502 echo "$as_me: error: newly created file is older than distributed files!
1503 Check your system clock" >&2;}
1504 { (exit 1); exit 1; }; }
1506 echo "$as_me:$LINENO: result: yes" >&5
1507 echo "${ECHO_T}yes" >&6
1508 test "$program_prefix" != NONE &&
1509 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1510 # Use a double $ so make ignores it.
1511 test "$program_suffix" != NONE &&
1512 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1513 # Double any \ or $. echo might interpret backslashes.
1514 # By default was `s,x,x', remove it if useless.
1515 cat <<\_ACEOF >conftest.sed
1516 s/[\\$]/&&/g;s/;s,x,x,$//
1517 _ACEOF
1518 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1519 rm conftest.sed
1522 # expand $ac_aux_dir to an absolute path
1523 am_aux_dir=`cd $ac_aux_dir && pwd`
1525 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1526 # Use eval to expand $SHELL
1527 if eval "$MISSING --run true"; then
1528 am_missing_run="$MISSING --run "
1529 else
1530 am_missing_run=
1531 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1532 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1535 for ac_prog in gawk mawk nawk awk
1537 # Extract the first word of "$ac_prog", so it can be a program name with args.
1538 set dummy $ac_prog; ac_word=$2
1539 echo "$as_me:$LINENO: checking for $ac_word" >&5
1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541 if test "${ac_cv_prog_AWK+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 else
1544 if test -n "$AWK"; then
1545 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1546 else
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 for as_dir in $PATH
1550 IFS=$as_save_IFS
1551 test -z "$as_dir" && as_dir=.
1552 for ac_exec_ext in '' $ac_executable_extensions; do
1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554 ac_cv_prog_AWK="$ac_prog"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 break 2
1558 done
1559 done
1563 AWK=$ac_cv_prog_AWK
1564 if test -n "$AWK"; then
1565 echo "$as_me:$LINENO: result: $AWK" >&5
1566 echo "${ECHO_T}$AWK" >&6
1567 else
1568 echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1572 test -n "$AWK" && break
1573 done
1575 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1576 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1577 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1578 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581 cat >conftest.make <<\_ACEOF
1582 all:
1583 @echo 'ac_maketemp="$(MAKE)"'
1584 _ACEOF
1585 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1586 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1587 if test -n "$ac_maketemp"; then
1588 eval ac_cv_prog_make_${ac_make}_set=yes
1589 else
1590 eval ac_cv_prog_make_${ac_make}_set=no
1592 rm -f conftest.make
1594 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1595 echo "$as_me:$LINENO: result: yes" >&5
1596 echo "${ECHO_T}yes" >&6
1597 SET_MAKE=
1598 else
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1601 SET_MAKE="MAKE=${MAKE-make}"
1604 # test to see if srcdir already configured
1605 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1606 test -f $srcdir/config.status; then
1607 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1608 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1609 { (exit 1); exit 1; }; }
1612 # test whether we have cygpath
1613 if test -z "$CYGPATH_W"; then
1614 if (cygpath --version) >/dev/null 2>/dev/null; then
1615 CYGPATH_W='cygpath -w'
1616 else
1617 CYGPATH_W=echo
1622 # Define the identity of the package.
1623 PACKAGE=coreutils
1624 VERSION=4.5.7
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE "$PACKAGE"
1629 _ACEOF
1632 cat >>confdefs.h <<_ACEOF
1633 #define VERSION "$VERSION"
1634 _ACEOF
1636 # Some tools Automake needs.
1638 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1641 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1644 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1647 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1650 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1653 AMTAR=${AMTAR-"${am_missing_run}tar"}
1655 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1657 # Installed binaries are usually stripped using `strip' when the user
1658 # run `make install-strip'. However `strip' might not be the right
1659 # tool to use in cross-compilation environments, therefore Automake
1660 # will honor the `STRIP' environment variable to overrule this program.
1661 if test "$cross_compiling" != no; then
1662 if test -n "$ac_tool_prefix"; then
1663 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1664 set dummy ${ac_tool_prefix}strip; ac_word=$2
1665 echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667 if test "${ac_cv_prog_STRIP+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670 if test -n "$STRIP"; then
1671 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1672 else
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1676 IFS=$as_save_IFS
1677 test -z "$as_dir" && as_dir=.
1678 for ac_exec_ext in '' $ac_executable_extensions; do
1679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 break 2
1684 done
1685 done
1689 STRIP=$ac_cv_prog_STRIP
1690 if test -n "$STRIP"; then
1691 echo "$as_me:$LINENO: result: $STRIP" >&5
1692 echo "${ECHO_T}$STRIP" >&6
1693 else
1694 echo "$as_me:$LINENO: result: no" >&5
1695 echo "${ECHO_T}no" >&6
1699 if test -z "$ac_cv_prog_STRIP"; then
1700 ac_ct_STRIP=$STRIP
1701 # Extract the first word of "strip", so it can be a program name with args.
1702 set dummy strip; ac_word=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708 if test -n "$ac_ct_STRIP"; then
1709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1710 else
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_ac_ct_STRIP="strip"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 break 2
1722 done
1723 done
1725 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1729 if test -n "$ac_ct_STRIP"; then
1730 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1731 echo "${ECHO_T}$ac_ct_STRIP" >&6
1732 else
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1737 STRIP=$ac_ct_STRIP
1738 else
1739 STRIP="$ac_cv_prog_STRIP"
1743 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1745 # We need awk for the "check" target. The system "awk" is bad on
1746 # some platforms.
1752 cat >>confdefs.h <<\_ACEOF
1753 #define _GNU_SOURCE 1
1754 _ACEOF
1758 echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
1759 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6
1760 if test "${PERL+set}" = set; then
1761 # `PERL' is set in the user's environment.
1762 candidate_perl_names="$PERL"
1763 perl_specified=yes
1764 else
1765 candidate_perl_names='perl perl5'
1766 perl_specified=no
1769 found=no
1771 PERL="$missing_dir/missing perl"
1772 for perl in $candidate_perl_names; do
1773 # Run test in a subshell; some versions of sh will print an error if
1774 # an executable is not found, even if stderr is redirected.
1775 if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
1776 PERL=$perl
1777 found=yes
1778 break
1780 done
1782 echo "$as_me:$LINENO: result: $found" >&5
1783 echo "${ECHO_T}$found" >&6
1784 test $found = no && { echo "$as_me:$LINENO: WARNING:
1785 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1786 a usable version of the Perl File::Compare module. As a result,
1787 you may be unable to run a few tests or to regenerate certain
1788 files if you modify the sources from which they are derived.
1789 " >&5
1790 echo "$as_me: WARNING:
1791 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1792 a usable version of the Perl File::Compare module. As a result,
1793 you may be unable to run a few tests or to regenerate certain
1794 files if you modify the sources from which they are derived.
1795 " >&2;}
1797 ac_ext=c
1798 ac_cpp='$CPP $CPPFLAGS'
1799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1802 if test -n "$ac_tool_prefix"; then
1803 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1804 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1805 echo "$as_me:$LINENO: checking for $ac_word" >&5
1806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1807 if test "${ac_cv_prog_CC+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810 if test -n "$CC"; then
1811 ac_cv_prog_CC="$CC" # Let the user override the test.
1812 else
1813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814 for as_dir in $PATH
1816 IFS=$as_save_IFS
1817 test -z "$as_dir" && as_dir=.
1818 for ac_exec_ext in '' $ac_executable_extensions; do
1819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1820 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822 break 2
1824 done
1825 done
1829 CC=$ac_cv_prog_CC
1830 if test -n "$CC"; then
1831 echo "$as_me:$LINENO: result: $CC" >&5
1832 echo "${ECHO_T}$CC" >&6
1833 else
1834 echo "$as_me:$LINENO: result: no" >&5
1835 echo "${ECHO_T}no" >&6
1839 if test -z "$ac_cv_prog_CC"; then
1840 ac_ct_CC=$CC
1841 # Extract the first word of "gcc", so it can be a program name with args.
1842 set dummy gcc; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848 if test -n "$ac_ct_CC"; then
1849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1850 else
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 for as_dir in $PATH
1854 IFS=$as_save_IFS
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
1857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858 ac_cv_prog_ac_ct_CC="gcc"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 break 2
1862 done
1863 done
1867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1868 if test -n "$ac_ct_CC"; then
1869 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1870 echo "${ECHO_T}$ac_ct_CC" >&6
1871 else
1872 echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1876 CC=$ac_ct_CC
1877 else
1878 CC="$ac_cv_prog_CC"
1881 if test -z "$CC"; then
1882 if test -n "$ac_tool_prefix"; then
1883 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1884 set dummy ${ac_tool_prefix}cc; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_CC+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890 if test -n "$CC"; then
1891 ac_cv_prog_CC="$CC" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1896 IFS=$as_save_IFS
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_prog_CC="${ac_tool_prefix}cc"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 break 2
1904 done
1905 done
1909 CC=$ac_cv_prog_CC
1910 if test -n "$CC"; then
1911 echo "$as_me:$LINENO: result: $CC" >&5
1912 echo "${ECHO_T}$CC" >&6
1913 else
1914 echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1919 if test -z "$ac_cv_prog_CC"; then
1920 ac_ct_CC=$CC
1921 # Extract the first word of "cc", so it can be a program name with args.
1922 set dummy cc; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928 if test -n "$ac_ct_CC"; then
1929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930 else
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1934 IFS=$as_save_IFS
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938 ac_cv_prog_ac_ct_CC="cc"
1939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 break 2
1942 done
1943 done
1947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948 if test -n "$ac_ct_CC"; then
1949 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950 echo "${ECHO_T}$ac_ct_CC" >&6
1951 else
1952 echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1956 CC=$ac_ct_CC
1957 else
1958 CC="$ac_cv_prog_CC"
1962 if test -z "$CC"; then
1963 # Extract the first word of "cc", so it can be a program name with args.
1964 set dummy cc; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC="$CC" # Let the user override the test.
1972 else
1973 ac_prog_rejected=no
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1982 ac_prog_rejected=yes
1983 continue
1985 ac_cv_prog_CC="cc"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 break 2
1989 done
1990 done
1992 if test $ac_prog_rejected = yes; then
1993 # We found a bogon in the path, so make sure we never use it.
1994 set dummy $ac_cv_prog_CC
1995 shift
1996 if test $# != 0; then
1997 # We chose a different compiler from the bogus one.
1998 # However, it has the same basename, so the bogon will be chosen
1999 # first if we set CC to just the basename; use the full file name.
2000 shift
2001 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2006 CC=$ac_cv_prog_CC
2007 if test -n "$CC"; then
2008 echo "$as_me:$LINENO: result: $CC" >&5
2009 echo "${ECHO_T}$CC" >&6
2010 else
2011 echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2016 if test -z "$CC"; then
2017 if test -n "$ac_tool_prefix"; then
2018 for ac_prog in cl
2020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 if test -n "$CC"; then
2028 ac_cv_prog_CC="$CC" # Let the user override the test.
2029 else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 break 2
2041 done
2042 done
2046 CC=$ac_cv_prog_CC
2047 if test -n "$CC"; then
2048 echo "$as_me:$LINENO: result: $CC" >&5
2049 echo "${ECHO_T}$CC" >&6
2050 else
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2055 test -n "$CC" && break
2056 done
2058 if test -z "$CC"; then
2059 ac_ct_CC=$CC
2060 for ac_prog in cl
2062 # Extract the first word of "$ac_prog", so it can be a program name with args.
2063 set dummy $ac_prog; ac_word=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069 if test -n "$ac_ct_CC"; then
2070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2071 else
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2075 IFS=$as_save_IFS
2076 test -z "$as_dir" && as_dir=.
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079 ac_cv_prog_ac_ct_CC="$ac_prog"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 break 2
2083 done
2084 done
2088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2089 if test -n "$ac_ct_CC"; then
2090 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2091 echo "${ECHO_T}$ac_ct_CC" >&6
2092 else
2093 echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2097 test -n "$ac_ct_CC" && break
2098 done
2100 CC=$ac_ct_CC
2106 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: no acceptable C compiler found in \$PATH
2109 See \`config.log' for more details." >&2;}
2110 { (exit 1); exit 1; }; }
2112 # Provide some information about the compiler.
2113 echo "$as_me:$LINENO:" \
2114 "checking for C compiler version" >&5
2115 ac_compiler=`set X $ac_compile; echo $2`
2116 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2117 (eval $ac_compiler --version </dev/null >&5) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }
2121 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2122 (eval $ac_compiler -v </dev/null >&5) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }
2126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2127 (eval $ac_compiler -V </dev/null >&5) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }
2132 cat >conftest.$ac_ext <<_ACEOF
2133 #line $LINENO "configure"
2134 /* confdefs.h. */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2141 main ()
2145 return 0;
2147 _ACEOF
2148 ac_clean_files_save=$ac_clean_files
2149 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2150 # Try to create an executable without -o first, disregard a.out.
2151 # It will help us diagnose broken compilers, and finding out an intuition
2152 # of exeext.
2153 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2154 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2155 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2156 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2157 (eval $ac_link_default) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; then
2161 # Find the output, starting from the most likely. This scheme is
2162 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2163 # resort.
2165 # Be careful to initialize this variable, since it used to be cached.
2166 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2167 ac_cv_exeext=
2168 # b.out is created by i960 compilers.
2169 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2171 test -f "$ac_file" || continue
2172 case $ac_file in
2173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2175 conftest.$ac_ext )
2176 # This is the source file.
2178 [ab].out )
2179 # We found the default executable, but exeext='' is most
2180 # certainly right.
2181 break;;
2182 *.* )
2183 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184 # FIXME: I believe we export ac_cv_exeext for Libtool,
2185 # but it would be cool to find out if it's true. Does anybody
2186 # maintain Libtool? --akim.
2187 export ac_cv_exeext
2188 break;;
2190 break;;
2191 esac
2192 done
2193 else
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2197 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201 { (exit 77); exit 77; }; }
2204 ac_exeext=$ac_cv_exeext
2205 echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6
2208 # Check the compiler produces executables we can run. If not, either
2209 # the compiler is broken, or we cross compile.
2210 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215 if { ac_try='./$ac_file'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2221 cross_compiling=no
2222 else
2223 if test "$cross_compiling" = maybe; then
2224 cross_compiling=yes
2225 else
2226 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: cannot run C compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&2;}
2232 { (exit 1); exit 1; }; }
2236 echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6
2239 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2240 ac_clean_files=$ac_clean_files_save
2241 # Check the compiler produces executables we can run. If not, either
2242 # the compiler is broken, or we cross compile.
2243 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2244 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2245 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2246 echo "${ECHO_T}$cross_compiling" >&6
2248 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2249 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2251 (eval $ac_link) 2>&5
2252 ac_status=$?
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; then
2255 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2258 # `rm'.
2259 for ac_file in conftest.exe conftest conftest.*; do
2260 test -f "$ac_file" || continue
2261 case $ac_file in
2262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2263 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2264 export ac_cv_exeext
2265 break;;
2266 * ) break;;
2267 esac
2268 done
2269 else
2270 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2277 rm -f conftest$ac_cv_exeext
2278 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2283 ac_exeext=$EXEEXT
2284 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2286 if test "${ac_cv_objext+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289 cat >conftest.$ac_ext <<_ACEOF
2290 #line $LINENO "configure"
2291 /* confdefs.h. */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2298 main ()
2302 return 0;
2304 _ACEOF
2305 rm -f conftest.o conftest.obj
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; then
2311 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2312 case $ac_file in
2313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2314 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2315 break;;
2316 esac
2317 done
2318 else
2319 echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2322 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2325 See \`config.log' for more details." >&2;}
2326 { (exit 1); exit 1; }; }
2329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2331 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2332 echo "${ECHO_T}$ac_cv_objext" >&6
2333 OBJEXT=$ac_cv_objext
2334 ac_objext=$OBJEXT
2335 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2336 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2337 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340 cat >conftest.$ac_ext <<_ACEOF
2341 #line $LINENO "configure"
2342 /* confdefs.h. */
2343 _ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2349 main ()
2351 #ifndef __GNUC__
2352 choke me
2353 #endif
2356 return 0;
2358 _ACEOF
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361 (eval $ac_compile) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } &&
2365 { ac_try='test -s conftest.$ac_objext'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 (eval $ac_try) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2371 ac_compiler_gnu=yes
2372 else
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2376 ac_compiler_gnu=no
2378 rm -f conftest.$ac_objext conftest.$ac_ext
2379 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2382 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2383 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2384 GCC=`test $ac_compiler_gnu = yes && echo yes`
2385 ac_test_CFLAGS=${CFLAGS+set}
2386 ac_save_CFLAGS=$CFLAGS
2387 CFLAGS="-g"
2388 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2389 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2390 if test "${ac_cv_prog_cc_g+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393 cat >conftest.$ac_ext <<_ACEOF
2394 #line $LINENO "configure"
2395 /* confdefs.h. */
2396 _ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2402 main ()
2406 return 0;
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 ac_cv_prog_cc_g=yes
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2426 ac_cv_prog_cc_g=no
2428 rm -f conftest.$ac_objext conftest.$ac_ext
2430 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2431 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2432 if test "$ac_test_CFLAGS" = set; then
2433 CFLAGS=$ac_save_CFLAGS
2434 elif test $ac_cv_prog_cc_g = yes; then
2435 if test "$GCC" = yes; then
2436 CFLAGS="-g -O2"
2437 else
2438 CFLAGS="-g"
2440 else
2441 if test "$GCC" = yes; then
2442 CFLAGS="-O2"
2443 else
2444 CFLAGS=
2447 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2448 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2449 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452 ac_cv_prog_cc_stdc=no
2453 ac_save_CC=$CC
2454 cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2456 /* confdefs.h. */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2461 #include <stdarg.h>
2462 #include <stdio.h>
2463 #include <sys/types.h>
2464 #include <sys/stat.h>
2465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2466 struct buf { int x; };
2467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2468 static char *e (p, i)
2469 char **p;
2470 int i;
2472 return p[i];
2474 static char *f (char * (*g) (char **, int), char **p, ...)
2476 char *s;
2477 va_list v;
2478 va_start (v,p);
2479 s = g (p, va_arg (v,int));
2480 va_end (v);
2481 return s;
2483 int test (int i, double x);
2484 struct s1 {int (*f) (int a);};
2485 struct s2 {int (*f) (double a);};
2486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2487 int argc;
2488 char **argv;
2490 main ()
2492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2494 return 0;
2496 _ACEOF
2497 # Don't try gcc -ansi; that turns off useful extensions and
2498 # breaks some systems' header files.
2499 # AIX -qlanglvl=ansi
2500 # Ultrix and OSF/1 -std1
2501 # HP-UX 10.20 and later -Ae
2502 # HP-UX older versions -Aa -D_HPUX_SOURCE
2503 # SVR4 -Xc -D__EXTENSIONS__
2504 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2506 CC="$ac_save_CC $ac_arg"
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_cv_prog_cc_stdc=$ac_arg
2520 break
2521 else
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2526 rm -f conftest.$ac_objext
2527 done
2528 rm -f conftest.$ac_ext conftest.$ac_objext
2529 CC=$ac_save_CC
2533 case "x$ac_cv_prog_cc_stdc" in
2534 x|xno)
2535 echo "$as_me:$LINENO: result: none needed" >&5
2536 echo "${ECHO_T}none needed" >&6 ;;
2538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540 CC="$CC $ac_cv_prog_cc_stdc" ;;
2541 esac
2543 # Some people use a C++ compiler to compile C. Since we use `exit',
2544 # in C++ we need to declare it. In case someone uses the same compiler
2545 # for both compiling C and C++ we need to have the C++ compiler decide
2546 # the declaration of exit, since it's the most demanding environment.
2547 cat >conftest.$ac_ext <<_ACEOF
2548 #ifndef __cplusplus
2549 choke me
2550 #endif
2551 _ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 for ac_declaration in \
2566 '#include <stdlib.h>' \
2567 'extern "C" void std::exit (int) throw (); using std::exit;' \
2568 'extern "C" void std::exit (int); using std::exit;' \
2569 'extern "C" void exit (int) throw ();' \
2570 'extern "C" void exit (int);' \
2571 'void exit (int);'
2573 cat >conftest.$ac_ext <<_ACEOF
2574 #line $LINENO "configure"
2575 /* confdefs.h. */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2580 #include <stdlib.h>
2581 $ac_declaration
2583 main ()
2585 exit (42);
2587 return 0;
2589 _ACEOF
2590 rm -f conftest.$ac_objext
2591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592 (eval $ac_compile) 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 (eval $ac_try) 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2603 else
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2607 continue
2609 rm -f conftest.$ac_objext conftest.$ac_ext
2610 cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2612 /* confdefs.h. */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2617 $ac_declaration
2619 main ()
2621 exit (42);
2623 return 0;
2625 _ACEOF
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2638 break
2639 else
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2644 rm -f conftest.$ac_objext conftest.$ac_ext
2645 done
2646 rm -f conftest*
2647 if test -n "$ac_declaration"; then
2648 echo '#ifdef __cplusplus' >>confdefs.h
2649 echo $ac_declaration >>confdefs.h
2650 echo '#endif' >>confdefs.h
2653 else
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2658 rm -f conftest.$ac_objext conftest.$ac_ext
2659 ac_ext=c
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664 rm -f .deps 2>/dev/null
2665 mkdir .deps 2>/dev/null
2666 if test -d .deps; then
2667 DEPDIR=.deps
2668 else
2669 # MS-DOS does not allow filenames that begin with a dot.
2670 DEPDIR=_deps
2672 rmdir .deps 2>/dev/null
2675 ac_config_commands="$ac_config_commands depfiles"
2678 am_make=${MAKE-make}
2679 cat > confinc << 'END'
2680 doit:
2681 @echo done
2683 # If we don't find an include directive, just comment out the code.
2684 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2685 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2686 am__include="#"
2687 am__quote=
2688 _am_result=none
2689 # First try GNU make style include.
2690 echo "include confinc" > confmf
2691 # We grep out `Entering directory' and `Leaving directory'
2692 # messages which can occur if `w' ends up in MAKEFLAGS.
2693 # In particular we don't look at `^make:' because GNU make might
2694 # be invoked under some other name (usually "gmake"), in which
2695 # case it prints its new name instead of `make'.
2696 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2697 am__include=include
2698 am__quote=
2699 _am_result=GNU
2701 # Now try BSD make style include.
2702 if test "$am__include" = "#"; then
2703 echo '.include "confinc"' > confmf
2704 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2705 am__include=.include
2706 am__quote="\""
2707 _am_result=BSD
2712 echo "$as_me:$LINENO: result: $_am_result" >&5
2713 echo "${ECHO_T}$_am_result" >&6
2714 rm -f confinc confmf
2716 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2717 if test "${enable_dependency_tracking+set}" = set; then
2718 enableval="$enable_dependency_tracking"
2721 if test "x$enable_dependency_tracking" != xno; then
2722 am_depcomp="$ac_aux_dir/depcomp"
2723 AMDEPBACKSLASH='\'
2727 if test "x$enable_dependency_tracking" != xno; then
2728 AMDEP_TRUE=
2729 AMDEP_FALSE='#'
2730 else
2731 AMDEP_TRUE='#'
2732 AMDEP_FALSE=
2738 depcc="$CC" am_compiler_list=
2740 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2741 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2742 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2746 # We make a subdir and do the tests there. Otherwise we can end up
2747 # making bogus files that we don't know about and never remove. For
2748 # instance it was reported that on HP-UX the gcc test will end up
2749 # making a dummy file named `D' -- because `-MD' means `put the output
2750 # in D'.
2751 mkdir conftest.dir
2752 # Copy depcomp to subdir because otherwise we won't find it if we're
2753 # using a relative directory.
2754 cp "$am_depcomp" conftest.dir
2755 cd conftest.dir
2757 am_cv_CC_dependencies_compiler_type=none
2758 if test "$am_compiler_list" = ""; then
2759 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2761 for depmode in $am_compiler_list; do
2762 # We need to recreate these files for each test, as the compiler may
2763 # overwrite some of them when testing with obscure command lines.
2764 # This happens at least with the AIX C compiler.
2765 echo '#include "conftest.h"' > conftest.c
2766 echo 'int i;' > conftest.h
2767 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2769 case $depmode in
2770 nosideeffect)
2771 # after this tag, mechanisms are not by side-effect, so they'll
2772 # only be used when explicitly requested
2773 if test "x$enable_dependency_tracking" = xyes; then
2774 continue
2775 else
2776 break
2779 none) break ;;
2780 esac
2781 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2782 # mode. It turns out that the SunPro C++ compiler does not properly
2783 # handle `-M -o', and we need to detect this.
2784 if depmode=$depmode \
2785 source=conftest.c object=conftest.o \
2786 depfile=conftest.Po tmpdepfile=conftest.TPo \
2787 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2788 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2789 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2790 am_cv_CC_dependencies_compiler_type=$depmode
2791 break
2793 done
2795 cd ..
2796 rm -rf conftest.dir
2797 else
2798 am_cv_CC_dependencies_compiler_type=none
2802 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2803 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2804 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2809 test "x$enable_dependency_tracking" != xno \
2810 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2811 am__fastdepCC_TRUE=
2812 am__fastdepCC_FALSE='#'
2813 else
2814 am__fastdepCC_TRUE='#'
2815 am__fastdepCC_FALSE=
2819 ac_ext=c
2820 ac_cpp='$CPP $CPPFLAGS'
2821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2824 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2825 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2826 # On Suns, sometimes $CPP names a directory.
2827 if test -n "$CPP" && test -d "$CPP"; then
2828 CPP=
2830 if test -z "$CPP"; then
2831 if test "${ac_cv_prog_CPP+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834 # Double quotes because CPP needs to be expanded
2835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2837 ac_preproc_ok=false
2838 for ac_c_preproc_warn_flag in '' yes
2840 # Use a header file that comes with gcc, so configuring glibc
2841 # with a fresh cross-compiler works.
2842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2843 # <limits.h> exists even on freestanding compilers.
2844 # On the NeXT, cc -E runs the code through the compiler's parser,
2845 # not just through cpp. "Syntax error" is here to catch this case.
2846 cat >conftest.$ac_ext <<_ACEOF
2847 #line $LINENO "configure"
2848 /* confdefs.h. */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2853 #ifdef __STDC__
2854 # include <limits.h>
2855 #else
2856 # include <assert.h>
2857 #endif
2858 Syntax error
2859 _ACEOF
2860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2862 ac_status=$?
2863 grep -v '^ *+' conftest.er1 >conftest.err
2864 rm -f conftest.er1
2865 cat conftest.err >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } >/dev/null; then
2868 if test -s conftest.err; then
2869 ac_cpp_err=$ac_c_preproc_warn_flag
2870 else
2871 ac_cpp_err=
2873 else
2874 ac_cpp_err=yes
2876 if test -z "$ac_cpp_err"; then
2878 else
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2882 # Broken: fails on valid input.
2883 continue
2885 rm -f conftest.err conftest.$ac_ext
2887 # OK, works on sane cases. Now check whether non-existent headers
2888 # can be detected and how.
2889 cat >conftest.$ac_ext <<_ACEOF
2890 #line $LINENO "configure"
2891 /* confdefs.h. */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2896 #include <ac_nonexistent.h>
2897 _ACEOF
2898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2900 ac_status=$?
2901 grep -v '^ *+' conftest.er1 >conftest.err
2902 rm -f conftest.er1
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } >/dev/null; then
2906 if test -s conftest.err; then
2907 ac_cpp_err=$ac_c_preproc_warn_flag
2908 else
2909 ac_cpp_err=
2911 else
2912 ac_cpp_err=yes
2914 if test -z "$ac_cpp_err"; then
2915 # Broken: success on invalid input.
2916 continue
2917 else
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2921 # Passes both tests.
2922 ac_preproc_ok=:
2923 break
2925 rm -f conftest.err conftest.$ac_ext
2927 done
2928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2929 rm -f conftest.err conftest.$ac_ext
2930 if $ac_preproc_ok; then
2931 break
2934 done
2935 ac_cv_prog_CPP=$CPP
2938 CPP=$ac_cv_prog_CPP
2939 else
2940 ac_cv_prog_CPP=$CPP
2942 echo "$as_me:$LINENO: result: $CPP" >&5
2943 echo "${ECHO_T}$CPP" >&6
2944 ac_preproc_ok=false
2945 for ac_c_preproc_warn_flag in '' yes
2947 # Use a header file that comes with gcc, so configuring glibc
2948 # with a fresh cross-compiler works.
2949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2950 # <limits.h> exists even on freestanding compilers.
2951 # On the NeXT, cc -E runs the code through the compiler's parser,
2952 # not just through cpp. "Syntax error" is here to catch this case.
2953 cat >conftest.$ac_ext <<_ACEOF
2954 #line $LINENO "configure"
2955 /* confdefs.h. */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2960 #ifdef __STDC__
2961 # include <limits.h>
2962 #else
2963 # include <assert.h>
2964 #endif
2965 Syntax error
2966 _ACEOF
2967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2969 ac_status=$?
2970 grep -v '^ *+' conftest.er1 >conftest.err
2971 rm -f conftest.er1
2972 cat conftest.err >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } >/dev/null; then
2975 if test -s conftest.err; then
2976 ac_cpp_err=$ac_c_preproc_warn_flag
2977 else
2978 ac_cpp_err=
2980 else
2981 ac_cpp_err=yes
2983 if test -z "$ac_cpp_err"; then
2985 else
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2989 # Broken: fails on valid input.
2990 continue
2992 rm -f conftest.err conftest.$ac_ext
2994 # OK, works on sane cases. Now check whether non-existent headers
2995 # can be detected and how.
2996 cat >conftest.$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
2998 /* confdefs.h. */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3003 #include <ac_nonexistent.h>
3004 _ACEOF
3005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3007 ac_status=$?
3008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } >/dev/null; then
3013 if test -s conftest.err; then
3014 ac_cpp_err=$ac_c_preproc_warn_flag
3015 else
3016 ac_cpp_err=
3018 else
3019 ac_cpp_err=yes
3021 if test -z "$ac_cpp_err"; then
3022 # Broken: success on invalid input.
3023 continue
3024 else
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3028 # Passes both tests.
3029 ac_preproc_ok=:
3030 break
3032 rm -f conftest.err conftest.$ac_ext
3034 done
3035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3036 rm -f conftest.err conftest.$ac_ext
3037 if $ac_preproc_ok; then
3039 else
3040 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3041 See \`config.log' for more details." >&5
3042 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3043 See \`config.log' for more details." >&2;}
3044 { (exit 1); exit 1; }; }
3047 ac_ext=c
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055 echo "$as_me:$LINENO: checking for egrep" >&5
3056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3057 if test "${ac_cv_prog_egrep+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 else
3060 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3061 then ac_cv_prog_egrep='grep -E'
3062 else ac_cv_prog_egrep='egrep'
3065 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3066 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3067 EGREP=$ac_cv_prog_egrep
3070 if test $ac_cv_c_compiler_gnu = yes; then
3071 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3072 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3073 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076 ac_pattern="Autoconf.*'x'"
3077 cat >conftest.$ac_ext <<_ACEOF
3078 #line $LINENO "configure"
3079 /* confdefs.h. */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3084 #include <sgtty.h>
3085 Autoconf TIOCGETP
3086 _ACEOF
3087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3088 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3089 ac_cv_prog_gcc_traditional=yes
3090 else
3091 ac_cv_prog_gcc_traditional=no
3093 rm -f conftest*
3096 if test $ac_cv_prog_gcc_traditional = no; then
3097 cat >conftest.$ac_ext <<_ACEOF
3098 #line $LINENO "configure"
3099 /* confdefs.h. */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3104 #include <termio.h>
3105 Autoconf TCGETA
3106 _ACEOF
3107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3108 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3109 ac_cv_prog_gcc_traditional=yes
3111 rm -f conftest*
3115 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3116 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3117 if test $ac_cv_prog_gcc_traditional = yes; then
3118 CC="$CC -traditional"
3122 if test -n "$ac_tool_prefix"; then
3123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3124 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3125 echo "$as_me:$LINENO: checking for $ac_word" >&5
3126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3127 if test "${ac_cv_prog_RANLIB+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 if test -n "$RANLIB"; then
3131 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3144 done
3145 done
3149 RANLIB=$ac_cv_prog_RANLIB
3150 if test -n "$RANLIB"; then
3151 echo "$as_me:$LINENO: result: $RANLIB" >&5
3152 echo "${ECHO_T}$RANLIB" >&6
3153 else
3154 echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6
3159 if test -z "$ac_cv_prog_RANLIB"; then
3160 ac_ct_RANLIB=$RANLIB
3161 # Extract the first word of "ranlib", so it can be a program name with args.
3162 set dummy ranlib; ac_word=$2
3163 echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168 if test -n "$ac_ct_RANLIB"; then
3169 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_ac_ct_RANLIB="ranlib"
3179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3182 done
3183 done
3185 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3189 if test -n "$ac_ct_RANLIB"; then
3190 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3192 else
3193 echo "$as_me:$LINENO: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3197 RANLIB=$ac_ct_RANLIB
3198 else
3199 RANLIB="$ac_cv_prog_RANLIB"
3203 echo "$as_me:$LINENO: checking for AIX" >&5
3204 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3205 cat >conftest.$ac_ext <<_ACEOF
3206 #line $LINENO "configure"
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212 #ifdef _AIX
3214 #endif
3216 _ACEOF
3217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3218 $EGREP "yes" >/dev/null 2>&1; then
3219 echo "$as_me:$LINENO: result: yes" >&5
3220 echo "${ECHO_T}yes" >&6
3221 cat >>confdefs.h <<\_ACEOF
3222 #define _ALL_SOURCE 1
3223 _ACEOF
3225 else
3226 echo "$as_me:$LINENO: result: no" >&5
3227 echo "${ECHO_T}no" >&6
3229 rm -f conftest*
3232 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3233 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3234 if test "${ac_cv_header_stdc+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 cat >conftest.$ac_ext <<_ACEOF
3238 #line $LINENO "configure"
3239 /* confdefs.h. */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3244 #include <stdlib.h>
3245 #include <stdarg.h>
3246 #include <string.h>
3247 #include <float.h>
3250 main ()
3254 return 0;
3256 _ACEOF
3257 rm -f conftest.$ac_objext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3269 ac_cv_header_stdc=yes
3270 else
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 ac_cv_header_stdc=no
3276 rm -f conftest.$ac_objext conftest.$ac_ext
3278 if test $ac_cv_header_stdc = yes; then
3279 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3280 cat >conftest.$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3282 /* confdefs.h. */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <string.h>
3289 _ACEOF
3290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3291 $EGREP "memchr" >/dev/null 2>&1; then
3293 else
3294 ac_cv_header_stdc=no
3296 rm -f conftest*
3300 if test $ac_cv_header_stdc = yes; then
3301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3302 cat >conftest.$ac_ext <<_ACEOF
3303 #line $LINENO "configure"
3304 /* confdefs.h. */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3309 #include <stdlib.h>
3311 _ACEOF
3312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3313 $EGREP "free" >/dev/null 2>&1; then
3315 else
3316 ac_cv_header_stdc=no
3318 rm -f conftest*
3322 if test $ac_cv_header_stdc = yes; then
3323 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3324 if test "$cross_compiling" = yes; then
3326 else
3327 cat >conftest.$ac_ext <<_ACEOF
3328 #line $LINENO "configure"
3329 /* confdefs.h. */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3334 #include <ctype.h>
3335 #if ((' ' & 0x0FF) == 0x020)
3336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3338 #else
3339 # define ISLOWER(c) \
3340 (('a' <= (c) && (c) <= 'i') \
3341 || ('j' <= (c) && (c) <= 'r') \
3342 || ('s' <= (c) && (c) <= 'z'))
3343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3344 #endif
3346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3348 main ()
3350 int i;
3351 for (i = 0; i < 256; i++)
3352 if (XOR (islower (i), ISLOWER (i))
3353 || toupper (i) != TOUPPER (i))
3354 exit(2);
3355 exit (0);
3357 _ACEOF
3358 rm -f conftest$ac_exeext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3360 (eval $ac_link) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365 (eval $ac_try) 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }; }; then
3370 else
3371 echo "$as_me: program exited with status $ac_status" >&5
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3375 ( exit $ac_status )
3376 ac_cv_header_stdc=no
3378 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3382 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3383 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3384 if test $ac_cv_header_stdc = yes; then
3386 cat >>confdefs.h <<\_ACEOF
3387 #define STDC_HEADERS 1
3388 _ACEOF
3392 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3402 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3403 inttypes.h stdint.h unistd.h
3405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3406 echo "$as_me:$LINENO: checking for $ac_header" >&5
3407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3413 /* confdefs.h. */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418 $ac_includes_default
3420 #include <$ac_header>
3421 _ACEOF
3422 rm -f conftest.$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424 (eval $ac_compile) 2>&5
3425 ac_status=$?
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } &&
3428 { ac_try='test -s conftest.$ac_objext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 (eval $ac_try) 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3434 eval "$as_ac_Header=yes"
3435 else
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 eval "$as_ac_Header=no"
3441 rm -f conftest.$ac_objext conftest.$ac_ext
3443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3446 cat >>confdefs.h <<_ACEOF
3447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3448 _ACEOF
3452 done
3455 if test "${ac_cv_header_minix_config_h+set}" = set; then
3456 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3457 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3458 if test "${ac_cv_header_minix_config_h+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3462 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3463 else
3464 # Is the header compilable?
3465 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3466 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3467 cat >conftest.$ac_ext <<_ACEOF
3468 #line $LINENO "configure"
3469 /* confdefs.h. */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3474 $ac_includes_default
3475 #include <minix/config.h>
3476 _ACEOF
3477 rm -f conftest.$ac_objext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479 (eval $ac_compile) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -s conftest.$ac_objext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_header_compiler=yes
3490 else
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 ac_header_compiler=no
3496 rm -f conftest.$ac_objext conftest.$ac_ext
3497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3498 echo "${ECHO_T}$ac_header_compiler" >&6
3500 # Is the header present?
3501 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3502 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3505 /* confdefs.h. */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 #include <minix/config.h>
3511 _ACEOF
3512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3514 ac_status=$?
3515 grep -v '^ *+' conftest.er1 >conftest.err
3516 rm -f conftest.er1
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } >/dev/null; then
3520 if test -s conftest.err; then
3521 ac_cpp_err=$ac_c_preproc_warn_flag
3522 else
3523 ac_cpp_err=
3525 else
3526 ac_cpp_err=yes
3528 if test -z "$ac_cpp_err"; then
3529 ac_header_preproc=yes
3530 else
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3534 ac_header_preproc=no
3536 rm -f conftest.err conftest.$ac_ext
3537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3538 echo "${ECHO_T}$ac_header_preproc" >&6
3540 # So? What about this header?
3541 case $ac_header_compiler:$ac_header_preproc in
3542 yes:no )
3543 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3544 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3545 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3546 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3548 cat <<\_ASBOX
3549 ## ------------------------------------ ##
3550 ## Report this to bug-autoconf@gnu.org. ##
3551 ## ------------------------------------ ##
3552 _ASBOX
3554 sed "s/^/$as_me: WARNING: /" >&2
3556 no:yes )
3557 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3558 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3559 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3560 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3561 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3562 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3564 cat <<\_ASBOX
3565 ## ------------------------------------ ##
3566 ## Report this to bug-autoconf@gnu.org. ##
3567 ## ------------------------------------ ##
3568 _ASBOX
3570 sed "s/^/$as_me: WARNING: /" >&2
3572 esac
3573 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3574 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3575 if test "${ac_cv_header_minix_config_h+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578 ac_cv_header_minix_config_h=$ac_header_preproc
3580 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3581 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3584 if test $ac_cv_header_minix_config_h = yes; then
3585 MINIX=yes
3586 else
3587 MINIX=
3591 if test "$MINIX" = yes; then
3593 cat >>confdefs.h <<\_ACEOF
3594 #define _POSIX_SOURCE 1
3595 _ACEOF
3598 cat >>confdefs.h <<\_ACEOF
3599 #define _POSIX_1_SOURCE 2
3600 _ACEOF
3603 cat >>confdefs.h <<\_ACEOF
3604 #define _MINIX 1
3605 _ACEOF
3611 for ac_func in uname
3613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3614 echo "$as_me:$LINENO: checking for $ac_func" >&5
3615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3616 if eval "test \"\${$as_ac_var+set}\" = set"; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619 cat >conftest.$ac_ext <<_ACEOF
3620 #line $LINENO "configure"
3621 /* confdefs.h. */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 /* System header to define __stub macros and hopefully few prototypes,
3627 which can conflict with char $ac_func (); below.
3628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3629 <limits.h> exists even on freestanding compilers. */
3630 #ifdef __STDC__
3631 # include <limits.h>
3632 #else
3633 # include <assert.h>
3634 #endif
3635 /* Override any gcc2 internal prototype to avoid an error. */
3636 #ifdef __cplusplus
3637 extern "C"
3639 #endif
3640 /* We use char because int might match the return type of a gcc2
3641 builtin and then its argument prototype would still apply. */
3642 char $ac_func ();
3643 /* The GNU C library defines this for functions which it implements
3644 to always fail with ENOSYS. Some functions are actually named
3645 something starting with __ and the normal name is an alias. */
3646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3647 choke me
3648 #else
3649 char (*f) () = $ac_func;
3650 #endif
3651 #ifdef __cplusplus
3653 #endif
3656 main ()
3658 return f != $ac_func;
3660 return 0;
3662 _ACEOF
3663 rm -f conftest.$ac_objext conftest$ac_exeext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3665 (eval $ac_link) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -s conftest$ac_exeext'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3675 eval "$as_ac_var=yes"
3676 else
3677 echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3680 eval "$as_ac_var=no"
3682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3686 if test `eval echo '${'$as_ac_var'}'` = yes; then
3687 cat >>confdefs.h <<_ACEOF
3688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3689 _ACEOF
3690 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname" MAN="$MAN uname.1"
3692 done
3695 for ac_func in chroot
3697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3698 echo "$as_me:$LINENO: checking for $ac_func" >&5
3699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3700 if eval "test \"\${$as_ac_var+set}\" = set"; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703 cat >conftest.$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3705 /* confdefs.h. */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 /* System header to define __stub macros and hopefully few prototypes,
3711 which can conflict with char $ac_func (); below.
3712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3713 <limits.h> exists even on freestanding compilers. */
3714 #ifdef __STDC__
3715 # include <limits.h>
3716 #else
3717 # include <assert.h>
3718 #endif
3719 /* Override any gcc2 internal prototype to avoid an error. */
3720 #ifdef __cplusplus
3721 extern "C"
3723 #endif
3724 /* We use char because int might match the return type of a gcc2
3725 builtin and then its argument prototype would still apply. */
3726 char $ac_func ();
3727 /* The GNU C library defines this for functions which it implements
3728 to always fail with ENOSYS. Some functions are actually named
3729 something starting with __ and the normal name is an alias. */
3730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3731 choke me
3732 #else
3733 char (*f) () = $ac_func;
3734 #endif
3735 #ifdef __cplusplus
3737 #endif
3740 main ()
3742 return f != $ac_func;
3744 return 0;
3746 _ACEOF
3747 rm -f conftest.$ac_objext conftest$ac_exeext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3749 (eval $ac_link) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try='test -s conftest$ac_exeext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 eval "$as_ac_var=yes"
3760 else
3761 echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 eval "$as_ac_var=no"
3766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3770 if test `eval echo '${'$as_ac_var'}'` = yes; then
3771 cat >>confdefs.h <<_ACEOF
3772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3773 _ACEOF
3774 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot" MAN="$MAN chroot.1"
3776 done
3779 for ac_func in gethostid
3781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3782 echo "$as_me:$LINENO: checking for $ac_func" >&5
3783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3784 if eval "test \"\${$as_ac_var+set}\" = set"; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787 cat >conftest.$ac_ext <<_ACEOF
3788 #line $LINENO "configure"
3789 /* confdefs.h. */
3790 _ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h. */
3794 /* System header to define __stub macros and hopefully few prototypes,
3795 which can conflict with char $ac_func (); below.
3796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3797 <limits.h> exists even on freestanding compilers. */
3798 #ifdef __STDC__
3799 # include <limits.h>
3800 #else
3801 # include <assert.h>
3802 #endif
3803 /* Override any gcc2 internal prototype to avoid an error. */
3804 #ifdef __cplusplus
3805 extern "C"
3807 #endif
3808 /* We use char because int might match the return type of a gcc2
3809 builtin and then its argument prototype would still apply. */
3810 char $ac_func ();
3811 /* The GNU C library defines this for functions which it implements
3812 to always fail with ENOSYS. Some functions are actually named
3813 something starting with __ and the normal name is an alias. */
3814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3815 choke me
3816 #else
3817 char (*f) () = $ac_func;
3818 #endif
3819 #ifdef __cplusplus
3821 #endif
3824 main ()
3826 return f != $ac_func;
3828 return 0;
3830 _ACEOF
3831 rm -f conftest.$ac_objext conftest$ac_exeext
3832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3833 (eval $ac_link) 2>&5
3834 ac_status=$?
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -s conftest$ac_exeext'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 eval "$as_ac_var=yes"
3844 else
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3848 eval "$as_ac_var=no"
3850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3854 if test `eval echo '${'$as_ac_var'}'` = yes; then
3855 cat >>confdefs.h <<_ACEOF
3856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3857 _ACEOF
3858 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid" MAN="$MAN hostid.1"
3860 done
3864 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3865 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3866 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869 ac_check_lib_save_LIBS=$LIBS
3870 LIBS="-lcposix $LIBS"
3871 cat >conftest.$ac_ext <<_ACEOF
3872 #line $LINENO "configure"
3873 /* confdefs.h. */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3879 /* Override any gcc2 internal prototype to avoid an error. */
3880 #ifdef __cplusplus
3881 extern "C"
3882 #endif
3883 /* We use char because int might match the return type of a gcc2
3884 builtin and then its argument prototype would still apply. */
3885 char strerror ();
3887 main ()
3889 strerror ();
3891 return 0;
3893 _ACEOF
3894 rm -f conftest.$ac_objext conftest$ac_exeext
3895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3896 (eval $ac_link) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } &&
3900 { ac_try='test -s conftest$ac_exeext'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 (eval $ac_try) 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; }; then
3906 ac_cv_lib_cposix_strerror=yes
3907 else
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 ac_cv_lib_cposix_strerror=no
3913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3914 LIBS=$ac_check_lib_save_LIBS
3916 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3917 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3918 if test $ac_cv_lib_cposix_strerror = yes; then
3919 LIBS="$LIBS -lcposix"
3924 # Check whether --enable-largefile or --disable-largefile was given.
3925 if test "${enable_largefile+set}" = set; then
3926 enableval="$enable_largefile"
3929 if test "$enable_largefile" != no; then
3931 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3932 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3933 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936 ac_cv_sys_largefile_CC=no
3937 if test "$GCC" != yes; then
3938 ac_save_CC=$CC
3939 while :; do
3940 # IRIX 6.2 and later do not support large files by default,
3941 # so use the C compiler's -n32 option if that helps.
3942 cat >conftest.$ac_ext <<_ACEOF
3943 #line $LINENO "configure"
3944 /* confdefs.h. */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 #include <sys/types.h>
3950 /* Check that off_t can represent 2**63 - 1 correctly.
3951 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3952 since some C++ compilers masquerading as C compilers
3953 incorrectly reject 9223372036854775807. */
3954 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3955 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3956 && LARGE_OFF_T % 2147483647 == 1)
3957 ? 1 : -1];
3959 main ()
3963 return 0;
3965 _ACEOF
3966 rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968 (eval $ac_compile) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -s conftest.$ac_objext'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 break
3979 else
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3984 rm -f conftest.$ac_objext
3985 CC="$CC -n32"
3986 rm -f conftest.$ac_objext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988 (eval $ac_compile) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } &&
3992 { ac_try='test -s conftest.$ac_objext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 ac_cv_sys_largefile_CC=' -n32'; break
3999 else
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4004 rm -f conftest.$ac_objext
4005 break
4006 done
4007 CC=$ac_save_CC
4008 rm -f conftest.$ac_ext
4011 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4012 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4013 if test "$ac_cv_sys_largefile_CC" != no; then
4014 CC=$CC$ac_cv_sys_largefile_CC
4017 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4018 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4019 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 while :; do
4023 ac_cv_sys_file_offset_bits=no
4024 cat >conftest.$ac_ext <<_ACEOF
4025 #line $LINENO "configure"
4026 /* confdefs.h. */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4031 #include <sys/types.h>
4032 /* Check that off_t can represent 2**63 - 1 correctly.
4033 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4034 since some C++ compilers masquerading as C compilers
4035 incorrectly reject 9223372036854775807. */
4036 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4037 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4038 && LARGE_OFF_T % 2147483647 == 1)
4039 ? 1 : -1];
4041 main ()
4045 return 0;
4047 _ACEOF
4048 rm -f conftest.$ac_objext
4049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4050 (eval $ac_compile) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } &&
4054 { ac_try='test -s conftest.$ac_objext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 (eval $ac_try) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4060 break
4061 else
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4066 rm -f conftest.$ac_objext conftest.$ac_ext
4067 cat >conftest.$ac_ext <<_ACEOF
4068 #line $LINENO "configure"
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #define _FILE_OFFSET_BITS 64
4075 #include <sys/types.h>
4076 /* Check that off_t can represent 2**63 - 1 correctly.
4077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4078 since some C++ compilers masquerading as C compilers
4079 incorrectly reject 9223372036854775807. */
4080 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4082 && LARGE_OFF_T % 2147483647 == 1)
4083 ? 1 : -1];
4085 main ()
4089 return 0;
4091 _ACEOF
4092 rm -f conftest.$ac_objext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try='test -s conftest.$ac_objext'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 (eval $ac_try) 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
4104 ac_cv_sys_file_offset_bits=64; break
4105 else
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4110 rm -f conftest.$ac_objext conftest.$ac_ext
4111 break
4112 done
4114 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4115 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4116 if test "$ac_cv_sys_file_offset_bits" != no; then
4118 cat >>confdefs.h <<_ACEOF
4119 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4120 _ACEOF
4123 rm -f conftest*
4124 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4125 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4126 if test "${ac_cv_sys_large_files+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129 while :; do
4130 ac_cv_sys_large_files=no
4131 cat >conftest.$ac_ext <<_ACEOF
4132 #line $LINENO "configure"
4133 /* confdefs.h. */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 #include <sys/types.h>
4139 /* Check that off_t can represent 2**63 - 1 correctly.
4140 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4141 since some C++ compilers masquerading as C compilers
4142 incorrectly reject 9223372036854775807. */
4143 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4144 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4145 && LARGE_OFF_T % 2147483647 == 1)
4146 ? 1 : -1];
4148 main ()
4152 return 0;
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try='test -s conftest.$ac_objext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 (eval $ac_try) 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 break
4168 else
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4173 rm -f conftest.$ac_objext conftest.$ac_ext
4174 cat >conftest.$ac_ext <<_ACEOF
4175 #line $LINENO "configure"
4176 /* confdefs.h. */
4177 _ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4181 #define _LARGE_FILES 1
4182 #include <sys/types.h>
4183 /* Check that off_t can represent 2**63 - 1 correctly.
4184 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4185 since some C++ compilers masquerading as C compilers
4186 incorrectly reject 9223372036854775807. */
4187 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4188 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4189 && LARGE_OFF_T % 2147483647 == 1)
4190 ? 1 : -1];
4192 main ()
4196 return 0;
4198 _ACEOF
4199 rm -f conftest.$ac_objext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201 (eval $ac_compile) 2>&5
4202 ac_status=$?
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
4207 (eval $ac_try) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 ac_cv_sys_large_files=1; break
4212 else
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4217 rm -f conftest.$ac_objext conftest.$ac_ext
4218 break
4219 done
4221 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4222 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4223 if test "$ac_cv_sys_large_files" != no; then
4225 cat >>confdefs.h <<_ACEOF
4226 #define _LARGE_FILES $ac_cv_sys_large_files
4227 _ACEOF
4230 rm -f conftest*
4236 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4237 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
4238 if test "${am_cv_prog_cc_stdc+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241 am_cv_prog_cc_stdc=no
4242 ac_save_CC="$CC"
4243 # Don't try gcc -ansi; that turns off useful extensions and
4244 # breaks some systems' header files.
4245 # AIX -qlanglvl=ansi
4246 # Ultrix and OSF/1 -std1
4247 # HP-UX 10.20 and later -Ae
4248 # HP-UX older versions -Aa -D_HPUX_SOURCE
4249 # SVR4 -Xc -D__EXTENSIONS__
4250 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4252 CC="$ac_save_CC $ac_arg"
4253 cat >conftest.$ac_ext <<_ACEOF
4254 #line $LINENO "configure"
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 #include <stdarg.h>
4261 #include <stdio.h>
4262 #include <sys/types.h>
4263 #include <sys/stat.h>
4264 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4265 struct buf { int x; };
4266 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4267 static char *e (p, i)
4268 char **p;
4269 int i;
4271 return p[i];
4273 static char *f (char * (*g) (char **, int), char **p, ...)
4275 char *s;
4276 va_list v;
4277 va_start (v,p);
4278 s = g (p, va_arg (v,int));
4279 va_end (v);
4280 return s;
4282 int test (int i, double x);
4283 struct s1 {int (*f) (int a);};
4284 struct s2 {int (*f) (double a);};
4285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4286 int argc;
4287 char **argv;
4290 main ()
4293 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4296 return 0;
4298 _ACEOF
4299 rm -f conftest.$ac_objext
4300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4301 (eval $ac_compile) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 am_cv_prog_cc_stdc="$ac_arg"; break
4312 else
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4317 rm -f conftest.$ac_objext conftest.$ac_ext
4318 done
4319 CC="$ac_save_CC"
4323 if test -z "$am_cv_prog_cc_stdc"; then
4324 echo "$as_me:$LINENO: result: none needed" >&5
4325 echo "${ECHO_T}none needed" >&6
4326 else
4327 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4328 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
4330 case "x$am_cv_prog_cc_stdc" in
4331 x|xno) ;;
4332 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4333 esac
4337 echo "$as_me:$LINENO: checking for function prototypes" >&5
4338 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4339 if test "$am_cv_prog_cc_stdc" != no; then
4340 echo "$as_me:$LINENO: result: yes" >&5
4341 echo "${ECHO_T}yes" >&6
4343 cat >>confdefs.h <<\_ACEOF
4344 #define PROTOTYPES 1
4345 _ACEOF
4347 U= ANSI2KNR=
4348 else
4349 echo "$as_me:$LINENO: result: no" >&5
4350 echo "${ECHO_T}no" >&6
4351 U=_ ANSI2KNR=./ansi2knr
4353 # Ensure some checks needed by ansi2knr itself.
4354 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4355 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4356 if test "${ac_cv_header_stdc+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359 cat >conftest.$ac_ext <<_ACEOF
4360 #line $LINENO "configure"
4361 /* confdefs.h. */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4366 #include <stdlib.h>
4367 #include <stdarg.h>
4368 #include <string.h>
4369 #include <float.h>
4372 main ()
4376 return 0;
4378 _ACEOF
4379 rm -f conftest.$ac_objext
4380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381 (eval $ac_compile) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } &&
4385 { ac_try='test -s conftest.$ac_objext'
4386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 (eval $ac_try) 2>&5
4388 ac_status=$?
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; }; then
4391 ac_cv_header_stdc=yes
4392 else
4393 echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4396 ac_cv_header_stdc=no
4398 rm -f conftest.$ac_objext conftest.$ac_ext
4400 if test $ac_cv_header_stdc = yes; then
4401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4402 cat >conftest.$ac_ext <<_ACEOF
4403 #line $LINENO "configure"
4404 /* confdefs.h. */
4405 _ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4409 #include <string.h>
4411 _ACEOF
4412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4413 $EGREP "memchr" >/dev/null 2>&1; then
4415 else
4416 ac_cv_header_stdc=no
4418 rm -f conftest*
4422 if test $ac_cv_header_stdc = yes; then
4423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4424 cat >conftest.$ac_ext <<_ACEOF
4425 #line $LINENO "configure"
4426 /* confdefs.h. */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4431 #include <stdlib.h>
4433 _ACEOF
4434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4435 $EGREP "free" >/dev/null 2>&1; then
4437 else
4438 ac_cv_header_stdc=no
4440 rm -f conftest*
4444 if test $ac_cv_header_stdc = yes; then
4445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4446 if test "$cross_compiling" = yes; then
4448 else
4449 cat >conftest.$ac_ext <<_ACEOF
4450 #line $LINENO "configure"
4451 /* confdefs.h. */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 #include <ctype.h>
4457 #if ((' ' & 0x0FF) == 0x020)
4458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4460 #else
4461 # define ISLOWER(c) \
4462 (('a' <= (c) && (c) <= 'i') \
4463 || ('j' <= (c) && (c) <= 'r') \
4464 || ('s' <= (c) && (c) <= 'z'))
4465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4466 #endif
4468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4470 main ()
4472 int i;
4473 for (i = 0; i < 256; i++)
4474 if (XOR (islower (i), ISLOWER (i))
4475 || toupper (i) != TOUPPER (i))
4476 exit(2);
4477 exit (0);
4479 _ACEOF
4480 rm -f conftest$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482 (eval $ac_link) 2>&5
4483 ac_status=$?
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4492 else
4493 echo "$as_me: program exited with status $ac_status" >&5
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4497 ( exit $ac_status )
4498 ac_cv_header_stdc=no
4500 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4504 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4505 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4506 if test $ac_cv_header_stdc = yes; then
4508 cat >>confdefs.h <<\_ACEOF
4509 #define STDC_HEADERS 1
4510 _ACEOF
4515 for ac_header in string.h
4517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519 echo "$as_me:$LINENO: checking for $ac_header" >&5
4520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4526 else
4527 # Is the header compilable?
4528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4530 cat >conftest.$ac_ext <<_ACEOF
4531 #line $LINENO "configure"
4532 /* confdefs.h. */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4538 #include <$ac_header>
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542 (eval $ac_compile) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -s conftest.$ac_objext'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 (eval $ac_try) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 ac_header_compiler=yes
4553 else
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4557 ac_header_compiler=no
4559 rm -f conftest.$ac_objext conftest.$ac_ext
4560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4561 echo "${ECHO_T}$ac_header_compiler" >&6
4563 # Is the header present?
4564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4566 cat >conftest.$ac_ext <<_ACEOF
4567 #line $LINENO "configure"
4568 /* confdefs.h. */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 #include <$ac_header>
4574 _ACEOF
4575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4577 ac_status=$?
4578 grep -v '^ *+' conftest.er1 >conftest.err
4579 rm -f conftest.er1
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } >/dev/null; then
4583 if test -s conftest.err; then
4584 ac_cpp_err=$ac_c_preproc_warn_flag
4585 else
4586 ac_cpp_err=
4588 else
4589 ac_cpp_err=yes
4591 if test -z "$ac_cpp_err"; then
4592 ac_header_preproc=yes
4593 else
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4597 ac_header_preproc=no
4599 rm -f conftest.err conftest.$ac_ext
4600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4601 echo "${ECHO_T}$ac_header_preproc" >&6
4603 # So? What about this header?
4604 case $ac_header_compiler:$ac_header_preproc in
4605 yes:no )
4606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4611 cat <<\_ASBOX
4612 ## ------------------------------------ ##
4613 ## Report this to bug-autoconf@gnu.org. ##
4614 ## ------------------------------------ ##
4615 _ASBOX
4617 sed "s/^/$as_me: WARNING: /" >&2
4619 no:yes )
4620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4627 cat <<\_ASBOX
4628 ## ------------------------------------ ##
4629 ## Report this to bug-autoconf@gnu.org. ##
4630 ## ------------------------------------ ##
4631 _ASBOX
4633 sed "s/^/$as_me: WARNING: /" >&2
4635 esac
4636 echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641 eval "$as_ac_Header=$ac_header_preproc"
4643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4648 cat >>confdefs.h <<_ACEOF
4649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4650 _ACEOF
4654 done
4657 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4658 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4659 if test "${ac_cv_c_bigendian+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662 # See if sys/param.h defines the BYTE_ORDER macro.
4663 cat >conftest.$ac_ext <<_ACEOF
4664 #line $LINENO "configure"
4665 /* confdefs.h. */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670 #include <sys/types.h>
4671 #include <sys/param.h>
4674 main ()
4676 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4677 bogus endian macros
4678 #endif
4681 return 0;
4683 _ACEOF
4684 rm -f conftest.$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686 (eval $ac_compile) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } &&
4690 { ac_try='test -s conftest.$ac_objext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 # It does; now see whether it defined to BIG_ENDIAN or not.
4697 cat >conftest.$ac_ext <<_ACEOF
4698 #line $LINENO "configure"
4699 /* confdefs.h. */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 #include <sys/types.h>
4705 #include <sys/param.h>
4708 main ()
4710 #if BYTE_ORDER != BIG_ENDIAN
4711 not big endian
4712 #endif
4715 return 0;
4717 _ACEOF
4718 rm -f conftest.$ac_objext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4720 (eval $ac_compile) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -s conftest.$ac_objext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 (eval $ac_try) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 ac_cv_c_bigendian=yes
4731 else
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4735 ac_cv_c_bigendian=no
4737 rm -f conftest.$ac_objext conftest.$ac_ext
4738 else
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4742 # It does not; compile a test program.
4743 if test "$cross_compiling" = yes; then
4744 # try to guess the endianness by grepping values into an object file
4745 ac_cv_c_bigendian=unknown
4746 cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4748 /* confdefs.h. */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4754 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4755 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4756 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4757 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4758 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4760 main ()
4762 _ascii (); _ebcdic ();
4764 return 0;
4766 _ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769 (eval $ac_compile) 2>&5
4770 ac_status=$?
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -s conftest.$ac_objext'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 (eval $ac_try) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4780 ac_cv_c_bigendian=yes
4782 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4783 if test "$ac_cv_c_bigendian" = unknown; then
4784 ac_cv_c_bigendian=no
4785 else
4786 # finding both strings is unlikely to happen, but who knows?
4787 ac_cv_c_bigendian=unknown
4790 else
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4795 rm -f conftest.$ac_objext conftest.$ac_ext
4796 else
4797 cat >conftest.$ac_ext <<_ACEOF
4798 #line $LINENO "configure"
4799 /* confdefs.h. */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4805 main ()
4807 /* Are we little or big endian? From Harbison&Steele. */
4808 union
4810 long l;
4811 char c[sizeof (long)];
4812 } u;
4813 u.l = 1;
4814 exit (u.c[sizeof (long) - 1] == 1);
4816 _ACEOF
4817 rm -f conftest$ac_exeext
4818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4819 (eval $ac_link) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 (eval $ac_try) 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4828 ac_cv_c_bigendian=no
4829 else
4830 echo "$as_me: program exited with status $ac_status" >&5
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4834 ( exit $ac_status )
4835 ac_cv_c_bigendian=yes
4837 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4840 rm -f conftest.$ac_objext conftest.$ac_ext
4842 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4843 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4844 case $ac_cv_c_bigendian in
4845 yes)
4847 cat >>confdefs.h <<\_ACEOF
4848 #define WORDS_BIGENDIAN 1
4849 _ACEOF
4854 { { echo "$as_me:$LINENO: error: unknown endianness
4855 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4856 echo "$as_me: error: unknown endianness
4857 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4858 { (exit 1); exit 1; }; } ;;
4859 esac
4861 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4862 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4863 if test "${ac_cv_c_const+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866 cat >conftest.$ac_ext <<_ACEOF
4867 #line $LINENO "configure"
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4875 main ()
4877 /* FIXME: Include the comments suggested by Paul. */
4878 #ifndef __cplusplus
4879 /* Ultrix mips cc rejects this. */
4880 typedef int charset[2];
4881 const charset x;
4882 /* SunOS 4.1.1 cc rejects this. */
4883 char const *const *ccp;
4884 char **p;
4885 /* NEC SVR4.0.2 mips cc rejects this. */
4886 struct point {int x, y;};
4887 static struct point const zero = {0,0};
4888 /* AIX XL C 1.02.0.0 rejects this.
4889 It does not let you subtract one const X* pointer from another in
4890 an arm of an if-expression whose if-part is not a constant
4891 expression */
4892 const char *g = "string";
4893 ccp = &g + (g ? g-g : 0);
4894 /* HPUX 7.0 cc rejects these. */
4895 ++ccp;
4896 p = (char**) ccp;
4897 ccp = (char const *const *) p;
4898 { /* SCO 3.2v4 cc rejects this. */
4899 char *t;
4900 char const *s = 0 ? (char *) 0 : (char const *) 0;
4902 *t++ = 0;
4904 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4905 int x[] = {25, 17};
4906 const int *foo = &x[0];
4907 ++foo;
4909 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4910 typedef const int *iptr;
4911 iptr p = 0;
4912 ++p;
4914 { /* AIX XL C 1.02.0.0 rejects this saying
4915 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4916 struct s { int j; const int *ap[3]; };
4917 struct s *b; b->j = 5;
4919 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4920 const int foo = 10;
4922 #endif
4925 return 0;
4927 _ACEOF
4928 rm -f conftest.$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930 (eval $ac_compile) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 (eval $ac_try) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4940 ac_cv_c_const=yes
4941 else
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4945 ac_cv_c_const=no
4947 rm -f conftest.$ac_objext conftest.$ac_ext
4949 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4950 echo "${ECHO_T}$ac_cv_c_const" >&6
4951 if test $ac_cv_c_const = no; then
4953 cat >>confdefs.h <<\_ACEOF
4954 #define const
4955 _ACEOF
4959 echo "$as_me:$LINENO: checking for working volatile" >&5
4960 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4961 if test "${ac_cv_c_volatile+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964 cat >conftest.$ac_ext <<_ACEOF
4965 #line $LINENO "configure"
4966 /* confdefs.h. */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4973 main ()
4976 volatile int x;
4977 int * volatile y;
4979 return 0;
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_cv_c_volatile=yes
4995 else
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4999 ac_cv_c_volatile=no
5001 rm -f conftest.$ac_objext conftest.$ac_ext
5003 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5004 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5005 if test $ac_cv_c_volatile = no; then
5007 cat >>confdefs.h <<\_ACEOF
5008 #define volatile
5009 _ACEOF
5013 echo "$as_me:$LINENO: checking for inline" >&5
5014 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5015 if test "${ac_cv_c_inline+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018 ac_cv_c_inline=no
5019 for ac_kw in inline __inline__ __inline; do
5020 cat >conftest.$ac_ext <<_ACEOF
5021 #line $LINENO "configure"
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 #ifndef __cplusplus
5028 typedef int foo_t;
5029 static $ac_kw foo_t static_foo () {return 0; }
5030 $ac_kw foo_t foo () {return 0; }
5031 #endif
5033 _ACEOF
5034 rm -f conftest.$ac_objext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5036 (eval $ac_compile) 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -s conftest.$ac_objext'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 (eval $ac_try) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 ac_cv_c_inline=$ac_kw; break
5047 else
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5052 rm -f conftest.$ac_objext conftest.$ac_ext
5053 done
5056 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5057 echo "${ECHO_T}$ac_cv_c_inline" >&6
5058 case $ac_cv_c_inline in
5059 inline | yes) ;;
5061 cat >>confdefs.h <<\_ACEOF
5062 #define inline
5063 _ACEOF
5065 *) cat >>confdefs.h <<_ACEOF
5066 #define inline $ac_cv_c_inline
5067 _ACEOF
5069 esac
5071 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5072 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5073 if test "${ac_cv_c_long_double+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076 cat >conftest.$ac_ext <<_ACEOF
5077 #line $LINENO "configure"
5078 /* confdefs.h. */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 #include <float.h>
5084 long double foo = 0.0;
5086 main ()
5088 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
5089 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5090 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5091 test_array [0] = 0
5094 return 0;
5096 _ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099 (eval $ac_compile) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -s conftest.$ac_objext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5109 ac_cv_c_long_double=yes
5110 else
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5114 ac_cv_c_long_double=no
5116 rm -f conftest.$ac_objext conftest.$ac_ext
5118 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5119 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5120 if test $ac_cv_c_long_double = yes; then
5122 cat >>confdefs.h <<\_ACEOF
5123 #define HAVE_LONG_DOUBLE 1
5124 _ACEOF
5166 for ac_header in \
5167 errno.h \
5168 fcntl.h \
5169 float.h \
5170 hurd.h \
5171 limits.h \
5172 memory.h \
5173 mntent.h \
5174 mnttab.h \
5175 netdb.h \
5176 paths.h \
5177 stdlib.h \
5178 stddef.h \
5179 stdint.h \
5180 string.h \
5181 sys/filsys.h \
5182 sys/fs/s5param.h \
5183 sys/fs_types.h \
5184 sys/fstyp.h \
5185 sys/ioctl.h \
5186 sys/mntent.h \
5187 sys/mount.h \
5188 sys/param.h \
5189 sys/resource.h \
5190 sys/socket.h \
5191 sys/statfs.h \
5192 sys/statvfs.h \
5193 sys/sysctl.h \
5194 sys/systeminfo.h \
5195 sys/time.h \
5196 sys/timeb.h \
5197 sys/vfs.h \
5198 sys/wait.h \
5199 syslog.h \
5200 termios.h \
5201 unistd.h \
5202 utime.h \
5203 values.h \
5206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5208 echo "$as_me:$LINENO: checking for $ac_header" >&5
5209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5215 else
5216 # Is the header compilable?
5217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5219 cat >conftest.$ac_ext <<_ACEOF
5220 #line $LINENO "configure"
5221 /* confdefs.h. */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 $ac_includes_default
5227 #include <$ac_header>
5228 _ACEOF
5229 rm -f conftest.$ac_objext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231 (eval $ac_compile) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } &&
5235 { ac_try='test -s conftest.$ac_objext'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 (eval $ac_try) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 ac_header_compiler=yes
5242 else
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246 ac_header_compiler=no
5248 rm -f conftest.$ac_objext conftest.$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5250 echo "${ECHO_T}$ac_header_compiler" >&6
5252 # Is the header present?
5253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5255 cat >conftest.$ac_ext <<_ACEOF
5256 #line $LINENO "configure"
5257 /* confdefs.h. */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 #include <$ac_header>
5263 _ACEOF
5264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5266 ac_status=$?
5267 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } >/dev/null; then
5272 if test -s conftest.err; then
5273 ac_cpp_err=$ac_c_preproc_warn_flag
5274 else
5275 ac_cpp_err=
5277 else
5278 ac_cpp_err=yes
5280 if test -z "$ac_cpp_err"; then
5281 ac_header_preproc=yes
5282 else
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 ac_header_preproc=no
5288 rm -f conftest.err conftest.$ac_ext
5289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5290 echo "${ECHO_T}$ac_header_preproc" >&6
5292 # So? What about this header?
5293 case $ac_header_compiler:$ac_header_preproc in
5294 yes:no )
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5300 cat <<\_ASBOX
5301 ## ------------------------------------ ##
5302 ## Report this to bug-autoconf@gnu.org. ##
5303 ## ------------------------------------ ##
5304 _ASBOX
5306 sed "s/^/$as_me: WARNING: /" >&2
5308 no:yes )
5309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5316 cat <<\_ASBOX
5317 ## ------------------------------------ ##
5318 ## Report this to bug-autoconf@gnu.org. ##
5319 ## ------------------------------------ ##
5320 _ASBOX
5322 sed "s/^/$as_me: WARNING: /" >&2
5324 esac
5325 echo "$as_me:$LINENO: checking for $ac_header" >&5
5326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330 eval "$as_ac_Header=$ac_header_preproc"
5332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5337 cat >>confdefs.h <<_ACEOF
5338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5339 _ACEOF
5343 done
5351 ac_header_dirent=no
5352 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5353 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5354 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5355 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359 cat >conftest.$ac_ext <<_ACEOF
5360 #line $LINENO "configure"
5361 /* confdefs.h. */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 #include <sys/types.h>
5367 #include <$ac_hdr>
5370 main ()
5372 if ((DIR *) 0)
5373 return 0;
5375 return 0;
5377 _ACEOF
5378 rm -f conftest.$ac_objext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } &&
5384 { ac_try='test -s conftest.$ac_objext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 (eval $ac_try) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 eval "$as_ac_Header=yes"
5391 else
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 eval "$as_ac_Header=no"
5397 rm -f conftest.$ac_objext conftest.$ac_ext
5399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5402 cat >>confdefs.h <<_ACEOF
5403 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5404 _ACEOF
5406 ac_header_dirent=$ac_hdr; break
5409 done
5410 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5411 if test $ac_header_dirent = dirent.h; then
5413 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5414 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5415 if test "${ac_cv_search_opendir+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5419 ac_func_search_save_LIBS=$LIBS
5420 ac_cv_search_opendir=no
5421 cat >conftest.$ac_ext <<_ACEOF
5422 #line $LINENO "configure"
5423 /* confdefs.h. */
5424 _ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5429 /* Override any gcc2 internal prototype to avoid an error. */
5430 #ifdef __cplusplus
5431 extern "C"
5432 #endif
5433 /* We use char because int might match the return type of a gcc2
5434 builtin and then its argument prototype would still apply. */
5435 char opendir ();
5437 main ()
5439 opendir ();
5441 return 0;
5443 _ACEOF
5444 rm -f conftest.$ac_objext conftest$ac_exeext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5446 (eval $ac_link) 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -s conftest$ac_exeext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 (eval $ac_try) 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5456 ac_cv_search_opendir='none required'
5457 else
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5463 if test "$ac_cv_search_opendir" = no; then
5464 for ac_lib in dir; do
5465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5468 /* confdefs.h. */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5474 /* Override any gcc2 internal prototype to avoid an error. */
5475 #ifdef __cplusplus
5476 extern "C"
5477 #endif
5478 /* We use char because int might match the return type of a gcc2
5479 builtin and then its argument prototype would still apply. */
5480 char opendir ();
5482 main ()
5484 opendir ();
5486 return 0;
5488 _ACEOF
5489 rm -f conftest.$ac_objext conftest$ac_exeext
5490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5491 (eval $ac_link) 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -s conftest$ac_exeext'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 (eval $ac_try) 2>&5
5498 ac_status=$?
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 ac_cv_search_opendir="-l$ac_lib"; break
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5508 done
5510 LIBS=$ac_func_search_save_LIBS
5513 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5514 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5516 if test "$ac_cv_search_opendir" = no; then :
5518 else
5519 if test "$ac_cv_search_opendir" = 'none required'; then :
5521 else
5522 LIBS="$ac_cv_search_opendir $LIBS"
5527 else
5529 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5530 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5531 if test "${ac_cv_search_opendir+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5535 ac_func_search_save_LIBS=$LIBS
5536 ac_cv_search_opendir=no
5537 cat >conftest.$ac_ext <<_ACEOF
5538 #line $LINENO "configure"
5539 /* confdefs.h. */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5545 /* Override any gcc2 internal prototype to avoid an error. */
5546 #ifdef __cplusplus
5547 extern "C"
5548 #endif
5549 /* We use char because int might match the return type of a gcc2
5550 builtin and then its argument prototype would still apply. */
5551 char opendir ();
5553 main ()
5555 opendir ();
5557 return 0;
5559 _ACEOF
5560 rm -f conftest.$ac_objext conftest$ac_exeext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562 (eval $ac_link) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try='test -s conftest$ac_exeext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 ac_cv_search_opendir='none required'
5573 else
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5579 if test "$ac_cv_search_opendir" = no; then
5580 for ac_lib in x; do
5581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5582 cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5584 /* confdefs.h. */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5590 /* Override any gcc2 internal prototype to avoid an error. */
5591 #ifdef __cplusplus
5592 extern "C"
5593 #endif
5594 /* We use char because int might match the return type of a gcc2
5595 builtin and then its argument prototype would still apply. */
5596 char opendir ();
5598 main ()
5600 opendir ();
5602 return 0;
5604 _ACEOF
5605 rm -f conftest.$ac_objext conftest$ac_exeext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5607 (eval $ac_link) 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } &&
5611 { ac_try='test -s conftest$ac_exeext'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 (eval $ac_try) 2>&5
5614 ac_status=$?
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; }; then
5617 ac_cv_search_opendir="-l$ac_lib"; break
5618 else
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5624 done
5626 LIBS=$ac_func_search_save_LIBS
5629 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5630 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5632 if test "$ac_cv_search_opendir" = no; then :
5634 else
5635 if test "$ac_cv_search_opendir" = 'none required'; then :
5637 else
5638 LIBS="$ac_cv_search_opendir $LIBS"
5645 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5646 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5647 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650 cat >conftest.$ac_ext <<_ACEOF
5651 #line $LINENO "configure"
5652 /* confdefs.h. */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 $ac_includes_default
5659 main ()
5661 static struct stat ac_aggr;
5662 if (ac_aggr.st_blocks)
5663 return 0;
5665 return 0;
5667 _ACEOF
5668 rm -f conftest.$ac_objext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670 (eval $ac_compile) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -s conftest.$ac_objext'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 (eval $ac_try) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5680 ac_cv_member_struct_stat_st_blocks=yes
5681 else
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5685 cat >conftest.$ac_ext <<_ACEOF
5686 #line $LINENO "configure"
5687 /* confdefs.h. */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 $ac_includes_default
5694 main ()
5696 static struct stat ac_aggr;
5697 if (sizeof ac_aggr.st_blocks)
5698 return 0;
5700 return 0;
5702 _ACEOF
5703 rm -f conftest.$ac_objext
5704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5705 (eval $ac_compile) 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } &&
5709 { ac_try='test -s conftest.$ac_objext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 (eval $ac_try) 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 ac_cv_member_struct_stat_st_blocks=yes
5716 else
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5720 ac_cv_member_struct_stat_st_blocks=no
5722 rm -f conftest.$ac_objext conftest.$ac_ext
5724 rm -f conftest.$ac_objext conftest.$ac_ext
5726 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5727 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5728 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5730 cat >>confdefs.h <<_ACEOF
5731 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5732 _ACEOF
5735 cat >>confdefs.h <<\_ACEOF
5736 #define HAVE_ST_BLOCKS 1
5737 _ACEOF
5739 else
5740 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
5744 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5745 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5746 if test "${ac_cv_struct_tm+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749 cat >conftest.$ac_ext <<_ACEOF
5750 #line $LINENO "configure"
5751 /* confdefs.h. */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 #include <sys/types.h>
5757 #include <time.h>
5760 main ()
5762 struct tm *tp; tp->tm_sec;
5764 return 0;
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_cv_struct_tm=time.h
5780 else
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5784 ac_cv_struct_tm=sys/time.h
5786 rm -f conftest.$ac_objext conftest.$ac_ext
5788 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5789 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5790 if test $ac_cv_struct_tm = sys/time.h; then
5792 cat >>confdefs.h <<\_ACEOF
5793 #define TM_IN_SYS_TIME 1
5794 _ACEOF
5798 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5799 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5800 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803 cat >conftest.$ac_ext <<_ACEOF
5804 #line $LINENO "configure"
5805 /* confdefs.h. */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 #include <sys/types.h>
5811 #include <$ac_cv_struct_tm>
5815 main ()
5817 static struct tm ac_aggr;
5818 if (ac_aggr.tm_zone)
5819 return 0;
5821 return 0;
5823 _ACEOF
5824 rm -f conftest.$ac_objext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5826 (eval $ac_compile) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -s conftest.$ac_objext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 ac_cv_member_struct_tm_tm_zone=yes
5837 else
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841 cat >conftest.$ac_ext <<_ACEOF
5842 #line $LINENO "configure"
5843 /* confdefs.h. */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <sys/types.h>
5849 #include <$ac_cv_struct_tm>
5853 main ()
5855 static struct tm ac_aggr;
5856 if (sizeof ac_aggr.tm_zone)
5857 return 0;
5859 return 0;
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_member_struct_tm_tm_zone=yes
5875 else
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 ac_cv_member_struct_tm_tm_zone=no
5881 rm -f conftest.$ac_objext conftest.$ac_ext
5883 rm -f conftest.$ac_objext conftest.$ac_ext
5885 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5886 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5887 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5889 cat >>confdefs.h <<_ACEOF
5890 #define HAVE_STRUCT_TM_TM_ZONE 1
5891 _ACEOF
5896 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5898 cat >>confdefs.h <<\_ACEOF
5899 #define HAVE_TM_ZONE 1
5900 _ACEOF
5902 else
5903 echo "$as_me:$LINENO: checking for tzname" >&5
5904 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5905 if test "${ac_cv_var_tzname+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908 cat >conftest.$ac_ext <<_ACEOF
5909 #line $LINENO "configure"
5910 /* confdefs.h. */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 #include <time.h>
5916 #ifndef tzname /* For SGI. */
5917 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5918 #endif
5921 main ()
5923 atoi(*tzname);
5925 return 0;
5927 _ACEOF
5928 rm -f conftest.$ac_objext conftest$ac_exeext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930 (eval $ac_link) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } &&
5934 { ac_try='test -s conftest$ac_exeext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 ac_cv_var_tzname=yes
5941 else
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 ac_cv_var_tzname=no
5947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5949 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5950 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5951 if test $ac_cv_var_tzname = yes; then
5953 cat >>confdefs.h <<\_ACEOF
5954 #define HAVE_TZNAME 1
5955 _ACEOF
5960 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5961 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5962 if test "${ac_cv_header_stat_broken+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965 cat >conftest.$ac_ext <<_ACEOF
5966 #line $LINENO "configure"
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 #include <sys/types.h>
5973 #include <sys/stat.h>
5975 #if defined(S_ISBLK) && defined(S_IFDIR)
5976 # if S_ISBLK (S_IFDIR)
5977 You lose.
5978 # endif
5979 #endif
5981 #if defined(S_ISBLK) && defined(S_IFCHR)
5982 # if S_ISBLK (S_IFCHR)
5983 You lose.
5984 # endif
5985 #endif
5987 #if defined(S_ISLNK) && defined(S_IFREG)
5988 # if S_ISLNK (S_IFREG)
5989 You lose.
5990 # endif
5991 #endif
5993 #if defined(S_ISSOCK) && defined(S_IFREG)
5994 # if S_ISSOCK (S_IFREG)
5995 You lose.
5996 # endif
5997 #endif
5999 _ACEOF
6000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6001 $EGREP "You lose" >/dev/null 2>&1; then
6002 ac_cv_header_stat_broken=yes
6003 else
6004 ac_cv_header_stat_broken=no
6006 rm -f conftest*
6009 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6010 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6011 if test $ac_cv_header_stat_broken = yes; then
6013 cat >>confdefs.h <<\_ACEOF
6014 #define STAT_MACROS_BROKEN 1
6015 _ACEOF
6019 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
6020 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
6021 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024 ac_save_CPPFLAGS="$CPPFLAGS"
6025 ac_cv_struct_st_mtim_nsec=no
6026 # tv_nsec -- the usual case
6027 # _tv_nsec -- Solaris 2.6, if
6028 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
6029 # && !defined __EXTENSIONS__)
6030 # st__tim.tv_nsec -- UnixWare 2.1.2
6031 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
6032 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
6033 cat >conftest.$ac_ext <<_ACEOF
6034 #line $LINENO "configure"
6035 /* confdefs.h. */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 #include <sys/types.h>
6041 #include <sys/stat.h>
6043 main ()
6045 struct stat s; s.st_mtim.ST_MTIM_NSEC;
6047 return 0;
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6052 (eval $ac_compile) 2>&5
6053 ac_status=$?
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try='test -s conftest.$ac_objext'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 (eval $ac_try) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; }; then
6062 ac_cv_struct_st_mtim_nsec=$ac_val; break
6063 else
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6068 rm -f conftest.$ac_objext conftest.$ac_ext
6069 done
6070 CPPFLAGS="$ac_save_CPPFLAGS"
6072 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
6073 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
6075 if test $ac_cv_struct_st_mtim_nsec != no; then
6077 cat >>confdefs.h <<_ACEOF
6078 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
6079 _ACEOF
6084 echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
6085 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
6086 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 cat >conftest.$ac_ext <<_ACEOF
6090 #line $LINENO "configure"
6091 /* confdefs.h. */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 #include <sys/types.h>
6097 #include <sys/stat.h>
6099 main ()
6101 struct stat s; s.st_dm_mode;
6103 return 0;
6105 _ACEOF
6106 rm -f conftest.$ac_objext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108 (eval $ac_compile) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } &&
6112 { ac_try='test -s conftest.$ac_objext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 (eval $ac_try) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6118 ac_cv_struct_st_dm_mode=yes
6119 else
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6123 ac_cv_struct_st_dm_mode=no
6125 rm -f conftest.$ac_objext conftest.$ac_ext
6127 echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
6128 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
6130 if test $ac_cv_struct_st_dm_mode = yes; then
6132 cat >>confdefs.h <<\_ACEOF
6133 #define HAVE_ST_DM_MODE 1
6134 _ACEOF
6139 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6140 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6141 if test "${ac_cv_header_time+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144 cat >conftest.$ac_ext <<_ACEOF
6145 #line $LINENO "configure"
6146 /* confdefs.h. */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 #include <sys/types.h>
6152 #include <sys/time.h>
6153 #include <time.h>
6156 main ()
6158 if ((struct tm *) 0)
6159 return 0;
6161 return 0;
6163 _ACEOF
6164 rm -f conftest.$ac_objext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6166 (eval $ac_compile) 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } &&
6170 { ac_try='test -s conftest.$ac_objext'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 ac_cv_header_time=yes
6177 else
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6181 ac_cv_header_time=no
6183 rm -f conftest.$ac_objext conftest.$ac_ext
6185 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6186 echo "${ECHO_T}$ac_cv_header_time" >&6
6187 if test $ac_cv_header_time = yes; then
6189 cat >>confdefs.h <<\_ACEOF
6190 #define TIME_WITH_SYS_TIME 1
6191 _ACEOF
6197 echo "$as_me:$LINENO: checking for struct timespec" >&5
6198 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
6199 if test "${fu_cv_sys_struct_timespec+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 cat >conftest.$ac_ext <<_ACEOF
6203 #line $LINENO "configure"
6204 /* confdefs.h. */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6210 # if TIME_WITH_SYS_TIME
6211 # include <sys/time.h>
6212 # include <time.h>
6213 # else
6214 # if HAVE_SYS_TIME_H
6215 # include <sys/time.h>
6216 # else
6217 # include <time.h>
6218 # endif
6219 # endif
6222 main ()
6224 static struct timespec x; x.tv_sec = x.tv_nsec;
6226 return 0;
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>&5
6232 ac_status=$?
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try='test -s conftest.$ac_objext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 (eval $ac_try) 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 fu_cv_sys_struct_timespec=yes
6242 else
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 fu_cv_sys_struct_timespec=no
6248 rm -f conftest.$ac_objext conftest.$ac_ext
6251 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
6252 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
6254 if test $fu_cv_sys_struct_timespec = yes; then
6256 cat >>confdefs.h <<\_ACEOF
6257 #define HAVE_STRUCT_TIMESPEC 1
6258 _ACEOF
6262 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6263 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6264 if test "${ac_cv_type_uid_t+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267 cat >conftest.$ac_ext <<_ACEOF
6268 #line $LINENO "configure"
6269 /* confdefs.h. */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 #include <sys/types.h>
6276 _ACEOF
6277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6278 $EGREP "uid_t" >/dev/null 2>&1; then
6279 ac_cv_type_uid_t=yes
6280 else
6281 ac_cv_type_uid_t=no
6283 rm -f conftest*
6286 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6287 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6288 if test $ac_cv_type_uid_t = no; then
6290 cat >>confdefs.h <<\_ACEOF
6291 #define uid_t int
6292 _ACEOF
6295 cat >>confdefs.h <<\_ACEOF
6296 #define gid_t int
6297 _ACEOF
6301 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6302 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6303 if test "${ac_cv_type_getgroups+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306 if test "$cross_compiling" = yes; then
6307 ac_cv_type_getgroups=cross
6308 else
6309 cat >conftest.$ac_ext <<_ACEOF
6310 #line $LINENO "configure"
6311 /* confdefs.h. */
6312 _ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6316 /* Thanks to Mike Rendell for this test. */
6317 #include <sys/types.h>
6318 #define NGID 256
6319 #undef MAX
6320 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6323 main ()
6325 gid_t gidset[NGID];
6326 int i, n;
6327 union { gid_t gval; long lval; } val;
6329 val.lval = -1;
6330 for (i = 0; i < NGID; i++)
6331 gidset[i] = val.gval;
6332 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6333 gidset);
6334 /* Exit non-zero if getgroups seems to require an array of ints. This
6335 happens when gid_t is short but getgroups modifies an array of ints. */
6336 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6338 _ACEOF
6339 rm -f conftest$ac_exeext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6341 (eval $ac_link) 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 (eval $ac_try) 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 ac_cv_type_getgroups=gid_t
6351 else
6352 echo "$as_me: program exited with status $ac_status" >&5
6353 echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6356 ( exit $ac_status )
6357 ac_cv_type_getgroups=int
6359 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6361 if test $ac_cv_type_getgroups = cross; then
6362 cat >conftest.$ac_ext <<_ACEOF
6363 #line $LINENO "configure"
6364 /* confdefs.h. */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6369 #include <unistd.h>
6371 _ACEOF
6372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6373 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6374 ac_cv_type_getgroups=gid_t
6375 else
6376 ac_cv_type_getgroups=int
6378 rm -f conftest*
6382 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6383 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6385 cat >>confdefs.h <<_ACEOF
6386 #define GETGROUPS_T $ac_cv_type_getgroups
6387 _ACEOF
6390 echo "$as_me:$LINENO: checking for mode_t" >&5
6391 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6392 if test "${ac_cv_type_mode_t+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395 cat >conftest.$ac_ext <<_ACEOF
6396 #line $LINENO "configure"
6397 /* confdefs.h. */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6402 $ac_includes_default
6404 main ()
6406 if ((mode_t *) 0)
6407 return 0;
6408 if (sizeof (mode_t))
6409 return 0;
6411 return 0;
6413 _ACEOF
6414 rm -f conftest.$ac_objext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6416 (eval $ac_compile) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 (eval $ac_try) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 ac_cv_type_mode_t=yes
6427 else
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6431 ac_cv_type_mode_t=no
6433 rm -f conftest.$ac_objext conftest.$ac_ext
6435 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6436 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6437 if test $ac_cv_type_mode_t = yes; then
6439 else
6441 cat >>confdefs.h <<_ACEOF
6442 #define mode_t int
6443 _ACEOF
6447 echo "$as_me:$LINENO: checking for off_t" >&5
6448 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6449 if test "${ac_cv_type_off_t+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452 cat >conftest.$ac_ext <<_ACEOF
6453 #line $LINENO "configure"
6454 /* confdefs.h. */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 $ac_includes_default
6461 main ()
6463 if ((off_t *) 0)
6464 return 0;
6465 if (sizeof (off_t))
6466 return 0;
6468 return 0;
6470 _ACEOF
6471 rm -f conftest.$ac_objext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6473 (eval $ac_compile) 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -s conftest.$ac_objext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 (eval $ac_try) 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 ac_cv_type_off_t=yes
6484 else
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6488 ac_cv_type_off_t=no
6490 rm -f conftest.$ac_objext conftest.$ac_ext
6492 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6493 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6494 if test $ac_cv_type_off_t = yes; then
6496 else
6498 cat >>confdefs.h <<_ACEOF
6499 #define off_t long
6500 _ACEOF
6504 echo "$as_me:$LINENO: checking for pid_t" >&5
6505 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6506 if test "${ac_cv_type_pid_t+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 cat >conftest.$ac_ext <<_ACEOF
6510 #line $LINENO "configure"
6511 /* confdefs.h. */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6516 $ac_includes_default
6518 main ()
6520 if ((pid_t *) 0)
6521 return 0;
6522 if (sizeof (pid_t))
6523 return 0;
6525 return 0;
6527 _ACEOF
6528 rm -f conftest.$ac_objext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -s conftest.$ac_objext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 (eval $ac_try) 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 ac_cv_type_pid_t=yes
6541 else
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 ac_cv_type_pid_t=no
6547 rm -f conftest.$ac_objext conftest.$ac_ext
6549 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6550 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6551 if test $ac_cv_type_pid_t = yes; then
6553 else
6555 cat >>confdefs.h <<_ACEOF
6556 #define pid_t int
6557 _ACEOF
6561 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6562 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6563 if test "${ac_cv_type_signal+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566 cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6568 /* confdefs.h. */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 #include <sys/types.h>
6574 #include <signal.h>
6575 #ifdef signal
6576 # undef signal
6577 #endif
6578 #ifdef __cplusplus
6579 extern "C" void (*signal (int, void (*)(int)))(int);
6580 #else
6581 void (*signal ()) ();
6582 #endif
6585 main ()
6587 int i;
6589 return 0;
6591 _ACEOF
6592 rm -f conftest.$ac_objext
6593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6594 (eval $ac_compile) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } &&
6598 { ac_try='test -s conftest.$ac_objext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 (eval $ac_try) 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 ac_cv_type_signal=void
6605 else
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 ac_cv_type_signal=int
6611 rm -f conftest.$ac_objext conftest.$ac_ext
6613 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6614 echo "${ECHO_T}$ac_cv_type_signal" >&6
6616 cat >>confdefs.h <<_ACEOF
6617 #define RETSIGTYPE $ac_cv_type_signal
6618 _ACEOF
6621 echo "$as_me:$LINENO: checking for size_t" >&5
6622 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6623 if test "${ac_cv_type_size_t+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626 cat >conftest.$ac_ext <<_ACEOF
6627 #line $LINENO "configure"
6628 /* confdefs.h. */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 $ac_includes_default
6635 main ()
6637 if ((size_t *) 0)
6638 return 0;
6639 if (sizeof (size_t))
6640 return 0;
6642 return 0;
6644 _ACEOF
6645 rm -f conftest.$ac_objext
6646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6647 (eval $ac_compile) 2>&5
6648 ac_status=$?
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } &&
6651 { ac_try='test -s conftest.$ac_objext'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 (eval $ac_try) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; }; then
6657 ac_cv_type_size_t=yes
6658 else
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6662 ac_cv_type_size_t=no
6664 rm -f conftest.$ac_objext conftest.$ac_ext
6666 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6667 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6668 if test $ac_cv_type_size_t = yes; then
6670 else
6672 cat >>confdefs.h <<_ACEOF
6673 #define size_t unsigned
6674 _ACEOF
6679 echo "$as_me:$LINENO: checking for unsigned long long" >&5
6680 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6681 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684 cat >conftest.$ac_ext <<_ACEOF
6685 #line $LINENO "configure"
6686 /* confdefs.h. */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 unsigned long long ull = 1; int i = 63;
6693 main ()
6695 unsigned long long ullmax = (unsigned long long) -1;
6696 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6698 return 0;
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try='test -s conftest$ac_exeext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_cv_type_unsigned_long_long=yes
6714 else
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6718 ac_cv_type_unsigned_long_long=no
6720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6722 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6723 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6724 if test $ac_cv_type_unsigned_long_long = yes; then
6726 cat >>confdefs.h <<\_ACEOF
6727 #define HAVE_UNSIGNED_LONG_LONG 1
6728 _ACEOF
6734 echo "$as_me:$LINENO: checking for uintmax_t" >&5
6735 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
6736 if test "${ac_cv_type_uintmax_t+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739 cat >conftest.$ac_ext <<_ACEOF
6740 #line $LINENO "configure"
6741 /* confdefs.h. */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 $ac_includes_default
6748 main ()
6750 if ((uintmax_t *) 0)
6751 return 0;
6752 if (sizeof (uintmax_t))
6753 return 0;
6755 return 0;
6757 _ACEOF
6758 rm -f conftest.$ac_objext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760 (eval $ac_compile) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 ac_cv_type_uintmax_t=yes
6771 else
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6775 ac_cv_type_uintmax_t=no
6777 rm -f conftest.$ac_objext conftest.$ac_ext
6779 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
6780 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
6781 if test $ac_cv_type_uintmax_t = yes; then
6783 else
6784 test $ac_cv_type_unsigned_long_long = yes \
6785 && ac_type='unsigned long long' \
6786 || ac_type='unsigned long'
6788 cat >>confdefs.h <<_ACEOF
6789 #define uintmax_t $ac_type
6790 _ACEOF
6795 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6796 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
6797 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800 cat >conftest.$ac_ext <<_ACEOF
6801 #line $LINENO "configure"
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 #include <sys/types.h>
6809 main ()
6811 return makedev(0, 0);
6813 return 0;
6815 _ACEOF
6816 rm -f conftest.$ac_objext conftest$ac_exeext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6818 (eval $ac_link) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } &&
6822 { ac_try='test -s conftest$ac_exeext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 (eval $ac_try) 2>&5
6825 ac_status=$?
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_cv_header_sys_types_h_makedev=yes
6829 else
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6833 ac_cv_header_sys_types_h_makedev=no
6835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6838 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6839 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
6841 if test $ac_cv_header_sys_types_h_makedev = no; then
6842 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6843 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6844 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6845 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6849 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6850 else
6851 # Is the header compilable?
6852 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6853 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
6854 cat >conftest.$ac_ext <<_ACEOF
6855 #line $LINENO "configure"
6856 /* confdefs.h. */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 $ac_includes_default
6862 #include <sys/mkdev.h>
6863 _ACEOF
6864 rm -f conftest.$ac_objext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866 (eval $ac_compile) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } &&
6870 { ac_try='test -s conftest.$ac_objext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6876 ac_header_compiler=yes
6877 else
6878 echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6881 ac_header_compiler=no
6883 rm -f conftest.$ac_objext conftest.$ac_ext
6884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6885 echo "${ECHO_T}$ac_header_compiler" >&6
6887 # Is the header present?
6888 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6889 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
6890 cat >conftest.$ac_ext <<_ACEOF
6891 #line $LINENO "configure"
6892 /* confdefs.h. */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 #include <sys/mkdev.h>
6898 _ACEOF
6899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6901 ac_status=$?
6902 grep -v '^ *+' conftest.er1 >conftest.err
6903 rm -f conftest.er1
6904 cat conftest.err >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } >/dev/null; then
6907 if test -s conftest.err; then
6908 ac_cpp_err=$ac_c_preproc_warn_flag
6909 else
6910 ac_cpp_err=
6912 else
6913 ac_cpp_err=yes
6915 if test -z "$ac_cpp_err"; then
6916 ac_header_preproc=yes
6917 else
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 ac_header_preproc=no
6923 rm -f conftest.err conftest.$ac_ext
6924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6925 echo "${ECHO_T}$ac_header_preproc" >&6
6927 # So? What about this header?
6928 case $ac_header_compiler:$ac_header_preproc in
6929 yes:no )
6930 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6931 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6932 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6933 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6935 cat <<\_ASBOX
6936 ## ------------------------------------ ##
6937 ## Report this to bug-autoconf@gnu.org. ##
6938 ## ------------------------------------ ##
6939 _ASBOX
6941 sed "s/^/$as_me: WARNING: /" >&2
6943 no:yes )
6944 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6945 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6946 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6947 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6948 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6949 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6951 cat <<\_ASBOX
6952 ## ------------------------------------ ##
6953 ## Report this to bug-autoconf@gnu.org. ##
6954 ## ------------------------------------ ##
6955 _ASBOX
6957 sed "s/^/$as_me: WARNING: /" >&2
6959 esac
6960 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6961 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6962 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6967 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6968 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6971 if test $ac_cv_header_sys_mkdev_h = yes; then
6973 cat >>confdefs.h <<\_ACEOF
6974 #define MAJOR_IN_MKDEV 1
6975 _ACEOF
6981 if test $ac_cv_header_sys_mkdev_h = no; then
6982 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6983 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6984 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
6985 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6989 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
6990 else
6991 # Is the header compilable?
6992 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6993 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
6994 cat >conftest.$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6996 /* confdefs.h. */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 $ac_includes_default
7002 #include <sys/sysmacros.h>
7003 _ACEOF
7004 rm -f conftest.$ac_objext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006 (eval $ac_compile) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } &&
7010 { ac_try='test -s conftest.$ac_objext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 ac_header_compiler=yes
7017 else
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7021 ac_header_compiler=no
7023 rm -f conftest.$ac_objext conftest.$ac_ext
7024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7025 echo "${ECHO_T}$ac_header_compiler" >&6
7027 # Is the header present?
7028 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7029 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
7030 cat >conftest.$ac_ext <<_ACEOF
7031 #line $LINENO "configure"
7032 /* confdefs.h. */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 #include <sys/sysmacros.h>
7038 _ACEOF
7039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7041 ac_status=$?
7042 grep -v '^ *+' conftest.er1 >conftest.err
7043 rm -f conftest.er1
7044 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } >/dev/null; then
7047 if test -s conftest.err; then
7048 ac_cpp_err=$ac_c_preproc_warn_flag
7049 else
7050 ac_cpp_err=
7052 else
7053 ac_cpp_err=yes
7055 if test -z "$ac_cpp_err"; then
7056 ac_header_preproc=yes
7057 else
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7061 ac_header_preproc=no
7063 rm -f conftest.err conftest.$ac_ext
7064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7065 echo "${ECHO_T}$ac_header_preproc" >&6
7067 # So? What about this header?
7068 case $ac_header_compiler:$ac_header_preproc in
7069 yes:no )
7070 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7071 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7072 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7073 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7075 cat <<\_ASBOX
7076 ## ------------------------------------ ##
7077 ## Report this to bug-autoconf@gnu.org. ##
7078 ## ------------------------------------ ##
7079 _ASBOX
7081 sed "s/^/$as_me: WARNING: /" >&2
7083 no:yes )
7084 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7085 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7086 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7087 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7088 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7089 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7091 cat <<\_ASBOX
7092 ## ------------------------------------ ##
7093 ## Report this to bug-autoconf@gnu.org. ##
7094 ## ------------------------------------ ##
7095 _ASBOX
7097 sed "s/^/$as_me: WARNING: /" >&2
7099 esac
7100 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7101 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
7102 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7107 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7108 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
7111 if test $ac_cv_header_sys_sysmacros_h = yes; then
7113 cat >>confdefs.h <<\_ACEOF
7114 #define MAJOR_IN_SYSMACROS 1
7115 _ACEOF
7123 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7124 # for constant arguments. Useless!
7125 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7126 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7127 if test "${ac_cv_working_alloca_h+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130 cat >conftest.$ac_ext <<_ACEOF
7131 #line $LINENO "configure"
7132 /* confdefs.h. */
7133 _ACEOF
7134 cat confdefs.h >>conftest.$ac_ext
7135 cat >>conftest.$ac_ext <<_ACEOF
7136 /* end confdefs.h. */
7137 #include <alloca.h>
7139 main ()
7141 char *p = (char *) alloca (2 * sizeof (int));
7143 return 0;
7145 _ACEOF
7146 rm -f conftest.$ac_objext conftest$ac_exeext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7148 (eval $ac_link) 2>&5
7149 ac_status=$?
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } &&
7152 { ac_try='test -s conftest$ac_exeext'
7153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154 (eval $ac_try) 2>&5
7155 ac_status=$?
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); }; }; then
7158 ac_cv_working_alloca_h=yes
7159 else
7160 echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.$ac_ext >&5
7163 ac_cv_working_alloca_h=no
7165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7167 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7168 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7169 if test $ac_cv_working_alloca_h = yes; then
7171 cat >>confdefs.h <<\_ACEOF
7172 #define HAVE_ALLOCA_H 1
7173 _ACEOF
7177 echo "$as_me:$LINENO: checking for alloca" >&5
7178 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7179 if test "${ac_cv_func_alloca_works+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182 cat >conftest.$ac_ext <<_ACEOF
7183 #line $LINENO "configure"
7184 /* confdefs.h. */
7185 _ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7189 #ifdef __GNUC__
7190 # define alloca __builtin_alloca
7191 #else
7192 # ifdef _MSC_VER
7193 # include <malloc.h>
7194 # define alloca _alloca
7195 # else
7196 # if HAVE_ALLOCA_H
7197 # include <alloca.h>
7198 # else
7199 # ifdef _AIX
7200 #pragma alloca
7201 # else
7202 # ifndef alloca /* predefined by HP cc +Olibcalls */
7203 char *alloca ();
7204 # endif
7205 # endif
7206 # endif
7207 # endif
7208 #endif
7211 main ()
7213 char *p = (char *) alloca (1);
7215 return 0;
7217 _ACEOF
7218 rm -f conftest.$ac_objext conftest$ac_exeext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7220 (eval $ac_link) 2>&5
7221 ac_status=$?
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try='test -s conftest$ac_exeext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 (eval $ac_try) 2>&5
7227 ac_status=$?
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230 ac_cv_func_alloca_works=yes
7231 else
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7235 ac_cv_func_alloca_works=no
7237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7239 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7240 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7242 if test $ac_cv_func_alloca_works = yes; then
7244 cat >>confdefs.h <<\_ACEOF
7245 #define HAVE_ALLOCA 1
7246 _ACEOF
7248 else
7249 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7250 # that cause trouble. Some versions do not even contain alloca or
7251 # contain a buggy version. If you still want to use their alloca,
7252 # use ar to extract alloca.o from them instead of compiling alloca.c.
7254 ALLOCA=alloca.$ac_objext
7256 cat >>confdefs.h <<\_ACEOF
7257 #define C_ALLOCA 1
7258 _ACEOF
7261 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7262 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7263 if test "${ac_cv_os_cray+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266 cat >conftest.$ac_ext <<_ACEOF
7267 #line $LINENO "configure"
7268 /* confdefs.h. */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 #if defined(CRAY) && ! defined(CRAY2)
7274 webecray
7275 #else
7276 wenotbecray
7277 #endif
7279 _ACEOF
7280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7281 $EGREP "webecray" >/dev/null 2>&1; then
7282 ac_cv_os_cray=yes
7283 else
7284 ac_cv_os_cray=no
7286 rm -f conftest*
7289 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7290 echo "${ECHO_T}$ac_cv_os_cray" >&6
7291 if test $ac_cv_os_cray = yes; then
7292 for ac_func in _getb67 GETB67 getb67; do
7293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7294 echo "$as_me:$LINENO: checking for $ac_func" >&5
7295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7296 if eval "test \"\${$as_ac_var+set}\" = set"; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299 cat >conftest.$ac_ext <<_ACEOF
7300 #line $LINENO "configure"
7301 /* confdefs.h. */
7302 _ACEOF
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7306 /* System header to define __stub macros and hopefully few prototypes,
7307 which can conflict with char $ac_func (); below.
7308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7309 <limits.h> exists even on freestanding compilers. */
7310 #ifdef __STDC__
7311 # include <limits.h>
7312 #else
7313 # include <assert.h>
7314 #endif
7315 /* Override any gcc2 internal prototype to avoid an error. */
7316 #ifdef __cplusplus
7317 extern "C"
7319 #endif
7320 /* We use char because int might match the return type of a gcc2
7321 builtin and then its argument prototype would still apply. */
7322 char $ac_func ();
7323 /* The GNU C library defines this for functions which it implements
7324 to always fail with ENOSYS. Some functions are actually named
7325 something starting with __ and the normal name is an alias. */
7326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7327 choke me
7328 #else
7329 char (*f) () = $ac_func;
7330 #endif
7331 #ifdef __cplusplus
7333 #endif
7336 main ()
7338 return f != $ac_func;
7340 return 0;
7342 _ACEOF
7343 rm -f conftest.$ac_objext conftest$ac_exeext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345 (eval $ac_link) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } &&
7349 { ac_try='test -s conftest$ac_exeext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 eval "$as_ac_var=yes"
7356 else
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7360 eval "$as_ac_var=no"
7362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7366 if test `eval echo '${'$as_ac_var'}'` = yes; then
7368 cat >>confdefs.h <<_ACEOF
7369 #define CRAY_STACKSEG_END $ac_func
7370 _ACEOF
7372 break
7375 done
7378 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7379 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7380 if test "${ac_cv_c_stack_direction+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383 if test "$cross_compiling" = yes; then
7384 ac_cv_c_stack_direction=0
7385 else
7386 cat >conftest.$ac_ext <<_ACEOF
7387 #line $LINENO "configure"
7388 /* confdefs.h. */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7394 find_stack_direction ()
7396 static char *addr = 0;
7397 auto char dummy;
7398 if (addr == 0)
7400 addr = &dummy;
7401 return find_stack_direction ();
7403 else
7404 return (&dummy > addr) ? 1 : -1;
7408 main ()
7410 exit (find_stack_direction () < 0);
7412 _ACEOF
7413 rm -f conftest$ac_exeext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7415 (eval $ac_link) 2>&5
7416 ac_status=$?
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420 (eval $ac_try) 2>&5
7421 ac_status=$?
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7424 ac_cv_c_stack_direction=1
7425 else
7426 echo "$as_me: program exited with status $ac_status" >&5
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7430 ( exit $ac_status )
7431 ac_cv_c_stack_direction=-1
7433 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7436 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7437 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7439 cat >>confdefs.h <<_ACEOF
7440 #define STACK_DIRECTION $ac_cv_c_stack_direction
7441 _ACEOF
7448 for ac_header in limits.h
7450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7452 echo "$as_me:$LINENO: checking for $ac_header" >&5
7453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7459 else
7460 # Is the header compilable?
7461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7463 cat >conftest.$ac_ext <<_ACEOF
7464 #line $LINENO "configure"
7465 /* confdefs.h. */
7466 _ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h. */
7470 $ac_includes_default
7471 #include <$ac_header>
7472 _ACEOF
7473 rm -f conftest.$ac_objext
7474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7475 (eval $ac_compile) 2>&5
7476 ac_status=$?
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); } &&
7479 { ac_try='test -s conftest.$ac_objext'
7480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 (eval $ac_try) 2>&5
7482 ac_status=$?
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); }; }; then
7485 ac_header_compiler=yes
7486 else
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7490 ac_header_compiler=no
7492 rm -f conftest.$ac_objext conftest.$ac_ext
7493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7494 echo "${ECHO_T}$ac_header_compiler" >&6
7496 # Is the header present?
7497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7499 cat >conftest.$ac_ext <<_ACEOF
7500 #line $LINENO "configure"
7501 /* confdefs.h. */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7506 #include <$ac_header>
7507 _ACEOF
7508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7510 ac_status=$?
7511 grep -v '^ *+' conftest.er1 >conftest.err
7512 rm -f conftest.er1
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } >/dev/null; then
7516 if test -s conftest.err; then
7517 ac_cpp_err=$ac_c_preproc_warn_flag
7518 else
7519 ac_cpp_err=
7521 else
7522 ac_cpp_err=yes
7524 if test -z "$ac_cpp_err"; then
7525 ac_header_preproc=yes
7526 else
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7530 ac_header_preproc=no
7532 rm -f conftest.err conftest.$ac_ext
7533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7534 echo "${ECHO_T}$ac_header_preproc" >&6
7536 # So? What about this header?
7537 case $ac_header_compiler:$ac_header_preproc in
7538 yes:no )
7539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7544 cat <<\_ASBOX
7545 ## ------------------------------------ ##
7546 ## Report this to bug-autoconf@gnu.org. ##
7547 ## ------------------------------------ ##
7548 _ASBOX
7550 sed "s/^/$as_me: WARNING: /" >&2
7552 no:yes )
7553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7560 cat <<\_ASBOX
7561 ## ------------------------------------ ##
7562 ## Report this to bug-autoconf@gnu.org. ##
7563 ## ------------------------------------ ##
7564 _ASBOX
7566 sed "s/^/$as_me: WARNING: /" >&2
7568 esac
7569 echo "$as_me:$LINENO: checking for $ac_header" >&5
7570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574 eval "$as_ac_Header=$ac_header_preproc"
7576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7581 cat >>confdefs.h <<_ACEOF
7582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7583 _ACEOF
7587 done
7592 for ac_header in string.h
7594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7596 echo "$as_me:$LINENO: checking for $ac_header" >&5
7597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7603 else
7604 # Is the header compilable?
7605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7607 cat >conftest.$ac_ext <<_ACEOF
7608 #line $LINENO "configure"
7609 /* confdefs.h. */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7614 $ac_includes_default
7615 #include <$ac_header>
7616 _ACEOF
7617 rm -f conftest.$ac_objext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619 (eval $ac_compile) 2>&5
7620 ac_status=$?
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } &&
7623 { ac_try='test -s conftest.$ac_objext'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625 (eval $ac_try) 2>&5
7626 ac_status=$?
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; }; then
7629 ac_header_compiler=yes
7630 else
7631 echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.$ac_ext >&5
7634 ac_header_compiler=no
7636 rm -f conftest.$ac_objext conftest.$ac_ext
7637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7638 echo "${ECHO_T}$ac_header_compiler" >&6
7640 # Is the header present?
7641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7643 cat >conftest.$ac_ext <<_ACEOF
7644 #line $LINENO "configure"
7645 /* confdefs.h. */
7646 _ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7650 #include <$ac_header>
7651 _ACEOF
7652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7654 ac_status=$?
7655 grep -v '^ *+' conftest.er1 >conftest.err
7656 rm -f conftest.er1
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } >/dev/null; then
7660 if test -s conftest.err; then
7661 ac_cpp_err=$ac_c_preproc_warn_flag
7662 else
7663 ac_cpp_err=
7665 else
7666 ac_cpp_err=yes
7668 if test -z "$ac_cpp_err"; then
7669 ac_header_preproc=yes
7670 else
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7674 ac_header_preproc=no
7676 rm -f conftest.err conftest.$ac_ext
7677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7678 echo "${ECHO_T}$ac_header_preproc" >&6
7680 # So? What about this header?
7681 case $ac_header_compiler:$ac_header_preproc in
7682 yes:no )
7683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7688 cat <<\_ASBOX
7689 ## ------------------------------------ ##
7690 ## Report this to bug-autoconf@gnu.org. ##
7691 ## ------------------------------------ ##
7692 _ASBOX
7694 sed "s/^/$as_me: WARNING: /" >&2
7696 no:yes )
7697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7704 cat <<\_ASBOX
7705 ## ------------------------------------ ##
7706 ## Report this to bug-autoconf@gnu.org. ##
7707 ## ------------------------------------ ##
7708 _ASBOX
7710 sed "s/^/$as_me: WARNING: /" >&2
7712 esac
7713 echo "$as_me:$LINENO: checking for $ac_header" >&5
7714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718 eval "$as_ac_Header=$ac_header_preproc"
7720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7725 cat >>confdefs.h <<_ACEOF
7726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7727 _ACEOF
7731 done
7736 for ac_header in wchar.h
7738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7740 echo "$as_me:$LINENO: checking for $ac_header" >&5
7741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7747 else
7748 # Is the header compilable?
7749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7751 cat >conftest.$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7753 /* confdefs.h. */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7758 $ac_includes_default
7759 #include <$ac_header>
7760 _ACEOF
7761 rm -f conftest.$ac_objext
7762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7763 (eval $ac_compile) 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } &&
7767 { ac_try='test -s conftest.$ac_objext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 (eval $ac_try) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 ac_header_compiler=yes
7774 else
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 ac_header_compiler=no
7780 rm -f conftest.$ac_objext conftest.$ac_ext
7781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7782 echo "${ECHO_T}$ac_header_compiler" >&6
7784 # Is the header present?
7785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7787 cat >conftest.$ac_ext <<_ACEOF
7788 #line $LINENO "configure"
7789 /* confdefs.h. */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 #include <$ac_header>
7795 _ACEOF
7796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7798 ac_status=$?
7799 grep -v '^ *+' conftest.er1 >conftest.err
7800 rm -f conftest.er1
7801 cat conftest.err >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } >/dev/null; then
7804 if test -s conftest.err; then
7805 ac_cpp_err=$ac_c_preproc_warn_flag
7806 else
7807 ac_cpp_err=
7809 else
7810 ac_cpp_err=yes
7812 if test -z "$ac_cpp_err"; then
7813 ac_header_preproc=yes
7814 else
7815 echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7818 ac_header_preproc=no
7820 rm -f conftest.err conftest.$ac_ext
7821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7822 echo "${ECHO_T}$ac_header_preproc" >&6
7824 # So? What about this header?
7825 case $ac_header_compiler:$ac_header_preproc in
7826 yes:no )
7827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7832 cat <<\_ASBOX
7833 ## ------------------------------------ ##
7834 ## Report this to bug-autoconf@gnu.org. ##
7835 ## ------------------------------------ ##
7836 _ASBOX
7838 sed "s/^/$as_me: WARNING: /" >&2
7840 no:yes )
7841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7848 cat <<\_ASBOX
7849 ## ------------------------------------ ##
7850 ## Report this to bug-autoconf@gnu.org. ##
7851 ## ------------------------------------ ##
7852 _ASBOX
7854 sed "s/^/$as_me: WARNING: /" >&2
7856 esac
7857 echo "$as_me:$LINENO: checking for $ac_header" >&5
7858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862 eval "$as_ac_Header=$ac_header_preproc"
7864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7869 cat >>confdefs.h <<_ACEOF
7870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7871 _ACEOF
7875 done
7880 for ac_header in wctype.h
7882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7884 echo "$as_me:$LINENO: checking for $ac_header" >&5
7885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7891 else
7892 # Is the header compilable?
7893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7895 cat >conftest.$ac_ext <<_ACEOF
7896 #line $LINENO "configure"
7897 /* confdefs.h. */
7898 _ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7902 $ac_includes_default
7903 #include <$ac_header>
7904 _ACEOF
7905 rm -f conftest.$ac_objext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7907 (eval $ac_compile) 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } &&
7911 { ac_try='test -s conftest.$ac_objext'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; }; then
7917 ac_header_compiler=yes
7918 else
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7922 ac_header_compiler=no
7924 rm -f conftest.$ac_objext conftest.$ac_ext
7925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7926 echo "${ECHO_T}$ac_header_compiler" >&6
7928 # Is the header present?
7929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7931 cat >conftest.$ac_ext <<_ACEOF
7932 #line $LINENO "configure"
7933 /* confdefs.h. */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 #include <$ac_header>
7939 _ACEOF
7940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } >/dev/null; then
7948 if test -s conftest.err; then
7949 ac_cpp_err=$ac_c_preproc_warn_flag
7950 else
7951 ac_cpp_err=
7953 else
7954 ac_cpp_err=yes
7956 if test -z "$ac_cpp_err"; then
7957 ac_header_preproc=yes
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 ac_header_preproc=no
7964 rm -f conftest.err conftest.$ac_ext
7965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7966 echo "${ECHO_T}$ac_header_preproc" >&6
7968 # So? What about this header?
7969 case $ac_header_compiler:$ac_header_preproc in
7970 yes:no )
7971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7976 cat <<\_ASBOX
7977 ## ------------------------------------ ##
7978 ## Report this to bug-autoconf@gnu.org. ##
7979 ## ------------------------------------ ##
7980 _ASBOX
7982 sed "s/^/$as_me: WARNING: /" >&2
7984 no:yes )
7985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7992 cat <<\_ASBOX
7993 ## ------------------------------------ ##
7994 ## Report this to bug-autoconf@gnu.org. ##
7995 ## ------------------------------------ ##
7996 _ASBOX
7998 sed "s/^/$as_me: WARNING: /" >&2
8000 esac
8001 echo "$as_me:$LINENO: checking for $ac_header" >&5
8002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006 eval "$as_ac_Header=$ac_header_preproc"
8008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8013 cat >>confdefs.h <<_ACEOF
8014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8015 _ACEOF
8019 done
8024 for ac_func in isascii
8026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8027 echo "$as_me:$LINENO: checking for $ac_func" >&5
8028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8029 if eval "test \"\${$as_ac_var+set}\" = set"; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8031 else
8032 cat >conftest.$ac_ext <<_ACEOF
8033 #line $LINENO "configure"
8034 /* confdefs.h. */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 /* System header to define __stub macros and hopefully few prototypes,
8040 which can conflict with char $ac_func (); below.
8041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8042 <limits.h> exists even on freestanding compilers. */
8043 #ifdef __STDC__
8044 # include <limits.h>
8045 #else
8046 # include <assert.h>
8047 #endif
8048 /* Override any gcc2 internal prototype to avoid an error. */
8049 #ifdef __cplusplus
8050 extern "C"
8052 #endif
8053 /* We use char because int might match the return type of a gcc2
8054 builtin and then its argument prototype would still apply. */
8055 char $ac_func ();
8056 /* The GNU C library defines this for functions which it implements
8057 to always fail with ENOSYS. Some functions are actually named
8058 something starting with __ and the normal name is an alias. */
8059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8060 choke me
8061 #else
8062 char (*f) () = $ac_func;
8063 #endif
8064 #ifdef __cplusplus
8066 #endif
8069 main ()
8071 return f != $ac_func;
8073 return 0;
8075 _ACEOF
8076 rm -f conftest.$ac_objext conftest$ac_exeext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078 (eval $ac_link) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -s conftest$ac_exeext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 (eval $ac_try) 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 eval "$as_ac_var=yes"
8089 else
8090 echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.$ac_ext >&5
8093 eval "$as_ac_var=no"
8095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8099 if test `eval echo '${'$as_ac_var'}'` = yes; then
8100 cat >>confdefs.h <<_ACEOF
8101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8102 _ACEOF
8105 done
8110 for ac_func in mempcpy
8112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8113 echo "$as_me:$LINENO: checking for $ac_func" >&5
8114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8115 if eval "test \"\${$as_ac_var+set}\" = set"; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118 cat >conftest.$ac_ext <<_ACEOF
8119 #line $LINENO "configure"
8120 /* confdefs.h. */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 /* System header to define __stub macros and hopefully few prototypes,
8126 which can conflict with char $ac_func (); below.
8127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8128 <limits.h> exists even on freestanding compilers. */
8129 #ifdef __STDC__
8130 # include <limits.h>
8131 #else
8132 # include <assert.h>
8133 #endif
8134 /* Override any gcc2 internal prototype to avoid an error. */
8135 #ifdef __cplusplus
8136 extern "C"
8138 #endif
8139 /* We use char because int might match the return type of a gcc2
8140 builtin and then its argument prototype would still apply. */
8141 char $ac_func ();
8142 /* The GNU C library defines this for functions which it implements
8143 to always fail with ENOSYS. Some functions are actually named
8144 something starting with __ and the normal name is an alias. */
8145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8146 choke me
8147 #else
8148 char (*f) () = $ac_func;
8149 #endif
8150 #ifdef __cplusplus
8152 #endif
8155 main ()
8157 return f != $ac_func;
8159 return 0;
8161 _ACEOF
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164 (eval $ac_link) 2>&5
8165 ac_status=$?
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } &&
8168 { ac_try='test -s conftest$ac_exeext'
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 (eval $ac_try) 2>&5
8171 ac_status=$?
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 eval "$as_ac_var=yes"
8175 else
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8179 eval "$as_ac_var=no"
8181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8185 if test `eval echo '${'$as_ac_var'}'` = yes; then
8186 cat >>confdefs.h <<_ACEOF
8187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8188 _ACEOF
8191 done
8195 echo "$as_me:$LINENO: checking host operating system" >&5
8196 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
8197 if test "${utils_cv_host_operating_system+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8199 else
8200 case $host_os in
8202 # These operating system names do not use the default heuristic below.
8203 # They are in reverse order, so that more-specific prefixes come first.
8204 winnt*) os='Windows NT';;
8205 vos*) os='VOS';;
8206 sysv*) os='Unix System V';;
8207 superux*) os='SUPER-UX';;
8208 sunos*) os='SunOS';;
8209 stop*) os='STOP';;
8210 sco*) os='SCO Unix';;
8211 riscos*) os='RISC OS';;
8212 riscix*) os='RISCiX';;
8213 qnx*) os='QNX';;
8214 pw32*) os='PW32';;
8215 ptx*) os='ptx';;
8216 plan9*) os='Plan 9';;
8217 osf*) os='Tru64';;
8218 os2*) os='OS/2';;
8219 openbsd*) os='OpenBSD';;
8220 nsk*) os='NonStop Kernel';;
8221 nonstopux*) os='NonStop-UX';;
8222 netbsd*) os='NetBSD';;
8223 msdosdjgpp*) os='DJGPP';;
8224 mpeix*) os='MPE/iX';;
8225 mint*) os='MiNT';;
8226 mingw*) os='MinGW';;
8227 lynxos*) os='LynxOS';;
8228 linux*) os='GNU/Linux';;
8229 hpux*) os='HP-UX';;
8230 hiux*) os='HI-UX';;
8231 gnu*) os='GNU';;
8232 freebsd*-gnu*) os='GNU/FreeBSD';;
8233 freebsd*) os='FreeBSD';;
8234 dgux*) os='DG/UX';;
8235 bsdi*) os='BSD/OS';;
8236 bsd*) os='BSD';;
8237 beos*) os='BeOS';;
8238 aux*) os='A/UX';;
8239 atheos*) os='AtheOS';;
8240 amigaos*) os='Amiga OS';;
8241 aix*) os='AIX';;
8243 # The default heuristic takes the initial alphabetic string
8244 # from $host_os, but capitalizes its first letter.
8245 [A-Za-z]*)
8246 os=`
8247 expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
8249 expr "X$host_os" : 'X.\([A-Za-z]*\)'
8253 # If $host_os does not start with an alphabetic string, use it unchanged.
8255 os=$host_os;;
8256 esac
8257 utils_cv_host_operating_system=$os
8259 echo "$as_me:$LINENO: result: $utils_cv_host_operating_system" >&5
8260 echo "${ECHO_T}$utils_cv_host_operating_system" >&6
8262 cat >>confdefs.h <<_ACEOF
8263 #define HOST_OPERATING_SYSTEM "$utils_cv_host_operating_system"
8264 _ACEOF
8267 echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
8268 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
8269 if test "${utils_cv_func_mkdir_trailing_slash_bug+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8273 # Arrange for deletion of the temporary directory this test might create.
8274 ac_clean_files="$ac_clean_files confdir-slash"
8275 if test "$cross_compiling" = yes; then
8276 utils_cv_func_mkdir_trailing_slash_bug=yes
8278 else
8279 cat >conftest.$ac_ext <<_ACEOF
8280 #line $LINENO "configure"
8281 /* confdefs.h. */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8287 # include <sys/types.h>
8288 # include <sys/stat.h>
8289 # include <stdlib.h>
8290 int main ()
8292 rmdir ("confdir-slash");
8293 exit (mkdir ("confdir-slash/", 0700));
8296 _ACEOF
8297 rm -f conftest$ac_exeext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299 (eval $ac_link) 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 (eval $ac_try) 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308 utils_cv_func_mkdir_trailing_slash_bug=no
8309 else
8310 echo "$as_me: program exited with status $ac_status" >&5
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8314 ( exit $ac_status )
8315 utils_cv_func_mkdir_trailing_slash_bug=yes
8317 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8322 echo "$as_me:$LINENO: result: $utils_cv_func_mkdir_trailing_slash_bug" >&5
8323 echo "${ECHO_T}$utils_cv_func_mkdir_trailing_slash_bug" >&6
8325 if test $utils_cv_func_mkdir_trailing_slash_bug = yes; then
8326 LIBOBJS="$LIBOBJS mkdir.$ac_objext"
8328 cat >>confdefs.h <<\_ACEOF
8329 #define mkdir rpl_mkdir
8330 _ACEOF
8335 # getdate.y works with bison only.
8336 : ${YACC='bison -y'}
8340 echo "$as_me:$LINENO: checking whether to enable assertions" >&5
8341 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
8342 # Check whether --enable-assert or --disable-assert was given.
8343 if test "${enable_assert+set}" = set; then
8344 enableval="$enable_assert"
8345 echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6
8348 cat >>confdefs.h <<\_ACEOF
8349 #define NDEBUG 1
8350 _ACEOF
8352 else
8353 echo "$as_me:$LINENO: result: yes" >&5
8354 echo "${ECHO_T}yes" >&6
8360 for ac_header in utime.h
8362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8364 echo "$as_me:$LINENO: checking for $ac_header" >&5
8365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8371 else
8372 # Is the header compilable?
8373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8375 cat >conftest.$ac_ext <<_ACEOF
8376 #line $LINENO "configure"
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 $ac_includes_default
8383 #include <$ac_header>
8384 _ACEOF
8385 rm -f conftest.$ac_objext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387 (eval $ac_compile) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -s conftest.$ac_objext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 ac_header_compiler=yes
8398 else
8399 echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8402 ac_header_compiler=no
8404 rm -f conftest.$ac_objext conftest.$ac_ext
8405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8406 echo "${ECHO_T}$ac_header_compiler" >&6
8408 # Is the header present?
8409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8411 cat >conftest.$ac_ext <<_ACEOF
8412 #line $LINENO "configure"
8413 /* confdefs.h. */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 #include <$ac_header>
8419 _ACEOF
8420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8422 ac_status=$?
8423 grep -v '^ *+' conftest.er1 >conftest.err
8424 rm -f conftest.er1
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } >/dev/null; then
8428 if test -s conftest.err; then
8429 ac_cpp_err=$ac_c_preproc_warn_flag
8430 else
8431 ac_cpp_err=
8433 else
8434 ac_cpp_err=yes
8436 if test -z "$ac_cpp_err"; then
8437 ac_header_preproc=yes
8438 else
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8442 ac_header_preproc=no
8444 rm -f conftest.err conftest.$ac_ext
8445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8446 echo "${ECHO_T}$ac_header_preproc" >&6
8448 # So? What about this header?
8449 case $ac_header_compiler:$ac_header_preproc in
8450 yes:no )
8451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8456 cat <<\_ASBOX
8457 ## ------------------------------------ ##
8458 ## Report this to bug-autoconf@gnu.org. ##
8459 ## ------------------------------------ ##
8460 _ASBOX
8462 sed "s/^/$as_me: WARNING: /" >&2
8464 no:yes )
8465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8472 cat <<\_ASBOX
8473 ## ------------------------------------ ##
8474 ## Report this to bug-autoconf@gnu.org. ##
8475 ## ------------------------------------ ##
8476 _ASBOX
8478 sed "s/^/$as_me: WARNING: /" >&2
8480 esac
8481 echo "$as_me:$LINENO: checking for $ac_header" >&5
8482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486 eval "$as_ac_Header=$ac_header_preproc"
8488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8493 cat >>confdefs.h <<_ACEOF
8494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8495 _ACEOF
8499 done
8502 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
8503 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
8504 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507 cat >conftest.$ac_ext <<_ACEOF
8508 #line $LINENO "configure"
8509 /* confdefs.h. */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8515 #ifdef TIME_WITH_SYS_TIME
8516 # include <sys/time.h>
8517 # include <time.h>
8518 #else
8519 # ifdef HAVE_SYS_TIME_H
8520 # include <sys/time.h>
8521 # else
8522 # include <time.h>
8523 # endif
8524 #endif
8525 #ifdef HAVE_UTIME_H
8526 # include <utime.h>
8527 #endif
8530 main ()
8532 static struct utimbuf x; x.actime = x.modtime;
8534 return 0;
8536 _ACEOF
8537 rm -f conftest.$ac_objext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8539 (eval $ac_compile) 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } &&
8543 { ac_try='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 (eval $ac_try) 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 fu_cv_sys_struct_utimbuf=yes
8550 else
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 fu_cv_sys_struct_utimbuf=no
8556 rm -f conftest.$ac_objext conftest.$ac_ext
8559 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
8560 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
8562 if test $fu_cv_sys_struct_utimbuf = yes; then
8564 cat >>confdefs.h <<\_ACEOF
8565 #define HAVE_STRUCT_UTIMBUF 1
8566 _ACEOF
8570 echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
8571 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
8572 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575 cat >conftest.$ac_ext <<_ACEOF
8576 #line $LINENO "configure"
8577 /* confdefs.h. */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8583 #include <sys/types.h>
8584 #ifdef HAVE_DIRENT_H
8585 # include <dirent.h>
8586 #else /* not HAVE_DIRENT_H */
8587 # define dirent direct
8588 # ifdef HAVE_SYS_NDIR_H
8589 # include <sys/ndir.h>
8590 # endif /* HAVE_SYS_NDIR_H */
8591 # ifdef HAVE_SYS_DIR_H
8592 # include <sys/dir.h>
8593 # endif /* HAVE_SYS_DIR_H */
8594 # ifdef HAVE_NDIR_H
8595 # include <ndir.h>
8596 # endif /* HAVE_NDIR_H */
8597 #endif /* HAVE_DIRENT_H */
8600 main ()
8602 struct dirent dp; dp.d_type = 0;
8604 return 0;
8606 _ACEOF
8607 rm -f conftest.$ac_objext conftest$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -s conftest$ac_exeext'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 jm_cv_struct_dirent_d_type=yes
8620 else
8621 echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8624 jm_cv_struct_dirent_d_type=no
8626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8630 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
8631 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
8632 if test $jm_cv_struct_dirent_d_type = yes; then
8634 cat >>confdefs.h <<\_ACEOF
8635 #define HAVE_STRUCT_DIRENT_D_TYPE 1
8636 _ACEOF
8641 echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
8642 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
8643 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 /* confdefs.h. */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8654 #include <sys/types.h>
8655 #ifdef HAVE_DIRENT_H
8656 # include <dirent.h>
8657 #else /* not HAVE_DIRENT_H */
8658 # define dirent direct
8659 # ifdef HAVE_SYS_NDIR_H
8660 # include <sys/ndir.h>
8661 # endif /* HAVE_SYS_NDIR_H */
8662 # ifdef HAVE_SYS_DIR_H
8663 # include <sys/dir.h>
8664 # endif /* HAVE_SYS_DIR_H */
8665 # ifdef HAVE_NDIR_H
8666 # include <ndir.h>
8667 # endif /* HAVE_NDIR_H */
8668 #endif /* HAVE_DIRENT_H */
8671 main ()
8673 struct dirent dp; dp.d_ino = 0;
8675 return 0;
8677 _ACEOF
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680 (eval $ac_link) 2>&5
8681 ac_status=$?
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try='test -s conftest$ac_exeext'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686 (eval $ac_try) 2>&5
8687 ac_status=$?
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; }; then
8690 jm_cv_struct_dirent_d_ino=yes
8691 else
8692 echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8695 jm_cv_struct_dirent_d_ino=no
8697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8701 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
8702 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
8703 if test $jm_cv_struct_dirent_d_ino = yes; then
8705 cat >>confdefs.h <<\_ACEOF
8706 #define D_INO_IN_DIRENT 1
8707 _ACEOF
8724 for ac_header in grp.h memory.h pwd.h string.h strings.h stdlib.h \
8725 unistd.h sys/time.h utmp.h utmpx.h
8727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8729 echo "$as_me:$LINENO: checking for $ac_header" >&5
8730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8736 else
8737 # Is the header compilable?
8738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8740 cat >conftest.$ac_ext <<_ACEOF
8741 #line $LINENO "configure"
8742 /* confdefs.h. */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8747 $ac_includes_default
8748 #include <$ac_header>
8749 _ACEOF
8750 rm -f conftest.$ac_objext
8751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8752 (eval $ac_compile) 2>&5
8753 ac_status=$?
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
8756 { ac_try='test -s conftest.$ac_objext'
8757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 (eval $ac_try) 2>&5
8759 ac_status=$?
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; }; then
8762 ac_header_compiler=yes
8763 else
8764 echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8767 ac_header_compiler=no
8769 rm -f conftest.$ac_objext conftest.$ac_ext
8770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8771 echo "${ECHO_T}$ac_header_compiler" >&6
8773 # Is the header present?
8774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8776 cat >conftest.$ac_ext <<_ACEOF
8777 #line $LINENO "configure"
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783 #include <$ac_header>
8784 _ACEOF
8785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8787 ac_status=$?
8788 grep -v '^ *+' conftest.er1 >conftest.err
8789 rm -f conftest.er1
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } >/dev/null; then
8793 if test -s conftest.err; then
8794 ac_cpp_err=$ac_c_preproc_warn_flag
8795 else
8796 ac_cpp_err=
8798 else
8799 ac_cpp_err=yes
8801 if test -z "$ac_cpp_err"; then
8802 ac_header_preproc=yes
8803 else
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8807 ac_header_preproc=no
8809 rm -f conftest.err conftest.$ac_ext
8810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8811 echo "${ECHO_T}$ac_header_preproc" >&6
8813 # So? What about this header?
8814 case $ac_header_compiler:$ac_header_preproc in
8815 yes:no )
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8821 cat <<\_ASBOX
8822 ## ------------------------------------ ##
8823 ## Report this to bug-autoconf@gnu.org. ##
8824 ## ------------------------------------ ##
8825 _ASBOX
8827 sed "s/^/$as_me: WARNING: /" >&2
8829 no:yes )
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8837 cat <<\_ASBOX
8838 ## ------------------------------------ ##
8839 ## Report this to bug-autoconf@gnu.org. ##
8840 ## ------------------------------------ ##
8841 _ASBOX
8843 sed "s/^/$as_me: WARNING: /" >&2
8845 esac
8846 echo "$as_me:$LINENO: checking for $ac_header" >&5
8847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851 eval "$as_ac_Header=$ac_header_preproc"
8853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8858 cat >>confdefs.h <<_ACEOF
8859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8860 _ACEOF
8864 done
8870 headers='
8871 #include <stdio.h>
8872 #if HAVE_STRING_H
8873 # if !STDC_HEADERS && HAVE_MEMORY_H
8874 # include <memory.h>
8875 # endif
8876 # include <string.h>
8877 #else
8878 # if HAVE_STRINGS_H
8879 # include <strings.h>
8880 # endif
8881 #endif
8882 #if HAVE_STDLIB_H
8883 # include <stdlib.h>
8884 #endif
8885 #if HAVE_UNISTD_H
8886 # include <unistd.h>
8887 #endif
8889 #include <sys/types.h>
8890 #if TIME_WITH_SYS_TIME
8891 # include <sys/time.h>
8892 # include <time.h>
8893 #else
8894 # if HAVE_SYS_TIME_H
8895 # include <sys/time.h>
8896 # else
8897 # include <time.h>
8898 # endif
8899 #endif
8901 #if HAVE_UTMP_H
8902 # include <utmp.h>
8903 #endif
8905 #if HAVE_GRP_H
8906 # include <grp.h>
8907 #endif
8909 #if HAVE_PWD_H
8910 # include <pwd.h>
8911 #endif
8914 echo "$as_me:$LINENO: checking whether free is declared" >&5
8915 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8916 if test "${ac_cv_have_decl_free+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 else
8919 cat >conftest.$ac_ext <<_ACEOF
8920 #line $LINENO "configure"
8921 /* confdefs.h. */
8922 _ACEOF
8923 cat confdefs.h >>conftest.$ac_ext
8924 cat >>conftest.$ac_ext <<_ACEOF
8925 /* end confdefs.h. */
8926 $headers
8929 main ()
8931 #ifndef free
8932 char *p = (char *) free;
8933 #endif
8936 return 0;
8938 _ACEOF
8939 rm -f conftest.$ac_objext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8941 (eval $ac_compile) 2>&5
8942 ac_status=$?
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try='test -s conftest.$ac_objext'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
8951 ac_cv_have_decl_free=yes
8952 else
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8956 ac_cv_have_decl_free=no
8958 rm -f conftest.$ac_objext conftest.$ac_ext
8960 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8961 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8962 if test $ac_cv_have_decl_free = yes; then
8964 cat >>confdefs.h <<_ACEOF
8965 #define HAVE_DECL_FREE 1
8966 _ACEOF
8969 else
8970 cat >>confdefs.h <<_ACEOF
8971 #define HAVE_DECL_FREE 0
8972 _ACEOF
8976 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8977 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8978 if test "${ac_cv_have_decl_getenv+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8980 else
8981 cat >conftest.$ac_ext <<_ACEOF
8982 #line $LINENO "configure"
8983 /* confdefs.h. */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8988 $headers
8991 main ()
8993 #ifndef getenv
8994 char *p = (char *) getenv;
8995 #endif
8998 return 0;
9000 _ACEOF
9001 rm -f conftest.$ac_objext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9003 (eval $ac_compile) 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } &&
9007 { ac_try='test -s conftest.$ac_objext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 (eval $ac_try) 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013 ac_cv_have_decl_getenv=yes
9014 else
9015 echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9018 ac_cv_have_decl_getenv=no
9020 rm -f conftest.$ac_objext conftest.$ac_ext
9022 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9023 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9024 if test $ac_cv_have_decl_getenv = yes; then
9026 cat >>confdefs.h <<_ACEOF
9027 #define HAVE_DECL_GETENV 1
9028 _ACEOF
9031 else
9032 cat >>confdefs.h <<_ACEOF
9033 #define HAVE_DECL_GETENV 0
9034 _ACEOF
9038 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
9039 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
9040 if test "${ac_cv_have_decl_geteuid+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043 cat >conftest.$ac_ext <<_ACEOF
9044 #line $LINENO "configure"
9045 /* confdefs.h. */
9046 _ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h. */
9050 $headers
9053 main ()
9055 #ifndef geteuid
9056 char *p = (char *) geteuid;
9057 #endif
9060 return 0;
9062 _ACEOF
9063 rm -f conftest.$ac_objext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065 (eval $ac_compile) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } &&
9069 { ac_try='test -s conftest.$ac_objext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_have_decl_geteuid=yes
9076 else
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9080 ac_cv_have_decl_geteuid=no
9082 rm -f conftest.$ac_objext conftest.$ac_ext
9084 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
9085 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
9086 if test $ac_cv_have_decl_geteuid = yes; then
9088 cat >>confdefs.h <<_ACEOF
9089 #define HAVE_DECL_GETEUID 1
9090 _ACEOF
9093 else
9094 cat >>confdefs.h <<_ACEOF
9095 #define HAVE_DECL_GETEUID 0
9096 _ACEOF
9100 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
9101 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
9102 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105 cat >conftest.$ac_ext <<_ACEOF
9106 #line $LINENO "configure"
9107 /* confdefs.h. */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9112 $headers
9115 main ()
9117 #ifndef getgrgid
9118 char *p = (char *) getgrgid;
9119 #endif
9122 return 0;
9124 _ACEOF
9125 rm -f conftest.$ac_objext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9127 (eval $ac_compile) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } &&
9131 { ac_try='test -s conftest.$ac_objext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 (eval $ac_try) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_have_decl_getgrgid=yes
9138 else
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9142 ac_cv_have_decl_getgrgid=no
9144 rm -f conftest.$ac_objext conftest.$ac_ext
9146 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
9147 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
9148 if test $ac_cv_have_decl_getgrgid = yes; then
9150 cat >>confdefs.h <<_ACEOF
9151 #define HAVE_DECL_GETGRGID 1
9152 _ACEOF
9155 else
9156 cat >>confdefs.h <<_ACEOF
9157 #define HAVE_DECL_GETGRGID 0
9158 _ACEOF
9162 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
9163 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
9164 if test "${ac_cv_have_decl_getlogin+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167 cat >conftest.$ac_ext <<_ACEOF
9168 #line $LINENO "configure"
9169 /* confdefs.h. */
9170 _ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9174 $headers
9177 main ()
9179 #ifndef getlogin
9180 char *p = (char *) getlogin;
9181 #endif
9184 return 0;
9186 _ACEOF
9187 rm -f conftest.$ac_objext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9189 (eval $ac_compile) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } &&
9193 { ac_try='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_cv_have_decl_getlogin=yes
9200 else
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9204 ac_cv_have_decl_getlogin=no
9206 rm -f conftest.$ac_objext conftest.$ac_ext
9208 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
9209 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
9210 if test $ac_cv_have_decl_getlogin = yes; then
9212 cat >>confdefs.h <<_ACEOF
9213 #define HAVE_DECL_GETLOGIN 1
9214 _ACEOF
9217 else
9218 cat >>confdefs.h <<_ACEOF
9219 #define HAVE_DECL_GETLOGIN 0
9220 _ACEOF
9224 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
9225 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
9226 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229 cat >conftest.$ac_ext <<_ACEOF
9230 #line $LINENO "configure"
9231 /* confdefs.h. */
9232 _ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9236 $headers
9239 main ()
9241 #ifndef getpwuid
9242 char *p = (char *) getpwuid;
9243 #endif
9246 return 0;
9248 _ACEOF
9249 rm -f conftest.$ac_objext
9250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9251 (eval $ac_compile) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try='test -s conftest.$ac_objext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 (eval $ac_try) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_have_decl_getpwuid=yes
9262 else
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 ac_cv_have_decl_getpwuid=no
9268 rm -f conftest.$ac_objext conftest.$ac_ext
9270 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
9271 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
9272 if test $ac_cv_have_decl_getpwuid = yes; then
9274 cat >>confdefs.h <<_ACEOF
9275 #define HAVE_DECL_GETPWUID 1
9276 _ACEOF
9279 else
9280 cat >>confdefs.h <<_ACEOF
9281 #define HAVE_DECL_GETPWUID 0
9282 _ACEOF
9286 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
9287 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
9288 if test "${ac_cv_have_decl_getuid+set}" = set; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291 cat >conftest.$ac_ext <<_ACEOF
9292 #line $LINENO "configure"
9293 /* confdefs.h. */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9298 $headers
9301 main ()
9303 #ifndef getuid
9304 char *p = (char *) getuid;
9305 #endif
9308 return 0;
9310 _ACEOF
9311 rm -f conftest.$ac_objext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9313 (eval $ac_compile) 2>&5
9314 ac_status=$?
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try='test -s conftest.$ac_objext'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 (eval $ac_try) 2>&5
9320 ac_status=$?
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; }; then
9323 ac_cv_have_decl_getuid=yes
9324 else
9325 echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9328 ac_cv_have_decl_getuid=no
9330 rm -f conftest.$ac_objext conftest.$ac_ext
9332 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
9333 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
9334 if test $ac_cv_have_decl_getuid = yes; then
9336 cat >>confdefs.h <<_ACEOF
9337 #define HAVE_DECL_GETUID 1
9338 _ACEOF
9341 else
9342 cat >>confdefs.h <<_ACEOF
9343 #define HAVE_DECL_GETUID 0
9344 _ACEOF
9348 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
9349 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
9350 if test "${ac_cv_have_decl_getutent+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353 cat >conftest.$ac_ext <<_ACEOF
9354 #line $LINENO "configure"
9355 /* confdefs.h. */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 $headers
9363 main ()
9365 #ifndef getutent
9366 char *p = (char *) getutent;
9367 #endif
9370 return 0;
9372 _ACEOF
9373 rm -f conftest.$ac_objext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9375 (eval $ac_compile) 2>&5
9376 ac_status=$?
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } &&
9379 { ac_try='test -s conftest.$ac_objext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 (eval $ac_try) 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 ac_cv_have_decl_getutent=yes
9386 else
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9390 ac_cv_have_decl_getutent=no
9392 rm -f conftest.$ac_objext conftest.$ac_ext
9394 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
9395 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
9396 if test $ac_cv_have_decl_getutent = yes; then
9398 cat >>confdefs.h <<_ACEOF
9399 #define HAVE_DECL_GETUTENT 1
9400 _ACEOF
9403 else
9404 cat >>confdefs.h <<_ACEOF
9405 #define HAVE_DECL_GETUTENT 0
9406 _ACEOF
9410 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
9411 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
9412 if test "${ac_cv_have_decl_lseek+set}" = set; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 else
9415 cat >conftest.$ac_ext <<_ACEOF
9416 #line $LINENO "configure"
9417 /* confdefs.h. */
9418 _ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9422 $headers
9425 main ()
9427 #ifndef lseek
9428 char *p = (char *) lseek;
9429 #endif
9432 return 0;
9434 _ACEOF
9435 rm -f conftest.$ac_objext
9436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9437 (eval $ac_compile) 2>&5
9438 ac_status=$?
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
9441 { ac_try='test -s conftest.$ac_objext'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 (eval $ac_try) 2>&5
9444 ac_status=$?
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; }; then
9447 ac_cv_have_decl_lseek=yes
9448 else
9449 echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9452 ac_cv_have_decl_lseek=no
9454 rm -f conftest.$ac_objext conftest.$ac_ext
9456 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
9457 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
9458 if test $ac_cv_have_decl_lseek = yes; then
9460 cat >>confdefs.h <<_ACEOF
9461 #define HAVE_DECL_LSEEK 1
9462 _ACEOF
9465 else
9466 cat >>confdefs.h <<_ACEOF
9467 #define HAVE_DECL_LSEEK 0
9468 _ACEOF
9472 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
9473 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
9474 if test "${ac_cv_have_decl_malloc+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477 cat >conftest.$ac_ext <<_ACEOF
9478 #line $LINENO "configure"
9479 /* confdefs.h. */
9480 _ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9484 $headers
9487 main ()
9489 #ifndef malloc
9490 char *p = (char *) malloc;
9491 #endif
9494 return 0;
9496 _ACEOF
9497 rm -f conftest.$ac_objext
9498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9499 (eval $ac_compile) 2>&5
9500 ac_status=$?
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } &&
9503 { ac_try='test -s conftest.$ac_objext'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 (eval $ac_try) 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 ac_cv_have_decl_malloc=yes
9510 else
9511 echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9514 ac_cv_have_decl_malloc=no
9516 rm -f conftest.$ac_objext conftest.$ac_ext
9518 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
9519 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
9520 if test $ac_cv_have_decl_malloc = yes; then
9522 cat >>confdefs.h <<_ACEOF
9523 #define HAVE_DECL_MALLOC 1
9524 _ACEOF
9527 else
9528 cat >>confdefs.h <<_ACEOF
9529 #define HAVE_DECL_MALLOC 0
9530 _ACEOF
9534 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
9535 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
9536 if test "${ac_cv_have_decl_memchr+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539 cat >conftest.$ac_ext <<_ACEOF
9540 #line $LINENO "configure"
9541 /* confdefs.h. */
9542 _ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9546 $headers
9549 main ()
9551 #ifndef memchr
9552 char *p = (char *) memchr;
9553 #endif
9556 return 0;
9558 _ACEOF
9559 rm -f conftest.$ac_objext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9561 (eval $ac_compile) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } &&
9565 { ac_try='test -s conftest.$ac_objext'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 (eval $ac_try) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9571 ac_cv_have_decl_memchr=yes
9572 else
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9576 ac_cv_have_decl_memchr=no
9578 rm -f conftest.$ac_objext conftest.$ac_ext
9580 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
9581 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
9582 if test $ac_cv_have_decl_memchr = yes; then
9584 cat >>confdefs.h <<_ACEOF
9585 #define HAVE_DECL_MEMCHR 1
9586 _ACEOF
9589 else
9590 cat >>confdefs.h <<_ACEOF
9591 #define HAVE_DECL_MEMCHR 0
9592 _ACEOF
9596 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
9597 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
9598 if test "${ac_cv_have_decl_memrchr+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 else
9601 cat >conftest.$ac_ext <<_ACEOF
9602 #line $LINENO "configure"
9603 /* confdefs.h. */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9608 $headers
9611 main ()
9613 #ifndef memrchr
9614 char *p = (char *) memrchr;
9615 #endif
9618 return 0;
9620 _ACEOF
9621 rm -f conftest.$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623 (eval $ac_compile) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try='test -s conftest.$ac_objext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 (eval $ac_try) 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_have_decl_memrchr=yes
9634 else
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9638 ac_cv_have_decl_memrchr=no
9640 rm -f conftest.$ac_objext conftest.$ac_ext
9642 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
9643 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
9644 if test $ac_cv_have_decl_memrchr = yes; then
9646 cat >>confdefs.h <<_ACEOF
9647 #define HAVE_DECL_MEMRCHR 1
9648 _ACEOF
9651 else
9652 cat >>confdefs.h <<_ACEOF
9653 #define HAVE_DECL_MEMRCHR 0
9654 _ACEOF
9658 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
9659 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
9660 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663 cat >conftest.$ac_ext <<_ACEOF
9664 #line $LINENO "configure"
9665 /* confdefs.h. */
9666 _ACEOF
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h. */
9670 $headers
9673 main ()
9675 #ifndef nanosleep
9676 char *p = (char *) nanosleep;
9677 #endif
9680 return 0;
9682 _ACEOF
9683 rm -f conftest.$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685 (eval $ac_compile) 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -s conftest.$ac_objext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 (eval $ac_try) 2>&5
9692 ac_status=$?
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_have_decl_nanosleep=yes
9696 else
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9700 ac_cv_have_decl_nanosleep=no
9702 rm -f conftest.$ac_objext conftest.$ac_ext
9704 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
9705 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
9706 if test $ac_cv_have_decl_nanosleep = yes; then
9708 cat >>confdefs.h <<_ACEOF
9709 #define HAVE_DECL_NANOSLEEP 1
9710 _ACEOF
9713 else
9714 cat >>confdefs.h <<_ACEOF
9715 #define HAVE_DECL_NANOSLEEP 0
9716 _ACEOF
9720 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
9721 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
9722 if test "${ac_cv_have_decl_realloc+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 else
9725 cat >conftest.$ac_ext <<_ACEOF
9726 #line $LINENO "configure"
9727 /* confdefs.h. */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 $headers
9735 main ()
9737 #ifndef realloc
9738 char *p = (char *) realloc;
9739 #endif
9742 return 0;
9744 _ACEOF
9745 rm -f conftest.$ac_objext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9747 (eval $ac_compile) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
9751 { ac_try='test -s conftest.$ac_objext'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 (eval $ac_try) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
9757 ac_cv_have_decl_realloc=yes
9758 else
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9762 ac_cv_have_decl_realloc=no
9764 rm -f conftest.$ac_objext conftest.$ac_ext
9766 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
9767 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
9768 if test $ac_cv_have_decl_realloc = yes; then
9770 cat >>confdefs.h <<_ACEOF
9771 #define HAVE_DECL_REALLOC 1
9772 _ACEOF
9775 else
9776 cat >>confdefs.h <<_ACEOF
9777 #define HAVE_DECL_REALLOC 0
9778 _ACEOF
9782 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
9783 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
9784 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787 cat >conftest.$ac_ext <<_ACEOF
9788 #line $LINENO "configure"
9789 /* confdefs.h. */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 $headers
9797 main ()
9799 #ifndef stpcpy
9800 char *p = (char *) stpcpy;
9801 #endif
9804 return 0;
9806 _ACEOF
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809 (eval $ac_compile) 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } &&
9813 { ac_try='test -s conftest.$ac_objext'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 (eval $ac_try) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; }; then
9819 ac_cv_have_decl_stpcpy=yes
9820 else
9821 echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9824 ac_cv_have_decl_stpcpy=no
9826 rm -f conftest.$ac_objext conftest.$ac_ext
9828 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
9829 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
9830 if test $ac_cv_have_decl_stpcpy = yes; then
9832 cat >>confdefs.h <<_ACEOF
9833 #define HAVE_DECL_STPCPY 1
9834 _ACEOF
9837 else
9838 cat >>confdefs.h <<_ACEOF
9839 #define HAVE_DECL_STPCPY 0
9840 _ACEOF
9844 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
9845 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
9846 if test "${ac_cv_have_decl_strndup+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9848 else
9849 cat >conftest.$ac_ext <<_ACEOF
9850 #line $LINENO "configure"
9851 /* confdefs.h. */
9852 _ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9856 $headers
9859 main ()
9861 #ifndef strndup
9862 char *p = (char *) strndup;
9863 #endif
9866 return 0;
9868 _ACEOF
9869 rm -f conftest.$ac_objext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9871 (eval $ac_compile) 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -s conftest.$ac_objext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 (eval $ac_try) 2>&5
9878 ac_status=$?
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_have_decl_strndup=yes
9882 else
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9886 ac_cv_have_decl_strndup=no
9888 rm -f conftest.$ac_objext conftest.$ac_ext
9890 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
9891 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
9892 if test $ac_cv_have_decl_strndup = yes; then
9894 cat >>confdefs.h <<_ACEOF
9895 #define HAVE_DECL_STRNDUP 1
9896 _ACEOF
9899 else
9900 cat >>confdefs.h <<_ACEOF
9901 #define HAVE_DECL_STRNDUP 0
9902 _ACEOF
9906 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
9907 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
9908 if test "${ac_cv_have_decl_strnlen+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911 cat >conftest.$ac_ext <<_ACEOF
9912 #line $LINENO "configure"
9913 /* confdefs.h. */
9914 _ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9918 $headers
9921 main ()
9923 #ifndef strnlen
9924 char *p = (char *) strnlen;
9925 #endif
9928 return 0;
9930 _ACEOF
9931 rm -f conftest.$ac_objext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9933 (eval $ac_compile) 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try='test -s conftest.$ac_objext'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 (eval $ac_try) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }; then
9943 ac_cv_have_decl_strnlen=yes
9944 else
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 ac_cv_have_decl_strnlen=no
9950 rm -f conftest.$ac_objext conftest.$ac_ext
9952 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
9953 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
9954 if test $ac_cv_have_decl_strnlen = yes; then
9956 cat >>confdefs.h <<_ACEOF
9957 #define HAVE_DECL_STRNLEN 1
9958 _ACEOF
9961 else
9962 cat >>confdefs.h <<_ACEOF
9963 #define HAVE_DECL_STRNLEN 0
9964 _ACEOF
9968 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9969 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9970 if test "${ac_cv_have_decl_strstr+set}" = set; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 else
9973 cat >conftest.$ac_ext <<_ACEOF
9974 #line $LINENO "configure"
9975 /* confdefs.h. */
9976 _ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9980 $headers
9983 main ()
9985 #ifndef strstr
9986 char *p = (char *) strstr;
9987 #endif
9990 return 0;
9992 _ACEOF
9993 rm -f conftest.$ac_objext
9994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9995 (eval $ac_compile) 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } &&
9999 { ac_try='test -s conftest.$ac_objext'
10000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10002 ac_status=$?
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; }; then
10005 ac_cv_have_decl_strstr=yes
10006 else
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10010 ac_cv_have_decl_strstr=no
10012 rm -f conftest.$ac_objext conftest.$ac_ext
10014 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10015 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10016 if test $ac_cv_have_decl_strstr = yes; then
10018 cat >>confdefs.h <<_ACEOF
10019 #define HAVE_DECL_STRSTR 1
10020 _ACEOF
10023 else
10024 cat >>confdefs.h <<_ACEOF
10025 #define HAVE_DECL_STRSTR 0
10026 _ACEOF
10030 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
10031 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
10032 if test "${ac_cv_have_decl_strtoul+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035 cat >conftest.$ac_ext <<_ACEOF
10036 #line $LINENO "configure"
10037 /* confdefs.h. */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10042 $headers
10045 main ()
10047 #ifndef strtoul
10048 char *p = (char *) strtoul;
10049 #endif
10052 return 0;
10054 _ACEOF
10055 rm -f conftest.$ac_objext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10057 (eval $ac_compile) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -s conftest.$ac_objext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 ac_cv_have_decl_strtoul=yes
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 ac_cv_have_decl_strtoul=no
10074 rm -f conftest.$ac_objext conftest.$ac_ext
10076 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
10077 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
10078 if test $ac_cv_have_decl_strtoul = yes; then
10080 cat >>confdefs.h <<_ACEOF
10081 #define HAVE_DECL_STRTOUL 1
10082 _ACEOF
10085 else
10086 cat >>confdefs.h <<_ACEOF
10087 #define HAVE_DECL_STRTOUL 0
10088 _ACEOF
10092 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
10093 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
10094 if test "${ac_cv_have_decl_strtoull+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097 cat >conftest.$ac_ext <<_ACEOF
10098 #line $LINENO "configure"
10099 /* confdefs.h. */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 $headers
10107 main ()
10109 #ifndef strtoull
10110 char *p = (char *) strtoull;
10111 #endif
10114 return 0;
10116 _ACEOF
10117 rm -f conftest.$ac_objext
10118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10119 (eval $ac_compile) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
10123 { ac_try='test -s conftest.$ac_objext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 ac_cv_have_decl_strtoull=yes
10130 else
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10134 ac_cv_have_decl_strtoull=no
10136 rm -f conftest.$ac_objext conftest.$ac_ext
10138 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
10139 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
10140 if test $ac_cv_have_decl_strtoull = yes; then
10142 cat >>confdefs.h <<_ACEOF
10143 #define HAVE_DECL_STRTOULL 1
10144 _ACEOF
10147 else
10148 cat >>confdefs.h <<_ACEOF
10149 #define HAVE_DECL_STRTOULL 0
10150 _ACEOF
10154 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
10155 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
10156 if test "${ac_cv_have_decl_ttyname+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 else
10159 cat >conftest.$ac_ext <<_ACEOF
10160 #line $LINENO "configure"
10161 /* confdefs.h. */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 $headers
10169 main ()
10171 #ifndef ttyname
10172 char *p = (char *) ttyname;
10173 #endif
10176 return 0;
10178 _ACEOF
10179 rm -f conftest.$ac_objext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10181 (eval $ac_compile) 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } &&
10185 { ac_try='test -s conftest.$ac_objext'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 ac_cv_have_decl_ttyname=yes
10192 else
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10196 ac_cv_have_decl_ttyname=no
10198 rm -f conftest.$ac_objext conftest.$ac_ext
10200 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
10201 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
10202 if test $ac_cv_have_decl_ttyname = yes; then
10204 cat >>confdefs.h <<_ACEOF
10205 #define HAVE_DECL_TTYNAME 1
10206 _ACEOF
10209 else
10210 cat >>confdefs.h <<_ACEOF
10211 #define HAVE_DECL_TTYNAME 0
10212 _ACEOF
10219 echo "$as_me:$LINENO: checking for long file names" >&5
10220 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
10221 if test "${ac_cv_sys_long_file_names+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224 ac_cv_sys_long_file_names=yes
10225 # Test for long file names in all the places we know might matter:
10226 # . the current directory, where building will happen
10227 # $prefix/lib where we will be installing things
10228 # $exec_prefix/lib likewise
10229 # eval it to expand exec_prefix.
10230 # $TMPDIR if set, where it might want to write temporary files
10231 # if $TMPDIR is not set:
10232 # /tmp where it might want to write temporary files
10233 # /var/tmp likewise
10234 # /usr/tmp likewise
10235 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
10236 ac_tmpdirs=$TMPDIR
10237 else
10238 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
10240 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
10241 test -d $ac_dir || continue
10242 test -w $ac_dir || continue # It is less confusing to not echo anything here.
10243 ac_xdir=$ac_dir/cf$$
10244 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
10245 ac_tf1=$ac_xdir/conftest9012345
10246 ac_tf2=$ac_xdir/conftest9012346
10247 (echo 1 >$ac_tf1) 2>/dev/null
10248 (echo 2 >$ac_tf2) 2>/dev/null
10249 ac_val=`cat $ac_tf1 2>/dev/null`
10250 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
10251 ac_cv_sys_long_file_names=no
10252 rm -rf $ac_xdir 2>/dev/null
10253 break
10255 rm -rf $ac_xdir 2>/dev/null
10256 done
10258 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10259 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
10260 if test $ac_cv_sys_long_file_names = yes; then
10262 cat >>confdefs.h <<\_ACEOF
10263 #define HAVE_LONG_FILE_NAMES 1
10264 _ACEOF
10271 for ac_func in pathconf
10273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10274 echo "$as_me:$LINENO: checking for $ac_func" >&5
10275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10276 if eval "test \"\${$as_ac_var+set}\" = set"; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279 cat >conftest.$ac_ext <<_ACEOF
10280 #line $LINENO "configure"
10281 /* confdefs.h. */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10286 /* System header to define __stub macros and hopefully few prototypes,
10287 which can conflict with char $ac_func (); below.
10288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10289 <limits.h> exists even on freestanding compilers. */
10290 #ifdef __STDC__
10291 # include <limits.h>
10292 #else
10293 # include <assert.h>
10294 #endif
10295 /* Override any gcc2 internal prototype to avoid an error. */
10296 #ifdef __cplusplus
10297 extern "C"
10299 #endif
10300 /* We use char because int might match the return type of a gcc2
10301 builtin and then its argument prototype would still apply. */
10302 char $ac_func ();
10303 /* The GNU C library defines this for functions which it implements
10304 to always fail with ENOSYS. Some functions are actually named
10305 something starting with __ and the normal name is an alias. */
10306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10307 choke me
10308 #else
10309 char (*f) () = $ac_func;
10310 #endif
10311 #ifdef __cplusplus
10313 #endif
10316 main ()
10318 return f != $ac_func;
10320 return 0;
10322 _ACEOF
10323 rm -f conftest.$ac_objext conftest$ac_exeext
10324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10325 (eval $ac_link) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } &&
10329 { ac_try='test -s conftest$ac_exeext'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 eval "$as_ac_var=yes"
10336 else
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 eval "$as_ac_var=no"
10342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10346 if test `eval echo '${'$as_ac_var'}'` = yes; then
10347 cat >>confdefs.h <<_ACEOF
10348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10349 _ACEOF
10352 done
10357 for ac_header in limits.h string.h unistd.h
10359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10361 echo "$as_me:$LINENO: checking for $ac_header" >&5
10362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10368 else
10369 # Is the header compilable?
10370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10372 cat >conftest.$ac_ext <<_ACEOF
10373 #line $LINENO "configure"
10374 /* confdefs.h. */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379 $ac_includes_default
10380 #include <$ac_header>
10381 _ACEOF
10382 rm -f conftest.$ac_objext
10383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10384 (eval $ac_compile) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } &&
10388 { ac_try='test -s conftest.$ac_objext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_header_compiler=yes
10395 else
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10399 ac_header_compiler=no
10401 rm -f conftest.$ac_objext conftest.$ac_ext
10402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10403 echo "${ECHO_T}$ac_header_compiler" >&6
10405 # Is the header present?
10406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10408 cat >conftest.$ac_ext <<_ACEOF
10409 #line $LINENO "configure"
10410 /* confdefs.h. */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10415 #include <$ac_header>
10416 _ACEOF
10417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10419 ac_status=$?
10420 grep -v '^ *+' conftest.er1 >conftest.err
10421 rm -f conftest.er1
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } >/dev/null; then
10425 if test -s conftest.err; then
10426 ac_cpp_err=$ac_c_preproc_warn_flag
10427 else
10428 ac_cpp_err=
10430 else
10431 ac_cpp_err=yes
10433 if test -z "$ac_cpp_err"; then
10434 ac_header_preproc=yes
10435 else
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 ac_header_preproc=no
10441 rm -f conftest.err conftest.$ac_ext
10442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10443 echo "${ECHO_T}$ac_header_preproc" >&6
10445 # So? What about this header?
10446 case $ac_header_compiler:$ac_header_preproc in
10447 yes:no )
10448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10453 cat <<\_ASBOX
10454 ## ------------------------------------ ##
10455 ## Report this to bug-autoconf@gnu.org. ##
10456 ## ------------------------------------ ##
10457 _ASBOX
10459 sed "s/^/$as_me: WARNING: /" >&2
10461 no:yes )
10462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10469 cat <<\_ASBOX
10470 ## ------------------------------------ ##
10471 ## Report this to bug-autoconf@gnu.org. ##
10472 ## ------------------------------------ ##
10473 _ASBOX
10475 sed "s/^/$as_me: WARNING: /" >&2
10477 esac
10478 echo "$as_me:$LINENO: checking for $ac_header" >&5
10479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483 eval "$as_ac_Header=$ac_header_preproc"
10485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10490 cat >>confdefs.h <<_ACEOF
10491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10492 _ACEOF
10496 done
10499 # for STACK_DIRECTION
10502 echo "$as_me:$LINENO: checking for working C stack overflow detection" >&5
10503 echo $ECHO_N "checking for working C stack overflow detection... $ECHO_C" >&6
10504 if test "${ac_cv_sys_xsi_stack_overflow_heuristic+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507 if test "$cross_compiling" = yes; then
10508 ac_cv_sys_xsi_stack_overflow_heuristic=cross-compiling
10509 else
10510 cat >conftest.$ac_ext <<_ACEOF
10511 #line $LINENO "configure"
10512 /* confdefs.h. */
10513 _ACEOF
10514 cat confdefs.h >>conftest.$ac_ext
10515 cat >>conftest.$ac_ext <<_ACEOF
10516 /* end confdefs.h. */
10518 #include <unistd.h>
10519 #include <signal.h>
10520 #include <ucontext.h>
10522 static union
10524 char buffer[SIGSTKSZ];
10525 long double ld;
10526 long u;
10527 void *p;
10528 } alternate_signal_stack;
10530 #if STACK_DIRECTION
10531 # define find_stack_direction(ptr) STACK_DIRECTION
10532 #else
10533 static int
10534 find_stack_direction (char const *addr)
10536 char dummy;
10537 return (! addr ? find_stack_direction (&dummy)
10538 : addr < &dummy ? 1 : -1);
10540 #endif
10542 static void
10543 segv_handler (int signo, siginfo_t *info, void *context)
10545 if (0 < info->si_code)
10547 ucontext_t const *user_context = context;
10548 char const *stack_min = user_context->uc_stack.ss_sp;
10549 size_t stack_size = user_context->uc_stack.ss_size;
10550 char const *faulting_address = info->si_addr;
10551 size_t s = faulting_address - stack_min;
10552 size_t page_size = sysconf (_SC_PAGESIZE);
10553 if (find_stack_direction (0) < 0)
10554 s += page_size;
10555 if (s < stack_size + page_size)
10556 _exit (0);
10559 _exit (1);
10562 static int
10563 c_stack_action (void)
10565 stack_t st;
10566 struct sigaction act;
10567 int r;
10569 st.ss_flags = 0;
10570 st.ss_sp = alternate_signal_stack.buffer;
10571 st.ss_size = sizeof alternate_signal_stack.buffer;
10572 r = sigaltstack (&st, 0);
10573 if (r != 0)
10574 return r;
10576 sigemptyset (&act.sa_mask);
10577 act.sa_flags = SA_NODEFER | SA_ONSTACK | SA_RESETHAND | SA_SIGINFO;
10578 act.sa_sigaction = segv_handler;
10579 return sigaction (SIGSEGV, &act, 0);
10582 static int
10583 recurse (char *p)
10585 char array[500];
10586 array[0] = 1;
10587 return *p + recurse (array);
10591 main (void)
10593 c_stack_action ();
10594 return recurse ("\1");
10597 _ACEOF
10598 rm -f conftest$ac_exeext
10599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10600 (eval $ac_link) 2>&5
10601 ac_status=$?
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; }; then
10609 ac_cv_sys_xsi_stack_overflow_heuristic=yes
10610 else
10611 echo "$as_me: program exited with status $ac_status" >&5
10612 echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10615 ( exit $ac_status )
10616 ac_cv_sys_xsi_stack_overflow_heuristic=no
10618 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10621 echo "$as_me:$LINENO: result: $ac_cv_sys_xsi_stack_overflow_heuristic" >&5
10622 echo "${ECHO_T}$ac_cv_sys_xsi_stack_overflow_heuristic" >&6
10624 if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then
10626 cat >>confdefs.h <<\_ACEOF
10627 #define HAVE_XSI_STACK_OVERFLOW_HEURISTIC 1
10628 _ACEOF
10633 # for STACK_DIRECTION
10638 for ac_func in getcontext sigaltstack
10640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10641 echo "$as_me:$LINENO: checking for $ac_func" >&5
10642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10643 if eval "test \"\${$as_ac_var+set}\" = set"; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646 cat >conftest.$ac_ext <<_ACEOF
10647 #line $LINENO "configure"
10648 /* confdefs.h. */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 /* System header to define __stub macros and hopefully few prototypes,
10654 which can conflict with char $ac_func (); below.
10655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10656 <limits.h> exists even on freestanding compilers. */
10657 #ifdef __STDC__
10658 # include <limits.h>
10659 #else
10660 # include <assert.h>
10661 #endif
10662 /* Override any gcc2 internal prototype to avoid an error. */
10663 #ifdef __cplusplus
10664 extern "C"
10666 #endif
10667 /* We use char because int might match the return type of a gcc2
10668 builtin and then its argument prototype would still apply. */
10669 char $ac_func ();
10670 /* The GNU C library defines this for functions which it implements
10671 to always fail with ENOSYS. Some functions are actually named
10672 something starting with __ and the normal name is an alias. */
10673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10674 choke me
10675 #else
10676 char (*f) () = $ac_func;
10677 #endif
10678 #ifdef __cplusplus
10680 #endif
10683 main ()
10685 return f != $ac_func;
10687 return 0;
10689 _ACEOF
10690 rm -f conftest.$ac_objext conftest$ac_exeext
10691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10692 (eval $ac_link) 2>&5
10693 ac_status=$?
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } &&
10696 { ac_try='test -s conftest$ac_exeext'
10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
10702 eval "$as_ac_var=yes"
10703 else
10704 echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10707 eval "$as_ac_var=no"
10709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10713 if test `eval echo '${'$as_ac_var'}'` = yes; then
10714 cat >>confdefs.h <<_ACEOF
10715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10716 _ACEOF
10719 done
10721 echo "$as_me:$LINENO: checking whether getcontext is declared" >&5
10722 echo $ECHO_N "checking whether getcontext is declared... $ECHO_C" >&6
10723 if test "${ac_cv_have_decl_getcontext+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 else
10726 cat >conftest.$ac_ext <<_ACEOF
10727 #line $LINENO "configure"
10728 /* confdefs.h. */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10733 #include <ucontext.h>
10736 main ()
10738 #ifndef getcontext
10739 char *p = (char *) getcontext;
10740 #endif
10743 return 0;
10745 _ACEOF
10746 rm -f conftest.$ac_objext
10747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10748 (eval $ac_compile) 2>&5
10749 ac_status=$?
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try='test -s conftest.$ac_objext'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10755 ac_status=$?
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; }; then
10758 ac_cv_have_decl_getcontext=yes
10759 else
10760 echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10763 ac_cv_have_decl_getcontext=no
10765 rm -f conftest.$ac_objext conftest.$ac_ext
10767 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcontext" >&5
10768 echo "${ECHO_T}$ac_cv_have_decl_getcontext" >&6
10769 if test $ac_cv_have_decl_getcontext = yes; then
10771 cat >>confdefs.h <<_ACEOF
10772 #define HAVE_DECL_GETCONTEXT 1
10773 _ACEOF
10776 else
10777 cat >>confdefs.h <<_ACEOF
10778 #define HAVE_DECL_GETCONTEXT 0
10779 _ACEOF
10785 echo "$as_me:$LINENO: checking whether sigaltstack is declared" >&5
10786 echo $ECHO_N "checking whether sigaltstack is declared... $ECHO_C" >&6
10787 if test "${ac_cv_have_decl_sigaltstack+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 else
10790 cat >conftest.$ac_ext <<_ACEOF
10791 #line $LINENO "configure"
10792 /* confdefs.h. */
10793 _ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797 #include <signal.h>
10800 main ()
10802 #ifndef sigaltstack
10803 char *p = (char *) sigaltstack;
10804 #endif
10807 return 0;
10809 _ACEOF
10810 rm -f conftest.$ac_objext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812 (eval $ac_compile) 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } &&
10816 { ac_try='test -s conftest.$ac_objext'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10819 ac_status=$?
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; }; then
10822 ac_cv_have_decl_sigaltstack=yes
10823 else
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10827 ac_cv_have_decl_sigaltstack=no
10829 rm -f conftest.$ac_objext conftest.$ac_ext
10831 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sigaltstack" >&5
10832 echo "${ECHO_T}$ac_cv_have_decl_sigaltstack" >&6
10833 if test $ac_cv_have_decl_sigaltstack = yes; then
10835 cat >>confdefs.h <<_ACEOF
10836 #define HAVE_DECL_SIGALTSTACK 1
10837 _ACEOF
10840 else
10841 cat >>confdefs.h <<_ACEOF
10842 #define HAVE_DECL_SIGALTSTACK 0
10843 _ACEOF
10853 for ac_header in sys/resource.h ucontext.h unistd.h
10855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10857 echo "$as_me:$LINENO: checking for $ac_header" >&5
10858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10864 else
10865 # Is the header compilable?
10866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10868 cat >conftest.$ac_ext <<_ACEOF
10869 #line $LINENO "configure"
10870 /* confdefs.h. */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 $ac_includes_default
10876 #include <$ac_header>
10877 _ACEOF
10878 rm -f conftest.$ac_objext
10879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10880 (eval $ac_compile) 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } &&
10884 { ac_try='test -s conftest.$ac_objext'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; }; then
10890 ac_header_compiler=yes
10891 else
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 ac_header_compiler=no
10897 rm -f conftest.$ac_objext conftest.$ac_ext
10898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10899 echo "${ECHO_T}$ac_header_compiler" >&6
10901 # Is the header present?
10902 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10904 cat >conftest.$ac_ext <<_ACEOF
10905 #line $LINENO "configure"
10906 /* confdefs.h. */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10911 #include <$ac_header>
10912 _ACEOF
10913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } >/dev/null; then
10921 if test -s conftest.err; then
10922 ac_cpp_err=$ac_c_preproc_warn_flag
10923 else
10924 ac_cpp_err=
10926 else
10927 ac_cpp_err=yes
10929 if test -z "$ac_cpp_err"; then
10930 ac_header_preproc=yes
10931 else
10932 echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10935 ac_header_preproc=no
10937 rm -f conftest.err conftest.$ac_ext
10938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10939 echo "${ECHO_T}$ac_header_preproc" >&6
10941 # So? What about this header?
10942 case $ac_header_compiler:$ac_header_preproc in
10943 yes:no )
10944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10949 cat <<\_ASBOX
10950 ## ------------------------------------ ##
10951 ## Report this to bug-autoconf@gnu.org. ##
10952 ## ------------------------------------ ##
10953 _ASBOX
10955 sed "s/^/$as_me: WARNING: /" >&2
10957 no:yes )
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10965 cat <<\_ASBOX
10966 ## ------------------------------------ ##
10967 ## Report this to bug-autoconf@gnu.org. ##
10968 ## ------------------------------------ ##
10969 _ASBOX
10971 sed "s/^/$as_me: WARNING: /" >&2
10973 esac
10974 echo "$as_me:$LINENO: checking for $ac_header" >&5
10975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10978 else
10979 eval "$as_ac_Header=$ac_header_preproc"
10981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10986 cat >>confdefs.h <<_ACEOF
10987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10988 _ACEOF
10992 done
10995 echo "$as_me:$LINENO: checking for stack_t" >&5
10996 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
10997 if test "${ac_cv_type_stack_t+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000 cat >conftest.$ac_ext <<_ACEOF
11001 #line $LINENO "configure"
11002 /* confdefs.h. */
11003 _ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h. */
11007 #include <signal.h>
11010 main ()
11012 if ((stack_t *) 0)
11013 return 0;
11014 if (sizeof (stack_t))
11015 return 0;
11017 return 0;
11019 _ACEOF
11020 rm -f conftest.$ac_objext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11022 (eval $ac_compile) 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } &&
11026 { ac_try='test -s conftest.$ac_objext'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; }; then
11032 ac_cv_type_stack_t=yes
11033 else
11034 echo "$as_me: failed program was:" >&5
11035 sed 's/^/| /' conftest.$ac_ext >&5
11037 ac_cv_type_stack_t=no
11039 rm -f conftest.$ac_objext conftest.$ac_ext
11041 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11042 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
11043 if test $ac_cv_type_stack_t = yes; then
11045 cat >>confdefs.h <<_ACEOF
11046 #define HAVE_STACK_T 1
11047 _ACEOF
11054 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
11055 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
11056 if test "${ac_cv_search_gethostbyname+set}" = set; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11058 else
11060 ac_func_search_save_LIBS=$LIBS
11061 ac_cv_search_gethostbyname=no
11062 cat >conftest.$ac_ext <<_ACEOF
11063 #line $LINENO "configure"
11064 /* confdefs.h. */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11070 /* Override any gcc2 internal prototype to avoid an error. */
11071 #ifdef __cplusplus
11072 extern "C"
11073 #endif
11074 /* We use char because int might match the return type of a gcc2
11075 builtin and then its argument prototype would still apply. */
11076 char gethostbyname ();
11078 main ()
11080 gethostbyname ();
11082 return 0;
11084 _ACEOF
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11087 (eval $ac_link) 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } &&
11091 { ac_try='test -s conftest$ac_exeext'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11094 ac_status=$?
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; }; then
11097 ac_cv_search_gethostbyname='none required'
11098 else
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11104 if test "$ac_cv_search_gethostbyname" = no; then
11105 for ac_lib in inet nsl; do
11106 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11107 cat >conftest.$ac_ext <<_ACEOF
11108 #line $LINENO "configure"
11109 /* confdefs.h. */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11115 /* Override any gcc2 internal prototype to avoid an error. */
11116 #ifdef __cplusplus
11117 extern "C"
11118 #endif
11119 /* We use char because int might match the return type of a gcc2
11120 builtin and then its argument prototype would still apply. */
11121 char gethostbyname ();
11123 main ()
11125 gethostbyname ();
11127 return 0;
11129 _ACEOF
11130 rm -f conftest.$ac_objext conftest$ac_exeext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132 (eval $ac_link) 2>&5
11133 ac_status=$?
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } &&
11136 { ac_try='test -s conftest$ac_exeext'
11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 (eval $ac_try) 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 ac_cv_search_gethostbyname="-l$ac_lib"; break
11143 else
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11149 done
11151 LIBS=$ac_func_search_save_LIBS
11154 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
11155 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
11157 if test "$ac_cv_search_gethostbyname" = no; then :
11159 else
11160 if test "$ac_cv_search_gethostbyname" = 'none required'; then :
11162 else
11163 LIBS="$ac_cv_search_gethostbyname $LIBS"
11172 for ac_func in gethostbyname gethostbyaddr inet_ntoa
11174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11175 echo "$as_me:$LINENO: checking for $ac_func" >&5
11176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11177 if eval "test \"\${$as_ac_var+set}\" = set"; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 else
11180 cat >conftest.$ac_ext <<_ACEOF
11181 #line $LINENO "configure"
11182 /* confdefs.h. */
11183 _ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11187 /* System header to define __stub macros and hopefully few prototypes,
11188 which can conflict with char $ac_func (); below.
11189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11190 <limits.h> exists even on freestanding compilers. */
11191 #ifdef __STDC__
11192 # include <limits.h>
11193 #else
11194 # include <assert.h>
11195 #endif
11196 /* Override any gcc2 internal prototype to avoid an error. */
11197 #ifdef __cplusplus
11198 extern "C"
11200 #endif
11201 /* We use char because int might match the return type of a gcc2
11202 builtin and then its argument prototype would still apply. */
11203 char $ac_func ();
11204 /* The GNU C library defines this for functions which it implements
11205 to always fail with ENOSYS. Some functions are actually named
11206 something starting with __ and the normal name is an alias. */
11207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11208 choke me
11209 #else
11210 char (*f) () = $ac_func;
11211 #endif
11212 #ifdef __cplusplus
11214 #endif
11217 main ()
11219 return f != $ac_func;
11221 return 0;
11223 _ACEOF
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226 (eval $ac_link) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -s conftest$ac_exeext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11233 ac_status=$?
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 eval "$as_ac_var=yes"
11237 else
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11241 eval "$as_ac_var=no"
11243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11247 if test `eval echo '${'$as_ac_var'}'` = yes; then
11248 cat >>confdefs.h <<_ACEOF
11249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11250 _ACEOF
11253 done
11262 for ac_header in unistd.h string.h netdb.h sys/socket.h \
11263 netinet/in.h arpa/inet.h
11265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11267 echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11274 else
11275 # Is the header compilable?
11276 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11278 cat >conftest.$ac_ext <<_ACEOF
11279 #line $LINENO "configure"
11280 /* confdefs.h. */
11281 _ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11285 $ac_includes_default
11286 #include <$ac_header>
11287 _ACEOF
11288 rm -f conftest.$ac_objext
11289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11290 (eval $ac_compile) 2>&5
11291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } &&
11294 { ac_try='test -s conftest.$ac_objext'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; }; then
11300 ac_header_compiler=yes
11301 else
11302 echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11305 ac_header_compiler=no
11307 rm -f conftest.$ac_objext conftest.$ac_ext
11308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11309 echo "${ECHO_T}$ac_header_compiler" >&6
11311 # Is the header present?
11312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11314 cat >conftest.$ac_ext <<_ACEOF
11315 #line $LINENO "configure"
11316 /* confdefs.h. */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 #include <$ac_header>
11322 _ACEOF
11323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11325 ac_status=$?
11326 grep -v '^ *+' conftest.er1 >conftest.err
11327 rm -f conftest.er1
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } >/dev/null; then
11331 if test -s conftest.err; then
11332 ac_cpp_err=$ac_c_preproc_warn_flag
11333 else
11334 ac_cpp_err=
11336 else
11337 ac_cpp_err=yes
11339 if test -z "$ac_cpp_err"; then
11340 ac_header_preproc=yes
11341 else
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11345 ac_header_preproc=no
11347 rm -f conftest.err conftest.$ac_ext
11348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11349 echo "${ECHO_T}$ac_header_preproc" >&6
11351 # So? What about this header?
11352 case $ac_header_compiler:$ac_header_preproc in
11353 yes:no )
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11359 cat <<\_ASBOX
11360 ## ------------------------------------ ##
11361 ## Report this to bug-autoconf@gnu.org. ##
11362 ## ------------------------------------ ##
11363 _ASBOX
11365 sed "s/^/$as_me: WARNING: /" >&2
11367 no:yes )
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11375 cat <<\_ASBOX
11376 ## ------------------------------------ ##
11377 ## Report this to bug-autoconf@gnu.org. ##
11378 ## ------------------------------------ ##
11379 _ASBOX
11381 sed "s/^/$as_me: WARNING: /" >&2
11383 esac
11384 echo "$as_me:$LINENO: checking for $ac_header" >&5
11385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 else
11389 eval "$as_ac_Header=$ac_header_preproc"
11391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11396 cat >>confdefs.h <<_ACEOF
11397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11398 _ACEOF
11402 done
11408 for ac_header in string.h
11410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11412 echo "$as_me:$LINENO: checking for $ac_header" >&5
11413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11419 else
11420 # Is the header compilable?
11421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11423 cat >conftest.$ac_ext <<_ACEOF
11424 #line $LINENO "configure"
11425 /* confdefs.h. */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 $ac_includes_default
11431 #include <$ac_header>
11432 _ACEOF
11433 rm -f conftest.$ac_objext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11435 (eval $ac_compile) 2>&5
11436 ac_status=$?
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try='test -s conftest.$ac_objext'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; }; then
11445 ac_header_compiler=yes
11446 else
11447 echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11450 ac_header_compiler=no
11452 rm -f conftest.$ac_objext conftest.$ac_ext
11453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11454 echo "${ECHO_T}$ac_header_compiler" >&6
11456 # Is the header present?
11457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11459 cat >conftest.$ac_ext <<_ACEOF
11460 #line $LINENO "configure"
11461 /* confdefs.h. */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11466 #include <$ac_header>
11467 _ACEOF
11468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11470 ac_status=$?
11471 grep -v '^ *+' conftest.er1 >conftest.err
11472 rm -f conftest.er1
11473 cat conftest.err >&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } >/dev/null; then
11476 if test -s conftest.err; then
11477 ac_cpp_err=$ac_c_preproc_warn_flag
11478 else
11479 ac_cpp_err=
11481 else
11482 ac_cpp_err=yes
11484 if test -z "$ac_cpp_err"; then
11485 ac_header_preproc=yes
11486 else
11487 echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11490 ac_header_preproc=no
11492 rm -f conftest.err conftest.$ac_ext
11493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11494 echo "${ECHO_T}$ac_header_preproc" >&6
11496 # So? What about this header?
11497 case $ac_header_compiler:$ac_header_preproc in
11498 yes:no )
11499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11504 cat <<\_ASBOX
11505 ## ------------------------------------ ##
11506 ## Report this to bug-autoconf@gnu.org. ##
11507 ## ------------------------------------ ##
11508 _ASBOX
11510 sed "s/^/$as_me: WARNING: /" >&2
11512 no:yes )
11513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11520 cat <<\_ASBOX
11521 ## ------------------------------------ ##
11522 ## Report this to bug-autoconf@gnu.org. ##
11523 ## ------------------------------------ ##
11524 _ASBOX
11526 sed "s/^/$as_me: WARNING: /" >&2
11528 esac
11529 echo "$as_me:$LINENO: checking for $ac_header" >&5
11530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 else
11534 eval "$as_ac_Header=$ac_header_preproc"
11536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11541 cat >>confdefs.h <<_ACEOF
11542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11543 _ACEOF
11547 done
11554 for ac_func in strerror vprintf doprnt
11556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11557 echo "$as_me:$LINENO: checking for $ac_func" >&5
11558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11559 if eval "test \"\${$as_ac_var+set}\" = set"; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562 cat >conftest.$ac_ext <<_ACEOF
11563 #line $LINENO "configure"
11564 /* confdefs.h. */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 /* System header to define __stub macros and hopefully few prototypes,
11570 which can conflict with char $ac_func (); below.
11571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11572 <limits.h> exists even on freestanding compilers. */
11573 #ifdef __STDC__
11574 # include <limits.h>
11575 #else
11576 # include <assert.h>
11577 #endif
11578 /* Override any gcc2 internal prototype to avoid an error. */
11579 #ifdef __cplusplus
11580 extern "C"
11582 #endif
11583 /* We use char because int might match the return type of a gcc2
11584 builtin and then its argument prototype would still apply. */
11585 char $ac_func ();
11586 /* The GNU C library defines this for functions which it implements
11587 to always fail with ENOSYS. Some functions are actually named
11588 something starting with __ and the normal name is an alias. */
11589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11590 choke me
11591 #else
11592 char (*f) () = $ac_func;
11593 #endif
11594 #ifdef __cplusplus
11596 #endif
11599 main ()
11601 return f != $ac_func;
11603 return 0;
11605 _ACEOF
11606 rm -f conftest.$ac_objext conftest$ac_exeext
11607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11608 (eval $ac_link) 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try='test -s conftest$ac_exeext'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
11618 eval "$as_ac_var=yes"
11619 else
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11623 eval "$as_ac_var=no"
11625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11629 if test `eval echo '${'$as_ac_var'}'` = yes; then
11630 cat >>confdefs.h <<_ACEOF
11631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11632 _ACEOF
11635 done
11637 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
11638 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
11639 if test "${ac_cv_have_decl_strerror+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642 cat >conftest.$ac_ext <<_ACEOF
11643 #line $LINENO "configure"
11644 /* confdefs.h. */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 $ac_includes_default
11651 main ()
11653 #ifndef strerror
11654 char *p = (char *) strerror;
11655 #endif
11658 return 0;
11660 _ACEOF
11661 rm -f conftest.$ac_objext
11662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11663 (eval $ac_compile) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try='test -s conftest.$ac_objext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 ac_cv_have_decl_strerror=yes
11674 else
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 ac_cv_have_decl_strerror=no
11680 rm -f conftest.$ac_objext conftest.$ac_ext
11682 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
11683 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
11684 if test $ac_cv_have_decl_strerror = yes; then
11686 cat >>confdefs.h <<_ACEOF
11687 #define HAVE_DECL_STRERROR 1
11688 _ACEOF
11691 else
11692 cat >>confdefs.h <<_ACEOF
11693 #define HAVE_DECL_STRERROR 0
11694 _ACEOF
11701 for ac_header in libintl.h
11703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11705 echo "$as_me:$LINENO: checking for $ac_header" >&5
11706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11712 else
11713 # Is the header compilable?
11714 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11716 cat >conftest.$ac_ext <<_ACEOF
11717 #line $LINENO "configure"
11718 /* confdefs.h. */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 $ac_includes_default
11724 #include <$ac_header>
11725 _ACEOF
11726 rm -f conftest.$ac_objext
11727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728 (eval $ac_compile) 2>&5
11729 ac_status=$?
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try='test -s conftest.$ac_objext'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 ac_header_compiler=yes
11739 else
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11743 ac_header_compiler=no
11745 rm -f conftest.$ac_objext conftest.$ac_ext
11746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11747 echo "${ECHO_T}$ac_header_compiler" >&6
11749 # Is the header present?
11750 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11752 cat >conftest.$ac_ext <<_ACEOF
11753 #line $LINENO "configure"
11754 /* confdefs.h. */
11755 _ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11759 #include <$ac_header>
11760 _ACEOF
11761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11763 ac_status=$?
11764 grep -v '^ *+' conftest.er1 >conftest.err
11765 rm -f conftest.er1
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } >/dev/null; then
11769 if test -s conftest.err; then
11770 ac_cpp_err=$ac_c_preproc_warn_flag
11771 else
11772 ac_cpp_err=
11774 else
11775 ac_cpp_err=yes
11777 if test -z "$ac_cpp_err"; then
11778 ac_header_preproc=yes
11779 else
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 ac_header_preproc=no
11785 rm -f conftest.err conftest.$ac_ext
11786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11787 echo "${ECHO_T}$ac_header_preproc" >&6
11789 # So? What about this header?
11790 case $ac_header_compiler:$ac_header_preproc in
11791 yes:no )
11792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11797 cat <<\_ASBOX
11798 ## ------------------------------------ ##
11799 ## Report this to bug-autoconf@gnu.org. ##
11800 ## ------------------------------------ ##
11801 _ASBOX
11803 sed "s/^/$as_me: WARNING: /" >&2
11805 no:yes )
11806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11813 cat <<\_ASBOX
11814 ## ------------------------------------ ##
11815 ## Report this to bug-autoconf@gnu.org. ##
11816 ## ------------------------------------ ##
11817 _ASBOX
11819 sed "s/^/$as_me: WARNING: /" >&2
11821 esac
11822 echo "$as_me:$LINENO: checking for $ac_header" >&5
11823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 else
11827 eval "$as_ac_Header=$ac_header_preproc"
11829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11834 cat >>confdefs.h <<_ACEOF
11835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11836 _ACEOF
11840 done
11842 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
11843 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
11844 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11846 else
11847 cat >conftest.$ac_ext <<_ACEOF
11848 #line $LINENO "configure"
11849 /* confdefs.h. */
11850 _ACEOF
11851 cat confdefs.h >>conftest.$ac_ext
11852 cat >>conftest.$ac_ext <<_ACEOF
11853 /* end confdefs.h. */
11854 $ac_includes_default
11856 main ()
11858 #ifndef strerror_r
11859 char *p = (char *) strerror_r;
11860 #endif
11863 return 0;
11865 _ACEOF
11866 rm -f conftest.$ac_objext
11867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11868 (eval $ac_compile) 2>&5
11869 ac_status=$?
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try='test -s conftest.$ac_objext'
11873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; }; then
11878 ac_cv_have_decl_strerror_r=yes
11879 else
11880 echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11883 ac_cv_have_decl_strerror_r=no
11885 rm -f conftest.$ac_objext conftest.$ac_ext
11887 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
11888 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
11889 if test $ac_cv_have_decl_strerror_r = yes; then
11891 cat >>confdefs.h <<_ACEOF
11892 #define HAVE_DECL_STRERROR_R 1
11893 _ACEOF
11896 else
11897 cat >>confdefs.h <<_ACEOF
11898 #define HAVE_DECL_STRERROR_R 0
11899 _ACEOF
11906 for ac_func in strerror_r
11908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11909 echo "$as_me:$LINENO: checking for $ac_func" >&5
11910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11911 if eval "test \"\${$as_ac_var+set}\" = set"; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11914 cat >conftest.$ac_ext <<_ACEOF
11915 #line $LINENO "configure"
11916 /* confdefs.h. */
11917 _ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11921 /* System header to define __stub macros and hopefully few prototypes,
11922 which can conflict with char $ac_func (); below.
11923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11924 <limits.h> exists even on freestanding compilers. */
11925 #ifdef __STDC__
11926 # include <limits.h>
11927 #else
11928 # include <assert.h>
11929 #endif
11930 /* Override any gcc2 internal prototype to avoid an error. */
11931 #ifdef __cplusplus
11932 extern "C"
11934 #endif
11935 /* We use char because int might match the return type of a gcc2
11936 builtin and then its argument prototype would still apply. */
11937 char $ac_func ();
11938 /* The GNU C library defines this for functions which it implements
11939 to always fail with ENOSYS. Some functions are actually named
11940 something starting with __ and the normal name is an alias. */
11941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11942 choke me
11943 #else
11944 char (*f) () = $ac_func;
11945 #endif
11946 #ifdef __cplusplus
11948 #endif
11951 main ()
11953 return f != $ac_func;
11955 return 0;
11957 _ACEOF
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11960 (eval $ac_link) 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -s conftest$ac_exeext'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 eval "$as_ac_var=yes"
11971 else
11972 echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11975 eval "$as_ac_var=no"
11977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11981 if test `eval echo '${'$as_ac_var'}'` = yes; then
11982 cat >>confdefs.h <<_ACEOF
11983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11984 _ACEOF
11987 done
11989 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
11990 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
11991 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11993 else
11995 ac_cv_func_strerror_r_char_p=no
11996 if test $ac_cv_have_decl_strerror_r = yes; then
11997 cat >conftest.$ac_ext <<_ACEOF
11998 #line $LINENO "configure"
11999 /* confdefs.h. */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 $ac_includes_default
12006 main ()
12009 char buf[100];
12010 char x = *strerror_r (0, buf, sizeof buf);
12011 char *p = strerror_r (0, buf, sizeof buf);
12014 return 0;
12016 _ACEOF
12017 rm -f conftest.$ac_objext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12019 (eval $ac_compile) 2>&5
12020 ac_status=$?
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -s conftest.$ac_objext'
12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12026 ac_status=$?
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 ac_cv_func_strerror_r_char_p=yes
12030 else
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12035 rm -f conftest.$ac_objext conftest.$ac_ext
12036 else
12037 # strerror_r is not declared. Choose between
12038 # systems that have relatively inaccessible declarations for the
12039 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
12040 # former has a strerror_r that returns char*, while the latter
12041 # has a strerror_r that returns `int'.
12042 # This test should segfault on the DEC system.
12043 if test "$cross_compiling" = yes; then
12045 else
12046 cat >conftest.$ac_ext <<_ACEOF
12047 #line $LINENO "configure"
12048 /* confdefs.h. */
12049 _ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h. */
12053 $ac_includes_default
12054 extern char *strerror_r ();
12056 main ()
12058 char buf[100];
12059 char x = *strerror_r (0, buf, sizeof buf);
12060 exit (!isalpha (x));
12062 return 0;
12064 _ACEOF
12065 rm -f conftest$ac_exeext
12066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12067 (eval $ac_link) 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 ac_cv_func_strerror_r_char_p=yes
12077 else
12078 echo "$as_me: program exited with status $ac_status" >&5
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12083 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12088 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
12089 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
12090 if test $ac_cv_func_strerror_r_char_p = yes; then
12092 cat >>confdefs.h <<\_ACEOF
12093 #define STRERROR_R_CHAR_P 1
12094 _ACEOF
12098 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12099 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12100 if test "${ac_cv_header_stdc+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103 cat >conftest.$ac_ext <<_ACEOF
12104 #line $LINENO "configure"
12105 /* confdefs.h. */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 #include <stdlib.h>
12111 #include <stdarg.h>
12112 #include <string.h>
12113 #include <float.h>
12116 main ()
12120 return 0;
12122 _ACEOF
12123 rm -f conftest.$ac_objext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125 (eval $ac_compile) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } &&
12129 { ac_try='test -s conftest.$ac_objext'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 ac_cv_header_stdc=yes
12136 else
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12140 ac_cv_header_stdc=no
12142 rm -f conftest.$ac_objext conftest.$ac_ext
12144 if test $ac_cv_header_stdc = yes; then
12145 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12146 cat >conftest.$ac_ext <<_ACEOF
12147 #line $LINENO "configure"
12148 /* confdefs.h. */
12149 _ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h. */
12153 #include <string.h>
12155 _ACEOF
12156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12157 $EGREP "memchr" >/dev/null 2>&1; then
12159 else
12160 ac_cv_header_stdc=no
12162 rm -f conftest*
12166 if test $ac_cv_header_stdc = yes; then
12167 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12168 cat >conftest.$ac_ext <<_ACEOF
12169 #line $LINENO "configure"
12170 /* confdefs.h. */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 #include <stdlib.h>
12177 _ACEOF
12178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12179 $EGREP "free" >/dev/null 2>&1; then
12181 else
12182 ac_cv_header_stdc=no
12184 rm -f conftest*
12188 if test $ac_cv_header_stdc = yes; then
12189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12190 if test "$cross_compiling" = yes; then
12192 else
12193 cat >conftest.$ac_ext <<_ACEOF
12194 #line $LINENO "configure"
12195 /* confdefs.h. */
12196 _ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12200 #include <ctype.h>
12201 #if ((' ' & 0x0FF) == 0x020)
12202 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12203 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12204 #else
12205 # define ISLOWER(c) \
12206 (('a' <= (c) && (c) <= 'i') \
12207 || ('j' <= (c) && (c) <= 'r') \
12208 || ('s' <= (c) && (c) <= 'z'))
12209 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12210 #endif
12212 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12214 main ()
12216 int i;
12217 for (i = 0; i < 256; i++)
12218 if (XOR (islower (i), ISLOWER (i))
12219 || toupper (i) != TOUPPER (i))
12220 exit(2);
12221 exit (0);
12223 _ACEOF
12224 rm -f conftest$ac_exeext
12225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12226 (eval $ac_link) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12236 else
12237 echo "$as_me: program exited with status $ac_status" >&5
12238 echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12241 ( exit $ac_status )
12242 ac_cv_header_stdc=no
12244 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12248 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12249 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12250 if test $ac_cv_header_stdc = yes; then
12252 cat >>confdefs.h <<\_ACEOF
12253 #define STDC_HEADERS 1
12254 _ACEOF
12259 echo "$as_me:$LINENO: checking for mbstate_t" >&5
12260 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
12261 if test "${ac_cv_type_mbstate_t+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
12264 cat >conftest.$ac_ext <<_ACEOF
12265 #line $LINENO "configure"
12266 /* confdefs.h. */
12267 _ACEOF
12268 cat confdefs.h >>conftest.$ac_ext
12269 cat >>conftest.$ac_ext <<_ACEOF
12270 /* end confdefs.h. */
12271 $ac_includes_default
12272 # include <wchar.h>
12274 main ()
12276 mbstate_t x; return sizeof x;
12278 return 0;
12280 _ACEOF
12281 rm -f conftest.$ac_objext
12282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12283 (eval $ac_compile) 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
12287 { ac_try='test -s conftest.$ac_objext'
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; }; then
12293 ac_cv_type_mbstate_t=yes
12294 else
12295 echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12298 ac_cv_type_mbstate_t=no
12300 rm -f conftest.$ac_objext conftest.$ac_ext
12302 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
12303 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
12304 if test $ac_cv_type_mbstate_t = yes; then
12306 cat >>confdefs.h <<\_ACEOF
12307 #define HAVE_MBSTATE_T 1
12308 _ACEOF
12310 else
12312 cat >>confdefs.h <<\_ACEOF
12313 #define mbstate_t int
12314 _ACEOF
12318 echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
12319 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
12320 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 else
12323 # Some versions of Solaris, SCO, and the GNU C Library
12324 # have a broken or incompatible fnmatch.
12325 # So we run a test program. If we are cross-compiling, take no chance.
12326 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
12327 if test "$cross_compiling" = yes; then
12328 ac_cv_func_fnmatch_gnu=cross
12329 else
12330 cat >conftest.$ac_ext <<_ACEOF
12331 #line $LINENO "configure"
12332 /* confdefs.h. */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 #include <fnmatch.h>
12338 # define y(a, b, c) (fnmatch (a, b, c) == 0)
12339 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
12342 main ()
12344 exit
12345 (!(y ("a*", "abc", 0)
12346 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
12347 && y ("a\\\\bc", "abc", 0)
12348 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
12349 && y ("*x", ".x", 0)
12350 && n ("*x", ".x", FNM_PERIOD)
12351 && y ("xxXX", "xXxX", FNM_CASEFOLD)
12352 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
12353 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
12354 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
12355 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
12356 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
12358 return 0;
12360 _ACEOF
12361 rm -f conftest$ac_exeext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12363 (eval $ac_link) 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; }; then
12372 ac_cv_func_fnmatch_gnu=yes
12373 else
12374 echo "$as_me: program exited with status $ac_status" >&5
12375 echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12378 ( exit $ac_status )
12379 ac_cv_func_fnmatch_gnu=no
12381 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12384 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
12385 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
12386 if test $ac_cv_func_fnmatch_gnu = yes; then
12387 rm -f $ac_config_libobj_dir/fnmatch.h
12388 else
12389 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12390 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12391 if test "${ac_cv_have_decl_getenv+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 else
12394 cat >conftest.$ac_ext <<_ACEOF
12395 #line $LINENO "configure"
12396 /* confdefs.h. */
12397 _ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h. */
12401 $ac_includes_default
12403 main ()
12405 #ifndef getenv
12406 char *p = (char *) getenv;
12407 #endif
12410 return 0;
12412 _ACEOF
12413 rm -f conftest.$ac_objext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12415 (eval $ac_compile) 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } &&
12419 { ac_try='test -s conftest.$ac_objext'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12422 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12425 ac_cv_have_decl_getenv=yes
12426 else
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12430 ac_cv_have_decl_getenv=no
12432 rm -f conftest.$ac_objext conftest.$ac_ext
12434 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12435 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12436 if test $ac_cv_have_decl_getenv = yes; then
12438 cat >>confdefs.h <<_ACEOF
12439 #define HAVE_DECL_GETENV 1
12440 _ACEOF
12443 else
12444 cat >>confdefs.h <<_ACEOF
12445 #define HAVE_DECL_GETENV 0
12446 _ACEOF
12456 for ac_func in btowc mbsrtowcs mempcpy wmempcpy
12458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12459 echo "$as_me:$LINENO: checking for $ac_func" >&5
12460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12461 if eval "test \"\${$as_ac_var+set}\" = set"; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464 cat >conftest.$ac_ext <<_ACEOF
12465 #line $LINENO "configure"
12466 /* confdefs.h. */
12467 _ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12471 /* System header to define __stub macros and hopefully few prototypes,
12472 which can conflict with char $ac_func (); below.
12473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12474 <limits.h> exists even on freestanding compilers. */
12475 #ifdef __STDC__
12476 # include <limits.h>
12477 #else
12478 # include <assert.h>
12479 #endif
12480 /* Override any gcc2 internal prototype to avoid an error. */
12481 #ifdef __cplusplus
12482 extern "C"
12484 #endif
12485 /* We use char because int might match the return type of a gcc2
12486 builtin and then its argument prototype would still apply. */
12487 char $ac_func ();
12488 /* The GNU C library defines this for functions which it implements
12489 to always fail with ENOSYS. Some functions are actually named
12490 something starting with __ and the normal name is an alias. */
12491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12492 choke me
12493 #else
12494 char (*f) () = $ac_func;
12495 #endif
12496 #ifdef __cplusplus
12498 #endif
12501 main ()
12503 return f != $ac_func;
12505 return 0;
12507 _ACEOF
12508 rm -f conftest.$ac_objext conftest$ac_exeext
12509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12510 (eval $ac_link) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } &&
12514 { ac_try='test -s conftest$ac_exeext'
12515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516 (eval $ac_try) 2>&5
12517 ac_status=$?
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; }; then
12520 eval "$as_ac_var=yes"
12521 else
12522 echo "$as_me: failed program was:" >&5
12523 sed 's/^/| /' conftest.$ac_ext >&5
12525 eval "$as_ac_var=no"
12527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12531 if test `eval echo '${'$as_ac_var'}'` = yes; then
12532 cat >>confdefs.h <<_ACEOF
12533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12534 _ACEOF
12537 done
12541 for ac_header in wchar.h wctype.h
12543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12545 echo "$as_me:$LINENO: checking for $ac_header" >&5
12546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12552 else
12553 # Is the header compilable?
12554 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12556 cat >conftest.$ac_ext <<_ACEOF
12557 #line $LINENO "configure"
12558 /* confdefs.h. */
12559 _ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h. */
12563 $ac_includes_default
12564 #include <$ac_header>
12565 _ACEOF
12566 rm -f conftest.$ac_objext
12567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12568 (eval $ac_compile) 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } &&
12572 { ac_try='test -s conftest.$ac_objext'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12578 ac_header_compiler=yes
12579 else
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12583 ac_header_compiler=no
12585 rm -f conftest.$ac_objext conftest.$ac_ext
12586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12587 echo "${ECHO_T}$ac_header_compiler" >&6
12589 # Is the header present?
12590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12592 cat >conftest.$ac_ext <<_ACEOF
12593 #line $LINENO "configure"
12594 /* confdefs.h. */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12599 #include <$ac_header>
12600 _ACEOF
12601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12603 ac_status=$?
12604 grep -v '^ *+' conftest.er1 >conftest.err
12605 rm -f conftest.er1
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } >/dev/null; then
12609 if test -s conftest.err; then
12610 ac_cpp_err=$ac_c_preproc_warn_flag
12611 else
12612 ac_cpp_err=
12614 else
12615 ac_cpp_err=yes
12617 if test -z "$ac_cpp_err"; then
12618 ac_header_preproc=yes
12619 else
12620 echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12623 ac_header_preproc=no
12625 rm -f conftest.err conftest.$ac_ext
12626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12627 echo "${ECHO_T}$ac_header_preproc" >&6
12629 # So? What about this header?
12630 case $ac_header_compiler:$ac_header_preproc in
12631 yes:no )
12632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12637 cat <<\_ASBOX
12638 ## ------------------------------------ ##
12639 ## Report this to bug-autoconf@gnu.org. ##
12640 ## ------------------------------------ ##
12641 _ASBOX
12643 sed "s/^/$as_me: WARNING: /" >&2
12645 no:yes )
12646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12653 cat <<\_ASBOX
12654 ## ------------------------------------ ##
12655 ## Report this to bug-autoconf@gnu.org. ##
12656 ## ------------------------------------ ##
12657 _ASBOX
12659 sed "s/^/$as_me: WARNING: /" >&2
12661 esac
12662 echo "$as_me:$LINENO: checking for $ac_header" >&5
12663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12666 else
12667 eval "$as_ac_Header=$ac_header_preproc"
12669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12674 cat >>confdefs.h <<_ACEOF
12675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12676 _ACEOF
12680 done
12682 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
12683 ac_config_links="$ac_config_links $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h"
12686 cat >>confdefs.h <<\_ACEOF
12687 #define fnmatch rpl_fnmatch
12688 _ACEOF
12695 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
12696 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
12697 if test "${ac_cv_header_stdbool_h+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700 cat >conftest.$ac_ext <<_ACEOF
12701 #line $LINENO "configure"
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12708 #include <stdbool.h>
12709 #ifndef bool
12710 "error: bool is not defined"
12711 #endif
12712 #ifndef false
12713 "error: false is not defined"
12714 #endif
12715 #if false
12716 "error: false is not 0"
12717 #endif
12718 #ifndef true
12719 "error: false is not defined"
12720 #endif
12721 #if true != 1
12722 "error: true is not 1"
12723 #endif
12724 #ifndef __bool_true_false_are_defined
12725 "error: __bool_true_false_are_defined is not defined"
12726 #endif
12728 struct s { _Bool s: 1; _Bool t; } s;
12730 char a[true == 1 ? 1 : -1];
12731 char b[false == 0 ? 1 : -1];
12732 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12733 char d[(bool) -0.5 == true ? 1 : -1];
12734 bool e = &s;
12735 char f[(_Bool) -0.0 == false ? 1 : -1];
12736 char g[true];
12737 char h[sizeof (_Bool)];
12738 char i[sizeof s.t];
12741 main ()
12743 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
12745 return 0;
12747 _ACEOF
12748 rm -f conftest.$ac_objext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12750 (eval $ac_compile) 2>&5
12751 ac_status=$?
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } &&
12754 { ac_try='test -s conftest.$ac_objext'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; }; then
12760 ac_cv_header_stdbool_h=yes
12761 else
12762 echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12765 ac_cv_header_stdbool_h=no
12767 rm -f conftest.$ac_objext conftest.$ac_ext
12769 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
12770 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
12771 if test $ac_cv_header_stdbool_h = yes; then
12773 cat >>confdefs.h <<\_ACEOF
12774 #define HAVE_STDBOOL_H 1
12775 _ACEOF
12784 for ac_func in getpagesize
12786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12787 echo "$as_me:$LINENO: checking for $ac_func" >&5
12788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12789 if eval "test \"\${$as_ac_var+set}\" = set"; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12791 else
12792 cat >conftest.$ac_ext <<_ACEOF
12793 #line $LINENO "configure"
12794 /* confdefs.h. */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 /* System header to define __stub macros and hopefully few prototypes,
12800 which can conflict with char $ac_func (); below.
12801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12802 <limits.h> exists even on freestanding compilers. */
12803 #ifdef __STDC__
12804 # include <limits.h>
12805 #else
12806 # include <assert.h>
12807 #endif
12808 /* Override any gcc2 internal prototype to avoid an error. */
12809 #ifdef __cplusplus
12810 extern "C"
12812 #endif
12813 /* We use char because int might match the return type of a gcc2
12814 builtin and then its argument prototype would still apply. */
12815 char $ac_func ();
12816 /* The GNU C library defines this for functions which it implements
12817 to always fail with ENOSYS. Some functions are actually named
12818 something starting with __ and the normal name is an alias. */
12819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12820 choke me
12821 #else
12822 char (*f) () = $ac_func;
12823 #endif
12824 #ifdef __cplusplus
12826 #endif
12829 main ()
12831 return f != $ac_func;
12833 return 0;
12835 _ACEOF
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12838 (eval $ac_link) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
12842 { ac_try='test -s conftest$ac_exeext'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12845 ac_status=$?
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848 eval "$as_ac_var=yes"
12849 else
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12853 eval "$as_ac_var=no"
12855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12859 if test `eval echo '${'$as_ac_var'}'` = yes; then
12860 cat >>confdefs.h <<_ACEOF
12861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12862 _ACEOF
12865 done
12869 for ac_header in OS.h unistd.h
12871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12873 echo "$as_me:$LINENO: checking for $ac_header" >&5
12874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12880 else
12881 # Is the header compilable?
12882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12884 cat >conftest.$ac_ext <<_ACEOF
12885 #line $LINENO "configure"
12886 /* confdefs.h. */
12887 _ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12891 $ac_includes_default
12892 #include <$ac_header>
12893 _ACEOF
12894 rm -f conftest.$ac_objext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12896 (eval $ac_compile) 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try='test -s conftest.$ac_objext'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 ac_header_compiler=yes
12907 else
12908 echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12911 ac_header_compiler=no
12913 rm -f conftest.$ac_objext conftest.$ac_ext
12914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12915 echo "${ECHO_T}$ac_header_compiler" >&6
12917 # Is the header present?
12918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12920 cat >conftest.$ac_ext <<_ACEOF
12921 #line $LINENO "configure"
12922 /* confdefs.h. */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12927 #include <$ac_header>
12928 _ACEOF
12929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12931 ac_status=$?
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } >/dev/null; then
12937 if test -s conftest.err; then
12938 ac_cpp_err=$ac_c_preproc_warn_flag
12939 else
12940 ac_cpp_err=
12942 else
12943 ac_cpp_err=yes
12945 if test -z "$ac_cpp_err"; then
12946 ac_header_preproc=yes
12947 else
12948 echo "$as_me: failed program was:" >&5
12949 sed 's/^/| /' conftest.$ac_ext >&5
12951 ac_header_preproc=no
12953 rm -f conftest.err conftest.$ac_ext
12954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12955 echo "${ECHO_T}$ac_header_preproc" >&6
12957 # So? What about this header?
12958 case $ac_header_compiler:$ac_header_preproc in
12959 yes:no )
12960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12965 cat <<\_ASBOX
12966 ## ------------------------------------ ##
12967 ## Report this to bug-autoconf@gnu.org. ##
12968 ## ------------------------------------ ##
12969 _ASBOX
12971 sed "s/^/$as_me: WARNING: /" >&2
12973 no:yes )
12974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12981 cat <<\_ASBOX
12982 ## ------------------------------------ ##
12983 ## Report this to bug-autoconf@gnu.org. ##
12984 ## ------------------------------------ ##
12985 _ASBOX
12987 sed "s/^/$as_me: WARNING: /" >&2
12989 esac
12990 echo "$as_me:$LINENO: checking for $ac_header" >&5
12991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12993 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 else
12995 eval "$as_ac_Header=$ac_header_preproc"
12997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13002 cat >>confdefs.h <<_ACEOF
13003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13004 _ACEOF
13008 done
13015 for ac_header in locale.h stdlib.h string.h
13017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13019 echo "$as_me:$LINENO: checking for $ac_header" >&5
13020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13022 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13026 else
13027 # Is the header compilable?
13028 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13030 cat >conftest.$ac_ext <<_ACEOF
13031 #line $LINENO "configure"
13032 /* confdefs.h. */
13033 _ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13037 $ac_includes_default
13038 #include <$ac_header>
13039 _ACEOF
13040 rm -f conftest.$ac_objext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042 (eval $ac_compile) 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try='test -s conftest.$ac_objext'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
13052 ac_header_compiler=yes
13053 else
13054 echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.$ac_ext >&5
13057 ac_header_compiler=no
13059 rm -f conftest.$ac_objext conftest.$ac_ext
13060 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13061 echo "${ECHO_T}$ac_header_compiler" >&6
13063 # Is the header present?
13064 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13066 cat >conftest.$ac_ext <<_ACEOF
13067 #line $LINENO "configure"
13068 /* confdefs.h. */
13069 _ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13073 #include <$ac_header>
13074 _ACEOF
13075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13077 ac_status=$?
13078 grep -v '^ *+' conftest.er1 >conftest.err
13079 rm -f conftest.er1
13080 cat conftest.err >&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); } >/dev/null; then
13083 if test -s conftest.err; then
13084 ac_cpp_err=$ac_c_preproc_warn_flag
13085 else
13086 ac_cpp_err=
13088 else
13089 ac_cpp_err=yes
13091 if test -z "$ac_cpp_err"; then
13092 ac_header_preproc=yes
13093 else
13094 echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13097 ac_header_preproc=no
13099 rm -f conftest.err conftest.$ac_ext
13100 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13101 echo "${ECHO_T}$ac_header_preproc" >&6
13103 # So? What about this header?
13104 case $ac_header_compiler:$ac_header_preproc in
13105 yes:no )
13106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13111 cat <<\_ASBOX
13112 ## ------------------------------------ ##
13113 ## Report this to bug-autoconf@gnu.org. ##
13114 ## ------------------------------------ ##
13115 _ASBOX
13117 sed "s/^/$as_me: WARNING: /" >&2
13119 no:yes )
13120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13127 cat <<\_ASBOX
13128 ## ------------------------------------ ##
13129 ## Report this to bug-autoconf@gnu.org. ##
13130 ## ------------------------------------ ##
13131 _ASBOX
13133 sed "s/^/$as_me: WARNING: /" >&2
13135 esac
13136 echo "$as_me:$LINENO: checking for $ac_header" >&5
13137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 else
13141 eval "$as_ac_Header=$ac_header_preproc"
13143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13148 cat >>confdefs.h <<_ACEOF
13149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13150 _ACEOF
13154 done
13157 for ac_func in setlocale
13159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13160 echo "$as_me:$LINENO: checking for $ac_func" >&5
13161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13162 if eval "test \"\${$as_ac_var+set}\" = set"; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165 cat >conftest.$ac_ext <<_ACEOF
13166 #line $LINENO "configure"
13167 /* confdefs.h. */
13168 _ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13172 /* System header to define __stub macros and hopefully few prototypes,
13173 which can conflict with char $ac_func (); below.
13174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13175 <limits.h> exists even on freestanding compilers. */
13176 #ifdef __STDC__
13177 # include <limits.h>
13178 #else
13179 # include <assert.h>
13180 #endif
13181 /* Override any gcc2 internal prototype to avoid an error. */
13182 #ifdef __cplusplus
13183 extern "C"
13185 #endif
13186 /* We use char because int might match the return type of a gcc2
13187 builtin and then its argument prototype would still apply. */
13188 char $ac_func ();
13189 /* The GNU C library defines this for functions which it implements
13190 to always fail with ENOSYS. Some functions are actually named
13191 something starting with __ and the normal name is an alias. */
13192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13193 choke me
13194 #else
13195 char (*f) () = $ac_func;
13196 #endif
13197 #ifdef __cplusplus
13199 #endif
13202 main ()
13204 return f != $ac_func;
13206 return 0;
13208 _ACEOF
13209 rm -f conftest.$ac_objext conftest$ac_exeext
13210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13211 (eval $ac_link) 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); } &&
13215 { ac_try='test -s conftest$ac_exeext'
13216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217 (eval $ac_try) 2>&5
13218 ac_status=$?
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; }; then
13221 eval "$as_ac_var=yes"
13222 else
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13226 eval "$as_ac_var=no"
13228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13232 if test `eval echo '${'$as_ac_var'}'` = yes; then
13233 cat >>confdefs.h <<_ACEOF
13234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13235 _ACEOF
13238 done
13244 for ac_header in stdlib.h
13246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13248 echo "$as_me:$LINENO: checking for $ac_header" >&5
13249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13255 else
13256 # Is the header compilable?
13257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13259 cat >conftest.$ac_ext <<_ACEOF
13260 #line $LINENO "configure"
13261 /* confdefs.h. */
13262 _ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h. */
13266 $ac_includes_default
13267 #include <$ac_header>
13268 _ACEOF
13269 rm -f conftest.$ac_objext
13270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13271 (eval $ac_compile) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
13275 { ac_try='test -s conftest.$ac_objext'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13281 ac_header_compiler=yes
13282 else
13283 echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13286 ac_header_compiler=no
13288 rm -f conftest.$ac_objext conftest.$ac_ext
13289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13290 echo "${ECHO_T}$ac_header_compiler" >&6
13292 # Is the header present?
13293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13295 cat >conftest.$ac_ext <<_ACEOF
13296 #line $LINENO "configure"
13297 /* confdefs.h. */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13302 #include <$ac_header>
13303 _ACEOF
13304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } >/dev/null; then
13312 if test -s conftest.err; then
13313 ac_cpp_err=$ac_c_preproc_warn_flag
13314 else
13315 ac_cpp_err=
13317 else
13318 ac_cpp_err=yes
13320 if test -z "$ac_cpp_err"; then
13321 ac_header_preproc=yes
13322 else
13323 echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13326 ac_header_preproc=no
13328 rm -f conftest.err conftest.$ac_ext
13329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13330 echo "${ECHO_T}$ac_header_preproc" >&6
13332 # So? What about this header?
13333 case $ac_header_compiler:$ac_header_preproc in
13334 yes:no )
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13340 cat <<\_ASBOX
13341 ## ------------------------------------ ##
13342 ## Report this to bug-autoconf@gnu.org. ##
13343 ## ------------------------------------ ##
13344 _ASBOX
13346 sed "s/^/$as_me: WARNING: /" >&2
13348 no:yes )
13349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13356 cat <<\_ASBOX
13357 ## ------------------------------------ ##
13358 ## Report this to bug-autoconf@gnu.org. ##
13359 ## ------------------------------------ ##
13360 _ASBOX
13362 sed "s/^/$as_me: WARNING: /" >&2
13364 esac
13365 echo "$as_me:$LINENO: checking for $ac_header" >&5
13366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 else
13370 eval "$as_ac_Header=$ac_header_preproc"
13372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13377 cat >>confdefs.h <<_ACEOF
13378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13379 _ACEOF
13383 done
13390 for ac_header in locale.h
13392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13394 echo "$as_me:$LINENO: checking for $ac_header" >&5
13395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13401 else
13402 # Is the header compilable?
13403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13405 cat >conftest.$ac_ext <<_ACEOF
13406 #line $LINENO "configure"
13407 /* confdefs.h. */
13408 _ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h. */
13412 $ac_includes_default
13413 #include <$ac_header>
13414 _ACEOF
13415 rm -f conftest.$ac_objext
13416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13417 (eval $ac_compile) 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } &&
13421 { ac_try='test -s conftest.$ac_objext'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13427 ac_header_compiler=yes
13428 else
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13432 ac_header_compiler=no
13434 rm -f conftest.$ac_objext conftest.$ac_ext
13435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13436 echo "${ECHO_T}$ac_header_compiler" >&6
13438 # Is the header present?
13439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13441 cat >conftest.$ac_ext <<_ACEOF
13442 #line $LINENO "configure"
13443 /* confdefs.h. */
13444 _ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h. */
13448 #include <$ac_header>
13449 _ACEOF
13450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13452 ac_status=$?
13453 grep -v '^ *+' conftest.er1 >conftest.err
13454 rm -f conftest.er1
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } >/dev/null; then
13458 if test -s conftest.err; then
13459 ac_cpp_err=$ac_c_preproc_warn_flag
13460 else
13461 ac_cpp_err=
13463 else
13464 ac_cpp_err=yes
13466 if test -z "$ac_cpp_err"; then
13467 ac_header_preproc=yes
13468 else
13469 echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13472 ac_header_preproc=no
13474 rm -f conftest.err conftest.$ac_ext
13475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13476 echo "${ECHO_T}$ac_header_preproc" >&6
13478 # So? What about this header?
13479 case $ac_header_compiler:$ac_header_preproc in
13480 yes:no )
13481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13486 cat <<\_ASBOX
13487 ## ------------------------------------ ##
13488 ## Report this to bug-autoconf@gnu.org. ##
13489 ## ------------------------------------ ##
13490 _ASBOX
13492 sed "s/^/$as_me: WARNING: /" >&2
13494 no:yes )
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13502 cat <<\_ASBOX
13503 ## ------------------------------------ ##
13504 ## Report this to bug-autoconf@gnu.org. ##
13505 ## ------------------------------------ ##
13506 _ASBOX
13508 sed "s/^/$as_me: WARNING: /" >&2
13510 esac
13511 echo "$as_me:$LINENO: checking for $ac_header" >&5
13512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13515 else
13516 eval "$as_ac_Header=$ac_header_preproc"
13518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13523 cat >>confdefs.h <<_ACEOF
13524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13525 _ACEOF
13529 done
13531 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13532 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13533 if test "${ac_cv_have_decl_getenv+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536 cat >conftest.$ac_ext <<_ACEOF
13537 #line $LINENO "configure"
13538 /* confdefs.h. */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13543 $ac_includes_default
13545 main ()
13547 #ifndef getenv
13548 char *p = (char *) getenv;
13549 #endif
13552 return 0;
13554 _ACEOF
13555 rm -f conftest.$ac_objext
13556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13557 (eval $ac_compile) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } &&
13561 { ac_try='test -s conftest.$ac_objext'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; }; then
13567 ac_cv_have_decl_getenv=yes
13568 else
13569 echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13572 ac_cv_have_decl_getenv=no
13574 rm -f conftest.$ac_objext conftest.$ac_ext
13576 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13577 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13578 if test $ac_cv_have_decl_getenv = yes; then
13580 cat >>confdefs.h <<_ACEOF
13581 #define HAVE_DECL_GETENV 1
13582 _ACEOF
13585 else
13586 cat >>confdefs.h <<_ACEOF
13587 #define HAVE_DECL_GETENV 0
13588 _ACEOF
13595 for ac_func in localeconv
13597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13598 echo "$as_me:$LINENO: checking for $ac_func" >&5
13599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13600 if eval "test \"\${$as_ac_var+set}\" = set"; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 else
13603 cat >conftest.$ac_ext <<_ACEOF
13604 #line $LINENO "configure"
13605 /* confdefs.h. */
13606 _ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h. */
13610 /* System header to define __stub macros and hopefully few prototypes,
13611 which can conflict with char $ac_func (); below.
13612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13613 <limits.h> exists even on freestanding compilers. */
13614 #ifdef __STDC__
13615 # include <limits.h>
13616 #else
13617 # include <assert.h>
13618 #endif
13619 /* Override any gcc2 internal prototype to avoid an error. */
13620 #ifdef __cplusplus
13621 extern "C"
13623 #endif
13624 /* We use char because int might match the return type of a gcc2
13625 builtin and then its argument prototype would still apply. */
13626 char $ac_func ();
13627 /* The GNU C library defines this for functions which it implements
13628 to always fail with ENOSYS. Some functions are actually named
13629 something starting with __ and the normal name is an alias. */
13630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13631 choke me
13632 #else
13633 char (*f) () = $ac_func;
13634 #endif
13635 #ifdef __cplusplus
13637 #endif
13640 main ()
13642 return f != $ac_func;
13644 return 0;
13646 _ACEOF
13647 rm -f conftest.$ac_objext conftest$ac_exeext
13648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13649 (eval $ac_link) 2>&5
13650 ac_status=$?
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try='test -s conftest$ac_exeext'
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; }; then
13659 eval "$as_ac_var=yes"
13660 else
13661 echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13664 eval "$as_ac_var=no"
13666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13670 if test `eval echo '${'$as_ac_var'}'` = yes; then
13671 cat >>confdefs.h <<_ACEOF
13672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13673 _ACEOF
13676 done
13688 for ac_header in limits.h stdlib.h string.h wchar.h wctype.h
13690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13692 echo "$as_me:$LINENO: checking for $ac_header" >&5
13693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13699 else
13700 # Is the header compilable?
13701 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13703 cat >conftest.$ac_ext <<_ACEOF
13704 #line $LINENO "configure"
13705 /* confdefs.h. */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13710 $ac_includes_default
13711 #include <$ac_header>
13712 _ACEOF
13713 rm -f conftest.$ac_objext
13714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715 (eval $ac_compile) 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } &&
13719 { ac_try='test -s conftest.$ac_objext'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 ac_header_compiler=yes
13726 else
13727 echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13730 ac_header_compiler=no
13732 rm -f conftest.$ac_objext conftest.$ac_ext
13733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13734 echo "${ECHO_T}$ac_header_compiler" >&6
13736 # Is the header present?
13737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13739 cat >conftest.$ac_ext <<_ACEOF
13740 #line $LINENO "configure"
13741 /* confdefs.h. */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746 #include <$ac_header>
13747 _ACEOF
13748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13750 ac_status=$?
13751 grep -v '^ *+' conftest.er1 >conftest.err
13752 rm -f conftest.er1
13753 cat conftest.err >&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } >/dev/null; then
13756 if test -s conftest.err; then
13757 ac_cpp_err=$ac_c_preproc_warn_flag
13758 else
13759 ac_cpp_err=
13761 else
13762 ac_cpp_err=yes
13764 if test -z "$ac_cpp_err"; then
13765 ac_header_preproc=yes
13766 else
13767 echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13770 ac_header_preproc=no
13772 rm -f conftest.err conftest.$ac_ext
13773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13774 echo "${ECHO_T}$ac_header_preproc" >&6
13776 # So? What about this header?
13777 case $ac_header_compiler:$ac_header_preproc in
13778 yes:no )
13779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13784 cat <<\_ASBOX
13785 ## ------------------------------------ ##
13786 ## Report this to bug-autoconf@gnu.org. ##
13787 ## ------------------------------------ ##
13788 _ASBOX
13790 sed "s/^/$as_me: WARNING: /" >&2
13792 no:yes )
13793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13800 cat <<\_ASBOX
13801 ## ------------------------------------ ##
13802 ## Report this to bug-autoconf@gnu.org. ##
13803 ## ------------------------------------ ##
13804 _ASBOX
13806 sed "s/^/$as_me: WARNING: /" >&2
13808 esac
13809 echo "$as_me:$LINENO: checking for $ac_header" >&5
13810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 else
13814 eval "$as_ac_Header=$ac_header_preproc"
13816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13821 cat >>confdefs.h <<_ACEOF
13822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13823 _ACEOF
13827 done
13834 for ac_func in isascii iswcntrl iswprint mbsinit wcwidth
13836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13837 echo "$as_me:$LINENO: checking for $ac_func" >&5
13838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13839 if eval "test \"\${$as_ac_var+set}\" = set"; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842 cat >conftest.$ac_ext <<_ACEOF
13843 #line $LINENO "configure"
13844 /* confdefs.h. */
13845 _ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13849 /* System header to define __stub macros and hopefully few prototypes,
13850 which can conflict with char $ac_func (); below.
13851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13852 <limits.h> exists even on freestanding compilers. */
13853 #ifdef __STDC__
13854 # include <limits.h>
13855 #else
13856 # include <assert.h>
13857 #endif
13858 /* Override any gcc2 internal prototype to avoid an error. */
13859 #ifdef __cplusplus
13860 extern "C"
13862 #endif
13863 /* We use char because int might match the return type of a gcc2
13864 builtin and then its argument prototype would still apply. */
13865 char $ac_func ();
13866 /* The GNU C library defines this for functions which it implements
13867 to always fail with ENOSYS. Some functions are actually named
13868 something starting with __ and the normal name is an alias. */
13869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13870 choke me
13871 #else
13872 char (*f) () = $ac_func;
13873 #endif
13874 #ifdef __cplusplus
13876 #endif
13879 main ()
13881 return f != $ac_func;
13883 return 0;
13885 _ACEOF
13886 rm -f conftest.$ac_objext conftest$ac_exeext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13888 (eval $ac_link) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -s conftest$ac_exeext'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 eval "$as_ac_var=yes"
13899 else
13900 echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13903 eval "$as_ac_var=no"
13905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13909 if test `eval echo '${'$as_ac_var'}'` = yes; then
13910 cat >>confdefs.h <<_ACEOF
13911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13912 _ACEOF
13915 done
13918 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
13919 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
13920 if test "${jm_cv_func_mbrtowc+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13922 else
13923 cat >conftest.$ac_ext <<_ACEOF
13924 #line $LINENO "configure"
13925 /* confdefs.h. */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 #include <wchar.h>
13932 main ()
13934 mbstate_t state; return ! (sizeof state && mbrtowc);
13936 return 0;
13938 _ACEOF
13939 rm -f conftest.$ac_objext conftest$ac_exeext
13940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13941 (eval $ac_link) 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } &&
13945 { ac_try='test -s conftest$ac_exeext'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13948 ac_status=$?
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13951 jm_cv_func_mbrtowc=yes
13952 else
13953 echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.$ac_ext >&5
13956 jm_cv_func_mbrtowc=no
13958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13960 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
13961 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
13962 if test $jm_cv_func_mbrtowc = yes; then
13964 cat >>confdefs.h <<\_ACEOF
13965 #define HAVE_MBRTOWC 1
13966 _ACEOF
13971 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
13972 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
13973 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976 cat >conftest.$ac_ext <<_ACEOF
13977 #line $LINENO "configure"
13978 /* confdefs.h. */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13984 /* AIX 3.2.5 declares wcwidth in <string.h>. */
13985 #if HAVE_STRING_H
13986 # include <string.h>
13987 #endif
13988 #if HAVE_WCHAR_H
13989 # include <wchar.h>
13990 #endif
13993 main ()
13996 #ifndef wcwidth
13997 char *p = (char *) wcwidth;
13998 #endif
14001 return 0;
14003 _ACEOF
14004 rm -f conftest.$ac_objext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006 (eval $ac_compile) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -s conftest.$ac_objext'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14013 ac_status=$?
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14016 ac_cv_have_decl_wcwidth=yes
14017 else
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14021 ac_cv_have_decl_wcwidth=no
14023 rm -f conftest.$ac_objext conftest.$ac_ext
14025 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
14026 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
14027 if test $ac_cv_have_decl_wcwidth = yes; then
14028 ac_val=1
14029 else
14030 ac_val=0
14033 cat >>confdefs.h <<_ACEOF
14034 #define HAVE_DECL_WCWIDTH $ac_val
14035 _ACEOF
14038 echo "$as_me:$LINENO: checking for mbstate_t" >&5
14039 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14040 if test "${ac_cv_type_mbstate_t+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 else
14043 cat >conftest.$ac_ext <<_ACEOF
14044 #line $LINENO "configure"
14045 /* confdefs.h. */
14046 _ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h. */
14050 $ac_includes_default
14051 # include <wchar.h>
14053 main ()
14055 mbstate_t x; return sizeof x;
14057 return 0;
14059 _ACEOF
14060 rm -f conftest.$ac_objext
14061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14062 (eval $ac_compile) 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } &&
14066 { ac_try='test -s conftest.$ac_objext'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14072 ac_cv_type_mbstate_t=yes
14073 else
14074 echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14077 ac_cv_type_mbstate_t=no
14079 rm -f conftest.$ac_objext conftest.$ac_ext
14081 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14082 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
14083 if test $ac_cv_type_mbstate_t = yes; then
14085 cat >>confdefs.h <<\_ACEOF
14086 #define HAVE_MBSTATE_T 1
14087 _ACEOF
14089 else
14091 cat >>confdefs.h <<\_ACEOF
14092 #define mbstate_t int
14093 _ACEOF
14101 for ac_header in limits.h stdlib.h bp-sym.h
14103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14105 echo "$as_me:$LINENO: checking for $ac_header" >&5
14106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14108 echo $ECHO_N "(cached) $ECHO_C" >&6
14110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14112 else
14113 # Is the header compilable?
14114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14116 cat >conftest.$ac_ext <<_ACEOF
14117 #line $LINENO "configure"
14118 /* confdefs.h. */
14119 _ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 $ac_includes_default
14124 #include <$ac_header>
14125 _ACEOF
14126 rm -f conftest.$ac_objext
14127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14128 (eval $ac_compile) 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } &&
14132 { ac_try='test -s conftest.$ac_objext'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14135 ac_status=$?
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14138 ac_header_compiler=yes
14139 else
14140 echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14143 ac_header_compiler=no
14145 rm -f conftest.$ac_objext conftest.$ac_ext
14146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14147 echo "${ECHO_T}$ac_header_compiler" >&6
14149 # Is the header present?
14150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14152 cat >conftest.$ac_ext <<_ACEOF
14153 #line $LINENO "configure"
14154 /* confdefs.h. */
14155 _ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h. */
14159 #include <$ac_header>
14160 _ACEOF
14161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14163 ac_status=$?
14164 grep -v '^ *+' conftest.er1 >conftest.err
14165 rm -f conftest.er1
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } >/dev/null; then
14169 if test -s conftest.err; then
14170 ac_cpp_err=$ac_c_preproc_warn_flag
14171 else
14172 ac_cpp_err=
14174 else
14175 ac_cpp_err=yes
14177 if test -z "$ac_cpp_err"; then
14178 ac_header_preproc=yes
14179 else
14180 echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14183 ac_header_preproc=no
14185 rm -f conftest.err conftest.$ac_ext
14186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14187 echo "${ECHO_T}$ac_header_preproc" >&6
14189 # So? What about this header?
14190 case $ac_header_compiler:$ac_header_preproc in
14191 yes:no )
14192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14197 cat <<\_ASBOX
14198 ## ------------------------------------ ##
14199 ## Report this to bug-autoconf@gnu.org. ##
14200 ## ------------------------------------ ##
14201 _ASBOX
14203 sed "s/^/$as_me: WARNING: /" >&2
14205 no:yes )
14206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14213 cat <<\_ASBOX
14214 ## ------------------------------------ ##
14215 ## Report this to bug-autoconf@gnu.org. ##
14216 ## ------------------------------------ ##
14217 _ASBOX
14219 sed "s/^/$as_me: WARNING: /" >&2
14221 esac
14222 echo "$as_me:$LINENO: checking for $ac_header" >&5
14223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 else
14227 eval "$as_ac_Header=$ac_header_preproc"
14229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14234 cat >>confdefs.h <<_ACEOF
14235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14236 _ACEOF
14240 done
14246 for ac_header in sys/pstat.h unistd.h
14248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14250 echo "$as_me:$LINENO: checking for $ac_header" >&5
14251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14257 else
14258 # Is the header compilable?
14259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14261 cat >conftest.$ac_ext <<_ACEOF
14262 #line $LINENO "configure"
14263 /* confdefs.h. */
14264 _ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14268 $ac_includes_default
14269 #include <$ac_header>
14270 _ACEOF
14271 rm -f conftest.$ac_objext
14272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14273 (eval $ac_compile) 2>&5
14274 ac_status=$?
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } &&
14277 { ac_try='test -s conftest.$ac_objext'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14280 ac_status=$?
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; }; then
14283 ac_header_compiler=yes
14284 else
14285 echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14288 ac_header_compiler=no
14290 rm -f conftest.$ac_objext conftest.$ac_ext
14291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14292 echo "${ECHO_T}$ac_header_compiler" >&6
14294 # Is the header present?
14295 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14297 cat >conftest.$ac_ext <<_ACEOF
14298 #line $LINENO "configure"
14299 /* confdefs.h. */
14300 _ACEOF
14301 cat confdefs.h >>conftest.$ac_ext
14302 cat >>conftest.$ac_ext <<_ACEOF
14303 /* end confdefs.h. */
14304 #include <$ac_header>
14305 _ACEOF
14306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } >/dev/null; then
14314 if test -s conftest.err; then
14315 ac_cpp_err=$ac_c_preproc_warn_flag
14316 else
14317 ac_cpp_err=
14319 else
14320 ac_cpp_err=yes
14322 if test -z "$ac_cpp_err"; then
14323 ac_header_preproc=yes
14324 else
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14328 ac_header_preproc=no
14330 rm -f conftest.err conftest.$ac_ext
14331 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14332 echo "${ECHO_T}$ac_header_preproc" >&6
14334 # So? What about this header?
14335 case $ac_header_compiler:$ac_header_preproc in
14336 yes:no )
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14342 cat <<\_ASBOX
14343 ## ------------------------------------ ##
14344 ## Report this to bug-autoconf@gnu.org. ##
14345 ## ------------------------------------ ##
14346 _ASBOX
14348 sed "s/^/$as_me: WARNING: /" >&2
14350 no:yes )
14351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14358 cat <<\_ASBOX
14359 ## ------------------------------------ ##
14360 ## Report this to bug-autoconf@gnu.org. ##
14361 ## ------------------------------------ ##
14362 _ASBOX
14364 sed "s/^/$as_me: WARNING: /" >&2
14366 esac
14367 echo "$as_me:$LINENO: checking for $ac_header" >&5
14368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 else
14372 eval "$as_ac_Header=$ac_header_preproc"
14374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14379 cat >>confdefs.h <<_ACEOF
14380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14381 _ACEOF
14385 done
14389 for ac_func in pstat_getstatic pstat_getdynamic
14391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14392 echo "$as_me:$LINENO: checking for $ac_func" >&5
14393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14394 if eval "test \"\${$as_ac_var+set}\" = set"; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396 else
14397 cat >conftest.$ac_ext <<_ACEOF
14398 #line $LINENO "configure"
14399 /* confdefs.h. */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 /* System header to define __stub macros and hopefully few prototypes,
14405 which can conflict with char $ac_func (); below.
14406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14407 <limits.h> exists even on freestanding compilers. */
14408 #ifdef __STDC__
14409 # include <limits.h>
14410 #else
14411 # include <assert.h>
14412 #endif
14413 /* Override any gcc2 internal prototype to avoid an error. */
14414 #ifdef __cplusplus
14415 extern "C"
14417 #endif
14418 /* We use char because int might match the return type of a gcc2
14419 builtin and then its argument prototype would still apply. */
14420 char $ac_func ();
14421 /* The GNU C library defines this for functions which it implements
14422 to always fail with ENOSYS. Some functions are actually named
14423 something starting with __ and the normal name is an alias. */
14424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14425 choke me
14426 #else
14427 char (*f) () = $ac_func;
14428 #endif
14429 #ifdef __cplusplus
14431 #endif
14434 main ()
14436 return f != $ac_func;
14438 return 0;
14440 _ACEOF
14441 rm -f conftest.$ac_objext conftest$ac_exeext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14443 (eval $ac_link) 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
14447 { ac_try='test -s conftest$ac_exeext'
14448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449 (eval $ac_try) 2>&5
14450 ac_status=$?
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; }; then
14453 eval "$as_ac_var=yes"
14454 else
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14458 eval "$as_ac_var=no"
14460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14464 if test `eval echo '${'$as_ac_var'}'` = yes; then
14465 cat >>confdefs.h <<_ACEOF
14466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14467 _ACEOF
14470 done
14475 for ac_header in unistd.h
14477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14479 echo "$as_me:$LINENO: checking for $ac_header" >&5
14480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14486 else
14487 # Is the header compilable?
14488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14490 cat >conftest.$ac_ext <<_ACEOF
14491 #line $LINENO "configure"
14492 /* confdefs.h. */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 $ac_includes_default
14498 #include <$ac_header>
14499 _ACEOF
14500 rm -f conftest.$ac_objext
14501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14502 (eval $ac_compile) 2>&5
14503 ac_status=$?
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
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 ac_header_compiler=yes
14513 else
14514 echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14517 ac_header_compiler=no
14519 rm -f conftest.$ac_objext conftest.$ac_ext
14520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14521 echo "${ECHO_T}$ac_header_compiler" >&6
14523 # Is the header present?
14524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14526 cat >conftest.$ac_ext <<_ACEOF
14527 #line $LINENO "configure"
14528 /* confdefs.h. */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14533 #include <$ac_header>
14534 _ACEOF
14535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14537 ac_status=$?
14538 grep -v '^ *+' conftest.er1 >conftest.err
14539 rm -f conftest.er1
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } >/dev/null; then
14543 if test -s conftest.err; then
14544 ac_cpp_err=$ac_c_preproc_warn_flag
14545 else
14546 ac_cpp_err=
14548 else
14549 ac_cpp_err=yes
14551 if test -z "$ac_cpp_err"; then
14552 ac_header_preproc=yes
14553 else
14554 echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14557 ac_header_preproc=no
14559 rm -f conftest.err conftest.$ac_ext
14560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14561 echo "${ECHO_T}$ac_header_preproc" >&6
14563 # So? What about this header?
14564 case $ac_header_compiler:$ac_header_preproc in
14565 yes:no )
14566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14571 cat <<\_ASBOX
14572 ## ------------------------------------ ##
14573 ## Report this to bug-autoconf@gnu.org. ##
14574 ## ------------------------------------ ##
14575 _ASBOX
14577 sed "s/^/$as_me: WARNING: /" >&2
14579 no:yes )
14580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14587 cat <<\_ASBOX
14588 ## ------------------------------------ ##
14589 ## Report this to bug-autoconf@gnu.org. ##
14590 ## ------------------------------------ ##
14591 _ASBOX
14593 sed "s/^/$as_me: WARNING: /" >&2
14595 esac
14596 echo "$as_me:$LINENO: checking for $ac_header" >&5
14597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14600 else
14601 eval "$as_ac_Header=$ac_header_preproc"
14603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14608 cat >>confdefs.h <<_ACEOF
14609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14610 _ACEOF
14614 done
14616 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
14617 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
14618 if test "${ac_cv_have_decl_getenv+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 else
14621 cat >conftest.$ac_ext <<_ACEOF
14622 #line $LINENO "configure"
14623 /* confdefs.h. */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 $ac_includes_default
14630 main ()
14632 #ifndef getenv
14633 char *p = (char *) getenv;
14634 #endif
14637 return 0;
14639 _ACEOF
14640 rm -f conftest.$ac_objext
14641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14642 (eval $ac_compile) 2>&5
14643 ac_status=$?
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } &&
14646 { ac_try='test -s conftest.$ac_objext'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 ac_cv_have_decl_getenv=yes
14653 else
14654 echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14657 ac_cv_have_decl_getenv=no
14659 rm -f conftest.$ac_objext conftest.$ac_ext
14661 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
14662 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
14663 if test $ac_cv_have_decl_getenv = yes; then
14665 cat >>confdefs.h <<_ACEOF
14666 #define HAVE_DECL_GETENV 1
14667 _ACEOF
14670 else
14671 cat >>confdefs.h <<_ACEOF
14672 #define HAVE_DECL_GETENV 0
14673 _ACEOF
14680 echo "$as_me:$LINENO: checking for working memcmp" >&5
14681 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
14682 if test "${ac_cv_func_memcmp_working+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14684 else
14685 if test "$cross_compiling" = yes; then
14686 ac_cv_func_memcmp_working=no
14687 else
14688 cat >conftest.$ac_ext <<_ACEOF
14689 #line $LINENO "configure"
14690 /* confdefs.h. */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14697 main ()
14700 /* Some versions of memcmp are not 8-bit clean. */
14701 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14702 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14703 exit (1);
14705 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14706 or more and with at least one buffer not starting on a 4-byte boundary.
14707 William Lewis provided this test program. */
14709 char foo[21];
14710 char bar[21];
14711 int i;
14712 for (i = 0; i < 4; i++)
14714 char *a = foo + i;
14715 char *b = bar + i;
14716 strcpy (a, "--------01111111");
14717 strcpy (b, "--------10000000");
14718 if (memcmp (a, b, 16) >= 0)
14719 exit (1);
14721 exit (0);
14725 return 0;
14727 _ACEOF
14728 rm -f conftest$ac_exeext
14729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14730 (eval $ac_link) 2>&5
14731 ac_status=$?
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14736 ac_status=$?
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }; then
14739 ac_cv_func_memcmp_working=yes
14740 else
14741 echo "$as_me: program exited with status $ac_status" >&5
14742 echo "$as_me: failed program was:" >&5
14743 sed 's/^/| /' conftest.$ac_ext >&5
14745 ( exit $ac_status )
14746 ac_cv_func_memcmp_working=no
14748 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14751 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
14752 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
14753 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14755 if test $ac_cv_func_memcmp_working = no; then
14757 cat >>confdefs.h <<\_ACEOF
14758 #define memcmp rpl_memcmp
14759 _ACEOF
14764 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
14765 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
14766 if test "${ac_cv_c_backslash_a+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 else
14769 cat >conftest.$ac_ext <<_ACEOF
14770 #line $LINENO "configure"
14771 /* confdefs.h. */
14772 _ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h. */
14778 main ()
14781 #if '\a' == 'a'
14782 syntax error;
14783 #endif
14784 char buf['\a' == 'a' ? -1 : 1];
14785 buf[0] = '\a';
14786 return buf[0] != "\a"[0];
14789 return 0;
14791 _ACEOF
14792 rm -f conftest.$ac_objext
14793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14794 (eval $ac_compile) 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } &&
14798 { ac_try='test -s conftest.$ac_objext'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
14804 ac_cv_c_backslash_a=yes
14805 else
14806 echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14809 ac_cv_c_backslash_a=no
14811 rm -f conftest.$ac_objext conftest.$ac_ext
14813 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
14814 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
14815 if test $ac_cv_c_backslash_a = yes; then
14817 cat >>confdefs.h <<\_ACEOF
14818 #define HAVE_C_BACKSLASH_A 1
14819 _ACEOF
14826 for ac_func in isascii iswprint
14828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14829 echo "$as_me:$LINENO: checking for $ac_func" >&5
14830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14831 if eval "test \"\${$as_ac_var+set}\" = set"; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 else
14834 cat >conftest.$ac_ext <<_ACEOF
14835 #line $LINENO "configure"
14836 /* confdefs.h. */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14841 /* System header to define __stub macros and hopefully few prototypes,
14842 which can conflict with char $ac_func (); below.
14843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14844 <limits.h> exists even on freestanding compilers. */
14845 #ifdef __STDC__
14846 # include <limits.h>
14847 #else
14848 # include <assert.h>
14849 #endif
14850 /* Override any gcc2 internal prototype to avoid an error. */
14851 #ifdef __cplusplus
14852 extern "C"
14854 #endif
14855 /* We use char because int might match the return type of a gcc2
14856 builtin and then its argument prototype would still apply. */
14857 char $ac_func ();
14858 /* The GNU C library defines this for functions which it implements
14859 to always fail with ENOSYS. Some functions are actually named
14860 something starting with __ and the normal name is an alias. */
14861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14862 choke me
14863 #else
14864 char (*f) () = $ac_func;
14865 #endif
14866 #ifdef __cplusplus
14868 #endif
14871 main ()
14873 return f != $ac_func;
14875 return 0;
14877 _ACEOF
14878 rm -f conftest.$ac_objext conftest$ac_exeext
14879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14880 (eval $ac_link) 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } &&
14884 { ac_try='test -s conftest$ac_exeext'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14887 ac_status=$?
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
14890 eval "$as_ac_var=yes"
14891 else
14892 echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.$ac_ext >&5
14895 eval "$as_ac_var=no"
14897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14901 if test `eval echo '${'$as_ac_var'}'` = yes; then
14902 cat >>confdefs.h <<_ACEOF
14903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14904 _ACEOF
14907 done
14917 for ac_header in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
14919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14921 echo "$as_me:$LINENO: checking for $ac_header" >&5
14922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14928 else
14929 # Is the header compilable?
14930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14932 cat >conftest.$ac_ext <<_ACEOF
14933 #line $LINENO "configure"
14934 /* confdefs.h. */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 $ac_includes_default
14940 #include <$ac_header>
14941 _ACEOF
14942 rm -f conftest.$ac_objext
14943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14944 (eval $ac_compile) 2>&5
14945 ac_status=$?
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); } &&
14948 { ac_try='test -s conftest.$ac_objext'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; }; then
14954 ac_header_compiler=yes
14955 else
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14959 ac_header_compiler=no
14961 rm -f conftest.$ac_objext conftest.$ac_ext
14962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14963 echo "${ECHO_T}$ac_header_compiler" >&6
14965 # Is the header present?
14966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14968 cat >conftest.$ac_ext <<_ACEOF
14969 #line $LINENO "configure"
14970 /* confdefs.h. */
14971 _ACEOF
14972 cat confdefs.h >>conftest.$ac_ext
14973 cat >>conftest.$ac_ext <<_ACEOF
14974 /* end confdefs.h. */
14975 #include <$ac_header>
14976 _ACEOF
14977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14979 ac_status=$?
14980 grep -v '^ *+' conftest.er1 >conftest.err
14981 rm -f conftest.er1
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } >/dev/null; then
14985 if test -s conftest.err; then
14986 ac_cpp_err=$ac_c_preproc_warn_flag
14987 else
14988 ac_cpp_err=
14990 else
14991 ac_cpp_err=yes
14993 if test -z "$ac_cpp_err"; then
14994 ac_header_preproc=yes
14995 else
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14999 ac_header_preproc=no
15001 rm -f conftest.err conftest.$ac_ext
15002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15003 echo "${ECHO_T}$ac_header_preproc" >&6
15005 # So? What about this header?
15006 case $ac_header_compiler:$ac_header_preproc in
15007 yes:no )
15008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15013 cat <<\_ASBOX
15014 ## ------------------------------------ ##
15015 ## Report this to bug-autoconf@gnu.org. ##
15016 ## ------------------------------------ ##
15017 _ASBOX
15019 sed "s/^/$as_me: WARNING: /" >&2
15021 no:yes )
15022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15029 cat <<\_ASBOX
15030 ## ------------------------------------ ##
15031 ## Report this to bug-autoconf@gnu.org. ##
15032 ## ------------------------------------ ##
15033 _ASBOX
15035 sed "s/^/$as_me: WARNING: /" >&2
15037 esac
15038 echo "$as_me:$LINENO: checking for $ac_header" >&5
15039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043 eval "$as_ac_Header=$ac_header_preproc"
15045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15050 cat >>confdefs.h <<_ACEOF
15051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15052 _ACEOF
15056 done
15069 for ac_header in string.h utmp.h utmpx.h sys/param.h
15071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15073 echo "$as_me:$LINENO: checking for $ac_header" >&5
15074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15076 echo $ECHO_N "(cached) $ECHO_C" >&6
15078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15080 else
15081 # Is the header compilable?
15082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15084 cat >conftest.$ac_ext <<_ACEOF
15085 #line $LINENO "configure"
15086 /* confdefs.h. */
15087 _ACEOF
15088 cat confdefs.h >>conftest.$ac_ext
15089 cat >>conftest.$ac_ext <<_ACEOF
15090 /* end confdefs.h. */
15091 $ac_includes_default
15092 #include <$ac_header>
15093 _ACEOF
15094 rm -f conftest.$ac_objext
15095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15096 (eval $ac_compile) 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } &&
15100 { ac_try='test -s conftest.$ac_objext'
15101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102 (eval $ac_try) 2>&5
15103 ac_status=$?
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; }; then
15106 ac_header_compiler=yes
15107 else
15108 echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15111 ac_header_compiler=no
15113 rm -f conftest.$ac_objext conftest.$ac_ext
15114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15115 echo "${ECHO_T}$ac_header_compiler" >&6
15117 # Is the header present?
15118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15120 cat >conftest.$ac_ext <<_ACEOF
15121 #line $LINENO "configure"
15122 /* confdefs.h. */
15123 _ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15127 #include <$ac_header>
15128 _ACEOF
15129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15131 ac_status=$?
15132 grep -v '^ *+' conftest.er1 >conftest.err
15133 rm -f conftest.er1
15134 cat conftest.err >&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } >/dev/null; then
15137 if test -s conftest.err; then
15138 ac_cpp_err=$ac_c_preproc_warn_flag
15139 else
15140 ac_cpp_err=
15142 else
15143 ac_cpp_err=yes
15145 if test -z "$ac_cpp_err"; then
15146 ac_header_preproc=yes
15147 else
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15151 ac_header_preproc=no
15153 rm -f conftest.err conftest.$ac_ext
15154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15155 echo "${ECHO_T}$ac_header_preproc" >&6
15157 # So? What about this header?
15158 case $ac_header_compiler:$ac_header_preproc in
15159 yes:no )
15160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15165 cat <<\_ASBOX
15166 ## ------------------------------------ ##
15167 ## Report this to bug-autoconf@gnu.org. ##
15168 ## ------------------------------------ ##
15169 _ASBOX
15171 sed "s/^/$as_me: WARNING: /" >&2
15173 no:yes )
15174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15181 cat <<\_ASBOX
15182 ## ------------------------------------ ##
15183 ## Report this to bug-autoconf@gnu.org. ##
15184 ## ------------------------------------ ##
15185 _ASBOX
15187 sed "s/^/$as_me: WARNING: /" >&2
15189 esac
15190 echo "$as_me:$LINENO: checking for $ac_header" >&5
15191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15194 else
15195 eval "$as_ac_Header=$ac_header_preproc"
15197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15202 cat >>confdefs.h <<_ACEOF
15203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15204 _ACEOF
15208 done
15211 for ac_func in utmpname
15213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15214 echo "$as_me:$LINENO: checking for $ac_func" >&5
15215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15216 if eval "test \"\${$as_ac_var+set}\" = set"; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219 cat >conftest.$ac_ext <<_ACEOF
15220 #line $LINENO "configure"
15221 /* confdefs.h. */
15222 _ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15226 /* System header to define __stub macros and hopefully few prototypes,
15227 which can conflict with char $ac_func (); below.
15228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15229 <limits.h> exists even on freestanding compilers. */
15230 #ifdef __STDC__
15231 # include <limits.h>
15232 #else
15233 # include <assert.h>
15234 #endif
15235 /* Override any gcc2 internal prototype to avoid an error. */
15236 #ifdef __cplusplus
15237 extern "C"
15239 #endif
15240 /* We use char because int might match the return type of a gcc2
15241 builtin and then its argument prototype would still apply. */
15242 char $ac_func ();
15243 /* The GNU C library defines this for functions which it implements
15244 to always fail with ENOSYS. Some functions are actually named
15245 something starting with __ and the normal name is an alias. */
15246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15247 choke me
15248 #else
15249 char (*f) () = $ac_func;
15250 #endif
15251 #ifdef __cplusplus
15253 #endif
15256 main ()
15258 return f != $ac_func;
15260 return 0;
15262 _ACEOF
15263 rm -f conftest.$ac_objext conftest$ac_exeext
15264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15265 (eval $ac_link) 2>&5
15266 ac_status=$?
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } &&
15269 { ac_try='test -s conftest$ac_exeext'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then
15275 eval "$as_ac_var=yes"
15276 else
15277 echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15280 eval "$as_ac_var=no"
15282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15286 if test `eval echo '${'$as_ac_var'}'` = yes; then
15287 cat >>confdefs.h <<_ACEOF
15288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15289 _ACEOF
15292 done
15295 for ac_func in utmpxname
15297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15298 echo "$as_me:$LINENO: checking for $ac_func" >&5
15299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15300 if eval "test \"\${$as_ac_var+set}\" = set"; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 else
15303 cat >conftest.$ac_ext <<_ACEOF
15304 #line $LINENO "configure"
15305 /* confdefs.h. */
15306 _ACEOF
15307 cat confdefs.h >>conftest.$ac_ext
15308 cat >>conftest.$ac_ext <<_ACEOF
15309 /* end confdefs.h. */
15310 /* System header to define __stub macros and hopefully few prototypes,
15311 which can conflict with char $ac_func (); below.
15312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15313 <limits.h> exists even on freestanding compilers. */
15314 #ifdef __STDC__
15315 # include <limits.h>
15316 #else
15317 # include <assert.h>
15318 #endif
15319 /* Override any gcc2 internal prototype to avoid an error. */
15320 #ifdef __cplusplus
15321 extern "C"
15323 #endif
15324 /* We use char because int might match the return type of a gcc2
15325 builtin and then its argument prototype would still apply. */
15326 char $ac_func ();
15327 /* The GNU C library defines this for functions which it implements
15328 to always fail with ENOSYS. Some functions are actually named
15329 something starting with __ and the normal name is an alias. */
15330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15331 choke me
15332 #else
15333 char (*f) () = $ac_func;
15334 #endif
15335 #ifdef __cplusplus
15337 #endif
15340 main ()
15342 return f != $ac_func;
15344 return 0;
15346 _ACEOF
15347 rm -f conftest.$ac_objext conftest$ac_exeext
15348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15349 (eval $ac_link) 2>&5
15350 ac_status=$?
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
15353 { ac_try='test -s conftest$ac_exeext'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; }; then
15359 eval "$as_ac_var=yes"
15360 else
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15364 eval "$as_ac_var=no"
15366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15370 if test `eval echo '${'$as_ac_var'}'` = yes; then
15371 cat >>confdefs.h <<_ACEOF
15372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15373 _ACEOF
15376 done
15380 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
15381 utmp_includes="\
15382 $ac_includes_default
15383 #ifdef HAVE_UTMPX_H
15384 # include <utmpx.h>
15385 #endif
15386 #ifdef HAVE_UTMP_H
15387 # include <utmp.h>
15388 #endif
15390 echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
15391 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
15392 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15394 else
15395 cat >conftest.$ac_ext <<_ACEOF
15396 #line $LINENO "configure"
15397 /* confdefs.h. */
15398 _ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15402 $utmp_includes
15405 main ()
15407 static struct utmpx ac_aggr;
15408 if (ac_aggr.ut_user)
15409 return 0;
15411 return 0;
15413 _ACEOF
15414 rm -f conftest.$ac_objext
15415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15416 (eval $ac_compile) 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } &&
15420 { ac_try='test -s conftest.$ac_objext'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15426 ac_cv_member_struct_utmpx_ut_user=yes
15427 else
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 cat >conftest.$ac_ext <<_ACEOF
15432 #line $LINENO "configure"
15433 /* confdefs.h. */
15434 _ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h. */
15438 $utmp_includes
15441 main ()
15443 static struct utmpx ac_aggr;
15444 if (sizeof ac_aggr.ut_user)
15445 return 0;
15447 return 0;
15449 _ACEOF
15450 rm -f conftest.$ac_objext
15451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15452 (eval $ac_compile) 2>&5
15453 ac_status=$?
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } &&
15456 { ac_try='test -s conftest.$ac_objext'
15457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458 (eval $ac_try) 2>&5
15459 ac_status=$?
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; }; then
15462 ac_cv_member_struct_utmpx_ut_user=yes
15463 else
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15467 ac_cv_member_struct_utmpx_ut_user=no
15469 rm -f conftest.$ac_objext conftest.$ac_ext
15471 rm -f conftest.$ac_objext conftest.$ac_ext
15473 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
15474 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
15475 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
15477 cat >>confdefs.h <<_ACEOF
15478 #define HAVE_STRUCT_UTMPX_UT_USER 1
15479 _ACEOF
15484 echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
15485 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
15486 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15488 else
15489 cat >conftest.$ac_ext <<_ACEOF
15490 #line $LINENO "configure"
15491 /* confdefs.h. */
15492 _ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h. */
15496 $utmp_includes
15499 main ()
15501 static struct utmp ac_aggr;
15502 if (ac_aggr.ut_user)
15503 return 0;
15505 return 0;
15507 _ACEOF
15508 rm -f conftest.$ac_objext
15509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15510 (eval $ac_compile) 2>&5
15511 ac_status=$?
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } &&
15514 { ac_try='test -s conftest.$ac_objext'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15517 ac_status=$?
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; }; then
15520 ac_cv_member_struct_utmp_ut_user=yes
15521 else
15522 echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15525 cat >conftest.$ac_ext <<_ACEOF
15526 #line $LINENO "configure"
15527 /* confdefs.h. */
15528 _ACEOF
15529 cat confdefs.h >>conftest.$ac_ext
15530 cat >>conftest.$ac_ext <<_ACEOF
15531 /* end confdefs.h. */
15532 $utmp_includes
15535 main ()
15537 static struct utmp ac_aggr;
15538 if (sizeof ac_aggr.ut_user)
15539 return 0;
15541 return 0;
15543 _ACEOF
15544 rm -f conftest.$ac_objext
15545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15546 (eval $ac_compile) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
15550 { ac_try='test -s conftest.$ac_objext'
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 ac_cv_member_struct_utmp_ut_user=yes
15557 else
15558 echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15561 ac_cv_member_struct_utmp_ut_user=no
15563 rm -f conftest.$ac_objext conftest.$ac_ext
15565 rm -f conftest.$ac_objext conftest.$ac_ext
15567 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
15568 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
15569 if test $ac_cv_member_struct_utmp_ut_user = yes; then
15571 cat >>confdefs.h <<_ACEOF
15572 #define HAVE_STRUCT_UTMP_UT_USER 1
15573 _ACEOF
15578 echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
15579 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
15580 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
15581 echo $ECHO_N "(cached) $ECHO_C" >&6
15582 else
15583 cat >conftest.$ac_ext <<_ACEOF
15584 #line $LINENO "configure"
15585 /* confdefs.h. */
15586 _ACEOF
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h. */
15590 $utmp_includes
15593 main ()
15595 static struct utmpx ac_aggr;
15596 if (ac_aggr.ut_name)
15597 return 0;
15599 return 0;
15601 _ACEOF
15602 rm -f conftest.$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604 (eval $ac_compile) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } &&
15608 { ac_try='test -s conftest.$ac_objext'
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15611 ac_status=$?
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; }; then
15614 ac_cv_member_struct_utmpx_ut_name=yes
15615 else
15616 echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15619 cat >conftest.$ac_ext <<_ACEOF
15620 #line $LINENO "configure"
15621 /* confdefs.h. */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15626 $utmp_includes
15629 main ()
15631 static struct utmpx ac_aggr;
15632 if (sizeof ac_aggr.ut_name)
15633 return 0;
15635 return 0;
15637 _ACEOF
15638 rm -f conftest.$ac_objext
15639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15640 (eval $ac_compile) 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } &&
15644 { ac_try='test -s conftest.$ac_objext'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 ac_cv_member_struct_utmpx_ut_name=yes
15651 else
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15655 ac_cv_member_struct_utmpx_ut_name=no
15657 rm -f conftest.$ac_objext conftest.$ac_ext
15659 rm -f conftest.$ac_objext conftest.$ac_ext
15661 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
15662 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
15663 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
15665 cat >>confdefs.h <<_ACEOF
15666 #define HAVE_STRUCT_UTMPX_UT_NAME 1
15667 _ACEOF
15672 echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
15673 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
15674 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15676 else
15677 cat >conftest.$ac_ext <<_ACEOF
15678 #line $LINENO "configure"
15679 /* confdefs.h. */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15684 $utmp_includes
15687 main ()
15689 static struct utmp ac_aggr;
15690 if (ac_aggr.ut_name)
15691 return 0;
15693 return 0;
15695 _ACEOF
15696 rm -f conftest.$ac_objext
15697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15698 (eval $ac_compile) 2>&5
15699 ac_status=$?
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -s conftest.$ac_objext'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; }; then
15708 ac_cv_member_struct_utmp_ut_name=yes
15709 else
15710 echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15713 cat >conftest.$ac_ext <<_ACEOF
15714 #line $LINENO "configure"
15715 /* confdefs.h. */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 $utmp_includes
15723 main ()
15725 static struct utmp ac_aggr;
15726 if (sizeof ac_aggr.ut_name)
15727 return 0;
15729 return 0;
15731 _ACEOF
15732 rm -f conftest.$ac_objext
15733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15734 (eval $ac_compile) 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } &&
15738 { ac_try='test -s conftest.$ac_objext'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15744 ac_cv_member_struct_utmp_ut_name=yes
15745 else
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 ac_cv_member_struct_utmp_ut_name=no
15751 rm -f conftest.$ac_objext conftest.$ac_ext
15753 rm -f conftest.$ac_objext conftest.$ac_ext
15755 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
15756 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
15757 if test $ac_cv_member_struct_utmp_ut_name = yes; then
15759 cat >>confdefs.h <<_ACEOF
15760 #define HAVE_STRUCT_UTMP_UT_NAME 1
15761 _ACEOF
15766 echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
15767 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
15768 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
15769 echo $ECHO_N "(cached) $ECHO_C" >&6
15770 else
15771 cat >conftest.$ac_ext <<_ACEOF
15772 #line $LINENO "configure"
15773 /* confdefs.h. */
15774 _ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15778 $utmp_includes
15781 main ()
15783 static struct utmpx ac_aggr;
15784 if (ac_aggr.ut_type)
15785 return 0;
15787 return 0;
15789 _ACEOF
15790 rm -f conftest.$ac_objext
15791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15792 (eval $ac_compile) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } &&
15796 { ac_try='test -s conftest.$ac_objext'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 ac_cv_member_struct_utmpx_ut_type=yes
15803 else
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15807 cat >conftest.$ac_ext <<_ACEOF
15808 #line $LINENO "configure"
15809 /* confdefs.h. */
15810 _ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h. */
15814 $utmp_includes
15817 main ()
15819 static struct utmpx ac_aggr;
15820 if (sizeof ac_aggr.ut_type)
15821 return 0;
15823 return 0;
15825 _ACEOF
15826 rm -f conftest.$ac_objext
15827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15828 (eval $ac_compile) 2>&5
15829 ac_status=$?
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } &&
15832 { ac_try='test -s conftest.$ac_objext'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15835 ac_status=$?
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; }; then
15838 ac_cv_member_struct_utmpx_ut_type=yes
15839 else
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 ac_cv_member_struct_utmpx_ut_type=no
15845 rm -f conftest.$ac_objext conftest.$ac_ext
15847 rm -f conftest.$ac_objext conftest.$ac_ext
15849 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
15850 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
15851 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
15853 cat >>confdefs.h <<_ACEOF
15854 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
15855 _ACEOF
15860 echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
15861 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
15862 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 else
15865 cat >conftest.$ac_ext <<_ACEOF
15866 #line $LINENO "configure"
15867 /* confdefs.h. */
15868 _ACEOF
15869 cat confdefs.h >>conftest.$ac_ext
15870 cat >>conftest.$ac_ext <<_ACEOF
15871 /* end confdefs.h. */
15872 $utmp_includes
15875 main ()
15877 static struct utmp ac_aggr;
15878 if (ac_aggr.ut_type)
15879 return 0;
15881 return 0;
15883 _ACEOF
15884 rm -f conftest.$ac_objext
15885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15886 (eval $ac_compile) 2>&5
15887 ac_status=$?
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } &&
15890 { ac_try='test -s conftest.$ac_objext'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15893 ac_status=$?
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }; then
15896 ac_cv_member_struct_utmp_ut_type=yes
15897 else
15898 echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15901 cat >conftest.$ac_ext <<_ACEOF
15902 #line $LINENO "configure"
15903 /* confdefs.h. */
15904 _ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 $utmp_includes
15911 main ()
15913 static struct utmp ac_aggr;
15914 if (sizeof ac_aggr.ut_type)
15915 return 0;
15917 return 0;
15919 _ACEOF
15920 rm -f conftest.$ac_objext
15921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15922 (eval $ac_compile) 2>&5
15923 ac_status=$?
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } &&
15926 { ac_try='test -s conftest.$ac_objext'
15927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928 (eval $ac_try) 2>&5
15929 ac_status=$?
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; }; then
15932 ac_cv_member_struct_utmp_ut_type=yes
15933 else
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15937 ac_cv_member_struct_utmp_ut_type=no
15939 rm -f conftest.$ac_objext conftest.$ac_ext
15941 rm -f conftest.$ac_objext conftest.$ac_ext
15943 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
15944 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
15945 if test $ac_cv_member_struct_utmp_ut_type = yes; then
15947 cat >>confdefs.h <<_ACEOF
15948 #define HAVE_STRUCT_UTMP_UT_TYPE 1
15949 _ACEOF
15954 echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
15955 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
15956 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 else
15959 cat >conftest.$ac_ext <<_ACEOF
15960 #line $LINENO "configure"
15961 /* confdefs.h. */
15962 _ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 $utmp_includes
15969 main ()
15971 static struct utmpx ac_aggr;
15972 if (ac_aggr.ut_pid)
15973 return 0;
15975 return 0;
15977 _ACEOF
15978 rm -f conftest.$ac_objext
15979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15980 (eval $ac_compile) 2>&5
15981 ac_status=$?
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try='test -s conftest.$ac_objext'
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }; then
15990 ac_cv_member_struct_utmpx_ut_pid=yes
15991 else
15992 echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.$ac_ext >&5
15995 cat >conftest.$ac_ext <<_ACEOF
15996 #line $LINENO "configure"
15997 /* confdefs.h. */
15998 _ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h. */
16002 $utmp_includes
16005 main ()
16007 static struct utmpx ac_aggr;
16008 if (sizeof ac_aggr.ut_pid)
16009 return 0;
16011 return 0;
16013 _ACEOF
16014 rm -f conftest.$ac_objext
16015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16016 (eval $ac_compile) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } &&
16020 { ac_try='test -s conftest.$ac_objext'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }; then
16026 ac_cv_member_struct_utmpx_ut_pid=yes
16027 else
16028 echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16031 ac_cv_member_struct_utmpx_ut_pid=no
16033 rm -f conftest.$ac_objext conftest.$ac_ext
16035 rm -f conftest.$ac_objext conftest.$ac_ext
16037 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
16038 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
16039 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
16041 cat >>confdefs.h <<_ACEOF
16042 #define HAVE_STRUCT_UTMPX_UT_PID 1
16043 _ACEOF
16048 echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
16049 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
16050 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16052 else
16053 cat >conftest.$ac_ext <<_ACEOF
16054 #line $LINENO "configure"
16055 /* confdefs.h. */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16060 $utmp_includes
16063 main ()
16065 static struct utmp ac_aggr;
16066 if (ac_aggr.ut_pid)
16067 return 0;
16069 return 0;
16071 _ACEOF
16072 rm -f conftest.$ac_objext
16073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16074 (eval $ac_compile) 2>&5
16075 ac_status=$?
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } &&
16078 { ac_try='test -s conftest.$ac_objext'
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; }; then
16084 ac_cv_member_struct_utmp_ut_pid=yes
16085 else
16086 echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16089 cat >conftest.$ac_ext <<_ACEOF
16090 #line $LINENO "configure"
16091 /* confdefs.h. */
16092 _ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16096 $utmp_includes
16099 main ()
16101 static struct utmp ac_aggr;
16102 if (sizeof ac_aggr.ut_pid)
16103 return 0;
16105 return 0;
16107 _ACEOF
16108 rm -f conftest.$ac_objext
16109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16110 (eval $ac_compile) 2>&5
16111 ac_status=$?
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } &&
16114 { ac_try='test -s conftest.$ac_objext'
16115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116 (eval $ac_try) 2>&5
16117 ac_status=$?
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; }; then
16120 ac_cv_member_struct_utmp_ut_pid=yes
16121 else
16122 echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16125 ac_cv_member_struct_utmp_ut_pid=no
16127 rm -f conftest.$ac_objext conftest.$ac_ext
16129 rm -f conftest.$ac_objext conftest.$ac_ext
16131 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
16132 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
16133 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
16135 cat >>confdefs.h <<_ACEOF
16136 #define HAVE_STRUCT_UTMP_UT_PID 1
16137 _ACEOF
16142 echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
16143 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
16144 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16146 else
16147 cat >conftest.$ac_ext <<_ACEOF
16148 #line $LINENO "configure"
16149 /* confdefs.h. */
16150 _ACEOF
16151 cat confdefs.h >>conftest.$ac_ext
16152 cat >>conftest.$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16154 $utmp_includes
16157 main ()
16159 static struct utmpx ac_aggr;
16160 if (ac_aggr.ut_id)
16161 return 0;
16163 return 0;
16165 _ACEOF
16166 rm -f conftest.$ac_objext
16167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16168 (eval $ac_compile) 2>&5
16169 ac_status=$?
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } &&
16172 { ac_try='test -s conftest.$ac_objext'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16175 ac_status=$?
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; }; then
16178 ac_cv_member_struct_utmpx_ut_id=yes
16179 else
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16183 cat >conftest.$ac_ext <<_ACEOF
16184 #line $LINENO "configure"
16185 /* confdefs.h. */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16190 $utmp_includes
16193 main ()
16195 static struct utmpx ac_aggr;
16196 if (sizeof ac_aggr.ut_id)
16197 return 0;
16199 return 0;
16201 _ACEOF
16202 rm -f conftest.$ac_objext
16203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204 (eval $ac_compile) 2>&5
16205 ac_status=$?
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } &&
16208 { ac_try='test -s conftest.$ac_objext'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 ac_cv_member_struct_utmpx_ut_id=yes
16215 else
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16219 ac_cv_member_struct_utmpx_ut_id=no
16221 rm -f conftest.$ac_objext conftest.$ac_ext
16223 rm -f conftest.$ac_objext conftest.$ac_ext
16225 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
16226 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
16227 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
16229 cat >>confdefs.h <<_ACEOF
16230 #define HAVE_STRUCT_UTMPX_UT_ID 1
16231 _ACEOF
16236 echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
16237 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
16238 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16240 else
16241 cat >conftest.$ac_ext <<_ACEOF
16242 #line $LINENO "configure"
16243 /* confdefs.h. */
16244 _ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 $utmp_includes
16251 main ()
16253 static struct utmp ac_aggr;
16254 if (ac_aggr.ut_id)
16255 return 0;
16257 return 0;
16259 _ACEOF
16260 rm -f conftest.$ac_objext
16261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16262 (eval $ac_compile) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } &&
16266 { ac_try='test -s conftest.$ac_objext'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16269 ac_status=$?
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; }; then
16272 ac_cv_member_struct_utmp_ut_id=yes
16273 else
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 cat >conftest.$ac_ext <<_ACEOF
16278 #line $LINENO "configure"
16279 /* confdefs.h. */
16280 _ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16284 $utmp_includes
16287 main ()
16289 static struct utmp ac_aggr;
16290 if (sizeof ac_aggr.ut_id)
16291 return 0;
16293 return 0;
16295 _ACEOF
16296 rm -f conftest.$ac_objext
16297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16298 (eval $ac_compile) 2>&5
16299 ac_status=$?
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } &&
16302 { ac_try='test -s conftest.$ac_objext'
16303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304 (eval $ac_try) 2>&5
16305 ac_status=$?
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; }; then
16308 ac_cv_member_struct_utmp_ut_id=yes
16309 else
16310 echo "$as_me: failed program was:" >&5
16311 sed 's/^/| /' conftest.$ac_ext >&5
16313 ac_cv_member_struct_utmp_ut_id=no
16315 rm -f conftest.$ac_objext conftest.$ac_ext
16317 rm -f conftest.$ac_objext conftest.$ac_ext
16319 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
16320 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
16321 if test $ac_cv_member_struct_utmp_ut_id = yes; then
16323 cat >>confdefs.h <<_ACEOF
16324 #define HAVE_STRUCT_UTMP_UT_ID 1
16325 _ACEOF
16331 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
16332 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
16333 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 else
16336 cat >conftest.$ac_ext <<_ACEOF
16337 #line $LINENO "configure"
16338 /* confdefs.h. */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16343 $utmp_includes
16346 main ()
16348 static struct utmpx ac_aggr;
16349 if (ac_aggr.ut_exit.ut_exit)
16350 return 0;
16352 return 0;
16354 _ACEOF
16355 rm -f conftest.$ac_objext
16356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16357 (eval $ac_compile) 2>&5
16358 ac_status=$?
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } &&
16361 { ac_try='test -s conftest.$ac_objext'
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16364 ac_status=$?
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
16367 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
16368 else
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16372 cat >conftest.$ac_ext <<_ACEOF
16373 #line $LINENO "configure"
16374 /* confdefs.h. */
16375 _ACEOF
16376 cat confdefs.h >>conftest.$ac_ext
16377 cat >>conftest.$ac_ext <<_ACEOF
16378 /* end confdefs.h. */
16379 $utmp_includes
16382 main ()
16384 static struct utmpx ac_aggr;
16385 if (sizeof ac_aggr.ut_exit.ut_exit)
16386 return 0;
16388 return 0;
16390 _ACEOF
16391 rm -f conftest.$ac_objext
16392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16393 (eval $ac_compile) 2>&5
16394 ac_status=$?
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try='test -s conftest.$ac_objext'
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16400 ac_status=$?
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; }; then
16403 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
16404 else
16405 echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16408 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
16410 rm -f conftest.$ac_objext conftest.$ac_ext
16412 rm -f conftest.$ac_objext conftest.$ac_ext
16414 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
16415 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
16416 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
16418 cat >>confdefs.h <<_ACEOF
16419 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
16420 _ACEOF
16425 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
16426 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
16427 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430 cat >conftest.$ac_ext <<_ACEOF
16431 #line $LINENO "configure"
16432 /* confdefs.h. */
16433 _ACEOF
16434 cat confdefs.h >>conftest.$ac_ext
16435 cat >>conftest.$ac_ext <<_ACEOF
16436 /* end confdefs.h. */
16437 $utmp_includes
16440 main ()
16442 static struct utmp ac_aggr;
16443 if (ac_aggr.ut_exit.ut_exit)
16444 return 0;
16446 return 0;
16448 _ACEOF
16449 rm -f conftest.$ac_objext
16450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16451 (eval $ac_compile) 2>&5
16452 ac_status=$?
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); } &&
16455 { ac_try='test -s conftest.$ac_objext'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16458 ac_status=$?
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16461 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
16462 else
16463 echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16466 cat >conftest.$ac_ext <<_ACEOF
16467 #line $LINENO "configure"
16468 /* confdefs.h. */
16469 _ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16473 $utmp_includes
16476 main ()
16478 static struct utmp ac_aggr;
16479 if (sizeof ac_aggr.ut_exit.ut_exit)
16480 return 0;
16482 return 0;
16484 _ACEOF
16485 rm -f conftest.$ac_objext
16486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16487 (eval $ac_compile) 2>&5
16488 ac_status=$?
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
16491 { ac_try='test -s conftest.$ac_objext'
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; }; then
16497 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
16498 else
16499 echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16502 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
16504 rm -f conftest.$ac_objext conftest.$ac_ext
16506 rm -f conftest.$ac_objext conftest.$ac_ext
16508 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
16509 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
16510 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
16512 cat >>confdefs.h <<_ACEOF
16513 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
16514 _ACEOF
16519 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
16520 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
16521 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16523 else
16524 cat >conftest.$ac_ext <<_ACEOF
16525 #line $LINENO "configure"
16526 /* confdefs.h. */
16527 _ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16531 $utmp_includes
16534 main ()
16536 static struct utmpx ac_aggr;
16537 if (ac_aggr.ut_exit.e_exit)
16538 return 0;
16540 return 0;
16542 _ACEOF
16543 rm -f conftest.$ac_objext
16544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16545 (eval $ac_compile) 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } &&
16549 { ac_try='test -s conftest.$ac_objext'
16550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
16556 else
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16560 cat >conftest.$ac_ext <<_ACEOF
16561 #line $LINENO "configure"
16562 /* confdefs.h. */
16563 _ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16567 $utmp_includes
16570 main ()
16572 static struct utmpx ac_aggr;
16573 if (sizeof ac_aggr.ut_exit.e_exit)
16574 return 0;
16576 return 0;
16578 _ACEOF
16579 rm -f conftest.$ac_objext
16580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16581 (eval $ac_compile) 2>&5
16582 ac_status=$?
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
16585 { ac_try='test -s conftest.$ac_objext'
16586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16588 ac_status=$?
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; }; then
16591 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
16592 else
16593 echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16596 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
16598 rm -f conftest.$ac_objext conftest.$ac_ext
16600 rm -f conftest.$ac_objext conftest.$ac_ext
16602 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
16603 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
16604 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
16606 cat >>confdefs.h <<_ACEOF
16607 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
16608 _ACEOF
16613 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
16614 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
16615 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 else
16618 cat >conftest.$ac_ext <<_ACEOF
16619 #line $LINENO "configure"
16620 /* confdefs.h. */
16621 _ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16625 $utmp_includes
16628 main ()
16630 static struct utmp ac_aggr;
16631 if (ac_aggr.ut_exit.e_exit)
16632 return 0;
16634 return 0;
16636 _ACEOF
16637 rm -f conftest.$ac_objext
16638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16639 (eval $ac_compile) 2>&5
16640 ac_status=$?
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); } &&
16643 { ac_try='test -s conftest.$ac_objext'
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
16649 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
16650 else
16651 echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16654 cat >conftest.$ac_ext <<_ACEOF
16655 #line $LINENO "configure"
16656 /* confdefs.h. */
16657 _ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16661 $utmp_includes
16664 main ()
16666 static struct utmp ac_aggr;
16667 if (sizeof ac_aggr.ut_exit.e_exit)
16668 return 0;
16670 return 0;
16672 _ACEOF
16673 rm -f conftest.$ac_objext
16674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16675 (eval $ac_compile) 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
16679 { ac_try='test -s conftest.$ac_objext'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
16686 else
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16690 ac_cv_member_struct_utmp_ut_exit_e_exit=no
16692 rm -f conftest.$ac_objext conftest.$ac_ext
16694 rm -f conftest.$ac_objext conftest.$ac_ext
16696 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
16697 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
16698 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
16700 cat >>confdefs.h <<_ACEOF
16701 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
16702 _ACEOF
16708 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
16709 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
16710 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16712 else
16713 cat >conftest.$ac_ext <<_ACEOF
16714 #line $LINENO "configure"
16715 /* confdefs.h. */
16716 _ACEOF
16717 cat confdefs.h >>conftest.$ac_ext
16718 cat >>conftest.$ac_ext <<_ACEOF
16719 /* end confdefs.h. */
16720 $utmp_includes
16723 main ()
16725 static struct utmpx ac_aggr;
16726 if (ac_aggr.ut_exit.ut_termination)
16727 return 0;
16729 return 0;
16731 _ACEOF
16732 rm -f conftest.$ac_objext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16734 (eval $ac_compile) 2>&5
16735 ac_status=$?
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
16738 { ac_try='test -s conftest.$ac_objext'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16741 ac_status=$?
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; }; then
16744 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
16745 else
16746 echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16749 cat >conftest.$ac_ext <<_ACEOF
16750 #line $LINENO "configure"
16751 /* confdefs.h. */
16752 _ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h. */
16756 $utmp_includes
16759 main ()
16761 static struct utmpx ac_aggr;
16762 if (sizeof ac_aggr.ut_exit.ut_termination)
16763 return 0;
16765 return 0;
16767 _ACEOF
16768 rm -f conftest.$ac_objext
16769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16770 (eval $ac_compile) 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } &&
16774 { ac_try='test -s conftest.$ac_objext'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
16781 else
16782 echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16785 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
16787 rm -f conftest.$ac_objext conftest.$ac_ext
16789 rm -f conftest.$ac_objext conftest.$ac_ext
16791 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
16792 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
16793 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
16795 cat >>confdefs.h <<_ACEOF
16796 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
16797 _ACEOF
16802 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
16803 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
16804 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 else
16807 cat >conftest.$ac_ext <<_ACEOF
16808 #line $LINENO "configure"
16809 /* confdefs.h. */
16810 _ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16814 $utmp_includes
16817 main ()
16819 static struct utmp ac_aggr;
16820 if (ac_aggr.ut_exit.ut_termination)
16821 return 0;
16823 return 0;
16825 _ACEOF
16826 rm -f conftest.$ac_objext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16828 (eval $ac_compile) 2>&5
16829 ac_status=$?
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } &&
16832 { ac_try='test -s conftest.$ac_objext'
16833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834 (eval $ac_try) 2>&5
16835 ac_status=$?
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; }; then
16838 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
16839 else
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16843 cat >conftest.$ac_ext <<_ACEOF
16844 #line $LINENO "configure"
16845 /* confdefs.h. */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16850 $utmp_includes
16853 main ()
16855 static struct utmp ac_aggr;
16856 if (sizeof ac_aggr.ut_exit.ut_termination)
16857 return 0;
16859 return 0;
16861 _ACEOF
16862 rm -f conftest.$ac_objext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16864 (eval $ac_compile) 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
16868 { ac_try='test -s conftest.$ac_objext'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16871 ac_status=$?
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16874 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
16875 else
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
16881 rm -f conftest.$ac_objext conftest.$ac_ext
16883 rm -f conftest.$ac_objext conftest.$ac_ext
16885 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
16886 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
16887 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
16889 cat >>confdefs.h <<_ACEOF
16890 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
16891 _ACEOF
16896 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
16897 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
16898 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
16899 echo $ECHO_N "(cached) $ECHO_C" >&6
16900 else
16901 cat >conftest.$ac_ext <<_ACEOF
16902 #line $LINENO "configure"
16903 /* confdefs.h. */
16904 _ACEOF
16905 cat confdefs.h >>conftest.$ac_ext
16906 cat >>conftest.$ac_ext <<_ACEOF
16907 /* end confdefs.h. */
16908 $utmp_includes
16911 main ()
16913 static struct utmpx ac_aggr;
16914 if (ac_aggr.ut_exit.e_termination)
16915 return 0;
16917 return 0;
16919 _ACEOF
16920 rm -f conftest.$ac_objext
16921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16922 (eval $ac_compile) 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } &&
16926 { ac_try='test -s conftest.$ac_objext'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16929 ac_status=$?
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
16933 else
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 cat >conftest.$ac_ext <<_ACEOF
16938 #line $LINENO "configure"
16939 /* confdefs.h. */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 $utmp_includes
16947 main ()
16949 static struct utmpx ac_aggr;
16950 if (sizeof ac_aggr.ut_exit.e_termination)
16951 return 0;
16953 return 0;
16955 _ACEOF
16956 rm -f conftest.$ac_objext
16957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16958 (eval $ac_compile) 2>&5
16959 ac_status=$?
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
16962 { ac_try='test -s conftest.$ac_objext'
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16968 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
16969 else
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16973 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
16975 rm -f conftest.$ac_objext conftest.$ac_ext
16977 rm -f conftest.$ac_objext conftest.$ac_ext
16979 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
16980 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
16981 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
16983 cat >>confdefs.h <<_ACEOF
16984 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
16985 _ACEOF
16990 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
16991 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
16992 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16994 else
16995 cat >conftest.$ac_ext <<_ACEOF
16996 #line $LINENO "configure"
16997 /* confdefs.h. */
16998 _ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17002 $utmp_includes
17005 main ()
17007 static struct utmp ac_aggr;
17008 if (ac_aggr.ut_exit.e_termination)
17009 return 0;
17011 return 0;
17013 _ACEOF
17014 rm -f conftest.$ac_objext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17016 (eval $ac_compile) 2>&5
17017 ac_status=$?
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try='test -s conftest.$ac_objext'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
17027 else
17028 echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17031 cat >conftest.$ac_ext <<_ACEOF
17032 #line $LINENO "configure"
17033 /* confdefs.h. */
17034 _ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17038 $utmp_includes
17041 main ()
17043 static struct utmp ac_aggr;
17044 if (sizeof ac_aggr.ut_exit.e_termination)
17045 return 0;
17047 return 0;
17049 _ACEOF
17050 rm -f conftest.$ac_objext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17052 (eval $ac_compile) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } &&
17056 { ac_try='test -s conftest.$ac_objext'
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17062 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
17063 else
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17067 ac_cv_member_struct_utmp_ut_exit_e_termination=no
17069 rm -f conftest.$ac_objext conftest.$ac_ext
17071 rm -f conftest.$ac_objext conftest.$ac_ext
17073 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
17074 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
17075 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
17077 cat >>confdefs.h <<_ACEOF
17078 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
17079 _ACEOF
17084 LIBOBJS="$LIBOBJS readutmp.$ac_objext"
17088 echo "$as_me:$LINENO: checking for long long" >&5
17089 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17090 if test "${ac_cv_type_long_long+set}" = set; then
17091 echo $ECHO_N "(cached) $ECHO_C" >&6
17092 else
17093 cat >conftest.$ac_ext <<_ACEOF
17094 #line $LINENO "configure"
17095 /* confdefs.h. */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17100 long long ll = 1; int i = 63;
17102 main ()
17104 long long llmax = (long long) -1;
17105 return ll << i | ll >> i | llmax / ll | llmax % ll;
17107 return 0;
17109 _ACEOF
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17112 (eval $ac_link) 2>&5
17113 ac_status=$?
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } &&
17116 { ac_try='test -s conftest$ac_exeext'
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; }; then
17122 ac_cv_type_long_long=yes
17123 else
17124 echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17127 ac_cv_type_long_long=no
17129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17131 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17132 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17133 if test $ac_cv_type_long_long = yes; then
17135 cat >>confdefs.h <<\_ACEOF
17136 #define HAVE_LONG_LONG 1
17137 _ACEOF
17146 for ac_header in sys/sysmacros.h sys/statvfs.h sys/vfs.h inttypes.h
17148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17150 echo "$as_me:$LINENO: checking for $ac_header" >&5
17151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17157 else
17158 # Is the header compilable?
17159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17161 cat >conftest.$ac_ext <<_ACEOF
17162 #line $LINENO "configure"
17163 /* confdefs.h. */
17164 _ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h. */
17168 $ac_includes_default
17169 #include <$ac_header>
17170 _ACEOF
17171 rm -f conftest.$ac_objext
17172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17173 (eval $ac_compile) 2>&5
17174 ac_status=$?
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } &&
17177 { ac_try='test -s conftest.$ac_objext'
17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179 (eval $ac_try) 2>&5
17180 ac_status=$?
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; }; then
17183 ac_header_compiler=yes
17184 else
17185 echo "$as_me: failed program was:" >&5
17186 sed 's/^/| /' conftest.$ac_ext >&5
17188 ac_header_compiler=no
17190 rm -f conftest.$ac_objext conftest.$ac_ext
17191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17192 echo "${ECHO_T}$ac_header_compiler" >&6
17194 # Is the header present?
17195 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17197 cat >conftest.$ac_ext <<_ACEOF
17198 #line $LINENO "configure"
17199 /* confdefs.h. */
17200 _ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h. */
17204 #include <$ac_header>
17205 _ACEOF
17206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17208 ac_status=$?
17209 grep -v '^ *+' conftest.er1 >conftest.err
17210 rm -f conftest.er1
17211 cat conftest.err >&5
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); } >/dev/null; then
17214 if test -s conftest.err; then
17215 ac_cpp_err=$ac_c_preproc_warn_flag
17216 else
17217 ac_cpp_err=
17219 else
17220 ac_cpp_err=yes
17222 if test -z "$ac_cpp_err"; then
17223 ac_header_preproc=yes
17224 else
17225 echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17228 ac_header_preproc=no
17230 rm -f conftest.err conftest.$ac_ext
17231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17232 echo "${ECHO_T}$ac_header_preproc" >&6
17234 # So? What about this header?
17235 case $ac_header_compiler:$ac_header_preproc in
17236 yes:no )
17237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17242 cat <<\_ASBOX
17243 ## ------------------------------------ ##
17244 ## Report this to bug-autoconf@gnu.org. ##
17245 ## ------------------------------------ ##
17246 _ASBOX
17248 sed "s/^/$as_me: WARNING: /" >&2
17250 no:yes )
17251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17258 cat <<\_ASBOX
17259 ## ------------------------------------ ##
17260 ## Report this to bug-autoconf@gnu.org. ##
17261 ## ------------------------------------ ##
17262 _ASBOX
17264 sed "s/^/$as_me: WARNING: /" >&2
17266 esac
17267 echo "$as_me:$LINENO: checking for $ac_header" >&5
17268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17271 else
17272 eval "$as_ac_Header=$ac_header_preproc"
17274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17279 cat >>confdefs.h <<_ACEOF
17280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17281 _ACEOF
17285 done
17289 for ac_header in sys/param.h sys/mount.h
17291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17293 echo "$as_me:$LINENO: checking for $ac_header" >&5
17294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17296 echo $ECHO_N "(cached) $ECHO_C" >&6
17298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17300 else
17301 # Is the header compilable?
17302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17304 cat >conftest.$ac_ext <<_ACEOF
17305 #line $LINENO "configure"
17306 /* confdefs.h. */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311 $ac_includes_default
17312 #include <$ac_header>
17313 _ACEOF
17314 rm -f conftest.$ac_objext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316 (eval $ac_compile) 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try='test -s conftest.$ac_objext'
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
17326 ac_header_compiler=yes
17327 else
17328 echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17331 ac_header_compiler=no
17333 rm -f conftest.$ac_objext conftest.$ac_ext
17334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17335 echo "${ECHO_T}$ac_header_compiler" >&6
17337 # Is the header present?
17338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17340 cat >conftest.$ac_ext <<_ACEOF
17341 #line $LINENO "configure"
17342 /* confdefs.h. */
17343 _ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17347 #include <$ac_header>
17348 _ACEOF
17349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17351 ac_status=$?
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } >/dev/null; then
17357 if test -s conftest.err; then
17358 ac_cpp_err=$ac_c_preproc_warn_flag
17359 else
17360 ac_cpp_err=
17362 else
17363 ac_cpp_err=yes
17365 if test -z "$ac_cpp_err"; then
17366 ac_header_preproc=yes
17367 else
17368 echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17371 ac_header_preproc=no
17373 rm -f conftest.err conftest.$ac_ext
17374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17375 echo "${ECHO_T}$ac_header_preproc" >&6
17377 # So? What about this header?
17378 case $ac_header_compiler:$ac_header_preproc in
17379 yes:no )
17380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17385 cat <<\_ASBOX
17386 ## ------------------------------------ ##
17387 ## Report this to bug-autoconf@gnu.org. ##
17388 ## ------------------------------------ ##
17389 _ASBOX
17391 sed "s/^/$as_me: WARNING: /" >&2
17393 no:yes )
17394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17401 cat <<\_ASBOX
17402 ## ------------------------------------ ##
17403 ## Report this to bug-autoconf@gnu.org. ##
17404 ## ------------------------------------ ##
17405 _ASBOX
17407 sed "s/^/$as_me: WARNING: /" >&2
17409 esac
17410 echo "$as_me:$LINENO: checking for $ac_header" >&5
17411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17414 else
17415 eval "$as_ac_Header=$ac_header_preproc"
17417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17422 cat >>confdefs.h <<_ACEOF
17423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17424 _ACEOF
17428 done
17431 for ac_func in statvfs
17433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17434 echo "$as_me:$LINENO: checking for $ac_func" >&5
17435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17436 if eval "test \"\${$as_ac_var+set}\" = set"; then
17437 echo $ECHO_N "(cached) $ECHO_C" >&6
17438 else
17439 cat >conftest.$ac_ext <<_ACEOF
17440 #line $LINENO "configure"
17441 /* confdefs.h. */
17442 _ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17446 /* System header to define __stub macros and hopefully few prototypes,
17447 which can conflict with char $ac_func (); below.
17448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17449 <limits.h> exists even on freestanding compilers. */
17450 #ifdef __STDC__
17451 # include <limits.h>
17452 #else
17453 # include <assert.h>
17454 #endif
17455 /* Override any gcc2 internal prototype to avoid an error. */
17456 #ifdef __cplusplus
17457 extern "C"
17459 #endif
17460 /* We use char because int might match the return type of a gcc2
17461 builtin and then its argument prototype would still apply. */
17462 char $ac_func ();
17463 /* The GNU C library defines this for functions which it implements
17464 to always fail with ENOSYS. Some functions are actually named
17465 something starting with __ and the normal name is an alias. */
17466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17467 choke me
17468 #else
17469 char (*f) () = $ac_func;
17470 #endif
17471 #ifdef __cplusplus
17473 #endif
17476 main ()
17478 return f != $ac_func;
17480 return 0;
17482 _ACEOF
17483 rm -f conftest.$ac_objext conftest$ac_exeext
17484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17485 (eval $ac_link) 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
17489 { ac_try='test -s conftest$ac_exeext'
17490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491 (eval $ac_try) 2>&5
17492 ac_status=$?
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; }; then
17495 eval "$as_ac_var=yes"
17496 else
17497 echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17500 eval "$as_ac_var=no"
17502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17506 if test `eval echo '${'$as_ac_var'}'` = yes; then
17507 cat >>confdefs.h <<_ACEOF
17508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17509 _ACEOF
17512 done
17516 statxfs_includes="\
17517 $ac_includes_default
17518 #if HAVE_SYS_STATVFS_H
17519 # include <sys/statvfs.h>
17520 #endif
17521 #if HAVE_SYS_VFS_H
17522 # include <sys/vfs.h>
17523 #endif
17524 #if ( ! HAVE_SYS_STATVFS_H && ! HAVE_SYS_VFS_H && HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H )
17525 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
17526 # include <sys/param.h>
17527 # include <sys/mount.h>
17528 #endif
17530 echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
17531 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
17532 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535 cat >conftest.$ac_ext <<_ACEOF
17536 #line $LINENO "configure"
17537 /* confdefs.h. */
17538 _ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17542 $statxfs_includes
17545 main ()
17547 static struct statfs ac_aggr;
17548 if (ac_aggr.f_basetype)
17549 return 0;
17551 return 0;
17553 _ACEOF
17554 rm -f conftest.$ac_objext
17555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17556 (eval $ac_compile) 2>&5
17557 ac_status=$?
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } &&
17560 { ac_try='test -s conftest.$ac_objext'
17561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562 (eval $ac_try) 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17566 ac_cv_member_struct_statfs_f_basetype=yes
17567 else
17568 echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.$ac_ext >&5
17571 cat >conftest.$ac_ext <<_ACEOF
17572 #line $LINENO "configure"
17573 /* confdefs.h. */
17574 _ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17578 $statxfs_includes
17581 main ()
17583 static struct statfs ac_aggr;
17584 if (sizeof ac_aggr.f_basetype)
17585 return 0;
17587 return 0;
17589 _ACEOF
17590 rm -f conftest.$ac_objext
17591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17592 (eval $ac_compile) 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } &&
17596 { ac_try='test -s conftest.$ac_objext'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; }; then
17602 ac_cv_member_struct_statfs_f_basetype=yes
17603 else
17604 echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17607 ac_cv_member_struct_statfs_f_basetype=no
17609 rm -f conftest.$ac_objext conftest.$ac_ext
17611 rm -f conftest.$ac_objext conftest.$ac_ext
17613 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
17614 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
17615 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
17617 cat >>confdefs.h <<_ACEOF
17618 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
17619 _ACEOF
17624 echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
17625 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
17626 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17628 else
17629 cat >conftest.$ac_ext <<_ACEOF
17630 #line $LINENO "configure"
17631 /* confdefs.h. */
17632 _ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h. */
17636 $statxfs_includes
17639 main ()
17641 static struct statvfs ac_aggr;
17642 if (ac_aggr.f_basetype)
17643 return 0;
17645 return 0;
17647 _ACEOF
17648 rm -f conftest.$ac_objext
17649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17650 (eval $ac_compile) 2>&5
17651 ac_status=$?
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } &&
17654 { ac_try='test -s conftest.$ac_objext'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17657 ac_status=$?
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; }; then
17660 ac_cv_member_struct_statvfs_f_basetype=yes
17661 else
17662 echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17665 cat >conftest.$ac_ext <<_ACEOF
17666 #line $LINENO "configure"
17667 /* confdefs.h. */
17668 _ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17672 $statxfs_includes
17675 main ()
17677 static struct statvfs ac_aggr;
17678 if (sizeof ac_aggr.f_basetype)
17679 return 0;
17681 return 0;
17683 _ACEOF
17684 rm -f conftest.$ac_objext
17685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17686 (eval $ac_compile) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); } &&
17690 { ac_try='test -s conftest.$ac_objext'
17691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692 (eval $ac_try) 2>&5
17693 ac_status=$?
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; }; then
17696 ac_cv_member_struct_statvfs_f_basetype=yes
17697 else
17698 echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17701 ac_cv_member_struct_statvfs_f_basetype=no
17703 rm -f conftest.$ac_objext conftest.$ac_ext
17705 rm -f conftest.$ac_objext conftest.$ac_ext
17707 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
17708 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
17709 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
17711 cat >>confdefs.h <<_ACEOF
17712 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
17713 _ACEOF
17718 echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
17719 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
17720 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
17721 echo $ECHO_N "(cached) $ECHO_C" >&6
17722 else
17723 cat >conftest.$ac_ext <<_ACEOF
17724 #line $LINENO "configure"
17725 /* confdefs.h. */
17726 _ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17730 $statxfs_includes
17733 main ()
17735 static struct statfs ac_aggr;
17736 if (ac_aggr.f_fstypename)
17737 return 0;
17739 return 0;
17741 _ACEOF
17742 rm -f conftest.$ac_objext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17744 (eval $ac_compile) 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
17748 { ac_try='test -s conftest.$ac_objext'
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754 ac_cv_member_struct_statfs_f_fstypename=yes
17755 else
17756 echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17759 cat >conftest.$ac_ext <<_ACEOF
17760 #line $LINENO "configure"
17761 /* confdefs.h. */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17766 $statxfs_includes
17769 main ()
17771 static struct statfs ac_aggr;
17772 if (sizeof ac_aggr.f_fstypename)
17773 return 0;
17775 return 0;
17777 _ACEOF
17778 rm -f conftest.$ac_objext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17780 (eval $ac_compile) 2>&5
17781 ac_status=$?
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); } &&
17784 { ac_try='test -s conftest.$ac_objext'
17785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786 (eval $ac_try) 2>&5
17787 ac_status=$?
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; }; then
17790 ac_cv_member_struct_statfs_f_fstypename=yes
17791 else
17792 echo "$as_me: failed program was:" >&5
17793 sed 's/^/| /' conftest.$ac_ext >&5
17795 ac_cv_member_struct_statfs_f_fstypename=no
17797 rm -f conftest.$ac_objext conftest.$ac_ext
17799 rm -f conftest.$ac_objext conftest.$ac_ext
17801 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
17802 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
17803 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
17805 cat >>confdefs.h <<_ACEOF
17806 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
17807 _ACEOF
17812 echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
17813 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
17814 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817 cat >conftest.$ac_ext <<_ACEOF
17818 #line $LINENO "configure"
17819 /* confdefs.h. */
17820 _ACEOF
17821 cat confdefs.h >>conftest.$ac_ext
17822 cat >>conftest.$ac_ext <<_ACEOF
17823 /* end confdefs.h. */
17824 $statxfs_includes
17827 main ()
17829 static struct statfs ac_aggr;
17830 if (ac_aggr.f_type)
17831 return 0;
17833 return 0;
17835 _ACEOF
17836 rm -f conftest.$ac_objext
17837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17838 (eval $ac_compile) 2>&5
17839 ac_status=$?
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } &&
17842 { ac_try='test -s conftest.$ac_objext'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 ac_cv_member_struct_statfs_f_type=yes
17849 else
17850 echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17853 cat >conftest.$ac_ext <<_ACEOF
17854 #line $LINENO "configure"
17855 /* confdefs.h. */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17860 $statxfs_includes
17863 main ()
17865 static struct statfs ac_aggr;
17866 if (sizeof ac_aggr.f_type)
17867 return 0;
17869 return 0;
17871 _ACEOF
17872 rm -f conftest.$ac_objext
17873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17874 (eval $ac_compile) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } &&
17878 { ac_try='test -s conftest.$ac_objext'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17881 ac_status=$?
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; }; then
17884 ac_cv_member_struct_statfs_f_type=yes
17885 else
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17889 ac_cv_member_struct_statfs_f_type=no
17891 rm -f conftest.$ac_objext conftest.$ac_ext
17893 rm -f conftest.$ac_objext conftest.$ac_ext
17895 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
17896 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
17897 if test $ac_cv_member_struct_statfs_f_type = yes; then
17899 cat >>confdefs.h <<_ACEOF
17900 #define HAVE_STRUCT_STATFS_F_TYPE 1
17901 _ACEOF
17906 echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
17907 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
17908 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
17909 echo $ECHO_N "(cached) $ECHO_C" >&6
17910 else
17911 cat >conftest.$ac_ext <<_ACEOF
17912 #line $LINENO "configure"
17913 /* confdefs.h. */
17914 _ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h. */
17918 $statxfs_includes
17921 main ()
17923 static struct statvfs ac_aggr;
17924 if (ac_aggr.f_type)
17925 return 0;
17927 return 0;
17929 _ACEOF
17930 rm -f conftest.$ac_objext
17931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17932 (eval $ac_compile) 2>&5
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
17936 { ac_try='test -s conftest.$ac_objext'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; }; then
17942 ac_cv_member_struct_statvfs_f_type=yes
17943 else
17944 echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17947 cat >conftest.$ac_ext <<_ACEOF
17948 #line $LINENO "configure"
17949 /* confdefs.h. */
17950 _ACEOF
17951 cat confdefs.h >>conftest.$ac_ext
17952 cat >>conftest.$ac_ext <<_ACEOF
17953 /* end confdefs.h. */
17954 $statxfs_includes
17957 main ()
17959 static struct statvfs ac_aggr;
17960 if (sizeof ac_aggr.f_type)
17961 return 0;
17963 return 0;
17965 _ACEOF
17966 rm -f conftest.$ac_objext
17967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17968 (eval $ac_compile) 2>&5
17969 ac_status=$?
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } &&
17972 { ac_try='test -s conftest.$ac_objext'
17973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974 (eval $ac_try) 2>&5
17975 ac_status=$?
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; }; then
17978 ac_cv_member_struct_statvfs_f_type=yes
17979 else
17980 echo "$as_me: failed program was:" >&5
17981 sed 's/^/| /' conftest.$ac_ext >&5
17983 ac_cv_member_struct_statvfs_f_type=no
17985 rm -f conftest.$ac_objext conftest.$ac_ext
17987 rm -f conftest.$ac_objext conftest.$ac_ext
17989 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
17990 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
17991 if test $ac_cv_member_struct_statvfs_f_type = yes; then
17993 cat >>confdefs.h <<_ACEOF
17994 #define HAVE_STRUCT_STATVFS_F_TYPE 1
17995 _ACEOF
18000 echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
18001 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
18002 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005 cat >conftest.$ac_ext <<_ACEOF
18006 #line $LINENO "configure"
18007 /* confdefs.h. */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 $statxfs_includes
18015 main ()
18017 static struct statfs ac_aggr;
18018 if (ac_aggr.f_fsid.__val)
18019 return 0;
18021 return 0;
18023 _ACEOF
18024 rm -f conftest.$ac_objext
18025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18026 (eval $ac_compile) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } &&
18030 { ac_try='test -s conftest.$ac_objext'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18033 ac_status=$?
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 ac_cv_member_struct_statfs_f_fsid___val=yes
18037 else
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18041 cat >conftest.$ac_ext <<_ACEOF
18042 #line $LINENO "configure"
18043 /* confdefs.h. */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 $statxfs_includes
18051 main ()
18053 static struct statfs ac_aggr;
18054 if (sizeof ac_aggr.f_fsid.__val)
18055 return 0;
18057 return 0;
18059 _ACEOF
18060 rm -f conftest.$ac_objext
18061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18062 (eval $ac_compile) 2>&5
18063 ac_status=$?
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } &&
18066 { ac_try='test -s conftest.$ac_objext'
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18069 ac_status=$?
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
18072 ac_cv_member_struct_statfs_f_fsid___val=yes
18073 else
18074 echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18077 ac_cv_member_struct_statfs_f_fsid___val=no
18079 rm -f conftest.$ac_objext conftest.$ac_ext
18081 rm -f conftest.$ac_objext conftest.$ac_ext
18083 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
18084 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
18085 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
18087 cat >>confdefs.h <<_ACEOF
18088 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
18089 _ACEOF
18094 echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
18095 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
18096 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 else
18099 cat >conftest.$ac_ext <<_ACEOF
18100 #line $LINENO "configure"
18101 /* confdefs.h. */
18102 _ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18106 $statxfs_includes
18109 main ()
18111 static struct statvfs ac_aggr;
18112 if (ac_aggr.f_fsid.__val)
18113 return 0;
18115 return 0;
18117 _ACEOF
18118 rm -f conftest.$ac_objext
18119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18120 (eval $ac_compile) 2>&5
18121 ac_status=$?
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); } &&
18124 { ac_try='test -s conftest.$ac_objext'
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
18130 ac_cv_member_struct_statvfs_f_fsid___val=yes
18131 else
18132 echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18135 cat >conftest.$ac_ext <<_ACEOF
18136 #line $LINENO "configure"
18137 /* confdefs.h. */
18138 _ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18142 $statxfs_includes
18145 main ()
18147 static struct statvfs ac_aggr;
18148 if (sizeof ac_aggr.f_fsid.__val)
18149 return 0;
18151 return 0;
18153 _ACEOF
18154 rm -f conftest.$ac_objext
18155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18156 (eval $ac_compile) 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
18160 { ac_try='test -s conftest.$ac_objext'
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18163 ac_status=$?
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
18166 ac_cv_member_struct_statvfs_f_fsid___val=yes
18167 else
18168 echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18171 ac_cv_member_struct_statvfs_f_fsid___val=no
18173 rm -f conftest.$ac_objext conftest.$ac_ext
18175 rm -f conftest.$ac_objext conftest.$ac_ext
18177 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
18178 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
18179 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
18181 cat >>confdefs.h <<_ACEOF
18182 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
18183 _ACEOF
18188 echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
18189 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
18190 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18192 else
18193 cat >conftest.$ac_ext <<_ACEOF
18194 #line $LINENO "configure"
18195 /* confdefs.h. */
18196 _ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h. */
18200 $statxfs_includes
18203 main ()
18205 static struct statfs ac_aggr;
18206 if (ac_aggr.f_namemax)
18207 return 0;
18209 return 0;
18211 _ACEOF
18212 rm -f conftest.$ac_objext
18213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18214 (eval $ac_compile) 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
18218 { ac_try='test -s conftest.$ac_objext'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_cv_member_struct_statfs_f_namemax=yes
18225 else
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18229 cat >conftest.$ac_ext <<_ACEOF
18230 #line $LINENO "configure"
18231 /* confdefs.h. */
18232 _ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h. */
18236 $statxfs_includes
18239 main ()
18241 static struct statfs ac_aggr;
18242 if (sizeof ac_aggr.f_namemax)
18243 return 0;
18245 return 0;
18247 _ACEOF
18248 rm -f conftest.$ac_objext
18249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18250 (eval $ac_compile) 2>&5
18251 ac_status=$?
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
18254 { ac_try='test -s conftest.$ac_objext'
18255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256 (eval $ac_try) 2>&5
18257 ac_status=$?
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; }; then
18260 ac_cv_member_struct_statfs_f_namemax=yes
18261 else
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18265 ac_cv_member_struct_statfs_f_namemax=no
18267 rm -f conftest.$ac_objext conftest.$ac_ext
18269 rm -f conftest.$ac_objext conftest.$ac_ext
18271 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
18272 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
18273 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
18275 cat >>confdefs.h <<_ACEOF
18276 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
18277 _ACEOF
18282 echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
18283 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
18284 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18286 else
18287 cat >conftest.$ac_ext <<_ACEOF
18288 #line $LINENO "configure"
18289 /* confdefs.h. */
18290 _ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18294 $statxfs_includes
18297 main ()
18299 static struct statvfs ac_aggr;
18300 if (ac_aggr.f_namemax)
18301 return 0;
18303 return 0;
18305 _ACEOF
18306 rm -f conftest.$ac_objext
18307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18308 (eval $ac_compile) 2>&5
18309 ac_status=$?
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); } &&
18312 { ac_try='test -s conftest.$ac_objext'
18313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314 (eval $ac_try) 2>&5
18315 ac_status=$?
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18318 ac_cv_member_struct_statvfs_f_namemax=yes
18319 else
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18323 cat >conftest.$ac_ext <<_ACEOF
18324 #line $LINENO "configure"
18325 /* confdefs.h. */
18326 _ACEOF
18327 cat confdefs.h >>conftest.$ac_ext
18328 cat >>conftest.$ac_ext <<_ACEOF
18329 /* end confdefs.h. */
18330 $statxfs_includes
18333 main ()
18335 static struct statvfs ac_aggr;
18336 if (sizeof ac_aggr.f_namemax)
18337 return 0;
18339 return 0;
18341 _ACEOF
18342 rm -f conftest.$ac_objext
18343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18344 (eval $ac_compile) 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } &&
18348 { ac_try='test -s conftest.$ac_objext'
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18351 ac_status=$?
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; }; then
18354 ac_cv_member_struct_statvfs_f_namemax=yes
18355 else
18356 echo "$as_me: failed program was:" >&5
18357 sed 's/^/| /' conftest.$ac_ext >&5
18359 ac_cv_member_struct_statvfs_f_namemax=no
18361 rm -f conftest.$ac_objext conftest.$ac_ext
18363 rm -f conftest.$ac_objext conftest.$ac_ext
18365 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
18366 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
18367 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
18369 cat >>confdefs.h <<_ACEOF
18370 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
18371 _ACEOF
18376 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18377 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18378 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18379 echo $ECHO_N "(cached) $ECHO_C" >&6
18380 else
18381 cat >conftest.$ac_ext <<_ACEOF
18382 #line $LINENO "configure"
18383 /* confdefs.h. */
18384 _ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18388 $statxfs_includes
18391 main ()
18393 static struct statfs ac_aggr;
18394 if (ac_aggr.f_namelen)
18395 return 0;
18397 return 0;
18399 _ACEOF
18400 rm -f conftest.$ac_objext
18401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18402 (eval $ac_compile) 2>&5
18403 ac_status=$?
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); } &&
18406 { ac_try='test -s conftest.$ac_objext'
18407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18408 (eval $ac_try) 2>&5
18409 ac_status=$?
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); }; }; then
18412 ac_cv_member_struct_statfs_f_namelen=yes
18413 else
18414 echo "$as_me: failed program was:" >&5
18415 sed 's/^/| /' conftest.$ac_ext >&5
18417 cat >conftest.$ac_ext <<_ACEOF
18418 #line $LINENO "configure"
18419 /* confdefs.h. */
18420 _ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h. */
18424 $statxfs_includes
18427 main ()
18429 static struct statfs ac_aggr;
18430 if (sizeof ac_aggr.f_namelen)
18431 return 0;
18433 return 0;
18435 _ACEOF
18436 rm -f conftest.$ac_objext
18437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18438 (eval $ac_compile) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } &&
18442 { ac_try='test -s conftest.$ac_objext'
18443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444 (eval $ac_try) 2>&5
18445 ac_status=$?
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; }; then
18448 ac_cv_member_struct_statfs_f_namelen=yes
18449 else
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18453 ac_cv_member_struct_statfs_f_namelen=no
18455 rm -f conftest.$ac_objext conftest.$ac_ext
18457 rm -f conftest.$ac_objext conftest.$ac_ext
18459 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18460 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
18461 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18463 cat >>confdefs.h <<_ACEOF
18464 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18465 _ACEOF
18470 echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
18471 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
18472 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 else
18475 cat >conftest.$ac_ext <<_ACEOF
18476 #line $LINENO "configure"
18477 /* confdefs.h. */
18478 _ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18482 $statxfs_includes
18485 main ()
18487 static struct statvfs ac_aggr;
18488 if (ac_aggr.f_namelen)
18489 return 0;
18491 return 0;
18493 _ACEOF
18494 rm -f conftest.$ac_objext
18495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18496 (eval $ac_compile) 2>&5
18497 ac_status=$?
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); } &&
18500 { ac_try='test -s conftest.$ac_objext'
18501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; }; then
18506 ac_cv_member_struct_statvfs_f_namelen=yes
18507 else
18508 echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18511 cat >conftest.$ac_ext <<_ACEOF
18512 #line $LINENO "configure"
18513 /* confdefs.h. */
18514 _ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h. */
18518 $statxfs_includes
18521 main ()
18523 static struct statvfs ac_aggr;
18524 if (sizeof ac_aggr.f_namelen)
18525 return 0;
18527 return 0;
18529 _ACEOF
18530 rm -f conftest.$ac_objext
18531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18532 (eval $ac_compile) 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } &&
18536 { ac_try='test -s conftest.$ac_objext'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18542 ac_cv_member_struct_statvfs_f_namelen=yes
18543 else
18544 echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18547 ac_cv_member_struct_statvfs_f_namelen=no
18549 rm -f conftest.$ac_objext conftest.$ac_ext
18551 rm -f conftest.$ac_objext conftest.$ac_ext
18553 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
18554 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
18555 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
18557 cat >>confdefs.h <<_ACEOF
18558 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
18559 _ACEOF
18565 echo "$as_me:$LINENO: checking for working strnlen" >&5
18566 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
18567 if test "${ac_cv_func_strnlen_working+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18569 else
18570 if test "$cross_compiling" = yes; then
18571 ac_cv_func_strnlen_working=no
18572 else
18573 cat >conftest.$ac_ext <<_ACEOF
18574 #line $LINENO "configure"
18575 /* confdefs.h. */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18582 main ()
18585 #define S "foobar"
18586 #define S_LEN (sizeof S - 1)
18588 /* At least one implementation is buggy: that of AIX 4.3 would
18589 give strnlen (S, 1) == 3. */
18591 int i;
18592 for (i = 0; i < S_LEN + 1; ++i)
18594 int expected = i <= S_LEN ? i : S_LEN;
18595 if (strnlen (S, i) != expected)
18596 exit (1);
18598 exit (0);
18601 return 0;
18603 _ACEOF
18604 rm -f conftest$ac_exeext
18605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18606 (eval $ac_link) 2>&5
18607 ac_status=$?
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18612 ac_status=$?
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; }; then
18615 ac_cv_func_strnlen_working=yes
18616 else
18617 echo "$as_me: program exited with status $ac_status" >&5
18618 echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18621 ( exit $ac_status )
18622 ac_cv_func_strnlen_working=no
18624 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18627 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
18628 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
18629 test $ac_cv_func_strnlen_working = no && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18635 for ac_header in memory.h
18637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18639 echo "$as_me:$LINENO: checking for $ac_header" >&5
18640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18646 else
18647 # Is the header compilable?
18648 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18650 cat >conftest.$ac_ext <<_ACEOF
18651 #line $LINENO "configure"
18652 /* confdefs.h. */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18657 $ac_includes_default
18658 #include <$ac_header>
18659 _ACEOF
18660 rm -f conftest.$ac_objext
18661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18662 (eval $ac_compile) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try='test -s conftest.$ac_objext'
18667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668 (eval $ac_try) 2>&5
18669 ac_status=$?
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); }; }; then
18672 ac_header_compiler=yes
18673 else
18674 echo "$as_me: failed program was:" >&5
18675 sed 's/^/| /' conftest.$ac_ext >&5
18677 ac_header_compiler=no
18679 rm -f conftest.$ac_objext conftest.$ac_ext
18680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18681 echo "${ECHO_T}$ac_header_compiler" >&6
18683 # Is the header present?
18684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18686 cat >conftest.$ac_ext <<_ACEOF
18687 #line $LINENO "configure"
18688 /* confdefs.h. */
18689 _ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h. */
18693 #include <$ac_header>
18694 _ACEOF
18695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18697 ac_status=$?
18698 grep -v '^ *+' conftest.er1 >conftest.err
18699 rm -f conftest.er1
18700 cat conftest.err >&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } >/dev/null; then
18703 if test -s conftest.err; then
18704 ac_cpp_err=$ac_c_preproc_warn_flag
18705 else
18706 ac_cpp_err=
18708 else
18709 ac_cpp_err=yes
18711 if test -z "$ac_cpp_err"; then
18712 ac_header_preproc=yes
18713 else
18714 echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18717 ac_header_preproc=no
18719 rm -f conftest.err conftest.$ac_ext
18720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18721 echo "${ECHO_T}$ac_header_preproc" >&6
18723 # So? What about this header?
18724 case $ac_header_compiler:$ac_header_preproc in
18725 yes:no )
18726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18731 cat <<\_ASBOX
18732 ## ------------------------------------ ##
18733 ## Report this to bug-autoconf@gnu.org. ##
18734 ## ------------------------------------ ##
18735 _ASBOX
18737 sed "s/^/$as_me: WARNING: /" >&2
18739 no:yes )
18740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18747 cat <<\_ASBOX
18748 ## ------------------------------------ ##
18749 ## Report this to bug-autoconf@gnu.org. ##
18750 ## ------------------------------------ ##
18751 _ASBOX
18753 sed "s/^/$as_me: WARNING: /" >&2
18755 esac
18756 echo "$as_me:$LINENO: checking for $ac_header" >&5
18757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18760 else
18761 eval "$as_ac_Header=$ac_header_preproc"
18763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18768 cat >>confdefs.h <<_ACEOF
18769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18770 _ACEOF
18774 done
18776 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
18777 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
18778 if test "${ac_cv_have_decl_memchr+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18780 else
18781 cat >conftest.$ac_ext <<_ACEOF
18782 #line $LINENO "configure"
18783 /* confdefs.h. */
18784 _ACEOF
18785 cat confdefs.h >>conftest.$ac_ext
18786 cat >>conftest.$ac_ext <<_ACEOF
18787 /* end confdefs.h. */
18788 $ac_includes_default
18790 main ()
18792 #ifndef memchr
18793 char *p = (char *) memchr;
18794 #endif
18797 return 0;
18799 _ACEOF
18800 rm -f conftest.$ac_objext
18801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18802 (eval $ac_compile) 2>&5
18803 ac_status=$?
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } &&
18806 { ac_try='test -s conftest.$ac_objext'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; }; then
18812 ac_cv_have_decl_memchr=yes
18813 else
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18817 ac_cv_have_decl_memchr=no
18819 rm -f conftest.$ac_objext conftest.$ac_ext
18821 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
18822 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
18823 if test $ac_cv_have_decl_memchr = yes; then
18825 cat >>confdefs.h <<_ACEOF
18826 #define HAVE_DECL_MEMCHR 1
18827 _ACEOF
18830 else
18831 cat >>confdefs.h <<_ACEOF
18832 #define HAVE_DECL_MEMCHR 0
18833 _ACEOF
18840 # This is necessary because automake-1.6.1 doesn't understand
18841 # that the above use of AC_FUNC_STRNLEN means we may have to use
18842 # lib/strnlen.c.
18843 test $ac_cv_func_strnlen_working = yes \
18844 && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18853 for ac_header in fcntl.h sys/time.h stdint.h unistd.h
18855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18857 echo "$as_me:$LINENO: checking for $ac_header" >&5
18858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18860 echo $ECHO_N "(cached) $ECHO_C" >&6
18862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18864 else
18865 # Is the header compilable?
18866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18868 cat >conftest.$ac_ext <<_ACEOF
18869 #line $LINENO "configure"
18870 /* confdefs.h. */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18875 $ac_includes_default
18876 #include <$ac_header>
18877 _ACEOF
18878 rm -f conftest.$ac_objext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18880 (eval $ac_compile) 2>&5
18881 ac_status=$?
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
18884 { ac_try='test -s conftest.$ac_objext'
18885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886 (eval $ac_try) 2>&5
18887 ac_status=$?
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); }; }; then
18890 ac_header_compiler=yes
18891 else
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18895 ac_header_compiler=no
18897 rm -f conftest.$ac_objext conftest.$ac_ext
18898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18899 echo "${ECHO_T}$ac_header_compiler" >&6
18901 # Is the header present?
18902 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18904 cat >conftest.$ac_ext <<_ACEOF
18905 #line $LINENO "configure"
18906 /* confdefs.h. */
18907 _ACEOF
18908 cat confdefs.h >>conftest.$ac_ext
18909 cat >>conftest.$ac_ext <<_ACEOF
18910 /* end confdefs.h. */
18911 #include <$ac_header>
18912 _ACEOF
18913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18915 ac_status=$?
18916 grep -v '^ *+' conftest.er1 >conftest.err
18917 rm -f conftest.er1
18918 cat conftest.err >&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } >/dev/null; then
18921 if test -s conftest.err; then
18922 ac_cpp_err=$ac_c_preproc_warn_flag
18923 else
18924 ac_cpp_err=
18926 else
18927 ac_cpp_err=yes
18929 if test -z "$ac_cpp_err"; then
18930 ac_header_preproc=yes
18931 else
18932 echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18935 ac_header_preproc=no
18937 rm -f conftest.err conftest.$ac_ext
18938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18939 echo "${ECHO_T}$ac_header_preproc" >&6
18941 # So? What about this header?
18942 case $ac_header_compiler:$ac_header_preproc in
18943 yes:no )
18944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18949 cat <<\_ASBOX
18950 ## ------------------------------------ ##
18951 ## Report this to bug-autoconf@gnu.org. ##
18952 ## ------------------------------------ ##
18953 _ASBOX
18955 sed "s/^/$as_me: WARNING: /" >&2
18957 no:yes )
18958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18965 cat <<\_ASBOX
18966 ## ------------------------------------ ##
18967 ## Report this to bug-autoconf@gnu.org. ##
18968 ## ------------------------------------ ##
18969 _ASBOX
18971 sed "s/^/$as_me: WARNING: /" >&2
18973 esac
18974 echo "$as_me:$LINENO: checking for $ac_header" >&5
18975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18977 echo $ECHO_N "(cached) $ECHO_C" >&6
18978 else
18979 eval "$as_ac_Header=$ac_header_preproc"
18981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18986 cat >>confdefs.h <<_ACEOF
18987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18988 _ACEOF
18992 done
18996 for ac_func in __secure_getenv gettimeofday
18998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18999 echo "$as_me:$LINENO: checking for $ac_func" >&5
19000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19001 if eval "test \"\${$as_ac_var+set}\" = set"; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19003 else
19004 cat >conftest.$ac_ext <<_ACEOF
19005 #line $LINENO "configure"
19006 /* confdefs.h. */
19007 _ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h. */
19011 /* System header to define __stub macros and hopefully few prototypes,
19012 which can conflict with char $ac_func (); below.
19013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19014 <limits.h> exists even on freestanding compilers. */
19015 #ifdef __STDC__
19016 # include <limits.h>
19017 #else
19018 # include <assert.h>
19019 #endif
19020 /* Override any gcc2 internal prototype to avoid an error. */
19021 #ifdef __cplusplus
19022 extern "C"
19024 #endif
19025 /* We use char because int might match the return type of a gcc2
19026 builtin and then its argument prototype would still apply. */
19027 char $ac_func ();
19028 /* The GNU C library defines this for functions which it implements
19029 to always fail with ENOSYS. Some functions are actually named
19030 something starting with __ and the normal name is an alias. */
19031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19032 choke me
19033 #else
19034 char (*f) () = $ac_func;
19035 #endif
19036 #ifdef __cplusplus
19038 #endif
19041 main ()
19043 return f != $ac_func;
19045 return 0;
19047 _ACEOF
19048 rm -f conftest.$ac_objext conftest$ac_exeext
19049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19050 (eval $ac_link) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
19054 { ac_try='test -s conftest$ac_exeext'
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
19060 eval "$as_ac_var=yes"
19061 else
19062 echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19065 eval "$as_ac_var=no"
19067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19071 if test `eval echo '${'$as_ac_var'}'` = yes; then
19072 cat >>confdefs.h <<_ACEOF
19073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19074 _ACEOF
19077 done
19079 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
19080 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
19081 if test "${ac_cv_have_decl_getenv+set}" = set; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19083 else
19084 cat >conftest.$ac_ext <<_ACEOF
19085 #line $LINENO "configure"
19086 /* confdefs.h. */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19091 $ac_includes_default
19093 main ()
19095 #ifndef getenv
19096 char *p = (char *) getenv;
19097 #endif
19100 return 0;
19102 _ACEOF
19103 rm -f conftest.$ac_objext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19105 (eval $ac_compile) 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } &&
19109 { ac_try='test -s conftest.$ac_objext'
19110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19111 (eval $ac_try) 2>&5
19112 ac_status=$?
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; }; then
19115 ac_cv_have_decl_getenv=yes
19116 else
19117 echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19120 ac_cv_have_decl_getenv=no
19122 rm -f conftest.$ac_objext conftest.$ac_ext
19124 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
19125 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
19126 if test $ac_cv_have_decl_getenv = yes; then
19128 cat >>confdefs.h <<_ACEOF
19129 #define HAVE_DECL_GETENV 1
19130 _ACEOF
19133 else
19134 cat >>confdefs.h <<_ACEOF
19135 #define HAVE_DECL_GETENV 0
19136 _ACEOF
19144 echo "$as_me:$LINENO: checking for function prototypes" >&5
19145 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
19146 if test "$ac_cv_prog_cc_stdc" != no; then
19147 echo "$as_me:$LINENO: result: yes" >&5
19148 echo "${ECHO_T}yes" >&6
19150 cat >>confdefs.h <<\_ACEOF
19151 #define PROTOTYPES 1
19152 _ACEOF
19155 cat >>confdefs.h <<\_ACEOF
19156 #define __PROTOTYPES 1
19157 _ACEOF
19159 else
19160 echo "$as_me:$LINENO: result: no" >&5
19161 echo "${ECHO_T}no" >&6
19166 for ac_header in stdlib.h unistd.h
19168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19170 echo "$as_me:$LINENO: checking for $ac_header" >&5
19171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19173 echo $ECHO_N "(cached) $ECHO_C" >&6
19175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19177 else
19178 # Is the header compilable?
19179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19181 cat >conftest.$ac_ext <<_ACEOF
19182 #line $LINENO "configure"
19183 /* confdefs.h. */
19184 _ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19188 $ac_includes_default
19189 #include <$ac_header>
19190 _ACEOF
19191 rm -f conftest.$ac_objext
19192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19193 (eval $ac_compile) 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } &&
19197 { ac_try='test -s conftest.$ac_objext'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19203 ac_header_compiler=yes
19204 else
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19208 ac_header_compiler=no
19210 rm -f conftest.$ac_objext conftest.$ac_ext
19211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19212 echo "${ECHO_T}$ac_header_compiler" >&6
19214 # Is the header present?
19215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19217 cat >conftest.$ac_ext <<_ACEOF
19218 #line $LINENO "configure"
19219 /* confdefs.h. */
19220 _ACEOF
19221 cat confdefs.h >>conftest.$ac_ext
19222 cat >>conftest.$ac_ext <<_ACEOF
19223 /* end confdefs.h. */
19224 #include <$ac_header>
19225 _ACEOF
19226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19228 ac_status=$?
19229 grep -v '^ *+' conftest.er1 >conftest.err
19230 rm -f conftest.er1
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } >/dev/null; then
19234 if test -s conftest.err; then
19235 ac_cpp_err=$ac_c_preproc_warn_flag
19236 else
19237 ac_cpp_err=
19239 else
19240 ac_cpp_err=yes
19242 if test -z "$ac_cpp_err"; then
19243 ac_header_preproc=yes
19244 else
19245 echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19248 ac_header_preproc=no
19250 rm -f conftest.err conftest.$ac_ext
19251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19252 echo "${ECHO_T}$ac_header_preproc" >&6
19254 # So? What about this header?
19255 case $ac_header_compiler:$ac_header_preproc in
19256 yes:no )
19257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19262 cat <<\_ASBOX
19263 ## ------------------------------------ ##
19264 ## Report this to bug-autoconf@gnu.org. ##
19265 ## ------------------------------------ ##
19266 _ASBOX
19268 sed "s/^/$as_me: WARNING: /" >&2
19270 no:yes )
19271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19278 cat <<\_ASBOX
19279 ## ------------------------------------ ##
19280 ## Report this to bug-autoconf@gnu.org. ##
19281 ## ------------------------------------ ##
19282 _ASBOX
19284 sed "s/^/$as_me: WARNING: /" >&2
19286 esac
19287 echo "$as_me:$LINENO: checking for $ac_header" >&5
19288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19291 else
19292 eval "$as_ac_Header=$ac_header_preproc"
19294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19299 cat >>confdefs.h <<_ACEOF
19300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19301 _ACEOF
19305 done
19307 echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
19308 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
19309 if test "${ac_cv_func_getcwd_null+set}" = set; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19311 else
19312 if test "$cross_compiling" = yes; then
19313 ac_cv_func_getcwd_null=no
19314 else
19315 cat >conftest.$ac_ext <<_ACEOF
19316 #line $LINENO "configure"
19317 /* confdefs.h. */
19318 _ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h. */
19323 # ifdef HAVE_STDLIB_H
19324 # include <stdlib.h>
19325 # endif
19326 # ifdef HAVE_UNISTD_H
19327 # include <unistd.h>
19328 # endif
19329 # ifndef getcwd
19330 char *getcwd ();
19331 # endif
19333 main ()
19335 if (chdir ("/") != 0)
19336 exit (1);
19337 else
19339 char *f = getcwd (NULL, 0);
19340 exit (! (f && f[0] == '/' && !f[1]));
19343 _ACEOF
19344 rm -f conftest$ac_exeext
19345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19346 (eval $ac_link) 2>&5
19347 ac_status=$?
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351 (eval $ac_try) 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; }; then
19355 ac_cv_func_getcwd_null=yes
19356 else
19357 echo "$as_me: program exited with status $ac_status" >&5
19358 echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19361 ( exit $ac_status )
19362 ac_cv_func_getcwd_null=no
19364 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19367 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
19368 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
19369 if test $ac_cv_func_getcwd_null = yes; then
19371 cat >>confdefs.h <<\_ACEOF
19372 #define HAVE_GETCWD_NULL 1
19373 _ACEOF
19382 for ac_header in limits.h stdlib.h sys/param.h unistd.h
19384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19386 echo "$as_me:$LINENO: checking for $ac_header" >&5
19387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19393 else
19394 # Is the header compilable?
19395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19397 cat >conftest.$ac_ext <<_ACEOF
19398 #line $LINENO "configure"
19399 /* confdefs.h. */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19404 $ac_includes_default
19405 #include <$ac_header>
19406 _ACEOF
19407 rm -f conftest.$ac_objext
19408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19409 (eval $ac_compile) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } &&
19413 { ac_try='test -s conftest.$ac_objext'
19414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415 (eval $ac_try) 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; }; then
19419 ac_header_compiler=yes
19420 else
19421 echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19424 ac_header_compiler=no
19426 rm -f conftest.$ac_objext conftest.$ac_ext
19427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19428 echo "${ECHO_T}$ac_header_compiler" >&6
19430 # Is the header present?
19431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19433 cat >conftest.$ac_ext <<_ACEOF
19434 #line $LINENO "configure"
19435 /* confdefs.h. */
19436 _ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19440 #include <$ac_header>
19441 _ACEOF
19442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19444 ac_status=$?
19445 grep -v '^ *+' conftest.er1 >conftest.err
19446 rm -f conftest.er1
19447 cat conftest.err >&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); } >/dev/null; then
19450 if test -s conftest.err; then
19451 ac_cpp_err=$ac_c_preproc_warn_flag
19452 else
19453 ac_cpp_err=
19455 else
19456 ac_cpp_err=yes
19458 if test -z "$ac_cpp_err"; then
19459 ac_header_preproc=yes
19460 else
19461 echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19464 ac_header_preproc=no
19466 rm -f conftest.err conftest.$ac_ext
19467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19468 echo "${ECHO_T}$ac_header_preproc" >&6
19470 # So? What about this header?
19471 case $ac_header_compiler:$ac_header_preproc in
19472 yes:no )
19473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19478 cat <<\_ASBOX
19479 ## ------------------------------------ ##
19480 ## Report this to bug-autoconf@gnu.org. ##
19481 ## ------------------------------------ ##
19482 _ASBOX
19484 sed "s/^/$as_me: WARNING: /" >&2
19486 no:yes )
19487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19494 cat <<\_ASBOX
19495 ## ------------------------------------ ##
19496 ## Report this to bug-autoconf@gnu.org. ##
19497 ## ------------------------------------ ##
19498 _ASBOX
19500 sed "s/^/$as_me: WARNING: /" >&2
19502 esac
19503 echo "$as_me:$LINENO: checking for $ac_header" >&5
19504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 else
19508 eval "$as_ac_Header=$ac_header_preproc"
19510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19515 cat >>confdefs.h <<_ACEOF
19516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19517 _ACEOF
19521 done
19524 for ac_func in getcwd
19526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19527 echo "$as_me:$LINENO: checking for $ac_func" >&5
19528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19529 if eval "test \"\${$as_ac_var+set}\" = set"; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19531 else
19532 cat >conftest.$ac_ext <<_ACEOF
19533 #line $LINENO "configure"
19534 /* confdefs.h. */
19535 _ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h. */
19539 /* System header to define __stub macros and hopefully few prototypes,
19540 which can conflict with char $ac_func (); below.
19541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19542 <limits.h> exists even on freestanding compilers. */
19543 #ifdef __STDC__
19544 # include <limits.h>
19545 #else
19546 # include <assert.h>
19547 #endif
19548 /* Override any gcc2 internal prototype to avoid an error. */
19549 #ifdef __cplusplus
19550 extern "C"
19552 #endif
19553 /* We use char because int might match the return type of a gcc2
19554 builtin and then its argument prototype would still apply. */
19555 char $ac_func ();
19556 /* The GNU C library defines this for functions which it implements
19557 to always fail with ENOSYS. Some functions are actually named
19558 something starting with __ and the normal name is an alias. */
19559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19560 choke me
19561 #else
19562 char (*f) () = $ac_func;
19563 #endif
19564 #ifdef __cplusplus
19566 #endif
19569 main ()
19571 return f != $ac_func;
19573 return 0;
19575 _ACEOF
19576 rm -f conftest.$ac_objext conftest$ac_exeext
19577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19578 (eval $ac_link) 2>&5
19579 ac_status=$?
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } &&
19582 { ac_try='test -s conftest$ac_exeext'
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19585 ac_status=$?
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; }; then
19588 eval "$as_ac_var=yes"
19589 else
19590 echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19593 eval "$as_ac_var=no"
19595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19599 if test `eval echo '${'$as_ac_var'}'` = yes; then
19600 cat >>confdefs.h <<_ACEOF
19601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19602 _ACEOF
19605 done
19615 for ac_header in limits.h stdlib.h sys/types.h unistd.h
19617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19619 echo "$as_me:$LINENO: checking for $ac_header" >&5
19620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19622 echo $ECHO_N "(cached) $ECHO_C" >&6
19624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19626 else
19627 # Is the header compilable?
19628 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19630 cat >conftest.$ac_ext <<_ACEOF
19631 #line $LINENO "configure"
19632 /* confdefs.h. */
19633 _ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19637 $ac_includes_default
19638 #include <$ac_header>
19639 _ACEOF
19640 rm -f conftest.$ac_objext
19641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19642 (eval $ac_compile) 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } &&
19646 { ac_try='test -s conftest.$ac_objext'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 ac_header_compiler=yes
19653 else
19654 echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19657 ac_header_compiler=no
19659 rm -f conftest.$ac_objext conftest.$ac_ext
19660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19661 echo "${ECHO_T}$ac_header_compiler" >&6
19663 # Is the header present?
19664 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19666 cat >conftest.$ac_ext <<_ACEOF
19667 #line $LINENO "configure"
19668 /* confdefs.h. */
19669 _ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19673 #include <$ac_header>
19674 _ACEOF
19675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19677 ac_status=$?
19678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } >/dev/null; then
19683 if test -s conftest.err; then
19684 ac_cpp_err=$ac_c_preproc_warn_flag
19685 else
19686 ac_cpp_err=
19688 else
19689 ac_cpp_err=yes
19691 if test -z "$ac_cpp_err"; then
19692 ac_header_preproc=yes
19693 else
19694 echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 ac_header_preproc=no
19699 rm -f conftest.err conftest.$ac_ext
19700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19701 echo "${ECHO_T}$ac_header_preproc" >&6
19703 # So? What about this header?
19704 case $ac_header_compiler:$ac_header_preproc in
19705 yes:no )
19706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19711 cat <<\_ASBOX
19712 ## ------------------------------------ ##
19713 ## Report this to bug-autoconf@gnu.org. ##
19714 ## ------------------------------------ ##
19715 _ASBOX
19717 sed "s/^/$as_me: WARNING: /" >&2
19719 no:yes )
19720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19727 cat <<\_ASBOX
19728 ## ------------------------------------ ##
19729 ## Report this to bug-autoconf@gnu.org. ##
19730 ## ------------------------------------ ##
19731 _ASBOX
19733 sed "s/^/$as_me: WARNING: /" >&2
19735 esac
19736 echo "$as_me:$LINENO: checking for $ac_header" >&5
19737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19740 else
19741 eval "$as_ac_Header=$ac_header_preproc"
19743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19748 cat >>confdefs.h <<_ACEOF
19749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19750 _ACEOF
19754 done
19776 # called by mkstemp
19789 ac_header_dirent=no
19790 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19791 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19792 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19793 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19795 echo $ECHO_N "(cached) $ECHO_C" >&6
19796 else
19797 cat >conftest.$ac_ext <<_ACEOF
19798 #line $LINENO "configure"
19799 /* confdefs.h. */
19800 _ACEOF
19801 cat confdefs.h >>conftest.$ac_ext
19802 cat >>conftest.$ac_ext <<_ACEOF
19803 /* end confdefs.h. */
19804 #include <sys/types.h>
19805 #include <$ac_hdr>
19808 main ()
19810 if ((DIR *) 0)
19811 return 0;
19813 return 0;
19815 _ACEOF
19816 rm -f conftest.$ac_objext
19817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19818 (eval $ac_compile) 2>&5
19819 ac_status=$?
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } &&
19822 { ac_try='test -s conftest.$ac_objext'
19823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824 (eval $ac_try) 2>&5
19825 ac_status=$?
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; }; then
19828 eval "$as_ac_Header=yes"
19829 else
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19833 eval "$as_ac_Header=no"
19835 rm -f conftest.$ac_objext conftest.$ac_ext
19837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19840 cat >>confdefs.h <<_ACEOF
19841 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19842 _ACEOF
19844 ac_header_dirent=$ac_hdr; break
19847 done
19848 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19849 if test $ac_header_dirent = dirent.h; then
19851 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19852 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19853 if test "${ac_cv_search_opendir+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 else
19857 ac_func_search_save_LIBS=$LIBS
19858 ac_cv_search_opendir=no
19859 cat >conftest.$ac_ext <<_ACEOF
19860 #line $LINENO "configure"
19861 /* confdefs.h. */
19862 _ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19867 /* Override any gcc2 internal prototype to avoid an error. */
19868 #ifdef __cplusplus
19869 extern "C"
19870 #endif
19871 /* We use char because int might match the return type of a gcc2
19872 builtin and then its argument prototype would still apply. */
19873 char opendir ();
19875 main ()
19877 opendir ();
19879 return 0;
19881 _ACEOF
19882 rm -f conftest.$ac_objext conftest$ac_exeext
19883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19884 (eval $ac_link) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } &&
19888 { ac_try='test -s conftest$ac_exeext'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; }; then
19894 ac_cv_search_opendir='none required'
19895 else
19896 echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19901 if test "$ac_cv_search_opendir" = no; then
19902 for ac_lib in dir; do
19903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19904 cat >conftest.$ac_ext <<_ACEOF
19905 #line $LINENO "configure"
19906 /* confdefs.h. */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19912 /* Override any gcc2 internal prototype to avoid an error. */
19913 #ifdef __cplusplus
19914 extern "C"
19915 #endif
19916 /* We use char because int might match the return type of a gcc2
19917 builtin and then its argument prototype would still apply. */
19918 char opendir ();
19920 main ()
19922 opendir ();
19924 return 0;
19926 _ACEOF
19927 rm -f conftest.$ac_objext conftest$ac_exeext
19928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19929 (eval $ac_link) 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } &&
19933 { ac_try='test -s conftest$ac_exeext'
19934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19935 (eval $ac_try) 2>&5
19936 ac_status=$?
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); }; }; then
19939 ac_cv_search_opendir="-l$ac_lib"; break
19940 else
19941 echo "$as_me: failed program was:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19946 done
19948 LIBS=$ac_func_search_save_LIBS
19951 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19952 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19954 if test "$ac_cv_search_opendir" = no; then :
19956 else
19957 if test "$ac_cv_search_opendir" = 'none required'; then :
19959 else
19960 LIBS="$ac_cv_search_opendir $LIBS"
19965 else
19967 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19968 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19969 if test "${ac_cv_search_opendir+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19971 else
19973 ac_func_search_save_LIBS=$LIBS
19974 ac_cv_search_opendir=no
19975 cat >conftest.$ac_ext <<_ACEOF
19976 #line $LINENO "configure"
19977 /* confdefs.h. */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19983 /* Override any gcc2 internal prototype to avoid an error. */
19984 #ifdef __cplusplus
19985 extern "C"
19986 #endif
19987 /* We use char because int might match the return type of a gcc2
19988 builtin and then its argument prototype would still apply. */
19989 char opendir ();
19991 main ()
19993 opendir ();
19995 return 0;
19997 _ACEOF
19998 rm -f conftest.$ac_objext conftest$ac_exeext
19999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20000 (eval $ac_link) 2>&5
20001 ac_status=$?
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } &&
20004 { ac_try='test -s conftest$ac_exeext'
20005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006 (eval $ac_try) 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; }; then
20010 ac_cv_search_opendir='none required'
20011 else
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20017 if test "$ac_cv_search_opendir" = no; then
20018 for ac_lib in x; do
20019 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20020 cat >conftest.$ac_ext <<_ACEOF
20021 #line $LINENO "configure"
20022 /* confdefs.h. */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20028 /* Override any gcc2 internal prototype to avoid an error. */
20029 #ifdef __cplusplus
20030 extern "C"
20031 #endif
20032 /* We use char because int might match the return type of a gcc2
20033 builtin and then its argument prototype would still apply. */
20034 char opendir ();
20036 main ()
20038 opendir ();
20040 return 0;
20042 _ACEOF
20043 rm -f conftest.$ac_objext conftest$ac_exeext
20044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20045 (eval $ac_link) 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } &&
20049 { ac_try='test -s conftest$ac_exeext'
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20052 ac_status=$?
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; }; then
20055 ac_cv_search_opendir="-l$ac_lib"; break
20056 else
20057 echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20062 done
20064 LIBS=$ac_func_search_save_LIBS
20067 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20068 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20070 if test "$ac_cv_search_opendir" = no; then :
20072 else
20073 if test "$ac_cv_search_opendir" = 'none required'; then :
20075 else
20076 LIBS="$ac_cv_search_opendir $LIBS"
20083 dirfd_headers='
20084 #if HAVE_DIRENT_H
20085 # include <dirent.h>
20086 #else /* not HAVE_DIRENT_H */
20087 # define dirent direct
20088 # if HAVE_SYS_NDIR_H
20089 # include <sys/ndir.h>
20090 # endif /* HAVE_SYS_NDIR_H */
20091 # if HAVE_SYS_DIR_H
20092 # include <sys/dir.h>
20093 # endif /* HAVE_SYS_DIR_H */
20094 # if HAVE_NDIR_H
20095 # include <ndir.h>
20096 # endif /* HAVE_NDIR_H */
20097 #endif /* HAVE_DIRENT_H */
20100 for ac_func in dirfd
20102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20103 echo "$as_me:$LINENO: checking for $ac_func" >&5
20104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20105 if eval "test \"\${$as_ac_var+set}\" = set"; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
20107 else
20108 cat >conftest.$ac_ext <<_ACEOF
20109 #line $LINENO "configure"
20110 /* confdefs.h. */
20111 _ACEOF
20112 cat confdefs.h >>conftest.$ac_ext
20113 cat >>conftest.$ac_ext <<_ACEOF
20114 /* end confdefs.h. */
20115 /* System header to define __stub macros and hopefully few prototypes,
20116 which can conflict with char $ac_func (); below.
20117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20118 <limits.h> exists even on freestanding compilers. */
20119 #ifdef __STDC__
20120 # include <limits.h>
20121 #else
20122 # include <assert.h>
20123 #endif
20124 /* Override any gcc2 internal prototype to avoid an error. */
20125 #ifdef __cplusplus
20126 extern "C"
20128 #endif
20129 /* We use char because int might match the return type of a gcc2
20130 builtin and then its argument prototype would still apply. */
20131 char $ac_func ();
20132 /* The GNU C library defines this for functions which it implements
20133 to always fail with ENOSYS. Some functions are actually named
20134 something starting with __ and the normal name is an alias. */
20135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20136 choke me
20137 #else
20138 char (*f) () = $ac_func;
20139 #endif
20140 #ifdef __cplusplus
20142 #endif
20145 main ()
20147 return f != $ac_func;
20149 return 0;
20151 _ACEOF
20152 rm -f conftest.$ac_objext conftest$ac_exeext
20153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20154 (eval $ac_link) 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); } &&
20158 { ac_try='test -s conftest$ac_exeext'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20161 ac_status=$?
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; }; then
20164 eval "$as_ac_var=yes"
20165 else
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20169 eval "$as_ac_var=no"
20171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20175 if test `eval echo '${'$as_ac_var'}'` = yes; then
20176 cat >>confdefs.h <<_ACEOF
20177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20178 _ACEOF
20181 done
20183 echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
20184 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
20185 if test "${ac_cv_have_decl_dirfd+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20187 else
20188 cat >conftest.$ac_ext <<_ACEOF
20189 #line $LINENO "configure"
20190 /* confdefs.h. */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20195 $dirfd_headers
20198 main ()
20200 #ifndef dirfd
20201 char *p = (char *) dirfd;
20202 #endif
20205 return 0;
20207 _ACEOF
20208 rm -f conftest.$ac_objext
20209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20210 (eval $ac_compile) 2>&5
20211 ac_status=$?
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); } &&
20214 { ac_try='test -s conftest.$ac_objext'
20215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216 (eval $ac_try) 2>&5
20217 ac_status=$?
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; }; then
20220 ac_cv_have_decl_dirfd=yes
20221 else
20222 echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20225 ac_cv_have_decl_dirfd=no
20227 rm -f conftest.$ac_objext conftest.$ac_ext
20229 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
20230 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
20231 if test $ac_cv_have_decl_dirfd = yes; then
20233 cat >>confdefs.h <<_ACEOF
20234 #define HAVE_DECL_DIRFD 1
20235 _ACEOF
20238 else
20239 cat >>confdefs.h <<_ACEOF
20240 #define HAVE_DECL_DIRFD 0
20241 _ACEOF
20248 echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
20249 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
20250 if test "${jm_cv_func_dirfd_macro+set}" = set; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 else
20253 cat >conftest.$ac_ext <<_ACEOF
20254 #line $LINENO "configure"
20255 /* confdefs.h. */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20260 $dirfd_headers
20261 #ifdef dirfd
20262 dirent_header_defines_dirfd
20263 #endif
20264 _ACEOF
20265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20266 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
20267 jm_cv_func_dirfd_macro=yes
20268 else
20269 jm_cv_func_dirfd_macro=no
20271 rm -f conftest*
20274 echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
20275 echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6
20277 # Use the replacement only if we have no function, macro,
20278 # or declaration with that name.
20279 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
20280 = no,no,no; then
20282 for ac_func in dirfd
20284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20285 echo "$as_me:$LINENO: checking for $ac_func" >&5
20286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20287 if eval "test \"\${$as_ac_var+set}\" = set"; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 else
20290 cat >conftest.$ac_ext <<_ACEOF
20291 #line $LINENO "configure"
20292 /* confdefs.h. */
20293 _ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h. */
20297 /* System header to define __stub macros and hopefully few prototypes,
20298 which can conflict with char $ac_func (); below.
20299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20300 <limits.h> exists even on freestanding compilers. */
20301 #ifdef __STDC__
20302 # include <limits.h>
20303 #else
20304 # include <assert.h>
20305 #endif
20306 /* Override any gcc2 internal prototype to avoid an error. */
20307 #ifdef __cplusplus
20308 extern "C"
20310 #endif
20311 /* We use char because int might match the return type of a gcc2
20312 builtin and then its argument prototype would still apply. */
20313 char $ac_func ();
20314 /* The GNU C library defines this for functions which it implements
20315 to always fail with ENOSYS. Some functions are actually named
20316 something starting with __ and the normal name is an alias. */
20317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20318 choke me
20319 #else
20320 char (*f) () = $ac_func;
20321 #endif
20322 #ifdef __cplusplus
20324 #endif
20327 main ()
20329 return f != $ac_func;
20331 return 0;
20333 _ACEOF
20334 rm -f conftest.$ac_objext conftest$ac_exeext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336 (eval $ac_link) 2>&5
20337 ac_status=$?
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } &&
20340 { ac_try='test -s conftest$ac_exeext'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20343 ac_status=$?
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; }; then
20346 eval "$as_ac_var=yes"
20347 else
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20351 eval "$as_ac_var=no"
20353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20357 if test `eval echo '${'$as_ac_var'}'` = yes; then
20358 cat >>confdefs.h <<_ACEOF
20359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20360 _ACEOF
20362 else
20363 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20365 done
20368 echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
20369 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
20370 if test "${ac_cv_sys_dir_fd_member_name+set}" = set; then
20371 echo $ECHO_N "(cached) $ECHO_C" >&6
20372 else
20374 dirfd_save_CFLAGS=$CFLAGS
20375 for ac_expr in d_fd dd_fd; do
20377 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
20378 cat >conftest.$ac_ext <<_ACEOF
20379 #line $LINENO "configure"
20380 /* confdefs.h. */
20381 _ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h. */
20385 $dirfd_headers
20388 main ()
20390 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
20392 return 0;
20394 _ACEOF
20395 rm -f conftest.$ac_objext
20396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20397 (eval $ac_compile) 2>&5
20398 ac_status=$?
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } &&
20401 { ac_try='test -s conftest.$ac_objext'
20402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403 (eval $ac_try) 2>&5
20404 ac_status=$?
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; }; then
20407 dir_fd_found=yes
20409 else
20410 echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20414 rm -f conftest.$ac_objext conftest.$ac_ext
20415 CFLAGS=$dirfd_save_CFLAGS
20416 test "$dir_fd_found" = yes && break
20417 done
20418 test "$dir_fd_found" = yes || ac_expr=-1
20420 ac_cv_sys_dir_fd_member_name=$ac_expr
20424 echo "$as_me:$LINENO: result: $ac_cv_sys_dir_fd_member_name" >&5
20425 echo "${ECHO_T}$ac_cv_sys_dir_fd_member_name" >&6
20426 if test $ac_cv_have_decl_dirfd = no; then
20428 cat >>confdefs.h <<_ACEOF
20429 #define DIR_FD_MEMBER_NAME $ac_cv_sys_dir_fd_member_name
20430 _ACEOF
20438 for ac_header in sys/acl.h
20440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20442 echo "$as_me:$LINENO: checking for $ac_header" >&5
20443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20449 else
20450 # Is the header compilable?
20451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20453 cat >conftest.$ac_ext <<_ACEOF
20454 #line $LINENO "configure"
20455 /* confdefs.h. */
20456 _ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h. */
20460 $ac_includes_default
20461 #include <$ac_header>
20462 _ACEOF
20463 rm -f conftest.$ac_objext
20464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20465 (eval $ac_compile) 2>&5
20466 ac_status=$?
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); } &&
20469 { ac_try='test -s conftest.$ac_objext'
20470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471 (eval $ac_try) 2>&5
20472 ac_status=$?
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; }; then
20475 ac_header_compiler=yes
20476 else
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20480 ac_header_compiler=no
20482 rm -f conftest.$ac_objext conftest.$ac_ext
20483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20484 echo "${ECHO_T}$ac_header_compiler" >&6
20486 # Is the header present?
20487 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20489 cat >conftest.$ac_ext <<_ACEOF
20490 #line $LINENO "configure"
20491 /* confdefs.h. */
20492 _ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h. */
20496 #include <$ac_header>
20497 _ACEOF
20498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20500 ac_status=$?
20501 grep -v '^ *+' conftest.er1 >conftest.err
20502 rm -f conftest.er1
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } >/dev/null; then
20506 if test -s conftest.err; then
20507 ac_cpp_err=$ac_c_preproc_warn_flag
20508 else
20509 ac_cpp_err=
20511 else
20512 ac_cpp_err=yes
20514 if test -z "$ac_cpp_err"; then
20515 ac_header_preproc=yes
20516 else
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20520 ac_header_preproc=no
20522 rm -f conftest.err conftest.$ac_ext
20523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20524 echo "${ECHO_T}$ac_header_preproc" >&6
20526 # So? What about this header?
20527 case $ac_header_compiler:$ac_header_preproc in
20528 yes:no )
20529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20534 cat <<\_ASBOX
20535 ## ------------------------------------ ##
20536 ## Report this to bug-autoconf@gnu.org. ##
20537 ## ------------------------------------ ##
20538 _ASBOX
20540 sed "s/^/$as_me: WARNING: /" >&2
20542 no:yes )
20543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20550 cat <<\_ASBOX
20551 ## ------------------------------------ ##
20552 ## Report this to bug-autoconf@gnu.org. ##
20553 ## ------------------------------------ ##
20554 _ASBOX
20556 sed "s/^/$as_me: WARNING: /" >&2
20558 esac
20559 echo "$as_me:$LINENO: checking for $ac_header" >&5
20560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564 eval "$as_ac_Header=$ac_header_preproc"
20566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20571 cat >>confdefs.h <<_ACEOF
20572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20573 _ACEOF
20577 done
20580 for ac_func in acl
20582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20583 echo "$as_me:$LINENO: checking for $ac_func" >&5
20584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20585 if eval "test \"\${$as_ac_var+set}\" = set"; then
20586 echo $ECHO_N "(cached) $ECHO_C" >&6
20587 else
20588 cat >conftest.$ac_ext <<_ACEOF
20589 #line $LINENO "configure"
20590 /* confdefs.h. */
20591 _ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20595 /* System header to define __stub macros and hopefully few prototypes,
20596 which can conflict with char $ac_func (); below.
20597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20598 <limits.h> exists even on freestanding compilers. */
20599 #ifdef __STDC__
20600 # include <limits.h>
20601 #else
20602 # include <assert.h>
20603 #endif
20604 /* Override any gcc2 internal prototype to avoid an error. */
20605 #ifdef __cplusplus
20606 extern "C"
20608 #endif
20609 /* We use char because int might match the return type of a gcc2
20610 builtin and then its argument prototype would still apply. */
20611 char $ac_func ();
20612 /* The GNU C library defines this for functions which it implements
20613 to always fail with ENOSYS. Some functions are actually named
20614 something starting with __ and the normal name is an alias. */
20615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20616 choke me
20617 #else
20618 char (*f) () = $ac_func;
20619 #endif
20620 #ifdef __cplusplus
20622 #endif
20625 main ()
20627 return f != $ac_func;
20629 return 0;
20631 _ACEOF
20632 rm -f conftest.$ac_objext conftest$ac_exeext
20633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20634 (eval $ac_link) 2>&5
20635 ac_status=$?
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } &&
20638 { ac_try='test -s conftest$ac_exeext'
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644 eval "$as_ac_var=yes"
20645 else
20646 echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20649 eval "$as_ac_var=no"
20651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20655 if test `eval echo '${'$as_ac_var'}'` = yes; then
20656 cat >>confdefs.h <<_ACEOF
20657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20658 _ACEOF
20661 done
20663 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
20664 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
20665 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
20666 echo $ECHO_N "(cached) $ECHO_C" >&6
20667 else
20668 rm -f conftest.sym conftest.file
20669 echo >conftest.file
20670 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20671 if test "$cross_compiling" = yes; then
20672 ac_cv_func_lstat_dereferences_slashed_symlink=no
20673 else
20674 cat >conftest.$ac_ext <<_ACEOF
20675 #line $LINENO "configure"
20676 /* confdefs.h. */
20677 _ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20681 $ac_includes_default
20683 main ()
20685 struct stat sbuf;
20686 /* Linux will dereference the symlink and fail.
20687 That is better in the sense that it means we will not
20688 have to compile and use the lstat wrapper. */
20689 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
20691 return 0;
20693 _ACEOF
20694 rm -f conftest$ac_exeext
20695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20696 (eval $ac_link) 2>&5
20697 ac_status=$?
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20702 ac_status=$?
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; }; then
20705 ac_cv_func_lstat_dereferences_slashed_symlink=yes
20706 else
20707 echo "$as_me: program exited with status $ac_status" >&5
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20711 ( exit $ac_status )
20712 ac_cv_func_lstat_dereferences_slashed_symlink=no
20714 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20716 else
20717 # If the `ln -s' command failed, then we probably don't even
20718 # have an lstat function.
20719 ac_cv_func_lstat_dereferences_slashed_symlink=no
20721 rm -f conftest.sym conftest.file
20724 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20725 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
20727 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20729 cat >>confdefs.h <<_ACEOF
20730 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20731 _ACEOF
20734 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
20735 LIBOBJS="$LIBOBJS lstat.$ac_objext"
20740 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
20741 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
20742 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20744 else
20745 if test "$cross_compiling" = yes; then
20746 jm_cv_func_lstat_empty_string_bug=yes
20747 else
20748 cat >conftest.$ac_ext <<_ACEOF
20749 #line $LINENO "configure"
20750 /* confdefs.h. */
20751 _ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h. */
20756 # include <sys/types.h>
20757 # include <sys/stat.h>
20760 main ()
20762 struct stat sbuf;
20763 exit (lstat ("", &sbuf) ? 1 : 0);
20766 _ACEOF
20767 rm -f conftest$ac_exeext
20768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20769 (eval $ac_link) 2>&5
20770 ac_status=$?
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774 (eval $ac_try) 2>&5
20775 ac_status=$?
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; }; then
20778 jm_cv_func_lstat_empty_string_bug=yes
20779 else
20780 echo "$as_me: program exited with status $ac_status" >&5
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20784 ( exit $ac_status )
20785 jm_cv_func_lstat_empty_string_bug=no
20787 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20791 echo "$as_me:$LINENO: result: $jm_cv_func_lstat_empty_string_bug" >&5
20792 echo "${ECHO_T}$jm_cv_func_lstat_empty_string_bug" >&6
20793 if test $jm_cv_func_lstat_empty_string_bug = yes; then
20794 LIBOBJS="$LIBOBJS lstat.$ac_objext"
20796 cat >>confdefs.h <<\_ACEOF
20797 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
20798 _ACEOF
20803 # prerequisites
20807 for ac_header in sys/param.h
20809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20811 echo "$as_me:$LINENO: checking for $ac_header" >&5
20812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20818 else
20819 # Is the header compilable?
20820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20822 cat >conftest.$ac_ext <<_ACEOF
20823 #line $LINENO "configure"
20824 /* confdefs.h. */
20825 _ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h. */
20829 $ac_includes_default
20830 #include <$ac_header>
20831 _ACEOF
20832 rm -f conftest.$ac_objext
20833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20834 (eval $ac_compile) 2>&5
20835 ac_status=$?
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); } &&
20838 { ac_try='test -s conftest.$ac_objext'
20839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840 (eval $ac_try) 2>&5
20841 ac_status=$?
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; }; then
20844 ac_header_compiler=yes
20845 else
20846 echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20849 ac_header_compiler=no
20851 rm -f conftest.$ac_objext conftest.$ac_ext
20852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20853 echo "${ECHO_T}$ac_header_compiler" >&6
20855 # Is the header present?
20856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20858 cat >conftest.$ac_ext <<_ACEOF
20859 #line $LINENO "configure"
20860 /* confdefs.h. */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865 #include <$ac_header>
20866 _ACEOF
20867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20869 ac_status=$?
20870 grep -v '^ *+' conftest.er1 >conftest.err
20871 rm -f conftest.er1
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } >/dev/null; then
20875 if test -s conftest.err; then
20876 ac_cpp_err=$ac_c_preproc_warn_flag
20877 else
20878 ac_cpp_err=
20880 else
20881 ac_cpp_err=yes
20883 if test -z "$ac_cpp_err"; then
20884 ac_header_preproc=yes
20885 else
20886 echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20889 ac_header_preproc=no
20891 rm -f conftest.err conftest.$ac_ext
20892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20893 echo "${ECHO_T}$ac_header_preproc" >&6
20895 # So? What about this header?
20896 case $ac_header_compiler:$ac_header_preproc in
20897 yes:no )
20898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20903 cat <<\_ASBOX
20904 ## ------------------------------------ ##
20905 ## Report this to bug-autoconf@gnu.org. ##
20906 ## ------------------------------------ ##
20907 _ASBOX
20909 sed "s/^/$as_me: WARNING: /" >&2
20911 no:yes )
20912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20919 cat <<\_ASBOX
20920 ## ------------------------------------ ##
20921 ## Report this to bug-autoconf@gnu.org. ##
20922 ## ------------------------------------ ##
20923 _ASBOX
20925 sed "s/^/$as_me: WARNING: /" >&2
20927 esac
20928 echo "$as_me:$LINENO: checking for $ac_header" >&5
20929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20932 else
20933 eval "$as_ac_Header=$ac_header_preproc"
20935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20940 cat >>confdefs.h <<_ACEOF
20941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20942 _ACEOF
20946 done
20948 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
20949 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
20950 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
20951 echo $ECHO_N "(cached) $ECHO_C" >&6
20952 else
20953 cat >conftest.$ac_ext <<_ACEOF
20954 #line $LINENO "configure"
20955 /* confdefs.h. */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 $ac_includes_default
20962 main ()
20964 #ifndef stpcpy
20965 char *p = (char *) stpcpy;
20966 #endif
20969 return 0;
20971 _ACEOF
20972 rm -f conftest.$ac_objext
20973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20974 (eval $ac_compile) 2>&5
20975 ac_status=$?
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } &&
20978 { ac_try='test -s conftest.$ac_objext'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20981 ac_status=$?
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; }; then
20984 ac_cv_have_decl_stpcpy=yes
20985 else
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20989 ac_cv_have_decl_stpcpy=no
20991 rm -f conftest.$ac_objext conftest.$ac_ext
20993 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
20994 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
20995 if test $ac_cv_have_decl_stpcpy = yes; then
20997 cat >>confdefs.h <<_ACEOF
20998 #define HAVE_DECL_STPCPY 1
20999 _ACEOF
21002 else
21003 cat >>confdefs.h <<_ACEOF
21004 #define HAVE_DECL_STPCPY 0
21005 _ACEOF
21012 # In the event that we have to use the replacement ftw.c,
21013 # see if we'll also need the replacement tsearch.c.
21014 echo "$as_me:$LINENO: checking for tdestroy" >&5
21015 echo $ECHO_N "checking for tdestroy... $ECHO_C" >&6
21016 if test "${ac_cv_func_tdestroy+set}" = set; then
21017 echo $ECHO_N "(cached) $ECHO_C" >&6
21018 else
21019 cat >conftest.$ac_ext <<_ACEOF
21020 #line $LINENO "configure"
21021 /* confdefs.h. */
21022 _ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h. */
21026 /* System header to define __stub macros and hopefully few prototypes,
21027 which can conflict with char tdestroy (); below.
21028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21029 <limits.h> exists even on freestanding compilers. */
21030 #ifdef __STDC__
21031 # include <limits.h>
21032 #else
21033 # include <assert.h>
21034 #endif
21035 /* Override any gcc2 internal prototype to avoid an error. */
21036 #ifdef __cplusplus
21037 extern "C"
21039 #endif
21040 /* We use char because int might match the return type of a gcc2
21041 builtin and then its argument prototype would still apply. */
21042 char tdestroy ();
21043 /* The GNU C library defines this for functions which it implements
21044 to always fail with ENOSYS. Some functions are actually named
21045 something starting with __ and the normal name is an alias. */
21046 #if defined (__stub_tdestroy) || defined (__stub___tdestroy)
21047 choke me
21048 #else
21049 char (*f) () = tdestroy;
21050 #endif
21051 #ifdef __cplusplus
21053 #endif
21056 main ()
21058 return f != tdestroy;
21060 return 0;
21062 _ACEOF
21063 rm -f conftest.$ac_objext conftest$ac_exeext
21064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21065 (eval $ac_link) 2>&5
21066 ac_status=$?
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } &&
21069 { ac_try='test -s conftest$ac_exeext'
21070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21072 ac_status=$?
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; }; then
21075 ac_cv_func_tdestroy=yes
21076 else
21077 echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21080 ac_cv_func_tdestroy=no
21082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21084 echo "$as_me:$LINENO: result: $ac_cv_func_tdestroy" >&5
21085 echo "${ECHO_T}$ac_cv_func_tdestroy" >&6
21086 if test $ac_cv_func_tdestroy = yes; then
21088 else
21089 need_tdestroy=1
21093 echo "$as_me:$LINENO: checking for ftw/FTW_CHDIR that informs callback of failed chdir" >&5
21094 echo $ECHO_N "checking for ftw/FTW_CHDIR that informs callback of failed chdir... $ECHO_C" >&6
21095 if test "${ac_cv_func_ftw_working+set}" = set; then
21096 echo $ECHO_N "(cached) $ECHO_C" >&6
21097 else
21099 # The following test would fail prior to glibc-2.3.2, because `depth'
21100 # would be 2 rather than 4. Of course, now that we require FTW_DCH
21101 # and FTW_DCHP, this test fails even with GNU libc's fixed ftw.
21102 mkdir -p conftest.dir/a/b/c
21103 if test "$cross_compiling" = yes; then
21104 ac_cv_func_ftw_working=no
21105 else
21106 cat >conftest.$ac_ext <<_ACEOF
21107 #line $LINENO "configure"
21108 /* confdefs.h. */
21109 _ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h. */
21114 #include <string.h>
21115 #include <stdlib.h>
21116 #include <ftw.h>
21118 static char *_f[] = { "conftest.dir", "conftest.dir/a",
21119 "conftest.dir/a/b", "conftest.dir/a/b/c" };
21120 static char **p = _f;
21121 static int depth;
21123 static int
21124 cb (const char *file, const struct stat *sb, int file_type, struct FTW *info)
21126 if (strcmp (file, *p++) != 0)
21127 exit (1);
21128 ++depth;
21129 return 0;
21133 main ()
21135 /* Require these symbols, too. */
21136 int d1 = FTW_DCH;
21137 int d2 = FTW_DCHP;
21139 int err = nftw ("conftest.dir", cb, 30, FTW_PHYS | FTW_MOUNT | FTW_CHDIR);
21140 exit ((err == 0 && depth == 4) ? 0 : 1);
21143 _ACEOF
21144 rm -f conftest$ac_exeext
21145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21146 (eval $ac_link) 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155 ac_cv_func_ftw_working=yes
21156 else
21157 echo "$as_me: program exited with status $ac_status" >&5
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21161 ( exit $ac_status )
21162 ac_cv_func_ftw_working=no
21164 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21167 echo "$as_me:$LINENO: result: $ac_cv_func_ftw_working" >&5
21168 echo "${ECHO_T}$ac_cv_func_ftw_working" >&6
21169 rm -rf conftest.dir
21170 if test $ac_cv_func_ftw_working = no; then
21171 LIBOBJS="$LIBOBJS ftw.$ac_objext"
21172 ac_config_links="$ac_config_links $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h"
21174 # Add tsearch.o IFF we have to use the replacement ftw.c.
21175 if test -n "$need_tdestroy"; then
21176 LIBOBJS="$LIBOBJS tsearch.$ac_objext"
21177 # Link search.h to search_.h if we use the replacement tsearch.c.
21178 ac_config_links="$ac_config_links $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h"
21186 for ac_func in lchown
21188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21189 echo "$as_me:$LINENO: checking for $ac_func" >&5
21190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21191 if eval "test \"\${$as_ac_var+set}\" = set"; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 else
21194 cat >conftest.$ac_ext <<_ACEOF
21195 #line $LINENO "configure"
21196 /* confdefs.h. */
21197 _ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h. */
21201 /* System header to define __stub macros and hopefully few prototypes,
21202 which can conflict with char $ac_func (); below.
21203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21204 <limits.h> exists even on freestanding compilers. */
21205 #ifdef __STDC__
21206 # include <limits.h>
21207 #else
21208 # include <assert.h>
21209 #endif
21210 /* Override any gcc2 internal prototype to avoid an error. */
21211 #ifdef __cplusplus
21212 extern "C"
21214 #endif
21215 /* We use char because int might match the return type of a gcc2
21216 builtin and then its argument prototype would still apply. */
21217 char $ac_func ();
21218 /* The GNU C library defines this for functions which it implements
21219 to always fail with ENOSYS. Some functions are actually named
21220 something starting with __ and the normal name is an alias. */
21221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21222 choke me
21223 #else
21224 char (*f) () = $ac_func;
21225 #endif
21226 #ifdef __cplusplus
21228 #endif
21231 main ()
21233 return f != $ac_func;
21235 return 0;
21237 _ACEOF
21238 rm -f conftest.$ac_objext conftest$ac_exeext
21239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21240 (eval $ac_link) 2>&5
21241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } &&
21244 { ac_try='test -s conftest$ac_exeext'
21245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21246 (eval $ac_try) 2>&5
21247 ac_status=$?
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); }; }; then
21250 eval "$as_ac_var=yes"
21251 else
21252 echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21255 eval "$as_ac_var=no"
21257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21261 if test `eval echo '${'$as_ac_var'}'` = yes; then
21262 cat >>confdefs.h <<_ACEOF
21263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21264 _ACEOF
21266 else
21267 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21269 done
21273 echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
21274 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
21275 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21277 else
21279 # Arrange for deletion of the temporary directory this test creates.
21280 ac_clean_files="$ac_clean_files confdir2"
21281 mkdir confdir2; : > confdir2/file
21282 if test "$cross_compiling" = yes; then
21283 fetish_cv_func_rmdir_errno_not_empty=ENOTEMPTY
21285 else
21286 cat >conftest.$ac_ext <<_ACEOF
21287 #line $LINENO "configure"
21288 /* confdefs.h. */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21294 #include <stdio.h>
21295 #include <errno.h>
21296 #ifndef errno
21297 extern int errno;
21298 #endif
21299 int main ()
21301 FILE *s;
21302 int val;
21303 rmdir ("confdir2");
21304 val = errno;
21305 s = fopen ("confdir2/errno", "w");
21306 fprintf (s, "%d\n", val);
21307 exit (0);
21310 _ACEOF
21311 rm -f conftest$ac_exeext
21312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21313 (eval $ac_link) 2>&5
21314 ac_status=$?
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318 (eval $ac_try) 2>&5
21319 ac_status=$?
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); }; }; then
21322 fetish_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
21323 else
21324 echo "$as_me: program exited with status $ac_status" >&5
21325 echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21328 ( exit $ac_status )
21329 fetish_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
21331 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21336 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
21337 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
21340 cat >>confdefs.h <<_ACEOF
21341 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
21342 _ACEOF
21345 test -z "$ac_cv_header_unistd_h" \
21347 for ac_header in unistd.h
21349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21351 echo "$as_me:$LINENO: checking for $ac_header" >&5
21352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21358 else
21359 # Is the header compilable?
21360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21362 cat >conftest.$ac_ext <<_ACEOF
21363 #line $LINENO "configure"
21364 /* confdefs.h. */
21365 _ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21369 $ac_includes_default
21370 #include <$ac_header>
21371 _ACEOF
21372 rm -f conftest.$ac_objext
21373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21374 (eval $ac_compile) 2>&5
21375 ac_status=$?
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); } &&
21378 { ac_try='test -s conftest.$ac_objext'
21379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21380 (eval $ac_try) 2>&5
21381 ac_status=$?
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); }; }; then
21384 ac_header_compiler=yes
21385 else
21386 echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21389 ac_header_compiler=no
21391 rm -f conftest.$ac_objext conftest.$ac_ext
21392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21393 echo "${ECHO_T}$ac_header_compiler" >&6
21395 # Is the header present?
21396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21398 cat >conftest.$ac_ext <<_ACEOF
21399 #line $LINENO "configure"
21400 /* confdefs.h. */
21401 _ACEOF
21402 cat confdefs.h >>conftest.$ac_ext
21403 cat >>conftest.$ac_ext <<_ACEOF
21404 /* end confdefs.h. */
21405 #include <$ac_header>
21406 _ACEOF
21407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21409 ac_status=$?
21410 grep -v '^ *+' conftest.er1 >conftest.err
21411 rm -f conftest.er1
21412 cat conftest.err >&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); } >/dev/null; then
21415 if test -s conftest.err; then
21416 ac_cpp_err=$ac_c_preproc_warn_flag
21417 else
21418 ac_cpp_err=
21420 else
21421 ac_cpp_err=yes
21423 if test -z "$ac_cpp_err"; then
21424 ac_header_preproc=yes
21425 else
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21429 ac_header_preproc=no
21431 rm -f conftest.err conftest.$ac_ext
21432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21433 echo "${ECHO_T}$ac_header_preproc" >&6
21435 # So? What about this header?
21436 case $ac_header_compiler:$ac_header_preproc in
21437 yes:no )
21438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21443 cat <<\_ASBOX
21444 ## ------------------------------------ ##
21445 ## Report this to bug-autoconf@gnu.org. ##
21446 ## ------------------------------------ ##
21447 _ASBOX
21449 sed "s/^/$as_me: WARNING: /" >&2
21451 no:yes )
21452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21459 cat <<\_ASBOX
21460 ## ------------------------------------ ##
21461 ## Report this to bug-autoconf@gnu.org. ##
21462 ## ------------------------------------ ##
21463 _ASBOX
21465 sed "s/^/$as_me: WARNING: /" >&2
21467 esac
21468 echo "$as_me:$LINENO: checking for $ac_header" >&5
21469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21471 echo $ECHO_N "(cached) $ECHO_C" >&6
21472 else
21473 eval "$as_ac_Header=$ac_header_preproc"
21475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21480 cat >>confdefs.h <<_ACEOF
21481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21482 _ACEOF
21486 done
21488 echo "$as_me:$LINENO: checking for working chown" >&5
21489 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
21490 if test "${jm_cv_func_working_chown+set}" = set; then
21491 echo $ECHO_N "(cached) $ECHO_C" >&6
21492 else
21493 if test "$cross_compiling" = yes; then
21494 jm_cv_func_working_chown=no
21495 else
21496 cat >conftest.$ac_ext <<_ACEOF
21497 #line $LINENO "configure"
21498 /* confdefs.h. */
21499 _ACEOF
21500 cat confdefs.h >>conftest.$ac_ext
21501 cat >>conftest.$ac_ext <<_ACEOF
21502 /* end confdefs.h. */
21504 # include <sys/types.h>
21505 # include <sys/stat.h>
21506 # include <fcntl.h>
21507 # ifdef HAVE_UNISTD_H
21508 # include <unistd.h>
21509 # endif
21512 main ()
21514 char *f = "conftest.chown";
21515 struct stat before, after;
21517 if (creat (f, 0600) < 0)
21518 exit (1);
21519 if (stat (f, &before) < 0)
21520 exit (1);
21521 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21522 exit (1);
21523 if (stat (f, &after) < 0)
21524 exit (1);
21525 exit ((before.st_uid == after.st_uid
21526 && before.st_gid == after.st_gid) ? 0 : 1);
21529 _ACEOF
21530 rm -f conftest$ac_exeext
21531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21532 (eval $ac_link) 2>&5
21533 ac_status=$?
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21538 ac_status=$?
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; }; then
21541 jm_cv_func_working_chown=yes
21542 else
21543 echo "$as_me: program exited with status $ac_status" >&5
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21547 ( exit $ac_status )
21548 jm_cv_func_working_chown=no
21550 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21554 echo "$as_me:$LINENO: result: $jm_cv_func_working_chown" >&5
21555 echo "${ECHO_T}$jm_cv_func_working_chown" >&6
21556 if test $jm_cv_func_working_chown = no; then
21557 LIBOBJS="$LIBOBJS chown.$ac_objext"
21559 cat >>confdefs.h <<\_ACEOF
21560 #define chown rpl_chown
21561 _ACEOF
21567 for ac_header in sys/time.h unistd.h
21569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21571 echo "$as_me:$LINENO: checking for $ac_header" >&5
21572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21574 echo $ECHO_N "(cached) $ECHO_C" >&6
21576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21578 else
21579 # Is the header compilable?
21580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21582 cat >conftest.$ac_ext <<_ACEOF
21583 #line $LINENO "configure"
21584 /* confdefs.h. */
21585 _ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h. */
21589 $ac_includes_default
21590 #include <$ac_header>
21591 _ACEOF
21592 rm -f conftest.$ac_objext
21593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21594 (eval $ac_compile) 2>&5
21595 ac_status=$?
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } &&
21598 { ac_try='test -s conftest.$ac_objext'
21599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600 (eval $ac_try) 2>&5
21601 ac_status=$?
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); }; }; then
21604 ac_header_compiler=yes
21605 else
21606 echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21609 ac_header_compiler=no
21611 rm -f conftest.$ac_objext conftest.$ac_ext
21612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21613 echo "${ECHO_T}$ac_header_compiler" >&6
21615 # Is the header present?
21616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21618 cat >conftest.$ac_ext <<_ACEOF
21619 #line $LINENO "configure"
21620 /* confdefs.h. */
21621 _ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h. */
21625 #include <$ac_header>
21626 _ACEOF
21627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21629 ac_status=$?
21630 grep -v '^ *+' conftest.er1 >conftest.err
21631 rm -f conftest.er1
21632 cat conftest.err >&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } >/dev/null; then
21635 if test -s conftest.err; then
21636 ac_cpp_err=$ac_c_preproc_warn_flag
21637 else
21638 ac_cpp_err=
21640 else
21641 ac_cpp_err=yes
21643 if test -z "$ac_cpp_err"; then
21644 ac_header_preproc=yes
21645 else
21646 echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21649 ac_header_preproc=no
21651 rm -f conftest.err conftest.$ac_ext
21652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21653 echo "${ECHO_T}$ac_header_preproc" >&6
21655 # So? What about this header?
21656 case $ac_header_compiler:$ac_header_preproc in
21657 yes:no )
21658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21663 cat <<\_ASBOX
21664 ## ------------------------------------ ##
21665 ## Report this to bug-autoconf@gnu.org. ##
21666 ## ------------------------------------ ##
21667 _ASBOX
21669 sed "s/^/$as_me: WARNING: /" >&2
21671 no:yes )
21672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21679 cat <<\_ASBOX
21680 ## ------------------------------------ ##
21681 ## Report this to bug-autoconf@gnu.org. ##
21682 ## ------------------------------------ ##
21683 _ASBOX
21685 sed "s/^/$as_me: WARNING: /" >&2
21687 esac
21688 echo "$as_me:$LINENO: checking for $ac_header" >&5
21689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21692 else
21693 eval "$as_ac_Header=$ac_header_preproc"
21695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21700 cat >>confdefs.h <<_ACEOF
21701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21702 _ACEOF
21706 done
21709 for ac_func in alarm
21711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21712 echo "$as_me:$LINENO: checking for $ac_func" >&5
21713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21714 if eval "test \"\${$as_ac_var+set}\" = set"; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21716 else
21717 cat >conftest.$ac_ext <<_ACEOF
21718 #line $LINENO "configure"
21719 /* confdefs.h. */
21720 _ACEOF
21721 cat confdefs.h >>conftest.$ac_ext
21722 cat >>conftest.$ac_ext <<_ACEOF
21723 /* end confdefs.h. */
21724 /* System header to define __stub macros and hopefully few prototypes,
21725 which can conflict with char $ac_func (); below.
21726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21727 <limits.h> exists even on freestanding compilers. */
21728 #ifdef __STDC__
21729 # include <limits.h>
21730 #else
21731 # include <assert.h>
21732 #endif
21733 /* Override any gcc2 internal prototype to avoid an error. */
21734 #ifdef __cplusplus
21735 extern "C"
21737 #endif
21738 /* We use char because int might match the return type of a gcc2
21739 builtin and then its argument prototype would still apply. */
21740 char $ac_func ();
21741 /* The GNU C library defines this for functions which it implements
21742 to always fail with ENOSYS. Some functions are actually named
21743 something starting with __ and the normal name is an alias. */
21744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21745 choke me
21746 #else
21747 char (*f) () = $ac_func;
21748 #endif
21749 #ifdef __cplusplus
21751 #endif
21754 main ()
21756 return f != $ac_func;
21758 return 0;
21760 _ACEOF
21761 rm -f conftest.$ac_objext conftest$ac_exeext
21762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21763 (eval $ac_link) 2>&5
21764 ac_status=$?
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); } &&
21767 { ac_try='test -s conftest$ac_exeext'
21768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769 (eval $ac_try) 2>&5
21770 ac_status=$?
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; }; then
21773 eval "$as_ac_var=yes"
21774 else
21775 echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21778 eval "$as_ac_var=no"
21780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21784 if test `eval echo '${'$as_ac_var'}'` = yes; then
21785 cat >>confdefs.h <<_ACEOF
21786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21787 _ACEOF
21790 done
21792 echo "$as_me:$LINENO: checking for working mktime" >&5
21793 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
21794 if test "${ac_cv_func_working_mktime+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21796 else
21797 if test "$cross_compiling" = yes; then
21798 ac_cv_func_working_mktime=no
21799 else
21800 cat >conftest.$ac_ext <<_ACEOF
21801 #line $LINENO "configure"
21802 /* confdefs.h. */
21803 _ACEOF
21804 cat confdefs.h >>conftest.$ac_ext
21805 cat >>conftest.$ac_ext <<_ACEOF
21806 /* end confdefs.h. */
21807 /* Test program from Paul Eggert and Tony Leneis. */
21808 #if TIME_WITH_SYS_TIME
21809 # include <sys/time.h>
21810 # include <time.h>
21811 #else
21812 # if HAVE_SYS_TIME_H
21813 # include <sys/time.h>
21814 # else
21815 # include <time.h>
21816 # endif
21817 #endif
21819 #if HAVE_UNISTD_H
21820 # include <unistd.h>
21821 #endif
21823 #if !HAVE_ALARM
21824 # define alarm(X) /* empty */
21825 #endif
21827 /* Work around redefinition to rpl_putenv by other config tests. */
21828 #undef putenv
21830 static time_t time_t_max;
21832 /* Values we'll use to set the TZ environment variable. */
21833 static const char *const tz_strings[] = {
21834 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
21835 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21837 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21839 /* Fail if mktime fails to convert a date in the spring-forward gap.
21840 Based on a problem report from Andreas Jaeger. */
21841 static void
21842 spring_forward_gap ()
21844 /* glibc (up to about 1998-10-07) failed this test. */
21845 struct tm tm;
21847 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21848 instead of "TZ=America/Vancouver" in order to detect the bug even
21849 on systems that don't support the Olson extension, or don't have the
21850 full zoneinfo tables installed. */
21851 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21853 tm.tm_year = 98;
21854 tm.tm_mon = 3;
21855 tm.tm_mday = 5;
21856 tm.tm_hour = 2;
21857 tm.tm_min = 0;
21858 tm.tm_sec = 0;
21859 tm.tm_isdst = -1;
21860 if (mktime (&tm) == (time_t)-1)
21861 exit (1);
21864 static void
21865 mktime_test (now)
21866 time_t now;
21868 struct tm *lt;
21869 if ((lt = localtime (&now)) && mktime (lt) != now)
21870 exit (1);
21871 now = time_t_max - now;
21872 if ((lt = localtime (&now)) && mktime (lt) != now)
21873 exit (1);
21876 static void
21877 irix_6_4_bug ()
21879 /* Based on code from Ariel Faigon. */
21880 struct tm tm;
21881 tm.tm_year = 96;
21882 tm.tm_mon = 3;
21883 tm.tm_mday = 0;
21884 tm.tm_hour = 0;
21885 tm.tm_min = 0;
21886 tm.tm_sec = 0;
21887 tm.tm_isdst = -1;
21888 mktime (&tm);
21889 if (tm.tm_mon != 2 || tm.tm_mday != 31)
21890 exit (1);
21893 static void
21894 bigtime_test (j)
21895 int j;
21897 struct tm tm;
21898 time_t now;
21899 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21900 now = mktime (&tm);
21901 if (now != (time_t) -1)
21903 struct tm *lt = localtime (&now);
21904 if (! (lt
21905 && lt->tm_year == tm.tm_year
21906 && lt->tm_mon == tm.tm_mon
21907 && lt->tm_mday == tm.tm_mday
21908 && lt->tm_hour == tm.tm_hour
21909 && lt->tm_min == tm.tm_min
21910 && lt->tm_sec == tm.tm_sec
21911 && lt->tm_yday == tm.tm_yday
21912 && lt->tm_wday == tm.tm_wday
21913 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21914 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21915 exit (1);
21920 main ()
21922 time_t t, delta;
21923 int i, j;
21925 /* This test makes some buggy mktime implementations loop.
21926 Give up after 60 seconds; a mktime slower than that
21927 isn't worth using anyway. */
21928 alarm (60);
21930 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
21931 continue;
21932 time_t_max--;
21933 delta = time_t_max / 997; /* a suitable prime number */
21934 for (i = 0; i < N_STRINGS; i++)
21936 if (tz_strings[i])
21937 putenv (tz_strings[i]);
21939 for (t = 0; t <= time_t_max - delta; t += delta)
21940 mktime_test (t);
21941 mktime_test ((time_t) 60 * 60);
21942 mktime_test ((time_t) 60 * 60 * 24);
21944 for (j = 1; 0 < j; j *= 2)
21945 bigtime_test (j);
21946 bigtime_test (j - 1);
21948 irix_6_4_bug ();
21949 spring_forward_gap ();
21950 exit (0);
21952 _ACEOF
21953 rm -f conftest$ac_exeext
21954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21955 (eval $ac_link) 2>&5
21956 ac_status=$?
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960 (eval $ac_try) 2>&5
21961 ac_status=$?
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; }; then
21964 ac_cv_func_working_mktime=yes
21965 else
21966 echo "$as_me: program exited with status $ac_status" >&5
21967 echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.$ac_ext >&5
21970 ( exit $ac_status )
21971 ac_cv_func_working_mktime=no
21973 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21976 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
21977 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
21978 if test $ac_cv_func_working_mktime = no; then
21979 LIBOBJS="$LIBOBJS mktime.$ac_objext"
21984 for ac_func in localtime_r
21986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21987 echo "$as_me:$LINENO: checking for $ac_func" >&5
21988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21989 if eval "test \"\${$as_ac_var+set}\" = set"; then
21990 echo $ECHO_N "(cached) $ECHO_C" >&6
21991 else
21992 cat >conftest.$ac_ext <<_ACEOF
21993 #line $LINENO "configure"
21994 /* confdefs.h. */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 /* System header to define __stub macros and hopefully few prototypes,
22000 which can conflict with char $ac_func (); below.
22001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22002 <limits.h> exists even on freestanding compilers. */
22003 #ifdef __STDC__
22004 # include <limits.h>
22005 #else
22006 # include <assert.h>
22007 #endif
22008 /* Override any gcc2 internal prototype to avoid an error. */
22009 #ifdef __cplusplus
22010 extern "C"
22012 #endif
22013 /* We use char because int might match the return type of a gcc2
22014 builtin and then its argument prototype would still apply. */
22015 char $ac_func ();
22016 /* The GNU C library defines this for functions which it implements
22017 to always fail with ENOSYS. Some functions are actually named
22018 something starting with __ and the normal name is an alias. */
22019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22020 choke me
22021 #else
22022 char (*f) () = $ac_func;
22023 #endif
22024 #ifdef __cplusplus
22026 #endif
22029 main ()
22031 return f != $ac_func;
22033 return 0;
22035 _ACEOF
22036 rm -f conftest.$ac_objext conftest$ac_exeext
22037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22038 (eval $ac_link) 2>&5
22039 ac_status=$?
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } &&
22042 { ac_try='test -s conftest$ac_exeext'
22043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044 (eval $ac_try) 2>&5
22045 ac_status=$?
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); }; }; then
22048 eval "$as_ac_var=yes"
22049 else
22050 echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22053 eval "$as_ac_var=no"
22055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22059 if test `eval echo '${'$as_ac_var'}'` = yes; then
22060 cat >>confdefs.h <<_ACEOF
22061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22062 _ACEOF
22065 done
22068 if test $ac_cv_func_working_mktime = no; then
22070 cat >>confdefs.h <<\_ACEOF
22071 #define mktime rpl_mktime
22072 _ACEOF
22078 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22079 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
22080 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
22081 echo $ECHO_N "(cached) $ECHO_C" >&6
22082 else
22083 if test "$cross_compiling" = yes; then
22084 jm_cv_func_stat_empty_string_bug=yes
22085 else
22086 cat >conftest.$ac_ext <<_ACEOF
22087 #line $LINENO "configure"
22088 /* confdefs.h. */
22089 _ACEOF
22090 cat confdefs.h >>conftest.$ac_ext
22091 cat >>conftest.$ac_ext <<_ACEOF
22092 /* end confdefs.h. */
22094 # include <sys/types.h>
22095 # include <sys/stat.h>
22098 main ()
22100 struct stat sbuf;
22101 exit (stat ("", &sbuf) ? 1 : 0);
22104 _ACEOF
22105 rm -f conftest$ac_exeext
22106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22107 (eval $ac_link) 2>&5
22108 ac_status=$?
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112 (eval $ac_try) 2>&5
22113 ac_status=$?
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); }; }; then
22116 jm_cv_func_stat_empty_string_bug=yes
22117 else
22118 echo "$as_me: program exited with status $ac_status" >&5
22119 echo "$as_me: failed program was:" >&5
22120 sed 's/^/| /' conftest.$ac_ext >&5
22122 ( exit $ac_status )
22123 jm_cv_func_stat_empty_string_bug=no
22125 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22129 echo "$as_me:$LINENO: result: $jm_cv_func_stat_empty_string_bug" >&5
22130 echo "${ECHO_T}$jm_cv_func_stat_empty_string_bug" >&6
22131 if test $jm_cv_func_stat_empty_string_bug = yes; then
22132 LIBOBJS="$LIBOBJS stat.$ac_objext"
22134 cat >>confdefs.h <<\_ACEOF
22135 #define HAVE_STAT_EMPTY_STRING_BUG 1
22136 _ACEOF
22141 for ac_header in stdlib.h
22143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22145 echo "$as_me:$LINENO: checking for $ac_header" >&5
22146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22152 else
22153 # Is the header compilable?
22154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22156 cat >conftest.$ac_ext <<_ACEOF
22157 #line $LINENO "configure"
22158 /* confdefs.h. */
22159 _ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h. */
22163 $ac_includes_default
22164 #include <$ac_header>
22165 _ACEOF
22166 rm -f conftest.$ac_objext
22167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22168 (eval $ac_compile) 2>&5
22169 ac_status=$?
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); } &&
22172 { ac_try='test -s conftest.$ac_objext'
22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174 (eval $ac_try) 2>&5
22175 ac_status=$?
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 ac_header_compiler=yes
22179 else
22180 echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22183 ac_header_compiler=no
22185 rm -f conftest.$ac_objext conftest.$ac_ext
22186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22187 echo "${ECHO_T}$ac_header_compiler" >&6
22189 # Is the header present?
22190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22192 cat >conftest.$ac_ext <<_ACEOF
22193 #line $LINENO "configure"
22194 /* confdefs.h. */
22195 _ACEOF
22196 cat confdefs.h >>conftest.$ac_ext
22197 cat >>conftest.$ac_ext <<_ACEOF
22198 /* end confdefs.h. */
22199 #include <$ac_header>
22200 _ACEOF
22201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22203 ac_status=$?
22204 grep -v '^ *+' conftest.er1 >conftest.err
22205 rm -f conftest.er1
22206 cat conftest.err >&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } >/dev/null; then
22209 if test -s conftest.err; then
22210 ac_cpp_err=$ac_c_preproc_warn_flag
22211 else
22212 ac_cpp_err=
22214 else
22215 ac_cpp_err=yes
22217 if test -z "$ac_cpp_err"; then
22218 ac_header_preproc=yes
22219 else
22220 echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22223 ac_header_preproc=no
22225 rm -f conftest.err conftest.$ac_ext
22226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22227 echo "${ECHO_T}$ac_header_preproc" >&6
22229 # So? What about this header?
22230 case $ac_header_compiler:$ac_header_preproc in
22231 yes:no )
22232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22237 cat <<\_ASBOX
22238 ## ------------------------------------ ##
22239 ## Report this to bug-autoconf@gnu.org. ##
22240 ## ------------------------------------ ##
22241 _ASBOX
22243 sed "s/^/$as_me: WARNING: /" >&2
22245 no:yes )
22246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22253 cat <<\_ASBOX
22254 ## ------------------------------------ ##
22255 ## Report this to bug-autoconf@gnu.org. ##
22256 ## ------------------------------------ ##
22257 _ASBOX
22259 sed "s/^/$as_me: WARNING: /" >&2
22261 esac
22262 echo "$as_me:$LINENO: checking for $ac_header" >&5
22263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22265 echo $ECHO_N "(cached) $ECHO_C" >&6
22266 else
22267 eval "$as_ac_Header=$ac_header_preproc"
22269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22274 cat >>confdefs.h <<_ACEOF
22275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22276 _ACEOF
22280 done
22282 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
22283 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
22284 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
22285 echo $ECHO_N "(cached) $ECHO_C" >&6
22286 else
22287 if test "$cross_compiling" = yes; then
22288 ac_cv_func_realloc_0_nonnull=no
22289 else
22290 cat >conftest.$ac_ext <<_ACEOF
22291 #line $LINENO "configure"
22292 /* confdefs.h. */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22297 #if STDC_HEADERS || HAVE_STDLIB_H
22298 # include <stdlib.h>
22299 #else
22300 char *realloc ();
22301 #endif
22304 main ()
22306 exit (realloc (0, 0) ? 0 : 1);
22308 return 0;
22310 _ACEOF
22311 rm -f conftest$ac_exeext
22312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22313 (eval $ac_link) 2>&5
22314 ac_status=$?
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22319 ac_status=$?
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 ac_cv_func_realloc_0_nonnull=yes
22323 else
22324 echo "$as_me: program exited with status $ac_status" >&5
22325 echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.$ac_ext >&5
22328 ( exit $ac_status )
22329 ac_cv_func_realloc_0_nonnull=no
22331 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22334 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
22335 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
22336 if test $ac_cv_func_realloc_0_nonnull = yes; then
22338 cat >>confdefs.h <<\_ACEOF
22339 #define HAVE_REALLOC 1
22340 _ACEOF
22342 else
22343 cat >>confdefs.h <<\_ACEOF
22344 #define HAVE_REALLOC 0
22345 _ACEOF
22347 LIBOBJS="$LIBOBJS realloc.$ac_objext"
22349 cat >>confdefs.h <<\_ACEOF
22350 #define realloc rpl_realloc
22351 _ACEOF
22358 for ac_header in stdlib.h
22360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22362 echo "$as_me:$LINENO: checking for $ac_header" >&5
22363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22365 echo $ECHO_N "(cached) $ECHO_C" >&6
22367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22369 else
22370 # Is the header compilable?
22371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22373 cat >conftest.$ac_ext <<_ACEOF
22374 #line $LINENO "configure"
22375 /* confdefs.h. */
22376 _ACEOF
22377 cat confdefs.h >>conftest.$ac_ext
22378 cat >>conftest.$ac_ext <<_ACEOF
22379 /* end confdefs.h. */
22380 $ac_includes_default
22381 #include <$ac_header>
22382 _ACEOF
22383 rm -f conftest.$ac_objext
22384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22385 (eval $ac_compile) 2>&5
22386 ac_status=$?
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } &&
22389 { ac_try='test -s conftest.$ac_objext'
22390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22391 (eval $ac_try) 2>&5
22392 ac_status=$?
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); }; }; then
22395 ac_header_compiler=yes
22396 else
22397 echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22400 ac_header_compiler=no
22402 rm -f conftest.$ac_objext conftest.$ac_ext
22403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22404 echo "${ECHO_T}$ac_header_compiler" >&6
22406 # Is the header present?
22407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22409 cat >conftest.$ac_ext <<_ACEOF
22410 #line $LINENO "configure"
22411 /* confdefs.h. */
22412 _ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h. */
22416 #include <$ac_header>
22417 _ACEOF
22418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22420 ac_status=$?
22421 grep -v '^ *+' conftest.er1 >conftest.err
22422 rm -f conftest.er1
22423 cat conftest.err >&5
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } >/dev/null; then
22426 if test -s conftest.err; then
22427 ac_cpp_err=$ac_c_preproc_warn_flag
22428 else
22429 ac_cpp_err=
22431 else
22432 ac_cpp_err=yes
22434 if test -z "$ac_cpp_err"; then
22435 ac_header_preproc=yes
22436 else
22437 echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22440 ac_header_preproc=no
22442 rm -f conftest.err conftest.$ac_ext
22443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22444 echo "${ECHO_T}$ac_header_preproc" >&6
22446 # So? What about this header?
22447 case $ac_header_compiler:$ac_header_preproc in
22448 yes:no )
22449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22454 cat <<\_ASBOX
22455 ## ------------------------------------ ##
22456 ## Report this to bug-autoconf@gnu.org. ##
22457 ## ------------------------------------ ##
22458 _ASBOX
22460 sed "s/^/$as_me: WARNING: /" >&2
22462 no:yes )
22463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22470 cat <<\_ASBOX
22471 ## ------------------------------------ ##
22472 ## Report this to bug-autoconf@gnu.org. ##
22473 ## ------------------------------------ ##
22474 _ASBOX
22476 sed "s/^/$as_me: WARNING: /" >&2
22478 esac
22479 echo "$as_me:$LINENO: checking for $ac_header" >&5
22480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22482 echo $ECHO_N "(cached) $ECHO_C" >&6
22483 else
22484 eval "$as_ac_Header=$ac_header_preproc"
22486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22491 cat >>confdefs.h <<_ACEOF
22492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22493 _ACEOF
22497 done
22499 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22500 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22501 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22502 echo $ECHO_N "(cached) $ECHO_C" >&6
22503 else
22504 if test "$cross_compiling" = yes; then
22505 ac_cv_func_malloc_0_nonnull=no
22506 else
22507 cat >conftest.$ac_ext <<_ACEOF
22508 #line $LINENO "configure"
22509 /* confdefs.h. */
22510 _ACEOF
22511 cat confdefs.h >>conftest.$ac_ext
22512 cat >>conftest.$ac_ext <<_ACEOF
22513 /* end confdefs.h. */
22514 #if STDC_HEADERS || HAVE_STDLIB_H
22515 # include <stdlib.h>
22516 #else
22517 char *malloc ();
22518 #endif
22521 main ()
22523 exit (malloc (0) ? 0 : 1);
22525 return 0;
22527 _ACEOF
22528 rm -f conftest$ac_exeext
22529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22530 (eval $ac_link) 2>&5
22531 ac_status=$?
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535 (eval $ac_try) 2>&5
22536 ac_status=$?
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); }; }; then
22539 ac_cv_func_malloc_0_nonnull=yes
22540 else
22541 echo "$as_me: program exited with status $ac_status" >&5
22542 echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.$ac_ext >&5
22545 ( exit $ac_status )
22546 ac_cv_func_malloc_0_nonnull=no
22548 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22551 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22552 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22553 if test $ac_cv_func_malloc_0_nonnull = yes; then
22555 cat >>confdefs.h <<\_ACEOF
22556 #define HAVE_MALLOC 1
22557 _ACEOF
22559 else
22560 cat >>confdefs.h <<\_ACEOF
22561 #define HAVE_MALLOC 0
22562 _ACEOF
22564 LIBOBJS="$LIBOBJS malloc.$ac_objext"
22566 cat >>confdefs.h <<\_ACEOF
22567 #define malloc rpl_malloc
22568 _ACEOF
22575 nanosleep_save_libs=$LIBS
22577 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
22578 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22580 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
22581 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
22582 if test "${ac_cv_search_nanosleep+set}" = set; then
22583 echo $ECHO_N "(cached) $ECHO_C" >&6
22584 else
22586 ac_func_search_save_LIBS=$LIBS
22587 ac_cv_search_nanosleep=no
22588 cat >conftest.$ac_ext <<_ACEOF
22589 #line $LINENO "configure"
22590 /* confdefs.h. */
22591 _ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h. */
22596 /* Override any gcc2 internal prototype to avoid an error. */
22597 #ifdef __cplusplus
22598 extern "C"
22599 #endif
22600 /* We use char because int might match the return type of a gcc2
22601 builtin and then its argument prototype would still apply. */
22602 char nanosleep ();
22604 main ()
22606 nanosleep ();
22608 return 0;
22610 _ACEOF
22611 rm -f conftest.$ac_objext conftest$ac_exeext
22612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22613 (eval $ac_link) 2>&5
22614 ac_status=$?
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } &&
22617 { ac_try='test -s conftest$ac_exeext'
22618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619 (eval $ac_try) 2>&5
22620 ac_status=$?
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; }; then
22623 ac_cv_search_nanosleep='none required'
22624 else
22625 echo "$as_me: failed program was:" >&5
22626 sed 's/^/| /' conftest.$ac_ext >&5
22629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22630 if test "$ac_cv_search_nanosleep" = no; then
22631 for ac_lib in rt posix4; do
22632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22633 cat >conftest.$ac_ext <<_ACEOF
22634 #line $LINENO "configure"
22635 /* confdefs.h. */
22636 _ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h. */
22641 /* Override any gcc2 internal prototype to avoid an error. */
22642 #ifdef __cplusplus
22643 extern "C"
22644 #endif
22645 /* We use char because int might match the return type of a gcc2
22646 builtin and then its argument prototype would still apply. */
22647 char nanosleep ();
22649 main ()
22651 nanosleep ();
22653 return 0;
22655 _ACEOF
22656 rm -f conftest.$ac_objext conftest$ac_exeext
22657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22658 (eval $ac_link) 2>&5
22659 ac_status=$?
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); } &&
22662 { ac_try='test -s conftest$ac_exeext'
22663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22664 (eval $ac_try) 2>&5
22665 ac_status=$?
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); }; }; then
22668 ac_cv_search_nanosleep="-l$ac_lib"; break
22669 else
22670 echo "$as_me: failed program was:" >&5
22671 sed 's/^/| /' conftest.$ac_ext >&5
22674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22675 done
22677 LIBS=$ac_func_search_save_LIBS
22680 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
22681 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
22683 if test "$ac_cv_search_nanosleep" = no; then :
22685 else
22686 if test "$ac_cv_search_nanosleep" = 'none required'; then :
22688 else
22689 LIBS="$ac_cv_search_nanosleep $LIBS"
22690 LIB_NANOSLEEP=$ac_cv_search_nanosleep
22696 echo "$as_me:$LINENO: checking whether nanosleep works" >&5
22697 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
22698 if test "${jm_cv_func_nanosleep_works+set}" = set; then
22699 echo $ECHO_N "(cached) $ECHO_C" >&6
22700 else
22703 if test "$cross_compiling" = yes; then
22704 jm_cv_func_nanosleep_works=no
22705 else
22706 cat >conftest.$ac_ext <<_ACEOF
22707 #line $LINENO "configure"
22708 /* confdefs.h. */
22709 _ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22714 # if TIME_WITH_SYS_TIME
22715 # include <sys/time.h>
22716 # include <time.h>
22717 # else
22718 # if HAVE_SYS_TIME_H
22719 # include <sys/time.h>
22720 # else
22721 # include <time.h>
22722 # endif
22723 # endif
22726 main ()
22728 struct timespec ts_sleep, ts_remaining;
22729 ts_sleep.tv_sec = 0;
22730 ts_sleep.tv_nsec = 1;
22731 exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
22734 _ACEOF
22735 rm -f conftest$ac_exeext
22736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22737 (eval $ac_link) 2>&5
22738 ac_status=$?
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742 (eval $ac_try) 2>&5
22743 ac_status=$?
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); }; }; then
22746 jm_cv_func_nanosleep_works=yes
22747 else
22748 echo "$as_me: program exited with status $ac_status" >&5
22749 echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22752 ( exit $ac_status )
22753 jm_cv_func_nanosleep_works=no
22755 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22759 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
22760 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
22761 if test $jm_cv_func_nanosleep_works = no; then
22762 LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
22764 cat >>confdefs.h <<\_ACEOF
22765 #define nanosleep rpl_nanosleep
22766 _ACEOF
22770 LIBS=$nanosleep_save_libs
22772 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
22773 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
22774 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
22775 echo $ECHO_N "(cached) $ECHO_C" >&6
22776 else
22777 cat >conftest.$ac_ext <<_ACEOF
22778 #line $LINENO "configure"
22779 /* confdefs.h. */
22780 _ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22784 $ac_includes_default
22786 main ()
22788 #ifndef clearerr_unlocked
22789 char *p = (char *) clearerr_unlocked;
22790 #endif
22793 return 0;
22795 _ACEOF
22796 rm -f conftest.$ac_objext
22797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22798 (eval $ac_compile) 2>&5
22799 ac_status=$?
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); } &&
22802 { ac_try='test -s conftest.$ac_objext'
22803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22805 ac_status=$?
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; }; then
22808 ac_cv_have_decl_clearerr_unlocked=yes
22809 else
22810 echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22813 ac_cv_have_decl_clearerr_unlocked=no
22815 rm -f conftest.$ac_objext conftest.$ac_ext
22817 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
22818 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
22819 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
22821 cat >>confdefs.h <<_ACEOF
22822 #define HAVE_DECL_CLEARERR_UNLOCKED 1
22823 _ACEOF
22826 else
22827 cat >>confdefs.h <<_ACEOF
22828 #define HAVE_DECL_CLEARERR_UNLOCKED 0
22829 _ACEOF
22833 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22834 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
22835 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22836 echo $ECHO_N "(cached) $ECHO_C" >&6
22837 else
22838 cat >conftest.$ac_ext <<_ACEOF
22839 #line $LINENO "configure"
22840 /* confdefs.h. */
22841 _ACEOF
22842 cat confdefs.h >>conftest.$ac_ext
22843 cat >>conftest.$ac_ext <<_ACEOF
22844 /* end confdefs.h. */
22845 $ac_includes_default
22847 main ()
22849 #ifndef feof_unlocked
22850 char *p = (char *) feof_unlocked;
22851 #endif
22854 return 0;
22856 _ACEOF
22857 rm -f conftest.$ac_objext
22858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22859 (eval $ac_compile) 2>&5
22860 ac_status=$?
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); } &&
22863 { ac_try='test -s conftest.$ac_objext'
22864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865 (eval $ac_try) 2>&5
22866 ac_status=$?
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); }; }; then
22869 ac_cv_have_decl_feof_unlocked=yes
22870 else
22871 echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.$ac_ext >&5
22874 ac_cv_have_decl_feof_unlocked=no
22876 rm -f conftest.$ac_objext conftest.$ac_ext
22878 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22879 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
22880 if test $ac_cv_have_decl_feof_unlocked = yes; then
22882 cat >>confdefs.h <<_ACEOF
22883 #define HAVE_DECL_FEOF_UNLOCKED 1
22884 _ACEOF
22887 else
22888 cat >>confdefs.h <<_ACEOF
22889 #define HAVE_DECL_FEOF_UNLOCKED 0
22890 _ACEOF
22894 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
22895 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
22896 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
22897 echo $ECHO_N "(cached) $ECHO_C" >&6
22898 else
22899 cat >conftest.$ac_ext <<_ACEOF
22900 #line $LINENO "configure"
22901 /* confdefs.h. */
22902 _ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h. */
22906 $ac_includes_default
22908 main ()
22910 #ifndef ferror_unlocked
22911 char *p = (char *) ferror_unlocked;
22912 #endif
22915 return 0;
22917 _ACEOF
22918 rm -f conftest.$ac_objext
22919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22920 (eval $ac_compile) 2>&5
22921 ac_status=$?
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); } &&
22924 { ac_try='test -s conftest.$ac_objext'
22925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926 (eval $ac_try) 2>&5
22927 ac_status=$?
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); }; }; then
22930 ac_cv_have_decl_ferror_unlocked=yes
22931 else
22932 echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22935 ac_cv_have_decl_ferror_unlocked=no
22937 rm -f conftest.$ac_objext conftest.$ac_ext
22939 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
22940 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
22941 if test $ac_cv_have_decl_ferror_unlocked = yes; then
22943 cat >>confdefs.h <<_ACEOF
22944 #define HAVE_DECL_FERROR_UNLOCKED 1
22945 _ACEOF
22948 else
22949 cat >>confdefs.h <<_ACEOF
22950 #define HAVE_DECL_FERROR_UNLOCKED 0
22951 _ACEOF
22955 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
22956 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
22957 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
22958 echo $ECHO_N "(cached) $ECHO_C" >&6
22959 else
22960 cat >conftest.$ac_ext <<_ACEOF
22961 #line $LINENO "configure"
22962 /* confdefs.h. */
22963 _ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h. */
22967 $ac_includes_default
22969 main ()
22971 #ifndef fflush_unlocked
22972 char *p = (char *) fflush_unlocked;
22973 #endif
22976 return 0;
22978 _ACEOF
22979 rm -f conftest.$ac_objext
22980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22981 (eval $ac_compile) 2>&5
22982 ac_status=$?
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); } &&
22985 { ac_try='test -s conftest.$ac_objext'
22986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987 (eval $ac_try) 2>&5
22988 ac_status=$?
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; }; then
22991 ac_cv_have_decl_fflush_unlocked=yes
22992 else
22993 echo "$as_me: failed program was:" >&5
22994 sed 's/^/| /' conftest.$ac_ext >&5
22996 ac_cv_have_decl_fflush_unlocked=no
22998 rm -f conftest.$ac_objext conftest.$ac_ext
23000 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
23001 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
23002 if test $ac_cv_have_decl_fflush_unlocked = yes; then
23004 cat >>confdefs.h <<_ACEOF
23005 #define HAVE_DECL_FFLUSH_UNLOCKED 1
23006 _ACEOF
23009 else
23010 cat >>confdefs.h <<_ACEOF
23011 #define HAVE_DECL_FFLUSH_UNLOCKED 0
23012 _ACEOF
23016 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
23017 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
23018 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
23019 echo $ECHO_N "(cached) $ECHO_C" >&6
23020 else
23021 cat >conftest.$ac_ext <<_ACEOF
23022 #line $LINENO "configure"
23023 /* confdefs.h. */
23024 _ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 $ac_includes_default
23030 main ()
23032 #ifndef fgets_unlocked
23033 char *p = (char *) fgets_unlocked;
23034 #endif
23037 return 0;
23039 _ACEOF
23040 rm -f conftest.$ac_objext
23041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23042 (eval $ac_compile) 2>&5
23043 ac_status=$?
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); } &&
23046 { ac_try='test -s conftest.$ac_objext'
23047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048 (eval $ac_try) 2>&5
23049 ac_status=$?
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23052 ac_cv_have_decl_fgets_unlocked=yes
23053 else
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23057 ac_cv_have_decl_fgets_unlocked=no
23059 rm -f conftest.$ac_objext conftest.$ac_ext
23061 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23062 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
23063 if test $ac_cv_have_decl_fgets_unlocked = yes; then
23065 cat >>confdefs.h <<_ACEOF
23066 #define HAVE_DECL_FGETS_UNLOCKED 1
23067 _ACEOF
23070 else
23071 cat >>confdefs.h <<_ACEOF
23072 #define HAVE_DECL_FGETS_UNLOCKED 0
23073 _ACEOF
23077 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
23078 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
23079 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
23080 echo $ECHO_N "(cached) $ECHO_C" >&6
23081 else
23082 cat >conftest.$ac_ext <<_ACEOF
23083 #line $LINENO "configure"
23084 /* confdefs.h. */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23089 $ac_includes_default
23091 main ()
23093 #ifndef fputc_unlocked
23094 char *p = (char *) fputc_unlocked;
23095 #endif
23098 return 0;
23100 _ACEOF
23101 rm -f conftest.$ac_objext
23102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23103 (eval $ac_compile) 2>&5
23104 ac_status=$?
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); } &&
23107 { ac_try='test -s conftest.$ac_objext'
23108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23109 (eval $ac_try) 2>&5
23110 ac_status=$?
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); }; }; then
23113 ac_cv_have_decl_fputc_unlocked=yes
23114 else
23115 echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23118 ac_cv_have_decl_fputc_unlocked=no
23120 rm -f conftest.$ac_objext conftest.$ac_ext
23122 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
23123 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
23124 if test $ac_cv_have_decl_fputc_unlocked = yes; then
23126 cat >>confdefs.h <<_ACEOF
23127 #define HAVE_DECL_FPUTC_UNLOCKED 1
23128 _ACEOF
23131 else
23132 cat >>confdefs.h <<_ACEOF
23133 #define HAVE_DECL_FPUTC_UNLOCKED 0
23134 _ACEOF
23138 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
23139 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
23140 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
23141 echo $ECHO_N "(cached) $ECHO_C" >&6
23142 else
23143 cat >conftest.$ac_ext <<_ACEOF
23144 #line $LINENO "configure"
23145 /* confdefs.h. */
23146 _ACEOF
23147 cat confdefs.h >>conftest.$ac_ext
23148 cat >>conftest.$ac_ext <<_ACEOF
23149 /* end confdefs.h. */
23150 $ac_includes_default
23152 main ()
23154 #ifndef fputs_unlocked
23155 char *p = (char *) fputs_unlocked;
23156 #endif
23159 return 0;
23161 _ACEOF
23162 rm -f conftest.$ac_objext
23163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23164 (eval $ac_compile) 2>&5
23165 ac_status=$?
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } &&
23168 { ac_try='test -s conftest.$ac_objext'
23169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23170 (eval $ac_try) 2>&5
23171 ac_status=$?
23172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); }; }; then
23174 ac_cv_have_decl_fputs_unlocked=yes
23175 else
23176 echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23179 ac_cv_have_decl_fputs_unlocked=no
23181 rm -f conftest.$ac_objext conftest.$ac_ext
23183 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
23184 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
23185 if test $ac_cv_have_decl_fputs_unlocked = yes; then
23187 cat >>confdefs.h <<_ACEOF
23188 #define HAVE_DECL_FPUTS_UNLOCKED 1
23189 _ACEOF
23192 else
23193 cat >>confdefs.h <<_ACEOF
23194 #define HAVE_DECL_FPUTS_UNLOCKED 0
23195 _ACEOF
23199 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
23200 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
23201 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
23202 echo $ECHO_N "(cached) $ECHO_C" >&6
23203 else
23204 cat >conftest.$ac_ext <<_ACEOF
23205 #line $LINENO "configure"
23206 /* confdefs.h. */
23207 _ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h. */
23211 $ac_includes_default
23213 main ()
23215 #ifndef fread_unlocked
23216 char *p = (char *) fread_unlocked;
23217 #endif
23220 return 0;
23222 _ACEOF
23223 rm -f conftest.$ac_objext
23224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23225 (eval $ac_compile) 2>&5
23226 ac_status=$?
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); } &&
23229 { ac_try='test -s conftest.$ac_objext'
23230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231 (eval $ac_try) 2>&5
23232 ac_status=$?
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); }; }; then
23235 ac_cv_have_decl_fread_unlocked=yes
23236 else
23237 echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23240 ac_cv_have_decl_fread_unlocked=no
23242 rm -f conftest.$ac_objext conftest.$ac_ext
23244 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
23245 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
23246 if test $ac_cv_have_decl_fread_unlocked = yes; then
23248 cat >>confdefs.h <<_ACEOF
23249 #define HAVE_DECL_FREAD_UNLOCKED 1
23250 _ACEOF
23253 else
23254 cat >>confdefs.h <<_ACEOF
23255 #define HAVE_DECL_FREAD_UNLOCKED 0
23256 _ACEOF
23260 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
23261 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
23262 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
23263 echo $ECHO_N "(cached) $ECHO_C" >&6
23264 else
23265 cat >conftest.$ac_ext <<_ACEOF
23266 #line $LINENO "configure"
23267 /* confdefs.h. */
23268 _ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h. */
23272 $ac_includes_default
23274 main ()
23276 #ifndef fwrite_unlocked
23277 char *p = (char *) fwrite_unlocked;
23278 #endif
23281 return 0;
23283 _ACEOF
23284 rm -f conftest.$ac_objext
23285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23286 (eval $ac_compile) 2>&5
23287 ac_status=$?
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); } &&
23290 { ac_try='test -s conftest.$ac_objext'
23291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292 (eval $ac_try) 2>&5
23293 ac_status=$?
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); }; }; then
23296 ac_cv_have_decl_fwrite_unlocked=yes
23297 else
23298 echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.$ac_ext >&5
23301 ac_cv_have_decl_fwrite_unlocked=no
23303 rm -f conftest.$ac_objext conftest.$ac_ext
23305 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
23306 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
23307 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
23309 cat >>confdefs.h <<_ACEOF
23310 #define HAVE_DECL_FWRITE_UNLOCKED 1
23311 _ACEOF
23314 else
23315 cat >>confdefs.h <<_ACEOF
23316 #define HAVE_DECL_FWRITE_UNLOCKED 0
23317 _ACEOF
23321 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23322 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
23323 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23324 echo $ECHO_N "(cached) $ECHO_C" >&6
23325 else
23326 cat >conftest.$ac_ext <<_ACEOF
23327 #line $LINENO "configure"
23328 /* confdefs.h. */
23329 _ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h. */
23333 $ac_includes_default
23335 main ()
23337 #ifndef getc_unlocked
23338 char *p = (char *) getc_unlocked;
23339 #endif
23342 return 0;
23344 _ACEOF
23345 rm -f conftest.$ac_objext
23346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23347 (eval $ac_compile) 2>&5
23348 ac_status=$?
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } &&
23351 { ac_try='test -s conftest.$ac_objext'
23352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23354 ac_status=$?
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; }; then
23357 ac_cv_have_decl_getc_unlocked=yes
23358 else
23359 echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23362 ac_cv_have_decl_getc_unlocked=no
23364 rm -f conftest.$ac_objext conftest.$ac_ext
23366 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23367 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
23368 if test $ac_cv_have_decl_getc_unlocked = yes; then
23370 cat >>confdefs.h <<_ACEOF
23371 #define HAVE_DECL_GETC_UNLOCKED 1
23372 _ACEOF
23375 else
23376 cat >>confdefs.h <<_ACEOF
23377 #define HAVE_DECL_GETC_UNLOCKED 0
23378 _ACEOF
23382 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
23383 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
23384 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
23385 echo $ECHO_N "(cached) $ECHO_C" >&6
23386 else
23387 cat >conftest.$ac_ext <<_ACEOF
23388 #line $LINENO "configure"
23389 /* confdefs.h. */
23390 _ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h. */
23394 $ac_includes_default
23396 main ()
23398 #ifndef getchar_unlocked
23399 char *p = (char *) getchar_unlocked;
23400 #endif
23403 return 0;
23405 _ACEOF
23406 rm -f conftest.$ac_objext
23407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23408 (eval $ac_compile) 2>&5
23409 ac_status=$?
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } &&
23412 { ac_try='test -s conftest.$ac_objext'
23413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23414 (eval $ac_try) 2>&5
23415 ac_status=$?
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); }; }; then
23418 ac_cv_have_decl_getchar_unlocked=yes
23419 else
23420 echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23423 ac_cv_have_decl_getchar_unlocked=no
23425 rm -f conftest.$ac_objext conftest.$ac_ext
23427 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
23428 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
23429 if test $ac_cv_have_decl_getchar_unlocked = yes; then
23431 cat >>confdefs.h <<_ACEOF
23432 #define HAVE_DECL_GETCHAR_UNLOCKED 1
23433 _ACEOF
23436 else
23437 cat >>confdefs.h <<_ACEOF
23438 #define HAVE_DECL_GETCHAR_UNLOCKED 0
23439 _ACEOF
23443 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
23444 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
23445 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
23446 echo $ECHO_N "(cached) $ECHO_C" >&6
23447 else
23448 cat >conftest.$ac_ext <<_ACEOF
23449 #line $LINENO "configure"
23450 /* confdefs.h. */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23455 $ac_includes_default
23457 main ()
23459 #ifndef putc_unlocked
23460 char *p = (char *) putc_unlocked;
23461 #endif
23464 return 0;
23466 _ACEOF
23467 rm -f conftest.$ac_objext
23468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23469 (eval $ac_compile) 2>&5
23470 ac_status=$?
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); } &&
23473 { ac_try='test -s conftest.$ac_objext'
23474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23475 (eval $ac_try) 2>&5
23476 ac_status=$?
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); }; }; then
23479 ac_cv_have_decl_putc_unlocked=yes
23480 else
23481 echo "$as_me: failed program was:" >&5
23482 sed 's/^/| /' conftest.$ac_ext >&5
23484 ac_cv_have_decl_putc_unlocked=no
23486 rm -f conftest.$ac_objext conftest.$ac_ext
23488 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
23489 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
23490 if test $ac_cv_have_decl_putc_unlocked = yes; then
23492 cat >>confdefs.h <<_ACEOF
23493 #define HAVE_DECL_PUTC_UNLOCKED 1
23494 _ACEOF
23497 else
23498 cat >>confdefs.h <<_ACEOF
23499 #define HAVE_DECL_PUTC_UNLOCKED 0
23500 _ACEOF
23504 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
23505 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
23506 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
23507 echo $ECHO_N "(cached) $ECHO_C" >&6
23508 else
23509 cat >conftest.$ac_ext <<_ACEOF
23510 #line $LINENO "configure"
23511 /* confdefs.h. */
23512 _ACEOF
23513 cat confdefs.h >>conftest.$ac_ext
23514 cat >>conftest.$ac_ext <<_ACEOF
23515 /* end confdefs.h. */
23516 $ac_includes_default
23518 main ()
23520 #ifndef putchar_unlocked
23521 char *p = (char *) putchar_unlocked;
23522 #endif
23525 return 0;
23527 _ACEOF
23528 rm -f conftest.$ac_objext
23529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23530 (eval $ac_compile) 2>&5
23531 ac_status=$?
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); } &&
23534 { ac_try='test -s conftest.$ac_objext'
23535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23536 (eval $ac_try) 2>&5
23537 ac_status=$?
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); }; }; then
23540 ac_cv_have_decl_putchar_unlocked=yes
23541 else
23542 echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23545 ac_cv_have_decl_putchar_unlocked=no
23547 rm -f conftest.$ac_objext conftest.$ac_ext
23549 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
23550 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
23551 if test $ac_cv_have_decl_putchar_unlocked = yes; then
23553 cat >>confdefs.h <<_ACEOF
23554 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
23555 _ACEOF
23558 else
23559 cat >>confdefs.h <<_ACEOF
23560 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
23561 _ACEOF
23568 echo "$as_me:$LINENO: checking for group_member" >&5
23569 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
23570 if test "${ac_cv_func_group_member+set}" = set; then
23571 echo $ECHO_N "(cached) $ECHO_C" >&6
23572 else
23573 cat >conftest.$ac_ext <<_ACEOF
23574 #line $LINENO "configure"
23575 /* confdefs.h. */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 /* System header to define __stub macros and hopefully few prototypes,
23581 which can conflict with char group_member (); below.
23582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23583 <limits.h> exists even on freestanding compilers. */
23584 #ifdef __STDC__
23585 # include <limits.h>
23586 #else
23587 # include <assert.h>
23588 #endif
23589 /* Override any gcc2 internal prototype to avoid an error. */
23590 #ifdef __cplusplus
23591 extern "C"
23593 #endif
23594 /* We use char because int might match the return type of a gcc2
23595 builtin and then its argument prototype would still apply. */
23596 char group_member ();
23597 /* The GNU C library defines this for functions which it implements
23598 to always fail with ENOSYS. Some functions are actually named
23599 something starting with __ and the normal name is an alias. */
23600 #if defined (__stub_group_member) || defined (__stub___group_member)
23601 choke me
23602 #else
23603 char (*f) () = group_member;
23604 #endif
23605 #ifdef __cplusplus
23607 #endif
23610 main ()
23612 return f != group_member;
23614 return 0;
23616 _ACEOF
23617 rm -f conftest.$ac_objext conftest$ac_exeext
23618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23619 (eval $ac_link) 2>&5
23620 ac_status=$?
23621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622 (exit $ac_status); } &&
23623 { ac_try='test -s conftest$ac_exeext'
23624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23625 (eval $ac_try) 2>&5
23626 ac_status=$?
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); }; }; then
23629 ac_cv_func_group_member=yes
23630 else
23631 echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23634 ac_cv_func_group_member=no
23636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23638 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
23639 echo "${ECHO_T}$ac_cv_func_group_member" >&6
23640 if test $ac_cv_func_group_member = yes; then
23642 else
23643 LIBOBJS="$LIBOBJS group-member.$ac_objext"
23648 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
23649 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
23650 if test "${jm_cv_func_svid_putenv+set}" = set; then
23651 echo $ECHO_N "(cached) $ECHO_C" >&6
23652 else
23653 if test "$cross_compiling" = yes; then
23654 jm_cv_func_svid_putenv=no
23655 else
23656 cat >conftest.$ac_ext <<_ACEOF
23657 #line $LINENO "configure"
23658 /* confdefs.h. */
23659 _ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h. */
23665 main ()
23667 /* Put it in env. */
23668 if (putenv ("CONFTEST_putenv=val"))
23669 exit (1);
23671 /* Try to remove it. */
23672 if (putenv ("CONFTEST_putenv"))
23673 exit (1);
23675 /* Make sure it was deleted. */
23676 if (getenv ("CONFTEST_putenv") != 0)
23677 exit (1);
23679 exit (0);
23682 _ACEOF
23683 rm -f conftest$ac_exeext
23684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23685 (eval $ac_link) 2>&5
23686 ac_status=$?
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690 (eval $ac_try) 2>&5
23691 ac_status=$?
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); }; }; then
23694 jm_cv_func_svid_putenv=yes
23695 else
23696 echo "$as_me: program exited with status $ac_status" >&5
23697 echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.$ac_ext >&5
23700 ( exit $ac_status )
23701 jm_cv_func_svid_putenv=no
23703 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23707 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
23708 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
23709 if test $jm_cv_func_svid_putenv = no; then
23710 LIBOBJS="$LIBOBJS putenv.$ac_objext"
23712 cat >>confdefs.h <<\_ACEOF
23713 #define putenv rpl_putenv
23714 _ACEOF
23719 echo "$as_me:$LINENO: checking for AFS" >&5
23720 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
23721 if test -d /afs; then
23723 cat >>confdefs.h <<\_ACEOF
23724 #define AFS 1
23725 _ACEOF
23727 ac_result=yes
23728 else
23729 ac_result=no
23731 echo "$as_me:$LINENO: result: $ac_result" >&5
23732 echo "${ECHO_T}$ac_result" >&6
23736 echo "$as_me:$LINENO: checking for intmax_t" >&5
23737 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23738 if test "${ac_cv_type_intmax_t+set}" = set; then
23739 echo $ECHO_N "(cached) $ECHO_C" >&6
23740 else
23741 cat >conftest.$ac_ext <<_ACEOF
23742 #line $LINENO "configure"
23743 /* confdefs.h. */
23744 _ACEOF
23745 cat confdefs.h >>conftest.$ac_ext
23746 cat >>conftest.$ac_ext <<_ACEOF
23747 /* end confdefs.h. */
23748 $ac_includes_default
23750 main ()
23752 if ((intmax_t *) 0)
23753 return 0;
23754 if (sizeof (intmax_t))
23755 return 0;
23757 return 0;
23759 _ACEOF
23760 rm -f conftest.$ac_objext
23761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23762 (eval $ac_compile) 2>&5
23763 ac_status=$?
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); } &&
23766 { ac_try='test -s conftest.$ac_objext'
23767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23768 (eval $ac_try) 2>&5
23769 ac_status=$?
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); }; }; then
23772 ac_cv_type_intmax_t=yes
23773 else
23774 echo "$as_me: failed program was:" >&5
23775 sed 's/^/| /' conftest.$ac_ext >&5
23777 ac_cv_type_intmax_t=no
23779 rm -f conftest.$ac_objext conftest.$ac_ext
23781 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
23782 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
23783 if test $ac_cv_type_intmax_t = yes; then
23785 else
23786 test $ac_cv_type_long_long = yes \
23787 && ac_type='long long' \
23788 || ac_type='long'
23790 cat >>confdefs.h <<_ACEOF
23791 #define intmax_t $ac_type
23792 _ACEOF
23802 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
23803 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
23804 if test "${ac_cv_have_decl_strtol+set}" = set; then
23805 echo $ECHO_N "(cached) $ECHO_C" >&6
23806 else
23807 cat >conftest.$ac_ext <<_ACEOF
23808 #line $LINENO "configure"
23809 /* confdefs.h. */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23814 $ac_includes_default
23816 main ()
23818 #ifndef strtol
23819 char *p = (char *) strtol;
23820 #endif
23823 return 0;
23825 _ACEOF
23826 rm -f conftest.$ac_objext
23827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23828 (eval $ac_compile) 2>&5
23829 ac_status=$?
23830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831 (exit $ac_status); } &&
23832 { ac_try='test -s conftest.$ac_objext'
23833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23834 (eval $ac_try) 2>&5
23835 ac_status=$?
23836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837 (exit $ac_status); }; }; then
23838 ac_cv_have_decl_strtol=yes
23839 else
23840 echo "$as_me: failed program was:" >&5
23841 sed 's/^/| /' conftest.$ac_ext >&5
23843 ac_cv_have_decl_strtol=no
23845 rm -f conftest.$ac_objext conftest.$ac_ext
23847 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
23848 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
23849 if test $ac_cv_have_decl_strtol = yes; then
23851 cat >>confdefs.h <<_ACEOF
23852 #define HAVE_DECL_STRTOL 1
23853 _ACEOF
23856 else
23857 cat >>confdefs.h <<_ACEOF
23858 #define HAVE_DECL_STRTOL 0
23859 _ACEOF
23863 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
23864 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
23865 if test "${ac_cv_have_decl_strtoul+set}" = set; then
23866 echo $ECHO_N "(cached) $ECHO_C" >&6
23867 else
23868 cat >conftest.$ac_ext <<_ACEOF
23869 #line $LINENO "configure"
23870 /* confdefs.h. */
23871 _ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h. */
23875 $ac_includes_default
23877 main ()
23879 #ifndef strtoul
23880 char *p = (char *) strtoul;
23881 #endif
23884 return 0;
23886 _ACEOF
23887 rm -f conftest.$ac_objext
23888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23889 (eval $ac_compile) 2>&5
23890 ac_status=$?
23891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); } &&
23893 { ac_try='test -s conftest.$ac_objext'
23894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23895 (eval $ac_try) 2>&5
23896 ac_status=$?
23897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); }; }; then
23899 ac_cv_have_decl_strtoul=yes
23900 else
23901 echo "$as_me: failed program was:" >&5
23902 sed 's/^/| /' conftest.$ac_ext >&5
23904 ac_cv_have_decl_strtoul=no
23906 rm -f conftest.$ac_objext conftest.$ac_ext
23908 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
23909 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
23910 if test $ac_cv_have_decl_strtoul = yes; then
23912 cat >>confdefs.h <<_ACEOF
23913 #define HAVE_DECL_STRTOUL 1
23914 _ACEOF
23917 else
23918 cat >>confdefs.h <<_ACEOF
23919 #define HAVE_DECL_STRTOUL 0
23920 _ACEOF
23924 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
23925 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
23926 if test "${ac_cv_have_decl_strtoull+set}" = set; then
23927 echo $ECHO_N "(cached) $ECHO_C" >&6
23928 else
23929 cat >conftest.$ac_ext <<_ACEOF
23930 #line $LINENO "configure"
23931 /* confdefs.h. */
23932 _ACEOF
23933 cat confdefs.h >>conftest.$ac_ext
23934 cat >>conftest.$ac_ext <<_ACEOF
23935 /* end confdefs.h. */
23936 $ac_includes_default
23938 main ()
23940 #ifndef strtoull
23941 char *p = (char *) strtoull;
23942 #endif
23945 return 0;
23947 _ACEOF
23948 rm -f conftest.$ac_objext
23949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23950 (eval $ac_compile) 2>&5
23951 ac_status=$?
23952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953 (exit $ac_status); } &&
23954 { ac_try='test -s conftest.$ac_objext'
23955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23956 (eval $ac_try) 2>&5
23957 ac_status=$?
23958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959 (exit $ac_status); }; }; then
23960 ac_cv_have_decl_strtoull=yes
23961 else
23962 echo "$as_me: failed program was:" >&5
23963 sed 's/^/| /' conftest.$ac_ext >&5
23965 ac_cv_have_decl_strtoull=no
23967 rm -f conftest.$ac_objext conftest.$ac_ext
23969 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
23970 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
23971 if test $ac_cv_have_decl_strtoull = yes; then
23973 cat >>confdefs.h <<_ACEOF
23974 #define HAVE_DECL_STRTOULL 1
23975 _ACEOF
23978 else
23979 cat >>confdefs.h <<_ACEOF
23980 #define HAVE_DECL_STRTOULL 0
23981 _ACEOF
23985 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
23986 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
23987 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
23988 echo $ECHO_N "(cached) $ECHO_C" >&6
23989 else
23990 cat >conftest.$ac_ext <<_ACEOF
23991 #line $LINENO "configure"
23992 /* confdefs.h. */
23993 _ACEOF
23994 cat confdefs.h >>conftest.$ac_ext
23995 cat >>conftest.$ac_ext <<_ACEOF
23996 /* end confdefs.h. */
23997 $ac_includes_default
23999 main ()
24001 #ifndef strtoimax
24002 char *p = (char *) strtoimax;
24003 #endif
24006 return 0;
24008 _ACEOF
24009 rm -f conftest.$ac_objext
24010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24011 (eval $ac_compile) 2>&5
24012 ac_status=$?
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); } &&
24015 { ac_try='test -s conftest.$ac_objext'
24016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24017 (eval $ac_try) 2>&5
24018 ac_status=$?
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); }; }; then
24021 ac_cv_have_decl_strtoimax=yes
24022 else
24023 echo "$as_me: failed program was:" >&5
24024 sed 's/^/| /' conftest.$ac_ext >&5
24026 ac_cv_have_decl_strtoimax=no
24028 rm -f conftest.$ac_objext conftest.$ac_ext
24030 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
24031 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
24032 if test $ac_cv_have_decl_strtoimax = yes; then
24034 cat >>confdefs.h <<_ACEOF
24035 #define HAVE_DECL_STRTOIMAX 1
24036 _ACEOF
24039 else
24040 cat >>confdefs.h <<_ACEOF
24041 #define HAVE_DECL_STRTOIMAX 0
24042 _ACEOF
24046 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
24047 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
24048 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
24049 echo $ECHO_N "(cached) $ECHO_C" >&6
24050 else
24051 cat >conftest.$ac_ext <<_ACEOF
24052 #line $LINENO "configure"
24053 /* confdefs.h. */
24054 _ACEOF
24055 cat confdefs.h >>conftest.$ac_ext
24056 cat >>conftest.$ac_ext <<_ACEOF
24057 /* end confdefs.h. */
24058 $ac_includes_default
24060 main ()
24062 #ifndef strtoumax
24063 char *p = (char *) strtoumax;
24064 #endif
24067 return 0;
24069 _ACEOF
24070 rm -f conftest.$ac_objext
24071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24072 (eval $ac_compile) 2>&5
24073 ac_status=$?
24074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075 (exit $ac_status); } &&
24076 { ac_try='test -s conftest.$ac_objext'
24077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24078 (eval $ac_try) 2>&5
24079 ac_status=$?
24080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); }; }; then
24082 ac_cv_have_decl_strtoumax=yes
24083 else
24084 echo "$as_me: failed program was:" >&5
24085 sed 's/^/| /' conftest.$ac_ext >&5
24087 ac_cv_have_decl_strtoumax=no
24089 rm -f conftest.$ac_objext conftest.$ac_ext
24091 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
24092 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
24093 if test $ac_cv_have_decl_strtoumax = yes; then
24095 cat >>confdefs.h <<_ACEOF
24096 #define HAVE_DECL_STRTOUMAX 1
24097 _ACEOF
24100 else
24101 cat >>confdefs.h <<_ACEOF
24102 #define HAVE_DECL_STRTOUMAX 0
24103 _ACEOF
24112 for ac_header in limits.h stdlib.h inttypes.h
24114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24116 echo "$as_me:$LINENO: checking for $ac_header" >&5
24117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24119 echo $ECHO_N "(cached) $ECHO_C" >&6
24121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24123 else
24124 # Is the header compilable?
24125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24127 cat >conftest.$ac_ext <<_ACEOF
24128 #line $LINENO "configure"
24129 /* confdefs.h. */
24130 _ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h. */
24134 $ac_includes_default
24135 #include <$ac_header>
24136 _ACEOF
24137 rm -f conftest.$ac_objext
24138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24139 (eval $ac_compile) 2>&5
24140 ac_status=$?
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); } &&
24143 { ac_try='test -s conftest.$ac_objext'
24144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24145 (eval $ac_try) 2>&5
24146 ac_status=$?
24147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148 (exit $ac_status); }; }; then
24149 ac_header_compiler=yes
24150 else
24151 echo "$as_me: failed program was:" >&5
24152 sed 's/^/| /' conftest.$ac_ext >&5
24154 ac_header_compiler=no
24156 rm -f conftest.$ac_objext conftest.$ac_ext
24157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24158 echo "${ECHO_T}$ac_header_compiler" >&6
24160 # Is the header present?
24161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24163 cat >conftest.$ac_ext <<_ACEOF
24164 #line $LINENO "configure"
24165 /* confdefs.h. */
24166 _ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h. */
24170 #include <$ac_header>
24171 _ACEOF
24172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24174 ac_status=$?
24175 grep -v '^ *+' conftest.er1 >conftest.err
24176 rm -f conftest.er1
24177 cat conftest.err >&5
24178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); } >/dev/null; then
24180 if test -s conftest.err; then
24181 ac_cpp_err=$ac_c_preproc_warn_flag
24182 else
24183 ac_cpp_err=
24185 else
24186 ac_cpp_err=yes
24188 if test -z "$ac_cpp_err"; then
24189 ac_header_preproc=yes
24190 else
24191 echo "$as_me: failed program was:" >&5
24192 sed 's/^/| /' conftest.$ac_ext >&5
24194 ac_header_preproc=no
24196 rm -f conftest.err conftest.$ac_ext
24197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24198 echo "${ECHO_T}$ac_header_preproc" >&6
24200 # So? What about this header?
24201 case $ac_header_compiler:$ac_header_preproc in
24202 yes:no )
24203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24208 cat <<\_ASBOX
24209 ## ------------------------------------ ##
24210 ## Report this to bug-autoconf@gnu.org. ##
24211 ## ------------------------------------ ##
24212 _ASBOX
24214 sed "s/^/$as_me: WARNING: /" >&2
24216 no:yes )
24217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24224 cat <<\_ASBOX
24225 ## ------------------------------------ ##
24226 ## Report this to bug-autoconf@gnu.org. ##
24227 ## ------------------------------------ ##
24228 _ASBOX
24230 sed "s/^/$as_me: WARNING: /" >&2
24232 esac
24233 echo "$as_me:$LINENO: checking for $ac_header" >&5
24234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24236 echo $ECHO_N "(cached) $ECHO_C" >&6
24237 else
24238 eval "$as_ac_Header=$ac_header_preproc"
24240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24245 cat >>confdefs.h <<_ACEOF
24246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24247 _ACEOF
24251 done
24254 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
24255 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
24256 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
24257 echo $ECHO_N "(cached) $ECHO_C" >&6
24258 else
24259 cat >conftest.$ac_ext <<_ACEOF
24260 #line $LINENO "configure"
24261 /* confdefs.h. */
24262 _ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h. */
24266 #include <inttypes.h>
24267 #ifdef strtoumax
24268 inttypes_h_defines_strtoumax
24269 #endif
24270 _ACEOF
24271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24272 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
24273 jm_cv_func_strtoumax_macro=yes
24274 else
24275 jm_cv_func_strtoumax_macro=no
24277 rm -f conftest*
24280 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
24281 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
24283 if test "$jm_cv_func_strtoumax_macro" != yes; then
24285 for ac_func in strtoumax
24287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24288 echo "$as_me:$LINENO: checking for $ac_func" >&5
24289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24290 if eval "test \"\${$as_ac_var+set}\" = set"; then
24291 echo $ECHO_N "(cached) $ECHO_C" >&6
24292 else
24293 cat >conftest.$ac_ext <<_ACEOF
24294 #line $LINENO "configure"
24295 /* confdefs.h. */
24296 _ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24300 /* System header to define __stub macros and hopefully few prototypes,
24301 which can conflict with char $ac_func (); below.
24302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24303 <limits.h> exists even on freestanding compilers. */
24304 #ifdef __STDC__
24305 # include <limits.h>
24306 #else
24307 # include <assert.h>
24308 #endif
24309 /* Override any gcc2 internal prototype to avoid an error. */
24310 #ifdef __cplusplus
24311 extern "C"
24313 #endif
24314 /* We use char because int might match the return type of a gcc2
24315 builtin and then its argument prototype would still apply. */
24316 char $ac_func ();
24317 /* The GNU C library defines this for functions which it implements
24318 to always fail with ENOSYS. Some functions are actually named
24319 something starting with __ and the normal name is an alias. */
24320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24321 choke me
24322 #else
24323 char (*f) () = $ac_func;
24324 #endif
24325 #ifdef __cplusplus
24327 #endif
24330 main ()
24332 return f != $ac_func;
24334 return 0;
24336 _ACEOF
24337 rm -f conftest.$ac_objext conftest$ac_exeext
24338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24339 (eval $ac_link) 2>&5
24340 ac_status=$?
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); } &&
24343 { ac_try='test -s conftest$ac_exeext'
24344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345 (eval $ac_try) 2>&5
24346 ac_status=$?
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); }; }; then
24349 eval "$as_ac_var=yes"
24350 else
24351 echo "$as_me: failed program was:" >&5
24352 sed 's/^/| /' conftest.$ac_ext >&5
24354 eval "$as_ac_var=no"
24356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24360 if test `eval echo '${'$as_ac_var'}'` = yes; then
24361 cat >>confdefs.h <<_ACEOF
24362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24363 _ACEOF
24365 else
24366 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24368 done
24373 case "$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
24374 no,no)
24376 for ac_func in strtoul
24378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24379 echo "$as_me:$LINENO: checking for $ac_func" >&5
24380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24381 if eval "test \"\${$as_ac_var+set}\" = set"; then
24382 echo $ECHO_N "(cached) $ECHO_C" >&6
24383 else
24384 cat >conftest.$ac_ext <<_ACEOF
24385 #line $LINENO "configure"
24386 /* confdefs.h. */
24387 _ACEOF
24388 cat confdefs.h >>conftest.$ac_ext
24389 cat >>conftest.$ac_ext <<_ACEOF
24390 /* end confdefs.h. */
24391 /* System header to define __stub macros and hopefully few prototypes,
24392 which can conflict with char $ac_func (); below.
24393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24394 <limits.h> exists even on freestanding compilers. */
24395 #ifdef __STDC__
24396 # include <limits.h>
24397 #else
24398 # include <assert.h>
24399 #endif
24400 /* Override any gcc2 internal prototype to avoid an error. */
24401 #ifdef __cplusplus
24402 extern "C"
24404 #endif
24405 /* We use char because int might match the return type of a gcc2
24406 builtin and then its argument prototype would still apply. */
24407 char $ac_func ();
24408 /* The GNU C library defines this for functions which it implements
24409 to always fail with ENOSYS. Some functions are actually named
24410 something starting with __ and the normal name is an alias. */
24411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24412 choke me
24413 #else
24414 char (*f) () = $ac_func;
24415 #endif
24416 #ifdef __cplusplus
24418 #endif
24421 main ()
24423 return f != $ac_func;
24425 return 0;
24427 _ACEOF
24428 rm -f conftest.$ac_objext conftest$ac_exeext
24429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24430 (eval $ac_link) 2>&5
24431 ac_status=$?
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); } &&
24434 { ac_try='test -s conftest$ac_exeext'
24435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436 (eval $ac_try) 2>&5
24437 ac_status=$?
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); }; }; then
24440 eval "$as_ac_var=yes"
24441 else
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24445 eval "$as_ac_var=no"
24447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24451 if test `eval echo '${'$as_ac_var'}'` = yes; then
24452 cat >>confdefs.h <<_ACEOF
24453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24454 _ACEOF
24456 else
24457 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24459 done
24463 if test "$ac_cv_type_unsigned_long_long" = yes; then
24465 for ac_func in strtoull
24467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24468 echo "$as_me:$LINENO: checking for $ac_func" >&5
24469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24470 if eval "test \"\${$as_ac_var+set}\" = set"; then
24471 echo $ECHO_N "(cached) $ECHO_C" >&6
24472 else
24473 cat >conftest.$ac_ext <<_ACEOF
24474 #line $LINENO "configure"
24475 /* confdefs.h. */
24476 _ACEOF
24477 cat confdefs.h >>conftest.$ac_ext
24478 cat >>conftest.$ac_ext <<_ACEOF
24479 /* end confdefs.h. */
24480 /* System header to define __stub macros and hopefully few prototypes,
24481 which can conflict with char $ac_func (); below.
24482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24483 <limits.h> exists even on freestanding compilers. */
24484 #ifdef __STDC__
24485 # include <limits.h>
24486 #else
24487 # include <assert.h>
24488 #endif
24489 /* Override any gcc2 internal prototype to avoid an error. */
24490 #ifdef __cplusplus
24491 extern "C"
24493 #endif
24494 /* We use char because int might match the return type of a gcc2
24495 builtin and then its argument prototype would still apply. */
24496 char $ac_func ();
24497 /* The GNU C library defines this for functions which it implements
24498 to always fail with ENOSYS. Some functions are actually named
24499 something starting with __ and the normal name is an alias. */
24500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24501 choke me
24502 #else
24503 char (*f) () = $ac_func;
24504 #endif
24505 #ifdef __cplusplus
24507 #endif
24510 main ()
24512 return f != $ac_func;
24514 return 0;
24516 _ACEOF
24517 rm -f conftest.$ac_objext conftest$ac_exeext
24518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24519 (eval $ac_link) 2>&5
24520 ac_status=$?
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); } &&
24523 { ac_try='test -s conftest$ac_exeext'
24524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525 (eval $ac_try) 2>&5
24526 ac_status=$?
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); }; }; then
24529 eval "$as_ac_var=yes"
24530 else
24531 echo "$as_me: failed program was:" >&5
24532 sed 's/^/| /' conftest.$ac_ext >&5
24534 eval "$as_ac_var=no"
24536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24540 if test `eval echo '${'$as_ac_var'}'` = yes; then
24541 cat >>confdefs.h <<_ACEOF
24542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24543 _ACEOF
24545 else
24546 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24548 done
24553 esac
24560 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
24561 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
24562 if test "${ac_cv_have_decl_strtol+set}" = set; then
24563 echo $ECHO_N "(cached) $ECHO_C" >&6
24564 else
24565 cat >conftest.$ac_ext <<_ACEOF
24566 #line $LINENO "configure"
24567 /* confdefs.h. */
24568 _ACEOF
24569 cat confdefs.h >>conftest.$ac_ext
24570 cat >>conftest.$ac_ext <<_ACEOF
24571 /* end confdefs.h. */
24572 $ac_includes_default
24574 main ()
24576 #ifndef strtol
24577 char *p = (char *) strtol;
24578 #endif
24581 return 0;
24583 _ACEOF
24584 rm -f conftest.$ac_objext
24585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24586 (eval $ac_compile) 2>&5
24587 ac_status=$?
24588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 (exit $ac_status); } &&
24590 { ac_try='test -s conftest.$ac_objext'
24591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24592 (eval $ac_try) 2>&5
24593 ac_status=$?
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); }; }; then
24596 ac_cv_have_decl_strtol=yes
24597 else
24598 echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24601 ac_cv_have_decl_strtol=no
24603 rm -f conftest.$ac_objext conftest.$ac_ext
24605 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
24606 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
24607 if test $ac_cv_have_decl_strtol = yes; then
24609 cat >>confdefs.h <<_ACEOF
24610 #define HAVE_DECL_STRTOL 1
24611 _ACEOF
24614 else
24615 cat >>confdefs.h <<_ACEOF
24616 #define HAVE_DECL_STRTOL 0
24617 _ACEOF
24621 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
24622 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
24623 if test "${ac_cv_have_decl_strtoul+set}" = set; then
24624 echo $ECHO_N "(cached) $ECHO_C" >&6
24625 else
24626 cat >conftest.$ac_ext <<_ACEOF
24627 #line $LINENO "configure"
24628 /* confdefs.h. */
24629 _ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h. */
24633 $ac_includes_default
24635 main ()
24637 #ifndef strtoul
24638 char *p = (char *) strtoul;
24639 #endif
24642 return 0;
24644 _ACEOF
24645 rm -f conftest.$ac_objext
24646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24647 (eval $ac_compile) 2>&5
24648 ac_status=$?
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); } &&
24651 { ac_try='test -s conftest.$ac_objext'
24652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24653 (eval $ac_try) 2>&5
24654 ac_status=$?
24655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 (exit $ac_status); }; }; then
24657 ac_cv_have_decl_strtoul=yes
24658 else
24659 echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24662 ac_cv_have_decl_strtoul=no
24664 rm -f conftest.$ac_objext conftest.$ac_ext
24666 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
24667 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
24668 if test $ac_cv_have_decl_strtoul = yes; then
24670 cat >>confdefs.h <<_ACEOF
24671 #define HAVE_DECL_STRTOUL 1
24672 _ACEOF
24675 else
24676 cat >>confdefs.h <<_ACEOF
24677 #define HAVE_DECL_STRTOUL 0
24678 _ACEOF
24682 echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
24683 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
24684 if test "${ac_cv_have_decl_strtoll+set}" = set; then
24685 echo $ECHO_N "(cached) $ECHO_C" >&6
24686 else
24687 cat >conftest.$ac_ext <<_ACEOF
24688 #line $LINENO "configure"
24689 /* confdefs.h. */
24690 _ACEOF
24691 cat confdefs.h >>conftest.$ac_ext
24692 cat >>conftest.$ac_ext <<_ACEOF
24693 /* end confdefs.h. */
24694 $ac_includes_default
24696 main ()
24698 #ifndef strtoll
24699 char *p = (char *) strtoll;
24700 #endif
24703 return 0;
24705 _ACEOF
24706 rm -f conftest.$ac_objext
24707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24708 (eval $ac_compile) 2>&5
24709 ac_status=$?
24710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); } &&
24712 { ac_try='test -s conftest.$ac_objext'
24713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24714 (eval $ac_try) 2>&5
24715 ac_status=$?
24716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); }; }; then
24718 ac_cv_have_decl_strtoll=yes
24719 else
24720 echo "$as_me: failed program was:" >&5
24721 sed 's/^/| /' conftest.$ac_ext >&5
24723 ac_cv_have_decl_strtoll=no
24725 rm -f conftest.$ac_objext conftest.$ac_ext
24727 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
24728 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
24729 if test $ac_cv_have_decl_strtoll = yes; then
24731 cat >>confdefs.h <<_ACEOF
24732 #define HAVE_DECL_STRTOLL 1
24733 _ACEOF
24736 else
24737 cat >>confdefs.h <<_ACEOF
24738 #define HAVE_DECL_STRTOLL 0
24739 _ACEOF
24743 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
24744 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
24745 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
24746 echo $ECHO_N "(cached) $ECHO_C" >&6
24747 else
24748 cat >conftest.$ac_ext <<_ACEOF
24749 #line $LINENO "configure"
24750 /* confdefs.h. */
24751 _ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h. */
24755 $ac_includes_default
24757 main ()
24759 #ifndef strtoimax
24760 char *p = (char *) strtoimax;
24761 #endif
24764 return 0;
24766 _ACEOF
24767 rm -f conftest.$ac_objext
24768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24769 (eval $ac_compile) 2>&5
24770 ac_status=$?
24771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); } &&
24773 { ac_try='test -s conftest.$ac_objext'
24774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24775 (eval $ac_try) 2>&5
24776 ac_status=$?
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); }; }; then
24779 ac_cv_have_decl_strtoimax=yes
24780 else
24781 echo "$as_me: failed program was:" >&5
24782 sed 's/^/| /' conftest.$ac_ext >&5
24784 ac_cv_have_decl_strtoimax=no
24786 rm -f conftest.$ac_objext conftest.$ac_ext
24788 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
24789 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
24790 if test $ac_cv_have_decl_strtoimax = yes; then
24792 cat >>confdefs.h <<_ACEOF
24793 #define HAVE_DECL_STRTOIMAX 1
24794 _ACEOF
24797 else
24798 cat >>confdefs.h <<_ACEOF
24799 #define HAVE_DECL_STRTOIMAX 0
24800 _ACEOF
24804 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
24805 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
24806 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
24807 echo $ECHO_N "(cached) $ECHO_C" >&6
24808 else
24809 cat >conftest.$ac_ext <<_ACEOF
24810 #line $LINENO "configure"
24811 /* confdefs.h. */
24812 _ACEOF
24813 cat confdefs.h >>conftest.$ac_ext
24814 cat >>conftest.$ac_ext <<_ACEOF
24815 /* end confdefs.h. */
24816 $ac_includes_default
24818 main ()
24820 #ifndef strtoumax
24821 char *p = (char *) strtoumax;
24822 #endif
24825 return 0;
24827 _ACEOF
24828 rm -f conftest.$ac_objext
24829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24830 (eval $ac_compile) 2>&5
24831 ac_status=$?
24832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833 (exit $ac_status); } &&
24834 { ac_try='test -s conftest.$ac_objext'
24835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24836 (eval $ac_try) 2>&5
24837 ac_status=$?
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); }; }; then
24840 ac_cv_have_decl_strtoumax=yes
24841 else
24842 echo "$as_me: failed program was:" >&5
24843 sed 's/^/| /' conftest.$ac_ext >&5
24845 ac_cv_have_decl_strtoumax=no
24847 rm -f conftest.$ac_objext conftest.$ac_ext
24849 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
24850 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
24851 if test $ac_cv_have_decl_strtoumax = yes; then
24853 cat >>confdefs.h <<_ACEOF
24854 #define HAVE_DECL_STRTOUMAX 1
24855 _ACEOF
24858 else
24859 cat >>confdefs.h <<_ACEOF
24860 #define HAVE_DECL_STRTOUMAX 0
24861 _ACEOF
24870 for ac_header in limits.h stdlib.h inttypes.h
24872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24874 echo "$as_me:$LINENO: checking for $ac_header" >&5
24875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24877 echo $ECHO_N "(cached) $ECHO_C" >&6
24879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24881 else
24882 # Is the header compilable?
24883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24885 cat >conftest.$ac_ext <<_ACEOF
24886 #line $LINENO "configure"
24887 /* confdefs.h. */
24888 _ACEOF
24889 cat confdefs.h >>conftest.$ac_ext
24890 cat >>conftest.$ac_ext <<_ACEOF
24891 /* end confdefs.h. */
24892 $ac_includes_default
24893 #include <$ac_header>
24894 _ACEOF
24895 rm -f conftest.$ac_objext
24896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24897 (eval $ac_compile) 2>&5
24898 ac_status=$?
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } &&
24901 { ac_try='test -s conftest.$ac_objext'
24902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24903 (eval $ac_try) 2>&5
24904 ac_status=$?
24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 (exit $ac_status); }; }; then
24907 ac_header_compiler=yes
24908 else
24909 echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.$ac_ext >&5
24912 ac_header_compiler=no
24914 rm -f conftest.$ac_objext conftest.$ac_ext
24915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24916 echo "${ECHO_T}$ac_header_compiler" >&6
24918 # Is the header present?
24919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24921 cat >conftest.$ac_ext <<_ACEOF
24922 #line $LINENO "configure"
24923 /* confdefs.h. */
24924 _ACEOF
24925 cat confdefs.h >>conftest.$ac_ext
24926 cat >>conftest.$ac_ext <<_ACEOF
24927 /* end confdefs.h. */
24928 #include <$ac_header>
24929 _ACEOF
24930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24932 ac_status=$?
24933 grep -v '^ *+' conftest.er1 >conftest.err
24934 rm -f conftest.er1
24935 cat conftest.err >&5
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); } >/dev/null; then
24938 if test -s conftest.err; then
24939 ac_cpp_err=$ac_c_preproc_warn_flag
24940 else
24941 ac_cpp_err=
24943 else
24944 ac_cpp_err=yes
24946 if test -z "$ac_cpp_err"; then
24947 ac_header_preproc=yes
24948 else
24949 echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24952 ac_header_preproc=no
24954 rm -f conftest.err conftest.$ac_ext
24955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24956 echo "${ECHO_T}$ac_header_preproc" >&6
24958 # So? What about this header?
24959 case $ac_header_compiler:$ac_header_preproc in
24960 yes:no )
24961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24966 cat <<\_ASBOX
24967 ## ------------------------------------ ##
24968 ## Report this to bug-autoconf@gnu.org. ##
24969 ## ------------------------------------ ##
24970 _ASBOX
24972 sed "s/^/$as_me: WARNING: /" >&2
24974 no:yes )
24975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24982 cat <<\_ASBOX
24983 ## ------------------------------------ ##
24984 ## Report this to bug-autoconf@gnu.org. ##
24985 ## ------------------------------------ ##
24986 _ASBOX
24988 sed "s/^/$as_me: WARNING: /" >&2
24990 esac
24991 echo "$as_me:$LINENO: checking for $ac_header" >&5
24992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24994 echo $ECHO_N "(cached) $ECHO_C" >&6
24995 else
24996 eval "$as_ac_Header=$ac_header_preproc"
24998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25003 cat >>confdefs.h <<_ACEOF
25004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25005 _ACEOF
25009 done
25012 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
25013 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
25014 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
25015 echo $ECHO_N "(cached) $ECHO_C" >&6
25016 else
25017 cat >conftest.$ac_ext <<_ACEOF
25018 #line $LINENO "configure"
25019 /* confdefs.h. */
25020 _ACEOF
25021 cat confdefs.h >>conftest.$ac_ext
25022 cat >>conftest.$ac_ext <<_ACEOF
25023 /* end confdefs.h. */
25024 #include <inttypes.h>
25025 #ifdef strtoimax
25026 inttypes_h_defines_strtoimax
25027 #endif
25028 _ACEOF
25029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25030 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
25031 jm_cv_func_strtoimax_macro=yes
25032 else
25033 jm_cv_func_strtoimax_macro=no
25035 rm -f conftest*
25038 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
25039 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
25041 if test "$jm_cv_func_strtoimax_macro" != yes; then
25043 for ac_func in strtoimax
25045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25046 echo "$as_me:$LINENO: checking for $ac_func" >&5
25047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25048 if eval "test \"\${$as_ac_var+set}\" = set"; then
25049 echo $ECHO_N "(cached) $ECHO_C" >&6
25050 else
25051 cat >conftest.$ac_ext <<_ACEOF
25052 #line $LINENO "configure"
25053 /* confdefs.h. */
25054 _ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h. */
25058 /* System header to define __stub macros and hopefully few prototypes,
25059 which can conflict with char $ac_func (); below.
25060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25061 <limits.h> exists even on freestanding compilers. */
25062 #ifdef __STDC__
25063 # include <limits.h>
25064 #else
25065 # include <assert.h>
25066 #endif
25067 /* Override any gcc2 internal prototype to avoid an error. */
25068 #ifdef __cplusplus
25069 extern "C"
25071 #endif
25072 /* We use char because int might match the return type of a gcc2
25073 builtin and then its argument prototype would still apply. */
25074 char $ac_func ();
25075 /* The GNU C library defines this for functions which it implements
25076 to always fail with ENOSYS. Some functions are actually named
25077 something starting with __ and the normal name is an alias. */
25078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25079 choke me
25080 #else
25081 char (*f) () = $ac_func;
25082 #endif
25083 #ifdef __cplusplus
25085 #endif
25088 main ()
25090 return f != $ac_func;
25092 return 0;
25094 _ACEOF
25095 rm -f conftest.$ac_objext conftest$ac_exeext
25096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25097 (eval $ac_link) 2>&5
25098 ac_status=$?
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); } &&
25101 { ac_try='test -s conftest$ac_exeext'
25102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25103 (eval $ac_try) 2>&5
25104 ac_status=$?
25105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); }; }; then
25107 eval "$as_ac_var=yes"
25108 else
25109 echo "$as_me: failed program was:" >&5
25110 sed 's/^/| /' conftest.$ac_ext >&5
25112 eval "$as_ac_var=no"
25114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25118 if test `eval echo '${'$as_ac_var'}'` = yes; then
25119 cat >>confdefs.h <<_ACEOF
25120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25121 _ACEOF
25123 else
25124 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25126 done
25131 case "$jm_cv_func_strtoimax_macro,$ac_cv_func_strtoimax" in
25132 no,no)
25134 for ac_func in strtol
25136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25137 echo "$as_me:$LINENO: checking for $ac_func" >&5
25138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25139 if eval "test \"\${$as_ac_var+set}\" = set"; then
25140 echo $ECHO_N "(cached) $ECHO_C" >&6
25141 else
25142 cat >conftest.$ac_ext <<_ACEOF
25143 #line $LINENO "configure"
25144 /* confdefs.h. */
25145 _ACEOF
25146 cat confdefs.h >>conftest.$ac_ext
25147 cat >>conftest.$ac_ext <<_ACEOF
25148 /* end confdefs.h. */
25149 /* System header to define __stub macros and hopefully few prototypes,
25150 which can conflict with char $ac_func (); below.
25151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25152 <limits.h> exists even on freestanding compilers. */
25153 #ifdef __STDC__
25154 # include <limits.h>
25155 #else
25156 # include <assert.h>
25157 #endif
25158 /* Override any gcc2 internal prototype to avoid an error. */
25159 #ifdef __cplusplus
25160 extern "C"
25162 #endif
25163 /* We use char because int might match the return type of a gcc2
25164 builtin and then its argument prototype would still apply. */
25165 char $ac_func ();
25166 /* The GNU C library defines this for functions which it implements
25167 to always fail with ENOSYS. Some functions are actually named
25168 something starting with __ and the normal name is an alias. */
25169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25170 choke me
25171 #else
25172 char (*f) () = $ac_func;
25173 #endif
25174 #ifdef __cplusplus
25176 #endif
25179 main ()
25181 return f != $ac_func;
25183 return 0;
25185 _ACEOF
25186 rm -f conftest.$ac_objext conftest$ac_exeext
25187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25188 (eval $ac_link) 2>&5
25189 ac_status=$?
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); } &&
25192 { ac_try='test -s conftest$ac_exeext'
25193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25194 (eval $ac_try) 2>&5
25195 ac_status=$?
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); }; }; then
25198 eval "$as_ac_var=yes"
25199 else
25200 echo "$as_me: failed program was:" >&5
25201 sed 's/^/| /' conftest.$ac_ext >&5
25203 eval "$as_ac_var=no"
25205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25209 if test `eval echo '${'$as_ac_var'}'` = yes; then
25210 cat >>confdefs.h <<_ACEOF
25211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25212 _ACEOF
25214 else
25215 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25217 done
25221 if test "$ac_cv_type_long_long" = yes; then
25223 for ac_func in strtoll
25225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25226 echo "$as_me:$LINENO: checking for $ac_func" >&5
25227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25228 if eval "test \"\${$as_ac_var+set}\" = set"; then
25229 echo $ECHO_N "(cached) $ECHO_C" >&6
25230 else
25231 cat >conftest.$ac_ext <<_ACEOF
25232 #line $LINENO "configure"
25233 /* confdefs.h. */
25234 _ACEOF
25235 cat confdefs.h >>conftest.$ac_ext
25236 cat >>conftest.$ac_ext <<_ACEOF
25237 /* end confdefs.h. */
25238 /* System header to define __stub macros and hopefully few prototypes,
25239 which can conflict with char $ac_func (); below.
25240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25241 <limits.h> exists even on freestanding compilers. */
25242 #ifdef __STDC__
25243 # include <limits.h>
25244 #else
25245 # include <assert.h>
25246 #endif
25247 /* Override any gcc2 internal prototype to avoid an error. */
25248 #ifdef __cplusplus
25249 extern "C"
25251 #endif
25252 /* We use char because int might match the return type of a gcc2
25253 builtin and then its argument prototype would still apply. */
25254 char $ac_func ();
25255 /* The GNU C library defines this for functions which it implements
25256 to always fail with ENOSYS. Some functions are actually named
25257 something starting with __ and the normal name is an alias. */
25258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25259 choke me
25260 #else
25261 char (*f) () = $ac_func;
25262 #endif
25263 #ifdef __cplusplus
25265 #endif
25268 main ()
25270 return f != $ac_func;
25272 return 0;
25274 _ACEOF
25275 rm -f conftest.$ac_objext conftest$ac_exeext
25276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25277 (eval $ac_link) 2>&5
25278 ac_status=$?
25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); } &&
25281 { ac_try='test -s conftest$ac_exeext'
25282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25283 (eval $ac_try) 2>&5
25284 ac_status=$?
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); }; }; then
25287 eval "$as_ac_var=yes"
25288 else
25289 echo "$as_me: failed program was:" >&5
25290 sed 's/^/| /' conftest.$ac_ext >&5
25292 eval "$as_ac_var=no"
25294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25298 if test `eval echo '${'$as_ac_var'}'` = yes; then
25299 cat >>confdefs.h <<_ACEOF
25300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25301 _ACEOF
25303 else
25304 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25306 done
25311 esac
25313 echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
25314 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
25315 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
25316 echo $ECHO_N "(cached) $ECHO_C" >&6
25317 else
25319 test -z "$ac_cv_header_unistd_h" \
25321 for ac_header in unistd.h
25323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25325 echo "$as_me:$LINENO: checking for $ac_header" >&5
25326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25328 echo $ECHO_N "(cached) $ECHO_C" >&6
25330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25332 else
25333 # Is the header compilable?
25334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25336 cat >conftest.$ac_ext <<_ACEOF
25337 #line $LINENO "configure"
25338 /* confdefs.h. */
25339 _ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h. */
25343 $ac_includes_default
25344 #include <$ac_header>
25345 _ACEOF
25346 rm -f conftest.$ac_objext
25347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25348 (eval $ac_compile) 2>&5
25349 ac_status=$?
25350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351 (exit $ac_status); } &&
25352 { ac_try='test -s conftest.$ac_objext'
25353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25354 (eval $ac_try) 2>&5
25355 ac_status=$?
25356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); }; }; then
25358 ac_header_compiler=yes
25359 else
25360 echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25363 ac_header_compiler=no
25365 rm -f conftest.$ac_objext conftest.$ac_ext
25366 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25367 echo "${ECHO_T}$ac_header_compiler" >&6
25369 # Is the header present?
25370 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25372 cat >conftest.$ac_ext <<_ACEOF
25373 #line $LINENO "configure"
25374 /* confdefs.h. */
25375 _ACEOF
25376 cat confdefs.h >>conftest.$ac_ext
25377 cat >>conftest.$ac_ext <<_ACEOF
25378 /* end confdefs.h. */
25379 #include <$ac_header>
25380 _ACEOF
25381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25383 ac_status=$?
25384 grep -v '^ *+' conftest.er1 >conftest.err
25385 rm -f conftest.er1
25386 cat conftest.err >&5
25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); } >/dev/null; then
25389 if test -s conftest.err; then
25390 ac_cpp_err=$ac_c_preproc_warn_flag
25391 else
25392 ac_cpp_err=
25394 else
25395 ac_cpp_err=yes
25397 if test -z "$ac_cpp_err"; then
25398 ac_header_preproc=yes
25399 else
25400 echo "$as_me: failed program was:" >&5
25401 sed 's/^/| /' conftest.$ac_ext >&5
25403 ac_header_preproc=no
25405 rm -f conftest.err conftest.$ac_ext
25406 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25407 echo "${ECHO_T}$ac_header_preproc" >&6
25409 # So? What about this header?
25410 case $ac_header_compiler:$ac_header_preproc in
25411 yes:no )
25412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25417 cat <<\_ASBOX
25418 ## ------------------------------------ ##
25419 ## Report this to bug-autoconf@gnu.org. ##
25420 ## ------------------------------------ ##
25421 _ASBOX
25423 sed "s/^/$as_me: WARNING: /" >&2
25425 no:yes )
25426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25433 cat <<\_ASBOX
25434 ## ------------------------------------ ##
25435 ## Report this to bug-autoconf@gnu.org. ##
25436 ## ------------------------------------ ##
25437 _ASBOX
25439 sed "s/^/$as_me: WARNING: /" >&2
25441 esac
25442 echo "$as_me:$LINENO: checking for $ac_header" >&5
25443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25445 echo $ECHO_N "(cached) $ECHO_C" >&6
25446 else
25447 eval "$as_ac_Header=$ac_header_preproc"
25449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25454 cat >>confdefs.h <<_ACEOF
25455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25456 _ACEOF
25460 done
25463 # Create a regular file.
25464 echo > conftest.file
25465 if test "$cross_compiling" = yes; then
25466 jm_ac_cv_func_link_follows_symlink=yes
25467 else
25468 cat >conftest.$ac_ext <<_ACEOF
25469 #line $LINENO "configure"
25470 /* confdefs.h. */
25471 _ACEOF
25472 cat confdefs.h >>conftest.$ac_ext
25473 cat >>conftest.$ac_ext <<_ACEOF
25474 /* end confdefs.h. */
25476 # include <sys/types.h>
25477 # include <sys/stat.h>
25478 # ifdef HAVE_UNISTD_H
25479 # include <unistd.h>
25480 # endif
25482 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
25483 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
25484 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
25487 main ()
25489 const char *file = "conftest.file";
25490 const char *sym = "conftest.sym";
25491 const char *hard = "conftest.hard";
25492 struct stat sb_file, sb_hard;
25494 /* Create a symlink to the regular file. */
25495 if (symlink (file, sym))
25496 abort ();
25498 /* Create a hard link to that symlink. */
25499 if (link (sym, hard))
25500 abort ();
25502 if (lstat (hard, &sb_hard))
25503 abort ();
25504 if (lstat (file, &sb_file))
25505 abort ();
25507 /* If the dev/inode of hard and file are the same, then
25508 the link call followed the symlink. */
25509 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
25512 _ACEOF
25513 rm -f conftest$ac_exeext
25514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25515 (eval $ac_link) 2>&5
25516 ac_status=$?
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25520 (eval $ac_try) 2>&5
25521 ac_status=$?
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); }; }; then
25524 jm_ac_cv_func_link_follows_symlink=yes
25525 else
25526 echo "$as_me: program exited with status $ac_status" >&5
25527 echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25530 ( exit $ac_status )
25531 jm_ac_cv_func_link_follows_symlink=no
25533 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25537 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
25538 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
25539 if test $jm_ac_cv_func_link_follows_symlink = yes; then
25541 cat >>confdefs.h <<\_ACEOF
25542 #define LINK_FOLLOWS_SYMLINKS 1
25543 _ACEOF
25547 echo "$as_me:$LINENO: checking for error_at_line" >&5
25548 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
25549 if test "${ac_cv_lib_error_at_line+set}" = set; then
25550 echo $ECHO_N "(cached) $ECHO_C" >&6
25551 else
25552 cat >conftest.$ac_ext <<_ACEOF
25553 #line $LINENO "configure"
25554 /* confdefs.h. */
25555 _ACEOF
25556 cat confdefs.h >>conftest.$ac_ext
25557 cat >>conftest.$ac_ext <<_ACEOF
25558 /* end confdefs.h. */
25561 main ()
25563 error_at_line (0, 0, "", 0, "");
25565 return 0;
25567 _ACEOF
25568 rm -f conftest.$ac_objext conftest$ac_exeext
25569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25570 (eval $ac_link) 2>&5
25571 ac_status=$?
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); } &&
25574 { ac_try='test -s conftest$ac_exeext'
25575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25576 (eval $ac_try) 2>&5
25577 ac_status=$?
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); }; }; then
25580 ac_cv_lib_error_at_line=yes
25581 else
25582 echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.$ac_ext >&5
25585 ac_cv_lib_error_at_line=no
25587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25589 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25590 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
25591 if test $ac_cv_lib_error_at_line = no; then
25592 LIBOBJS="$LIBOBJS error.$ac_objext"
25599 for ac_func in localtime_r strftime
25601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25602 echo "$as_me:$LINENO: checking for $ac_func" >&5
25603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25604 if eval "test \"\${$as_ac_var+set}\" = set"; then
25605 echo $ECHO_N "(cached) $ECHO_C" >&6
25606 else
25607 cat >conftest.$ac_ext <<_ACEOF
25608 #line $LINENO "configure"
25609 /* confdefs.h. */
25610 _ACEOF
25611 cat confdefs.h >>conftest.$ac_ext
25612 cat >>conftest.$ac_ext <<_ACEOF
25613 /* end confdefs.h. */
25614 /* System header to define __stub macros and hopefully few prototypes,
25615 which can conflict with char $ac_func (); below.
25616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25617 <limits.h> exists even on freestanding compilers. */
25618 #ifdef __STDC__
25619 # include <limits.h>
25620 #else
25621 # include <assert.h>
25622 #endif
25623 /* Override any gcc2 internal prototype to avoid an error. */
25624 #ifdef __cplusplus
25625 extern "C"
25627 #endif
25628 /* We use char because int might match the return type of a gcc2
25629 builtin and then its argument prototype would still apply. */
25630 char $ac_func ();
25631 /* The GNU C library defines this for functions which it implements
25632 to always fail with ENOSYS. Some functions are actually named
25633 something starting with __ and the normal name is an alias. */
25634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25635 choke me
25636 #else
25637 char (*f) () = $ac_func;
25638 #endif
25639 #ifdef __cplusplus
25641 #endif
25644 main ()
25646 return f != $ac_func;
25648 return 0;
25650 _ACEOF
25651 rm -f conftest.$ac_objext conftest$ac_exeext
25652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25653 (eval $ac_link) 2>&5
25654 ac_status=$?
25655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); } &&
25657 { ac_try='test -s conftest$ac_exeext'
25658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25659 (eval $ac_try) 2>&5
25660 ac_status=$?
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); }; }; then
25663 eval "$as_ac_var=yes"
25664 else
25665 echo "$as_me: failed program was:" >&5
25666 sed 's/^/| /' conftest.$ac_ext >&5
25668 eval "$as_ac_var=no"
25670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25674 if test `eval echo '${'$as_ac_var'}'` = yes; then
25675 cat >>confdefs.h <<_ACEOF
25676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25677 _ACEOF
25680 done
25684 for ac_header in limits.h
25686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25688 echo "$as_me:$LINENO: checking for $ac_header" >&5
25689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25691 echo $ECHO_N "(cached) $ECHO_C" >&6
25693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25695 else
25696 # Is the header compilable?
25697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25699 cat >conftest.$ac_ext <<_ACEOF
25700 #line $LINENO "configure"
25701 /* confdefs.h. */
25702 _ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h. */
25706 $ac_includes_default
25707 #include <$ac_header>
25708 _ACEOF
25709 rm -f conftest.$ac_objext
25710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25711 (eval $ac_compile) 2>&5
25712 ac_status=$?
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } &&
25715 { ac_try='test -s conftest.$ac_objext'
25716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25717 (eval $ac_try) 2>&5
25718 ac_status=$?
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); }; }; then
25721 ac_header_compiler=yes
25722 else
25723 echo "$as_me: failed program was:" >&5
25724 sed 's/^/| /' conftest.$ac_ext >&5
25726 ac_header_compiler=no
25728 rm -f conftest.$ac_objext conftest.$ac_ext
25729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25730 echo "${ECHO_T}$ac_header_compiler" >&6
25732 # Is the header present?
25733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25735 cat >conftest.$ac_ext <<_ACEOF
25736 #line $LINENO "configure"
25737 /* confdefs.h. */
25738 _ACEOF
25739 cat confdefs.h >>conftest.$ac_ext
25740 cat >>conftest.$ac_ext <<_ACEOF
25741 /* end confdefs.h. */
25742 #include <$ac_header>
25743 _ACEOF
25744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25746 ac_status=$?
25747 grep -v '^ *+' conftest.er1 >conftest.err
25748 rm -f conftest.er1
25749 cat conftest.err >&5
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); } >/dev/null; then
25752 if test -s conftest.err; then
25753 ac_cpp_err=$ac_c_preproc_warn_flag
25754 else
25755 ac_cpp_err=
25757 else
25758 ac_cpp_err=yes
25760 if test -z "$ac_cpp_err"; then
25761 ac_header_preproc=yes
25762 else
25763 echo "$as_me: failed program was:" >&5
25764 sed 's/^/| /' conftest.$ac_ext >&5
25766 ac_header_preproc=no
25768 rm -f conftest.err conftest.$ac_ext
25769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25770 echo "${ECHO_T}$ac_header_preproc" >&6
25772 # So? What about this header?
25773 case $ac_header_compiler:$ac_header_preproc in
25774 yes:no )
25775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25780 cat <<\_ASBOX
25781 ## ------------------------------------ ##
25782 ## Report this to bug-autoconf@gnu.org. ##
25783 ## ------------------------------------ ##
25784 _ASBOX
25786 sed "s/^/$as_me: WARNING: /" >&2
25788 no:yes )
25789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25796 cat <<\_ASBOX
25797 ## ------------------------------------ ##
25798 ## Report this to bug-autoconf@gnu.org. ##
25799 ## ------------------------------------ ##
25800 _ASBOX
25802 sed "s/^/$as_me: WARNING: /" >&2
25804 esac
25805 echo "$as_me:$LINENO: checking for $ac_header" >&5
25806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25808 echo $ECHO_N "(cached) $ECHO_C" >&6
25809 else
25810 eval "$as_ac_Header=$ac_header_preproc"
25812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25817 cat >>confdefs.h <<_ACEOF
25818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25819 _ACEOF
25823 done
25830 for ac_func in bcopy tzset mempcpy memcpy memset
25832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25833 echo "$as_me:$LINENO: checking for $ac_func" >&5
25834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25835 if eval "test \"\${$as_ac_var+set}\" = set"; then
25836 echo $ECHO_N "(cached) $ECHO_C" >&6
25837 else
25838 cat >conftest.$ac_ext <<_ACEOF
25839 #line $LINENO "configure"
25840 /* confdefs.h. */
25841 _ACEOF
25842 cat confdefs.h >>conftest.$ac_ext
25843 cat >>conftest.$ac_ext <<_ACEOF
25844 /* end confdefs.h. */
25845 /* System header to define __stub macros and hopefully few prototypes,
25846 which can conflict with char $ac_func (); below.
25847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25848 <limits.h> exists even on freestanding compilers. */
25849 #ifdef __STDC__
25850 # include <limits.h>
25851 #else
25852 # include <assert.h>
25853 #endif
25854 /* Override any gcc2 internal prototype to avoid an error. */
25855 #ifdef __cplusplus
25856 extern "C"
25858 #endif
25859 /* We use char because int might match the return type of a gcc2
25860 builtin and then its argument prototype would still apply. */
25861 char $ac_func ();
25862 /* The GNU C library defines this for functions which it implements
25863 to always fail with ENOSYS. Some functions are actually named
25864 something starting with __ and the normal name is an alias. */
25865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25866 choke me
25867 #else
25868 char (*f) () = $ac_func;
25869 #endif
25870 #ifdef __cplusplus
25872 #endif
25875 main ()
25877 return f != $ac_func;
25879 return 0;
25881 _ACEOF
25882 rm -f conftest.$ac_objext conftest$ac_exeext
25883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25884 (eval $ac_link) 2>&5
25885 ac_status=$?
25886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); } &&
25888 { ac_try='test -s conftest$ac_exeext'
25889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25890 (eval $ac_try) 2>&5
25891 ac_status=$?
25892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893 (exit $ac_status); }; }; then
25894 eval "$as_ac_var=yes"
25895 else
25896 echo "$as_me: failed program was:" >&5
25897 sed 's/^/| /' conftest.$ac_ext >&5
25899 eval "$as_ac_var=no"
25901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25905 if test `eval echo '${'$as_ac_var'}'` = yes; then
25906 cat >>confdefs.h <<_ACEOF
25907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25908 _ACEOF
25911 done
25914 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
25915 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25916 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
25917 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25918 echo $ECHO_N "(cached) $ECHO_C" >&6
25919 else
25920 cat >conftest.$ac_ext <<_ACEOF
25921 #line $LINENO "configure"
25922 /* confdefs.h. */
25923 _ACEOF
25924 cat confdefs.h >>conftest.$ac_ext
25925 cat >>conftest.$ac_ext <<_ACEOF
25926 /* end confdefs.h. */
25927 #include <sys/types.h>
25928 #include <$ac_cv_struct_tm>
25932 main ()
25934 static struct tm ac_aggr;
25935 if (ac_aggr.tm_zone)
25936 return 0;
25938 return 0;
25940 _ACEOF
25941 rm -f conftest.$ac_objext
25942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25943 (eval $ac_compile) 2>&5
25944 ac_status=$?
25945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946 (exit $ac_status); } &&
25947 { ac_try='test -s conftest.$ac_objext'
25948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25949 (eval $ac_try) 2>&5
25950 ac_status=$?
25951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952 (exit $ac_status); }; }; then
25953 ac_cv_member_struct_tm_tm_zone=yes
25954 else
25955 echo "$as_me: failed program was:" >&5
25956 sed 's/^/| /' conftest.$ac_ext >&5
25958 cat >conftest.$ac_ext <<_ACEOF
25959 #line $LINENO "configure"
25960 /* confdefs.h. */
25961 _ACEOF
25962 cat confdefs.h >>conftest.$ac_ext
25963 cat >>conftest.$ac_ext <<_ACEOF
25964 /* end confdefs.h. */
25965 #include <sys/types.h>
25966 #include <$ac_cv_struct_tm>
25970 main ()
25972 static struct tm ac_aggr;
25973 if (sizeof ac_aggr.tm_zone)
25974 return 0;
25976 return 0;
25978 _ACEOF
25979 rm -f conftest.$ac_objext
25980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25981 (eval $ac_compile) 2>&5
25982 ac_status=$?
25983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); } &&
25985 { ac_try='test -s conftest.$ac_objext'
25986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25987 (eval $ac_try) 2>&5
25988 ac_status=$?
25989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990 (exit $ac_status); }; }; then
25991 ac_cv_member_struct_tm_tm_zone=yes
25992 else
25993 echo "$as_me: failed program was:" >&5
25994 sed 's/^/| /' conftest.$ac_ext >&5
25996 ac_cv_member_struct_tm_tm_zone=no
25998 rm -f conftest.$ac_objext conftest.$ac_ext
26000 rm -f conftest.$ac_objext conftest.$ac_ext
26002 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26003 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
26004 if test $ac_cv_member_struct_tm_tm_zone = yes; then
26006 cat >>confdefs.h <<_ACEOF
26007 #define HAVE_STRUCT_TM_TM_ZONE 1
26008 _ACEOF
26013 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26015 cat >>confdefs.h <<\_ACEOF
26016 #define HAVE_TM_ZONE 1
26017 _ACEOF
26019 else
26020 echo "$as_me:$LINENO: checking for tzname" >&5
26021 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
26022 if test "${ac_cv_var_tzname+set}" = set; then
26023 echo $ECHO_N "(cached) $ECHO_C" >&6
26024 else
26025 cat >conftest.$ac_ext <<_ACEOF
26026 #line $LINENO "configure"
26027 /* confdefs.h. */
26028 _ACEOF
26029 cat confdefs.h >>conftest.$ac_ext
26030 cat >>conftest.$ac_ext <<_ACEOF
26031 /* end confdefs.h. */
26032 #include <time.h>
26033 #ifndef tzname /* For SGI. */
26034 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
26035 #endif
26038 main ()
26040 atoi(*tzname);
26042 return 0;
26044 _ACEOF
26045 rm -f conftest.$ac_objext conftest$ac_exeext
26046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26047 (eval $ac_link) 2>&5
26048 ac_status=$?
26049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); } &&
26051 { ac_try='test -s conftest$ac_exeext'
26052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26053 (eval $ac_try) 2>&5
26054 ac_status=$?
26055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056 (exit $ac_status); }; }; then
26057 ac_cv_var_tzname=yes
26058 else
26059 echo "$as_me: failed program was:" >&5
26060 sed 's/^/| /' conftest.$ac_ext >&5
26062 ac_cv_var_tzname=no
26064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26066 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26067 echo "${ECHO_T}$ac_cv_var_tzname" >&6
26068 if test $ac_cv_var_tzname = yes; then
26070 cat >>confdefs.h <<\_ACEOF
26071 #define HAVE_TZNAME 1
26072 _ACEOF
26080 for ac_func in mblen mbrlen
26082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26083 echo "$as_me:$LINENO: checking for $ac_func" >&5
26084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26085 if eval "test \"\${$as_ac_var+set}\" = set"; then
26086 echo $ECHO_N "(cached) $ECHO_C" >&6
26087 else
26088 cat >conftest.$ac_ext <<_ACEOF
26089 #line $LINENO "configure"
26090 /* confdefs.h. */
26091 _ACEOF
26092 cat confdefs.h >>conftest.$ac_ext
26093 cat >>conftest.$ac_ext <<_ACEOF
26094 /* end confdefs.h. */
26095 /* System header to define __stub macros and hopefully few prototypes,
26096 which can conflict with char $ac_func (); below.
26097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26098 <limits.h> exists even on freestanding compilers. */
26099 #ifdef __STDC__
26100 # include <limits.h>
26101 #else
26102 # include <assert.h>
26103 #endif
26104 /* Override any gcc2 internal prototype to avoid an error. */
26105 #ifdef __cplusplus
26106 extern "C"
26108 #endif
26109 /* We use char because int might match the return type of a gcc2
26110 builtin and then its argument prototype would still apply. */
26111 char $ac_func ();
26112 /* The GNU C library defines this for functions which it implements
26113 to always fail with ENOSYS. Some functions are actually named
26114 something starting with __ and the normal name is an alias. */
26115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26116 choke me
26117 #else
26118 char (*f) () = $ac_func;
26119 #endif
26120 #ifdef __cplusplus
26122 #endif
26125 main ()
26127 return f != $ac_func;
26129 return 0;
26131 _ACEOF
26132 rm -f conftest.$ac_objext conftest$ac_exeext
26133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26134 (eval $ac_link) 2>&5
26135 ac_status=$?
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137 (exit $ac_status); } &&
26138 { ac_try='test -s conftest$ac_exeext'
26139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26140 (eval $ac_try) 2>&5
26141 ac_status=$?
26142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143 (exit $ac_status); }; }; then
26144 eval "$as_ac_var=yes"
26145 else
26146 echo "$as_me: failed program was:" >&5
26147 sed 's/^/| /' conftest.$ac_ext >&5
26149 eval "$as_ac_var=no"
26151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26155 if test `eval echo '${'$as_ac_var'}'` = yes; then
26156 cat >>confdefs.h <<_ACEOF
26157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26158 _ACEOF
26161 done
26164 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
26165 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
26166 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
26167 echo $ECHO_N "(cached) $ECHO_C" >&6
26168 else
26169 cat >conftest.$ac_ext <<_ACEOF
26170 #line $LINENO "configure"
26171 /* confdefs.h. */
26172 _ACEOF
26173 cat confdefs.h >>conftest.$ac_ext
26174 cat >>conftest.$ac_ext <<_ACEOF
26175 /* end confdefs.h. */
26176 #include <time.h>
26179 main ()
26181 static struct tm ac_aggr;
26182 if (ac_aggr.tm_gmtoff)
26183 return 0;
26185 return 0;
26187 _ACEOF
26188 rm -f conftest.$ac_objext
26189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26190 (eval $ac_compile) 2>&5
26191 ac_status=$?
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); } &&
26194 { ac_try='test -s conftest.$ac_objext'
26195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26196 (eval $ac_try) 2>&5
26197 ac_status=$?
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); }; }; then
26200 ac_cv_member_struct_tm_tm_gmtoff=yes
26201 else
26202 echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26205 cat >conftest.$ac_ext <<_ACEOF
26206 #line $LINENO "configure"
26207 /* confdefs.h. */
26208 _ACEOF
26209 cat confdefs.h >>conftest.$ac_ext
26210 cat >>conftest.$ac_ext <<_ACEOF
26211 /* end confdefs.h. */
26212 #include <time.h>
26215 main ()
26217 static struct tm ac_aggr;
26218 if (sizeof ac_aggr.tm_gmtoff)
26219 return 0;
26221 return 0;
26223 _ACEOF
26224 rm -f conftest.$ac_objext
26225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26226 (eval $ac_compile) 2>&5
26227 ac_status=$?
26228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229 (exit $ac_status); } &&
26230 { ac_try='test -s conftest.$ac_objext'
26231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26232 (eval $ac_try) 2>&5
26233 ac_status=$?
26234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235 (exit $ac_status); }; }; then
26236 ac_cv_member_struct_tm_tm_gmtoff=yes
26237 else
26238 echo "$as_me: failed program was:" >&5
26239 sed 's/^/| /' conftest.$ac_ext >&5
26241 ac_cv_member_struct_tm_tm_gmtoff=no
26243 rm -f conftest.$ac_objext conftest.$ac_ext
26245 rm -f conftest.$ac_objext conftest.$ac_ext
26247 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
26248 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
26249 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
26251 cat >>confdefs.h <<\_ACEOF
26252 #define HAVE_TM_GMTOFF 1
26253 _ACEOF
26260 for ac_header in sys/time.h
26262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26264 echo "$as_me:$LINENO: checking for $ac_header" >&5
26265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26267 echo $ECHO_N "(cached) $ECHO_C" >&6
26269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26271 else
26272 # Is the header compilable?
26273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26275 cat >conftest.$ac_ext <<_ACEOF
26276 #line $LINENO "configure"
26277 /* confdefs.h. */
26278 _ACEOF
26279 cat confdefs.h >>conftest.$ac_ext
26280 cat >>conftest.$ac_ext <<_ACEOF
26281 /* end confdefs.h. */
26282 $ac_includes_default
26283 #include <$ac_header>
26284 _ACEOF
26285 rm -f conftest.$ac_objext
26286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26287 (eval $ac_compile) 2>&5
26288 ac_status=$?
26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); } &&
26291 { ac_try='test -s conftest.$ac_objext'
26292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26293 (eval $ac_try) 2>&5
26294 ac_status=$?
26295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296 (exit $ac_status); }; }; then
26297 ac_header_compiler=yes
26298 else
26299 echo "$as_me: failed program was:" >&5
26300 sed 's/^/| /' conftest.$ac_ext >&5
26302 ac_header_compiler=no
26304 rm -f conftest.$ac_objext conftest.$ac_ext
26305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26306 echo "${ECHO_T}$ac_header_compiler" >&6
26308 # Is the header present?
26309 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26311 cat >conftest.$ac_ext <<_ACEOF
26312 #line $LINENO "configure"
26313 /* confdefs.h. */
26314 _ACEOF
26315 cat confdefs.h >>conftest.$ac_ext
26316 cat >>conftest.$ac_ext <<_ACEOF
26317 /* end confdefs.h. */
26318 #include <$ac_header>
26319 _ACEOF
26320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26322 ac_status=$?
26323 grep -v '^ *+' conftest.er1 >conftest.err
26324 rm -f conftest.er1
26325 cat conftest.err >&5
26326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327 (exit $ac_status); } >/dev/null; then
26328 if test -s conftest.err; then
26329 ac_cpp_err=$ac_c_preproc_warn_flag
26330 else
26331 ac_cpp_err=
26333 else
26334 ac_cpp_err=yes
26336 if test -z "$ac_cpp_err"; then
26337 ac_header_preproc=yes
26338 else
26339 echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26342 ac_header_preproc=no
26344 rm -f conftest.err conftest.$ac_ext
26345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26346 echo "${ECHO_T}$ac_header_preproc" >&6
26348 # So? What about this header?
26349 case $ac_header_compiler:$ac_header_preproc in
26350 yes:no )
26351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26356 cat <<\_ASBOX
26357 ## ------------------------------------ ##
26358 ## Report this to bug-autoconf@gnu.org. ##
26359 ## ------------------------------------ ##
26360 _ASBOX
26362 sed "s/^/$as_me: WARNING: /" >&2
26364 no:yes )
26365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26372 cat <<\_ASBOX
26373 ## ------------------------------------ ##
26374 ## Report this to bug-autoconf@gnu.org. ##
26375 ## ------------------------------------ ##
26376 _ASBOX
26378 sed "s/^/$as_me: WARNING: /" >&2
26380 esac
26381 echo "$as_me:$LINENO: checking for $ac_header" >&5
26382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26384 echo $ECHO_N "(cached) $ECHO_C" >&6
26385 else
26386 eval "$as_ac_Header=$ac_header_preproc"
26388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26393 cat >>confdefs.h <<_ACEOF
26394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26395 _ACEOF
26399 done
26402 cat >>confdefs.h <<\_ACEOF
26403 #define my_strftime nstrftime
26404 _ACEOF
26409 for ac_header in stdio_ext.h
26411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26413 echo "$as_me:$LINENO: checking for $ac_header" >&5
26414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26416 echo $ECHO_N "(cached) $ECHO_C" >&6
26418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26420 else
26421 # Is the header compilable?
26422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26424 cat >conftest.$ac_ext <<_ACEOF
26425 #line $LINENO "configure"
26426 /* confdefs.h. */
26427 _ACEOF
26428 cat confdefs.h >>conftest.$ac_ext
26429 cat >>conftest.$ac_ext <<_ACEOF
26430 /* end confdefs.h. */
26431 $ac_includes_default
26432 #include <$ac_header>
26433 _ACEOF
26434 rm -f conftest.$ac_objext
26435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26436 (eval $ac_compile) 2>&5
26437 ac_status=$?
26438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439 (exit $ac_status); } &&
26440 { ac_try='test -s conftest.$ac_objext'
26441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26442 (eval $ac_try) 2>&5
26443 ac_status=$?
26444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445 (exit $ac_status); }; }; then
26446 ac_header_compiler=yes
26447 else
26448 echo "$as_me: failed program was:" >&5
26449 sed 's/^/| /' conftest.$ac_ext >&5
26451 ac_header_compiler=no
26453 rm -f conftest.$ac_objext conftest.$ac_ext
26454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26455 echo "${ECHO_T}$ac_header_compiler" >&6
26457 # Is the header present?
26458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26460 cat >conftest.$ac_ext <<_ACEOF
26461 #line $LINENO "configure"
26462 /* confdefs.h. */
26463 _ACEOF
26464 cat confdefs.h >>conftest.$ac_ext
26465 cat >>conftest.$ac_ext <<_ACEOF
26466 /* end confdefs.h. */
26467 #include <$ac_header>
26468 _ACEOF
26469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26471 ac_status=$?
26472 grep -v '^ *+' conftest.er1 >conftest.err
26473 rm -f conftest.er1
26474 cat conftest.err >&5
26475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476 (exit $ac_status); } >/dev/null; then
26477 if test -s conftest.err; then
26478 ac_cpp_err=$ac_c_preproc_warn_flag
26479 else
26480 ac_cpp_err=
26482 else
26483 ac_cpp_err=yes
26485 if test -z "$ac_cpp_err"; then
26486 ac_header_preproc=yes
26487 else
26488 echo "$as_me: failed program was:" >&5
26489 sed 's/^/| /' conftest.$ac_ext >&5
26491 ac_header_preproc=no
26493 rm -f conftest.err conftest.$ac_ext
26494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26495 echo "${ECHO_T}$ac_header_preproc" >&6
26497 # So? What about this header?
26498 case $ac_header_compiler:$ac_header_preproc in
26499 yes:no )
26500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26505 cat <<\_ASBOX
26506 ## ------------------------------------ ##
26507 ## Report this to bug-autoconf@gnu.org. ##
26508 ## ------------------------------------ ##
26509 _ASBOX
26511 sed "s/^/$as_me: WARNING: /" >&2
26513 no:yes )
26514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26521 cat <<\_ASBOX
26522 ## ------------------------------------ ##
26523 ## Report this to bug-autoconf@gnu.org. ##
26524 ## ------------------------------------ ##
26525 _ASBOX
26527 sed "s/^/$as_me: WARNING: /" >&2
26529 esac
26530 echo "$as_me:$LINENO: checking for $ac_header" >&5
26531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26533 echo $ECHO_N "(cached) $ECHO_C" >&6
26534 else
26535 eval "$as_ac_Header=$ac_header_preproc"
26537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26542 cat >>confdefs.h <<_ACEOF
26543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26544 _ACEOF
26548 done
26551 for ac_func in __fpending
26553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26554 echo "$as_me:$LINENO: checking for $ac_func" >&5
26555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26556 if eval "test \"\${$as_ac_var+set}\" = set"; then
26557 echo $ECHO_N "(cached) $ECHO_C" >&6
26558 else
26559 cat >conftest.$ac_ext <<_ACEOF
26560 #line $LINENO "configure"
26561 /* confdefs.h. */
26562 _ACEOF
26563 cat confdefs.h >>conftest.$ac_ext
26564 cat >>conftest.$ac_ext <<_ACEOF
26565 /* end confdefs.h. */
26566 /* System header to define __stub macros and hopefully few prototypes,
26567 which can conflict with char $ac_func (); below.
26568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26569 <limits.h> exists even on freestanding compilers. */
26570 #ifdef __STDC__
26571 # include <limits.h>
26572 #else
26573 # include <assert.h>
26574 #endif
26575 /* Override any gcc2 internal prototype to avoid an error. */
26576 #ifdef __cplusplus
26577 extern "C"
26579 #endif
26580 /* We use char because int might match the return type of a gcc2
26581 builtin and then its argument prototype would still apply. */
26582 char $ac_func ();
26583 /* The GNU C library defines this for functions which it implements
26584 to always fail with ENOSYS. Some functions are actually named
26585 something starting with __ and the normal name is an alias. */
26586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26587 choke me
26588 #else
26589 char (*f) () = $ac_func;
26590 #endif
26591 #ifdef __cplusplus
26593 #endif
26596 main ()
26598 return f != $ac_func;
26600 return 0;
26602 _ACEOF
26603 rm -f conftest.$ac_objext conftest$ac_exeext
26604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26605 (eval $ac_link) 2>&5
26606 ac_status=$?
26607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); } &&
26609 { ac_try='test -s conftest$ac_exeext'
26610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26611 (eval $ac_try) 2>&5
26612 ac_status=$?
26613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); }; }; then
26615 eval "$as_ac_var=yes"
26616 else
26617 echo "$as_me: failed program was:" >&5
26618 sed 's/^/| /' conftest.$ac_ext >&5
26620 eval "$as_ac_var=no"
26622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26626 if test `eval echo '${'$as_ac_var'}'` = yes; then
26627 cat >>confdefs.h <<_ACEOF
26628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26629 _ACEOF
26631 else
26632 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26634 done
26637 fp_headers='
26638 # if HAVE_STDIO_EXT_H
26639 # include <stdio_ext.h>
26640 # endif
26642 echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
26643 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
26644 if test "${ac_cv_have_decl___fpending+set}" = set; then
26645 echo $ECHO_N "(cached) $ECHO_C" >&6
26646 else
26647 cat >conftest.$ac_ext <<_ACEOF
26648 #line $LINENO "configure"
26649 /* confdefs.h. */
26650 _ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h. */
26654 $fp_headers
26657 main ()
26659 #ifndef __fpending
26660 char *p = (char *) __fpending;
26661 #endif
26664 return 0;
26666 _ACEOF
26667 rm -f conftest.$ac_objext
26668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26669 (eval $ac_compile) 2>&5
26670 ac_status=$?
26671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672 (exit $ac_status); } &&
26673 { ac_try='test -s conftest.$ac_objext'
26674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26675 (eval $ac_try) 2>&5
26676 ac_status=$?
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); }; }; then
26679 ac_cv_have_decl___fpending=yes
26680 else
26681 echo "$as_me: failed program was:" >&5
26682 sed 's/^/| /' conftest.$ac_ext >&5
26684 ac_cv_have_decl___fpending=no
26686 rm -f conftest.$ac_objext conftest.$ac_ext
26688 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
26689 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
26690 if test $ac_cv_have_decl___fpending = yes; then
26692 cat >>confdefs.h <<_ACEOF
26693 #define HAVE_DECL___FPENDING 1
26694 _ACEOF
26697 else
26698 cat >>confdefs.h <<_ACEOF
26699 #define HAVE_DECL___FPENDING 0
26700 _ACEOF
26706 if test $ac_cv_func___fpending = no; then
26707 echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
26708 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
26709 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
26710 echo $ECHO_N "(cached) $ECHO_C" >&6
26711 else
26713 for ac_expr in \
26715 '# glibc2' \
26716 'fp->_IO_write_ptr - fp->_IO_write_base' \
26718 '# traditional Unix' \
26719 'fp->_ptr - fp->_base' \
26721 '# BSD' \
26722 'fp->_p - fp->_bf._base' \
26724 '# SCO, Unixware' \
26725 'fp->__ptr - fp->__base' \
26727 '# old glibc?' \
26728 'fp->__bufp - fp->__buffer' \
26730 '# old glibc iostream?' \
26731 'fp->_pptr - fp->_pbase' \
26733 '# VMS' \
26734 '(*fp)->_ptr - (*fp)->_base' \
26736 '# e.g., DGUX R4.11; the info is not available' \
26738 ; do
26740 # Skip each embedded comment.
26741 case "$ac_expr" in '#'*) continue;; esac
26743 cat >conftest.$ac_ext <<_ACEOF
26744 #line $LINENO "configure"
26745 /* confdefs.h. */
26746 _ACEOF
26747 cat confdefs.h >>conftest.$ac_ext
26748 cat >>conftest.$ac_ext <<_ACEOF
26749 /* end confdefs.h. */
26750 #include <stdio.h>
26753 main ()
26755 FILE *fp = stdin; (void) ($ac_expr);
26757 return 0;
26759 _ACEOF
26760 rm -f conftest.$ac_objext
26761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26762 (eval $ac_compile) 2>&5
26763 ac_status=$?
26764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765 (exit $ac_status); } &&
26766 { ac_try='test -s conftest.$ac_objext'
26767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26768 (eval $ac_try) 2>&5
26769 ac_status=$?
26770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771 (exit $ac_status); }; }; then
26772 fp_done=yes
26774 else
26775 echo "$as_me: failed program was:" >&5
26776 sed 's/^/| /' conftest.$ac_ext >&5
26779 rm -f conftest.$ac_objext conftest.$ac_ext
26780 test "$fp_done" = yes && break
26781 done
26783 ac_cv_sys_pending_output_n_bytes=$ac_expr
26787 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
26788 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
26790 cat >>confdefs.h <<_ACEOF
26791 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
26792 _ACEOF
26797 # autoconf-2.52 has a proper check for inttypes.h.
26800 if test $ac_cv_header_inttypes_h = yes; then
26801 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
26802 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
26803 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
26804 echo $ECHO_N "(cached) $ECHO_C" >&6
26805 else
26807 cat >conftest.$ac_ext <<_ACEOF
26808 #line $LINENO "configure"
26809 /* confdefs.h. */
26810 _ACEOF
26811 cat confdefs.h >>conftest.$ac_ext
26812 cat >>conftest.$ac_ext <<_ACEOF
26813 /* end confdefs.h. */
26814 #include <inttypes.h>
26815 #ifdef PRId32
26816 char *p = PRId32;
26817 #endif
26820 main ()
26824 return 0;
26826 _ACEOF
26827 rm -f conftest.$ac_objext
26828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26829 (eval $ac_compile) 2>&5
26830 ac_status=$?
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); } &&
26833 { ac_try='test -s conftest.$ac_objext'
26834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26835 (eval $ac_try) 2>&5
26836 ac_status=$?
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); }; }; then
26839 gt_cv_inttypes_pri_broken=no
26840 else
26841 echo "$as_me: failed program was:" >&5
26842 sed 's/^/| /' conftest.$ac_ext >&5
26844 gt_cv_inttypes_pri_broken=yes
26846 rm -f conftest.$ac_objext conftest.$ac_ext
26849 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
26850 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
26852 if test "$gt_cv_inttypes_pri_broken" = yes; then
26854 cat >>confdefs.h <<_ACEOF
26855 #define PRI_MACROS_BROKEN 1
26856 _ACEOF
26860 echo "$as_me:$LINENO: checking for getgroups" >&5
26861 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
26862 if test "${ac_cv_func_getgroups+set}" = set; then
26863 echo $ECHO_N "(cached) $ECHO_C" >&6
26864 else
26865 cat >conftest.$ac_ext <<_ACEOF
26866 #line $LINENO "configure"
26867 /* confdefs.h. */
26868 _ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h. */
26872 /* System header to define __stub macros and hopefully few prototypes,
26873 which can conflict with char getgroups (); below.
26874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26875 <limits.h> exists even on freestanding compilers. */
26876 #ifdef __STDC__
26877 # include <limits.h>
26878 #else
26879 # include <assert.h>
26880 #endif
26881 /* Override any gcc2 internal prototype to avoid an error. */
26882 #ifdef __cplusplus
26883 extern "C"
26885 #endif
26886 /* We use char because int might match the return type of a gcc2
26887 builtin and then its argument prototype would still apply. */
26888 char getgroups ();
26889 /* The GNU C library defines this for functions which it implements
26890 to always fail with ENOSYS. Some functions are actually named
26891 something starting with __ and the normal name is an alias. */
26892 #if defined (__stub_getgroups) || defined (__stub___getgroups)
26893 choke me
26894 #else
26895 char (*f) () = getgroups;
26896 #endif
26897 #ifdef __cplusplus
26899 #endif
26902 main ()
26904 return f != getgroups;
26906 return 0;
26908 _ACEOF
26909 rm -f conftest.$ac_objext conftest$ac_exeext
26910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26911 (eval $ac_link) 2>&5
26912 ac_status=$?
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); } &&
26915 { ac_try='test -s conftest$ac_exeext'
26916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26917 (eval $ac_try) 2>&5
26918 ac_status=$?
26919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920 (exit $ac_status); }; }; then
26921 ac_cv_func_getgroups=yes
26922 else
26923 echo "$as_me: failed program was:" >&5
26924 sed 's/^/| /' conftest.$ac_ext >&5
26926 ac_cv_func_getgroups=no
26928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26930 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26931 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
26934 # If we don't yet have getgroups, see if it's in -lbsd.
26935 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26936 ac_save_LIBS=$LIBS
26937 if test $ac_cv_func_getgroups = no; then
26938 echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26939 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
26940 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26941 echo $ECHO_N "(cached) $ECHO_C" >&6
26942 else
26943 ac_check_lib_save_LIBS=$LIBS
26944 LIBS="-lbsd $LIBS"
26945 cat >conftest.$ac_ext <<_ACEOF
26946 #line $LINENO "configure"
26947 /* confdefs.h. */
26948 _ACEOF
26949 cat confdefs.h >>conftest.$ac_ext
26950 cat >>conftest.$ac_ext <<_ACEOF
26951 /* end confdefs.h. */
26953 /* Override any gcc2 internal prototype to avoid an error. */
26954 #ifdef __cplusplus
26955 extern "C"
26956 #endif
26957 /* We use char because int might match the return type of a gcc2
26958 builtin and then its argument prototype would still apply. */
26959 char getgroups ();
26961 main ()
26963 getgroups ();
26965 return 0;
26967 _ACEOF
26968 rm -f conftest.$ac_objext conftest$ac_exeext
26969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26970 (eval $ac_link) 2>&5
26971 ac_status=$?
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); } &&
26974 { ac_try='test -s conftest$ac_exeext'
26975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26976 (eval $ac_try) 2>&5
26977 ac_status=$?
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); }; }; then
26980 ac_cv_lib_bsd_getgroups=yes
26981 else
26982 echo "$as_me: failed program was:" >&5
26983 sed 's/^/| /' conftest.$ac_ext >&5
26985 ac_cv_lib_bsd_getgroups=no
26987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26988 LIBS=$ac_check_lib_save_LIBS
26990 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26991 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
26992 if test $ac_cv_lib_bsd_getgroups = yes; then
26993 GETGROUPS_LIB=-lbsd
26998 # Run the program to test the functionality of the system-supplied
26999 # getgroups function only if there is such a function.
27000 if test $ac_cv_func_getgroups = yes; then
27001 echo "$as_me:$LINENO: checking for working getgroups" >&5
27002 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
27003 if test "${ac_cv_func_getgroups_works+set}" = set; then
27004 echo $ECHO_N "(cached) $ECHO_C" >&6
27005 else
27006 if test "$cross_compiling" = yes; then
27007 ac_cv_func_getgroups_works=no
27008 else
27009 cat >conftest.$ac_ext <<_ACEOF
27010 #line $LINENO "configure"
27011 /* confdefs.h. */
27012 _ACEOF
27013 cat confdefs.h >>conftest.$ac_ext
27014 cat >>conftest.$ac_ext <<_ACEOF
27015 /* end confdefs.h. */
27018 main ()
27020 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27021 exit (getgroups (0, 0) == -1 ? 1 : 0);
27023 return 0;
27025 _ACEOF
27026 rm -f conftest$ac_exeext
27027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27028 (eval $ac_link) 2>&5
27029 ac_status=$?
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27033 (eval $ac_try) 2>&5
27034 ac_status=$?
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); }; }; then
27037 ac_cv_func_getgroups_works=yes
27038 else
27039 echo "$as_me: program exited with status $ac_status" >&5
27040 echo "$as_me: failed program was:" >&5
27041 sed 's/^/| /' conftest.$ac_ext >&5
27043 ( exit $ac_status )
27044 ac_cv_func_getgroups_works=no
27046 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27050 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
27051 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
27052 if test $ac_cv_func_getgroups_works = yes; then
27054 cat >>confdefs.h <<\_ACEOF
27055 #define HAVE_GETGROUPS 1
27056 _ACEOF
27060 LIBS=$ac_save_LIBS
27062 if test $ac_cv_func_getgroups_works = no; then
27063 LIBOBJS="$LIBOBJS getgroups.$ac_objext"
27065 cat >>confdefs.h <<\_ACEOF
27066 #define getgroups rpl_getgroups
27067 _ACEOF
27070 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
27072 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
27073 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
27074 if test "${ac_cv_sys_largefile_source+set}" = set; then
27075 echo $ECHO_N "(cached) $ECHO_C" >&6
27076 else
27077 while :; do
27078 ac_cv_sys_largefile_source=no
27079 cat >conftest.$ac_ext <<_ACEOF
27080 #line $LINENO "configure"
27081 /* confdefs.h. */
27082 _ACEOF
27083 cat confdefs.h >>conftest.$ac_ext
27084 cat >>conftest.$ac_ext <<_ACEOF
27085 /* end confdefs.h. */
27086 #include <stdio.h>
27088 main ()
27090 return !fseeko;
27092 return 0;
27094 _ACEOF
27095 rm -f conftest.$ac_objext
27096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27097 (eval $ac_compile) 2>&5
27098 ac_status=$?
27099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100 (exit $ac_status); } &&
27101 { ac_try='test -s conftest.$ac_objext'
27102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27103 (eval $ac_try) 2>&5
27104 ac_status=$?
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); }; }; then
27107 break
27108 else
27109 echo "$as_me: failed program was:" >&5
27110 sed 's/^/| /' conftest.$ac_ext >&5
27113 rm -f conftest.$ac_objext conftest.$ac_ext
27114 cat >conftest.$ac_ext <<_ACEOF
27115 #line $LINENO "configure"
27116 /* confdefs.h. */
27117 _ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h. */
27121 #define _LARGEFILE_SOURCE 1
27122 #include <stdio.h>
27124 main ()
27126 return !fseeko;
27128 return 0;
27130 _ACEOF
27131 rm -f conftest.$ac_objext
27132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27133 (eval $ac_compile) 2>&5
27134 ac_status=$?
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); } &&
27137 { ac_try='test -s conftest.$ac_objext'
27138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27139 (eval $ac_try) 2>&5
27140 ac_status=$?
27141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142 (exit $ac_status); }; }; then
27143 ac_cv_sys_largefile_source=1; break
27144 else
27145 echo "$as_me: failed program was:" >&5
27146 sed 's/^/| /' conftest.$ac_ext >&5
27149 rm -f conftest.$ac_objext conftest.$ac_ext
27150 break
27151 done
27153 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
27154 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
27155 if test "$ac_cv_sys_largefile_source" != no; then
27157 cat >>confdefs.h <<_ACEOF
27158 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
27159 _ACEOF
27162 rm -f conftest*
27164 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
27165 # in glibc 2.1.3, but that breaks too many other things.
27166 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
27167 echo "$as_me:$LINENO: checking for fseeko" >&5
27168 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
27169 if test "${ac_cv_func_fseeko+set}" = set; then
27170 echo $ECHO_N "(cached) $ECHO_C" >&6
27171 else
27172 cat >conftest.$ac_ext <<_ACEOF
27173 #line $LINENO "configure"
27174 /* confdefs.h. */
27175 _ACEOF
27176 cat confdefs.h >>conftest.$ac_ext
27177 cat >>conftest.$ac_ext <<_ACEOF
27178 /* end confdefs.h. */
27179 #include <stdio.h>
27181 main ()
27183 return fseeko && fseeko (stdin, 0, 0);
27185 return 0;
27187 _ACEOF
27188 rm -f conftest.$ac_objext conftest$ac_exeext
27189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27190 (eval $ac_link) 2>&5
27191 ac_status=$?
27192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193 (exit $ac_status); } &&
27194 { ac_try='test -s conftest$ac_exeext'
27195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27196 (eval $ac_try) 2>&5
27197 ac_status=$?
27198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199 (exit $ac_status); }; }; then
27200 ac_cv_func_fseeko=yes
27201 else
27202 echo "$as_me: failed program was:" >&5
27203 sed 's/^/| /' conftest.$ac_ext >&5
27205 ac_cv_func_fseeko=no
27207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27209 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
27210 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
27211 if test $ac_cv_func_fseeko = yes; then
27213 cat >>confdefs.h <<\_ACEOF
27214 #define HAVE_FSEEKO 1
27215 _ACEOF
27220 for ac_func in vprintf
27222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27223 echo "$as_me:$LINENO: checking for $ac_func" >&5
27224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27225 if eval "test \"\${$as_ac_var+set}\" = set"; then
27226 echo $ECHO_N "(cached) $ECHO_C" >&6
27227 else
27228 cat >conftest.$ac_ext <<_ACEOF
27229 #line $LINENO "configure"
27230 /* confdefs.h. */
27231 _ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h. */
27235 /* System header to define __stub macros and hopefully few prototypes,
27236 which can conflict with char $ac_func (); below.
27237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27238 <limits.h> exists even on freestanding compilers. */
27239 #ifdef __STDC__
27240 # include <limits.h>
27241 #else
27242 # include <assert.h>
27243 #endif
27244 /* Override any gcc2 internal prototype to avoid an error. */
27245 #ifdef __cplusplus
27246 extern "C"
27248 #endif
27249 /* We use char because int might match the return type of a gcc2
27250 builtin and then its argument prototype would still apply. */
27251 char $ac_func ();
27252 /* The GNU C library defines this for functions which it implements
27253 to always fail with ENOSYS. Some functions are actually named
27254 something starting with __ and the normal name is an alias. */
27255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27256 choke me
27257 #else
27258 char (*f) () = $ac_func;
27259 #endif
27260 #ifdef __cplusplus
27262 #endif
27265 main ()
27267 return f != $ac_func;
27269 return 0;
27271 _ACEOF
27272 rm -f conftest.$ac_objext conftest$ac_exeext
27273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27274 (eval $ac_link) 2>&5
27275 ac_status=$?
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277 (exit $ac_status); } &&
27278 { ac_try='test -s conftest$ac_exeext'
27279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27280 (eval $ac_try) 2>&5
27281 ac_status=$?
27282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283 (exit $ac_status); }; }; then
27284 eval "$as_ac_var=yes"
27285 else
27286 echo "$as_me: failed program was:" >&5
27287 sed 's/^/| /' conftest.$ac_ext >&5
27289 eval "$as_ac_var=no"
27291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27295 if test `eval echo '${'$as_ac_var'}'` = yes; then
27296 cat >>confdefs.h <<_ACEOF
27297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27298 _ACEOF
27300 echo "$as_me:$LINENO: checking for _doprnt" >&5
27301 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27302 if test "${ac_cv_func__doprnt+set}" = set; then
27303 echo $ECHO_N "(cached) $ECHO_C" >&6
27304 else
27305 cat >conftest.$ac_ext <<_ACEOF
27306 #line $LINENO "configure"
27307 /* confdefs.h. */
27308 _ACEOF
27309 cat confdefs.h >>conftest.$ac_ext
27310 cat >>conftest.$ac_ext <<_ACEOF
27311 /* end confdefs.h. */
27312 /* System header to define __stub macros and hopefully few prototypes,
27313 which can conflict with char _doprnt (); below.
27314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27315 <limits.h> exists even on freestanding compilers. */
27316 #ifdef __STDC__
27317 # include <limits.h>
27318 #else
27319 # include <assert.h>
27320 #endif
27321 /* Override any gcc2 internal prototype to avoid an error. */
27322 #ifdef __cplusplus
27323 extern "C"
27325 #endif
27326 /* We use char because int might match the return type of a gcc2
27327 builtin and then its argument prototype would still apply. */
27328 char _doprnt ();
27329 /* The GNU C library defines this for functions which it implements
27330 to always fail with ENOSYS. Some functions are actually named
27331 something starting with __ and the normal name is an alias. */
27332 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27333 choke me
27334 #else
27335 char (*f) () = _doprnt;
27336 #endif
27337 #ifdef __cplusplus
27339 #endif
27342 main ()
27344 return f != _doprnt;
27346 return 0;
27348 _ACEOF
27349 rm -f conftest.$ac_objext conftest$ac_exeext
27350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27351 (eval $ac_link) 2>&5
27352 ac_status=$?
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); } &&
27355 { ac_try='test -s conftest$ac_exeext'
27356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27357 (eval $ac_try) 2>&5
27358 ac_status=$?
27359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360 (exit $ac_status); }; }; then
27361 ac_cv_func__doprnt=yes
27362 else
27363 echo "$as_me: failed program was:" >&5
27364 sed 's/^/| /' conftest.$ac_ext >&5
27366 ac_cv_func__doprnt=no
27368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27370 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27371 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27372 if test $ac_cv_func__doprnt = yes; then
27374 cat >>confdefs.h <<\_ACEOF
27375 #define HAVE_DOPRNT 1
27376 _ACEOF
27381 done
27385 echo "$as_me:$LINENO: checking for /proc/uptime" >&5
27386 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
27387 if test "${jm_cv_have_proc_uptime+set}" = set; then
27388 echo $ECHO_N "(cached) $ECHO_C" >&6
27389 else
27390 jm_cv_have_proc_uptime=no
27391 test -f /proc/uptime \
27392 && test "$cross_compiling" = no \
27393 && cat < /proc/uptime >/dev/null 2>/dev/null \
27394 && jm_cv_have_proc_uptime=yes
27396 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
27397 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
27398 if test $jm_cv_have_proc_uptime = yes; then
27400 cat >>confdefs.h <<\_ACEOF
27401 #define HAVE_PROC_UPTIME 1
27402 _ACEOF
27408 for ac_func in ftruncate
27410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27411 echo "$as_me:$LINENO: checking for $ac_func" >&5
27412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27413 if eval "test \"\${$as_ac_var+set}\" = set"; then
27414 echo $ECHO_N "(cached) $ECHO_C" >&6
27415 else
27416 cat >conftest.$ac_ext <<_ACEOF
27417 #line $LINENO "configure"
27418 /* confdefs.h. */
27419 _ACEOF
27420 cat confdefs.h >>conftest.$ac_ext
27421 cat >>conftest.$ac_ext <<_ACEOF
27422 /* end confdefs.h. */
27423 /* System header to define __stub macros and hopefully few prototypes,
27424 which can conflict with char $ac_func (); below.
27425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27426 <limits.h> exists even on freestanding compilers. */
27427 #ifdef __STDC__
27428 # include <limits.h>
27429 #else
27430 # include <assert.h>
27431 #endif
27432 /* Override any gcc2 internal prototype to avoid an error. */
27433 #ifdef __cplusplus
27434 extern "C"
27436 #endif
27437 /* We use char because int might match the return type of a gcc2
27438 builtin and then its argument prototype would still apply. */
27439 char $ac_func ();
27440 /* The GNU C library defines this for functions which it implements
27441 to always fail with ENOSYS. Some functions are actually named
27442 something starting with __ and the normal name is an alias. */
27443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27444 choke me
27445 #else
27446 char (*f) () = $ac_func;
27447 #endif
27448 #ifdef __cplusplus
27450 #endif
27453 main ()
27455 return f != $ac_func;
27457 return 0;
27459 _ACEOF
27460 rm -f conftest.$ac_objext conftest$ac_exeext
27461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27462 (eval $ac_link) 2>&5
27463 ac_status=$?
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); } &&
27466 { ac_try='test -s conftest$ac_exeext'
27467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27468 (eval $ac_try) 2>&5
27469 ac_status=$?
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); }; }; then
27472 eval "$as_ac_var=yes"
27473 else
27474 echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.$ac_ext >&5
27477 eval "$as_ac_var=no"
27479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27483 if test `eval echo '${'$as_ac_var'}'` = yes; then
27484 cat >>confdefs.h <<_ACEOF
27485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27486 _ACEOF
27488 else
27489 ftruncate_missing=yes
27491 done
27494 if test "$ftruncate_missing" = yes; then
27496 for ac_header in unistd.h
27498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27500 echo "$as_me:$LINENO: checking for $ac_header" >&5
27501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27503 echo $ECHO_N "(cached) $ECHO_C" >&6
27505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27507 else
27508 # Is the header compilable?
27509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27511 cat >conftest.$ac_ext <<_ACEOF
27512 #line $LINENO "configure"
27513 /* confdefs.h. */
27514 _ACEOF
27515 cat confdefs.h >>conftest.$ac_ext
27516 cat >>conftest.$ac_ext <<_ACEOF
27517 /* end confdefs.h. */
27518 $ac_includes_default
27519 #include <$ac_header>
27520 _ACEOF
27521 rm -f conftest.$ac_objext
27522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27523 (eval $ac_compile) 2>&5
27524 ac_status=$?
27525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526 (exit $ac_status); } &&
27527 { ac_try='test -s conftest.$ac_objext'
27528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27529 (eval $ac_try) 2>&5
27530 ac_status=$?
27531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27532 (exit $ac_status); }; }; then
27533 ac_header_compiler=yes
27534 else
27535 echo "$as_me: failed program was:" >&5
27536 sed 's/^/| /' conftest.$ac_ext >&5
27538 ac_header_compiler=no
27540 rm -f conftest.$ac_objext conftest.$ac_ext
27541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27542 echo "${ECHO_T}$ac_header_compiler" >&6
27544 # Is the header present?
27545 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27547 cat >conftest.$ac_ext <<_ACEOF
27548 #line $LINENO "configure"
27549 /* confdefs.h. */
27550 _ACEOF
27551 cat confdefs.h >>conftest.$ac_ext
27552 cat >>conftest.$ac_ext <<_ACEOF
27553 /* end confdefs.h. */
27554 #include <$ac_header>
27555 _ACEOF
27556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27558 ac_status=$?
27559 grep -v '^ *+' conftest.er1 >conftest.err
27560 rm -f conftest.er1
27561 cat conftest.err >&5
27562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563 (exit $ac_status); } >/dev/null; then
27564 if test -s conftest.err; then
27565 ac_cpp_err=$ac_c_preproc_warn_flag
27566 else
27567 ac_cpp_err=
27569 else
27570 ac_cpp_err=yes
27572 if test -z "$ac_cpp_err"; then
27573 ac_header_preproc=yes
27574 else
27575 echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27578 ac_header_preproc=no
27580 rm -f conftest.err conftest.$ac_ext
27581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27582 echo "${ECHO_T}$ac_header_preproc" >&6
27584 # So? What about this header?
27585 case $ac_header_compiler:$ac_header_preproc in
27586 yes:no )
27587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27592 cat <<\_ASBOX
27593 ## ------------------------------------ ##
27594 ## Report this to bug-autoconf@gnu.org. ##
27595 ## ------------------------------------ ##
27596 _ASBOX
27598 sed "s/^/$as_me: WARNING: /" >&2
27600 no:yes )
27601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27608 cat <<\_ASBOX
27609 ## ------------------------------------ ##
27610 ## Report this to bug-autoconf@gnu.org. ##
27611 ## ------------------------------------ ##
27612 _ASBOX
27614 sed "s/^/$as_me: WARNING: /" >&2
27616 esac
27617 echo "$as_me:$LINENO: checking for $ac_header" >&5
27618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27620 echo $ECHO_N "(cached) $ECHO_C" >&6
27621 else
27622 eval "$as_ac_Header=$ac_header_preproc"
27624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27629 cat >>confdefs.h <<_ACEOF
27630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27631 _ACEOF
27635 done
27638 for ac_func in chsize
27640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27641 echo "$as_me:$LINENO: checking for $ac_func" >&5
27642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27643 if eval "test \"\${$as_ac_var+set}\" = set"; then
27644 echo $ECHO_N "(cached) $ECHO_C" >&6
27645 else
27646 cat >conftest.$ac_ext <<_ACEOF
27647 #line $LINENO "configure"
27648 /* confdefs.h. */
27649 _ACEOF
27650 cat confdefs.h >>conftest.$ac_ext
27651 cat >>conftest.$ac_ext <<_ACEOF
27652 /* end confdefs.h. */
27653 /* System header to define __stub macros and hopefully few prototypes,
27654 which can conflict with char $ac_func (); below.
27655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27656 <limits.h> exists even on freestanding compilers. */
27657 #ifdef __STDC__
27658 # include <limits.h>
27659 #else
27660 # include <assert.h>
27661 #endif
27662 /* Override any gcc2 internal prototype to avoid an error. */
27663 #ifdef __cplusplus
27664 extern "C"
27666 #endif
27667 /* We use char because int might match the return type of a gcc2
27668 builtin and then its argument prototype would still apply. */
27669 char $ac_func ();
27670 /* The GNU C library defines this for functions which it implements
27671 to always fail with ENOSYS. Some functions are actually named
27672 something starting with __ and the normal name is an alias. */
27673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27674 choke me
27675 #else
27676 char (*f) () = $ac_func;
27677 #endif
27678 #ifdef __cplusplus
27680 #endif
27683 main ()
27685 return f != $ac_func;
27687 return 0;
27689 _ACEOF
27690 rm -f conftest.$ac_objext conftest$ac_exeext
27691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27692 (eval $ac_link) 2>&5
27693 ac_status=$?
27694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695 (exit $ac_status); } &&
27696 { ac_try='test -s conftest$ac_exeext'
27697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27698 (eval $ac_try) 2>&5
27699 ac_status=$?
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); }; }; then
27702 eval "$as_ac_var=yes"
27703 else
27704 echo "$as_me: failed program was:" >&5
27705 sed 's/^/| /' conftest.$ac_ext >&5
27707 eval "$as_ac_var=no"
27709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27713 if test `eval echo '${'$as_ac_var'}'` = yes; then
27714 cat >>confdefs.h <<_ACEOF
27715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27716 _ACEOF
27719 done
27721 LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
27725 echo "$as_me:$LINENO: checking whether rename is broken" >&5
27726 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
27727 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
27728 echo $ECHO_N "(cached) $ECHO_C" >&6
27729 else
27731 rm -rf conftest.d1 conftest.d2
27732 mkdir conftest.d1 ||
27733 { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
27734 echo "$as_me: error: cannot create temporary directory" >&2;}
27735 { (exit 1); exit 1; }; }
27736 if test "$cross_compiling" = yes; then
27737 vb_cv_func_rename_trailing_slash_bug=yes
27738 else
27739 cat >conftest.$ac_ext <<_ACEOF
27740 #line $LINENO "configure"
27741 /* confdefs.h. */
27742 _ACEOF
27743 cat confdefs.h >>conftest.$ac_ext
27744 cat >>conftest.$ac_ext <<_ACEOF
27745 /* end confdefs.h. */
27747 # include <stdio.h>
27749 main ()
27751 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
27754 _ACEOF
27755 rm -f conftest$ac_exeext
27756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27757 (eval $ac_link) 2>&5
27758 ac_status=$?
27759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27762 (eval $ac_try) 2>&5
27763 ac_status=$?
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); }; }; then
27766 vb_cv_func_rename_trailing_slash_bug=no
27767 else
27768 echo "$as_me: program exited with status $ac_status" >&5
27769 echo "$as_me: failed program was:" >&5
27770 sed 's/^/| /' conftest.$ac_ext >&5
27772 ( exit $ac_status )
27773 vb_cv_func_rename_trailing_slash_bug=yes
27775 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27778 rm -rf conftest.d1 conftest.d2
27781 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
27782 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
27783 if test $vb_cv_func_rename_trailing_slash_bug = yes; then
27784 LIBOBJS="$LIBOBJS rename.$ac_objext"
27786 cat >>confdefs.h <<\_ACEOF
27787 #define RENAME_TRAILING_SLASH_BUG 1
27788 _ACEOF
27793 for ac_func in mkstemp
27795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27796 echo "$as_me:$LINENO: checking for $ac_func" >&5
27797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27798 if eval "test \"\${$as_ac_var+set}\" = set"; then
27799 echo $ECHO_N "(cached) $ECHO_C" >&6
27800 else
27801 cat >conftest.$ac_ext <<_ACEOF
27802 #line $LINENO "configure"
27803 /* confdefs.h. */
27804 _ACEOF
27805 cat confdefs.h >>conftest.$ac_ext
27806 cat >>conftest.$ac_ext <<_ACEOF
27807 /* end confdefs.h. */
27808 /* System header to define __stub macros and hopefully few prototypes,
27809 which can conflict with char $ac_func (); below.
27810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27811 <limits.h> exists even on freestanding compilers. */
27812 #ifdef __STDC__
27813 # include <limits.h>
27814 #else
27815 # include <assert.h>
27816 #endif
27817 /* Override any gcc2 internal prototype to avoid an error. */
27818 #ifdef __cplusplus
27819 extern "C"
27821 #endif
27822 /* We use char because int might match the return type of a gcc2
27823 builtin and then its argument prototype would still apply. */
27824 char $ac_func ();
27825 /* The GNU C library defines this for functions which it implements
27826 to always fail with ENOSYS. Some functions are actually named
27827 something starting with __ and the normal name is an alias. */
27828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27829 choke me
27830 #else
27831 char (*f) () = $ac_func;
27832 #endif
27833 #ifdef __cplusplus
27835 #endif
27838 main ()
27840 return f != $ac_func;
27842 return 0;
27844 _ACEOF
27845 rm -f conftest.$ac_objext conftest$ac_exeext
27846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27847 (eval $ac_link) 2>&5
27848 ac_status=$?
27849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850 (exit $ac_status); } &&
27851 { ac_try='test -s conftest$ac_exeext'
27852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27853 (eval $ac_try) 2>&5
27854 ac_status=$?
27855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856 (exit $ac_status); }; }; then
27857 eval "$as_ac_var=yes"
27858 else
27859 echo "$as_me: failed program was:" >&5
27860 sed 's/^/| /' conftest.$ac_ext >&5
27862 eval "$as_ac_var=no"
27864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27868 if test `eval echo '${'$as_ac_var'}'` = yes; then
27869 cat >>confdefs.h <<_ACEOF
27870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27871 _ACEOF
27873 else
27874 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27876 done
27879 if test $ac_cv_func_mkstemp = no; then
27880 utils_cv_func_mkstemp_limitations=yes
27881 else
27882 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
27883 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
27884 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
27885 echo $ECHO_N "(cached) $ECHO_C" >&6
27886 else
27888 if test "$cross_compiling" = yes; then
27889 utils_cv_func_mkstemp_limitations=yes
27891 else
27892 cat >conftest.$ac_ext <<_ACEOF
27893 #line $LINENO "configure"
27894 /* confdefs.h. */
27895 _ACEOF
27896 cat confdefs.h >>conftest.$ac_ext
27897 cat >>conftest.$ac_ext <<_ACEOF
27898 /* end confdefs.h. */
27900 # include <stdlib.h>
27901 int main ()
27903 int i;
27904 for (i = 0; i < 30; i++)
27906 char template[] = "conftestXXXXXX";
27907 int fd = mkstemp (template);
27908 if (fd == -1)
27909 exit (1);
27910 close (fd);
27912 exit (0);
27915 _ACEOF
27916 rm -f conftest$ac_exeext
27917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27918 (eval $ac_link) 2>&5
27919 ac_status=$?
27920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27923 (eval $ac_try) 2>&5
27924 ac_status=$?
27925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926 (exit $ac_status); }; }; then
27927 utils_cv_func_mkstemp_limitations=no
27928 else
27929 echo "$as_me: program exited with status $ac_status" >&5
27930 echo "$as_me: failed program was:" >&5
27931 sed 's/^/| /' conftest.$ac_ext >&5
27933 ( exit $ac_status )
27934 utils_cv_func_mkstemp_limitations=yes
27936 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27941 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
27942 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
27945 if test $utils_cv_func_mkstemp_limitations = yes; then
27946 LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
27947 LIBOBJS="$LIBOBJS tempname.$ac_objext"
27949 cat >>confdefs.h <<\_ACEOF
27950 #define mkstemp rpl_mkstemp
27951 _ACEOF
27955 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
27956 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
27957 if test "${ac_cv_func_closedir_void+set}" = set; then
27958 echo $ECHO_N "(cached) $ECHO_C" >&6
27959 else
27960 if test "$cross_compiling" = yes; then
27961 ac_cv_func_closedir_void=yes
27962 else
27963 cat >conftest.$ac_ext <<_ACEOF
27964 #line $LINENO "configure"
27965 /* confdefs.h. */
27966 _ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h. */
27970 $ac_includes_default
27971 #include <$ac_header_dirent>
27972 #ifndef __cplusplus
27973 int closedir ();
27974 #endif
27977 main ()
27979 exit (closedir (opendir (".")) != 0);
27981 return 0;
27983 _ACEOF
27984 rm -f conftest$ac_exeext
27985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27986 (eval $ac_link) 2>&5
27987 ac_status=$?
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27991 (eval $ac_try) 2>&5
27992 ac_status=$?
27993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); }; }; then
27995 ac_cv_func_closedir_void=no
27996 else
27997 echo "$as_me: program exited with status $ac_status" >&5
27998 echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.$ac_ext >&5
28001 ( exit $ac_status )
28002 ac_cv_func_closedir_void=yes
28004 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28007 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28008 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28009 if test $ac_cv_func_closedir_void = yes; then
28011 cat >>confdefs.h <<\_ACEOF
28012 #define CLOSEDIR_VOID 1
28013 _ACEOF
28017 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
28018 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
28019 if test "${ac_cv_func_utime_null+set}" = set; then
28020 echo $ECHO_N "(cached) $ECHO_C" >&6
28021 else
28022 rm -f conftest.data; >conftest.data
28023 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
28024 if test "$cross_compiling" = yes; then
28025 ac_cv_func_utime_null=no
28026 else
28027 cat >conftest.$ac_ext <<_ACEOF
28028 #line $LINENO "configure"
28029 /* confdefs.h. */
28030 _ACEOF
28031 cat confdefs.h >>conftest.$ac_ext
28032 cat >>conftest.$ac_ext <<_ACEOF
28033 /* end confdefs.h. */
28034 $ac_includes_default
28036 main ()
28038 struct stat s, t;
28039 exit (!(stat ("conftest.data", &s) == 0
28040 && utime ("conftest.data", (long *)0) == 0
28041 && stat ("conftest.data", &t) == 0
28042 && t.st_mtime >= s.st_mtime
28043 && t.st_mtime - s.st_mtime < 120));
28045 return 0;
28047 _ACEOF
28048 rm -f conftest$ac_exeext
28049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28050 (eval $ac_link) 2>&5
28051 ac_status=$?
28052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28055 (eval $ac_try) 2>&5
28056 ac_status=$?
28057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); }; }; then
28059 ac_cv_func_utime_null=yes
28060 else
28061 echo "$as_me: program exited with status $ac_status" >&5
28062 echo "$as_me: failed program was:" >&5
28063 sed 's/^/| /' conftest.$ac_ext >&5
28065 ( exit $ac_status )
28066 ac_cv_func_utime_null=no
28068 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28070 rm -f core core.* *.core
28072 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
28073 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
28074 if test $ac_cv_func_utime_null = yes; then
28076 cat >>confdefs.h <<\_ACEOF
28077 #define HAVE_UTIME_NULL 1
28078 _ACEOF
28081 rm -f conftest.data
28085 for ac_header in utime.h
28087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28089 echo "$as_me:$LINENO: checking for $ac_header" >&5
28090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28092 echo $ECHO_N "(cached) $ECHO_C" >&6
28094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28096 else
28097 # Is the header compilable?
28098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28100 cat >conftest.$ac_ext <<_ACEOF
28101 #line $LINENO "configure"
28102 /* confdefs.h. */
28103 _ACEOF
28104 cat confdefs.h >>conftest.$ac_ext
28105 cat >>conftest.$ac_ext <<_ACEOF
28106 /* end confdefs.h. */
28107 $ac_includes_default
28108 #include <$ac_header>
28109 _ACEOF
28110 rm -f conftest.$ac_objext
28111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28112 (eval $ac_compile) 2>&5
28113 ac_status=$?
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); } &&
28116 { ac_try='test -s conftest.$ac_objext'
28117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118 (eval $ac_try) 2>&5
28119 ac_status=$?
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); }; }; then
28122 ac_header_compiler=yes
28123 else
28124 echo "$as_me: failed program was:" >&5
28125 sed 's/^/| /' conftest.$ac_ext >&5
28127 ac_header_compiler=no
28129 rm -f conftest.$ac_objext conftest.$ac_ext
28130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28131 echo "${ECHO_T}$ac_header_compiler" >&6
28133 # Is the header present?
28134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28136 cat >conftest.$ac_ext <<_ACEOF
28137 #line $LINENO "configure"
28138 /* confdefs.h. */
28139 _ACEOF
28140 cat confdefs.h >>conftest.$ac_ext
28141 cat >>conftest.$ac_ext <<_ACEOF
28142 /* end confdefs.h. */
28143 #include <$ac_header>
28144 _ACEOF
28145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28147 ac_status=$?
28148 grep -v '^ *+' conftest.er1 >conftest.err
28149 rm -f conftest.er1
28150 cat conftest.err >&5
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); } >/dev/null; then
28153 if test -s conftest.err; then
28154 ac_cpp_err=$ac_c_preproc_warn_flag
28155 else
28156 ac_cpp_err=
28158 else
28159 ac_cpp_err=yes
28161 if test -z "$ac_cpp_err"; then
28162 ac_header_preproc=yes
28163 else
28164 echo "$as_me: failed program was:" >&5
28165 sed 's/^/| /' conftest.$ac_ext >&5
28167 ac_header_preproc=no
28169 rm -f conftest.err conftest.$ac_ext
28170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28171 echo "${ECHO_T}$ac_header_preproc" >&6
28173 # So? What about this header?
28174 case $ac_header_compiler:$ac_header_preproc in
28175 yes:no )
28176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28181 cat <<\_ASBOX
28182 ## ------------------------------------ ##
28183 ## Report this to bug-autoconf@gnu.org. ##
28184 ## ------------------------------------ ##
28185 _ASBOX
28187 sed "s/^/$as_me: WARNING: /" >&2
28189 no:yes )
28190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28197 cat <<\_ASBOX
28198 ## ------------------------------------ ##
28199 ## Report this to bug-autoconf@gnu.org. ##
28200 ## ------------------------------------ ##
28201 _ASBOX
28203 sed "s/^/$as_me: WARNING: /" >&2
28205 esac
28206 echo "$as_me:$LINENO: checking for $ac_header" >&5
28207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28209 echo $ECHO_N "(cached) $ECHO_C" >&6
28210 else
28211 eval "$as_ac_Header=$ac_header_preproc"
28213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28218 cat >>confdefs.h <<_ACEOF
28219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28220 _ACEOF
28224 done
28229 if test $ac_cv_func_utime_null = no; then
28230 echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
28231 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
28232 if test "${ac_cv_func_utimes_null+set}" = set; then
28233 echo $ECHO_N "(cached) $ECHO_C" >&6
28234 else
28235 rm -f conftest.data; > conftest.data
28236 if test "$cross_compiling" = yes; then
28237 ac_cv_func_utimes_null=no
28238 else
28239 cat >conftest.$ac_ext <<_ACEOF
28240 #line $LINENO "configure"
28241 /* confdefs.h. */
28242 _ACEOF
28243 cat confdefs.h >>conftest.$ac_ext
28244 cat >>conftest.$ac_ext <<_ACEOF
28245 /* end confdefs.h. */
28247 /* In case stat has been defined to rpl_stat, undef it here. */
28248 #undef stat
28249 #include <sys/types.h>
28250 #include <sys/stat.h>
28251 main() {
28252 struct stat s, t;
28253 exit(!(stat ("conftest.data", &s) == 0
28254 && utimes("conftest.data", (long *)0) == 0
28255 && stat("conftest.data", &t) == 0
28256 && t.st_mtime >= s.st_mtime
28257 && t.st_mtime - s.st_mtime < 120));
28259 _ACEOF
28260 rm -f conftest$ac_exeext
28261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28262 (eval $ac_link) 2>&5
28263 ac_status=$?
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28267 (eval $ac_try) 2>&5
28268 ac_status=$?
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); }; }; then
28271 ac_cv_func_utimes_null=yes
28272 else
28273 echo "$as_me: program exited with status $ac_status" >&5
28274 echo "$as_me: failed program was:" >&5
28275 sed 's/^/| /' conftest.$ac_ext >&5
28277 ( exit $ac_status )
28278 ac_cv_func_utimes_null=no
28280 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28282 rm -f core core.* *.core
28284 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
28285 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
28287 if test $ac_cv_func_utimes_null = yes; then
28289 cat >>confdefs.h <<\_ACEOF
28290 #define HAVE_UTIMES_NULL 1
28291 _ACEOF
28297 for ac_func in utime
28299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28300 echo "$as_me:$LINENO: checking for $ac_func" >&5
28301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28302 if eval "test \"\${$as_ac_var+set}\" = set"; then
28303 echo $ECHO_N "(cached) $ECHO_C" >&6
28304 else
28305 cat >conftest.$ac_ext <<_ACEOF
28306 #line $LINENO "configure"
28307 /* confdefs.h. */
28308 _ACEOF
28309 cat confdefs.h >>conftest.$ac_ext
28310 cat >>conftest.$ac_ext <<_ACEOF
28311 /* end confdefs.h. */
28312 /* System header to define __stub macros and hopefully few prototypes,
28313 which can conflict with char $ac_func (); below.
28314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28315 <limits.h> exists even on freestanding compilers. */
28316 #ifdef __STDC__
28317 # include <limits.h>
28318 #else
28319 # include <assert.h>
28320 #endif
28321 /* Override any gcc2 internal prototype to avoid an error. */
28322 #ifdef __cplusplus
28323 extern "C"
28325 #endif
28326 /* We use char because int might match the return type of a gcc2
28327 builtin and then its argument prototype would still apply. */
28328 char $ac_func ();
28329 /* The GNU C library defines this for functions which it implements
28330 to always fail with ENOSYS. Some functions are actually named
28331 something starting with __ and the normal name is an alias. */
28332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28333 choke me
28334 #else
28335 char (*f) () = $ac_func;
28336 #endif
28337 #ifdef __cplusplus
28339 #endif
28342 main ()
28344 return f != $ac_func;
28346 return 0;
28348 _ACEOF
28349 rm -f conftest.$ac_objext conftest$ac_exeext
28350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28351 (eval $ac_link) 2>&5
28352 ac_status=$?
28353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354 (exit $ac_status); } &&
28355 { ac_try='test -s conftest$ac_exeext'
28356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28357 (eval $ac_try) 2>&5
28358 ac_status=$?
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); }; }; then
28361 eval "$as_ac_var=yes"
28362 else
28363 echo "$as_me: failed program was:" >&5
28364 sed 's/^/| /' conftest.$ac_ext >&5
28366 eval "$as_ac_var=no"
28368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28372 if test `eval echo '${'$as_ac_var'}'` = yes; then
28373 cat >>confdefs.h <<_ACEOF
28374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28375 _ACEOF
28377 else
28378 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28380 done
28386 echo "$as_me:$LINENO: checking determine how many files may be open simultaneously" >&5
28387 echo $ECHO_N "checking determine how many files may be open simultaneously... $ECHO_C" >&6
28388 if test "${utils_cv_sys_open_max+set}" = set; then
28389 echo $ECHO_N "(cached) $ECHO_C" >&6
28390 else
28392 if test "$cross_compiling" = yes; then
28393 utils_cv_sys_open_max='cross compiling run-test in open-max.m4'
28394 else
28395 cat >conftest.$ac_ext <<_ACEOF
28396 #line $LINENO "configure"
28397 /* confdefs.h. */
28398 _ACEOF
28399 cat confdefs.h >>conftest.$ac_ext
28400 cat >>conftest.$ac_ext <<_ACEOF
28401 /* end confdefs.h. */
28403 #include <stdio.h>
28404 #include <stdlib.h>
28405 #include <unistd.h>
28407 main ()
28409 FILE *result = fopen ("conftest.omax", "w");
28410 int i = 1;
28411 /* Impose an arbitrary limit, in case some system has no
28412 effective limit on the number of simultaneously open files. */
28413 while (i < 30000)
28415 FILE *s = fopen ("conftest.op", "w");
28416 if (!s)
28417 break;
28418 ++i;
28420 fprintf (result, "%d\n", i);
28421 exit (fclose (result) == EOF);
28424 _ACEOF
28425 rm -f conftest$ac_exeext
28426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28427 (eval $ac_link) 2>&5
28428 ac_status=$?
28429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28432 (eval $ac_try) 2>&5
28433 ac_status=$?
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); }; }; then
28436 utils_cv_sys_open_max=`cat conftest.omax`
28437 else
28438 echo "$as_me: program exited with status $ac_status" >&5
28439 echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28442 ( exit $ac_status )
28443 utils_cv_sys_open_max='internal error in open-max.m4'
28445 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28448 echo "$as_me:$LINENO: result: $utils_cv_sys_open_max" >&5
28449 echo "${ECHO_T}$utils_cv_sys_open_max" >&6
28452 cat >>confdefs.h <<_ACEOF
28453 #define UTILS_OPEN_MAX $utils_cv_sys_open_max
28454 _ACEOF
28458 if test "X$prefix" = "XNONE"; then
28459 acl_final_prefix="$ac_default_prefix"
28460 else
28461 acl_final_prefix="$prefix"
28463 if test "X$exec_prefix" = "XNONE"; then
28464 acl_final_exec_prefix='${prefix}'
28465 else
28466 acl_final_exec_prefix="$exec_prefix"
28468 acl_save_prefix="$prefix"
28469 prefix="$acl_final_prefix"
28470 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
28471 prefix="$acl_save_prefix"
28474 # Check whether --with-gnu-ld or --without-gnu-ld was given.
28475 if test "${with_gnu_ld+set}" = set; then
28476 withval="$with_gnu_ld"
28477 test "$withval" = no || with_gnu_ld=yes
28478 else
28479 with_gnu_ld=no
28481 ac_prog=ld
28482 if test "$GCC" = yes; then
28483 # Check if gcc -print-prog-name=ld gives a path.
28484 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
28485 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
28486 case $host in
28487 *-*-mingw*)
28488 # gcc leaves a trailing carriage return which upsets mingw
28489 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
28491 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
28492 esac
28493 case $ac_prog in
28494 # Accept absolute paths.
28495 [\\/]* | [A-Za-z]:[\\/]*)
28496 re_direlt='/[^/][^/]*/\.\./'
28497 # Canonicalize the path of ld
28498 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
28499 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
28500 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
28501 done
28502 test -z "$LD" && LD="$ac_prog"
28505 # If it fails, then pretend we aren't using GCC.
28506 ac_prog=ld
28509 # If it is relative, then search for the first ld in PATH.
28510 with_gnu_ld=unknown
28512 esac
28513 elif test "$with_gnu_ld" = yes; then
28514 echo "$as_me:$LINENO: checking for GNU ld" >&5
28515 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
28516 else
28517 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
28518 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
28520 if test "${acl_cv_path_LD+set}" = set; then
28521 echo $ECHO_N "(cached) $ECHO_C" >&6
28522 else
28523 if test -z "$LD"; then
28524 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
28525 for ac_dir in $PATH; do
28526 test -z "$ac_dir" && ac_dir=.
28527 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
28528 acl_cv_path_LD="$ac_dir/$ac_prog"
28529 # Check to see if the program is GNU ld. I'd rather use --version,
28530 # but apparently some GNU ld's only accept -v.
28531 # Break only if it was the GNU/non-GNU ld that we prefer.
28532 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
28533 test "$with_gnu_ld" != no && break
28534 else
28535 test "$with_gnu_ld" != yes && break
28538 done
28539 IFS="$ac_save_ifs"
28540 else
28541 acl_cv_path_LD="$LD" # Let the user override the test with a path.
28545 LD="$acl_cv_path_LD"
28546 if test -n "$LD"; then
28547 echo "$as_me:$LINENO: result: $LD" >&5
28548 echo "${ECHO_T}$LD" >&6
28549 else
28550 echo "$as_me:$LINENO: result: no" >&5
28551 echo "${ECHO_T}no" >&6
28553 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
28554 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
28555 { (exit 1); exit 1; }; }
28556 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
28557 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
28558 if test "${acl_cv_prog_gnu_ld+set}" = set; then
28559 echo $ECHO_N "(cached) $ECHO_C" >&6
28560 else
28561 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
28562 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
28563 acl_cv_prog_gnu_ld=yes
28564 else
28565 acl_cv_prog_gnu_ld=no
28568 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
28569 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
28570 with_gnu_ld=$acl_cv_prog_gnu_ld
28574 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
28575 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
28576 if test "${acl_cv_rpath+set}" = set; then
28577 echo $ECHO_N "(cached) $ECHO_C" >&6
28578 else
28580 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
28581 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
28582 . ./conftest.sh
28583 rm -f ./conftest.sh
28584 acl_cv_rpath=done
28587 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
28588 echo "${ECHO_T}$acl_cv_rpath" >&6
28589 wl="$acl_cv_wl"
28590 libext="$acl_cv_libext"
28591 shlibext="$acl_cv_shlibext"
28592 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
28593 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
28594 hardcode_direct="$acl_cv_hardcode_direct"
28595 hardcode_minus_L="$acl_cv_hardcode_minus_L"
28596 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
28597 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
28598 # Check whether --enable-rpath or --disable-rpath was given.
28599 if test "${enable_rpath+set}" = set; then
28600 enableval="$enable_rpath"
28602 else
28603 enable_rpath=yes
28612 use_additional=yes
28614 acl_save_prefix="$prefix"
28615 prefix="$acl_final_prefix"
28616 acl_save_exec_prefix="$exec_prefix"
28617 exec_prefix="$acl_final_exec_prefix"
28619 eval additional_includedir=\"$includedir\"
28620 eval additional_libdir=\"$libdir\"
28622 exec_prefix="$acl_save_exec_prefix"
28623 prefix="$acl_save_prefix"
28626 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
28627 if test "${with_libiconv_prefix+set}" = set; then
28628 withval="$with_libiconv_prefix"
28630 if test "X$withval" = "Xno"; then
28631 use_additional=no
28632 else
28633 if test "X$withval" = "X"; then
28635 acl_save_prefix="$prefix"
28636 prefix="$acl_final_prefix"
28637 acl_save_exec_prefix="$exec_prefix"
28638 exec_prefix="$acl_final_exec_prefix"
28640 eval additional_includedir=\"$includedir\"
28641 eval additional_libdir=\"$libdir\"
28643 exec_prefix="$acl_save_exec_prefix"
28644 prefix="$acl_save_prefix"
28646 else
28647 additional_includedir="$withval/include"
28648 additional_libdir="$withval/lib"
28653 LIBICONV=
28654 LTLIBICONV=
28655 INCICONV=
28656 rpathdirs=
28657 ltrpathdirs=
28658 names_already_handled=
28659 names_next_round='iconv '
28660 while test -n "$names_next_round"; do
28661 names_this_round="$names_next_round"
28662 names_next_round=
28663 for name in $names_this_round; do
28664 already_handled=
28665 for n in $names_already_handled; do
28666 if test "$n" = "$name"; then
28667 already_handled=yes
28668 break
28670 done
28671 if test -z "$already_handled"; then
28672 names_already_handled="$names_already_handled $name"
28673 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28674 eval value=\"\$HAVE_LIB$uppername\"
28675 if test -n "$value"; then
28676 if test "$value" = yes; then
28677 eval value=\"\$LIB$uppername\"
28678 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
28679 eval value=\"\$LTLIB$uppername\"
28680 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
28681 else
28684 else
28685 found_dir=
28686 found_la=
28687 found_so=
28688 found_a=
28689 if test $use_additional = yes; then
28690 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
28691 found_dir="$additional_libdir"
28692 found_so="$additional_libdir/lib$name.$shlibext"
28693 if test -f "$additional_libdir/lib$name.la"; then
28694 found_la="$additional_libdir/lib$name.la"
28696 else
28697 if test -f "$additional_libdir/lib$name.$libext"; then
28698 found_dir="$additional_libdir"
28699 found_a="$additional_libdir/lib$name.$libext"
28700 if test -f "$additional_libdir/lib$name.la"; then
28701 found_la="$additional_libdir/lib$name.la"
28706 if test "X$found_dir" = "X"; then
28707 for x in $LDFLAGS $LTLIBICONV; do
28709 acl_save_prefix="$prefix"
28710 prefix="$acl_final_prefix"
28711 acl_save_exec_prefix="$exec_prefix"
28712 exec_prefix="$acl_final_exec_prefix"
28713 eval x=\"$x\"
28714 exec_prefix="$acl_save_exec_prefix"
28715 prefix="$acl_save_prefix"
28717 case "$x" in
28718 -L*)
28719 dir=`echo "X$x" | sed -e 's/^X-L//'`
28720 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
28721 found_dir="$dir"
28722 found_so="$dir/lib$name.$shlibext"
28723 if test -f "$dir/lib$name.la"; then
28724 found_la="$dir/lib$name.la"
28726 else
28727 if test -f "$dir/lib$name.$libext"; then
28728 found_dir="$dir"
28729 found_a="$dir/lib$name.$libext"
28730 if test -f "$dir/lib$name.la"; then
28731 found_la="$dir/lib$name.la"
28736 esac
28737 if test "X$found_dir" != "X"; then
28738 break
28740 done
28742 if test "X$found_dir" != "X"; then
28743 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
28744 if test "X$found_so" != "X"; then
28745 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
28746 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28747 else
28748 haveit=
28749 for x in $ltrpathdirs; do
28750 if test "X$x" = "X$found_dir"; then
28751 haveit=yes
28752 break
28754 done
28755 if test -z "$haveit"; then
28756 ltrpathdirs="$ltrpathdirs $found_dir"
28758 if test "$hardcode_direct" = yes; then
28759 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28760 else
28761 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28762 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28763 haveit=
28764 for x in $rpathdirs; do
28765 if test "X$x" = "X$found_dir"; then
28766 haveit=yes
28767 break
28769 done
28770 if test -z "$haveit"; then
28771 rpathdirs="$rpathdirs $found_dir"
28773 else
28774 haveit=
28775 for x in $LDFLAGS $LIBICONV; do
28777 acl_save_prefix="$prefix"
28778 prefix="$acl_final_prefix"
28779 acl_save_exec_prefix="$exec_prefix"
28780 exec_prefix="$acl_final_exec_prefix"
28781 eval x=\"$x\"
28782 exec_prefix="$acl_save_exec_prefix"
28783 prefix="$acl_save_prefix"
28785 if test "X$x" = "X-L$found_dir"; then
28786 haveit=yes
28787 break
28789 done
28790 if test -z "$haveit"; then
28791 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
28793 if test "$hardcode_minus_L" != no; then
28794 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28795 else
28796 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
28801 else
28802 if test "X$found_a" != "X"; then
28803 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
28804 else
28805 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
28808 additional_includedir=
28809 case "$found_dir" in
28810 */lib | */lib/)
28811 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28812 additional_includedir="$basedir/include"
28814 esac
28815 if test "X$additional_includedir" != "X"; then
28816 if test "X$additional_includedir" != "X/usr/include"; then
28817 haveit=
28818 if test "X$additional_includedir" = "X/usr/local/include"; then
28819 if test -n "$GCC"; then
28820 case $host_os in
28821 linux*) haveit=yes;;
28822 esac
28825 if test -z "$haveit"; then
28826 for x in $CPPFLAGS $INCICONV; do
28828 acl_save_prefix="$prefix"
28829 prefix="$acl_final_prefix"
28830 acl_save_exec_prefix="$exec_prefix"
28831 exec_prefix="$acl_final_exec_prefix"
28832 eval x=\"$x\"
28833 exec_prefix="$acl_save_exec_prefix"
28834 prefix="$acl_save_prefix"
28836 if test "X$x" = "X-I$additional_includedir"; then
28837 haveit=yes
28838 break
28840 done
28841 if test -z "$haveit"; then
28842 if test -d "$additional_includedir"; then
28843 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
28849 if test -n "$found_la"; then
28850 save_libdir="$libdir"
28851 case "$found_la" in
28852 */* | *\\*) . "$found_la" ;;
28853 *) . "./$found_la" ;;
28854 esac
28855 libdir="$save_libdir"
28856 for dep in $dependency_libs; do
28857 case "$dep" in
28858 -L*)
28859 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28860 if test "X$additional_libdir" != "X/usr/lib"; then
28861 haveit=
28862 if test "X$additional_libdir" = "X/usr/local/lib"; then
28863 if test -n "$GCC"; then
28864 case $host_os in
28865 linux*) haveit=yes;;
28866 esac
28869 if test -z "$haveit"; then
28870 haveit=
28871 for x in $LDFLAGS $LIBICONV; do
28873 acl_save_prefix="$prefix"
28874 prefix="$acl_final_prefix"
28875 acl_save_exec_prefix="$exec_prefix"
28876 exec_prefix="$acl_final_exec_prefix"
28877 eval x=\"$x\"
28878 exec_prefix="$acl_save_exec_prefix"
28879 prefix="$acl_save_prefix"
28881 if test "X$x" = "X-L$additional_libdir"; then
28882 haveit=yes
28883 break
28885 done
28886 if test -z "$haveit"; then
28887 if test -d "$additional_libdir"; then
28888 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
28891 haveit=
28892 for x in $LDFLAGS $LTLIBICONV; do
28894 acl_save_prefix="$prefix"
28895 prefix="$acl_final_prefix"
28896 acl_save_exec_prefix="$exec_prefix"
28897 exec_prefix="$acl_final_exec_prefix"
28898 eval x=\"$x\"
28899 exec_prefix="$acl_save_exec_prefix"
28900 prefix="$acl_save_prefix"
28902 if test "X$x" = "X-L$additional_libdir"; then
28903 haveit=yes
28904 break
28906 done
28907 if test -z "$haveit"; then
28908 if test -d "$additional_libdir"; then
28909 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
28915 -R*)
28916 dir=`echo "X$dep" | sed -e 's/^X-R//'`
28917 if test "$enable_rpath" != no; then
28918 haveit=
28919 for x in $rpathdirs; do
28920 if test "X$x" = "X$dir"; then
28921 haveit=yes
28922 break
28924 done
28925 if test -z "$haveit"; then
28926 rpathdirs="$rpathdirs $dir"
28928 haveit=
28929 for x in $ltrpathdirs; do
28930 if test "X$x" = "X$dir"; then
28931 haveit=yes
28932 break
28934 done
28935 if test -z "$haveit"; then
28936 ltrpathdirs="$ltrpathdirs $dir"
28940 -l*)
28941 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28943 *.la)
28944 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28947 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
28948 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
28950 esac
28951 done
28953 else
28954 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
28955 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
28959 done
28960 done
28961 if test "X$rpathdirs" != "X"; then
28962 if test -n "$hardcode_libdir_separator"; then
28963 alldirs=
28964 for found_dir in $rpathdirs; do
28965 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28966 done
28967 acl_save_libdir="$libdir"
28968 libdir="$alldirs"
28969 eval flag=\"$hardcode_libdir_flag_spec\"
28970 libdir="$acl_save_libdir"
28971 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
28972 else
28973 for found_dir in $rpathdirs; do
28974 acl_save_libdir="$libdir"
28975 libdir="$found_dir"
28976 eval flag=\"$hardcode_libdir_flag_spec\"
28977 libdir="$acl_save_libdir"
28978 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
28979 done
28982 if test "X$ltrpathdirs" != "X"; then
28983 for found_dir in $ltrpathdirs; do
28984 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
28985 done
28990 echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
28991 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
28992 if test "${ac_cv_win_or_dos+set}" = set; then
28993 echo $ECHO_N "(cached) $ECHO_C" >&6
28994 else
28996 cat >conftest.$ac_ext <<_ACEOF
28997 #line $LINENO "configure"
28998 /* confdefs.h. */
28999 _ACEOF
29000 cat confdefs.h >>conftest.$ac_ext
29001 cat >>conftest.$ac_ext <<_ACEOF
29002 /* end confdefs.h. */
29005 main ()
29007 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
29008 neither MSDOS nor Windows
29009 #endif
29011 return 0;
29013 _ACEOF
29014 rm -f conftest.$ac_objext
29015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29016 (eval $ac_compile) 2>&5
29017 ac_status=$?
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); } &&
29020 { ac_try='test -s conftest.$ac_objext'
29021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022 (eval $ac_try) 2>&5
29023 ac_status=$?
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; }; then
29026 ac_cv_win_or_dos=yes
29027 else
29028 echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.$ac_ext >&5
29031 ac_cv_win_or_dos=no
29033 rm -f conftest.$ac_objext conftest.$ac_ext
29036 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
29037 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
29039 if test x"$ac_cv_win_or_dos" = xyes; then
29040 ac_fs_accepts_drive_letter_prefix=1
29041 ac_fs_backslash_is_file_name_separator=1
29042 else
29043 ac_fs_accepts_drive_letter_prefix=0
29044 ac_fs_backslash_is_file_name_separator=0
29051 cat >>confdefs.h <<_ACEOF
29052 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
29053 _ACEOF
29060 cat >>confdefs.h <<_ACEOF
29061 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
29062 _ACEOF
29070 for ac_header in string.h sys/param.h stddef.h
29072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29074 echo "$as_me:$LINENO: checking for $ac_header" >&5
29075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29077 echo $ECHO_N "(cached) $ECHO_C" >&6
29079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29081 else
29082 # Is the header compilable?
29083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29085 cat >conftest.$ac_ext <<_ACEOF
29086 #line $LINENO "configure"
29087 /* confdefs.h. */
29088 _ACEOF
29089 cat confdefs.h >>conftest.$ac_ext
29090 cat >>conftest.$ac_ext <<_ACEOF
29091 /* end confdefs.h. */
29092 $ac_includes_default
29093 #include <$ac_header>
29094 _ACEOF
29095 rm -f conftest.$ac_objext
29096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29097 (eval $ac_compile) 2>&5
29098 ac_status=$?
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
29104 ac_status=$?
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); }; }; then
29107 ac_header_compiler=yes
29108 else
29109 echo "$as_me: failed program was:" >&5
29110 sed 's/^/| /' conftest.$ac_ext >&5
29112 ac_header_compiler=no
29114 rm -f conftest.$ac_objext conftest.$ac_ext
29115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29116 echo "${ECHO_T}$ac_header_compiler" >&6
29118 # Is the header present?
29119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29121 cat >conftest.$ac_ext <<_ACEOF
29122 #line $LINENO "configure"
29123 /* confdefs.h. */
29124 _ACEOF
29125 cat confdefs.h >>conftest.$ac_ext
29126 cat >>conftest.$ac_ext <<_ACEOF
29127 /* end confdefs.h. */
29128 #include <$ac_header>
29129 _ACEOF
29130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29132 ac_status=$?
29133 grep -v '^ *+' conftest.er1 >conftest.err
29134 rm -f conftest.er1
29135 cat conftest.err >&5
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); } >/dev/null; then
29138 if test -s conftest.err; then
29139 ac_cpp_err=$ac_c_preproc_warn_flag
29140 else
29141 ac_cpp_err=
29143 else
29144 ac_cpp_err=yes
29146 if test -z "$ac_cpp_err"; then
29147 ac_header_preproc=yes
29148 else
29149 echo "$as_me: failed program was:" >&5
29150 sed 's/^/| /' conftest.$ac_ext >&5
29152 ac_header_preproc=no
29154 rm -f conftest.err conftest.$ac_ext
29155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29156 echo "${ECHO_T}$ac_header_preproc" >&6
29158 # So? What about this header?
29159 case $ac_header_compiler:$ac_header_preproc in
29160 yes:no )
29161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29166 cat <<\_ASBOX
29167 ## ------------------------------------ ##
29168 ## Report this to bug-autoconf@gnu.org. ##
29169 ## ------------------------------------ ##
29170 _ASBOX
29172 sed "s/^/$as_me: WARNING: /" >&2
29174 no:yes )
29175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29182 cat <<\_ASBOX
29183 ## ------------------------------------ ##
29184 ## Report this to bug-autoconf@gnu.org. ##
29185 ## ------------------------------------ ##
29186 _ASBOX
29188 sed "s/^/$as_me: WARNING: /" >&2
29190 esac
29191 echo "$as_me:$LINENO: checking for $ac_header" >&5
29192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29194 echo $ECHO_N "(cached) $ECHO_C" >&6
29195 else
29196 eval "$as_ac_Header=$ac_header_preproc"
29198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29203 cat >>confdefs.h <<_ACEOF
29204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29205 _ACEOF
29209 done
29212 for ac_func in resolvepath
29214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29215 echo "$as_me:$LINENO: checking for $ac_func" >&5
29216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29217 if eval "test \"\${$as_ac_var+set}\" = set"; then
29218 echo $ECHO_N "(cached) $ECHO_C" >&6
29219 else
29220 cat >conftest.$ac_ext <<_ACEOF
29221 #line $LINENO "configure"
29222 /* confdefs.h. */
29223 _ACEOF
29224 cat confdefs.h >>conftest.$ac_ext
29225 cat >>conftest.$ac_ext <<_ACEOF
29226 /* end confdefs.h. */
29227 /* System header to define __stub macros and hopefully few prototypes,
29228 which can conflict with char $ac_func (); below.
29229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29230 <limits.h> exists even on freestanding compilers. */
29231 #ifdef __STDC__
29232 # include <limits.h>
29233 #else
29234 # include <assert.h>
29235 #endif
29236 /* Override any gcc2 internal prototype to avoid an error. */
29237 #ifdef __cplusplus
29238 extern "C"
29240 #endif
29241 /* We use char because int might match the return type of a gcc2
29242 builtin and then its argument prototype would still apply. */
29243 char $ac_func ();
29244 /* The GNU C library defines this for functions which it implements
29245 to always fail with ENOSYS. Some functions are actually named
29246 something starting with __ and the normal name is an alias. */
29247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29248 choke me
29249 #else
29250 char (*f) () = $ac_func;
29251 #endif
29252 #ifdef __cplusplus
29254 #endif
29257 main ()
29259 return f != $ac_func;
29261 return 0;
29263 _ACEOF
29264 rm -f conftest.$ac_objext conftest$ac_exeext
29265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29266 (eval $ac_link) 2>&5
29267 ac_status=$?
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); } &&
29270 { ac_try='test -s conftest$ac_exeext'
29271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29272 (eval $ac_try) 2>&5
29273 ac_status=$?
29274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275 (exit $ac_status); }; }; then
29276 eval "$as_ac_var=yes"
29277 else
29278 echo "$as_me: failed program was:" >&5
29279 sed 's/^/| /' conftest.$ac_ext >&5
29281 eval "$as_ac_var=no"
29283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29287 if test `eval echo '${'$as_ac_var'}'` = yes; then
29288 cat >>confdefs.h <<_ACEOF
29289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29290 _ACEOF
29293 done
29297 # This would simply be AC_REPLACE_FUNC([canonicalize_file_name])
29298 # if the function name weren't so long. Besides, I would rather
29299 # not have underscores in file names.
29300 echo "$as_me:$LINENO: checking for canonicalize_file_name" >&5
29301 echo $ECHO_N "checking for canonicalize_file_name... $ECHO_C" >&6
29302 if test "${ac_cv_func_canonicalize_file_name+set}" = set; then
29303 echo $ECHO_N "(cached) $ECHO_C" >&6
29304 else
29305 cat >conftest.$ac_ext <<_ACEOF
29306 #line $LINENO "configure"
29307 /* confdefs.h. */
29308 _ACEOF
29309 cat confdefs.h >>conftest.$ac_ext
29310 cat >>conftest.$ac_ext <<_ACEOF
29311 /* end confdefs.h. */
29312 /* System header to define __stub macros and hopefully few prototypes,
29313 which can conflict with char canonicalize_file_name (); below.
29314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29315 <limits.h> exists even on freestanding compilers. */
29316 #ifdef __STDC__
29317 # include <limits.h>
29318 #else
29319 # include <assert.h>
29320 #endif
29321 /* Override any gcc2 internal prototype to avoid an error. */
29322 #ifdef __cplusplus
29323 extern "C"
29325 #endif
29326 /* We use char because int might match the return type of a gcc2
29327 builtin and then its argument prototype would still apply. */
29328 char canonicalize_file_name ();
29329 /* The GNU C library defines this for functions which it implements
29330 to always fail with ENOSYS. Some functions are actually named
29331 something starting with __ and the normal name is an alias. */
29332 #if defined (__stub_canonicalize_file_name) || defined (__stub___canonicalize_file_name)
29333 choke me
29334 #else
29335 char (*f) () = canonicalize_file_name;
29336 #endif
29337 #ifdef __cplusplus
29339 #endif
29342 main ()
29344 return f != canonicalize_file_name;
29346 return 0;
29348 _ACEOF
29349 rm -f conftest.$ac_objext conftest$ac_exeext
29350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29351 (eval $ac_link) 2>&5
29352 ac_status=$?
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354 (exit $ac_status); } &&
29355 { ac_try='test -s conftest$ac_exeext'
29356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29357 (eval $ac_try) 2>&5
29358 ac_status=$?
29359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360 (exit $ac_status); }; }; then
29361 ac_cv_func_canonicalize_file_name=yes
29362 else
29363 echo "$as_me: failed program was:" >&5
29364 sed 's/^/| /' conftest.$ac_ext >&5
29366 ac_cv_func_canonicalize_file_name=no
29368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29370 echo "$as_me:$LINENO: result: $ac_cv_func_canonicalize_file_name" >&5
29371 echo "${ECHO_T}$ac_cv_func_canonicalize_file_name" >&6
29372 if test $ac_cv_func_canonicalize_file_name = yes; then
29374 else
29375 LIBOBJS="$LIBOBJS canonicalize.$ac_objext"
29382 GNU_PACKAGE="GNU $PACKAGE"
29384 cat >>confdefs.h <<_ACEOF
29385 #define GNU_PACKAGE "$GNU_PACKAGE"
29386 _ACEOF
29391 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
29413 echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
29414 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
29415 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
29416 echo $ECHO_N "(cached) $ECHO_C" >&6
29417 else
29418 cat >conftest.$ac_ext <<_ACEOF
29419 #line $LINENO "configure"
29420 /* confdefs.h. */
29421 _ACEOF
29422 cat confdefs.h >>conftest.$ac_ext
29423 cat >>conftest.$ac_ext <<_ACEOF
29424 /* end confdefs.h. */
29425 $ac_includes_default
29426 #include <sys/stat.h>
29430 main ()
29432 static struct stat ac_aggr;
29433 if (ac_aggr.st_author)
29434 return 0;
29436 return 0;
29438 _ACEOF
29439 rm -f conftest.$ac_objext
29440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29441 (eval $ac_compile) 2>&5
29442 ac_status=$?
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); } &&
29445 { ac_try='test -s conftest.$ac_objext'
29446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29447 (eval $ac_try) 2>&5
29448 ac_status=$?
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450 (exit $ac_status); }; }; then
29451 ac_cv_member_struct_stat_st_author=yes
29452 else
29453 echo "$as_me: failed program was:" >&5
29454 sed 's/^/| /' conftest.$ac_ext >&5
29456 cat >conftest.$ac_ext <<_ACEOF
29457 #line $LINENO "configure"
29458 /* confdefs.h. */
29459 _ACEOF
29460 cat confdefs.h >>conftest.$ac_ext
29461 cat >>conftest.$ac_ext <<_ACEOF
29462 /* end confdefs.h. */
29463 $ac_includes_default
29464 #include <sys/stat.h>
29468 main ()
29470 static struct stat ac_aggr;
29471 if (sizeof ac_aggr.st_author)
29472 return 0;
29474 return 0;
29476 _ACEOF
29477 rm -f conftest.$ac_objext
29478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29479 (eval $ac_compile) 2>&5
29480 ac_status=$?
29481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482 (exit $ac_status); } &&
29483 { ac_try='test -s conftest.$ac_objext'
29484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29485 (eval $ac_try) 2>&5
29486 ac_status=$?
29487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488 (exit $ac_status); }; }; then
29489 ac_cv_member_struct_stat_st_author=yes
29490 else
29491 echo "$as_me: failed program was:" >&5
29492 sed 's/^/| /' conftest.$ac_ext >&5
29494 ac_cv_member_struct_stat_st_author=no
29496 rm -f conftest.$ac_objext conftest.$ac_ext
29498 rm -f conftest.$ac_objext conftest.$ac_ext
29500 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
29501 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
29502 if test $ac_cv_member_struct_stat_st_author = yes; then
29504 cat >>confdefs.h <<_ACEOF
29505 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
29506 _ACEOF
29510 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
29511 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
29512 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
29513 echo $ECHO_N "(cached) $ECHO_C" >&6
29514 else
29515 cat >conftest.$ac_ext <<_ACEOF
29516 #line $LINENO "configure"
29517 /* confdefs.h. */
29518 _ACEOF
29519 cat confdefs.h >>conftest.$ac_ext
29520 cat >>conftest.$ac_ext <<_ACEOF
29521 /* end confdefs.h. */
29522 $ac_includes_default
29523 #include <sys/stat.h>
29527 main ()
29529 static struct stat ac_aggr;
29530 if (ac_aggr.st_blksize)
29531 return 0;
29533 return 0;
29535 _ACEOF
29536 rm -f conftest.$ac_objext
29537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29538 (eval $ac_compile) 2>&5
29539 ac_status=$?
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); } &&
29542 { ac_try='test -s conftest.$ac_objext'
29543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29544 (eval $ac_try) 2>&5
29545 ac_status=$?
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); }; }; then
29548 ac_cv_member_struct_stat_st_blksize=yes
29549 else
29550 echo "$as_me: failed program was:" >&5
29551 sed 's/^/| /' conftest.$ac_ext >&5
29553 cat >conftest.$ac_ext <<_ACEOF
29554 #line $LINENO "configure"
29555 /* confdefs.h. */
29556 _ACEOF
29557 cat confdefs.h >>conftest.$ac_ext
29558 cat >>conftest.$ac_ext <<_ACEOF
29559 /* end confdefs.h. */
29560 $ac_includes_default
29561 #include <sys/stat.h>
29565 main ()
29567 static struct stat ac_aggr;
29568 if (sizeof ac_aggr.st_blksize)
29569 return 0;
29571 return 0;
29573 _ACEOF
29574 rm -f conftest.$ac_objext
29575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29576 (eval $ac_compile) 2>&5
29577 ac_status=$?
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); } &&
29580 { ac_try='test -s conftest.$ac_objext'
29581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29582 (eval $ac_try) 2>&5
29583 ac_status=$?
29584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585 (exit $ac_status); }; }; then
29586 ac_cv_member_struct_stat_st_blksize=yes
29587 else
29588 echo "$as_me: failed program was:" >&5
29589 sed 's/^/| /' conftest.$ac_ext >&5
29591 ac_cv_member_struct_stat_st_blksize=no
29593 rm -f conftest.$ac_objext conftest.$ac_ext
29595 rm -f conftest.$ac_objext conftest.$ac_ext
29597 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
29598 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
29599 if test $ac_cv_member_struct_stat_st_blksize = yes; then
29601 cat >>confdefs.h <<_ACEOF
29602 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
29603 _ACEOF
29624 echo "$as_me:$LINENO: checking for ino_t" >&5
29625 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
29626 if test "${ac_cv_type_ino_t+set}" = set; then
29627 echo $ECHO_N "(cached) $ECHO_C" >&6
29628 else
29629 cat >conftest.$ac_ext <<_ACEOF
29630 #line $LINENO "configure"
29631 /* confdefs.h. */
29632 _ACEOF
29633 cat confdefs.h >>conftest.$ac_ext
29634 cat >>conftest.$ac_ext <<_ACEOF
29635 /* end confdefs.h. */
29636 $ac_includes_default
29638 main ()
29640 if ((ino_t *) 0)
29641 return 0;
29642 if (sizeof (ino_t))
29643 return 0;
29645 return 0;
29647 _ACEOF
29648 rm -f conftest.$ac_objext
29649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29650 (eval $ac_compile) 2>&5
29651 ac_status=$?
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); } &&
29654 { ac_try='test -s conftest.$ac_objext'
29655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656 (eval $ac_try) 2>&5
29657 ac_status=$?
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); }; }; then
29660 ac_cv_type_ino_t=yes
29661 else
29662 echo "$as_me: failed program was:" >&5
29663 sed 's/^/| /' conftest.$ac_ext >&5
29665 ac_cv_type_ino_t=no
29667 rm -f conftest.$ac_objext conftest.$ac_ext
29669 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
29670 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
29671 if test $ac_cv_type_ino_t = yes; then
29673 else
29675 cat >>confdefs.h <<_ACEOF
29676 #define ino_t unsigned long
29677 _ACEOF
29682 echo "$as_me:$LINENO: checking for ssize_t" >&5
29683 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29684 if test "${ac_cv_type_ssize_t+set}" = set; then
29685 echo $ECHO_N "(cached) $ECHO_C" >&6
29686 else
29687 cat >conftest.$ac_ext <<_ACEOF
29688 #line $LINENO "configure"
29689 /* confdefs.h. */
29690 _ACEOF
29691 cat confdefs.h >>conftest.$ac_ext
29692 cat >>conftest.$ac_ext <<_ACEOF
29693 /* end confdefs.h. */
29694 $ac_includes_default
29696 main ()
29698 if ((ssize_t *) 0)
29699 return 0;
29700 if (sizeof (ssize_t))
29701 return 0;
29703 return 0;
29705 _ACEOF
29706 rm -f conftest.$ac_objext
29707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29708 (eval $ac_compile) 2>&5
29709 ac_status=$?
29710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711 (exit $ac_status); } &&
29712 { ac_try='test -s conftest.$ac_objext'
29713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29714 (eval $ac_try) 2>&5
29715 ac_status=$?
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); }; }; then
29718 ac_cv_type_ssize_t=yes
29719 else
29720 echo "$as_me: failed program was:" >&5
29721 sed 's/^/| /' conftest.$ac_ext >&5
29723 ac_cv_type_ssize_t=no
29725 rm -f conftest.$ac_objext conftest.$ac_ext
29727 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29728 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29729 if test $ac_cv_type_ssize_t = yes; then
29731 else
29733 cat >>confdefs.h <<_ACEOF
29734 #define ssize_t int
29735 _ACEOF
29739 echo "$as_me:$LINENO: checking for major_t" >&5
29740 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
29741 if test "${ac_cv_type_major_t+set}" = set; then
29742 echo $ECHO_N "(cached) $ECHO_C" >&6
29743 else
29744 cat >conftest.$ac_ext <<_ACEOF
29745 #line $LINENO "configure"
29746 /* confdefs.h. */
29747 _ACEOF
29748 cat confdefs.h >>conftest.$ac_ext
29749 cat >>conftest.$ac_ext <<_ACEOF
29750 /* end confdefs.h. */
29751 $ac_includes_default
29753 main ()
29755 if ((major_t *) 0)
29756 return 0;
29757 if (sizeof (major_t))
29758 return 0;
29760 return 0;
29762 _ACEOF
29763 rm -f conftest.$ac_objext
29764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29765 (eval $ac_compile) 2>&5
29766 ac_status=$?
29767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768 (exit $ac_status); } &&
29769 { ac_try='test -s conftest.$ac_objext'
29770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29771 (eval $ac_try) 2>&5
29772 ac_status=$?
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); }; }; then
29775 ac_cv_type_major_t=yes
29776 else
29777 echo "$as_me: failed program was:" >&5
29778 sed 's/^/| /' conftest.$ac_ext >&5
29780 ac_cv_type_major_t=no
29782 rm -f conftest.$ac_objext conftest.$ac_ext
29784 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
29785 echo "${ECHO_T}$ac_cv_type_major_t" >&6
29786 if test $ac_cv_type_major_t = yes; then
29788 else
29790 cat >>confdefs.h <<_ACEOF
29791 #define major_t unsigned int
29792 _ACEOF
29796 echo "$as_me:$LINENO: checking for minor_t" >&5
29797 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
29798 if test "${ac_cv_type_minor_t+set}" = set; then
29799 echo $ECHO_N "(cached) $ECHO_C" >&6
29800 else
29801 cat >conftest.$ac_ext <<_ACEOF
29802 #line $LINENO "configure"
29803 /* confdefs.h. */
29804 _ACEOF
29805 cat confdefs.h >>conftest.$ac_ext
29806 cat >>conftest.$ac_ext <<_ACEOF
29807 /* end confdefs.h. */
29808 $ac_includes_default
29810 main ()
29812 if ((minor_t *) 0)
29813 return 0;
29814 if (sizeof (minor_t))
29815 return 0;
29817 return 0;
29819 _ACEOF
29820 rm -f conftest.$ac_objext
29821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29822 (eval $ac_compile) 2>&5
29823 ac_status=$?
29824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825 (exit $ac_status); } &&
29826 { ac_try='test -s conftest.$ac_objext'
29827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29828 (eval $ac_try) 2>&5
29829 ac_status=$?
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); }; }; then
29832 ac_cv_type_minor_t=yes
29833 else
29834 echo "$as_me: failed program was:" >&5
29835 sed 's/^/| /' conftest.$ac_ext >&5
29837 ac_cv_type_minor_t=no
29839 rm -f conftest.$ac_objext conftest.$ac_ext
29841 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
29842 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
29843 if test $ac_cv_type_minor_t = yes; then
29845 else
29847 cat >>confdefs.h <<_ACEOF
29848 #define minor_t unsigned int
29849 _ACEOF
29863 # Assume we'll default to using the included regex.c.
29864 ac_use_included_regex=yes
29866 # However, if the system regex support is good enough that it passes the
29867 # the following run test, then default to *not* using the included regex.c.
29868 # If cross compiling, assume the test would fail and use the included
29869 # regex.c. The first failing regular expression is from `Spencer ere
29870 # test #75' in grep-2.3.
29871 echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
29872 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
29873 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
29874 echo $ECHO_N "(cached) $ECHO_C" >&6
29875 else
29876 if test "$cross_compiling" = yes; then
29877 jm_cv_func_working_re_compile_pattern=no
29878 else
29879 cat >conftest.$ac_ext <<_ACEOF
29880 #line $LINENO "configure"
29881 /* confdefs.h. */
29882 _ACEOF
29883 cat confdefs.h >>conftest.$ac_ext
29884 cat >>conftest.$ac_ext <<_ACEOF
29885 /* end confdefs.h. */
29886 #include <stdio.h>
29887 #include <string.h>
29888 #include <regex.h>
29890 main ()
29892 static struct re_pattern_buffer regex;
29893 const char *s;
29894 struct re_registers regs;
29895 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
29896 memset (&regex, 0, sizeof (regex));
29897 s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
29898 /* This should fail with _Invalid character class name_ error. */
29899 if (!s)
29900 exit (1);
29902 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
29903 memset (&regex, 0, sizeof (regex));
29904 s = re_compile_pattern ("{1", 2, &regex);
29906 if (s)
29907 exit (1);
29909 /* The following example is derived from a problem report
29910 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
29911 memset (&regex, 0, sizeof (regex));
29912 s = re_compile_pattern ("[anù]*n", 7, &regex);
29913 if (s)
29914 exit (1);
29916 /* This should match, but doesn't for e.g. glibc-2.2.1. */
29917 if (re_match (&regex, "an", 2, 0, &regs) != 2)
29918 exit (1);
29920 memset (&regex, 0, sizeof (regex));
29921 s = re_compile_pattern ("x", 1, &regex);
29922 if (s)
29923 exit (1);
29925 /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
29926 work with a negative RANGE argument. */
29927 if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
29928 exit (1);
29930 exit (0);
29933 _ACEOF
29934 rm -f conftest$ac_exeext
29935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29936 (eval $ac_link) 2>&5
29937 ac_status=$?
29938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29941 (eval $ac_try) 2>&5
29942 ac_status=$?
29943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 (exit $ac_status); }; }; then
29945 jm_cv_func_working_re_compile_pattern=yes
29946 else
29947 echo "$as_me: program exited with status $ac_status" >&5
29948 echo "$as_me: failed program was:" >&5
29949 sed 's/^/| /' conftest.$ac_ext >&5
29951 ( exit $ac_status )
29952 jm_cv_func_working_re_compile_pattern=no
29954 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29957 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
29958 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
29959 if test $jm_cv_func_working_re_compile_pattern = yes; then
29960 ac_use_included_regex=no
29963 test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
29964 echo "$as_me: error: missing argument" >&2;}
29965 { (exit 1); exit 1; }; }
29969 # Check whether --with-included-regex or --without-included-regex was given.
29970 if test "${with_included_regex+set}" = set; then
29971 withval="$with_included_regex"
29972 jm_with_regex=$withval
29973 else
29974 jm_with_regex=$ac_use_included_regex
29976 if test "$jm_with_regex" = yes; then
29977 LIBOBJS="$LIBOBJS regex.$ac_objext"
30011 for ac_func in btowc
30013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30014 echo "$as_me:$LINENO: checking for $ac_func" >&5
30015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30016 if eval "test \"\${$as_ac_var+set}\" = set"; then
30017 echo $ECHO_N "(cached) $ECHO_C" >&6
30018 else
30019 cat >conftest.$ac_ext <<_ACEOF
30020 #line $LINENO "configure"
30021 /* confdefs.h. */
30022 _ACEOF
30023 cat confdefs.h >>conftest.$ac_ext
30024 cat >>conftest.$ac_ext <<_ACEOF
30025 /* end confdefs.h. */
30026 /* System header to define __stub macros and hopefully few prototypes,
30027 which can conflict with char $ac_func (); below.
30028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30029 <limits.h> exists even on freestanding compilers. */
30030 #ifdef __STDC__
30031 # include <limits.h>
30032 #else
30033 # include <assert.h>
30034 #endif
30035 /* Override any gcc2 internal prototype to avoid an error. */
30036 #ifdef __cplusplus
30037 extern "C"
30039 #endif
30040 /* We use char because int might match the return type of a gcc2
30041 builtin and then its argument prototype would still apply. */
30042 char $ac_func ();
30043 /* The GNU C library defines this for functions which it implements
30044 to always fail with ENOSYS. Some functions are actually named
30045 something starting with __ and the normal name is an alias. */
30046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30047 choke me
30048 #else
30049 char (*f) () = $ac_func;
30050 #endif
30051 #ifdef __cplusplus
30053 #endif
30056 main ()
30058 return f != $ac_func;
30060 return 0;
30062 _ACEOF
30063 rm -f conftest.$ac_objext conftest$ac_exeext
30064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30065 (eval $ac_link) 2>&5
30066 ac_status=$?
30067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068 (exit $ac_status); } &&
30069 { ac_try='test -s conftest$ac_exeext'
30070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30071 (eval $ac_try) 2>&5
30072 ac_status=$?
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074 (exit $ac_status); }; }; then
30075 eval "$as_ac_var=yes"
30076 else
30077 echo "$as_me: failed program was:" >&5
30078 sed 's/^/| /' conftest.$ac_ext >&5
30080 eval "$as_ac_var=no"
30082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30086 if test `eval echo '${'$as_ac_var'}'` = yes; then
30087 cat >>confdefs.h <<_ACEOF
30088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30089 _ACEOF
30092 done
30139 # This is for od and stat, and any other program that
30140 # uses the PRI.MAX macros from inttypes.h.
30150 ac_have_func=no # yes means we've found a way to get the load average.
30152 # Make sure getloadavg.c is where it belongs, at configure-time.
30153 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
30154 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
30155 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
30156 { (exit 1); exit 1; }; }
30158 ac_save_LIBS=$LIBS
30160 # Check for getloadavg, but be sure not to touch the cache variable.
30161 (echo "$as_me:$LINENO: checking for getloadavg" >&5
30162 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
30163 if test "${ac_cv_func_getloadavg+set}" = set; then
30164 echo $ECHO_N "(cached) $ECHO_C" >&6
30165 else
30166 cat >conftest.$ac_ext <<_ACEOF
30167 #line $LINENO "configure"
30168 /* confdefs.h. */
30169 _ACEOF
30170 cat confdefs.h >>conftest.$ac_ext
30171 cat >>conftest.$ac_ext <<_ACEOF
30172 /* end confdefs.h. */
30173 /* System header to define __stub macros and hopefully few prototypes,
30174 which can conflict with char getloadavg (); below.
30175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30176 <limits.h> exists even on freestanding compilers. */
30177 #ifdef __STDC__
30178 # include <limits.h>
30179 #else
30180 # include <assert.h>
30181 #endif
30182 /* Override any gcc2 internal prototype to avoid an error. */
30183 #ifdef __cplusplus
30184 extern "C"
30186 #endif
30187 /* We use char because int might match the return type of a gcc2
30188 builtin and then its argument prototype would still apply. */
30189 char getloadavg ();
30190 /* The GNU C library defines this for functions which it implements
30191 to always fail with ENOSYS. Some functions are actually named
30192 something starting with __ and the normal name is an alias. */
30193 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
30194 choke me
30195 #else
30196 char (*f) () = getloadavg;
30197 #endif
30198 #ifdef __cplusplus
30200 #endif
30203 main ()
30205 return f != getloadavg;
30207 return 0;
30209 _ACEOF
30210 rm -f conftest.$ac_objext conftest$ac_exeext
30211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30212 (eval $ac_link) 2>&5
30213 ac_status=$?
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); } &&
30216 { ac_try='test -s conftest$ac_exeext'
30217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30218 (eval $ac_try) 2>&5
30219 ac_status=$?
30220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221 (exit $ac_status); }; }; then
30222 ac_cv_func_getloadavg=yes
30223 else
30224 echo "$as_me: failed program was:" >&5
30225 sed 's/^/| /' conftest.$ac_ext >&5
30227 ac_cv_func_getloadavg=no
30229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30231 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
30232 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
30233 if test $ac_cv_func_getloadavg = yes; then
30234 exit 0
30235 else
30236 exit 1
30238 ) && ac_have_func=yes
30240 # On HPUX9, an unprivileged user can get load averages through this function.
30242 for ac_func in pstat_getdynamic
30244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30245 echo "$as_me:$LINENO: checking for $ac_func" >&5
30246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30247 if eval "test \"\${$as_ac_var+set}\" = set"; then
30248 echo $ECHO_N "(cached) $ECHO_C" >&6
30249 else
30250 cat >conftest.$ac_ext <<_ACEOF
30251 #line $LINENO "configure"
30252 /* confdefs.h. */
30253 _ACEOF
30254 cat confdefs.h >>conftest.$ac_ext
30255 cat >>conftest.$ac_ext <<_ACEOF
30256 /* end confdefs.h. */
30257 /* System header to define __stub macros and hopefully few prototypes,
30258 which can conflict with char $ac_func (); below.
30259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30260 <limits.h> exists even on freestanding compilers. */
30261 #ifdef __STDC__
30262 # include <limits.h>
30263 #else
30264 # include <assert.h>
30265 #endif
30266 /* Override any gcc2 internal prototype to avoid an error. */
30267 #ifdef __cplusplus
30268 extern "C"
30270 #endif
30271 /* We use char because int might match the return type of a gcc2
30272 builtin and then its argument prototype would still apply. */
30273 char $ac_func ();
30274 /* The GNU C library defines this for functions which it implements
30275 to always fail with ENOSYS. Some functions are actually named
30276 something starting with __ and the normal name is an alias. */
30277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30278 choke me
30279 #else
30280 char (*f) () = $ac_func;
30281 #endif
30282 #ifdef __cplusplus
30284 #endif
30287 main ()
30289 return f != $ac_func;
30291 return 0;
30293 _ACEOF
30294 rm -f conftest.$ac_objext conftest$ac_exeext
30295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30296 (eval $ac_link) 2>&5
30297 ac_status=$?
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); } &&
30300 { ac_try='test -s conftest$ac_exeext'
30301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30302 (eval $ac_try) 2>&5
30303 ac_status=$?
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); }; }; then
30306 eval "$as_ac_var=yes"
30307 else
30308 echo "$as_me: failed program was:" >&5
30309 sed 's/^/| /' conftest.$ac_ext >&5
30311 eval "$as_ac_var=no"
30313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30317 if test `eval echo '${'$as_ac_var'}'` = yes; then
30318 cat >>confdefs.h <<_ACEOF
30319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30320 _ACEOF
30323 done
30326 # Solaris has libkstat which does not require root.
30328 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
30329 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
30330 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
30331 echo $ECHO_N "(cached) $ECHO_C" >&6
30332 else
30333 ac_check_lib_save_LIBS=$LIBS
30334 LIBS="-lkstat $LIBS"
30335 cat >conftest.$ac_ext <<_ACEOF
30336 #line $LINENO "configure"
30337 /* confdefs.h. */
30338 _ACEOF
30339 cat confdefs.h >>conftest.$ac_ext
30340 cat >>conftest.$ac_ext <<_ACEOF
30341 /* end confdefs.h. */
30343 /* Override any gcc2 internal prototype to avoid an error. */
30344 #ifdef __cplusplus
30345 extern "C"
30346 #endif
30347 /* We use char because int might match the return type of a gcc2
30348 builtin and then its argument prototype would still apply. */
30349 char kstat_open ();
30351 main ()
30353 kstat_open ();
30355 return 0;
30357 _ACEOF
30358 rm -f conftest.$ac_objext conftest$ac_exeext
30359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30360 (eval $ac_link) 2>&5
30361 ac_status=$?
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); } &&
30364 { ac_try='test -s conftest$ac_exeext'
30365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30366 (eval $ac_try) 2>&5
30367 ac_status=$?
30368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369 (exit $ac_status); }; }; then
30370 ac_cv_lib_kstat_kstat_open=yes
30371 else
30372 echo "$as_me: failed program was:" >&5
30373 sed 's/^/| /' conftest.$ac_ext >&5
30375 ac_cv_lib_kstat_kstat_open=no
30377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30378 LIBS=$ac_check_lib_save_LIBS
30380 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
30381 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
30382 if test $ac_cv_lib_kstat_kstat_open = yes; then
30383 cat >>confdefs.h <<_ACEOF
30384 #define HAVE_LIBKSTAT 1
30385 _ACEOF
30387 LIBS="-lkstat $LIBS"
30391 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
30393 # Some systems with -lutil have (and need) -lkvm as well, some do not.
30394 # On Solaris, -lkvm requires nlist from -lelf, so check that first
30395 # to get the right answer into the cache.
30396 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
30397 if test $ac_have_func = no; then
30398 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
30399 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
30400 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
30401 echo $ECHO_N "(cached) $ECHO_C" >&6
30402 else
30403 ac_check_lib_save_LIBS=$LIBS
30404 LIBS="-lelf $LIBS"
30405 cat >conftest.$ac_ext <<_ACEOF
30406 #line $LINENO "configure"
30407 /* confdefs.h. */
30408 _ACEOF
30409 cat confdefs.h >>conftest.$ac_ext
30410 cat >>conftest.$ac_ext <<_ACEOF
30411 /* end confdefs.h. */
30413 /* Override any gcc2 internal prototype to avoid an error. */
30414 #ifdef __cplusplus
30415 extern "C"
30416 #endif
30417 /* We use char because int might match the return type of a gcc2
30418 builtin and then its argument prototype would still apply. */
30419 char elf_begin ();
30421 main ()
30423 elf_begin ();
30425 return 0;
30427 _ACEOF
30428 rm -f conftest.$ac_objext conftest$ac_exeext
30429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30430 (eval $ac_link) 2>&5
30431 ac_status=$?
30432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433 (exit $ac_status); } &&
30434 { ac_try='test -s conftest$ac_exeext'
30435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436 (eval $ac_try) 2>&5
30437 ac_status=$?
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; }; then
30440 ac_cv_lib_elf_elf_begin=yes
30441 else
30442 echo "$as_me: failed program was:" >&5
30443 sed 's/^/| /' conftest.$ac_ext >&5
30445 ac_cv_lib_elf_elf_begin=no
30447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30448 LIBS=$ac_check_lib_save_LIBS
30450 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
30451 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
30452 if test $ac_cv_lib_elf_elf_begin = yes; then
30453 LIBS="-lelf $LIBS"
30457 if test $ac_have_func = no; then
30458 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
30459 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
30460 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
30461 echo $ECHO_N "(cached) $ECHO_C" >&6
30462 else
30463 ac_check_lib_save_LIBS=$LIBS
30464 LIBS="-lkvm $LIBS"
30465 cat >conftest.$ac_ext <<_ACEOF
30466 #line $LINENO "configure"
30467 /* confdefs.h. */
30468 _ACEOF
30469 cat confdefs.h >>conftest.$ac_ext
30470 cat >>conftest.$ac_ext <<_ACEOF
30471 /* end confdefs.h. */
30473 /* Override any gcc2 internal prototype to avoid an error. */
30474 #ifdef __cplusplus
30475 extern "C"
30476 #endif
30477 /* We use char because int might match the return type of a gcc2
30478 builtin and then its argument prototype would still apply. */
30479 char kvm_open ();
30481 main ()
30483 kvm_open ();
30485 return 0;
30487 _ACEOF
30488 rm -f conftest.$ac_objext conftest$ac_exeext
30489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30490 (eval $ac_link) 2>&5
30491 ac_status=$?
30492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30493 (exit $ac_status); } &&
30494 { ac_try='test -s conftest$ac_exeext'
30495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30496 (eval $ac_try) 2>&5
30497 ac_status=$?
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); }; }; then
30500 ac_cv_lib_kvm_kvm_open=yes
30501 else
30502 echo "$as_me: failed program was:" >&5
30503 sed 's/^/| /' conftest.$ac_ext >&5
30505 ac_cv_lib_kvm_kvm_open=no
30507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30508 LIBS=$ac_check_lib_save_LIBS
30510 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
30511 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
30512 if test $ac_cv_lib_kvm_kvm_open = yes; then
30513 LIBS="-lkvm $LIBS"
30516 # Check for the 4.4BSD definition of getloadavg.
30517 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
30518 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
30519 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
30520 echo $ECHO_N "(cached) $ECHO_C" >&6
30521 else
30522 ac_check_lib_save_LIBS=$LIBS
30523 LIBS="-lutil $LIBS"
30524 cat >conftest.$ac_ext <<_ACEOF
30525 #line $LINENO "configure"
30526 /* confdefs.h. */
30527 _ACEOF
30528 cat confdefs.h >>conftest.$ac_ext
30529 cat >>conftest.$ac_ext <<_ACEOF
30530 /* end confdefs.h. */
30532 /* Override any gcc2 internal prototype to avoid an error. */
30533 #ifdef __cplusplus
30534 extern "C"
30535 #endif
30536 /* We use char because int might match the return type of a gcc2
30537 builtin and then its argument prototype would still apply. */
30538 char getloadavg ();
30540 main ()
30542 getloadavg ();
30544 return 0;
30546 _ACEOF
30547 rm -f conftest.$ac_objext conftest$ac_exeext
30548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30549 (eval $ac_link) 2>&5
30550 ac_status=$?
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); } &&
30553 { ac_try='test -s conftest$ac_exeext'
30554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30555 (eval $ac_try) 2>&5
30556 ac_status=$?
30557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558 (exit $ac_status); }; }; then
30559 ac_cv_lib_util_getloadavg=yes
30560 else
30561 echo "$as_me: failed program was:" >&5
30562 sed 's/^/| /' conftest.$ac_ext >&5
30564 ac_cv_lib_util_getloadavg=no
30566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30567 LIBS=$ac_check_lib_save_LIBS
30569 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
30570 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
30571 if test $ac_cv_lib_util_getloadavg = yes; then
30572 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
30577 if test $ac_have_func = no; then
30578 # There is a commonly available library for RS/6000 AIX.
30579 # Since it is not a standard part of AIX, it might be installed locally.
30580 ac_getloadavg_LIBS=$LIBS
30581 LIBS="-L/usr/local/lib $LIBS"
30582 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
30583 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
30584 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
30585 echo $ECHO_N "(cached) $ECHO_C" >&6
30586 else
30587 ac_check_lib_save_LIBS=$LIBS
30588 LIBS="-lgetloadavg $LIBS"
30589 cat >conftest.$ac_ext <<_ACEOF
30590 #line $LINENO "configure"
30591 /* confdefs.h. */
30592 _ACEOF
30593 cat confdefs.h >>conftest.$ac_ext
30594 cat >>conftest.$ac_ext <<_ACEOF
30595 /* end confdefs.h. */
30597 /* Override any gcc2 internal prototype to avoid an error. */
30598 #ifdef __cplusplus
30599 extern "C"
30600 #endif
30601 /* We use char because int might match the return type of a gcc2
30602 builtin and then its argument prototype would still apply. */
30603 char getloadavg ();
30605 main ()
30607 getloadavg ();
30609 return 0;
30611 _ACEOF
30612 rm -f conftest.$ac_objext conftest$ac_exeext
30613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30614 (eval $ac_link) 2>&5
30615 ac_status=$?
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); } &&
30618 { ac_try='test -s conftest$ac_exeext'
30619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30620 (eval $ac_try) 2>&5
30621 ac_status=$?
30622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623 (exit $ac_status); }; }; then
30624 ac_cv_lib_getloadavg_getloadavg=yes
30625 else
30626 echo "$as_me: failed program was:" >&5
30627 sed 's/^/| /' conftest.$ac_ext >&5
30629 ac_cv_lib_getloadavg_getloadavg=no
30631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30632 LIBS=$ac_check_lib_save_LIBS
30634 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
30635 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
30636 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
30637 LIBS="-lgetloadavg $LIBS"
30638 else
30639 LIBS=$ac_getloadavg_LIBS
30644 # Make sure it is really in the library, if we think we found it,
30645 # otherwise set up the replacement function.
30647 for ac_func in getloadavg
30649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30650 echo "$as_me:$LINENO: checking for $ac_func" >&5
30651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30652 if eval "test \"\${$as_ac_var+set}\" = set"; then
30653 echo $ECHO_N "(cached) $ECHO_C" >&6
30654 else
30655 cat >conftest.$ac_ext <<_ACEOF
30656 #line $LINENO "configure"
30657 /* confdefs.h. */
30658 _ACEOF
30659 cat confdefs.h >>conftest.$ac_ext
30660 cat >>conftest.$ac_ext <<_ACEOF
30661 /* end confdefs.h. */
30662 /* System header to define __stub macros and hopefully few prototypes,
30663 which can conflict with char $ac_func (); below.
30664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30665 <limits.h> exists even on freestanding compilers. */
30666 #ifdef __STDC__
30667 # include <limits.h>
30668 #else
30669 # include <assert.h>
30670 #endif
30671 /* Override any gcc2 internal prototype to avoid an error. */
30672 #ifdef __cplusplus
30673 extern "C"
30675 #endif
30676 /* We use char because int might match the return type of a gcc2
30677 builtin and then its argument prototype would still apply. */
30678 char $ac_func ();
30679 /* The GNU C library defines this for functions which it implements
30680 to always fail with ENOSYS. Some functions are actually named
30681 something starting with __ and the normal name is an alias. */
30682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30683 choke me
30684 #else
30685 char (*f) () = $ac_func;
30686 #endif
30687 #ifdef __cplusplus
30689 #endif
30692 main ()
30694 return f != $ac_func;
30696 return 0;
30698 _ACEOF
30699 rm -f conftest.$ac_objext conftest$ac_exeext
30700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30701 (eval $ac_link) 2>&5
30702 ac_status=$?
30703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30704 (exit $ac_status); } &&
30705 { ac_try='test -s conftest$ac_exeext'
30706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30707 (eval $ac_try) 2>&5
30708 ac_status=$?
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710 (exit $ac_status); }; }; then
30711 eval "$as_ac_var=yes"
30712 else
30713 echo "$as_me: failed program was:" >&5
30714 sed 's/^/| /' conftest.$ac_ext >&5
30716 eval "$as_ac_var=no"
30718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30722 if test `eval echo '${'$as_ac_var'}'` = yes; then
30723 cat >>confdefs.h <<_ACEOF
30724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30725 _ACEOF
30727 else
30728 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
30730 cat >>confdefs.h <<\_ACEOF
30731 #define C_GETLOADAVG 1
30732 _ACEOF
30734 # Figure out what our getloadavg.c needs.
30735 ac_have_func=no
30736 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30737 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
30738 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
30739 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30740 echo $ECHO_N "(cached) $ECHO_C" >&6
30742 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
30743 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
30744 else
30745 # Is the header compilable?
30746 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
30747 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
30748 cat >conftest.$ac_ext <<_ACEOF
30749 #line $LINENO "configure"
30750 /* confdefs.h. */
30751 _ACEOF
30752 cat confdefs.h >>conftest.$ac_ext
30753 cat >>conftest.$ac_ext <<_ACEOF
30754 /* end confdefs.h. */
30755 $ac_includes_default
30756 #include <sys/dg_sys_info.h>
30757 _ACEOF
30758 rm -f conftest.$ac_objext
30759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30760 (eval $ac_compile) 2>&5
30761 ac_status=$?
30762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763 (exit $ac_status); } &&
30764 { ac_try='test -s conftest.$ac_objext'
30765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30766 (eval $ac_try) 2>&5
30767 ac_status=$?
30768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769 (exit $ac_status); }; }; then
30770 ac_header_compiler=yes
30771 else
30772 echo "$as_me: failed program was:" >&5
30773 sed 's/^/| /' conftest.$ac_ext >&5
30775 ac_header_compiler=no
30777 rm -f conftest.$ac_objext conftest.$ac_ext
30778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30779 echo "${ECHO_T}$ac_header_compiler" >&6
30781 # Is the header present?
30782 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
30783 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
30784 cat >conftest.$ac_ext <<_ACEOF
30785 #line $LINENO "configure"
30786 /* confdefs.h. */
30787 _ACEOF
30788 cat confdefs.h >>conftest.$ac_ext
30789 cat >>conftest.$ac_ext <<_ACEOF
30790 /* end confdefs.h. */
30791 #include <sys/dg_sys_info.h>
30792 _ACEOF
30793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30795 ac_status=$?
30796 grep -v '^ *+' conftest.er1 >conftest.err
30797 rm -f conftest.er1
30798 cat conftest.err >&5
30799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 (exit $ac_status); } >/dev/null; then
30801 if test -s conftest.err; then
30802 ac_cpp_err=$ac_c_preproc_warn_flag
30803 else
30804 ac_cpp_err=
30806 else
30807 ac_cpp_err=yes
30809 if test -z "$ac_cpp_err"; then
30810 ac_header_preproc=yes
30811 else
30812 echo "$as_me: failed program was:" >&5
30813 sed 's/^/| /' conftest.$ac_ext >&5
30815 ac_header_preproc=no
30817 rm -f conftest.err conftest.$ac_ext
30818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30819 echo "${ECHO_T}$ac_header_preproc" >&6
30821 # So? What about this header?
30822 case $ac_header_compiler:$ac_header_preproc in
30823 yes:no )
30824 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
30825 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30826 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
30827 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
30829 cat <<\_ASBOX
30830 ## ------------------------------------ ##
30831 ## Report this to bug-autoconf@gnu.org. ##
30832 ## ------------------------------------ ##
30833 _ASBOX
30835 sed "s/^/$as_me: WARNING: /" >&2
30837 no:yes )
30838 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
30839 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
30840 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
30841 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
30842 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
30843 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
30845 cat <<\_ASBOX
30846 ## ------------------------------------ ##
30847 ## Report this to bug-autoconf@gnu.org. ##
30848 ## ------------------------------------ ##
30849 _ASBOX
30851 sed "s/^/$as_me: WARNING: /" >&2
30853 esac
30854 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
30855 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
30856 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30857 echo $ECHO_N "(cached) $ECHO_C" >&6
30858 else
30859 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
30861 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
30862 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
30865 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
30866 ac_have_func=yes
30868 cat >>confdefs.h <<\_ACEOF
30869 #define DGUX 1
30870 _ACEOF
30873 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
30874 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
30875 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
30876 echo $ECHO_N "(cached) $ECHO_C" >&6
30877 else
30878 ac_check_lib_save_LIBS=$LIBS
30879 LIBS="-ldgc $LIBS"
30880 cat >conftest.$ac_ext <<_ACEOF
30881 #line $LINENO "configure"
30882 /* confdefs.h. */
30883 _ACEOF
30884 cat confdefs.h >>conftest.$ac_ext
30885 cat >>conftest.$ac_ext <<_ACEOF
30886 /* end confdefs.h. */
30888 /* Override any gcc2 internal prototype to avoid an error. */
30889 #ifdef __cplusplus
30890 extern "C"
30891 #endif
30892 /* We use char because int might match the return type of a gcc2
30893 builtin and then its argument prototype would still apply. */
30894 char dg_sys_info ();
30896 main ()
30898 dg_sys_info ();
30900 return 0;
30902 _ACEOF
30903 rm -f conftest.$ac_objext conftest$ac_exeext
30904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30905 (eval $ac_link) 2>&5
30906 ac_status=$?
30907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908 (exit $ac_status); } &&
30909 { ac_try='test -s conftest$ac_exeext'
30910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30911 (eval $ac_try) 2>&5
30912 ac_status=$?
30913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914 (exit $ac_status); }; }; then
30915 ac_cv_lib_dgc_dg_sys_info=yes
30916 else
30917 echo "$as_me: failed program was:" >&5
30918 sed 's/^/| /' conftest.$ac_ext >&5
30920 ac_cv_lib_dgc_dg_sys_info=no
30922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30923 LIBS=$ac_check_lib_save_LIBS
30925 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
30926 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
30927 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
30928 cat >>confdefs.h <<_ACEOF
30929 #define HAVE_LIBDGC 1
30930 _ACEOF
30932 LIBS="-ldgc $LIBS"
30940 if test "${ac_cv_header_locale_h+set}" = set; then
30941 echo "$as_me:$LINENO: checking for locale.h" >&5
30942 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30943 if test "${ac_cv_header_locale_h+set}" = set; then
30944 echo $ECHO_N "(cached) $ECHO_C" >&6
30946 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30947 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30948 else
30949 # Is the header compilable?
30950 echo "$as_me:$LINENO: checking locale.h usability" >&5
30951 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
30952 cat >conftest.$ac_ext <<_ACEOF
30953 #line $LINENO "configure"
30954 /* confdefs.h. */
30955 _ACEOF
30956 cat confdefs.h >>conftest.$ac_ext
30957 cat >>conftest.$ac_ext <<_ACEOF
30958 /* end confdefs.h. */
30959 $ac_includes_default
30960 #include <locale.h>
30961 _ACEOF
30962 rm -f conftest.$ac_objext
30963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30964 (eval $ac_compile) 2>&5
30965 ac_status=$?
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); } &&
30968 { ac_try='test -s conftest.$ac_objext'
30969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30970 (eval $ac_try) 2>&5
30971 ac_status=$?
30972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); }; }; then
30974 ac_header_compiler=yes
30975 else
30976 echo "$as_me: failed program was:" >&5
30977 sed 's/^/| /' conftest.$ac_ext >&5
30979 ac_header_compiler=no
30981 rm -f conftest.$ac_objext conftest.$ac_ext
30982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30983 echo "${ECHO_T}$ac_header_compiler" >&6
30985 # Is the header present?
30986 echo "$as_me:$LINENO: checking locale.h presence" >&5
30987 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
30988 cat >conftest.$ac_ext <<_ACEOF
30989 #line $LINENO "configure"
30990 /* confdefs.h. */
30991 _ACEOF
30992 cat confdefs.h >>conftest.$ac_ext
30993 cat >>conftest.$ac_ext <<_ACEOF
30994 /* end confdefs.h. */
30995 #include <locale.h>
30996 _ACEOF
30997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30999 ac_status=$?
31000 grep -v '^ *+' conftest.er1 >conftest.err
31001 rm -f conftest.er1
31002 cat conftest.err >&5
31003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004 (exit $ac_status); } >/dev/null; then
31005 if test -s conftest.err; then
31006 ac_cpp_err=$ac_c_preproc_warn_flag
31007 else
31008 ac_cpp_err=
31010 else
31011 ac_cpp_err=yes
31013 if test -z "$ac_cpp_err"; then
31014 ac_header_preproc=yes
31015 else
31016 echo "$as_me: failed program was:" >&5
31017 sed 's/^/| /' conftest.$ac_ext >&5
31019 ac_header_preproc=no
31021 rm -f conftest.err conftest.$ac_ext
31022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31023 echo "${ECHO_T}$ac_header_preproc" >&6
31025 # So? What about this header?
31026 case $ac_header_compiler:$ac_header_preproc in
31027 yes:no )
31028 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
31029 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31030 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
31031 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
31033 cat <<\_ASBOX
31034 ## ------------------------------------ ##
31035 ## Report this to bug-autoconf@gnu.org. ##
31036 ## ------------------------------------ ##
31037 _ASBOX
31039 sed "s/^/$as_me: WARNING: /" >&2
31041 no:yes )
31042 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
31043 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
31044 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
31045 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
31046 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
31047 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
31049 cat <<\_ASBOX
31050 ## ------------------------------------ ##
31051 ## Report this to bug-autoconf@gnu.org. ##
31052 ## ------------------------------------ ##
31053 _ASBOX
31055 sed "s/^/$as_me: WARNING: /" >&2
31057 esac
31058 echo "$as_me:$LINENO: checking for locale.h" >&5
31059 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
31060 if test "${ac_cv_header_locale_h+set}" = set; then
31061 echo $ECHO_N "(cached) $ECHO_C" >&6
31062 else
31063 ac_cv_header_locale_h=$ac_header_preproc
31065 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
31066 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
31072 for ac_func in setlocale
31074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31075 echo "$as_me:$LINENO: checking for $ac_func" >&5
31076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31077 if eval "test \"\${$as_ac_var+set}\" = set"; then
31078 echo $ECHO_N "(cached) $ECHO_C" >&6
31079 else
31080 cat >conftest.$ac_ext <<_ACEOF
31081 #line $LINENO "configure"
31082 /* confdefs.h. */
31083 _ACEOF
31084 cat confdefs.h >>conftest.$ac_ext
31085 cat >>conftest.$ac_ext <<_ACEOF
31086 /* end confdefs.h. */
31087 /* System header to define __stub macros and hopefully few prototypes,
31088 which can conflict with char $ac_func (); below.
31089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31090 <limits.h> exists even on freestanding compilers. */
31091 #ifdef __STDC__
31092 # include <limits.h>
31093 #else
31094 # include <assert.h>
31095 #endif
31096 /* Override any gcc2 internal prototype to avoid an error. */
31097 #ifdef __cplusplus
31098 extern "C"
31100 #endif
31101 /* We use char because int might match the return type of a gcc2
31102 builtin and then its argument prototype would still apply. */
31103 char $ac_func ();
31104 /* The GNU C library defines this for functions which it implements
31105 to always fail with ENOSYS. Some functions are actually named
31106 something starting with __ and the normal name is an alias. */
31107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31108 choke me
31109 #else
31110 char (*f) () = $ac_func;
31111 #endif
31112 #ifdef __cplusplus
31114 #endif
31117 main ()
31119 return f != $ac_func;
31121 return 0;
31123 _ACEOF
31124 rm -f conftest.$ac_objext conftest$ac_exeext
31125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31126 (eval $ac_link) 2>&5
31127 ac_status=$?
31128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31129 (exit $ac_status); } &&
31130 { ac_try='test -s conftest$ac_exeext'
31131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31132 (eval $ac_try) 2>&5
31133 ac_status=$?
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; }; then
31136 eval "$as_ac_var=yes"
31137 else
31138 echo "$as_me: failed program was:" >&5
31139 sed 's/^/| /' conftest.$ac_ext >&5
31141 eval "$as_ac_var=no"
31143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31147 if test `eval echo '${'$as_ac_var'}'` = yes; then
31148 cat >>confdefs.h <<_ACEOF
31149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31150 _ACEOF
31153 done
31156 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
31157 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
31158 # Irix 4.0.5F has the header but not the library.
31159 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
31160 ac_have_func=yes
31162 cat >>confdefs.h <<\_ACEOF
31163 #define SVR4 1
31164 _ACEOF
31168 if test $ac_have_func = no; then
31169 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31170 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
31171 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
31172 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31173 echo $ECHO_N "(cached) $ECHO_C" >&6
31175 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
31176 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
31177 else
31178 # Is the header compilable?
31179 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
31180 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
31181 cat >conftest.$ac_ext <<_ACEOF
31182 #line $LINENO "configure"
31183 /* confdefs.h. */
31184 _ACEOF
31185 cat confdefs.h >>conftest.$ac_ext
31186 cat >>conftest.$ac_ext <<_ACEOF
31187 /* end confdefs.h. */
31188 $ac_includes_default
31189 #include <inq_stats/cpustats.h>
31190 _ACEOF
31191 rm -f conftest.$ac_objext
31192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31193 (eval $ac_compile) 2>&5
31194 ac_status=$?
31195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196 (exit $ac_status); } &&
31197 { ac_try='test -s conftest.$ac_objext'
31198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31199 (eval $ac_try) 2>&5
31200 ac_status=$?
31201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202 (exit $ac_status); }; }; then
31203 ac_header_compiler=yes
31204 else
31205 echo "$as_me: failed program was:" >&5
31206 sed 's/^/| /' conftest.$ac_ext >&5
31208 ac_header_compiler=no
31210 rm -f conftest.$ac_objext conftest.$ac_ext
31211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31212 echo "${ECHO_T}$ac_header_compiler" >&6
31214 # Is the header present?
31215 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
31216 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
31217 cat >conftest.$ac_ext <<_ACEOF
31218 #line $LINENO "configure"
31219 /* confdefs.h. */
31220 _ACEOF
31221 cat confdefs.h >>conftest.$ac_ext
31222 cat >>conftest.$ac_ext <<_ACEOF
31223 /* end confdefs.h. */
31224 #include <inq_stats/cpustats.h>
31225 _ACEOF
31226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31228 ac_status=$?
31229 grep -v '^ *+' conftest.er1 >conftest.err
31230 rm -f conftest.er1
31231 cat conftest.err >&5
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); } >/dev/null; then
31234 if test -s conftest.err; then
31235 ac_cpp_err=$ac_c_preproc_warn_flag
31236 else
31237 ac_cpp_err=
31239 else
31240 ac_cpp_err=yes
31242 if test -z "$ac_cpp_err"; then
31243 ac_header_preproc=yes
31244 else
31245 echo "$as_me: failed program was:" >&5
31246 sed 's/^/| /' conftest.$ac_ext >&5
31248 ac_header_preproc=no
31250 rm -f conftest.err conftest.$ac_ext
31251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31252 echo "${ECHO_T}$ac_header_preproc" >&6
31254 # So? What about this header?
31255 case $ac_header_compiler:$ac_header_preproc in
31256 yes:no )
31257 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
31258 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31259 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
31260 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
31262 cat <<\_ASBOX
31263 ## ------------------------------------ ##
31264 ## Report this to bug-autoconf@gnu.org. ##
31265 ## ------------------------------------ ##
31266 _ASBOX
31268 sed "s/^/$as_me: WARNING: /" >&2
31270 no:yes )
31271 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
31272 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
31273 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
31274 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
31275 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
31276 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
31278 cat <<\_ASBOX
31279 ## ------------------------------------ ##
31280 ## Report this to bug-autoconf@gnu.org. ##
31281 ## ------------------------------------ ##
31282 _ASBOX
31284 sed "s/^/$as_me: WARNING: /" >&2
31286 esac
31287 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
31288 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
31289 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31290 echo $ECHO_N "(cached) $ECHO_C" >&6
31291 else
31292 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
31294 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
31295 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
31298 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
31299 ac_have_func=yes
31301 cat >>confdefs.h <<\_ACEOF
31302 #define UMAX 1
31303 _ACEOF
31306 cat >>confdefs.h <<\_ACEOF
31307 #define UMAX4_3 1
31308 _ACEOF
31315 if test $ac_have_func = no; then
31316 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31317 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
31318 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
31319 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31320 echo $ECHO_N "(cached) $ECHO_C" >&6
31322 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
31323 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
31324 else
31325 # Is the header compilable?
31326 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
31327 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
31328 cat >conftest.$ac_ext <<_ACEOF
31329 #line $LINENO "configure"
31330 /* confdefs.h. */
31331 _ACEOF
31332 cat confdefs.h >>conftest.$ac_ext
31333 cat >>conftest.$ac_ext <<_ACEOF
31334 /* end confdefs.h. */
31335 $ac_includes_default
31336 #include <sys/cpustats.h>
31337 _ACEOF
31338 rm -f conftest.$ac_objext
31339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31340 (eval $ac_compile) 2>&5
31341 ac_status=$?
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); } &&
31344 { ac_try='test -s conftest.$ac_objext'
31345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31346 (eval $ac_try) 2>&5
31347 ac_status=$?
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); }; }; then
31350 ac_header_compiler=yes
31351 else
31352 echo "$as_me: failed program was:" >&5
31353 sed 's/^/| /' conftest.$ac_ext >&5
31355 ac_header_compiler=no
31357 rm -f conftest.$ac_objext conftest.$ac_ext
31358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31359 echo "${ECHO_T}$ac_header_compiler" >&6
31361 # Is the header present?
31362 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
31363 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
31364 cat >conftest.$ac_ext <<_ACEOF
31365 #line $LINENO "configure"
31366 /* confdefs.h. */
31367 _ACEOF
31368 cat confdefs.h >>conftest.$ac_ext
31369 cat >>conftest.$ac_ext <<_ACEOF
31370 /* end confdefs.h. */
31371 #include <sys/cpustats.h>
31372 _ACEOF
31373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31375 ac_status=$?
31376 grep -v '^ *+' conftest.er1 >conftest.err
31377 rm -f conftest.er1
31378 cat conftest.err >&5
31379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31380 (exit $ac_status); } >/dev/null; then
31381 if test -s conftest.err; then
31382 ac_cpp_err=$ac_c_preproc_warn_flag
31383 else
31384 ac_cpp_err=
31386 else
31387 ac_cpp_err=yes
31389 if test -z "$ac_cpp_err"; then
31390 ac_header_preproc=yes
31391 else
31392 echo "$as_me: failed program was:" >&5
31393 sed 's/^/| /' conftest.$ac_ext >&5
31395 ac_header_preproc=no
31397 rm -f conftest.err conftest.$ac_ext
31398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31399 echo "${ECHO_T}$ac_header_preproc" >&6
31401 # So? What about this header?
31402 case $ac_header_compiler:$ac_header_preproc in
31403 yes:no )
31404 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
31405 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31406 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
31407 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
31409 cat <<\_ASBOX
31410 ## ------------------------------------ ##
31411 ## Report this to bug-autoconf@gnu.org. ##
31412 ## ------------------------------------ ##
31413 _ASBOX
31415 sed "s/^/$as_me: WARNING: /" >&2
31417 no:yes )
31418 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
31419 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
31420 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
31421 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
31422 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
31423 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
31425 cat <<\_ASBOX
31426 ## ------------------------------------ ##
31427 ## Report this to bug-autoconf@gnu.org. ##
31428 ## ------------------------------------ ##
31429 _ASBOX
31431 sed "s/^/$as_me: WARNING: /" >&2
31433 esac
31434 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
31435 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
31436 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31437 echo $ECHO_N "(cached) $ECHO_C" >&6
31438 else
31439 ac_cv_header_sys_cpustats_h=$ac_header_preproc
31441 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
31442 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
31445 if test $ac_cv_header_sys_cpustats_h = yes; then
31446 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
31447 #define UMAX 1
31448 _ACEOF
31455 if test $ac_have_func = no; then
31457 for ac_header in mach/mach.h
31459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31461 echo "$as_me:$LINENO: checking for $ac_header" >&5
31462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31464 echo $ECHO_N "(cached) $ECHO_C" >&6
31466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31468 else
31469 # Is the header compilable?
31470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31472 cat >conftest.$ac_ext <<_ACEOF
31473 #line $LINENO "configure"
31474 /* confdefs.h. */
31475 _ACEOF
31476 cat confdefs.h >>conftest.$ac_ext
31477 cat >>conftest.$ac_ext <<_ACEOF
31478 /* end confdefs.h. */
31479 $ac_includes_default
31480 #include <$ac_header>
31481 _ACEOF
31482 rm -f conftest.$ac_objext
31483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31484 (eval $ac_compile) 2>&5
31485 ac_status=$?
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); } &&
31488 { ac_try='test -s conftest.$ac_objext'
31489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31490 (eval $ac_try) 2>&5
31491 ac_status=$?
31492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493 (exit $ac_status); }; }; then
31494 ac_header_compiler=yes
31495 else
31496 echo "$as_me: failed program was:" >&5
31497 sed 's/^/| /' conftest.$ac_ext >&5
31499 ac_header_compiler=no
31501 rm -f conftest.$ac_objext conftest.$ac_ext
31502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31503 echo "${ECHO_T}$ac_header_compiler" >&6
31505 # Is the header present?
31506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31508 cat >conftest.$ac_ext <<_ACEOF
31509 #line $LINENO "configure"
31510 /* confdefs.h. */
31511 _ACEOF
31512 cat confdefs.h >>conftest.$ac_ext
31513 cat >>conftest.$ac_ext <<_ACEOF
31514 /* end confdefs.h. */
31515 #include <$ac_header>
31516 _ACEOF
31517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31519 ac_status=$?
31520 grep -v '^ *+' conftest.er1 >conftest.err
31521 rm -f conftest.er1
31522 cat conftest.err >&5
31523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); } >/dev/null; then
31525 if test -s conftest.err; then
31526 ac_cpp_err=$ac_c_preproc_warn_flag
31527 else
31528 ac_cpp_err=
31530 else
31531 ac_cpp_err=yes
31533 if test -z "$ac_cpp_err"; then
31534 ac_header_preproc=yes
31535 else
31536 echo "$as_me: failed program was:" >&5
31537 sed 's/^/| /' conftest.$ac_ext >&5
31539 ac_header_preproc=no
31541 rm -f conftest.err conftest.$ac_ext
31542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31543 echo "${ECHO_T}$ac_header_preproc" >&6
31545 # So? What about this header?
31546 case $ac_header_compiler:$ac_header_preproc in
31547 yes:no )
31548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31553 cat <<\_ASBOX
31554 ## ------------------------------------ ##
31555 ## Report this to bug-autoconf@gnu.org. ##
31556 ## ------------------------------------ ##
31557 _ASBOX
31559 sed "s/^/$as_me: WARNING: /" >&2
31561 no:yes )
31562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31569 cat <<\_ASBOX
31570 ## ------------------------------------ ##
31571 ## Report this to bug-autoconf@gnu.org. ##
31572 ## ------------------------------------ ##
31573 _ASBOX
31575 sed "s/^/$as_me: WARNING: /" >&2
31577 esac
31578 echo "$as_me:$LINENO: checking for $ac_header" >&5
31579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31581 echo $ECHO_N "(cached) $ECHO_C" >&6
31582 else
31583 eval "$as_ac_Header=$ac_header_preproc"
31585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31590 cat >>confdefs.h <<_ACEOF
31591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31592 _ACEOF
31596 done
31601 for ac_header in nlist.h
31603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31605 echo "$as_me:$LINENO: checking for $ac_header" >&5
31606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31608 echo $ECHO_N "(cached) $ECHO_C" >&6
31610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31612 else
31613 # Is the header compilable?
31614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31616 cat >conftest.$ac_ext <<_ACEOF
31617 #line $LINENO "configure"
31618 /* confdefs.h. */
31619 _ACEOF
31620 cat confdefs.h >>conftest.$ac_ext
31621 cat >>conftest.$ac_ext <<_ACEOF
31622 /* end confdefs.h. */
31623 $ac_includes_default
31624 #include <$ac_header>
31625 _ACEOF
31626 rm -f conftest.$ac_objext
31627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31628 (eval $ac_compile) 2>&5
31629 ac_status=$?
31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631 (exit $ac_status); } &&
31632 { ac_try='test -s conftest.$ac_objext'
31633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31634 (eval $ac_try) 2>&5
31635 ac_status=$?
31636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637 (exit $ac_status); }; }; then
31638 ac_header_compiler=yes
31639 else
31640 echo "$as_me: failed program was:" >&5
31641 sed 's/^/| /' conftest.$ac_ext >&5
31643 ac_header_compiler=no
31645 rm -f conftest.$ac_objext conftest.$ac_ext
31646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31647 echo "${ECHO_T}$ac_header_compiler" >&6
31649 # Is the header present?
31650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31652 cat >conftest.$ac_ext <<_ACEOF
31653 #line $LINENO "configure"
31654 /* confdefs.h. */
31655 _ACEOF
31656 cat confdefs.h >>conftest.$ac_ext
31657 cat >>conftest.$ac_ext <<_ACEOF
31658 /* end confdefs.h. */
31659 #include <$ac_header>
31660 _ACEOF
31661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31663 ac_status=$?
31664 grep -v '^ *+' conftest.er1 >conftest.err
31665 rm -f conftest.er1
31666 cat conftest.err >&5
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); } >/dev/null; then
31669 if test -s conftest.err; then
31670 ac_cpp_err=$ac_c_preproc_warn_flag
31671 else
31672 ac_cpp_err=
31674 else
31675 ac_cpp_err=yes
31677 if test -z "$ac_cpp_err"; then
31678 ac_header_preproc=yes
31679 else
31680 echo "$as_me: failed program was:" >&5
31681 sed 's/^/| /' conftest.$ac_ext >&5
31683 ac_header_preproc=no
31685 rm -f conftest.err conftest.$ac_ext
31686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31687 echo "${ECHO_T}$ac_header_preproc" >&6
31689 # So? What about this header?
31690 case $ac_header_compiler:$ac_header_preproc in
31691 yes:no )
31692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31697 cat <<\_ASBOX
31698 ## ------------------------------------ ##
31699 ## Report this to bug-autoconf@gnu.org. ##
31700 ## ------------------------------------ ##
31701 _ASBOX
31703 sed "s/^/$as_me: WARNING: /" >&2
31705 no:yes )
31706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31713 cat <<\_ASBOX
31714 ## ------------------------------------ ##
31715 ## Report this to bug-autoconf@gnu.org. ##
31716 ## ------------------------------------ ##
31717 _ASBOX
31719 sed "s/^/$as_me: WARNING: /" >&2
31721 esac
31722 echo "$as_me:$LINENO: checking for $ac_header" >&5
31723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31725 echo $ECHO_N "(cached) $ECHO_C" >&6
31726 else
31727 eval "$as_ac_Header=$ac_header_preproc"
31729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31734 cat >>confdefs.h <<_ACEOF
31735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31736 _ACEOF
31737 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
31738 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
31739 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
31740 echo $ECHO_N "(cached) $ECHO_C" >&6
31741 else
31742 cat >conftest.$ac_ext <<_ACEOF
31743 #line $LINENO "configure"
31744 /* confdefs.h. */
31745 _ACEOF
31746 cat confdefs.h >>conftest.$ac_ext
31747 cat >>conftest.$ac_ext <<_ACEOF
31748 /* end confdefs.h. */
31749 #include <nlist.h>
31752 main ()
31754 static struct nlist ac_aggr;
31755 if (ac_aggr.n_un.n_name)
31756 return 0;
31758 return 0;
31760 _ACEOF
31761 rm -f conftest.$ac_objext
31762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31763 (eval $ac_compile) 2>&5
31764 ac_status=$?
31765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31766 (exit $ac_status); } &&
31767 { ac_try='test -s conftest.$ac_objext'
31768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31769 (eval $ac_try) 2>&5
31770 ac_status=$?
31771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31772 (exit $ac_status); }; }; then
31773 ac_cv_member_struct_nlist_n_un_n_name=yes
31774 else
31775 echo "$as_me: failed program was:" >&5
31776 sed 's/^/| /' conftest.$ac_ext >&5
31778 cat >conftest.$ac_ext <<_ACEOF
31779 #line $LINENO "configure"
31780 /* confdefs.h. */
31781 _ACEOF
31782 cat confdefs.h >>conftest.$ac_ext
31783 cat >>conftest.$ac_ext <<_ACEOF
31784 /* end confdefs.h. */
31785 #include <nlist.h>
31788 main ()
31790 static struct nlist ac_aggr;
31791 if (sizeof ac_aggr.n_un.n_name)
31792 return 0;
31794 return 0;
31796 _ACEOF
31797 rm -f conftest.$ac_objext
31798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31799 (eval $ac_compile) 2>&5
31800 ac_status=$?
31801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31802 (exit $ac_status); } &&
31803 { ac_try='test -s conftest.$ac_objext'
31804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31805 (eval $ac_try) 2>&5
31806 ac_status=$?
31807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808 (exit $ac_status); }; }; then
31809 ac_cv_member_struct_nlist_n_un_n_name=yes
31810 else
31811 echo "$as_me: failed program was:" >&5
31812 sed 's/^/| /' conftest.$ac_ext >&5
31814 ac_cv_member_struct_nlist_n_un_n_name=no
31816 rm -f conftest.$ac_objext conftest.$ac_ext
31818 rm -f conftest.$ac_objext conftest.$ac_ext
31820 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
31821 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
31822 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
31824 cat >>confdefs.h <<_ACEOF
31825 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
31826 _ACEOF
31829 cat >>confdefs.h <<\_ACEOF
31830 #define NLIST_NAME_UNION 1
31831 _ACEOF
31838 done
31841 done
31844 # Some definitions of getloadavg require that the program be installed setgid.
31845 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
31846 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
31847 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
31848 echo $ECHO_N "(cached) $ECHO_C" >&6
31849 else
31850 cat >conftest.$ac_ext <<_ACEOF
31851 #line $LINENO "configure"
31852 /* confdefs.h. */
31853 _ACEOF
31854 cat confdefs.h >>conftest.$ac_ext
31855 cat >>conftest.$ac_ext <<_ACEOF
31856 /* end confdefs.h. */
31857 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
31858 #ifdef LDAV_PRIVILEGED
31859 Yowza Am I SETGID yet
31860 #endif
31861 _ACEOF
31862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31863 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
31864 ac_cv_func_getloadavg_setgid=yes
31865 else
31866 ac_cv_func_getloadavg_setgid=no
31868 rm -f conftest*
31871 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
31872 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
31873 if test $ac_cv_func_getloadavg_setgid = yes; then
31874 NEED_SETGID=true
31876 cat >>confdefs.h <<\_ACEOF
31877 #define GETLOADAVG_PRIVILEGED 1
31878 _ACEOF
31880 else
31881 NEED_SETGID=false
31884 if test $ac_cv_func_getloadavg_setgid = yes; then
31885 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
31886 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
31887 if test "${ac_cv_group_kmem+set}" = set; then
31888 echo $ECHO_N "(cached) $ECHO_C" >&6
31889 else
31890 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
31891 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
31892 # If we got an error (system does not support symlinks), try without -L.
31893 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
31894 ac_cv_group_kmem=`echo $ac_ls_output \
31895 | sed -ne 's/[ ][ ]*/ /g;
31896 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
31897 / /s/.* //;p;'`
31900 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
31901 echo "${ECHO_T}$ac_cv_group_kmem" >&6
31902 KMEM_GROUP=$ac_cv_group_kmem
31904 if test "x$ac_save_LIBS" = x; then
31905 GETLOADAVG_LIBS=$LIBS
31906 else
31907 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
31909 LIBS=$ac_save_LIBS
31919 for ac_func in strcasecmp strncasecmp
31921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31922 echo "$as_me:$LINENO: checking for $ac_func" >&5
31923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31924 if eval "test \"\${$as_ac_var+set}\" = set"; then
31925 echo $ECHO_N "(cached) $ECHO_C" >&6
31926 else
31927 cat >conftest.$ac_ext <<_ACEOF
31928 #line $LINENO "configure"
31929 /* confdefs.h. */
31930 _ACEOF
31931 cat confdefs.h >>conftest.$ac_ext
31932 cat >>conftest.$ac_ext <<_ACEOF
31933 /* end confdefs.h. */
31934 /* System header to define __stub macros and hopefully few prototypes,
31935 which can conflict with char $ac_func (); below.
31936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31937 <limits.h> exists even on freestanding compilers. */
31938 #ifdef __STDC__
31939 # include <limits.h>
31940 #else
31941 # include <assert.h>
31942 #endif
31943 /* Override any gcc2 internal prototype to avoid an error. */
31944 #ifdef __cplusplus
31945 extern "C"
31947 #endif
31948 /* We use char because int might match the return type of a gcc2
31949 builtin and then its argument prototype would still apply. */
31950 char $ac_func ();
31951 /* The GNU C library defines this for functions which it implements
31952 to always fail with ENOSYS. Some functions are actually named
31953 something starting with __ and the normal name is an alias. */
31954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31955 choke me
31956 #else
31957 char (*f) () = $ac_func;
31958 #endif
31959 #ifdef __cplusplus
31961 #endif
31964 main ()
31966 return f != $ac_func;
31968 return 0;
31970 _ACEOF
31971 rm -f conftest.$ac_objext conftest$ac_exeext
31972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31973 (eval $ac_link) 2>&5
31974 ac_status=$?
31975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976 (exit $ac_status); } &&
31977 { ac_try='test -s conftest$ac_exeext'
31978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31979 (eval $ac_try) 2>&5
31980 ac_status=$?
31981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982 (exit $ac_status); }; }; then
31983 eval "$as_ac_var=yes"
31984 else
31985 echo "$as_me: failed program was:" >&5
31986 sed 's/^/| /' conftest.$ac_ext >&5
31988 eval "$as_ac_var=no"
31990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31993 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31994 if test `eval echo '${'$as_ac_var'}'` = yes; then
31995 cat >>confdefs.h <<_ACEOF
31996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31997 _ACEOF
31999 else
32000 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32002 done
32006 for ac_func in dup2
32008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32009 echo "$as_me:$LINENO: checking for $ac_func" >&5
32010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32011 if eval "test \"\${$as_ac_var+set}\" = set"; then
32012 echo $ECHO_N "(cached) $ECHO_C" >&6
32013 else
32014 cat >conftest.$ac_ext <<_ACEOF
32015 #line $LINENO "configure"
32016 /* confdefs.h. */
32017 _ACEOF
32018 cat confdefs.h >>conftest.$ac_ext
32019 cat >>conftest.$ac_ext <<_ACEOF
32020 /* end confdefs.h. */
32021 /* System header to define __stub macros and hopefully few prototypes,
32022 which can conflict with char $ac_func (); below.
32023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32024 <limits.h> exists even on freestanding compilers. */
32025 #ifdef __STDC__
32026 # include <limits.h>
32027 #else
32028 # include <assert.h>
32029 #endif
32030 /* Override any gcc2 internal prototype to avoid an error. */
32031 #ifdef __cplusplus
32032 extern "C"
32034 #endif
32035 /* We use char because int might match the return type of a gcc2
32036 builtin and then its argument prototype would still apply. */
32037 char $ac_func ();
32038 /* The GNU C library defines this for functions which it implements
32039 to always fail with ENOSYS. Some functions are actually named
32040 something starting with __ and the normal name is an alias. */
32041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32042 choke me
32043 #else
32044 char (*f) () = $ac_func;
32045 #endif
32046 #ifdef __cplusplus
32048 #endif
32051 main ()
32053 return f != $ac_func;
32055 return 0;
32057 _ACEOF
32058 rm -f conftest.$ac_objext conftest$ac_exeext
32059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32060 (eval $ac_link) 2>&5
32061 ac_status=$?
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
32067 ac_status=$?
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); }; }; then
32070 eval "$as_ac_var=yes"
32071 else
32072 echo "$as_me: failed program was:" >&5
32073 sed 's/^/| /' conftest.$ac_ext >&5
32075 eval "$as_ac_var=no"
32077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32081 if test `eval echo '${'$as_ac_var'}'` = yes; then
32082 cat >>confdefs.h <<_ACEOF
32083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32084 _ACEOF
32086 else
32087 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32089 done
32094 for ac_func in gethostname getusershell
32096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32097 echo "$as_me:$LINENO: checking for $ac_func" >&5
32098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32099 if eval "test \"\${$as_ac_var+set}\" = set"; then
32100 echo $ECHO_N "(cached) $ECHO_C" >&6
32101 else
32102 cat >conftest.$ac_ext <<_ACEOF
32103 #line $LINENO "configure"
32104 /* confdefs.h. */
32105 _ACEOF
32106 cat confdefs.h >>conftest.$ac_ext
32107 cat >>conftest.$ac_ext <<_ACEOF
32108 /* end confdefs.h. */
32109 /* System header to define __stub macros and hopefully few prototypes,
32110 which can conflict with char $ac_func (); below.
32111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32112 <limits.h> exists even on freestanding compilers. */
32113 #ifdef __STDC__
32114 # include <limits.h>
32115 #else
32116 # include <assert.h>
32117 #endif
32118 /* Override any gcc2 internal prototype to avoid an error. */
32119 #ifdef __cplusplus
32120 extern "C"
32122 #endif
32123 /* We use char because int might match the return type of a gcc2
32124 builtin and then its argument prototype would still apply. */
32125 char $ac_func ();
32126 /* The GNU C library defines this for functions which it implements
32127 to always fail with ENOSYS. Some functions are actually named
32128 something starting with __ and the normal name is an alias. */
32129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32130 choke me
32131 #else
32132 char (*f) () = $ac_func;
32133 #endif
32134 #ifdef __cplusplus
32136 #endif
32139 main ()
32141 return f != $ac_func;
32143 return 0;
32145 _ACEOF
32146 rm -f conftest.$ac_objext conftest$ac_exeext
32147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32148 (eval $ac_link) 2>&5
32149 ac_status=$?
32150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151 (exit $ac_status); } &&
32152 { ac_try='test -s conftest$ac_exeext'
32153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32154 (eval $ac_try) 2>&5
32155 ac_status=$?
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); }; }; then
32158 eval "$as_ac_var=yes"
32159 else
32160 echo "$as_me: failed program was:" >&5
32161 sed 's/^/| /' conftest.$ac_ext >&5
32163 eval "$as_ac_var=no"
32165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32169 if test `eval echo '${'$as_ac_var'}'` = yes; then
32170 cat >>confdefs.h <<_ACEOF
32171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32172 _ACEOF
32174 else
32175 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32177 done
32181 for ac_func in sig2str
32183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32184 echo "$as_me:$LINENO: checking for $ac_func" >&5
32185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32186 if eval "test \"\${$as_ac_var+set}\" = set"; then
32187 echo $ECHO_N "(cached) $ECHO_C" >&6
32188 else
32189 cat >conftest.$ac_ext <<_ACEOF
32190 #line $LINENO "configure"
32191 /* confdefs.h. */
32192 _ACEOF
32193 cat confdefs.h >>conftest.$ac_ext
32194 cat >>conftest.$ac_ext <<_ACEOF
32195 /* end confdefs.h. */
32196 /* System header to define __stub macros and hopefully few prototypes,
32197 which can conflict with char $ac_func (); below.
32198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32199 <limits.h> exists even on freestanding compilers. */
32200 #ifdef __STDC__
32201 # include <limits.h>
32202 #else
32203 # include <assert.h>
32204 #endif
32205 /* Override any gcc2 internal prototype to avoid an error. */
32206 #ifdef __cplusplus
32207 extern "C"
32209 #endif
32210 /* We use char because int might match the return type of a gcc2
32211 builtin and then its argument prototype would still apply. */
32212 char $ac_func ();
32213 /* The GNU C library defines this for functions which it implements
32214 to always fail with ENOSYS. Some functions are actually named
32215 something starting with __ and the normal name is an alias. */
32216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32217 choke me
32218 #else
32219 char (*f) () = $ac_func;
32220 #endif
32221 #ifdef __cplusplus
32223 #endif
32226 main ()
32228 return f != $ac_func;
32230 return 0;
32232 _ACEOF
32233 rm -f conftest.$ac_objext conftest$ac_exeext
32234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32235 (eval $ac_link) 2>&5
32236 ac_status=$?
32237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238 (exit $ac_status); } &&
32239 { ac_try='test -s conftest$ac_exeext'
32240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32241 (eval $ac_try) 2>&5
32242 ac_status=$?
32243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244 (exit $ac_status); }; }; then
32245 eval "$as_ac_var=yes"
32246 else
32247 echo "$as_me: failed program was:" >&5
32248 sed 's/^/| /' conftest.$ac_ext >&5
32250 eval "$as_ac_var=no"
32252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32256 if test `eval echo '${'$as_ac_var'}'` = yes; then
32257 cat >>confdefs.h <<_ACEOF
32258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32259 _ACEOF
32261 else
32262 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32264 done
32272 for ac_func in strcspn stpcpy strstr strtol strtoul
32274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32275 echo "$as_me:$LINENO: checking for $ac_func" >&5
32276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32277 if eval "test \"\${$as_ac_var+set}\" = set"; then
32278 echo $ECHO_N "(cached) $ECHO_C" >&6
32279 else
32280 cat >conftest.$ac_ext <<_ACEOF
32281 #line $LINENO "configure"
32282 /* confdefs.h. */
32283 _ACEOF
32284 cat confdefs.h >>conftest.$ac_ext
32285 cat >>conftest.$ac_ext <<_ACEOF
32286 /* end confdefs.h. */
32287 /* System header to define __stub macros and hopefully few prototypes,
32288 which can conflict with char $ac_func (); below.
32289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32290 <limits.h> exists even on freestanding compilers. */
32291 #ifdef __STDC__
32292 # include <limits.h>
32293 #else
32294 # include <assert.h>
32295 #endif
32296 /* Override any gcc2 internal prototype to avoid an error. */
32297 #ifdef __cplusplus
32298 extern "C"
32300 #endif
32301 /* We use char because int might match the return type of a gcc2
32302 builtin and then its argument prototype would still apply. */
32303 char $ac_func ();
32304 /* The GNU C library defines this for functions which it implements
32305 to always fail with ENOSYS. Some functions are actually named
32306 something starting with __ and the normal name is an alias. */
32307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32308 choke me
32309 #else
32310 char (*f) () = $ac_func;
32311 #endif
32312 #ifdef __cplusplus
32314 #endif
32317 main ()
32319 return f != $ac_func;
32321 return 0;
32323 _ACEOF
32324 rm -f conftest.$ac_objext conftest$ac_exeext
32325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32326 (eval $ac_link) 2>&5
32327 ac_status=$?
32328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329 (exit $ac_status); } &&
32330 { ac_try='test -s conftest$ac_exeext'
32331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32332 (eval $ac_try) 2>&5
32333 ac_status=$?
32334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335 (exit $ac_status); }; }; then
32336 eval "$as_ac_var=yes"
32337 else
32338 echo "$as_me: failed program was:" >&5
32339 sed 's/^/| /' conftest.$ac_ext >&5
32341 eval "$as_ac_var=no"
32343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32347 if test `eval echo '${'$as_ac_var'}'` = yes; then
32348 cat >>confdefs.h <<_ACEOF
32349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32350 _ACEOF
32352 else
32353 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32355 done
32359 for ac_func in strpbrk
32361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32362 echo "$as_me:$LINENO: checking for $ac_func" >&5
32363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32364 if eval "test \"\${$as_ac_var+set}\" = set"; then
32365 echo $ECHO_N "(cached) $ECHO_C" >&6
32366 else
32367 cat >conftest.$ac_ext <<_ACEOF
32368 #line $LINENO "configure"
32369 /* confdefs.h. */
32370 _ACEOF
32371 cat confdefs.h >>conftest.$ac_ext
32372 cat >>conftest.$ac_ext <<_ACEOF
32373 /* end confdefs.h. */
32374 /* System header to define __stub macros and hopefully few prototypes,
32375 which can conflict with char $ac_func (); below.
32376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32377 <limits.h> exists even on freestanding compilers. */
32378 #ifdef __STDC__
32379 # include <limits.h>
32380 #else
32381 # include <assert.h>
32382 #endif
32383 /* Override any gcc2 internal prototype to avoid an error. */
32384 #ifdef __cplusplus
32385 extern "C"
32387 #endif
32388 /* We use char because int might match the return type of a gcc2
32389 builtin and then its argument prototype would still apply. */
32390 char $ac_func ();
32391 /* The GNU C library defines this for functions which it implements
32392 to always fail with ENOSYS. Some functions are actually named
32393 something starting with __ and the normal name is an alias. */
32394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32395 choke me
32396 #else
32397 char (*f) () = $ac_func;
32398 #endif
32399 #ifdef __cplusplus
32401 #endif
32404 main ()
32406 return f != $ac_func;
32408 return 0;
32410 _ACEOF
32411 rm -f conftest.$ac_objext conftest$ac_exeext
32412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32413 (eval $ac_link) 2>&5
32414 ac_status=$?
32415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416 (exit $ac_status); } &&
32417 { ac_try='test -s conftest$ac_exeext'
32418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32419 (eval $ac_try) 2>&5
32420 ac_status=$?
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); }; }; then
32423 eval "$as_ac_var=yes"
32424 else
32425 echo "$as_me: failed program was:" >&5
32426 sed 's/^/| /' conftest.$ac_ext >&5
32428 eval "$as_ac_var=no"
32430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32434 if test `eval echo '${'$as_ac_var'}'` = yes; then
32435 cat >>confdefs.h <<_ACEOF
32436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32437 _ACEOF
32439 else
32440 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32442 done
32451 for ac_func in euidaccess memcmp rmdir rpmatch strndup strverscmp
32453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32454 echo "$as_me:$LINENO: checking for $ac_func" >&5
32455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32456 if eval "test \"\${$as_ac_var+set}\" = set"; then
32457 echo $ECHO_N "(cached) $ECHO_C" >&6
32458 else
32459 cat >conftest.$ac_ext <<_ACEOF
32460 #line $LINENO "configure"
32461 /* confdefs.h. */
32462 _ACEOF
32463 cat confdefs.h >>conftest.$ac_ext
32464 cat >>conftest.$ac_ext <<_ACEOF
32465 /* end confdefs.h. */
32466 /* System header to define __stub macros and hopefully few prototypes,
32467 which can conflict with char $ac_func (); below.
32468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32469 <limits.h> exists even on freestanding compilers. */
32470 #ifdef __STDC__
32471 # include <limits.h>
32472 #else
32473 # include <assert.h>
32474 #endif
32475 /* Override any gcc2 internal prototype to avoid an error. */
32476 #ifdef __cplusplus
32477 extern "C"
32479 #endif
32480 /* We use char because int might match the return type of a gcc2
32481 builtin and then its argument prototype would still apply. */
32482 char $ac_func ();
32483 /* The GNU C library defines this for functions which it implements
32484 to always fail with ENOSYS. Some functions are actually named
32485 something starting with __ and the normal name is an alias. */
32486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32487 choke me
32488 #else
32489 char (*f) () = $ac_func;
32490 #endif
32491 #ifdef __cplusplus
32493 #endif
32496 main ()
32498 return f != $ac_func;
32500 return 0;
32502 _ACEOF
32503 rm -f conftest.$ac_objext conftest$ac_exeext
32504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32505 (eval $ac_link) 2>&5
32506 ac_status=$?
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); } &&
32509 { ac_try='test -s conftest$ac_exeext'
32510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32511 (eval $ac_try) 2>&5
32512 ac_status=$?
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); }; }; then
32515 eval "$as_ac_var=yes"
32516 else
32517 echo "$as_me: failed program was:" >&5
32518 sed 's/^/| /' conftest.$ac_ext >&5
32520 eval "$as_ac_var=no"
32522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32526 if test `eval echo '${'$as_ac_var'}'` = yes; then
32527 cat >>confdefs.h <<_ACEOF
32528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32529 _ACEOF
32531 else
32532 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32534 done
32538 for ac_func in atexit
32540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32541 echo "$as_me:$LINENO: checking for $ac_func" >&5
32542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32543 if eval "test \"\${$as_ac_var+set}\" = set"; then
32544 echo $ECHO_N "(cached) $ECHO_C" >&6
32545 else
32546 cat >conftest.$ac_ext <<_ACEOF
32547 #line $LINENO "configure"
32548 /* confdefs.h. */
32549 _ACEOF
32550 cat confdefs.h >>conftest.$ac_ext
32551 cat >>conftest.$ac_ext <<_ACEOF
32552 /* end confdefs.h. */
32553 /* System header to define __stub macros and hopefully few prototypes,
32554 which can conflict with char $ac_func (); below.
32555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32556 <limits.h> exists even on freestanding compilers. */
32557 #ifdef __STDC__
32558 # include <limits.h>
32559 #else
32560 # include <assert.h>
32561 #endif
32562 /* Override any gcc2 internal prototype to avoid an error. */
32563 #ifdef __cplusplus
32564 extern "C"
32566 #endif
32567 /* We use char because int might match the return type of a gcc2
32568 builtin and then its argument prototype would still apply. */
32569 char $ac_func ();
32570 /* The GNU C library defines this for functions which it implements
32571 to always fail with ENOSYS. Some functions are actually named
32572 something starting with __ and the normal name is an alias. */
32573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32574 choke me
32575 #else
32576 char (*f) () = $ac_func;
32577 #endif
32578 #ifdef __cplusplus
32580 #endif
32583 main ()
32585 return f != $ac_func;
32587 return 0;
32589 _ACEOF
32590 rm -f conftest.$ac_objext conftest$ac_exeext
32591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32592 (eval $ac_link) 2>&5
32593 ac_status=$?
32594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595 (exit $ac_status); } &&
32596 { ac_try='test -s conftest$ac_exeext'
32597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32598 (eval $ac_try) 2>&5
32599 ac_status=$?
32600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32601 (exit $ac_status); }; }; then
32602 eval "$as_ac_var=yes"
32603 else
32604 echo "$as_me: failed program was:" >&5
32605 sed 's/^/| /' conftest.$ac_ext >&5
32607 eval "$as_ac_var=no"
32609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32613 if test `eval echo '${'$as_ac_var'}'` = yes; then
32614 cat >>confdefs.h <<_ACEOF
32615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32616 _ACEOF
32618 else
32619 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32621 done
32625 for ac_func in getpass
32627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32628 echo "$as_me:$LINENO: checking for $ac_func" >&5
32629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32630 if eval "test \"\${$as_ac_var+set}\" = set"; then
32631 echo $ECHO_N "(cached) $ECHO_C" >&6
32632 else
32633 cat >conftest.$ac_ext <<_ACEOF
32634 #line $LINENO "configure"
32635 /* confdefs.h. */
32636 _ACEOF
32637 cat confdefs.h >>conftest.$ac_ext
32638 cat >>conftest.$ac_ext <<_ACEOF
32639 /* end confdefs.h. */
32640 /* System header to define __stub macros and hopefully few prototypes,
32641 which can conflict with char $ac_func (); below.
32642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32643 <limits.h> exists even on freestanding compilers. */
32644 #ifdef __STDC__
32645 # include <limits.h>
32646 #else
32647 # include <assert.h>
32648 #endif
32649 /* Override any gcc2 internal prototype to avoid an error. */
32650 #ifdef __cplusplus
32651 extern "C"
32653 #endif
32654 /* We use char because int might match the return type of a gcc2
32655 builtin and then its argument prototype would still apply. */
32656 char $ac_func ();
32657 /* The GNU C library defines this for functions which it implements
32658 to always fail with ENOSYS. Some functions are actually named
32659 something starting with __ and the normal name is an alias. */
32660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32661 choke me
32662 #else
32663 char (*f) () = $ac_func;
32664 #endif
32665 #ifdef __cplusplus
32667 #endif
32670 main ()
32672 return f != $ac_func;
32674 return 0;
32676 _ACEOF
32677 rm -f conftest.$ac_objext conftest$ac_exeext
32678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32679 (eval $ac_link) 2>&5
32680 ac_status=$?
32681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32682 (exit $ac_status); } &&
32683 { ac_try='test -s conftest$ac_exeext'
32684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32685 (eval $ac_try) 2>&5
32686 ac_status=$?
32687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688 (exit $ac_status); }; }; then
32689 eval "$as_ac_var=yes"
32690 else
32691 echo "$as_me: failed program was:" >&5
32692 sed 's/^/| /' conftest.$ac_ext >&5
32694 eval "$as_ac_var=no"
32696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32700 if test `eval echo '${'$as_ac_var'}'` = yes; then
32701 cat >>confdefs.h <<_ACEOF
32702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32703 _ACEOF
32705 else
32706 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32708 done
32712 # raise is used by at least sort and ls.
32714 for ac_func in raise
32716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32717 echo "$as_me:$LINENO: checking for $ac_func" >&5
32718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32719 if eval "test \"\${$as_ac_var+set}\" = set"; then
32720 echo $ECHO_N "(cached) $ECHO_C" >&6
32721 else
32722 cat >conftest.$ac_ext <<_ACEOF
32723 #line $LINENO "configure"
32724 /* confdefs.h. */
32725 _ACEOF
32726 cat confdefs.h >>conftest.$ac_ext
32727 cat >>conftest.$ac_ext <<_ACEOF
32728 /* end confdefs.h. */
32729 /* System header to define __stub macros and hopefully few prototypes,
32730 which can conflict with char $ac_func (); below.
32731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32732 <limits.h> exists even on freestanding compilers. */
32733 #ifdef __STDC__
32734 # include <limits.h>
32735 #else
32736 # include <assert.h>
32737 #endif
32738 /* Override any gcc2 internal prototype to avoid an error. */
32739 #ifdef __cplusplus
32740 extern "C"
32742 #endif
32743 /* We use char because int might match the return type of a gcc2
32744 builtin and then its argument prototype would still apply. */
32745 char $ac_func ();
32746 /* The GNU C library defines this for functions which it implements
32747 to always fail with ENOSYS. Some functions are actually named
32748 something starting with __ and the normal name is an alias. */
32749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32750 choke me
32751 #else
32752 char (*f) () = $ac_func;
32753 #endif
32754 #ifdef __cplusplus
32756 #endif
32759 main ()
32761 return f != $ac_func;
32763 return 0;
32765 _ACEOF
32766 rm -f conftest.$ac_objext conftest$ac_exeext
32767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32768 (eval $ac_link) 2>&5
32769 ac_status=$?
32770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771 (exit $ac_status); } &&
32772 { ac_try='test -s conftest$ac_exeext'
32773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32774 (eval $ac_try) 2>&5
32775 ac_status=$?
32776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32777 (exit $ac_status); }; }; then
32778 eval "$as_ac_var=yes"
32779 else
32780 echo "$as_me: failed program was:" >&5
32781 sed 's/^/| /' conftest.$ac_ext >&5
32783 eval "$as_ac_var=no"
32785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32789 if test `eval echo '${'$as_ac_var'}'` = yes; then
32790 cat >>confdefs.h <<_ACEOF
32791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32792 _ACEOF
32794 else
32795 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32797 done
32802 for ac_func in strdup
32804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32805 echo "$as_me:$LINENO: checking for $ac_func" >&5
32806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32807 if eval "test \"\${$as_ac_var+set}\" = set"; then
32808 echo $ECHO_N "(cached) $ECHO_C" >&6
32809 else
32810 cat >conftest.$ac_ext <<_ACEOF
32811 #line $LINENO "configure"
32812 /* confdefs.h. */
32813 _ACEOF
32814 cat confdefs.h >>conftest.$ac_ext
32815 cat >>conftest.$ac_ext <<_ACEOF
32816 /* end confdefs.h. */
32817 /* System header to define __stub macros and hopefully few prototypes,
32818 which can conflict with char $ac_func (); below.
32819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32820 <limits.h> exists even on freestanding compilers. */
32821 #ifdef __STDC__
32822 # include <limits.h>
32823 #else
32824 # include <assert.h>
32825 #endif
32826 /* Override any gcc2 internal prototype to avoid an error. */
32827 #ifdef __cplusplus
32828 extern "C"
32830 #endif
32831 /* We use char because int might match the return type of a gcc2
32832 builtin and then its argument prototype would still apply. */
32833 char $ac_func ();
32834 /* The GNU C library defines this for functions which it implements
32835 to always fail with ENOSYS. Some functions are actually named
32836 something starting with __ and the normal name is an alias. */
32837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32838 choke me
32839 #else
32840 char (*f) () = $ac_func;
32841 #endif
32842 #ifdef __cplusplus
32844 #endif
32847 main ()
32849 return f != $ac_func;
32851 return 0;
32853 _ACEOF
32854 rm -f conftest.$ac_objext conftest$ac_exeext
32855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32856 (eval $ac_link) 2>&5
32857 ac_status=$?
32858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32859 (exit $ac_status); } &&
32860 { ac_try='test -s conftest$ac_exeext'
32861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32862 (eval $ac_try) 2>&5
32863 ac_status=$?
32864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865 (exit $ac_status); }; }; then
32866 eval "$as_ac_var=yes"
32867 else
32868 echo "$as_me: failed program was:" >&5
32869 sed 's/^/| /' conftest.$ac_ext >&5
32871 eval "$as_ac_var=no"
32873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32877 if test `eval echo '${'$as_ac_var'}'` = yes; then
32878 cat >>confdefs.h <<_ACEOF
32879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32880 _ACEOF
32882 else
32883 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32885 done
32894 for ac_func in memchr memcpy memmove memrchr memset
32896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32897 echo "$as_me:$LINENO: checking for $ac_func" >&5
32898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32899 if eval "test \"\${$as_ac_var+set}\" = set"; then
32900 echo $ECHO_N "(cached) $ECHO_C" >&6
32901 else
32902 cat >conftest.$ac_ext <<_ACEOF
32903 #line $LINENO "configure"
32904 /* confdefs.h. */
32905 _ACEOF
32906 cat confdefs.h >>conftest.$ac_ext
32907 cat >>conftest.$ac_ext <<_ACEOF
32908 /* end confdefs.h. */
32909 /* System header to define __stub macros and hopefully few prototypes,
32910 which can conflict with char $ac_func (); below.
32911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32912 <limits.h> exists even on freestanding compilers. */
32913 #ifdef __STDC__
32914 # include <limits.h>
32915 #else
32916 # include <assert.h>
32917 #endif
32918 /* Override any gcc2 internal prototype to avoid an error. */
32919 #ifdef __cplusplus
32920 extern "C"
32922 #endif
32923 /* We use char because int might match the return type of a gcc2
32924 builtin and then its argument prototype would still apply. */
32925 char $ac_func ();
32926 /* The GNU C library defines this for functions which it implements
32927 to always fail with ENOSYS. Some functions are actually named
32928 something starting with __ and the normal name is an alias. */
32929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32930 choke me
32931 #else
32932 char (*f) () = $ac_func;
32933 #endif
32934 #ifdef __cplusplus
32936 #endif
32939 main ()
32941 return f != $ac_func;
32943 return 0;
32945 _ACEOF
32946 rm -f conftest.$ac_objext conftest$ac_exeext
32947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32948 (eval $ac_link) 2>&5
32949 ac_status=$?
32950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951 (exit $ac_status); } &&
32952 { ac_try='test -s conftest$ac_exeext'
32953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32954 (eval $ac_try) 2>&5
32955 ac_status=$?
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); }; }; then
32958 eval "$as_ac_var=yes"
32959 else
32960 echo "$as_me: failed program was:" >&5
32961 sed 's/^/| /' conftest.$ac_ext >&5
32963 eval "$as_ac_var=no"
32965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32969 if test `eval echo '${'$as_ac_var'}'` = yes; then
32970 cat >>confdefs.h <<_ACEOF
32971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32972 _ACEOF
32974 else
32975 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32977 done
32981 for ac_func in getpagesize
32983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32984 echo "$as_me:$LINENO: checking for $ac_func" >&5
32985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32986 if eval "test \"\${$as_ac_var+set}\" = set"; then
32987 echo $ECHO_N "(cached) $ECHO_C" >&6
32988 else
32989 cat >conftest.$ac_ext <<_ACEOF
32990 #line $LINENO "configure"
32991 /* confdefs.h. */
32992 _ACEOF
32993 cat confdefs.h >>conftest.$ac_ext
32994 cat >>conftest.$ac_ext <<_ACEOF
32995 /* end confdefs.h. */
32996 /* System header to define __stub macros and hopefully few prototypes,
32997 which can conflict with char $ac_func (); below.
32998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32999 <limits.h> exists even on freestanding compilers. */
33000 #ifdef __STDC__
33001 # include <limits.h>
33002 #else
33003 # include <assert.h>
33004 #endif
33005 /* Override any gcc2 internal prototype to avoid an error. */
33006 #ifdef __cplusplus
33007 extern "C"
33009 #endif
33010 /* We use char because int might match the return type of a gcc2
33011 builtin and then its argument prototype would still apply. */
33012 char $ac_func ();
33013 /* The GNU C library defines this for functions which it implements
33014 to always fail with ENOSYS. Some functions are actually named
33015 something starting with __ and the normal name is an alias. */
33016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33017 choke me
33018 #else
33019 char (*f) () = $ac_func;
33020 #endif
33021 #ifdef __cplusplus
33023 #endif
33026 main ()
33028 return f != $ac_func;
33030 return 0;
33032 _ACEOF
33033 rm -f conftest.$ac_objext conftest$ac_exeext
33034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33035 (eval $ac_link) 2>&5
33036 ac_status=$?
33037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038 (exit $ac_status); } &&
33039 { ac_try='test -s conftest$ac_exeext'
33040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33041 (eval $ac_try) 2>&5
33042 ac_status=$?
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); }; }; then
33045 eval "$as_ac_var=yes"
33046 else
33047 echo "$as_me: failed program was:" >&5
33048 sed 's/^/| /' conftest.$ac_ext >&5
33050 eval "$as_ac_var=no"
33052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33056 if test `eval echo '${'$as_ac_var'}'` = yes; then
33057 cat >>confdefs.h <<_ACEOF
33058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33059 _ACEOF
33062 done
33067 # By default, argmatch should fail calling usage (1).
33069 cat >>confdefs.h <<\_ACEOF
33070 #define ARGMATCH_DIE usage (1)
33071 _ACEOF
33074 cat >>confdefs.h <<\_ACEOF
33075 #define ARGMATCH_DIE_DECL extern void usage ()
33076 _ACEOF
33079 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
33080 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
33081 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
33082 echo $ECHO_N "(cached) $ECHO_C" >&6
33083 else
33084 ac_cv_func_setvbuf_reversed=no
33085 cat >conftest.$ac_ext <<_ACEOF
33086 #line $LINENO "configure"
33087 /* confdefs.h. */
33088 _ACEOF
33089 cat confdefs.h >>conftest.$ac_ext
33090 cat >>conftest.$ac_ext <<_ACEOF
33091 /* end confdefs.h. */
33092 #include <stdio.h>
33093 # if PROTOTYPES
33094 int (setvbuf) (FILE *, int, char *, size_t);
33095 # endif
33097 main ()
33099 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
33101 return 0;
33103 _ACEOF
33104 rm -f conftest.$ac_objext conftest$ac_exeext
33105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33106 (eval $ac_link) 2>&5
33107 ac_status=$?
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); } &&
33110 { ac_try='test -s conftest$ac_exeext'
33111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33112 (eval $ac_try) 2>&5
33113 ac_status=$?
33114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33115 (exit $ac_status); }; }; then
33116 cat >conftest.$ac_ext <<_ACEOF
33117 #line $LINENO "configure"
33118 /* confdefs.h. */
33119 _ACEOF
33120 cat confdefs.h >>conftest.$ac_ext
33121 cat >>conftest.$ac_ext <<_ACEOF
33122 /* end confdefs.h. */
33123 #include <stdio.h>
33124 # if PROTOTYPES
33125 int (setvbuf) (FILE *, int, char *, size_t);
33126 # endif
33128 main ()
33130 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
33132 return 0;
33134 _ACEOF
33135 rm -f conftest.$ac_objext conftest$ac_exeext
33136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33137 (eval $ac_link) 2>&5
33138 ac_status=$?
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); } &&
33141 { ac_try='test -s conftest$ac_exeext'
33142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33143 (eval $ac_try) 2>&5
33144 ac_status=$?
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); }; }; then
33147 # It compiles and links either way, so it must not be declared
33148 # with a prototype and most likely this is a K&R C compiler.
33149 # Try running it.
33150 if test "$cross_compiling" = yes; then
33151 : # Assume setvbuf is not reversed when cross-compiling.
33152 else
33153 cat >conftest.$ac_ext <<_ACEOF
33154 #line $LINENO "configure"
33155 /* confdefs.h. */
33156 _ACEOF
33157 cat confdefs.h >>conftest.$ac_ext
33158 cat >>conftest.$ac_ext <<_ACEOF
33159 /* end confdefs.h. */
33160 #include <stdio.h>
33162 main ()
33164 /* This call has the arguments reversed.
33165 A reversed system may check and see that the address of buf
33166 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
33167 char buf;
33168 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
33169 exit (1);
33170 putchar ('\r');
33171 exit (0); /* Non-reversed systems SEGV here. */
33173 return 0;
33175 _ACEOF
33176 rm -f conftest$ac_exeext
33177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33178 (eval $ac_link) 2>&5
33179 ac_status=$?
33180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33183 (eval $ac_try) 2>&5
33184 ac_status=$?
33185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186 (exit $ac_status); }; }; then
33187 ac_cv_func_setvbuf_reversed=yes
33188 else
33189 echo "$as_me: program exited with status $ac_status" >&5
33190 echo "$as_me: failed program was:" >&5
33191 sed 's/^/| /' conftest.$ac_ext >&5
33193 ( exit $ac_status )
33194 rm -f core core.* *.core
33196 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33198 ac_cv_func_setvbuf_reversed=yes
33199 else
33200 echo "$as_me: failed program was:" >&5
33201 sed 's/^/| /' conftest.$ac_ext >&5
33204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33205 else
33206 echo "$as_me: failed program was:" >&5
33207 sed 's/^/| /' conftest.$ac_ext >&5
33210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33212 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
33213 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
33214 if test $ac_cv_func_setvbuf_reversed = yes; then
33216 cat >>confdefs.h <<\_ACEOF
33217 #define SETVBUF_REVERSED 1
33218 _ACEOF
33223 # used by sleep and shred
33224 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
33225 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
33227 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
33228 # programs in the package would end up linked with that potentially-shared
33229 # library, inducing unnecessary run-time overhead.
33230 fetish_saved_libs=$LIBS
33232 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
33233 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
33234 if test "${ac_cv_search_clock_gettime+set}" = set; then
33235 echo $ECHO_N "(cached) $ECHO_C" >&6
33236 else
33238 ac_func_search_save_LIBS=$LIBS
33239 ac_cv_search_clock_gettime=no
33240 cat >conftest.$ac_ext <<_ACEOF
33241 #line $LINENO "configure"
33242 /* confdefs.h. */
33243 _ACEOF
33244 cat confdefs.h >>conftest.$ac_ext
33245 cat >>conftest.$ac_ext <<_ACEOF
33246 /* end confdefs.h. */
33248 /* Override any gcc2 internal prototype to avoid an error. */
33249 #ifdef __cplusplus
33250 extern "C"
33251 #endif
33252 /* We use char because int might match the return type of a gcc2
33253 builtin and then its argument prototype would still apply. */
33254 char clock_gettime ();
33256 main ()
33258 clock_gettime ();
33260 return 0;
33262 _ACEOF
33263 rm -f conftest.$ac_objext conftest$ac_exeext
33264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33265 (eval $ac_link) 2>&5
33266 ac_status=$?
33267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268 (exit $ac_status); } &&
33269 { ac_try='test -s conftest$ac_exeext'
33270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33271 (eval $ac_try) 2>&5
33272 ac_status=$?
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); }; }; then
33275 ac_cv_search_clock_gettime='none required'
33276 else
33277 echo "$as_me: failed program was:" >&5
33278 sed 's/^/| /' conftest.$ac_ext >&5
33281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33282 if test "$ac_cv_search_clock_gettime" = no; then
33283 for ac_lib in rt posix4; do
33284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33285 cat >conftest.$ac_ext <<_ACEOF
33286 #line $LINENO "configure"
33287 /* confdefs.h. */
33288 _ACEOF
33289 cat confdefs.h >>conftest.$ac_ext
33290 cat >>conftest.$ac_ext <<_ACEOF
33291 /* end confdefs.h. */
33293 /* Override any gcc2 internal prototype to avoid an error. */
33294 #ifdef __cplusplus
33295 extern "C"
33296 #endif
33297 /* We use char because int might match the return type of a gcc2
33298 builtin and then its argument prototype would still apply. */
33299 char clock_gettime ();
33301 main ()
33303 clock_gettime ();
33305 return 0;
33307 _ACEOF
33308 rm -f conftest.$ac_objext conftest$ac_exeext
33309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33310 (eval $ac_link) 2>&5
33311 ac_status=$?
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); } &&
33314 { ac_try='test -s conftest$ac_exeext'
33315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33316 (eval $ac_try) 2>&5
33317 ac_status=$?
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); }; }; then
33320 ac_cv_search_clock_gettime="-l$ac_lib"; break
33321 else
33322 echo "$as_me: failed program was:" >&5
33323 sed 's/^/| /' conftest.$ac_ext >&5
33326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33327 done
33329 LIBS=$ac_func_search_save_LIBS
33332 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
33333 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
33335 if test "$ac_cv_search_clock_gettime" = no; then :
33337 else
33338 if test "$ac_cv_search_clock_gettime" = 'none required'; then :
33340 else
33341 LIBS="$ac_cv_search_clock_gettime $LIBS"
33342 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
33349 for ac_func in clock_gettime clock_settime
33351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33352 echo "$as_me:$LINENO: checking for $ac_func" >&5
33353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33354 if eval "test \"\${$as_ac_var+set}\" = set"; then
33355 echo $ECHO_N "(cached) $ECHO_C" >&6
33356 else
33357 cat >conftest.$ac_ext <<_ACEOF
33358 #line $LINENO "configure"
33359 /* confdefs.h. */
33360 _ACEOF
33361 cat confdefs.h >>conftest.$ac_ext
33362 cat >>conftest.$ac_ext <<_ACEOF
33363 /* end confdefs.h. */
33364 /* System header to define __stub macros and hopefully few prototypes,
33365 which can conflict with char $ac_func (); below.
33366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33367 <limits.h> exists even on freestanding compilers. */
33368 #ifdef __STDC__
33369 # include <limits.h>
33370 #else
33371 # include <assert.h>
33372 #endif
33373 /* Override any gcc2 internal prototype to avoid an error. */
33374 #ifdef __cplusplus
33375 extern "C"
33377 #endif
33378 /* We use char because int might match the return type of a gcc2
33379 builtin and then its argument prototype would still apply. */
33380 char $ac_func ();
33381 /* The GNU C library defines this for functions which it implements
33382 to always fail with ENOSYS. Some functions are actually named
33383 something starting with __ and the normal name is an alias. */
33384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33385 choke me
33386 #else
33387 char (*f) () = $ac_func;
33388 #endif
33389 #ifdef __cplusplus
33391 #endif
33394 main ()
33396 return f != $ac_func;
33398 return 0;
33400 _ACEOF
33401 rm -f conftest.$ac_objext conftest$ac_exeext
33402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33403 (eval $ac_link) 2>&5
33404 ac_status=$?
33405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33406 (exit $ac_status); } &&
33407 { ac_try='test -s conftest$ac_exeext'
33408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33409 (eval $ac_try) 2>&5
33410 ac_status=$?
33411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412 (exit $ac_status); }; }; then
33413 eval "$as_ac_var=yes"
33414 else
33415 echo "$as_me: failed program was:" >&5
33416 sed 's/^/| /' conftest.$ac_ext >&5
33418 eval "$as_ac_var=no"
33420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33424 if test `eval echo '${'$as_ac_var'}'` = yes; then
33425 cat >>confdefs.h <<_ACEOF
33426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33427 _ACEOF
33430 done
33432 LIBS=$fetish_saved_libs
33434 for ac_func in gettimeofday
33436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33437 echo "$as_me:$LINENO: checking for $ac_func" >&5
33438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33439 if eval "test \"\${$as_ac_var+set}\" = set"; then
33440 echo $ECHO_N "(cached) $ECHO_C" >&6
33441 else
33442 cat >conftest.$ac_ext <<_ACEOF
33443 #line $LINENO "configure"
33444 /* confdefs.h. */
33445 _ACEOF
33446 cat confdefs.h >>conftest.$ac_ext
33447 cat >>conftest.$ac_ext <<_ACEOF
33448 /* end confdefs.h. */
33449 /* System header to define __stub macros and hopefully few prototypes,
33450 which can conflict with char $ac_func (); below.
33451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33452 <limits.h> exists even on freestanding compilers. */
33453 #ifdef __STDC__
33454 # include <limits.h>
33455 #else
33456 # include <assert.h>
33457 #endif
33458 /* Override any gcc2 internal prototype to avoid an error. */
33459 #ifdef __cplusplus
33460 extern "C"
33462 #endif
33463 /* We use char because int might match the return type of a gcc2
33464 builtin and then its argument prototype would still apply. */
33465 char $ac_func ();
33466 /* The GNU C library defines this for functions which it implements
33467 to always fail with ENOSYS. Some functions are actually named
33468 something starting with __ and the normal name is an alias. */
33469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33470 choke me
33471 #else
33472 char (*f) () = $ac_func;
33473 #endif
33474 #ifdef __cplusplus
33476 #endif
33479 main ()
33481 return f != $ac_func;
33483 return 0;
33485 _ACEOF
33486 rm -f conftest.$ac_objext conftest$ac_exeext
33487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33488 (eval $ac_link) 2>&5
33489 ac_status=$?
33490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491 (exit $ac_status); } &&
33492 { ac_try='test -s conftest$ac_exeext'
33493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33494 (eval $ac_try) 2>&5
33495 ac_status=$?
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497 (exit $ac_status); }; }; then
33498 eval "$as_ac_var=yes"
33499 else
33500 echo "$as_me: failed program was:" >&5
33501 sed 's/^/| /' conftest.$ac_ext >&5
33503 eval "$as_ac_var=no"
33505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33509 if test `eval echo '${'$as_ac_var'}'` = yes; then
33510 cat >>confdefs.h <<_ACEOF
33511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33512 _ACEOF
33515 done
33521 for ac_header in string.h stdlib.h
33523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33525 echo "$as_me:$LINENO: checking for $ac_header" >&5
33526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33528 echo $ECHO_N "(cached) $ECHO_C" >&6
33530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33532 else
33533 # Is the header compilable?
33534 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33536 cat >conftest.$ac_ext <<_ACEOF
33537 #line $LINENO "configure"
33538 /* confdefs.h. */
33539 _ACEOF
33540 cat confdefs.h >>conftest.$ac_ext
33541 cat >>conftest.$ac_ext <<_ACEOF
33542 /* end confdefs.h. */
33543 $ac_includes_default
33544 #include <$ac_header>
33545 _ACEOF
33546 rm -f conftest.$ac_objext
33547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33548 (eval $ac_compile) 2>&5
33549 ac_status=$?
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); } &&
33552 { ac_try='test -s conftest.$ac_objext'
33553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33554 (eval $ac_try) 2>&5
33555 ac_status=$?
33556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33557 (exit $ac_status); }; }; then
33558 ac_header_compiler=yes
33559 else
33560 echo "$as_me: failed program was:" >&5
33561 sed 's/^/| /' conftest.$ac_ext >&5
33563 ac_header_compiler=no
33565 rm -f conftest.$ac_objext conftest.$ac_ext
33566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33567 echo "${ECHO_T}$ac_header_compiler" >&6
33569 # Is the header present?
33570 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33572 cat >conftest.$ac_ext <<_ACEOF
33573 #line $LINENO "configure"
33574 /* confdefs.h. */
33575 _ACEOF
33576 cat confdefs.h >>conftest.$ac_ext
33577 cat >>conftest.$ac_ext <<_ACEOF
33578 /* end confdefs.h. */
33579 #include <$ac_header>
33580 _ACEOF
33581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33583 ac_status=$?
33584 grep -v '^ *+' conftest.er1 >conftest.err
33585 rm -f conftest.er1
33586 cat conftest.err >&5
33587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588 (exit $ac_status); } >/dev/null; then
33589 if test -s conftest.err; then
33590 ac_cpp_err=$ac_c_preproc_warn_flag
33591 else
33592 ac_cpp_err=
33594 else
33595 ac_cpp_err=yes
33597 if test -z "$ac_cpp_err"; then
33598 ac_header_preproc=yes
33599 else
33600 echo "$as_me: failed program was:" >&5
33601 sed 's/^/| /' conftest.$ac_ext >&5
33603 ac_header_preproc=no
33605 rm -f conftest.err conftest.$ac_ext
33606 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33607 echo "${ECHO_T}$ac_header_preproc" >&6
33609 # So? What about this header?
33610 case $ac_header_compiler:$ac_header_preproc in
33611 yes:no )
33612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33617 cat <<\_ASBOX
33618 ## ------------------------------------ ##
33619 ## Report this to bug-autoconf@gnu.org. ##
33620 ## ------------------------------------ ##
33621 _ASBOX
33623 sed "s/^/$as_me: WARNING: /" >&2
33625 no:yes )
33626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33633 cat <<\_ASBOX
33634 ## ------------------------------------ ##
33635 ## Report this to bug-autoconf@gnu.org. ##
33636 ## ------------------------------------ ##
33637 _ASBOX
33639 sed "s/^/$as_me: WARNING: /" >&2
33641 esac
33642 echo "$as_me:$LINENO: checking for $ac_header" >&5
33643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33645 echo $ECHO_N "(cached) $ECHO_C" >&6
33646 else
33647 eval "$as_ac_Header=$ac_header_preproc"
33649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33654 cat >>confdefs.h <<_ACEOF
33655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33656 _ACEOF
33660 done
33662 echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
33663 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
33664 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
33665 echo $ECHO_N "(cached) $ECHO_C" >&6
33666 else
33667 if test "$cross_compiling" = yes; then
33668 jm_cv_func_gettimeofday_clobber=yes
33669 else
33670 cat >conftest.$ac_ext <<_ACEOF
33671 #line $LINENO "configure"
33672 /* confdefs.h. */
33673 _ACEOF
33674 cat confdefs.h >>conftest.$ac_ext
33675 cat >>conftest.$ac_ext <<_ACEOF
33676 /* end confdefs.h. */
33678 #include <stdio.h>
33679 #if HAVE_STRING_H
33680 # include <string.h>
33681 #endif
33683 #if TIME_WITH_SYS_TIME
33684 # include <sys/time.h>
33685 # include <time.h>
33686 #else
33687 # if HAVE_SYS_TIME_H
33688 # include <sys/time.h>
33689 # else
33690 # include <time.h>
33691 # endif
33692 #endif
33694 #if HAVE_STDLIB_H
33695 # include <stdlib.h>
33696 #endif
33699 main ()
33701 time_t t = 0;
33702 struct tm *lt;
33703 struct tm saved_lt;
33704 struct timeval tv;
33705 lt = localtime (&t);
33706 saved_lt = *lt;
33707 gettimeofday (&tv, NULL);
33708 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
33709 exit (1);
33711 exit (0);
33714 _ACEOF
33715 rm -f conftest$ac_exeext
33716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33717 (eval $ac_link) 2>&5
33718 ac_status=$?
33719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33722 (eval $ac_try) 2>&5
33723 ac_status=$?
33724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725 (exit $ac_status); }; }; then
33726 jm_cv_func_gettimeofday_clobber=no
33727 else
33728 echo "$as_me: program exited with status $ac_status" >&5
33729 echo "$as_me: failed program was:" >&5
33730 sed 's/^/| /' conftest.$ac_ext >&5
33732 ( exit $ac_status )
33733 jm_cv_func_gettimeofday_clobber=yes
33735 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33739 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
33740 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
33741 if test $jm_cv_func_gettimeofday_clobber = yes; then
33742 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
33744 cat >>confdefs.h <<\_ACEOF
33745 #define localtime rpl_localtime
33746 _ACEOF
33749 cat >>confdefs.h <<\_ACEOF
33750 #define gettimeofday rpl_gettimeofday
33751 _ACEOF
33754 cat >>confdefs.h <<\_ACEOF
33755 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
33756 _ACEOF
33792 for ac_func in \
33793 bcopy \
33794 endgrent \
33795 endpwent \
33796 fchdir \
33797 fdatasync \
33798 ftime \
33799 ftruncate \
33800 getcwd \
33801 gethrtime \
33802 getmntinfo \
33803 hasmntopt \
33804 isascii \
33805 iswspace \
33806 lchown \
33807 listmntent \
33808 localeconv \
33809 memcpy \
33810 mempcpy \
33811 mkfifo \
33812 realpath \
33813 sethostname \
33814 strchr \
33815 strerror \
33816 strrchr \
33817 sysctl \
33818 sysinfo \
33819 wcrtomb \
33820 tzset \
33823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33824 echo "$as_me:$LINENO: checking for $ac_func" >&5
33825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33826 if eval "test \"\${$as_ac_var+set}\" = set"; then
33827 echo $ECHO_N "(cached) $ECHO_C" >&6
33828 else
33829 cat >conftest.$ac_ext <<_ACEOF
33830 #line $LINENO "configure"
33831 /* confdefs.h. */
33832 _ACEOF
33833 cat confdefs.h >>conftest.$ac_ext
33834 cat >>conftest.$ac_ext <<_ACEOF
33835 /* end confdefs.h. */
33836 /* System header to define __stub macros and hopefully few prototypes,
33837 which can conflict with char $ac_func (); below.
33838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33839 <limits.h> exists even on freestanding compilers. */
33840 #ifdef __STDC__
33841 # include <limits.h>
33842 #else
33843 # include <assert.h>
33844 #endif
33845 /* Override any gcc2 internal prototype to avoid an error. */
33846 #ifdef __cplusplus
33847 extern "C"
33849 #endif
33850 /* We use char because int might match the return type of a gcc2
33851 builtin and then its argument prototype would still apply. */
33852 char $ac_func ();
33853 /* The GNU C library defines this for functions which it implements
33854 to always fail with ENOSYS. Some functions are actually named
33855 something starting with __ and the normal name is an alias. */
33856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33857 choke me
33858 #else
33859 char (*f) () = $ac_func;
33860 #endif
33861 #ifdef __cplusplus
33863 #endif
33866 main ()
33868 return f != $ac_func;
33870 return 0;
33872 _ACEOF
33873 rm -f conftest.$ac_objext conftest$ac_exeext
33874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33875 (eval $ac_link) 2>&5
33876 ac_status=$?
33877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878 (exit $ac_status); } &&
33879 { ac_try='test -s conftest$ac_exeext'
33880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33881 (eval $ac_try) 2>&5
33882 ac_status=$?
33883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884 (exit $ac_status); }; }; then
33885 eval "$as_ac_var=yes"
33886 else
33887 echo "$as_me: failed program was:" >&5
33888 sed 's/^/| /' conftest.$ac_ext >&5
33890 eval "$as_ac_var=no"
33892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33896 if test `eval echo '${'$as_ac_var'}'` = yes; then
33897 cat >>confdefs.h <<_ACEOF
33898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33899 _ACEOF
33902 done
33905 am_getline_needs_run_time_check=no
33906 echo "$as_me:$LINENO: checking for getline" >&5
33907 echo $ECHO_N "checking for getline... $ECHO_C" >&6
33908 if test "${ac_cv_func_getline+set}" = set; then
33909 echo $ECHO_N "(cached) $ECHO_C" >&6
33910 else
33911 cat >conftest.$ac_ext <<_ACEOF
33912 #line $LINENO "configure"
33913 /* confdefs.h. */
33914 _ACEOF
33915 cat confdefs.h >>conftest.$ac_ext
33916 cat >>conftest.$ac_ext <<_ACEOF
33917 /* end confdefs.h. */
33918 /* System header to define __stub macros and hopefully few prototypes,
33919 which can conflict with char getline (); below.
33920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33921 <limits.h> exists even on freestanding compilers. */
33922 #ifdef __STDC__
33923 # include <limits.h>
33924 #else
33925 # include <assert.h>
33926 #endif
33927 /* Override any gcc2 internal prototype to avoid an error. */
33928 #ifdef __cplusplus
33929 extern "C"
33931 #endif
33932 /* We use char because int might match the return type of a gcc2
33933 builtin and then its argument prototype would still apply. */
33934 char getline ();
33935 /* The GNU C library defines this for functions which it implements
33936 to always fail with ENOSYS. Some functions are actually named
33937 something starting with __ and the normal name is an alias. */
33938 #if defined (__stub_getline) || defined (__stub___getline)
33939 choke me
33940 #else
33941 char (*f) () = getline;
33942 #endif
33943 #ifdef __cplusplus
33945 #endif
33948 main ()
33950 return f != getline;
33952 return 0;
33954 _ACEOF
33955 rm -f conftest.$ac_objext conftest$ac_exeext
33956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33957 (eval $ac_link) 2>&5
33958 ac_status=$?
33959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33960 (exit $ac_status); } &&
33961 { ac_try='test -s conftest$ac_exeext'
33962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33963 (eval $ac_try) 2>&5
33964 ac_status=$?
33965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33966 (exit $ac_status); }; }; then
33967 ac_cv_func_getline=yes
33968 else
33969 echo "$as_me: failed program was:" >&5
33970 sed 's/^/| /' conftest.$ac_ext >&5
33972 ac_cv_func_getline=no
33974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33976 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
33977 echo "${ECHO_T}$ac_cv_func_getline" >&6
33978 if test $ac_cv_func_getline = yes; then
33979 am_getline_needs_run_time_check=yes
33980 else
33981 am_cv_func_working_getline=no
33984 if test $am_getline_needs_run_time_check = yes; then
33985 echo "$as_me:$LINENO: checking for working getline function" >&5
33986 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
33987 if test "${am_cv_func_working_getline+set}" = set; then
33988 echo $ECHO_N "(cached) $ECHO_C" >&6
33989 else
33990 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
33991 if test "$cross_compiling" = yes; then
33992 am_cv_func_working_getline=no
33993 else
33994 cat >conftest.$ac_ext <<_ACEOF
33995 #line $LINENO "configure"
33996 /* confdefs.h. */
33997 _ACEOF
33998 cat confdefs.h >>conftest.$ac_ext
33999 cat >>conftest.$ac_ext <<_ACEOF
34000 /* end confdefs.h. */
34002 # include <stdio.h>
34003 # include <sys/types.h>
34004 # include <string.h>
34005 int main ()
34006 { /* Based on a test program from Karl Heuer. */
34007 char *line = NULL;
34008 size_t siz = 0;
34009 int len;
34010 FILE *in = fopen ("./conftest.data", "r");
34011 if (!in)
34012 return 1;
34013 len = getline (&line, &siz, in);
34014 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
34017 _ACEOF
34018 rm -f conftest$ac_exeext
34019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34020 (eval $ac_link) 2>&5
34021 ac_status=$?
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34025 (eval $ac_try) 2>&5
34026 ac_status=$?
34027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34028 (exit $ac_status); }; }; then
34029 am_cv_func_working_getline=yes
34030 else
34031 echo "$as_me: program exited with status $ac_status" >&5
34032 echo "$as_me: failed program was:" >&5
34033 sed 's/^/| /' conftest.$ac_ext >&5
34035 ( exit $ac_status )
34036 am_cv_func_working_getline=no
34038 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34041 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
34042 echo "${ECHO_T}$am_cv_func_working_getline" >&6
34045 if test $am_cv_func_working_getline = no; then
34046 LIBOBJS="$LIBOBJS getline.$ac_objext"
34049 if test $am_cv_func_working_getline != yes; then
34051 for ac_func in getdelim
34053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34054 echo "$as_me:$LINENO: checking for $ac_func" >&5
34055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34056 if eval "test \"\${$as_ac_var+set}\" = set"; then
34057 echo $ECHO_N "(cached) $ECHO_C" >&6
34058 else
34059 cat >conftest.$ac_ext <<_ACEOF
34060 #line $LINENO "configure"
34061 /* confdefs.h. */
34062 _ACEOF
34063 cat confdefs.h >>conftest.$ac_ext
34064 cat >>conftest.$ac_ext <<_ACEOF
34065 /* end confdefs.h. */
34066 /* System header to define __stub macros and hopefully few prototypes,
34067 which can conflict with char $ac_func (); below.
34068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34069 <limits.h> exists even on freestanding compilers. */
34070 #ifdef __STDC__
34071 # include <limits.h>
34072 #else
34073 # include <assert.h>
34074 #endif
34075 /* Override any gcc2 internal prototype to avoid an error. */
34076 #ifdef __cplusplus
34077 extern "C"
34079 #endif
34080 /* We use char because int might match the return type of a gcc2
34081 builtin and then its argument prototype would still apply. */
34082 char $ac_func ();
34083 /* The GNU C library defines this for functions which it implements
34084 to always fail with ENOSYS. Some functions are actually named
34085 something starting with __ and the normal name is an alias. */
34086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34087 choke me
34088 #else
34089 char (*f) () = $ac_func;
34090 #endif
34091 #ifdef __cplusplus
34093 #endif
34096 main ()
34098 return f != $ac_func;
34100 return 0;
34102 _ACEOF
34103 rm -f conftest.$ac_objext conftest$ac_exeext
34104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34105 (eval $ac_link) 2>&5
34106 ac_status=$?
34107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108 (exit $ac_status); } &&
34109 { ac_try='test -s conftest$ac_exeext'
34110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34111 (eval $ac_try) 2>&5
34112 ac_status=$?
34113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114 (exit $ac_status); }; }; then
34115 eval "$as_ac_var=yes"
34116 else
34117 echo "$as_me: failed program was:" >&5
34118 sed 's/^/| /' conftest.$ac_ext >&5
34120 eval "$as_ac_var=no"
34122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34126 if test `eval echo '${'$as_ac_var'}'` = yes; then
34127 cat >>confdefs.h <<_ACEOF
34128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34129 _ACEOF
34132 done
34135 echo "$as_me:$LINENO: checking for obstacks" >&5
34136 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
34137 if test "${ac_cv_func_obstack+set}" = set; then
34138 echo $ECHO_N "(cached) $ECHO_C" >&6
34139 else
34140 cat >conftest.$ac_ext <<_ACEOF
34141 #line $LINENO "configure"
34142 /* confdefs.h. */
34143 _ACEOF
34144 cat confdefs.h >>conftest.$ac_ext
34145 cat >>conftest.$ac_ext <<_ACEOF
34146 /* end confdefs.h. */
34147 #include "obstack.h"
34149 main ()
34151 struct obstack *mem; obstack_free(mem,(char *) 0)
34153 return 0;
34155 _ACEOF
34156 rm -f conftest.$ac_objext conftest$ac_exeext
34157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34158 (eval $ac_link) 2>&5
34159 ac_status=$?
34160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34161 (exit $ac_status); } &&
34162 { ac_try='test -s conftest$ac_exeext'
34163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34164 (eval $ac_try) 2>&5
34165 ac_status=$?
34166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34167 (exit $ac_status); }; }; then
34168 ac_cv_func_obstack=yes
34169 else
34170 echo "$as_me: failed program was:" >&5
34171 sed 's/^/| /' conftest.$ac_ext >&5
34173 ac_cv_func_obstack=no
34175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34177 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
34178 echo "${ECHO_T}$ac_cv_func_obstack" >&6
34179 if test $ac_cv_func_obstack = yes; then
34181 cat >>confdefs.h <<\_ACEOF
34182 #define HAVE_OBSTACK 1
34183 _ACEOF
34185 else
34186 LIBOBJS="$LIBOBJS obstack.$ac_objext"
34190 echo "$as_me:$LINENO: checking for working strtod" >&5
34191 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
34192 if test "${ac_cv_func_strtod+set}" = set; then
34193 echo $ECHO_N "(cached) $ECHO_C" >&6
34194 else
34195 if test "$cross_compiling" = yes; then
34196 ac_cv_func_strtod=no
34197 else
34198 cat >conftest.$ac_ext <<_ACEOF
34199 #line $LINENO "configure"
34200 /* confdefs.h. */
34201 _ACEOF
34202 cat confdefs.h >>conftest.$ac_ext
34203 cat >>conftest.$ac_ext <<_ACEOF
34204 /* end confdefs.h. */
34206 double strtod ();
34208 main()
34211 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
34212 char *string = " +69";
34213 char *term;
34214 double value;
34215 value = strtod (string, &term);
34216 if (value != 69 || term != (string + 4))
34217 exit (1);
34221 /* Under Solaris 2.4, strtod returns the wrong value for the
34222 terminating character under some conditions. */
34223 char *string = "NaN";
34224 char *term;
34225 strtod (string, &term);
34226 if (term != string && *(term - 1) == 0)
34227 exit (1);
34229 exit (0);
34232 _ACEOF
34233 rm -f conftest$ac_exeext
34234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34235 (eval $ac_link) 2>&5
34236 ac_status=$?
34237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34240 (eval $ac_try) 2>&5
34241 ac_status=$?
34242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34243 (exit $ac_status); }; }; then
34244 ac_cv_func_strtod=yes
34245 else
34246 echo "$as_me: program exited with status $ac_status" >&5
34247 echo "$as_me: failed program was:" >&5
34248 sed 's/^/| /' conftest.$ac_ext >&5
34250 ( exit $ac_status )
34251 ac_cv_func_strtod=no
34253 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34256 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
34257 echo "${ECHO_T}$ac_cv_func_strtod" >&6
34258 if test $ac_cv_func_strtod = no; then
34259 LIBOBJS="$LIBOBJS strtod.$ac_objext"
34260 echo "$as_me:$LINENO: checking for pow" >&5
34261 echo $ECHO_N "checking for pow... $ECHO_C" >&6
34262 if test "${ac_cv_func_pow+set}" = set; then
34263 echo $ECHO_N "(cached) $ECHO_C" >&6
34264 else
34265 cat >conftest.$ac_ext <<_ACEOF
34266 #line $LINENO "configure"
34267 /* confdefs.h. */
34268 _ACEOF
34269 cat confdefs.h >>conftest.$ac_ext
34270 cat >>conftest.$ac_ext <<_ACEOF
34271 /* end confdefs.h. */
34272 /* System header to define __stub macros and hopefully few prototypes,
34273 which can conflict with char pow (); below.
34274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34275 <limits.h> exists even on freestanding compilers. */
34276 #ifdef __STDC__
34277 # include <limits.h>
34278 #else
34279 # include <assert.h>
34280 #endif
34281 /* Override any gcc2 internal prototype to avoid an error. */
34282 #ifdef __cplusplus
34283 extern "C"
34285 #endif
34286 /* We use char because int might match the return type of a gcc2
34287 builtin and then its argument prototype would still apply. */
34288 char pow ();
34289 /* The GNU C library defines this for functions which it implements
34290 to always fail with ENOSYS. Some functions are actually named
34291 something starting with __ and the normal name is an alias. */
34292 #if defined (__stub_pow) || defined (__stub___pow)
34293 choke me
34294 #else
34295 char (*f) () = pow;
34296 #endif
34297 #ifdef __cplusplus
34299 #endif
34302 main ()
34304 return f != pow;
34306 return 0;
34308 _ACEOF
34309 rm -f conftest.$ac_objext conftest$ac_exeext
34310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34311 (eval $ac_link) 2>&5
34312 ac_status=$?
34313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314 (exit $ac_status); } &&
34315 { ac_try='test -s conftest$ac_exeext'
34316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34317 (eval $ac_try) 2>&5
34318 ac_status=$?
34319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320 (exit $ac_status); }; }; then
34321 ac_cv_func_pow=yes
34322 else
34323 echo "$as_me: failed program was:" >&5
34324 sed 's/^/| /' conftest.$ac_ext >&5
34326 ac_cv_func_pow=no
34328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34330 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
34331 echo "${ECHO_T}$ac_cv_func_pow" >&6
34333 if test $ac_cv_func_pow = no; then
34334 echo "$as_me:$LINENO: checking for pow in -lm" >&5
34335 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
34336 if test "${ac_cv_lib_m_pow+set}" = set; then
34337 echo $ECHO_N "(cached) $ECHO_C" >&6
34338 else
34339 ac_check_lib_save_LIBS=$LIBS
34340 LIBS="-lm $LIBS"
34341 cat >conftest.$ac_ext <<_ACEOF
34342 #line $LINENO "configure"
34343 /* confdefs.h. */
34344 _ACEOF
34345 cat confdefs.h >>conftest.$ac_ext
34346 cat >>conftest.$ac_ext <<_ACEOF
34347 /* end confdefs.h. */
34349 /* Override any gcc2 internal prototype to avoid an error. */
34350 #ifdef __cplusplus
34351 extern "C"
34352 #endif
34353 /* We use char because int might match the return type of a gcc2
34354 builtin and then its argument prototype would still apply. */
34355 char pow ();
34357 main ()
34359 pow ();
34361 return 0;
34363 _ACEOF
34364 rm -f conftest.$ac_objext conftest$ac_exeext
34365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34366 (eval $ac_link) 2>&5
34367 ac_status=$?
34368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34369 (exit $ac_status); } &&
34370 { ac_try='test -s conftest$ac_exeext'
34371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34372 (eval $ac_try) 2>&5
34373 ac_status=$?
34374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34375 (exit $ac_status); }; }; then
34376 ac_cv_lib_m_pow=yes
34377 else
34378 echo "$as_me: failed program was:" >&5
34379 sed 's/^/| /' conftest.$ac_ext >&5
34381 ac_cv_lib_m_pow=no
34383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34384 LIBS=$ac_check_lib_save_LIBS
34386 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
34387 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
34388 if test $ac_cv_lib_m_pow = yes; then
34389 POW_LIB=-lm
34390 else
34391 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
34392 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
34401 # See if linking `seq' requires -lm.
34402 # It does on nearly every system. The single exception (so far) is
34403 # BeOS which has all the math functions in the normal runtime library
34404 # and doesn't have a separate math library.
34407 ac_seq_body='
34408 static double x, y;
34409 x = floor (x);
34410 x = rint (x);
34411 x = modf (x, &y);'
34412 cat >conftest.$ac_ext <<_ACEOF
34413 #line $LINENO "configure"
34414 /* confdefs.h. */
34415 _ACEOF
34416 cat confdefs.h >>conftest.$ac_ext
34417 cat >>conftest.$ac_ext <<_ACEOF
34418 /* end confdefs.h. */
34419 #include <math.h>
34421 main ()
34423 $ac_seq_body
34425 return 0;
34427 _ACEOF
34428 rm -f conftest.$ac_objext conftest$ac_exeext
34429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34430 (eval $ac_link) 2>&5
34431 ac_status=$?
34432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34433 (exit $ac_status); } &&
34434 { ac_try='test -s conftest$ac_exeext'
34435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34436 (eval $ac_try) 2>&5
34437 ac_status=$?
34438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439 (exit $ac_status); }; }; then
34441 else
34442 echo "$as_me: failed program was:" >&5
34443 sed 's/^/| /' conftest.$ac_ext >&5
34445 ac_seq_save_LIBS="$LIBS"
34446 LIBS="$LIBS -lm"
34447 cat >conftest.$ac_ext <<_ACEOF
34448 #line $LINENO "configure"
34449 /* confdefs.h. */
34450 _ACEOF
34451 cat confdefs.h >>conftest.$ac_ext
34452 cat >>conftest.$ac_ext <<_ACEOF
34453 /* end confdefs.h. */
34454 #include <math.h>
34456 main ()
34458 $ac_seq_body
34460 return 0;
34462 _ACEOF
34463 rm -f conftest.$ac_objext conftest$ac_exeext
34464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34465 (eval $ac_link) 2>&5
34466 ac_status=$?
34467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468 (exit $ac_status); } &&
34469 { ac_try='test -s conftest$ac_exeext'
34470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34471 (eval $ac_try) 2>&5
34472 ac_status=$?
34473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474 (exit $ac_status); }; }; then
34475 SEQ_LIBM=-lm
34476 else
34477 echo "$as_me: failed program was:" >&5
34478 sed 's/^/| /' conftest.$ac_ext >&5
34481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34482 LIBS="$ac_seq_save_LIBS"
34485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34488 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
34489 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
34490 if test "${am_cv_langinfo_codeset+set}" = set; then
34491 echo $ECHO_N "(cached) $ECHO_C" >&6
34492 else
34493 cat >conftest.$ac_ext <<_ACEOF
34494 #line $LINENO "configure"
34495 /* confdefs.h. */
34496 _ACEOF
34497 cat confdefs.h >>conftest.$ac_ext
34498 cat >>conftest.$ac_ext <<_ACEOF
34499 /* end confdefs.h. */
34500 #include <langinfo.h>
34502 main ()
34504 char* cs = nl_langinfo(CODESET);
34506 return 0;
34508 _ACEOF
34509 rm -f conftest.$ac_objext conftest$ac_exeext
34510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34511 (eval $ac_link) 2>&5
34512 ac_status=$?
34513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34514 (exit $ac_status); } &&
34515 { ac_try='test -s conftest$ac_exeext'
34516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34517 (eval $ac_try) 2>&5
34518 ac_status=$?
34519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520 (exit $ac_status); }; }; then
34521 am_cv_langinfo_codeset=yes
34522 else
34523 echo "$as_me: failed program was:" >&5
34524 sed 's/^/| /' conftest.$ac_ext >&5
34526 am_cv_langinfo_codeset=no
34528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34531 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
34532 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
34533 if test $am_cv_langinfo_codeset = yes; then
34535 cat >>confdefs.h <<\_ACEOF
34536 #define HAVE_LANGINFO_CODESET 1
34537 _ACEOF
34542 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
34543 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
34544 if test "${ac_cv_gnu_library_2_1+set}" = set; then
34545 echo $ECHO_N "(cached) $ECHO_C" >&6
34546 else
34547 cat >conftest.$ac_ext <<_ACEOF
34548 #line $LINENO "configure"
34549 /* confdefs.h. */
34550 _ACEOF
34551 cat confdefs.h >>conftest.$ac_ext
34552 cat >>conftest.$ac_ext <<_ACEOF
34553 /* end confdefs.h. */
34555 #include <features.h>
34556 #ifdef __GNU_LIBRARY__
34557 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
34558 Lucky GNU user
34559 #endif
34560 #endif
34562 _ACEOF
34563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34564 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
34565 ac_cv_gnu_library_2_1=yes
34566 else
34567 ac_cv_gnu_library_2_1=no
34569 rm -f conftest*
34574 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
34575 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
34577 GLIBC21="$ac_cv_gnu_library_2_1"
34585 am_save_CPPFLAGS="$CPPFLAGS"
34587 for element in $INCICONV; do
34588 haveit=
34589 for x in $CPPFLAGS; do
34591 acl_save_prefix="$prefix"
34592 prefix="$acl_final_prefix"
34593 acl_save_exec_prefix="$exec_prefix"
34594 exec_prefix="$acl_final_exec_prefix"
34595 eval x=\"$x\"
34596 exec_prefix="$acl_save_exec_prefix"
34597 prefix="$acl_save_prefix"
34599 if test "X$x" = "X$element"; then
34600 haveit=yes
34601 break
34603 done
34604 if test -z "$haveit"; then
34605 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
34607 done
34610 echo "$as_me:$LINENO: checking for iconv" >&5
34611 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34612 if test "${am_cv_func_iconv+set}" = set; then
34613 echo $ECHO_N "(cached) $ECHO_C" >&6
34614 else
34616 am_cv_func_iconv="no, consider installing GNU libiconv"
34617 am_cv_lib_iconv=no
34618 cat >conftest.$ac_ext <<_ACEOF
34619 #line $LINENO "configure"
34620 /* confdefs.h. */
34621 _ACEOF
34622 cat confdefs.h >>conftest.$ac_ext
34623 cat >>conftest.$ac_ext <<_ACEOF
34624 /* end confdefs.h. */
34625 #include <stdlib.h>
34626 #include <iconv.h>
34628 main ()
34630 iconv_t cd = iconv_open("","");
34631 iconv(cd,NULL,NULL,NULL,NULL);
34632 iconv_close(cd);
34634 return 0;
34636 _ACEOF
34637 rm -f conftest.$ac_objext conftest$ac_exeext
34638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34639 (eval $ac_link) 2>&5
34640 ac_status=$?
34641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642 (exit $ac_status); } &&
34643 { ac_try='test -s conftest$ac_exeext'
34644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34645 (eval $ac_try) 2>&5
34646 ac_status=$?
34647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648 (exit $ac_status); }; }; then
34649 am_cv_func_iconv=yes
34650 else
34651 echo "$as_me: failed program was:" >&5
34652 sed 's/^/| /' conftest.$ac_ext >&5
34655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34656 if test "$am_cv_func_iconv" != yes; then
34657 am_save_LIBS="$LIBS"
34658 LIBS="$LIBS $LIBICONV"
34659 cat >conftest.$ac_ext <<_ACEOF
34660 #line $LINENO "configure"
34661 /* confdefs.h. */
34662 _ACEOF
34663 cat confdefs.h >>conftest.$ac_ext
34664 cat >>conftest.$ac_ext <<_ACEOF
34665 /* end confdefs.h. */
34666 #include <stdlib.h>
34667 #include <iconv.h>
34669 main ()
34671 iconv_t cd = iconv_open("","");
34672 iconv(cd,NULL,NULL,NULL,NULL);
34673 iconv_close(cd);
34675 return 0;
34677 _ACEOF
34678 rm -f conftest.$ac_objext conftest$ac_exeext
34679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34680 (eval $ac_link) 2>&5
34681 ac_status=$?
34682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683 (exit $ac_status); } &&
34684 { ac_try='test -s conftest$ac_exeext'
34685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34686 (eval $ac_try) 2>&5
34687 ac_status=$?
34688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689 (exit $ac_status); }; }; then
34690 am_cv_lib_iconv=yes
34691 am_cv_func_iconv=yes
34692 else
34693 echo "$as_me: failed program was:" >&5
34694 sed 's/^/| /' conftest.$ac_ext >&5
34697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34698 LIBS="$am_save_LIBS"
34702 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34703 echo "${ECHO_T}$am_cv_func_iconv" >&6
34704 if test "$am_cv_func_iconv" = yes; then
34706 cat >>confdefs.h <<\_ACEOF
34707 #define HAVE_ICONV 1
34708 _ACEOF
34711 if test "$am_cv_lib_iconv" = yes; then
34712 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
34713 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
34714 echo "$as_me:$LINENO: result: $LIBICONV" >&5
34715 echo "${ECHO_T}$LIBICONV" >&6
34716 else
34717 CPPFLAGS="$am_save_CPPFLAGS"
34718 LIBICONV=
34719 LTLIBICONV=
34724 if test "$am_cv_func_iconv" = yes; then
34725 echo "$as_me:$LINENO: checking for iconv declaration" >&5
34726 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
34727 if test "${am_cv_proto_iconv+set}" = set; then
34728 echo $ECHO_N "(cached) $ECHO_C" >&6
34729 else
34731 cat >conftest.$ac_ext <<_ACEOF
34732 #line $LINENO "configure"
34733 /* confdefs.h. */
34734 _ACEOF
34735 cat confdefs.h >>conftest.$ac_ext
34736 cat >>conftest.$ac_ext <<_ACEOF
34737 /* end confdefs.h. */
34739 #include <stdlib.h>
34740 #include <iconv.h>
34741 extern
34742 #ifdef __cplusplus
34744 #endif
34745 #if defined(__STDC__) || defined(__cplusplus)
34746 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34747 #else
34748 size_t iconv();
34749 #endif
34752 main ()
34756 return 0;
34758 _ACEOF
34759 rm -f conftest.$ac_objext
34760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34761 (eval $ac_compile) 2>&5
34762 ac_status=$?
34763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); } &&
34765 { ac_try='test -s conftest.$ac_objext'
34766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34767 (eval $ac_try) 2>&5
34768 ac_status=$?
34769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34770 (exit $ac_status); }; }; then
34771 am_cv_proto_iconv_arg1=""
34772 else
34773 echo "$as_me: failed program was:" >&5
34774 sed 's/^/| /' conftest.$ac_ext >&5
34776 am_cv_proto_iconv_arg1="const"
34778 rm -f conftest.$ac_objext conftest.$ac_ext
34779 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
34782 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
34783 echo "$as_me:$LINENO: result: ${ac_t:-
34784 }$am_cv_proto_iconv" >&5
34785 echo "${ECHO_T}${ac_t:-
34786 }$am_cv_proto_iconv" >&6
34788 cat >>confdefs.h <<_ACEOF
34789 #define ICONV_CONST $am_cv_proto_iconv_arg1
34790 _ACEOF
34794 echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
34795 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
34796 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
34797 echo $ECHO_N "(cached) $ECHO_C" >&6
34798 else
34800 if test "$cross_compiling" = yes; then
34801 jm_cv_func_unlink_busy_text=no
34803 else
34804 cat >conftest.$ac_ext <<_ACEOF
34805 #line $LINENO "configure"
34806 /* confdefs.h. */
34807 _ACEOF
34808 cat confdefs.h >>conftest.$ac_ext
34809 cat >>conftest.$ac_ext <<_ACEOF
34810 /* end confdefs.h. */
34812 main (argc, argv)
34813 int argc;
34814 char **argv;
34816 if (!argc)
34817 exit (-1);
34818 exit (unlink (argv[0]));
34821 _ACEOF
34822 rm -f conftest$ac_exeext
34823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34824 (eval $ac_link) 2>&5
34825 ac_status=$?
34826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34829 (eval $ac_try) 2>&5
34830 ac_status=$?
34831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832 (exit $ac_status); }; }; then
34833 jm_cv_func_unlink_busy_text=yes
34834 else
34835 echo "$as_me: program exited with status $ac_status" >&5
34836 echo "$as_me: failed program was:" >&5
34837 sed 's/^/| /' conftest.$ac_ext >&5
34839 ( exit $ac_status )
34840 jm_cv_func_unlink_busy_text=no
34842 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34847 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
34848 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
34850 if test $jm_cv_func_unlink_busy_text = no; then
34851 INSTALL=$ac_install_sh
34855 # These tests are for df.
34859 for ac_func in listmntent getmntinfo
34861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34862 echo "$as_me:$LINENO: checking for $ac_func" >&5
34863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34864 if eval "test \"\${$as_ac_var+set}\" = set"; then
34865 echo $ECHO_N "(cached) $ECHO_C" >&6
34866 else
34867 cat >conftest.$ac_ext <<_ACEOF
34868 #line $LINENO "configure"
34869 /* confdefs.h. */
34870 _ACEOF
34871 cat confdefs.h >>conftest.$ac_ext
34872 cat >>conftest.$ac_ext <<_ACEOF
34873 /* end confdefs.h. */
34874 /* System header to define __stub macros and hopefully few prototypes,
34875 which can conflict with char $ac_func (); below.
34876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34877 <limits.h> exists even on freestanding compilers. */
34878 #ifdef __STDC__
34879 # include <limits.h>
34880 #else
34881 # include <assert.h>
34882 #endif
34883 /* Override any gcc2 internal prototype to avoid an error. */
34884 #ifdef __cplusplus
34885 extern "C"
34887 #endif
34888 /* We use char because int might match the return type of a gcc2
34889 builtin and then its argument prototype would still apply. */
34890 char $ac_func ();
34891 /* The GNU C library defines this for functions which it implements
34892 to always fail with ENOSYS. Some functions are actually named
34893 something starting with __ and the normal name is an alias. */
34894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34895 choke me
34896 #else
34897 char (*f) () = $ac_func;
34898 #endif
34899 #ifdef __cplusplus
34901 #endif
34904 main ()
34906 return f != $ac_func;
34908 return 0;
34910 _ACEOF
34911 rm -f conftest.$ac_objext conftest$ac_exeext
34912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34913 (eval $ac_link) 2>&5
34914 ac_status=$?
34915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34916 (exit $ac_status); } &&
34917 { ac_try='test -s conftest$ac_exeext'
34918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34919 (eval $ac_try) 2>&5
34920 ac_status=$?
34921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922 (exit $ac_status); }; }; then
34923 eval "$as_ac_var=yes"
34924 else
34925 echo "$as_me: failed program was:" >&5
34926 sed 's/^/| /' conftest.$ac_ext >&5
34928 eval "$as_ac_var=no"
34930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34934 if test `eval echo '${'$as_ac_var'}'` = yes; then
34935 cat >>confdefs.h <<_ACEOF
34936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34937 _ACEOF
34940 done
34947 for ac_header in mntent.h sys/param.h sys/ucred.h sys/mount.h sys/fs_types.h
34949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34951 echo "$as_me:$LINENO: checking for $ac_header" >&5
34952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34954 echo $ECHO_N "(cached) $ECHO_C" >&6
34956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34958 else
34959 # Is the header compilable?
34960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34962 cat >conftest.$ac_ext <<_ACEOF
34963 #line $LINENO "configure"
34964 /* confdefs.h. */
34965 _ACEOF
34966 cat confdefs.h >>conftest.$ac_ext
34967 cat >>conftest.$ac_ext <<_ACEOF
34968 /* end confdefs.h. */
34969 $ac_includes_default
34970 #include <$ac_header>
34971 _ACEOF
34972 rm -f conftest.$ac_objext
34973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34974 (eval $ac_compile) 2>&5
34975 ac_status=$?
34976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34977 (exit $ac_status); } &&
34978 { ac_try='test -s conftest.$ac_objext'
34979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34980 (eval $ac_try) 2>&5
34981 ac_status=$?
34982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34983 (exit $ac_status); }; }; then
34984 ac_header_compiler=yes
34985 else
34986 echo "$as_me: failed program was:" >&5
34987 sed 's/^/| /' conftest.$ac_ext >&5
34989 ac_header_compiler=no
34991 rm -f conftest.$ac_objext conftest.$ac_ext
34992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34993 echo "${ECHO_T}$ac_header_compiler" >&6
34995 # Is the header present?
34996 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34998 cat >conftest.$ac_ext <<_ACEOF
34999 #line $LINENO "configure"
35000 /* confdefs.h. */
35001 _ACEOF
35002 cat confdefs.h >>conftest.$ac_ext
35003 cat >>conftest.$ac_ext <<_ACEOF
35004 /* end confdefs.h. */
35005 #include <$ac_header>
35006 _ACEOF
35007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35009 ac_status=$?
35010 grep -v '^ *+' conftest.er1 >conftest.err
35011 rm -f conftest.er1
35012 cat conftest.err >&5
35013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35014 (exit $ac_status); } >/dev/null; then
35015 if test -s conftest.err; then
35016 ac_cpp_err=$ac_c_preproc_warn_flag
35017 else
35018 ac_cpp_err=
35020 else
35021 ac_cpp_err=yes
35023 if test -z "$ac_cpp_err"; then
35024 ac_header_preproc=yes
35025 else
35026 echo "$as_me: failed program was:" >&5
35027 sed 's/^/| /' conftest.$ac_ext >&5
35029 ac_header_preproc=no
35031 rm -f conftest.err conftest.$ac_ext
35032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35033 echo "${ECHO_T}$ac_header_preproc" >&6
35035 # So? What about this header?
35036 case $ac_header_compiler:$ac_header_preproc in
35037 yes:no )
35038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35043 cat <<\_ASBOX
35044 ## ------------------------------------ ##
35045 ## Report this to bug-autoconf@gnu.org. ##
35046 ## ------------------------------------ ##
35047 _ASBOX
35049 sed "s/^/$as_me: WARNING: /" >&2
35051 no:yes )
35052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35053 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35055 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35059 cat <<\_ASBOX
35060 ## ------------------------------------ ##
35061 ## Report this to bug-autoconf@gnu.org. ##
35062 ## ------------------------------------ ##
35063 _ASBOX
35065 sed "s/^/$as_me: WARNING: /" >&2
35067 esac
35068 echo "$as_me:$LINENO: checking for $ac_header" >&5
35069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35071 echo $ECHO_N "(cached) $ECHO_C" >&6
35072 else
35073 eval "$as_ac_Header=$ac_header_preproc"
35075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35080 cat >>confdefs.h <<_ACEOF
35081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35082 _ACEOF
35086 done
35088 getfsstat_includes="\
35089 $ac_includes_default
35090 #if HAVE_SYS_PARAM_H
35091 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
35092 #endif
35093 #if HAVE_SYS_UCRED_H
35094 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
35095 #endif
35096 #if HAVE_SYS_MOUNT_H
35097 # include <sys/mount.h>
35098 #endif
35099 #if HAVE_SYS_FS_TYPES_H
35100 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
35101 #endif
35103 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
35104 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
35105 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
35106 echo $ECHO_N "(cached) $ECHO_C" >&6
35107 else
35108 cat >conftest.$ac_ext <<_ACEOF
35109 #line $LINENO "configure"
35110 /* confdefs.h. */
35111 _ACEOF
35112 cat confdefs.h >>conftest.$ac_ext
35113 cat >>conftest.$ac_ext <<_ACEOF
35114 /* end confdefs.h. */
35115 $getfsstat_includes
35118 main ()
35120 static struct fsstat ac_aggr;
35121 if (ac_aggr.f_fstypename)
35122 return 0;
35124 return 0;
35126 _ACEOF
35127 rm -f conftest.$ac_objext
35128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35129 (eval $ac_compile) 2>&5
35130 ac_status=$?
35131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132 (exit $ac_status); } &&
35133 { ac_try='test -s conftest.$ac_objext'
35134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35135 (eval $ac_try) 2>&5
35136 ac_status=$?
35137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35138 (exit $ac_status); }; }; then
35139 ac_cv_member_struct_fsstat_f_fstypename=yes
35140 else
35141 echo "$as_me: failed program was:" >&5
35142 sed 's/^/| /' conftest.$ac_ext >&5
35144 cat >conftest.$ac_ext <<_ACEOF
35145 #line $LINENO "configure"
35146 /* confdefs.h. */
35147 _ACEOF
35148 cat confdefs.h >>conftest.$ac_ext
35149 cat >>conftest.$ac_ext <<_ACEOF
35150 /* end confdefs.h. */
35151 $getfsstat_includes
35154 main ()
35156 static struct fsstat ac_aggr;
35157 if (sizeof ac_aggr.f_fstypename)
35158 return 0;
35160 return 0;
35162 _ACEOF
35163 rm -f conftest.$ac_objext
35164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35165 (eval $ac_compile) 2>&5
35166 ac_status=$?
35167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35168 (exit $ac_status); } &&
35169 { ac_try='test -s conftest.$ac_objext'
35170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35171 (eval $ac_try) 2>&5
35172 ac_status=$?
35173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35174 (exit $ac_status); }; }; then
35175 ac_cv_member_struct_fsstat_f_fstypename=yes
35176 else
35177 echo "$as_me: failed program was:" >&5
35178 sed 's/^/| /' conftest.$ac_ext >&5
35180 ac_cv_member_struct_fsstat_f_fstypename=no
35182 rm -f conftest.$ac_objext conftest.$ac_ext
35184 rm -f conftest.$ac_objext conftest.$ac_ext
35186 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
35187 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
35188 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
35190 cat >>confdefs.h <<_ACEOF
35191 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
35192 _ACEOF
35198 # Determine how to get the list of mounted filesystems.
35199 ac_list_mounted_fs=
35201 # If the getmntent function is available but not in the standard library,
35202 # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
35203 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
35204 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
35205 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
35206 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
35207 echo $ECHO_N "(cached) $ECHO_C" >&6
35208 else
35209 ac_check_lib_save_LIBS=$LIBS
35210 LIBS="-lsun $LIBS"
35211 cat >conftest.$ac_ext <<_ACEOF
35212 #line $LINENO "configure"
35213 /* confdefs.h. */
35214 _ACEOF
35215 cat confdefs.h >>conftest.$ac_ext
35216 cat >>conftest.$ac_ext <<_ACEOF
35217 /* end confdefs.h. */
35219 /* Override any gcc2 internal prototype to avoid an error. */
35220 #ifdef __cplusplus
35221 extern "C"
35222 #endif
35223 /* We use char because int might match the return type of a gcc2
35224 builtin and then its argument prototype would still apply. */
35225 char getmntent ();
35227 main ()
35229 getmntent ();
35231 return 0;
35233 _ACEOF
35234 rm -f conftest.$ac_objext conftest$ac_exeext
35235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35236 (eval $ac_link) 2>&5
35237 ac_status=$?
35238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35239 (exit $ac_status); } &&
35240 { ac_try='test -s conftest$ac_exeext'
35241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35242 (eval $ac_try) 2>&5
35243 ac_status=$?
35244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35245 (exit $ac_status); }; }; then
35246 ac_cv_lib_sun_getmntent=yes
35247 else
35248 echo "$as_me: failed program was:" >&5
35249 sed 's/^/| /' conftest.$ac_ext >&5
35251 ac_cv_lib_sun_getmntent=no
35253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35254 LIBS=$ac_check_lib_save_LIBS
35256 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
35257 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
35258 if test $ac_cv_lib_sun_getmntent = yes; then
35259 LIBS="-lsun $LIBS"
35260 else
35261 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
35262 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
35263 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
35264 echo $ECHO_N "(cached) $ECHO_C" >&6
35265 else
35266 ac_check_lib_save_LIBS=$LIBS
35267 LIBS="-lseq $LIBS"
35268 cat >conftest.$ac_ext <<_ACEOF
35269 #line $LINENO "configure"
35270 /* confdefs.h. */
35271 _ACEOF
35272 cat confdefs.h >>conftest.$ac_ext
35273 cat >>conftest.$ac_ext <<_ACEOF
35274 /* end confdefs.h. */
35276 /* Override any gcc2 internal prototype to avoid an error. */
35277 #ifdef __cplusplus
35278 extern "C"
35279 #endif
35280 /* We use char because int might match the return type of a gcc2
35281 builtin and then its argument prototype would still apply. */
35282 char getmntent ();
35284 main ()
35286 getmntent ();
35288 return 0;
35290 _ACEOF
35291 rm -f conftest.$ac_objext conftest$ac_exeext
35292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35293 (eval $ac_link) 2>&5
35294 ac_status=$?
35295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35296 (exit $ac_status); } &&
35297 { ac_try='test -s conftest$ac_exeext'
35298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35299 (eval $ac_try) 2>&5
35300 ac_status=$?
35301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302 (exit $ac_status); }; }; then
35303 ac_cv_lib_seq_getmntent=yes
35304 else
35305 echo "$as_me: failed program was:" >&5
35306 sed 's/^/| /' conftest.$ac_ext >&5
35308 ac_cv_lib_seq_getmntent=no
35310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35311 LIBS=$ac_check_lib_save_LIBS
35313 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
35314 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
35315 if test $ac_cv_lib_seq_getmntent = yes; then
35316 LIBS="-lseq $LIBS"
35317 else
35318 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
35319 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
35320 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
35321 echo $ECHO_N "(cached) $ECHO_C" >&6
35322 else
35323 ac_check_lib_save_LIBS=$LIBS
35324 LIBS="-lgen $LIBS"
35325 cat >conftest.$ac_ext <<_ACEOF
35326 #line $LINENO "configure"
35327 /* confdefs.h. */
35328 _ACEOF
35329 cat confdefs.h >>conftest.$ac_ext
35330 cat >>conftest.$ac_ext <<_ACEOF
35331 /* end confdefs.h. */
35333 /* Override any gcc2 internal prototype to avoid an error. */
35334 #ifdef __cplusplus
35335 extern "C"
35336 #endif
35337 /* We use char because int might match the return type of a gcc2
35338 builtin and then its argument prototype would still apply. */
35339 char getmntent ();
35341 main ()
35343 getmntent ();
35345 return 0;
35347 _ACEOF
35348 rm -f conftest.$ac_objext conftest$ac_exeext
35349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35350 (eval $ac_link) 2>&5
35351 ac_status=$?
35352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353 (exit $ac_status); } &&
35354 { ac_try='test -s conftest$ac_exeext'
35355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35356 (eval $ac_try) 2>&5
35357 ac_status=$?
35358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35359 (exit $ac_status); }; }; then
35360 ac_cv_lib_gen_getmntent=yes
35361 else
35362 echo "$as_me: failed program was:" >&5
35363 sed 's/^/| /' conftest.$ac_ext >&5
35365 ac_cv_lib_gen_getmntent=no
35367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35368 LIBS=$ac_check_lib_save_LIBS
35370 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
35371 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
35372 if test $ac_cv_lib_gen_getmntent = yes; then
35373 LIBS="-lgen $LIBS"
35381 for ac_func in getmntent
35383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35384 echo "$as_me:$LINENO: checking for $ac_func" >&5
35385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35386 if eval "test \"\${$as_ac_var+set}\" = set"; then
35387 echo $ECHO_N "(cached) $ECHO_C" >&6
35388 else
35389 cat >conftest.$ac_ext <<_ACEOF
35390 #line $LINENO "configure"
35391 /* confdefs.h. */
35392 _ACEOF
35393 cat confdefs.h >>conftest.$ac_ext
35394 cat >>conftest.$ac_ext <<_ACEOF
35395 /* end confdefs.h. */
35396 /* System header to define __stub macros and hopefully few prototypes,
35397 which can conflict with char $ac_func (); below.
35398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35399 <limits.h> exists even on freestanding compilers. */
35400 #ifdef __STDC__
35401 # include <limits.h>
35402 #else
35403 # include <assert.h>
35404 #endif
35405 /* Override any gcc2 internal prototype to avoid an error. */
35406 #ifdef __cplusplus
35407 extern "C"
35409 #endif
35410 /* We use char because int might match the return type of a gcc2
35411 builtin and then its argument prototype would still apply. */
35412 char $ac_func ();
35413 /* The GNU C library defines this for functions which it implements
35414 to always fail with ENOSYS. Some functions are actually named
35415 something starting with __ and the normal name is an alias. */
35416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35417 choke me
35418 #else
35419 char (*f) () = $ac_func;
35420 #endif
35421 #ifdef __cplusplus
35423 #endif
35426 main ()
35428 return f != $ac_func;
35430 return 0;
35432 _ACEOF
35433 rm -f conftest.$ac_objext conftest$ac_exeext
35434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35435 (eval $ac_link) 2>&5
35436 ac_status=$?
35437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438 (exit $ac_status); } &&
35439 { ac_try='test -s conftest$ac_exeext'
35440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35441 (eval $ac_try) 2>&5
35442 ac_status=$?
35443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35444 (exit $ac_status); }; }; then
35445 eval "$as_ac_var=yes"
35446 else
35447 echo "$as_me: failed program was:" >&5
35448 sed 's/^/| /' conftest.$ac_ext >&5
35450 eval "$as_ac_var=no"
35452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35456 if test `eval echo '${'$as_ac_var'}'` = yes; then
35457 cat >>confdefs.h <<_ACEOF
35458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35459 _ACEOF
35462 done
35466 # This test must precede the ones for getmntent because Unicos-9 is
35467 # reported to have the getmntent function, but its support is incompatible
35468 # with other getmntent implementations.
35470 # NOTE: Normally, I wouldn't use a check for system type as I've done for
35471 # `CRAY' below since that goes against the whole autoconf philosophy. But
35472 # I think there is too great a chance that some non-Cray system has a
35473 # function named listmntent to risk the false positive.
35475 if test -z "$ac_list_mounted_fs"; then
35476 # Cray UNICOS 9
35477 echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
35478 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
35479 if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
35480 echo $ECHO_N "(cached) $ECHO_C" >&6
35481 else
35482 fu_cv_sys_mounted_cray_listmntent=no
35483 cat >conftest.$ac_ext <<_ACEOF
35484 #line $LINENO "configure"
35485 /* confdefs.h. */
35486 _ACEOF
35487 cat confdefs.h >>conftest.$ac_ext
35488 cat >>conftest.$ac_ext <<_ACEOF
35489 /* end confdefs.h. */
35490 #ifdef _CRAY
35492 #endif
35494 _ACEOF
35495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35496 $EGREP "yes" >/dev/null 2>&1; then
35497 test $ac_cv_func_listmntent = yes \
35498 && fu_cv_sys_mounted_cray_listmntent=yes
35501 rm -f conftest*
35507 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
35508 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
35509 if test $fu_cv_sys_mounted_cray_listmntent = yes; then
35510 ac_list_mounted_fs=found
35512 cat >>confdefs.h <<\_ACEOF
35513 #define MOUNTED_LISTMNTENT 1
35514 _ACEOF
35519 if test $ac_cv_func_getmntent = yes; then
35521 # This system has the getmntent function.
35522 # Determine whether it's the one-argument variant or the two-argument one.
35524 if test -z "$ac_list_mounted_fs"; then
35525 # 4.3BSD, SunOS, HP-UX, Dynix, Irix
35526 echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
35527 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
35528 if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
35529 echo $ECHO_N "(cached) $ECHO_C" >&6
35530 else
35531 cat >conftest.$ac_ext <<_ACEOF
35532 #line $LINENO "configure"
35533 /* confdefs.h. */
35534 _ACEOF
35535 cat confdefs.h >>conftest.$ac_ext
35536 cat >>conftest.$ac_ext <<_ACEOF
35537 /* end confdefs.h. */
35539 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
35540 #include <stdio.h>
35542 #include <mntent.h>
35543 #if !defined MOUNTED
35544 # if defined _PATH_MOUNTED /* GNU libc */
35545 # define MOUNTED _PATH_MOUNTED
35546 # endif
35547 # if defined MNT_MNTTAB /* HP-UX. */
35548 # define MOUNTED MNT_MNTTAB
35549 # endif
35550 # if defined MNTTABNAME /* Dynix. */
35551 # define MOUNTED MNTTABNAME
35552 # endif
35553 #endif
35556 main ()
35558 struct mntent *mnt = 0; char *table = MOUNTED;
35560 return 0;
35562 _ACEOF
35563 rm -f conftest.$ac_objext
35564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35565 (eval $ac_compile) 2>&5
35566 ac_status=$?
35567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568 (exit $ac_status); } &&
35569 { ac_try='test -s conftest.$ac_objext'
35570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35571 (eval $ac_try) 2>&5
35572 ac_status=$?
35573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574 (exit $ac_status); }; }; then
35575 fu_cv_sys_mounted_getmntent1=yes
35576 else
35577 echo "$as_me: failed program was:" >&5
35578 sed 's/^/| /' conftest.$ac_ext >&5
35580 fu_cv_sys_mounted_getmntent1=no
35582 rm -f conftest.$ac_objext conftest.$ac_ext
35585 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
35586 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
35587 if test $fu_cv_sys_mounted_getmntent1 = yes; then
35588 ac_list_mounted_fs=found
35590 cat >>confdefs.h <<\_ACEOF
35591 #define MOUNTED_GETMNTENT1 1
35592 _ACEOF
35597 if test -z "$ac_list_mounted_fs"; then
35598 # SVR4
35599 echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
35600 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
35601 if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
35602 echo $ECHO_N "(cached) $ECHO_C" >&6
35603 else
35604 cat >conftest.$ac_ext <<_ACEOF
35605 #line $LINENO "configure"
35606 /* confdefs.h. */
35607 _ACEOF
35608 cat confdefs.h >>conftest.$ac_ext
35609 cat >>conftest.$ac_ext <<_ACEOF
35610 /* end confdefs.h. */
35611 #include <sys/mnttab.h>
35613 _ACEOF
35614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35615 $EGREP "getmntent" >/dev/null 2>&1; then
35616 fu_cv_sys_mounted_getmntent2=yes
35617 else
35618 fu_cv_sys_mounted_getmntent2=no
35620 rm -f conftest*
35624 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
35625 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
35626 if test $fu_cv_sys_mounted_getmntent2 = yes; then
35627 ac_list_mounted_fs=found
35629 cat >>confdefs.h <<\_ACEOF
35630 #define MOUNTED_GETMNTENT2 1
35631 _ACEOF
35638 if test -z "$ac_list_mounted_fs"; then
35639 # DEC Alpha running OSF/1, and Apple Darwin 1.3.
35640 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
35642 echo "$as_me:$LINENO: checking for getfsstat function" >&5
35643 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
35644 if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
35645 echo $ECHO_N "(cached) $ECHO_C" >&6
35646 else
35647 cat >conftest.$ac_ext <<_ACEOF
35648 #line $LINENO "configure"
35649 /* confdefs.h. */
35650 _ACEOF
35651 cat confdefs.h >>conftest.$ac_ext
35652 cat >>conftest.$ac_ext <<_ACEOF
35653 /* end confdefs.h. */
35655 #include <sys/types.h>
35656 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
35657 # define FS_TYPE(Ent) ((Ent).f_fstypename)
35658 #else
35659 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
35660 #endif
35661 $getfsstat_includes
35664 main ()
35666 struct statfs *stats;
35667 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
35668 char *t = FS_TYPE (*stats);
35670 return 0;
35672 _ACEOF
35673 rm -f conftest.$ac_objext conftest$ac_exeext
35674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35675 (eval $ac_link) 2>&5
35676 ac_status=$?
35677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35678 (exit $ac_status); } &&
35679 { ac_try='test -s conftest$ac_exeext'
35680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35681 (eval $ac_try) 2>&5
35682 ac_status=$?
35683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35684 (exit $ac_status); }; }; then
35685 fu_cv_sys_mounted_getfsstat=yes
35686 else
35687 echo "$as_me: failed program was:" >&5
35688 sed 's/^/| /' conftest.$ac_ext >&5
35690 fu_cv_sys_mounted_getfsstat=no
35692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35695 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
35696 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
35697 if test $fu_cv_sys_mounted_getfsstat = yes; then
35698 ac_list_mounted_fs=found
35700 cat >>confdefs.h <<\_ACEOF
35701 #define MOUNTED_GETFSSTAT 1
35702 _ACEOF
35707 if test -z "$ac_list_mounted_fs"; then
35708 # AIX.
35709 echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
35710 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
35711 if test "${fu_cv_sys_mounted_vmount+set}" = set; then
35712 echo $ECHO_N "(cached) $ECHO_C" >&6
35713 else
35714 cat >conftest.$ac_ext <<_ACEOF
35715 #line $LINENO "configure"
35716 /* confdefs.h. */
35717 _ACEOF
35718 cat confdefs.h >>conftest.$ac_ext
35719 cat >>conftest.$ac_ext <<_ACEOF
35720 /* end confdefs.h. */
35721 #include <fshelp.h>
35722 _ACEOF
35723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35725 ac_status=$?
35726 grep -v '^ *+' conftest.er1 >conftest.err
35727 rm -f conftest.er1
35728 cat conftest.err >&5
35729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730 (exit $ac_status); } >/dev/null; then
35731 if test -s conftest.err; then
35732 ac_cpp_err=$ac_c_preproc_warn_flag
35733 else
35734 ac_cpp_err=
35736 else
35737 ac_cpp_err=yes
35739 if test -z "$ac_cpp_err"; then
35740 fu_cv_sys_mounted_vmount=yes
35741 else
35742 echo "$as_me: failed program was:" >&5
35743 sed 's/^/| /' conftest.$ac_ext >&5
35745 fu_cv_sys_mounted_vmount=no
35747 rm -f conftest.err conftest.$ac_ext
35750 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
35751 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
35752 if test $fu_cv_sys_mounted_vmount = yes; then
35753 ac_list_mounted_fs=found
35755 cat >>confdefs.h <<\_ACEOF
35756 #define MOUNTED_VMOUNT 1
35757 _ACEOF
35762 if test -z "$ac_list_mounted_fs"; then
35763 # SVR3
35764 echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
35765 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
35766 if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
35767 echo $ECHO_N "(cached) $ECHO_C" >&6
35768 else
35769 cat >conftest.$ac_ext <<_ACEOF
35770 #line $LINENO "configure"
35771 /* confdefs.h. */
35772 _ACEOF
35773 cat confdefs.h >>conftest.$ac_ext
35774 cat >>conftest.$ac_ext <<_ACEOF
35775 /* end confdefs.h. */
35777 #include <sys/statfs.h>
35778 #include <sys/fstyp.h>
35779 #include <mnttab.h>
35780 _ACEOF
35781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35783 ac_status=$?
35784 grep -v '^ *+' conftest.er1 >conftest.err
35785 rm -f conftest.er1
35786 cat conftest.err >&5
35787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788 (exit $ac_status); } >/dev/null; then
35789 if test -s conftest.err; then
35790 ac_cpp_err=$ac_c_preproc_warn_flag
35791 else
35792 ac_cpp_err=
35794 else
35795 ac_cpp_err=yes
35797 if test -z "$ac_cpp_err"; then
35798 fu_cv_sys_mounted_fread_fstyp=yes
35799 else
35800 echo "$as_me: failed program was:" >&5
35801 sed 's/^/| /' conftest.$ac_ext >&5
35803 fu_cv_sys_mounted_fread_fstyp=no
35805 rm -f conftest.err conftest.$ac_ext
35808 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
35809 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
35810 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
35811 ac_list_mounted_fs=found
35813 cat >>confdefs.h <<\_ACEOF
35814 #define MOUNTED_FREAD_FSTYP 1
35815 _ACEOF
35820 if test -z "$ac_list_mounted_fs"; then
35821 # 4.4BSD and DEC OSF/1.
35822 echo "$as_me:$LINENO: checking for getmntinfo function" >&5
35823 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
35824 if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
35825 echo $ECHO_N "(cached) $ECHO_C" >&6
35826 else
35828 test "$ac_cv_func_getmntinfo" = yes \
35829 && fu_cv_sys_mounted_getmntinfo=yes \
35830 || fu_cv_sys_mounted_getmntinfo=no
35834 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
35835 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
35836 if test $fu_cv_sys_mounted_getmntinfo = yes; then
35837 ac_list_mounted_fs=found
35839 cat >>confdefs.h <<\_ACEOF
35840 #define MOUNTED_GETMNTINFO 1
35841 _ACEOF
35846 if test -z "$ac_list_mounted_fs"; then
35847 # Ultrix
35848 echo "$as_me:$LINENO: checking for getmnt function" >&5
35849 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
35850 if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
35851 echo $ECHO_N "(cached) $ECHO_C" >&6
35852 else
35853 cat >conftest.$ac_ext <<_ACEOF
35854 #line $LINENO "configure"
35855 /* confdefs.h. */
35856 _ACEOF
35857 cat confdefs.h >>conftest.$ac_ext
35858 cat >>conftest.$ac_ext <<_ACEOF
35859 /* end confdefs.h. */
35861 #include <sys/fs_types.h>
35862 #include <sys/mount.h>
35863 _ACEOF
35864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35866 ac_status=$?
35867 grep -v '^ *+' conftest.er1 >conftest.err
35868 rm -f conftest.er1
35869 cat conftest.err >&5
35870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35871 (exit $ac_status); } >/dev/null; then
35872 if test -s conftest.err; then
35873 ac_cpp_err=$ac_c_preproc_warn_flag
35874 else
35875 ac_cpp_err=
35877 else
35878 ac_cpp_err=yes
35880 if test -z "$ac_cpp_err"; then
35881 fu_cv_sys_mounted_getmnt=yes
35882 else
35883 echo "$as_me: failed program was:" >&5
35884 sed 's/^/| /' conftest.$ac_ext >&5
35886 fu_cv_sys_mounted_getmnt=no
35888 rm -f conftest.err conftest.$ac_ext
35891 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
35892 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
35893 if test $fu_cv_sys_mounted_getmnt = yes; then
35894 ac_list_mounted_fs=found
35896 cat >>confdefs.h <<\_ACEOF
35897 #define MOUNTED_GETMNT 1
35898 _ACEOF
35903 if test -z "$ac_list_mounted_fs"; then
35904 # BeOS
35907 for ac_func in next_dev fs_stat_dev
35909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35910 echo "$as_me:$LINENO: checking for $ac_func" >&5
35911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35912 if eval "test \"\${$as_ac_var+set}\" = set"; then
35913 echo $ECHO_N "(cached) $ECHO_C" >&6
35914 else
35915 cat >conftest.$ac_ext <<_ACEOF
35916 #line $LINENO "configure"
35917 /* confdefs.h. */
35918 _ACEOF
35919 cat confdefs.h >>conftest.$ac_ext
35920 cat >>conftest.$ac_ext <<_ACEOF
35921 /* end confdefs.h. */
35922 /* System header to define __stub macros and hopefully few prototypes,
35923 which can conflict with char $ac_func (); below.
35924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35925 <limits.h> exists even on freestanding compilers. */
35926 #ifdef __STDC__
35927 # include <limits.h>
35928 #else
35929 # include <assert.h>
35930 #endif
35931 /* Override any gcc2 internal prototype to avoid an error. */
35932 #ifdef __cplusplus
35933 extern "C"
35935 #endif
35936 /* We use char because int might match the return type of a gcc2
35937 builtin and then its argument prototype would still apply. */
35938 char $ac_func ();
35939 /* The GNU C library defines this for functions which it implements
35940 to always fail with ENOSYS. Some functions are actually named
35941 something starting with __ and the normal name is an alias. */
35942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35943 choke me
35944 #else
35945 char (*f) () = $ac_func;
35946 #endif
35947 #ifdef __cplusplus
35949 #endif
35952 main ()
35954 return f != $ac_func;
35956 return 0;
35958 _ACEOF
35959 rm -f conftest.$ac_objext conftest$ac_exeext
35960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35961 (eval $ac_link) 2>&5
35962 ac_status=$?
35963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35964 (exit $ac_status); } &&
35965 { ac_try='test -s conftest$ac_exeext'
35966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35967 (eval $ac_try) 2>&5
35968 ac_status=$?
35969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35970 (exit $ac_status); }; }; then
35971 eval "$as_ac_var=yes"
35972 else
35973 echo "$as_me: failed program was:" >&5
35974 sed 's/^/| /' conftest.$ac_ext >&5
35976 eval "$as_ac_var=no"
35978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35982 if test `eval echo '${'$as_ac_var'}'` = yes; then
35983 cat >>confdefs.h <<_ACEOF
35984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35985 _ACEOF
35988 done
35991 for ac_header in fs_info.h
35993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35995 echo "$as_me:$LINENO: checking for $ac_header" >&5
35996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35998 echo $ECHO_N "(cached) $ECHO_C" >&6
36000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36002 else
36003 # Is the header compilable?
36004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36006 cat >conftest.$ac_ext <<_ACEOF
36007 #line $LINENO "configure"
36008 /* confdefs.h. */
36009 _ACEOF
36010 cat confdefs.h >>conftest.$ac_ext
36011 cat >>conftest.$ac_ext <<_ACEOF
36012 /* end confdefs.h. */
36013 $ac_includes_default
36014 #include <$ac_header>
36015 _ACEOF
36016 rm -f conftest.$ac_objext
36017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36018 (eval $ac_compile) 2>&5
36019 ac_status=$?
36020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36021 (exit $ac_status); } &&
36022 { ac_try='test -s conftest.$ac_objext'
36023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36024 (eval $ac_try) 2>&5
36025 ac_status=$?
36026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027 (exit $ac_status); }; }; then
36028 ac_header_compiler=yes
36029 else
36030 echo "$as_me: failed program was:" >&5
36031 sed 's/^/| /' conftest.$ac_ext >&5
36033 ac_header_compiler=no
36035 rm -f conftest.$ac_objext conftest.$ac_ext
36036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36037 echo "${ECHO_T}$ac_header_compiler" >&6
36039 # Is the header present?
36040 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36042 cat >conftest.$ac_ext <<_ACEOF
36043 #line $LINENO "configure"
36044 /* confdefs.h. */
36045 _ACEOF
36046 cat confdefs.h >>conftest.$ac_ext
36047 cat >>conftest.$ac_ext <<_ACEOF
36048 /* end confdefs.h. */
36049 #include <$ac_header>
36050 _ACEOF
36051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36053 ac_status=$?
36054 grep -v '^ *+' conftest.er1 >conftest.err
36055 rm -f conftest.er1
36056 cat conftest.err >&5
36057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36058 (exit $ac_status); } >/dev/null; then
36059 if test -s conftest.err; then
36060 ac_cpp_err=$ac_c_preproc_warn_flag
36061 else
36062 ac_cpp_err=
36064 else
36065 ac_cpp_err=yes
36067 if test -z "$ac_cpp_err"; then
36068 ac_header_preproc=yes
36069 else
36070 echo "$as_me: failed program was:" >&5
36071 sed 's/^/| /' conftest.$ac_ext >&5
36073 ac_header_preproc=no
36075 rm -f conftest.err conftest.$ac_ext
36076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36077 echo "${ECHO_T}$ac_header_preproc" >&6
36079 # So? What about this header?
36080 case $ac_header_compiler:$ac_header_preproc in
36081 yes:no )
36082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36087 cat <<\_ASBOX
36088 ## ------------------------------------ ##
36089 ## Report this to bug-autoconf@gnu.org. ##
36090 ## ------------------------------------ ##
36091 _ASBOX
36093 sed "s/^/$as_me: WARNING: /" >&2
36095 no:yes )
36096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36103 cat <<\_ASBOX
36104 ## ------------------------------------ ##
36105 ## Report this to bug-autoconf@gnu.org. ##
36106 ## ------------------------------------ ##
36107 _ASBOX
36109 sed "s/^/$as_me: WARNING: /" >&2
36111 esac
36112 echo "$as_me:$LINENO: checking for $ac_header" >&5
36113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36115 echo $ECHO_N "(cached) $ECHO_C" >&6
36116 else
36117 eval "$as_ac_Header=$ac_header_preproc"
36119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36124 cat >>confdefs.h <<_ACEOF
36125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36126 _ACEOF
36130 done
36132 echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
36133 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
36134 if test $ac_cv_header_fs_info_h = yes \
36135 && test $ac_cv_func_next_dev = yes \
36136 && test $ac_cv_func_fs_stat_dev = yes; then
36137 fu_result=yes
36138 else
36139 fu_result=no
36141 echo "$as_me:$LINENO: result: $fu_result" >&5
36142 echo "${ECHO_T}$fu_result" >&6
36143 if test $fu_result = yes; then
36144 ac_list_mounted_fs=found
36146 cat >>confdefs.h <<\_ACEOF
36147 #define MOUNTED_FS_STAT_DEV 1
36148 _ACEOF
36153 if test -z "$ac_list_mounted_fs"; then
36154 # SVR2
36155 echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
36156 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
36157 if test "${fu_cv_sys_mounted_fread+set}" = set; then
36158 echo $ECHO_N "(cached) $ECHO_C" >&6
36159 else
36160 cat >conftest.$ac_ext <<_ACEOF
36161 #line $LINENO "configure"
36162 /* confdefs.h. */
36163 _ACEOF
36164 cat confdefs.h >>conftest.$ac_ext
36165 cat >>conftest.$ac_ext <<_ACEOF
36166 /* end confdefs.h. */
36167 #include <mnttab.h>
36168 _ACEOF
36169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36171 ac_status=$?
36172 grep -v '^ *+' conftest.er1 >conftest.err
36173 rm -f conftest.er1
36174 cat conftest.err >&5
36175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176 (exit $ac_status); } >/dev/null; then
36177 if test -s conftest.err; then
36178 ac_cpp_err=$ac_c_preproc_warn_flag
36179 else
36180 ac_cpp_err=
36182 else
36183 ac_cpp_err=yes
36185 if test -z "$ac_cpp_err"; then
36186 fu_cv_sys_mounted_fread=yes
36187 else
36188 echo "$as_me: failed program was:" >&5
36189 sed 's/^/| /' conftest.$ac_ext >&5
36191 fu_cv_sys_mounted_fread=no
36193 rm -f conftest.err conftest.$ac_ext
36196 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
36197 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
36198 if test $fu_cv_sys_mounted_fread = yes; then
36199 ac_list_mounted_fs=found
36201 cat >>confdefs.h <<\_ACEOF
36202 #define MOUNTED_FREAD 1
36203 _ACEOF
36208 if test -z "$ac_list_mounted_fs"; then
36209 { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
36210 echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
36211 { (exit 1); exit 1; }; }
36212 # FIXME -- no need to abort building the whole package
36213 # Can't build mountlist.c or anything that needs its functions
36216 if test $ac_list_mounted_fs = found; then
36217 list_mounted_fs=yes
36218 else
36219 list_mounted_fs=no
36225 echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
36226 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
36227 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
36228 echo $ECHO_N "(cached) $ECHO_C" >&6
36229 else
36231 cat >conftest.$ac_ext <<_ACEOF
36232 #line $LINENO "configure"
36233 /* confdefs.h. */
36234 _ACEOF
36235 cat confdefs.h >>conftest.$ac_ext
36236 cat >>conftest.$ac_ext <<_ACEOF
36237 /* end confdefs.h. */
36239 #include <sys/param.h>
36240 #include <sys/types.h>
36241 #include <sys/mount.h>
36244 main ()
36246 struct statfs s; int i = sizeof s.f_fstypename;
36248 return 0;
36250 _ACEOF
36251 rm -f conftest.$ac_objext
36252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36253 (eval $ac_compile) 2>&5
36254 ac_status=$?
36255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256 (exit $ac_status); } &&
36257 { ac_try='test -s conftest.$ac_objext'
36258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36259 (eval $ac_try) 2>&5
36260 ac_status=$?
36261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36262 (exit $ac_status); }; }; then
36263 fu_cv_sys_f_fstypename_in_statfs=yes
36264 else
36265 echo "$as_me: failed program was:" >&5
36266 sed 's/^/| /' conftest.$ac_ext >&5
36268 fu_cv_sys_f_fstypename_in_statfs=no
36271 rm -f conftest.$ac_objext conftest.$ac_ext
36275 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
36276 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
36278 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
36280 cat >>confdefs.h <<\_ACEOF
36281 #define HAVE_F_FSTYPENAME_IN_STATFS 1
36282 _ACEOF
36289 echo "checking how to get filesystem space usage..."
36290 ac_fsusage_space=no
36292 # Perform only the link test since it seems there are no variants of the
36293 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
36294 # because that got a false positive on SCO OSR5. Adding the declaration
36295 # of a `struct statvfs' causes this test to fail (as it should) on such
36296 # systems. That system is reported to work fine with STAT_STATFS4 which
36297 # is what it gets when this test fails.
36298 if test $ac_fsusage_space = no; then
36299 # SVR4
36300 echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
36301 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
36302 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
36303 echo $ECHO_N "(cached) $ECHO_C" >&6
36304 else
36305 cat >conftest.$ac_ext <<_ACEOF
36306 #line $LINENO "configure"
36307 /* confdefs.h. */
36308 _ACEOF
36309 cat confdefs.h >>conftest.$ac_ext
36310 cat >>conftest.$ac_ext <<_ACEOF
36311 /* end confdefs.h. */
36312 #include <sys/types.h>
36313 #include <sys/statvfs.h>
36315 main ()
36317 struct statvfs fsd; statvfs (0, &fsd);
36319 return 0;
36321 _ACEOF
36322 rm -f conftest.$ac_objext conftest$ac_exeext
36323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36324 (eval $ac_link) 2>&5
36325 ac_status=$?
36326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327 (exit $ac_status); } &&
36328 { ac_try='test -s conftest$ac_exeext'
36329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36330 (eval $ac_try) 2>&5
36331 ac_status=$?
36332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36333 (exit $ac_status); }; }; then
36334 fu_cv_sys_stat_statvfs=yes
36335 else
36336 echo "$as_me: failed program was:" >&5
36337 sed 's/^/| /' conftest.$ac_ext >&5
36339 fu_cv_sys_stat_statvfs=no
36341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36343 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
36344 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
36345 if test $fu_cv_sys_stat_statvfs = yes; then
36346 ac_fsusage_space=yes
36348 cat >>confdefs.h <<\_ACEOF
36349 #define STAT_STATVFS 1
36350 _ACEOF
36355 if test $ac_fsusage_space = no; then
36356 # DEC Alpha running OSF/1
36357 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
36358 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
36359 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
36360 echo $ECHO_N "(cached) $ECHO_C" >&6
36361 else
36362 if test "$cross_compiling" = yes; then
36363 fu_cv_sys_stat_statfs3_osf1=no
36364 else
36365 cat >conftest.$ac_ext <<_ACEOF
36366 #line $LINENO "configure"
36367 /* confdefs.h. */
36368 _ACEOF
36369 cat confdefs.h >>conftest.$ac_ext
36370 cat >>conftest.$ac_ext <<_ACEOF
36371 /* end confdefs.h. */
36373 #include <sys/param.h>
36374 #include <sys/types.h>
36375 #include <sys/mount.h>
36376 main ()
36378 struct statfs fsd;
36379 fsd.f_fsize = 0;
36380 exit (statfs (".", &fsd, sizeof (struct statfs)));
36382 _ACEOF
36383 rm -f conftest$ac_exeext
36384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36385 (eval $ac_link) 2>&5
36386 ac_status=$?
36387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36390 (eval $ac_try) 2>&5
36391 ac_status=$?
36392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36393 (exit $ac_status); }; }; then
36394 fu_cv_sys_stat_statfs3_osf1=yes
36395 else
36396 echo "$as_me: program exited with status $ac_status" >&5
36397 echo "$as_me: failed program was:" >&5
36398 sed 's/^/| /' conftest.$ac_ext >&5
36400 ( exit $ac_status )
36401 fu_cv_sys_stat_statfs3_osf1=no
36403 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36407 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
36408 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
36409 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
36410 ac_fsusage_space=yes
36412 cat >>confdefs.h <<\_ACEOF
36413 #define STAT_STATFS3_OSF1 1
36414 _ACEOF
36419 if test $ac_fsusage_space = no; then
36420 # AIX
36421 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
36422 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
36423 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
36424 echo $ECHO_N "(cached) $ECHO_C" >&6
36425 else
36426 if test "$cross_compiling" = yes; then
36427 fu_cv_sys_stat_statfs2_bsize=no
36428 else
36429 cat >conftest.$ac_ext <<_ACEOF
36430 #line $LINENO "configure"
36431 /* confdefs.h. */
36432 _ACEOF
36433 cat confdefs.h >>conftest.$ac_ext
36434 cat >>conftest.$ac_ext <<_ACEOF
36435 /* end confdefs.h. */
36437 #ifdef HAVE_SYS_PARAM_H
36438 #include <sys/param.h>
36439 #endif
36440 #ifdef HAVE_SYS_MOUNT_H
36441 #include <sys/mount.h>
36442 #endif
36443 #ifdef HAVE_SYS_VFS_H
36444 #include <sys/vfs.h>
36445 #endif
36446 main ()
36448 struct statfs fsd;
36449 fsd.f_bsize = 0;
36450 exit (statfs (".", &fsd));
36452 _ACEOF
36453 rm -f conftest$ac_exeext
36454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36455 (eval $ac_link) 2>&5
36456 ac_status=$?
36457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36460 (eval $ac_try) 2>&5
36461 ac_status=$?
36462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36463 (exit $ac_status); }; }; then
36464 fu_cv_sys_stat_statfs2_bsize=yes
36465 else
36466 echo "$as_me: program exited with status $ac_status" >&5
36467 echo "$as_me: failed program was:" >&5
36468 sed 's/^/| /' conftest.$ac_ext >&5
36470 ( exit $ac_status )
36471 fu_cv_sys_stat_statfs2_bsize=no
36473 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36477 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
36478 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
36479 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
36480 ac_fsusage_space=yes
36482 cat >>confdefs.h <<\_ACEOF
36483 #define STAT_STATFS2_BSIZE 1
36484 _ACEOF
36489 if test $ac_fsusage_space = no; then
36490 # SVR3
36491 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
36492 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
36493 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
36494 echo $ECHO_N "(cached) $ECHO_C" >&6
36495 else
36496 if test "$cross_compiling" = yes; then
36497 fu_cv_sys_stat_statfs4=no
36498 else
36499 cat >conftest.$ac_ext <<_ACEOF
36500 #line $LINENO "configure"
36501 /* confdefs.h. */
36502 _ACEOF
36503 cat confdefs.h >>conftest.$ac_ext
36504 cat >>conftest.$ac_ext <<_ACEOF
36505 /* end confdefs.h. */
36506 #include <sys/types.h>
36507 #include <sys/statfs.h>
36508 main ()
36510 struct statfs fsd;
36511 exit (statfs (".", &fsd, sizeof fsd, 0));
36513 _ACEOF
36514 rm -f conftest$ac_exeext
36515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36516 (eval $ac_link) 2>&5
36517 ac_status=$?
36518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36521 (eval $ac_try) 2>&5
36522 ac_status=$?
36523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36524 (exit $ac_status); }; }; then
36525 fu_cv_sys_stat_statfs4=yes
36526 else
36527 echo "$as_me: program exited with status $ac_status" >&5
36528 echo "$as_me: failed program was:" >&5
36529 sed 's/^/| /' conftest.$ac_ext >&5
36531 ( exit $ac_status )
36532 fu_cv_sys_stat_statfs4=no
36534 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36538 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
36539 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
36540 if test $fu_cv_sys_stat_statfs4 = yes; then
36541 ac_fsusage_space=yes
36543 cat >>confdefs.h <<\_ACEOF
36544 #define STAT_STATFS4 1
36545 _ACEOF
36550 if test $ac_fsusage_space = no; then
36551 # 4.4BSD and NetBSD
36552 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
36553 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
36554 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
36555 echo $ECHO_N "(cached) $ECHO_C" >&6
36556 else
36557 if test "$cross_compiling" = yes; then
36558 fu_cv_sys_stat_statfs2_fsize=no
36559 else
36560 cat >conftest.$ac_ext <<_ACEOF
36561 #line $LINENO "configure"
36562 /* confdefs.h. */
36563 _ACEOF
36564 cat confdefs.h >>conftest.$ac_ext
36565 cat >>conftest.$ac_ext <<_ACEOF
36566 /* end confdefs.h. */
36567 #include <sys/types.h>
36568 #ifdef HAVE_SYS_PARAM_H
36569 #include <sys/param.h>
36570 #endif
36571 #ifdef HAVE_SYS_MOUNT_H
36572 #include <sys/mount.h>
36573 #endif
36574 main ()
36576 struct statfs fsd;
36577 fsd.f_fsize = 0;
36578 exit (statfs (".", &fsd));
36580 _ACEOF
36581 rm -f conftest$ac_exeext
36582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36583 (eval $ac_link) 2>&5
36584 ac_status=$?
36585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36588 (eval $ac_try) 2>&5
36589 ac_status=$?
36590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36591 (exit $ac_status); }; }; then
36592 fu_cv_sys_stat_statfs2_fsize=yes
36593 else
36594 echo "$as_me: program exited with status $ac_status" >&5
36595 echo "$as_me: failed program was:" >&5
36596 sed 's/^/| /' conftest.$ac_ext >&5
36598 ( exit $ac_status )
36599 fu_cv_sys_stat_statfs2_fsize=no
36601 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36605 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
36606 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
36607 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
36608 ac_fsusage_space=yes
36610 cat >>confdefs.h <<\_ACEOF
36611 #define STAT_STATFS2_FSIZE 1
36612 _ACEOF
36617 if test $ac_fsusage_space = no; then
36618 # Ultrix
36619 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
36620 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
36621 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
36622 echo $ECHO_N "(cached) $ECHO_C" >&6
36623 else
36624 if test "$cross_compiling" = yes; then
36625 fu_cv_sys_stat_fs_data=no
36626 else
36627 cat >conftest.$ac_ext <<_ACEOF
36628 #line $LINENO "configure"
36629 /* confdefs.h. */
36630 _ACEOF
36631 cat confdefs.h >>conftest.$ac_ext
36632 cat >>conftest.$ac_ext <<_ACEOF
36633 /* end confdefs.h. */
36634 #include <sys/types.h>
36635 #ifdef HAVE_SYS_PARAM_H
36636 #include <sys/param.h>
36637 #endif
36638 #ifdef HAVE_SYS_MOUNT_H
36639 #include <sys/mount.h>
36640 #endif
36641 #ifdef HAVE_SYS_FS_TYPES_H
36642 #include <sys/fs_types.h>
36643 #endif
36644 main ()
36646 struct fs_data fsd;
36647 /* Ultrix's statfs returns 1 for success,
36648 0 for not mounted, -1 for failure. */
36649 exit (statfs (".", &fsd) != 1);
36651 _ACEOF
36652 rm -f conftest$ac_exeext
36653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36654 (eval $ac_link) 2>&5
36655 ac_status=$?
36656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36659 (eval $ac_try) 2>&5
36660 ac_status=$?
36661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36662 (exit $ac_status); }; }; then
36663 fu_cv_sys_stat_fs_data=yes
36664 else
36665 echo "$as_me: program exited with status $ac_status" >&5
36666 echo "$as_me: failed program was:" >&5
36667 sed 's/^/| /' conftest.$ac_ext >&5
36669 ( exit $ac_status )
36670 fu_cv_sys_stat_fs_data=no
36672 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36676 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
36677 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
36678 if test $fu_cv_sys_stat_fs_data = yes; then
36679 ac_fsusage_space=yes
36681 cat >>confdefs.h <<\_ACEOF
36682 #define STAT_STATFS2_FS_DATA 1
36683 _ACEOF
36688 if test $ac_fsusage_space = no; then
36689 # SVR2
36690 cat >conftest.$ac_ext <<_ACEOF
36691 #line $LINENO "configure"
36692 /* confdefs.h. */
36693 _ACEOF
36694 cat confdefs.h >>conftest.$ac_ext
36695 cat >>conftest.$ac_ext <<_ACEOF
36696 /* end confdefs.h. */
36697 #include <sys/filsys.h>
36699 _ACEOF
36700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36702 ac_status=$?
36703 grep -v '^ *+' conftest.er1 >conftest.err
36704 rm -f conftest.er1
36705 cat conftest.err >&5
36706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707 (exit $ac_status); } >/dev/null; then
36708 if test -s conftest.err; then
36709 ac_cpp_err=$ac_c_preproc_warn_flag
36710 else
36711 ac_cpp_err=
36713 else
36714 ac_cpp_err=yes
36716 if test -z "$ac_cpp_err"; then
36718 cat >>confdefs.h <<\_ACEOF
36719 #define STAT_READ_FILSYS 1
36720 _ACEOF
36722 ac_fsusage_space=yes
36723 else
36724 echo "$as_me: failed program was:" >&5
36725 sed 's/^/| /' conftest.$ac_ext >&5
36729 rm -f conftest.err conftest.$ac_ext
36732 if test $ac_fsusage_space = yes; then
36733 space=yes
36734 else
36735 space=no
36740 if test $list_mounted_fs = yes && test $space = yes; then
36741 DF_PROG=df
36742 LIBOBJS="$LIBOBJS fsusage.$ac_objext"
36743 LIBOBJS="$LIBOBJS mountlist.$ac_objext"
36750 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
36751 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
36752 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
36753 echo $ECHO_N "(cached) $ECHO_C" >&6
36754 else
36755 cat >conftest.$ac_ext <<_ACEOF
36756 #line $LINENO "configure"
36757 /* confdefs.h. */
36758 _ACEOF
36759 cat confdefs.h >>conftest.$ac_ext
36760 cat >>conftest.$ac_ext <<_ACEOF
36761 /* end confdefs.h. */
36762 #include <sys/types.h>
36763 #include <termios.h>
36764 #ifdef TIOCGWINSZ
36766 #endif
36768 _ACEOF
36769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36770 $EGREP "yes" >/dev/null 2>&1; then
36771 ac_cv_sys_tiocgwinsz_in_termios_h=yes
36772 else
36773 ac_cv_sys_tiocgwinsz_in_termios_h=no
36775 rm -f conftest*
36778 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
36779 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
36781 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
36782 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
36783 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
36784 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
36785 echo $ECHO_N "(cached) $ECHO_C" >&6
36786 else
36787 cat >conftest.$ac_ext <<_ACEOF
36788 #line $LINENO "configure"
36789 /* confdefs.h. */
36790 _ACEOF
36791 cat confdefs.h >>conftest.$ac_ext
36792 cat >>conftest.$ac_ext <<_ACEOF
36793 /* end confdefs.h. */
36794 #include <sys/types.h>
36795 #include <sys/ioctl.h>
36796 #ifdef TIOCGWINSZ
36798 #endif
36800 _ACEOF
36801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36802 $EGREP "yes" >/dev/null 2>&1; then
36803 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
36804 else
36805 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
36807 rm -f conftest*
36810 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
36811 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
36813 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
36815 cat >>confdefs.h <<\_ACEOF
36816 #define GWINSZ_IN_SYS_IOCTL 1
36817 _ACEOF
36822 echo "$as_me:$LINENO: checking POSIX termios" >&5
36823 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
36824 if test "${ac_cv_sys_posix_termios+set}" = set; then
36825 echo $ECHO_N "(cached) $ECHO_C" >&6
36826 else
36827 cat >conftest.$ac_ext <<_ACEOF
36828 #line $LINENO "configure"
36829 /* confdefs.h. */
36830 _ACEOF
36831 cat confdefs.h >>conftest.$ac_ext
36832 cat >>conftest.$ac_ext <<_ACEOF
36833 /* end confdefs.h. */
36834 #include <sys/types.h>
36835 #include <unistd.h>
36836 #include <termios.h>
36839 main ()
36841 /* SunOS 4.0.3 has termios.h but not the library calls. */
36842 tcgetattr(0, 0);
36844 return 0;
36846 _ACEOF
36847 rm -f conftest.$ac_objext conftest$ac_exeext
36848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36849 (eval $ac_link) 2>&5
36850 ac_status=$?
36851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36852 (exit $ac_status); } &&
36853 { ac_try='test -s conftest$ac_exeext'
36854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36855 (eval $ac_try) 2>&5
36856 ac_status=$?
36857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36858 (exit $ac_status); }; }; then
36859 ac_cv_sys_posix_termios=yes
36860 else
36861 echo "$as_me: failed program was:" >&5
36862 sed 's/^/| /' conftest.$ac_ext >&5
36864 ac_cv_sys_posix_termios=no
36866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36868 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
36869 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
36872 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
36873 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
36874 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
36875 echo $ECHO_N "(cached) $ECHO_C" >&6
36876 else
36877 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
36878 if test $ac_cv_sys_posix_termios = yes; then
36879 cat >conftest.$ac_ext <<_ACEOF
36880 #line $LINENO "configure"
36881 /* confdefs.h. */
36882 _ACEOF
36883 cat confdefs.h >>conftest.$ac_ext
36884 cat >>conftest.$ac_ext <<_ACEOF
36885 /* end confdefs.h. */
36886 #include <termios.h>
36887 struct winsize x;
36889 main ()
36891 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
36893 return 0;
36895 _ACEOF
36896 rm -f conftest.$ac_objext
36897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36898 (eval $ac_compile) 2>&5
36899 ac_status=$?
36900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36901 (exit $ac_status); } &&
36902 { ac_try='test -s conftest.$ac_objext'
36903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36904 (eval $ac_try) 2>&5
36905 ac_status=$?
36906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36907 (exit $ac_status); }; }; then
36909 else
36910 echo "$as_me: failed program was:" >&5
36911 sed 's/^/| /' conftest.$ac_ext >&5
36914 rm -f conftest.$ac_objext conftest.$ac_ext
36916 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
36917 cat >conftest.$ac_ext <<_ACEOF
36918 #line $LINENO "configure"
36919 /* confdefs.h. */
36920 _ACEOF
36921 cat confdefs.h >>conftest.$ac_ext
36922 cat >>conftest.$ac_ext <<_ACEOF
36923 /* end confdefs.h. */
36924 #include <sys/ptem.h>
36926 main ()
36928 struct winsize x;
36930 return 0;
36932 _ACEOF
36933 rm -f conftest.$ac_objext
36934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36935 (eval $ac_compile) 2>&5
36936 ac_status=$?
36937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36938 (exit $ac_status); } &&
36939 { ac_try='test -s conftest.$ac_objext'
36940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36941 (eval $ac_try) 2>&5
36942 ac_status=$?
36943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944 (exit $ac_status); }; }; then
36946 else
36947 echo "$as_me: failed program was:" >&5
36948 sed 's/^/| /' conftest.$ac_ext >&5
36950 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
36952 rm -f conftest.$ac_objext conftest.$ac_ext
36955 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
36956 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
36957 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
36959 cat >>confdefs.h <<\_ACEOF
36960 #define WINSIZE_IN_PTEM 1
36961 _ACEOF
36965 # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
36966 # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
36967 # enable the work-around code in fsusage.c.
36968 echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
36969 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
36970 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
36971 echo $ECHO_N "(cached) $ECHO_C" >&6
36972 else
36973 cat >conftest.$ac_ext <<_ACEOF
36974 #line $LINENO "configure"
36975 /* confdefs.h. */
36976 _ACEOF
36977 cat confdefs.h >>conftest.$ac_ext
36978 cat >>conftest.$ac_ext <<_ACEOF
36979 /* end confdefs.h. */
36981 #if !defined(sun) && !defined(__sun)
36982 choke -- this is a workaround for a Sun-specific problem
36983 #endif
36984 #include <sys/types.h>
36985 #include <sys/vfs.h>
36987 main ()
36989 struct statfs t; long c = *(t.f_spare);
36991 return 0;
36993 _ACEOF
36994 rm -f conftest.$ac_objext
36995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36996 (eval $ac_compile) 2>&5
36997 ac_status=$?
36998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999 (exit $ac_status); } &&
37000 { ac_try='test -s conftest.$ac_objext'
37001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37002 (eval $ac_try) 2>&5
37003 ac_status=$?
37004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37005 (exit $ac_status); }; }; then
37006 fu_cv_sys_truncating_statfs=yes
37007 else
37008 echo "$as_me: failed program was:" >&5
37009 sed 's/^/| /' conftest.$ac_ext >&5
37011 fu_cv_sys_truncating_statfs=no
37013 rm -f conftest.$ac_objext conftest.$ac_ext
37016 if test $fu_cv_sys_truncating_statfs = yes; then
37018 cat >>confdefs.h <<\_ACEOF
37019 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
37020 _ACEOF
37023 echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
37024 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
37026 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
37027 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
37028 if test "${utils_cv_localtime_cache+set}" = set; then
37029 echo $ECHO_N "(cached) $ECHO_C" >&6
37030 else
37031 if test x$ac_cv_func_tzset = xyes; then
37032 if test "$cross_compiling" = yes; then
37033 # If we have tzset, assume the worst when cross-compiling.
37034 utils_cv_localtime_cache=yes
37035 else
37036 cat >conftest.$ac_ext <<_ACEOF
37037 #line $LINENO "configure"
37038 /* confdefs.h. */
37039 _ACEOF
37040 cat confdefs.h >>conftest.$ac_ext
37041 cat >>conftest.$ac_ext <<_ACEOF
37042 /* end confdefs.h. */
37043 #include <time.h>
37044 #if STDC_HEADERS
37045 # include <stdlib.h>
37046 #endif
37047 extern char **environ;
37048 unset_TZ ()
37050 char **from, **to;
37051 for (to = from = environ; (*to = *from); from++)
37052 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
37053 to++;
37055 main()
37057 time_t now = time ((time_t *) 0);
37058 int hour_GMT0, hour_unset;
37059 if (putenv ("TZ=GMT0") != 0)
37060 exit (1);
37061 hour_GMT0 = localtime (&now)->tm_hour;
37062 unset_TZ ();
37063 hour_unset = localtime (&now)->tm_hour;
37064 if (putenv ("TZ=PST8") != 0)
37065 exit (1);
37066 if (localtime (&now)->tm_hour == hour_GMT0)
37067 exit (1);
37068 unset_TZ ();
37069 if (localtime (&now)->tm_hour != hour_unset)
37070 exit (1);
37071 exit (0);
37073 _ACEOF
37074 rm -f conftest$ac_exeext
37075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37076 (eval $ac_link) 2>&5
37077 ac_status=$?
37078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37081 (eval $ac_try) 2>&5
37082 ac_status=$?
37083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37084 (exit $ac_status); }; }; then
37085 utils_cv_localtime_cache=no
37086 else
37087 echo "$as_me: program exited with status $ac_status" >&5
37088 echo "$as_me: failed program was:" >&5
37089 sed 's/^/| /' conftest.$ac_ext >&5
37091 ( exit $ac_status )
37092 utils_cv_localtime_cache=yes
37094 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37096 else
37097 # If we lack tzset, report that localtime does not cache TZ,
37098 # since we can't invalidate the cache if we don't have tzset.
37099 utils_cv_localtime_cache=no
37102 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
37103 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
37104 if test $utils_cv_localtime_cache = yes; then
37106 cat >>confdefs.h <<\_ACEOF
37107 #define LOCALTIME_CACHE 1
37108 _ACEOF
37112 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
37114 for ac_func in initgroups
37116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37117 echo "$as_me:$LINENO: checking for $ac_func" >&5
37118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37119 if eval "test \"\${$as_ac_var+set}\" = set"; then
37120 echo $ECHO_N "(cached) $ECHO_C" >&6
37121 else
37122 cat >conftest.$ac_ext <<_ACEOF
37123 #line $LINENO "configure"
37124 /* confdefs.h. */
37125 _ACEOF
37126 cat confdefs.h >>conftest.$ac_ext
37127 cat >>conftest.$ac_ext <<_ACEOF
37128 /* end confdefs.h. */
37129 /* System header to define __stub macros and hopefully few prototypes,
37130 which can conflict with char $ac_func (); below.
37131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37132 <limits.h> exists even on freestanding compilers. */
37133 #ifdef __STDC__
37134 # include <limits.h>
37135 #else
37136 # include <assert.h>
37137 #endif
37138 /* Override any gcc2 internal prototype to avoid an error. */
37139 #ifdef __cplusplus
37140 extern "C"
37142 #endif
37143 /* We use char because int might match the return type of a gcc2
37144 builtin and then its argument prototype would still apply. */
37145 char $ac_func ();
37146 /* The GNU C library defines this for functions which it implements
37147 to always fail with ENOSYS. Some functions are actually named
37148 something starting with __ and the normal name is an alias. */
37149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37150 choke me
37151 #else
37152 char (*f) () = $ac_func;
37153 #endif
37154 #ifdef __cplusplus
37156 #endif
37159 main ()
37161 return f != $ac_func;
37163 return 0;
37165 _ACEOF
37166 rm -f conftest.$ac_objext conftest$ac_exeext
37167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37168 (eval $ac_link) 2>&5
37169 ac_status=$?
37170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37171 (exit $ac_status); } &&
37172 { ac_try='test -s conftest$ac_exeext'
37173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37174 (eval $ac_try) 2>&5
37175 ac_status=$?
37176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177 (exit $ac_status); }; }; then
37178 eval "$as_ac_var=yes"
37179 else
37180 echo "$as_me: failed program was:" >&5
37181 sed 's/^/| /' conftest.$ac_ext >&5
37183 eval "$as_ac_var=no"
37185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37189 if test `eval echo '${'$as_ac_var'}'` = yes; then
37190 cat >>confdefs.h <<_ACEOF
37191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37192 _ACEOF
37195 done
37197 if test $ac_cv_func_initgroups = no; then
37199 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
37200 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
37201 if test "${ac_cv_lib_os_initgroups+set}" = set; then
37202 echo $ECHO_N "(cached) $ECHO_C" >&6
37203 else
37204 ac_check_lib_save_LIBS=$LIBS
37205 LIBS="-los $LIBS"
37206 cat >conftest.$ac_ext <<_ACEOF
37207 #line $LINENO "configure"
37208 /* confdefs.h. */
37209 _ACEOF
37210 cat confdefs.h >>conftest.$ac_ext
37211 cat >>conftest.$ac_ext <<_ACEOF
37212 /* end confdefs.h. */
37214 /* Override any gcc2 internal prototype to avoid an error. */
37215 #ifdef __cplusplus
37216 extern "C"
37217 #endif
37218 /* We use char because int might match the return type of a gcc2
37219 builtin and then its argument prototype would still apply. */
37220 char initgroups ();
37222 main ()
37224 initgroups ();
37226 return 0;
37228 _ACEOF
37229 rm -f conftest.$ac_objext conftest$ac_exeext
37230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37231 (eval $ac_link) 2>&5
37232 ac_status=$?
37233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37234 (exit $ac_status); } &&
37235 { ac_try='test -s conftest$ac_exeext'
37236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37237 (eval $ac_try) 2>&5
37238 ac_status=$?
37239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37240 (exit $ac_status); }; }; then
37241 ac_cv_lib_os_initgroups=yes
37242 else
37243 echo "$as_me: failed program was:" >&5
37244 sed 's/^/| /' conftest.$ac_ext >&5
37246 ac_cv_lib_os_initgroups=no
37248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37249 LIBS=$ac_check_lib_save_LIBS
37251 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
37252 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
37253 if test $ac_cv_lib_os_initgroups = yes; then
37254 cat >>confdefs.h <<_ACEOF
37255 #define HAVE_LIBOS 1
37256 _ACEOF
37258 LIBS="-los $LIBS"
37265 for ac_func in syslog
37267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37268 echo "$as_me:$LINENO: checking for $ac_func" >&5
37269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37270 if eval "test \"\${$as_ac_var+set}\" = set"; then
37271 echo $ECHO_N "(cached) $ECHO_C" >&6
37272 else
37273 cat >conftest.$ac_ext <<_ACEOF
37274 #line $LINENO "configure"
37275 /* confdefs.h. */
37276 _ACEOF
37277 cat confdefs.h >>conftest.$ac_ext
37278 cat >>conftest.$ac_ext <<_ACEOF
37279 /* end confdefs.h. */
37280 /* System header to define __stub macros and hopefully few prototypes,
37281 which can conflict with char $ac_func (); below.
37282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37283 <limits.h> exists even on freestanding compilers. */
37284 #ifdef __STDC__
37285 # include <limits.h>
37286 #else
37287 # include <assert.h>
37288 #endif
37289 /* Override any gcc2 internal prototype to avoid an error. */
37290 #ifdef __cplusplus
37291 extern "C"
37293 #endif
37294 /* We use char because int might match the return type of a gcc2
37295 builtin and then its argument prototype would still apply. */
37296 char $ac_func ();
37297 /* The GNU C library defines this for functions which it implements
37298 to always fail with ENOSYS. Some functions are actually named
37299 something starting with __ and the normal name is an alias. */
37300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37301 choke me
37302 #else
37303 char (*f) () = $ac_func;
37304 #endif
37305 #ifdef __cplusplus
37307 #endif
37310 main ()
37312 return f != $ac_func;
37314 return 0;
37316 _ACEOF
37317 rm -f conftest.$ac_objext conftest$ac_exeext
37318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37319 (eval $ac_link) 2>&5
37320 ac_status=$?
37321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322 (exit $ac_status); } &&
37323 { ac_try='test -s conftest$ac_exeext'
37324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37325 (eval $ac_try) 2>&5
37326 ac_status=$?
37327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37328 (exit $ac_status); }; }; then
37329 eval "$as_ac_var=yes"
37330 else
37331 echo "$as_me: failed program was:" >&5
37332 sed 's/^/| /' conftest.$ac_ext >&5
37334 eval "$as_ac_var=no"
37336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37340 if test `eval echo '${'$as_ac_var'}'` = yes; then
37341 cat >>confdefs.h <<_ACEOF
37342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37343 _ACEOF
37346 done
37348 if test $ac_cv_func_syslog = no; then
37349 # syslog is not in the default libraries. See if it's in some other.
37350 for lib in bsd socket inet; do
37351 as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
37352 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
37353 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
37354 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37355 echo $ECHO_N "(cached) $ECHO_C" >&6
37356 else
37357 ac_check_lib_save_LIBS=$LIBS
37358 LIBS="-l$lib $LIBS"
37359 cat >conftest.$ac_ext <<_ACEOF
37360 #line $LINENO "configure"
37361 /* confdefs.h. */
37362 _ACEOF
37363 cat confdefs.h >>conftest.$ac_ext
37364 cat >>conftest.$ac_ext <<_ACEOF
37365 /* end confdefs.h. */
37367 /* Override any gcc2 internal prototype to avoid an error. */
37368 #ifdef __cplusplus
37369 extern "C"
37370 #endif
37371 /* We use char because int might match the return type of a gcc2
37372 builtin and then its argument prototype would still apply. */
37373 char syslog ();
37375 main ()
37377 syslog ();
37379 return 0;
37381 _ACEOF
37382 rm -f conftest.$ac_objext conftest$ac_exeext
37383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37384 (eval $ac_link) 2>&5
37385 ac_status=$?
37386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37387 (exit $ac_status); } &&
37388 { ac_try='test -s conftest$ac_exeext'
37389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37390 (eval $ac_try) 2>&5
37391 ac_status=$?
37392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37393 (exit $ac_status); }; }; then
37394 eval "$as_ac_Lib=yes"
37395 else
37396 echo "$as_me: failed program was:" >&5
37397 sed 's/^/| /' conftest.$ac_ext >&5
37399 eval "$as_ac_Lib=no"
37401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37402 LIBS=$ac_check_lib_save_LIBS
37404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37405 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37406 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37408 cat >>confdefs.h <<\_ACEOF
37409 #define HAVE_SYSLOG 1
37410 _ACEOF
37412 LIBS="$LIBS -l$lib"; break
37415 done
37418 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
37419 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
37420 if test "${utils_cv_func_setpriority+set}" = set; then
37421 echo $ECHO_N "(cached) $ECHO_C" >&6
37422 else
37423 cat >conftest.$ac_ext <<_ACEOF
37424 #line $LINENO "configure"
37425 /* confdefs.h. */
37426 _ACEOF
37427 cat confdefs.h >>conftest.$ac_ext
37428 cat >>conftest.$ac_ext <<_ACEOF
37429 /* end confdefs.h. */
37430 #include <sys/time.h>
37431 #include <sys/resource.h>
37433 main ()
37435 setpriority(0, 0, 0);
37437 return 0;
37439 _ACEOF
37440 rm -f conftest.$ac_objext conftest$ac_exeext
37441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37442 (eval $ac_link) 2>&5
37443 ac_status=$?
37444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37445 (exit $ac_status); } &&
37446 { ac_try='test -s conftest$ac_exeext'
37447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37448 (eval $ac_try) 2>&5
37449 ac_status=$?
37450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451 (exit $ac_status); }; }; then
37452 utils_cv_func_setpriority=yes
37453 else
37454 echo "$as_me: failed program was:" >&5
37455 sed 's/^/| /' conftest.$ac_ext >&5
37457 utils_cv_func_setpriority=no
37459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37462 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
37463 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
37464 if test $utils_cv_func_setpriority = yes; then
37465 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice"
37466 OPTIONAL_BIN_ZCRIPTS="$OPTIONAL_BIN_ZCRIPTS nohup"
37467 MAN="$MAN nice.1 nohup.1"
37468 else
37469 echo "$as_me:$LINENO: checking for nice function" >&5
37470 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
37471 if test "${utils_cv_func_nice+set}" = set; then
37472 echo $ECHO_N "(cached) $ECHO_C" >&6
37473 else
37474 cat >conftest.$ac_ext <<_ACEOF
37475 #line $LINENO "configure"
37476 /* confdefs.h. */
37477 _ACEOF
37478 cat confdefs.h >>conftest.$ac_ext
37479 cat >>conftest.$ac_ext <<_ACEOF
37480 /* end confdefs.h. */
37483 main ()
37485 nice();
37487 return 0;
37489 _ACEOF
37490 rm -f conftest.$ac_objext conftest$ac_exeext
37491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37492 (eval $ac_link) 2>&5
37493 ac_status=$?
37494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37495 (exit $ac_status); } &&
37496 { ac_try='test -s conftest$ac_exeext'
37497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37498 (eval $ac_try) 2>&5
37499 ac_status=$?
37500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501 (exit $ac_status); }; }; then
37502 utils_cv_func_nice=yes
37503 else
37504 echo "$as_me: failed program was:" >&5
37505 sed 's/^/| /' conftest.$ac_ext >&5
37507 utils_cv_func_nice=no
37509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37512 echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
37513 echo "${ECHO_T}$utils_cv_func_nice" >&6
37514 if test $utils_cv_func_nice = yes; then
37516 cat >>confdefs.h <<\_ACEOF
37517 #define NICE_PRIORITY 1
37518 _ACEOF
37520 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice"
37521 OPTIONAL_BIN_ZCRIPTS="$OPTIONAL_BIN_ZCRIPTS nohup"
37522 MAN="$MAN nice.1 nohup.1"
37529 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
37530 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky users who"
37531 MAN="$MAN pinky.1 users.1 who.1"
37535 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
37536 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
37537 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
37538 echo $ECHO_N "(cached) $ECHO_C" >&6
37539 else
37540 cat >conftest.$ac_ext <<_ACEOF
37541 #line $LINENO "configure"
37542 /* confdefs.h. */
37543 _ACEOF
37544 cat confdefs.h >>conftest.$ac_ext
37545 cat >>conftest.$ac_ext <<_ACEOF
37546 /* end confdefs.h. */
37547 #include <sys/types.h>
37548 #include <utmp.h>
37550 main ()
37552 struct utmp ut; ut.ut_host;
37554 return 0;
37556 _ACEOF
37557 rm -f conftest.$ac_objext conftest$ac_exeext
37558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37559 (eval $ac_link) 2>&5
37560 ac_status=$?
37561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37562 (exit $ac_status); } &&
37563 { ac_try='test -s conftest$ac_exeext'
37564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37565 (eval $ac_try) 2>&5
37566 ac_status=$?
37567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37568 (exit $ac_status); }; }; then
37569 su_cv_func_ut_host_in_utmp=yes
37570 else
37571 echo "$as_me: failed program was:" >&5
37572 sed 's/^/| /' conftest.$ac_ext >&5
37574 su_cv_func_ut_host_in_utmp=no
37576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37579 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
37580 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
37581 if test $su_cv_func_ut_host_in_utmp = yes; then
37582 have_ut_host=1
37584 cat >>confdefs.h <<\_ACEOF
37585 #define HAVE_UT_HOST 1
37586 _ACEOF
37590 if test -z "$have_ut_host"; then
37591 echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
37592 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
37593 if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
37594 echo $ECHO_N "(cached) $ECHO_C" >&6
37595 else
37596 cat >conftest.$ac_ext <<_ACEOF
37597 #line $LINENO "configure"
37598 /* confdefs.h. */
37599 _ACEOF
37600 cat confdefs.h >>conftest.$ac_ext
37601 cat >>conftest.$ac_ext <<_ACEOF
37602 /* end confdefs.h. */
37603 #include <sys/types.h>
37604 #include <utmpx.h>
37606 main ()
37608 struct utmpx ut; ut.ut_host;
37610 return 0;
37612 _ACEOF
37613 rm -f conftest.$ac_objext conftest$ac_exeext
37614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37615 (eval $ac_link) 2>&5
37616 ac_status=$?
37617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618 (exit $ac_status); } &&
37619 { ac_try='test -s conftest$ac_exeext'
37620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37621 (eval $ac_try) 2>&5
37622 ac_status=$?
37623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37624 (exit $ac_status); }; }; then
37625 su_cv_func_ut_host_in_utmpx=yes
37626 else
37627 echo "$as_me: failed program was:" >&5
37628 sed 's/^/| /' conftest.$ac_ext >&5
37630 su_cv_func_ut_host_in_utmpx=no
37632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37635 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
37636 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
37637 if test $su_cv_func_ut_host_in_utmpx = yes; then
37639 cat >>confdefs.h <<\_ACEOF
37640 #define HAVE_UTMPX_H 1
37641 _ACEOF
37644 cat >>confdefs.h <<\_ACEOF
37645 #define HAVE_UT_HOST 1
37646 _ACEOF
37653 for ac_func in sysctl
37655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37656 echo "$as_me:$LINENO: checking for $ac_func" >&5
37657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37658 if eval "test \"\${$as_ac_var+set}\" = set"; then
37659 echo $ECHO_N "(cached) $ECHO_C" >&6
37660 else
37661 cat >conftest.$ac_ext <<_ACEOF
37662 #line $LINENO "configure"
37663 /* confdefs.h. */
37664 _ACEOF
37665 cat confdefs.h >>conftest.$ac_ext
37666 cat >>conftest.$ac_ext <<_ACEOF
37667 /* end confdefs.h. */
37668 /* System header to define __stub macros and hopefully few prototypes,
37669 which can conflict with char $ac_func (); below.
37670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37671 <limits.h> exists even on freestanding compilers. */
37672 #ifdef __STDC__
37673 # include <limits.h>
37674 #else
37675 # include <assert.h>
37676 #endif
37677 /* Override any gcc2 internal prototype to avoid an error. */
37678 #ifdef __cplusplus
37679 extern "C"
37681 #endif
37682 /* We use char because int might match the return type of a gcc2
37683 builtin and then its argument prototype would still apply. */
37684 char $ac_func ();
37685 /* The GNU C library defines this for functions which it implements
37686 to always fail with ENOSYS. Some functions are actually named
37687 something starting with __ and the normal name is an alias. */
37688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37689 choke me
37690 #else
37691 char (*f) () = $ac_func;
37692 #endif
37693 #ifdef __cplusplus
37695 #endif
37698 main ()
37700 return f != $ac_func;
37702 return 0;
37704 _ACEOF
37705 rm -f conftest.$ac_objext conftest$ac_exeext
37706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37707 (eval $ac_link) 2>&5
37708 ac_status=$?
37709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37710 (exit $ac_status); } &&
37711 { ac_try='test -s conftest$ac_exeext'
37712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37713 (eval $ac_try) 2>&5
37714 ac_status=$?
37715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37716 (exit $ac_status); }; }; then
37717 eval "$as_ac_var=yes"
37718 else
37719 echo "$as_me: failed program was:" >&5
37720 sed 's/^/| /' conftest.$ac_ext >&5
37722 eval "$as_ac_var=no"
37724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37728 if test `eval echo '${'$as_ac_var'}'` = yes; then
37729 cat >>confdefs.h <<_ACEOF
37730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37731 _ACEOF
37734 done
37737 for ac_header in sys/sysctl.h
37739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37741 echo "$as_me:$LINENO: checking for $ac_header" >&5
37742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37744 echo $ECHO_N "(cached) $ECHO_C" >&6
37746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37748 else
37749 # Is the header compilable?
37750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37752 cat >conftest.$ac_ext <<_ACEOF
37753 #line $LINENO "configure"
37754 /* confdefs.h. */
37755 _ACEOF
37756 cat confdefs.h >>conftest.$ac_ext
37757 cat >>conftest.$ac_ext <<_ACEOF
37758 /* end confdefs.h. */
37759 $ac_includes_default
37760 #include <$ac_header>
37761 _ACEOF
37762 rm -f conftest.$ac_objext
37763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37764 (eval $ac_compile) 2>&5
37765 ac_status=$?
37766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37767 (exit $ac_status); } &&
37768 { ac_try='test -s conftest.$ac_objext'
37769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37770 (eval $ac_try) 2>&5
37771 ac_status=$?
37772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773 (exit $ac_status); }; }; then
37774 ac_header_compiler=yes
37775 else
37776 echo "$as_me: failed program was:" >&5
37777 sed 's/^/| /' conftest.$ac_ext >&5
37779 ac_header_compiler=no
37781 rm -f conftest.$ac_objext conftest.$ac_ext
37782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37783 echo "${ECHO_T}$ac_header_compiler" >&6
37785 # Is the header present?
37786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37788 cat >conftest.$ac_ext <<_ACEOF
37789 #line $LINENO "configure"
37790 /* confdefs.h. */
37791 _ACEOF
37792 cat confdefs.h >>conftest.$ac_ext
37793 cat >>conftest.$ac_ext <<_ACEOF
37794 /* end confdefs.h. */
37795 #include <$ac_header>
37796 _ACEOF
37797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37799 ac_status=$?
37800 grep -v '^ *+' conftest.er1 >conftest.err
37801 rm -f conftest.er1
37802 cat conftest.err >&5
37803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37804 (exit $ac_status); } >/dev/null; then
37805 if test -s conftest.err; then
37806 ac_cpp_err=$ac_c_preproc_warn_flag
37807 else
37808 ac_cpp_err=
37810 else
37811 ac_cpp_err=yes
37813 if test -z "$ac_cpp_err"; then
37814 ac_header_preproc=yes
37815 else
37816 echo "$as_me: failed program was:" >&5
37817 sed 's/^/| /' conftest.$ac_ext >&5
37819 ac_header_preproc=no
37821 rm -f conftest.err conftest.$ac_ext
37822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37823 echo "${ECHO_T}$ac_header_preproc" >&6
37825 # So? What about this header?
37826 case $ac_header_compiler:$ac_header_preproc in
37827 yes:no )
37828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37833 cat <<\_ASBOX
37834 ## ------------------------------------ ##
37835 ## Report this to bug-autoconf@gnu.org. ##
37836 ## ------------------------------------ ##
37837 _ASBOX
37839 sed "s/^/$as_me: WARNING: /" >&2
37841 no:yes )
37842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37849 cat <<\_ASBOX
37850 ## ------------------------------------ ##
37851 ## Report this to bug-autoconf@gnu.org. ##
37852 ## ------------------------------------ ##
37853 _ASBOX
37855 sed "s/^/$as_me: WARNING: /" >&2
37857 esac
37858 echo "$as_me:$LINENO: checking for $ac_header" >&5
37859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37861 echo $ECHO_N "(cached) $ECHO_C" >&6
37862 else
37863 eval "$as_ac_Header=$ac_header_preproc"
37865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37870 cat >>confdefs.h <<_ACEOF
37871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37872 _ACEOF
37876 done
37878 echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
37879 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
37880 if test "${gnulib_cv_have_boot_time+set}" = set; then
37881 echo $ECHO_N "(cached) $ECHO_C" >&6
37882 else
37884 cat >conftest.$ac_ext <<_ACEOF
37885 #line $LINENO "configure"
37886 /* confdefs.h. */
37887 _ACEOF
37888 cat confdefs.h >>conftest.$ac_ext
37889 cat >>conftest.$ac_ext <<_ACEOF
37890 /* end confdefs.h. */
37891 $ac_includes_default
37892 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
37893 # include <sys/param.h> /* needed for OpenBSD 3.0 */
37894 # include <sys/sysctl.h>
37895 #endif
37896 #ifdef HAVE_UTMPX_H
37897 # include <utmpx.h>
37898 #else
37899 # include <utmp.h>
37900 #endif
37903 main ()
37906 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
37907 /* your system *does* have the infrastructure to determine boot time */
37908 #else
37909 please_tell_us_how_to_determine_boot_time_on_your_system
37910 #endif
37913 return 0;
37915 _ACEOF
37916 rm -f conftest.$ac_objext
37917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37918 (eval $ac_compile) 2>&5
37919 ac_status=$?
37920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37921 (exit $ac_status); } &&
37922 { ac_try='test -s conftest.$ac_objext'
37923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37924 (eval $ac_try) 2>&5
37925 ac_status=$?
37926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927 (exit $ac_status); }; }; then
37928 gnulib_cv_have_boot_time=yes
37929 else
37930 echo "$as_me: failed program was:" >&5
37931 sed 's/^/| /' conftest.$ac_ext >&5
37933 gnulib_cv_have_boot_time=no
37935 rm -f conftest.$ac_objext conftest.$ac_ext
37938 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
37939 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
37940 if test $gnulib_cv_have_boot_time = yes; then
37941 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime" MAN="$MAN uptime.1"
37946 echo "$as_me:$LINENO: checking POSIX termios" >&5
37947 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
37948 if test "${ac_cv_sys_posix_termios+set}" = set; then
37949 echo $ECHO_N "(cached) $ECHO_C" >&6
37950 else
37951 cat >conftest.$ac_ext <<_ACEOF
37952 #line $LINENO "configure"
37953 /* confdefs.h. */
37954 _ACEOF
37955 cat confdefs.h >>conftest.$ac_ext
37956 cat >>conftest.$ac_ext <<_ACEOF
37957 /* end confdefs.h. */
37958 #include <sys/types.h>
37959 #include <unistd.h>
37960 #include <termios.h>
37963 main ()
37965 /* SunOS 4.0.3 has termios.h but not the library calls. */
37966 tcgetattr(0, 0);
37968 return 0;
37970 _ACEOF
37971 rm -f conftest.$ac_objext conftest$ac_exeext
37972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37973 (eval $ac_link) 2>&5
37974 ac_status=$?
37975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976 (exit $ac_status); } &&
37977 { ac_try='test -s conftest$ac_exeext'
37978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37979 (eval $ac_try) 2>&5
37980 ac_status=$?
37981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982 (exit $ac_status); }; }; then
37983 ac_cv_sys_posix_termios=yes
37984 else
37985 echo "$as_me: failed program was:" >&5
37986 sed 's/^/| /' conftest.$ac_ext >&5
37988 ac_cv_sys_posix_termios=no
37990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37992 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
37993 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
37996 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
37997 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
37998 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
37999 echo $ECHO_N "(cached) $ECHO_C" >&6
38000 else
38001 jm_cv_sys_tiocgwinsz_needs_termios_h=no
38003 if test $ac_cv_sys_posix_termios = yes; then
38004 cat >conftest.$ac_ext <<_ACEOF
38005 #line $LINENO "configure"
38006 /* confdefs.h. */
38007 _ACEOF
38008 cat confdefs.h >>conftest.$ac_ext
38009 cat >>conftest.$ac_ext <<_ACEOF
38010 /* end confdefs.h. */
38011 #include <sys/types.h>
38012 # include <termios.h>
38013 # ifdef TIOCGWINSZ
38015 # endif
38017 _ACEOF
38018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38019 $EGREP "yes" >/dev/null 2>&1; then
38020 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
38022 rm -f conftest*
38027 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
38028 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
38031 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
38032 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
38033 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
38034 echo $ECHO_N "(cached) $ECHO_C" >&6
38035 else
38036 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
38038 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
38039 cat >conftest.$ac_ext <<_ACEOF
38040 #line $LINENO "configure"
38041 /* confdefs.h. */
38042 _ACEOF
38043 cat confdefs.h >>conftest.$ac_ext
38044 cat >>conftest.$ac_ext <<_ACEOF
38045 /* end confdefs.h. */
38046 #include <sys/types.h>
38047 # include <sys/ioctl.h>
38048 # ifdef TIOCGWINSZ
38050 # endif
38052 _ACEOF
38053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38054 $EGREP "yes" >/dev/null 2>&1; then
38055 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
38057 rm -f conftest*
38062 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
38063 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
38064 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
38066 cat >>confdefs.h <<\_ACEOF
38067 #define GWINSZ_IN_SYS_IOCTL 1
38068 _ACEOF
38073 if test $ac_cv_sys_posix_termios = yes; then
38074 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty" MAN="$MAN stty.1"
38076 echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
38077 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
38078 if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
38079 echo $ECHO_N "(cached) $ECHO_C" >&6
38080 else
38081 cat >conftest.$ac_ext <<_ACEOF
38082 #line $LINENO "configure"
38083 /* confdefs.h. */
38084 _ACEOF
38085 cat confdefs.h >>conftest.$ac_ext
38086 cat >>conftest.$ac_ext <<_ACEOF
38087 /* end confdefs.h. */
38088 #include <termios.h>
38089 #ifdef IUCLC
38091 #endif
38092 _ACEOF
38093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38094 $EGREP "yes" >/dev/null 2>&1; then
38095 su_cv_sys_termios_needs_xopen_source=no
38096 else
38097 cat >conftest.$ac_ext <<_ACEOF
38098 #line $LINENO "configure"
38099 /* confdefs.h. */
38100 _ACEOF
38101 cat confdefs.h >>conftest.$ac_ext
38102 cat >>conftest.$ac_ext <<_ACEOF
38103 /* end confdefs.h. */
38104 #define _XOPEN_SOURCE
38105 #include <termios.h>
38106 #ifdef IUCLC
38108 #endif
38109 _ACEOF
38110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38111 $EGREP "yes" >/dev/null 2>&1; then
38112 su_cv_sys_termios_needs_xopen_source=yes
38113 else
38114 su_cv_sys_termios_needs_xopen_source=no
38116 rm -f conftest*
38119 rm -f conftest*
38123 echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
38124 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
38125 test $su_cv_sys_termios_needs_xopen_source = yes &&
38127 cat >>confdefs.h <<\_ACEOF
38128 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
38129 _ACEOF
38132 echo "$as_me:$LINENO: checking c_line in struct termios" >&5
38133 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
38134 if test "${su_cv_sys_c_line_in_termios+set}" = set; then
38135 echo $ECHO_N "(cached) $ECHO_C" >&6
38136 else
38137 cat >conftest.$ac_ext <<_ACEOF
38138 #line $LINENO "configure"
38139 /* confdefs.h. */
38140 _ACEOF
38141 cat confdefs.h >>conftest.$ac_ext
38142 cat >>conftest.$ac_ext <<_ACEOF
38143 /* end confdefs.h. */
38144 #if TERMIOS_NEEDS_XOPEN_SOURCE
38145 #define _XOPEN_SOURCE
38146 #endif
38147 #include <sys/types.h>
38148 #include <termios.h>
38150 main ()
38152 struct termios t; t.c_line;
38154 return 0;
38156 _ACEOF
38157 rm -f conftest.$ac_objext conftest$ac_exeext
38158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38159 (eval $ac_link) 2>&5
38160 ac_status=$?
38161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38162 (exit $ac_status); } &&
38163 { ac_try='test -s conftest$ac_exeext'
38164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38165 (eval $ac_try) 2>&5
38166 ac_status=$?
38167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168 (exit $ac_status); }; }; then
38169 su_cv_sys_c_line_in_termios=yes
38170 else
38171 echo "$as_me: failed program was:" >&5
38172 sed 's/^/| /' conftest.$ac_ext >&5
38174 su_cv_sys_c_line_in_termios=no
38176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38179 echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
38180 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
38181 test $su_cv_sys_c_line_in_termios = yes \
38183 cat >>confdefs.h <<\_ACEOF
38184 #define HAVE_C_LINE 1
38185 _ACEOF
38189 # FIXME: note that this macro appears above, too.
38190 # I'm leaving it here for now. This whole thing needs to be modernized...
38192 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
38193 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
38194 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
38195 echo $ECHO_N "(cached) $ECHO_C" >&6
38196 else
38197 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
38198 if test $ac_cv_sys_posix_termios = yes; then
38199 cat >conftest.$ac_ext <<_ACEOF
38200 #line $LINENO "configure"
38201 /* confdefs.h. */
38202 _ACEOF
38203 cat confdefs.h >>conftest.$ac_ext
38204 cat >>conftest.$ac_ext <<_ACEOF
38205 /* end confdefs.h. */
38206 #include <termios.h>
38207 struct winsize x;
38209 main ()
38211 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
38213 return 0;
38215 _ACEOF
38216 rm -f conftest.$ac_objext
38217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38218 (eval $ac_compile) 2>&5
38219 ac_status=$?
38220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38221 (exit $ac_status); } &&
38222 { ac_try='test -s conftest.$ac_objext'
38223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38224 (eval $ac_try) 2>&5
38225 ac_status=$?
38226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38227 (exit $ac_status); }; }; then
38229 else
38230 echo "$as_me: failed program was:" >&5
38231 sed 's/^/| /' conftest.$ac_ext >&5
38234 rm -f conftest.$ac_objext conftest.$ac_ext
38236 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
38237 cat >conftest.$ac_ext <<_ACEOF
38238 #line $LINENO "configure"
38239 /* confdefs.h. */
38240 _ACEOF
38241 cat confdefs.h >>conftest.$ac_ext
38242 cat >>conftest.$ac_ext <<_ACEOF
38243 /* end confdefs.h. */
38244 #include <sys/ptem.h>
38246 main ()
38248 struct winsize x;
38250 return 0;
38252 _ACEOF
38253 rm -f conftest.$ac_objext
38254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38255 (eval $ac_compile) 2>&5
38256 ac_status=$?
38257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38258 (exit $ac_status); } &&
38259 { ac_try='test -s conftest.$ac_objext'
38260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38261 (eval $ac_try) 2>&5
38262 ac_status=$?
38263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38264 (exit $ac_status); }; }; then
38266 else
38267 echo "$as_me: failed program was:" >&5
38268 sed 's/^/| /' conftest.$ac_ext >&5
38270 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
38272 rm -f conftest.$ac_objext conftest.$ac_ext
38275 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
38276 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
38277 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
38279 cat >>confdefs.h <<\_ACEOF
38280 #define WINSIZE_IN_PTEM 1
38281 _ACEOF
38286 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
38287 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
38288 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
38289 echo $ECHO_N "(cached) $ECHO_C" >&6
38290 else
38291 jm_cv_sys_tiocgwinsz_needs_termios_h=no
38293 if test $ac_cv_sys_posix_termios = yes; then
38294 cat >conftest.$ac_ext <<_ACEOF
38295 #line $LINENO "configure"
38296 /* confdefs.h. */
38297 _ACEOF
38298 cat confdefs.h >>conftest.$ac_ext
38299 cat >>conftest.$ac_ext <<_ACEOF
38300 /* end confdefs.h. */
38301 #include <sys/types.h>
38302 # include <termios.h>
38303 # ifdef TIOCGWINSZ
38305 # endif
38307 _ACEOF
38308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38309 $EGREP "yes" >/dev/null 2>&1; then
38310 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
38312 rm -f conftest*
38317 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
38318 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
38321 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
38322 test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
38323 echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
38324 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
38325 if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
38326 echo $ECHO_N "(cached) $ECHO_C" >&6
38327 else
38328 cat >conftest.$ac_ext <<_ACEOF
38329 #line $LINENO "configure"
38330 /* confdefs.h. */
38331 _ACEOF
38332 cat confdefs.h >>conftest.$ac_ext
38333 cat >>conftest.$ac_ext <<_ACEOF
38334 /* end confdefs.h. */
38335 #include <sys/types.h>
38336 #ifdef WINSIZE_IN_PTEM
38337 # include <sys/stream.h>
38338 # include <sys/ptem.h>
38339 #endif
38340 #include <sys/ioctl.h>
38341 #include <sys/tty.h>
38342 #include <sys/pty.h>
38344 main ()
38346 int x = TIOCGWINSZ;
38348 return 0;
38350 _ACEOF
38351 rm -f conftest.$ac_objext conftest$ac_exeext
38352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38353 (eval $ac_link) 2>&5
38354 ac_status=$?
38355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38356 (exit $ac_status); } &&
38357 { ac_try='test -s conftest$ac_exeext'
38358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38359 (eval $ac_try) 2>&5
38360 ac_status=$?
38361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38362 (exit $ac_status); }; }; then
38363 su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
38364 else
38365 echo "$as_me: failed program was:" >&5
38366 sed 's/^/| /' conftest.$ac_ext >&5
38368 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
38370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38373 echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
38374 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
38376 test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
38378 cat >>confdefs.h <<\_ACEOF
38379 #define GWINSZ_IN_SYS_PTY 1
38380 _ACEOF
38384 # For src/kill.c.
38385 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
38386 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
38387 if test "${ac_cv_have_decl_strsignal+set}" = set; then
38388 echo $ECHO_N "(cached) $ECHO_C" >&6
38389 else
38390 cat >conftest.$ac_ext <<_ACEOF
38391 #line $LINENO "configure"
38392 /* confdefs.h. */
38393 _ACEOF
38394 cat confdefs.h >>conftest.$ac_ext
38395 cat >>conftest.$ac_ext <<_ACEOF
38396 /* end confdefs.h. */
38397 $ac_includes_default
38399 main ()
38401 #ifndef strsignal
38402 char *p = (char *) strsignal;
38403 #endif
38406 return 0;
38408 _ACEOF
38409 rm -f conftest.$ac_objext
38410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38411 (eval $ac_compile) 2>&5
38412 ac_status=$?
38413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38414 (exit $ac_status); } &&
38415 { ac_try='test -s conftest.$ac_objext'
38416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38417 (eval $ac_try) 2>&5
38418 ac_status=$?
38419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38420 (exit $ac_status); }; }; then
38421 ac_cv_have_decl_strsignal=yes
38422 else
38423 echo "$as_me: failed program was:" >&5
38424 sed 's/^/| /' conftest.$ac_ext >&5
38426 ac_cv_have_decl_strsignal=no
38428 rm -f conftest.$ac_objext conftest.$ac_ext
38430 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
38431 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
38432 if test $ac_cv_have_decl_strsignal = yes; then
38434 cat >>confdefs.h <<_ACEOF
38435 #define HAVE_DECL_STRSIGNAL 1
38436 _ACEOF
38439 else
38440 cat >>confdefs.h <<_ACEOF
38441 #define HAVE_DECL_STRSIGNAL 0
38442 _ACEOF
38446 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
38447 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
38448 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
38449 echo $ECHO_N "(cached) $ECHO_C" >&6
38450 else
38451 cat >conftest.$ac_ext <<_ACEOF
38452 #line $LINENO "configure"
38453 /* confdefs.h. */
38454 _ACEOF
38455 cat confdefs.h >>conftest.$ac_ext
38456 cat >>conftest.$ac_ext <<_ACEOF
38457 /* end confdefs.h. */
38458 $ac_includes_default
38460 main ()
38462 #ifndef strtoimax
38463 char *p = (char *) strtoimax;
38464 #endif
38467 return 0;
38469 _ACEOF
38470 rm -f conftest.$ac_objext
38471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38472 (eval $ac_compile) 2>&5
38473 ac_status=$?
38474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38475 (exit $ac_status); } &&
38476 { ac_try='test -s conftest.$ac_objext'
38477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38478 (eval $ac_try) 2>&5
38479 ac_status=$?
38480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38481 (exit $ac_status); }; }; then
38482 ac_cv_have_decl_strtoimax=yes
38483 else
38484 echo "$as_me: failed program was:" >&5
38485 sed 's/^/| /' conftest.$ac_ext >&5
38487 ac_cv_have_decl_strtoimax=no
38489 rm -f conftest.$ac_objext conftest.$ac_ext
38491 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
38492 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
38493 if test $ac_cv_have_decl_strtoimax = yes; then
38495 cat >>confdefs.h <<_ACEOF
38496 #define HAVE_DECL_STRTOIMAX 1
38497 _ACEOF
38500 else
38501 cat >>confdefs.h <<_ACEOF
38502 #define HAVE_DECL_STRTOIMAX 0
38503 _ACEOF
38507 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
38508 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
38509 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
38510 echo $ECHO_N "(cached) $ECHO_C" >&6
38511 else
38512 cat >conftest.$ac_ext <<_ACEOF
38513 #line $LINENO "configure"
38514 /* confdefs.h. */
38515 _ACEOF
38516 cat confdefs.h >>conftest.$ac_ext
38517 cat >>conftest.$ac_ext <<_ACEOF
38518 /* end confdefs.h. */
38519 $ac_includes_default
38521 main ()
38523 #ifndef sys_siglist
38524 char *p = (char *) sys_siglist;
38525 #endif
38528 return 0;
38530 _ACEOF
38531 rm -f conftest.$ac_objext
38532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38533 (eval $ac_compile) 2>&5
38534 ac_status=$?
38535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38536 (exit $ac_status); } &&
38537 { ac_try='test -s conftest.$ac_objext'
38538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38539 (eval $ac_try) 2>&5
38540 ac_status=$?
38541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38542 (exit $ac_status); }; }; then
38543 ac_cv_have_decl_sys_siglist=yes
38544 else
38545 echo "$as_me: failed program was:" >&5
38546 sed 's/^/| /' conftest.$ac_ext >&5
38548 ac_cv_have_decl_sys_siglist=no
38550 rm -f conftest.$ac_objext conftest.$ac_ext
38552 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
38553 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
38554 if test $ac_cv_have_decl_sys_siglist = yes; then
38556 cat >>confdefs.h <<_ACEOF
38557 #define HAVE_DECL_SYS_SIGLIST 1
38558 _ACEOF
38561 else
38562 cat >>confdefs.h <<_ACEOF
38563 #define HAVE_DECL_SYS_SIGLIST 0
38564 _ACEOF
38568 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
38569 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
38570 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
38571 echo $ECHO_N "(cached) $ECHO_C" >&6
38572 else
38573 cat >conftest.$ac_ext <<_ACEOF
38574 #line $LINENO "configure"
38575 /* confdefs.h. */
38576 _ACEOF
38577 cat confdefs.h >>conftest.$ac_ext
38578 cat >>conftest.$ac_ext <<_ACEOF
38579 /* end confdefs.h. */
38580 $ac_includes_default
38582 main ()
38584 #ifndef _sys_siglist
38585 char *p = (char *) _sys_siglist;
38586 #endif
38589 return 0;
38591 _ACEOF
38592 rm -f conftest.$ac_objext
38593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38594 (eval $ac_compile) 2>&5
38595 ac_status=$?
38596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597 (exit $ac_status); } &&
38598 { ac_try='test -s conftest.$ac_objext'
38599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38600 (eval $ac_try) 2>&5
38601 ac_status=$?
38602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38603 (exit $ac_status); }; }; then
38604 ac_cv_have_decl__sys_siglist=yes
38605 else
38606 echo "$as_me: failed program was:" >&5
38607 sed 's/^/| /' conftest.$ac_ext >&5
38609 ac_cv_have_decl__sys_siglist=no
38611 rm -f conftest.$ac_objext conftest.$ac_ext
38613 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
38614 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
38615 if test $ac_cv_have_decl__sys_siglist = yes; then
38617 cat >>confdefs.h <<_ACEOF
38618 #define HAVE_DECL__SYS_SIGLIST 1
38619 _ACEOF
38622 else
38623 cat >>confdefs.h <<_ACEOF
38624 #define HAVE_DECL__SYS_SIGLIST 0
38625 _ACEOF
38634 # Check for libypsec.a on Dolphin M88K machines.
38636 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
38637 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
38638 if test "${ac_cv_lib_ypsec_main+set}" = set; then
38639 echo $ECHO_N "(cached) $ECHO_C" >&6
38640 else
38641 ac_check_lib_save_LIBS=$LIBS
38642 LIBS="-lypsec $LIBS"
38643 cat >conftest.$ac_ext <<_ACEOF
38644 #line $LINENO "configure"
38645 /* confdefs.h. */
38646 _ACEOF
38647 cat confdefs.h >>conftest.$ac_ext
38648 cat >>conftest.$ac_ext <<_ACEOF
38649 /* end confdefs.h. */
38653 main ()
38655 main ();
38657 return 0;
38659 _ACEOF
38660 rm -f conftest.$ac_objext conftest$ac_exeext
38661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38662 (eval $ac_link) 2>&5
38663 ac_status=$?
38664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38665 (exit $ac_status); } &&
38666 { ac_try='test -s conftest$ac_exeext'
38667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38668 (eval $ac_try) 2>&5
38669 ac_status=$?
38670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38671 (exit $ac_status); }; }; then
38672 ac_cv_lib_ypsec_main=yes
38673 else
38674 echo "$as_me: failed program was:" >&5
38675 sed 's/^/| /' conftest.$ac_ext >&5
38677 ac_cv_lib_ypsec_main=no
38679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38680 LIBS=$ac_check_lib_save_LIBS
38682 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
38683 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
38684 if test $ac_cv_lib_ypsec_main = yes; then
38685 cat >>confdefs.h <<_ACEOF
38686 #define HAVE_LIBYPSEC 1
38687 _ACEOF
38689 LIBS="-lypsec $LIBS"
38694 # m88k running dgux 5.4 needs this
38696 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
38697 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
38698 if test "${ac_cv_lib_ldgc_main+set}" = set; then
38699 echo $ECHO_N "(cached) $ECHO_C" >&6
38700 else
38701 ac_check_lib_save_LIBS=$LIBS
38702 LIBS="-lldgc $LIBS"
38703 cat >conftest.$ac_ext <<_ACEOF
38704 #line $LINENO "configure"
38705 /* confdefs.h. */
38706 _ACEOF
38707 cat confdefs.h >>conftest.$ac_ext
38708 cat >>conftest.$ac_ext <<_ACEOF
38709 /* end confdefs.h. */
38713 main ()
38715 main ();
38717 return 0;
38719 _ACEOF
38720 rm -f conftest.$ac_objext conftest$ac_exeext
38721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38722 (eval $ac_link) 2>&5
38723 ac_status=$?
38724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38725 (exit $ac_status); } &&
38726 { ac_try='test -s conftest$ac_exeext'
38727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38728 (eval $ac_try) 2>&5
38729 ac_status=$?
38730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38731 (exit $ac_status); }; }; then
38732 ac_cv_lib_ldgc_main=yes
38733 else
38734 echo "$as_me: failed program was:" >&5
38735 sed 's/^/| /' conftest.$ac_ext >&5
38737 ac_cv_lib_ldgc_main=no
38739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38740 LIBS=$ac_check_lib_save_LIBS
38742 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
38743 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
38744 if test $ac_cv_lib_ldgc_main = yes; then
38745 cat >>confdefs.h <<_ACEOF
38746 #define HAVE_LIBLDGC 1
38747 _ACEOF
38749 LIBS="-lldgc $LIBS"
38754 # Some programs need to link with -lm. printf does if it uses
38755 # lib/strtod.c which uses pow. And seq uses the math functions,
38756 # floor, modf, rint. And factor uses sqrt. And sleep uses fesetround.
38758 # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
38759 # Check for these math functions used by seq.
38760 ac_su_saved_lib="$LIBS"
38761 LIBS="$LIBS -lm"
38765 for ac_func in floor modf rint
38767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38768 echo "$as_me:$LINENO: checking for $ac_func" >&5
38769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38770 if eval "test \"\${$as_ac_var+set}\" = set"; then
38771 echo $ECHO_N "(cached) $ECHO_C" >&6
38772 else
38773 cat >conftest.$ac_ext <<_ACEOF
38774 #line $LINENO "configure"
38775 /* confdefs.h. */
38776 _ACEOF
38777 cat confdefs.h >>conftest.$ac_ext
38778 cat >>conftest.$ac_ext <<_ACEOF
38779 /* end confdefs.h. */
38780 /* System header to define __stub macros and hopefully few prototypes,
38781 which can conflict with char $ac_func (); below.
38782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38783 <limits.h> exists even on freestanding compilers. */
38784 #ifdef __STDC__
38785 # include <limits.h>
38786 #else
38787 # include <assert.h>
38788 #endif
38789 /* Override any gcc2 internal prototype to avoid an error. */
38790 #ifdef __cplusplus
38791 extern "C"
38793 #endif
38794 /* We use char because int might match the return type of a gcc2
38795 builtin and then its argument prototype would still apply. */
38796 char $ac_func ();
38797 /* The GNU C library defines this for functions which it implements
38798 to always fail with ENOSYS. Some functions are actually named
38799 something starting with __ and the normal name is an alias. */
38800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38801 choke me
38802 #else
38803 char (*f) () = $ac_func;
38804 #endif
38805 #ifdef __cplusplus
38807 #endif
38810 main ()
38812 return f != $ac_func;
38814 return 0;
38816 _ACEOF
38817 rm -f conftest.$ac_objext conftest$ac_exeext
38818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38819 (eval $ac_link) 2>&5
38820 ac_status=$?
38821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38822 (exit $ac_status); } &&
38823 { ac_try='test -s conftest$ac_exeext'
38824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38825 (eval $ac_try) 2>&5
38826 ac_status=$?
38827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38828 (exit $ac_status); }; }; then
38829 eval "$as_ac_var=yes"
38830 else
38831 echo "$as_me: failed program was:" >&5
38832 sed 's/^/| /' conftest.$ac_ext >&5
38834 eval "$as_ac_var=no"
38836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38840 if test `eval echo '${'$as_ac_var'}'` = yes; then
38841 cat >>confdefs.h <<_ACEOF
38842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38843 _ACEOF
38846 done
38848 LIBS="$ac_su_saved_lib"
38852 for ac_func in sqrt
38854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38855 echo "$as_me:$LINENO: checking for $ac_func" >&5
38856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38857 if eval "test \"\${$as_ac_var+set}\" = set"; then
38858 echo $ECHO_N "(cached) $ECHO_C" >&6
38859 else
38860 cat >conftest.$ac_ext <<_ACEOF
38861 #line $LINENO "configure"
38862 /* confdefs.h. */
38863 _ACEOF
38864 cat confdefs.h >>conftest.$ac_ext
38865 cat >>conftest.$ac_ext <<_ACEOF
38866 /* end confdefs.h. */
38867 /* System header to define __stub macros and hopefully few prototypes,
38868 which can conflict with char $ac_func (); below.
38869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38870 <limits.h> exists even on freestanding compilers. */
38871 #ifdef __STDC__
38872 # include <limits.h>
38873 #else
38874 # include <assert.h>
38875 #endif
38876 /* Override any gcc2 internal prototype to avoid an error. */
38877 #ifdef __cplusplus
38878 extern "C"
38880 #endif
38881 /* We use char because int might match the return type of a gcc2
38882 builtin and then its argument prototype would still apply. */
38883 char $ac_func ();
38884 /* The GNU C library defines this for functions which it implements
38885 to always fail with ENOSYS. Some functions are actually named
38886 something starting with __ and the normal name is an alias. */
38887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38888 choke me
38889 #else
38890 char (*f) () = $ac_func;
38891 #endif
38892 #ifdef __cplusplus
38894 #endif
38897 main ()
38899 return f != $ac_func;
38901 return 0;
38903 _ACEOF
38904 rm -f conftest.$ac_objext conftest$ac_exeext
38905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38906 (eval $ac_link) 2>&5
38907 ac_status=$?
38908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38909 (exit $ac_status); } &&
38910 { ac_try='test -s conftest$ac_exeext'
38911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38912 (eval $ac_try) 2>&5
38913 ac_status=$?
38914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38915 (exit $ac_status); }; }; then
38916 eval "$as_ac_var=yes"
38917 else
38918 echo "$as_me: failed program was:" >&5
38919 sed 's/^/| /' conftest.$ac_ext >&5
38921 eval "$as_ac_var=no"
38923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38927 if test `eval echo '${'$as_ac_var'}'` = yes; then
38928 cat >>confdefs.h <<_ACEOF
38929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38930 _ACEOF
38933 done
38935 if test $ac_cv_func_sqrt = no; then
38936 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
38937 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
38938 if test "${ac_cv_lib_m_sqrt+set}" = set; then
38939 echo $ECHO_N "(cached) $ECHO_C" >&6
38940 else
38941 ac_check_lib_save_LIBS=$LIBS
38942 LIBS="-lm $LIBS"
38943 cat >conftest.$ac_ext <<_ACEOF
38944 #line $LINENO "configure"
38945 /* confdefs.h. */
38946 _ACEOF
38947 cat confdefs.h >>conftest.$ac_ext
38948 cat >>conftest.$ac_ext <<_ACEOF
38949 /* end confdefs.h. */
38951 /* Override any gcc2 internal prototype to avoid an error. */
38952 #ifdef __cplusplus
38953 extern "C"
38954 #endif
38955 /* We use char because int might match the return type of a gcc2
38956 builtin and then its argument prototype would still apply. */
38957 char sqrt ();
38959 main ()
38961 sqrt ();
38963 return 0;
38965 _ACEOF
38966 rm -f conftest.$ac_objext conftest$ac_exeext
38967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38968 (eval $ac_link) 2>&5
38969 ac_status=$?
38970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38971 (exit $ac_status); } &&
38972 { ac_try='test -s conftest$ac_exeext'
38973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38974 (eval $ac_try) 2>&5
38975 ac_status=$?
38976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38977 (exit $ac_status); }; }; then
38978 ac_cv_lib_m_sqrt=yes
38979 else
38980 echo "$as_me: failed program was:" >&5
38981 sed 's/^/| /' conftest.$ac_ext >&5
38983 ac_cv_lib_m_sqrt=no
38985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38986 LIBS=$ac_check_lib_save_LIBS
38988 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
38989 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
38990 if test $ac_cv_lib_m_sqrt = yes; then
38991 SQRT_LIBM=-lm
38998 for ac_func in fesetround
39000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39001 echo "$as_me:$LINENO: checking for $ac_func" >&5
39002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39003 if eval "test \"\${$as_ac_var+set}\" = set"; then
39004 echo $ECHO_N "(cached) $ECHO_C" >&6
39005 else
39006 cat >conftest.$ac_ext <<_ACEOF
39007 #line $LINENO "configure"
39008 /* confdefs.h. */
39009 _ACEOF
39010 cat confdefs.h >>conftest.$ac_ext
39011 cat >>conftest.$ac_ext <<_ACEOF
39012 /* end confdefs.h. */
39013 /* System header to define __stub macros and hopefully few prototypes,
39014 which can conflict with char $ac_func (); below.
39015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39016 <limits.h> exists even on freestanding compilers. */
39017 #ifdef __STDC__
39018 # include <limits.h>
39019 #else
39020 # include <assert.h>
39021 #endif
39022 /* Override any gcc2 internal prototype to avoid an error. */
39023 #ifdef __cplusplus
39024 extern "C"
39026 #endif
39027 /* We use char because int might match the return type of a gcc2
39028 builtin and then its argument prototype would still apply. */
39029 char $ac_func ();
39030 /* The GNU C library defines this for functions which it implements
39031 to always fail with ENOSYS. Some functions are actually named
39032 something starting with __ and the normal name is an alias. */
39033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39034 choke me
39035 #else
39036 char (*f) () = $ac_func;
39037 #endif
39038 #ifdef __cplusplus
39040 #endif
39043 main ()
39045 return f != $ac_func;
39047 return 0;
39049 _ACEOF
39050 rm -f conftest.$ac_objext conftest$ac_exeext
39051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39052 (eval $ac_link) 2>&5
39053 ac_status=$?
39054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39055 (exit $ac_status); } &&
39056 { ac_try='test -s conftest$ac_exeext'
39057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39058 (eval $ac_try) 2>&5
39059 ac_status=$?
39060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39061 (exit $ac_status); }; }; then
39062 eval "$as_ac_var=yes"
39063 else
39064 echo "$as_me: failed program was:" >&5
39065 sed 's/^/| /' conftest.$ac_ext >&5
39067 eval "$as_ac_var=no"
39069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39073 if test `eval echo '${'$as_ac_var'}'` = yes; then
39074 cat >>confdefs.h <<_ACEOF
39075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39076 _ACEOF
39079 done
39081 if test $ac_cv_func_fesetround = no; then
39082 echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
39083 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
39084 if test "${ac_cv_lib_m_fesetround+set}" = set; then
39085 echo $ECHO_N "(cached) $ECHO_C" >&6
39086 else
39087 ac_check_lib_save_LIBS=$LIBS
39088 LIBS="-lm $LIBS"
39089 cat >conftest.$ac_ext <<_ACEOF
39090 #line $LINENO "configure"
39091 /* confdefs.h. */
39092 _ACEOF
39093 cat confdefs.h >>conftest.$ac_ext
39094 cat >>conftest.$ac_ext <<_ACEOF
39095 /* end confdefs.h. */
39097 /* Override any gcc2 internal prototype to avoid an error. */
39098 #ifdef __cplusplus
39099 extern "C"
39100 #endif
39101 /* We use char because int might match the return type of a gcc2
39102 builtin and then its argument prototype would still apply. */
39103 char fesetround ();
39105 main ()
39107 fesetround ();
39109 return 0;
39111 _ACEOF
39112 rm -f conftest.$ac_objext conftest$ac_exeext
39113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39114 (eval $ac_link) 2>&5
39115 ac_status=$?
39116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39117 (exit $ac_status); } &&
39118 { ac_try='test -s conftest$ac_exeext'
39119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39120 (eval $ac_try) 2>&5
39121 ac_status=$?
39122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39123 (exit $ac_status); }; }; then
39124 ac_cv_lib_m_fesetround=yes
39125 else
39126 echo "$as_me: failed program was:" >&5
39127 sed 's/^/| /' conftest.$ac_ext >&5
39129 ac_cv_lib_m_fesetround=no
39131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39132 LIBS=$ac_check_lib_save_LIBS
39134 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
39135 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
39136 if test $ac_cv_lib_m_fesetround = yes; then
39137 FESETROUND_LIBM=-lm
39142 # The -lsun library is required for YP support on Irix-4.0.5 systems.
39143 # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
39145 echo "$as_me:$LINENO: checking for library containing yp_match" >&5
39146 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
39147 if test "${ac_cv_search_yp_match+set}" = set; then
39148 echo $ECHO_N "(cached) $ECHO_C" >&6
39149 else
39151 ac_func_search_save_LIBS=$LIBS
39152 ac_cv_search_yp_match=no
39153 cat >conftest.$ac_ext <<_ACEOF
39154 #line $LINENO "configure"
39155 /* confdefs.h. */
39156 _ACEOF
39157 cat confdefs.h >>conftest.$ac_ext
39158 cat >>conftest.$ac_ext <<_ACEOF
39159 /* end confdefs.h. */
39161 /* Override any gcc2 internal prototype to avoid an error. */
39162 #ifdef __cplusplus
39163 extern "C"
39164 #endif
39165 /* We use char because int might match the return type of a gcc2
39166 builtin and then its argument prototype would still apply. */
39167 char yp_match ();
39169 main ()
39171 yp_match ();
39173 return 0;
39175 _ACEOF
39176 rm -f conftest.$ac_objext conftest$ac_exeext
39177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39178 (eval $ac_link) 2>&5
39179 ac_status=$?
39180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39181 (exit $ac_status); } &&
39182 { ac_try='test -s conftest$ac_exeext'
39183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39184 (eval $ac_try) 2>&5
39185 ac_status=$?
39186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39187 (exit $ac_status); }; }; then
39188 ac_cv_search_yp_match='none required'
39189 else
39190 echo "$as_me: failed program was:" >&5
39191 sed 's/^/| /' conftest.$ac_ext >&5
39194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39195 if test "$ac_cv_search_yp_match" = no; then
39196 for ac_lib in sun ypsec; do
39197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39198 cat >conftest.$ac_ext <<_ACEOF
39199 #line $LINENO "configure"
39200 /* confdefs.h. */
39201 _ACEOF
39202 cat confdefs.h >>conftest.$ac_ext
39203 cat >>conftest.$ac_ext <<_ACEOF
39204 /* end confdefs.h. */
39206 /* Override any gcc2 internal prototype to avoid an error. */
39207 #ifdef __cplusplus
39208 extern "C"
39209 #endif
39210 /* We use char because int might match the return type of a gcc2
39211 builtin and then its argument prototype would still apply. */
39212 char yp_match ();
39214 main ()
39216 yp_match ();
39218 return 0;
39220 _ACEOF
39221 rm -f conftest.$ac_objext conftest$ac_exeext
39222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39223 (eval $ac_link) 2>&5
39224 ac_status=$?
39225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39226 (exit $ac_status); } &&
39227 { ac_try='test -s conftest$ac_exeext'
39228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39229 (eval $ac_try) 2>&5
39230 ac_status=$?
39231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39232 (exit $ac_status); }; }; then
39233 ac_cv_search_yp_match="-l$ac_lib"; break
39234 else
39235 echo "$as_me: failed program was:" >&5
39236 sed 's/^/| /' conftest.$ac_ext >&5
39239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39240 done
39242 LIBS=$ac_func_search_save_LIBS
39245 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
39246 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
39248 if test "$ac_cv_search_yp_match" = no; then :
39250 else
39251 if test "$ac_cv_search_yp_match" = 'none required'; then :
39253 else
39254 LIBS="$ac_cv_search_yp_match $LIBS"
39260 # SysV needs -lsec, older versions of Linux need -lshadow for
39261 # shadow passwords. UnixWare 7 needs -lgen.
39263 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
39264 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
39265 if test "${ac_cv_search_getspnam+set}" = set; then
39266 echo $ECHO_N "(cached) $ECHO_C" >&6
39267 else
39269 ac_func_search_save_LIBS=$LIBS
39270 ac_cv_search_getspnam=no
39271 cat >conftest.$ac_ext <<_ACEOF
39272 #line $LINENO "configure"
39273 /* confdefs.h. */
39274 _ACEOF
39275 cat confdefs.h >>conftest.$ac_ext
39276 cat >>conftest.$ac_ext <<_ACEOF
39277 /* end confdefs.h. */
39279 /* Override any gcc2 internal prototype to avoid an error. */
39280 #ifdef __cplusplus
39281 extern "C"
39282 #endif
39283 /* We use char because int might match the return type of a gcc2
39284 builtin and then its argument prototype would still apply. */
39285 char getspnam ();
39287 main ()
39289 getspnam ();
39291 return 0;
39293 _ACEOF
39294 rm -f conftest.$ac_objext conftest$ac_exeext
39295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39296 (eval $ac_link) 2>&5
39297 ac_status=$?
39298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39299 (exit $ac_status); } &&
39300 { ac_try='test -s conftest$ac_exeext'
39301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39302 (eval $ac_try) 2>&5
39303 ac_status=$?
39304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39305 (exit $ac_status); }; }; then
39306 ac_cv_search_getspnam='none required'
39307 else
39308 echo "$as_me: failed program was:" >&5
39309 sed 's/^/| /' conftest.$ac_ext >&5
39312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39313 if test "$ac_cv_search_getspnam" = no; then
39314 for ac_lib in shadow sec gen; do
39315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39316 cat >conftest.$ac_ext <<_ACEOF
39317 #line $LINENO "configure"
39318 /* confdefs.h. */
39319 _ACEOF
39320 cat confdefs.h >>conftest.$ac_ext
39321 cat >>conftest.$ac_ext <<_ACEOF
39322 /* end confdefs.h. */
39324 /* Override any gcc2 internal prototype to avoid an error. */
39325 #ifdef __cplusplus
39326 extern "C"
39327 #endif
39328 /* We use char because int might match the return type of a gcc2
39329 builtin and then its argument prototype would still apply. */
39330 char getspnam ();
39332 main ()
39334 getspnam ();
39336 return 0;
39338 _ACEOF
39339 rm -f conftest.$ac_objext conftest$ac_exeext
39340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39341 (eval $ac_link) 2>&5
39342 ac_status=$?
39343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39344 (exit $ac_status); } &&
39345 { ac_try='test -s conftest$ac_exeext'
39346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39347 (eval $ac_try) 2>&5
39348 ac_status=$?
39349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39350 (exit $ac_status); }; }; then
39351 ac_cv_search_getspnam="-l$ac_lib"; break
39352 else
39353 echo "$as_me: failed program was:" >&5
39354 sed 's/^/| /' conftest.$ac_ext >&5
39357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39358 done
39360 LIBS=$ac_func_search_save_LIBS
39363 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
39364 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
39366 if test "$ac_cv_search_getspnam" = no; then :
39368 else
39369 if test "$ac_cv_search_getspnam" = 'none required'; then :
39371 else
39372 LIBS="$ac_cv_search_getspnam $LIBS"
39379 for ac_header in shadow.h
39381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39383 echo "$as_me:$LINENO: checking for $ac_header" >&5
39384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39386 echo $ECHO_N "(cached) $ECHO_C" >&6
39388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39390 else
39391 # Is the header compilable?
39392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39394 cat >conftest.$ac_ext <<_ACEOF
39395 #line $LINENO "configure"
39396 /* confdefs.h. */
39397 _ACEOF
39398 cat confdefs.h >>conftest.$ac_ext
39399 cat >>conftest.$ac_ext <<_ACEOF
39400 /* end confdefs.h. */
39401 $ac_includes_default
39402 #include <$ac_header>
39403 _ACEOF
39404 rm -f conftest.$ac_objext
39405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39406 (eval $ac_compile) 2>&5
39407 ac_status=$?
39408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39409 (exit $ac_status); } &&
39410 { ac_try='test -s conftest.$ac_objext'
39411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39412 (eval $ac_try) 2>&5
39413 ac_status=$?
39414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39415 (exit $ac_status); }; }; then
39416 ac_header_compiler=yes
39417 else
39418 echo "$as_me: failed program was:" >&5
39419 sed 's/^/| /' conftest.$ac_ext >&5
39421 ac_header_compiler=no
39423 rm -f conftest.$ac_objext conftest.$ac_ext
39424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39425 echo "${ECHO_T}$ac_header_compiler" >&6
39427 # Is the header present?
39428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39430 cat >conftest.$ac_ext <<_ACEOF
39431 #line $LINENO "configure"
39432 /* confdefs.h. */
39433 _ACEOF
39434 cat confdefs.h >>conftest.$ac_ext
39435 cat >>conftest.$ac_ext <<_ACEOF
39436 /* end confdefs.h. */
39437 #include <$ac_header>
39438 _ACEOF
39439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39441 ac_status=$?
39442 grep -v '^ *+' conftest.er1 >conftest.err
39443 rm -f conftest.er1
39444 cat conftest.err >&5
39445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39446 (exit $ac_status); } >/dev/null; then
39447 if test -s conftest.err; then
39448 ac_cpp_err=$ac_c_preproc_warn_flag
39449 else
39450 ac_cpp_err=
39452 else
39453 ac_cpp_err=yes
39455 if test -z "$ac_cpp_err"; then
39456 ac_header_preproc=yes
39457 else
39458 echo "$as_me: failed program was:" >&5
39459 sed 's/^/| /' conftest.$ac_ext >&5
39461 ac_header_preproc=no
39463 rm -f conftest.err conftest.$ac_ext
39464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39465 echo "${ECHO_T}$ac_header_preproc" >&6
39467 # So? What about this header?
39468 case $ac_header_compiler:$ac_header_preproc in
39469 yes:no )
39470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39475 cat <<\_ASBOX
39476 ## ------------------------------------ ##
39477 ## Report this to bug-autoconf@gnu.org. ##
39478 ## ------------------------------------ ##
39479 _ASBOX
39481 sed "s/^/$as_me: WARNING: /" >&2
39483 no:yes )
39484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39491 cat <<\_ASBOX
39492 ## ------------------------------------ ##
39493 ## Report this to bug-autoconf@gnu.org. ##
39494 ## ------------------------------------ ##
39495 _ASBOX
39497 sed "s/^/$as_me: WARNING: /" >&2
39499 esac
39500 echo "$as_me:$LINENO: checking for $ac_header" >&5
39501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39503 echo $ECHO_N "(cached) $ECHO_C" >&6
39504 else
39505 eval "$as_ac_Header=$ac_header_preproc"
39507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39512 cat >>confdefs.h <<_ACEOF
39513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39514 _ACEOF
39518 done
39521 # Requirements for su.c.
39522 shadow_includes="\
39523 $ac_includes_default
39524 #if HAVE_SHADOW_H
39525 # include <shadow.h>
39526 #endif
39528 echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
39529 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
39530 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
39531 echo $ECHO_N "(cached) $ECHO_C" >&6
39532 else
39533 cat >conftest.$ac_ext <<_ACEOF
39534 #line $LINENO "configure"
39535 /* confdefs.h. */
39536 _ACEOF
39537 cat confdefs.h >>conftest.$ac_ext
39538 cat >>conftest.$ac_ext <<_ACEOF
39539 /* end confdefs.h. */
39540 $shadow_includes
39543 main ()
39545 static struct spwd ac_aggr;
39546 if (ac_aggr.sp_pwdp)
39547 return 0;
39549 return 0;
39551 _ACEOF
39552 rm -f conftest.$ac_objext
39553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39554 (eval $ac_compile) 2>&5
39555 ac_status=$?
39556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39557 (exit $ac_status); } &&
39558 { ac_try='test -s conftest.$ac_objext'
39559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39560 (eval $ac_try) 2>&5
39561 ac_status=$?
39562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39563 (exit $ac_status); }; }; then
39564 ac_cv_member_struct_spwd_sp_pwdp=yes
39565 else
39566 echo "$as_me: failed program was:" >&5
39567 sed 's/^/| /' conftest.$ac_ext >&5
39569 cat >conftest.$ac_ext <<_ACEOF
39570 #line $LINENO "configure"
39571 /* confdefs.h. */
39572 _ACEOF
39573 cat confdefs.h >>conftest.$ac_ext
39574 cat >>conftest.$ac_ext <<_ACEOF
39575 /* end confdefs.h. */
39576 $shadow_includes
39579 main ()
39581 static struct spwd ac_aggr;
39582 if (sizeof ac_aggr.sp_pwdp)
39583 return 0;
39585 return 0;
39587 _ACEOF
39588 rm -f conftest.$ac_objext
39589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39590 (eval $ac_compile) 2>&5
39591 ac_status=$?
39592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593 (exit $ac_status); } &&
39594 { ac_try='test -s conftest.$ac_objext'
39595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39596 (eval $ac_try) 2>&5
39597 ac_status=$?
39598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39599 (exit $ac_status); }; }; then
39600 ac_cv_member_struct_spwd_sp_pwdp=yes
39601 else
39602 echo "$as_me: failed program was:" >&5
39603 sed 's/^/| /' conftest.$ac_ext >&5
39605 ac_cv_member_struct_spwd_sp_pwdp=no
39607 rm -f conftest.$ac_objext conftest.$ac_ext
39609 rm -f conftest.$ac_objext conftest.$ac_ext
39611 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
39612 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
39613 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
39615 cat >>confdefs.h <<_ACEOF
39616 #define HAVE_STRUCT_SPWD_SP_PWDP 1
39617 _ACEOF
39623 for ac_func in getspnam
39625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39626 echo "$as_me:$LINENO: checking for $ac_func" >&5
39627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39628 if eval "test \"\${$as_ac_var+set}\" = set"; then
39629 echo $ECHO_N "(cached) $ECHO_C" >&6
39630 else
39631 cat >conftest.$ac_ext <<_ACEOF
39632 #line $LINENO "configure"
39633 /* confdefs.h. */
39634 _ACEOF
39635 cat confdefs.h >>conftest.$ac_ext
39636 cat >>conftest.$ac_ext <<_ACEOF
39637 /* end confdefs.h. */
39638 /* System header to define __stub macros and hopefully few prototypes,
39639 which can conflict with char $ac_func (); below.
39640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39641 <limits.h> exists even on freestanding compilers. */
39642 #ifdef __STDC__
39643 # include <limits.h>
39644 #else
39645 # include <assert.h>
39646 #endif
39647 /* Override any gcc2 internal prototype to avoid an error. */
39648 #ifdef __cplusplus
39649 extern "C"
39651 #endif
39652 /* We use char because int might match the return type of a gcc2
39653 builtin and then its argument prototype would still apply. */
39654 char $ac_func ();
39655 /* The GNU C library defines this for functions which it implements
39656 to always fail with ENOSYS. Some functions are actually named
39657 something starting with __ and the normal name is an alias. */
39658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39659 choke me
39660 #else
39661 char (*f) () = $ac_func;
39662 #endif
39663 #ifdef __cplusplus
39665 #endif
39668 main ()
39670 return f != $ac_func;
39672 return 0;
39674 _ACEOF
39675 rm -f conftest.$ac_objext conftest$ac_exeext
39676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39677 (eval $ac_link) 2>&5
39678 ac_status=$?
39679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39680 (exit $ac_status); } &&
39681 { ac_try='test -s conftest$ac_exeext'
39682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39683 (eval $ac_try) 2>&5
39684 ac_status=$?
39685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39686 (exit $ac_status); }; }; then
39687 eval "$as_ac_var=yes"
39688 else
39689 echo "$as_me: failed program was:" >&5
39690 sed 's/^/| /' conftest.$ac_ext >&5
39692 eval "$as_ac_var=no"
39694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39698 if test `eval echo '${'$as_ac_var'}'` = yes; then
39699 cat >>confdefs.h <<_ACEOF
39700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39701 _ACEOF
39704 done
39707 # SCO-ODT-3.0 is reported to need -lufc for crypt.
39708 # NetBSD needs -lcrypt for crypt.
39709 ac_su_saved_lib="$LIBS"
39711 echo "$as_me:$LINENO: checking for library containing crypt" >&5
39712 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
39713 if test "${ac_cv_search_crypt+set}" = set; then
39714 echo $ECHO_N "(cached) $ECHO_C" >&6
39715 else
39717 ac_func_search_save_LIBS=$LIBS
39718 ac_cv_search_crypt=no
39719 cat >conftest.$ac_ext <<_ACEOF
39720 #line $LINENO "configure"
39721 /* confdefs.h. */
39722 _ACEOF
39723 cat confdefs.h >>conftest.$ac_ext
39724 cat >>conftest.$ac_ext <<_ACEOF
39725 /* end confdefs.h. */
39727 /* Override any gcc2 internal prototype to avoid an error. */
39728 #ifdef __cplusplus
39729 extern "C"
39730 #endif
39731 /* We use char because int might match the return type of a gcc2
39732 builtin and then its argument prototype would still apply. */
39733 char crypt ();
39735 main ()
39737 crypt ();
39739 return 0;
39741 _ACEOF
39742 rm -f conftest.$ac_objext conftest$ac_exeext
39743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39744 (eval $ac_link) 2>&5
39745 ac_status=$?
39746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39747 (exit $ac_status); } &&
39748 { ac_try='test -s conftest$ac_exeext'
39749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39750 (eval $ac_try) 2>&5
39751 ac_status=$?
39752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39753 (exit $ac_status); }; }; then
39754 ac_cv_search_crypt='none required'
39755 else
39756 echo "$as_me: failed program was:" >&5
39757 sed 's/^/| /' conftest.$ac_ext >&5
39760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39761 if test "$ac_cv_search_crypt" = no; then
39762 for ac_lib in ufc crypt; do
39763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39764 cat >conftest.$ac_ext <<_ACEOF
39765 #line $LINENO "configure"
39766 /* confdefs.h. */
39767 _ACEOF
39768 cat confdefs.h >>conftest.$ac_ext
39769 cat >>conftest.$ac_ext <<_ACEOF
39770 /* end confdefs.h. */
39772 /* Override any gcc2 internal prototype to avoid an error. */
39773 #ifdef __cplusplus
39774 extern "C"
39775 #endif
39776 /* We use char because int might match the return type of a gcc2
39777 builtin and then its argument prototype would still apply. */
39778 char crypt ();
39780 main ()
39782 crypt ();
39784 return 0;
39786 _ACEOF
39787 rm -f conftest.$ac_objext conftest$ac_exeext
39788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39789 (eval $ac_link) 2>&5
39790 ac_status=$?
39791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39792 (exit $ac_status); } &&
39793 { ac_try='test -s conftest$ac_exeext'
39794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39795 (eval $ac_try) 2>&5
39796 ac_status=$?
39797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39798 (exit $ac_status); }; }; then
39799 ac_cv_search_crypt="-l$ac_lib"; break
39800 else
39801 echo "$as_me: failed program was:" >&5
39802 sed 's/^/| /' conftest.$ac_ext >&5
39805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39806 done
39808 LIBS=$ac_func_search_save_LIBS
39811 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
39812 echo "${ECHO_T}$ac_cv_search_crypt" >&6
39814 if test "$ac_cv_search_crypt" = no; then :
39816 else
39817 if test "$ac_cv_search_crypt" = 'none required'; then :
39819 else
39820 LIBS="$ac_cv_search_crypt $LIBS"
39821 LIB_CRYPT="$ac_cv_search_crypt"
39825 LIBS="$ac_su_saved_lib"
39830 MKINSTALLDIRS=
39831 if test -n "$ac_aux_dir"; then
39832 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
39834 if test -z "$MKINSTALLDIRS"; then
39835 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
39842 # Extract the first word of "msgfmt", so it can be a program name with args.
39843 set dummy msgfmt; ac_word=$2
39844 echo "$as_me:$LINENO: checking for $ac_word" >&5
39845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39846 if test "${ac_cv_path_MSGFMT+set}" = set; then
39847 echo $ECHO_N "(cached) $ECHO_C" >&6
39848 else
39849 case "$MSGFMT" in
39851 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
39854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
39855 for ac_dir in $PATH; do
39856 test -z "$ac_dir" && ac_dir=.
39857 if test -f $ac_dir/$ac_word; then
39858 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
39859 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
39860 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
39861 break
39864 done
39865 IFS="$ac_save_ifs"
39866 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
39868 esac
39870 MSGFMT="$ac_cv_path_MSGFMT"
39871 if test "$MSGFMT" != ":"; then
39872 echo "$as_me:$LINENO: result: $MSGFMT" >&5
39873 echo "${ECHO_T}$MSGFMT" >&6
39874 else
39875 echo "$as_me:$LINENO: result: no" >&5
39876 echo "${ECHO_T}no" >&6
39879 # Extract the first word of "gmsgfmt", so it can be a program name with args.
39880 set dummy gmsgfmt; ac_word=$2
39881 echo "$as_me:$LINENO: checking for $ac_word" >&5
39882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39883 if test "${ac_cv_path_GMSGFMT+set}" = set; then
39884 echo $ECHO_N "(cached) $ECHO_C" >&6
39885 else
39886 case $GMSGFMT in
39887 [\\/]* | ?:[\\/]*)
39888 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
39891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39892 for as_dir in $PATH
39894 IFS=$as_save_IFS
39895 test -z "$as_dir" && as_dir=.
39896 for ac_exec_ext in '' $ac_executable_extensions; do
39897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39898 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
39899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39900 break 2
39902 done
39903 done
39905 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
39907 esac
39909 GMSGFMT=$ac_cv_path_GMSGFMT
39911 if test -n "$GMSGFMT"; then
39912 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
39913 echo "${ECHO_T}$GMSGFMT" >&6
39914 else
39915 echo "$as_me:$LINENO: result: no" >&5
39916 echo "${ECHO_T}no" >&6
39920 # Extract the first word of "xgettext", so it can be a program name with args.
39921 set dummy xgettext; ac_word=$2
39922 echo "$as_me:$LINENO: checking for $ac_word" >&5
39923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39924 if test "${ac_cv_path_XGETTEXT+set}" = set; then
39925 echo $ECHO_N "(cached) $ECHO_C" >&6
39926 else
39927 case "$XGETTEXT" in
39929 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
39932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
39933 for ac_dir in $PATH; do
39934 test -z "$ac_dir" && ac_dir=.
39935 if test -f $ac_dir/$ac_word; then
39936 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
39937 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
39938 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
39939 break
39942 done
39943 IFS="$ac_save_ifs"
39944 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
39946 esac
39948 XGETTEXT="$ac_cv_path_XGETTEXT"
39949 if test "$XGETTEXT" != ":"; then
39950 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
39951 echo "${ECHO_T}$XGETTEXT" >&6
39952 else
39953 echo "$as_me:$LINENO: result: no" >&5
39954 echo "${ECHO_T}no" >&6
39957 rm -f messages.po
39959 # Extract the first word of "msgmerge", so it can be a program name with args.
39960 set dummy msgmerge; ac_word=$2
39961 echo "$as_me:$LINENO: checking for $ac_word" >&5
39962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39963 if test "${ac_cv_path_MSGMERGE+set}" = set; then
39964 echo $ECHO_N "(cached) $ECHO_C" >&6
39965 else
39966 case "$MSGMERGE" in
39968 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
39971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
39972 for ac_dir in $PATH; do
39973 test -z "$ac_dir" && ac_dir=.
39974 if test -f $ac_dir/$ac_word; then
39975 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
39976 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
39977 break
39980 done
39981 IFS="$ac_save_ifs"
39982 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
39984 esac
39986 MSGMERGE="$ac_cv_path_MSGMERGE"
39987 if test "$MSGMERGE" != ":"; then
39988 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
39989 echo "${ECHO_T}$MSGMERGE" >&6
39990 else
39991 echo "$as_me:$LINENO: result: no" >&5
39992 echo "${ECHO_T}no" >&6
39996 if test "$GMSGFMT" != ":"; then
39997 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
39998 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
40000 else
40001 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
40002 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
40003 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
40004 GMSGFMT=":"
40008 if test "$XGETTEXT" != ":"; then
40009 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
40010 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
40012 else
40013 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
40014 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
40015 XGETTEXT=":"
40017 rm -f messages.po
40020 ac_config_commands="$ac_config_commands default-1"
40038 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
40039 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
40040 # Check whether --enable-nls or --disable-nls was given.
40041 if test "${enable_nls+set}" = set; then
40042 enableval="$enable_nls"
40043 USE_NLS=$enableval
40044 else
40045 USE_NLS=yes
40047 echo "$as_me:$LINENO: result: $USE_NLS" >&5
40048 echo "${ECHO_T}$USE_NLS" >&6
40052 LIBINTL=
40053 LTLIBINTL=
40054 POSUB=
40056 if test "$USE_NLS" = "yes"; then
40057 gt_use_preinstalled_gnugettext=no
40064 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
40065 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
40066 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
40067 echo $ECHO_N "(cached) $ECHO_C" >&6
40068 else
40069 cat >conftest.$ac_ext <<_ACEOF
40070 #line $LINENO "configure"
40071 /* confdefs.h. */
40072 _ACEOF
40073 cat confdefs.h >>conftest.$ac_ext
40074 cat >>conftest.$ac_ext <<_ACEOF
40075 /* end confdefs.h. */
40076 #include <libintl.h>
40077 extern int _nl_msg_cat_cntr;
40078 extern int *_nl_domain_bindings;
40080 main ()
40082 bindtextdomain ("", "");
40083 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
40085 return 0;
40087 _ACEOF
40088 rm -f conftest.$ac_objext conftest$ac_exeext
40089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40090 (eval $ac_link) 2>&5
40091 ac_status=$?
40092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40093 (exit $ac_status); } &&
40094 { ac_try='test -s conftest$ac_exeext'
40095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40096 (eval $ac_try) 2>&5
40097 ac_status=$?
40098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40099 (exit $ac_status); }; }; then
40100 gt_cv_func_gnugettext2_libc=yes
40101 else
40102 echo "$as_me: failed program was:" >&5
40103 sed 's/^/| /' conftest.$ac_ext >&5
40105 gt_cv_func_gnugettext2_libc=no
40107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40109 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
40110 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
40112 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
40118 am_save_CPPFLAGS="$CPPFLAGS"
40120 for element in $INCICONV; do
40121 haveit=
40122 for x in $CPPFLAGS; do
40124 acl_save_prefix="$prefix"
40125 prefix="$acl_final_prefix"
40126 acl_save_exec_prefix="$exec_prefix"
40127 exec_prefix="$acl_final_exec_prefix"
40128 eval x=\"$x\"
40129 exec_prefix="$acl_save_exec_prefix"
40130 prefix="$acl_save_prefix"
40132 if test "X$x" = "X$element"; then
40133 haveit=yes
40134 break
40136 done
40137 if test -z "$haveit"; then
40138 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
40140 done
40143 echo "$as_me:$LINENO: checking for iconv" >&5
40144 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
40145 if test "${am_cv_func_iconv+set}" = set; then
40146 echo $ECHO_N "(cached) $ECHO_C" >&6
40147 else
40149 am_cv_func_iconv="no, consider installing GNU libiconv"
40150 am_cv_lib_iconv=no
40151 cat >conftest.$ac_ext <<_ACEOF
40152 #line $LINENO "configure"
40153 /* confdefs.h. */
40154 _ACEOF
40155 cat confdefs.h >>conftest.$ac_ext
40156 cat >>conftest.$ac_ext <<_ACEOF
40157 /* end confdefs.h. */
40158 #include <stdlib.h>
40159 #include <iconv.h>
40161 main ()
40163 iconv_t cd = iconv_open("","");
40164 iconv(cd,NULL,NULL,NULL,NULL);
40165 iconv_close(cd);
40167 return 0;
40169 _ACEOF
40170 rm -f conftest.$ac_objext conftest$ac_exeext
40171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40172 (eval $ac_link) 2>&5
40173 ac_status=$?
40174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40175 (exit $ac_status); } &&
40176 { ac_try='test -s conftest$ac_exeext'
40177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40178 (eval $ac_try) 2>&5
40179 ac_status=$?
40180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40181 (exit $ac_status); }; }; then
40182 am_cv_func_iconv=yes
40183 else
40184 echo "$as_me: failed program was:" >&5
40185 sed 's/^/| /' conftest.$ac_ext >&5
40188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40189 if test "$am_cv_func_iconv" != yes; then
40190 am_save_LIBS="$LIBS"
40191 LIBS="$LIBS $LIBICONV"
40192 cat >conftest.$ac_ext <<_ACEOF
40193 #line $LINENO "configure"
40194 /* confdefs.h. */
40195 _ACEOF
40196 cat confdefs.h >>conftest.$ac_ext
40197 cat >>conftest.$ac_ext <<_ACEOF
40198 /* end confdefs.h. */
40199 #include <stdlib.h>
40200 #include <iconv.h>
40202 main ()
40204 iconv_t cd = iconv_open("","");
40205 iconv(cd,NULL,NULL,NULL,NULL);
40206 iconv_close(cd);
40208 return 0;
40210 _ACEOF
40211 rm -f conftest.$ac_objext conftest$ac_exeext
40212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40213 (eval $ac_link) 2>&5
40214 ac_status=$?
40215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40216 (exit $ac_status); } &&
40217 { ac_try='test -s conftest$ac_exeext'
40218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40219 (eval $ac_try) 2>&5
40220 ac_status=$?
40221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40222 (exit $ac_status); }; }; then
40223 am_cv_lib_iconv=yes
40224 am_cv_func_iconv=yes
40225 else
40226 echo "$as_me: failed program was:" >&5
40227 sed 's/^/| /' conftest.$ac_ext >&5
40230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40231 LIBS="$am_save_LIBS"
40235 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
40236 echo "${ECHO_T}$am_cv_func_iconv" >&6
40237 if test "$am_cv_func_iconv" = yes; then
40239 cat >>confdefs.h <<\_ACEOF
40240 #define HAVE_ICONV 1
40241 _ACEOF
40244 if test "$am_cv_lib_iconv" = yes; then
40245 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
40246 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
40247 echo "$as_me:$LINENO: result: $LIBICONV" >&5
40248 echo "${ECHO_T}$LIBICONV" >&6
40249 else
40250 CPPFLAGS="$am_save_CPPFLAGS"
40251 LIBICONV=
40252 LTLIBICONV=
40260 use_additional=yes
40262 acl_save_prefix="$prefix"
40263 prefix="$acl_final_prefix"
40264 acl_save_exec_prefix="$exec_prefix"
40265 exec_prefix="$acl_final_exec_prefix"
40267 eval additional_includedir=\"$includedir\"
40268 eval additional_libdir=\"$libdir\"
40270 exec_prefix="$acl_save_exec_prefix"
40271 prefix="$acl_save_prefix"
40274 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
40275 if test "${with_libintl_prefix+set}" = set; then
40276 withval="$with_libintl_prefix"
40278 if test "X$withval" = "Xno"; then
40279 use_additional=no
40280 else
40281 if test "X$withval" = "X"; then
40283 acl_save_prefix="$prefix"
40284 prefix="$acl_final_prefix"
40285 acl_save_exec_prefix="$exec_prefix"
40286 exec_prefix="$acl_final_exec_prefix"
40288 eval additional_includedir=\"$includedir\"
40289 eval additional_libdir=\"$libdir\"
40291 exec_prefix="$acl_save_exec_prefix"
40292 prefix="$acl_save_prefix"
40294 else
40295 additional_includedir="$withval/include"
40296 additional_libdir="$withval/lib"
40301 LIBINTL=
40302 LTLIBINTL=
40303 INCINTL=
40304 rpathdirs=
40305 ltrpathdirs=
40306 names_already_handled=
40307 names_next_round='intl '
40308 while test -n "$names_next_round"; do
40309 names_this_round="$names_next_round"
40310 names_next_round=
40311 for name in $names_this_round; do
40312 already_handled=
40313 for n in $names_already_handled; do
40314 if test "$n" = "$name"; then
40315 already_handled=yes
40316 break
40318 done
40319 if test -z "$already_handled"; then
40320 names_already_handled="$names_already_handled $name"
40321 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
40322 eval value=\"\$HAVE_LIB$uppername\"
40323 if test -n "$value"; then
40324 if test "$value" = yes; then
40325 eval value=\"\$LIB$uppername\"
40326 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
40327 eval value=\"\$LTLIB$uppername\"
40328 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
40329 else
40332 else
40333 found_dir=
40334 found_la=
40335 found_so=
40336 found_a=
40337 if test $use_additional = yes; then
40338 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
40339 found_dir="$additional_libdir"
40340 found_so="$additional_libdir/lib$name.$shlibext"
40341 if test -f "$additional_libdir/lib$name.la"; then
40342 found_la="$additional_libdir/lib$name.la"
40344 else
40345 if test -f "$additional_libdir/lib$name.$libext"; then
40346 found_dir="$additional_libdir"
40347 found_a="$additional_libdir/lib$name.$libext"
40348 if test -f "$additional_libdir/lib$name.la"; then
40349 found_la="$additional_libdir/lib$name.la"
40354 if test "X$found_dir" = "X"; then
40355 for x in $LDFLAGS $LTLIBINTL; do
40357 acl_save_prefix="$prefix"
40358 prefix="$acl_final_prefix"
40359 acl_save_exec_prefix="$exec_prefix"
40360 exec_prefix="$acl_final_exec_prefix"
40361 eval x=\"$x\"
40362 exec_prefix="$acl_save_exec_prefix"
40363 prefix="$acl_save_prefix"
40365 case "$x" in
40366 -L*)
40367 dir=`echo "X$x" | sed -e 's/^X-L//'`
40368 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
40369 found_dir="$dir"
40370 found_so="$dir/lib$name.$shlibext"
40371 if test -f "$dir/lib$name.la"; then
40372 found_la="$dir/lib$name.la"
40374 else
40375 if test -f "$dir/lib$name.$libext"; then
40376 found_dir="$dir"
40377 found_a="$dir/lib$name.$libext"
40378 if test -f "$dir/lib$name.la"; then
40379 found_la="$dir/lib$name.la"
40384 esac
40385 if test "X$found_dir" != "X"; then
40386 break
40388 done
40390 if test "X$found_dir" != "X"; then
40391 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
40392 if test "X$found_so" != "X"; then
40393 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
40394 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40395 else
40396 haveit=
40397 for x in $ltrpathdirs; do
40398 if test "X$x" = "X$found_dir"; then
40399 haveit=yes
40400 break
40402 done
40403 if test -z "$haveit"; then
40404 ltrpathdirs="$ltrpathdirs $found_dir"
40406 if test "$hardcode_direct" = yes; then
40407 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40408 else
40409 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
40410 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40411 haveit=
40412 for x in $rpathdirs; do
40413 if test "X$x" = "X$found_dir"; then
40414 haveit=yes
40415 break
40417 done
40418 if test -z "$haveit"; then
40419 rpathdirs="$rpathdirs $found_dir"
40421 else
40422 haveit=
40423 for x in $LDFLAGS $LIBINTL; do
40425 acl_save_prefix="$prefix"
40426 prefix="$acl_final_prefix"
40427 acl_save_exec_prefix="$exec_prefix"
40428 exec_prefix="$acl_final_exec_prefix"
40429 eval x=\"$x\"
40430 exec_prefix="$acl_save_exec_prefix"
40431 prefix="$acl_save_prefix"
40433 if test "X$x" = "X-L$found_dir"; then
40434 haveit=yes
40435 break
40437 done
40438 if test -z "$haveit"; then
40439 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
40441 if test "$hardcode_minus_L" != no; then
40442 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40443 else
40444 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
40449 else
40450 if test "X$found_a" != "X"; then
40451 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
40452 else
40453 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
40456 additional_includedir=
40457 case "$found_dir" in
40458 */lib | */lib/)
40459 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
40460 additional_includedir="$basedir/include"
40462 esac
40463 if test "X$additional_includedir" != "X"; then
40464 if test "X$additional_includedir" != "X/usr/include"; then
40465 haveit=
40466 if test "X$additional_includedir" = "X/usr/local/include"; then
40467 if test -n "$GCC"; then
40468 case $host_os in
40469 linux*) haveit=yes;;
40470 esac
40473 if test -z "$haveit"; then
40474 for x in $CPPFLAGS $INCINTL; do
40476 acl_save_prefix="$prefix"
40477 prefix="$acl_final_prefix"
40478 acl_save_exec_prefix="$exec_prefix"
40479 exec_prefix="$acl_final_exec_prefix"
40480 eval x=\"$x\"
40481 exec_prefix="$acl_save_exec_prefix"
40482 prefix="$acl_save_prefix"
40484 if test "X$x" = "X-I$additional_includedir"; then
40485 haveit=yes
40486 break
40488 done
40489 if test -z "$haveit"; then
40490 if test -d "$additional_includedir"; then
40491 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
40497 if test -n "$found_la"; then
40498 save_libdir="$libdir"
40499 case "$found_la" in
40500 */* | *\\*) . "$found_la" ;;
40501 *) . "./$found_la" ;;
40502 esac
40503 libdir="$save_libdir"
40504 for dep in $dependency_libs; do
40505 case "$dep" in
40506 -L*)
40507 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
40508 if test "X$additional_libdir" != "X/usr/lib"; then
40509 haveit=
40510 if test "X$additional_libdir" = "X/usr/local/lib"; then
40511 if test -n "$GCC"; then
40512 case $host_os in
40513 linux*) haveit=yes;;
40514 esac
40517 if test -z "$haveit"; then
40518 haveit=
40519 for x in $LDFLAGS $LIBINTL; do
40521 acl_save_prefix="$prefix"
40522 prefix="$acl_final_prefix"
40523 acl_save_exec_prefix="$exec_prefix"
40524 exec_prefix="$acl_final_exec_prefix"
40525 eval x=\"$x\"
40526 exec_prefix="$acl_save_exec_prefix"
40527 prefix="$acl_save_prefix"
40529 if test "X$x" = "X-L$additional_libdir"; then
40530 haveit=yes
40531 break
40533 done
40534 if test -z "$haveit"; then
40535 if test -d "$additional_libdir"; then
40536 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
40539 haveit=
40540 for x in $LDFLAGS $LTLIBINTL; do
40542 acl_save_prefix="$prefix"
40543 prefix="$acl_final_prefix"
40544 acl_save_exec_prefix="$exec_prefix"
40545 exec_prefix="$acl_final_exec_prefix"
40546 eval x=\"$x\"
40547 exec_prefix="$acl_save_exec_prefix"
40548 prefix="$acl_save_prefix"
40550 if test "X$x" = "X-L$additional_libdir"; then
40551 haveit=yes
40552 break
40554 done
40555 if test -z "$haveit"; then
40556 if test -d "$additional_libdir"; then
40557 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
40563 -R*)
40564 dir=`echo "X$dep" | sed -e 's/^X-R//'`
40565 if test "$enable_rpath" != no; then
40566 haveit=
40567 for x in $rpathdirs; do
40568 if test "X$x" = "X$dir"; then
40569 haveit=yes
40570 break
40572 done
40573 if test -z "$haveit"; then
40574 rpathdirs="$rpathdirs $dir"
40576 haveit=
40577 for x in $ltrpathdirs; do
40578 if test "X$x" = "X$dir"; then
40579 haveit=yes
40580 break
40582 done
40583 if test -z "$haveit"; then
40584 ltrpathdirs="$ltrpathdirs $dir"
40588 -l*)
40589 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
40591 *.la)
40592 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
40595 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
40596 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
40598 esac
40599 done
40601 else
40602 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
40603 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
40607 done
40608 done
40609 if test "X$rpathdirs" != "X"; then
40610 if test -n "$hardcode_libdir_separator"; then
40611 alldirs=
40612 for found_dir in $rpathdirs; do
40613 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
40614 done
40615 acl_save_libdir="$libdir"
40616 libdir="$alldirs"
40617 eval flag=\"$hardcode_libdir_flag_spec\"
40618 libdir="$acl_save_libdir"
40619 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40620 else
40621 for found_dir in $rpathdirs; do
40622 acl_save_libdir="$libdir"
40623 libdir="$found_dir"
40624 eval flag=\"$hardcode_libdir_flag_spec\"
40625 libdir="$acl_save_libdir"
40626 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40627 done
40630 if test "X$ltrpathdirs" != "X"; then
40631 for found_dir in $ltrpathdirs; do
40632 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
40633 done
40636 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
40637 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
40638 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
40639 echo $ECHO_N "(cached) $ECHO_C" >&6
40640 else
40641 gt_save_CPPFLAGS="$CPPFLAGS"
40642 CPPFLAGS="$CPPFLAGS $INCINTL"
40643 gt_save_LIBS="$LIBS"
40644 LIBS="$LIBS $LIBINTL"
40645 cat >conftest.$ac_ext <<_ACEOF
40646 #line $LINENO "configure"
40647 /* confdefs.h. */
40648 _ACEOF
40649 cat confdefs.h >>conftest.$ac_ext
40650 cat >>conftest.$ac_ext <<_ACEOF
40651 /* end confdefs.h. */
40652 #include <libintl.h>
40653 extern int _nl_msg_cat_cntr;
40654 extern
40655 #ifdef __cplusplus
40657 #endif
40658 const char *_nl_expand_alias ();
40660 main ()
40662 bindtextdomain ("", "");
40663 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
40665 return 0;
40667 _ACEOF
40668 rm -f conftest.$ac_objext conftest$ac_exeext
40669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40670 (eval $ac_link) 2>&5
40671 ac_status=$?
40672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40673 (exit $ac_status); } &&
40674 { ac_try='test -s conftest$ac_exeext'
40675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40676 (eval $ac_try) 2>&5
40677 ac_status=$?
40678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40679 (exit $ac_status); }; }; then
40680 gt_cv_func_gnugettext2_libintl=yes
40681 else
40682 echo "$as_me: failed program was:" >&5
40683 sed 's/^/| /' conftest.$ac_ext >&5
40685 gt_cv_func_gnugettext2_libintl=no
40687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40688 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
40689 LIBS="$LIBS $LIBICONV"
40690 cat >conftest.$ac_ext <<_ACEOF
40691 #line $LINENO "configure"
40692 /* confdefs.h. */
40693 _ACEOF
40694 cat confdefs.h >>conftest.$ac_ext
40695 cat >>conftest.$ac_ext <<_ACEOF
40696 /* end confdefs.h. */
40697 #include <libintl.h>
40698 extern int _nl_msg_cat_cntr;
40699 extern
40700 #ifdef __cplusplus
40702 #endif
40703 const char *_nl_expand_alias ();
40705 main ()
40707 bindtextdomain ("", "");
40708 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
40710 return 0;
40712 _ACEOF
40713 rm -f conftest.$ac_objext conftest$ac_exeext
40714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40715 (eval $ac_link) 2>&5
40716 ac_status=$?
40717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40718 (exit $ac_status); } &&
40719 { ac_try='test -s conftest$ac_exeext'
40720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40721 (eval $ac_try) 2>&5
40722 ac_status=$?
40723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40724 (exit $ac_status); }; }; then
40725 LIBINTL="$LIBINTL $LIBICONV"
40726 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
40727 gt_cv_func_gnugettext2_libintl=yes
40729 else
40730 echo "$as_me: failed program was:" >&5
40731 sed 's/^/| /' conftest.$ac_ext >&5
40734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40736 CPPFLAGS="$gt_save_CPPFLAGS"
40737 LIBS="$gt_save_LIBS"
40739 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
40740 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
40743 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
40744 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
40745 && test "$PACKAGE" != gettext; }; then
40746 gt_use_preinstalled_gnugettext=yes
40747 else
40748 LIBINTL=
40749 LTLIBINTL=
40750 INCINTL=
40755 if test "$gt_use_preinstalled_gnugettext" = "yes" \
40756 || test "$nls_cv_use_gnu_gettext" = "yes"; then
40758 cat >>confdefs.h <<\_ACEOF
40759 #define ENABLE_NLS 1
40760 _ACEOF
40762 else
40763 USE_NLS=no
40767 if test "$USE_NLS" = "yes"; then
40769 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
40770 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
40771 echo "$as_me:$LINENO: checking how to link with libintl" >&5
40772 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
40773 echo "$as_me:$LINENO: result: $LIBINTL" >&5
40774 echo "${ECHO_T}$LIBINTL" >&6
40776 for element in $INCINTL; do
40777 haveit=
40778 for x in $CPPFLAGS; do
40780 acl_save_prefix="$prefix"
40781 prefix="$acl_final_prefix"
40782 acl_save_exec_prefix="$exec_prefix"
40783 exec_prefix="$acl_final_exec_prefix"
40784 eval x=\"$x\"
40785 exec_prefix="$acl_save_exec_prefix"
40786 prefix="$acl_save_prefix"
40788 if test "X$x" = "X$element"; then
40789 haveit=yes
40790 break
40792 done
40793 if test -z "$haveit"; then
40794 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
40796 done
40801 cat >>confdefs.h <<\_ACEOF
40802 #define HAVE_GETTEXT 1
40803 _ACEOF
40806 cat >>confdefs.h <<\_ACEOF
40807 #define HAVE_DCGETTEXT 1
40808 _ACEOF
40812 POSUB=po
40817 INTLLIBS="$LIBINTL"
40826 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile man/Makefile m4/Makefile po/Makefile.in src/Makefile tests/Makefile tests/basename/Makefile tests/chgrp/Makefile tests/chmod/Makefile tests/chown/Makefile tests/cp/Makefile tests/cut/Makefile tests/date/Makefile tests/dd/Makefile tests/dircolors/Makefile tests/du/Makefile tests/expr/Makefile tests/factor/Makefile tests/fmt/Makefile tests/head/Makefile tests/install/Makefile tests/join/Makefile tests/ln/Makefile tests/ls-2/Makefile tests/ls/Makefile tests/md5sum/Makefile tests/misc/Makefile tests/mkdir/Makefile tests/mv/Makefile tests/od/Makefile tests/pr/Makefile tests/rm/Makefile tests/rmdir/Makefile tests/seq/Makefile tests/sha1sum/Makefile tests/shred/Makefile tests/sort/Makefile tests/stty/Makefile tests/sum/Makefile tests/tac/Makefile tests/tail-2/Makefile tests/tail/Makefile tests/test/Makefile tests/touch/Makefile tests/tr/Makefile tests/tsort/Makefile tests/unexpand/Makefile tests/uniq/Makefile tests/wc/Makefile"
40828 cat >confcache <<\_ACEOF
40829 # This file is a shell script that caches the results of configure
40830 # tests run on this system so they can be shared between configure
40831 # scripts and configure runs, see configure's option --config-cache.
40832 # It is not useful on other systems. If it contains results you don't
40833 # want to keep, you may remove or edit it.
40835 # config.status only pays attention to the cache file if you give it
40836 # the --recheck option to rerun configure.
40838 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40839 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40840 # following values.
40842 _ACEOF
40844 # The following way of writing the cache mishandles newlines in values,
40845 # but we know of no workaround that is simple, portable, and efficient.
40846 # So, don't put newlines in cache variables' values.
40847 # Ultrix sh set writes to stderr and can't be redirected directly,
40848 # and sets the high bit in the cache file unless we assign to the vars.
40850 (set) 2>&1 |
40851 case `(ac_space=' '; set | grep ac_space) 2>&1` in
40852 *ac_space=\ *)
40853 # `set' does not quote correctly, so add quotes (double-quote
40854 # substitution turns \\\\ into \\, and sed turns \\ into \).
40855 sed -n \
40856 "s/'/'\\\\''/g;
40857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40860 # `set' quotes correctly as required by POSIX, so do not add quotes.
40861 sed -n \
40862 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
40864 esac;
40866 sed '
40867 t clear
40868 : clear
40869 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40870 t end
40871 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40872 : end' >>confcache
40873 if diff $cache_file confcache >/dev/null 2>&1; then :; else
40874 if test -w $cache_file; then
40875 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
40876 cat confcache >$cache_file
40877 else
40878 echo "not updating unwritable cache $cache_file"
40881 rm -f confcache
40883 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40884 # Let make expand exec_prefix.
40885 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40887 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40888 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40889 # trailing colons and then remove the whole line if VPATH becomes empty
40890 # (actually we leave an empty line to preserve line numbers).
40891 if test "x$srcdir" = x.; then
40892 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40893 s/:*\$(srcdir):*/:/;
40894 s/:*\${srcdir}:*/:/;
40895 s/:*@srcdir@:*/:/;
40896 s/^\([^=]*=[ ]*\):*/\1/;
40897 s/:*$//;
40898 s/^[^=]*=[ ]*$//;
40902 DEFS=-DHAVE_CONFIG_H
40904 ac_libobjs=
40905 ac_ltlibobjs=
40906 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40907 # 1. Remove the extension, and $U if already installed.
40908 ac_i=`echo "$ac_i" |
40909 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40910 # 2. Add them.
40911 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40912 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40913 done
40914 LIBOBJS=$ac_libobjs
40916 LTLIBOBJS=$ac_ltlibobjs
40919 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40920 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40921 Usually this means the macro was only invoked conditionally." >&5
40922 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40923 Usually this means the macro was only invoked conditionally." >&2;}
40924 { (exit 1); exit 1; }; }
40926 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40927 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40928 Usually this means the macro was only invoked conditionally." >&5
40929 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40930 Usually this means the macro was only invoked conditionally." >&2;}
40931 { (exit 1); exit 1; }; }
40934 : ${CONFIG_STATUS=./config.status}
40935 ac_clean_files_save=$ac_clean_files
40936 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40937 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40938 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40939 cat >$CONFIG_STATUS <<_ACEOF
40940 #! $SHELL
40941 # Generated by $as_me.
40942 # Run this file to recreate the current configuration.
40943 # Compiler output produced by configure, useful for debugging
40944 # configure, is in config.log if it exists.
40946 debug=false
40947 ac_cs_recheck=false
40948 ac_cs_silent=false
40949 SHELL=\${CONFIG_SHELL-$SHELL}
40950 _ACEOF
40952 cat >>$CONFIG_STATUS <<\_ACEOF
40953 ## --------------------- ##
40954 ## M4sh Initialization. ##
40955 ## --------------------- ##
40957 # Be Bourne compatible
40958 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40959 emulate sh
40960 NULLCMD=:
40961 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40962 # is contrary to our usage. Disable this feature.
40963 alias -g '${1+"$@"}'='"$@"'
40964 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40965 set -o posix
40968 # Support unset when possible.
40969 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
40970 as_unset=unset
40971 else
40972 as_unset=false
40976 # Work around bugs in pre-3.0 UWIN ksh.
40977 $as_unset ENV MAIL MAILPATH
40978 PS1='$ '
40979 PS2='> '
40980 PS4='+ '
40982 # NLS nuisances.
40983 for as_var in \
40984 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40985 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40986 LC_TELEPHONE LC_TIME
40988 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
40989 eval $as_var=C; export $as_var
40990 else
40991 $as_unset $as_var
40993 done
40995 # Required to use basename.
40996 if expr a : '\(a\)' >/dev/null 2>&1; then
40997 as_expr=expr
40998 else
40999 as_expr=false
41002 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41003 as_basename=basename
41004 else
41005 as_basename=false
41009 # Name of the executable.
41010 as_me=`$as_basename "$0" ||
41011 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41012 X"$0" : 'X\(//\)$' \| \
41013 X"$0" : 'X\(/\)$' \| \
41014 . : '\(.\)' 2>/dev/null ||
41015 echo X/"$0" |
41016 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41017 /^X\/\(\/\/\)$/{ s//\1/; q; }
41018 /^X\/\(\/\).*/{ s//\1/; q; }
41019 s/.*/./; q'`
41022 # PATH needs CR, and LINENO needs CR and PATH.
41023 # Avoid depending upon Character Ranges.
41024 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41025 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41026 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41027 as_cr_digits='0123456789'
41028 as_cr_alnum=$as_cr_Letters$as_cr_digits
41030 # The user is always right.
41031 if test "${PATH_SEPARATOR+set}" != set; then
41032 echo "#! /bin/sh" >conf$$.sh
41033 echo "exit 0" >>conf$$.sh
41034 chmod +x conf$$.sh
41035 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41036 PATH_SEPARATOR=';'
41037 else
41038 PATH_SEPARATOR=:
41040 rm -f conf$$.sh
41044 as_lineno_1=$LINENO
41045 as_lineno_2=$LINENO
41046 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41047 test "x$as_lineno_1" != "x$as_lineno_2" &&
41048 test "x$as_lineno_3" = "x$as_lineno_2" || {
41049 # Find who we are. Look in the path if we contain no path at all
41050 # relative or not.
41051 case $0 in
41052 *[\\/]* ) as_myself=$0 ;;
41053 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41054 for as_dir in $PATH
41056 IFS=$as_save_IFS
41057 test -z "$as_dir" && as_dir=.
41058 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41059 done
41062 esac
41063 # We did not find ourselves, most probably we were run as `sh COMMAND'
41064 # in which case we are not to be found in the path.
41065 if test "x$as_myself" = x; then
41066 as_myself=$0
41068 if test ! -f "$as_myself"; then
41069 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41070 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41071 { (exit 1); exit 1; }; }
41073 case $CONFIG_SHELL in
41075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41076 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41078 IFS=$as_save_IFS
41079 test -z "$as_dir" && as_dir=.
41080 for as_base in sh bash ksh sh5; do
41081 case $as_dir in
41083 if ("$as_dir/$as_base" -c '
41084 as_lineno_1=$LINENO
41085 as_lineno_2=$LINENO
41086 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41087 test "x$as_lineno_1" != "x$as_lineno_2" &&
41088 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41089 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41090 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41091 CONFIG_SHELL=$as_dir/$as_base
41092 export CONFIG_SHELL
41093 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41094 fi;;
41095 esac
41096 done
41097 done
41099 esac
41101 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41102 # uniformly replaced by the line number. The first 'sed' inserts a
41103 # line-number line before each line; the second 'sed' does the real
41104 # work. The second script uses 'N' to pair each line-number line
41105 # with the numbered line, and appends trailing '-' during
41106 # substitution so that $LINENO is not a special case at line end.
41107 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41108 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41109 sed '=' <$as_myself |
41110 sed '
41112 s,$,-,
41113 : loop
41114 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41115 t loop
41116 s,-$,,
41117 s,^['$as_cr_digits']*\n,,
41118 ' >$as_me.lineno &&
41119 chmod +x $as_me.lineno ||
41120 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41121 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41122 { (exit 1); exit 1; }; }
41124 # Don't try to exec as it changes $[0], causing all sort of problems
41125 # (the dirname of $[0] is not the place where we might find the
41126 # original and so on. Autoconf is especially sensible to this).
41127 . ./$as_me.lineno
41128 # Exit status is that of the last command.
41129 exit
41133 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41134 *c*,-n*) ECHO_N= ECHO_C='
41135 ' ECHO_T=' ' ;;
41136 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41137 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41138 esac
41140 if expr a : '\(a\)' >/dev/null 2>&1; then
41141 as_expr=expr
41142 else
41143 as_expr=false
41146 rm -f conf$$ conf$$.exe conf$$.file
41147 echo >conf$$.file
41148 if ln -s conf$$.file conf$$ 2>/dev/null; then
41149 # We could just check for DJGPP; but this test a) works b) is more generic
41150 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41151 if test -f conf$$.exe; then
41152 # Don't use ln at all; we don't have any links
41153 as_ln_s='cp -p'
41154 else
41155 as_ln_s='ln -s'
41157 elif ln conf$$.file conf$$ 2>/dev/null; then
41158 as_ln_s=ln
41159 else
41160 as_ln_s='cp -p'
41162 rm -f conf$$ conf$$.exe conf$$.file
41164 if mkdir -p . 2>/dev/null; then
41165 as_mkdir_p=:
41166 else
41167 as_mkdir_p=false
41170 as_executable_p="test -f"
41172 # Sed expression to map a string onto a valid CPP name.
41173 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
41175 # Sed expression to map a string onto a valid variable name.
41176 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
41179 # IFS
41180 # We need space, tab and new line, in precisely that order.
41181 as_nl='
41183 IFS=" $as_nl"
41185 # CDPATH.
41186 $as_unset CDPATH
41188 exec 6>&1
41190 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41191 # report actual input values of CONFIG_FILES etc. instead of their
41192 # values after options handling. Logging --version etc. is OK.
41193 exec 5>>config.log
41195 echo
41196 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41197 ## Running $as_me. ##
41198 _ASBOX
41199 } >&5
41200 cat >&5 <<_CSEOF
41202 This file was extended by GNU coreutils $as_me 4.5.7, which was
41203 generated by GNU Autoconf 2.57. Invocation command line was
41205 CONFIG_FILES = $CONFIG_FILES
41206 CONFIG_HEADERS = $CONFIG_HEADERS
41207 CONFIG_LINKS = $CONFIG_LINKS
41208 CONFIG_COMMANDS = $CONFIG_COMMANDS
41209 $ $0 $@
41211 _CSEOF
41212 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41213 echo >&5
41214 _ACEOF
41216 # Files that config.status was made for.
41217 if test -n "$ac_config_files"; then
41218 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41221 if test -n "$ac_config_headers"; then
41222 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41225 if test -n "$ac_config_links"; then
41226 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41229 if test -n "$ac_config_commands"; then
41230 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41233 cat >>$CONFIG_STATUS <<\_ACEOF
41235 ac_cs_usage="\
41236 \`$as_me' instantiates files from templates according to the
41237 current configuration.
41239 Usage: $0 [OPTIONS] [FILE]...
41241 -h, --help print this help, then exit
41242 -V, --version print version number, then exit
41243 -q, --quiet do not print progress messages
41244 -d, --debug don't remove temporary files
41245 --recheck update $as_me by reconfiguring in the same conditions
41246 --file=FILE[:TEMPLATE]
41247 instantiate the configuration file FILE
41248 --header=FILE[:TEMPLATE]
41249 instantiate the configuration header FILE
41251 Configuration files:
41252 $config_files
41254 Configuration headers:
41255 $config_headers
41257 Configuration links:
41258 $config_links
41260 Configuration commands:
41261 $config_commands
41263 Report bugs to <bug-autoconf@gnu.org>."
41264 _ACEOF
41266 cat >>$CONFIG_STATUS <<_ACEOF
41267 ac_cs_version="\\
41268 GNU coreutils config.status 4.5.7
41269 configured by $0, generated by GNU Autoconf 2.57,
41270 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41272 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
41273 Free Software Foundation, Inc.
41274 This config.status script is free software; the Free Software Foundation
41275 gives unlimited permission to copy, distribute and modify it."
41276 srcdir=$srcdir
41277 INSTALL="$INSTALL"
41278 _ACEOF
41280 cat >>$CONFIG_STATUS <<\_ACEOF
41281 # If no file are specified by the user, then we need to provide default
41282 # value. By we need to know if files were specified by the user.
41283 ac_need_defaults=:
41284 while test $# != 0
41286 case $1 in
41287 --*=*)
41288 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41289 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41290 ac_shift=:
41293 ac_option=$1
41294 ac_optarg=$2
41295 ac_shift=shift
41297 *) # This is not an option, so the user has probably given explicit
41298 # arguments.
41299 ac_option=$1
41300 ac_need_defaults=false;;
41301 esac
41303 case $ac_option in
41304 # Handling of the options.
41305 _ACEOF
41306 cat >>$CONFIG_STATUS <<\_ACEOF
41307 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41308 ac_cs_recheck=: ;;
41309 --version | --vers* | -V )
41310 echo "$ac_cs_version"; exit 0 ;;
41311 --he | --h)
41312 # Conflict between --help and --header
41313 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41314 Try \`$0 --help' for more information." >&5
41315 echo "$as_me: error: ambiguous option: $1
41316 Try \`$0 --help' for more information." >&2;}
41317 { (exit 1); exit 1; }; };;
41318 --help | --hel | -h )
41319 echo "$ac_cs_usage"; exit 0 ;;
41320 --debug | --d* | -d )
41321 debug=: ;;
41322 --file | --fil | --fi | --f )
41323 $ac_shift
41324 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41325 ac_need_defaults=false;;
41326 --header | --heade | --head | --hea )
41327 $ac_shift
41328 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41329 ac_need_defaults=false;;
41330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41331 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41332 ac_cs_silent=: ;;
41334 # This is an error.
41335 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41336 Try \`$0 --help' for more information." >&5
41337 echo "$as_me: error: unrecognized option: $1
41338 Try \`$0 --help' for more information." >&2;}
41339 { (exit 1); exit 1; }; } ;;
41341 *) ac_config_targets="$ac_config_targets $1" ;;
41343 esac
41344 shift
41345 done
41347 ac_configure_extra_args=
41349 if $ac_cs_silent; then
41350 exec 6>/dev/null
41351 ac_configure_extra_args="$ac_configure_extra_args --silent"
41354 _ACEOF
41355 cat >>$CONFIG_STATUS <<_ACEOF
41356 if \$ac_cs_recheck; then
41357 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41358 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41361 _ACEOF
41363 cat >>$CONFIG_STATUS <<_ACEOF
41365 # INIT-COMMANDS section.
41368 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41369 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
41370 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
41371 # from automake.
41372 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
41373 # Capture the value of LINGUAS because we need it to compute CATALOGS.
41374 LINGUAS="${LINGUAS-%UNSET%}"
41377 _ACEOF
41381 cat >>$CONFIG_STATUS <<\_ACEOF
41382 for ac_config_target in $ac_config_targets
41384 case "$ac_config_target" in
41385 # Handling of arguments.
41386 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41387 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
41388 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
41389 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
41390 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
41391 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
41392 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
41393 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
41394 "tests/basename/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/basename/Makefile" ;;
41395 "tests/chgrp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
41396 "tests/chmod/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
41397 "tests/chown/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
41398 "tests/cp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
41399 "tests/cut/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
41400 "tests/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/date/Makefile" ;;
41401 "tests/dd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
41402 "tests/dircolors/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
41403 "tests/du/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
41404 "tests/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
41405 "tests/factor/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
41406 "tests/fmt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
41407 "tests/head/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
41408 "tests/install/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
41409 "tests/join/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
41410 "tests/ln/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
41411 "tests/ls-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
41412 "tests/ls/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
41413 "tests/md5sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
41414 "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
41415 "tests/mkdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
41416 "tests/mv/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
41417 "tests/od/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
41418 "tests/pr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
41419 "tests/rm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
41420 "tests/rmdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
41421 "tests/seq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
41422 "tests/sha1sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
41423 "tests/shred/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
41424 "tests/sort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
41425 "tests/stty/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
41426 "tests/sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
41427 "tests/tac/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
41428 "tests/tail-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
41429 "tests/tail/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
41430 "tests/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
41431 "tests/touch/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
41432 "tests/tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
41433 "tests/tsort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
41434 "tests/unexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
41435 "tests/uniq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
41436 "tests/wc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
41437 "$ac_config_libobj_dir/fnmatch.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;;
41438 "$ac_config_libobj_dir/ftw.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h" ;;
41439 "$ac_config_libobj_dir/search.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h" ;;
41440 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41441 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
41442 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
41443 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41444 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41445 { (exit 1); exit 1; }; };;
41446 esac
41447 done
41449 # If the user did not use the arguments to specify the items to instantiate,
41450 # then the envvar interface is used. Set only those that are not.
41451 # We use the long form for the default assignment because of an extremely
41452 # bizarre bug on SunOS 4.1.3.
41453 if $ac_need_defaults; then
41454 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41455 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41456 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
41457 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41460 # Have a temporary directory for convenience. Make it in the build tree
41461 # simply because there is no reason to put it here, and in addition,
41462 # creating and moving files from /tmp can sometimes cause problems.
41463 # Create a temporary directory, and hook for its removal unless debugging.
41464 $debug ||
41466 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41467 trap '{ (exit 1); exit 1; }' 1 2 13 15
41470 # Create a (secure) tmp directory for tmp files.
41473 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41474 test -n "$tmp" && test -d "$tmp"
41475 } ||
41477 tmp=./confstat$$-$RANDOM
41478 (umask 077 && mkdir $tmp)
41479 } ||
41481 echo "$me: cannot create a temporary directory in ." >&2
41482 { (exit 1); exit 1; }
41485 _ACEOF
41487 cat >>$CONFIG_STATUS <<_ACEOF
41490 # CONFIG_FILES section.
41493 # No need to generate the scripts if there are no CONFIG_FILES.
41494 # This happens for instance when ./config.status config.h
41495 if test -n "\$CONFIG_FILES"; then
41496 # Protect against being on the right side of a sed subst in config.status.
41497 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41498 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41499 s,@SHELL@,$SHELL,;t t
41500 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41501 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41502 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41503 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41504 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41505 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41506 s,@exec_prefix@,$exec_prefix,;t t
41507 s,@prefix@,$prefix,;t t
41508 s,@program_transform_name@,$program_transform_name,;t t
41509 s,@bindir@,$bindir,;t t
41510 s,@sbindir@,$sbindir,;t t
41511 s,@libexecdir@,$libexecdir,;t t
41512 s,@datadir@,$datadir,;t t
41513 s,@sysconfdir@,$sysconfdir,;t t
41514 s,@sharedstatedir@,$sharedstatedir,;t t
41515 s,@localstatedir@,$localstatedir,;t t
41516 s,@libdir@,$libdir,;t t
41517 s,@includedir@,$includedir,;t t
41518 s,@oldincludedir@,$oldincludedir,;t t
41519 s,@infodir@,$infodir,;t t
41520 s,@mandir@,$mandir,;t t
41521 s,@build_alias@,$build_alias,;t t
41522 s,@host_alias@,$host_alias,;t t
41523 s,@target_alias@,$target_alias,;t t
41524 s,@DEFS@,$DEFS,;t t
41525 s,@ECHO_C@,$ECHO_C,;t t
41526 s,@ECHO_N@,$ECHO_N,;t t
41527 s,@ECHO_T@,$ECHO_T,;t t
41528 s,@LIBS@,$LIBS,;t t
41529 s,@build@,$build,;t t
41530 s,@build_cpu@,$build_cpu,;t t
41531 s,@build_vendor@,$build_vendor,;t t
41532 s,@build_os@,$build_os,;t t
41533 s,@host@,$host,;t t
41534 s,@host_cpu@,$host_cpu,;t t
41535 s,@host_vendor@,$host_vendor,;t t
41536 s,@host_os@,$host_os,;t t
41537 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41538 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41539 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41540 s,@CYGPATH_W@,$CYGPATH_W,;t t
41541 s,@PACKAGE@,$PACKAGE,;t t
41542 s,@VERSION@,$VERSION,;t t
41543 s,@ACLOCAL@,$ACLOCAL,;t t
41544 s,@AUTOCONF@,$AUTOCONF,;t t
41545 s,@AUTOMAKE@,$AUTOMAKE,;t t
41546 s,@AUTOHEADER@,$AUTOHEADER,;t t
41547 s,@MAKEINFO@,$MAKEINFO,;t t
41548 s,@AMTAR@,$AMTAR,;t t
41549 s,@install_sh@,$install_sh,;t t
41550 s,@STRIP@,$STRIP,;t t
41551 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41552 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41553 s,@AWK@,$AWK,;t t
41554 s,@SET_MAKE@,$SET_MAKE,;t t
41555 s,@PERL@,$PERL,;t t
41556 s,@CC@,$CC,;t t
41557 s,@CFLAGS@,$CFLAGS,;t t
41558 s,@LDFLAGS@,$LDFLAGS,;t t
41559 s,@CPPFLAGS@,$CPPFLAGS,;t t
41560 s,@ac_ct_CC@,$ac_ct_CC,;t t
41561 s,@EXEEXT@,$EXEEXT,;t t
41562 s,@OBJEXT@,$OBJEXT,;t t
41563 s,@DEPDIR@,$DEPDIR,;t t
41564 s,@am__include@,$am__include,;t t
41565 s,@am__quote@,$am__quote,;t t
41566 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41567 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41568 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41569 s,@CCDEPMODE@,$CCDEPMODE,;t t
41570 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41571 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41572 s,@CPP@,$CPP,;t t
41573 s,@EGREP@,$EGREP,;t t
41574 s,@RANLIB@,$RANLIB,;t t
41575 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41576 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
41577 s,@HELP2MAN@,$HELP2MAN,;t t
41578 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
41579 s,@OPTIONAL_BIN_ZCRIPTS@,$OPTIONAL_BIN_ZCRIPTS,;t t
41580 s,@MAN@,$MAN,;t t
41581 s,@DF_PROG@,$DF_PROG,;t t
41582 s,@U@,$U,;t t
41583 s,@ANSI2KNR@,$ANSI2KNR,;t t
41584 s,@LIBOBJS@,$LIBOBJS,;t t
41585 s,@ALLOCA@,$ALLOCA,;t t
41586 s,@YACC@,$YACC,;t t
41587 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
41588 s,@NEED_SETGID@,$NEED_SETGID,;t t
41589 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
41590 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
41591 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
41592 s,@POW_LIB@,$POW_LIB,;t t
41593 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
41594 s,@GLIBC21@,$GLIBC21,;t t
41595 s,@LIBICONV@,$LIBICONV,;t t
41596 s,@LTLIBICONV@,$LTLIBICONV,;t t
41597 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
41598 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
41599 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
41600 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
41601 s,@MSGFMT@,$MSGFMT,;t t
41602 s,@GMSGFMT@,$GMSGFMT,;t t
41603 s,@XGETTEXT@,$XGETTEXT,;t t
41604 s,@MSGMERGE@,$MSGMERGE,;t t
41605 s,@USE_NLS@,$USE_NLS,;t t
41606 s,@INTLLIBS@,$INTLLIBS,;t t
41607 s,@LIBINTL@,$LIBINTL,;t t
41608 s,@LTLIBINTL@,$LTLIBINTL,;t t
41609 s,@POSUB@,$POSUB,;t t
41610 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41611 CEOF
41613 _ACEOF
41615 cat >>$CONFIG_STATUS <<\_ACEOF
41616 # Split the substitutions into bite-sized pieces for seds with
41617 # small command number limits, like on Digital OSF/1 and HP-UX.
41618 ac_max_sed_lines=48
41619 ac_sed_frag=1 # Number of current file.
41620 ac_beg=1 # First line for current file.
41621 ac_end=$ac_max_sed_lines # Line after last line for current file.
41622 ac_more_lines=:
41623 ac_sed_cmds=
41624 while $ac_more_lines; do
41625 if test $ac_beg -gt 1; then
41626 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41627 else
41628 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41630 if test ! -s $tmp/subs.frag; then
41631 ac_more_lines=false
41632 else
41633 # The purpose of the label and of the branching condition is to
41634 # speed up the sed processing (if there are no `@' at all, there
41635 # is no need to browse any of the substitutions).
41636 # These are the two extra sed commands mentioned above.
41637 (echo ':t
41638 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41639 if test -z "$ac_sed_cmds"; then
41640 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41641 else
41642 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41644 ac_sed_frag=`expr $ac_sed_frag + 1`
41645 ac_beg=$ac_end
41646 ac_end=`expr $ac_end + $ac_max_sed_lines`
41648 done
41649 if test -z "$ac_sed_cmds"; then
41650 ac_sed_cmds=cat
41652 fi # test -n "$CONFIG_FILES"
41654 _ACEOF
41655 cat >>$CONFIG_STATUS <<\_ACEOF
41656 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41657 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41658 case $ac_file in
41659 - | *:- | *:-:* ) # input from stdin
41660 cat >$tmp/stdin
41661 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41662 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41663 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41665 * ) ac_file_in=$ac_file.in ;;
41666 esac
41668 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41669 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41670 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41671 X"$ac_file" : 'X\(//\)[^/]' \| \
41672 X"$ac_file" : 'X\(//\)$' \| \
41673 X"$ac_file" : 'X\(/\)' \| \
41674 . : '\(.\)' 2>/dev/null ||
41675 echo X"$ac_file" |
41676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41678 /^X\(\/\/\)$/{ s//\1/; q; }
41679 /^X\(\/\).*/{ s//\1/; q; }
41680 s/.*/./; q'`
41681 { if $as_mkdir_p; then
41682 mkdir -p "$ac_dir"
41683 else
41684 as_dir="$ac_dir"
41685 as_dirs=
41686 while test ! -d "$as_dir"; do
41687 as_dirs="$as_dir $as_dirs"
41688 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41689 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41690 X"$as_dir" : 'X\(//\)[^/]' \| \
41691 X"$as_dir" : 'X\(//\)$' \| \
41692 X"$as_dir" : 'X\(/\)' \| \
41693 . : '\(.\)' 2>/dev/null ||
41694 echo X"$as_dir" |
41695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41697 /^X\(\/\/\)$/{ s//\1/; q; }
41698 /^X\(\/\).*/{ s//\1/; q; }
41699 s/.*/./; q'`
41700 done
41701 test ! -n "$as_dirs" || mkdir $as_dirs
41702 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41703 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41704 { (exit 1); exit 1; }; }; }
41706 ac_builddir=.
41708 if test "$ac_dir" != .; then
41709 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41710 # A "../" for each directory in $ac_dir_suffix.
41711 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41712 else
41713 ac_dir_suffix= ac_top_builddir=
41716 case $srcdir in
41717 .) # No --srcdir option. We are building in place.
41718 ac_srcdir=.
41719 if test -z "$ac_top_builddir"; then
41720 ac_top_srcdir=.
41721 else
41722 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41723 fi ;;
41724 [\\/]* | ?:[\\/]* ) # Absolute path.
41725 ac_srcdir=$srcdir$ac_dir_suffix;
41726 ac_top_srcdir=$srcdir ;;
41727 *) # Relative path.
41728 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41729 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41730 esac
41731 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
41732 # absolute.
41733 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
41734 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
41735 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
41736 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
41739 case $INSTALL in
41740 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41741 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41742 esac
41744 if test x"$ac_file" != x-; then
41745 { echo "$as_me:$LINENO: creating $ac_file" >&5
41746 echo "$as_me: creating $ac_file" >&6;}
41747 rm -f "$ac_file"
41749 # Let's still pretend it is `configure' which instantiates (i.e., don't
41750 # use $as_me), people would be surprised to read:
41751 # /* config.h. Generated by config.status. */
41752 if test x"$ac_file" = x-; then
41753 configure_input=
41754 else
41755 configure_input="$ac_file. "
41757 configure_input=$configure_input"Generated from `echo $ac_file_in |
41758 sed 's,.*/,,'` by configure."
41760 # First look for the input files in the build tree, otherwise in the
41761 # src tree.
41762 ac_file_inputs=`IFS=:
41763 for f in $ac_file_in; do
41764 case $f in
41765 -) echo $tmp/stdin ;;
41766 [\\/$]*)
41767 # Absolute (can't be DOS-style, as IFS=:)
41768 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41769 echo "$as_me: error: cannot find input file: $f" >&2;}
41770 { (exit 1); exit 1; }; }
41771 echo $f;;
41772 *) # Relative
41773 if test -f "$f"; then
41774 # Build tree
41775 echo $f
41776 elif test -f "$srcdir/$f"; then
41777 # Source tree
41778 echo $srcdir/$f
41779 else
41780 # /dev/null tree
41781 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41782 echo "$as_me: error: cannot find input file: $f" >&2;}
41783 { (exit 1); exit 1; }; }
41784 fi;;
41785 esac
41786 done` || { (exit 1); exit 1; }
41787 _ACEOF
41788 cat >>$CONFIG_STATUS <<_ACEOF
41789 sed "$ac_vpsub
41790 $extrasub
41791 _ACEOF
41792 cat >>$CONFIG_STATUS <<\_ACEOF
41794 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41795 s,@configure_input@,$configure_input,;t t
41796 s,@srcdir@,$ac_srcdir,;t t
41797 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41798 s,@top_srcdir@,$ac_top_srcdir,;t t
41799 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41800 s,@builddir@,$ac_builddir,;t t
41801 s,@abs_builddir@,$ac_abs_builddir,;t t
41802 s,@top_builddir@,$ac_top_builddir,;t t
41803 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41804 s,@INSTALL@,$ac_INSTALL,;t t
41805 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41806 rm -f $tmp/stdin
41807 if test x"$ac_file" != x-; then
41808 mv $tmp/out $ac_file
41809 else
41810 cat $tmp/out
41811 rm -f $tmp/out
41814 done
41815 _ACEOF
41816 cat >>$CONFIG_STATUS <<\_ACEOF
41819 # CONFIG_HEADER section.
41822 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41823 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41825 # ac_d sets the value in "#define NAME VALUE" lines.
41826 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41827 ac_dB='[ ].*$,\1#\2'
41828 ac_dC=' '
41829 ac_dD=',;t'
41830 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41831 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
41832 ac_uB='$,\1#\2define\3'
41833 ac_uC=' '
41834 ac_uD=',;t'
41836 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41837 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41838 case $ac_file in
41839 - | *:- | *:-:* ) # input from stdin
41840 cat >$tmp/stdin
41841 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41842 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41843 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41844 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41845 * ) ac_file_in=$ac_file.in ;;
41846 esac
41848 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41849 echo "$as_me: creating $ac_file" >&6;}
41851 # First look for the input files in the build tree, otherwise in the
41852 # src tree.
41853 ac_file_inputs=`IFS=:
41854 for f in $ac_file_in; do
41855 case $f in
41856 -) echo $tmp/stdin ;;
41857 [\\/$]*)
41858 # Absolute (can't be DOS-style, as IFS=:)
41859 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41860 echo "$as_me: error: cannot find input file: $f" >&2;}
41861 { (exit 1); exit 1; }; }
41862 echo $f;;
41863 *) # Relative
41864 if test -f "$f"; then
41865 # Build tree
41866 echo $f
41867 elif test -f "$srcdir/$f"; then
41868 # Source tree
41869 echo $srcdir/$f
41870 else
41871 # /dev/null tree
41872 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41873 echo "$as_me: error: cannot find input file: $f" >&2;}
41874 { (exit 1); exit 1; }; }
41875 fi;;
41876 esac
41877 done` || { (exit 1); exit 1; }
41878 # Remove the trailing spaces.
41879 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
41881 _ACEOF
41883 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41884 # `conftest.undefs', that substitutes the proper values into
41885 # config.h.in to produce config.h. The first handles `#define'
41886 # templates, and the second `#undef' templates.
41887 # And first: Protect against being on the right side of a sed subst in
41888 # config.status. Protect against being in an unquoted here document
41889 # in config.status.
41890 rm -f conftest.defines conftest.undefs
41891 # Using a here document instead of a string reduces the quoting nightmare.
41892 # Putting comments in sed scripts is not portable.
41894 # `end' is used to avoid that the second main sed command (meant for
41895 # 0-ary CPP macros) applies to n-ary macro definitions.
41896 # See the Autoconf documentation for `clear'.
41897 cat >confdef2sed.sed <<\_ACEOF
41898 s/[\\&,]/\\&/g
41899 s,[\\$`],\\&,g
41900 t clear
41901 : clear
41902 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41903 t end
41904 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41905 : end
41906 _ACEOF
41907 # If some macros were called several times there might be several times
41908 # the same #defines, which is useless. Nevertheless, we may not want to
41909 # sort them, since we want the *last* AC-DEFINE to be honored.
41910 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41911 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41912 rm -f confdef2sed.sed
41914 # This sed command replaces #undef with comments. This is necessary, for
41915 # example, in the case of _POSIX_SOURCE, which is predefined and required
41916 # on some systems where configure will not decide to define it.
41917 cat >>conftest.undefs <<\_ACEOF
41918 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41919 _ACEOF
41921 # Break up conftest.defines because some shells have a limit on the size
41922 # of here documents, and old seds have small limits too (100 cmds).
41923 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41924 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41925 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41926 echo ' :' >>$CONFIG_STATUS
41927 rm -f conftest.tail
41928 while grep . conftest.defines >/dev/null
41930 # Write a limited-size here document to $tmp/defines.sed.
41931 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41932 # Speed up: don't consider the non `#define' lines.
41933 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
41934 # Work around the forget-to-reset-the-flag bug.
41935 echo 't clr' >>$CONFIG_STATUS
41936 echo ': clr' >>$CONFIG_STATUS
41937 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41938 echo 'CEOF
41939 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41940 rm -f $tmp/in
41941 mv $tmp/out $tmp/in
41942 ' >>$CONFIG_STATUS
41943 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41944 rm -f conftest.defines
41945 mv conftest.tail conftest.defines
41946 done
41947 rm -f conftest.defines
41948 echo ' fi # grep' >>$CONFIG_STATUS
41949 echo >>$CONFIG_STATUS
41951 # Break up conftest.undefs because some shells have a limit on the size
41952 # of here documents, and old seds have small limits too (100 cmds).
41953 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
41954 rm -f conftest.tail
41955 while grep . conftest.undefs >/dev/null
41957 # Write a limited-size here document to $tmp/undefs.sed.
41958 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41959 # Speed up: don't consider the non `#undef'
41960 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
41961 # Work around the forget-to-reset-the-flag bug.
41962 echo 't clr' >>$CONFIG_STATUS
41963 echo ': clr' >>$CONFIG_STATUS
41964 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41965 echo 'CEOF
41966 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41967 rm -f $tmp/in
41968 mv $tmp/out $tmp/in
41969 ' >>$CONFIG_STATUS
41970 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41971 rm -f conftest.undefs
41972 mv conftest.tail conftest.undefs
41973 done
41974 rm -f conftest.undefs
41976 cat >>$CONFIG_STATUS <<\_ACEOF
41977 # Let's still pretend it is `configure' which instantiates (i.e., don't
41978 # use $as_me), people would be surprised to read:
41979 # /* config.h. Generated by config.status. */
41980 if test x"$ac_file" = x-; then
41981 echo "/* Generated by configure. */" >$tmp/config.h
41982 else
41983 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
41985 cat $tmp/in >>$tmp/config.h
41986 rm -f $tmp/in
41987 if test x"$ac_file" != x-; then
41988 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41989 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41990 echo "$as_me: $ac_file is unchanged" >&6;}
41991 else
41992 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41993 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41994 X"$ac_file" : 'X\(//\)[^/]' \| \
41995 X"$ac_file" : 'X\(//\)$' \| \
41996 X"$ac_file" : 'X\(/\)' \| \
41997 . : '\(.\)' 2>/dev/null ||
41998 echo X"$ac_file" |
41999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42001 /^X\(\/\/\)$/{ s//\1/; q; }
42002 /^X\(\/\).*/{ s//\1/; q; }
42003 s/.*/./; q'`
42004 { if $as_mkdir_p; then
42005 mkdir -p "$ac_dir"
42006 else
42007 as_dir="$ac_dir"
42008 as_dirs=
42009 while test ! -d "$as_dir"; do
42010 as_dirs="$as_dir $as_dirs"
42011 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42013 X"$as_dir" : 'X\(//\)[^/]' \| \
42014 X"$as_dir" : 'X\(//\)$' \| \
42015 X"$as_dir" : 'X\(/\)' \| \
42016 . : '\(.\)' 2>/dev/null ||
42017 echo X"$as_dir" |
42018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42020 /^X\(\/\/\)$/{ s//\1/; q; }
42021 /^X\(\/\).*/{ s//\1/; q; }
42022 s/.*/./; q'`
42023 done
42024 test ! -n "$as_dirs" || mkdir $as_dirs
42025 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42026 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42027 { (exit 1); exit 1; }; }; }
42029 rm -f $ac_file
42030 mv $tmp/config.h $ac_file
42032 else
42033 cat $tmp/config.h
42034 rm -f $tmp/config.h
42036 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
42037 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42038 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42039 X$ac_file : 'X\(//\)[^/]' \| \
42040 X$ac_file : 'X\(//\)$' \| \
42041 X$ac_file : 'X\(/\)' \| \
42042 . : '\(.\)' 2>/dev/null ||
42043 echo X$ac_file |
42044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42046 /^X\(\/\/\)$/{ s//\1/; q; }
42047 /^X\(\/\).*/{ s//\1/; q; }
42048 s/.*/./; q'`/stamp-h$_am_stamp_count
42049 done
42050 _ACEOF
42051 cat >>$CONFIG_STATUS <<\_ACEOF
42054 # CONFIG_LINKS section.
42057 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
42058 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42059 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42061 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
42062 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
42064 if test ! -r $srcdir/$ac_source; then
42065 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
42066 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
42067 { (exit 1); exit 1; }; }
42069 rm -f $ac_dest
42071 # Make relative symlinks.
42072 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
42073 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42074 X"$ac_dest" : 'X\(//\)[^/]' \| \
42075 X"$ac_dest" : 'X\(//\)$' \| \
42076 X"$ac_dest" : 'X\(/\)' \| \
42077 . : '\(.\)' 2>/dev/null ||
42078 echo X"$ac_dest" |
42079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42081 /^X\(\/\/\)$/{ s//\1/; q; }
42082 /^X\(\/\).*/{ s//\1/; q; }
42083 s/.*/./; q'`
42084 { if $as_mkdir_p; then
42085 mkdir -p "$ac_dest_dir"
42086 else
42087 as_dir="$ac_dest_dir"
42088 as_dirs=
42089 while test ! -d "$as_dir"; do
42090 as_dirs="$as_dir $as_dirs"
42091 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42093 X"$as_dir" : 'X\(//\)[^/]' \| \
42094 X"$as_dir" : 'X\(//\)$' \| \
42095 X"$as_dir" : 'X\(/\)' \| \
42096 . : '\(.\)' 2>/dev/null ||
42097 echo X"$as_dir" |
42098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42099 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42100 /^X\(\/\/\)$/{ s//\1/; q; }
42101 /^X\(\/\).*/{ s//\1/; q; }
42102 s/.*/./; q'`
42103 done
42104 test ! -n "$as_dirs" || mkdir $as_dirs
42105 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
42106 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
42107 { (exit 1); exit 1; }; }; }
42109 ac_builddir=.
42111 if test "$ac_dest_dir" != .; then
42112 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
42113 # A "../" for each directory in $ac_dir_suffix.
42114 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42115 else
42116 ac_dir_suffix= ac_top_builddir=
42119 case $srcdir in
42120 .) # No --srcdir option. We are building in place.
42121 ac_srcdir=.
42122 if test -z "$ac_top_builddir"; then
42123 ac_top_srcdir=.
42124 else
42125 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42126 fi ;;
42127 [\\/]* | ?:[\\/]* ) # Absolute path.
42128 ac_srcdir=$srcdir$ac_dir_suffix;
42129 ac_top_srcdir=$srcdir ;;
42130 *) # Relative path.
42131 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42132 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42133 esac
42134 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
42135 # absolute.
42136 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
42137 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
42138 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
42139 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
42142 case $srcdir in
42143 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
42144 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
42145 esac
42147 # Try a symlink, then a hard link, then a copy.
42148 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
42149 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
42150 cp -p $srcdir/$ac_source $ac_dest ||
42151 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
42152 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
42153 { (exit 1); exit 1; }; }
42154 done
42155 _ACEOF
42156 cat >>$CONFIG_STATUS <<\_ACEOF
42159 # CONFIG_COMMANDS section.
42161 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42162 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42163 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42164 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42165 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42166 X"$ac_dest" : 'X\(//\)[^/]' \| \
42167 X"$ac_dest" : 'X\(//\)$' \| \
42168 X"$ac_dest" : 'X\(/\)' \| \
42169 . : '\(.\)' 2>/dev/null ||
42170 echo X"$ac_dest" |
42171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42172 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42173 /^X\(\/\/\)$/{ s//\1/; q; }
42174 /^X\(\/\).*/{ s//\1/; q; }
42175 s/.*/./; q'`
42176 ac_builddir=.
42178 if test "$ac_dir" != .; then
42179 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42180 # A "../" for each directory in $ac_dir_suffix.
42181 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42182 else
42183 ac_dir_suffix= ac_top_builddir=
42186 case $srcdir in
42187 .) # No --srcdir option. We are building in place.
42188 ac_srcdir=.
42189 if test -z "$ac_top_builddir"; then
42190 ac_top_srcdir=.
42191 else
42192 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42193 fi ;;
42194 [\\/]* | ?:[\\/]* ) # Absolute path.
42195 ac_srcdir=$srcdir$ac_dir_suffix;
42196 ac_top_srcdir=$srcdir ;;
42197 *) # Relative path.
42198 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42199 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42200 esac
42201 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
42202 # absolute.
42203 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
42204 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
42205 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
42206 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
42209 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42210 echo "$as_me: executing $ac_dest commands" >&6;}
42211 case $ac_dest in
42212 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42213 # Strip MF so we end up with the name of the file.
42214 mf=`echo "$mf" | sed -e 's/:.*$//'`
42215 # Check whether this is an Automake generated Makefile or not.
42216 # We used to match only the files named `Makefile.in', but
42217 # some people rename them; so instead we look at the file content.
42218 # Grep'ing the first line is not enough: some people post-process
42219 # each Makefile.in and add a new line on top of each file to say so.
42220 # So let's grep whole file.
42221 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42222 dirpart=`(dirname "$mf") 2>/dev/null ||
42223 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42224 X"$mf" : 'X\(//\)[^/]' \| \
42225 X"$mf" : 'X\(//\)$' \| \
42226 X"$mf" : 'X\(/\)' \| \
42227 . : '\(.\)' 2>/dev/null ||
42228 echo X"$mf" |
42229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42230 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42231 /^X\(\/\/\)$/{ s//\1/; q; }
42232 /^X\(\/\).*/{ s//\1/; q; }
42233 s/.*/./; q'`
42234 else
42235 continue
42237 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
42238 # Extract the definition of DEP_FILES from the Makefile without
42239 # running `make'.
42240 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
42241 test -z "$DEPDIR" && continue
42242 # When using ansi2knr, U may be empty or an underscore; expand it
42243 U=`sed -n -e '/^U = / s///p' < "$mf"`
42244 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
42245 # We invoke sed twice because it is the simplest approach to
42246 # changing $(DEPDIR) to its actual value in the expansion.
42247 for file in `sed -n -e '
42248 /^DEP_FILES = .*\\\\$/ {
42249 s/^DEP_FILES = //
42250 :loop
42251 s/\\\\$//
42254 /\\\\$/ b loop
42257 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
42258 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42259 # Make sure the directory exists.
42260 test -f "$dirpart/$file" && continue
42261 fdir=`(dirname "$file") 2>/dev/null ||
42262 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42263 X"$file" : 'X\(//\)[^/]' \| \
42264 X"$file" : 'X\(//\)$' \| \
42265 X"$file" : 'X\(/\)' \| \
42266 . : '\(.\)' 2>/dev/null ||
42267 echo X"$file" |
42268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42269 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42270 /^X\(\/\/\)$/{ s//\1/; q; }
42271 /^X\(\/\).*/{ s//\1/; q; }
42272 s/.*/./; q'`
42273 { if $as_mkdir_p; then
42274 mkdir -p $dirpart/$fdir
42275 else
42276 as_dir=$dirpart/$fdir
42277 as_dirs=
42278 while test ! -d "$as_dir"; do
42279 as_dirs="$as_dir $as_dirs"
42280 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42281 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42282 X"$as_dir" : 'X\(//\)[^/]' \| \
42283 X"$as_dir" : 'X\(//\)$' \| \
42284 X"$as_dir" : 'X\(/\)' \| \
42285 . : '\(.\)' 2>/dev/null ||
42286 echo X"$as_dir" |
42287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42289 /^X\(\/\/\)$/{ s//\1/; q; }
42290 /^X\(\/\).*/{ s//\1/; q; }
42291 s/.*/./; q'`
42292 done
42293 test ! -n "$as_dirs" || mkdir $as_dirs
42294 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42295 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42296 { (exit 1); exit 1; }; }; }
42298 # echo "creating $dirpart/$file"
42299 echo '# dummy' > "$dirpart/$file"
42300 done
42301 done
42303 default-1 )
42304 for ac_file in $CONFIG_FILES; do
42305 # Support "outfile[:infile[:infile...]]"
42306 case "$ac_file" in
42307 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
42308 esac
42309 # PO directories have a Makefile.in generated from Makefile.in.in.
42310 case "$ac_file" in */Makefile.in)
42311 # Adjust a relative srcdir.
42312 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
42313 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
42314 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
42315 # In autoconf-2.13 it is called $ac_given_srcdir.
42316 # In autoconf-2.50 it is called $srcdir.
42317 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
42318 case "$ac_given_srcdir" in
42319 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
42320 /*) top_srcdir="$ac_given_srcdir" ;;
42321 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
42322 esac
42323 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
42324 rm -f "$ac_dir/POTFILES"
42325 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
42326 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
42327 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
42328 # on $ac_dir but don't depend on user-specified configuration
42329 # parameters.
42330 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
42331 # The LINGUAS file contains the set of available languages.
42332 if test -n "$ALL_LINGUAS"; then
42333 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
42335 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
42336 # Hide the ALL_LINGUAS assigment from automake.
42337 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
42339 case "$ac_given_srcdir" in
42340 .) srcdirpre= ;;
42341 *) srcdirpre='$(srcdir)/' ;;
42342 esac
42343 POFILES=
42344 GMOFILES=
42345 UPDATEPOFILES=
42346 DUMMYPOFILES=
42347 for lang in $ALL_LINGUAS; do
42348 POFILES="$POFILES $srcdirpre$lang.po"
42349 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
42350 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
42351 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
42352 done
42353 # CATALOGS depends on both $ac_dir and the user's LINGUAS
42354 # environment variable.
42355 INST_LINGUAS=
42356 if test -n "$ALL_LINGUAS"; then
42357 for presentlang in $ALL_LINGUAS; do
42358 useit=no
42359 if test "%UNSET%" != "$LINGUAS"; then
42360 desiredlanguages="$LINGUAS"
42361 else
42362 desiredlanguages="$ALL_LINGUAS"
42364 for desiredlang in $desiredlanguages; do
42365 # Use the presentlang catalog if desiredlang is
42366 # a. equal to presentlang, or
42367 # b. a variant of presentlang (because in this case,
42368 # presentlang can be used as a fallback for messages
42369 # which are not translated in the desiredlang catalog).
42370 case "$desiredlang" in
42371 "$presentlang"*) useit=yes;;
42372 esac
42373 done
42374 if test $useit = yes; then
42375 INST_LINGUAS="$INST_LINGUAS $presentlang"
42377 done
42379 CATALOGS=
42380 if test -n "$INST_LINGUAS"; then
42381 for lang in $INST_LINGUAS; do
42382 CATALOGS="$CATALOGS $lang.gmo"
42383 done
42385 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
42386 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
42387 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
42388 if test -f "$f"; then
42389 case "$f" in
42390 *.orig | *.bak | *~) ;;
42391 *) cat "$f" >> "$ac_dir/Makefile" ;;
42392 esac
42394 done
42397 esac
42398 done ;;
42399 esac
42400 done
42401 _ACEOF
42403 cat >>$CONFIG_STATUS <<\_ACEOF
42405 { (exit 0); exit 0; }
42406 _ACEOF
42407 chmod +x $CONFIG_STATUS
42408 ac_clean_files=$ac_clean_files_save
42411 # configure is writing to config.log, and then calls config.status.
42412 # config.status does its own redirection, appending to config.log.
42413 # Unfortunately, on DOS this fails, as config.log is still kept open
42414 # by configure, so config.status won't be able to write to it; its
42415 # output is simply discarded. So we exec the FD to /dev/null,
42416 # effectively closing config.log, so it can be properly (re)opened and
42417 # appended to by config.status. When coming back to configure, we
42418 # need to make the FD available again.
42419 if test "$no_create" != yes; then
42420 ac_cs_success=:
42421 ac_config_status_args=
42422 test "$silent" = yes &&
42423 ac_config_status_args="$ac_config_status_args --quiet"
42424 exec 5>/dev/null
42425 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42426 exec 5>>config.log
42427 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42428 # would make configure fail if this is the last instruction.
42429 $ac_cs_success || { (exit 1); exit 1; }