(libcoreutils_a_SOURCES): Add fcntl--.h, stdio--h,
[platform/upstream/coreutils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU coreutils 5.3.0.
4 #
5 # Report bugs to <bug-coreutils@gnu.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
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
45 do
46   if (set +x; test -z "`(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
50   fi
51 done
52
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
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
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'`
78
79
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
87
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=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
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
113 do
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
118
119        ;;
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
125   fi
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; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
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
139          /*)
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
155 ;;
156   esac
157
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 '
168       N
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; }; }
179
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
186 }
187
188
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
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
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'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='GNU coreutils'
271 PACKAGE_TARNAME='coreutils'
272 PACKAGE_VERSION='5.3.0'
273 PACKAGE_STRING='GNU coreutils 5.3.0'
274 PACKAGE_BUGREPORT='bug-coreutils@gnu.org'
275
276 ac_unique_file="src/ls.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 ac_config_libobj_dir=lib
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEFAULT_POSIX2_VERSION 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 PERL RANLIB ac_ct_RANLIB LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os GNU_PACKAGE HELP2MAN OPTIONAL_BIN_PROGS MAN DF_PROG U ANSI2KNR LIBOBJS STDBOOL_H HAVE__BOOL ALLOCA ALLOCA_H FNMATCH_H NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS LIB_EACCESS POW_LIB EOVERFLOW YACC LIB_CLOCK_GETTIME GETOPT_H LIB_NANOSLEEP LIB_FDATASYNC SEQ_LIBM GLIBC21 LIBICONV LTLIBICONV SQRT_LIBM FESETROUND_LIBM LIB_CRYPT MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359   # If the previous option needs an argument, assign it.
360   if test -n "$ac_prev"; then
361     eval "$ac_prev=\$ac_option"
362     ac_prev=
363     continue
364   fi
365
366   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368   # Accept the important Cygnus configure options, so we can diagnose typos.
369
370   case $ac_option in
371
372   -bindir | --bindir | --bindi | --bind | --bin | --bi)
373     ac_prev=bindir ;;
374   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375     bindir=$ac_optarg ;;
376
377   -build | --build | --buil | --bui | --bu)
378     ac_prev=build_alias ;;
379   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380     build_alias=$ac_optarg ;;
381
382   -cache-file | --cache-file | --cache-fil | --cache-fi \
383   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384     ac_prev=cache_file ;;
385   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387     cache_file=$ac_optarg ;;
388
389   --config-cache | -C)
390     cache_file=config.cache ;;
391
392   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393     ac_prev=datadir ;;
394   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395   | --da=*)
396     datadir=$ac_optarg ;;
397
398   -disable-* | --disable-*)
399     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400     # Reject names that are not valid shell variable names.
401     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403    { (exit 1); exit 1; }; }
404     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405     eval "enable_$ac_feature=no" ;;
406
407   -enable-* | --enable-*)
408     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409     # Reject names that are not valid shell variable names.
410     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412    { (exit 1); exit 1; }; }
413     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414     case $ac_option in
415       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416       *) ac_optarg=yes ;;
417     esac
418     eval "enable_$ac_feature='$ac_optarg'" ;;
419
420   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422   | --exec | --exe | --ex)
423     ac_prev=exec_prefix ;;
424   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426   | --exec=* | --exe=* | --ex=*)
427     exec_prefix=$ac_optarg ;;
428
429   -gas | --gas | --ga | --g)
430     # Obsolete; use --with-gas.
431     with_gas=yes ;;
432
433   -help | --help | --hel | --he | -h)
434     ac_init_help=long ;;
435   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436     ac_init_help=recursive ;;
437   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438     ac_init_help=short ;;
439
440   -host | --host | --hos | --ho)
441     ac_prev=host_alias ;;
442   -host=* | --host=* | --hos=* | --ho=*)
443     host_alias=$ac_optarg ;;
444
445   -includedir | --includedir | --includedi | --included | --include \
446   | --includ | --inclu | --incl | --inc)
447     ac_prev=includedir ;;
448   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449   | --includ=* | --inclu=* | --incl=* | --inc=*)
450     includedir=$ac_optarg ;;
451
452   -infodir | --infodir | --infodi | --infod | --info | --inf)
453     ac_prev=infodir ;;
454   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455     infodir=$ac_optarg ;;
456
457   -libdir | --libdir | --libdi | --libd)
458     ac_prev=libdir ;;
459   -libdir=* | --libdir=* | --libdi=* | --libd=*)
460     libdir=$ac_optarg ;;
461
462   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463   | --libexe | --libex | --libe)
464     ac_prev=libexecdir ;;
465   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466   | --libexe=* | --libex=* | --libe=*)
467     libexecdir=$ac_optarg ;;
468
469   -localstatedir | --localstatedir | --localstatedi | --localstated \
470   | --localstate | --localstat | --localsta | --localst \
471   | --locals | --local | --loca | --loc | --lo)
472     ac_prev=localstatedir ;;
473   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476     localstatedir=$ac_optarg ;;
477
478   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479     ac_prev=mandir ;;
480   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481     mandir=$ac_optarg ;;
482
483   -nfp | --nfp | --nf)
484     # Obsolete; use --without-fp.
485     with_fp=no ;;
486
487   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488   | --no-cr | --no-c | -n)
489     no_create=yes ;;
490
491   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493     no_recursion=yes ;;
494
495   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497   | --oldin | --oldi | --old | --ol | --o)
498     ac_prev=oldincludedir ;;
499   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502     oldincludedir=$ac_optarg ;;
503
504   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505     ac_prev=prefix ;;
506   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507     prefix=$ac_optarg ;;
508
509   -program-prefix | --program-prefix | --program-prefi | --program-pref \
510   | --program-pre | --program-pr | --program-p)
511     ac_prev=program_prefix ;;
512   -program-prefix=* | --program-prefix=* | --program-prefi=* \
513   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514     program_prefix=$ac_optarg ;;
515
516   -program-suffix | --program-suffix | --program-suffi | --program-suff \
517   | --program-suf | --program-su | --program-s)
518     ac_prev=program_suffix ;;
519   -program-suffix=* | --program-suffix=* | --program-suffi=* \
520   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521     program_suffix=$ac_optarg ;;
522
523   -program-transform-name | --program-transform-name \
524   | --program-transform-nam | --program-transform-na \
525   | --program-transform-n | --program-transform- \
526   | --program-transform | --program-transfor \
527   | --program-transfo | --program-transf \
528   | --program-trans | --program-tran \
529   | --progr-tra | --program-tr | --program-t)
530     ac_prev=program_transform_name ;;
531   -program-transform-name=* | --program-transform-name=* \
532   | --program-transform-nam=* | --program-transform-na=* \
533   | --program-transform-n=* | --program-transform-=* \
534   | --program-transform=* | --program-transfor=* \
535   | --program-transfo=* | --program-transf=* \
536   | --program-trans=* | --program-tran=* \
537   | --progr-tra=* | --program-tr=* | --program-t=*)
538     program_transform_name=$ac_optarg ;;
539
540   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541   | -silent | --silent | --silen | --sile | --sil)
542     silent=yes ;;
543
544   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545     ac_prev=sbindir ;;
546   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547   | --sbi=* | --sb=*)
548     sbindir=$ac_optarg ;;
549
550   -sharedstatedir | --sharedstatedir | --sharedstatedi \
551   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552   | --sharedst | --shareds | --shared | --share | --shar \
553   | --sha | --sh)
554     ac_prev=sharedstatedir ;;
555   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558   | --sha=* | --sh=*)
559     sharedstatedir=$ac_optarg ;;
560
561   -site | --site | --sit)
562     ac_prev=site ;;
563   -site=* | --site=* | --sit=*)
564     site=$ac_optarg ;;
565
566   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567     ac_prev=srcdir ;;
568   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569     srcdir=$ac_optarg ;;
570
571   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572   | --syscon | --sysco | --sysc | --sys | --sy)
573     ac_prev=sysconfdir ;;
574   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576     sysconfdir=$ac_optarg ;;
577
578   -target | --target | --targe | --targ | --tar | --ta | --t)
579     ac_prev=target_alias ;;
580   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581     target_alias=$ac_optarg ;;
582
583   -v | -verbose | --verbose | --verbos | --verbo | --verb)
584     verbose=yes ;;
585
586   -version | --version | --versio | --versi | --vers | -V)
587     ac_init_version=: ;;
588
589   -with-* | --with-*)
590     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package| sed 's/-/_/g'`
596     case $ac_option in
597       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598       *) ac_optarg=yes ;;
599     esac
600     eval "with_$ac_package='$ac_optarg'" ;;
601
602   -without-* | --without-*)
603     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604     # Reject names that are not valid shell variable names.
605     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606       { echo "$as_me: error: invalid package name: $ac_package" >&2
607    { (exit 1); exit 1; }; }
608     ac_package=`echo $ac_package | sed 's/-/_/g'`
609     eval "with_$ac_package=no" ;;
610
611   --x)
612     # Obsolete; use --with-x.
613     with_x=yes ;;
614
615   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616   | --x-incl | --x-inc | --x-in | --x-i)
617     ac_prev=x_includes ;;
618   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620     x_includes=$ac_optarg ;;
621
622   -x-libraries | --x-libraries | --x-librarie | --x-librari \
623   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624     ac_prev=x_libraries ;;
625   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627     x_libraries=$ac_optarg ;;
628
629   -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631    { (exit 1); exit 1; }; }
632     ;;
633
634   *=*)
635     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636     # Reject names that are not valid shell variable names.
637     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639    { (exit 1); exit 1; }; }
640     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641     eval "$ac_envvar='$ac_optarg'"
642     export $ac_envvar ;;
643
644   *)
645     # FIXME: should be removed in autoconf 3.0.
646     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650     ;;
651
652   esac
653 done
654
655 if test -n "$ac_prev"; then
656   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657   { echo "$as_me: error: missing argument to $ac_option" >&2
658    { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664   eval ac_val=$`echo $ac_var`
665   case $ac_val in
666     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668    { (exit 1); exit 1; }; };;
669   esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674               localstatedir libdir includedir oldincludedir infodir mandir
675 do
676   eval ac_val=$`echo $ac_var`
677   case $ac_val in
678     [\\/$]* | ?:[\\/]* ) ;;
679     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680    { (exit 1); exit 1; }; };;
681   esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693   if test "x$build_alias" = x; then
694     cross_compiling=maybe
695     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696     If a cross compiler is detected then cross compile mode will be used." >&2
697   elif test "x$build_alias" != "x$host_alias"; then
698     cross_compiling=yes
699   fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710   ac_srcdir_defaulted=yes
711   # Try the directory containing this script, then its parent.
712   ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714          X"$0" : 'X\(//\)[^/]' \| \
715          X"$0" : 'X\(//\)$' \| \
716          X"$0" : 'X\(/\)' \| \
717          .     : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721           /^X\(\/\/\)$/{ s//\1/; q; }
722           /^X\(\/\).*/{ s//\1/; q; }
723           s/.*/./; q'`
724   srcdir=$ac_confdir
725   if test ! -r $srcdir/$ac_unique_file; then
726     srcdir=..
727   fi
728 else
729   ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732   if test "$ac_srcdir_defaulted" = yes; then
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734    { (exit 1); exit 1; }; }
735   else
736     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737    { (exit 1); exit 1; }; }
738   fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742    { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_DEFAULT_POSIX2_VERSION_set=${DEFAULT_POSIX2_VERSION+set}
757 ac_env_DEFAULT_POSIX2_VERSION_value=$DEFAULT_POSIX2_VERSION
758 ac_cv_env_DEFAULT_POSIX2_VERSION_set=${DEFAULT_POSIX2_VERSION+set}
759 ac_cv_env_DEFAULT_POSIX2_VERSION_value=$DEFAULT_POSIX2_VERSION
760 ac_env_CC_set=${CC+set}
761 ac_env_CC_value=$CC
762 ac_cv_env_CC_set=${CC+set}
763 ac_cv_env_CC_value=$CC
764 ac_env_CFLAGS_set=${CFLAGS+set}
765 ac_env_CFLAGS_value=$CFLAGS
766 ac_cv_env_CFLAGS_set=${CFLAGS+set}
767 ac_cv_env_CFLAGS_value=$CFLAGS
768 ac_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_env_LDFLAGS_value=$LDFLAGS
770 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
771 ac_cv_env_LDFLAGS_value=$LDFLAGS
772 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_env_CPPFLAGS_value=$CPPFLAGS
774 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
775 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures GNU coreutils 5.3.0 to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 Program names:
842   --program-prefix=PREFIX            prepend PREFIX to installed program names
843   --program-suffix=SUFFIX            append SUFFIX to installed program names
844   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
845
846 System types:
847   --build=BUILD     configure for building on BUILD [guessed]
848   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853   case $ac_init_help in
854      short | recursive ) echo "Configuration of GNU coreutils 5.3.0:";;
855    esac
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --disable-dependency-tracking  speeds up one-time build
862   --enable-dependency-tracking   do not reject slow dependency extractors
863   --disable-largefile     omit support for large files
864   --disable-assert        turn off assertions
865   --disable-rpath         do not hardcode runtime library paths
866   --disable-nls           do not use Native Language Support
867
868 Optional Packages:
869   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
870   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
871   --with-afs              support for the Andrew File System [default=no]
872   --without-included-regex don't compile regex; this is the default on
873                           systems with version 2 of the GNU C library
874                           (use with caution on other system)
875   --with-gnu-ld           assume the C compiler uses GNU ld default=no
876   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
877   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
878   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
879   --without-libintl-prefix     don't search for libintl in includedir and libdir
880
881 Some influential environment variables:
882   DEFAULT_POSIX2_VERSION
883               POSIX version to default to; see 'config.hin'.
884   CC          C compiler command
885   CFLAGS      C compiler flags
886   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
887               nonstandard directory <lib dir>
888   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
889               headers in a nonstandard directory <include dir>
890   CPP         C preprocessor
891
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
894
895 Report bugs to <bug-coreutils@gnu.org>.
896 _ACEOF
897 fi
898
899 if test "$ac_init_help" = "recursive"; then
900   # If there are subdirs, report their specific --help.
901   ac_popdir=`pwd`
902   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903     test -d $ac_dir || continue
904     ac_builddir=.
905
906 if test "$ac_dir" != .; then
907   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908   # A "../" for each directory in $ac_dir_suffix.
909   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911   ac_dir_suffix= ac_top_builddir=
912 fi
913
914 case $srcdir in
915   .)  # No --srcdir option.  We are building in place.
916     ac_srcdir=.
917     if test -z "$ac_top_builddir"; then
918        ac_top_srcdir=.
919     else
920        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921     fi ;;
922   [\\/]* | ?:[\\/]* )  # Absolute path.
923     ac_srcdir=$srcdir$ac_dir_suffix;
924     ac_top_srcdir=$srcdir ;;
925   *) # Relative path.
926     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927     ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
929
930 # Do not use `cd foo && pwd` to compute absolute paths, because
931 # the directories may not exist.
932 case `pwd` in
933 .) ac_abs_builddir="$ac_dir";;
934 *)
935   case "$ac_dir" in
936   .) ac_abs_builddir=`pwd`;;
937   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938   *) ac_abs_builddir=`pwd`/"$ac_dir";;
939   esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *)
944   case ${ac_top_builddir}. in
945   .) ac_abs_top_builddir=$ac_abs_builddir;;
946   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948   esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
952 *)
953   case $ac_srcdir in
954   .) ac_abs_srcdir=$ac_abs_builddir;;
955   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957   esac;;
958 esac
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *)
962   case $ac_top_srcdir in
963   .) ac_abs_top_srcdir=$ac_abs_builddir;;
964   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966   esac;;
967 esac
968
969     cd $ac_dir
970     # Check for guested configure; otherwise get Cygnus style configure.
971     if test -f $ac_srcdir/configure.gnu; then
972       echo
973       $SHELL $ac_srcdir/configure.gnu  --help=recursive
974     elif test -f $ac_srcdir/configure; then
975       echo
976       $SHELL $ac_srcdir/configure  --help=recursive
977     elif test -f $ac_srcdir/configure.ac ||
978            test -f $ac_srcdir/configure.in; then
979       echo
980       $ac_configure --help
981     else
982       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983     fi
984     cd $ac_popdir
985   done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990   cat <<\_ACEOF
991 GNU coreutils configure 5.3.0
992 generated by GNU Autoconf 2.59
993
994 Copyright (C) 2003 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
997 _ACEOF
998   exit 0
999 fi
1000 exec 5>config.log
1001 cat >&5 <<_ACEOF
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1004
1005 It was created by GNU coreutils $as_me 5.3.0, which was
1006 generated by GNU Autoconf 2.59.  Invocation command line was
1007
1008   $ $0 $@
1009
1010 _ACEOF
1011 {
1012 cat <<_ASUNAME
1013 ## --------- ##
1014 ## Platform. ##
1015 ## --------- ##
1016
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1025
1026 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1027 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1030 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1031 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1032 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1033
1034 _ASUNAME
1035
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 for as_dir in $PATH
1038 do
1039   IFS=$as_save_IFS
1040   test -z "$as_dir" && as_dir=.
1041   echo "PATH: $as_dir"
1042 done
1043
1044 } >&5
1045
1046 cat >&5 <<_ACEOF
1047
1048
1049 ## ----------- ##
1050 ## Core tests. ##
1051 ## ----------- ##
1052
1053 _ACEOF
1054
1055
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1061 ac_configure_args=
1062 ac_configure_args0=
1063 ac_configure_args1=
1064 ac_sep=
1065 ac_must_keep_next=false
1066 for ac_pass in 1 2
1067 do
1068   for ac_arg
1069   do
1070     case $ac_arg in
1071     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073     | -silent | --silent | --silen | --sile | --sil)
1074       continue ;;
1075     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077     esac
1078     case $ac_pass in
1079     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080     2)
1081       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082       if test $ac_must_keep_next = true; then
1083         ac_must_keep_next=false # Got value, back to normal.
1084       else
1085         case $ac_arg in
1086           *=* | --config-cache | -C | -disable-* | --disable-* \
1087           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089           | -with-* | --with-* | -without-* | --without-* | --x)
1090             case "$ac_configure_args0 " in
1091               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092             esac
1093             ;;
1094           -* ) ac_must_keep_next=true ;;
1095         esac
1096       fi
1097       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098       # Get rid of the leading space.
1099       ac_sep=" "
1100       ;;
1101     esac
1102   done
1103 done
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log.  We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113   # Save into config.log some information that might help in debugging.
1114   {
1115     echo
1116
1117     cat <<\_ASBOX
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1121 _ASBOX
1122     echo
1123     # The following way of writing the cache mishandles newlines in values,
1124 {
1125   (set) 2>&1 |
1126     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127     *ac_space=\ *)
1128       sed -n \
1129         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131       ;;
1132     *)
1133       sed -n \
1134         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1135       ;;
1136     esac;
1137 }
1138     echo
1139
1140     cat <<\_ASBOX
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1144 _ASBOX
1145     echo
1146     for ac_var in $ac_subst_vars
1147     do
1148       eval ac_val=$`echo $ac_var`
1149       echo "$ac_var='"'"'$ac_val'"'"'"
1150     done | sort
1151     echo
1152
1153     if test -n "$ac_subst_files"; then
1154       cat <<\_ASBOX
1155 ## ------------- ##
1156 ## Output files. ##
1157 ## ------------- ##
1158 _ASBOX
1159       echo
1160       for ac_var in $ac_subst_files
1161       do
1162         eval ac_val=$`echo $ac_var`
1163         echo "$ac_var='"'"'$ac_val'"'"'"
1164       done | sort
1165       echo
1166     fi
1167
1168     if test -s confdefs.h; then
1169       cat <<\_ASBOX
1170 ## ----------- ##
1171 ## confdefs.h. ##
1172 ## ----------- ##
1173 _ASBOX
1174       echo
1175       sed "/^$/d" confdefs.h | sort
1176       echo
1177     fi
1178     test "$ac_signal" != 0 &&
1179       echo "$as_me: caught signal $ac_signal"
1180     echo "$as_me: exit $exit_status"
1181   } >&5
1182   rm -f core *.core &&
1183   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184     exit $exit_status
1185      ' 0
1186 for ac_signal in 1 2 13 15; do
1187   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 done
1189 ac_signal=0
1190
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 echo >confdefs.h
1195
1196 # Predefined preprocessor variables.
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 _ACEOF
1221
1222
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226   if test "x$prefix" != xNONE; then
1227     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228   else
1229     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230   fi
1231 fi
1232 for ac_site_file in $CONFIG_SITE; do
1233   if test -r "$ac_site_file"; then
1234     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236     sed 's/^/| /' "$ac_site_file" >&5
1237     . "$ac_site_file"
1238   fi
1239 done
1240
1241 if test -r "$cache_file"; then
1242   # Some versions of bash will fail to source /dev/null (special
1243   # files actually), so we avoid doing that.
1244   if test -f "$cache_file"; then
1245     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1247     case $cache_file in
1248       [\\/]* | ?:[\\/]* ) . $cache_file;;
1249       *)                      . ./$cache_file;;
1250     esac
1251   fi
1252 else
1253   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1255   >$cache_file
1256 fi
1257
1258 # Check that the precious variables saved in the cache have kept the same
1259 # value.
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264   eval ac_new_set=\$ac_env_${ac_var}_set
1265   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266   eval ac_new_val="\$ac_env_${ac_var}_value"
1267   case $ac_old_set,$ac_new_set in
1268     set,)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,set)
1273       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275       ac_cache_corrupted=: ;;
1276     ,);;
1277     *)
1278       if test "x$ac_old_val" != "x$ac_new_val"; then
1279         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1282 echo "$as_me:   former value:  $ac_old_val" >&2;}
1283         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1284 echo "$as_me:   current value: $ac_new_val" >&2;}
1285         ac_cache_corrupted=:
1286       fi;;
1287   esac
1288   # Pass precious variables to config.status.
1289   if test "$ac_new_set" = set; then
1290     case $ac_new_val in
1291     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293     *) ac_arg=$ac_var=$ac_new_val ;;
1294     esac
1295     case " $ac_configure_args " in
1296       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1297       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298     esac
1299   fi
1300 done
1301 if $ac_cache_corrupted; then
1302   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306    { (exit 1); exit 1; }; }
1307 fi
1308
1309 ac_ext=c
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343 ac_aux_dir=
1344 for ac_dir in config $srcdir/config; do
1345   if test -f $ac_dir/install-sh; then
1346     ac_aux_dir=$ac_dir
1347     ac_install_sh="$ac_aux_dir/install-sh -c"
1348     break
1349   elif test -f $ac_dir/install.sh; then
1350     ac_aux_dir=$ac_dir
1351     ac_install_sh="$ac_aux_dir/install.sh -c"
1352     break
1353   elif test -f $ac_dir/shtool; then
1354     ac_aux_dir=$ac_dir
1355     ac_install_sh="$ac_aux_dir/shtool install -c"
1356     break
1357   fi
1358 done
1359 if test -z "$ac_aux_dir"; then
1360   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1361 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1362    { (exit 1); exit 1; }; }
1363 fi
1364 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1365 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1366 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1367
1368           ac_config_headers="$ac_config_headers config.h:config.hin"
1369
1370
1371 am__api_version="1.9"
1372 # Find a good install program.  We prefer a C program (faster),
1373 # so one script is as good as another.  But avoid the broken or
1374 # incompatible versions:
1375 # SysV /etc/install, /usr/sbin/install
1376 # SunOS /usr/etc/install
1377 # IRIX /sbin/install
1378 # AIX /bin/install
1379 # AmigaOS /C/install, which installs bootblocks on floppy discs
1380 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1381 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1382 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1383 # OS/2's system install, which has a completely different semantic
1384 # ./install, which can be erroneously created by make from ./install.sh.
1385 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1386 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1387 if test -z "$INSTALL"; then
1388 if test "${ac_cv_path_install+set}" = set; then
1389   echo $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392 for as_dir in $PATH
1393 do
1394   IFS=$as_save_IFS
1395   test -z "$as_dir" && as_dir=.
1396   # Account for people who put trailing slashes in PATH elements.
1397 case $as_dir/ in
1398   ./ | .// | /cC/* | \
1399   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1400   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1401   /usr/ucb/* ) ;;
1402   *)
1403     # OSF1 and SCO ODT 3.0 have their own names for install.
1404     # Don't use installbsd from OSF since it installs stuff as root
1405     # by default.
1406     for ac_prog in ginstall scoinst install; do
1407       for ac_exec_ext in '' $ac_executable_extensions; do
1408         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1409           if test $ac_prog = install &&
1410             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1411             # AIX install.  It has an incompatible calling convention.
1412             :
1413           elif test $ac_prog = install &&
1414             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1415             # program-specific install script used by HP pwplus--don't use.
1416             :
1417           else
1418             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1419             break 3
1420           fi
1421         fi
1422       done
1423     done
1424     ;;
1425 esac
1426 done
1427
1428
1429 fi
1430   if test "${ac_cv_path_install+set}" = set; then
1431     INSTALL=$ac_cv_path_install
1432   else
1433     # As a last resort, use the slow shell script.  We don't cache a
1434     # path for INSTALL within a source directory, because that will
1435     # break other packages using the cache if that directory is
1436     # removed, or if the path is relative.
1437     INSTALL=$ac_install_sh
1438   fi
1439 fi
1440 echo "$as_me:$LINENO: result: $INSTALL" >&5
1441 echo "${ECHO_T}$INSTALL" >&6
1442
1443 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1444 # It thinks the first close brace ends the variable substitution.
1445 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1446
1447 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1448
1449 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1450
1451 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1452 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1453 # Just in case
1454 sleep 1
1455 echo timestamp > conftest.file
1456 # Do `set' in a subshell so we don't clobber the current shell's
1457 # arguments.  Must try -L first in case configure is actually a
1458 # symlink; some systems play weird games with the mod time of symlinks
1459 # (eg FreeBSD returns the mod time of the symlink's containing
1460 # directory).
1461 if (
1462    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1463    if test "$*" = "X"; then
1464       # -L didn't work.
1465       set X `ls -t $srcdir/configure conftest.file`
1466    fi
1467    rm -f conftest.file
1468    if test "$*" != "X $srcdir/configure conftest.file" \
1469       && test "$*" != "X conftest.file $srcdir/configure"; then
1470
1471       # If neither matched, then we have a broken ls.  This can happen
1472       # if, for instance, CONFIG_SHELL is bash and it inherits a
1473       # broken ls alias from the environment.  This has actually
1474       # happened.  Such a system could not be considered "sane".
1475       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1476 alias in your environment" >&5
1477 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1478 alias in your environment" >&2;}
1479    { (exit 1); exit 1; }; }
1480    fi
1481
1482    test "$2" = conftest.file
1483    )
1484 then
1485    # Ok.
1486    :
1487 else
1488    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1489 Check your system clock" >&5
1490 echo "$as_me: error: newly created file is older than distributed files!
1491 Check your system clock" >&2;}
1492    { (exit 1); exit 1; }; }
1493 fi
1494 echo "$as_me:$LINENO: result: yes" >&5
1495 echo "${ECHO_T}yes" >&6
1496 test "$program_prefix" != NONE &&
1497   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1498 # Use a double $ so make ignores it.
1499 test "$program_suffix" != NONE &&
1500   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1501 # Double any \ or $.  echo might interpret backslashes.
1502 # By default was `s,x,x', remove it if useless.
1503 cat <<\_ACEOF >conftest.sed
1504 s/[\\$]/&&/g;s/;s,x,x,$//
1505 _ACEOF
1506 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1507 rm conftest.sed
1508
1509 # expand $ac_aux_dir to an absolute path
1510 am_aux_dir=`cd $ac_aux_dir && pwd`
1511
1512 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1513 # Use eval to expand $SHELL
1514 if eval "$MISSING --run true"; then
1515   am_missing_run="$MISSING --run "
1516 else
1517   am_missing_run=
1518   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1519 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1520 fi
1521
1522 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1523   # We used to keeping the `.' as first argument, in order to
1524   # allow $(mkdir_p) to be used without argument.  As in
1525   #   $(mkdir_p) $(somedir)
1526   # where $(somedir) is conditionally defined.  However this is wrong
1527   # for two reasons:
1528   #  1. if the package is installed by a user who cannot write `.'
1529   #     make install will fail,
1530   #  2. the above comment should most certainly read
1531   #     $(mkdir_p) $(DESTDIR)$(somedir)
1532   #     so it does not work when $(somedir) is undefined and
1533   #     $(DESTDIR) is not.
1534   #  To support the latter case, we have to write
1535   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1536   #  so the `.' trick is pointless.
1537   mkdir_p='mkdir -p --'
1538 else
1539   # On NextStep and OpenStep, the `mkdir' command does not
1540   # recognize any option.  It will interpret all options as
1541   # directories to create, and then abort because `.' already
1542   # exists.
1543   for d in ./-p ./--version;
1544   do
1545     test -d $d && rmdir $d
1546   done
1547   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1548   if test -f "$ac_aux_dir/mkinstalldirs"; then
1549     mkdir_p='$(mkinstalldirs)'
1550   else
1551     mkdir_p='$(install_sh) -d'
1552   fi
1553 fi
1554
1555 for ac_prog in gawk mawk nawk awk
1556 do
1557   # Extract the first word of "$ac_prog", so it can be a program name with args.
1558 set dummy $ac_prog; ac_word=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_AWK+set}" = set; then
1562   echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564   if test -n "$AWK"; then
1565   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1566 else
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 for as_dir in $PATH
1569 do
1570   IFS=$as_save_IFS
1571   test -z "$as_dir" && as_dir=.
1572   for ac_exec_ext in '' $ac_executable_extensions; do
1573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574     ac_cv_prog_AWK="$ac_prog"
1575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576     break 2
1577   fi
1578 done
1579 done
1580
1581 fi
1582 fi
1583 AWK=$ac_cv_prog_AWK
1584 if test -n "$AWK"; then
1585   echo "$as_me:$LINENO: result: $AWK" >&5
1586 echo "${ECHO_T}$AWK" >&6
1587 else
1588   echo "$as_me:$LINENO: result: no" >&5
1589 echo "${ECHO_T}no" >&6
1590 fi
1591
1592   test -n "$AWK" && break
1593 done
1594
1595 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1596 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1597 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1598 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1599   echo $ECHO_N "(cached) $ECHO_C" >&6
1600 else
1601   cat >conftest.make <<\_ACEOF
1602 all:
1603         @echo 'ac_maketemp="$(MAKE)"'
1604 _ACEOF
1605 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1606 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1607 if test -n "$ac_maketemp"; then
1608   eval ac_cv_prog_make_${ac_make}_set=yes
1609 else
1610   eval ac_cv_prog_make_${ac_make}_set=no
1611 fi
1612 rm -f conftest.make
1613 fi
1614 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1615   echo "$as_me:$LINENO: result: yes" >&5
1616 echo "${ECHO_T}yes" >&6
1617   SET_MAKE=
1618 else
1619   echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1621   SET_MAKE="MAKE=${MAKE-make}"
1622 fi
1623
1624 rm -rf .tst 2>/dev/null
1625 mkdir .tst 2>/dev/null
1626 if test -d .tst; then
1627   am__leading_dot=.
1628 else
1629   am__leading_dot=_
1630 fi
1631 rmdir .tst 2>/dev/null
1632
1633 # test to see if srcdir already configured
1634 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1635    test -f $srcdir/config.status; then
1636   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1637 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1638    { (exit 1); exit 1; }; }
1639 fi
1640
1641 # test whether we have cygpath
1642 if test -z "$CYGPATH_W"; then
1643   if (cygpath --version) >/dev/null 2>/dev/null; then
1644     CYGPATH_W='cygpath -w'
1645   else
1646     CYGPATH_W=echo
1647   fi
1648 fi
1649
1650
1651 # Define the identity of the package.
1652  PACKAGE='coreutils'
1653  VERSION='5.3.0'
1654
1655
1656 cat >>confdefs.h <<_ACEOF
1657 #define PACKAGE "$PACKAGE"
1658 _ACEOF
1659
1660
1661 cat >>confdefs.h <<_ACEOF
1662 #define VERSION "$VERSION"
1663 _ACEOF
1664
1665 # Some tools Automake needs.
1666
1667 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1668
1669
1670 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1671
1672
1673 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1674
1675
1676 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1677
1678
1679 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1680
1681 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1682
1683 # Installed binaries are usually stripped using `strip' when the user
1684 # run `make install-strip'.  However `strip' might not be the right
1685 # tool to use in cross-compilation environments, therefore Automake
1686 # will honor the `STRIP' environment variable to overrule this program.
1687 if test "$cross_compiling" != no; then
1688   if test -n "$ac_tool_prefix"; then
1689   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1690 set dummy ${ac_tool_prefix}strip; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_STRIP+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   if test -n "$STRIP"; then
1697   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1698 else
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702   IFS=$as_save_IFS
1703   test -z "$as_dir" && as_dir=.
1704   for ac_exec_ext in '' $ac_executable_extensions; do
1705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708     break 2
1709   fi
1710 done
1711 done
1712
1713 fi
1714 fi
1715 STRIP=$ac_cv_prog_STRIP
1716 if test -n "$STRIP"; then
1717   echo "$as_me:$LINENO: result: $STRIP" >&5
1718 echo "${ECHO_T}$STRIP" >&6
1719 else
1720   echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1722 fi
1723
1724 fi
1725 if test -z "$ac_cv_prog_STRIP"; then
1726   ac_ct_STRIP=$STRIP
1727   # Extract the first word of "strip", so it can be a program name with args.
1728 set dummy strip; ac_word=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1732   echo $ECHO_N "(cached) $ECHO_C" >&6
1733 else
1734   if test -n "$ac_ct_STRIP"; then
1735   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1736 else
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 for as_dir in $PATH
1739 do
1740   IFS=$as_save_IFS
1741   test -z "$as_dir" && as_dir=.
1742   for ac_exec_ext in '' $ac_executable_extensions; do
1743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744     ac_cv_prog_ac_ct_STRIP="strip"
1745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1746     break 2
1747   fi
1748 done
1749 done
1750
1751   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1752 fi
1753 fi
1754 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1755 if test -n "$ac_ct_STRIP"; then
1756   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1757 echo "${ECHO_T}$ac_ct_STRIP" >&6
1758 else
1759   echo "$as_me:$LINENO: result: no" >&5
1760 echo "${ECHO_T}no" >&6
1761 fi
1762
1763   STRIP=$ac_ct_STRIP
1764 else
1765   STRIP="$ac_cv_prog_STRIP"
1766 fi
1767
1768 fi
1769 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1770
1771 # We need awk for the "check" target.  The system "awk" is bad on
1772 # some platforms.
1773 # Always define AMTAR for backward compatibility.
1774
1775 AMTAR=${AMTAR-"${am_missing_run}tar"}
1776
1777 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1778
1779
1780
1781
1782
1783
1784
1785   echo "$as_me:$LINENO: checking for desired default level of POSIX conformance" >&5
1786 echo $ECHO_N "checking for desired default level of POSIX conformance... $ECHO_C" >&6
1787   gl_default_posix2_version=none-specified
1788   if test -n "$ac_cv_env_DEFAULT_POSIX2_VERSION_set"; then
1789     gl_default_posix2_version=$ac_cv_env_DEFAULT_POSIX2_VERSION_value
1790
1791 cat >>confdefs.h <<_ACEOF
1792 #define DEFAULT_POSIX2_VERSION $gl_default_posix2_version
1793 _ACEOF
1794
1795   fi
1796   echo "$as_me:$LINENO: result: $gl_default_posix2_version" >&5
1797 echo "${ECHO_T}$gl_default_posix2_version" >&6
1798
1799
1800
1801 cat >>confdefs.h <<\_ACEOF
1802 #define _GNU_SOURCE 1
1803 _ACEOF
1804
1805
1806 DEPDIR="${am__leading_dot}deps"
1807
1808           ac_config_commands="$ac_config_commands depfiles"
1809
1810
1811 am_make=${MAKE-make}
1812 cat > confinc << 'END'
1813 am__doit:
1814         @echo done
1815 .PHONY: am__doit
1816 END
1817 # If we don't find an include directive, just comment out the code.
1818 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1819 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1820 am__include="#"
1821 am__quote=
1822 _am_result=none
1823 # First try GNU make style include.
1824 echo "include confinc" > confmf
1825 # We grep out `Entering directory' and `Leaving directory'
1826 # messages which can occur if `w' ends up in MAKEFLAGS.
1827 # In particular we don't look at `^make:' because GNU make might
1828 # be invoked under some other name (usually "gmake"), in which
1829 # case it prints its new name instead of `make'.
1830 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1831    am__include=include
1832    am__quote=
1833    _am_result=GNU
1834 fi
1835 # Now try BSD make style include.
1836 if test "$am__include" = "#"; then
1837    echo '.include "confinc"' > confmf
1838    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1839       am__include=.include
1840       am__quote="\""
1841       _am_result=BSD
1842    fi
1843 fi
1844
1845
1846 echo "$as_me:$LINENO: result: $_am_result" >&5
1847 echo "${ECHO_T}$_am_result" >&6
1848 rm -f confinc confmf
1849
1850 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1851 if test "${enable_dependency_tracking+set}" = set; then
1852   enableval="$enable_dependency_tracking"
1853
1854 fi;
1855 if test "x$enable_dependency_tracking" != xno; then
1856   am_depcomp="$ac_aux_dir/depcomp"
1857   AMDEPBACKSLASH='\'
1858 fi
1859
1860
1861 if test "x$enable_dependency_tracking" != xno; then
1862   AMDEP_TRUE=
1863   AMDEP_FALSE='#'
1864 else
1865   AMDEP_TRUE='#'
1866   AMDEP_FALSE=
1867 fi
1868
1869
1870
1871 ac_ext=c
1872 ac_cpp='$CPP $CPPFLAGS'
1873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1876 if test -n "$ac_tool_prefix"; then
1877   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1878 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_CC+set}" = set; then
1882   echo $ECHO_N "(cached) $ECHO_C" >&6
1883 else
1884   if test -n "$CC"; then
1885   ac_cv_prog_CC="$CC" # Let the user override the test.
1886 else
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 for as_dir in $PATH
1889 do
1890   IFS=$as_save_IFS
1891   test -z "$as_dir" && as_dir=.
1892   for ac_exec_ext in '' $ac_executable_extensions; do
1893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896     break 2
1897   fi
1898 done
1899 done
1900
1901 fi
1902 fi
1903 CC=$ac_cv_prog_CC
1904 if test -n "$CC"; then
1905   echo "$as_me:$LINENO: result: $CC" >&5
1906 echo "${ECHO_T}$CC" >&6
1907 else
1908   echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1910 fi
1911
1912 fi
1913 if test -z "$ac_cv_prog_CC"; then
1914   ac_ct_CC=$CC
1915   # Extract the first word of "gcc", so it can be a program name with args.
1916 set dummy gcc; ac_word=$2
1917 echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1920   echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922   if test -n "$ac_ct_CC"; then
1923   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1924 else
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 for as_dir in $PATH
1927 do
1928   IFS=$as_save_IFS
1929   test -z "$as_dir" && as_dir=.
1930   for ac_exec_ext in '' $ac_executable_extensions; do
1931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932     ac_cv_prog_ac_ct_CC="gcc"
1933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934     break 2
1935   fi
1936 done
1937 done
1938
1939 fi
1940 fi
1941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1942 if test -n "$ac_ct_CC"; then
1943   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1944 echo "${ECHO_T}$ac_ct_CC" >&6
1945 else
1946   echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1948 fi
1949
1950   CC=$ac_ct_CC
1951 else
1952   CC="$ac_cv_prog_CC"
1953 fi
1954
1955 if test -z "$CC"; then
1956   if test -n "$ac_tool_prefix"; then
1957   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1958 set dummy ${ac_tool_prefix}cc; ac_word=$2
1959 echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961 if test "${ac_cv_prog_CC+set}" = set; then
1962   echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964   if test -n "$CC"; then
1965   ac_cv_prog_CC="$CC" # Let the user override the test.
1966 else
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 for as_dir in $PATH
1969 do
1970   IFS=$as_save_IFS
1971   test -z "$as_dir" && as_dir=.
1972   for ac_exec_ext in '' $ac_executable_extensions; do
1973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974     ac_cv_prog_CC="${ac_tool_prefix}cc"
1975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976     break 2
1977   fi
1978 done
1979 done
1980
1981 fi
1982 fi
1983 CC=$ac_cv_prog_CC
1984 if test -n "$CC"; then
1985   echo "$as_me:$LINENO: result: $CC" >&5
1986 echo "${ECHO_T}$CC" >&6
1987 else
1988   echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6
1990 fi
1991
1992 fi
1993 if test -z "$ac_cv_prog_CC"; then
1994   ac_ct_CC=$CC
1995   # Extract the first word of "cc", so it can be a program name with args.
1996 set dummy cc; ac_word=$2
1997 echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2000   echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002   if test -n "$ac_ct_CC"; then
2003   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2004 else
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2007 do
2008   IFS=$as_save_IFS
2009   test -z "$as_dir" && as_dir=.
2010   for ac_exec_ext in '' $ac_executable_extensions; do
2011   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012     ac_cv_prog_ac_ct_CC="cc"
2013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014     break 2
2015   fi
2016 done
2017 done
2018
2019 fi
2020 fi
2021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2022 if test -n "$ac_ct_CC"; then
2023   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2024 echo "${ECHO_T}$ac_ct_CC" >&6
2025 else
2026   echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2028 fi
2029
2030   CC=$ac_ct_CC
2031 else
2032   CC="$ac_cv_prog_CC"
2033 fi
2034
2035 fi
2036 if test -z "$CC"; then
2037   # Extract the first word of "cc", so it can be a program name with args.
2038 set dummy cc; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_CC+set}" = set; then
2042   echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044   if test -n "$CC"; then
2045   ac_cv_prog_CC="$CC" # Let the user override the test.
2046 else
2047   ac_prog_rejected=no
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051   IFS=$as_save_IFS
2052   test -z "$as_dir" && as_dir=.
2053   for ac_exec_ext in '' $ac_executable_extensions; do
2054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2056        ac_prog_rejected=yes
2057        continue
2058      fi
2059     ac_cv_prog_CC="cc"
2060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061     break 2
2062   fi
2063 done
2064 done
2065
2066 if test $ac_prog_rejected = yes; then
2067   # We found a bogon in the path, so make sure we never use it.
2068   set dummy $ac_cv_prog_CC
2069   shift
2070   if test $# != 0; then
2071     # We chose a different compiler from the bogus one.
2072     # However, it has the same basename, so the bogon will be chosen
2073     # first if we set CC to just the basename; use the full file name.
2074     shift
2075     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2076   fi
2077 fi
2078 fi
2079 fi
2080 CC=$ac_cv_prog_CC
2081 if test -n "$CC"; then
2082   echo "$as_me:$LINENO: result: $CC" >&5
2083 echo "${ECHO_T}$CC" >&6
2084 else
2085   echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6
2087 fi
2088
2089 fi
2090 if test -z "$CC"; then
2091   if test -n "$ac_tool_prefix"; then
2092   for ac_prog in cl
2093   do
2094     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2096 echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_CC+set}" = set; then
2099   echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101   if test -n "$CC"; then
2102   ac_cv_prog_CC="$CC" # Let the user override the test.
2103 else
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2106 do
2107   IFS=$as_save_IFS
2108   test -z "$as_dir" && as_dir=.
2109   for ac_exec_ext in '' $ac_executable_extensions; do
2110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113     break 2
2114   fi
2115 done
2116 done
2117
2118 fi
2119 fi
2120 CC=$ac_cv_prog_CC
2121 if test -n "$CC"; then
2122   echo "$as_me:$LINENO: result: $CC" >&5
2123 echo "${ECHO_T}$CC" >&6
2124 else
2125   echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6
2127 fi
2128
2129     test -n "$CC" && break
2130   done
2131 fi
2132 if test -z "$CC"; then
2133   ac_ct_CC=$CC
2134   for ac_prog in cl
2135 do
2136   # Extract the first word of "$ac_prog", so it can be a program name with args.
2137 set dummy $ac_prog; ac_word=$2
2138 echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2140 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2141   echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143   if test -n "$ac_ct_CC"; then
2144   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2145 else
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2148 do
2149   IFS=$as_save_IFS
2150   test -z "$as_dir" && as_dir=.
2151   for ac_exec_ext in '' $ac_executable_extensions; do
2152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2153     ac_cv_prog_ac_ct_CC="$ac_prog"
2154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155     break 2
2156   fi
2157 done
2158 done
2159
2160 fi
2161 fi
2162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2163 if test -n "$ac_ct_CC"; then
2164   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2165 echo "${ECHO_T}$ac_ct_CC" >&6
2166 else
2167   echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6
2169 fi
2170
2171   test -n "$ac_ct_CC" && break
2172 done
2173
2174   CC=$ac_ct_CC
2175 fi
2176
2177 fi
2178
2179
2180 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2181 See \`config.log' for more details." >&5
2182 echo "$as_me: error: no acceptable C compiler found in \$PATH
2183 See \`config.log' for more details." >&2;}
2184    { (exit 1); exit 1; }; }
2185
2186 # Provide some information about the compiler.
2187 echo "$as_me:$LINENO:" \
2188      "checking for C compiler version" >&5
2189 ac_compiler=`set X $ac_compile; echo $2`
2190 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2191   (eval $ac_compiler --version </dev/null >&5) 2>&5
2192   ac_status=$?
2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); }
2195 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2196   (eval $ac_compiler -v </dev/null >&5) 2>&5
2197   ac_status=$?
2198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199   (exit $ac_status); }
2200 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2201   (eval $ac_compiler -V </dev/null >&5) 2>&5
2202   ac_status=$?
2203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204   (exit $ac_status); }
2205
2206 cat >conftest.$ac_ext <<_ACEOF
2207 /* confdefs.h.  */
2208 _ACEOF
2209 cat confdefs.h >>conftest.$ac_ext
2210 cat >>conftest.$ac_ext <<_ACEOF
2211 /* end confdefs.h.  */
2212
2213 int
2214 main ()
2215 {
2216
2217   ;
2218   return 0;
2219 }
2220 _ACEOF
2221 ac_clean_files_save=$ac_clean_files
2222 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2223 # Try to create an executable without -o first, disregard a.out.
2224 # It will help us diagnose broken compilers, and finding out an intuition
2225 # of exeext.
2226 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2227 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2228 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2229 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2230   (eval $ac_link_default) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }; then
2234   # Find the output, starting from the most likely.  This scheme is
2235 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2236 # resort.
2237
2238 # Be careful to initialize this variable, since it used to be cached.
2239 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2240 ac_cv_exeext=
2241 # b.out is created by i960 compilers.
2242 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2243 do
2244   test -f "$ac_file" || continue
2245   case $ac_file in
2246     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2247         ;;
2248     conftest.$ac_ext )
2249         # This is the source file.
2250         ;;
2251     [ab].out )
2252         # We found the default executable, but exeext='' is most
2253         # certainly right.
2254         break;;
2255     *.* )
2256         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2257         # FIXME: I believe we export ac_cv_exeext for Libtool,
2258         # but it would be cool to find out if it's true.  Does anybody
2259         # maintain Libtool? --akim.
2260         export ac_cv_exeext
2261         break;;
2262     * )
2263         break;;
2264   esac
2265 done
2266 else
2267   echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2269
2270 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: C compiler cannot create executables
2273 See \`config.log' for more details." >&2;}
2274    { (exit 77); exit 77; }; }
2275 fi
2276
2277 ac_exeext=$ac_cv_exeext
2278 echo "$as_me:$LINENO: result: $ac_file" >&5
2279 echo "${ECHO_T}$ac_file" >&6
2280
2281 # Check the compiler produces executables we can run.  If not, either
2282 # the compiler is broken, or we cross compile.
2283 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2284 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2285 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2286 # If not cross compiling, check that we can run a simple program.
2287 if test "$cross_compiling" != yes; then
2288   if { ac_try='./$ac_file'
2289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290   (eval $ac_try) 2>&5
2291   ac_status=$?
2292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293   (exit $ac_status); }; }; then
2294     cross_compiling=no
2295   else
2296     if test "$cross_compiling" = maybe; then
2297         cross_compiling=yes
2298     else
2299         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2300 If you meant to cross compile, use \`--host'.
2301 See \`config.log' for more details." >&5
2302 echo "$as_me: error: cannot run C compiled programs.
2303 If you meant to cross compile, use \`--host'.
2304 See \`config.log' for more details." >&2;}
2305    { (exit 1); exit 1; }; }
2306     fi
2307   fi
2308 fi
2309 echo "$as_me:$LINENO: result: yes" >&5
2310 echo "${ECHO_T}yes" >&6
2311
2312 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2313 ac_clean_files=$ac_clean_files_save
2314 # Check the compiler produces executables we can run.  If not, either
2315 # the compiler is broken, or we cross compile.
2316 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2317 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2318 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2319 echo "${ECHO_T}$cross_compiling" >&6
2320
2321 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2322 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2324   (eval $ac_link) 2>&5
2325   ac_status=$?
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); }; then
2328   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2329 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2330 # work properly (i.e., refer to `conftest.exe'), while it won't with
2331 # `rm'.
2332 for ac_file in conftest.exe conftest conftest.*; do
2333   test -f "$ac_file" || continue
2334   case $ac_file in
2335     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2336     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2337           export ac_cv_exeext
2338           break;;
2339     * ) break;;
2340   esac
2341 done
2342 else
2343   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2344 See \`config.log' for more details." >&5
2345 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2346 See \`config.log' for more details." >&2;}
2347    { (exit 1); exit 1; }; }
2348 fi
2349
2350 rm -f conftest$ac_cv_exeext
2351 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2352 echo "${ECHO_T}$ac_cv_exeext" >&6
2353
2354 rm -f conftest.$ac_ext
2355 EXEEXT=$ac_cv_exeext
2356 ac_exeext=$EXEEXT
2357 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2358 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2359 if test "${ac_cv_objext+set}" = set; then
2360   echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362   cat >conftest.$ac_ext <<_ACEOF
2363 /* confdefs.h.  */
2364 _ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h.  */
2368
2369 int
2370 main ()
2371 {
2372
2373   ;
2374   return 0;
2375 }
2376 _ACEOF
2377 rm -f conftest.o conftest.obj
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379   (eval $ac_compile) 2>&5
2380   ac_status=$?
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); }; then
2383   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2384   case $ac_file in
2385     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2386     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2387        break;;
2388   esac
2389 done
2390 else
2391   echo "$as_me: failed program was:" >&5
2392 sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2395 See \`config.log' for more details." >&5
2396 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2397 See \`config.log' for more details." >&2;}
2398    { (exit 1); exit 1; }; }
2399 fi
2400
2401 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2402 fi
2403 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2404 echo "${ECHO_T}$ac_cv_objext" >&6
2405 OBJEXT=$ac_cv_objext
2406 ac_objext=$OBJEXT
2407 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2408 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2409 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2410   echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412   cat >conftest.$ac_ext <<_ACEOF
2413 /* confdefs.h.  */
2414 _ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h.  */
2418
2419 int
2420 main ()
2421 {
2422 #ifndef __GNUC__
2423        choke me
2424 #endif
2425
2426   ;
2427   return 0;
2428 }
2429 _ACEOF
2430 rm -f conftest.$ac_objext
2431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2432   (eval $ac_compile) 2>conftest.er1
2433   ac_status=$?
2434   grep -v '^ *+' conftest.er1 >conftest.err
2435   rm -f conftest.er1
2436   cat conftest.err >&5
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); } &&
2439          { ac_try='test -z "$ac_c_werror_flag"
2440                          || test ! -s conftest.err'
2441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442   (eval $ac_try) 2>&5
2443   ac_status=$?
2444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445   (exit $ac_status); }; } &&
2446          { ac_try='test -s conftest.$ac_objext'
2447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448   (eval $ac_try) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); }; }; then
2452   ac_compiler_gnu=yes
2453 else
2454   echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2456
2457 ac_compiler_gnu=no
2458 fi
2459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2460 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2461
2462 fi
2463 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2464 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2465 GCC=`test $ac_compiler_gnu = yes && echo yes`
2466 ac_test_CFLAGS=${CFLAGS+set}
2467 ac_save_CFLAGS=$CFLAGS
2468 CFLAGS="-g"
2469 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2470 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2471 if test "${ac_cv_prog_cc_g+set}" = set; then
2472   echo $ECHO_N "(cached) $ECHO_C" >&6
2473 else
2474   cat >conftest.$ac_ext <<_ACEOF
2475 /* confdefs.h.  */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h.  */
2480
2481 int
2482 main ()
2483 {
2484
2485   ;
2486   return 0;
2487 }
2488 _ACEOF
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491   (eval $ac_compile) 2>conftest.er1
2492   ac_status=$?
2493   grep -v '^ *+' conftest.er1 >conftest.err
2494   rm -f conftest.er1
2495   cat conftest.err >&5
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); } &&
2498          { ac_try='test -z "$ac_c_werror_flag"
2499                          || test ! -s conftest.err'
2500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501   (eval $ac_try) 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }; } &&
2505          { ac_try='test -s conftest.$ac_objext'
2506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507   (eval $ac_try) 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }; }; then
2511   ac_cv_prog_cc_g=yes
2512 else
2513   echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2515
2516 ac_cv_prog_cc_g=no
2517 fi
2518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2519 fi
2520 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2521 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2522 if test "$ac_test_CFLAGS" = set; then
2523   CFLAGS=$ac_save_CFLAGS
2524 elif test $ac_cv_prog_cc_g = yes; then
2525   if test "$GCC" = yes; then
2526     CFLAGS="-g -O2"
2527   else
2528     CFLAGS="-g"
2529   fi
2530 else
2531   if test "$GCC" = yes; then
2532     CFLAGS="-O2"
2533   else
2534     CFLAGS=
2535   fi
2536 fi
2537 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2538 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2539 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2540   echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542   ac_cv_prog_cc_stdc=no
2543 ac_save_CC=$CC
2544 cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h.  */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h.  */
2550 #include <stdarg.h>
2551 #include <stdio.h>
2552 #include <sys/types.h>
2553 #include <sys/stat.h>
2554 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2555 struct buf { int x; };
2556 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2557 static char *e (p, i)
2558      char **p;
2559      int i;
2560 {
2561   return p[i];
2562 }
2563 static char *f (char * (*g) (char **, int), char **p, ...)
2564 {
2565   char *s;
2566   va_list v;
2567   va_start (v,p);
2568   s = g (p, va_arg (v,int));
2569   va_end (v);
2570   return s;
2571 }
2572
2573 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2574    function prototypes and stuff, but not '\xHH' hex character constants.
2575    These don't provoke an error unfortunately, instead are silently treated
2576    as 'x'.  The following induces an error, until -std1 is added to get
2577    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2578    array size at least.  It's necessary to write '\x00'==0 to get something
2579    that's true only with -std1.  */
2580 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2581
2582 int test (int i, double x);
2583 struct s1 {int (*f) (int a);};
2584 struct s2 {int (*f) (double a);};
2585 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2586 int argc;
2587 char **argv;
2588 int
2589 main ()
2590 {
2591 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2592   ;
2593   return 0;
2594 }
2595 _ACEOF
2596 # Don't try gcc -ansi; that turns off useful extensions and
2597 # breaks some systems' header files.
2598 # AIX                   -qlanglvl=ansi
2599 # Ultrix and OSF/1      -std1
2600 # HP-UX 10.20 and later -Ae
2601 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2602 # SVR4                  -Xc -D__EXTENSIONS__
2603 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2604 do
2605   CC="$ac_save_CC $ac_arg"
2606   rm -f conftest.$ac_objext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608   (eval $ac_compile) 2>conftest.er1
2609   ac_status=$?
2610   grep -v '^ *+' conftest.er1 >conftest.err
2611   rm -f conftest.er1
2612   cat conftest.err >&5
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); } &&
2615          { ac_try='test -z "$ac_c_werror_flag"
2616                          || test ! -s conftest.err'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; } &&
2622          { ac_try='test -s conftest.$ac_objext'
2623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624   (eval $ac_try) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }; }; then
2628   ac_cv_prog_cc_stdc=$ac_arg
2629 break
2630 else
2631   echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634 fi
2635 rm -f conftest.err conftest.$ac_objext
2636 done
2637 rm -f conftest.$ac_ext conftest.$ac_objext
2638 CC=$ac_save_CC
2639
2640 fi
2641
2642 case "x$ac_cv_prog_cc_stdc" in
2643   x|xno)
2644     echo "$as_me:$LINENO: result: none needed" >&5
2645 echo "${ECHO_T}none needed" >&6 ;;
2646   *)
2647     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2648 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2649     CC="$CC $ac_cv_prog_cc_stdc" ;;
2650 esac
2651
2652 # Some people use a C++ compiler to compile C.  Since we use `exit',
2653 # in C++ we need to declare it.  In case someone uses the same compiler
2654 # for both compiling C and C++ we need to have the C++ compiler decide
2655 # the declaration of exit, since it's the most demanding environment.
2656 cat >conftest.$ac_ext <<_ACEOF
2657 #ifndef __cplusplus
2658   choke me
2659 #endif
2660 _ACEOF
2661 rm -f conftest.$ac_objext
2662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663   (eval $ac_compile) 2>conftest.er1
2664   ac_status=$?
2665   grep -v '^ *+' conftest.er1 >conftest.err
2666   rm -f conftest.er1
2667   cat conftest.err >&5
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); } &&
2670          { ac_try='test -z "$ac_c_werror_flag"
2671                          || test ! -s conftest.err'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; } &&
2677          { ac_try='test -s conftest.$ac_objext'
2678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679   (eval $ac_try) 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }; }; then
2683   for ac_declaration in \
2684    '' \
2685    'extern "C" void std::exit (int) throw (); using std::exit;' \
2686    'extern "C" void std::exit (int); using std::exit;' \
2687    'extern "C" void exit (int) throw ();' \
2688    'extern "C" void exit (int);' \
2689    'void exit (int);'
2690 do
2691   cat >conftest.$ac_ext <<_ACEOF
2692 /* confdefs.h.  */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h.  */
2697 $ac_declaration
2698 #include <stdlib.h>
2699 int
2700 main ()
2701 {
2702 exit (42);
2703   ;
2704   return 0;
2705 }
2706 _ACEOF
2707 rm -f conftest.$ac_objext
2708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2709   (eval $ac_compile) 2>conftest.er1
2710   ac_status=$?
2711   grep -v '^ *+' conftest.er1 >conftest.err
2712   rm -f conftest.er1
2713   cat conftest.err >&5
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); } &&
2716          { ac_try='test -z "$ac_c_werror_flag"
2717                          || test ! -s conftest.err'
2718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719   (eval $ac_try) 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); }; } &&
2723          { ac_try='test -s conftest.$ac_objext'
2724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725   (eval $ac_try) 2>&5
2726   ac_status=$?
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); }; }; then
2729   :
2730 else
2731   echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734 continue
2735 fi
2736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2737   cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h.  */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h.  */
2743 $ac_declaration
2744 int
2745 main ()
2746 {
2747 exit (42);
2748   ;
2749   return 0;
2750 }
2751 _ACEOF
2752 rm -f conftest.$ac_objext
2753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2754   (eval $ac_compile) 2>conftest.er1
2755   ac_status=$?
2756   grep -v '^ *+' conftest.er1 >conftest.err
2757   rm -f conftest.er1
2758   cat conftest.err >&5
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); } &&
2761          { ac_try='test -z "$ac_c_werror_flag"
2762                          || test ! -s conftest.err'
2763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764   (eval $ac_try) 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); }; } &&
2768          { ac_try='test -s conftest.$ac_objext'
2769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770   (eval $ac_try) 2>&5
2771   ac_status=$?
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); }; }; then
2774   break
2775 else
2776   echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2778
2779 fi
2780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2781 done
2782 rm -f conftest*
2783 if test -n "$ac_declaration"; then
2784   echo '#ifdef __cplusplus' >>confdefs.h
2785   echo $ac_declaration      >>confdefs.h
2786   echo '#endif'             >>confdefs.h
2787 fi
2788
2789 else
2790   echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2792
2793 fi
2794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795 ac_ext=c
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800
2801 depcc="$CC"   am_compiler_list=
2802
2803 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2804 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2805 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2806   echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2809   # We make a subdir and do the tests there.  Otherwise we can end up
2810   # making bogus files that we don't know about and never remove.  For
2811   # instance it was reported that on HP-UX the gcc test will end up
2812   # making a dummy file named `D' -- because `-MD' means `put the output
2813   # in D'.
2814   mkdir conftest.dir
2815   # Copy depcomp to subdir because otherwise we won't find it if we're
2816   # using a relative directory.
2817   cp "$am_depcomp" conftest.dir
2818   cd conftest.dir
2819   # We will build objects and dependencies in a subdirectory because
2820   # it helps to detect inapplicable dependency modes.  For instance
2821   # both Tru64's cc and ICC support -MD to output dependencies as a
2822   # side effect of compilation, but ICC will put the dependencies in
2823   # the current directory while Tru64 will put them in the object
2824   # directory.
2825   mkdir sub
2826
2827   am_cv_CC_dependencies_compiler_type=none
2828   if test "$am_compiler_list" = ""; then
2829      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2830   fi
2831   for depmode in $am_compiler_list; do
2832     # Setup a source with many dependencies, because some compilers
2833     # like to wrap large dependency lists on column 80 (with \), and
2834     # we should not choose a depcomp mode which is confused by this.
2835     #
2836     # We need to recreate these files for each test, as the compiler may
2837     # overwrite some of them when testing with obscure command lines.
2838     # This happens at least with the AIX C compiler.
2839     : > sub/conftest.c
2840     for i in 1 2 3 4 5 6; do
2841       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2842       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2843       # Solaris 8's {/usr,}/bin/sh.
2844       touch sub/conftst$i.h
2845     done
2846     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2847
2848     case $depmode in
2849     nosideeffect)
2850       # after this tag, mechanisms are not by side-effect, so they'll
2851       # only be used when explicitly requested
2852       if test "x$enable_dependency_tracking" = xyes; then
2853         continue
2854       else
2855         break
2856       fi
2857       ;;
2858     none) break ;;
2859     esac
2860     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2861     # mode.  It turns out that the SunPro C++ compiler does not properly
2862     # handle `-M -o', and we need to detect this.
2863     if depmode=$depmode \
2864        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2865        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2866        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2867          >/dev/null 2>conftest.err &&
2868        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2869        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2870        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2871       # icc doesn't choke on unknown options, it will just issue warnings
2872       # or remarks (even with -Werror).  So we grep stderr for any message
2873       # that says an option was ignored or not supported.
2874       # When given -MP, icc 7.0 and 7.1 complain thusly:
2875       #   icc: Command line warning: ignoring option '-M'; no argument required
2876       # The diagnosis changed in icc 8.0:
2877       #   icc: Command line remark: option '-MP' not supported
2878       if (grep 'ignoring option' conftest.err ||
2879           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2880         am_cv_CC_dependencies_compiler_type=$depmode
2881         break
2882       fi
2883     fi
2884   done
2885
2886   cd ..
2887   rm -rf conftest.dir
2888 else
2889   am_cv_CC_dependencies_compiler_type=none
2890 fi
2891
2892 fi
2893 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2894 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2895 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2896
2897
2898
2899 if
2900   test "x$enable_dependency_tracking" != xno \
2901   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2902   am__fastdepCC_TRUE=
2903   am__fastdepCC_FALSE='#'
2904 else
2905   am__fastdepCC_TRUE='#'
2906   am__fastdepCC_FALSE=
2907 fi
2908
2909
2910
2911 ac_ext=c
2912 ac_cpp='$CPP $CPPFLAGS'
2913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2916 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2917 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2918 # On Suns, sometimes $CPP names a directory.
2919 if test -n "$CPP" && test -d "$CPP"; then
2920   CPP=
2921 fi
2922 if test -z "$CPP"; then
2923   if test "${ac_cv_prog_CPP+set}" = set; then
2924   echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926       # Double quotes because CPP needs to be expanded
2927     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2928     do
2929       ac_preproc_ok=false
2930 for ac_c_preproc_warn_flag in '' yes
2931 do
2932   # Use a header file that comes with gcc, so configuring glibc
2933   # with a fresh cross-compiler works.
2934   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2935   # <limits.h> exists even on freestanding compilers.
2936   # On the NeXT, cc -E runs the code through the compiler's parser,
2937   # not just through cpp. "Syntax error" is here to catch this case.
2938   cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h.  */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h.  */
2944 #ifdef __STDC__
2945 # include <limits.h>
2946 #else
2947 # include <assert.h>
2948 #endif
2949                      Syntax error
2950 _ACEOF
2951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2953   ac_status=$?
2954   grep -v '^ *+' conftest.er1 >conftest.err
2955   rm -f conftest.er1
2956   cat conftest.err >&5
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); } >/dev/null; then
2959   if test -s conftest.err; then
2960     ac_cpp_err=$ac_c_preproc_warn_flag
2961     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2962   else
2963     ac_cpp_err=
2964   fi
2965 else
2966   ac_cpp_err=yes
2967 fi
2968 if test -z "$ac_cpp_err"; then
2969   :
2970 else
2971   echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2973
2974   # Broken: fails on valid input.
2975 continue
2976 fi
2977 rm -f conftest.err conftest.$ac_ext
2978
2979   # OK, works on sane cases.  Now check whether non-existent headers
2980   # can be detected and how.
2981   cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h.  */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h.  */
2987 #include <ac_nonexistent.h>
2988 _ACEOF
2989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2991   ac_status=$?
2992   grep -v '^ *+' conftest.er1 >conftest.err
2993   rm -f conftest.er1
2994   cat conftest.err >&5
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); } >/dev/null; then
2997   if test -s conftest.err; then
2998     ac_cpp_err=$ac_c_preproc_warn_flag
2999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3000   else
3001     ac_cpp_err=
3002   fi
3003 else
3004   ac_cpp_err=yes
3005 fi
3006 if test -z "$ac_cpp_err"; then
3007   # Broken: success on invalid input.
3008 continue
3009 else
3010   echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3012
3013   # Passes both tests.
3014 ac_preproc_ok=:
3015 break
3016 fi
3017 rm -f conftest.err conftest.$ac_ext
3018
3019 done
3020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3021 rm -f conftest.err conftest.$ac_ext
3022 if $ac_preproc_ok; then
3023   break
3024 fi
3025
3026     done
3027     ac_cv_prog_CPP=$CPP
3028
3029 fi
3030   CPP=$ac_cv_prog_CPP
3031 else
3032   ac_cv_prog_CPP=$CPP
3033 fi
3034 echo "$as_me:$LINENO: result: $CPP" >&5
3035 echo "${ECHO_T}$CPP" >&6
3036 ac_preproc_ok=false
3037 for ac_c_preproc_warn_flag in '' yes
3038 do
3039   # Use a header file that comes with gcc, so configuring glibc
3040   # with a fresh cross-compiler works.
3041   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3042   # <limits.h> exists even on freestanding compilers.
3043   # On the NeXT, cc -E runs the code through the compiler's parser,
3044   # not just through cpp. "Syntax error" is here to catch this case.
3045   cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h.  */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h.  */
3051 #ifdef __STDC__
3052 # include <limits.h>
3053 #else
3054 # include <assert.h>
3055 #endif
3056                      Syntax error
3057 _ACEOF
3058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3059   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3060   ac_status=$?
3061   grep -v '^ *+' conftest.er1 >conftest.err
3062   rm -f conftest.er1
3063   cat conftest.err >&5
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); } >/dev/null; then
3066   if test -s conftest.err; then
3067     ac_cpp_err=$ac_c_preproc_warn_flag
3068     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3069   else
3070     ac_cpp_err=
3071   fi
3072 else
3073   ac_cpp_err=yes
3074 fi
3075 if test -z "$ac_cpp_err"; then
3076   :
3077 else
3078   echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3080
3081   # Broken: fails on valid input.
3082 continue
3083 fi
3084 rm -f conftest.err conftest.$ac_ext
3085
3086   # OK, works on sane cases.  Now check whether non-existent headers
3087   # can be detected and how.
3088   cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h.  */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h.  */
3094 #include <ac_nonexistent.h>
3095 _ACEOF
3096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3098   ac_status=$?
3099   grep -v '^ *+' conftest.er1 >conftest.err
3100   rm -f conftest.er1
3101   cat conftest.err >&5
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); } >/dev/null; then
3104   if test -s conftest.err; then
3105     ac_cpp_err=$ac_c_preproc_warn_flag
3106     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3107   else
3108     ac_cpp_err=
3109   fi
3110 else
3111   ac_cpp_err=yes
3112 fi
3113 if test -z "$ac_cpp_err"; then
3114   # Broken: success on invalid input.
3115 continue
3116 else
3117   echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120   # Passes both tests.
3121 ac_preproc_ok=:
3122 break
3123 fi
3124 rm -f conftest.err conftest.$ac_ext
3125
3126 done
3127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3128 rm -f conftest.err conftest.$ac_ext
3129 if $ac_preproc_ok; then
3130   :
3131 else
3132   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3133 See \`config.log' for more details." >&5
3134 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3135 See \`config.log' for more details." >&2;}
3136    { (exit 1); exit 1; }; }
3137 fi
3138
3139 ac_ext=c
3140 ac_cpp='$CPP $CPPFLAGS'
3141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3144
3145
3146 echo "$as_me:$LINENO: checking for egrep" >&5
3147 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3148 if test "${ac_cv_prog_egrep+set}" = set; then
3149   echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3152     then ac_cv_prog_egrep='grep -E'
3153     else ac_cv_prog_egrep='egrep'
3154     fi
3155 fi
3156 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3157 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3158  EGREP=$ac_cv_prog_egrep
3159
3160
3161
3162 echo "$as_me:$LINENO: checking for AIX" >&5
3163 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3164 cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h.  */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h.  */
3170 #ifdef _AIX
3171   yes
3172 #endif
3173
3174 _ACEOF
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176   $EGREP "yes" >/dev/null 2>&1; then
3177   echo "$as_me:$LINENO: result: yes" >&5
3178 echo "${ECHO_T}yes" >&6
3179 cat >>confdefs.h <<\_ACEOF
3180 #define _ALL_SOURCE 1
3181 _ACEOF
3182
3183 else
3184   echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6
3186 fi
3187 rm -f conftest*
3188
3189
3190 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3191 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3192 if test "${ac_cv_header_stdc+set}" = set; then
3193   echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195   cat >conftest.$ac_ext <<_ACEOF
3196 /* confdefs.h.  */
3197 _ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h.  */
3201 #include <stdlib.h>
3202 #include <stdarg.h>
3203 #include <string.h>
3204 #include <float.h>
3205
3206 int
3207 main ()
3208 {
3209
3210   ;
3211   return 0;
3212 }
3213 _ACEOF
3214 rm -f conftest.$ac_objext
3215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3216   (eval $ac_compile) 2>conftest.er1
3217   ac_status=$?
3218   grep -v '^ *+' conftest.er1 >conftest.err
3219   rm -f conftest.er1
3220   cat conftest.err >&5
3221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222   (exit $ac_status); } &&
3223          { ac_try='test -z "$ac_c_werror_flag"
3224                          || test ! -s conftest.err'
3225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226   (eval $ac_try) 2>&5
3227   ac_status=$?
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); }; } &&
3230          { ac_try='test -s conftest.$ac_objext'
3231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232   (eval $ac_try) 2>&5
3233   ac_status=$?
3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); }; }; then
3236   ac_cv_header_stdc=yes
3237 else
3238   echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241 ac_cv_header_stdc=no
3242 fi
3243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3244
3245 if test $ac_cv_header_stdc = yes; then
3246   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3247   cat >conftest.$ac_ext <<_ACEOF
3248 /* confdefs.h.  */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h.  */
3253 #include <string.h>
3254
3255 _ACEOF
3256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3257   $EGREP "memchr" >/dev/null 2>&1; then
3258   :
3259 else
3260   ac_cv_header_stdc=no
3261 fi
3262 rm -f conftest*
3263
3264 fi
3265
3266 if test $ac_cv_header_stdc = yes; then
3267   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3268   cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h.  */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h.  */
3274 #include <stdlib.h>
3275
3276 _ACEOF
3277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3278   $EGREP "free" >/dev/null 2>&1; then
3279   :
3280 else
3281   ac_cv_header_stdc=no
3282 fi
3283 rm -f conftest*
3284
3285 fi
3286
3287 if test $ac_cv_header_stdc = yes; then
3288   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3289   if test "$cross_compiling" = yes; then
3290   :
3291 else
3292   cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h.  */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h.  */
3298 #include <ctype.h>
3299 #if ((' ' & 0x0FF) == 0x020)
3300 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3301 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3302 #else
3303 # define ISLOWER(c) \
3304                    (('a' <= (c) && (c) <= 'i') \
3305                      || ('j' <= (c) && (c) <= 'r') \
3306                      || ('s' <= (c) && (c) <= 'z'))
3307 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3308 #endif
3309
3310 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3311 int
3312 main ()
3313 {
3314   int i;
3315   for (i = 0; i < 256; i++)
3316     if (XOR (islower (i), ISLOWER (i))
3317         || toupper (i) != TOUPPER (i))
3318       exit(2);
3319   exit (0);
3320 }
3321 _ACEOF
3322 rm -f conftest$ac_exeext
3323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3324   (eval $ac_link) 2>&5
3325   ac_status=$?
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329   (eval $ac_try) 2>&5
3330   ac_status=$?
3331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332   (exit $ac_status); }; }; then
3333   :
3334 else
3335   echo "$as_me: program exited with status $ac_status" >&5
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339 ( exit $ac_status )
3340 ac_cv_header_stdc=no
3341 fi
3342 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3343 fi
3344 fi
3345 fi
3346 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3347 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3348 if test $ac_cv_header_stdc = yes; then
3349
3350 cat >>confdefs.h <<\_ACEOF
3351 #define STDC_HEADERS 1
3352 _ACEOF
3353
3354 fi
3355
3356 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3367                   inttypes.h stdint.h unistd.h
3368 do
3369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3370 echo "$as_me:$LINENO: checking for $ac_header" >&5
3371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3373   echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375   cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h.  */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h.  */
3381 $ac_includes_default
3382
3383 #include <$ac_header>
3384 _ACEOF
3385 rm -f conftest.$ac_objext
3386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3387   (eval $ac_compile) 2>conftest.er1
3388   ac_status=$?
3389   grep -v '^ *+' conftest.er1 >conftest.err
3390   rm -f conftest.er1
3391   cat conftest.err >&5
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); } &&
3394          { ac_try='test -z "$ac_c_werror_flag"
3395                          || test ! -s conftest.err'
3396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397   (eval $ac_try) 2>&5
3398   ac_status=$?
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); }; } &&
3401          { ac_try='test -s conftest.$ac_objext'
3402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403   (eval $ac_try) 2>&5
3404   ac_status=$?
3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406   (exit $ac_status); }; }; then
3407   eval "$as_ac_Header=yes"
3408 else
3409   echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.$ac_ext >&5
3411
3412 eval "$as_ac_Header=no"
3413 fi
3414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3415 fi
3416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3419   cat >>confdefs.h <<_ACEOF
3420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3421 _ACEOF
3422
3423 fi
3424
3425 done
3426
3427
3428 if test "${ac_cv_header_minix_config_h+set}" = set; then
3429   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3430 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3431 if test "${ac_cv_header_minix_config_h+set}" = set; then
3432   echo $ECHO_N "(cached) $ECHO_C" >&6
3433 fi
3434 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3435 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3436 else
3437   # Is the header compilable?
3438 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3439 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3440 cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h.  */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h.  */
3446 $ac_includes_default
3447 #include <minix/config.h>
3448 _ACEOF
3449 rm -f conftest.$ac_objext
3450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3451   (eval $ac_compile) 2>conftest.er1
3452   ac_status=$?
3453   grep -v '^ *+' conftest.er1 >conftest.err
3454   rm -f conftest.er1
3455   cat conftest.err >&5
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } &&
3458          { ac_try='test -z "$ac_c_werror_flag"
3459                          || test ! -s conftest.err'
3460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461   (eval $ac_try) 2>&5
3462   ac_status=$?
3463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); }; } &&
3465          { ac_try='test -s conftest.$ac_objext'
3466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467   (eval $ac_try) 2>&5
3468   ac_status=$?
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); }; }; then
3471   ac_header_compiler=yes
3472 else
3473   echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3475
3476 ac_header_compiler=no
3477 fi
3478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3480 echo "${ECHO_T}$ac_header_compiler" >&6
3481
3482 # Is the header present?
3483 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3484 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3485 cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h.  */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h.  */
3491 #include <minix/config.h>
3492 _ACEOF
3493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3494   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3495   ac_status=$?
3496   grep -v '^ *+' conftest.er1 >conftest.err
3497   rm -f conftest.er1
3498   cat conftest.err >&5
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); } >/dev/null; then
3501   if test -s conftest.err; then
3502     ac_cpp_err=$ac_c_preproc_warn_flag
3503     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3504   else
3505     ac_cpp_err=
3506   fi
3507 else
3508   ac_cpp_err=yes
3509 fi
3510 if test -z "$ac_cpp_err"; then
3511   ac_header_preproc=yes
3512 else
3513   echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516   ac_header_preproc=no
3517 fi
3518 rm -f conftest.err conftest.$ac_ext
3519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3520 echo "${ECHO_T}$ac_header_preproc" >&6
3521
3522 # So?  What about this header?
3523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3524   yes:no: )
3525     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3526 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3527     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3528 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3529     ac_header_preproc=yes
3530     ;;
3531   no:yes:* )
3532     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3533 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3534     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3535 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3536     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3537 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3538     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3539 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3540     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3541 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3542     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3543 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3544     (
3545       cat <<\_ASBOX
3546 ## ------------------------------------ ##
3547 ## Report this to bug-coreutils@gnu.org ##
3548 ## ------------------------------------ ##
3549 _ASBOX
3550     ) |
3551       sed "s/^/$as_me: WARNING:     /" >&2
3552     ;;
3553 esac
3554 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3555 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3556 if test "${ac_cv_header_minix_config_h+set}" = set; then
3557   echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559   ac_cv_header_minix_config_h=$ac_header_preproc
3560 fi
3561 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3562 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3563
3564 fi
3565 if test $ac_cv_header_minix_config_h = yes; then
3566   MINIX=yes
3567 else
3568   MINIX=
3569 fi
3570
3571
3572 if test "$MINIX" = yes; then
3573
3574 cat >>confdefs.h <<\_ACEOF
3575 #define _POSIX_SOURCE 1
3576 _ACEOF
3577
3578
3579 cat >>confdefs.h <<\_ACEOF
3580 #define _POSIX_1_SOURCE 2
3581 _ACEOF
3582
3583
3584 cat >>confdefs.h <<\_ACEOF
3585 #define _MINIX 1
3586 _ACEOF
3587
3588 fi
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600   cat >>confdefs.h <<\_ACEOF
3601 #define __EXTENSIONS__ 1
3602 _ACEOF
3603
3604
3605
3606       echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
3607 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6
3608   if test "${PERL+set}" = set; then
3609     # `PERL' is set in the user's environment.
3610     candidate_perl_names="$PERL"
3611     perl_specified=yes
3612   else
3613     candidate_perl_names='perl perl5'
3614     perl_specified=no
3615   fi
3616
3617   found=no
3618
3619   PERL="$am_missing_run perl"
3620   for perl in $candidate_perl_names; do
3621     # Run test in a subshell; some versions of sh will print an error if
3622     # an executable is not found, even if stderr is redirected.
3623     if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
3624       PERL=$perl
3625       found=yes
3626       break
3627     fi
3628   done
3629
3630   echo "$as_me:$LINENO: result: $found" >&5
3631 echo "${ECHO_T}$found" >&6
3632   test $found = no && { echo "$as_me:$LINENO: WARNING:
3633 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
3634          a usable version of the Perl File::Compare module.  As a result,
3635          you may be unable to run a few tests or to regenerate certain
3636          files if you modify the sources from which they are derived.
3637  " >&5
3638 echo "$as_me: WARNING:
3639 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
3640          a usable version of the Perl File::Compare module.  As a result,
3641          you may be unable to run a few tests or to regenerate certain
3642          files if you modify the sources from which they are derived.
3643  " >&2;}
3644
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650 if test -n "$ac_tool_prefix"; then
3651   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3652 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_CC+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658   if test -n "$CC"; then
3659   ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664   IFS=$as_save_IFS
3665   test -z "$as_dir" && as_dir=.
3666   for ac_exec_ext in '' $ac_executable_extensions; do
3667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670     break 2
3671   fi
3672 done
3673 done
3674
3675 fi
3676 fi
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679   echo "$as_me:$LINENO: result: $CC" >&5
3680 echo "${ECHO_T}$CC" >&6
3681 else
3682   echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3684 fi
3685
3686 fi
3687 if test -z "$ac_cv_prog_CC"; then
3688   ac_ct_CC=$CC
3689   # Extract the first word of "gcc", so it can be a program name with args.
3690 set dummy gcc; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3694   echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696   if test -n "$ac_ct_CC"; then
3697   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702   IFS=$as_save_IFS
3703   test -z "$as_dir" && as_dir=.
3704   for ac_exec_ext in '' $ac_executable_extensions; do
3705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706     ac_cv_prog_ac_ct_CC="gcc"
3707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708     break 2
3709   fi
3710 done
3711 done
3712
3713 fi
3714 fi
3715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3716 if test -n "$ac_ct_CC"; then
3717   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3718 echo "${ECHO_T}$ac_ct_CC" >&6
3719 else
3720   echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3722 fi
3723
3724   CC=$ac_ct_CC
3725 else
3726   CC="$ac_cv_prog_CC"
3727 fi
3728
3729 if test -z "$CC"; then
3730   if test -n "$ac_tool_prefix"; then
3731   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3732 set dummy ${ac_tool_prefix}cc; ac_word=$2
3733 echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3735 if test "${ac_cv_prog_CC+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   if test -n "$CC"; then
3739   ac_cv_prog_CC="$CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746   for ac_exec_ext in '' $ac_executable_extensions; do
3747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748     ac_cv_prog_CC="${ac_tool_prefix}cc"
3749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753 done
3754
3755 fi
3756 fi
3757 CC=$ac_cv_prog_CC
3758 if test -n "$CC"; then
3759   echo "$as_me:$LINENO: result: $CC" >&5
3760 echo "${ECHO_T}$CC" >&6
3761 else
3762   echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3764 fi
3765
3766 fi
3767 if test -z "$ac_cv_prog_CC"; then
3768   ac_ct_CC=$CC
3769   # Extract the first word of "cc", so it can be a program name with args.
3770 set dummy cc; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   if test -n "$ac_ct_CC"; then
3777   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3778 else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3781 do
3782   IFS=$as_save_IFS
3783   test -z "$as_dir" && as_dir=.
3784   for ac_exec_ext in '' $ac_executable_extensions; do
3785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786     ac_cv_prog_ac_ct_CC="cc"
3787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788     break 2
3789   fi
3790 done
3791 done
3792
3793 fi
3794 fi
3795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3796 if test -n "$ac_ct_CC"; then
3797   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3798 echo "${ECHO_T}$ac_ct_CC" >&6
3799 else
3800   echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6
3802 fi
3803
3804   CC=$ac_ct_CC
3805 else
3806   CC="$ac_cv_prog_CC"
3807 fi
3808
3809 fi
3810 if test -z "$CC"; then
3811   # Extract the first word of "cc", so it can be a program name with args.
3812 set dummy cc; ac_word=$2
3813 echo "$as_me:$LINENO: checking for $ac_word" >&5
3814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3815 if test "${ac_cv_prog_CC+set}" = set; then
3816   echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818   if test -n "$CC"; then
3819   ac_cv_prog_CC="$CC" # Let the user override the test.
3820 else
3821   ac_prog_rejected=no
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825   IFS=$as_save_IFS
3826   test -z "$as_dir" && as_dir=.
3827   for ac_exec_ext in '' $ac_executable_extensions; do
3828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3830        ac_prog_rejected=yes
3831        continue
3832      fi
3833     ac_cv_prog_CC="cc"
3834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835     break 2
3836   fi
3837 done
3838 done
3839
3840 if test $ac_prog_rejected = yes; then
3841   # We found a bogon in the path, so make sure we never use it.
3842   set dummy $ac_cv_prog_CC
3843   shift
3844   if test $# != 0; then
3845     # We chose a different compiler from the bogus one.
3846     # However, it has the same basename, so the bogon will be chosen
3847     # first if we set CC to just the basename; use the full file name.
3848     shift
3849     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3850   fi
3851 fi
3852 fi
3853 fi
3854 CC=$ac_cv_prog_CC
3855 if test -n "$CC"; then
3856   echo "$as_me:$LINENO: result: $CC" >&5
3857 echo "${ECHO_T}$CC" >&6
3858 else
3859   echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3861 fi
3862
3863 fi
3864 if test -z "$CC"; then
3865   if test -n "$ac_tool_prefix"; then
3866   for ac_prog in cl
3867   do
3868     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3870 echo "$as_me:$LINENO: checking for $ac_word" >&5
3871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3872 if test "${ac_cv_prog_CC+set}" = set; then
3873   echo $ECHO_N "(cached) $ECHO_C" >&6
3874 else
3875   if test -n "$CC"; then
3876   ac_cv_prog_CC="$CC" # Let the user override the test.
3877 else
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3880 do
3881   IFS=$as_save_IFS
3882   test -z "$as_dir" && as_dir=.
3883   for ac_exec_ext in '' $ac_executable_extensions; do
3884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3885     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3887     break 2
3888   fi
3889 done
3890 done
3891
3892 fi
3893 fi
3894 CC=$ac_cv_prog_CC
3895 if test -n "$CC"; then
3896   echo "$as_me:$LINENO: result: $CC" >&5
3897 echo "${ECHO_T}$CC" >&6
3898 else
3899   echo "$as_me:$LINENO: result: no" >&5
3900 echo "${ECHO_T}no" >&6
3901 fi
3902
3903     test -n "$CC" && break
3904   done
3905 fi
3906 if test -z "$CC"; then
3907   ac_ct_CC=$CC
3908   for ac_prog in cl
3909 do
3910   # Extract the first word of "$ac_prog", so it can be a program name with args.
3911 set dummy $ac_prog; ac_word=$2
3912 echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   if test -n "$ac_ct_CC"; then
3918   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923   IFS=$as_save_IFS
3924   test -z "$as_dir" && as_dir=.
3925   for ac_exec_ext in '' $ac_executable_extensions; do
3926   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927     ac_cv_prog_ac_ct_CC="$ac_prog"
3928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3929     break 2
3930   fi
3931 done
3932 done
3933
3934 fi
3935 fi
3936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3937 if test -n "$ac_ct_CC"; then
3938   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3939 echo "${ECHO_T}$ac_ct_CC" >&6
3940 else
3941   echo "$as_me:$LINENO: result: no" >&5
3942 echo "${ECHO_T}no" >&6
3943 fi
3944
3945   test -n "$ac_ct_CC" && break
3946 done
3947
3948   CC=$ac_ct_CC
3949 fi
3950
3951 fi
3952
3953
3954 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3955 See \`config.log' for more details." >&5
3956 echo "$as_me: error: no acceptable C compiler found in \$PATH
3957 See \`config.log' for more details." >&2;}
3958    { (exit 1); exit 1; }; }
3959
3960 # Provide some information about the compiler.
3961 echo "$as_me:$LINENO:" \
3962      "checking for C compiler version" >&5
3963 ac_compiler=`set X $ac_compile; echo $2`
3964 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3965   (eval $ac_compiler --version </dev/null >&5) 2>&5
3966   ac_status=$?
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); }
3969 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3970   (eval $ac_compiler -v </dev/null >&5) 2>&5
3971   ac_status=$?
3972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973   (exit $ac_status); }
3974 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3975   (eval $ac_compiler -V </dev/null >&5) 2>&5
3976   ac_status=$?
3977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978   (exit $ac_status); }
3979
3980 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3981 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3982 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   cat >conftest.$ac_ext <<_ACEOF
3986 /* confdefs.h.  */
3987 _ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h.  */
3991
3992 int
3993 main ()
3994 {
3995 #ifndef __GNUC__
3996        choke me
3997 #endif
3998
3999   ;
4000   return 0;
4001 }
4002 _ACEOF
4003 rm -f conftest.$ac_objext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005   (eval $ac_compile) 2>conftest.er1
4006   ac_status=$?
4007   grep -v '^ *+' conftest.er1 >conftest.err
4008   rm -f conftest.er1
4009   cat conftest.err >&5
4010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011   (exit $ac_status); } &&
4012          { ac_try='test -z "$ac_c_werror_flag"
4013                          || test ! -s conftest.err'
4014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015   (eval $ac_try) 2>&5
4016   ac_status=$?
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); }; } &&
4019          { ac_try='test -s conftest.$ac_objext'
4020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021   (eval $ac_try) 2>&5
4022   ac_status=$?
4023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024   (exit $ac_status); }; }; then
4025   ac_compiler_gnu=yes
4026 else
4027   echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 ac_compiler_gnu=no
4031 fi
4032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4033 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4034
4035 fi
4036 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4037 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4038 GCC=`test $ac_compiler_gnu = yes && echo yes`
4039 ac_test_CFLAGS=${CFLAGS+set}
4040 ac_save_CFLAGS=$CFLAGS
4041 CFLAGS="-g"
4042 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4043 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4044 if test "${ac_cv_prog_cc_g+set}" = set; then
4045   echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047   cat >conftest.$ac_ext <<_ACEOF
4048 /* confdefs.h.  */
4049 _ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h.  */
4053
4054 int
4055 main ()
4056 {
4057
4058   ;
4059   return 0;
4060 }
4061 _ACEOF
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064   (eval $ac_compile) 2>conftest.er1
4065   ac_status=$?
4066   grep -v '^ *+' conftest.er1 >conftest.err
4067   rm -f conftest.er1
4068   cat conftest.err >&5
4069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070   (exit $ac_status); } &&
4071          { ac_try='test -z "$ac_c_werror_flag"
4072                          || test ! -s conftest.err'
4073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074   (eval $ac_try) 2>&5
4075   ac_status=$?
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); }; } &&
4078          { ac_try='test -s conftest.$ac_objext'
4079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080   (eval $ac_try) 2>&5
4081   ac_status=$?
4082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083   (exit $ac_status); }; }; then
4084   ac_cv_prog_cc_g=yes
4085 else
4086   echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4088
4089 ac_cv_prog_cc_g=no
4090 fi
4091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4092 fi
4093 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4094 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4095 if test "$ac_test_CFLAGS" = set; then
4096   CFLAGS=$ac_save_CFLAGS
4097 elif test $ac_cv_prog_cc_g = yes; then
4098   if test "$GCC" = yes; then
4099     CFLAGS="-g -O2"
4100   else
4101     CFLAGS="-g"
4102   fi
4103 else
4104   if test "$GCC" = yes; then
4105     CFLAGS="-O2"
4106   else
4107     CFLAGS=
4108   fi
4109 fi
4110 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4111 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4112 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   ac_cv_prog_cc_stdc=no
4116 ac_save_CC=$CC
4117 cat >conftest.$ac_ext <<_ACEOF
4118 /* confdefs.h.  */
4119 _ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h.  */
4123 #include <stdarg.h>
4124 #include <stdio.h>
4125 #include <sys/types.h>
4126 #include <sys/stat.h>
4127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4128 struct buf { int x; };
4129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4130 static char *e (p, i)
4131      char **p;
4132      int i;
4133 {
4134   return p[i];
4135 }
4136 static char *f (char * (*g) (char **, int), char **p, ...)
4137 {
4138   char *s;
4139   va_list v;
4140   va_start (v,p);
4141   s = g (p, va_arg (v,int));
4142   va_end (v);
4143   return s;
4144 }
4145
4146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4147    function prototypes and stuff, but not '\xHH' hex character constants.
4148    These don't provoke an error unfortunately, instead are silently treated
4149    as 'x'.  The following induces an error, until -std1 is added to get
4150    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4151    array size at least.  It's necessary to write '\x00'==0 to get something
4152    that's true only with -std1.  */
4153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4154
4155 int test (int i, double x);
4156 struct s1 {int (*f) (int a);};
4157 struct s2 {int (*f) (double a);};
4158 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4159 int argc;
4160 char **argv;
4161 int
4162 main ()
4163 {
4164 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 # Don't try gcc -ansi; that turns off useful extensions and
4170 # breaks some systems' header files.
4171 # AIX                   -qlanglvl=ansi
4172 # Ultrix and OSF/1      -std1
4173 # HP-UX 10.20 and later -Ae
4174 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4175 # SVR4                  -Xc -D__EXTENSIONS__
4176 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4177 do
4178   CC="$ac_save_CC $ac_arg"
4179   rm -f conftest.$ac_objext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181   (eval $ac_compile) 2>conftest.er1
4182   ac_status=$?
4183   grep -v '^ *+' conftest.er1 >conftest.err
4184   rm -f conftest.er1
4185   cat conftest.err >&5
4186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187   (exit $ac_status); } &&
4188          { ac_try='test -z "$ac_c_werror_flag"
4189                          || test ! -s conftest.err'
4190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191   (eval $ac_try) 2>&5
4192   ac_status=$?
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); }; } &&
4195          { ac_try='test -s conftest.$ac_objext'
4196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197   (eval $ac_try) 2>&5
4198   ac_status=$?
4199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); }; }; then
4201   ac_cv_prog_cc_stdc=$ac_arg
4202 break
4203 else
4204   echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207 fi
4208 rm -f conftest.err conftest.$ac_objext
4209 done
4210 rm -f conftest.$ac_ext conftest.$ac_objext
4211 CC=$ac_save_CC
4212
4213 fi
4214
4215 case "x$ac_cv_prog_cc_stdc" in
4216   x|xno)
4217     echo "$as_me:$LINENO: result: none needed" >&5
4218 echo "${ECHO_T}none needed" >&6 ;;
4219   *)
4220     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4221 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4222     CC="$CC $ac_cv_prog_cc_stdc" ;;
4223 esac
4224
4225 # Some people use a C++ compiler to compile C.  Since we use `exit',
4226 # in C++ we need to declare it.  In case someone uses the same compiler
4227 # for both compiling C and C++ we need to have the C++ compiler decide
4228 # the declaration of exit, since it's the most demanding environment.
4229 cat >conftest.$ac_ext <<_ACEOF
4230 #ifndef __cplusplus
4231   choke me
4232 #endif
4233 _ACEOF
4234 rm -f conftest.$ac_objext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4236   (eval $ac_compile) 2>conftest.er1
4237   ac_status=$?
4238   grep -v '^ *+' conftest.er1 >conftest.err
4239   rm -f conftest.er1
4240   cat conftest.err >&5
4241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); } &&
4243          { ac_try='test -z "$ac_c_werror_flag"
4244                          || test ! -s conftest.err'
4245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246   (eval $ac_try) 2>&5
4247   ac_status=$?
4248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249   (exit $ac_status); }; } &&
4250          { ac_try='test -s conftest.$ac_objext'
4251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252   (eval $ac_try) 2>&5
4253   ac_status=$?
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); }; }; then
4256   for ac_declaration in \
4257    '' \
4258    'extern "C" void std::exit (int) throw (); using std::exit;' \
4259    'extern "C" void std::exit (int); using std::exit;' \
4260    'extern "C" void exit (int) throw ();' \
4261    'extern "C" void exit (int);' \
4262    'void exit (int);'
4263 do
4264   cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h.  */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h.  */
4270 $ac_declaration
4271 #include <stdlib.h>
4272 int
4273 main ()
4274 {
4275 exit (42);
4276   ;
4277   return 0;
4278 }
4279 _ACEOF
4280 rm -f conftest.$ac_objext
4281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4282   (eval $ac_compile) 2>conftest.er1
4283   ac_status=$?
4284   grep -v '^ *+' conftest.er1 >conftest.err
4285   rm -f conftest.er1
4286   cat conftest.err >&5
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); } &&
4289          { ac_try='test -z "$ac_c_werror_flag"
4290                          || test ! -s conftest.err'
4291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292   (eval $ac_try) 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); }; } &&
4296          { ac_try='test -s conftest.$ac_objext'
4297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298   (eval $ac_try) 2>&5
4299   ac_status=$?
4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301   (exit $ac_status); }; }; then
4302   :
4303 else
4304   echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4306
4307 continue
4308 fi
4309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4310   cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h.  */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h.  */
4316 $ac_declaration
4317 int
4318 main ()
4319 {
4320 exit (42);
4321   ;
4322   return 0;
4323 }
4324 _ACEOF
4325 rm -f conftest.$ac_objext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327   (eval $ac_compile) 2>conftest.er1
4328   ac_status=$?
4329   grep -v '^ *+' conftest.er1 >conftest.err
4330   rm -f conftest.er1
4331   cat conftest.err >&5
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); } &&
4334          { ac_try='test -z "$ac_c_werror_flag"
4335                          || test ! -s conftest.err'
4336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337   (eval $ac_try) 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; } &&
4341          { ac_try='test -s conftest.$ac_objext'
4342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343   (eval $ac_try) 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; }; then
4347   break
4348 else
4349   echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4351
4352 fi
4353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4354 done
4355 rm -f conftest*
4356 if test -n "$ac_declaration"; then
4357   echo '#ifdef __cplusplus' >>confdefs.h
4358   echo $ac_declaration      >>confdefs.h
4359   echo '#endif'             >>confdefs.h
4360 fi
4361
4362 else
4363   echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366 fi
4367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4368 ac_ext=c
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373
4374 depcc="$CC"   am_compiler_list=
4375
4376 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4377 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4378 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4379   echo $ECHO_N "(cached) $ECHO_C" >&6
4380 else
4381   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4382   # We make a subdir and do the tests there.  Otherwise we can end up
4383   # making bogus files that we don't know about and never remove.  For
4384   # instance it was reported that on HP-UX the gcc test will end up
4385   # making a dummy file named `D' -- because `-MD' means `put the output
4386   # in D'.
4387   mkdir conftest.dir
4388   # Copy depcomp to subdir because otherwise we won't find it if we're
4389   # using a relative directory.
4390   cp "$am_depcomp" conftest.dir
4391   cd conftest.dir
4392   # We will build objects and dependencies in a subdirectory because
4393   # it helps to detect inapplicable dependency modes.  For instance
4394   # both Tru64's cc and ICC support -MD to output dependencies as a
4395   # side effect of compilation, but ICC will put the dependencies in
4396   # the current directory while Tru64 will put them in the object
4397   # directory.
4398   mkdir sub
4399
4400   am_cv_CC_dependencies_compiler_type=none
4401   if test "$am_compiler_list" = ""; then
4402      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4403   fi
4404   for depmode in $am_compiler_list; do
4405     # Setup a source with many dependencies, because some compilers
4406     # like to wrap large dependency lists on column 80 (with \), and
4407     # we should not choose a depcomp mode which is confused by this.
4408     #
4409     # We need to recreate these files for each test, as the compiler may
4410     # overwrite some of them when testing with obscure command lines.
4411     # This happens at least with the AIX C compiler.
4412     : > sub/conftest.c
4413     for i in 1 2 3 4 5 6; do
4414       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4415       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4416       # Solaris 8's {/usr,}/bin/sh.
4417       touch sub/conftst$i.h
4418     done
4419     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4420
4421     case $depmode in
4422     nosideeffect)
4423       # after this tag, mechanisms are not by side-effect, so they'll
4424       # only be used when explicitly requested
4425       if test "x$enable_dependency_tracking" = xyes; then
4426         continue
4427       else
4428         break
4429       fi
4430       ;;
4431     none) break ;;
4432     esac
4433     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4434     # mode.  It turns out that the SunPro C++ compiler does not properly
4435     # handle `-M -o', and we need to detect this.
4436     if depmode=$depmode \
4437        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4438        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4439        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4440          >/dev/null 2>conftest.err &&
4441        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4442        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4443        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4444       # icc doesn't choke on unknown options, it will just issue warnings
4445       # or remarks (even with -Werror).  So we grep stderr for any message
4446       # that says an option was ignored or not supported.
4447       # When given -MP, icc 7.0 and 7.1 complain thusly:
4448       #   icc: Command line warning: ignoring option '-M'; no argument required
4449       # The diagnosis changed in icc 8.0:
4450       #   icc: Command line remark: option '-MP' not supported
4451       if (grep 'ignoring option' conftest.err ||
4452           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4453         am_cv_CC_dependencies_compiler_type=$depmode
4454         break
4455       fi
4456     fi
4457   done
4458
4459   cd ..
4460   rm -rf conftest.dir
4461 else
4462   am_cv_CC_dependencies_compiler_type=none
4463 fi
4464
4465 fi
4466 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4467 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4468 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4469
4470
4471
4472 if
4473   test "x$enable_dependency_tracking" != xno \
4474   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4475   am__fastdepCC_TRUE=
4476   am__fastdepCC_FALSE='#'
4477 else
4478   am__fastdepCC_TRUE='#'
4479   am__fastdepCC_FALSE=
4480 fi
4481
4482
4483 ac_ext=c
4484 ac_cpp='$CPP $CPPFLAGS'
4485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4489 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4490 # On Suns, sometimes $CPP names a directory.
4491 if test -n "$CPP" && test -d "$CPP"; then
4492   CPP=
4493 fi
4494 if test -z "$CPP"; then
4495   if test "${ac_cv_prog_CPP+set}" = set; then
4496   echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498       # Double quotes because CPP needs to be expanded
4499     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4500     do
4501       ac_preproc_ok=false
4502 for ac_c_preproc_warn_flag in '' yes
4503 do
4504   # Use a header file that comes with gcc, so configuring glibc
4505   # with a fresh cross-compiler works.
4506   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4507   # <limits.h> exists even on freestanding compilers.
4508   # On the NeXT, cc -E runs the code through the compiler's parser,
4509   # not just through cpp. "Syntax error" is here to catch this case.
4510   cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h.  */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h.  */
4516 #ifdef __STDC__
4517 # include <limits.h>
4518 #else
4519 # include <assert.h>
4520 #endif
4521                      Syntax error
4522 _ACEOF
4523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4524   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4525   ac_status=$?
4526   grep -v '^ *+' conftest.er1 >conftest.err
4527   rm -f conftest.er1
4528   cat conftest.err >&5
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); } >/dev/null; then
4531   if test -s conftest.err; then
4532     ac_cpp_err=$ac_c_preproc_warn_flag
4533     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4534   else
4535     ac_cpp_err=
4536   fi
4537 else
4538   ac_cpp_err=yes
4539 fi
4540 if test -z "$ac_cpp_err"; then
4541   :
4542 else
4543   echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4545
4546   # Broken: fails on valid input.
4547 continue
4548 fi
4549 rm -f conftest.err conftest.$ac_ext
4550
4551   # OK, works on sane cases.  Now check whether non-existent headers
4552   # can be detected and how.
4553   cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h.  */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h.  */
4559 #include <ac_nonexistent.h>
4560 _ACEOF
4561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4562   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4563   ac_status=$?
4564   grep -v '^ *+' conftest.er1 >conftest.err
4565   rm -f conftest.er1
4566   cat conftest.err >&5
4567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); } >/dev/null; then
4569   if test -s conftest.err; then
4570     ac_cpp_err=$ac_c_preproc_warn_flag
4571     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4572   else
4573     ac_cpp_err=
4574   fi
4575 else
4576   ac_cpp_err=yes
4577 fi
4578 if test -z "$ac_cpp_err"; then
4579   # Broken: success on invalid input.
4580 continue
4581 else
4582   echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4584
4585   # Passes both tests.
4586 ac_preproc_ok=:
4587 break
4588 fi
4589 rm -f conftest.err conftest.$ac_ext
4590
4591 done
4592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4593 rm -f conftest.err conftest.$ac_ext
4594 if $ac_preproc_ok; then
4595   break
4596 fi
4597
4598     done
4599     ac_cv_prog_CPP=$CPP
4600
4601 fi
4602   CPP=$ac_cv_prog_CPP
4603 else
4604   ac_cv_prog_CPP=$CPP
4605 fi
4606 echo "$as_me:$LINENO: result: $CPP" >&5
4607 echo "${ECHO_T}$CPP" >&6
4608 ac_preproc_ok=false
4609 for ac_c_preproc_warn_flag in '' yes
4610 do
4611   # Use a header file that comes with gcc, so configuring glibc
4612   # with a fresh cross-compiler works.
4613   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4614   # <limits.h> exists even on freestanding compilers.
4615   # On the NeXT, cc -E runs the code through the compiler's parser,
4616   # not just through cpp. "Syntax error" is here to catch this case.
4617   cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h.  */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h.  */
4623 #ifdef __STDC__
4624 # include <limits.h>
4625 #else
4626 # include <assert.h>
4627 #endif
4628                      Syntax error
4629 _ACEOF
4630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4631   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4632   ac_status=$?
4633   grep -v '^ *+' conftest.er1 >conftest.err
4634   rm -f conftest.er1
4635   cat conftest.err >&5
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); } >/dev/null; then
4638   if test -s conftest.err; then
4639     ac_cpp_err=$ac_c_preproc_warn_flag
4640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4641   else
4642     ac_cpp_err=
4643   fi
4644 else
4645   ac_cpp_err=yes
4646 fi
4647 if test -z "$ac_cpp_err"; then
4648   :
4649 else
4650   echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4652
4653   # Broken: fails on valid input.
4654 continue
4655 fi
4656 rm -f conftest.err conftest.$ac_ext
4657
4658   # OK, works on sane cases.  Now check whether non-existent headers
4659   # can be detected and how.
4660   cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h.  */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h.  */
4666 #include <ac_nonexistent.h>
4667 _ACEOF
4668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4669   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4670   ac_status=$?
4671   grep -v '^ *+' conftest.er1 >conftest.err
4672   rm -f conftest.er1
4673   cat conftest.err >&5
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); } >/dev/null; then
4676   if test -s conftest.err; then
4677     ac_cpp_err=$ac_c_preproc_warn_flag
4678     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4679   else
4680     ac_cpp_err=
4681   fi
4682 else
4683   ac_cpp_err=yes
4684 fi
4685 if test -z "$ac_cpp_err"; then
4686   # Broken: success on invalid input.
4687 continue
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692   # Passes both tests.
4693 ac_preproc_ok=:
4694 break
4695 fi
4696 rm -f conftest.err conftest.$ac_ext
4697
4698 done
4699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4700 rm -f conftest.err conftest.$ac_ext
4701 if $ac_preproc_ok; then
4702   :
4703 else
4704   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4705 See \`config.log' for more details." >&5
4706 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4707 See \`config.log' for more details." >&2;}
4708    { (exit 1); exit 1; }; }
4709 fi
4710
4711 ac_ext=c
4712 ac_cpp='$CPP $CPPFLAGS'
4713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716
4717 if test $ac_cv_c_compiler_gnu = yes; then
4718     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4719 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4720 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723     ac_pattern="Autoconf.*'x'"
4724   cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h.  */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h.  */
4730 #include <sgtty.h>
4731 Autoconf TIOCGETP
4732 _ACEOF
4733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4734   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4735   ac_cv_prog_gcc_traditional=yes
4736 else
4737   ac_cv_prog_gcc_traditional=no
4738 fi
4739 rm -f conftest*
4740
4741
4742   if test $ac_cv_prog_gcc_traditional = no; then
4743     cat >conftest.$ac_ext <<_ACEOF
4744 /* confdefs.h.  */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h.  */
4749 #include <termio.h>
4750 Autoconf TCGETA
4751 _ACEOF
4752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4753   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4754   ac_cv_prog_gcc_traditional=yes
4755 fi
4756 rm -f conftest*
4757
4758   fi
4759 fi
4760 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4761 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4762   if test $ac_cv_prog_gcc_traditional = yes; then
4763     CC="$CC -traditional"
4764   fi
4765 fi
4766
4767 if test -n "$ac_tool_prefix"; then
4768   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4769 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4770 echo "$as_me:$LINENO: checking for $ac_word" >&5
4771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4772 if test "${ac_cv_prog_RANLIB+set}" = set; then
4773   echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775   if test -n "$RANLIB"; then
4776   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4777 else
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4780 do
4781   IFS=$as_save_IFS
4782   test -z "$as_dir" && as_dir=.
4783   for ac_exec_ext in '' $ac_executable_extensions; do
4784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4785     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787     break 2
4788   fi
4789 done
4790 done
4791
4792 fi
4793 fi
4794 RANLIB=$ac_cv_prog_RANLIB
4795 if test -n "$RANLIB"; then
4796   echo "$as_me:$LINENO: result: $RANLIB" >&5
4797 echo "${ECHO_T}$RANLIB" >&6
4798 else
4799   echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6
4801 fi
4802
4803 fi
4804 if test -z "$ac_cv_prog_RANLIB"; then
4805   ac_ct_RANLIB=$RANLIB
4806   # Extract the first word of "ranlib", so it can be a program name with args.
4807 set dummy ranlib; ac_word=$2
4808 echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4810 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813   if test -n "$ac_ct_RANLIB"; then
4814   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4815 else
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819   IFS=$as_save_IFS
4820   test -z "$as_dir" && as_dir=.
4821   for ac_exec_ext in '' $ac_executable_extensions; do
4822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4823     ac_cv_prog_ac_ct_RANLIB="ranlib"
4824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825     break 2
4826   fi
4827 done
4828 done
4829
4830   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4831 fi
4832 fi
4833 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4834 if test -n "$ac_ct_RANLIB"; then
4835   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4836 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4837 else
4838   echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6
4840 fi
4841
4842   RANLIB=$ac_ct_RANLIB
4843 else
4844   RANLIB="$ac_cv_prog_RANLIB"
4845 fi
4846
4847 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4848 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4849 LN_S=$as_ln_s
4850 if test "$LN_S" = "ln -s"; then
4851   echo "$as_me:$LINENO: result: yes" >&5
4852 echo "${ECHO_T}yes" >&6
4853 else
4854   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4855 echo "${ECHO_T}no, using $LN_S" >&6
4856 fi
4857
4858 # Make sure we can run config.sub.
4859 $ac_config_sub sun4 >/dev/null 2>&1 ||
4860   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4861 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4862    { (exit 1); exit 1; }; }
4863
4864 echo "$as_me:$LINENO: checking build system type" >&5
4865 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4866 if test "${ac_cv_build+set}" = set; then
4867   echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869   ac_cv_build_alias=$build_alias
4870 test -z "$ac_cv_build_alias" &&
4871   ac_cv_build_alias=`$ac_config_guess`
4872 test -z "$ac_cv_build_alias" &&
4873   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4874 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4875    { (exit 1); exit 1; }; }
4876 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4877   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4878 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4879    { (exit 1); exit 1; }; }
4880
4881 fi
4882 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4883 echo "${ECHO_T}$ac_cv_build" >&6
4884 build=$ac_cv_build
4885 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4886 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4887 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4888
4889
4890 echo "$as_me:$LINENO: checking host system type" >&5
4891 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4892 if test "${ac_cv_host+set}" = set; then
4893   echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895   ac_cv_host_alias=$host_alias
4896 test -z "$ac_cv_host_alias" &&
4897   ac_cv_host_alias=$ac_cv_build_alias
4898 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4899   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4900 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4901    { (exit 1); exit 1; }; }
4902
4903 fi
4904 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4905 echo "${ECHO_T}$ac_cv_host" >&6
4906 host=$ac_cv_host
4907 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4908 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4909 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4910
4911
4912
4913
4914
4915 for ac_func in uname
4916 do
4917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4918 echo "$as_me:$LINENO: checking for $ac_func" >&5
4919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4920 if eval "test \"\${$as_ac_var+set}\" = set"; then
4921   echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923   cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h.  */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h.  */
4929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4931 #define $ac_func innocuous_$ac_func
4932
4933 /* System header to define __stub macros and hopefully few prototypes,
4934     which can conflict with char $ac_func (); below.
4935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4936     <limits.h> exists even on freestanding compilers.  */
4937
4938 #ifdef __STDC__
4939 # include <limits.h>
4940 #else
4941 # include <assert.h>
4942 #endif
4943
4944 #undef $ac_func
4945
4946 /* Override any gcc2 internal prototype to avoid an error.  */
4947 #ifdef __cplusplus
4948 extern "C"
4949 {
4950 #endif
4951 /* We use char because int might match the return type of a gcc2
4952    builtin and then its argument prototype would still apply.  */
4953 char $ac_func ();
4954 /* The GNU C library defines this for functions which it implements
4955     to always fail with ENOSYS.  Some functions are actually named
4956     something starting with __ and the normal name is an alias.  */
4957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4958 choke me
4959 #else
4960 char (*f) () = $ac_func;
4961 #endif
4962 #ifdef __cplusplus
4963 }
4964 #endif
4965
4966 int
4967 main ()
4968 {
4969 return f != $ac_func;
4970   ;
4971   return 0;
4972 }
4973 _ACEOF
4974 rm -f conftest.$ac_objext conftest$ac_exeext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4976   (eval $ac_link) 2>conftest.er1
4977   ac_status=$?
4978   grep -v '^ *+' conftest.er1 >conftest.err
4979   rm -f conftest.er1
4980   cat conftest.err >&5
4981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982   (exit $ac_status); } &&
4983          { ac_try='test -z "$ac_c_werror_flag"
4984                          || test ! -s conftest.err'
4985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986   (eval $ac_try) 2>&5
4987   ac_status=$?
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); }; } &&
4990          { ac_try='test -s conftest$ac_exeext'
4991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992   (eval $ac_try) 2>&5
4993   ac_status=$?
4994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); }; }; then
4996   eval "$as_ac_var=yes"
4997 else
4998   echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5000
5001 eval "$as_ac_var=no"
5002 fi
5003 rm -f conftest.err conftest.$ac_objext \
5004       conftest$ac_exeext conftest.$ac_ext
5005 fi
5006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5008 if test `eval echo '${'$as_ac_var'}'` = yes; then
5009   cat >>confdefs.h <<_ACEOF
5010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5011 _ACEOF
5012  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname\$(EXEEXT)"
5013         MAN="$MAN uname.1"
5014 fi
5015 done
5016
5017
5018 for ac_func in chroot
5019 do
5020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5021 echo "$as_me:$LINENO: checking for $ac_func" >&5
5022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5023 if eval "test \"\${$as_ac_var+set}\" = set"; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h.  */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h.  */
5032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5034 #define $ac_func innocuous_$ac_func
5035
5036 /* System header to define __stub macros and hopefully few prototypes,
5037     which can conflict with char $ac_func (); below.
5038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039     <limits.h> exists even on freestanding compilers.  */
5040
5041 #ifdef __STDC__
5042 # include <limits.h>
5043 #else
5044 # include <assert.h>
5045 #endif
5046
5047 #undef $ac_func
5048
5049 /* Override any gcc2 internal prototype to avoid an error.  */
5050 #ifdef __cplusplus
5051 extern "C"
5052 {
5053 #endif
5054 /* We use char because int might match the return type of a gcc2
5055    builtin and then its argument prototype would still apply.  */
5056 char $ac_func ();
5057 /* The GNU C library defines this for functions which it implements
5058     to always fail with ENOSYS.  Some functions are actually named
5059     something starting with __ and the normal name is an alias.  */
5060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5061 choke me
5062 #else
5063 char (*f) () = $ac_func;
5064 #endif
5065 #ifdef __cplusplus
5066 }
5067 #endif
5068
5069 int
5070 main ()
5071 {
5072 return f != $ac_func;
5073   ;
5074   return 0;
5075 }
5076 _ACEOF
5077 rm -f conftest.$ac_objext conftest$ac_exeext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5079   (eval $ac_link) 2>conftest.er1
5080   ac_status=$?
5081   grep -v '^ *+' conftest.er1 >conftest.err
5082   rm -f conftest.er1
5083   cat conftest.err >&5
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); } &&
5086          { ac_try='test -z "$ac_c_werror_flag"
5087                          || test ! -s conftest.err'
5088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089   (eval $ac_try) 2>&5
5090   ac_status=$?
5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); }; } &&
5093          { ac_try='test -s conftest$ac_exeext'
5094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095   (eval $ac_try) 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); }; }; then
5099   eval "$as_ac_var=yes"
5100 else
5101   echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5103
5104 eval "$as_ac_var=no"
5105 fi
5106 rm -f conftest.err conftest.$ac_objext \
5107       conftest$ac_exeext conftest.$ac_ext
5108 fi
5109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5111 if test `eval echo '${'$as_ac_var'}'` = yes; then
5112   cat >>confdefs.h <<_ACEOF
5113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5114 _ACEOF
5115  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot\$(EXEEXT)"
5116         MAN="$MAN chroot.1"
5117 fi
5118 done
5119
5120
5121 for ac_func in gethostid
5122 do
5123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5124 echo "$as_me:$LINENO: checking for $ac_func" >&5
5125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5126 if eval "test \"\${$as_ac_var+set}\" = set"; then
5127   echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129   cat >conftest.$ac_ext <<_ACEOF
5130 /* confdefs.h.  */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h.  */
5135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5137 #define $ac_func innocuous_$ac_func
5138
5139 /* System header to define __stub macros and hopefully few prototypes,
5140     which can conflict with char $ac_func (); below.
5141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5142     <limits.h> exists even on freestanding compilers.  */
5143
5144 #ifdef __STDC__
5145 # include <limits.h>
5146 #else
5147 # include <assert.h>
5148 #endif
5149
5150 #undef $ac_func
5151
5152 /* Override any gcc2 internal prototype to avoid an error.  */
5153 #ifdef __cplusplus
5154 extern "C"
5155 {
5156 #endif
5157 /* We use char because int might match the return type of a gcc2
5158    builtin and then its argument prototype would still apply.  */
5159 char $ac_func ();
5160 /* The GNU C library defines this for functions which it implements
5161     to always fail with ENOSYS.  Some functions are actually named
5162     something starting with __ and the normal name is an alias.  */
5163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5164 choke me
5165 #else
5166 char (*f) () = $ac_func;
5167 #endif
5168 #ifdef __cplusplus
5169 }
5170 #endif
5171
5172 int
5173 main ()
5174 {
5175 return f != $ac_func;
5176   ;
5177   return 0;
5178 }
5179 _ACEOF
5180 rm -f conftest.$ac_objext conftest$ac_exeext
5181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5182   (eval $ac_link) 2>conftest.er1
5183   ac_status=$?
5184   grep -v '^ *+' conftest.er1 >conftest.err
5185   rm -f conftest.er1
5186   cat conftest.err >&5
5187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188   (exit $ac_status); } &&
5189          { ac_try='test -z "$ac_c_werror_flag"
5190                          || test ! -s conftest.err'
5191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192   (eval $ac_try) 2>&5
5193   ac_status=$?
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); }; } &&
5196          { ac_try='test -s conftest$ac_exeext'
5197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198   (eval $ac_try) 2>&5
5199   ac_status=$?
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); }; }; then
5202   eval "$as_ac_var=yes"
5203 else
5204   echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5206
5207 eval "$as_ac_var=no"
5208 fi
5209 rm -f conftest.err conftest.$ac_objext \
5210       conftest$ac_exeext conftest.$ac_ext
5211 fi
5212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5214 if test `eval echo '${'$as_ac_var'}'` = yes; then
5215   cat >>confdefs.h <<_ACEOF
5216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5217 _ACEOF
5218  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid\$(EXEEXT)"
5219         MAN="$MAN hostid.1"
5220 fi
5221 done
5222
5223
5224 echo "$as_me:$LINENO: checking for library containing strerror" >&5
5225 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
5226 if test "${ac_cv_search_strerror+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229   ac_func_search_save_LIBS=$LIBS
5230 ac_cv_search_strerror=no
5231 cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h.  */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h.  */
5237
5238 /* Override any gcc2 internal prototype to avoid an error.  */
5239 #ifdef __cplusplus
5240 extern "C"
5241 #endif
5242 /* We use char because int might match the return type of a gcc2
5243    builtin and then its argument prototype would still apply.  */
5244 char strerror ();
5245 int
5246 main ()
5247 {
5248 strerror ();
5249   ;
5250   return 0;
5251 }
5252 _ACEOF
5253 rm -f conftest.$ac_objext conftest$ac_exeext
5254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5255   (eval $ac_link) 2>conftest.er1
5256   ac_status=$?
5257   grep -v '^ *+' conftest.er1 >conftest.err
5258   rm -f conftest.er1
5259   cat conftest.err >&5
5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); } &&
5262          { ac_try='test -z "$ac_c_werror_flag"
5263                          || test ! -s conftest.err'
5264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265   (eval $ac_try) 2>&5
5266   ac_status=$?
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); }; } &&
5269          { ac_try='test -s conftest$ac_exeext'
5270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271   (eval $ac_try) 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); }; }; then
5275   ac_cv_search_strerror="none required"
5276 else
5277   echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5279
5280 fi
5281 rm -f conftest.err conftest.$ac_objext \
5282       conftest$ac_exeext conftest.$ac_ext
5283 if test "$ac_cv_search_strerror" = no; then
5284   for ac_lib in cposix; do
5285     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5286     cat >conftest.$ac_ext <<_ACEOF
5287 /* confdefs.h.  */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h.  */
5292
5293 /* Override any gcc2 internal prototype to avoid an error.  */
5294 #ifdef __cplusplus
5295 extern "C"
5296 #endif
5297 /* We use char because int might match the return type of a gcc2
5298    builtin and then its argument prototype would still apply.  */
5299 char strerror ();
5300 int
5301 main ()
5302 {
5303 strerror ();
5304   ;
5305   return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310   (eval $ac_link) 2>conftest.er1
5311   ac_status=$?
5312   grep -v '^ *+' conftest.er1 >conftest.err
5313   rm -f conftest.er1
5314   cat conftest.err >&5
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); } &&
5317          { ac_try='test -z "$ac_c_werror_flag"
5318                          || test ! -s conftest.err'
5319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320   (eval $ac_try) 2>&5
5321   ac_status=$?
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); }; } &&
5324          { ac_try='test -s conftest$ac_exeext'
5325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326   (eval $ac_try) 2>&5
5327   ac_status=$?
5328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329   (exit $ac_status); }; }; then
5330   ac_cv_search_strerror="-l$ac_lib"
5331 break
5332 else
5333   echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5335
5336 fi
5337 rm -f conftest.err conftest.$ac_objext \
5338       conftest$ac_exeext conftest.$ac_ext
5339   done
5340 fi
5341 LIBS=$ac_func_search_save_LIBS
5342 fi
5343 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5344 echo "${ECHO_T}$ac_cv_search_strerror" >&6
5345 if test "$ac_cv_search_strerror" != no; then
5346   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5347
5348 fi
5349
5350 # Check whether --enable-largefile or --disable-largefile was given.
5351 if test "${enable_largefile+set}" = set; then
5352   enableval="$enable_largefile"
5353
5354 fi;
5355 if test "$enable_largefile" != no; then
5356
5357   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5358 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
5359 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5360   echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362   ac_cv_sys_largefile_CC=no
5363      if test "$GCC" != yes; then
5364        ac_save_CC=$CC
5365        while :; do
5366          # IRIX 6.2 and later do not support large files by default,
5367          # so use the C compiler's -n32 option if that helps.
5368          cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h.  */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h.  */
5374 #include <sys/types.h>
5375  /* Check that off_t can represent 2**63 - 1 correctly.
5376     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5377     since some C++ compilers masquerading as C compilers
5378     incorrectly reject 9223372036854775807.  */
5379 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5380   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5381                        && LARGE_OFF_T % 2147483647 == 1)
5382                       ? 1 : -1];
5383 int
5384 main ()
5385 {
5386
5387   ;
5388   return 0;
5389 }
5390 _ACEOF
5391          rm -f conftest.$ac_objext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393   (eval $ac_compile) 2>conftest.er1
5394   ac_status=$?
5395   grep -v '^ *+' conftest.er1 >conftest.err
5396   rm -f conftest.er1
5397   cat conftest.err >&5
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); } &&
5400          { ac_try='test -z "$ac_c_werror_flag"
5401                          || test ! -s conftest.err'
5402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403   (eval $ac_try) 2>&5
5404   ac_status=$?
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); }; } &&
5407          { ac_try='test -s conftest.$ac_objext'
5408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409   (eval $ac_try) 2>&5
5410   ac_status=$?
5411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); }; }; then
5413   break
5414 else
5415   echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5417
5418 fi
5419 rm -f conftest.err conftest.$ac_objext
5420          CC="$CC -n32"
5421          rm -f conftest.$ac_objext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423   (eval $ac_compile) 2>conftest.er1
5424   ac_status=$?
5425   grep -v '^ *+' conftest.er1 >conftest.err
5426   rm -f conftest.er1
5427   cat conftest.err >&5
5428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429   (exit $ac_status); } &&
5430          { ac_try='test -z "$ac_c_werror_flag"
5431                          || test ! -s conftest.err'
5432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433   (eval $ac_try) 2>&5
5434   ac_status=$?
5435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436   (exit $ac_status); }; } &&
5437          { ac_try='test -s conftest.$ac_objext'
5438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439   (eval $ac_try) 2>&5
5440   ac_status=$?
5441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442   (exit $ac_status); }; }; then
5443   ac_cv_sys_largefile_CC=' -n32'; break
5444 else
5445   echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5447
5448 fi
5449 rm -f conftest.err conftest.$ac_objext
5450          break
5451        done
5452        CC=$ac_save_CC
5453        rm -f conftest.$ac_ext
5454     fi
5455 fi
5456 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5457 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5458   if test "$ac_cv_sys_largefile_CC" != no; then
5459     CC=$CC$ac_cv_sys_largefile_CC
5460   fi
5461
5462   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5463 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5464 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467   while :; do
5468   ac_cv_sys_file_offset_bits=no
5469   cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h.  */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h.  */
5475 #include <sys/types.h>
5476  /* Check that off_t can represent 2**63 - 1 correctly.
5477     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5478     since some C++ compilers masquerading as C compilers
5479     incorrectly reject 9223372036854775807.  */
5480 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5481   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5482                        && LARGE_OFF_T % 2147483647 == 1)
5483                       ? 1 : -1];
5484 int
5485 main ()
5486 {
5487
5488   ;
5489   return 0;
5490 }
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5494   (eval $ac_compile) 2>conftest.er1
5495   ac_status=$?
5496   grep -v '^ *+' conftest.er1 >conftest.err
5497   rm -f conftest.er1
5498   cat conftest.err >&5
5499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500   (exit $ac_status); } &&
5501          { ac_try='test -z "$ac_c_werror_flag"
5502                          || test ! -s conftest.err'
5503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504   (eval $ac_try) 2>&5
5505   ac_status=$?
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); }; } &&
5508          { ac_try='test -s conftest.$ac_objext'
5509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510   (eval $ac_try) 2>&5
5511   ac_status=$?
5512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513   (exit $ac_status); }; }; then
5514   break
5515 else
5516   echo "$as_me: failed program was:" >&5
5517 sed 's/^/| /' conftest.$ac_ext >&5
5518
5519 fi
5520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5521   cat >conftest.$ac_ext <<_ACEOF
5522 /* confdefs.h.  */
5523 _ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h.  */
5527 #define _FILE_OFFSET_BITS 64
5528 #include <sys/types.h>
5529  /* Check that off_t can represent 2**63 - 1 correctly.
5530     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5531     since some C++ compilers masquerading as C compilers
5532     incorrectly reject 9223372036854775807.  */
5533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5534   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5535                        && LARGE_OFF_T % 2147483647 == 1)
5536                       ? 1 : -1];
5537 int
5538 main ()
5539 {
5540
5541   ;
5542   return 0;
5543 }
5544 _ACEOF
5545 rm -f conftest.$ac_objext
5546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5547   (eval $ac_compile) 2>conftest.er1
5548   ac_status=$?
5549   grep -v '^ *+' conftest.er1 >conftest.err
5550   rm -f conftest.er1
5551   cat conftest.err >&5
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); } &&
5554          { ac_try='test -z "$ac_c_werror_flag"
5555                          || test ! -s conftest.err'
5556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557   (eval $ac_try) 2>&5
5558   ac_status=$?
5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560   (exit $ac_status); }; } &&
5561          { ac_try='test -s conftest.$ac_objext'
5562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563   (eval $ac_try) 2>&5
5564   ac_status=$?
5565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566   (exit $ac_status); }; }; then
5567   ac_cv_sys_file_offset_bits=64; break
5568 else
5569   echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5571
5572 fi
5573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5574   break
5575 done
5576 fi
5577 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5578 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5579 if test "$ac_cv_sys_file_offset_bits" != no; then
5580
5581 cat >>confdefs.h <<_ACEOF
5582 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5583 _ACEOF
5584
5585 fi
5586 rm -f conftest*
5587   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5588 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5589 if test "${ac_cv_sys_large_files+set}" = set; then
5590   echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592   while :; do
5593   ac_cv_sys_large_files=no
5594   cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h.  */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h.  */
5600 #include <sys/types.h>
5601  /* Check that off_t can represent 2**63 - 1 correctly.
5602     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5603     since some C++ compilers masquerading as C compilers
5604     incorrectly reject 9223372036854775807.  */
5605 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5606   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5607                        && LARGE_OFF_T % 2147483647 == 1)
5608                       ? 1 : -1];
5609 int
5610 main ()
5611 {
5612
5613   ;
5614   return 0;
5615 }
5616 _ACEOF
5617 rm -f conftest.$ac_objext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619   (eval $ac_compile) 2>conftest.er1
5620   ac_status=$?
5621   grep -v '^ *+' conftest.er1 >conftest.err
5622   rm -f conftest.er1
5623   cat conftest.err >&5
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); } &&
5626          { ac_try='test -z "$ac_c_werror_flag"
5627                          || test ! -s conftest.err'
5628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629   (eval $ac_try) 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); }; } &&
5633          { ac_try='test -s conftest.$ac_objext'
5634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635   (eval $ac_try) 2>&5
5636   ac_status=$?
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); }; }; then
5639   break
5640 else
5641   echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5643
5644 fi
5645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5646   cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h.  */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h.  */
5652 #define _LARGE_FILES 1
5653 #include <sys/types.h>
5654  /* Check that off_t can represent 2**63 - 1 correctly.
5655     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5656     since some C++ compilers masquerading as C compilers
5657     incorrectly reject 9223372036854775807.  */
5658 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5659   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5660                        && LARGE_OFF_T % 2147483647 == 1)
5661                       ? 1 : -1];
5662 int
5663 main ()
5664 {
5665
5666   ;
5667   return 0;
5668 }
5669 _ACEOF
5670 rm -f conftest.$ac_objext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672   (eval $ac_compile) 2>conftest.er1
5673   ac_status=$?
5674   grep -v '^ *+' conftest.er1 >conftest.err
5675   rm -f conftest.er1
5676   cat conftest.err >&5
5677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678   (exit $ac_status); } &&
5679          { ac_try='test -z "$ac_c_werror_flag"
5680                          || test ! -s conftest.err'
5681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682   (eval $ac_try) 2>&5
5683   ac_status=$?
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); }; } &&
5686          { ac_try='test -s conftest.$ac_objext'
5687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688   (eval $ac_try) 2>&5
5689   ac_status=$?
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); }; }; then
5692   ac_cv_sys_large_files=1; break
5693 else
5694   echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5696
5697 fi
5698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5699   break
5700 done
5701 fi
5702 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5703 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5704 if test "$ac_cv_sys_large_files" != no; then
5705
5706 cat >>confdefs.h <<_ACEOF
5707 #define _LARGE_FILES $ac_cv_sys_large_files
5708 _ACEOF
5709
5710 fi
5711 rm -f conftest*
5712 fi
5713
5714 echo "$as_me:$LINENO: checking for function prototypes" >&5
5715 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5716 if test "$ac_cv_prog_cc_stdc" != no; then
5717   echo "$as_me:$LINENO: result: yes" >&5
5718 echo "${ECHO_T}yes" >&6
5719
5720 cat >>confdefs.h <<\_ACEOF
5721 #define PROTOTYPES 1
5722 _ACEOF
5723
5724
5725 cat >>confdefs.h <<\_ACEOF
5726 #define __PROTOTYPES 1
5727 _ACEOF
5728
5729 else
5730   echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6
5732 fi
5733
5734
5735 if test "$ac_cv_prog_cc_stdc" != no; then
5736   U= ANSI2KNR=
5737 else
5738   U=_ ANSI2KNR=./ansi2knr
5739 fi
5740 # Ensure some checks needed by ansi2knr itself.
5741
5742
5743 for ac_header in string.h
5744 do
5745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5747   echo "$as_me:$LINENO: checking for $ac_header" >&5
5748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 fi
5752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5754 else
5755   # Is the header compilable?
5756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5758 cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h.  */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h.  */
5764 $ac_includes_default
5765 #include <$ac_header>
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769   (eval $ac_compile) 2>conftest.er1
5770   ac_status=$?
5771   grep -v '^ *+' conftest.er1 >conftest.err
5772   rm -f conftest.er1
5773   cat conftest.err >&5
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); } &&
5776          { ac_try='test -z "$ac_c_werror_flag"
5777                          || test ! -s conftest.err'
5778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779   (eval $ac_try) 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); }; } &&
5783          { ac_try='test -s conftest.$ac_objext'
5784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785   (eval $ac_try) 2>&5
5786   ac_status=$?
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); }; }; then
5789   ac_header_compiler=yes
5790 else
5791   echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5793
5794 ac_header_compiler=no
5795 fi
5796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5798 echo "${ECHO_T}$ac_header_compiler" >&6
5799
5800 # Is the header present?
5801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5803 cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h.  */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h.  */
5809 #include <$ac_header>
5810 _ACEOF
5811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5812   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5813   ac_status=$?
5814   grep -v '^ *+' conftest.er1 >conftest.err
5815   rm -f conftest.er1
5816   cat conftest.err >&5
5817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818   (exit $ac_status); } >/dev/null; then
5819   if test -s conftest.err; then
5820     ac_cpp_err=$ac_c_preproc_warn_flag
5821     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5822   else
5823     ac_cpp_err=
5824   fi
5825 else
5826   ac_cpp_err=yes
5827 fi
5828 if test -z "$ac_cpp_err"; then
5829   ac_header_preproc=yes
5830 else
5831   echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5833
5834   ac_header_preproc=no
5835 fi
5836 rm -f conftest.err conftest.$ac_ext
5837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5838 echo "${ECHO_T}$ac_header_preproc" >&6
5839
5840 # So?  What about this header?
5841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5842   yes:no: )
5843     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5847     ac_header_preproc=yes
5848     ;;
5849   no:yes:* )
5850     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5852     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5853 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5854     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5856     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5857 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5860     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5862     (
5863       cat <<\_ASBOX
5864 ## ------------------------------------ ##
5865 ## Report this to bug-coreutils@gnu.org ##
5866 ## ------------------------------------ ##
5867 _ASBOX
5868     ) |
5869       sed "s/^/$as_me: WARNING:     /" >&2
5870     ;;
5871 esac
5872 echo "$as_me:$LINENO: checking for $ac_header" >&5
5873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5875   echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877   eval "$as_ac_Header=\$ac_header_preproc"
5878 fi
5879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5881
5882 fi
5883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5884   cat >>confdefs.h <<_ACEOF
5885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5886 _ACEOF
5887
5888 fi
5889
5890 done
5891
5892
5893 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5894 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5895 if test "${ac_cv_c_bigendian+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   # See if sys/param.h defines the BYTE_ORDER macro.
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h.  */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h.  */
5905 #include <sys/types.h>
5906 #include <sys/param.h>
5907
5908 int
5909 main ()
5910 {
5911 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5912  bogus endian macros
5913 #endif
5914
5915   ;
5916   return 0;
5917 }
5918 _ACEOF
5919 rm -f conftest.$ac_objext
5920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921   (eval $ac_compile) 2>conftest.er1
5922   ac_status=$?
5923   grep -v '^ *+' conftest.er1 >conftest.err
5924   rm -f conftest.er1
5925   cat conftest.err >&5
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); } &&
5928          { ac_try='test -z "$ac_c_werror_flag"
5929                          || test ! -s conftest.err'
5930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931   (eval $ac_try) 2>&5
5932   ac_status=$?
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); }; } &&
5935          { ac_try='test -s conftest.$ac_objext'
5936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937   (eval $ac_try) 2>&5
5938   ac_status=$?
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); }; }; then
5941   # It does; now see whether it defined to BIG_ENDIAN or not.
5942 cat >conftest.$ac_ext <<_ACEOF
5943 /* confdefs.h.  */
5944 _ACEOF
5945 cat confdefs.h >>conftest.$ac_ext
5946 cat >>conftest.$ac_ext <<_ACEOF
5947 /* end confdefs.h.  */
5948 #include <sys/types.h>
5949 #include <sys/param.h>
5950
5951 int
5952 main ()
5953 {
5954 #if BYTE_ORDER != BIG_ENDIAN
5955  not big endian
5956 #endif
5957
5958   ;
5959   return 0;
5960 }
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964   (eval $ac_compile) 2>conftest.er1
5965   ac_status=$?
5966   grep -v '^ *+' conftest.er1 >conftest.err
5967   rm -f conftest.er1
5968   cat conftest.err >&5
5969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970   (exit $ac_status); } &&
5971          { ac_try='test -z "$ac_c_werror_flag"
5972                          || test ! -s conftest.err'
5973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974   (eval $ac_try) 2>&5
5975   ac_status=$?
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); }; } &&
5978          { ac_try='test -s conftest.$ac_objext'
5979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980   (eval $ac_try) 2>&5
5981   ac_status=$?
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); }; }; then
5984   ac_cv_c_bigendian=yes
5985 else
5986   echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5988
5989 ac_cv_c_bigendian=no
5990 fi
5991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5992 else
5993   echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5995
5996 # It does not; compile a test program.
5997 if test "$cross_compiling" = yes; then
5998   # try to guess the endianness by grepping values into an object file
5999   ac_cv_c_bigendian=unknown
6000   cat >conftest.$ac_ext <<_ACEOF
6001 /* confdefs.h.  */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h.  */
6006 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6007 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6008 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6009 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6010 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6011 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6012 int
6013 main ()
6014 {
6015  _ascii (); _ebcdic ();
6016   ;
6017   return 0;
6018 }
6019 _ACEOF
6020 rm -f conftest.$ac_objext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022   (eval $ac_compile) 2>conftest.er1
6023   ac_status=$?
6024   grep -v '^ *+' conftest.er1 >conftest.err
6025   rm -f conftest.er1
6026   cat conftest.err >&5
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); } &&
6029          { ac_try='test -z "$ac_c_werror_flag"
6030                          || test ! -s conftest.err'
6031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032   (eval $ac_try) 2>&5
6033   ac_status=$?
6034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035   (exit $ac_status); }; } &&
6036          { ac_try='test -s conftest.$ac_objext'
6037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038   (eval $ac_try) 2>&5
6039   ac_status=$?
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); }; }; then
6042   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6043   ac_cv_c_bigendian=yes
6044 fi
6045 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6046   if test "$ac_cv_c_bigendian" = unknown; then
6047     ac_cv_c_bigendian=no
6048   else
6049     # finding both strings is unlikely to happen, but who knows?
6050     ac_cv_c_bigendian=unknown
6051   fi
6052 fi
6053 else
6054   echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6056
6057 fi
6058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6059 else
6060   cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h.  */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h.  */
6066 int
6067 main ()
6068 {
6069   /* Are we little or big endian?  From Harbison&Steele.  */
6070   union
6071   {
6072     long l;
6073     char c[sizeof (long)];
6074   } u;
6075   u.l = 1;
6076   exit (u.c[sizeof (long) - 1] == 1);
6077 }
6078 _ACEOF
6079 rm -f conftest$ac_exeext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6081   (eval $ac_link) 2>&5
6082   ac_status=$?
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086   (eval $ac_try) 2>&5
6087   ac_status=$?
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); }; }; then
6090   ac_cv_c_bigendian=no
6091 else
6092   echo "$as_me: program exited with status $ac_status" >&5
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6095
6096 ( exit $ac_status )
6097 ac_cv_c_bigendian=yes
6098 fi
6099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6100 fi
6101 fi
6102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6103 fi
6104 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6105 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6106 case $ac_cv_c_bigendian in
6107   yes)
6108
6109 cat >>confdefs.h <<\_ACEOF
6110 #define WORDS_BIGENDIAN 1
6111 _ACEOF
6112  ;;
6113   no)
6114      ;;
6115   *)
6116     { { echo "$as_me:$LINENO: error: unknown endianness
6117 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6118 echo "$as_me: error: unknown endianness
6119 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6120    { (exit 1); exit 1; }; } ;;
6121 esac
6122
6123 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6124 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6125 if test "${ac_cv_c_const+set}" = set; then
6126   echo $ECHO_N "(cached) $ECHO_C" >&6
6127 else
6128   cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h.  */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h.  */
6134
6135 int
6136 main ()
6137 {
6138 /* FIXME: Include the comments suggested by Paul. */
6139 #ifndef __cplusplus
6140   /* Ultrix mips cc rejects this.  */
6141   typedef int charset[2];
6142   const charset x;
6143   /* SunOS 4.1.1 cc rejects this.  */
6144   char const *const *ccp;
6145   char **p;
6146   /* NEC SVR4.0.2 mips cc rejects this.  */
6147   struct point {int x, y;};
6148   static struct point const zero = {0,0};
6149   /* AIX XL C 1.02.0.0 rejects this.
6150      It does not let you subtract one const X* pointer from another in
6151      an arm of an if-expression whose if-part is not a constant
6152      expression */
6153   const char *g = "string";
6154   ccp = &g + (g ? g-g : 0);
6155   /* HPUX 7.0 cc rejects these. */
6156   ++ccp;
6157   p = (char**) ccp;
6158   ccp = (char const *const *) p;
6159   { /* SCO 3.2v4 cc rejects this.  */
6160     char *t;
6161     char const *s = 0 ? (char *) 0 : (char const *) 0;
6162
6163     *t++ = 0;
6164   }
6165   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6166     int x[] = {25, 17};
6167     const int *foo = &x[0];
6168     ++foo;
6169   }
6170   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6171     typedef const int *iptr;
6172     iptr p = 0;
6173     ++p;
6174   }
6175   { /* AIX XL C 1.02.0.0 rejects this saying
6176        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6177     struct s { int j; const int *ap[3]; };
6178     struct s *b; b->j = 5;
6179   }
6180   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6181     const int foo = 10;
6182   }
6183 #endif
6184
6185   ;
6186   return 0;
6187 }
6188 _ACEOF
6189 rm -f conftest.$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191   (eval $ac_compile) 2>conftest.er1
6192   ac_status=$?
6193   grep -v '^ *+' conftest.er1 >conftest.err
6194   rm -f conftest.er1
6195   cat conftest.err >&5
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); } &&
6198          { ac_try='test -z "$ac_c_werror_flag"
6199                          || test ! -s conftest.err'
6200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201   (eval $ac_try) 2>&5
6202   ac_status=$?
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); }; } &&
6205          { ac_try='test -s conftest.$ac_objext'
6206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207   (eval $ac_try) 2>&5
6208   ac_status=$?
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }; }; then
6211   ac_cv_c_const=yes
6212 else
6213   echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6215
6216 ac_cv_c_const=no
6217 fi
6218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6219 fi
6220 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6221 echo "${ECHO_T}$ac_cv_c_const" >&6
6222 if test $ac_cv_c_const = no; then
6223
6224 cat >>confdefs.h <<\_ACEOF
6225 #define const
6226 _ACEOF
6227
6228 fi
6229
6230 echo "$as_me:$LINENO: checking for working volatile" >&5
6231 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6232 if test "${ac_cv_c_volatile+set}" = set; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h.  */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h.  */
6241
6242 int
6243 main ()
6244 {
6245
6246 volatile int x;
6247 int * volatile y;
6248   ;
6249   return 0;
6250 }
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254   (eval $ac_compile) 2>conftest.er1
6255   ac_status=$?
6256   grep -v '^ *+' conftest.er1 >conftest.err
6257   rm -f conftest.er1
6258   cat conftest.err >&5
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); } &&
6261          { ac_try='test -z "$ac_c_werror_flag"
6262                          || test ! -s conftest.err'
6263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264   (eval $ac_try) 2>&5
6265   ac_status=$?
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); }; } &&
6268          { ac_try='test -s conftest.$ac_objext'
6269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270   (eval $ac_try) 2>&5
6271   ac_status=$?
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); }; }; then
6274   ac_cv_c_volatile=yes
6275 else
6276   echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6278
6279 ac_cv_c_volatile=no
6280 fi
6281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6282 fi
6283 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6284 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6285 if test $ac_cv_c_volatile = no; then
6286
6287 cat >>confdefs.h <<\_ACEOF
6288 #define volatile
6289 _ACEOF
6290
6291 fi
6292
6293 echo "$as_me:$LINENO: checking for inline" >&5
6294 echo $ECHO_N "checking for inline... $ECHO_C" >&6
6295 if test "${ac_cv_c_inline+set}" = set; then
6296   echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298   ac_cv_c_inline=no
6299 for ac_kw in inline __inline__ __inline; do
6300   cat >conftest.$ac_ext <<_ACEOF
6301 /* confdefs.h.  */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h.  */
6306 #ifndef __cplusplus
6307 typedef int foo_t;
6308 static $ac_kw foo_t static_foo () {return 0; }
6309 $ac_kw foo_t foo () {return 0; }
6310 #endif
6311
6312 _ACEOF
6313 rm -f conftest.$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315   (eval $ac_compile) 2>conftest.er1
6316   ac_status=$?
6317   grep -v '^ *+' conftest.er1 >conftest.err
6318   rm -f conftest.er1
6319   cat conftest.err >&5
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); } &&
6322          { ac_try='test -z "$ac_c_werror_flag"
6323                          || test ! -s conftest.err'
6324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325   (eval $ac_try) 2>&5
6326   ac_status=$?
6327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328   (exit $ac_status); }; } &&
6329          { ac_try='test -s conftest.$ac_objext'
6330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331   (eval $ac_try) 2>&5
6332   ac_status=$?
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); }; }; then
6335   ac_cv_c_inline=$ac_kw; break
6336 else
6337   echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6339
6340 fi
6341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6342 done
6343
6344 fi
6345 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6346 echo "${ECHO_T}$ac_cv_c_inline" >&6
6347
6348
6349 case $ac_cv_c_inline in
6350   inline | yes) ;;
6351   *)
6352     case $ac_cv_c_inline in
6353       no) ac_val=;;
6354       *) ac_val=$ac_cv_c_inline;;
6355     esac
6356     cat >>confdefs.h <<_ACEOF
6357 #ifndef __cplusplus
6358 #define inline $ac_val
6359 #endif
6360 _ACEOF
6361     ;;
6362 esac
6363
6364 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
6365 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
6366 if test "${ac_cv_c_long_double+set}" = set; then
6367   echo $ECHO_N "(cached) $ECHO_C" >&6
6368 else
6369   cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h.  */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h.  */
6375 #include <float.h>
6376           long double foo = 0.0;
6377 int
6378 main ()
6379 {
6380 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug.  */
6381           (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
6382           | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
6383 test_array [0] = 0
6384
6385   ;
6386   return 0;
6387 }
6388 _ACEOF
6389 rm -f conftest.$ac_objext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391   (eval $ac_compile) 2>conftest.er1
6392   ac_status=$?
6393   grep -v '^ *+' conftest.er1 >conftest.err
6394   rm -f conftest.er1
6395   cat conftest.err >&5
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); } &&
6398          { ac_try='test -z "$ac_c_werror_flag"
6399                          || test ! -s conftest.err'
6400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401   (eval $ac_try) 2>&5
6402   ac_status=$?
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); }; } &&
6405          { ac_try='test -s conftest.$ac_objext'
6406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407   (eval $ac_try) 2>&5
6408   ac_status=$?
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); }; }; then
6411   ac_cv_c_long_double=yes
6412 else
6413   echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6415
6416 ac_cv_c_long_double=no
6417 fi
6418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6419 fi
6420 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
6421 echo "${ECHO_T}$ac_cv_c_long_double" >&6
6422 if test $ac_cv_c_long_double = yes; then
6423
6424 cat >>confdefs.h <<\_ACEOF
6425 #define HAVE_LONG_DOUBLE 1
6426 _ACEOF
6427
6428 fi
6429
6430
6431
6432 for ac_header in errno.h
6433 do
6434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6436   echo "$as_me:$LINENO: checking for $ac_header" >&5
6437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6439   echo $ECHO_N "(cached) $ECHO_C" >&6
6440 fi
6441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6443 else
6444   # Is the header compilable?
6445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6447 cat >conftest.$ac_ext <<_ACEOF
6448 /* confdefs.h.  */
6449 _ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h.  */
6453 $ac_includes_default
6454 #include <$ac_header>
6455 _ACEOF
6456 rm -f conftest.$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458   (eval $ac_compile) 2>conftest.er1
6459   ac_status=$?
6460   grep -v '^ *+' conftest.er1 >conftest.err
6461   rm -f conftest.er1
6462   cat conftest.err >&5
6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464   (exit $ac_status); } &&
6465          { ac_try='test -z "$ac_c_werror_flag"
6466                          || test ! -s conftest.err'
6467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468   (eval $ac_try) 2>&5
6469   ac_status=$?
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); }; } &&
6472          { ac_try='test -s conftest.$ac_objext'
6473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474   (eval $ac_try) 2>&5
6475   ac_status=$?
6476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477   (exit $ac_status); }; }; then
6478   ac_header_compiler=yes
6479 else
6480   echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6482
6483 ac_header_compiler=no
6484 fi
6485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6487 echo "${ECHO_T}$ac_header_compiler" >&6
6488
6489 # Is the header present?
6490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6492 cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h.  */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h.  */
6498 #include <$ac_header>
6499 _ACEOF
6500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6502   ac_status=$?
6503   grep -v '^ *+' conftest.er1 >conftest.err
6504   rm -f conftest.er1
6505   cat conftest.err >&5
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); } >/dev/null; then
6508   if test -s conftest.err; then
6509     ac_cpp_err=$ac_c_preproc_warn_flag
6510     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6511   else
6512     ac_cpp_err=
6513   fi
6514 else
6515   ac_cpp_err=yes
6516 fi
6517 if test -z "$ac_cpp_err"; then
6518   ac_header_preproc=yes
6519 else
6520   echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6522
6523   ac_header_preproc=no
6524 fi
6525 rm -f conftest.err conftest.$ac_ext
6526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6527 echo "${ECHO_T}$ac_header_preproc" >&6
6528
6529 # So?  What about this header?
6530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6531   yes:no: )
6532     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6536     ac_header_preproc=yes
6537     ;;
6538   no:yes:* )
6539     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6541     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6542 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6543     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6545     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6546 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6549     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6551     (
6552       cat <<\_ASBOX
6553 ## ------------------------------------ ##
6554 ## Report this to bug-coreutils@gnu.org ##
6555 ## ------------------------------------ ##
6556 _ASBOX
6557     ) |
6558       sed "s/^/$as_me: WARNING:     /" >&2
6559     ;;
6560 esac
6561 echo "$as_me:$LINENO: checking for $ac_header" >&5
6562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6564   echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566   eval "$as_ac_Header=\$ac_header_preproc"
6567 fi
6568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6570
6571 fi
6572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6573   cat >>confdefs.h <<_ACEOF
6574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6575 _ACEOF
6576
6577 fi
6578
6579 done
6580
6581
6582
6583
6584 for ac_header in fcntl.h
6585 do
6586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6588   echo "$as_me:$LINENO: checking for $ac_header" >&5
6589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6591   echo $ECHO_N "(cached) $ECHO_C" >&6
6592 fi
6593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6595 else
6596   # Is the header compilable?
6597 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6599 cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h.  */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h.  */
6605 $ac_includes_default
6606 #include <$ac_header>
6607 _ACEOF
6608 rm -f conftest.$ac_objext
6609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6610   (eval $ac_compile) 2>conftest.er1
6611   ac_status=$?
6612   grep -v '^ *+' conftest.er1 >conftest.err
6613   rm -f conftest.er1
6614   cat conftest.err >&5
6615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616   (exit $ac_status); } &&
6617          { ac_try='test -z "$ac_c_werror_flag"
6618                          || test ! -s conftest.err'
6619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620   (eval $ac_try) 2>&5
6621   ac_status=$?
6622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623   (exit $ac_status); }; } &&
6624          { ac_try='test -s conftest.$ac_objext'
6625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626   (eval $ac_try) 2>&5
6627   ac_status=$?
6628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629   (exit $ac_status); }; }; then
6630   ac_header_compiler=yes
6631 else
6632   echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6634
6635 ac_header_compiler=no
6636 fi
6637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6639 echo "${ECHO_T}$ac_header_compiler" >&6
6640
6641 # Is the header present?
6642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6644 cat >conftest.$ac_ext <<_ACEOF
6645 /* confdefs.h.  */
6646 _ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h.  */
6650 #include <$ac_header>
6651 _ACEOF
6652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6654   ac_status=$?
6655   grep -v '^ *+' conftest.er1 >conftest.err
6656   rm -f conftest.er1
6657   cat conftest.err >&5
6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); } >/dev/null; then
6660   if test -s conftest.err; then
6661     ac_cpp_err=$ac_c_preproc_warn_flag
6662     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6663   else
6664     ac_cpp_err=
6665   fi
6666 else
6667   ac_cpp_err=yes
6668 fi
6669 if test -z "$ac_cpp_err"; then
6670   ac_header_preproc=yes
6671 else
6672   echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6674
6675   ac_header_preproc=no
6676 fi
6677 rm -f conftest.err conftest.$ac_ext
6678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6679 echo "${ECHO_T}$ac_header_preproc" >&6
6680
6681 # So?  What about this header?
6682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6683   yes:no: )
6684     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6686     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6688     ac_header_preproc=yes
6689     ;;
6690   no:yes:* )
6691     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6693     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6694 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6695     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6697     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6698 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6701     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6703     (
6704       cat <<\_ASBOX
6705 ## ------------------------------------ ##
6706 ## Report this to bug-coreutils@gnu.org ##
6707 ## ------------------------------------ ##
6708 _ASBOX
6709     ) |
6710       sed "s/^/$as_me: WARNING:     /" >&2
6711     ;;
6712 esac
6713 echo "$as_me:$LINENO: checking for $ac_header" >&5
6714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   eval "$as_ac_Header=\$ac_header_preproc"
6719 fi
6720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6722
6723 fi
6724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6725   cat >>confdefs.h <<_ACEOF
6726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6727 _ACEOF
6728
6729 fi
6730
6731 done
6732
6733
6734
6735
6736 for ac_header in float.h
6737 do
6738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6740   echo "$as_me:$LINENO: checking for $ac_header" >&5
6741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6743   echo $ECHO_N "(cached) $ECHO_C" >&6
6744 fi
6745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6747 else
6748   # Is the header compilable?
6749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6751 cat >conftest.$ac_ext <<_ACEOF
6752 /* confdefs.h.  */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h.  */
6757 $ac_includes_default
6758 #include <$ac_header>
6759 _ACEOF
6760 rm -f conftest.$ac_objext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6762   (eval $ac_compile) 2>conftest.er1
6763   ac_status=$?
6764   grep -v '^ *+' conftest.er1 >conftest.err
6765   rm -f conftest.er1
6766   cat conftest.err >&5
6767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768   (exit $ac_status); } &&
6769          { ac_try='test -z "$ac_c_werror_flag"
6770                          || test ! -s conftest.err'
6771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772   (eval $ac_try) 2>&5
6773   ac_status=$?
6774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); }; } &&
6776          { ac_try='test -s conftest.$ac_objext'
6777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778   (eval $ac_try) 2>&5
6779   ac_status=$?
6780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781   (exit $ac_status); }; }; then
6782   ac_header_compiler=yes
6783 else
6784   echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6786
6787 ac_header_compiler=no
6788 fi
6789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6791 echo "${ECHO_T}$ac_header_compiler" >&6
6792
6793 # Is the header present?
6794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6796 cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h.  */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h.  */
6802 #include <$ac_header>
6803 _ACEOF
6804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6805   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6806   ac_status=$?
6807   grep -v '^ *+' conftest.er1 >conftest.err
6808   rm -f conftest.er1
6809   cat conftest.err >&5
6810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811   (exit $ac_status); } >/dev/null; then
6812   if test -s conftest.err; then
6813     ac_cpp_err=$ac_c_preproc_warn_flag
6814     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6815   else
6816     ac_cpp_err=
6817   fi
6818 else
6819   ac_cpp_err=yes
6820 fi
6821 if test -z "$ac_cpp_err"; then
6822   ac_header_preproc=yes
6823 else
6824   echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827   ac_header_preproc=no
6828 fi
6829 rm -f conftest.err conftest.$ac_ext
6830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6831 echo "${ECHO_T}$ac_header_preproc" >&6
6832
6833 # So?  What about this header?
6834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6835   yes:no: )
6836     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6838     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6840     ac_header_preproc=yes
6841     ;;
6842   no:yes:* )
6843     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6845     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6846 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6847     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6849     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6850 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6853     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6855     (
6856       cat <<\_ASBOX
6857 ## ------------------------------------ ##
6858 ## Report this to bug-coreutils@gnu.org ##
6859 ## ------------------------------------ ##
6860 _ASBOX
6861     ) |
6862       sed "s/^/$as_me: WARNING:     /" >&2
6863     ;;
6864 esac
6865 echo "$as_me:$LINENO: checking for $ac_header" >&5
6866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6868   echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870   eval "$as_ac_Header=\$ac_header_preproc"
6871 fi
6872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6874
6875 fi
6876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6877   cat >>confdefs.h <<_ACEOF
6878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6879 _ACEOF
6880
6881 fi
6882
6883 done
6884
6885
6886
6887
6888 for ac_header in hurd.h
6889 do
6890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6892   echo "$as_me:$LINENO: checking for $ac_header" >&5
6893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6895   echo $ECHO_N "(cached) $ECHO_C" >&6
6896 fi
6897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6899 else
6900   # Is the header compilable?
6901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6903 cat >conftest.$ac_ext <<_ACEOF
6904 /* confdefs.h.  */
6905 _ACEOF
6906 cat confdefs.h >>conftest.$ac_ext
6907 cat >>conftest.$ac_ext <<_ACEOF
6908 /* end confdefs.h.  */
6909 $ac_includes_default
6910 #include <$ac_header>
6911 _ACEOF
6912 rm -f conftest.$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914   (eval $ac_compile) 2>conftest.er1
6915   ac_status=$?
6916   grep -v '^ *+' conftest.er1 >conftest.err
6917   rm -f conftest.er1
6918   cat conftest.err >&5
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); } &&
6921          { ac_try='test -z "$ac_c_werror_flag"
6922                          || test ! -s conftest.err'
6923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924   (eval $ac_try) 2>&5
6925   ac_status=$?
6926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927   (exit $ac_status); }; } &&
6928          { ac_try='test -s conftest.$ac_objext'
6929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930   (eval $ac_try) 2>&5
6931   ac_status=$?
6932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933   (exit $ac_status); }; }; then
6934   ac_header_compiler=yes
6935 else
6936   echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6938
6939 ac_header_compiler=no
6940 fi
6941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6943 echo "${ECHO_T}$ac_header_compiler" >&6
6944
6945 # Is the header present?
6946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6948 cat >conftest.$ac_ext <<_ACEOF
6949 /* confdefs.h.  */
6950 _ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h.  */
6954 #include <$ac_header>
6955 _ACEOF
6956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6958   ac_status=$?
6959   grep -v '^ *+' conftest.er1 >conftest.err
6960   rm -f conftest.er1
6961   cat conftest.err >&5
6962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963   (exit $ac_status); } >/dev/null; then
6964   if test -s conftest.err; then
6965     ac_cpp_err=$ac_c_preproc_warn_flag
6966     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6967   else
6968     ac_cpp_err=
6969   fi
6970 else
6971   ac_cpp_err=yes
6972 fi
6973 if test -z "$ac_cpp_err"; then
6974   ac_header_preproc=yes
6975 else
6976   echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6978
6979   ac_header_preproc=no
6980 fi
6981 rm -f conftest.err conftest.$ac_ext
6982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6983 echo "${ECHO_T}$ac_header_preproc" >&6
6984
6985 # So?  What about this header?
6986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6987   yes:no: )
6988     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6992     ac_header_preproc=yes
6993     ;;
6994   no:yes:* )
6995     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6997     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6998 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6999     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7001     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7002 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7005     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7007     (
7008       cat <<\_ASBOX
7009 ## ------------------------------------ ##
7010 ## Report this to bug-coreutils@gnu.org ##
7011 ## ------------------------------------ ##
7012 _ASBOX
7013     ) |
7014       sed "s/^/$as_me: WARNING:     /" >&2
7015     ;;
7016 esac
7017 echo "$as_me:$LINENO: checking for $ac_header" >&5
7018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7020   echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022   eval "$as_ac_Header=\$ac_header_preproc"
7023 fi
7024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7026
7027 fi
7028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7029   cat >>confdefs.h <<_ACEOF
7030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7031 _ACEOF
7032
7033 fi
7034
7035 done
7036
7037
7038
7039
7040 for ac_header in limits.h
7041 do
7042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7044   echo "$as_me:$LINENO: checking for $ac_header" >&5
7045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7047   echo $ECHO_N "(cached) $ECHO_C" >&6
7048 fi
7049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7051 else
7052   # Is the header compilable?
7053 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7055 cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h.  */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h.  */
7061 $ac_includes_default
7062 #include <$ac_header>
7063 _ACEOF
7064 rm -f conftest.$ac_objext
7065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066   (eval $ac_compile) 2>conftest.er1
7067   ac_status=$?
7068   grep -v '^ *+' conftest.er1 >conftest.err
7069   rm -f conftest.er1
7070   cat conftest.err >&5
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } &&
7073          { ac_try='test -z "$ac_c_werror_flag"
7074                          || test ! -s conftest.err'
7075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076   (eval $ac_try) 2>&5
7077   ac_status=$?
7078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079   (exit $ac_status); }; } &&
7080          { ac_try='test -s conftest.$ac_objext'
7081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082   (eval $ac_try) 2>&5
7083   ac_status=$?
7084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085   (exit $ac_status); }; }; then
7086   ac_header_compiler=yes
7087 else
7088   echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7090
7091 ac_header_compiler=no
7092 fi
7093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7095 echo "${ECHO_T}$ac_header_compiler" >&6
7096
7097 # Is the header present?
7098 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h.  */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h.  */
7106 #include <$ac_header>
7107 _ACEOF
7108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7110   ac_status=$?
7111   grep -v '^ *+' conftest.er1 >conftest.err
7112   rm -f conftest.er1
7113   cat conftest.err >&5
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); } >/dev/null; then
7116   if test -s conftest.err; then
7117     ac_cpp_err=$ac_c_preproc_warn_flag
7118     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7119   else
7120     ac_cpp_err=
7121   fi
7122 else
7123   ac_cpp_err=yes
7124 fi
7125 if test -z "$ac_cpp_err"; then
7126   ac_header_preproc=yes
7127 else
7128   echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7130
7131   ac_header_preproc=no
7132 fi
7133 rm -f conftest.err conftest.$ac_ext
7134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7135 echo "${ECHO_T}$ac_header_preproc" >&6
7136
7137 # So?  What about this header?
7138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7139   yes:no: )
7140     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7144     ac_header_preproc=yes
7145     ;;
7146   no:yes:* )
7147     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7149     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7150 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7151     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7153     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7154 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7157     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7159     (
7160       cat <<\_ASBOX
7161 ## ------------------------------------ ##
7162 ## Report this to bug-coreutils@gnu.org ##
7163 ## ------------------------------------ ##
7164 _ASBOX
7165     ) |
7166       sed "s/^/$as_me: WARNING:     /" >&2
7167     ;;
7168 esac
7169 echo "$as_me:$LINENO: checking for $ac_header" >&5
7170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7172   echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174   eval "$as_ac_Header=\$ac_header_preproc"
7175 fi
7176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7178
7179 fi
7180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7181   cat >>confdefs.h <<_ACEOF
7182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7183 _ACEOF
7184
7185 fi
7186
7187 done
7188
7189
7190
7191
7192 for ac_header in memory.h
7193 do
7194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7196   echo "$as_me:$LINENO: checking for $ac_header" >&5
7197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7199   echo $ECHO_N "(cached) $ECHO_C" >&6
7200 fi
7201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7203 else
7204   # Is the header compilable?
7205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h.  */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h.  */
7213 $ac_includes_default
7214 #include <$ac_header>
7215 _ACEOF
7216 rm -f conftest.$ac_objext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7218   (eval $ac_compile) 2>conftest.er1
7219   ac_status=$?
7220   grep -v '^ *+' conftest.er1 >conftest.err
7221   rm -f conftest.er1
7222   cat conftest.err >&5
7223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224   (exit $ac_status); } &&
7225          { ac_try='test -z "$ac_c_werror_flag"
7226                          || test ! -s conftest.err'
7227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228   (eval $ac_try) 2>&5
7229   ac_status=$?
7230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231   (exit $ac_status); }; } &&
7232          { ac_try='test -s conftest.$ac_objext'
7233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234   (eval $ac_try) 2>&5
7235   ac_status=$?
7236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237   (exit $ac_status); }; }; then
7238   ac_header_compiler=yes
7239 else
7240   echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7242
7243 ac_header_compiler=no
7244 fi
7245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7247 echo "${ECHO_T}$ac_header_compiler" >&6
7248
7249 # Is the header present?
7250 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7252 cat >conftest.$ac_ext <<_ACEOF
7253 /* confdefs.h.  */
7254 _ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h.  */
7258 #include <$ac_header>
7259 _ACEOF
7260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7261   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7262   ac_status=$?
7263   grep -v '^ *+' conftest.er1 >conftest.err
7264   rm -f conftest.er1
7265   cat conftest.err >&5
7266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); } >/dev/null; then
7268   if test -s conftest.err; then
7269     ac_cpp_err=$ac_c_preproc_warn_flag
7270     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7271   else
7272     ac_cpp_err=
7273   fi
7274 else
7275   ac_cpp_err=yes
7276 fi
7277 if test -z "$ac_cpp_err"; then
7278   ac_header_preproc=yes
7279 else
7280   echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7282
7283   ac_header_preproc=no
7284 fi
7285 rm -f conftest.err conftest.$ac_ext
7286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7287 echo "${ECHO_T}$ac_header_preproc" >&6
7288
7289 # So?  What about this header?
7290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7291   yes:no: )
7292     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7296     ac_header_preproc=yes
7297     ;;
7298   no:yes:* )
7299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7301     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7302 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7303     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7305     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7306 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7309     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7311     (
7312       cat <<\_ASBOX
7313 ## ------------------------------------ ##
7314 ## Report this to bug-coreutils@gnu.org ##
7315 ## ------------------------------------ ##
7316 _ASBOX
7317     ) |
7318       sed "s/^/$as_me: WARNING:     /" >&2
7319     ;;
7320 esac
7321 echo "$as_me:$LINENO: checking for $ac_header" >&5
7322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7324   echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326   eval "$as_ac_Header=\$ac_header_preproc"
7327 fi
7328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7330
7331 fi
7332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7333   cat >>confdefs.h <<_ACEOF
7334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7335 _ACEOF
7336
7337 fi
7338
7339 done
7340
7341
7342
7343
7344 for ac_header in mntent.h
7345 do
7346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7348   echo "$as_me:$LINENO: checking for $ac_header" >&5
7349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7351   echo $ECHO_N "(cached) $ECHO_C" >&6
7352 fi
7353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7355 else
7356   # Is the header compilable?
7357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7359 cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h.  */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h.  */
7365 $ac_includes_default
7366 #include <$ac_header>
7367 _ACEOF
7368 rm -f conftest.$ac_objext
7369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7370   (eval $ac_compile) 2>conftest.er1
7371   ac_status=$?
7372   grep -v '^ *+' conftest.er1 >conftest.err
7373   rm -f conftest.er1
7374   cat conftest.err >&5
7375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376   (exit $ac_status); } &&
7377          { ac_try='test -z "$ac_c_werror_flag"
7378                          || test ! -s conftest.err'
7379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380   (eval $ac_try) 2>&5
7381   ac_status=$?
7382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383   (exit $ac_status); }; } &&
7384          { ac_try='test -s conftest.$ac_objext'
7385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386   (eval $ac_try) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); }; }; then
7390   ac_header_compiler=yes
7391 else
7392   echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7394
7395 ac_header_compiler=no
7396 fi
7397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7399 echo "${ECHO_T}$ac_header_compiler" >&6
7400
7401 # Is the header present?
7402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7404 cat >conftest.$ac_ext <<_ACEOF
7405 /* confdefs.h.  */
7406 _ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h.  */
7410 #include <$ac_header>
7411 _ACEOF
7412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7414   ac_status=$?
7415   grep -v '^ *+' conftest.er1 >conftest.err
7416   rm -f conftest.er1
7417   cat conftest.err >&5
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); } >/dev/null; then
7420   if test -s conftest.err; then
7421     ac_cpp_err=$ac_c_preproc_warn_flag
7422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7423   else
7424     ac_cpp_err=
7425   fi
7426 else
7427   ac_cpp_err=yes
7428 fi
7429 if test -z "$ac_cpp_err"; then
7430   ac_header_preproc=yes
7431 else
7432   echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7434
7435   ac_header_preproc=no
7436 fi
7437 rm -f conftest.err conftest.$ac_ext
7438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7439 echo "${ECHO_T}$ac_header_preproc" >&6
7440
7441 # So?  What about this header?
7442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7443   yes:no: )
7444     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7448     ac_header_preproc=yes
7449     ;;
7450   no:yes:* )
7451     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7453     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7454 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7455     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7457     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7458 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7461     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7463     (
7464       cat <<\_ASBOX
7465 ## ------------------------------------ ##
7466 ## Report this to bug-coreutils@gnu.org ##
7467 ## ------------------------------------ ##
7468 _ASBOX
7469     ) |
7470       sed "s/^/$as_me: WARNING:     /" >&2
7471     ;;
7472 esac
7473 echo "$as_me:$LINENO: checking for $ac_header" >&5
7474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7476   echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478   eval "$as_ac_Header=\$ac_header_preproc"
7479 fi
7480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7482
7483 fi
7484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7485   cat >>confdefs.h <<_ACEOF
7486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7487 _ACEOF
7488
7489 fi
7490
7491 done
7492
7493
7494
7495
7496 for ac_header in mnttab.h
7497 do
7498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7500   echo "$as_me:$LINENO: checking for $ac_header" >&5
7501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7503   echo $ECHO_N "(cached) $ECHO_C" >&6
7504 fi
7505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7507 else
7508   # Is the header compilable?
7509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7511 cat >conftest.$ac_ext <<_ACEOF
7512 /* confdefs.h.  */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h.  */
7517 $ac_includes_default
7518 #include <$ac_header>
7519 _ACEOF
7520 rm -f conftest.$ac_objext
7521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7522   (eval $ac_compile) 2>conftest.er1
7523   ac_status=$?
7524   grep -v '^ *+' conftest.er1 >conftest.err
7525   rm -f conftest.er1
7526   cat conftest.err >&5
7527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528   (exit $ac_status); } &&
7529          { ac_try='test -z "$ac_c_werror_flag"
7530                          || test ! -s conftest.err'
7531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532   (eval $ac_try) 2>&5
7533   ac_status=$?
7534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535   (exit $ac_status); }; } &&
7536          { ac_try='test -s conftest.$ac_objext'
7537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538   (eval $ac_try) 2>&5
7539   ac_status=$?
7540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541   (exit $ac_status); }; }; then
7542   ac_header_compiler=yes
7543 else
7544   echo "$as_me: failed program was:" >&5
7545 sed 's/^/| /' conftest.$ac_ext >&5
7546
7547 ac_header_compiler=no
7548 fi
7549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7551 echo "${ECHO_T}$ac_header_compiler" >&6
7552
7553 # Is the header present?
7554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7556 cat >conftest.$ac_ext <<_ACEOF
7557 /* confdefs.h.  */
7558 _ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h.  */
7562 #include <$ac_header>
7563 _ACEOF
7564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7565   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7566   ac_status=$?
7567   grep -v '^ *+' conftest.er1 >conftest.err
7568   rm -f conftest.er1
7569   cat conftest.err >&5
7570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571   (exit $ac_status); } >/dev/null; then
7572   if test -s conftest.err; then
7573     ac_cpp_err=$ac_c_preproc_warn_flag
7574     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7575   else
7576     ac_cpp_err=
7577   fi
7578 else
7579   ac_cpp_err=yes
7580 fi
7581 if test -z "$ac_cpp_err"; then
7582   ac_header_preproc=yes
7583 else
7584   echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7586
7587   ac_header_preproc=no
7588 fi
7589 rm -f conftest.err conftest.$ac_ext
7590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7591 echo "${ECHO_T}$ac_header_preproc" >&6
7592
7593 # So?  What about this header?
7594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7595   yes:no: )
7596     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7600     ac_header_preproc=yes
7601     ;;
7602   no:yes:* )
7603     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7605     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7606 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7607     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7609     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7610 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7613     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7615     (
7616       cat <<\_ASBOX
7617 ## ------------------------------------ ##
7618 ## Report this to bug-coreutils@gnu.org ##
7619 ## ------------------------------------ ##
7620 _ASBOX
7621     ) |
7622       sed "s/^/$as_me: WARNING:     /" >&2
7623     ;;
7624 esac
7625 echo "$as_me:$LINENO: checking for $ac_header" >&5
7626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7628   echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630   eval "$as_ac_Header=\$ac_header_preproc"
7631 fi
7632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7634
7635 fi
7636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7637   cat >>confdefs.h <<_ACEOF
7638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7639 _ACEOF
7640
7641 fi
7642
7643 done
7644
7645
7646
7647
7648 for ac_header in netdb.h
7649 do
7650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7652   echo "$as_me:$LINENO: checking for $ac_header" >&5
7653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7655   echo $ECHO_N "(cached) $ECHO_C" >&6
7656 fi
7657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7659 else
7660   # Is the header compilable?
7661 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7663 cat >conftest.$ac_ext <<_ACEOF
7664 /* confdefs.h.  */
7665 _ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h.  */
7669 $ac_includes_default
7670 #include <$ac_header>
7671 _ACEOF
7672 rm -f conftest.$ac_objext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7674   (eval $ac_compile) 2>conftest.er1
7675   ac_status=$?
7676   grep -v '^ *+' conftest.er1 >conftest.err
7677   rm -f conftest.er1
7678   cat conftest.err >&5
7679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680   (exit $ac_status); } &&
7681          { ac_try='test -z "$ac_c_werror_flag"
7682                          || test ! -s conftest.err'
7683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684   (eval $ac_try) 2>&5
7685   ac_status=$?
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); }; } &&
7688          { ac_try='test -s conftest.$ac_objext'
7689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690   (eval $ac_try) 2>&5
7691   ac_status=$?
7692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693   (exit $ac_status); }; }; then
7694   ac_header_compiler=yes
7695 else
7696   echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7698
7699 ac_header_compiler=no
7700 fi
7701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7703 echo "${ECHO_T}$ac_header_compiler" >&6
7704
7705 # Is the header present?
7706 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7708 cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h.  */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h.  */
7714 #include <$ac_header>
7715 _ACEOF
7716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7717   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7718   ac_status=$?
7719   grep -v '^ *+' conftest.er1 >conftest.err
7720   rm -f conftest.er1
7721   cat conftest.err >&5
7722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723   (exit $ac_status); } >/dev/null; then
7724   if test -s conftest.err; then
7725     ac_cpp_err=$ac_c_preproc_warn_flag
7726     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7727   else
7728     ac_cpp_err=
7729   fi
7730 else
7731   ac_cpp_err=yes
7732 fi
7733 if test -z "$ac_cpp_err"; then
7734   ac_header_preproc=yes
7735 else
7736   echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7738
7739   ac_header_preproc=no
7740 fi
7741 rm -f conftest.err conftest.$ac_ext
7742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7743 echo "${ECHO_T}$ac_header_preproc" >&6
7744
7745 # So?  What about this header?
7746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7747   yes:no: )
7748     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7752     ac_header_preproc=yes
7753     ;;
7754   no:yes:* )
7755     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7757     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7758 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7759     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7761     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7762 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7765     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7767     (
7768       cat <<\_ASBOX
7769 ## ------------------------------------ ##
7770 ## Report this to bug-coreutils@gnu.org ##
7771 ## ------------------------------------ ##
7772 _ASBOX
7773     ) |
7774       sed "s/^/$as_me: WARNING:     /" >&2
7775     ;;
7776 esac
7777 echo "$as_me:$LINENO: checking for $ac_header" >&5
7778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7780   echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782   eval "$as_ac_Header=\$ac_header_preproc"
7783 fi
7784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7786
7787 fi
7788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7789   cat >>confdefs.h <<_ACEOF
7790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7791 _ACEOF
7792
7793 fi
7794
7795 done
7796
7797
7798
7799
7800 for ac_header in paths.h
7801 do
7802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7804   echo "$as_me:$LINENO: checking for $ac_header" >&5
7805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807   echo $ECHO_N "(cached) $ECHO_C" >&6
7808 fi
7809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7811 else
7812   # Is the header compilable?
7813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h.  */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h.  */
7821 $ac_includes_default
7822 #include <$ac_header>
7823 _ACEOF
7824 rm -f conftest.$ac_objext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826   (eval $ac_compile) 2>conftest.er1
7827   ac_status=$?
7828   grep -v '^ *+' conftest.er1 >conftest.err
7829   rm -f conftest.er1
7830   cat conftest.err >&5
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); } &&
7833          { ac_try='test -z "$ac_c_werror_flag"
7834                          || test ! -s conftest.err'
7835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836   (eval $ac_try) 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); }; } &&
7840          { ac_try='test -s conftest.$ac_objext'
7841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842   (eval $ac_try) 2>&5
7843   ac_status=$?
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); }; }; then
7846   ac_header_compiler=yes
7847 else
7848   echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7850
7851 ac_header_compiler=no
7852 fi
7853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7855 echo "${ECHO_T}$ac_header_compiler" >&6
7856
7857 # Is the header present?
7858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7860 cat >conftest.$ac_ext <<_ACEOF
7861 /* confdefs.h.  */
7862 _ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h.  */
7866 #include <$ac_header>
7867 _ACEOF
7868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7869   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7870   ac_status=$?
7871   grep -v '^ *+' conftest.er1 >conftest.err
7872   rm -f conftest.er1
7873   cat conftest.err >&5
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); } >/dev/null; then
7876   if test -s conftest.err; then
7877     ac_cpp_err=$ac_c_preproc_warn_flag
7878     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7879   else
7880     ac_cpp_err=
7881   fi
7882 else
7883   ac_cpp_err=yes
7884 fi
7885 if test -z "$ac_cpp_err"; then
7886   ac_header_preproc=yes
7887 else
7888   echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7890
7891   ac_header_preproc=no
7892 fi
7893 rm -f conftest.err conftest.$ac_ext
7894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7895 echo "${ECHO_T}$ac_header_preproc" >&6
7896
7897 # So?  What about this header?
7898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7899   yes:no: )
7900     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7904     ac_header_preproc=yes
7905     ;;
7906   no:yes:* )
7907     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7909     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7910 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7911     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7913     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7914 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7917     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7919     (
7920       cat <<\_ASBOX
7921 ## ------------------------------------ ##
7922 ## Report this to bug-coreutils@gnu.org ##
7923 ## ------------------------------------ ##
7924 _ASBOX
7925     ) |
7926       sed "s/^/$as_me: WARNING:     /" >&2
7927     ;;
7928 esac
7929 echo "$as_me:$LINENO: checking for $ac_header" >&5
7930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7932   echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934   eval "$as_ac_Header=\$ac_header_preproc"
7935 fi
7936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7938
7939 fi
7940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7941   cat >>confdefs.h <<_ACEOF
7942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7943 _ACEOF
7944
7945 fi
7946
7947 done
7948
7949
7950
7951
7952 for ac_header in stdlib.h
7953 do
7954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7956   echo "$as_me:$LINENO: checking for $ac_header" >&5
7957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7959   echo $ECHO_N "(cached) $ECHO_C" >&6
7960 fi
7961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7963 else
7964   # Is the header compilable?
7965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7967 cat >conftest.$ac_ext <<_ACEOF
7968 /* confdefs.h.  */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h.  */
7973 $ac_includes_default
7974 #include <$ac_header>
7975 _ACEOF
7976 rm -f conftest.$ac_objext
7977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7978   (eval $ac_compile) 2>conftest.er1
7979   ac_status=$?
7980   grep -v '^ *+' conftest.er1 >conftest.err
7981   rm -f conftest.er1
7982   cat conftest.err >&5
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); } &&
7985          { ac_try='test -z "$ac_c_werror_flag"
7986                          || test ! -s conftest.err'
7987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988   (eval $ac_try) 2>&5
7989   ac_status=$?
7990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991   (exit $ac_status); }; } &&
7992          { ac_try='test -s conftest.$ac_objext'
7993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994   (eval $ac_try) 2>&5
7995   ac_status=$?
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); }; }; then
7998   ac_header_compiler=yes
7999 else
8000   echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8002
8003 ac_header_compiler=no
8004 fi
8005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8007 echo "${ECHO_T}$ac_header_compiler" >&6
8008
8009 # Is the header present?
8010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8012 cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h.  */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h.  */
8018 #include <$ac_header>
8019 _ACEOF
8020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8021   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8022   ac_status=$?
8023   grep -v '^ *+' conftest.er1 >conftest.err
8024   rm -f conftest.er1
8025   cat conftest.err >&5
8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   (exit $ac_status); } >/dev/null; then
8028   if test -s conftest.err; then
8029     ac_cpp_err=$ac_c_preproc_warn_flag
8030     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8031   else
8032     ac_cpp_err=
8033   fi
8034 else
8035   ac_cpp_err=yes
8036 fi
8037 if test -z "$ac_cpp_err"; then
8038   ac_header_preproc=yes
8039 else
8040   echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8042
8043   ac_header_preproc=no
8044 fi
8045 rm -f conftest.err conftest.$ac_ext
8046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8047 echo "${ECHO_T}$ac_header_preproc" >&6
8048
8049 # So?  What about this header?
8050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8051   yes:no: )
8052     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8056     ac_header_preproc=yes
8057     ;;
8058   no:yes:* )
8059     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8061     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8062 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8063     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8065     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8066 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8069     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8071     (
8072       cat <<\_ASBOX
8073 ## ------------------------------------ ##
8074 ## Report this to bug-coreutils@gnu.org ##
8075 ## ------------------------------------ ##
8076 _ASBOX
8077     ) |
8078       sed "s/^/$as_me: WARNING:     /" >&2
8079     ;;
8080 esac
8081 echo "$as_me:$LINENO: checking for $ac_header" >&5
8082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8084   echo $ECHO_N "(cached) $ECHO_C" >&6
8085 else
8086   eval "$as_ac_Header=\$ac_header_preproc"
8087 fi
8088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8090
8091 fi
8092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8093   cat >>confdefs.h <<_ACEOF
8094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8095 _ACEOF
8096
8097 fi
8098
8099 done
8100
8101
8102
8103
8104 for ac_header in stddef.h
8105 do
8106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8108   echo "$as_me:$LINENO: checking for $ac_header" >&5
8109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8111   echo $ECHO_N "(cached) $ECHO_C" >&6
8112 fi
8113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8115 else
8116   # Is the header compilable?
8117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h.  */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h.  */
8125 $ac_includes_default
8126 #include <$ac_header>
8127 _ACEOF
8128 rm -f conftest.$ac_objext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130   (eval $ac_compile) 2>conftest.er1
8131   ac_status=$?
8132   grep -v '^ *+' conftest.er1 >conftest.err
8133   rm -f conftest.er1
8134   cat conftest.err >&5
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); } &&
8137          { ac_try='test -z "$ac_c_werror_flag"
8138                          || test ! -s conftest.err'
8139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140   (eval $ac_try) 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); }; } &&
8144          { ac_try='test -s conftest.$ac_objext'
8145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146   (eval $ac_try) 2>&5
8147   ac_status=$?
8148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149   (exit $ac_status); }; }; then
8150   ac_header_compiler=yes
8151 else
8152   echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8154
8155 ac_header_compiler=no
8156 fi
8157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8159 echo "${ECHO_T}$ac_header_compiler" >&6
8160
8161 # Is the header present?
8162 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8164 cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h.  */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h.  */
8170 #include <$ac_header>
8171 _ACEOF
8172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8173   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8174   ac_status=$?
8175   grep -v '^ *+' conftest.er1 >conftest.err
8176   rm -f conftest.er1
8177   cat conftest.err >&5
8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); } >/dev/null; then
8180   if test -s conftest.err; then
8181     ac_cpp_err=$ac_c_preproc_warn_flag
8182     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8183   else
8184     ac_cpp_err=
8185   fi
8186 else
8187   ac_cpp_err=yes
8188 fi
8189 if test -z "$ac_cpp_err"; then
8190   ac_header_preproc=yes
8191 else
8192   echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195   ac_header_preproc=no
8196 fi
8197 rm -f conftest.err conftest.$ac_ext
8198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8199 echo "${ECHO_T}$ac_header_preproc" >&6
8200
8201 # So?  What about this header?
8202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8203   yes:no: )
8204     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8208     ac_header_preproc=yes
8209     ;;
8210   no:yes:* )
8211     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8213     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8214 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8215     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8217     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8218 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8221     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8223     (
8224       cat <<\_ASBOX
8225 ## ------------------------------------ ##
8226 ## Report this to bug-coreutils@gnu.org ##
8227 ## ------------------------------------ ##
8228 _ASBOX
8229     ) |
8230       sed "s/^/$as_me: WARNING:     /" >&2
8231     ;;
8232 esac
8233 echo "$as_me:$LINENO: checking for $ac_header" >&5
8234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8236   echo $ECHO_N "(cached) $ECHO_C" >&6
8237 else
8238   eval "$as_ac_Header=\$ac_header_preproc"
8239 fi
8240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8242
8243 fi
8244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8245   cat >>confdefs.h <<_ACEOF
8246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8247 _ACEOF
8248
8249 fi
8250
8251 done
8252
8253
8254
8255
8256 for ac_header in stdint.h
8257 do
8258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8260   echo "$as_me:$LINENO: checking for $ac_header" >&5
8261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 fi
8265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8267 else
8268   # Is the header compilable?
8269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h.  */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h.  */
8277 $ac_includes_default
8278 #include <$ac_header>
8279 _ACEOF
8280 rm -f conftest.$ac_objext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8282   (eval $ac_compile) 2>conftest.er1
8283   ac_status=$?
8284   grep -v '^ *+' conftest.er1 >conftest.err
8285   rm -f conftest.er1
8286   cat conftest.err >&5
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } &&
8289          { ac_try='test -z "$ac_c_werror_flag"
8290                          || test ! -s conftest.err'
8291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292   (eval $ac_try) 2>&5
8293   ac_status=$?
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); }; } &&
8296          { ac_try='test -s conftest.$ac_objext'
8297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298   (eval $ac_try) 2>&5
8299   ac_status=$?
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); }; }; then
8302   ac_header_compiler=yes
8303 else
8304   echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8306
8307 ac_header_compiler=no
8308 fi
8309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8311 echo "${ECHO_T}$ac_header_compiler" >&6
8312
8313 # Is the header present?
8314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8316 cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h.  */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h.  */
8322 #include <$ac_header>
8323 _ACEOF
8324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8325   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8326   ac_status=$?
8327   grep -v '^ *+' conftest.er1 >conftest.err
8328   rm -f conftest.er1
8329   cat conftest.err >&5
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); } >/dev/null; then
8332   if test -s conftest.err; then
8333     ac_cpp_err=$ac_c_preproc_warn_flag
8334     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8335   else
8336     ac_cpp_err=
8337   fi
8338 else
8339   ac_cpp_err=yes
8340 fi
8341 if test -z "$ac_cpp_err"; then
8342   ac_header_preproc=yes
8343 else
8344   echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8346
8347   ac_header_preproc=no
8348 fi
8349 rm -f conftest.err conftest.$ac_ext
8350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8351 echo "${ECHO_T}$ac_header_preproc" >&6
8352
8353 # So?  What about this header?
8354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8355   yes:no: )
8356     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8360     ac_header_preproc=yes
8361     ;;
8362   no:yes:* )
8363     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8365     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8366 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8367     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8369     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8370 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8373     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8375     (
8376       cat <<\_ASBOX
8377 ## ------------------------------------ ##
8378 ## Report this to bug-coreutils@gnu.org ##
8379 ## ------------------------------------ ##
8380 _ASBOX
8381     ) |
8382       sed "s/^/$as_me: WARNING:     /" >&2
8383     ;;
8384 esac
8385 echo "$as_me:$LINENO: checking for $ac_header" >&5
8386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8388   echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390   eval "$as_ac_Header=\$ac_header_preproc"
8391 fi
8392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8394
8395 fi
8396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8397   cat >>confdefs.h <<_ACEOF
8398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8399 _ACEOF
8400
8401 fi
8402
8403 done
8404
8405
8406
8407
8408 for ac_header in string.h
8409 do
8410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8412   echo "$as_me:$LINENO: checking for $ac_header" >&5
8413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8415   echo $ECHO_N "(cached) $ECHO_C" >&6
8416 fi
8417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8419 else
8420   # Is the header compilable?
8421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h.  */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h.  */
8429 $ac_includes_default
8430 #include <$ac_header>
8431 _ACEOF
8432 rm -f conftest.$ac_objext
8433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8434   (eval $ac_compile) 2>conftest.er1
8435   ac_status=$?
8436   grep -v '^ *+' conftest.er1 >conftest.err
8437   rm -f conftest.er1
8438   cat conftest.err >&5
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); } &&
8441          { ac_try='test -z "$ac_c_werror_flag"
8442                          || test ! -s conftest.err'
8443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444   (eval $ac_try) 2>&5
8445   ac_status=$?
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); }; } &&
8448          { ac_try='test -s conftest.$ac_objext'
8449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450   (eval $ac_try) 2>&5
8451   ac_status=$?
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); }; }; then
8454   ac_header_compiler=yes
8455 else
8456   echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8458
8459 ac_header_compiler=no
8460 fi
8461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8463 echo "${ECHO_T}$ac_header_compiler" >&6
8464
8465 # Is the header present?
8466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8468 cat >conftest.$ac_ext <<_ACEOF
8469 /* confdefs.h.  */
8470 _ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h.  */
8474 #include <$ac_header>
8475 _ACEOF
8476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8477   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8478   ac_status=$?
8479   grep -v '^ *+' conftest.er1 >conftest.err
8480   rm -f conftest.er1
8481   cat conftest.err >&5
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); } >/dev/null; then
8484   if test -s conftest.err; then
8485     ac_cpp_err=$ac_c_preproc_warn_flag
8486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8487   else
8488     ac_cpp_err=
8489   fi
8490 else
8491   ac_cpp_err=yes
8492 fi
8493 if test -z "$ac_cpp_err"; then
8494   ac_header_preproc=yes
8495 else
8496   echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8498
8499   ac_header_preproc=no
8500 fi
8501 rm -f conftest.err conftest.$ac_ext
8502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8503 echo "${ECHO_T}$ac_header_preproc" >&6
8504
8505 # So?  What about this header?
8506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8507   yes:no: )
8508     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8512     ac_header_preproc=yes
8513     ;;
8514   no:yes:* )
8515     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8517     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8518 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8519     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8521     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8522 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8525     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8527     (
8528       cat <<\_ASBOX
8529 ## ------------------------------------ ##
8530 ## Report this to bug-coreutils@gnu.org ##
8531 ## ------------------------------------ ##
8532 _ASBOX
8533     ) |
8534       sed "s/^/$as_me: WARNING:     /" >&2
8535     ;;
8536 esac
8537 echo "$as_me:$LINENO: checking for $ac_header" >&5
8538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8540   echo $ECHO_N "(cached) $ECHO_C" >&6
8541 else
8542   eval "$as_ac_Header=\$ac_header_preproc"
8543 fi
8544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8546
8547 fi
8548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8549   cat >>confdefs.h <<_ACEOF
8550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8551 _ACEOF
8552
8553 fi
8554
8555 done
8556
8557
8558
8559
8560 for ac_header in sys/filsys.h
8561 do
8562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8564   echo "$as_me:$LINENO: checking for $ac_header" >&5
8565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8567   echo $ECHO_N "(cached) $ECHO_C" >&6
8568 fi
8569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8571 else
8572   # Is the header compilable?
8573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8575 cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h.  */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h.  */
8581 $ac_includes_default
8582 #include <$ac_header>
8583 _ACEOF
8584 rm -f conftest.$ac_objext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8586   (eval $ac_compile) 2>conftest.er1
8587   ac_status=$?
8588   grep -v '^ *+' conftest.er1 >conftest.err
8589   rm -f conftest.er1
8590   cat conftest.err >&5
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } &&
8593          { ac_try='test -z "$ac_c_werror_flag"
8594                          || test ! -s conftest.err'
8595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596   (eval $ac_try) 2>&5
8597   ac_status=$?
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); }; } &&
8600          { ac_try='test -s conftest.$ac_objext'
8601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602   (eval $ac_try) 2>&5
8603   ac_status=$?
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); }; }; then
8606   ac_header_compiler=yes
8607 else
8608   echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8610
8611 ac_header_compiler=no
8612 fi
8613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8615 echo "${ECHO_T}$ac_header_compiler" >&6
8616
8617 # Is the header present?
8618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8620 cat >conftest.$ac_ext <<_ACEOF
8621 /* confdefs.h.  */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h.  */
8626 #include <$ac_header>
8627 _ACEOF
8628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8629   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8630   ac_status=$?
8631   grep -v '^ *+' conftest.er1 >conftest.err
8632   rm -f conftest.er1
8633   cat conftest.err >&5
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); } >/dev/null; then
8636   if test -s conftest.err; then
8637     ac_cpp_err=$ac_c_preproc_warn_flag
8638     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8639   else
8640     ac_cpp_err=
8641   fi
8642 else
8643   ac_cpp_err=yes
8644 fi
8645 if test -z "$ac_cpp_err"; then
8646   ac_header_preproc=yes
8647 else
8648   echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8650
8651   ac_header_preproc=no
8652 fi
8653 rm -f conftest.err conftest.$ac_ext
8654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8655 echo "${ECHO_T}$ac_header_preproc" >&6
8656
8657 # So?  What about this header?
8658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8659   yes:no: )
8660     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8662     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8664     ac_header_preproc=yes
8665     ;;
8666   no:yes:* )
8667     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8669     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8670 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8671     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8673     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8674 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8677     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8679     (
8680       cat <<\_ASBOX
8681 ## ------------------------------------ ##
8682 ## Report this to bug-coreutils@gnu.org ##
8683 ## ------------------------------------ ##
8684 _ASBOX
8685     ) |
8686       sed "s/^/$as_me: WARNING:     /" >&2
8687     ;;
8688 esac
8689 echo "$as_me:$LINENO: checking for $ac_header" >&5
8690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8692   echo $ECHO_N "(cached) $ECHO_C" >&6
8693 else
8694   eval "$as_ac_Header=\$ac_header_preproc"
8695 fi
8696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8698
8699 fi
8700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8701   cat >>confdefs.h <<_ACEOF
8702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8703 _ACEOF
8704
8705 fi
8706
8707 done
8708
8709
8710
8711
8712 for ac_header in sys/fs/s5param.h
8713 do
8714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8716   echo "$as_me:$LINENO: checking for $ac_header" >&5
8717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8719   echo $ECHO_N "(cached) $ECHO_C" >&6
8720 fi
8721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8723 else
8724   # Is the header compilable?
8725 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8727 cat >conftest.$ac_ext <<_ACEOF
8728 /* confdefs.h.  */
8729 _ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h.  */
8733 $ac_includes_default
8734 #include <$ac_header>
8735 _ACEOF
8736 rm -f conftest.$ac_objext
8737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8738   (eval $ac_compile) 2>conftest.er1
8739   ac_status=$?
8740   grep -v '^ *+' conftest.er1 >conftest.err
8741   rm -f conftest.er1
8742   cat conftest.err >&5
8743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744   (exit $ac_status); } &&
8745          { ac_try='test -z "$ac_c_werror_flag"
8746                          || test ! -s conftest.err'
8747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748   (eval $ac_try) 2>&5
8749   ac_status=$?
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); }; } &&
8752          { ac_try='test -s conftest.$ac_objext'
8753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754   (eval $ac_try) 2>&5
8755   ac_status=$?
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); }; }; then
8758   ac_header_compiler=yes
8759 else
8760   echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8762
8763 ac_header_compiler=no
8764 fi
8765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8767 echo "${ECHO_T}$ac_header_compiler" >&6
8768
8769 # Is the header present?
8770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8772 cat >conftest.$ac_ext <<_ACEOF
8773 /* confdefs.h.  */
8774 _ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h.  */
8778 #include <$ac_header>
8779 _ACEOF
8780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8781   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8782   ac_status=$?
8783   grep -v '^ *+' conftest.er1 >conftest.err
8784   rm -f conftest.er1
8785   cat conftest.err >&5
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); } >/dev/null; then
8788   if test -s conftest.err; then
8789     ac_cpp_err=$ac_c_preproc_warn_flag
8790     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8791   else
8792     ac_cpp_err=
8793   fi
8794 else
8795   ac_cpp_err=yes
8796 fi
8797 if test -z "$ac_cpp_err"; then
8798   ac_header_preproc=yes
8799 else
8800   echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8802
8803   ac_header_preproc=no
8804 fi
8805 rm -f conftest.err conftest.$ac_ext
8806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8807 echo "${ECHO_T}$ac_header_preproc" >&6
8808
8809 # So?  What about this header?
8810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8811   yes:no: )
8812     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8816     ac_header_preproc=yes
8817     ;;
8818   no:yes:* )
8819     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8821     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8822 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8823     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8825     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8826 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8829     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8831     (
8832       cat <<\_ASBOX
8833 ## ------------------------------------ ##
8834 ## Report this to bug-coreutils@gnu.org ##
8835 ## ------------------------------------ ##
8836 _ASBOX
8837     ) |
8838       sed "s/^/$as_me: WARNING:     /" >&2
8839     ;;
8840 esac
8841 echo "$as_me:$LINENO: checking for $ac_header" >&5
8842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8844   echo $ECHO_N "(cached) $ECHO_C" >&6
8845 else
8846   eval "$as_ac_Header=\$ac_header_preproc"
8847 fi
8848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8850
8851 fi
8852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8853   cat >>confdefs.h <<_ACEOF
8854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8855 _ACEOF
8856
8857 fi
8858
8859 done
8860
8861
8862
8863
8864 for ac_header in sys/fs_types.h
8865 do
8866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8868   echo "$as_me:$LINENO: checking for $ac_header" >&5
8869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8871   echo $ECHO_N "(cached) $ECHO_C" >&6
8872 fi
8873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8875 else
8876   # Is the header compilable?
8877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8879 cat >conftest.$ac_ext <<_ACEOF
8880 /* confdefs.h.  */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h.  */
8885 $ac_includes_default
8886 #include <$ac_header>
8887 _ACEOF
8888 rm -f conftest.$ac_objext
8889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8890   (eval $ac_compile) 2>conftest.er1
8891   ac_status=$?
8892   grep -v '^ *+' conftest.er1 >conftest.err
8893   rm -f conftest.er1
8894   cat conftest.err >&5
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); } &&
8897          { ac_try='test -z "$ac_c_werror_flag"
8898                          || test ! -s conftest.err'
8899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900   (eval $ac_try) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); }; } &&
8904          { ac_try='test -s conftest.$ac_objext'
8905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906   (eval $ac_try) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); }; }; then
8910   ac_header_compiler=yes
8911 else
8912   echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8914
8915 ac_header_compiler=no
8916 fi
8917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8919 echo "${ECHO_T}$ac_header_compiler" >&6
8920
8921 # Is the header present?
8922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8924 cat >conftest.$ac_ext <<_ACEOF
8925 /* confdefs.h.  */
8926 _ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h.  */
8930 #include <$ac_header>
8931 _ACEOF
8932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8933   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8934   ac_status=$?
8935   grep -v '^ *+' conftest.er1 >conftest.err
8936   rm -f conftest.er1
8937   cat conftest.err >&5
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); } >/dev/null; then
8940   if test -s conftest.err; then
8941     ac_cpp_err=$ac_c_preproc_warn_flag
8942     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8943   else
8944     ac_cpp_err=
8945   fi
8946 else
8947   ac_cpp_err=yes
8948 fi
8949 if test -z "$ac_cpp_err"; then
8950   ac_header_preproc=yes
8951 else
8952   echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8954
8955   ac_header_preproc=no
8956 fi
8957 rm -f conftest.err conftest.$ac_ext
8958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8959 echo "${ECHO_T}$ac_header_preproc" >&6
8960
8961 # So?  What about this header?
8962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8963   yes:no: )
8964     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8968     ac_header_preproc=yes
8969     ;;
8970   no:yes:* )
8971     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8973     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8974 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8975     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8977     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8978 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8981     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8983     (
8984       cat <<\_ASBOX
8985 ## ------------------------------------ ##
8986 ## Report this to bug-coreutils@gnu.org ##
8987 ## ------------------------------------ ##
8988 _ASBOX
8989     ) |
8990       sed "s/^/$as_me: WARNING:     /" >&2
8991     ;;
8992 esac
8993 echo "$as_me:$LINENO: checking for $ac_header" >&5
8994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8996   echo $ECHO_N "(cached) $ECHO_C" >&6
8997 else
8998   eval "$as_ac_Header=\$ac_header_preproc"
8999 fi
9000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9002
9003 fi
9004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9005   cat >>confdefs.h <<_ACEOF
9006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9007 _ACEOF
9008
9009 fi
9010
9011 done
9012
9013
9014
9015
9016 for ac_header in sys/fstyp.h
9017 do
9018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9020   echo "$as_me:$LINENO: checking for $ac_header" >&5
9021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9023   echo $ECHO_N "(cached) $ECHO_C" >&6
9024 fi
9025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9027 else
9028   # Is the header compilable?
9029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9031 cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h.  */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h.  */
9037 $ac_includes_default
9038 #include <$ac_header>
9039 _ACEOF
9040 rm -f conftest.$ac_objext
9041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9042   (eval $ac_compile) 2>conftest.er1
9043   ac_status=$?
9044   grep -v '^ *+' conftest.er1 >conftest.err
9045   rm -f conftest.er1
9046   cat conftest.err >&5
9047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048   (exit $ac_status); } &&
9049          { ac_try='test -z "$ac_c_werror_flag"
9050                          || test ! -s conftest.err'
9051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052   (eval $ac_try) 2>&5
9053   ac_status=$?
9054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055   (exit $ac_status); }; } &&
9056          { ac_try='test -s conftest.$ac_objext'
9057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058   (eval $ac_try) 2>&5
9059   ac_status=$?
9060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061   (exit $ac_status); }; }; then
9062   ac_header_compiler=yes
9063 else
9064   echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9066
9067 ac_header_compiler=no
9068 fi
9069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9071 echo "${ECHO_T}$ac_header_compiler" >&6
9072
9073 # Is the header present?
9074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9076 cat >conftest.$ac_ext <<_ACEOF
9077 /* confdefs.h.  */
9078 _ACEOF
9079 cat confdefs.h >>conftest.$ac_ext
9080 cat >>conftest.$ac_ext <<_ACEOF
9081 /* end confdefs.h.  */
9082 #include <$ac_header>
9083 _ACEOF
9084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9085   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9086   ac_status=$?
9087   grep -v '^ *+' conftest.er1 >conftest.err
9088   rm -f conftest.er1
9089   cat conftest.err >&5
9090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091   (exit $ac_status); } >/dev/null; then
9092   if test -s conftest.err; then
9093     ac_cpp_err=$ac_c_preproc_warn_flag
9094     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9095   else
9096     ac_cpp_err=
9097   fi
9098 else
9099   ac_cpp_err=yes
9100 fi
9101 if test -z "$ac_cpp_err"; then
9102   ac_header_preproc=yes
9103 else
9104   echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9106
9107   ac_header_preproc=no
9108 fi
9109 rm -f conftest.err conftest.$ac_ext
9110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9111 echo "${ECHO_T}$ac_header_preproc" >&6
9112
9113 # So?  What about this header?
9114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9115   yes:no: )
9116     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9120     ac_header_preproc=yes
9121     ;;
9122   no:yes:* )
9123     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9125     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9126 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9127     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9129     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9130 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9131     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9133     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9135     (
9136       cat <<\_ASBOX
9137 ## ------------------------------------ ##
9138 ## Report this to bug-coreutils@gnu.org ##
9139 ## ------------------------------------ ##
9140 _ASBOX
9141     ) |
9142       sed "s/^/$as_me: WARNING:     /" >&2
9143     ;;
9144 esac
9145 echo "$as_me:$LINENO: checking for $ac_header" >&5
9146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9148   echo $ECHO_N "(cached) $ECHO_C" >&6
9149 else
9150   eval "$as_ac_Header=\$ac_header_preproc"
9151 fi
9152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9154
9155 fi
9156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9157   cat >>confdefs.h <<_ACEOF
9158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9159 _ACEOF
9160
9161 fi
9162
9163 done
9164
9165
9166
9167
9168 for ac_header in sys/ioctl.h
9169 do
9170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9172   echo "$as_me:$LINENO: checking for $ac_header" >&5
9173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9175   echo $ECHO_N "(cached) $ECHO_C" >&6
9176 fi
9177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9179 else
9180   # Is the header compilable?
9181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9183 cat >conftest.$ac_ext <<_ACEOF
9184 /* confdefs.h.  */
9185 _ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h.  */
9189 $ac_includes_default
9190 #include <$ac_header>
9191 _ACEOF
9192 rm -f conftest.$ac_objext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9194   (eval $ac_compile) 2>conftest.er1
9195   ac_status=$?
9196   grep -v '^ *+' conftest.er1 >conftest.err
9197   rm -f conftest.er1
9198   cat conftest.err >&5
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); } &&
9201          { ac_try='test -z "$ac_c_werror_flag"
9202                          || test ! -s conftest.err'
9203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204   (eval $ac_try) 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); }; } &&
9208          { ac_try='test -s conftest.$ac_objext'
9209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210   (eval $ac_try) 2>&5
9211   ac_status=$?
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); }; }; then
9214   ac_header_compiler=yes
9215 else
9216   echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9218
9219 ac_header_compiler=no
9220 fi
9221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9223 echo "${ECHO_T}$ac_header_compiler" >&6
9224
9225 # Is the header present?
9226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9228 cat >conftest.$ac_ext <<_ACEOF
9229 /* confdefs.h.  */
9230 _ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h.  */
9234 #include <$ac_header>
9235 _ACEOF
9236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9238   ac_status=$?
9239   grep -v '^ *+' conftest.er1 >conftest.err
9240   rm -f conftest.er1
9241   cat conftest.err >&5
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); } >/dev/null; then
9244   if test -s conftest.err; then
9245     ac_cpp_err=$ac_c_preproc_warn_flag
9246     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9247   else
9248     ac_cpp_err=
9249   fi
9250 else
9251   ac_cpp_err=yes
9252 fi
9253 if test -z "$ac_cpp_err"; then
9254   ac_header_preproc=yes
9255 else
9256   echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9258
9259   ac_header_preproc=no
9260 fi
9261 rm -f conftest.err conftest.$ac_ext
9262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9263 echo "${ECHO_T}$ac_header_preproc" >&6
9264
9265 # So?  What about this header?
9266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9267   yes:no: )
9268     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9272     ac_header_preproc=yes
9273     ;;
9274   no:yes:* )
9275     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9277     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9278 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9279     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9281     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9282 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9285     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9287     (
9288       cat <<\_ASBOX
9289 ## ------------------------------------ ##
9290 ## Report this to bug-coreutils@gnu.org ##
9291 ## ------------------------------------ ##
9292 _ASBOX
9293     ) |
9294       sed "s/^/$as_me: WARNING:     /" >&2
9295     ;;
9296 esac
9297 echo "$as_me:$LINENO: checking for $ac_header" >&5
9298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9300   echo $ECHO_N "(cached) $ECHO_C" >&6
9301 else
9302   eval "$as_ac_Header=\$ac_header_preproc"
9303 fi
9304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9306
9307 fi
9308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9309   cat >>confdefs.h <<_ACEOF
9310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9311 _ACEOF
9312
9313 fi
9314
9315 done
9316
9317
9318
9319
9320 for ac_header in sys/mntent.h
9321 do
9322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9324   echo "$as_me:$LINENO: checking for $ac_header" >&5
9325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9327   echo $ECHO_N "(cached) $ECHO_C" >&6
9328 fi
9329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9331 else
9332   # Is the header compilable?
9333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9335 cat >conftest.$ac_ext <<_ACEOF
9336 /* confdefs.h.  */
9337 _ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h.  */
9341 $ac_includes_default
9342 #include <$ac_header>
9343 _ACEOF
9344 rm -f conftest.$ac_objext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9346   (eval $ac_compile) 2>conftest.er1
9347   ac_status=$?
9348   grep -v '^ *+' conftest.er1 >conftest.err
9349   rm -f conftest.er1
9350   cat conftest.err >&5
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); } &&
9353          { ac_try='test -z "$ac_c_werror_flag"
9354                          || test ! -s conftest.err'
9355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356   (eval $ac_try) 2>&5
9357   ac_status=$?
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); }; } &&
9360          { ac_try='test -s conftest.$ac_objext'
9361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362   (eval $ac_try) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); }; }; then
9366   ac_header_compiler=yes
9367 else
9368   echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9370
9371 ac_header_compiler=no
9372 fi
9373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9375 echo "${ECHO_T}$ac_header_compiler" >&6
9376
9377 # Is the header present?
9378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9380 cat >conftest.$ac_ext <<_ACEOF
9381 /* confdefs.h.  */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h.  */
9386 #include <$ac_header>
9387 _ACEOF
9388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9389   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9390   ac_status=$?
9391   grep -v '^ *+' conftest.er1 >conftest.err
9392   rm -f conftest.er1
9393   cat conftest.err >&5
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); } >/dev/null; then
9396   if test -s conftest.err; then
9397     ac_cpp_err=$ac_c_preproc_warn_flag
9398     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9399   else
9400     ac_cpp_err=
9401   fi
9402 else
9403   ac_cpp_err=yes
9404 fi
9405 if test -z "$ac_cpp_err"; then
9406   ac_header_preproc=yes
9407 else
9408   echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9410
9411   ac_header_preproc=no
9412 fi
9413 rm -f conftest.err conftest.$ac_ext
9414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9415 echo "${ECHO_T}$ac_header_preproc" >&6
9416
9417 # So?  What about this header?
9418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9419   yes:no: )
9420     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9424     ac_header_preproc=yes
9425     ;;
9426   no:yes:* )
9427     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9429     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9430 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9431     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9433     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9434 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9437     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9439     (
9440       cat <<\_ASBOX
9441 ## ------------------------------------ ##
9442 ## Report this to bug-coreutils@gnu.org ##
9443 ## ------------------------------------ ##
9444 _ASBOX
9445     ) |
9446       sed "s/^/$as_me: WARNING:     /" >&2
9447     ;;
9448 esac
9449 echo "$as_me:$LINENO: checking for $ac_header" >&5
9450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9452   echo $ECHO_N "(cached) $ECHO_C" >&6
9453 else
9454   eval "$as_ac_Header=\$ac_header_preproc"
9455 fi
9456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9458
9459 fi
9460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9461   cat >>confdefs.h <<_ACEOF
9462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9463 _ACEOF
9464
9465 fi
9466
9467 done
9468
9469
9470
9471
9472 for ac_header in sys/param.h
9473 do
9474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9476   echo "$as_me:$LINENO: checking for $ac_header" >&5
9477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9479   echo $ECHO_N "(cached) $ECHO_C" >&6
9480 fi
9481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9483 else
9484   # Is the header compilable?
9485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9487 cat >conftest.$ac_ext <<_ACEOF
9488 /* confdefs.h.  */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h.  */
9493 $ac_includes_default
9494 #include <$ac_header>
9495 _ACEOF
9496 rm -f conftest.$ac_objext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9498   (eval $ac_compile) 2>conftest.er1
9499   ac_status=$?
9500   grep -v '^ *+' conftest.er1 >conftest.err
9501   rm -f conftest.er1
9502   cat conftest.err >&5
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); } &&
9505          { ac_try='test -z "$ac_c_werror_flag"
9506                          || test ! -s conftest.err'
9507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508   (eval $ac_try) 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); }; } &&
9512          { ac_try='test -s conftest.$ac_objext'
9513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514   (eval $ac_try) 2>&5
9515   ac_status=$?
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); }; }; then
9518   ac_header_compiler=yes
9519 else
9520   echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9522
9523 ac_header_compiler=no
9524 fi
9525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9527 echo "${ECHO_T}$ac_header_compiler" >&6
9528
9529 # Is the header present?
9530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h.  */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h.  */
9538 #include <$ac_header>
9539 _ACEOF
9540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9541   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9542   ac_status=$?
9543   grep -v '^ *+' conftest.er1 >conftest.err
9544   rm -f conftest.er1
9545   cat conftest.err >&5
9546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547   (exit $ac_status); } >/dev/null; then
9548   if test -s conftest.err; then
9549     ac_cpp_err=$ac_c_preproc_warn_flag
9550     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9551   else
9552     ac_cpp_err=
9553   fi
9554 else
9555   ac_cpp_err=yes
9556 fi
9557 if test -z "$ac_cpp_err"; then
9558   ac_header_preproc=yes
9559 else
9560   echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9562
9563   ac_header_preproc=no
9564 fi
9565 rm -f conftest.err conftest.$ac_ext
9566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9567 echo "${ECHO_T}$ac_header_preproc" >&6
9568
9569 # So?  What about this header?
9570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9571   yes:no: )
9572     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9576     ac_header_preproc=yes
9577     ;;
9578   no:yes:* )
9579     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9581     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9582 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9583     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9585     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9586 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9589     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9591     (
9592       cat <<\_ASBOX
9593 ## ------------------------------------ ##
9594 ## Report this to bug-coreutils@gnu.org ##
9595 ## ------------------------------------ ##
9596 _ASBOX
9597     ) |
9598       sed "s/^/$as_me: WARNING:     /" >&2
9599     ;;
9600 esac
9601 echo "$as_me:$LINENO: checking for $ac_header" >&5
9602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9604   echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9606   eval "$as_ac_Header=\$ac_header_preproc"
9607 fi
9608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9610
9611 fi
9612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9613   cat >>confdefs.h <<_ACEOF
9614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9615 _ACEOF
9616
9617 fi
9618
9619 done
9620
9621
9622
9623
9624 for ac_header in sys/resource.h
9625 do
9626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9628   echo "$as_me:$LINENO: checking for $ac_header" >&5
9629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9631   echo $ECHO_N "(cached) $ECHO_C" >&6
9632 fi
9633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9635 else
9636   # Is the header compilable?
9637 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9639 cat >conftest.$ac_ext <<_ACEOF
9640 /* confdefs.h.  */
9641 _ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h.  */
9645 $ac_includes_default
9646 #include <$ac_header>
9647 _ACEOF
9648 rm -f conftest.$ac_objext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9650   (eval $ac_compile) 2>conftest.er1
9651   ac_status=$?
9652   grep -v '^ *+' conftest.er1 >conftest.err
9653   rm -f conftest.er1
9654   cat conftest.err >&5
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); } &&
9657          { ac_try='test -z "$ac_c_werror_flag"
9658                          || test ! -s conftest.err'
9659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660   (eval $ac_try) 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); }; } &&
9664          { ac_try='test -s conftest.$ac_objext'
9665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666   (eval $ac_try) 2>&5
9667   ac_status=$?
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); }; }; then
9670   ac_header_compiler=yes
9671 else
9672   echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9674
9675 ac_header_compiler=no
9676 fi
9677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9679 echo "${ECHO_T}$ac_header_compiler" >&6
9680
9681 # Is the header present?
9682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9684 cat >conftest.$ac_ext <<_ACEOF
9685 /* confdefs.h.  */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h.  */
9690 #include <$ac_header>
9691 _ACEOF
9692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9693   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9694   ac_status=$?
9695   grep -v '^ *+' conftest.er1 >conftest.err
9696   rm -f conftest.er1
9697   cat conftest.err >&5
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); } >/dev/null; then
9700   if test -s conftest.err; then
9701     ac_cpp_err=$ac_c_preproc_warn_flag
9702     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9703   else
9704     ac_cpp_err=
9705   fi
9706 else
9707   ac_cpp_err=yes
9708 fi
9709 if test -z "$ac_cpp_err"; then
9710   ac_header_preproc=yes
9711 else
9712   echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9714
9715   ac_header_preproc=no
9716 fi
9717 rm -f conftest.err conftest.$ac_ext
9718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9719 echo "${ECHO_T}$ac_header_preproc" >&6
9720
9721 # So?  What about this header?
9722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9723   yes:no: )
9724     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9728     ac_header_preproc=yes
9729     ;;
9730   no:yes:* )
9731     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9733     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9734 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9735     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9737     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9738 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9741     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9743     (
9744       cat <<\_ASBOX
9745 ## ------------------------------------ ##
9746 ## Report this to bug-coreutils@gnu.org ##
9747 ## ------------------------------------ ##
9748 _ASBOX
9749     ) |
9750       sed "s/^/$as_me: WARNING:     /" >&2
9751     ;;
9752 esac
9753 echo "$as_me:$LINENO: checking for $ac_header" >&5
9754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9756   echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9758   eval "$as_ac_Header=\$ac_header_preproc"
9759 fi
9760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9762
9763 fi
9764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9765   cat >>confdefs.h <<_ACEOF
9766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9767 _ACEOF
9768
9769 fi
9770
9771 done
9772
9773
9774
9775
9776 for ac_header in sys/socket.h
9777 do
9778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9780   echo "$as_me:$LINENO: checking for $ac_header" >&5
9781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9783   echo $ECHO_N "(cached) $ECHO_C" >&6
9784 fi
9785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9787 else
9788   # Is the header compilable?
9789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9791 cat >conftest.$ac_ext <<_ACEOF
9792 /* confdefs.h.  */
9793 _ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h.  */
9797 $ac_includes_default
9798 #include <$ac_header>
9799 _ACEOF
9800 rm -f conftest.$ac_objext
9801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9802   (eval $ac_compile) 2>conftest.er1
9803   ac_status=$?
9804   grep -v '^ *+' conftest.er1 >conftest.err
9805   rm -f conftest.er1
9806   cat conftest.err >&5
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); } &&
9809          { ac_try='test -z "$ac_c_werror_flag"
9810                          || test ! -s conftest.err'
9811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812   (eval $ac_try) 2>&5
9813   ac_status=$?
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); }; } &&
9816          { ac_try='test -s conftest.$ac_objext'
9817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818   (eval $ac_try) 2>&5
9819   ac_status=$?
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); }; }; then
9822   ac_header_compiler=yes
9823 else
9824   echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9826
9827 ac_header_compiler=no
9828 fi
9829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9831 echo "${ECHO_T}$ac_header_compiler" >&6
9832
9833 # Is the header present?
9834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9836 cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h.  */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h.  */
9842 #include <$ac_header>
9843 _ACEOF
9844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9846   ac_status=$?
9847   grep -v '^ *+' conftest.er1 >conftest.err
9848   rm -f conftest.er1
9849   cat conftest.err >&5
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); } >/dev/null; then
9852   if test -s conftest.err; then
9853     ac_cpp_err=$ac_c_preproc_warn_flag
9854     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9855   else
9856     ac_cpp_err=
9857   fi
9858 else
9859   ac_cpp_err=yes
9860 fi
9861 if test -z "$ac_cpp_err"; then
9862   ac_header_preproc=yes
9863 else
9864   echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9866
9867   ac_header_preproc=no
9868 fi
9869 rm -f conftest.err conftest.$ac_ext
9870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9871 echo "${ECHO_T}$ac_header_preproc" >&6
9872
9873 # So?  What about this header?
9874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9875   yes:no: )
9876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9880     ac_header_preproc=yes
9881     ;;
9882   no:yes:* )
9883     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9885     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9886 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9887     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9889     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9890 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9893     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9895     (
9896       cat <<\_ASBOX
9897 ## ------------------------------------ ##
9898 ## Report this to bug-coreutils@gnu.org ##
9899 ## ------------------------------------ ##
9900 _ASBOX
9901     ) |
9902       sed "s/^/$as_me: WARNING:     /" >&2
9903     ;;
9904 esac
9905 echo "$as_me:$LINENO: checking for $ac_header" >&5
9906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9908   echo $ECHO_N "(cached) $ECHO_C" >&6
9909 else
9910   eval "$as_ac_Header=\$ac_header_preproc"
9911 fi
9912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9914
9915 fi
9916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9917   cat >>confdefs.h <<_ACEOF
9918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9919 _ACEOF
9920
9921 fi
9922
9923 done
9924
9925
9926
9927
9928 for ac_header in sys/statfs.h
9929 do
9930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9932   echo "$as_me:$LINENO: checking for $ac_header" >&5
9933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9935   echo $ECHO_N "(cached) $ECHO_C" >&6
9936 fi
9937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9939 else
9940   # Is the header compilable?
9941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9943 cat >conftest.$ac_ext <<_ACEOF
9944 /* confdefs.h.  */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h.  */
9949 $ac_includes_default
9950 #include <$ac_header>
9951 _ACEOF
9952 rm -f conftest.$ac_objext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9954   (eval $ac_compile) 2>conftest.er1
9955   ac_status=$?
9956   grep -v '^ *+' conftest.er1 >conftest.err
9957   rm -f conftest.er1
9958   cat conftest.err >&5
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); } &&
9961          { ac_try='test -z "$ac_c_werror_flag"
9962                          || test ! -s conftest.err'
9963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964   (eval $ac_try) 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); }; } &&
9968          { ac_try='test -s conftest.$ac_objext'
9969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970   (eval $ac_try) 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); }; }; then
9974   ac_header_compiler=yes
9975 else
9976   echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9978
9979 ac_header_compiler=no
9980 fi
9981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9983 echo "${ECHO_T}$ac_header_compiler" >&6
9984
9985 # Is the header present?
9986 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9988 cat >conftest.$ac_ext <<_ACEOF
9989 /* confdefs.h.  */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h.  */
9994 #include <$ac_header>
9995 _ACEOF
9996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9997   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9998   ac_status=$?
9999   grep -v '^ *+' conftest.er1 >conftest.err
10000   rm -f conftest.er1
10001   cat conftest.err >&5
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); } >/dev/null; then
10004   if test -s conftest.err; then
10005     ac_cpp_err=$ac_c_preproc_warn_flag
10006     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10007   else
10008     ac_cpp_err=
10009   fi
10010 else
10011   ac_cpp_err=yes
10012 fi
10013 if test -z "$ac_cpp_err"; then
10014   ac_header_preproc=yes
10015 else
10016   echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019   ac_header_preproc=no
10020 fi
10021 rm -f conftest.err conftest.$ac_ext
10022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10023 echo "${ECHO_T}$ac_header_preproc" >&6
10024
10025 # So?  What about this header?
10026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10027   yes:no: )
10028     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10032     ac_header_preproc=yes
10033     ;;
10034   no:yes:* )
10035     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10037     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10038 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10039     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10041     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10042 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10045     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10047     (
10048       cat <<\_ASBOX
10049 ## ------------------------------------ ##
10050 ## Report this to bug-coreutils@gnu.org ##
10051 ## ------------------------------------ ##
10052 _ASBOX
10053     ) |
10054       sed "s/^/$as_me: WARNING:     /" >&2
10055     ;;
10056 esac
10057 echo "$as_me:$LINENO: checking for $ac_header" >&5
10058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10060   echo $ECHO_N "(cached) $ECHO_C" >&6
10061 else
10062   eval "$as_ac_Header=\$ac_header_preproc"
10063 fi
10064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10066
10067 fi
10068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10069   cat >>confdefs.h <<_ACEOF
10070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10071 _ACEOF
10072
10073 fi
10074
10075 done
10076
10077
10078
10079
10080 for ac_header in sys/statvfs.h
10081 do
10082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10084   echo "$as_me:$LINENO: checking for $ac_header" >&5
10085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10087   echo $ECHO_N "(cached) $ECHO_C" >&6
10088 fi
10089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10091 else
10092   # Is the header compilable?
10093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10095 cat >conftest.$ac_ext <<_ACEOF
10096 /* confdefs.h.  */
10097 _ACEOF
10098 cat confdefs.h >>conftest.$ac_ext
10099 cat >>conftest.$ac_ext <<_ACEOF
10100 /* end confdefs.h.  */
10101 $ac_includes_default
10102 #include <$ac_header>
10103 _ACEOF
10104 rm -f conftest.$ac_objext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10106   (eval $ac_compile) 2>conftest.er1
10107   ac_status=$?
10108   grep -v '^ *+' conftest.er1 >conftest.err
10109   rm -f conftest.er1
10110   cat conftest.err >&5
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); } &&
10113          { ac_try='test -z "$ac_c_werror_flag"
10114                          || test ! -s conftest.err'
10115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116   (eval $ac_try) 2>&5
10117   ac_status=$?
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); }; } &&
10120          { ac_try='test -s conftest.$ac_objext'
10121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122   (eval $ac_try) 2>&5
10123   ac_status=$?
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); }; }; then
10126   ac_header_compiler=yes
10127 else
10128   echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10130
10131 ac_header_compiler=no
10132 fi
10133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10135 echo "${ECHO_T}$ac_header_compiler" >&6
10136
10137 # Is the header present?
10138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10140 cat >conftest.$ac_ext <<_ACEOF
10141 /* confdefs.h.  */
10142 _ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h.  */
10146 #include <$ac_header>
10147 _ACEOF
10148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10149   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10150   ac_status=$?
10151   grep -v '^ *+' conftest.er1 >conftest.err
10152   rm -f conftest.er1
10153   cat conftest.err >&5
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); } >/dev/null; then
10156   if test -s conftest.err; then
10157     ac_cpp_err=$ac_c_preproc_warn_flag
10158     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10159   else
10160     ac_cpp_err=
10161   fi
10162 else
10163   ac_cpp_err=yes
10164 fi
10165 if test -z "$ac_cpp_err"; then
10166   ac_header_preproc=yes
10167 else
10168   echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10170
10171   ac_header_preproc=no
10172 fi
10173 rm -f conftest.err conftest.$ac_ext
10174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10175 echo "${ECHO_T}$ac_header_preproc" >&6
10176
10177 # So?  What about this header?
10178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10179   yes:no: )
10180     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10184     ac_header_preproc=yes
10185     ;;
10186   no:yes:* )
10187     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10189     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10190 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10191     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10193     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10194 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10197     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10199     (
10200       cat <<\_ASBOX
10201 ## ------------------------------------ ##
10202 ## Report this to bug-coreutils@gnu.org ##
10203 ## ------------------------------------ ##
10204 _ASBOX
10205     ) |
10206       sed "s/^/$as_me: WARNING:     /" >&2
10207     ;;
10208 esac
10209 echo "$as_me:$LINENO: checking for $ac_header" >&5
10210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214   eval "$as_ac_Header=\$ac_header_preproc"
10215 fi
10216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10218
10219 fi
10220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10221   cat >>confdefs.h <<_ACEOF
10222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10223 _ACEOF
10224
10225 fi
10226
10227 done
10228
10229
10230
10231
10232 for ac_header in sys/systeminfo.h
10233 do
10234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10236   echo "$as_me:$LINENO: checking for $ac_header" >&5
10237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10239   echo $ECHO_N "(cached) $ECHO_C" >&6
10240 fi
10241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10243 else
10244   # Is the header compilable?
10245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10247 cat >conftest.$ac_ext <<_ACEOF
10248 /* confdefs.h.  */
10249 _ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h.  */
10253 $ac_includes_default
10254 #include <$ac_header>
10255 _ACEOF
10256 rm -f conftest.$ac_objext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258   (eval $ac_compile) 2>conftest.er1
10259   ac_status=$?
10260   grep -v '^ *+' conftest.er1 >conftest.err
10261   rm -f conftest.er1
10262   cat conftest.err >&5
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); } &&
10265          { ac_try='test -z "$ac_c_werror_flag"
10266                          || test ! -s conftest.err'
10267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268   (eval $ac_try) 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; } &&
10272          { ac_try='test -s conftest.$ac_objext'
10273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274   (eval $ac_try) 2>&5
10275   ac_status=$?
10276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277   (exit $ac_status); }; }; then
10278   ac_header_compiler=yes
10279 else
10280   echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10282
10283 ac_header_compiler=no
10284 fi
10285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10287 echo "${ECHO_T}$ac_header_compiler" >&6
10288
10289 # Is the header present?
10290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10292 cat >conftest.$ac_ext <<_ACEOF
10293 /* confdefs.h.  */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h.  */
10298 #include <$ac_header>
10299 _ACEOF
10300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10302   ac_status=$?
10303   grep -v '^ *+' conftest.er1 >conftest.err
10304   rm -f conftest.er1
10305   cat conftest.err >&5
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); } >/dev/null; then
10308   if test -s conftest.err; then
10309     ac_cpp_err=$ac_c_preproc_warn_flag
10310     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10311   else
10312     ac_cpp_err=
10313   fi
10314 else
10315   ac_cpp_err=yes
10316 fi
10317 if test -z "$ac_cpp_err"; then
10318   ac_header_preproc=yes
10319 else
10320   echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10322
10323   ac_header_preproc=no
10324 fi
10325 rm -f conftest.err conftest.$ac_ext
10326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10327 echo "${ECHO_T}$ac_header_preproc" >&6
10328
10329 # So?  What about this header?
10330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10331   yes:no: )
10332     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10336     ac_header_preproc=yes
10337     ;;
10338   no:yes:* )
10339     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10341     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10342 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10343     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10345     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10346 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10349     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10351     (
10352       cat <<\_ASBOX
10353 ## ------------------------------------ ##
10354 ## Report this to bug-coreutils@gnu.org ##
10355 ## ------------------------------------ ##
10356 _ASBOX
10357     ) |
10358       sed "s/^/$as_me: WARNING:     /" >&2
10359     ;;
10360 esac
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
10365 else
10366   eval "$as_ac_Header=\$ac_header_preproc"
10367 fi
10368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10370
10371 fi
10372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10373   cat >>confdefs.h <<_ACEOF
10374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10375 _ACEOF
10376
10377 fi
10378
10379 done
10380
10381
10382
10383
10384 for ac_header in sys/time.h
10385 do
10386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10388   echo "$as_me:$LINENO: checking for $ac_header" >&5
10389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10391   echo $ECHO_N "(cached) $ECHO_C" >&6
10392 fi
10393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10395 else
10396   # Is the header compilable?
10397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10399 cat >conftest.$ac_ext <<_ACEOF
10400 /* confdefs.h.  */
10401 _ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h.  */
10405 $ac_includes_default
10406 #include <$ac_header>
10407 _ACEOF
10408 rm -f conftest.$ac_objext
10409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10410   (eval $ac_compile) 2>conftest.er1
10411   ac_status=$?
10412   grep -v '^ *+' conftest.er1 >conftest.err
10413   rm -f conftest.er1
10414   cat conftest.err >&5
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); } &&
10417          { ac_try='test -z "$ac_c_werror_flag"
10418                          || test ! -s conftest.err'
10419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420   (eval $ac_try) 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); }; } &&
10424          { ac_try='test -s conftest.$ac_objext'
10425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426   (eval $ac_try) 2>&5
10427   ac_status=$?
10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429   (exit $ac_status); }; }; then
10430   ac_header_compiler=yes
10431 else
10432   echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10434
10435 ac_header_compiler=no
10436 fi
10437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10439 echo "${ECHO_T}$ac_header_compiler" >&6
10440
10441 # Is the header present?
10442 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10444 cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h.  */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h.  */
10450 #include <$ac_header>
10451 _ACEOF
10452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10453   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10454   ac_status=$?
10455   grep -v '^ *+' conftest.er1 >conftest.err
10456   rm -f conftest.er1
10457   cat conftest.err >&5
10458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459   (exit $ac_status); } >/dev/null; then
10460   if test -s conftest.err; then
10461     ac_cpp_err=$ac_c_preproc_warn_flag
10462     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10463   else
10464     ac_cpp_err=
10465   fi
10466 else
10467   ac_cpp_err=yes
10468 fi
10469 if test -z "$ac_cpp_err"; then
10470   ac_header_preproc=yes
10471 else
10472   echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10474
10475   ac_header_preproc=no
10476 fi
10477 rm -f conftest.err conftest.$ac_ext
10478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10479 echo "${ECHO_T}$ac_header_preproc" >&6
10480
10481 # So?  What about this header?
10482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10483   yes:no: )
10484     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10488     ac_header_preproc=yes
10489     ;;
10490   no:yes:* )
10491     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10493     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10494 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10495     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10497     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10498 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10501     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10503     (
10504       cat <<\_ASBOX
10505 ## ------------------------------------ ##
10506 ## Report this to bug-coreutils@gnu.org ##
10507 ## ------------------------------------ ##
10508 _ASBOX
10509     ) |
10510       sed "s/^/$as_me: WARNING:     /" >&2
10511     ;;
10512 esac
10513 echo "$as_me:$LINENO: checking for $ac_header" >&5
10514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10516   echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518   eval "$as_ac_Header=\$ac_header_preproc"
10519 fi
10520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10522
10523 fi
10524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10525   cat >>confdefs.h <<_ACEOF
10526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10527 _ACEOF
10528
10529 fi
10530
10531 done
10532
10533
10534
10535
10536 for ac_header in sys/timeb.h
10537 do
10538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10540   echo "$as_me:$LINENO: checking for $ac_header" >&5
10541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10543   echo $ECHO_N "(cached) $ECHO_C" >&6
10544 fi
10545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10547 else
10548   # Is the header compilable?
10549 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10551 cat >conftest.$ac_ext <<_ACEOF
10552 /* confdefs.h.  */
10553 _ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h.  */
10557 $ac_includes_default
10558 #include <$ac_header>
10559 _ACEOF
10560 rm -f conftest.$ac_objext
10561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10562   (eval $ac_compile) 2>conftest.er1
10563   ac_status=$?
10564   grep -v '^ *+' conftest.er1 >conftest.err
10565   rm -f conftest.er1
10566   cat conftest.err >&5
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); } &&
10569          { ac_try='test -z "$ac_c_werror_flag"
10570                          || test ! -s conftest.err'
10571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572   (eval $ac_try) 2>&5
10573   ac_status=$?
10574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575   (exit $ac_status); }; } &&
10576          { ac_try='test -s conftest.$ac_objext'
10577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578   (eval $ac_try) 2>&5
10579   ac_status=$?
10580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581   (exit $ac_status); }; }; then
10582   ac_header_compiler=yes
10583 else
10584   echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10586
10587 ac_header_compiler=no
10588 fi
10589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10590 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10591 echo "${ECHO_T}$ac_header_compiler" >&6
10592
10593 # Is the header present?
10594 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10596 cat >conftest.$ac_ext <<_ACEOF
10597 /* confdefs.h.  */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h.  */
10602 #include <$ac_header>
10603 _ACEOF
10604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10605   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10606   ac_status=$?
10607   grep -v '^ *+' conftest.er1 >conftest.err
10608   rm -f conftest.er1
10609   cat conftest.err >&5
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); } >/dev/null; then
10612   if test -s conftest.err; then
10613     ac_cpp_err=$ac_c_preproc_warn_flag
10614     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10615   else
10616     ac_cpp_err=
10617   fi
10618 else
10619   ac_cpp_err=yes
10620 fi
10621 if test -z "$ac_cpp_err"; then
10622   ac_header_preproc=yes
10623 else
10624   echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10626
10627   ac_header_preproc=no
10628 fi
10629 rm -f conftest.err conftest.$ac_ext
10630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10631 echo "${ECHO_T}$ac_header_preproc" >&6
10632
10633 # So?  What about this header?
10634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10635   yes:no: )
10636     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10640     ac_header_preproc=yes
10641     ;;
10642   no:yes:* )
10643     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10645     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10646 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10647     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10649     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10650 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10653     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10655     (
10656       cat <<\_ASBOX
10657 ## ------------------------------------ ##
10658 ## Report this to bug-coreutils@gnu.org ##
10659 ## ------------------------------------ ##
10660 _ASBOX
10661     ) |
10662       sed "s/^/$as_me: WARNING:     /" >&2
10663     ;;
10664 esac
10665 echo "$as_me:$LINENO: checking for $ac_header" >&5
10666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10668   echo $ECHO_N "(cached) $ECHO_C" >&6
10669 else
10670   eval "$as_ac_Header=\$ac_header_preproc"
10671 fi
10672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10674
10675 fi
10676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10677   cat >>confdefs.h <<_ACEOF
10678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10679 _ACEOF
10680
10681 fi
10682
10683 done
10684
10685
10686
10687
10688 for ac_header in sys/vfs.h
10689 do
10690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10692   echo "$as_me:$LINENO: checking for $ac_header" >&5
10693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10695   echo $ECHO_N "(cached) $ECHO_C" >&6
10696 fi
10697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10699 else
10700   # Is the header compilable?
10701 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10703 cat >conftest.$ac_ext <<_ACEOF
10704 /* confdefs.h.  */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h.  */
10709 $ac_includes_default
10710 #include <$ac_header>
10711 _ACEOF
10712 rm -f conftest.$ac_objext
10713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10714   (eval $ac_compile) 2>conftest.er1
10715   ac_status=$?
10716   grep -v '^ *+' conftest.er1 >conftest.err
10717   rm -f conftest.er1
10718   cat conftest.err >&5
10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720   (exit $ac_status); } &&
10721          { ac_try='test -z "$ac_c_werror_flag"
10722                          || test ! -s conftest.err'
10723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724   (eval $ac_try) 2>&5
10725   ac_status=$?
10726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727   (exit $ac_status); }; } &&
10728          { ac_try='test -s conftest.$ac_objext'
10729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730   (eval $ac_try) 2>&5
10731   ac_status=$?
10732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733   (exit $ac_status); }; }; then
10734   ac_header_compiler=yes
10735 else
10736   echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10738
10739 ac_header_compiler=no
10740 fi
10741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10743 echo "${ECHO_T}$ac_header_compiler" >&6
10744
10745 # Is the header present?
10746 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10748 cat >conftest.$ac_ext <<_ACEOF
10749 /* confdefs.h.  */
10750 _ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h.  */
10754 #include <$ac_header>
10755 _ACEOF
10756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10757   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10758   ac_status=$?
10759   grep -v '^ *+' conftest.er1 >conftest.err
10760   rm -f conftest.er1
10761   cat conftest.err >&5
10762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763   (exit $ac_status); } >/dev/null; then
10764   if test -s conftest.err; then
10765     ac_cpp_err=$ac_c_preproc_warn_flag
10766     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10767   else
10768     ac_cpp_err=
10769   fi
10770 else
10771   ac_cpp_err=yes
10772 fi
10773 if test -z "$ac_cpp_err"; then
10774   ac_header_preproc=yes
10775 else
10776   echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10778
10779   ac_header_preproc=no
10780 fi
10781 rm -f conftest.err conftest.$ac_ext
10782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10783 echo "${ECHO_T}$ac_header_preproc" >&6
10784
10785 # So?  What about this header?
10786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10787   yes:no: )
10788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10792     ac_header_preproc=yes
10793     ;;
10794   no:yes:* )
10795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10797     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10798 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10799     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10801     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10802 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10805     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10807     (
10808       cat <<\_ASBOX
10809 ## ------------------------------------ ##
10810 ## Report this to bug-coreutils@gnu.org ##
10811 ## ------------------------------------ ##
10812 _ASBOX
10813     ) |
10814       sed "s/^/$as_me: WARNING:     /" >&2
10815     ;;
10816 esac
10817 echo "$as_me:$LINENO: checking for $ac_header" >&5
10818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10820   echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else
10822   eval "$as_ac_Header=\$ac_header_preproc"
10823 fi
10824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10826
10827 fi
10828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10829   cat >>confdefs.h <<_ACEOF
10830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10831 _ACEOF
10832
10833 fi
10834
10835 done
10836
10837
10838
10839
10840 for ac_header in sys/wait.h
10841 do
10842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10844   echo "$as_me:$LINENO: checking for $ac_header" >&5
10845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10847   echo $ECHO_N "(cached) $ECHO_C" >&6
10848 fi
10849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10851 else
10852   # Is the header compilable?
10853 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10855 cat >conftest.$ac_ext <<_ACEOF
10856 /* confdefs.h.  */
10857 _ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h.  */
10861 $ac_includes_default
10862 #include <$ac_header>
10863 _ACEOF
10864 rm -f conftest.$ac_objext
10865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10866   (eval $ac_compile) 2>conftest.er1
10867   ac_status=$?
10868   grep -v '^ *+' conftest.er1 >conftest.err
10869   rm -f conftest.er1
10870   cat conftest.err >&5
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); } &&
10873          { ac_try='test -z "$ac_c_werror_flag"
10874                          || test ! -s conftest.err'
10875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876   (eval $ac_try) 2>&5
10877   ac_status=$?
10878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879   (exit $ac_status); }; } &&
10880          { ac_try='test -s conftest.$ac_objext'
10881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882   (eval $ac_try) 2>&5
10883   ac_status=$?
10884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); }; }; then
10886   ac_header_compiler=yes
10887 else
10888   echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10890
10891 ac_header_compiler=no
10892 fi
10893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10895 echo "${ECHO_T}$ac_header_compiler" >&6
10896
10897 # Is the header present?
10898 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10900 cat >conftest.$ac_ext <<_ACEOF
10901 /* confdefs.h.  */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h.  */
10906 #include <$ac_header>
10907 _ACEOF
10908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10909   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10910   ac_status=$?
10911   grep -v '^ *+' conftest.er1 >conftest.err
10912   rm -f conftest.er1
10913   cat conftest.err >&5
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); } >/dev/null; then
10916   if test -s conftest.err; then
10917     ac_cpp_err=$ac_c_preproc_warn_flag
10918     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10919   else
10920     ac_cpp_err=
10921   fi
10922 else
10923   ac_cpp_err=yes
10924 fi
10925 if test -z "$ac_cpp_err"; then
10926   ac_header_preproc=yes
10927 else
10928   echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10930
10931   ac_header_preproc=no
10932 fi
10933 rm -f conftest.err conftest.$ac_ext
10934 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10935 echo "${ECHO_T}$ac_header_preproc" >&6
10936
10937 # So?  What about this header?
10938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10939   yes:no: )
10940     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10944     ac_header_preproc=yes
10945     ;;
10946   no:yes:* )
10947     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10949     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10950 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10951     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10953     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10954 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10957     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10959     (
10960       cat <<\_ASBOX
10961 ## ------------------------------------ ##
10962 ## Report this to bug-coreutils@gnu.org ##
10963 ## ------------------------------------ ##
10964 _ASBOX
10965     ) |
10966       sed "s/^/$as_me: WARNING:     /" >&2
10967     ;;
10968 esac
10969 echo "$as_me:$LINENO: checking for $ac_header" >&5
10970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10972   echo $ECHO_N "(cached) $ECHO_C" >&6
10973 else
10974   eval "$as_ac_Header=\$ac_header_preproc"
10975 fi
10976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10978
10979 fi
10980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10981   cat >>confdefs.h <<_ACEOF
10982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10983 _ACEOF
10984
10985 fi
10986
10987 done
10988
10989
10990
10991
10992 for ac_header in syslog.h
10993 do
10994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10996   echo "$as_me:$LINENO: checking for $ac_header" >&5
10997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10999   echo $ECHO_N "(cached) $ECHO_C" >&6
11000 fi
11001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11003 else
11004   # Is the header compilable?
11005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11007 cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h.  */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h.  */
11013 $ac_includes_default
11014 #include <$ac_header>
11015 _ACEOF
11016 rm -f conftest.$ac_objext
11017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11018   (eval $ac_compile) 2>conftest.er1
11019   ac_status=$?
11020   grep -v '^ *+' conftest.er1 >conftest.err
11021   rm -f conftest.er1
11022   cat conftest.err >&5
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); } &&
11025          { ac_try='test -z "$ac_c_werror_flag"
11026                          || test ! -s conftest.err'
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); }; } &&
11032          { ac_try='test -s conftest.$ac_objext'
11033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034   (eval $ac_try) 2>&5
11035   ac_status=$?
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); }; }; then
11038   ac_header_compiler=yes
11039 else
11040   echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11042
11043 ac_header_compiler=no
11044 fi
11045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11047 echo "${ECHO_T}$ac_header_compiler" >&6
11048
11049 # Is the header present?
11050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11052 cat >conftest.$ac_ext <<_ACEOF
11053 /* confdefs.h.  */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h.  */
11058 #include <$ac_header>
11059 _ACEOF
11060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11062   ac_status=$?
11063   grep -v '^ *+' conftest.er1 >conftest.err
11064   rm -f conftest.er1
11065   cat conftest.err >&5
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); } >/dev/null; then
11068   if test -s conftest.err; then
11069     ac_cpp_err=$ac_c_preproc_warn_flag
11070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11071   else
11072     ac_cpp_err=
11073   fi
11074 else
11075   ac_cpp_err=yes
11076 fi
11077 if test -z "$ac_cpp_err"; then
11078   ac_header_preproc=yes
11079 else
11080   echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11082
11083   ac_header_preproc=no
11084 fi
11085 rm -f conftest.err conftest.$ac_ext
11086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11087 echo "${ECHO_T}$ac_header_preproc" >&6
11088
11089 # So?  What about this header?
11090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11091   yes:no: )
11092     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11096     ac_header_preproc=yes
11097     ;;
11098   no:yes:* )
11099     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11101     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11102 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11103     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11105     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11106 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11109     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11111     (
11112       cat <<\_ASBOX
11113 ## ------------------------------------ ##
11114 ## Report this to bug-coreutils@gnu.org ##
11115 ## ------------------------------------ ##
11116 _ASBOX
11117     ) |
11118       sed "s/^/$as_me: WARNING:     /" >&2
11119     ;;
11120 esac
11121 echo "$as_me:$LINENO: checking for $ac_header" >&5
11122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11124   echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126   eval "$as_ac_Header=\$ac_header_preproc"
11127 fi
11128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11130
11131 fi
11132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11133   cat >>confdefs.h <<_ACEOF
11134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11135 _ACEOF
11136
11137 fi
11138
11139 done
11140
11141
11142
11143
11144 for ac_header in termios.h
11145 do
11146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11148   echo "$as_me:$LINENO: checking for $ac_header" >&5
11149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11151   echo $ECHO_N "(cached) $ECHO_C" >&6
11152 fi
11153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11155 else
11156   # Is the header compilable?
11157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11159 cat >conftest.$ac_ext <<_ACEOF
11160 /* confdefs.h.  */
11161 _ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h.  */
11165 $ac_includes_default
11166 #include <$ac_header>
11167 _ACEOF
11168 rm -f conftest.$ac_objext
11169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11170   (eval $ac_compile) 2>conftest.er1
11171   ac_status=$?
11172   grep -v '^ *+' conftest.er1 >conftest.err
11173   rm -f conftest.er1
11174   cat conftest.err >&5
11175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); } &&
11177          { ac_try='test -z "$ac_c_werror_flag"
11178                          || test ! -s conftest.err'
11179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180   (eval $ac_try) 2>&5
11181   ac_status=$?
11182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183   (exit $ac_status); }; } &&
11184          { ac_try='test -s conftest.$ac_objext'
11185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186   (eval $ac_try) 2>&5
11187   ac_status=$?
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); }; }; then
11190   ac_header_compiler=yes
11191 else
11192   echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11194
11195 ac_header_compiler=no
11196 fi
11197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11199 echo "${ECHO_T}$ac_header_compiler" >&6
11200
11201 # Is the header present?
11202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11204 cat >conftest.$ac_ext <<_ACEOF
11205 /* confdefs.h.  */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h.  */
11210 #include <$ac_header>
11211 _ACEOF
11212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11214   ac_status=$?
11215   grep -v '^ *+' conftest.er1 >conftest.err
11216   rm -f conftest.er1
11217   cat conftest.err >&5
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); } >/dev/null; then
11220   if test -s conftest.err; then
11221     ac_cpp_err=$ac_c_preproc_warn_flag
11222     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11223   else
11224     ac_cpp_err=
11225   fi
11226 else
11227   ac_cpp_err=yes
11228 fi
11229 if test -z "$ac_cpp_err"; then
11230   ac_header_preproc=yes
11231 else
11232   echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235   ac_header_preproc=no
11236 fi
11237 rm -f conftest.err conftest.$ac_ext
11238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11239 echo "${ECHO_T}$ac_header_preproc" >&6
11240
11241 # So?  What about this header?
11242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11243   yes:no: )
11244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11248     ac_header_preproc=yes
11249     ;;
11250   no:yes:* )
11251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11263     (
11264       cat <<\_ASBOX
11265 ## ------------------------------------ ##
11266 ## Report this to bug-coreutils@gnu.org ##
11267 ## ------------------------------------ ##
11268 _ASBOX
11269     ) |
11270       sed "s/^/$as_me: WARNING:     /" >&2
11271     ;;
11272 esac
11273 echo "$as_me:$LINENO: checking for $ac_header" >&5
11274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11276   echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278   eval "$as_ac_Header=\$ac_header_preproc"
11279 fi
11280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11282
11283 fi
11284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11285   cat >>confdefs.h <<_ACEOF
11286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11287 _ACEOF
11288
11289 fi
11290
11291 done
11292
11293
11294
11295
11296 for ac_header in unistd.h
11297 do
11298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11300   echo "$as_me:$LINENO: checking for $ac_header" >&5
11301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11303   echo $ECHO_N "(cached) $ECHO_C" >&6
11304 fi
11305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11307 else
11308   # Is the header compilable?
11309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11311 cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h.  */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h.  */
11317 $ac_includes_default
11318 #include <$ac_header>
11319 _ACEOF
11320 rm -f conftest.$ac_objext
11321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11322   (eval $ac_compile) 2>conftest.er1
11323   ac_status=$?
11324   grep -v '^ *+' conftest.er1 >conftest.err
11325   rm -f conftest.er1
11326   cat conftest.err >&5
11327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328   (exit $ac_status); } &&
11329          { ac_try='test -z "$ac_c_werror_flag"
11330                          || test ! -s conftest.err'
11331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332   (eval $ac_try) 2>&5
11333   ac_status=$?
11334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335   (exit $ac_status); }; } &&
11336          { ac_try='test -s conftest.$ac_objext'
11337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338   (eval $ac_try) 2>&5
11339   ac_status=$?
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); }; }; then
11342   ac_header_compiler=yes
11343 else
11344   echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11346
11347 ac_header_compiler=no
11348 fi
11349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11351 echo "${ECHO_T}$ac_header_compiler" >&6
11352
11353 # Is the header present?
11354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11356 cat >conftest.$ac_ext <<_ACEOF
11357 /* confdefs.h.  */
11358 _ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h.  */
11362 #include <$ac_header>
11363 _ACEOF
11364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11365   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11366   ac_status=$?
11367   grep -v '^ *+' conftest.er1 >conftest.err
11368   rm -f conftest.er1
11369   cat conftest.err >&5
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); } >/dev/null; then
11372   if test -s conftest.err; then
11373     ac_cpp_err=$ac_c_preproc_warn_flag
11374     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11375   else
11376     ac_cpp_err=
11377   fi
11378 else
11379   ac_cpp_err=yes
11380 fi
11381 if test -z "$ac_cpp_err"; then
11382   ac_header_preproc=yes
11383 else
11384   echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11386
11387   ac_header_preproc=no
11388 fi
11389 rm -f conftest.err conftest.$ac_ext
11390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11391 echo "${ECHO_T}$ac_header_preproc" >&6
11392
11393 # So?  What about this header?
11394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11395   yes:no: )
11396     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11400     ac_header_preproc=yes
11401     ;;
11402   no:yes:* )
11403     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11405     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11406 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11407     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11409     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11410 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11413     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11415     (
11416       cat <<\_ASBOX
11417 ## ------------------------------------ ##
11418 ## Report this to bug-coreutils@gnu.org ##
11419 ## ------------------------------------ ##
11420 _ASBOX
11421     ) |
11422       sed "s/^/$as_me: WARNING:     /" >&2
11423     ;;
11424 esac
11425 echo "$as_me:$LINENO: checking for $ac_header" >&5
11426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11428   echo $ECHO_N "(cached) $ECHO_C" >&6
11429 else
11430   eval "$as_ac_Header=\$ac_header_preproc"
11431 fi
11432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11434
11435 fi
11436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11437   cat >>confdefs.h <<_ACEOF
11438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11439 _ACEOF
11440
11441 fi
11442
11443 done
11444
11445
11446
11447
11448 for ac_header in utime.h
11449 do
11450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11452   echo "$as_me:$LINENO: checking for $ac_header" >&5
11453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11455   echo $ECHO_N "(cached) $ECHO_C" >&6
11456 fi
11457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11459 else
11460   # Is the header compilable?
11461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11463 cat >conftest.$ac_ext <<_ACEOF
11464 /* confdefs.h.  */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h.  */
11469 $ac_includes_default
11470 #include <$ac_header>
11471 _ACEOF
11472 rm -f conftest.$ac_objext
11473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11474   (eval $ac_compile) 2>conftest.er1
11475   ac_status=$?
11476   grep -v '^ *+' conftest.er1 >conftest.err
11477   rm -f conftest.er1
11478   cat conftest.err >&5
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); } &&
11481          { ac_try='test -z "$ac_c_werror_flag"
11482                          || test ! -s conftest.err'
11483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484   (eval $ac_try) 2>&5
11485   ac_status=$?
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); }; } &&
11488          { ac_try='test -s conftest.$ac_objext'
11489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490   (eval $ac_try) 2>&5
11491   ac_status=$?
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); }; }; then
11494   ac_header_compiler=yes
11495 else
11496   echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11498
11499 ac_header_compiler=no
11500 fi
11501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11503 echo "${ECHO_T}$ac_header_compiler" >&6
11504
11505 # Is the header present?
11506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11508 cat >conftest.$ac_ext <<_ACEOF
11509 /* confdefs.h.  */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h.  */
11514 #include <$ac_header>
11515 _ACEOF
11516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11518   ac_status=$?
11519   grep -v '^ *+' conftest.er1 >conftest.err
11520   rm -f conftest.er1
11521   cat conftest.err >&5
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); } >/dev/null; then
11524   if test -s conftest.err; then
11525     ac_cpp_err=$ac_c_preproc_warn_flag
11526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11527   else
11528     ac_cpp_err=
11529   fi
11530 else
11531   ac_cpp_err=yes
11532 fi
11533 if test -z "$ac_cpp_err"; then
11534   ac_header_preproc=yes
11535 else
11536   echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11538
11539   ac_header_preproc=no
11540 fi
11541 rm -f conftest.err conftest.$ac_ext
11542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11543 echo "${ECHO_T}$ac_header_preproc" >&6
11544
11545 # So?  What about this header?
11546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11547   yes:no: )
11548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11552     ac_header_preproc=yes
11553     ;;
11554   no:yes:* )
11555     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11557     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11558 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11559     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11561     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11562 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11565     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11567     (
11568       cat <<\_ASBOX
11569 ## ------------------------------------ ##
11570 ## Report this to bug-coreutils@gnu.org ##
11571 ## ------------------------------------ ##
11572 _ASBOX
11573     ) |
11574       sed "s/^/$as_me: WARNING:     /" >&2
11575     ;;
11576 esac
11577 echo "$as_me:$LINENO: checking for $ac_header" >&5
11578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11580   echo $ECHO_N "(cached) $ECHO_C" >&6
11581 else
11582   eval "$as_ac_Header=\$ac_header_preproc"
11583 fi
11584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11586
11587 fi
11588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11589   cat >>confdefs.h <<_ACEOF
11590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11591 _ACEOF
11592
11593 fi
11594
11595 done
11596
11597
11598
11599
11600   :
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707 for ac_header in sys/mount.h sys/sysctl.h
11708 do
11709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11710 echo "$as_me:$LINENO: checking for $ac_header" >&5
11711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11713   echo $ECHO_N "(cached) $ECHO_C" >&6
11714 else
11715   cat >conftest.$ac_ext <<_ACEOF
11716 /* confdefs.h.  */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h.  */
11721 $ac_includes_default
11722      #if HAVE_SYS_PARAM_H
11723        #include <sys/param.h>
11724       #endif
11725
11726 #include <$ac_header>
11727 _ACEOF
11728 rm -f conftest.$ac_objext
11729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11730   (eval $ac_compile) 2>conftest.er1
11731   ac_status=$?
11732   grep -v '^ *+' conftest.er1 >conftest.err
11733   rm -f conftest.er1
11734   cat conftest.err >&5
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); } &&
11737          { ac_try='test -z "$ac_c_werror_flag"
11738                          || test ! -s conftest.err'
11739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740   (eval $ac_try) 2>&5
11741   ac_status=$?
11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); }; } &&
11744          { ac_try='test -s conftest.$ac_objext'
11745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746   (eval $ac_try) 2>&5
11747   ac_status=$?
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); }; }; then
11750   eval "$as_ac_Header=yes"
11751 else
11752   echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11754
11755 eval "$as_ac_Header=no"
11756 fi
11757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11758 fi
11759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11762   cat >>confdefs.h <<_ACEOF
11763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11764 _ACEOF
11765
11766 fi
11767
11768 done
11769
11770
11771
11772
11773
11774
11775
11776 ac_header_dirent=no
11777 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11778   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11779 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11780 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11782   echo $ECHO_N "(cached) $ECHO_C" >&6
11783 else
11784   cat >conftest.$ac_ext <<_ACEOF
11785 /* confdefs.h.  */
11786 _ACEOF
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h.  */
11790 #include <sys/types.h>
11791 #include <$ac_hdr>
11792
11793 int
11794 main ()
11795 {
11796 if ((DIR *) 0)
11797 return 0;
11798   ;
11799   return 0;
11800 }
11801 _ACEOF
11802 rm -f conftest.$ac_objext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11804   (eval $ac_compile) 2>conftest.er1
11805   ac_status=$?
11806   grep -v '^ *+' conftest.er1 >conftest.err
11807   rm -f conftest.er1
11808   cat conftest.err >&5
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); } &&
11811          { ac_try='test -z "$ac_c_werror_flag"
11812                          || test ! -s conftest.err'
11813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814   (eval $ac_try) 2>&5
11815   ac_status=$?
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); }; } &&
11818          { ac_try='test -s conftest.$ac_objext'
11819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820   (eval $ac_try) 2>&5
11821   ac_status=$?
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); }; }; then
11824   eval "$as_ac_Header=yes"
11825 else
11826   echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11828
11829 eval "$as_ac_Header=no"
11830 fi
11831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11832 fi
11833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11836   cat >>confdefs.h <<_ACEOF
11837 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11838 _ACEOF
11839
11840 ac_header_dirent=$ac_hdr; break
11841 fi
11842
11843 done
11844 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11845 if test $ac_header_dirent = dirent.h; then
11846   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11848 if test "${ac_cv_search_opendir+set}" = set; then
11849   echo $ECHO_N "(cached) $ECHO_C" >&6
11850 else
11851   ac_func_search_save_LIBS=$LIBS
11852 ac_cv_search_opendir=no
11853 cat >conftest.$ac_ext <<_ACEOF
11854 /* confdefs.h.  */
11855 _ACEOF
11856 cat confdefs.h >>conftest.$ac_ext
11857 cat >>conftest.$ac_ext <<_ACEOF
11858 /* end confdefs.h.  */
11859
11860 /* Override any gcc2 internal prototype to avoid an error.  */
11861 #ifdef __cplusplus
11862 extern "C"
11863 #endif
11864 /* We use char because int might match the return type of a gcc2
11865    builtin and then its argument prototype would still apply.  */
11866 char opendir ();
11867 int
11868 main ()
11869 {
11870 opendir ();
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 rm -f conftest.$ac_objext conftest$ac_exeext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11877   (eval $ac_link) 2>conftest.er1
11878   ac_status=$?
11879   grep -v '^ *+' conftest.er1 >conftest.err
11880   rm -f conftest.er1
11881   cat conftest.err >&5
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); } &&
11884          { ac_try='test -z "$ac_c_werror_flag"
11885                          || test ! -s conftest.err'
11886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887   (eval $ac_try) 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); }; } &&
11891          { ac_try='test -s conftest$ac_exeext'
11892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893   (eval $ac_try) 2>&5
11894   ac_status=$?
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   (exit $ac_status); }; }; then
11897   ac_cv_search_opendir="none required"
11898 else
11899   echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11901
11902 fi
11903 rm -f conftest.err conftest.$ac_objext \
11904       conftest$ac_exeext conftest.$ac_ext
11905 if test "$ac_cv_search_opendir" = no; then
11906   for ac_lib in dir; do
11907     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11908     cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h.  */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h.  */
11914
11915 /* Override any gcc2 internal prototype to avoid an error.  */
11916 #ifdef __cplusplus
11917 extern "C"
11918 #endif
11919 /* We use char because int might match the return type of a gcc2
11920    builtin and then its argument prototype would still apply.  */
11921 char opendir ();
11922 int
11923 main ()
11924 {
11925 opendir ();
11926   ;
11927   return 0;
11928 }
11929 _ACEOF
11930 rm -f conftest.$ac_objext conftest$ac_exeext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11932   (eval $ac_link) 2>conftest.er1
11933   ac_status=$?
11934   grep -v '^ *+' conftest.er1 >conftest.err
11935   rm -f conftest.er1
11936   cat conftest.err >&5
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); } &&
11939          { ac_try='test -z "$ac_c_werror_flag"
11940                          || test ! -s conftest.err'
11941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942   (eval $ac_try) 2>&5
11943   ac_status=$?
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); }; } &&
11946          { ac_try='test -s conftest$ac_exeext'
11947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948   (eval $ac_try) 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); }; }; then
11952   ac_cv_search_opendir="-l$ac_lib"
11953 break
11954 else
11955   echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11957
11958 fi
11959 rm -f conftest.err conftest.$ac_objext \
11960       conftest$ac_exeext conftest.$ac_ext
11961   done
11962 fi
11963 LIBS=$ac_func_search_save_LIBS
11964 fi
11965 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11966 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11967 if test "$ac_cv_search_opendir" != no; then
11968   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11969
11970 fi
11971
11972 else
11973   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11974 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11975 if test "${ac_cv_search_opendir+set}" = set; then
11976   echo $ECHO_N "(cached) $ECHO_C" >&6
11977 else
11978   ac_func_search_save_LIBS=$LIBS
11979 ac_cv_search_opendir=no
11980 cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h.  */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h.  */
11986
11987 /* Override any gcc2 internal prototype to avoid an error.  */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 /* We use char because int might match the return type of a gcc2
11992    builtin and then its argument prototype would still apply.  */
11993 char opendir ();
11994 int
11995 main ()
11996 {
11997 opendir ();
11998   ;
11999   return 0;
12000 }
12001 _ACEOF
12002 rm -f conftest.$ac_objext conftest$ac_exeext
12003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12004   (eval $ac_link) 2>conftest.er1
12005   ac_status=$?
12006   grep -v '^ *+' conftest.er1 >conftest.err
12007   rm -f conftest.er1
12008   cat conftest.err >&5
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); } &&
12011          { ac_try='test -z "$ac_c_werror_flag"
12012                          || test ! -s conftest.err'
12013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014   (eval $ac_try) 2>&5
12015   ac_status=$?
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); }; } &&
12018          { ac_try='test -s conftest$ac_exeext'
12019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020   (eval $ac_try) 2>&5
12021   ac_status=$?
12022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023   (exit $ac_status); }; }; then
12024   ac_cv_search_opendir="none required"
12025 else
12026   echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12028
12029 fi
12030 rm -f conftest.err conftest.$ac_objext \
12031       conftest$ac_exeext conftest.$ac_ext
12032 if test "$ac_cv_search_opendir" = no; then
12033   for ac_lib in x; do
12034     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12035     cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041
12042 /* Override any gcc2 internal prototype to avoid an error.  */
12043 #ifdef __cplusplus
12044 extern "C"
12045 #endif
12046 /* We use char because int might match the return type of a gcc2
12047    builtin and then its argument prototype would still apply.  */
12048 char opendir ();
12049 int
12050 main ()
12051 {
12052 opendir ();
12053   ;
12054   return 0;
12055 }
12056 _ACEOF
12057 rm -f conftest.$ac_objext conftest$ac_exeext
12058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12059   (eval $ac_link) 2>conftest.er1
12060   ac_status=$?
12061   grep -v '^ *+' conftest.er1 >conftest.err
12062   rm -f conftest.er1
12063   cat conftest.err >&5
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); } &&
12066          { ac_try='test -z "$ac_c_werror_flag"
12067                          || test ! -s conftest.err'
12068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069   (eval $ac_try) 2>&5
12070   ac_status=$?
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); }; } &&
12073          { ac_try='test -s conftest$ac_exeext'
12074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12075   (eval $ac_try) 2>&5
12076   ac_status=$?
12077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078   (exit $ac_status); }; }; then
12079   ac_cv_search_opendir="-l$ac_lib"
12080 break
12081 else
12082   echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12084
12085 fi
12086 rm -f conftest.err conftest.$ac_objext \
12087       conftest$ac_exeext conftest.$ac_ext
12088   done
12089 fi
12090 LIBS=$ac_func_search_save_LIBS
12091 fi
12092 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12093 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12094 if test "$ac_cv_search_opendir" != no; then
12095   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12096
12097 fi
12098
12099 fi
12100
12101 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12102 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12103 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12104   echo $ECHO_N "(cached) $ECHO_C" >&6
12105 else
12106   cat >conftest.$ac_ext <<_ACEOF
12107 /* confdefs.h.  */
12108 _ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h.  */
12112 $ac_includes_default
12113 int
12114 main ()
12115 {
12116 static struct stat ac_aggr;
12117 if (ac_aggr.st_blocks)
12118 return 0;
12119   ;
12120   return 0;
12121 }
12122 _ACEOF
12123 rm -f conftest.$ac_objext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125   (eval $ac_compile) 2>conftest.er1
12126   ac_status=$?
12127   grep -v '^ *+' conftest.er1 >conftest.err
12128   rm -f conftest.er1
12129   cat conftest.err >&5
12130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131   (exit $ac_status); } &&
12132          { ac_try='test -z "$ac_c_werror_flag"
12133                          || test ! -s conftest.err'
12134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135   (eval $ac_try) 2>&5
12136   ac_status=$?
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); }; } &&
12139          { ac_try='test -s conftest.$ac_objext'
12140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141   (eval $ac_try) 2>&5
12142   ac_status=$?
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); }; }; then
12145   ac_cv_member_struct_stat_st_blocks=yes
12146 else
12147   echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12149
12150 cat >conftest.$ac_ext <<_ACEOF
12151 /* confdefs.h.  */
12152 _ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h.  */
12156 $ac_includes_default
12157 int
12158 main ()
12159 {
12160 static struct stat ac_aggr;
12161 if (sizeof ac_aggr.st_blocks)
12162 return 0;
12163   ;
12164   return 0;
12165 }
12166 _ACEOF
12167 rm -f conftest.$ac_objext
12168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12169   (eval $ac_compile) 2>conftest.er1
12170   ac_status=$?
12171   grep -v '^ *+' conftest.er1 >conftest.err
12172   rm -f conftest.er1
12173   cat conftest.err >&5
12174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175   (exit $ac_status); } &&
12176          { ac_try='test -z "$ac_c_werror_flag"
12177                          || test ! -s conftest.err'
12178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179   (eval $ac_try) 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); }; } &&
12183          { ac_try='test -s conftest.$ac_objext'
12184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185   (eval $ac_try) 2>&5
12186   ac_status=$?
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); }; }; then
12189   ac_cv_member_struct_stat_st_blocks=yes
12190 else
12191   echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12193
12194 ac_cv_member_struct_stat_st_blocks=no
12195 fi
12196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12197 fi
12198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12199 fi
12200 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12201 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12202 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12203
12204 cat >>confdefs.h <<_ACEOF
12205 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12206 _ACEOF
12207
12208
12209 cat >>confdefs.h <<\_ACEOF
12210 #define HAVE_ST_BLOCKS 1
12211 _ACEOF
12212
12213 else
12214   case $LIBOBJS in
12215     "fileblocks.$ac_objext"   | \
12216   *" fileblocks.$ac_objext"   | \
12217     "fileblocks.$ac_objext "* | \
12218   *" fileblocks.$ac_objext "* ) ;;
12219   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12220 esac
12221
12222 fi
12223
12224
12225 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12226 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12227 if test "${ac_cv_header_stat_broken+set}" = set; then
12228   echo $ECHO_N "(cached) $ECHO_C" >&6
12229 else
12230   cat >conftest.$ac_ext <<_ACEOF
12231 /* confdefs.h.  */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h.  */
12236 #include <sys/types.h>
12237 #include <sys/stat.h>
12238
12239 #if defined(S_ISBLK) && defined(S_IFDIR)
12240 # if S_ISBLK (S_IFDIR)
12241 You lose.
12242 # endif
12243 #endif
12244
12245 #if defined(S_ISBLK) && defined(S_IFCHR)
12246 # if S_ISBLK (S_IFCHR)
12247 You lose.
12248 # endif
12249 #endif
12250
12251 #if defined(S_ISLNK) && defined(S_IFREG)
12252 # if S_ISLNK (S_IFREG)
12253 You lose.
12254 # endif
12255 #endif
12256
12257 #if defined(S_ISSOCK) && defined(S_IFREG)
12258 # if S_ISSOCK (S_IFREG)
12259 You lose.
12260 # endif
12261 #endif
12262
12263 _ACEOF
12264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12265   $EGREP "You lose" >/dev/null 2>&1; then
12266   ac_cv_header_stat_broken=yes
12267 else
12268   ac_cv_header_stat_broken=no
12269 fi
12270 rm -f conftest*
12271
12272 fi
12273 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12274 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12275 if test $ac_cv_header_stat_broken = yes; then
12276
12277 cat >>confdefs.h <<\_ACEOF
12278 #define STAT_MACROS_BROKEN 1
12279 _ACEOF
12280
12281 fi
12282
12283 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
12284 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
12285 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
12286   echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288   ac_save_CPPFLAGS="$CPPFLAGS"
12289     ac_cv_struct_st_mtim_nsec=no
12290     # tv_nsec -- the usual case
12291     # _tv_nsec -- Solaris 2.6, if
12292     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
12293     #    && !defined __EXTENSIONS__)
12294     # st__tim.tv_nsec -- UnixWare 2.1.2
12295     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
12296       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
12297       cat >conftest.$ac_ext <<_ACEOF
12298 /* confdefs.h.  */
12299 _ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h.  */
12303 #include <sys/types.h>
12304 #include <sys/stat.h>
12305 int
12306 main ()
12307 {
12308 struct stat s; s.st_mtim.ST_MTIM_NSEC;
12309   ;
12310   return 0;
12311 }
12312 _ACEOF
12313 rm -f conftest.$ac_objext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12315   (eval $ac_compile) 2>conftest.er1
12316   ac_status=$?
12317   grep -v '^ *+' conftest.er1 >conftest.err
12318   rm -f conftest.er1
12319   cat conftest.err >&5
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); } &&
12322          { ac_try='test -z "$ac_c_werror_flag"
12323                          || test ! -s conftest.err'
12324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325   (eval $ac_try) 2>&5
12326   ac_status=$?
12327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); }; } &&
12329          { ac_try='test -s conftest.$ac_objext'
12330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331   (eval $ac_try) 2>&5
12332   ac_status=$?
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); }; }; then
12335   ac_cv_struct_st_mtim_nsec=$ac_val; break
12336 else
12337   echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12339
12340 fi
12341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12342     done
12343     CPPFLAGS="$ac_save_CPPFLAGS"
12344 fi
12345 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
12346 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
12347
12348   if test $ac_cv_struct_st_mtim_nsec != no; then
12349
12350 cat >>confdefs.h <<_ACEOF
12351 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
12352 _ACEOF
12353
12354   fi
12355
12356
12357 echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
12358 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
12359 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
12360   echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362   cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h.  */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h.  */
12368 #include <sys/types.h>
12369 #include <sys/stat.h>
12370 int
12371 main ()
12372 {
12373 struct stat s; s.st_dm_mode;
12374   ;
12375   return 0;
12376 }
12377 _ACEOF
12378 rm -f conftest.$ac_objext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12380   (eval $ac_compile) 2>conftest.er1
12381   ac_status=$?
12382   grep -v '^ *+' conftest.er1 >conftest.err
12383   rm -f conftest.er1
12384   cat conftest.err >&5
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); } &&
12387          { ac_try='test -z "$ac_c_werror_flag"
12388                          || test ! -s conftest.err'
12389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390   (eval $ac_try) 2>&5
12391   ac_status=$?
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); }; } &&
12394          { ac_try='test -s conftest.$ac_objext'
12395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396   (eval $ac_try) 2>&5
12397   ac_status=$?
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); }; }; then
12400   ac_cv_struct_st_dm_mode=yes
12401 else
12402   echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12404
12405 ac_cv_struct_st_dm_mode=no
12406 fi
12407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12408 fi
12409 echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
12410 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
12411
12412   if test $ac_cv_struct_st_dm_mode = yes; then
12413
12414 cat >>confdefs.h <<\_ACEOF
12415 #define HAVE_ST_DM_MODE 1
12416 _ACEOF
12417
12418   fi
12419
12420
12421 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12422 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12423 if test "${ac_cv_type_uid_t+set}" = set; then
12424   echo $ECHO_N "(cached) $ECHO_C" >&6
12425 else
12426   cat >conftest.$ac_ext <<_ACEOF
12427 /* confdefs.h.  */
12428 _ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h.  */
12432 #include <sys/types.h>
12433
12434 _ACEOF
12435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12436   $EGREP "uid_t" >/dev/null 2>&1; then
12437   ac_cv_type_uid_t=yes
12438 else
12439   ac_cv_type_uid_t=no
12440 fi
12441 rm -f conftest*
12442
12443 fi
12444 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12445 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12446 if test $ac_cv_type_uid_t = no; then
12447
12448 cat >>confdefs.h <<\_ACEOF
12449 #define uid_t int
12450 _ACEOF
12451
12452
12453 cat >>confdefs.h <<\_ACEOF
12454 #define gid_t int
12455 _ACEOF
12456
12457 fi
12458
12459 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
12460 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
12461 if test "${ac_cv_type_getgroups+set}" = set; then
12462   echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464   if test "$cross_compiling" = yes; then
12465   ac_cv_type_getgroups=cross
12466 else
12467   cat >conftest.$ac_ext <<_ACEOF
12468 /* confdefs.h.  */
12469 _ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h.  */
12473 /* Thanks to Mike Rendell for this test.  */
12474 #include <sys/types.h>
12475 #define NGID 256
12476 #undef MAX
12477 #define MAX(x, y) ((x) > (y) ? (x) : (y))
12478
12479 int
12480 main ()
12481 {
12482   gid_t gidset[NGID];
12483   int i, n;
12484   union { gid_t gval; long lval; }  val;
12485
12486   val.lval = -1;
12487   for (i = 0; i < NGID; i++)
12488     gidset[i] = val.gval;
12489   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
12490                  gidset);
12491   /* Exit non-zero if getgroups seems to require an array of ints.  This
12492      happens when gid_t is short but getgroups modifies an array of ints.  */
12493   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
12494 }
12495 _ACEOF
12496 rm -f conftest$ac_exeext
12497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12498   (eval $ac_link) 2>&5
12499   ac_status=$?
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503   (eval $ac_try) 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); }; }; then
12507   ac_cv_type_getgroups=gid_t
12508 else
12509   echo "$as_me: program exited with status $ac_status" >&5
12510 echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12512
12513 ( exit $ac_status )
12514 ac_cv_type_getgroups=int
12515 fi
12516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12517 fi
12518 if test $ac_cv_type_getgroups = cross; then
12519         cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h.  */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h.  */
12525 #include <unistd.h>
12526
12527 _ACEOF
12528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12529   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
12530   ac_cv_type_getgroups=gid_t
12531 else
12532   ac_cv_type_getgroups=int
12533 fi
12534 rm -f conftest*
12535
12536 fi
12537 fi
12538 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
12539 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
12540
12541 cat >>confdefs.h <<_ACEOF
12542 #define GETGROUPS_T $ac_cv_type_getgroups
12543 _ACEOF
12544
12545
12546 echo "$as_me:$LINENO: checking for mbstate_t" >&5
12547 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
12548 if test "${ac_cv_type_mbstate_t+set}" = set; then
12549   echo $ECHO_N "(cached) $ECHO_C" >&6
12550 else
12551   cat >conftest.$ac_ext <<_ACEOF
12552 /* confdefs.h.  */
12553 _ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h.  */
12557 $ac_includes_default
12558 #           include <wchar.h>
12559 int
12560 main ()
12561 {
12562 mbstate_t x; return sizeof x;
12563   ;
12564   return 0;
12565 }
12566 _ACEOF
12567 rm -f conftest.$ac_objext
12568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12569   (eval $ac_compile) 2>conftest.er1
12570   ac_status=$?
12571   grep -v '^ *+' conftest.er1 >conftest.err
12572   rm -f conftest.er1
12573   cat conftest.err >&5
12574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); } &&
12576          { ac_try='test -z "$ac_c_werror_flag"
12577                          || test ! -s conftest.err'
12578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579   (eval $ac_try) 2>&5
12580   ac_status=$?
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); }; } &&
12583          { ac_try='test -s conftest.$ac_objext'
12584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585   (eval $ac_try) 2>&5
12586   ac_status=$?
12587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); }; }; then
12589   ac_cv_type_mbstate_t=yes
12590 else
12591   echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12593
12594 ac_cv_type_mbstate_t=no
12595 fi
12596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12597 fi
12598 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
12599 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
12600    if test $ac_cv_type_mbstate_t = yes; then
12601
12602 cat >>confdefs.h <<\_ACEOF
12603 #define HAVE_MBSTATE_T 1
12604 _ACEOF
12605
12606    else
12607
12608 cat >>confdefs.h <<\_ACEOF
12609 #define mbstate_t int
12610 _ACEOF
12611
12612    fi
12613 echo "$as_me:$LINENO: checking for mode_t" >&5
12614 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12615 if test "${ac_cv_type_mode_t+set}" = set; then
12616   echo $ECHO_N "(cached) $ECHO_C" >&6
12617 else
12618   cat >conftest.$ac_ext <<_ACEOF
12619 /* confdefs.h.  */
12620 _ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h.  */
12624 $ac_includes_default
12625 int
12626 main ()
12627 {
12628 if ((mode_t *) 0)
12629   return 0;
12630 if (sizeof (mode_t))
12631   return 0;
12632   ;
12633   return 0;
12634 }
12635 _ACEOF
12636 rm -f conftest.$ac_objext
12637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12638   (eval $ac_compile) 2>conftest.er1
12639   ac_status=$?
12640   grep -v '^ *+' conftest.er1 >conftest.err
12641   rm -f conftest.er1
12642   cat conftest.err >&5
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); } &&
12645          { ac_try='test -z "$ac_c_werror_flag"
12646                          || test ! -s conftest.err'
12647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648   (eval $ac_try) 2>&5
12649   ac_status=$?
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); }; } &&
12652          { ac_try='test -s conftest.$ac_objext'
12653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654   (eval $ac_try) 2>&5
12655   ac_status=$?
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); }; }; then
12658   ac_cv_type_mode_t=yes
12659 else
12660   echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
12663 ac_cv_type_mode_t=no
12664 fi
12665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12666 fi
12667 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12668 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12669 if test $ac_cv_type_mode_t = yes; then
12670   :
12671 else
12672
12673 cat >>confdefs.h <<_ACEOF
12674 #define mode_t int
12675 _ACEOF
12676
12677 fi
12678
12679 echo "$as_me:$LINENO: checking for off_t" >&5
12680 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12681 if test "${ac_cv_type_off_t+set}" = set; then
12682   echo $ECHO_N "(cached) $ECHO_C" >&6
12683 else
12684   cat >conftest.$ac_ext <<_ACEOF
12685 /* confdefs.h.  */
12686 _ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h.  */
12690 $ac_includes_default
12691 int
12692 main ()
12693 {
12694 if ((off_t *) 0)
12695   return 0;
12696 if (sizeof (off_t))
12697   return 0;
12698   ;
12699   return 0;
12700 }
12701 _ACEOF
12702 rm -f conftest.$ac_objext
12703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12704   (eval $ac_compile) 2>conftest.er1
12705   ac_status=$?
12706   grep -v '^ *+' conftest.er1 >conftest.err
12707   rm -f conftest.er1
12708   cat conftest.err >&5
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); } &&
12711          { ac_try='test -z "$ac_c_werror_flag"
12712                          || test ! -s conftest.err'
12713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714   (eval $ac_try) 2>&5
12715   ac_status=$?
12716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717   (exit $ac_status); }; } &&
12718          { ac_try='test -s conftest.$ac_objext'
12719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720   (eval $ac_try) 2>&5
12721   ac_status=$?
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); }; }; then
12724   ac_cv_type_off_t=yes
12725 else
12726   echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12728
12729 ac_cv_type_off_t=no
12730 fi
12731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12732 fi
12733 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12734 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12735 if test $ac_cv_type_off_t = yes; then
12736   :
12737 else
12738
12739 cat >>confdefs.h <<_ACEOF
12740 #define off_t long
12741 _ACEOF
12742
12743 fi
12744
12745 echo "$as_me:$LINENO: checking for pid_t" >&5
12746 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12747 if test "${ac_cv_type_pid_t+set}" = set; then
12748   echo $ECHO_N "(cached) $ECHO_C" >&6
12749 else
12750   cat >conftest.$ac_ext <<_ACEOF
12751 /* confdefs.h.  */
12752 _ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h.  */
12756 $ac_includes_default
12757 int
12758 main ()
12759 {
12760 if ((pid_t *) 0)
12761   return 0;
12762 if (sizeof (pid_t))
12763   return 0;
12764   ;
12765   return 0;
12766 }
12767 _ACEOF
12768 rm -f conftest.$ac_objext
12769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12770   (eval $ac_compile) 2>conftest.er1
12771   ac_status=$?
12772   grep -v '^ *+' conftest.er1 >conftest.err
12773   rm -f conftest.er1
12774   cat conftest.err >&5
12775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776   (exit $ac_status); } &&
12777          { ac_try='test -z "$ac_c_werror_flag"
12778                          || test ! -s conftest.err'
12779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780   (eval $ac_try) 2>&5
12781   ac_status=$?
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); }; } &&
12784          { ac_try='test -s conftest.$ac_objext'
12785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786   (eval $ac_try) 2>&5
12787   ac_status=$?
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); }; }; then
12790   ac_cv_type_pid_t=yes
12791 else
12792   echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12794
12795 ac_cv_type_pid_t=no
12796 fi
12797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12798 fi
12799 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12800 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12801 if test $ac_cv_type_pid_t = yes; then
12802   :
12803 else
12804
12805 cat >>confdefs.h <<_ACEOF
12806 #define pid_t int
12807 _ACEOF
12808
12809 fi
12810
12811 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12812 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12813 if test "${ac_cv_type_signal+set}" = set; then
12814   echo $ECHO_N "(cached) $ECHO_C" >&6
12815 else
12816   cat >conftest.$ac_ext <<_ACEOF
12817 /* confdefs.h.  */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h.  */
12822 #include <sys/types.h>
12823 #include <signal.h>
12824 #ifdef signal
12825 # undef signal
12826 #endif
12827 #ifdef __cplusplus
12828 extern "C" void (*signal (int, void (*)(int)))(int);
12829 #else
12830 void (*signal ()) ();
12831 #endif
12832
12833 int
12834 main ()
12835 {
12836 int i;
12837   ;
12838   return 0;
12839 }
12840 _ACEOF
12841 rm -f conftest.$ac_objext
12842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12843   (eval $ac_compile) 2>conftest.er1
12844   ac_status=$?
12845   grep -v '^ *+' conftest.er1 >conftest.err
12846   rm -f conftest.er1
12847   cat conftest.err >&5
12848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849   (exit $ac_status); } &&
12850          { ac_try='test -z "$ac_c_werror_flag"
12851                          || test ! -s conftest.err'
12852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853   (eval $ac_try) 2>&5
12854   ac_status=$?
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); }; } &&
12857          { ac_try='test -s conftest.$ac_objext'
12858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859   (eval $ac_try) 2>&5
12860   ac_status=$?
12861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862   (exit $ac_status); }; }; then
12863   ac_cv_type_signal=void
12864 else
12865   echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12867
12868 ac_cv_type_signal=int
12869 fi
12870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12871 fi
12872 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12873 echo "${ECHO_T}$ac_cv_type_signal" >&6
12874
12875 cat >>confdefs.h <<_ACEOF
12876 #define RETSIGTYPE $ac_cv_type_signal
12877 _ACEOF
12878
12879
12880 echo "$as_me:$LINENO: checking for size_t" >&5
12881 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12882 if test "${ac_cv_type_size_t+set}" = set; then
12883   echo $ECHO_N "(cached) $ECHO_C" >&6
12884 else
12885   cat >conftest.$ac_ext <<_ACEOF
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 int
12893 main ()
12894 {
12895 if ((size_t *) 0)
12896   return 0;
12897 if (sizeof (size_t))
12898   return 0;
12899   ;
12900   return 0;
12901 }
12902 _ACEOF
12903 rm -f conftest.$ac_objext
12904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12905   (eval $ac_compile) 2>conftest.er1
12906   ac_status=$?
12907   grep -v '^ *+' conftest.er1 >conftest.err
12908   rm -f conftest.er1
12909   cat conftest.err >&5
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); } &&
12912          { ac_try='test -z "$ac_c_werror_flag"
12913                          || test ! -s conftest.err'
12914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915   (eval $ac_try) 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); }; } &&
12919          { ac_try='test -s conftest.$ac_objext'
12920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921   (eval $ac_try) 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); }; }; then
12925   ac_cv_type_size_t=yes
12926 else
12927   echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12929
12930 ac_cv_type_size_t=no
12931 fi
12932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12933 fi
12934 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12935 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12936 if test $ac_cv_type_size_t = yes; then
12937   :
12938 else
12939
12940 cat >>confdefs.h <<_ACEOF
12941 #define size_t unsigned
12942 _ACEOF
12943
12944 fi
12945
12946
12947   echo "$as_me:$LINENO: checking for uint32_t" >&5
12948 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
12949 if test "${gl_cv_c_uint32_t+set}" = set; then
12950   echo $ECHO_N "(cached) $ECHO_C" >&6
12951 else
12952   gl_cv_c_uint32_t=no
12953      for ac_type in "uint32_t" "unsigned int" \
12954          "unsigned long int" "unsigned short int"; do
12955        cat >conftest.$ac_ext <<_ACEOF
12956 /* confdefs.h.  */
12957 _ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h.  */
12961 $ac_includes_default
12962 int
12963 main ()
12964 {
12965 static int test_array [1 - 2 * !(($ac_type) -1 == 4294967295U)];
12966 test_array [0] = 0
12967
12968   ;
12969   return 0;
12970 }
12971 _ACEOF
12972 rm -f conftest.$ac_objext
12973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12974   (eval $ac_compile) 2>conftest.er1
12975   ac_status=$?
12976   grep -v '^ *+' conftest.er1 >conftest.err
12977   rm -f conftest.er1
12978   cat conftest.err >&5
12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); } &&
12981          { ac_try='test -z "$ac_c_werror_flag"
12982                          || test ! -s conftest.err'
12983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984   (eval $ac_try) 2>&5
12985   ac_status=$?
12986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987   (exit $ac_status); }; } &&
12988          { ac_try='test -s conftest.$ac_objext'
12989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990   (eval $ac_try) 2>&5
12991   ac_status=$?
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); }; }; then
12994   gl_cv_c_uint32_t=$ac_type
12995 else
12996   echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12998
12999 fi
13000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13001        test "$gl_cv_c_uint32_t" != no && break
13002      done
13003 fi
13004 echo "$as_me:$LINENO: result: $gl_cv_c_uint32_t" >&5
13005 echo "${ECHO_T}$gl_cv_c_uint32_t" >&6
13006   case "$gl_cv_c_uint32_t" in
13007   no|uint32_t) ;;
13008   *)
13009
13010 cat >>confdefs.h <<\_ACEOF
13011 #define _UINT32_T 1
13012 _ACEOF
13013
13014
13015 cat >>confdefs.h <<_ACEOF
13016 #define uint32_t $gl_cv_c_uint32_t
13017 _ACEOF
13018
13019     ;;
13020   esac
13021
13022   echo "$as_me:$LINENO: checking for UINT32_MAX" >&5
13023 echo $ECHO_N "checking for UINT32_MAX... $ECHO_C" >&6
13024 if test "${gl_cv_c_uint32_max+set}" = set; then
13025   echo $ECHO_N "(cached) $ECHO_C" >&6
13026 else
13027   cat >conftest.$ac_ext <<_ACEOF
13028 /* confdefs.h.  */
13029 _ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h.  */
13033 $ac_includes_default
13034 int
13035 main ()
13036 {
13037 static int test_array [1 - 2 * !(UINT32_MAX == 4294967295U)];
13038 test_array [0] = 0
13039
13040   ;
13041   return 0;
13042 }
13043 _ACEOF
13044 rm -f conftest.$ac_objext
13045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13046   (eval $ac_compile) 2>conftest.er1
13047   ac_status=$?
13048   grep -v '^ *+' conftest.er1 >conftest.err
13049   rm -f conftest.er1
13050   cat conftest.err >&5
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); } &&
13053          { ac_try='test -z "$ac_c_werror_flag"
13054                          || test ! -s conftest.err'
13055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056   (eval $ac_try) 2>&5
13057   ac_status=$?
13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); }; } &&
13060          { ac_try='test -s conftest.$ac_objext'
13061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062   (eval $ac_try) 2>&5
13063   ac_status=$?
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); }; }; then
13066   gl_cv_c_uint32_max=yes
13067 else
13068   echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13070
13071 gl_cv_c_uint32_max=no
13072 fi
13073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13074 fi
13075 echo "$as_me:$LINENO: result: $gl_cv_c_uint32_max" >&5
13076 echo "${ECHO_T}$gl_cv_c_uint32_max" >&6
13077   case $gl_cv_c_uint32_max,$gl_cv_c_uint32_t in
13078   yes,*) ;;
13079   *,no) ;;
13080   *)
13081
13082 cat >>confdefs.h <<\_ACEOF
13083 #define UINT32_MAX 4294967295U
13084 _ACEOF
13085
13086     ;;
13087   esac
13088
13089
13090   echo "$as_me:$LINENO: checking for inttypes.h" >&5
13091 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
13092 if test "${gl_cv_header_inttypes_h+set}" = set; then
13093   echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095   cat >conftest.$ac_ext <<_ACEOF
13096 /* confdefs.h.  */
13097 _ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h.  */
13101 #include <sys/types.h>
13102 #include <inttypes.h>
13103 int
13104 main ()
13105 {
13106 uintmax_t i = (uintmax_t) -1;
13107   ;
13108   return 0;
13109 }
13110 _ACEOF
13111 rm -f conftest.$ac_objext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13113   (eval $ac_compile) 2>conftest.er1
13114   ac_status=$?
13115   grep -v '^ *+' conftest.er1 >conftest.err
13116   rm -f conftest.er1
13117   cat conftest.err >&5
13118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119   (exit $ac_status); } &&
13120          { ac_try='test -z "$ac_c_werror_flag"
13121                          || test ! -s conftest.err'
13122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123   (eval $ac_try) 2>&5
13124   ac_status=$?
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); }; } &&
13127          { ac_try='test -s conftest.$ac_objext'
13128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129   (eval $ac_try) 2>&5
13130   ac_status=$?
13131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); }; }; then
13133   gl_cv_header_inttypes_h=yes
13134 else
13135   echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13137
13138 gl_cv_header_inttypes_h=no
13139 fi
13140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13141 fi
13142 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
13143 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
13144   if test $gl_cv_header_inttypes_h = yes; then
13145
13146 cat >>confdefs.h <<_ACEOF
13147 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
13148 _ACEOF
13149
13150   fi
13151
13152
13153   echo "$as_me:$LINENO: checking for stdint.h" >&5
13154 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
13155 if test "${gl_cv_header_stdint_h+set}" = set; then
13156   echo $ECHO_N "(cached) $ECHO_C" >&6
13157 else
13158   cat >conftest.$ac_ext <<_ACEOF
13159 /* confdefs.h.  */
13160 _ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h.  */
13164 #include <sys/types.h>
13165 #include <stdint.h>
13166 int
13167 main ()
13168 {
13169 uintmax_t i = (uintmax_t) -1;
13170   ;
13171   return 0;
13172 }
13173 _ACEOF
13174 rm -f conftest.$ac_objext
13175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13176   (eval $ac_compile) 2>conftest.er1
13177   ac_status=$?
13178   grep -v '^ *+' conftest.er1 >conftest.err
13179   rm -f conftest.er1
13180   cat conftest.err >&5
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); } &&
13183          { ac_try='test -z "$ac_c_werror_flag"
13184                          || test ! -s conftest.err'
13185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186   (eval $ac_try) 2>&5
13187   ac_status=$?
13188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189   (exit $ac_status); }; } &&
13190          { ac_try='test -s conftest.$ac_objext'
13191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192   (eval $ac_try) 2>&5
13193   ac_status=$?
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); }; }; then
13196   gl_cv_header_stdint_h=yes
13197 else
13198   echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13200
13201 gl_cv_header_stdint_h=no
13202 fi
13203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13204 fi
13205 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
13206 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
13207   if test $gl_cv_header_stdint_h = yes; then
13208
13209 cat >>confdefs.h <<_ACEOF
13210 #define HAVE_STDINT_H_WITH_UINTMAX 1
13211 _ACEOF
13212
13213   fi
13214
13215
13216   echo "$as_me:$LINENO: checking for unsigned long long" >&5
13217 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
13218 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
13219   echo $ECHO_N "(cached) $ECHO_C" >&6
13220 else
13221   cat >conftest.$ac_ext <<_ACEOF
13222 /* confdefs.h.  */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h.  */
13227 unsigned long long ull = 1ULL; int i = 63;
13228 int
13229 main ()
13230 {
13231 unsigned long long ullmax = (unsigned long long) -1;
13232      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
13233   ;
13234   return 0;
13235 }
13236 _ACEOF
13237 rm -f conftest.$ac_objext conftest$ac_exeext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13239   (eval $ac_link) 2>conftest.er1
13240   ac_status=$?
13241   grep -v '^ *+' conftest.er1 >conftest.err
13242   rm -f conftest.er1
13243   cat conftest.err >&5
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); } &&
13246          { ac_try='test -z "$ac_c_werror_flag"
13247                          || test ! -s conftest.err'
13248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249   (eval $ac_try) 2>&5
13250   ac_status=$?
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); }; } &&
13253          { ac_try='test -s conftest$ac_exeext'
13254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255   (eval $ac_try) 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); }; }; then
13259   ac_cv_type_unsigned_long_long=yes
13260 else
13261   echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13263
13264 ac_cv_type_unsigned_long_long=no
13265 fi
13266 rm -f conftest.err conftest.$ac_objext \
13267       conftest$ac_exeext conftest.$ac_ext
13268 fi
13269 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
13270 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
13271   if test $ac_cv_type_unsigned_long_long = yes; then
13272
13273 cat >>confdefs.h <<\_ACEOF
13274 #define HAVE_UNSIGNED_LONG_LONG 1
13275 _ACEOF
13276
13277   fi
13278
13279
13280
13281
13282   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
13283
13284     test $ac_cv_type_unsigned_long_long = yes \
13285       && ac_type='unsigned long long' \
13286       || ac_type='unsigned long'
13287
13288 cat >>confdefs.h <<_ACEOF
13289 #define uintmax_t $ac_type
13290 _ACEOF
13291
13292   else
13293
13294 cat >>confdefs.h <<\_ACEOF
13295 #define HAVE_UINTMAX_T 1
13296 _ACEOF
13297
13298   fi
13299
13300
13301   echo "$as_me:$LINENO: checking for uintptr_t" >&5
13302 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13303 if test "${gl_cv_c_uintptr_t+set}" = set; then
13304   echo $ECHO_N "(cached) $ECHO_C" >&6
13305 else
13306   gl_cv_c_uintptr_t=no
13307      for ac_type in "uintptr_t" "unsigned int" \
13308          "unsigned long int" "unsigned long long int"; do
13309        cat >conftest.$ac_ext <<_ACEOF
13310 /* confdefs.h.  */
13311 _ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h.  */
13315 $ac_includes_default
13316 int
13317 main ()
13318 {
13319 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof (uintptr_t))];
13320 test_array [0] = 0
13321
13322   ;
13323   return 0;
13324 }
13325 _ACEOF
13326 rm -f conftest.$ac_objext
13327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13328   (eval $ac_compile) 2>conftest.er1
13329   ac_status=$?
13330   grep -v '^ *+' conftest.er1 >conftest.err
13331   rm -f conftest.er1
13332   cat conftest.err >&5
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); } &&
13335          { ac_try='test -z "$ac_c_werror_flag"
13336                          || test ! -s conftest.err'
13337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338   (eval $ac_try) 2>&5
13339   ac_status=$?
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); }; } &&
13342          { ac_try='test -s conftest.$ac_objext'
13343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344   (eval $ac_try) 2>&5
13345   ac_status=$?
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); }; }; then
13348   gl_cv_c_uintptr_t=$ac_type
13349 else
13350   echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13352
13353 fi
13354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13355        test $gl_cv_c_uintptr_t != no && break
13356      done
13357 fi
13358 echo "$as_me:$LINENO: result: $gl_cv_c_uintptr_t" >&5
13359 echo "${ECHO_T}$gl_cv_c_uintptr_t" >&6
13360   case $gl_cv_c_uintptr_t in
13361   no|uintptr_t) ;;
13362   *)
13363
13364 cat >>confdefs.h <<_ACEOF
13365 #define uintptr_t $gl_cv_c_uintptr_t
13366 _ACEOF
13367
13368     ;;
13369   esac
13370
13371         echo "$as_me:$LINENO: checking for UINTPTR_MAX" >&5
13372 echo $ECHO_N "checking for UINTPTR_MAX... $ECHO_C" >&6
13373 if test "${gl_cv_c_uintptr_max+set}" = set; then
13374   echo $ECHO_N "(cached) $ECHO_C" >&6
13375 else
13376   cat >conftest.$ac_ext <<_ACEOF
13377 /* confdefs.h.  */
13378 _ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h.  */
13382 $ac_includes_default
13383 int
13384 main ()
13385 {
13386 #ifndef UINTPTR_MAX
13387              error: UINTPTR_MAX is not defined.
13388             #endif
13389   ;
13390   return 0;
13391 }
13392 _ACEOF
13393 rm -f conftest.$ac_objext
13394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13395   (eval $ac_compile) 2>conftest.er1
13396   ac_status=$?
13397   grep -v '^ *+' conftest.er1 >conftest.err
13398   rm -f conftest.er1
13399   cat conftest.err >&5
13400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); } &&
13402          { ac_try='test -z "$ac_c_werror_flag"
13403                          || test ! -s conftest.err'
13404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405   (eval $ac_try) 2>&5
13406   ac_status=$?
13407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); }; } &&
13409          { ac_try='test -s conftest.$ac_objext'
13410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411   (eval $ac_try) 2>&5
13412   ac_status=$?
13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); }; }; then
13415   gl_cv_c_uintptr_max=yes
13416 else
13417   echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13419
13420 gl_cv_c_uintptr_max=no
13421 fi
13422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13423 fi
13424 echo "$as_me:$LINENO: result: $gl_cv_c_uintptr_max" >&5
13425 echo "${ECHO_T}$gl_cv_c_uintptr_max" >&6
13426   case $gl_cv_c_uintptr_max,$gl_cv_c_uintptr_t in
13427   yes,*) ;;
13428   *,no) ;;
13429   *)
13430
13431 cat >>confdefs.h <<\_ACEOF
13432 #define UINTPTR_MAX ((uintptr_t) -1)
13433 _ACEOF
13434
13435     ;;
13436   esac
13437
13438 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
13439 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
13440 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
13441   echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443   cat >conftest.$ac_ext <<_ACEOF
13444 /* confdefs.h.  */
13445 _ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h.  */
13449 #include <sys/types.h>
13450 int
13451 main ()
13452 {
13453 return makedev(0, 0);
13454   ;
13455   return 0;
13456 }
13457 _ACEOF
13458 rm -f conftest.$ac_objext conftest$ac_exeext
13459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13460   (eval $ac_link) 2>conftest.er1
13461   ac_status=$?
13462   grep -v '^ *+' conftest.er1 >conftest.err
13463   rm -f conftest.er1
13464   cat conftest.err >&5
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); } &&
13467          { ac_try='test -z "$ac_c_werror_flag"
13468                          || test ! -s conftest.err'
13469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470   (eval $ac_try) 2>&5
13471   ac_status=$?
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); }; } &&
13474          { ac_try='test -s conftest$ac_exeext'
13475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476   (eval $ac_try) 2>&5
13477   ac_status=$?
13478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); }; }; then
13480   ac_cv_header_sys_types_h_makedev=yes
13481 else
13482   echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13484
13485 ac_cv_header_sys_types_h_makedev=no
13486 fi
13487 rm -f conftest.err conftest.$ac_objext \
13488       conftest$ac_exeext conftest.$ac_ext
13489
13490 fi
13491 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
13492 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
13493
13494 if test $ac_cv_header_sys_types_h_makedev = no; then
13495 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13496   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13497 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13498 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13499   echo $ECHO_N "(cached) $ECHO_C" >&6
13500 fi
13501 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13502 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13503 else
13504   # Is the header compilable?
13505 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
13506 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
13507 cat >conftest.$ac_ext <<_ACEOF
13508 /* confdefs.h.  */
13509 _ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h.  */
13513 $ac_includes_default
13514 #include <sys/mkdev.h>
13515 _ACEOF
13516 rm -f conftest.$ac_objext
13517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13518   (eval $ac_compile) 2>conftest.er1
13519   ac_status=$?
13520   grep -v '^ *+' conftest.er1 >conftest.err
13521   rm -f conftest.er1
13522   cat conftest.err >&5
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); } &&
13525          { ac_try='test -z "$ac_c_werror_flag"
13526                          || test ! -s conftest.err'
13527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528   (eval $ac_try) 2>&5
13529   ac_status=$?
13530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); }; } &&
13532          { ac_try='test -s conftest.$ac_objext'
13533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534   (eval $ac_try) 2>&5
13535   ac_status=$?
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); }; }; then
13538   ac_header_compiler=yes
13539 else
13540   echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543 ac_header_compiler=no
13544 fi
13545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13547 echo "${ECHO_T}$ac_header_compiler" >&6
13548
13549 # Is the header present?
13550 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
13551 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
13552 cat >conftest.$ac_ext <<_ACEOF
13553 /* confdefs.h.  */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h.  */
13558 #include <sys/mkdev.h>
13559 _ACEOF
13560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13561   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13562   ac_status=$?
13563   grep -v '^ *+' conftest.er1 >conftest.err
13564   rm -f conftest.er1
13565   cat conftest.err >&5
13566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567   (exit $ac_status); } >/dev/null; then
13568   if test -s conftest.err; then
13569     ac_cpp_err=$ac_c_preproc_warn_flag
13570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13571   else
13572     ac_cpp_err=
13573   fi
13574 else
13575   ac_cpp_err=yes
13576 fi
13577 if test -z "$ac_cpp_err"; then
13578   ac_header_preproc=yes
13579 else
13580   echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13582
13583   ac_header_preproc=no
13584 fi
13585 rm -f conftest.err conftest.$ac_ext
13586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13587 echo "${ECHO_T}$ac_header_preproc" >&6
13588
13589 # So?  What about this header?
13590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13591   yes:no: )
13592     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
13593 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13594     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
13595 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
13596     ac_header_preproc=yes
13597     ;;
13598   no:yes:* )
13599     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
13600 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
13601     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
13602 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
13603     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
13604 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
13605     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
13606 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13607     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
13608 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
13609     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
13610 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
13611     (
13612       cat <<\_ASBOX
13613 ## ------------------------------------ ##
13614 ## Report this to bug-coreutils@gnu.org ##
13615 ## ------------------------------------ ##
13616 _ASBOX
13617     ) |
13618       sed "s/^/$as_me: WARNING:     /" >&2
13619     ;;
13620 esac
13621 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13622 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13623 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13624   echo $ECHO_N "(cached) $ECHO_C" >&6
13625 else
13626   ac_cv_header_sys_mkdev_h=$ac_header_preproc
13627 fi
13628 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13629 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13630
13631 fi
13632 if test $ac_cv_header_sys_mkdev_h = yes; then
13633
13634 cat >>confdefs.h <<\_ACEOF
13635 #define MAJOR_IN_MKDEV 1
13636 _ACEOF
13637
13638 fi
13639
13640
13641
13642   if test $ac_cv_header_sys_mkdev_h = no; then
13643     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13644   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13645 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13646 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13647   echo $ECHO_N "(cached) $ECHO_C" >&6
13648 fi
13649 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13650 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13651 else
13652   # Is the header compilable?
13653 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
13654 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
13655 cat >conftest.$ac_ext <<_ACEOF
13656 /* confdefs.h.  */
13657 _ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h.  */
13661 $ac_includes_default
13662 #include <sys/sysmacros.h>
13663 _ACEOF
13664 rm -f conftest.$ac_objext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13666   (eval $ac_compile) 2>conftest.er1
13667   ac_status=$?
13668   grep -v '^ *+' conftest.er1 >conftest.err
13669   rm -f conftest.er1
13670   cat conftest.err >&5
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); } &&
13673          { ac_try='test -z "$ac_c_werror_flag"
13674                          || test ! -s conftest.err'
13675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676   (eval $ac_try) 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }; } &&
13680          { ac_try='test -s conftest.$ac_objext'
13681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682   (eval $ac_try) 2>&5
13683   ac_status=$?
13684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); }; }; then
13686   ac_header_compiler=yes
13687 else
13688   echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13690
13691 ac_header_compiler=no
13692 fi
13693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13695 echo "${ECHO_T}$ac_header_compiler" >&6
13696
13697 # Is the header present?
13698 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
13699 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
13700 cat >conftest.$ac_ext <<_ACEOF
13701 /* confdefs.h.  */
13702 _ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h.  */
13706 #include <sys/sysmacros.h>
13707 _ACEOF
13708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13709   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13710   ac_status=$?
13711   grep -v '^ *+' conftest.er1 >conftest.err
13712   rm -f conftest.er1
13713   cat conftest.err >&5
13714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715   (exit $ac_status); } >/dev/null; then
13716   if test -s conftest.err; then
13717     ac_cpp_err=$ac_c_preproc_warn_flag
13718     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13719   else
13720     ac_cpp_err=
13721   fi
13722 else
13723   ac_cpp_err=yes
13724 fi
13725 if test -z "$ac_cpp_err"; then
13726   ac_header_preproc=yes
13727 else
13728   echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13730
13731   ac_header_preproc=no
13732 fi
13733 rm -f conftest.err conftest.$ac_ext
13734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13735 echo "${ECHO_T}$ac_header_preproc" >&6
13736
13737 # So?  What about this header?
13738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13739   yes:no: )
13740     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
13741 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13742     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
13743 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
13744     ac_header_preproc=yes
13745     ;;
13746   no:yes:* )
13747     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
13748 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
13749     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
13750 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
13751     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
13752 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
13753     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
13754 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13755     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
13756 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
13757     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
13758 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
13759     (
13760       cat <<\_ASBOX
13761 ## ------------------------------------ ##
13762 ## Report this to bug-coreutils@gnu.org ##
13763 ## ------------------------------------ ##
13764 _ASBOX
13765     ) |
13766       sed "s/^/$as_me: WARNING:     /" >&2
13767     ;;
13768 esac
13769 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13770 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13771 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13772   echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
13775 fi
13776 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13777 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13778
13779 fi
13780 if test $ac_cv_header_sys_sysmacros_h = yes; then
13781
13782 cat >>confdefs.h <<\_ACEOF
13783 #define MAJOR_IN_SYSMACROS 1
13784 _ACEOF
13785
13786 fi
13787
13788
13789   fi
13790 fi
13791
13792
13793   echo "$as_me:$LINENO: checking host operating system" >&5
13794 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
13795 if test "${gl_cv_host_operating_system+set}" = set; then
13796   echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798   case $host_os in
13799
13800        # These operating system names do not use the default heuristic below.
13801        # They are in reverse order, so that more-specific prefixes come first.
13802        winnt*)          os='Windows NT';;
13803        vos*)            os='VOS';;
13804        sysv*)           os='Unix System V';;
13805        superux*)        os='SUPER-UX';;
13806        sunos*)          os='SunOS';;
13807        stop*)           os='STOP';;
13808        sco*)            os='SCO Unix';;
13809        riscos*)         os='RISC OS';;
13810        riscix*)         os='RISCiX';;
13811        qnx*)            os='QNX';;
13812        pw32*)           os='PW32';;
13813        ptx*)            os='ptx';;
13814        plan9*)          os='Plan 9';;
13815        osf*)            os='Tru64';;
13816        os2*)            os='OS/2';;
13817        openbsd*)        os='OpenBSD';;
13818        nsk*)            os='NonStop Kernel';;
13819        nonstopux*)      os='NonStop-UX';;
13820        netbsd*-gnu*)    os='GNU/NetBSD';; # NetBSD kernel+libc, GNU userland
13821        netbsd*)         os='NetBSD';;
13822        knetbsd*-gnu)    os='GNU/kNetBSD';; # NetBSD kernel, GNU libc+userland
13823        kfreebsd*-gnu)   os='GNU/kFreeBSD';; # FreeBSD kernel, GNU libc+userland
13824        msdosdjgpp*)     os='DJGPP';;
13825        mpeix*)          os='MPE/iX';;
13826        mint*)           os='MiNT';;
13827        mingw*)          os='MinGW';;
13828        lynxos*)         os='LynxOS';;
13829        linux*)          os='GNU/Linux';;
13830        hpux*)           os='HP-UX';;
13831        hiux*)           os='HI-UX';;
13832        gnu*)            os='GNU';;
13833        freebsd*)        os='FreeBSD';;
13834        dgux*)           os='DG/UX';;
13835        bsdi*)           os='BSD/OS';;
13836        bsd*)            os='BSD';;
13837        beos*)           os='BeOS';;
13838        aux*)            os='A/UX';;
13839        atheos*)         os='AtheOS';;
13840        amigaos*)        os='Amiga OS';;
13841        aix*)            os='AIX';;
13842
13843        # The default heuristic takes the initial alphabetic string
13844        # from $host_os, but capitalizes its first letter.
13845        [A-Za-z]*)
13846          os=`
13847            expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
13848          ``
13849            expr "X$host_os" : 'X.\([A-Za-z]*\)'
13850          `
13851          ;;
13852
13853        # If $host_os does not start with an alphabetic string, use it unchanged.
13854        *)
13855          os=$host_os;;
13856      esac
13857      gl_cv_host_operating_system=$os
13858 fi
13859 echo "$as_me:$LINENO: result: $gl_cv_host_operating_system" >&5
13860 echo "${ECHO_T}$gl_cv_host_operating_system" >&6
13861
13862 cat >>confdefs.h <<_ACEOF
13863 #define HOST_OPERATING_SYSTEM "$gl_cv_host_operating_system"
13864 _ACEOF
13865
13866
13867
13868   echo "$as_me:$LINENO: checking whether to enable assertions" >&5
13869 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
13870   # Check whether --enable-assert or --disable-assert was given.
13871 if test "${enable_assert+set}" = set; then
13872   enableval="$enable_assert"
13873    echo "$as_me:$LINENO: result: no" >&5
13874 echo "${ECHO_T}no" >&6
13875
13876 cat >>confdefs.h <<\_ACEOF
13877 #define NDEBUG 1
13878 _ACEOF
13879
13880 else
13881    echo "$as_me:$LINENO: result: yes" >&5
13882 echo "${ECHO_T}yes" >&6
13883
13884 fi;
13885
13886 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13887 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13888 if test "${ac_cv_header_time+set}" = set; then
13889   echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891   cat >conftest.$ac_ext <<_ACEOF
13892 /* confdefs.h.  */
13893 _ACEOF
13894 cat confdefs.h >>conftest.$ac_ext
13895 cat >>conftest.$ac_ext <<_ACEOF
13896 /* end confdefs.h.  */
13897 #include <sys/types.h>
13898 #include <sys/time.h>
13899 #include <time.h>
13900
13901 int
13902 main ()
13903 {
13904 if ((struct tm *) 0)
13905 return 0;
13906   ;
13907   return 0;
13908 }
13909 _ACEOF
13910 rm -f conftest.$ac_objext
13911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13912   (eval $ac_compile) 2>conftest.er1
13913   ac_status=$?
13914   grep -v '^ *+' conftest.er1 >conftest.err
13915   rm -f conftest.er1
13916   cat conftest.err >&5
13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918   (exit $ac_status); } &&
13919          { ac_try='test -z "$ac_c_werror_flag"
13920                          || test ! -s conftest.err'
13921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922   (eval $ac_try) 2>&5
13923   ac_status=$?
13924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925   (exit $ac_status); }; } &&
13926          { ac_try='test -s conftest.$ac_objext'
13927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928   (eval $ac_try) 2>&5
13929   ac_status=$?
13930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931   (exit $ac_status); }; }; then
13932   ac_cv_header_time=yes
13933 else
13934   echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13936
13937 ac_cv_header_time=no
13938 fi
13939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13940 fi
13941 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13942 echo "${ECHO_T}$ac_cv_header_time" >&6
13943 if test $ac_cv_header_time = yes; then
13944
13945 cat >>confdefs.h <<\_ACEOF
13946 #define TIME_WITH_SYS_TIME 1
13947 _ACEOF
13948
13949 fi
13950
13951
13952
13953   :
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963   echo "$as_me:$LINENO: checking for struct utimbuf" >&5
13964 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
13965 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
13966   echo $ECHO_N "(cached) $ECHO_C" >&6
13967 else
13968   cat >conftest.$ac_ext <<_ACEOF
13969 /* confdefs.h.  */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h.  */
13974
13975 #ifdef TIME_WITH_SYS_TIME
13976 # include <sys/time.h>
13977 # include <time.h>
13978 #else
13979 # ifdef HAVE_SYS_TIME_H
13980 #  include <sys/time.h>
13981 # else
13982 #  include <time.h>
13983 # endif
13984 #endif
13985 #ifdef HAVE_UTIME_H
13986 # include <utime.h>
13987 #endif
13988
13989 int
13990 main ()
13991 {
13992 static struct utimbuf x; x.actime = x.modtime;
13993   ;
13994   return 0;
13995 }
13996 _ACEOF
13997 rm -f conftest.$ac_objext
13998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13999   (eval $ac_compile) 2>conftest.er1
14000   ac_status=$?
14001   grep -v '^ *+' conftest.er1 >conftest.err
14002   rm -f conftest.er1
14003   cat conftest.err >&5
14004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005   (exit $ac_status); } &&
14006          { ac_try='test -z "$ac_c_werror_flag"
14007                          || test ! -s conftest.err'
14008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009   (eval $ac_try) 2>&5
14010   ac_status=$?
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); }; } &&
14013          { ac_try='test -s conftest.$ac_objext'
14014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015   (eval $ac_try) 2>&5
14016   ac_status=$?
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); }; }; then
14019   fu_cv_sys_struct_utimbuf=yes
14020 else
14021   echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14023
14024 fu_cv_sys_struct_utimbuf=no
14025 fi
14026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14027
14028 fi
14029 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
14030 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
14031
14032   if test $fu_cv_sys_struct_utimbuf = yes; then
14033
14034 cat >>confdefs.h <<\_ACEOF
14035 #define HAVE_STRUCT_UTIMBUF 1
14036 _ACEOF
14037
14038   fi
14039
14040    echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
14041 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
14042 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
14043   echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045   cat >conftest.$ac_ext <<_ACEOF
14046 /* confdefs.h.  */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h.  */
14051
14052 #include <sys/types.h>
14053 #ifdef HAVE_DIRENT_H
14054 # include <dirent.h>
14055 #else /* not HAVE_DIRENT_H */
14056 # define dirent direct
14057 # ifdef HAVE_SYS_NDIR_H
14058 #  include <sys/ndir.h>
14059 # endif /* HAVE_SYS_NDIR_H */
14060 # ifdef HAVE_SYS_DIR_H
14061 #  include <sys/dir.h>
14062 # endif /* HAVE_SYS_DIR_H */
14063 # ifdef HAVE_NDIR_H
14064 #  include <ndir.h>
14065 # endif /* HAVE_NDIR_H */
14066 #endif /* HAVE_DIRENT_H */
14067
14068 int
14069 main ()
14070 {
14071 struct dirent dp; dp.d_type = 0;
14072   ;
14073   return 0;
14074 }
14075 _ACEOF
14076 rm -f conftest.$ac_objext conftest$ac_exeext
14077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14078   (eval $ac_link) 2>conftest.er1
14079   ac_status=$?
14080   grep -v '^ *+' conftest.er1 >conftest.err
14081   rm -f conftest.er1
14082   cat conftest.err >&5
14083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   (exit $ac_status); } &&
14085          { ac_try='test -z "$ac_c_werror_flag"
14086                          || test ! -s conftest.err'
14087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088   (eval $ac_try) 2>&5
14089   ac_status=$?
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); }; } &&
14092          { ac_try='test -s conftest$ac_exeext'
14093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14094   (eval $ac_try) 2>&5
14095   ac_status=$?
14096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097   (exit $ac_status); }; }; then
14098   jm_cv_struct_dirent_d_type=yes
14099 else
14100   echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14102
14103 jm_cv_struct_dirent_d_type=no
14104 fi
14105 rm -f conftest.err conftest.$ac_objext \
14106       conftest$ac_exeext conftest.$ac_ext
14107
14108
14109 fi
14110 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
14111 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
14112    if test $jm_cv_struct_dirent_d_type = yes; then
14113
14114 cat >>confdefs.h <<\_ACEOF
14115 #define HAVE_STRUCT_DIRENT_D_TYPE 1
14116 _ACEOF
14117
14118    fi
14119
14120
14121    echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
14122 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
14123 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
14124   echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126   cat >conftest.$ac_ext <<_ACEOF
14127 /* confdefs.h.  */
14128 _ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h.  */
14132
14133 #include <sys/types.h>
14134 #ifdef HAVE_DIRENT_H
14135 # include <dirent.h>
14136 #else /* not HAVE_DIRENT_H */
14137 # define dirent direct
14138 # ifdef HAVE_SYS_NDIR_H
14139 #  include <sys/ndir.h>
14140 # endif /* HAVE_SYS_NDIR_H */
14141 # ifdef HAVE_SYS_DIR_H
14142 #  include <sys/dir.h>
14143 # endif /* HAVE_SYS_DIR_H */
14144 # ifdef HAVE_NDIR_H
14145 #  include <ndir.h>
14146 # endif /* HAVE_NDIR_H */
14147 #endif /* HAVE_DIRENT_H */
14148
14149 int
14150 main ()
14151 {
14152 struct dirent dp; dp.d_ino = 0;
14153   ;
14154   return 0;
14155 }
14156 _ACEOF
14157 rm -f conftest.$ac_objext conftest$ac_exeext
14158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14159   (eval $ac_link) 2>conftest.er1
14160   ac_status=$?
14161   grep -v '^ *+' conftest.er1 >conftest.err
14162   rm -f conftest.er1
14163   cat conftest.err >&5
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); } &&
14166          { ac_try='test -z "$ac_c_werror_flag"
14167                          || test ! -s conftest.err'
14168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169   (eval $ac_try) 2>&5
14170   ac_status=$?
14171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172   (exit $ac_status); }; } &&
14173          { ac_try='test -s conftest$ac_exeext'
14174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175   (eval $ac_try) 2>&5
14176   ac_status=$?
14177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); }; }; then
14179   jm_cv_struct_dirent_d_ino=yes
14180 else
14181   echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14183
14184 jm_cv_struct_dirent_d_ino=no
14185 fi
14186 rm -f conftest.err conftest.$ac_objext \
14187       conftest$ac_exeext conftest.$ac_ext
14188
14189
14190 fi
14191 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
14192 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
14193    if test $jm_cv_struct_dirent_d_ino = yes; then
14194
14195 cat >>confdefs.h <<\_ACEOF
14196 #define D_INO_IN_DIRENT 1
14197 _ACEOF
14198
14199    fi
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214 for ac_header in grp.h memory.h pwd.h string.h strings.h stdlib.h \
14215                    unistd.h sys/time.h utmp.h utmpx.h
14216 do
14217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219   echo "$as_me:$LINENO: checking for $ac_header" >&5
14220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14222   echo $ECHO_N "(cached) $ECHO_C" >&6
14223 fi
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14226 else
14227   # Is the header compilable?
14228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14230 cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h.  */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h.  */
14236 $ac_includes_default
14237 #include <$ac_header>
14238 _ACEOF
14239 rm -f conftest.$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241   (eval $ac_compile) 2>conftest.er1
14242   ac_status=$?
14243   grep -v '^ *+' conftest.er1 >conftest.err
14244   rm -f conftest.er1
14245   cat conftest.err >&5
14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); } &&
14248          { ac_try='test -z "$ac_c_werror_flag"
14249                          || test ! -s conftest.err'
14250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251   (eval $ac_try) 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); }; } &&
14255          { ac_try='test -s conftest.$ac_objext'
14256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257   (eval $ac_try) 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; }; then
14261   ac_header_compiler=yes
14262 else
14263   echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266 ac_header_compiler=no
14267 fi
14268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14270 echo "${ECHO_T}$ac_header_compiler" >&6
14271
14272 # Is the header present?
14273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14275 cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h.  */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h.  */
14281 #include <$ac_header>
14282 _ACEOF
14283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14284   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14285   ac_status=$?
14286   grep -v '^ *+' conftest.er1 >conftest.err
14287   rm -f conftest.er1
14288   cat conftest.err >&5
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); } >/dev/null; then
14291   if test -s conftest.err; then
14292     ac_cpp_err=$ac_c_preproc_warn_flag
14293     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14294   else
14295     ac_cpp_err=
14296   fi
14297 else
14298   ac_cpp_err=yes
14299 fi
14300 if test -z "$ac_cpp_err"; then
14301   ac_header_preproc=yes
14302 else
14303   echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14305
14306   ac_header_preproc=no
14307 fi
14308 rm -f conftest.err conftest.$ac_ext
14309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14310 echo "${ECHO_T}$ac_header_preproc" >&6
14311
14312 # So?  What about this header?
14313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14314   yes:no: )
14315     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14319     ac_header_preproc=yes
14320     ;;
14321   no:yes:* )
14322     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14324     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14325 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14326     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14328     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14329 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14332     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14334     (
14335       cat <<\_ASBOX
14336 ## ------------------------------------ ##
14337 ## Report this to bug-coreutils@gnu.org ##
14338 ## ------------------------------------ ##
14339 _ASBOX
14340     ) |
14341       sed "s/^/$as_me: WARNING:     /" >&2
14342     ;;
14343 esac
14344 echo "$as_me:$LINENO: checking for $ac_header" >&5
14345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   eval "$as_ac_Header=\$ac_header_preproc"
14350 fi
14351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14353
14354 fi
14355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14356   cat >>confdefs.h <<_ACEOF
14357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14358 _ACEOF
14359
14360 fi
14361
14362 done
14363
14364
14365
14366
14367
14368   headers='
14369 #include <stdio.h>
14370 #include <string.h>
14371 #include <stdlib.h>
14372
14373 #if HAVE_UNISTD_H
14374 # include <unistd.h>
14375 #endif
14376
14377 #include <sys/types.h>
14378 #if TIME_WITH_SYS_TIME
14379 # include <sys/time.h>
14380 # include <time.h>
14381 #else
14382 # if HAVE_SYS_TIME_H
14383 #  include <sys/time.h>
14384 # else
14385 #  include <time.h>
14386 # endif
14387 #endif
14388
14389 #if HAVE_UTMP_H
14390 # include <utmp.h>
14391 #endif
14392
14393 #if HAVE_GRP_H
14394 # include <grp.h>
14395 #endif
14396
14397 #if HAVE_PWD_H
14398 # include <pwd.h>
14399 #endif
14400 '
14401
14402   echo "$as_me:$LINENO: checking whether free is declared" >&5
14403 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
14404 if test "${ac_cv_have_decl_free+set}" = set; then
14405   echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407   cat >conftest.$ac_ext <<_ACEOF
14408 /* confdefs.h.  */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h.  */
14413 $headers
14414
14415 int
14416 main ()
14417 {
14418 #ifndef free
14419   char *p = (char *) free;
14420 #endif
14421
14422   ;
14423   return 0;
14424 }
14425 _ACEOF
14426 rm -f conftest.$ac_objext
14427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14428   (eval $ac_compile) 2>conftest.er1
14429   ac_status=$?
14430   grep -v '^ *+' conftest.er1 >conftest.err
14431   rm -f conftest.er1
14432   cat conftest.err >&5
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); } &&
14435          { ac_try='test -z "$ac_c_werror_flag"
14436                          || test ! -s conftest.err'
14437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438   (eval $ac_try) 2>&5
14439   ac_status=$?
14440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441   (exit $ac_status); }; } &&
14442          { ac_try='test -s conftest.$ac_objext'
14443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444   (eval $ac_try) 2>&5
14445   ac_status=$?
14446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447   (exit $ac_status); }; }; then
14448   ac_cv_have_decl_free=yes
14449 else
14450   echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14452
14453 ac_cv_have_decl_free=no
14454 fi
14455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14456 fi
14457 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
14458 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
14459 if test $ac_cv_have_decl_free = yes; then
14460
14461 cat >>confdefs.h <<_ACEOF
14462 #define HAVE_DECL_FREE 1
14463 _ACEOF
14464
14465
14466 else
14467   cat >>confdefs.h <<_ACEOF
14468 #define HAVE_DECL_FREE 0
14469 _ACEOF
14470
14471
14472 fi
14473 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
14474 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
14475 if test "${ac_cv_have_decl_getenv+set}" = set; then
14476   echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14478   cat >conftest.$ac_ext <<_ACEOF
14479 /* confdefs.h.  */
14480 _ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h.  */
14484 $headers
14485
14486 int
14487 main ()
14488 {
14489 #ifndef getenv
14490   char *p = (char *) getenv;
14491 #endif
14492
14493   ;
14494   return 0;
14495 }
14496 _ACEOF
14497 rm -f conftest.$ac_objext
14498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14499   (eval $ac_compile) 2>conftest.er1
14500   ac_status=$?
14501   grep -v '^ *+' conftest.er1 >conftest.err
14502   rm -f conftest.er1
14503   cat conftest.err >&5
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); } &&
14506          { ac_try='test -z "$ac_c_werror_flag"
14507                          || test ! -s conftest.err'
14508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509   (eval $ac_try) 2>&5
14510   ac_status=$?
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); }; } &&
14513          { ac_try='test -s conftest.$ac_objext'
14514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515   (eval $ac_try) 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); }; }; then
14519   ac_cv_have_decl_getenv=yes
14520 else
14521   echo "$as_me: failed program was:" >&5
14522 sed 's/^/| /' conftest.$ac_ext >&5
14523
14524 ac_cv_have_decl_getenv=no
14525 fi
14526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14527 fi
14528 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
14529 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
14530 if test $ac_cv_have_decl_getenv = yes; then
14531
14532 cat >>confdefs.h <<_ACEOF
14533 #define HAVE_DECL_GETENV 1
14534 _ACEOF
14535
14536
14537 else
14538   cat >>confdefs.h <<_ACEOF
14539 #define HAVE_DECL_GETENV 0
14540 _ACEOF
14541
14542
14543 fi
14544 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
14545 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
14546 if test "${ac_cv_have_decl_geteuid+set}" = set; then
14547   echo $ECHO_N "(cached) $ECHO_C" >&6
14548 else
14549   cat >conftest.$ac_ext <<_ACEOF
14550 /* confdefs.h.  */
14551 _ACEOF
14552 cat confdefs.h >>conftest.$ac_ext
14553 cat >>conftest.$ac_ext <<_ACEOF
14554 /* end confdefs.h.  */
14555 $headers
14556
14557 int
14558 main ()
14559 {
14560 #ifndef geteuid
14561   char *p = (char *) geteuid;
14562 #endif
14563
14564   ;
14565   return 0;
14566 }
14567 _ACEOF
14568 rm -f conftest.$ac_objext
14569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14570   (eval $ac_compile) 2>conftest.er1
14571   ac_status=$?
14572   grep -v '^ *+' conftest.er1 >conftest.err
14573   rm -f conftest.er1
14574   cat conftest.err >&5
14575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576   (exit $ac_status); } &&
14577          { ac_try='test -z "$ac_c_werror_flag"
14578                          || test ! -s conftest.err'
14579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580   (eval $ac_try) 2>&5
14581   ac_status=$?
14582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583   (exit $ac_status); }; } &&
14584          { ac_try='test -s conftest.$ac_objext'
14585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586   (eval $ac_try) 2>&5
14587   ac_status=$?
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); }; }; then
14590   ac_cv_have_decl_geteuid=yes
14591 else
14592   echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14594
14595 ac_cv_have_decl_geteuid=no
14596 fi
14597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14598 fi
14599 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
14600 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
14601 if test $ac_cv_have_decl_geteuid = yes; then
14602
14603 cat >>confdefs.h <<_ACEOF
14604 #define HAVE_DECL_GETEUID 1
14605 _ACEOF
14606
14607
14608 else
14609   cat >>confdefs.h <<_ACEOF
14610 #define HAVE_DECL_GETEUID 0
14611 _ACEOF
14612
14613
14614 fi
14615 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
14616 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
14617 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
14618   echo $ECHO_N "(cached) $ECHO_C" >&6
14619 else
14620   cat >conftest.$ac_ext <<_ACEOF
14621 /* confdefs.h.  */
14622 _ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h.  */
14626 $headers
14627
14628 int
14629 main ()
14630 {
14631 #ifndef getgrgid
14632   char *p = (char *) getgrgid;
14633 #endif
14634
14635   ;
14636   return 0;
14637 }
14638 _ACEOF
14639 rm -f conftest.$ac_objext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14641   (eval $ac_compile) 2>conftest.er1
14642   ac_status=$?
14643   grep -v '^ *+' conftest.er1 >conftest.err
14644   rm -f conftest.er1
14645   cat conftest.err >&5
14646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   (exit $ac_status); } &&
14648          { ac_try='test -z "$ac_c_werror_flag"
14649                          || test ! -s conftest.err'
14650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651   (eval $ac_try) 2>&5
14652   ac_status=$?
14653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654   (exit $ac_status); }; } &&
14655          { ac_try='test -s conftest.$ac_objext'
14656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657   (eval $ac_try) 2>&5
14658   ac_status=$?
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); }; }; then
14661   ac_cv_have_decl_getgrgid=yes
14662 else
14663   echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14665
14666 ac_cv_have_decl_getgrgid=no
14667 fi
14668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14669 fi
14670 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
14671 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
14672 if test $ac_cv_have_decl_getgrgid = yes; then
14673
14674 cat >>confdefs.h <<_ACEOF
14675 #define HAVE_DECL_GETGRGID 1
14676 _ACEOF
14677
14678
14679 else
14680   cat >>confdefs.h <<_ACEOF
14681 #define HAVE_DECL_GETGRGID 0
14682 _ACEOF
14683
14684
14685 fi
14686 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
14687 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
14688 if test "${ac_cv_have_decl_getlogin+set}" = set; then
14689   echo $ECHO_N "(cached) $ECHO_C" >&6
14690 else
14691   cat >conftest.$ac_ext <<_ACEOF
14692 /* confdefs.h.  */
14693 _ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h.  */
14697 $headers
14698
14699 int
14700 main ()
14701 {
14702 #ifndef getlogin
14703   char *p = (char *) getlogin;
14704 #endif
14705
14706   ;
14707   return 0;
14708 }
14709 _ACEOF
14710 rm -f conftest.$ac_objext
14711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14712   (eval $ac_compile) 2>conftest.er1
14713   ac_status=$?
14714   grep -v '^ *+' conftest.er1 >conftest.err
14715   rm -f conftest.er1
14716   cat conftest.err >&5
14717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718   (exit $ac_status); } &&
14719          { ac_try='test -z "$ac_c_werror_flag"
14720                          || test ! -s conftest.err'
14721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722   (eval $ac_try) 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); }; } &&
14726          { ac_try='test -s conftest.$ac_objext'
14727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728   (eval $ac_try) 2>&5
14729   ac_status=$?
14730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); }; }; then
14732   ac_cv_have_decl_getlogin=yes
14733 else
14734   echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14736
14737 ac_cv_have_decl_getlogin=no
14738 fi
14739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14740 fi
14741 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
14742 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
14743 if test $ac_cv_have_decl_getlogin = yes; then
14744
14745 cat >>confdefs.h <<_ACEOF
14746 #define HAVE_DECL_GETLOGIN 1
14747 _ACEOF
14748
14749
14750 else
14751   cat >>confdefs.h <<_ACEOF
14752 #define HAVE_DECL_GETLOGIN 0
14753 _ACEOF
14754
14755
14756 fi
14757 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
14758 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
14759 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
14760   echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14762   cat >conftest.$ac_ext <<_ACEOF
14763 /* confdefs.h.  */
14764 _ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h.  */
14768 $headers
14769
14770 int
14771 main ()
14772 {
14773 #ifndef getpwuid
14774   char *p = (char *) getpwuid;
14775 #endif
14776
14777   ;
14778   return 0;
14779 }
14780 _ACEOF
14781 rm -f conftest.$ac_objext
14782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14783   (eval $ac_compile) 2>conftest.er1
14784   ac_status=$?
14785   grep -v '^ *+' conftest.er1 >conftest.err
14786   rm -f conftest.er1
14787   cat conftest.err >&5
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); } &&
14790          { ac_try='test -z "$ac_c_werror_flag"
14791                          || test ! -s conftest.err'
14792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793   (eval $ac_try) 2>&5
14794   ac_status=$?
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); }; } &&
14797          { ac_try='test -s conftest.$ac_objext'
14798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799   (eval $ac_try) 2>&5
14800   ac_status=$?
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); }; }; then
14803   ac_cv_have_decl_getpwuid=yes
14804 else
14805   echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14807
14808 ac_cv_have_decl_getpwuid=no
14809 fi
14810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14811 fi
14812 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
14813 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
14814 if test $ac_cv_have_decl_getpwuid = yes; then
14815
14816 cat >>confdefs.h <<_ACEOF
14817 #define HAVE_DECL_GETPWUID 1
14818 _ACEOF
14819
14820
14821 else
14822   cat >>confdefs.h <<_ACEOF
14823 #define HAVE_DECL_GETPWUID 0
14824 _ACEOF
14825
14826
14827 fi
14828 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
14829 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
14830 if test "${ac_cv_have_decl_getuid+set}" = set; then
14831   echo $ECHO_N "(cached) $ECHO_C" >&6
14832 else
14833   cat >conftest.$ac_ext <<_ACEOF
14834 /* confdefs.h.  */
14835 _ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h.  */
14839 $headers
14840
14841 int
14842 main ()
14843 {
14844 #ifndef getuid
14845   char *p = (char *) getuid;
14846 #endif
14847
14848   ;
14849   return 0;
14850 }
14851 _ACEOF
14852 rm -f conftest.$ac_objext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854   (eval $ac_compile) 2>conftest.er1
14855   ac_status=$?
14856   grep -v '^ *+' conftest.er1 >conftest.err
14857   rm -f conftest.er1
14858   cat conftest.err >&5
14859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860   (exit $ac_status); } &&
14861          { ac_try='test -z "$ac_c_werror_flag"
14862                          || test ! -s conftest.err'
14863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864   (eval $ac_try) 2>&5
14865   ac_status=$?
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); }; } &&
14868          { ac_try='test -s conftest.$ac_objext'
14869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870   (eval $ac_try) 2>&5
14871   ac_status=$?
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); }; }; then
14874   ac_cv_have_decl_getuid=yes
14875 else
14876   echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14878
14879 ac_cv_have_decl_getuid=no
14880 fi
14881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14882 fi
14883 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
14884 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
14885 if test $ac_cv_have_decl_getuid = yes; then
14886
14887 cat >>confdefs.h <<_ACEOF
14888 #define HAVE_DECL_GETUID 1
14889 _ACEOF
14890
14891
14892 else
14893   cat >>confdefs.h <<_ACEOF
14894 #define HAVE_DECL_GETUID 0
14895 _ACEOF
14896
14897
14898 fi
14899 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
14900 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
14901 if test "${ac_cv_have_decl_getutent+set}" = set; then
14902   echo $ECHO_N "(cached) $ECHO_C" >&6
14903 else
14904   cat >conftest.$ac_ext <<_ACEOF
14905 /* confdefs.h.  */
14906 _ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h.  */
14910 $headers
14911
14912 int
14913 main ()
14914 {
14915 #ifndef getutent
14916   char *p = (char *) getutent;
14917 #endif
14918
14919   ;
14920   return 0;
14921 }
14922 _ACEOF
14923 rm -f conftest.$ac_objext
14924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14925   (eval $ac_compile) 2>conftest.er1
14926   ac_status=$?
14927   grep -v '^ *+' conftest.er1 >conftest.err
14928   rm -f conftest.er1
14929   cat conftest.err >&5
14930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931   (exit $ac_status); } &&
14932          { ac_try='test -z "$ac_c_werror_flag"
14933                          || test ! -s conftest.err'
14934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935   (eval $ac_try) 2>&5
14936   ac_status=$?
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); }; } &&
14939          { ac_try='test -s conftest.$ac_objext'
14940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941   (eval $ac_try) 2>&5
14942   ac_status=$?
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); }; }; then
14945   ac_cv_have_decl_getutent=yes
14946 else
14947   echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14949
14950 ac_cv_have_decl_getutent=no
14951 fi
14952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14953 fi
14954 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
14955 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
14956 if test $ac_cv_have_decl_getutent = yes; then
14957
14958 cat >>confdefs.h <<_ACEOF
14959 #define HAVE_DECL_GETUTENT 1
14960 _ACEOF
14961
14962
14963 else
14964   cat >>confdefs.h <<_ACEOF
14965 #define HAVE_DECL_GETUTENT 0
14966 _ACEOF
14967
14968
14969 fi
14970 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
14971 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
14972 if test "${ac_cv_have_decl_lseek+set}" = set; then
14973   echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975   cat >conftest.$ac_ext <<_ACEOF
14976 /* confdefs.h.  */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h.  */
14981 $headers
14982
14983 int
14984 main ()
14985 {
14986 #ifndef lseek
14987   char *p = (char *) lseek;
14988 #endif
14989
14990   ;
14991   return 0;
14992 }
14993 _ACEOF
14994 rm -f conftest.$ac_objext
14995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14996   (eval $ac_compile) 2>conftest.er1
14997   ac_status=$?
14998   grep -v '^ *+' conftest.er1 >conftest.err
14999   rm -f conftest.er1
15000   cat conftest.err >&5
15001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002   (exit $ac_status); } &&
15003          { ac_try='test -z "$ac_c_werror_flag"
15004                          || test ! -s conftest.err'
15005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006   (eval $ac_try) 2>&5
15007   ac_status=$?
15008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009   (exit $ac_status); }; } &&
15010          { ac_try='test -s conftest.$ac_objext'
15011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012   (eval $ac_try) 2>&5
15013   ac_status=$?
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); }; }; then
15016   ac_cv_have_decl_lseek=yes
15017 else
15018   echo "$as_me: failed program was:" >&5
15019 sed 's/^/| /' conftest.$ac_ext >&5
15020
15021 ac_cv_have_decl_lseek=no
15022 fi
15023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15024 fi
15025 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
15026 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
15027 if test $ac_cv_have_decl_lseek = yes; then
15028
15029 cat >>confdefs.h <<_ACEOF
15030 #define HAVE_DECL_LSEEK 1
15031 _ACEOF
15032
15033
15034 else
15035   cat >>confdefs.h <<_ACEOF
15036 #define HAVE_DECL_LSEEK 0
15037 _ACEOF
15038
15039
15040 fi
15041 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
15042 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
15043 if test "${ac_cv_have_decl_malloc+set}" = set; then
15044   echo $ECHO_N "(cached) $ECHO_C" >&6
15045 else
15046   cat >conftest.$ac_ext <<_ACEOF
15047 /* confdefs.h.  */
15048 _ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h.  */
15052 $headers
15053
15054 int
15055 main ()
15056 {
15057 #ifndef malloc
15058   char *p = (char *) malloc;
15059 #endif
15060
15061   ;
15062   return 0;
15063 }
15064 _ACEOF
15065 rm -f conftest.$ac_objext
15066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15067   (eval $ac_compile) 2>conftest.er1
15068   ac_status=$?
15069   grep -v '^ *+' conftest.er1 >conftest.err
15070   rm -f conftest.er1
15071   cat conftest.err >&5
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); } &&
15074          { ac_try='test -z "$ac_c_werror_flag"
15075                          || test ! -s conftest.err'
15076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077   (eval $ac_try) 2>&5
15078   ac_status=$?
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); }; } &&
15081          { ac_try='test -s conftest.$ac_objext'
15082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083   (eval $ac_try) 2>&5
15084   ac_status=$?
15085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086   (exit $ac_status); }; }; then
15087   ac_cv_have_decl_malloc=yes
15088 else
15089   echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15091
15092 ac_cv_have_decl_malloc=no
15093 fi
15094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15095 fi
15096 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
15097 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
15098 if test $ac_cv_have_decl_malloc = yes; then
15099
15100 cat >>confdefs.h <<_ACEOF
15101 #define HAVE_DECL_MALLOC 1
15102 _ACEOF
15103
15104
15105 else
15106   cat >>confdefs.h <<_ACEOF
15107 #define HAVE_DECL_MALLOC 0
15108 _ACEOF
15109
15110
15111 fi
15112 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
15113 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
15114 if test "${ac_cv_have_decl_memchr+set}" = set; then
15115   echo $ECHO_N "(cached) $ECHO_C" >&6
15116 else
15117   cat >conftest.$ac_ext <<_ACEOF
15118 /* confdefs.h.  */
15119 _ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h.  */
15123 $headers
15124
15125 int
15126 main ()
15127 {
15128 #ifndef memchr
15129   char *p = (char *) memchr;
15130 #endif
15131
15132   ;
15133   return 0;
15134 }
15135 _ACEOF
15136 rm -f conftest.$ac_objext
15137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15138   (eval $ac_compile) 2>conftest.er1
15139   ac_status=$?
15140   grep -v '^ *+' conftest.er1 >conftest.err
15141   rm -f conftest.er1
15142   cat conftest.err >&5
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); } &&
15145          { ac_try='test -z "$ac_c_werror_flag"
15146                          || test ! -s conftest.err'
15147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148   (eval $ac_try) 2>&5
15149   ac_status=$?
15150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151   (exit $ac_status); }; } &&
15152          { ac_try='test -s conftest.$ac_objext'
15153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154   (eval $ac_try) 2>&5
15155   ac_status=$?
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); }; }; then
15158   ac_cv_have_decl_memchr=yes
15159 else
15160   echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15162
15163 ac_cv_have_decl_memchr=no
15164 fi
15165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15166 fi
15167 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
15168 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
15169 if test $ac_cv_have_decl_memchr = yes; then
15170
15171 cat >>confdefs.h <<_ACEOF
15172 #define HAVE_DECL_MEMCHR 1
15173 _ACEOF
15174
15175
15176 else
15177   cat >>confdefs.h <<_ACEOF
15178 #define HAVE_DECL_MEMCHR 0
15179 _ACEOF
15180
15181
15182 fi
15183 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
15184 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
15185 if test "${ac_cv_have_decl_memrchr+set}" = set; then
15186   echo $ECHO_N "(cached) $ECHO_C" >&6
15187 else
15188   cat >conftest.$ac_ext <<_ACEOF
15189 /* confdefs.h.  */
15190 _ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h.  */
15194 $headers
15195
15196 int
15197 main ()
15198 {
15199 #ifndef memrchr
15200   char *p = (char *) memrchr;
15201 #endif
15202
15203   ;
15204   return 0;
15205 }
15206 _ACEOF
15207 rm -f conftest.$ac_objext
15208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15209   (eval $ac_compile) 2>conftest.er1
15210   ac_status=$?
15211   grep -v '^ *+' conftest.er1 >conftest.err
15212   rm -f conftest.er1
15213   cat conftest.err >&5
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); } &&
15216          { ac_try='test -z "$ac_c_werror_flag"
15217                          || test ! -s conftest.err'
15218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15219   (eval $ac_try) 2>&5
15220   ac_status=$?
15221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222   (exit $ac_status); }; } &&
15223          { ac_try='test -s conftest.$ac_objext'
15224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15225   (eval $ac_try) 2>&5
15226   ac_status=$?
15227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228   (exit $ac_status); }; }; then
15229   ac_cv_have_decl_memrchr=yes
15230 else
15231   echo "$as_me: failed program was:" >&5
15232 sed 's/^/| /' conftest.$ac_ext >&5
15233
15234 ac_cv_have_decl_memrchr=no
15235 fi
15236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15237 fi
15238 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
15239 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
15240 if test $ac_cv_have_decl_memrchr = yes; then
15241
15242 cat >>confdefs.h <<_ACEOF
15243 #define HAVE_DECL_MEMRCHR 1
15244 _ACEOF
15245
15246
15247 else
15248   cat >>confdefs.h <<_ACEOF
15249 #define HAVE_DECL_MEMRCHR 0
15250 _ACEOF
15251
15252
15253 fi
15254 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
15255 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
15256 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
15257   echo $ECHO_N "(cached) $ECHO_C" >&6
15258 else
15259   cat >conftest.$ac_ext <<_ACEOF
15260 /* confdefs.h.  */
15261 _ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h.  */
15265 $headers
15266
15267 int
15268 main ()
15269 {
15270 #ifndef nanosleep
15271   char *p = (char *) nanosleep;
15272 #endif
15273
15274   ;
15275   return 0;
15276 }
15277 _ACEOF
15278 rm -f conftest.$ac_objext
15279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15280   (eval $ac_compile) 2>conftest.er1
15281   ac_status=$?
15282   grep -v '^ *+' conftest.er1 >conftest.err
15283   rm -f conftest.er1
15284   cat conftest.err >&5
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); } &&
15287          { ac_try='test -z "$ac_c_werror_flag"
15288                          || test ! -s conftest.err'
15289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290   (eval $ac_try) 2>&5
15291   ac_status=$?
15292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293   (exit $ac_status); }; } &&
15294          { ac_try='test -s conftest.$ac_objext'
15295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296   (eval $ac_try) 2>&5
15297   ac_status=$?
15298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   (exit $ac_status); }; }; then
15300   ac_cv_have_decl_nanosleep=yes
15301 else
15302   echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15304
15305 ac_cv_have_decl_nanosleep=no
15306 fi
15307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15308 fi
15309 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
15310 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
15311 if test $ac_cv_have_decl_nanosleep = yes; then
15312
15313 cat >>confdefs.h <<_ACEOF
15314 #define HAVE_DECL_NANOSLEEP 1
15315 _ACEOF
15316
15317
15318 else
15319   cat >>confdefs.h <<_ACEOF
15320 #define HAVE_DECL_NANOSLEEP 0
15321 _ACEOF
15322
15323
15324 fi
15325 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
15326 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
15327 if test "${ac_cv_have_decl_realloc+set}" = set; then
15328   echo $ECHO_N "(cached) $ECHO_C" >&6
15329 else
15330   cat >conftest.$ac_ext <<_ACEOF
15331 /* confdefs.h.  */
15332 _ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h.  */
15336 $headers
15337
15338 int
15339 main ()
15340 {
15341 #ifndef realloc
15342   char *p = (char *) realloc;
15343 #endif
15344
15345   ;
15346   return 0;
15347 }
15348 _ACEOF
15349 rm -f conftest.$ac_objext
15350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15351   (eval $ac_compile) 2>conftest.er1
15352   ac_status=$?
15353   grep -v '^ *+' conftest.er1 >conftest.err
15354   rm -f conftest.er1
15355   cat conftest.err >&5
15356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357   (exit $ac_status); } &&
15358          { ac_try='test -z "$ac_c_werror_flag"
15359                          || test ! -s conftest.err'
15360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361   (eval $ac_try) 2>&5
15362   ac_status=$?
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); }; } &&
15365          { ac_try='test -s conftest.$ac_objext'
15366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367   (eval $ac_try) 2>&5
15368   ac_status=$?
15369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370   (exit $ac_status); }; }; then
15371   ac_cv_have_decl_realloc=yes
15372 else
15373   echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15375
15376 ac_cv_have_decl_realloc=no
15377 fi
15378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15379 fi
15380 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
15381 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
15382 if test $ac_cv_have_decl_realloc = yes; then
15383
15384 cat >>confdefs.h <<_ACEOF
15385 #define HAVE_DECL_REALLOC 1
15386 _ACEOF
15387
15388
15389 else
15390   cat >>confdefs.h <<_ACEOF
15391 #define HAVE_DECL_REALLOC 0
15392 _ACEOF
15393
15394
15395 fi
15396 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
15397 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
15398 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
15399   echo $ECHO_N "(cached) $ECHO_C" >&6
15400 else
15401   cat >conftest.$ac_ext <<_ACEOF
15402 /* confdefs.h.  */
15403 _ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h.  */
15407 $headers
15408
15409 int
15410 main ()
15411 {
15412 #ifndef stpcpy
15413   char *p = (char *) stpcpy;
15414 #endif
15415
15416   ;
15417   return 0;
15418 }
15419 _ACEOF
15420 rm -f conftest.$ac_objext
15421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15422   (eval $ac_compile) 2>conftest.er1
15423   ac_status=$?
15424   grep -v '^ *+' conftest.er1 >conftest.err
15425   rm -f conftest.er1
15426   cat conftest.err >&5
15427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428   (exit $ac_status); } &&
15429          { ac_try='test -z "$ac_c_werror_flag"
15430                          || test ! -s conftest.err'
15431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432   (eval $ac_try) 2>&5
15433   ac_status=$?
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); }; } &&
15436          { ac_try='test -s conftest.$ac_objext'
15437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438   (eval $ac_try) 2>&5
15439   ac_status=$?
15440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441   (exit $ac_status); }; }; then
15442   ac_cv_have_decl_stpcpy=yes
15443 else
15444   echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15446
15447 ac_cv_have_decl_stpcpy=no
15448 fi
15449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15450 fi
15451 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
15452 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
15453 if test $ac_cv_have_decl_stpcpy = yes; then
15454
15455 cat >>confdefs.h <<_ACEOF
15456 #define HAVE_DECL_STPCPY 1
15457 _ACEOF
15458
15459
15460 else
15461   cat >>confdefs.h <<_ACEOF
15462 #define HAVE_DECL_STPCPY 0
15463 _ACEOF
15464
15465
15466 fi
15467 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
15468 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
15469 if test "${ac_cv_have_decl_strndup+set}" = set; then
15470   echo $ECHO_N "(cached) $ECHO_C" >&6
15471 else
15472   cat >conftest.$ac_ext <<_ACEOF
15473 /* confdefs.h.  */
15474 _ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h.  */
15478 $headers
15479
15480 int
15481 main ()
15482 {
15483 #ifndef strndup
15484   char *p = (char *) strndup;
15485 #endif
15486
15487   ;
15488   return 0;
15489 }
15490 _ACEOF
15491 rm -f conftest.$ac_objext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15493   (eval $ac_compile) 2>conftest.er1
15494   ac_status=$?
15495   grep -v '^ *+' conftest.er1 >conftest.err
15496   rm -f conftest.er1
15497   cat conftest.err >&5
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); } &&
15500          { ac_try='test -z "$ac_c_werror_flag"
15501                          || test ! -s conftest.err'
15502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503   (eval $ac_try) 2>&5
15504   ac_status=$?
15505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506   (exit $ac_status); }; } &&
15507          { ac_try='test -s conftest.$ac_objext'
15508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509   (eval $ac_try) 2>&5
15510   ac_status=$?
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); }; }; then
15513   ac_cv_have_decl_strndup=yes
15514 else
15515   echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15517
15518 ac_cv_have_decl_strndup=no
15519 fi
15520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15521 fi
15522 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
15523 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
15524 if test $ac_cv_have_decl_strndup = yes; then
15525
15526 cat >>confdefs.h <<_ACEOF
15527 #define HAVE_DECL_STRNDUP 1
15528 _ACEOF
15529
15530
15531 else
15532   cat >>confdefs.h <<_ACEOF
15533 #define HAVE_DECL_STRNDUP 0
15534 _ACEOF
15535
15536
15537 fi
15538 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
15539 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
15540 if test "${ac_cv_have_decl_strnlen+set}" = set; then
15541   echo $ECHO_N "(cached) $ECHO_C" >&6
15542 else
15543   cat >conftest.$ac_ext <<_ACEOF
15544 /* confdefs.h.  */
15545 _ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h.  */
15549 $headers
15550
15551 int
15552 main ()
15553 {
15554 #ifndef strnlen
15555   char *p = (char *) strnlen;
15556 #endif
15557
15558   ;
15559   return 0;
15560 }
15561 _ACEOF
15562 rm -f conftest.$ac_objext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15564   (eval $ac_compile) 2>conftest.er1
15565   ac_status=$?
15566   grep -v '^ *+' conftest.er1 >conftest.err
15567   rm -f conftest.er1
15568   cat conftest.err >&5
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); } &&
15571          { ac_try='test -z "$ac_c_werror_flag"
15572                          || test ! -s conftest.err'
15573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574   (eval $ac_try) 2>&5
15575   ac_status=$?
15576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577   (exit $ac_status); }; } &&
15578          { ac_try='test -s conftest.$ac_objext'
15579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580   (eval $ac_try) 2>&5
15581   ac_status=$?
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); }; }; then
15584   ac_cv_have_decl_strnlen=yes
15585 else
15586   echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15588
15589 ac_cv_have_decl_strnlen=no
15590 fi
15591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15592 fi
15593 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
15594 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
15595 if test $ac_cv_have_decl_strnlen = yes; then
15596
15597 cat >>confdefs.h <<_ACEOF
15598 #define HAVE_DECL_STRNLEN 1
15599 _ACEOF
15600
15601
15602 else
15603   cat >>confdefs.h <<_ACEOF
15604 #define HAVE_DECL_STRNLEN 0
15605 _ACEOF
15606
15607
15608 fi
15609 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
15610 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
15611 if test "${ac_cv_have_decl_strstr+set}" = set; then
15612   echo $ECHO_N "(cached) $ECHO_C" >&6
15613 else
15614   cat >conftest.$ac_ext <<_ACEOF
15615 /* confdefs.h.  */
15616 _ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h.  */
15620 $headers
15621
15622 int
15623 main ()
15624 {
15625 #ifndef strstr
15626   char *p = (char *) strstr;
15627 #endif
15628
15629   ;
15630   return 0;
15631 }
15632 _ACEOF
15633 rm -f conftest.$ac_objext
15634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15635   (eval $ac_compile) 2>conftest.er1
15636   ac_status=$?
15637   grep -v '^ *+' conftest.er1 >conftest.err
15638   rm -f conftest.er1
15639   cat conftest.err >&5
15640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641   (exit $ac_status); } &&
15642          { ac_try='test -z "$ac_c_werror_flag"
15643                          || test ! -s conftest.err'
15644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645   (eval $ac_try) 2>&5
15646   ac_status=$?
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); }; } &&
15649          { ac_try='test -s conftest.$ac_objext'
15650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651   (eval $ac_try) 2>&5
15652   ac_status=$?
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); }; }; then
15655   ac_cv_have_decl_strstr=yes
15656 else
15657   echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15659
15660 ac_cv_have_decl_strstr=no
15661 fi
15662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15663 fi
15664 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
15665 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
15666 if test $ac_cv_have_decl_strstr = yes; then
15667
15668 cat >>confdefs.h <<_ACEOF
15669 #define HAVE_DECL_STRSTR 1
15670 _ACEOF
15671
15672
15673 else
15674   cat >>confdefs.h <<_ACEOF
15675 #define HAVE_DECL_STRSTR 0
15676 _ACEOF
15677
15678
15679 fi
15680 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
15681 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
15682 if test "${ac_cv_have_decl_strtoul+set}" = set; then
15683   echo $ECHO_N "(cached) $ECHO_C" >&6
15684 else
15685   cat >conftest.$ac_ext <<_ACEOF
15686 /* confdefs.h.  */
15687 _ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h.  */
15691 $headers
15692
15693 int
15694 main ()
15695 {
15696 #ifndef strtoul
15697   char *p = (char *) strtoul;
15698 #endif
15699
15700   ;
15701   return 0;
15702 }
15703 _ACEOF
15704 rm -f conftest.$ac_objext
15705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15706   (eval $ac_compile) 2>conftest.er1
15707   ac_status=$?
15708   grep -v '^ *+' conftest.er1 >conftest.err
15709   rm -f conftest.er1
15710   cat conftest.err >&5
15711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712   (exit $ac_status); } &&
15713          { ac_try='test -z "$ac_c_werror_flag"
15714                          || test ! -s conftest.err'
15715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15716   (eval $ac_try) 2>&5
15717   ac_status=$?
15718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719   (exit $ac_status); }; } &&
15720          { ac_try='test -s conftest.$ac_objext'
15721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722   (eval $ac_try) 2>&5
15723   ac_status=$?
15724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725   (exit $ac_status); }; }; then
15726   ac_cv_have_decl_strtoul=yes
15727 else
15728   echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.$ac_ext >&5
15730
15731 ac_cv_have_decl_strtoul=no
15732 fi
15733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15734 fi
15735 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
15736 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
15737 if test $ac_cv_have_decl_strtoul = yes; then
15738
15739 cat >>confdefs.h <<_ACEOF
15740 #define HAVE_DECL_STRTOUL 1
15741 _ACEOF
15742
15743
15744 else
15745   cat >>confdefs.h <<_ACEOF
15746 #define HAVE_DECL_STRTOUL 0
15747 _ACEOF
15748
15749
15750 fi
15751 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
15752 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
15753 if test "${ac_cv_have_decl_strtoull+set}" = set; then
15754   echo $ECHO_N "(cached) $ECHO_C" >&6
15755 else
15756   cat >conftest.$ac_ext <<_ACEOF
15757 /* confdefs.h.  */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h.  */
15762 $headers
15763
15764 int
15765 main ()
15766 {
15767 #ifndef strtoull
15768   char *p = (char *) strtoull;
15769 #endif
15770
15771   ;
15772   return 0;
15773 }
15774 _ACEOF
15775 rm -f conftest.$ac_objext
15776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15777   (eval $ac_compile) 2>conftest.er1
15778   ac_status=$?
15779   grep -v '^ *+' conftest.er1 >conftest.err
15780   rm -f conftest.er1
15781   cat conftest.err >&5
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); } &&
15784          { ac_try='test -z "$ac_c_werror_flag"
15785                          || test ! -s conftest.err'
15786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787   (eval $ac_try) 2>&5
15788   ac_status=$?
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); }; } &&
15791          { ac_try='test -s conftest.$ac_objext'
15792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793   (eval $ac_try) 2>&5
15794   ac_status=$?
15795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796   (exit $ac_status); }; }; then
15797   ac_cv_have_decl_strtoull=yes
15798 else
15799   echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15801
15802 ac_cv_have_decl_strtoull=no
15803 fi
15804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15805 fi
15806 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
15807 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
15808 if test $ac_cv_have_decl_strtoull = yes; then
15809
15810 cat >>confdefs.h <<_ACEOF
15811 #define HAVE_DECL_STRTOULL 1
15812 _ACEOF
15813
15814
15815 else
15816   cat >>confdefs.h <<_ACEOF
15817 #define HAVE_DECL_STRTOULL 0
15818 _ACEOF
15819
15820
15821 fi
15822 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
15823 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
15824 if test "${ac_cv_have_decl_ttyname+set}" = set; then
15825   echo $ECHO_N "(cached) $ECHO_C" >&6
15826 else
15827   cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h.  */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h.  */
15833 $headers
15834
15835 int
15836 main ()
15837 {
15838 #ifndef ttyname
15839   char *p = (char *) ttyname;
15840 #endif
15841
15842   ;
15843   return 0;
15844 }
15845 _ACEOF
15846 rm -f conftest.$ac_objext
15847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15848   (eval $ac_compile) 2>conftest.er1
15849   ac_status=$?
15850   grep -v '^ *+' conftest.er1 >conftest.err
15851   rm -f conftest.er1
15852   cat conftest.err >&5
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); } &&
15855          { ac_try='test -z "$ac_c_werror_flag"
15856                          || test ! -s conftest.err'
15857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858   (eval $ac_try) 2>&5
15859   ac_status=$?
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); }; } &&
15862          { ac_try='test -s conftest.$ac_objext'
15863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864   (eval $ac_try) 2>&5
15865   ac_status=$?
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); }; }; then
15868   ac_cv_have_decl_ttyname=yes
15869 else
15870   echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15872
15873 ac_cv_have_decl_ttyname=no
15874 fi
15875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15876 fi
15877 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
15878 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
15879 if test $ac_cv_have_decl_ttyname = yes; then
15880
15881 cat >>confdefs.h <<_ACEOF
15882 #define HAVE_DECL_TTYNAME 1
15883 _ACEOF
15884
15885
15886 else
15887   cat >>confdefs.h <<_ACEOF
15888 #define HAVE_DECL_TTYNAME 0
15889 _ACEOF
15890
15891
15892 fi
15893
15894
15895
15896
15897
15898
15899   am_getline_needs_run_time_check=no
15900   echo "$as_me:$LINENO: checking for getline" >&5
15901 echo $ECHO_N "checking for getline... $ECHO_C" >&6
15902 if test "${ac_cv_func_getline+set}" = set; then
15903   echo $ECHO_N "(cached) $ECHO_C" >&6
15904 else
15905   cat >conftest.$ac_ext <<_ACEOF
15906 /* confdefs.h.  */
15907 _ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h.  */
15911 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
15912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15913 #define getline innocuous_getline
15914
15915 /* System header to define __stub macros and hopefully few prototypes,
15916     which can conflict with char getline (); below.
15917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15918     <limits.h> exists even on freestanding compilers.  */
15919
15920 #ifdef __STDC__
15921 # include <limits.h>
15922 #else
15923 # include <assert.h>
15924 #endif
15925
15926 #undef getline
15927
15928 /* Override any gcc2 internal prototype to avoid an error.  */
15929 #ifdef __cplusplus
15930 extern "C"
15931 {
15932 #endif
15933 /* We use char because int might match the return type of a gcc2
15934    builtin and then its argument prototype would still apply.  */
15935 char getline ();
15936 /* The GNU C library defines this for functions which it implements
15937     to always fail with ENOSYS.  Some functions are actually named
15938     something starting with __ and the normal name is an alias.  */
15939 #if defined (__stub_getline) || defined (__stub___getline)
15940 choke me
15941 #else
15942 char (*f) () = getline;
15943 #endif
15944 #ifdef __cplusplus
15945 }
15946 #endif
15947
15948 int
15949 main ()
15950 {
15951 return f != getline;
15952   ;
15953   return 0;
15954 }
15955 _ACEOF
15956 rm -f conftest.$ac_objext conftest$ac_exeext
15957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15958   (eval $ac_link) 2>conftest.er1
15959   ac_status=$?
15960   grep -v '^ *+' conftest.er1 >conftest.err
15961   rm -f conftest.er1
15962   cat conftest.err >&5
15963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964   (exit $ac_status); } &&
15965          { ac_try='test -z "$ac_c_werror_flag"
15966                          || test ! -s conftest.err'
15967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968   (eval $ac_try) 2>&5
15969   ac_status=$?
15970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971   (exit $ac_status); }; } &&
15972          { ac_try='test -s conftest$ac_exeext'
15973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974   (eval $ac_try) 2>&5
15975   ac_status=$?
15976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977   (exit $ac_status); }; }; then
15978   ac_cv_func_getline=yes
15979 else
15980   echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15982
15983 ac_cv_func_getline=no
15984 fi
15985 rm -f conftest.err conftest.$ac_objext \
15986       conftest$ac_exeext conftest.$ac_ext
15987 fi
15988 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
15989 echo "${ECHO_T}$ac_cv_func_getline" >&6
15990 if test $ac_cv_func_getline = yes; then
15991                 am_getline_needs_run_time_check=yes
15992 else
15993   am_cv_func_working_getline=no
15994 fi
15995
15996   if test $am_getline_needs_run_time_check = yes; then
15997     echo "$as_me:$LINENO: checking for working getline function" >&5
15998 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
15999 if test "${am_cv_func_working_getline+set}" = set; then
16000   echo $ECHO_N "(cached) $ECHO_C" >&6
16001 else
16002   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
16003     if test "$cross_compiling" = yes; then
16004   am_cv_func_working_getline=no
16005 else
16006   cat >conftest.$ac_ext <<_ACEOF
16007 /* confdefs.h.  */
16008 _ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h.  */
16012
16013 #    include <stdio.h>
16014 #    include <stdlib.h>
16015 #    include <string.h>
16016     int main ()
16017     { /* Based on a test program from Karl Heuer.  */
16018       char *line = NULL;
16019       size_t siz = 0;
16020       int len;
16021       FILE *in = fopen ("./conftest.data", "r");
16022       if (!in)
16023         return 1;
16024       len = getline (&line, &siz, in);
16025       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
16026     }
16027
16028 _ACEOF
16029 rm -f conftest$ac_exeext
16030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16031   (eval $ac_link) 2>&5
16032   ac_status=$?
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036   (eval $ac_try) 2>&5
16037   ac_status=$?
16038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039   (exit $ac_status); }; }; then
16040   am_cv_func_working_getline=yes
16041 else
16042   echo "$as_me: program exited with status $ac_status" >&5
16043 echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16045
16046 ( exit $ac_status )
16047 am_cv_func_working_getline=no
16048 fi
16049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16050 fi
16051 fi
16052 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
16053 echo "${ECHO_T}$am_cv_func_working_getline" >&6
16054   fi
16055
16056   if test $am_cv_func_working_getline = no; then
16057
16058 cat >>confdefs.h <<\_ACEOF
16059 #define getline gnu_getline
16060 _ACEOF
16061
16062     case $LIBOBJS in
16063     "getline.$ac_objext"   | \
16064   *" getline.$ac_objext"   | \
16065     "getline.$ac_objext "* | \
16066   *" getline.$ac_objext "* ) ;;
16067   *) LIBOBJS="$LIBOBJS getline.$ac_objext" ;;
16068 esac
16069
16070
16071     # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
16072     # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
16073     case " $LIBOBJS " in
16074     *" getndelim2.$ac_objext "* ) ;;
16075     *) case $LIBOBJS in
16076     "getndelim2.$ac_objext"   | \
16077   *" getndelim2.$ac_objext"   | \
16078     "getndelim2.$ac_objext "* | \
16079   *" getndelim2.$ac_objext "* ) ;;
16080   *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
16081 esac
16082 ;;
16083     esac
16084
16085
16086
16087 for ac_func in getdelim
16088 do
16089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16090 echo "$as_me:$LINENO: checking for $ac_func" >&5
16091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16092 if eval "test \"\${$as_ac_var+set}\" = set"; then
16093   echo $ECHO_N "(cached) $ECHO_C" >&6
16094 else
16095   cat >conftest.$ac_ext <<_ACEOF
16096 /* confdefs.h.  */
16097 _ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h.  */
16101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16103 #define $ac_func innocuous_$ac_func
16104
16105 /* System header to define __stub macros and hopefully few prototypes,
16106     which can conflict with char $ac_func (); below.
16107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16108     <limits.h> exists even on freestanding compilers.  */
16109
16110 #ifdef __STDC__
16111 # include <limits.h>
16112 #else
16113 # include <assert.h>
16114 #endif
16115
16116 #undef $ac_func
16117
16118 /* Override any gcc2 internal prototype to avoid an error.  */
16119 #ifdef __cplusplus
16120 extern "C"
16121 {
16122 #endif
16123 /* We use char because int might match the return type of a gcc2
16124    builtin and then its argument prototype would still apply.  */
16125 char $ac_func ();
16126 /* The GNU C library defines this for functions which it implements
16127     to always fail with ENOSYS.  Some functions are actually named
16128     something starting with __ and the normal name is an alias.  */
16129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16130 choke me
16131 #else
16132 char (*f) () = $ac_func;
16133 #endif
16134 #ifdef __cplusplus
16135 }
16136 #endif
16137
16138 int
16139 main ()
16140 {
16141 return f != $ac_func;
16142   ;
16143   return 0;
16144 }
16145 _ACEOF
16146 rm -f conftest.$ac_objext conftest$ac_exeext
16147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16148   (eval $ac_link) 2>conftest.er1
16149   ac_status=$?
16150   grep -v '^ *+' conftest.er1 >conftest.err
16151   rm -f conftest.er1
16152   cat conftest.err >&5
16153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154   (exit $ac_status); } &&
16155          { ac_try='test -z "$ac_c_werror_flag"
16156                          || test ! -s conftest.err'
16157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158   (eval $ac_try) 2>&5
16159   ac_status=$?
16160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161   (exit $ac_status); }; } &&
16162          { ac_try='test -s conftest$ac_exeext'
16163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164   (eval $ac_try) 2>&5
16165   ac_status=$?
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); }; }; then
16168   eval "$as_ac_var=yes"
16169 else
16170   echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16172
16173 eval "$as_ac_var=no"
16174 fi
16175 rm -f conftest.err conftest.$ac_objext \
16176       conftest$ac_exeext conftest.$ac_ext
16177 fi
16178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16180 if test `eval echo '${'$as_ac_var'}'` = yes; then
16181   cat >>confdefs.h <<_ACEOF
16182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16183 _ACEOF
16184
16185 fi
16186 done
16187
16188
16189
16190
16191
16192   fi
16193
16194 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
16195 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
16196 if test "${ac_cv_header_stdbool_h+set}" = set; then
16197   echo $ECHO_N "(cached) $ECHO_C" >&6
16198 else
16199   cat >conftest.$ac_ext <<_ACEOF
16200 /* confdefs.h.  */
16201 _ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h.  */
16205
16206           #include <stdbool.h>
16207           #ifndef bool
16208            "error: bool is not defined"
16209           #endif
16210           #ifndef false
16211            "error: false is not defined"
16212           #endif
16213           #if false
16214            "error: false is not 0"
16215           #endif
16216           #ifndef true
16217            "error: true is not defined"
16218           #endif
16219           #if true != 1
16220            "error: true is not 1"
16221           #endif
16222           #ifndef __bool_true_false_are_defined
16223            "error: __bool_true_false_are_defined is not defined"
16224           #endif
16225
16226           struct s { _Bool s: 1; _Bool t; } s;
16227
16228           char a[true == 1 ? 1 : -1];
16229           char b[false == 0 ? 1 : -1];
16230           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16231           char d[(bool) -0.5 == true ? 1 : -1];
16232           bool e = &s;
16233           char f[(_Bool) -0.0 == false ? 1 : -1];
16234           char g[true];
16235           char h[sizeof (_Bool)];
16236           char i[sizeof s.t];
16237           enum { j = false, k = true, l = false * true, m = true * 256 };
16238           _Bool n[m];
16239           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16240
16241 int
16242 main ()
16243 {
16244
16245           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
16246                   + !m + !n + !o);
16247
16248   ;
16249   return 0;
16250 }
16251 _ACEOF
16252 rm -f conftest.$ac_objext
16253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16254   (eval $ac_compile) 2>conftest.er1
16255   ac_status=$?
16256   grep -v '^ *+' conftest.er1 >conftest.err
16257   rm -f conftest.er1
16258   cat conftest.err >&5
16259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260   (exit $ac_status); } &&
16261          { ac_try='test -z "$ac_c_werror_flag"
16262                          || test ! -s conftest.err'
16263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264   (eval $ac_try) 2>&5
16265   ac_status=$?
16266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); }; } &&
16268          { ac_try='test -s conftest.$ac_objext'
16269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270   (eval $ac_try) 2>&5
16271   ac_status=$?
16272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); }; }; then
16274   ac_cv_header_stdbool_h=yes
16275 else
16276   echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.$ac_ext >&5
16278
16279 ac_cv_header_stdbool_h=no
16280 fi
16281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16282 fi
16283 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
16284 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
16285    echo "$as_me:$LINENO: checking for _Bool" >&5
16286 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
16287 if test "${ac_cv_type__Bool+set}" = set; then
16288   echo $ECHO_N "(cached) $ECHO_C" >&6
16289 else
16290   cat >conftest.$ac_ext <<_ACEOF
16291 /* confdefs.h.  */
16292 _ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h.  */
16296 $ac_includes_default
16297 int
16298 main ()
16299 {
16300 if ((_Bool *) 0)
16301   return 0;
16302 if (sizeof (_Bool))
16303   return 0;
16304   ;
16305   return 0;
16306 }
16307 _ACEOF
16308 rm -f conftest.$ac_objext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16310   (eval $ac_compile) 2>conftest.er1
16311   ac_status=$?
16312   grep -v '^ *+' conftest.er1 >conftest.err
16313   rm -f conftest.er1
16314   cat conftest.err >&5
16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316   (exit $ac_status); } &&
16317          { ac_try='test -z "$ac_c_werror_flag"
16318                          || test ! -s conftest.err'
16319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320   (eval $ac_try) 2>&5
16321   ac_status=$?
16322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323   (exit $ac_status); }; } &&
16324          { ac_try='test -s conftest.$ac_objext'
16325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326   (eval $ac_try) 2>&5
16327   ac_status=$?
16328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329   (exit $ac_status); }; }; then
16330   ac_cv_type__Bool=yes
16331 else
16332   echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16334
16335 ac_cv_type__Bool=no
16336 fi
16337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16338 fi
16339 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
16340 echo "${ECHO_T}$ac_cv_type__Bool" >&6
16341 if test $ac_cv_type__Bool = yes; then
16342
16343 cat >>confdefs.h <<_ACEOF
16344 #define HAVE__BOOL 1
16345 _ACEOF
16346
16347
16348 fi
16349
16350    if test $ac_cv_header_stdbool_h = yes; then
16351
16352 cat >>confdefs.h <<\_ACEOF
16353 #define HAVE_STDBOOL_H 1
16354 _ACEOF
16355
16356    fi
16357
16358
16359
16360   # Define two additional variables used in the Makefile substitution.
16361
16362   if test "$ac_cv_header_stdbool_h" = yes; then
16363     STDBOOL_H=''
16364   else
16365     STDBOOL_H='stdbool.h'
16366   fi
16367
16368
16369   if test "$ac_cv_type__Bool" = yes; then
16370     HAVE__BOOL=1
16371   else
16372     HAVE__BOOL=0
16373   fi
16374
16375
16376   echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
16377 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
16378 if test "${gl_cv_func_mkdir_trailing_slash_bug+set}" = set; then
16379   echo $ECHO_N "(cached) $ECHO_C" >&6
16380 else
16381
16382       # Arrange for deletion of the temporary directory this test might create.
16383       ac_clean_files="$ac_clean_files confdir-slash"
16384       if test "$cross_compiling" = yes; then
16385   gl_cv_func_mkdir_trailing_slash_bug=yes
16386
16387 else
16388   cat >conftest.$ac_ext <<_ACEOF
16389 /* confdefs.h.  */
16390 _ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h.  */
16394
16395 #       include <sys/types.h>
16396 #       include <sys/stat.h>
16397 #       include <stdlib.h>
16398         int main ()
16399         {
16400           rmdir ("confdir-slash");
16401           exit (mkdir ("confdir-slash/", 0700));
16402         }
16403
16404 _ACEOF
16405 rm -f conftest$ac_exeext
16406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16407   (eval $ac_link) 2>&5
16408   ac_status=$?
16409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412   (eval $ac_try) 2>&5
16413   ac_status=$?
16414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415   (exit $ac_status); }; }; then
16416   gl_cv_func_mkdir_trailing_slash_bug=no
16417 else
16418   echo "$as_me: program exited with status $ac_status" >&5
16419 echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16421
16422 ( exit $ac_status )
16423 gl_cv_func_mkdir_trailing_slash_bug=yes
16424 fi
16425 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16426 fi
16427
16428
16429 fi
16430 echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_bug" >&5
16431 echo "${ECHO_T}$gl_cv_func_mkdir_trailing_slash_bug" >&6
16432
16433   if test $gl_cv_func_mkdir_trailing_slash_bug = yes; then
16434     case $LIBOBJS in
16435     "mkdir.$ac_objext"   | \
16436   *" mkdir.$ac_objext"   | \
16437     "mkdir.$ac_objext "* | \
16438   *" mkdir.$ac_objext "* ) ;;
16439   *) LIBOBJS="$LIBOBJS mkdir.$ac_objext" ;;
16440 esac
16441
16442
16443 cat >>confdefs.h <<\_ACEOF
16444 #define mkdir rpl_mkdir
16445 _ACEOF
16446
16447     :
16448   fi
16449
16450
16451       echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16452 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16453 if test "${ac_cv_have_decl_getenv+set}" = set; then
16454   echo $ECHO_N "(cached) $ECHO_C" >&6
16455 else
16456   cat >conftest.$ac_ext <<_ACEOF
16457 /* confdefs.h.  */
16458 _ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h.  */
16462 $ac_includes_default
16463 int
16464 main ()
16465 {
16466 #ifndef getenv
16467   char *p = (char *) getenv;
16468 #endif
16469
16470   ;
16471   return 0;
16472 }
16473 _ACEOF
16474 rm -f conftest.$ac_objext
16475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16476   (eval $ac_compile) 2>conftest.er1
16477   ac_status=$?
16478   grep -v '^ *+' conftest.er1 >conftest.err
16479   rm -f conftest.er1
16480   cat conftest.err >&5
16481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482   (exit $ac_status); } &&
16483          { ac_try='test -z "$ac_c_werror_flag"
16484                          || test ! -s conftest.err'
16485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16486   (eval $ac_try) 2>&5
16487   ac_status=$?
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); }; } &&
16490          { ac_try='test -s conftest.$ac_objext'
16491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492   (eval $ac_try) 2>&5
16493   ac_status=$?
16494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495   (exit $ac_status); }; }; then
16496   ac_cv_have_decl_getenv=yes
16497 else
16498   echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16500
16501 ac_cv_have_decl_getenv=no
16502 fi
16503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16504 fi
16505 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
16506 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
16507 if test $ac_cv_have_decl_getenv = yes; then
16508
16509 cat >>confdefs.h <<_ACEOF
16510 #define HAVE_DECL_GETENV 1
16511 _ACEOF
16512
16513
16514 else
16515   cat >>confdefs.h <<_ACEOF
16516 #define HAVE_DECL_GETENV 0
16517 _ACEOF
16518
16519
16520 fi
16521
16522
16523
16524
16525 for ac_func in mkstemp
16526 do
16527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16528 echo "$as_me:$LINENO: checking for $ac_func" >&5
16529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16530 if eval "test \"\${$as_ac_var+set}\" = set"; then
16531   echo $ECHO_N "(cached) $ECHO_C" >&6
16532 else
16533   cat >conftest.$ac_ext <<_ACEOF
16534 /* confdefs.h.  */
16535 _ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h.  */
16539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16541 #define $ac_func innocuous_$ac_func
16542
16543 /* System header to define __stub macros and hopefully few prototypes,
16544     which can conflict with char $ac_func (); below.
16545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16546     <limits.h> exists even on freestanding compilers.  */
16547
16548 #ifdef __STDC__
16549 # include <limits.h>
16550 #else
16551 # include <assert.h>
16552 #endif
16553
16554 #undef $ac_func
16555
16556 /* Override any gcc2 internal prototype to avoid an error.  */
16557 #ifdef __cplusplus
16558 extern "C"
16559 {
16560 #endif
16561 /* We use char because int might match the return type of a gcc2
16562    builtin and then its argument prototype would still apply.  */
16563 char $ac_func ();
16564 /* The GNU C library defines this for functions which it implements
16565     to always fail with ENOSYS.  Some functions are actually named
16566     something starting with __ and the normal name is an alias.  */
16567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16568 choke me
16569 #else
16570 char (*f) () = $ac_func;
16571 #endif
16572 #ifdef __cplusplus
16573 }
16574 #endif
16575
16576 int
16577 main ()
16578 {
16579 return f != $ac_func;
16580   ;
16581   return 0;
16582 }
16583 _ACEOF
16584 rm -f conftest.$ac_objext conftest$ac_exeext
16585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16586   (eval $ac_link) 2>conftest.er1
16587   ac_status=$?
16588   grep -v '^ *+' conftest.er1 >conftest.err
16589   rm -f conftest.er1
16590   cat conftest.err >&5
16591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592   (exit $ac_status); } &&
16593          { ac_try='test -z "$ac_c_werror_flag"
16594                          || test ! -s conftest.err'
16595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596   (eval $ac_try) 2>&5
16597   ac_status=$?
16598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599   (exit $ac_status); }; } &&
16600          { ac_try='test -s conftest$ac_exeext'
16601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602   (eval $ac_try) 2>&5
16603   ac_status=$?
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); }; }; then
16606   eval "$as_ac_var=yes"
16607 else
16608   echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16610
16611 eval "$as_ac_var=no"
16612 fi
16613 rm -f conftest.err conftest.$ac_objext \
16614       conftest$ac_exeext conftest.$ac_ext
16615 fi
16616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16618 if test `eval echo '${'$as_ac_var'}'` = yes; then
16619   cat >>confdefs.h <<_ACEOF
16620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16621 _ACEOF
16622
16623 else
16624   case $LIBOBJS in
16625     "$ac_func.$ac_objext"   | \
16626   *" $ac_func.$ac_objext"   | \
16627     "$ac_func.$ac_objext "* | \
16628   *" $ac_func.$ac_objext "* ) ;;
16629   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16630 esac
16631
16632 fi
16633 done
16634
16635
16636   if test $ac_cv_func_mkstemp = no; then
16637     gl_cv_func_mkstemp_limitations=yes
16638   else
16639     echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
16640 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
16641 if test "${gl_cv_func_mkstemp_limitations+set}" = set; then
16642   echo $ECHO_N "(cached) $ECHO_C" >&6
16643 else
16644
16645         mkdir conftest.mkstemp
16646         if test "$cross_compiling" = yes; then
16647   gl_cv_func_mkstemp_limitations=yes
16648
16649 else
16650   cat >conftest.$ac_ext <<_ACEOF
16651 /* confdefs.h.  */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h.  */
16656
16657 #           include <stdlib.h>
16658 #           include <unistd.h>
16659             int main ()
16660             {
16661               int i;
16662               for (i = 0; i < 70; i++)
16663                 {
16664                   char template[] = "conftest.mkstemp/coXXXXXX";
16665                   int fd = mkstemp (template);
16666                   if (fd == -1)
16667                     exit (1);
16668                   close (fd);
16669                 }
16670               exit (0);
16671             }
16672
16673 _ACEOF
16674 rm -f conftest$ac_exeext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676   (eval $ac_link) 2>&5
16677   ac_status=$?
16678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   gl_cv_func_mkstemp_limitations=no
16686 else
16687   echo "$as_me: program exited with status $ac_status" >&5
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16690
16691 ( exit $ac_status )
16692 gl_cv_func_mkstemp_limitations=yes
16693 fi
16694 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16695 fi
16696         rm -rf conftest.mkstemp
16697
16698
16699 fi
16700 echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5
16701 echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6
16702   fi
16703
16704   if test $gl_cv_func_mkstemp_limitations = yes; then
16705     case $LIBOBJS in
16706     "mkstemp.$ac_objext"   | \
16707   *" mkstemp.$ac_objext"   | \
16708     "mkstemp.$ac_objext "* | \
16709   *" mkstemp.$ac_objext "* ) ;;
16710   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
16711 esac
16712
16713     case $LIBOBJS in
16714     "tempname.$ac_objext"   | \
16715   *" tempname.$ac_objext"   | \
16716     "tempname.$ac_objext "* | \
16717   *" tempname.$ac_objext "* ) ;;
16718   *) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;;
16719 esac
16720
16721
16722 cat >>confdefs.h <<\_ACEOF
16723 #define mkstemp rpl_mkstemp
16724 _ACEOF
16725
16726
16727
16728
16729
16730
16731   :
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744 for ac_header in stdint.h
16745 do
16746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16748   echo "$as_me:$LINENO: checking for $ac_header" >&5
16749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16751   echo $ECHO_N "(cached) $ECHO_C" >&6
16752 fi
16753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16755 else
16756   # Is the header compilable?
16757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16759 cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h.  */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h.  */
16765 $ac_includes_default
16766 #include <$ac_header>
16767 _ACEOF
16768 rm -f conftest.$ac_objext
16769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16770   (eval $ac_compile) 2>conftest.er1
16771   ac_status=$?
16772   grep -v '^ *+' conftest.er1 >conftest.err
16773   rm -f conftest.er1
16774   cat conftest.err >&5
16775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776   (exit $ac_status); } &&
16777          { ac_try='test -z "$ac_c_werror_flag"
16778                          || test ! -s conftest.err'
16779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780   (eval $ac_try) 2>&5
16781   ac_status=$?
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); }; } &&
16784          { ac_try='test -s conftest.$ac_objext'
16785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786   (eval $ac_try) 2>&5
16787   ac_status=$?
16788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789   (exit $ac_status); }; }; then
16790   ac_header_compiler=yes
16791 else
16792   echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16794
16795 ac_header_compiler=no
16796 fi
16797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16799 echo "${ECHO_T}$ac_header_compiler" >&6
16800
16801 # Is the header present?
16802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16804 cat >conftest.$ac_ext <<_ACEOF
16805 /* confdefs.h.  */
16806 _ACEOF
16807 cat confdefs.h >>conftest.$ac_ext
16808 cat >>conftest.$ac_ext <<_ACEOF
16809 /* end confdefs.h.  */
16810 #include <$ac_header>
16811 _ACEOF
16812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16814   ac_status=$?
16815   grep -v '^ *+' conftest.er1 >conftest.err
16816   rm -f conftest.er1
16817   cat conftest.err >&5
16818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819   (exit $ac_status); } >/dev/null; then
16820   if test -s conftest.err; then
16821     ac_cpp_err=$ac_c_preproc_warn_flag
16822     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16823   else
16824     ac_cpp_err=
16825   fi
16826 else
16827   ac_cpp_err=yes
16828 fi
16829 if test -z "$ac_cpp_err"; then
16830   ac_header_preproc=yes
16831 else
16832   echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.$ac_ext >&5
16834
16835   ac_header_preproc=no
16836 fi
16837 rm -f conftest.err conftest.$ac_ext
16838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16839 echo "${ECHO_T}$ac_header_preproc" >&6
16840
16841 # So?  What about this header?
16842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16843   yes:no: )
16844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16848     ac_header_preproc=yes
16849     ;;
16850   no:yes:* )
16851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16863     (
16864       cat <<\_ASBOX
16865 ## ------------------------------------ ##
16866 ## Report this to bug-coreutils@gnu.org ##
16867 ## ------------------------------------ ##
16868 _ASBOX
16869     ) |
16870       sed "s/^/$as_me: WARNING:     /" >&2
16871     ;;
16872 esac
16873 echo "$as_me:$LINENO: checking for $ac_header" >&5
16874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16876   echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878   eval "$as_ac_Header=\$ac_header_preproc"
16879 fi
16880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16882
16883 fi
16884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16885   cat >>confdefs.h <<_ACEOF
16886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16887 _ACEOF
16888
16889 fi
16890
16891 done
16892
16893
16894
16895 for ac_func in __secure_getenv gettimeofday
16896 do
16897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16898 echo "$as_me:$LINENO: checking for $ac_func" >&5
16899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16900 if eval "test \"\${$as_ac_var+set}\" = set"; then
16901   echo $ECHO_N "(cached) $ECHO_C" >&6
16902 else
16903   cat >conftest.$ac_ext <<_ACEOF
16904 /* confdefs.h.  */
16905 _ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h.  */
16909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16911 #define $ac_func innocuous_$ac_func
16912
16913 /* System header to define __stub macros and hopefully few prototypes,
16914     which can conflict with char $ac_func (); below.
16915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16916     <limits.h> exists even on freestanding compilers.  */
16917
16918 #ifdef __STDC__
16919 # include <limits.h>
16920 #else
16921 # include <assert.h>
16922 #endif
16923
16924 #undef $ac_func
16925
16926 /* Override any gcc2 internal prototype to avoid an error.  */
16927 #ifdef __cplusplus
16928 extern "C"
16929 {
16930 #endif
16931 /* We use char because int might match the return type of a gcc2
16932    builtin and then its argument prototype would still apply.  */
16933 char $ac_func ();
16934 /* The GNU C library defines this for functions which it implements
16935     to always fail with ENOSYS.  Some functions are actually named
16936     something starting with __ and the normal name is an alias.  */
16937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16938 choke me
16939 #else
16940 char (*f) () = $ac_func;
16941 #endif
16942 #ifdef __cplusplus
16943 }
16944 #endif
16945
16946 int
16947 main ()
16948 {
16949 return f != $ac_func;
16950   ;
16951   return 0;
16952 }
16953 _ACEOF
16954 rm -f conftest.$ac_objext conftest$ac_exeext
16955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16956   (eval $ac_link) 2>conftest.er1
16957   ac_status=$?
16958   grep -v '^ *+' conftest.er1 >conftest.err
16959   rm -f conftest.er1
16960   cat conftest.err >&5
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); } &&
16963          { ac_try='test -z "$ac_c_werror_flag"
16964                          || test ! -s conftest.err'
16965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966   (eval $ac_try) 2>&5
16967   ac_status=$?
16968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969   (exit $ac_status); }; } &&
16970          { ac_try='test -s conftest$ac_exeext'
16971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972   (eval $ac_try) 2>&5
16973   ac_status=$?
16974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975   (exit $ac_status); }; }; then
16976   eval "$as_ac_var=yes"
16977 else
16978   echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16980
16981 eval "$as_ac_var=no"
16982 fi
16983 rm -f conftest.err conftest.$ac_objext \
16984       conftest$ac_exeext conftest.$ac_ext
16985 fi
16986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16988 if test `eval echo '${'$as_ac_var'}'` = yes; then
16989   cat >>confdefs.h <<_ACEOF
16990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16991 _ACEOF
16992
16993 fi
16994 done
16995
16996
16997   :
16998
16999
17000
17001
17002
17003
17004
17005   fi
17006
17007 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17008 # for constant arguments.  Useless!
17009 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17010 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17011 if test "${ac_cv_working_alloca_h+set}" = set; then
17012   echo $ECHO_N "(cached) $ECHO_C" >&6
17013 else
17014   cat >conftest.$ac_ext <<_ACEOF
17015 /* confdefs.h.  */
17016 _ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h.  */
17020 #include <alloca.h>
17021 int
17022 main ()
17023 {
17024 char *p = (char *) alloca (2 * sizeof (int));
17025   ;
17026   return 0;
17027 }
17028 _ACEOF
17029 rm -f conftest.$ac_objext conftest$ac_exeext
17030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17031   (eval $ac_link) 2>conftest.er1
17032   ac_status=$?
17033   grep -v '^ *+' conftest.er1 >conftest.err
17034   rm -f conftest.er1
17035   cat conftest.err >&5
17036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037   (exit $ac_status); } &&
17038          { ac_try='test -z "$ac_c_werror_flag"
17039                          || test ! -s conftest.err'
17040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041   (eval $ac_try) 2>&5
17042   ac_status=$?
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); }; } &&
17045          { ac_try='test -s conftest$ac_exeext'
17046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047   (eval $ac_try) 2>&5
17048   ac_status=$?
17049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050   (exit $ac_status); }; }; then
17051   ac_cv_working_alloca_h=yes
17052 else
17053   echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.$ac_ext >&5
17055
17056 ac_cv_working_alloca_h=no
17057 fi
17058 rm -f conftest.err conftest.$ac_objext \
17059       conftest$ac_exeext conftest.$ac_ext
17060 fi
17061 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17062 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17063 if test $ac_cv_working_alloca_h = yes; then
17064
17065 cat >>confdefs.h <<\_ACEOF
17066 #define HAVE_ALLOCA_H 1
17067 _ACEOF
17068
17069 fi
17070
17071 echo "$as_me:$LINENO: checking for alloca" >&5
17072 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17073 if test "${ac_cv_func_alloca_works+set}" = set; then
17074   echo $ECHO_N "(cached) $ECHO_C" >&6
17075 else
17076   cat >conftest.$ac_ext <<_ACEOF
17077 /* confdefs.h.  */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h.  */
17082 #ifdef __GNUC__
17083 # define alloca __builtin_alloca
17084 #else
17085 # ifdef _MSC_VER
17086 #  include <malloc.h>
17087 #  define alloca _alloca
17088 # else
17089 #  if HAVE_ALLOCA_H
17090 #   include <alloca.h>
17091 #  else
17092 #   ifdef _AIX
17093  #pragma alloca
17094 #   else
17095 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17096 char *alloca ();
17097 #    endif
17098 #   endif
17099 #  endif
17100 # endif
17101 #endif
17102
17103 int
17104 main ()
17105 {
17106 char *p = (char *) alloca (1);
17107   ;
17108   return 0;
17109 }
17110 _ACEOF
17111 rm -f conftest.$ac_objext conftest$ac_exeext
17112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17113   (eval $ac_link) 2>conftest.er1
17114   ac_status=$?
17115   grep -v '^ *+' conftest.er1 >conftest.err
17116   rm -f conftest.er1
17117   cat conftest.err >&5
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); } &&
17120          { ac_try='test -z "$ac_c_werror_flag"
17121                          || test ! -s conftest.err'
17122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123   (eval $ac_try) 2>&5
17124   ac_status=$?
17125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126   (exit $ac_status); }; } &&
17127          { ac_try='test -s conftest$ac_exeext'
17128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129   (eval $ac_try) 2>&5
17130   ac_status=$?
17131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); }; }; then
17133   ac_cv_func_alloca_works=yes
17134 else
17135   echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17137
17138 ac_cv_func_alloca_works=no
17139 fi
17140 rm -f conftest.err conftest.$ac_objext \
17141       conftest$ac_exeext conftest.$ac_ext
17142 fi
17143 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17144 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17145
17146 if test $ac_cv_func_alloca_works = yes; then
17147
17148 cat >>confdefs.h <<\_ACEOF
17149 #define HAVE_ALLOCA 1
17150 _ACEOF
17151
17152 else
17153   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17154 # that cause trouble.  Some versions do not even contain alloca or
17155 # contain a buggy version.  If you still want to use their alloca,
17156 # use ar to extract alloca.o from them instead of compiling alloca.c.
17157
17158 ALLOCA=alloca.$ac_objext
17159
17160 cat >>confdefs.h <<\_ACEOF
17161 #define C_ALLOCA 1
17162 _ACEOF
17163
17164
17165 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17166 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17167 if test "${ac_cv_os_cray+set}" = set; then
17168   echo $ECHO_N "(cached) $ECHO_C" >&6
17169 else
17170   cat >conftest.$ac_ext <<_ACEOF
17171 /* confdefs.h.  */
17172 _ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h.  */
17176 #if defined(CRAY) && ! defined(CRAY2)
17177 webecray
17178 #else
17179 wenotbecray
17180 #endif
17181
17182 _ACEOF
17183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17184   $EGREP "webecray" >/dev/null 2>&1; then
17185   ac_cv_os_cray=yes
17186 else
17187   ac_cv_os_cray=no
17188 fi
17189 rm -f conftest*
17190
17191 fi
17192 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17193 echo "${ECHO_T}$ac_cv_os_cray" >&6
17194 if test $ac_cv_os_cray = yes; then
17195   for ac_func in _getb67 GETB67 getb67; do
17196     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17197 echo "$as_me:$LINENO: checking for $ac_func" >&5
17198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17199 if eval "test \"\${$as_ac_var+set}\" = set"; then
17200   echo $ECHO_N "(cached) $ECHO_C" >&6
17201 else
17202   cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h.  */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h.  */
17208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17209    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17210 #define $ac_func innocuous_$ac_func
17211
17212 /* System header to define __stub macros and hopefully few prototypes,
17213     which can conflict with char $ac_func (); below.
17214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17215     <limits.h> exists even on freestanding compilers.  */
17216
17217 #ifdef __STDC__
17218 # include <limits.h>
17219 #else
17220 # include <assert.h>
17221 #endif
17222
17223 #undef $ac_func
17224
17225 /* Override any gcc2 internal prototype to avoid an error.  */
17226 #ifdef __cplusplus
17227 extern "C"
17228 {
17229 #endif
17230 /* We use char because int might match the return type of a gcc2
17231    builtin and then its argument prototype would still apply.  */
17232 char $ac_func ();
17233 /* The GNU C library defines this for functions which it implements
17234     to always fail with ENOSYS.  Some functions are actually named
17235     something starting with __ and the normal name is an alias.  */
17236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17237 choke me
17238 #else
17239 char (*f) () = $ac_func;
17240 #endif
17241 #ifdef __cplusplus
17242 }
17243 #endif
17244
17245 int
17246 main ()
17247 {
17248 return f != $ac_func;
17249   ;
17250   return 0;
17251 }
17252 _ACEOF
17253 rm -f conftest.$ac_objext conftest$ac_exeext
17254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17255   (eval $ac_link) 2>conftest.er1
17256   ac_status=$?
17257   grep -v '^ *+' conftest.er1 >conftest.err
17258   rm -f conftest.er1
17259   cat conftest.err >&5
17260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261   (exit $ac_status); } &&
17262          { ac_try='test -z "$ac_c_werror_flag"
17263                          || test ! -s conftest.err'
17264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265   (eval $ac_try) 2>&5
17266   ac_status=$?
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); }; } &&
17269          { ac_try='test -s conftest$ac_exeext'
17270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271   (eval $ac_try) 2>&5
17272   ac_status=$?
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); }; }; then
17275   eval "$as_ac_var=yes"
17276 else
17277   echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17279
17280 eval "$as_ac_var=no"
17281 fi
17282 rm -f conftest.err conftest.$ac_objext \
17283       conftest$ac_exeext conftest.$ac_ext
17284 fi
17285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17287 if test `eval echo '${'$as_ac_var'}'` = yes; then
17288
17289 cat >>confdefs.h <<_ACEOF
17290 #define CRAY_STACKSEG_END $ac_func
17291 _ACEOF
17292
17293     break
17294 fi
17295
17296   done
17297 fi
17298
17299 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17300 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17301 if test "${ac_cv_c_stack_direction+set}" = set; then
17302   echo $ECHO_N "(cached) $ECHO_C" >&6
17303 else
17304   if test "$cross_compiling" = yes; then
17305   ac_cv_c_stack_direction=0
17306 else
17307   cat >conftest.$ac_ext <<_ACEOF
17308 /* confdefs.h.  */
17309 _ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h.  */
17313 int
17314 find_stack_direction ()
17315 {
17316   static char *addr = 0;
17317   auto char dummy;
17318   if (addr == 0)
17319     {
17320       addr = &dummy;
17321       return find_stack_direction ();
17322     }
17323   else
17324     return (&dummy > addr) ? 1 : -1;
17325 }
17326
17327 int
17328 main ()
17329 {
17330   exit (find_stack_direction () < 0);
17331 }
17332 _ACEOF
17333 rm -f conftest$ac_exeext
17334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17335   (eval $ac_link) 2>&5
17336   ac_status=$?
17337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340   (eval $ac_try) 2>&5
17341   ac_status=$?
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); }; }; then
17344   ac_cv_c_stack_direction=1
17345 else
17346   echo "$as_me: program exited with status $ac_status" >&5
17347 echo "$as_me: failed program was:" >&5
17348 sed 's/^/| /' conftest.$ac_ext >&5
17349
17350 ( exit $ac_status )
17351 ac_cv_c_stack_direction=-1
17352 fi
17353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17354 fi
17355 fi
17356 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17357 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17358
17359 cat >>confdefs.h <<_ACEOF
17360 #define STACK_DIRECTION $ac_cv_c_stack_direction
17361 _ACEOF
17362
17363
17364 fi
17365
17366
17367
17368
17369
17370
17371   if test $ac_cv_func_alloca_works = no; then
17372     :
17373   fi
17374
17375   # Define an additional variable used in the Makefile substitution.
17376   if test $ac_cv_working_alloca_h = yes; then
17377     cat >conftest.$ac_ext <<_ACEOF
17378 /* confdefs.h.  */
17379 _ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h.  */
17383
17384 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
17385         Need own alloca
17386 #endif
17387
17388 _ACEOF
17389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17390   $EGREP "Need own alloca" >/dev/null 2>&1; then
17391
17392 cat >>confdefs.h <<\_ACEOF
17393 #define HAVE_ALLOCA 1
17394 _ACEOF
17395
17396        ALLOCA_H=alloca.h
17397 else
17398   ALLOCA_H=
17399 fi
17400 rm -f conftest*
17401
17402   else
17403     ALLOCA_H=alloca.h
17404   fi
17405
17406
17407
17408 cat >>confdefs.h <<\_ACEOF
17409 #define HAVE_ALLOCA_H 1
17410 _ACEOF
17411
17412
17413
17414
17415 for ac_header in stdlib.h
17416 do
17417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17419   echo "$as_me:$LINENO: checking for $ac_header" >&5
17420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17422   echo $ECHO_N "(cached) $ECHO_C" >&6
17423 fi
17424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17426 else
17427   # Is the header compilable?
17428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17430 cat >conftest.$ac_ext <<_ACEOF
17431 /* confdefs.h.  */
17432 _ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h.  */
17436 $ac_includes_default
17437 #include <$ac_header>
17438 _ACEOF
17439 rm -f conftest.$ac_objext
17440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17441   (eval $ac_compile) 2>conftest.er1
17442   ac_status=$?
17443   grep -v '^ *+' conftest.er1 >conftest.err
17444   rm -f conftest.er1
17445   cat conftest.err >&5
17446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); } &&
17448          { ac_try='test -z "$ac_c_werror_flag"
17449                          || test ! -s conftest.err'
17450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451   (eval $ac_try) 2>&5
17452   ac_status=$?
17453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454   (exit $ac_status); }; } &&
17455          { ac_try='test -s conftest.$ac_objext'
17456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457   (eval $ac_try) 2>&5
17458   ac_status=$?
17459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460   (exit $ac_status); }; }; then
17461   ac_header_compiler=yes
17462 else
17463   echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17465
17466 ac_header_compiler=no
17467 fi
17468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17470 echo "${ECHO_T}$ac_header_compiler" >&6
17471
17472 # Is the header present?
17473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17475 cat >conftest.$ac_ext <<_ACEOF
17476 /* confdefs.h.  */
17477 _ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h.  */
17481 #include <$ac_header>
17482 _ACEOF
17483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17484   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17485   ac_status=$?
17486   grep -v '^ *+' conftest.er1 >conftest.err
17487   rm -f conftest.er1
17488   cat conftest.err >&5
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); } >/dev/null; then
17491   if test -s conftest.err; then
17492     ac_cpp_err=$ac_c_preproc_warn_flag
17493     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17494   else
17495     ac_cpp_err=
17496   fi
17497 else
17498   ac_cpp_err=yes
17499 fi
17500 if test -z "$ac_cpp_err"; then
17501   ac_header_preproc=yes
17502 else
17503   echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17505
17506   ac_header_preproc=no
17507 fi
17508 rm -f conftest.err conftest.$ac_ext
17509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17510 echo "${ECHO_T}$ac_header_preproc" >&6
17511
17512 # So?  What about this header?
17513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17514   yes:no: )
17515     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17519     ac_header_preproc=yes
17520     ;;
17521   no:yes:* )
17522     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17524     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17525 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17526     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17528     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17529 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17532     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17534     (
17535       cat <<\_ASBOX
17536 ## ------------------------------------ ##
17537 ## Report this to bug-coreutils@gnu.org ##
17538 ## ------------------------------------ ##
17539 _ASBOX
17540     ) |
17541       sed "s/^/$as_me: WARNING:     /" >&2
17542     ;;
17543 esac
17544 echo "$as_me:$LINENO: checking for $ac_header" >&5
17545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17547   echo $ECHO_N "(cached) $ECHO_C" >&6
17548 else
17549   eval "$as_ac_Header=\$ac_header_preproc"
17550 fi
17551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17553
17554 fi
17555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17556   cat >>confdefs.h <<_ACEOF
17557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17558 _ACEOF
17559
17560 fi
17561
17562 done
17563
17564 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
17565 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
17566 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
17567   echo $ECHO_N "(cached) $ECHO_C" >&6
17568 else
17569   if test "$cross_compiling" = yes; then
17570   ac_cv_func_malloc_0_nonnull=no
17571 else
17572   cat >conftest.$ac_ext <<_ACEOF
17573 /* confdefs.h.  */
17574 _ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h.  */
17578 #if STDC_HEADERS || HAVE_STDLIB_H
17579 # include <stdlib.h>
17580 #else
17581 char *malloc ();
17582 #endif
17583
17584 int
17585 main ()
17586 {
17587 exit (malloc (0) ? 0 : 1);
17588   ;
17589   return 0;
17590 }
17591 _ACEOF
17592 rm -f conftest$ac_exeext
17593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17594   (eval $ac_link) 2>&5
17595   ac_status=$?
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599   (eval $ac_try) 2>&5
17600   ac_status=$?
17601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602   (exit $ac_status); }; }; then
17603   ac_cv_func_malloc_0_nonnull=yes
17604 else
17605   echo "$as_me: program exited with status $ac_status" >&5
17606 echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17608
17609 ( exit $ac_status )
17610 ac_cv_func_malloc_0_nonnull=no
17611 fi
17612 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17613 fi
17614 fi
17615 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
17616 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
17617 if test $ac_cv_func_malloc_0_nonnull = yes; then
17618   gl_cv_func_malloc_0_nonnull=1
17619 else
17620   gl_cv_func_malloc_0_nonnull=0
17621 fi
17622
17623
17624
17625 cat >>confdefs.h <<_ACEOF
17626 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
17627 _ACEOF
17628
17629
17630
17631   echo "$as_me:$LINENO: checking for long long" >&5
17632 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17633 if test "${ac_cv_type_long_long+set}" = set; then
17634   echo $ECHO_N "(cached) $ECHO_C" >&6
17635 else
17636   cat >conftest.$ac_ext <<_ACEOF
17637 /* confdefs.h.  */
17638 _ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h.  */
17642 long long ll = 1LL; int i = 63;
17643 int
17644 main ()
17645 {
17646 long long llmax = (long long) -1;
17647      return ll << i | ll >> i | llmax / ll | llmax % ll;
17648   ;
17649   return 0;
17650 }
17651 _ACEOF
17652 rm -f conftest.$ac_objext conftest$ac_exeext
17653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17654   (eval $ac_link) 2>conftest.er1
17655   ac_status=$?
17656   grep -v '^ *+' conftest.er1 >conftest.err
17657   rm -f conftest.er1
17658   cat conftest.err >&5
17659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660   (exit $ac_status); } &&
17661          { ac_try='test -z "$ac_c_werror_flag"
17662                          || test ! -s conftest.err'
17663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664   (eval $ac_try) 2>&5
17665   ac_status=$?
17666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667   (exit $ac_status); }; } &&
17668          { ac_try='test -s conftest$ac_exeext'
17669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670   (eval $ac_try) 2>&5
17671   ac_status=$?
17672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673   (exit $ac_status); }; }; then
17674   ac_cv_type_long_long=yes
17675 else
17676   echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17678
17679 ac_cv_type_long_long=no
17680 fi
17681 rm -f conftest.err conftest.$ac_objext \
17682       conftest$ac_exeext conftest.$ac_ext
17683 fi
17684 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17685 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17686   if test $ac_cv_type_long_long = yes; then
17687
17688 cat >>confdefs.h <<\_ACEOF
17689 #define HAVE_LONG_LONG 1
17690 _ACEOF
17691
17692   fi
17693
17694
17695   echo "$as_me:$LINENO: checking for long double" >&5
17696 echo $ECHO_N "checking for long double... $ECHO_C" >&6
17697 if test "${gt_cv_c_long_double+set}" = set; then
17698   echo $ECHO_N "(cached) $ECHO_C" >&6
17699 else
17700   if test "$GCC" = yes; then
17701        gt_cv_c_long_double=yes
17702      else
17703        cat >conftest.$ac_ext <<_ACEOF
17704 /* confdefs.h.  */
17705 _ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h.  */
17709
17710          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
17711          long double foo = 0.0;
17712          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
17713          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
17714
17715 int
17716 main ()
17717 {
17718
17719   ;
17720   return 0;
17721 }
17722 _ACEOF
17723 rm -f conftest.$ac_objext
17724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17725   (eval $ac_compile) 2>conftest.er1
17726   ac_status=$?
17727   grep -v '^ *+' conftest.er1 >conftest.err
17728   rm -f conftest.er1
17729   cat conftest.err >&5
17730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731   (exit $ac_status); } &&
17732          { ac_try='test -z "$ac_c_werror_flag"
17733                          || test ! -s conftest.err'
17734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735   (eval $ac_try) 2>&5
17736   ac_status=$?
17737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738   (exit $ac_status); }; } &&
17739          { ac_try='test -s conftest.$ac_objext'
17740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17741   (eval $ac_try) 2>&5
17742   ac_status=$?
17743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744   (exit $ac_status); }; }; then
17745   gt_cv_c_long_double=yes
17746 else
17747   echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17749
17750 gt_cv_c_long_double=no
17751 fi
17752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17753      fi
17754 fi
17755 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
17756 echo "${ECHO_T}$gt_cv_c_long_double" >&6
17757   if test $gt_cv_c_long_double = yes; then
17758
17759 cat >>confdefs.h <<\_ACEOF
17760 #define HAVE_LONG_DOUBLE 1
17761 _ACEOF
17762
17763   fi
17764
17765
17766
17767
17768
17769
17770
17771
17772     echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
17773 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
17774 if test "${ac_cv_win_or_dos+set}" = set; then
17775   echo $ECHO_N "(cached) $ECHO_C" >&6
17776 else
17777
17778         cat >conftest.$ac_ext <<_ACEOF
17779 /* confdefs.h.  */
17780 _ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h.  */
17784
17785 int
17786 main ()
17787 {
17788 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
17789 neither MSDOS nor Windows
17790 #endif
17791   ;
17792   return 0;
17793 }
17794 _ACEOF
17795 rm -f conftest.$ac_objext
17796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17797   (eval $ac_compile) 2>conftest.er1
17798   ac_status=$?
17799   grep -v '^ *+' conftest.er1 >conftest.err
17800   rm -f conftest.er1
17801   cat conftest.err >&5
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); } &&
17804          { ac_try='test -z "$ac_c_werror_flag"
17805                          || test ! -s conftest.err'
17806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807   (eval $ac_try) 2>&5
17808   ac_status=$?
17809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810   (exit $ac_status); }; } &&
17811          { ac_try='test -s conftest.$ac_objext'
17812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813   (eval $ac_try) 2>&5
17814   ac_status=$?
17815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816   (exit $ac_status); }; }; then
17817   ac_cv_win_or_dos=yes
17818 else
17819   echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.$ac_ext >&5
17821
17822 ac_cv_win_or_dos=no
17823 fi
17824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17825
17826 fi
17827 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
17828 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
17829
17830     if test x"$ac_cv_win_or_dos" = xyes; then
17831       ac_fs_accepts_drive_letter_prefix=1
17832       ac_fs_backslash_is_file_name_separator=1
17833     else
17834       ac_fs_accepts_drive_letter_prefix=0
17835       ac_fs_backslash_is_file_name_separator=0
17836     fi
17837
17838
17839
17840
17841
17842 cat >>confdefs.h <<_ACEOF
17843 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
17844 _ACEOF
17845
17846
17847
17848
17849
17850
17851 cat >>confdefs.h <<_ACEOF
17852 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
17853 _ACEOF
17854
17855
17856 echo "$as_me:$LINENO: checking for long file names" >&5
17857 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
17858 if test "${ac_cv_sys_long_file_names+set}" = set; then
17859   echo $ECHO_N "(cached) $ECHO_C" >&6
17860 else
17861   ac_cv_sys_long_file_names=yes
17862 # Test for long file names in all the places we know might matter:
17863 #      .                the current directory, where building will happen
17864 #      $prefix/lib      where we will be installing things
17865 #      $exec_prefix/lib likewise
17866 # eval it to expand exec_prefix.
17867 #      $TMPDIR          if set, where it might want to write temporary files
17868 # if $TMPDIR is not set:
17869 #      /tmp             where it might want to write temporary files
17870 #      /var/tmp         likewise
17871 #      /usr/tmp         likewise
17872 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
17873   ac_tmpdirs=$TMPDIR
17874 else
17875   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
17876 fi
17877 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
17878   test -d $ac_dir || continue
17879   test -w $ac_dir || continue # It is less confusing to not echo anything here.
17880   ac_xdir=$ac_dir/cf$$
17881   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
17882   ac_tf1=$ac_xdir/conftest9012345
17883   ac_tf2=$ac_xdir/conftest9012346
17884   (echo 1 >$ac_tf1) 2>/dev/null
17885   (echo 2 >$ac_tf2) 2>/dev/null
17886   ac_val=`cat $ac_tf1 2>/dev/null`
17887   if test ! -f $ac_tf1 || test "$ac_val" != 1; then
17888     ac_cv_sys_long_file_names=no
17889     rm -rf $ac_xdir 2>/dev/null
17890     break
17891   fi
17892   rm -rf $ac_xdir 2>/dev/null
17893 done
17894 fi
17895 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
17896 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
17897 if test $ac_cv_sys_long_file_names = yes; then
17898
17899 cat >>confdefs.h <<\_ACEOF
17900 #define HAVE_LONG_FILE_NAMES 1
17901 _ACEOF
17902
17903 fi
17904
17905
17906
17907
17908
17909
17910
17911   :
17912
17913
17914
17915
17916
17917
17918 for ac_func in pathconf
17919 do
17920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17921 echo "$as_me:$LINENO: checking for $ac_func" >&5
17922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17923 if eval "test \"\${$as_ac_var+set}\" = set"; then
17924   echo $ECHO_N "(cached) $ECHO_C" >&6
17925 else
17926   cat >conftest.$ac_ext <<_ACEOF
17927 /* confdefs.h.  */
17928 _ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h.  */
17932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17934 #define $ac_func innocuous_$ac_func
17935
17936 /* System header to define __stub macros and hopefully few prototypes,
17937     which can conflict with char $ac_func (); below.
17938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17939     <limits.h> exists even on freestanding compilers.  */
17940
17941 #ifdef __STDC__
17942 # include <limits.h>
17943 #else
17944 # include <assert.h>
17945 #endif
17946
17947 #undef $ac_func
17948
17949 /* Override any gcc2 internal prototype to avoid an error.  */
17950 #ifdef __cplusplus
17951 extern "C"
17952 {
17953 #endif
17954 /* We use char because int might match the return type of a gcc2
17955    builtin and then its argument prototype would still apply.  */
17956 char $ac_func ();
17957 /* The GNU C library defines this for functions which it implements
17958     to always fail with ENOSYS.  Some functions are actually named
17959     something starting with __ and the normal name is an alias.  */
17960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17961 choke me
17962 #else
17963 char (*f) () = $ac_func;
17964 #endif
17965 #ifdef __cplusplus
17966 }
17967 #endif
17968
17969 int
17970 main ()
17971 {
17972 return f != $ac_func;
17973   ;
17974   return 0;
17975 }
17976 _ACEOF
17977 rm -f conftest.$ac_objext conftest$ac_exeext
17978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17979   (eval $ac_link) 2>conftest.er1
17980   ac_status=$?
17981   grep -v '^ *+' conftest.er1 >conftest.err
17982   rm -f conftest.er1
17983   cat conftest.err >&5
17984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985   (exit $ac_status); } &&
17986          { ac_try='test -z "$ac_c_werror_flag"
17987                          || test ! -s conftest.err'
17988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989   (eval $ac_try) 2>&5
17990   ac_status=$?
17991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992   (exit $ac_status); }; } &&
17993          { ac_try='test -s conftest$ac_exeext'
17994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995   (eval $ac_try) 2>&5
17996   ac_status=$?
17997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998   (exit $ac_status); }; }; then
17999   eval "$as_ac_var=yes"
18000 else
18001   echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.$ac_ext >&5
18003
18004 eval "$as_ac_var=no"
18005 fi
18006 rm -f conftest.err conftest.$ac_objext \
18007       conftest$ac_exeext conftest.$ac_ext
18008 fi
18009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18011 if test `eval echo '${'$as_ac_var'}'` = yes; then
18012   cat >>confdefs.h <<_ACEOF
18013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18014 _ACEOF
18015
18016 fi
18017 done
18018
18019
18020
18021
18022   :
18023
18024
18025   echo "$as_me:$LINENO: checking whether strtold conforms to C99" >&5
18026 echo $ECHO_N "checking whether strtold conforms to C99... $ECHO_C" >&6
18027 if test "${gl_cv_func_c99_strtold+set}" = set; then
18028   echo $ECHO_N "(cached) $ECHO_C" >&6
18029 else
18030   cat >conftest.$ac_ext <<_ACEOF
18031 /* confdefs.h.  */
18032 _ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h.  */
18036 /* On HP-UX before 11.23, strtold returns a struct instead of
18037                 long double.  Reject implementations like that, by requiring
18038                 compatibility with the C99 prototype.  */
18039              #include <stdlib.h>
18040              static long double (*p) (char const *, char **) = strtold;
18041              static long double
18042              test (char const *nptr, char **endptr)
18043              {
18044                long double r;
18045                r = strtold (nptr, endptr);
18046                return r;
18047              }
18048 int
18049 main ()
18050 {
18051 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
18052   ;
18053   return 0;
18054 }
18055 _ACEOF
18056 rm -f conftest.$ac_objext
18057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18058   (eval $ac_compile) 2>conftest.er1
18059   ac_status=$?
18060   grep -v '^ *+' conftest.er1 >conftest.err
18061   rm -f conftest.er1
18062   cat conftest.err >&5
18063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064   (exit $ac_status); } &&
18065          { ac_try='test -z "$ac_c_werror_flag"
18066                          || test ! -s conftest.err'
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); }; } &&
18072          { ac_try='test -s conftest.$ac_objext'
18073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074   (eval $ac_try) 2>&5
18075   ac_status=$?
18076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077   (exit $ac_status); }; }; then
18078   gl_cv_func_c99_strtold=yes
18079 else
18080   echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18082
18083 gl_cv_func_c99_strtold=no
18084 fi
18085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18086 fi
18087 echo "$as_me:$LINENO: result: $gl_cv_func_c99_strtold" >&5
18088 echo "${ECHO_T}$gl_cv_func_c99_strtold" >&6
18089   if test $gl_cv_func_c99_strtold = yes; then
18090
18091 cat >>confdefs.h <<\_ACEOF
18092 #define HAVE_C99_STRTOLD 1
18093 _ACEOF
18094
18095   fi
18096
18097
18098
18099
18100   :
18101
18102
18103
18104   :
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114 for ac_header in netdb.h sys/socket.h netinet/in.h arpa/inet.h
18115 do
18116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18118   echo "$as_me:$LINENO: checking for $ac_header" >&5
18119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18121   echo $ECHO_N "(cached) $ECHO_C" >&6
18122 fi
18123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18125 else
18126   # Is the header compilable?
18127 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18129 cat >conftest.$ac_ext <<_ACEOF
18130 /* confdefs.h.  */
18131 _ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h.  */
18135 $ac_includes_default
18136 #include <$ac_header>
18137 _ACEOF
18138 rm -f conftest.$ac_objext
18139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18140   (eval $ac_compile) 2>conftest.er1
18141   ac_status=$?
18142   grep -v '^ *+' conftest.er1 >conftest.err
18143   rm -f conftest.er1
18144   cat conftest.err >&5
18145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146   (exit $ac_status); } &&
18147          { ac_try='test -z "$ac_c_werror_flag"
18148                          || test ! -s conftest.err'
18149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150   (eval $ac_try) 2>&5
18151   ac_status=$?
18152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153   (exit $ac_status); }; } &&
18154          { ac_try='test -s conftest.$ac_objext'
18155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156   (eval $ac_try) 2>&5
18157   ac_status=$?
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); }; }; then
18160   ac_header_compiler=yes
18161 else
18162   echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18164
18165 ac_header_compiler=no
18166 fi
18167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18169 echo "${ECHO_T}$ac_header_compiler" >&6
18170
18171 # Is the header present?
18172 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18174 cat >conftest.$ac_ext <<_ACEOF
18175 /* confdefs.h.  */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h.  */
18180 #include <$ac_header>
18181 _ACEOF
18182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18183   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18184   ac_status=$?
18185   grep -v '^ *+' conftest.er1 >conftest.err
18186   rm -f conftest.er1
18187   cat conftest.err >&5
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); } >/dev/null; then
18190   if test -s conftest.err; then
18191     ac_cpp_err=$ac_c_preproc_warn_flag
18192     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18193   else
18194     ac_cpp_err=
18195   fi
18196 else
18197   ac_cpp_err=yes
18198 fi
18199 if test -z "$ac_cpp_err"; then
18200   ac_header_preproc=yes
18201 else
18202   echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18204
18205   ac_header_preproc=no
18206 fi
18207 rm -f conftest.err conftest.$ac_ext
18208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18209 echo "${ECHO_T}$ac_header_preproc" >&6
18210
18211 # So?  What about this header?
18212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18213   yes:no: )
18214     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18218     ac_header_preproc=yes
18219     ;;
18220   no:yes:* )
18221     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18223     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18224 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18225     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18227     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18228 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18231     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18233     (
18234       cat <<\_ASBOX
18235 ## ------------------------------------ ##
18236 ## Report this to bug-coreutils@gnu.org ##
18237 ## ------------------------------------ ##
18238 _ASBOX
18239     ) |
18240       sed "s/^/$as_me: WARNING:     /" >&2
18241     ;;
18242 esac
18243 echo "$as_me:$LINENO: checking for $ac_header" >&5
18244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18246   echo $ECHO_N "(cached) $ECHO_C" >&6
18247 else
18248   eval "$as_ac_Header=\$ac_header_preproc"
18249 fi
18250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18252
18253 fi
18254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18255   cat >>confdefs.h <<_ACEOF
18256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18257 _ACEOF
18258
18259 fi
18260
18261 done
18262
18263
18264         echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
18265 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
18266 if test "${ac_cv_search_gethostbyname+set}" = set; then
18267   echo $ECHO_N "(cached) $ECHO_C" >&6
18268 else
18269   ac_func_search_save_LIBS=$LIBS
18270 ac_cv_search_gethostbyname=no
18271 cat >conftest.$ac_ext <<_ACEOF
18272 /* confdefs.h.  */
18273 _ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h.  */
18277
18278 /* Override any gcc2 internal prototype to avoid an error.  */
18279 #ifdef __cplusplus
18280 extern "C"
18281 #endif
18282 /* We use char because int might match the return type of a gcc2
18283    builtin and then its argument prototype would still apply.  */
18284 char gethostbyname ();
18285 int
18286 main ()
18287 {
18288 gethostbyname ();
18289   ;
18290   return 0;
18291 }
18292 _ACEOF
18293 rm -f conftest.$ac_objext conftest$ac_exeext
18294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18295   (eval $ac_link) 2>conftest.er1
18296   ac_status=$?
18297   grep -v '^ *+' conftest.er1 >conftest.err
18298   rm -f conftest.er1
18299   cat conftest.err >&5
18300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301   (exit $ac_status); } &&
18302          { ac_try='test -z "$ac_c_werror_flag"
18303                          || test ! -s conftest.err'
18304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305   (eval $ac_try) 2>&5
18306   ac_status=$?
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); }; } &&
18309          { ac_try='test -s conftest$ac_exeext'
18310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311   (eval $ac_try) 2>&5
18312   ac_status=$?
18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); }; }; then
18315   ac_cv_search_gethostbyname="none required"
18316 else
18317   echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18319
18320 fi
18321 rm -f conftest.err conftest.$ac_objext \
18322       conftest$ac_exeext conftest.$ac_ext
18323 if test "$ac_cv_search_gethostbyname" = no; then
18324   for ac_lib in inet nsl; do
18325     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18326     cat >conftest.$ac_ext <<_ACEOF
18327 /* confdefs.h.  */
18328 _ACEOF
18329 cat confdefs.h >>conftest.$ac_ext
18330 cat >>conftest.$ac_ext <<_ACEOF
18331 /* end confdefs.h.  */
18332
18333 /* Override any gcc2 internal prototype to avoid an error.  */
18334 #ifdef __cplusplus
18335 extern "C"
18336 #endif
18337 /* We use char because int might match the return type of a gcc2
18338    builtin and then its argument prototype would still apply.  */
18339 char gethostbyname ();
18340 int
18341 main ()
18342 {
18343 gethostbyname ();
18344   ;
18345   return 0;
18346 }
18347 _ACEOF
18348 rm -f conftest.$ac_objext conftest$ac_exeext
18349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18350   (eval $ac_link) 2>conftest.er1
18351   ac_status=$?
18352   grep -v '^ *+' conftest.er1 >conftest.err
18353   rm -f conftest.er1
18354   cat conftest.err >&5
18355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356   (exit $ac_status); } &&
18357          { ac_try='test -z "$ac_c_werror_flag"
18358                          || test ! -s conftest.err'
18359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360   (eval $ac_try) 2>&5
18361   ac_status=$?
18362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); }; } &&
18364          { ac_try='test -s conftest$ac_exeext'
18365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366   (eval $ac_try) 2>&5
18367   ac_status=$?
18368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369   (exit $ac_status); }; }; then
18370   ac_cv_search_gethostbyname="-l$ac_lib"
18371 break
18372 else
18373   echo "$as_me: failed program was:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18375
18376 fi
18377 rm -f conftest.err conftest.$ac_objext \
18378       conftest$ac_exeext conftest.$ac_ext
18379   done
18380 fi
18381 LIBS=$ac_func_search_save_LIBS
18382 fi
18383 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
18384 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
18385 if test "$ac_cv_search_gethostbyname" != no; then
18386   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
18387
18388 fi
18389
18390
18391
18392
18393
18394
18395 for ac_func in getaddrinfo gethostbyname gethostbyaddr inet_ntoa
18396 do
18397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18398 echo "$as_me:$LINENO: checking for $ac_func" >&5
18399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18400 if eval "test \"\${$as_ac_var+set}\" = set"; then
18401   echo $ECHO_N "(cached) $ECHO_C" >&6
18402 else
18403   cat >conftest.$ac_ext <<_ACEOF
18404 /* confdefs.h.  */
18405 _ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h.  */
18409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18411 #define $ac_func innocuous_$ac_func
18412
18413 /* System header to define __stub macros and hopefully few prototypes,
18414     which can conflict with char $ac_func (); below.
18415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18416     <limits.h> exists even on freestanding compilers.  */
18417
18418 #ifdef __STDC__
18419 # include <limits.h>
18420 #else
18421 # include <assert.h>
18422 #endif
18423
18424 #undef $ac_func
18425
18426 /* Override any gcc2 internal prototype to avoid an error.  */
18427 #ifdef __cplusplus
18428 extern "C"
18429 {
18430 #endif
18431 /* We use char because int might match the return type of a gcc2
18432    builtin and then its argument prototype would still apply.  */
18433 char $ac_func ();
18434 /* The GNU C library defines this for functions which it implements
18435     to always fail with ENOSYS.  Some functions are actually named
18436     something starting with __ and the normal name is an alias.  */
18437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18438 choke me
18439 #else
18440 char (*f) () = $ac_func;
18441 #endif
18442 #ifdef __cplusplus
18443 }
18444 #endif
18445
18446 int
18447 main ()
18448 {
18449 return f != $ac_func;
18450   ;
18451   return 0;
18452 }
18453 _ACEOF
18454 rm -f conftest.$ac_objext conftest$ac_exeext
18455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18456   (eval $ac_link) 2>conftest.er1
18457   ac_status=$?
18458   grep -v '^ *+' conftest.er1 >conftest.err
18459   rm -f conftest.er1
18460   cat conftest.err >&5
18461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462   (exit $ac_status); } &&
18463          { ac_try='test -z "$ac_c_werror_flag"
18464                          || test ! -s conftest.err'
18465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466   (eval $ac_try) 2>&5
18467   ac_status=$?
18468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469   (exit $ac_status); }; } &&
18470          { ac_try='test -s conftest$ac_exeext'
18471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472   (eval $ac_try) 2>&5
18473   ac_status=$?
18474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475   (exit $ac_status); }; }; then
18476   eval "$as_ac_var=yes"
18477 else
18478   echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18480
18481 eval "$as_ac_var=no"
18482 fi
18483 rm -f conftest.err conftest.$ac_objext \
18484       conftest$ac_exeext conftest.$ac_ext
18485 fi
18486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18488 if test `eval echo '${'$as_ac_var'}'` = yes; then
18489   cat >>confdefs.h <<_ACEOF
18490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18491 _ACEOF
18492
18493 fi
18494 done
18495
18496
18497
18498
18499   :
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510     :
18511
18512
18513
18514
18515
18516 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
18517 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
18518 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
18519   echo $ECHO_N "(cached) $ECHO_C" >&6
18520 else
18521   cat >conftest.$ac_ext <<_ACEOF
18522 /* confdefs.h.  */
18523 _ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h.  */
18527 $ac_includes_default
18528 int
18529 main ()
18530 {
18531 #ifndef strerror_r
18532   char *p = (char *) strerror_r;
18533 #endif
18534
18535   ;
18536   return 0;
18537 }
18538 _ACEOF
18539 rm -f conftest.$ac_objext
18540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18541   (eval $ac_compile) 2>conftest.er1
18542   ac_status=$?
18543   grep -v '^ *+' conftest.er1 >conftest.err
18544   rm -f conftest.er1
18545   cat conftest.err >&5
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); } &&
18548          { ac_try='test -z "$ac_c_werror_flag"
18549                          || test ! -s conftest.err'
18550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551   (eval $ac_try) 2>&5
18552   ac_status=$?
18553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554   (exit $ac_status); }; } &&
18555          { ac_try='test -s conftest.$ac_objext'
18556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557   (eval $ac_try) 2>&5
18558   ac_status=$?
18559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); }; }; then
18561   ac_cv_have_decl_strerror_r=yes
18562 else
18563   echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18565
18566 ac_cv_have_decl_strerror_r=no
18567 fi
18568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18569 fi
18570 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
18571 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
18572 if test $ac_cv_have_decl_strerror_r = yes; then
18573
18574 cat >>confdefs.h <<_ACEOF
18575 #define HAVE_DECL_STRERROR_R 1
18576 _ACEOF
18577
18578
18579 else
18580   cat >>confdefs.h <<_ACEOF
18581 #define HAVE_DECL_STRERROR_R 0
18582 _ACEOF
18583
18584
18585 fi
18586
18587
18588
18589 for ac_func in strerror_r
18590 do
18591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18592 echo "$as_me:$LINENO: checking for $ac_func" >&5
18593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18594 if eval "test \"\${$as_ac_var+set}\" = set"; then
18595   echo $ECHO_N "(cached) $ECHO_C" >&6
18596 else
18597   cat >conftest.$ac_ext <<_ACEOF
18598 /* confdefs.h.  */
18599 _ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h.  */
18603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18605 #define $ac_func innocuous_$ac_func
18606
18607 /* System header to define __stub macros and hopefully few prototypes,
18608     which can conflict with char $ac_func (); below.
18609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18610     <limits.h> exists even on freestanding compilers.  */
18611
18612 #ifdef __STDC__
18613 # include <limits.h>
18614 #else
18615 # include <assert.h>
18616 #endif
18617
18618 #undef $ac_func
18619
18620 /* Override any gcc2 internal prototype to avoid an error.  */
18621 #ifdef __cplusplus
18622 extern "C"
18623 {
18624 #endif
18625 /* We use char because int might match the return type of a gcc2
18626    builtin and then its argument prototype would still apply.  */
18627 char $ac_func ();
18628 /* The GNU C library defines this for functions which it implements
18629     to always fail with ENOSYS.  Some functions are actually named
18630     something starting with __ and the normal name is an alias.  */
18631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18632 choke me
18633 #else
18634 char (*f) () = $ac_func;
18635 #endif
18636 #ifdef __cplusplus
18637 }
18638 #endif
18639
18640 int
18641 main ()
18642 {
18643 return f != $ac_func;
18644   ;
18645   return 0;
18646 }
18647 _ACEOF
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18650   (eval $ac_link) 2>conftest.er1
18651   ac_status=$?
18652   grep -v '^ *+' conftest.er1 >conftest.err
18653   rm -f conftest.er1
18654   cat conftest.err >&5
18655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656   (exit $ac_status); } &&
18657          { ac_try='test -z "$ac_c_werror_flag"
18658                          || test ! -s conftest.err'
18659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660   (eval $ac_try) 2>&5
18661   ac_status=$?
18662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663   (exit $ac_status); }; } &&
18664          { ac_try='test -s conftest$ac_exeext'
18665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666   (eval $ac_try) 2>&5
18667   ac_status=$?
18668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669   (exit $ac_status); }; }; then
18670   eval "$as_ac_var=yes"
18671 else
18672   echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18674
18675 eval "$as_ac_var=no"
18676 fi
18677 rm -f conftest.err conftest.$ac_objext \
18678       conftest$ac_exeext conftest.$ac_ext
18679 fi
18680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18682 if test `eval echo '${'$as_ac_var'}'` = yes; then
18683   cat >>confdefs.h <<_ACEOF
18684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18685 _ACEOF
18686
18687 fi
18688 done
18689
18690 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
18691 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
18692 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
18693   echo $ECHO_N "(cached) $ECHO_C" >&6
18694 else
18695
18696     ac_cv_func_strerror_r_char_p=no
18697     if test $ac_cv_have_decl_strerror_r = yes; then
18698       cat >conftest.$ac_ext <<_ACEOF
18699 /* confdefs.h.  */
18700 _ACEOF
18701 cat confdefs.h >>conftest.$ac_ext
18702 cat >>conftest.$ac_ext <<_ACEOF
18703 /* end confdefs.h.  */
18704 $ac_includes_default
18705 int
18706 main ()
18707 {
18708
18709           char buf[100];
18710           char x = *strerror_r (0, buf, sizeof buf);
18711           char *p = strerror_r (0, buf, sizeof buf);
18712
18713   ;
18714   return 0;
18715 }
18716 _ACEOF
18717 rm -f conftest.$ac_objext
18718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18719   (eval $ac_compile) 2>conftest.er1
18720   ac_status=$?
18721   grep -v '^ *+' conftest.er1 >conftest.err
18722   rm -f conftest.er1
18723   cat conftest.err >&5
18724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725   (exit $ac_status); } &&
18726          { ac_try='test -z "$ac_c_werror_flag"
18727                          || test ! -s conftest.err'
18728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729   (eval $ac_try) 2>&5
18730   ac_status=$?
18731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732   (exit $ac_status); }; } &&
18733          { ac_try='test -s conftest.$ac_objext'
18734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735   (eval $ac_try) 2>&5
18736   ac_status=$?
18737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); }; }; then
18739   ac_cv_func_strerror_r_char_p=yes
18740 else
18741   echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18743
18744 fi
18745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18746     else
18747       # strerror_r is not declared.  Choose between
18748       # systems that have relatively inaccessible declarations for the
18749       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
18750       # former has a strerror_r that returns char*, while the latter
18751       # has a strerror_r that returns `int'.
18752       # This test should segfault on the DEC system.
18753       if test "$cross_compiling" = yes; then
18754   :
18755 else
18756   cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h.  */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h.  */
18762 $ac_includes_default
18763         extern char *strerror_r ();
18764 int
18765 main ()
18766 {
18767 char buf[100];
18768           char x = *strerror_r (0, buf, sizeof buf);
18769           exit (!isalpha (x));
18770   ;
18771   return 0;
18772 }
18773 _ACEOF
18774 rm -f conftest$ac_exeext
18775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18776   (eval $ac_link) 2>&5
18777   ac_status=$?
18778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781   (eval $ac_try) 2>&5
18782   ac_status=$?
18783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784   (exit $ac_status); }; }; then
18785   ac_cv_func_strerror_r_char_p=yes
18786 else
18787   echo "$as_me: program exited with status $ac_status" >&5
18788 echo "$as_me: failed program was:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18790
18791 fi
18792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18793 fi
18794     fi
18795
18796 fi
18797 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
18798 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
18799 if test $ac_cv_func_strerror_r_char_p = yes; then
18800
18801 cat >>confdefs.h <<\_ACEOF
18802 #define STRERROR_R_CHAR_P 1
18803 _ACEOF
18804
18805 fi
18806
18807
18808   echo "$as_me:$LINENO: checking for error_at_line" >&5
18809 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
18810 if test "${ac_cv_lib_error_at_line+set}" = set; then
18811   echo $ECHO_N "(cached) $ECHO_C" >&6
18812 else
18813   cat >conftest.$ac_ext <<_ACEOF
18814 /* confdefs.h.  */
18815 _ACEOF
18816 cat confdefs.h >>conftest.$ac_ext
18817 cat >>conftest.$ac_ext <<_ACEOF
18818 /* end confdefs.h.  */
18819 $ac_includes_default
18820 int
18821 main ()
18822 {
18823 error_at_line (0, 0, "", 0, "");
18824   ;
18825   return 0;
18826 }
18827 _ACEOF
18828 rm -f conftest.$ac_objext conftest$ac_exeext
18829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18830   (eval $ac_link) 2>conftest.er1
18831   ac_status=$?
18832   grep -v '^ *+' conftest.er1 >conftest.err
18833   rm -f conftest.er1
18834   cat conftest.err >&5
18835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836   (exit $ac_status); } &&
18837          { ac_try='test -z "$ac_c_werror_flag"
18838                          || test ! -s conftest.err'
18839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18840   (eval $ac_try) 2>&5
18841   ac_status=$?
18842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843   (exit $ac_status); }; } &&
18844          { ac_try='test -s conftest$ac_exeext'
18845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846   (eval $ac_try) 2>&5
18847   ac_status=$?
18848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849   (exit $ac_status); }; }; then
18850   ac_cv_lib_error_at_line=yes
18851 else
18852   echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18854
18855 ac_cv_lib_error_at_line=no
18856 fi
18857 rm -f conftest.err conftest.$ac_objext \
18858       conftest$ac_exeext conftest.$ac_ext
18859 fi
18860 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
18861 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
18862 if test $ac_cv_lib_error_at_line = no; then
18863   case $LIBOBJS in
18864     "error.$ac_objext"   | \
18865   *" error.$ac_objext"   | \
18866     "error.$ac_objext "* | \
18867   *" error.$ac_objext "* ) ;;
18868   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
18869 esac
18870
18871 fi
18872
18873
18874
18875   :
18876
18877
18878
18879
18880 for ac_func in isascii
18881 do
18882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18883 echo "$as_me:$LINENO: checking for $ac_func" >&5
18884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18885 if eval "test \"\${$as_ac_var+set}\" = set"; then
18886   echo $ECHO_N "(cached) $ECHO_C" >&6
18887 else
18888   cat >conftest.$ac_ext <<_ACEOF
18889 /* confdefs.h.  */
18890 _ACEOF
18891 cat confdefs.h >>conftest.$ac_ext
18892 cat >>conftest.$ac_ext <<_ACEOF
18893 /* end confdefs.h.  */
18894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18896 #define $ac_func innocuous_$ac_func
18897
18898 /* System header to define __stub macros and hopefully few prototypes,
18899     which can conflict with char $ac_func (); below.
18900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18901     <limits.h> exists even on freestanding compilers.  */
18902
18903 #ifdef __STDC__
18904 # include <limits.h>
18905 #else
18906 # include <assert.h>
18907 #endif
18908
18909 #undef $ac_func
18910
18911 /* Override any gcc2 internal prototype to avoid an error.  */
18912 #ifdef __cplusplus
18913 extern "C"
18914 {
18915 #endif
18916 /* We use char because int might match the return type of a gcc2
18917    builtin and then its argument prototype would still apply.  */
18918 char $ac_func ();
18919 /* The GNU C library defines this for functions which it implements
18920     to always fail with ENOSYS.  Some functions are actually named
18921     something starting with __ and the normal name is an alias.  */
18922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18923 choke me
18924 #else
18925 char (*f) () = $ac_func;
18926 #endif
18927 #ifdef __cplusplus
18928 }
18929 #endif
18930
18931 int
18932 main ()
18933 {
18934 return f != $ac_func;
18935   ;
18936   return 0;
18937 }
18938 _ACEOF
18939 rm -f conftest.$ac_objext conftest$ac_exeext
18940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18941   (eval $ac_link) 2>conftest.er1
18942   ac_status=$?
18943   grep -v '^ *+' conftest.er1 >conftest.err
18944   rm -f conftest.er1
18945   cat conftest.err >&5
18946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947   (exit $ac_status); } &&
18948          { ac_try='test -z "$ac_c_werror_flag"
18949                          || test ! -s conftest.err'
18950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951   (eval $ac_try) 2>&5
18952   ac_status=$?
18953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954   (exit $ac_status); }; } &&
18955          { ac_try='test -s conftest$ac_exeext'
18956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957   (eval $ac_try) 2>&5
18958   ac_status=$?
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); }; }; then
18961   eval "$as_ac_var=yes"
18962 else
18963   echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.$ac_ext >&5
18965
18966 eval "$as_ac_var=no"
18967 fi
18968 rm -f conftest.err conftest.$ac_objext \
18969       conftest$ac_exeext conftest.$ac_ext
18970 fi
18971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18973 if test `eval echo '${'$as_ac_var'}'` = yes; then
18974   cat >>confdefs.h <<_ACEOF
18975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18976 _ACEOF
18977
18978 fi
18979 done
18980
18981
18982
18983
18984
18985
18986   :
18987
18988
18989
18990
18991
18992
18993
18994     :
18995
18996
18997
18998
18999   :
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011   echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19012 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19013 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19014   echo $ECHO_N "(cached) $ECHO_C" >&6
19015 else
19016   cat >conftest.$ac_ext <<_ACEOF
19017 /* confdefs.h.  */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h.  */
19022 $ac_includes_default
19023 int
19024 main ()
19025 {
19026 static struct stat ac_aggr;
19027 if (ac_aggr.st_blocks)
19028 return 0;
19029   ;
19030   return 0;
19031 }
19032 _ACEOF
19033 rm -f conftest.$ac_objext
19034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19035   (eval $ac_compile) 2>conftest.er1
19036   ac_status=$?
19037   grep -v '^ *+' conftest.er1 >conftest.err
19038   rm -f conftest.er1
19039   cat conftest.err >&5
19040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041   (exit $ac_status); } &&
19042          { ac_try='test -z "$ac_c_werror_flag"
19043                          || test ! -s conftest.err'
19044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19045   (eval $ac_try) 2>&5
19046   ac_status=$?
19047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048   (exit $ac_status); }; } &&
19049          { ac_try='test -s conftest.$ac_objext'
19050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19051   (eval $ac_try) 2>&5
19052   ac_status=$?
19053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054   (exit $ac_status); }; }; then
19055   ac_cv_member_struct_stat_st_blocks=yes
19056 else
19057   echo "$as_me: failed program was:" >&5
19058 sed 's/^/| /' conftest.$ac_ext >&5
19059
19060 cat >conftest.$ac_ext <<_ACEOF
19061 /* confdefs.h.  */
19062 _ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h.  */
19066 $ac_includes_default
19067 int
19068 main ()
19069 {
19070 static struct stat ac_aggr;
19071 if (sizeof ac_aggr.st_blocks)
19072 return 0;
19073   ;
19074   return 0;
19075 }
19076 _ACEOF
19077 rm -f conftest.$ac_objext
19078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19079   (eval $ac_compile) 2>conftest.er1
19080   ac_status=$?
19081   grep -v '^ *+' conftest.er1 >conftest.err
19082   rm -f conftest.er1
19083   cat conftest.err >&5
19084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085   (exit $ac_status); } &&
19086          { ac_try='test -z "$ac_c_werror_flag"
19087                          || test ! -s conftest.err'
19088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089   (eval $ac_try) 2>&5
19090   ac_status=$?
19091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092   (exit $ac_status); }; } &&
19093          { ac_try='test -s conftest.$ac_objext'
19094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095   (eval $ac_try) 2>&5
19096   ac_status=$?
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); }; }; then
19099   ac_cv_member_struct_stat_st_blocks=yes
19100 else
19101   echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19103
19104 ac_cv_member_struct_stat_st_blocks=no
19105 fi
19106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19107 fi
19108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19109 fi
19110 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19111 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19112 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19113
19114 cat >>confdefs.h <<_ACEOF
19115 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19116 _ACEOF
19117
19118
19119 cat >>confdefs.h <<\_ACEOF
19120 #define HAVE_ST_BLOCKS 1
19121 _ACEOF
19122
19123 else
19124   case $LIBOBJS in
19125     "fileblocks.$ac_objext"   | \
19126   *" fileblocks.$ac_objext"   | \
19127     "fileblocks.$ac_objext "* | \
19128   *" fileblocks.$ac_objext "* ) ;;
19129   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
19130 esac
19131
19132 fi
19133
19134
19135     if test $ac_cv_member_struct_stat_st_blocks = no; then
19136
19137
19138   :
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148   fi
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158   :
19159
19160
19161
19162
19163
19164
19165   :
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175 for ac_header in sys/mount.h
19176 do
19177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19178 echo "$as_me:$LINENO: checking for $ac_header" >&5
19179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19181   echo $ECHO_N "(cached) $ECHO_C" >&6
19182 else
19183   cat >conftest.$ac_ext <<_ACEOF
19184 /* confdefs.h.  */
19185 _ACEOF
19186 cat confdefs.h >>conftest.$ac_ext
19187 cat >>conftest.$ac_ext <<_ACEOF
19188 /* end confdefs.h.  */
19189 $ac_includes_default
19190      #if HAVE_SYS_PARAM_H
19191        #include <sys/param.h>
19192       #endif
19193
19194 #include <$ac_header>
19195 _ACEOF
19196 rm -f conftest.$ac_objext
19197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19198   (eval $ac_compile) 2>conftest.er1
19199   ac_status=$?
19200   grep -v '^ *+' conftest.er1 >conftest.err
19201   rm -f conftest.er1
19202   cat conftest.err >&5
19203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); } &&
19205          { ac_try='test -z "$ac_c_werror_flag"
19206                          || test ! -s conftest.err'
19207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208   (eval $ac_try) 2>&5
19209   ac_status=$?
19210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211   (exit $ac_status); }; } &&
19212          { ac_try='test -s conftest.$ac_objext'
19213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214   (eval $ac_try) 2>&5
19215   ac_status=$?
19216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217   (exit $ac_status); }; }; then
19218   eval "$as_ac_Header=yes"
19219 else
19220   echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19222
19223 eval "$as_ac_Header=no"
19224 fi
19225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19226 fi
19227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19230   cat >>confdefs.h <<_ACEOF
19231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19232 _ACEOF
19233
19234 fi
19235
19236 done
19237
19238
19239
19240 echo "checking how to get file system space usage..."
19241 ac_fsusage_space=no
19242
19243 # Perform only the link test since it seems there are no variants of the
19244 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
19245 # because that got a false positive on SCO OSR5.  Adding the declaration
19246 # of a `struct statvfs' causes this test to fail (as it should) on such
19247 # systems.  That system is reported to work fine with STAT_STATFS4 which
19248 # is what it gets when this test fails.
19249 if test $ac_fsusage_space = no; then
19250   # SVR4
19251   echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
19252 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
19253 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
19254   echo $ECHO_N "(cached) $ECHO_C" >&6
19255 else
19256   cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h.  */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h.  */
19262 #include <sys/types.h>
19263 #ifdef __GLIBC__
19264 Do not use statvfs on systems with GNU libc, because that function stats
19265 all preceding entries in /proc/mounts, and that makes df hang if even
19266 one of the corresponding file systems is hard-mounted, but not available.
19267 #endif
19268 #include <sys/statvfs.h>
19269 int
19270 main ()
19271 {
19272 struct statvfs fsd; statvfs (0, &fsd);
19273   ;
19274   return 0;
19275 }
19276 _ACEOF
19277 rm -f conftest.$ac_objext conftest$ac_exeext
19278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19279   (eval $ac_link) 2>conftest.er1
19280   ac_status=$?
19281   grep -v '^ *+' conftest.er1 >conftest.err
19282   rm -f conftest.er1
19283   cat conftest.err >&5
19284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285   (exit $ac_status); } &&
19286          { ac_try='test -z "$ac_c_werror_flag"
19287                          || test ! -s conftest.err'
19288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289   (eval $ac_try) 2>&5
19290   ac_status=$?
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); }; } &&
19293          { ac_try='test -s conftest$ac_exeext'
19294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295   (eval $ac_try) 2>&5
19296   ac_status=$?
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); }; }; then
19299   fu_cv_sys_stat_statvfs=yes
19300 else
19301   echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19303
19304 fu_cv_sys_stat_statvfs=no
19305 fi
19306 rm -f conftest.err conftest.$ac_objext \
19307       conftest$ac_exeext conftest.$ac_ext
19308 fi
19309 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
19310 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
19311   if test $fu_cv_sys_stat_statvfs = yes; then
19312     ac_fsusage_space=yes
19313
19314 cat >>confdefs.h <<\_ACEOF
19315 #define STAT_STATVFS 1
19316 _ACEOF
19317
19318   fi
19319 fi
19320
19321 if test $ac_fsusage_space = no; then
19322   # DEC Alpha running OSF/1
19323   echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
19324 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
19325   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
19326   echo $ECHO_N "(cached) $ECHO_C" >&6
19327 else
19328   if test "$cross_compiling" = yes; then
19329   fu_cv_sys_stat_statfs3_osf1=no
19330 else
19331   cat >conftest.$ac_ext <<_ACEOF
19332 /* confdefs.h.  */
19333 _ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h.  */
19337
19338 #include <sys/param.h>
19339 #include <sys/types.h>
19340 #include <sys/mount.h>
19341   main ()
19342   {
19343     struct statfs fsd;
19344     fsd.f_fsize = 0;
19345     exit (statfs (".", &fsd, sizeof (struct statfs)));
19346   }
19347 _ACEOF
19348 rm -f conftest$ac_exeext
19349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19350   (eval $ac_link) 2>&5
19351   ac_status=$?
19352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355   (eval $ac_try) 2>&5
19356   ac_status=$?
19357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358   (exit $ac_status); }; }; then
19359   fu_cv_sys_stat_statfs3_osf1=yes
19360 else
19361   echo "$as_me: program exited with status $ac_status" >&5
19362 echo "$as_me: failed program was:" >&5
19363 sed 's/^/| /' conftest.$ac_ext >&5
19364
19365 ( exit $ac_status )
19366 fu_cv_sys_stat_statfs3_osf1=no
19367 fi
19368 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19369 fi
19370 fi
19371
19372   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
19373 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
19374   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
19375     ac_fsusage_space=yes
19376
19377 cat >>confdefs.h <<\_ACEOF
19378 #define STAT_STATFS3_OSF1 1
19379 _ACEOF
19380
19381   fi
19382 fi
19383
19384 if test $ac_fsusage_space = no; then
19385 # AIX
19386   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
19387 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
19388   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
19389   echo $ECHO_N "(cached) $ECHO_C" >&6
19390 else
19391   if test "$cross_compiling" = yes; then
19392   fu_cv_sys_stat_statfs2_bsize=no
19393 else
19394   cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h.  */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h.  */
19400
19401 #ifdef HAVE_SYS_PARAM_H
19402 #include <sys/param.h>
19403 #endif
19404 #ifdef HAVE_SYS_MOUNT_H
19405 #include <sys/mount.h>
19406 #endif
19407 #ifdef HAVE_SYS_VFS_H
19408 #include <sys/vfs.h>
19409 #endif
19410   main ()
19411   {
19412   struct statfs fsd;
19413   fsd.f_bsize = 0;
19414   exit (statfs (".", &fsd));
19415   }
19416 _ACEOF
19417 rm -f conftest$ac_exeext
19418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19419   (eval $ac_link) 2>&5
19420   ac_status=$?
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424   (eval $ac_try) 2>&5
19425   ac_status=$?
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); }; }; then
19428   fu_cv_sys_stat_statfs2_bsize=yes
19429 else
19430   echo "$as_me: program exited with status $ac_status" >&5
19431 echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19433
19434 ( exit $ac_status )
19435 fu_cv_sys_stat_statfs2_bsize=no
19436 fi
19437 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19438 fi
19439 fi
19440
19441   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
19442 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
19443   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
19444     ac_fsusage_space=yes
19445
19446 cat >>confdefs.h <<\_ACEOF
19447 #define STAT_STATFS2_BSIZE 1
19448 _ACEOF
19449
19450   fi
19451 fi
19452
19453 if test $ac_fsusage_space = no; then
19454 # SVR3
19455   echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
19456 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
19457   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
19458   echo $ECHO_N "(cached) $ECHO_C" >&6
19459 else
19460   if test "$cross_compiling" = yes; then
19461   fu_cv_sys_stat_statfs4=no
19462 else
19463   cat >conftest.$ac_ext <<_ACEOF
19464 /* confdefs.h.  */
19465 _ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h.  */
19469 #include <sys/types.h>
19470 #include <sys/statfs.h>
19471   main ()
19472   {
19473   struct statfs fsd;
19474   exit (statfs (".", &fsd, sizeof fsd, 0));
19475   }
19476 _ACEOF
19477 rm -f conftest$ac_exeext
19478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19479   (eval $ac_link) 2>&5
19480   ac_status=$?
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484   (eval $ac_try) 2>&5
19485   ac_status=$?
19486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487   (exit $ac_status); }; }; then
19488   fu_cv_sys_stat_statfs4=yes
19489 else
19490   echo "$as_me: program exited with status $ac_status" >&5
19491 echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19493
19494 ( exit $ac_status )
19495 fu_cv_sys_stat_statfs4=no
19496 fi
19497 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19498 fi
19499 fi
19500
19501   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
19502 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
19503   if test $fu_cv_sys_stat_statfs4 = yes; then
19504     ac_fsusage_space=yes
19505
19506 cat >>confdefs.h <<\_ACEOF
19507 #define STAT_STATFS4 1
19508 _ACEOF
19509
19510   fi
19511 fi
19512
19513 if test $ac_fsusage_space = no; then
19514 # 4.4BSD and NetBSD
19515   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
19516 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
19517   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
19518   echo $ECHO_N "(cached) $ECHO_C" >&6
19519 else
19520   if test "$cross_compiling" = yes; then
19521   fu_cv_sys_stat_statfs2_fsize=no
19522 else
19523   cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h.  */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h.  */
19529 #include <sys/types.h>
19530 #ifdef HAVE_SYS_PARAM_H
19531 #include <sys/param.h>
19532 #endif
19533 #ifdef HAVE_SYS_MOUNT_H
19534 #include <sys/mount.h>
19535 #endif
19536   main ()
19537   {
19538   struct statfs fsd;
19539   fsd.f_fsize = 0;
19540   exit (statfs (".", &fsd));
19541   }
19542 _ACEOF
19543 rm -f conftest$ac_exeext
19544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19545   (eval $ac_link) 2>&5
19546   ac_status=$?
19547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550   (eval $ac_try) 2>&5
19551   ac_status=$?
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); }; }; then
19554   fu_cv_sys_stat_statfs2_fsize=yes
19555 else
19556   echo "$as_me: program exited with status $ac_status" >&5
19557 echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19559
19560 ( exit $ac_status )
19561 fu_cv_sys_stat_statfs2_fsize=no
19562 fi
19563 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19564 fi
19565 fi
19566
19567   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
19568 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
19569   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
19570     ac_fsusage_space=yes
19571
19572 cat >>confdefs.h <<\_ACEOF
19573 #define STAT_STATFS2_FSIZE 1
19574 _ACEOF
19575
19576   fi
19577 fi
19578
19579 if test $ac_fsusage_space = no; then
19580   # Ultrix
19581   echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
19582 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
19583   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
19584   echo $ECHO_N "(cached) $ECHO_C" >&6
19585 else
19586   if test "$cross_compiling" = yes; then
19587   fu_cv_sys_stat_fs_data=no
19588 else
19589   cat >conftest.$ac_ext <<_ACEOF
19590 /* confdefs.h.  */
19591 _ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h.  */
19595 #include <sys/types.h>
19596 #ifdef HAVE_SYS_PARAM_H
19597 #include <sys/param.h>
19598 #endif
19599 #ifdef HAVE_SYS_MOUNT_H
19600 #include <sys/mount.h>
19601 #endif
19602 #ifdef HAVE_SYS_FS_TYPES_H
19603 #include <sys/fs_types.h>
19604 #endif
19605   main ()
19606   {
19607   struct fs_data fsd;
19608   /* Ultrix's statfs returns 1 for success,
19609      0 for not mounted, -1 for failure.  */
19610   exit (statfs (".", &fsd) != 1);
19611   }
19612 _ACEOF
19613 rm -f conftest$ac_exeext
19614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19615   (eval $ac_link) 2>&5
19616   ac_status=$?
19617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19620   (eval $ac_try) 2>&5
19621   ac_status=$?
19622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623   (exit $ac_status); }; }; then
19624   fu_cv_sys_stat_fs_data=yes
19625 else
19626   echo "$as_me: program exited with status $ac_status" >&5
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19629
19630 ( exit $ac_status )
19631 fu_cv_sys_stat_fs_data=no
19632 fi
19633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19634 fi
19635 fi
19636
19637   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
19638 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
19639   if test $fu_cv_sys_stat_fs_data = yes; then
19640     ac_fsusage_space=yes
19641
19642 cat >>confdefs.h <<\_ACEOF
19643 #define STAT_STATFS2_FS_DATA 1
19644 _ACEOF
19645
19646   fi
19647 fi
19648
19649 if test $ac_fsusage_space = no; then
19650   # SVR2
19651   cat >conftest.$ac_ext <<_ACEOF
19652 /* confdefs.h.  */
19653 _ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h.  */
19657 #include <sys/filsys.h>
19658
19659 _ACEOF
19660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19661   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19662   ac_status=$?
19663   grep -v '^ *+' conftest.er1 >conftest.err
19664   rm -f conftest.er1
19665   cat conftest.err >&5
19666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667   (exit $ac_status); } >/dev/null; then
19668   if test -s conftest.err; then
19669     ac_cpp_err=$ac_c_preproc_warn_flag
19670     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19671   else
19672     ac_cpp_err=
19673   fi
19674 else
19675   ac_cpp_err=yes
19676 fi
19677 if test -z "$ac_cpp_err"; then
19678
19679 cat >>confdefs.h <<\_ACEOF
19680 #define STAT_READ_FILSYS 1
19681 _ACEOF
19682
19683     ac_fsusage_space=yes
19684 else
19685   echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19687
19688
19689 fi
19690 rm -f conftest.err conftest.$ac_ext
19691 fi
19692
19693 if test $ac_fsusage_space = yes; then
19694   gl_cv_fs_space=yes
19695 else
19696   gl_cv_fs_space=no
19697 fi
19698
19699
19700
19701   if test $gl_cv_fs_space = yes; then
19702     case $LIBOBJS in
19703     "fsusage.$ac_objext"   | \
19704   *" fsusage.$ac_objext"   | \
19705     "fsusage.$ac_objext "* | \
19706   *" fsusage.$ac_objext "* ) ;;
19707   *) LIBOBJS="$LIBOBJS fsusage.$ac_objext" ;;
19708 esac
19709
19710
19711
19712
19713   :
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h
19725 do
19726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19728   echo "$as_me:$LINENO: checking for $ac_header" >&5
19729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19731   echo $ECHO_N "(cached) $ECHO_C" >&6
19732 fi
19733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19735 else
19736   # Is the header compilable?
19737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19739 cat >conftest.$ac_ext <<_ACEOF
19740 /* confdefs.h.  */
19741 _ACEOF
19742 cat confdefs.h >>conftest.$ac_ext
19743 cat >>conftest.$ac_ext <<_ACEOF
19744 /* end confdefs.h.  */
19745 $ac_includes_default
19746 #include <$ac_header>
19747 _ACEOF
19748 rm -f conftest.$ac_objext
19749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19750   (eval $ac_compile) 2>conftest.er1
19751   ac_status=$?
19752   grep -v '^ *+' conftest.er1 >conftest.err
19753   rm -f conftest.er1
19754   cat conftest.err >&5
19755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756   (exit $ac_status); } &&
19757          { ac_try='test -z "$ac_c_werror_flag"
19758                          || test ! -s conftest.err'
19759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19760   (eval $ac_try) 2>&5
19761   ac_status=$?
19762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763   (exit $ac_status); }; } &&
19764          { ac_try='test -s conftest.$ac_objext'
19765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19766   (eval $ac_try) 2>&5
19767   ac_status=$?
19768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769   (exit $ac_status); }; }; then
19770   ac_header_compiler=yes
19771 else
19772   echo "$as_me: failed program was:" >&5
19773 sed 's/^/| /' conftest.$ac_ext >&5
19774
19775 ac_header_compiler=no
19776 fi
19777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19779 echo "${ECHO_T}$ac_header_compiler" >&6
19780
19781 # Is the header present?
19782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19784 cat >conftest.$ac_ext <<_ACEOF
19785 /* confdefs.h.  */
19786 _ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h.  */
19790 #include <$ac_header>
19791 _ACEOF
19792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19793   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19794   ac_status=$?
19795   grep -v '^ *+' conftest.er1 >conftest.err
19796   rm -f conftest.er1
19797   cat conftest.err >&5
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); } >/dev/null; then
19800   if test -s conftest.err; then
19801     ac_cpp_err=$ac_c_preproc_warn_flag
19802     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19803   else
19804     ac_cpp_err=
19805   fi
19806 else
19807   ac_cpp_err=yes
19808 fi
19809 if test -z "$ac_cpp_err"; then
19810   ac_header_preproc=yes
19811 else
19812   echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19814
19815   ac_header_preproc=no
19816 fi
19817 rm -f conftest.err conftest.$ac_ext
19818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19819 echo "${ECHO_T}$ac_header_preproc" >&6
19820
19821 # So?  What about this header?
19822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19823   yes:no: )
19824     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19828     ac_header_preproc=yes
19829     ;;
19830   no:yes:* )
19831     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19833     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19834 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19835     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19837     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19838 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19841     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19843     (
19844       cat <<\_ASBOX
19845 ## ------------------------------------ ##
19846 ## Report this to bug-coreutils@gnu.org ##
19847 ## ------------------------------------ ##
19848 _ASBOX
19849     ) |
19850       sed "s/^/$as_me: WARNING:     /" >&2
19851     ;;
19852 esac
19853 echo "$as_me:$LINENO: checking for $ac_header" >&5
19854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19856   echo $ECHO_N "(cached) $ECHO_C" >&6
19857 else
19858   eval "$as_ac_Header=\$ac_header_preproc"
19859 fi
19860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19862
19863 fi
19864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19865   cat >>confdefs.h <<_ACEOF
19866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19867 _ACEOF
19868
19869 fi
19870
19871 done
19872
19873
19874   echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
19875 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
19876   if test "${fu_cv_sys_truncating_statfs+set}" = set; then
19877   echo $ECHO_N "(cached) $ECHO_C" >&6
19878 else
19879   cat >conftest.$ac_ext <<_ACEOF
19880 /* confdefs.h.  */
19881 _ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h.  */
19885
19886 #if !defined(sun) && !defined(__sun)
19887 choke -- this is a workaround for a Sun-specific problem
19888 #endif
19889 #include <sys/types.h>
19890 #include <sys/vfs.h>
19891 int
19892 main ()
19893 {
19894 struct statfs t; long c = *(t.f_spare);
19895   ;
19896   return 0;
19897 }
19898 _ACEOF
19899 rm -f conftest.$ac_objext
19900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19901   (eval $ac_compile) 2>conftest.er1
19902   ac_status=$?
19903   grep -v '^ *+' conftest.er1 >conftest.err
19904   rm -f conftest.er1
19905   cat conftest.err >&5
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); } &&
19908          { ac_try='test -z "$ac_c_werror_flag"
19909                          || test ! -s conftest.err'
19910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911   (eval $ac_try) 2>&5
19912   ac_status=$?
19913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914   (exit $ac_status); }; } &&
19915          { ac_try='test -s conftest.$ac_objext'
19916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917   (eval $ac_try) 2>&5
19918   ac_status=$?
19919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); }; }; then
19921   fu_cv_sys_truncating_statfs=yes
19922 else
19923   echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19925
19926 fu_cv_sys_truncating_statfs=no
19927 fi
19928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19929 fi
19930
19931   if test $fu_cv_sys_truncating_statfs = yes; then
19932
19933 cat >>confdefs.h <<\_ACEOF
19934 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
19935 _ACEOF
19936
19937   fi
19938   echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
19939 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
19940
19941
19942   fi
19943
19944
19945
19946 for ac_func in atexit
19947 do
19948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19949 echo "$as_me:$LINENO: checking for $ac_func" >&5
19950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19951 if eval "test \"\${$as_ac_var+set}\" = set"; then
19952   echo $ECHO_N "(cached) $ECHO_C" >&6
19953 else
19954   cat >conftest.$ac_ext <<_ACEOF
19955 /* confdefs.h.  */
19956 _ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h.  */
19960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19962 #define $ac_func innocuous_$ac_func
19963
19964 /* System header to define __stub macros and hopefully few prototypes,
19965     which can conflict with char $ac_func (); below.
19966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19967     <limits.h> exists even on freestanding compilers.  */
19968
19969 #ifdef __STDC__
19970 # include <limits.h>
19971 #else
19972 # include <assert.h>
19973 #endif
19974
19975 #undef $ac_func
19976
19977 /* Override any gcc2 internal prototype to avoid an error.  */
19978 #ifdef __cplusplus
19979 extern "C"
19980 {
19981 #endif
19982 /* We use char because int might match the return type of a gcc2
19983    builtin and then its argument prototype would still apply.  */
19984 char $ac_func ();
19985 /* The GNU C library defines this for functions which it implements
19986     to always fail with ENOSYS.  Some functions are actually named
19987     something starting with __ and the normal name is an alias.  */
19988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19989 choke me
19990 #else
19991 char (*f) () = $ac_func;
19992 #endif
19993 #ifdef __cplusplus
19994 }
19995 #endif
19996
19997 int
19998 main ()
19999 {
20000 return f != $ac_func;
20001   ;
20002   return 0;
20003 }
20004 _ACEOF
20005 rm -f conftest.$ac_objext conftest$ac_exeext
20006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20007   (eval $ac_link) 2>conftest.er1
20008   ac_status=$?
20009   grep -v '^ *+' conftest.er1 >conftest.err
20010   rm -f conftest.er1
20011   cat conftest.err >&5
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); } &&
20014          { ac_try='test -z "$ac_c_werror_flag"
20015                          || test ! -s conftest.err'
20016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017   (eval $ac_try) 2>&5
20018   ac_status=$?
20019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020   (exit $ac_status); }; } &&
20021          { ac_try='test -s conftest$ac_exeext'
20022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023   (eval $ac_try) 2>&5
20024   ac_status=$?
20025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); }; }; then
20027   eval "$as_ac_var=yes"
20028 else
20029   echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20031
20032 eval "$as_ac_var=no"
20033 fi
20034 rm -f conftest.err conftest.$ac_objext \
20035       conftest$ac_exeext conftest.$ac_ext
20036 fi
20037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20039 if test `eval echo '${'$as_ac_var'}'` = yes; then
20040   cat >>confdefs.h <<_ACEOF
20041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20042 _ACEOF
20043
20044 else
20045   case $LIBOBJS in
20046     "$ac_func.$ac_objext"   | \
20047   *" $ac_func.$ac_objext"   | \
20048     "$ac_func.$ac_objext "* | \
20049   *" $ac_func.$ac_objext "* ) ;;
20050   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20051 esac
20052
20053 fi
20054 done
20055
20056
20057   if test $ac_cv_func_atexit = no; then
20058
20059   :
20060
20061   fi
20062
20063
20064
20065 for ac_func in dup2
20066 do
20067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20068 echo "$as_me:$LINENO: checking for $ac_func" >&5
20069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20070 if eval "test \"\${$as_ac_var+set}\" = set"; then
20071   echo $ECHO_N "(cached) $ECHO_C" >&6
20072 else
20073   cat >conftest.$ac_ext <<_ACEOF
20074 /* confdefs.h.  */
20075 _ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h.  */
20079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20081 #define $ac_func innocuous_$ac_func
20082
20083 /* System header to define __stub macros and hopefully few prototypes,
20084     which can conflict with char $ac_func (); below.
20085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20086     <limits.h> exists even on freestanding compilers.  */
20087
20088 #ifdef __STDC__
20089 # include <limits.h>
20090 #else
20091 # include <assert.h>
20092 #endif
20093
20094 #undef $ac_func
20095
20096 /* Override any gcc2 internal prototype to avoid an error.  */
20097 #ifdef __cplusplus
20098 extern "C"
20099 {
20100 #endif
20101 /* We use char because int might match the return type of a gcc2
20102    builtin and then its argument prototype would still apply.  */
20103 char $ac_func ();
20104 /* The GNU C library defines this for functions which it implements
20105     to always fail with ENOSYS.  Some functions are actually named
20106     something starting with __ and the normal name is an alias.  */
20107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20108 choke me
20109 #else
20110 char (*f) () = $ac_func;
20111 #endif
20112 #ifdef __cplusplus
20113 }
20114 #endif
20115
20116 int
20117 main ()
20118 {
20119 return f != $ac_func;
20120   ;
20121   return 0;
20122 }
20123 _ACEOF
20124 rm -f conftest.$ac_objext conftest$ac_exeext
20125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20126   (eval $ac_link) 2>conftest.er1
20127   ac_status=$?
20128   grep -v '^ *+' conftest.er1 >conftest.err
20129   rm -f conftest.er1
20130   cat conftest.err >&5
20131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132   (exit $ac_status); } &&
20133          { ac_try='test -z "$ac_c_werror_flag"
20134                          || test ! -s conftest.err'
20135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20136   (eval $ac_try) 2>&5
20137   ac_status=$?
20138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139   (exit $ac_status); }; } &&
20140          { ac_try='test -s conftest$ac_exeext'
20141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142   (eval $ac_try) 2>&5
20143   ac_status=$?
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); }; }; then
20146   eval "$as_ac_var=yes"
20147 else
20148   echo "$as_me: failed program was:" >&5
20149 sed 's/^/| /' conftest.$ac_ext >&5
20150
20151 eval "$as_ac_var=no"
20152 fi
20153 rm -f conftest.err conftest.$ac_objext \
20154       conftest$ac_exeext conftest.$ac_ext
20155 fi
20156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20158 if test `eval echo '${'$as_ac_var'}'` = yes; then
20159   cat >>confdefs.h <<_ACEOF
20160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20161 _ACEOF
20162
20163 else
20164   case $LIBOBJS in
20165     "$ac_func.$ac_objext"   | \
20166   *" $ac_func.$ac_objext"   | \
20167     "$ac_func.$ac_objext "* | \
20168   *" $ac_func.$ac_objext "* ) ;;
20169   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20170 esac
20171
20172 fi
20173 done
20174
20175
20176   if test $ac_cv_func_dup2 = no; then
20177
20178
20179   :
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189   fi
20190
20191
20192
20193
20194   FNMATCH_H=
20195   echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
20196 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
20197 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
20198   echo $ECHO_N "(cached) $ECHO_C" >&6
20199 else
20200               if test "$cross_compiling" = yes; then
20201   ac_cv_func_fnmatch_gnu=cross
20202 else
20203   cat >conftest.$ac_ext <<_ACEOF
20204 /* confdefs.h.  */
20205 _ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h.  */
20209
20210 #          include <stdlib.h>
20211 #          include <fnmatch.h>
20212 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
20213 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
20214
20215 int
20216 main ()
20217 {
20218 exit
20219            (!(y ("a*", "abc", 0)
20220               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
20221               && y ("a\\\\bc", "abc", 0)
20222               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
20223               && y ("*x", ".x", 0)
20224               && n ("*x", ".x", FNM_PERIOD)
20225               && y ("xxXX", "xXxX", FNM_CASEFOLD)
20226                     && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
20227                     && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
20228                     && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
20229                     && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
20230                     && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
20231   ;
20232   return 0;
20233 }
20234 _ACEOF
20235 rm -f conftest$ac_exeext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20237   (eval $ac_link) 2>&5
20238   ac_status=$?
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242   (eval $ac_try) 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); }; }; then
20246   ac_cv_func_fnmatch_gnu=yes
20247 else
20248   echo "$as_me: program exited with status $ac_status" >&5
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20251
20252 ( exit $ac_status )
20253 ac_cv_func_fnmatch_gnu=no
20254 fi
20255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20256 fi
20257 fi
20258 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
20259 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
20260 if test $ac_cv_func_fnmatch_gnu = yes; then
20261   rm -f lib/fnmatch.h
20262 else
20263   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
20264 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
20265 if test "${ac_cv_have_decl_getenv+set}" = set; then
20266   echo $ECHO_N "(cached) $ECHO_C" >&6
20267 else
20268   cat >conftest.$ac_ext <<_ACEOF
20269 /* confdefs.h.  */
20270 _ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h.  */
20274 $ac_includes_default
20275 int
20276 main ()
20277 {
20278 #ifndef getenv
20279   char *p = (char *) getenv;
20280 #endif
20281
20282   ;
20283   return 0;
20284 }
20285 _ACEOF
20286 rm -f conftest.$ac_objext
20287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20288   (eval $ac_compile) 2>conftest.er1
20289   ac_status=$?
20290   grep -v '^ *+' conftest.er1 >conftest.err
20291   rm -f conftest.er1
20292   cat conftest.err >&5
20293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294   (exit $ac_status); } &&
20295          { ac_try='test -z "$ac_c_werror_flag"
20296                          || test ! -s conftest.err'
20297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298   (eval $ac_try) 2>&5
20299   ac_status=$?
20300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); }; } &&
20302          { ac_try='test -s conftest.$ac_objext'
20303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304   (eval $ac_try) 2>&5
20305   ac_status=$?
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); }; }; then
20308   ac_cv_have_decl_getenv=yes
20309 else
20310   echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20312
20313 ac_cv_have_decl_getenv=no
20314 fi
20315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20316 fi
20317 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
20318 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
20319 if test $ac_cv_have_decl_getenv = yes; then
20320
20321 cat >>confdefs.h <<_ACEOF
20322 #define HAVE_DECL_GETENV 1
20323 _ACEOF
20324
20325
20326 else
20327   cat >>confdefs.h <<_ACEOF
20328 #define HAVE_DECL_GETENV 0
20329 _ACEOF
20330
20331
20332 fi
20333
20334
20335
20336
20337
20338
20339
20340
20341 for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy
20342 do
20343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20344 echo "$as_me:$LINENO: checking for $ac_func" >&5
20345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20346 if eval "test \"\${$as_ac_var+set}\" = set"; then
20347   echo $ECHO_N "(cached) $ECHO_C" >&6
20348 else
20349   cat >conftest.$ac_ext <<_ACEOF
20350 /* confdefs.h.  */
20351 _ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h.  */
20355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20357 #define $ac_func innocuous_$ac_func
20358
20359 /* System header to define __stub macros and hopefully few prototypes,
20360     which can conflict with char $ac_func (); below.
20361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20362     <limits.h> exists even on freestanding compilers.  */
20363
20364 #ifdef __STDC__
20365 # include <limits.h>
20366 #else
20367 # include <assert.h>
20368 #endif
20369
20370 #undef $ac_func
20371
20372 /* Override any gcc2 internal prototype to avoid an error.  */
20373 #ifdef __cplusplus
20374 extern "C"
20375 {
20376 #endif
20377 /* We use char because int might match the return type of a gcc2
20378    builtin and then its argument prototype would still apply.  */
20379 char $ac_func ();
20380 /* The GNU C library defines this for functions which it implements
20381     to always fail with ENOSYS.  Some functions are actually named
20382     something starting with __ and the normal name is an alias.  */
20383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20384 choke me
20385 #else
20386 char (*f) () = $ac_func;
20387 #endif
20388 #ifdef __cplusplus
20389 }
20390 #endif
20391
20392 int
20393 main ()
20394 {
20395 return f != $ac_func;
20396   ;
20397   return 0;
20398 }
20399 _ACEOF
20400 rm -f conftest.$ac_objext conftest$ac_exeext
20401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20402   (eval $ac_link) 2>conftest.er1
20403   ac_status=$?
20404   grep -v '^ *+' conftest.er1 >conftest.err
20405   rm -f conftest.er1
20406   cat conftest.err >&5
20407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408   (exit $ac_status); } &&
20409          { ac_try='test -z "$ac_c_werror_flag"
20410                          || test ! -s conftest.err'
20411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412   (eval $ac_try) 2>&5
20413   ac_status=$?
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); }; } &&
20416          { ac_try='test -s conftest$ac_exeext'
20417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418   (eval $ac_try) 2>&5
20419   ac_status=$?
20420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421   (exit $ac_status); }; }; then
20422   eval "$as_ac_var=yes"
20423 else
20424   echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427 eval "$as_ac_var=no"
20428 fi
20429 rm -f conftest.err conftest.$ac_objext \
20430       conftest$ac_exeext conftest.$ac_ext
20431 fi
20432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20434 if test `eval echo '${'$as_ac_var'}'` = yes; then
20435   cat >>confdefs.h <<_ACEOF
20436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20437 _ACEOF
20438
20439 fi
20440 done
20441
20442
20443
20444 for ac_header in wchar.h wctype.h
20445 do
20446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20448   echo "$as_me:$LINENO: checking for $ac_header" >&5
20449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20451   echo $ECHO_N "(cached) $ECHO_C" >&6
20452 fi
20453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20455 else
20456   # Is the header compilable?
20457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20459 cat >conftest.$ac_ext <<_ACEOF
20460 /* confdefs.h.  */
20461 _ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h.  */
20465 $ac_includes_default
20466 #include <$ac_header>
20467 _ACEOF
20468 rm -f conftest.$ac_objext
20469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20470   (eval $ac_compile) 2>conftest.er1
20471   ac_status=$?
20472   grep -v '^ *+' conftest.er1 >conftest.err
20473   rm -f conftest.er1
20474   cat conftest.err >&5
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); } &&
20477          { ac_try='test -z "$ac_c_werror_flag"
20478                          || test ! -s conftest.err'
20479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480   (eval $ac_try) 2>&5
20481   ac_status=$?
20482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); }; } &&
20484          { ac_try='test -s conftest.$ac_objext'
20485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20486   (eval $ac_try) 2>&5
20487   ac_status=$?
20488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); }; }; then
20490   ac_header_compiler=yes
20491 else
20492   echo "$as_me: failed program was:" >&5
20493 sed 's/^/| /' conftest.$ac_ext >&5
20494
20495 ac_header_compiler=no
20496 fi
20497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20499 echo "${ECHO_T}$ac_header_compiler" >&6
20500
20501 # Is the header present?
20502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20504 cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h.  */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h.  */
20510 #include <$ac_header>
20511 _ACEOF
20512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20514   ac_status=$?
20515   grep -v '^ *+' conftest.er1 >conftest.err
20516   rm -f conftest.er1
20517   cat conftest.err >&5
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); } >/dev/null; then
20520   if test -s conftest.err; then
20521     ac_cpp_err=$ac_c_preproc_warn_flag
20522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20523   else
20524     ac_cpp_err=
20525   fi
20526 else
20527   ac_cpp_err=yes
20528 fi
20529 if test -z "$ac_cpp_err"; then
20530   ac_header_preproc=yes
20531 else
20532   echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20534
20535   ac_header_preproc=no
20536 fi
20537 rm -f conftest.err conftest.$ac_ext
20538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20539 echo "${ECHO_T}$ac_header_preproc" >&6
20540
20541 # So?  What about this header?
20542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20543   yes:no: )
20544     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20548     ac_header_preproc=yes
20549     ;;
20550   no:yes:* )
20551     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20553     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20554 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20555     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20557     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20558 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20561     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20563     (
20564       cat <<\_ASBOX
20565 ## ------------------------------------ ##
20566 ## Report this to bug-coreutils@gnu.org ##
20567 ## ------------------------------------ ##
20568 _ASBOX
20569     ) |
20570       sed "s/^/$as_me: WARNING:     /" >&2
20571     ;;
20572 esac
20573 echo "$as_me:$LINENO: checking for $ac_header" >&5
20574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20576   echo $ECHO_N "(cached) $ECHO_C" >&6
20577 else
20578   eval "$as_ac_Header=\$ac_header_preproc"
20579 fi
20580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20582
20583 fi
20584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20585   cat >>confdefs.h <<_ACEOF
20586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20587 _ACEOF
20588
20589 fi
20590
20591 done
20592
20593 case $LIBOBJS in
20594     "fnmatch.$ac_objext"   | \
20595   *" fnmatch.$ac_objext"   | \
20596     "fnmatch.$ac_objext "* | \
20597   *" fnmatch.$ac_objext "* ) ;;
20598   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
20599 esac
20600
20601 FNMATCH_H=fnmatch.h
20602
20603 fi
20604
20605
20606   if test $ac_cv_func_fnmatch_gnu != yes; then
20607
20608 cat >>confdefs.h <<\_ACEOF
20609 #define fnmatch gnu_fnmatch
20610 _ACEOF
20611
20612   fi
20613
20614
20615
20616
20617 for ac_func in gethostname
20618 do
20619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20620 echo "$as_me:$LINENO: checking for $ac_func" >&5
20621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20622 if eval "test \"\${$as_ac_var+set}\" = set"; then
20623   echo $ECHO_N "(cached) $ECHO_C" >&6
20624 else
20625   cat >conftest.$ac_ext <<_ACEOF
20626 /* confdefs.h.  */
20627 _ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h.  */
20631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20633 #define $ac_func innocuous_$ac_func
20634
20635 /* System header to define __stub macros and hopefully few prototypes,
20636     which can conflict with char $ac_func (); below.
20637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20638     <limits.h> exists even on freestanding compilers.  */
20639
20640 #ifdef __STDC__
20641 # include <limits.h>
20642 #else
20643 # include <assert.h>
20644 #endif
20645
20646 #undef $ac_func
20647
20648 /* Override any gcc2 internal prototype to avoid an error.  */
20649 #ifdef __cplusplus
20650 extern "C"
20651 {
20652 #endif
20653 /* We use char because int might match the return type of a gcc2
20654    builtin and then its argument prototype would still apply.  */
20655 char $ac_func ();
20656 /* The GNU C library defines this for functions which it implements
20657     to always fail with ENOSYS.  Some functions are actually named
20658     something starting with __ and the normal name is an alias.  */
20659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20660 choke me
20661 #else
20662 char (*f) () = $ac_func;
20663 #endif
20664 #ifdef __cplusplus
20665 }
20666 #endif
20667
20668 int
20669 main ()
20670 {
20671 return f != $ac_func;
20672   ;
20673   return 0;
20674 }
20675 _ACEOF
20676 rm -f conftest.$ac_objext conftest$ac_exeext
20677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20678   (eval $ac_link) 2>conftest.er1
20679   ac_status=$?
20680   grep -v '^ *+' conftest.er1 >conftest.err
20681   rm -f conftest.er1
20682   cat conftest.err >&5
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); } &&
20685          { ac_try='test -z "$ac_c_werror_flag"
20686                          || test ! -s conftest.err'
20687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688   (eval $ac_try) 2>&5
20689   ac_status=$?
20690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691   (exit $ac_status); }; } &&
20692          { ac_try='test -s conftest$ac_exeext'
20693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694   (eval $ac_try) 2>&5
20695   ac_status=$?
20696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697   (exit $ac_status); }; }; then
20698   eval "$as_ac_var=yes"
20699 else
20700   echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20702
20703 eval "$as_ac_var=no"
20704 fi
20705 rm -f conftest.err conftest.$ac_objext \
20706       conftest$ac_exeext conftest.$ac_ext
20707 fi
20708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20710 if test `eval echo '${'$as_ac_var'}'` = yes; then
20711   cat >>confdefs.h <<_ACEOF
20712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20713 _ACEOF
20714
20715 else
20716   case $LIBOBJS in
20717     "$ac_func.$ac_objext"   | \
20718   *" $ac_func.$ac_objext"   | \
20719     "$ac_func.$ac_objext "* | \
20720   *" $ac_func.$ac_objext "* ) ;;
20721   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20722 esac
20723
20724 fi
20725 done
20726
20727
20728   if test $ac_cv_func_gethostname = no; then
20729
20730
20731 for ac_func in uname
20732 do
20733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20734 echo "$as_me:$LINENO: checking for $ac_func" >&5
20735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20736 if eval "test \"\${$as_ac_var+set}\" = set"; then
20737   echo $ECHO_N "(cached) $ECHO_C" >&6
20738 else
20739   cat >conftest.$ac_ext <<_ACEOF
20740 /* confdefs.h.  */
20741 _ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h.  */
20745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20747 #define $ac_func innocuous_$ac_func
20748
20749 /* System header to define __stub macros and hopefully few prototypes,
20750     which can conflict with char $ac_func (); below.
20751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20752     <limits.h> exists even on freestanding compilers.  */
20753
20754 #ifdef __STDC__
20755 # include <limits.h>
20756 #else
20757 # include <assert.h>
20758 #endif
20759
20760 #undef $ac_func
20761
20762 /* Override any gcc2 internal prototype to avoid an error.  */
20763 #ifdef __cplusplus
20764 extern "C"
20765 {
20766 #endif
20767 /* We use char because int might match the return type of a gcc2
20768    builtin and then its argument prototype would still apply.  */
20769 char $ac_func ();
20770 /* The GNU C library defines this for functions which it implements
20771     to always fail with ENOSYS.  Some functions are actually named
20772     something starting with __ and the normal name is an alias.  */
20773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20774 choke me
20775 #else
20776 char (*f) () = $ac_func;
20777 #endif
20778 #ifdef __cplusplus
20779 }
20780 #endif
20781
20782 int
20783 main ()
20784 {
20785 return f != $ac_func;
20786   ;
20787   return 0;
20788 }
20789 _ACEOF
20790 rm -f conftest.$ac_objext conftest$ac_exeext
20791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20792   (eval $ac_link) 2>conftest.er1
20793   ac_status=$?
20794   grep -v '^ *+' conftest.er1 >conftest.err
20795   rm -f conftest.er1
20796   cat conftest.err >&5
20797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798   (exit $ac_status); } &&
20799          { ac_try='test -z "$ac_c_werror_flag"
20800                          || test ! -s conftest.err'
20801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20802   (eval $ac_try) 2>&5
20803   ac_status=$?
20804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805   (exit $ac_status); }; } &&
20806          { ac_try='test -s conftest$ac_exeext'
20807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20808   (eval $ac_try) 2>&5
20809   ac_status=$?
20810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811   (exit $ac_status); }; }; then
20812   eval "$as_ac_var=yes"
20813 else
20814   echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20816
20817 eval "$as_ac_var=no"
20818 fi
20819 rm -f conftest.err conftest.$ac_objext \
20820       conftest$ac_exeext conftest.$ac_ext
20821 fi
20822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20824 if test `eval echo '${'$as_ac_var'}'` = yes; then
20825   cat >>confdefs.h <<_ACEOF
20826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20827 _ACEOF
20828
20829 fi
20830 done
20831
20832
20833   fi
20834
20835 ac_have_func=no # yes means we've found a way to get the load average.
20836
20837 # Make sure getloadavg.c is where it belongs, at configure-time.
20838 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
20839   { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
20840 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
20841    { (exit 1); exit 1; }; }
20842
20843 ac_save_LIBS=$LIBS
20844
20845 # Check for getloadavg, but be sure not to touch the cache variable.
20846 (echo "$as_me:$LINENO: checking for getloadavg" >&5
20847 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
20848 if test "${ac_cv_func_getloadavg+set}" = set; then
20849   echo $ECHO_N "(cached) $ECHO_C" >&6
20850 else
20851   cat >conftest.$ac_ext <<_ACEOF
20852 /* confdefs.h.  */
20853 _ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h.  */
20857 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
20858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20859 #define getloadavg innocuous_getloadavg
20860
20861 /* System header to define __stub macros and hopefully few prototypes,
20862     which can conflict with char getloadavg (); below.
20863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20864     <limits.h> exists even on freestanding compilers.  */
20865
20866 #ifdef __STDC__
20867 # include <limits.h>
20868 #else
20869 # include <assert.h>
20870 #endif
20871
20872 #undef getloadavg
20873
20874 /* Override any gcc2 internal prototype to avoid an error.  */
20875 #ifdef __cplusplus
20876 extern "C"
20877 {
20878 #endif
20879 /* We use char because int might match the return type of a gcc2
20880    builtin and then its argument prototype would still apply.  */
20881 char getloadavg ();
20882 /* The GNU C library defines this for functions which it implements
20883     to always fail with ENOSYS.  Some functions are actually named
20884     something starting with __ and the normal name is an alias.  */
20885 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
20886 choke me
20887 #else
20888 char (*f) () = getloadavg;
20889 #endif
20890 #ifdef __cplusplus
20891 }
20892 #endif
20893
20894 int
20895 main ()
20896 {
20897 return f != getloadavg;
20898   ;
20899   return 0;
20900 }
20901 _ACEOF
20902 rm -f conftest.$ac_objext conftest$ac_exeext
20903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20904   (eval $ac_link) 2>conftest.er1
20905   ac_status=$?
20906   grep -v '^ *+' conftest.er1 >conftest.err
20907   rm -f conftest.er1
20908   cat conftest.err >&5
20909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910   (exit $ac_status); } &&
20911          { ac_try='test -z "$ac_c_werror_flag"
20912                          || test ! -s conftest.err'
20913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914   (eval $ac_try) 2>&5
20915   ac_status=$?
20916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917   (exit $ac_status); }; } &&
20918          { ac_try='test -s conftest$ac_exeext'
20919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20920   (eval $ac_try) 2>&5
20921   ac_status=$?
20922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923   (exit $ac_status); }; }; then
20924   ac_cv_func_getloadavg=yes
20925 else
20926   echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20928
20929 ac_cv_func_getloadavg=no
20930 fi
20931 rm -f conftest.err conftest.$ac_objext \
20932       conftest$ac_exeext conftest.$ac_ext
20933 fi
20934 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
20935 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
20936 if test $ac_cv_func_getloadavg = yes; then
20937   exit 0
20938 else
20939   exit 1
20940 fi
20941 ) && ac_have_func=yes
20942
20943 # On HPUX9, an unprivileged user can get load averages through this function.
20944
20945 for ac_func in pstat_getdynamic
20946 do
20947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20948 echo "$as_me:$LINENO: checking for $ac_func" >&5
20949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20950 if eval "test \"\${$as_ac_var+set}\" = set"; then
20951   echo $ECHO_N "(cached) $ECHO_C" >&6
20952 else
20953   cat >conftest.$ac_ext <<_ACEOF
20954 /* confdefs.h.  */
20955 _ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h.  */
20959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20961 #define $ac_func innocuous_$ac_func
20962
20963 /* System header to define __stub macros and hopefully few prototypes,
20964     which can conflict with char $ac_func (); below.
20965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20966     <limits.h> exists even on freestanding compilers.  */
20967
20968 #ifdef __STDC__
20969 # include <limits.h>
20970 #else
20971 # include <assert.h>
20972 #endif
20973
20974 #undef $ac_func
20975
20976 /* Override any gcc2 internal prototype to avoid an error.  */
20977 #ifdef __cplusplus
20978 extern "C"
20979 {
20980 #endif
20981 /* We use char because int might match the return type of a gcc2
20982    builtin and then its argument prototype would still apply.  */
20983 char $ac_func ();
20984 /* The GNU C library defines this for functions which it implements
20985     to always fail with ENOSYS.  Some functions are actually named
20986     something starting with __ and the normal name is an alias.  */
20987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20988 choke me
20989 #else
20990 char (*f) () = $ac_func;
20991 #endif
20992 #ifdef __cplusplus
20993 }
20994 #endif
20995
20996 int
20997 main ()
20998 {
20999 return f != $ac_func;
21000   ;
21001   return 0;
21002 }
21003 _ACEOF
21004 rm -f conftest.$ac_objext conftest$ac_exeext
21005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21006   (eval $ac_link) 2>conftest.er1
21007   ac_status=$?
21008   grep -v '^ *+' conftest.er1 >conftest.err
21009   rm -f conftest.er1
21010   cat conftest.err >&5
21011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012   (exit $ac_status); } &&
21013          { ac_try='test -z "$ac_c_werror_flag"
21014                          || test ! -s conftest.err'
21015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016   (eval $ac_try) 2>&5
21017   ac_status=$?
21018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019   (exit $ac_status); }; } &&
21020          { ac_try='test -s conftest$ac_exeext'
21021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022   (eval $ac_try) 2>&5
21023   ac_status=$?
21024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025   (exit $ac_status); }; }; then
21026   eval "$as_ac_var=yes"
21027 else
21028   echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21030
21031 eval "$as_ac_var=no"
21032 fi
21033 rm -f conftest.err conftest.$ac_objext \
21034       conftest$ac_exeext conftest.$ac_ext
21035 fi
21036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21038 if test `eval echo '${'$as_ac_var'}'` = yes; then
21039   cat >>confdefs.h <<_ACEOF
21040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21041 _ACEOF
21042
21043 fi
21044 done
21045
21046
21047 # Solaris has libkstat which does not require root.
21048
21049 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
21050 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
21051 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
21052   echo $ECHO_N "(cached) $ECHO_C" >&6
21053 else
21054   ac_check_lib_save_LIBS=$LIBS
21055 LIBS="-lkstat  $LIBS"
21056 cat >conftest.$ac_ext <<_ACEOF
21057 /* confdefs.h.  */
21058 _ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h.  */
21062
21063 /* Override any gcc2 internal prototype to avoid an error.  */
21064 #ifdef __cplusplus
21065 extern "C"
21066 #endif
21067 /* We use char because int might match the return type of a gcc2
21068    builtin and then its argument prototype would still apply.  */
21069 char kstat_open ();
21070 int
21071 main ()
21072 {
21073 kstat_open ();
21074   ;
21075   return 0;
21076 }
21077 _ACEOF
21078 rm -f conftest.$ac_objext conftest$ac_exeext
21079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21080   (eval $ac_link) 2>conftest.er1
21081   ac_status=$?
21082   grep -v '^ *+' conftest.er1 >conftest.err
21083   rm -f conftest.er1
21084   cat conftest.err >&5
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); } &&
21087          { ac_try='test -z "$ac_c_werror_flag"
21088                          || test ! -s conftest.err'
21089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090   (eval $ac_try) 2>&5
21091   ac_status=$?
21092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093   (exit $ac_status); }; } &&
21094          { ac_try='test -s conftest$ac_exeext'
21095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21096   (eval $ac_try) 2>&5
21097   ac_status=$?
21098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099   (exit $ac_status); }; }; then
21100   ac_cv_lib_kstat_kstat_open=yes
21101 else
21102   echo "$as_me: failed program was:" >&5
21103 sed 's/^/| /' conftest.$ac_ext >&5
21104
21105 ac_cv_lib_kstat_kstat_open=no
21106 fi
21107 rm -f conftest.err conftest.$ac_objext \
21108       conftest$ac_exeext conftest.$ac_ext
21109 LIBS=$ac_check_lib_save_LIBS
21110 fi
21111 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
21112 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
21113 if test $ac_cv_lib_kstat_kstat_open = yes; then
21114   cat >>confdefs.h <<_ACEOF
21115 #define HAVE_LIBKSTAT 1
21116 _ACEOF
21117
21118   LIBS="-lkstat $LIBS"
21119
21120 fi
21121
21122 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
21123
21124 # Some systems with -lutil have (and need) -lkvm as well, some do not.
21125 # On Solaris, -lkvm requires nlist from -lelf, so check that first
21126 # to get the right answer into the cache.
21127 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
21128 if test $ac_have_func = no; then
21129   echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
21130 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
21131 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
21132   echo $ECHO_N "(cached) $ECHO_C" >&6
21133 else
21134   ac_check_lib_save_LIBS=$LIBS
21135 LIBS="-lelf  $LIBS"
21136 cat >conftest.$ac_ext <<_ACEOF
21137 /* confdefs.h.  */
21138 _ACEOF
21139 cat confdefs.h >>conftest.$ac_ext
21140 cat >>conftest.$ac_ext <<_ACEOF
21141 /* end confdefs.h.  */
21142
21143 /* Override any gcc2 internal prototype to avoid an error.  */
21144 #ifdef __cplusplus
21145 extern "C"
21146 #endif
21147 /* We use char because int might match the return type of a gcc2
21148    builtin and then its argument prototype would still apply.  */
21149 char elf_begin ();
21150 int
21151 main ()
21152 {
21153 elf_begin ();
21154   ;
21155   return 0;
21156 }
21157 _ACEOF
21158 rm -f conftest.$ac_objext conftest$ac_exeext
21159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21160   (eval $ac_link) 2>conftest.er1
21161   ac_status=$?
21162   grep -v '^ *+' conftest.er1 >conftest.err
21163   rm -f conftest.er1
21164   cat conftest.err >&5
21165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166   (exit $ac_status); } &&
21167          { ac_try='test -z "$ac_c_werror_flag"
21168                          || test ! -s conftest.err'
21169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170   (eval $ac_try) 2>&5
21171   ac_status=$?
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); }; } &&
21174          { ac_try='test -s conftest$ac_exeext'
21175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176   (eval $ac_try) 2>&5
21177   ac_status=$?
21178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179   (exit $ac_status); }; }; then
21180   ac_cv_lib_elf_elf_begin=yes
21181 else
21182   echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21184
21185 ac_cv_lib_elf_elf_begin=no
21186 fi
21187 rm -f conftest.err conftest.$ac_objext \
21188       conftest$ac_exeext conftest.$ac_ext
21189 LIBS=$ac_check_lib_save_LIBS
21190 fi
21191 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
21192 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
21193 if test $ac_cv_lib_elf_elf_begin = yes; then
21194   LIBS="-lelf $LIBS"
21195 fi
21196
21197 fi
21198 if test $ac_have_func = no; then
21199   echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
21200 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
21201 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
21202   echo $ECHO_N "(cached) $ECHO_C" >&6
21203 else
21204   ac_check_lib_save_LIBS=$LIBS
21205 LIBS="-lkvm  $LIBS"
21206 cat >conftest.$ac_ext <<_ACEOF
21207 /* confdefs.h.  */
21208 _ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h.  */
21212
21213 /* Override any gcc2 internal prototype to avoid an error.  */
21214 #ifdef __cplusplus
21215 extern "C"
21216 #endif
21217 /* We use char because int might match the return type of a gcc2
21218    builtin and then its argument prototype would still apply.  */
21219 char kvm_open ();
21220 int
21221 main ()
21222 {
21223 kvm_open ();
21224   ;
21225   return 0;
21226 }
21227 _ACEOF
21228 rm -f conftest.$ac_objext conftest$ac_exeext
21229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21230   (eval $ac_link) 2>conftest.er1
21231   ac_status=$?
21232   grep -v '^ *+' conftest.er1 >conftest.err
21233   rm -f conftest.er1
21234   cat conftest.err >&5
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); } &&
21237          { ac_try='test -z "$ac_c_werror_flag"
21238                          || test ! -s conftest.err'
21239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240   (eval $ac_try) 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   ac_cv_lib_kvm_kvm_open=yes
21251 else
21252   echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21254
21255 ac_cv_lib_kvm_kvm_open=no
21256 fi
21257 rm -f conftest.err conftest.$ac_objext \
21258       conftest$ac_exeext conftest.$ac_ext
21259 LIBS=$ac_check_lib_save_LIBS
21260 fi
21261 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
21262 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
21263 if test $ac_cv_lib_kvm_kvm_open = yes; then
21264   LIBS="-lkvm $LIBS"
21265 fi
21266
21267   # Check for the 4.4BSD definition of getloadavg.
21268   echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
21269 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
21270 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
21271   echo $ECHO_N "(cached) $ECHO_C" >&6
21272 else
21273   ac_check_lib_save_LIBS=$LIBS
21274 LIBS="-lutil  $LIBS"
21275 cat >conftest.$ac_ext <<_ACEOF
21276 /* confdefs.h.  */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h.  */
21281
21282 /* Override any gcc2 internal prototype to avoid an error.  */
21283 #ifdef __cplusplus
21284 extern "C"
21285 #endif
21286 /* We use char because int might match the return type of a gcc2
21287    builtin and then its argument prototype would still apply.  */
21288 char getloadavg ();
21289 int
21290 main ()
21291 {
21292 getloadavg ();
21293   ;
21294   return 0;
21295 }
21296 _ACEOF
21297 rm -f conftest.$ac_objext conftest$ac_exeext
21298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21299   (eval $ac_link) 2>conftest.er1
21300   ac_status=$?
21301   grep -v '^ *+' conftest.er1 >conftest.err
21302   rm -f conftest.er1
21303   cat conftest.err >&5
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); } &&
21306          { ac_try='test -z "$ac_c_werror_flag"
21307                          || test ! -s conftest.err'
21308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309   (eval $ac_try) 2>&5
21310   ac_status=$?
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); }; } &&
21313          { ac_try='test -s conftest$ac_exeext'
21314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315   (eval $ac_try) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); }; }; then
21319   ac_cv_lib_util_getloadavg=yes
21320 else
21321   echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324 ac_cv_lib_util_getloadavg=no
21325 fi
21326 rm -f conftest.err conftest.$ac_objext \
21327       conftest$ac_exeext conftest.$ac_ext
21328 LIBS=$ac_check_lib_save_LIBS
21329 fi
21330 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
21331 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
21332 if test $ac_cv_lib_util_getloadavg = yes; then
21333   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
21334 fi
21335
21336 fi
21337
21338 if test $ac_have_func = no; then
21339   # There is a commonly available library for RS/6000 AIX.
21340   # Since it is not a standard part of AIX, it might be installed locally.
21341   ac_getloadavg_LIBS=$LIBS
21342   LIBS="-L/usr/local/lib $LIBS"
21343   echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
21344 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
21345 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
21346   echo $ECHO_N "(cached) $ECHO_C" >&6
21347 else
21348   ac_check_lib_save_LIBS=$LIBS
21349 LIBS="-lgetloadavg  $LIBS"
21350 cat >conftest.$ac_ext <<_ACEOF
21351 /* confdefs.h.  */
21352 _ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h.  */
21356
21357 /* Override any gcc2 internal prototype to avoid an error.  */
21358 #ifdef __cplusplus
21359 extern "C"
21360 #endif
21361 /* We use char because int might match the return type of a gcc2
21362    builtin and then its argument prototype would still apply.  */
21363 char getloadavg ();
21364 int
21365 main ()
21366 {
21367 getloadavg ();
21368   ;
21369   return 0;
21370 }
21371 _ACEOF
21372 rm -f conftest.$ac_objext conftest$ac_exeext
21373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21374   (eval $ac_link) 2>conftest.er1
21375   ac_status=$?
21376   grep -v '^ *+' conftest.er1 >conftest.err
21377   rm -f conftest.er1
21378   cat conftest.err >&5
21379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380   (exit $ac_status); } &&
21381          { ac_try='test -z "$ac_c_werror_flag"
21382                          || test ! -s conftest.err'
21383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384   (eval $ac_try) 2>&5
21385   ac_status=$?
21386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387   (exit $ac_status); }; } &&
21388          { ac_try='test -s conftest$ac_exeext'
21389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390   (eval $ac_try) 2>&5
21391   ac_status=$?
21392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393   (exit $ac_status); }; }; then
21394   ac_cv_lib_getloadavg_getloadavg=yes
21395 else
21396   echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21398
21399 ac_cv_lib_getloadavg_getloadavg=no
21400 fi
21401 rm -f conftest.err conftest.$ac_objext \
21402       conftest$ac_exeext conftest.$ac_ext
21403 LIBS=$ac_check_lib_save_LIBS
21404 fi
21405 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21406 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
21407 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
21408   LIBS="-lgetloadavg $LIBS"
21409 else
21410   LIBS=$ac_getloadavg_LIBS
21411 fi
21412
21413 fi
21414
21415 # Make sure it is really in the library, if we think we found it,
21416 # otherwise set up the replacement function.
21417
21418 for ac_func in getloadavg
21419 do
21420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21421 echo "$as_me:$LINENO: checking for $ac_func" >&5
21422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21423 if eval "test \"\${$as_ac_var+set}\" = set"; then
21424   echo $ECHO_N "(cached) $ECHO_C" >&6
21425 else
21426   cat >conftest.$ac_ext <<_ACEOF
21427 /* confdefs.h.  */
21428 _ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h.  */
21432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21434 #define $ac_func innocuous_$ac_func
21435
21436 /* System header to define __stub macros and hopefully few prototypes,
21437     which can conflict with char $ac_func (); below.
21438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21439     <limits.h> exists even on freestanding compilers.  */
21440
21441 #ifdef __STDC__
21442 # include <limits.h>
21443 #else
21444 # include <assert.h>
21445 #endif
21446
21447 #undef $ac_func
21448
21449 /* Override any gcc2 internal prototype to avoid an error.  */
21450 #ifdef __cplusplus
21451 extern "C"
21452 {
21453 #endif
21454 /* We use char because int might match the return type of a gcc2
21455    builtin and then its argument prototype would still apply.  */
21456 char $ac_func ();
21457 /* The GNU C library defines this for functions which it implements
21458     to always fail with ENOSYS.  Some functions are actually named
21459     something starting with __ and the normal name is an alias.  */
21460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21461 choke me
21462 #else
21463 char (*f) () = $ac_func;
21464 #endif
21465 #ifdef __cplusplus
21466 }
21467 #endif
21468
21469 int
21470 main ()
21471 {
21472 return f != $ac_func;
21473   ;
21474   return 0;
21475 }
21476 _ACEOF
21477 rm -f conftest.$ac_objext conftest$ac_exeext
21478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21479   (eval $ac_link) 2>conftest.er1
21480   ac_status=$?
21481   grep -v '^ *+' conftest.er1 >conftest.err
21482   rm -f conftest.er1
21483   cat conftest.err >&5
21484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485   (exit $ac_status); } &&
21486          { ac_try='test -z "$ac_c_werror_flag"
21487                          || test ! -s conftest.err'
21488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489   (eval $ac_try) 2>&5
21490   ac_status=$?
21491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492   (exit $ac_status); }; } &&
21493          { ac_try='test -s conftest$ac_exeext'
21494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495   (eval $ac_try) 2>&5
21496   ac_status=$?
21497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498   (exit $ac_status); }; }; then
21499   eval "$as_ac_var=yes"
21500 else
21501   echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21503
21504 eval "$as_ac_var=no"
21505 fi
21506 rm -f conftest.err conftest.$ac_objext \
21507       conftest$ac_exeext conftest.$ac_ext
21508 fi
21509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21511 if test `eval echo '${'$as_ac_var'}'` = yes; then
21512   cat >>confdefs.h <<_ACEOF
21513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21514 _ACEOF
21515
21516 else
21517   case $LIBOBJS in
21518     "getloadavg.$ac_objext"   | \
21519   *" getloadavg.$ac_objext"   | \
21520     "getloadavg.$ac_objext "* | \
21521   *" getloadavg.$ac_objext "* ) ;;
21522   *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
21523 esac
21524
21525
21526 cat >>confdefs.h <<\_ACEOF
21527 #define C_GETLOADAVG 1
21528 _ACEOF
21529
21530 # Figure out what our getloadavg.c needs.
21531 ac_have_func=no
21532 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
21533   echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
21534 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
21535 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
21536   echo $ECHO_N "(cached) $ECHO_C" >&6
21537 fi
21538 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
21539 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
21540 else
21541   # Is the header compilable?
21542 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
21543 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
21544 cat >conftest.$ac_ext <<_ACEOF
21545 /* confdefs.h.  */
21546 _ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h.  */
21550 $ac_includes_default
21551 #include <sys/dg_sys_info.h>
21552 _ACEOF
21553 rm -f conftest.$ac_objext
21554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21555   (eval $ac_compile) 2>conftest.er1
21556   ac_status=$?
21557   grep -v '^ *+' conftest.er1 >conftest.err
21558   rm -f conftest.er1
21559   cat conftest.err >&5
21560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561   (exit $ac_status); } &&
21562          { ac_try='test -z "$ac_c_werror_flag"
21563                          || test ! -s conftest.err'
21564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565   (eval $ac_try) 2>&5
21566   ac_status=$?
21567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568   (exit $ac_status); }; } &&
21569          { ac_try='test -s conftest.$ac_objext'
21570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21571   (eval $ac_try) 2>&5
21572   ac_status=$?
21573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574   (exit $ac_status); }; }; then
21575   ac_header_compiler=yes
21576 else
21577   echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21579
21580 ac_header_compiler=no
21581 fi
21582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21584 echo "${ECHO_T}$ac_header_compiler" >&6
21585
21586 # Is the header present?
21587 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
21588 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
21589 cat >conftest.$ac_ext <<_ACEOF
21590 /* confdefs.h.  */
21591 _ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h.  */
21595 #include <sys/dg_sys_info.h>
21596 _ACEOF
21597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21598   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21599   ac_status=$?
21600   grep -v '^ *+' conftest.er1 >conftest.err
21601   rm -f conftest.er1
21602   cat conftest.err >&5
21603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604   (exit $ac_status); } >/dev/null; then
21605   if test -s conftest.err; then
21606     ac_cpp_err=$ac_c_preproc_warn_flag
21607     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21608   else
21609     ac_cpp_err=
21610   fi
21611 else
21612   ac_cpp_err=yes
21613 fi
21614 if test -z "$ac_cpp_err"; then
21615   ac_header_preproc=yes
21616 else
21617   echo "$as_me: failed program was:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21619
21620   ac_header_preproc=no
21621 fi
21622 rm -f conftest.err conftest.$ac_ext
21623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21624 echo "${ECHO_T}$ac_header_preproc" >&6
21625
21626 # So?  What about this header?
21627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21628   yes:no: )
21629     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
21630 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21631     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
21632 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
21633     ac_header_preproc=yes
21634     ;;
21635   no:yes:* )
21636     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
21637 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
21638     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
21639 echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
21640     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
21641 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
21642     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
21643 echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21644     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
21645 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
21646     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
21647 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
21648     (
21649       cat <<\_ASBOX
21650 ## ------------------------------------ ##
21651 ## Report this to bug-coreutils@gnu.org ##
21652 ## ------------------------------------ ##
21653 _ASBOX
21654     ) |
21655       sed "s/^/$as_me: WARNING:     /" >&2
21656     ;;
21657 esac
21658 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
21659 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
21660 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
21661   echo $ECHO_N "(cached) $ECHO_C" >&6
21662 else
21663   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
21664 fi
21665 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
21666 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
21667
21668 fi
21669 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
21670   ac_have_func=yes
21671
21672 cat >>confdefs.h <<\_ACEOF
21673 #define DGUX 1
21674 _ACEOF
21675
21676
21677 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
21678 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
21679 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
21680   echo $ECHO_N "(cached) $ECHO_C" >&6
21681 else
21682   ac_check_lib_save_LIBS=$LIBS
21683 LIBS="-ldgc  $LIBS"
21684 cat >conftest.$ac_ext <<_ACEOF
21685 /* confdefs.h.  */
21686 _ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h.  */
21690
21691 /* Override any gcc2 internal prototype to avoid an error.  */
21692 #ifdef __cplusplus
21693 extern "C"
21694 #endif
21695 /* We use char because int might match the return type of a gcc2
21696    builtin and then its argument prototype would still apply.  */
21697 char dg_sys_info ();
21698 int
21699 main ()
21700 {
21701 dg_sys_info ();
21702   ;
21703   return 0;
21704 }
21705 _ACEOF
21706 rm -f conftest.$ac_objext conftest$ac_exeext
21707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21708   (eval $ac_link) 2>conftest.er1
21709   ac_status=$?
21710   grep -v '^ *+' conftest.er1 >conftest.err
21711   rm -f conftest.er1
21712   cat conftest.err >&5
21713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714   (exit $ac_status); } &&
21715          { ac_try='test -z "$ac_c_werror_flag"
21716                          || test ! -s conftest.err'
21717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21718   (eval $ac_try) 2>&5
21719   ac_status=$?
21720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721   (exit $ac_status); }; } &&
21722          { ac_try='test -s conftest$ac_exeext'
21723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724   (eval $ac_try) 2>&5
21725   ac_status=$?
21726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727   (exit $ac_status); }; }; then
21728   ac_cv_lib_dgc_dg_sys_info=yes
21729 else
21730   echo "$as_me: failed program was:" >&5
21731 sed 's/^/| /' conftest.$ac_ext >&5
21732
21733 ac_cv_lib_dgc_dg_sys_info=no
21734 fi
21735 rm -f conftest.err conftest.$ac_objext \
21736       conftest$ac_exeext conftest.$ac_ext
21737 LIBS=$ac_check_lib_save_LIBS
21738 fi
21739 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
21740 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
21741 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
21742   cat >>confdefs.h <<_ACEOF
21743 #define HAVE_LIBDGC 1
21744 _ACEOF
21745
21746   LIBS="-ldgc $LIBS"
21747
21748 fi
21749
21750 fi
21751
21752
21753
21754 if test "${ac_cv_header_locale_h+set}" = set; then
21755   echo "$as_me:$LINENO: checking for locale.h" >&5
21756 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
21757 if test "${ac_cv_header_locale_h+set}" = set; then
21758   echo $ECHO_N "(cached) $ECHO_C" >&6
21759 fi
21760 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
21761 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
21762 else
21763   # Is the header compilable?
21764 echo "$as_me:$LINENO: checking locale.h usability" >&5
21765 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
21766 cat >conftest.$ac_ext <<_ACEOF
21767 /* confdefs.h.  */
21768 _ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h.  */
21772 $ac_includes_default
21773 #include <locale.h>
21774 _ACEOF
21775 rm -f conftest.$ac_objext
21776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21777   (eval $ac_compile) 2>conftest.er1
21778   ac_status=$?
21779   grep -v '^ *+' conftest.er1 >conftest.err
21780   rm -f conftest.er1
21781   cat conftest.err >&5
21782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783   (exit $ac_status); } &&
21784          { ac_try='test -z "$ac_c_werror_flag"
21785                          || test ! -s conftest.err'
21786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787   (eval $ac_try) 2>&5
21788   ac_status=$?
21789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790   (exit $ac_status); }; } &&
21791          { ac_try='test -s conftest.$ac_objext'
21792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21793   (eval $ac_try) 2>&5
21794   ac_status=$?
21795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796   (exit $ac_status); }; }; then
21797   ac_header_compiler=yes
21798 else
21799   echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21801
21802 ac_header_compiler=no
21803 fi
21804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21806 echo "${ECHO_T}$ac_header_compiler" >&6
21807
21808 # Is the header present?
21809 echo "$as_me:$LINENO: checking locale.h presence" >&5
21810 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
21811 cat >conftest.$ac_ext <<_ACEOF
21812 /* confdefs.h.  */
21813 _ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h.  */
21817 #include <locale.h>
21818 _ACEOF
21819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21820   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21821   ac_status=$?
21822   grep -v '^ *+' conftest.er1 >conftest.err
21823   rm -f conftest.er1
21824   cat conftest.err >&5
21825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826   (exit $ac_status); } >/dev/null; then
21827   if test -s conftest.err; then
21828     ac_cpp_err=$ac_c_preproc_warn_flag
21829     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21830   else
21831     ac_cpp_err=
21832   fi
21833 else
21834   ac_cpp_err=yes
21835 fi
21836 if test -z "$ac_cpp_err"; then
21837   ac_header_preproc=yes
21838 else
21839   echo "$as_me: failed program was:" >&5
21840 sed 's/^/| /' conftest.$ac_ext >&5
21841
21842   ac_header_preproc=no
21843 fi
21844 rm -f conftest.err conftest.$ac_ext
21845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21846 echo "${ECHO_T}$ac_header_preproc" >&6
21847
21848 # So?  What about this header?
21849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21850   yes:no: )
21851     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
21852 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21853     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
21854 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
21855     ac_header_preproc=yes
21856     ;;
21857   no:yes:* )
21858     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
21859 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
21860     { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
21861 echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
21862     { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
21863 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
21864     { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
21865 echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21866     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
21867 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
21868     { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
21869 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
21870     (
21871       cat <<\_ASBOX
21872 ## ------------------------------------ ##
21873 ## Report this to bug-coreutils@gnu.org ##
21874 ## ------------------------------------ ##
21875 _ASBOX
21876     ) |
21877       sed "s/^/$as_me: WARNING:     /" >&2
21878     ;;
21879 esac
21880 echo "$as_me:$LINENO: checking for locale.h" >&5
21881 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
21882 if test "${ac_cv_header_locale_h+set}" = set; then
21883   echo $ECHO_N "(cached) $ECHO_C" >&6
21884 else
21885   ac_cv_header_locale_h=$ac_header_preproc
21886 fi
21887 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
21888 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
21889
21890 fi
21891
21892
21893
21894 for ac_func in setlocale
21895 do
21896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21897 echo "$as_me:$LINENO: checking for $ac_func" >&5
21898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21899 if eval "test \"\${$as_ac_var+set}\" = set"; then
21900   echo $ECHO_N "(cached) $ECHO_C" >&6
21901 else
21902   cat >conftest.$ac_ext <<_ACEOF
21903 /* confdefs.h.  */
21904 _ACEOF
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h.  */
21908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21910 #define $ac_func innocuous_$ac_func
21911
21912 /* System header to define __stub macros and hopefully few prototypes,
21913     which can conflict with char $ac_func (); below.
21914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21915     <limits.h> exists even on freestanding compilers.  */
21916
21917 #ifdef __STDC__
21918 # include <limits.h>
21919 #else
21920 # include <assert.h>
21921 #endif
21922
21923 #undef $ac_func
21924
21925 /* Override any gcc2 internal prototype to avoid an error.  */
21926 #ifdef __cplusplus
21927 extern "C"
21928 {
21929 #endif
21930 /* We use char because int might match the return type of a gcc2
21931    builtin and then its argument prototype would still apply.  */
21932 char $ac_func ();
21933 /* The GNU C library defines this for functions which it implements
21934     to always fail with ENOSYS.  Some functions are actually named
21935     something starting with __ and the normal name is an alias.  */
21936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21937 choke me
21938 #else
21939 char (*f) () = $ac_func;
21940 #endif
21941 #ifdef __cplusplus
21942 }
21943 #endif
21944
21945 int
21946 main ()
21947 {
21948 return f != $ac_func;
21949   ;
21950   return 0;
21951 }
21952 _ACEOF
21953 rm -f conftest.$ac_objext conftest$ac_exeext
21954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21955   (eval $ac_link) 2>conftest.er1
21956   ac_status=$?
21957   grep -v '^ *+' conftest.er1 >conftest.err
21958   rm -f conftest.er1
21959   cat conftest.err >&5
21960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961   (exit $ac_status); } &&
21962          { ac_try='test -z "$ac_c_werror_flag"
21963                          || test ! -s conftest.err'
21964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21965   (eval $ac_try) 2>&5
21966   ac_status=$?
21967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968   (exit $ac_status); }; } &&
21969          { ac_try='test -s conftest$ac_exeext'
21970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21971   (eval $ac_try) 2>&5
21972   ac_status=$?
21973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974   (exit $ac_status); }; }; then
21975   eval "$as_ac_var=yes"
21976 else
21977   echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21979
21980 eval "$as_ac_var=no"
21981 fi
21982 rm -f conftest.err conftest.$ac_objext \
21983       conftest$ac_exeext conftest.$ac_ext
21984 fi
21985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21987 if test `eval echo '${'$as_ac_var'}'` = yes; then
21988   cat >>confdefs.h <<_ACEOF
21989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21990 _ACEOF
21991
21992 fi
21993 done
21994
21995
21996 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
21997 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
21998 # Irix 4.0.5F has the header but not the library.
21999 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
22000   ac_have_func=yes
22001
22002 cat >>confdefs.h <<\_ACEOF
22003 #define SVR4 1
22004 _ACEOF
22005
22006 fi
22007
22008 if test $ac_have_func = no; then
22009   if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
22010   echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
22011 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
22012 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
22013   echo $ECHO_N "(cached) $ECHO_C" >&6
22014 fi
22015 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
22016 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
22017 else
22018   # Is the header compilable?
22019 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
22020 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
22021 cat >conftest.$ac_ext <<_ACEOF
22022 /* confdefs.h.  */
22023 _ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h.  */
22027 $ac_includes_default
22028 #include <inq_stats/cpustats.h>
22029 _ACEOF
22030 rm -f conftest.$ac_objext
22031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22032   (eval $ac_compile) 2>conftest.er1
22033   ac_status=$?
22034   grep -v '^ *+' conftest.er1 >conftest.err
22035   rm -f conftest.er1
22036   cat conftest.err >&5
22037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038   (exit $ac_status); } &&
22039          { ac_try='test -z "$ac_c_werror_flag"
22040                          || test ! -s conftest.err'
22041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22042   (eval $ac_try) 2>&5
22043   ac_status=$?
22044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045   (exit $ac_status); }; } &&
22046          { ac_try='test -s conftest.$ac_objext'
22047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048   (eval $ac_try) 2>&5
22049   ac_status=$?
22050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051   (exit $ac_status); }; }; then
22052   ac_header_compiler=yes
22053 else
22054   echo "$as_me: failed program was:" >&5
22055 sed 's/^/| /' conftest.$ac_ext >&5
22056
22057 ac_header_compiler=no
22058 fi
22059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22060 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22061 echo "${ECHO_T}$ac_header_compiler" >&6
22062
22063 # Is the header present?
22064 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
22065 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
22066 cat >conftest.$ac_ext <<_ACEOF
22067 /* confdefs.h.  */
22068 _ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h.  */
22072 #include <inq_stats/cpustats.h>
22073 _ACEOF
22074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22075   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22076   ac_status=$?
22077   grep -v '^ *+' conftest.er1 >conftest.err
22078   rm -f conftest.er1
22079   cat conftest.err >&5
22080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081   (exit $ac_status); } >/dev/null; then
22082   if test -s conftest.err; then
22083     ac_cpp_err=$ac_c_preproc_warn_flag
22084     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22085   else
22086     ac_cpp_err=
22087   fi
22088 else
22089   ac_cpp_err=yes
22090 fi
22091 if test -z "$ac_cpp_err"; then
22092   ac_header_preproc=yes
22093 else
22094   echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22096
22097   ac_header_preproc=no
22098 fi
22099 rm -f conftest.err conftest.$ac_ext
22100 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22101 echo "${ECHO_T}$ac_header_preproc" >&6
22102
22103 # So?  What about this header?
22104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22105   yes:no: )
22106     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
22107 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22108     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
22109 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
22110     ac_header_preproc=yes
22111     ;;
22112   no:yes:* )
22113     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
22114 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
22115     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&5
22116 echo "$as_me: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&2;}
22117     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
22118 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
22119     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
22120 echo "$as_me: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22121     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
22122 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
22123     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
22124 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
22125     (
22126       cat <<\_ASBOX
22127 ## ------------------------------------ ##
22128 ## Report this to bug-coreutils@gnu.org ##
22129 ## ------------------------------------ ##
22130 _ASBOX
22131     ) |
22132       sed "s/^/$as_me: WARNING:     /" >&2
22133     ;;
22134 esac
22135 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
22136 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
22137 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
22138   echo $ECHO_N "(cached) $ECHO_C" >&6
22139 else
22140   ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
22141 fi
22142 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
22143 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
22144
22145 fi
22146 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
22147   ac_have_func=yes
22148
22149 cat >>confdefs.h <<\_ACEOF
22150 #define UMAX 1
22151 _ACEOF
22152
22153
22154 cat >>confdefs.h <<\_ACEOF
22155 #define UMAX4_3 1
22156 _ACEOF
22157
22158 fi
22159
22160
22161 fi
22162
22163 if test $ac_have_func = no; then
22164   if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
22165   echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
22166 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
22167 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
22168   echo $ECHO_N "(cached) $ECHO_C" >&6
22169 fi
22170 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
22171 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
22172 else
22173   # Is the header compilable?
22174 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
22175 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
22176 cat >conftest.$ac_ext <<_ACEOF
22177 /* confdefs.h.  */
22178 _ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h.  */
22182 $ac_includes_default
22183 #include <sys/cpustats.h>
22184 _ACEOF
22185 rm -f conftest.$ac_objext
22186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22187   (eval $ac_compile) 2>conftest.er1
22188   ac_status=$?
22189   grep -v '^ *+' conftest.er1 >conftest.err
22190   rm -f conftest.er1
22191   cat conftest.err >&5
22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193   (exit $ac_status); } &&
22194          { ac_try='test -z "$ac_c_werror_flag"
22195                          || test ! -s conftest.err'
22196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197   (eval $ac_try) 2>&5
22198   ac_status=$?
22199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200   (exit $ac_status); }; } &&
22201          { ac_try='test -s conftest.$ac_objext'
22202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203   (eval $ac_try) 2>&5
22204   ac_status=$?
22205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206   (exit $ac_status); }; }; then
22207   ac_header_compiler=yes
22208 else
22209   echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22211
22212 ac_header_compiler=no
22213 fi
22214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22216 echo "${ECHO_T}$ac_header_compiler" >&6
22217
22218 # Is the header present?
22219 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
22220 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
22221 cat >conftest.$ac_ext <<_ACEOF
22222 /* confdefs.h.  */
22223 _ACEOF
22224 cat confdefs.h >>conftest.$ac_ext
22225 cat >>conftest.$ac_ext <<_ACEOF
22226 /* end confdefs.h.  */
22227 #include <sys/cpustats.h>
22228 _ACEOF
22229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22230   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22231   ac_status=$?
22232   grep -v '^ *+' conftest.er1 >conftest.err
22233   rm -f conftest.er1
22234   cat conftest.err >&5
22235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236   (exit $ac_status); } >/dev/null; then
22237   if test -s conftest.err; then
22238     ac_cpp_err=$ac_c_preproc_warn_flag
22239     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22240   else
22241     ac_cpp_err=
22242   fi
22243 else
22244   ac_cpp_err=yes
22245 fi
22246 if test -z "$ac_cpp_err"; then
22247   ac_header_preproc=yes
22248 else
22249   echo "$as_me: failed program was:" >&5
22250 sed 's/^/| /' conftest.$ac_ext >&5
22251
22252   ac_header_preproc=no
22253 fi
22254 rm -f conftest.err conftest.$ac_ext
22255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22256 echo "${ECHO_T}$ac_header_preproc" >&6
22257
22258 # So?  What about this header?
22259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22260   yes:no: )
22261     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
22262 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22263     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
22264 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
22265     ac_header_preproc=yes
22266     ;;
22267   no:yes:* )
22268     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
22269 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
22270     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&5
22271 echo "$as_me: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&2;}
22272     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
22273 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
22274     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
22275 echo "$as_me: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22276     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
22277 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
22278     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
22279 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
22280     (
22281       cat <<\_ASBOX
22282 ## ------------------------------------ ##
22283 ## Report this to bug-coreutils@gnu.org ##
22284 ## ------------------------------------ ##
22285 _ASBOX
22286     ) |
22287       sed "s/^/$as_me: WARNING:     /" >&2
22288     ;;
22289 esac
22290 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
22291 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
22292 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
22293   echo $ECHO_N "(cached) $ECHO_C" >&6
22294 else
22295   ac_cv_header_sys_cpustats_h=$ac_header_preproc
22296 fi
22297 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
22298 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
22299
22300 fi
22301 if test $ac_cv_header_sys_cpustats_h = yes; then
22302   ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
22303 #define UMAX 1
22304 _ACEOF
22305
22306 fi
22307
22308
22309 fi
22310
22311 if test $ac_have_func = no; then
22312
22313 for ac_header in mach/mach.h
22314 do
22315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22317   echo "$as_me:$LINENO: checking for $ac_header" >&5
22318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22320   echo $ECHO_N "(cached) $ECHO_C" >&6
22321 fi
22322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22324 else
22325   # Is the header compilable?
22326 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22328 cat >conftest.$ac_ext <<_ACEOF
22329 /* confdefs.h.  */
22330 _ACEOF
22331 cat confdefs.h >>conftest.$ac_ext
22332 cat >>conftest.$ac_ext <<_ACEOF
22333 /* end confdefs.h.  */
22334 $ac_includes_default
22335 #include <$ac_header>
22336 _ACEOF
22337 rm -f conftest.$ac_objext
22338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22339   (eval $ac_compile) 2>conftest.er1
22340   ac_status=$?
22341   grep -v '^ *+' conftest.er1 >conftest.err
22342   rm -f conftest.er1
22343   cat conftest.err >&5
22344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345   (exit $ac_status); } &&
22346          { ac_try='test -z "$ac_c_werror_flag"
22347                          || test ! -s conftest.err'
22348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349   (eval $ac_try) 2>&5
22350   ac_status=$?
22351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352   (exit $ac_status); }; } &&
22353          { ac_try='test -s conftest.$ac_objext'
22354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22355   (eval $ac_try) 2>&5
22356   ac_status=$?
22357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358   (exit $ac_status); }; }; then
22359   ac_header_compiler=yes
22360 else
22361   echo "$as_me: failed program was:" >&5
22362 sed 's/^/| /' conftest.$ac_ext >&5
22363
22364 ac_header_compiler=no
22365 fi
22366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22368 echo "${ECHO_T}$ac_header_compiler" >&6
22369
22370 # Is the header present?
22371 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22373 cat >conftest.$ac_ext <<_ACEOF
22374 /* confdefs.h.  */
22375 _ACEOF
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h.  */
22379 #include <$ac_header>
22380 _ACEOF
22381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22382   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22383   ac_status=$?
22384   grep -v '^ *+' conftest.er1 >conftest.err
22385   rm -f conftest.er1
22386   cat conftest.err >&5
22387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388   (exit $ac_status); } >/dev/null; then
22389   if test -s conftest.err; then
22390     ac_cpp_err=$ac_c_preproc_warn_flag
22391     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22392   else
22393     ac_cpp_err=
22394   fi
22395 else
22396   ac_cpp_err=yes
22397 fi
22398 if test -z "$ac_cpp_err"; then
22399   ac_header_preproc=yes
22400 else
22401   echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22403
22404   ac_header_preproc=no
22405 fi
22406 rm -f conftest.err conftest.$ac_ext
22407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22408 echo "${ECHO_T}$ac_header_preproc" >&6
22409
22410 # So?  What about this header?
22411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22412   yes:no: )
22413     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22417     ac_header_preproc=yes
22418     ;;
22419   no:yes:* )
22420     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22422     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22423 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22424     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22426     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22427 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22430     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22432     (
22433       cat <<\_ASBOX
22434 ## ------------------------------------ ##
22435 ## Report this to bug-coreutils@gnu.org ##
22436 ## ------------------------------------ ##
22437 _ASBOX
22438     ) |
22439       sed "s/^/$as_me: WARNING:     /" >&2
22440     ;;
22441 esac
22442 echo "$as_me:$LINENO: checking for $ac_header" >&5
22443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22445   echo $ECHO_N "(cached) $ECHO_C" >&6
22446 else
22447   eval "$as_ac_Header=\$ac_header_preproc"
22448 fi
22449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22451
22452 fi
22453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22454   cat >>confdefs.h <<_ACEOF
22455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22456 _ACEOF
22457
22458 fi
22459
22460 done
22461
22462 fi
22463
22464
22465 for ac_header in nlist.h
22466 do
22467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22469   echo "$as_me:$LINENO: checking for $ac_header" >&5
22470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22472   echo $ECHO_N "(cached) $ECHO_C" >&6
22473 fi
22474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22476 else
22477   # Is the header compilable?
22478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22480 cat >conftest.$ac_ext <<_ACEOF
22481 /* confdefs.h.  */
22482 _ACEOF
22483 cat confdefs.h >>conftest.$ac_ext
22484 cat >>conftest.$ac_ext <<_ACEOF
22485 /* end confdefs.h.  */
22486 $ac_includes_default
22487 #include <$ac_header>
22488 _ACEOF
22489 rm -f conftest.$ac_objext
22490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22491   (eval $ac_compile) 2>conftest.er1
22492   ac_status=$?
22493   grep -v '^ *+' conftest.er1 >conftest.err
22494   rm -f conftest.er1
22495   cat conftest.err >&5
22496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497   (exit $ac_status); } &&
22498          { ac_try='test -z "$ac_c_werror_flag"
22499                          || test ! -s conftest.err'
22500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22501   (eval $ac_try) 2>&5
22502   ac_status=$?
22503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504   (exit $ac_status); }; } &&
22505          { ac_try='test -s conftest.$ac_objext'
22506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22507   (eval $ac_try) 2>&5
22508   ac_status=$?
22509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510   (exit $ac_status); }; }; then
22511   ac_header_compiler=yes
22512 else
22513   echo "$as_me: failed program was:" >&5
22514 sed 's/^/| /' conftest.$ac_ext >&5
22515
22516 ac_header_compiler=no
22517 fi
22518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22520 echo "${ECHO_T}$ac_header_compiler" >&6
22521
22522 # Is the header present?
22523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22525 cat >conftest.$ac_ext <<_ACEOF
22526 /* confdefs.h.  */
22527 _ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h.  */
22531 #include <$ac_header>
22532 _ACEOF
22533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22535   ac_status=$?
22536   grep -v '^ *+' conftest.er1 >conftest.err
22537   rm -f conftest.er1
22538   cat conftest.err >&5
22539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540   (exit $ac_status); } >/dev/null; then
22541   if test -s conftest.err; then
22542     ac_cpp_err=$ac_c_preproc_warn_flag
22543     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22544   else
22545     ac_cpp_err=
22546   fi
22547 else
22548   ac_cpp_err=yes
22549 fi
22550 if test -z "$ac_cpp_err"; then
22551   ac_header_preproc=yes
22552 else
22553   echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22555
22556   ac_header_preproc=no
22557 fi
22558 rm -f conftest.err conftest.$ac_ext
22559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22560 echo "${ECHO_T}$ac_header_preproc" >&6
22561
22562 # So?  What about this header?
22563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22564   yes:no: )
22565     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22569     ac_header_preproc=yes
22570     ;;
22571   no:yes:* )
22572     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22574     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22575 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22576     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22578     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22579 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22582     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22584     (
22585       cat <<\_ASBOX
22586 ## ------------------------------------ ##
22587 ## Report this to bug-coreutils@gnu.org ##
22588 ## ------------------------------------ ##
22589 _ASBOX
22590     ) |
22591       sed "s/^/$as_me: WARNING:     /" >&2
22592     ;;
22593 esac
22594 echo "$as_me:$LINENO: checking for $ac_header" >&5
22595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22597   echo $ECHO_N "(cached) $ECHO_C" >&6
22598 else
22599   eval "$as_ac_Header=\$ac_header_preproc"
22600 fi
22601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22603
22604 fi
22605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22606   cat >>confdefs.h <<_ACEOF
22607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22608 _ACEOF
22609  echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
22610 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
22611 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
22612   echo $ECHO_N "(cached) $ECHO_C" >&6
22613 else
22614   cat >conftest.$ac_ext <<_ACEOF
22615 /* confdefs.h.  */
22616 _ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h.  */
22620 #include <nlist.h>
22621
22622 int
22623 main ()
22624 {
22625 static struct nlist ac_aggr;
22626 if (ac_aggr.n_un.n_name)
22627 return 0;
22628   ;
22629   return 0;
22630 }
22631 _ACEOF
22632 rm -f conftest.$ac_objext
22633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22634   (eval $ac_compile) 2>conftest.er1
22635   ac_status=$?
22636   grep -v '^ *+' conftest.er1 >conftest.err
22637   rm -f conftest.er1
22638   cat conftest.err >&5
22639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640   (exit $ac_status); } &&
22641          { ac_try='test -z "$ac_c_werror_flag"
22642                          || test ! -s conftest.err'
22643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22644   (eval $ac_try) 2>&5
22645   ac_status=$?
22646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647   (exit $ac_status); }; } &&
22648          { ac_try='test -s conftest.$ac_objext'
22649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22650   (eval $ac_try) 2>&5
22651   ac_status=$?
22652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653   (exit $ac_status); }; }; then
22654   ac_cv_member_struct_nlist_n_un_n_name=yes
22655 else
22656   echo "$as_me: failed program was:" >&5
22657 sed 's/^/| /' conftest.$ac_ext >&5
22658
22659 cat >conftest.$ac_ext <<_ACEOF
22660 /* confdefs.h.  */
22661 _ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h.  */
22665 #include <nlist.h>
22666
22667 int
22668 main ()
22669 {
22670 static struct nlist ac_aggr;
22671 if (sizeof ac_aggr.n_un.n_name)
22672 return 0;
22673   ;
22674   return 0;
22675 }
22676 _ACEOF
22677 rm -f conftest.$ac_objext
22678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22679   (eval $ac_compile) 2>conftest.er1
22680   ac_status=$?
22681   grep -v '^ *+' conftest.er1 >conftest.err
22682   rm -f conftest.er1
22683   cat conftest.err >&5
22684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685   (exit $ac_status); } &&
22686          { ac_try='test -z "$ac_c_werror_flag"
22687                          || test ! -s conftest.err'
22688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22689   (eval $ac_try) 2>&5
22690   ac_status=$?
22691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692   (exit $ac_status); }; } &&
22693          { ac_try='test -s conftest.$ac_objext'
22694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22695   (eval $ac_try) 2>&5
22696   ac_status=$?
22697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698   (exit $ac_status); }; }; then
22699   ac_cv_member_struct_nlist_n_un_n_name=yes
22700 else
22701   echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22703
22704 ac_cv_member_struct_nlist_n_un_n_name=no
22705 fi
22706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22707 fi
22708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22709 fi
22710 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
22711 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
22712 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
22713
22714 cat >>confdefs.h <<_ACEOF
22715 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
22716 _ACEOF
22717
22718
22719 cat >>confdefs.h <<\_ACEOF
22720 #define NLIST_NAME_UNION 1
22721 _ACEOF
22722
22723 fi
22724
22725
22726 fi
22727
22728 done
22729
22730 fi
22731 done
22732
22733
22734 # Some definitions of getloadavg require that the program be installed setgid.
22735 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
22736 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
22737 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
22738   echo $ECHO_N "(cached) $ECHO_C" >&6
22739 else
22740   cat >conftest.$ac_ext <<_ACEOF
22741 /* confdefs.h.  */
22742 _ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h.  */
22746 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
22747 #ifdef LDAV_PRIVILEGED
22748 Yowza Am I SETGID yet
22749 #endif
22750 _ACEOF
22751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22752   $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
22753   ac_cv_func_getloadavg_setgid=yes
22754 else
22755   ac_cv_func_getloadavg_setgid=no
22756 fi
22757 rm -f conftest*
22758
22759 fi
22760 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
22761 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
22762 if test $ac_cv_func_getloadavg_setgid = yes; then
22763   NEED_SETGID=true
22764
22765 cat >>confdefs.h <<\_ACEOF
22766 #define GETLOADAVG_PRIVILEGED 1
22767 _ACEOF
22768
22769 else
22770   NEED_SETGID=false
22771 fi
22772
22773 if test $ac_cv_func_getloadavg_setgid = yes; then
22774   echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
22775 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
22776 if test "${ac_cv_group_kmem+set}" = set; then
22777   echo $ECHO_N "(cached) $ECHO_C" >&6
22778 else
22779    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
22780   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
22781   # If we got an error (system does not support symlinks), try without -L.
22782   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
22783   ac_cv_group_kmem=`echo $ac_ls_output \
22784     | sed -ne 's/[       ][      ]*/ /g;
22785                s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
22786                / /s/.* //;p;'`
22787
22788 fi
22789 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
22790 echo "${ECHO_T}$ac_cv_group_kmem" >&6
22791   KMEM_GROUP=$ac_cv_group_kmem
22792 fi
22793 if test "x$ac_save_LIBS" = x; then
22794   GETLOADAVG_LIBS=$LIBS
22795 else
22796   GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
22797 fi
22798 LIBS=$ac_save_LIBS
22799
22800
22801
22802       echo "$as_me:$LINENO: checking whether getpass is declared" >&5
22803 echo $ECHO_N "checking whether getpass is declared... $ECHO_C" >&6
22804 if test "${ac_cv_have_decl_getpass+set}" = set; then
22805   echo $ECHO_N "(cached) $ECHO_C" >&6
22806 else
22807   cat >conftest.$ac_ext <<_ACEOF
22808 /* confdefs.h.  */
22809 _ACEOF
22810 cat confdefs.h >>conftest.$ac_ext
22811 cat >>conftest.$ac_ext <<_ACEOF
22812 /* end confdefs.h.  */
22813 $ac_includes_default
22814 int
22815 main ()
22816 {
22817 #ifndef getpass
22818   char *p = (char *) getpass;
22819 #endif
22820
22821   ;
22822   return 0;
22823 }
22824 _ACEOF
22825 rm -f conftest.$ac_objext
22826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22827   (eval $ac_compile) 2>conftest.er1
22828   ac_status=$?
22829   grep -v '^ *+' conftest.er1 >conftest.err
22830   rm -f conftest.er1
22831   cat conftest.err >&5
22832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833   (exit $ac_status); } &&
22834          { ac_try='test -z "$ac_c_werror_flag"
22835                          || test ! -s conftest.err'
22836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22837   (eval $ac_try) 2>&5
22838   ac_status=$?
22839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840   (exit $ac_status); }; } &&
22841          { ac_try='test -s conftest.$ac_objext'
22842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843   (eval $ac_try) 2>&5
22844   ac_status=$?
22845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846   (exit $ac_status); }; }; then
22847   ac_cv_have_decl_getpass=yes
22848 else
22849   echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22851
22852 ac_cv_have_decl_getpass=no
22853 fi
22854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22855 fi
22856 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
22857 echo "${ECHO_T}$ac_cv_have_decl_getpass" >&6
22858 if test $ac_cv_have_decl_getpass = yes; then
22859
22860 cat >>confdefs.h <<_ACEOF
22861 #define HAVE_DECL_GETPASS 1
22862 _ACEOF
22863
22864
22865 else
22866   cat >>confdefs.h <<_ACEOF
22867 #define HAVE_DECL_GETPASS 0
22868 _ACEOF
22869
22870
22871 fi
22872
22873
22874
22875
22876
22877 for ac_header in stdio_ext.h
22878 do
22879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22881   echo "$as_me:$LINENO: checking for $ac_header" >&5
22882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22884   echo $ECHO_N "(cached) $ECHO_C" >&6
22885 fi
22886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22888 else
22889   # Is the header compilable?
22890 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22892 cat >conftest.$ac_ext <<_ACEOF
22893 /* confdefs.h.  */
22894 _ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h.  */
22898 $ac_includes_default
22899 #include <$ac_header>
22900 _ACEOF
22901 rm -f conftest.$ac_objext
22902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22903   (eval $ac_compile) 2>conftest.er1
22904   ac_status=$?
22905   grep -v '^ *+' conftest.er1 >conftest.err
22906   rm -f conftest.er1
22907   cat conftest.err >&5
22908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909   (exit $ac_status); } &&
22910          { ac_try='test -z "$ac_c_werror_flag"
22911                          || test ! -s conftest.err'
22912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22913   (eval $ac_try) 2>&5
22914   ac_status=$?
22915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916   (exit $ac_status); }; } &&
22917          { ac_try='test -s conftest.$ac_objext'
22918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919   (eval $ac_try) 2>&5
22920   ac_status=$?
22921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922   (exit $ac_status); }; }; then
22923   ac_header_compiler=yes
22924 else
22925   echo "$as_me: failed program was:" >&5
22926 sed 's/^/| /' conftest.$ac_ext >&5
22927
22928 ac_header_compiler=no
22929 fi
22930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22932 echo "${ECHO_T}$ac_header_compiler" >&6
22933
22934 # Is the header present?
22935 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22937 cat >conftest.$ac_ext <<_ACEOF
22938 /* confdefs.h.  */
22939 _ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h.  */
22943 #include <$ac_header>
22944 _ACEOF
22945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22947   ac_status=$?
22948   grep -v '^ *+' conftest.er1 >conftest.err
22949   rm -f conftest.er1
22950   cat conftest.err >&5
22951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952   (exit $ac_status); } >/dev/null; then
22953   if test -s conftest.err; then
22954     ac_cpp_err=$ac_c_preproc_warn_flag
22955     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22956   else
22957     ac_cpp_err=
22958   fi
22959 else
22960   ac_cpp_err=yes
22961 fi
22962 if test -z "$ac_cpp_err"; then
22963   ac_header_preproc=yes
22964 else
22965   echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22967
22968   ac_header_preproc=no
22969 fi
22970 rm -f conftest.err conftest.$ac_ext
22971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22972 echo "${ECHO_T}$ac_header_preproc" >&6
22973
22974 # So?  What about this header?
22975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22976   yes:no: )
22977     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22981     ac_header_preproc=yes
22982     ;;
22983   no:yes:* )
22984     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22986     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22987 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22988     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22990     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22991 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22992     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22994     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22996     (
22997       cat <<\_ASBOX
22998 ## ------------------------------------ ##
22999 ## Report this to bug-coreutils@gnu.org ##
23000 ## ------------------------------------ ##
23001 _ASBOX
23002     ) |
23003       sed "s/^/$as_me: WARNING:     /" >&2
23004     ;;
23005 esac
23006 echo "$as_me:$LINENO: checking for $ac_header" >&5
23007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23009   echo $ECHO_N "(cached) $ECHO_C" >&6
23010 else
23011   eval "$as_ac_Header=\$ac_header_preproc"
23012 fi
23013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23015
23016 fi
23017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23018   cat >>confdefs.h <<_ACEOF
23019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23020 _ACEOF
23021
23022 fi
23023
23024 done
23025
23026
23027
23028       echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
23029 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
23030 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
23031   echo $ECHO_N "(cached) $ECHO_C" >&6
23032 else
23033   cat >conftest.$ac_ext <<_ACEOF
23034 /* confdefs.h.  */
23035 _ACEOF
23036 cat confdefs.h >>conftest.$ac_ext
23037 cat >>conftest.$ac_ext <<_ACEOF
23038 /* end confdefs.h.  */
23039 $ac_includes_default
23040 int
23041 main ()
23042 {
23043 #ifndef fflush_unlocked
23044   char *p = (char *) fflush_unlocked;
23045 #endif
23046
23047   ;
23048   return 0;
23049 }
23050 _ACEOF
23051 rm -f conftest.$ac_objext
23052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23053   (eval $ac_compile) 2>conftest.er1
23054   ac_status=$?
23055   grep -v '^ *+' conftest.er1 >conftest.err
23056   rm -f conftest.er1
23057   cat conftest.err >&5
23058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059   (exit $ac_status); } &&
23060          { ac_try='test -z "$ac_c_werror_flag"
23061                          || test ! -s conftest.err'
23062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23063   (eval $ac_try) 2>&5
23064   ac_status=$?
23065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066   (exit $ac_status); }; } &&
23067          { ac_try='test -s conftest.$ac_objext'
23068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23069   (eval $ac_try) 2>&5
23070   ac_status=$?
23071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072   (exit $ac_status); }; }; then
23073   ac_cv_have_decl_fflush_unlocked=yes
23074 else
23075   echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23077
23078 ac_cv_have_decl_fflush_unlocked=no
23079 fi
23080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23081 fi
23082 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
23083 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
23084 if test $ac_cv_have_decl_fflush_unlocked = yes; then
23085
23086 cat >>confdefs.h <<_ACEOF
23087 #define HAVE_DECL_FFLUSH_UNLOCKED 1
23088 _ACEOF
23089
23090
23091 else
23092   cat >>confdefs.h <<_ACEOF
23093 #define HAVE_DECL_FFLUSH_UNLOCKED 0
23094 _ACEOF
23095
23096
23097 fi
23098
23099
23100
23101
23102       echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
23103 echo $ECHO_N "checking whether flockfile is declared... $ECHO_C" >&6
23104 if test "${ac_cv_have_decl_flockfile+set}" = set; then
23105   echo $ECHO_N "(cached) $ECHO_C" >&6
23106 else
23107   cat >conftest.$ac_ext <<_ACEOF
23108 /* confdefs.h.  */
23109 _ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h.  */
23113 $ac_includes_default
23114 int
23115 main ()
23116 {
23117 #ifndef flockfile
23118   char *p = (char *) flockfile;
23119 #endif
23120
23121   ;
23122   return 0;
23123 }
23124 _ACEOF
23125 rm -f conftest.$ac_objext
23126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23127   (eval $ac_compile) 2>conftest.er1
23128   ac_status=$?
23129   grep -v '^ *+' conftest.er1 >conftest.err
23130   rm -f conftest.er1
23131   cat conftest.err >&5
23132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133   (exit $ac_status); } &&
23134          { ac_try='test -z "$ac_c_werror_flag"
23135                          || test ! -s conftest.err'
23136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23137   (eval $ac_try) 2>&5
23138   ac_status=$?
23139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140   (exit $ac_status); }; } &&
23141          { ac_try='test -s conftest.$ac_objext'
23142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23143   (eval $ac_try) 2>&5
23144   ac_status=$?
23145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146   (exit $ac_status); }; }; then
23147   ac_cv_have_decl_flockfile=yes
23148 else
23149   echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23151
23152 ac_cv_have_decl_flockfile=no
23153 fi
23154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23155 fi
23156 echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
23157 echo "${ECHO_T}$ac_cv_have_decl_flockfile" >&6
23158 if test $ac_cv_have_decl_flockfile = yes; then
23159
23160 cat >>confdefs.h <<_ACEOF
23161 #define HAVE_DECL_FLOCKFILE 1
23162 _ACEOF
23163
23164
23165 else
23166   cat >>confdefs.h <<_ACEOF
23167 #define HAVE_DECL_FLOCKFILE 0
23168 _ACEOF
23169
23170
23171 fi
23172
23173
23174
23175
23176       echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
23177 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
23178 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
23179   echo $ECHO_N "(cached) $ECHO_C" >&6
23180 else
23181   cat >conftest.$ac_ext <<_ACEOF
23182 /* confdefs.h.  */
23183 _ACEOF
23184 cat confdefs.h >>conftest.$ac_ext
23185 cat >>conftest.$ac_ext <<_ACEOF
23186 /* end confdefs.h.  */
23187 $ac_includes_default
23188 int
23189 main ()
23190 {
23191 #ifndef fputs_unlocked
23192   char *p = (char *) fputs_unlocked;
23193 #endif
23194
23195   ;
23196   return 0;
23197 }
23198 _ACEOF
23199 rm -f conftest.$ac_objext
23200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23201   (eval $ac_compile) 2>conftest.er1
23202   ac_status=$?
23203   grep -v '^ *+' conftest.er1 >conftest.err
23204   rm -f conftest.er1
23205   cat conftest.err >&5
23206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207   (exit $ac_status); } &&
23208          { ac_try='test -z "$ac_c_werror_flag"
23209                          || test ! -s conftest.err'
23210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211   (eval $ac_try) 2>&5
23212   ac_status=$?
23213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214   (exit $ac_status); }; } &&
23215          { ac_try='test -s conftest.$ac_objext'
23216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217   (eval $ac_try) 2>&5
23218   ac_status=$?
23219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220   (exit $ac_status); }; }; then
23221   ac_cv_have_decl_fputs_unlocked=yes
23222 else
23223   echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23225
23226 ac_cv_have_decl_fputs_unlocked=no
23227 fi
23228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23229 fi
23230 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
23231 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
23232 if test $ac_cv_have_decl_fputs_unlocked = yes; then
23233
23234 cat >>confdefs.h <<_ACEOF
23235 #define HAVE_DECL_FPUTS_UNLOCKED 1
23236 _ACEOF
23237
23238
23239 else
23240   cat >>confdefs.h <<_ACEOF
23241 #define HAVE_DECL_FPUTS_UNLOCKED 0
23242 _ACEOF
23243
23244
23245 fi
23246
23247
23248
23249
23250       echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
23251 echo $ECHO_N "checking whether funlockfile is declared... $ECHO_C" >&6
23252 if test "${ac_cv_have_decl_funlockfile+set}" = set; then
23253   echo $ECHO_N "(cached) $ECHO_C" >&6
23254 else
23255   cat >conftest.$ac_ext <<_ACEOF
23256 /* confdefs.h.  */
23257 _ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h.  */
23261 $ac_includes_default
23262 int
23263 main ()
23264 {
23265 #ifndef funlockfile
23266   char *p = (char *) funlockfile;
23267 #endif
23268
23269   ;
23270   return 0;
23271 }
23272 _ACEOF
23273 rm -f conftest.$ac_objext
23274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23275   (eval $ac_compile) 2>conftest.er1
23276   ac_status=$?
23277   grep -v '^ *+' conftest.er1 >conftest.err
23278   rm -f conftest.er1
23279   cat conftest.err >&5
23280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281   (exit $ac_status); } &&
23282          { ac_try='test -z "$ac_c_werror_flag"
23283                          || test ! -s conftest.err'
23284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23285   (eval $ac_try) 2>&5
23286   ac_status=$?
23287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288   (exit $ac_status); }; } &&
23289          { ac_try='test -s conftest.$ac_objext'
23290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291   (eval $ac_try) 2>&5
23292   ac_status=$?
23293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294   (exit $ac_status); }; }; then
23295   ac_cv_have_decl_funlockfile=yes
23296 else
23297   echo "$as_me: failed program was:" >&5
23298 sed 's/^/| /' conftest.$ac_ext >&5
23299
23300 ac_cv_have_decl_funlockfile=no
23301 fi
23302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23303 fi
23304 echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
23305 echo "${ECHO_T}$ac_cv_have_decl_funlockfile" >&6
23306 if test $ac_cv_have_decl_funlockfile = yes; then
23307
23308 cat >>confdefs.h <<_ACEOF
23309 #define HAVE_DECL_FUNLOCKFILE 1
23310 _ACEOF
23311
23312
23313 else
23314   cat >>confdefs.h <<_ACEOF
23315 #define HAVE_DECL_FUNLOCKFILE 0
23316 _ACEOF
23317
23318
23319 fi
23320
23321
23322
23323
23324       echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
23325 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
23326 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
23327   echo $ECHO_N "(cached) $ECHO_C" >&6
23328 else
23329   cat >conftest.$ac_ext <<_ACEOF
23330 /* confdefs.h.  */
23331 _ACEOF
23332 cat confdefs.h >>conftest.$ac_ext
23333 cat >>conftest.$ac_ext <<_ACEOF
23334 /* end confdefs.h.  */
23335 $ac_includes_default
23336 int
23337 main ()
23338 {
23339 #ifndef putc_unlocked
23340   char *p = (char *) putc_unlocked;
23341 #endif
23342
23343   ;
23344   return 0;
23345 }
23346 _ACEOF
23347 rm -f conftest.$ac_objext
23348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23349   (eval $ac_compile) 2>conftest.er1
23350   ac_status=$?
23351   grep -v '^ *+' conftest.er1 >conftest.err
23352   rm -f conftest.er1
23353   cat conftest.err >&5
23354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355   (exit $ac_status); } &&
23356          { ac_try='test -z "$ac_c_werror_flag"
23357                          || test ! -s conftest.err'
23358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359   (eval $ac_try) 2>&5
23360   ac_status=$?
23361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362   (exit $ac_status); }; } &&
23363          { ac_try='test -s conftest.$ac_objext'
23364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365   (eval $ac_try) 2>&5
23366   ac_status=$?
23367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368   (exit $ac_status); }; }; then
23369   ac_cv_have_decl_putc_unlocked=yes
23370 else
23371   echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23373
23374 ac_cv_have_decl_putc_unlocked=no
23375 fi
23376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23377 fi
23378 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
23379 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
23380 if test $ac_cv_have_decl_putc_unlocked = yes; then
23381
23382 cat >>confdefs.h <<_ACEOF
23383 #define HAVE_DECL_PUTC_UNLOCKED 1
23384 _ACEOF
23385
23386
23387 else
23388   cat >>confdefs.h <<_ACEOF
23389 #define HAVE_DECL_PUTC_UNLOCKED 0
23390 _ACEOF
23391
23392
23393 fi
23394
23395
23396
23397
23398
23399 for ac_func in getpass
23400 do
23401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23402 echo "$as_me:$LINENO: checking for $ac_func" >&5
23403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23404 if eval "test \"\${$as_ac_var+set}\" = set"; then
23405   echo $ECHO_N "(cached) $ECHO_C" >&6
23406 else
23407   cat >conftest.$ac_ext <<_ACEOF
23408 /* confdefs.h.  */
23409 _ACEOF
23410 cat confdefs.h >>conftest.$ac_ext
23411 cat >>conftest.$ac_ext <<_ACEOF
23412 /* end confdefs.h.  */
23413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23414    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23415 #define $ac_func innocuous_$ac_func
23416
23417 /* System header to define __stub macros and hopefully few prototypes,
23418     which can conflict with char $ac_func (); below.
23419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23420     <limits.h> exists even on freestanding compilers.  */
23421
23422 #ifdef __STDC__
23423 # include <limits.h>
23424 #else
23425 # include <assert.h>
23426 #endif
23427
23428 #undef $ac_func
23429
23430 /* Override any gcc2 internal prototype to avoid an error.  */
23431 #ifdef __cplusplus
23432 extern "C"
23433 {
23434 #endif
23435 /* We use char because int might match the return type of a gcc2
23436    builtin and then its argument prototype would still apply.  */
23437 char $ac_func ();
23438 /* The GNU C library defines this for functions which it implements
23439     to always fail with ENOSYS.  Some functions are actually named
23440     something starting with __ and the normal name is an alias.  */
23441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23442 choke me
23443 #else
23444 char (*f) () = $ac_func;
23445 #endif
23446 #ifdef __cplusplus
23447 }
23448 #endif
23449
23450 int
23451 main ()
23452 {
23453 return f != $ac_func;
23454   ;
23455   return 0;
23456 }
23457 _ACEOF
23458 rm -f conftest.$ac_objext conftest$ac_exeext
23459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23460   (eval $ac_link) 2>conftest.er1
23461   ac_status=$?
23462   grep -v '^ *+' conftest.er1 >conftest.err
23463   rm -f conftest.er1
23464   cat conftest.err >&5
23465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466   (exit $ac_status); } &&
23467          { ac_try='test -z "$ac_c_werror_flag"
23468                          || test ! -s conftest.err'
23469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23470   (eval $ac_try) 2>&5
23471   ac_status=$?
23472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473   (exit $ac_status); }; } &&
23474          { ac_try='test -s conftest$ac_exeext'
23475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476   (eval $ac_try) 2>&5
23477   ac_status=$?
23478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479   (exit $ac_status); }; }; then
23480   eval "$as_ac_var=yes"
23481 else
23482   echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23484
23485 eval "$as_ac_var=no"
23486 fi
23487 rm -f conftest.err conftest.$ac_objext \
23488       conftest$ac_exeext conftest.$ac_ext
23489 fi
23490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23492 if test `eval echo '${'$as_ac_var'}'` = yes; then
23493   cat >>confdefs.h <<_ACEOF
23494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23495 _ACEOF
23496
23497 else
23498   case $LIBOBJS in
23499     "$ac_func.$ac_objext"   | \
23500   *" $ac_func.$ac_objext"   | \
23501     "$ac_func.$ac_objext "* | \
23502   *" $ac_func.$ac_objext "* ) ;;
23503   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23504 esac
23505
23506 fi
23507 done
23508
23509
23510
23511   :
23512
23513
23514
23515
23516
23517   if test $ac_cv_func_getpass = no; then
23518
23519
23520   :
23521
23522
23523
23524
23525
23526
23527   :
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545   :
23546
23547   fi
23548
23549
23550
23551 for ac_func in getusershell
23552 do
23553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23554 echo "$as_me:$LINENO: checking for $ac_func" >&5
23555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23556 if eval "test \"\${$as_ac_var+set}\" = set"; then
23557   echo $ECHO_N "(cached) $ECHO_C" >&6
23558 else
23559   cat >conftest.$ac_ext <<_ACEOF
23560 /* confdefs.h.  */
23561 _ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h.  */
23565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23566    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23567 #define $ac_func innocuous_$ac_func
23568
23569 /* System header to define __stub macros and hopefully few prototypes,
23570     which can conflict with char $ac_func (); below.
23571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23572     <limits.h> exists even on freestanding compilers.  */
23573
23574 #ifdef __STDC__
23575 # include <limits.h>
23576 #else
23577 # include <assert.h>
23578 #endif
23579
23580 #undef $ac_func
23581
23582 /* Override any gcc2 internal prototype to avoid an error.  */
23583 #ifdef __cplusplus
23584 extern "C"
23585 {
23586 #endif
23587 /* We use char because int might match the return type of a gcc2
23588    builtin and then its argument prototype would still apply.  */
23589 char $ac_func ();
23590 /* The GNU C library defines this for functions which it implements
23591     to always fail with ENOSYS.  Some functions are actually named
23592     something starting with __ and the normal name is an alias.  */
23593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23594 choke me
23595 #else
23596 char (*f) () = $ac_func;
23597 #endif
23598 #ifdef __cplusplus
23599 }
23600 #endif
23601
23602 int
23603 main ()
23604 {
23605 return f != $ac_func;
23606   ;
23607   return 0;
23608 }
23609 _ACEOF
23610 rm -f conftest.$ac_objext conftest$ac_exeext
23611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23612   (eval $ac_link) 2>conftest.er1
23613   ac_status=$?
23614   grep -v '^ *+' conftest.er1 >conftest.err
23615   rm -f conftest.er1
23616   cat conftest.err >&5
23617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618   (exit $ac_status); } &&
23619          { ac_try='test -z "$ac_c_werror_flag"
23620                          || test ! -s conftest.err'
23621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23622   (eval $ac_try) 2>&5
23623   ac_status=$?
23624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625   (exit $ac_status); }; } &&
23626          { ac_try='test -s conftest$ac_exeext'
23627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23628   (eval $ac_try) 2>&5
23629   ac_status=$?
23630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631   (exit $ac_status); }; }; then
23632   eval "$as_ac_var=yes"
23633 else
23634   echo "$as_me: failed program was:" >&5
23635 sed 's/^/| /' conftest.$ac_ext >&5
23636
23637 eval "$as_ac_var=no"
23638 fi
23639 rm -f conftest.err conftest.$ac_objext \
23640       conftest$ac_exeext conftest.$ac_ext
23641 fi
23642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23644 if test `eval echo '${'$as_ac_var'}'` = yes; then
23645   cat >>confdefs.h <<_ACEOF
23646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23647 _ACEOF
23648
23649 else
23650   case $LIBOBJS in
23651     "$ac_func.$ac_objext"   | \
23652   *" $ac_func.$ac_objext"   | \
23653     "$ac_func.$ac_objext "* | \
23654   *" $ac_func.$ac_objext "* ) ;;
23655   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23656 esac
23657
23658 fi
23659 done
23660
23661
23662   if test $ac_cv_func_getusershell = no; then
23663
23664
23665
23666   :
23667
23668
23669
23670
23671
23672
23673   fi
23674
23675
23676
23677 for ac_func in memchr
23678 do
23679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23680 echo "$as_me:$LINENO: checking for $ac_func" >&5
23681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23682 if eval "test \"\${$as_ac_var+set}\" = set"; then
23683   echo $ECHO_N "(cached) $ECHO_C" >&6
23684 else
23685   cat >conftest.$ac_ext <<_ACEOF
23686 /* confdefs.h.  */
23687 _ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h.  */
23691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23693 #define $ac_func innocuous_$ac_func
23694
23695 /* System header to define __stub macros and hopefully few prototypes,
23696     which can conflict with char $ac_func (); below.
23697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23698     <limits.h> exists even on freestanding compilers.  */
23699
23700 #ifdef __STDC__
23701 # include <limits.h>
23702 #else
23703 # include <assert.h>
23704 #endif
23705
23706 #undef $ac_func
23707
23708 /* Override any gcc2 internal prototype to avoid an error.  */
23709 #ifdef __cplusplus
23710 extern "C"
23711 {
23712 #endif
23713 /* We use char because int might match the return type of a gcc2
23714    builtin and then its argument prototype would still apply.  */
23715 char $ac_func ();
23716 /* The GNU C library defines this for functions which it implements
23717     to always fail with ENOSYS.  Some functions are actually named
23718     something starting with __ and the normal name is an alias.  */
23719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23720 choke me
23721 #else
23722 char (*f) () = $ac_func;
23723 #endif
23724 #ifdef __cplusplus
23725 }
23726 #endif
23727
23728 int
23729 main ()
23730 {
23731 return f != $ac_func;
23732   ;
23733   return 0;
23734 }
23735 _ACEOF
23736 rm -f conftest.$ac_objext conftest$ac_exeext
23737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23738   (eval $ac_link) 2>conftest.er1
23739   ac_status=$?
23740   grep -v '^ *+' conftest.er1 >conftest.err
23741   rm -f conftest.er1
23742   cat conftest.err >&5
23743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744   (exit $ac_status); } &&
23745          { ac_try='test -z "$ac_c_werror_flag"
23746                          || test ! -s conftest.err'
23747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748   (eval $ac_try) 2>&5
23749   ac_status=$?
23750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751   (exit $ac_status); }; } &&
23752          { ac_try='test -s conftest$ac_exeext'
23753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754   (eval $ac_try) 2>&5
23755   ac_status=$?
23756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757   (exit $ac_status); }; }; then
23758   eval "$as_ac_var=yes"
23759 else
23760   echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.$ac_ext >&5
23762
23763 eval "$as_ac_var=no"
23764 fi
23765 rm -f conftest.err conftest.$ac_objext \
23766       conftest$ac_exeext conftest.$ac_ext
23767 fi
23768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23770 if test `eval echo '${'$as_ac_var'}'` = yes; then
23771   cat >>confdefs.h <<_ACEOF
23772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23773 _ACEOF
23774
23775 else
23776   case $LIBOBJS in
23777     "$ac_func.$ac_objext"   | \
23778   *" $ac_func.$ac_objext"   | \
23779     "$ac_func.$ac_objext "* | \
23780   *" $ac_func.$ac_objext "* ) ;;
23781   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23782 esac
23783
23784 fi
23785 done
23786
23787
23788   if test $ac_cv_func_memchr = no; then
23789
23790
23791 for ac_header in bp-sym.h
23792 do
23793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23795   echo "$as_me:$LINENO: checking for $ac_header" >&5
23796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23798   echo $ECHO_N "(cached) $ECHO_C" >&6
23799 fi
23800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23802 else
23803   # Is the header compilable?
23804 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23806 cat >conftest.$ac_ext <<_ACEOF
23807 /* confdefs.h.  */
23808 _ACEOF
23809 cat confdefs.h >>conftest.$ac_ext
23810 cat >>conftest.$ac_ext <<_ACEOF
23811 /* end confdefs.h.  */
23812 $ac_includes_default
23813 #include <$ac_header>
23814 _ACEOF
23815 rm -f conftest.$ac_objext
23816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23817   (eval $ac_compile) 2>conftest.er1
23818   ac_status=$?
23819   grep -v '^ *+' conftest.er1 >conftest.err
23820   rm -f conftest.er1
23821   cat conftest.err >&5
23822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823   (exit $ac_status); } &&
23824          { ac_try='test -z "$ac_c_werror_flag"
23825                          || test ! -s conftest.err'
23826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23827   (eval $ac_try) 2>&5
23828   ac_status=$?
23829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830   (exit $ac_status); }; } &&
23831          { ac_try='test -s conftest.$ac_objext'
23832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23833   (eval $ac_try) 2>&5
23834   ac_status=$?
23835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836   (exit $ac_status); }; }; then
23837   ac_header_compiler=yes
23838 else
23839   echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23841
23842 ac_header_compiler=no
23843 fi
23844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23846 echo "${ECHO_T}$ac_header_compiler" >&6
23847
23848 # Is the header present?
23849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23851 cat >conftest.$ac_ext <<_ACEOF
23852 /* confdefs.h.  */
23853 _ACEOF
23854 cat confdefs.h >>conftest.$ac_ext
23855 cat >>conftest.$ac_ext <<_ACEOF
23856 /* end confdefs.h.  */
23857 #include <$ac_header>
23858 _ACEOF
23859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23860   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23861   ac_status=$?
23862   grep -v '^ *+' conftest.er1 >conftest.err
23863   rm -f conftest.er1
23864   cat conftest.err >&5
23865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866   (exit $ac_status); } >/dev/null; then
23867   if test -s conftest.err; then
23868     ac_cpp_err=$ac_c_preproc_warn_flag
23869     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23870   else
23871     ac_cpp_err=
23872   fi
23873 else
23874   ac_cpp_err=yes
23875 fi
23876 if test -z "$ac_cpp_err"; then
23877   ac_header_preproc=yes
23878 else
23879   echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23881
23882   ac_header_preproc=no
23883 fi
23884 rm -f conftest.err conftest.$ac_ext
23885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23886 echo "${ECHO_T}$ac_header_preproc" >&6
23887
23888 # So?  What about this header?
23889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23890   yes:no: )
23891     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23895     ac_header_preproc=yes
23896     ;;
23897   no:yes:* )
23898     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23900     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23901 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23902     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23904     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23905 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23908     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23910     (
23911       cat <<\_ASBOX
23912 ## ------------------------------------ ##
23913 ## Report this to bug-coreutils@gnu.org ##
23914 ## ------------------------------------ ##
23915 _ASBOX
23916     ) |
23917       sed "s/^/$as_me: WARNING:     /" >&2
23918     ;;
23919 esac
23920 echo "$as_me:$LINENO: checking for $ac_header" >&5
23921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23923   echo $ECHO_N "(cached) $ECHO_C" >&6
23924 else
23925   eval "$as_ac_Header=\$ac_header_preproc"
23926 fi
23927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23929
23930 fi
23931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23932   cat >>confdefs.h <<_ACEOF
23933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23934 _ACEOF
23935
23936 fi
23937
23938 done
23939
23940
23941   fi
23942
23943
23944
23945 for ac_func in memcpy
23946 do
23947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23948 echo "$as_me:$LINENO: checking for $ac_func" >&5
23949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23950 if eval "test \"\${$as_ac_var+set}\" = set"; then
23951   echo $ECHO_N "(cached) $ECHO_C" >&6
23952 else
23953   cat >conftest.$ac_ext <<_ACEOF
23954 /* confdefs.h.  */
23955 _ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h.  */
23959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23961 #define $ac_func innocuous_$ac_func
23962
23963 /* System header to define __stub macros and hopefully few prototypes,
23964     which can conflict with char $ac_func (); below.
23965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23966     <limits.h> exists even on freestanding compilers.  */
23967
23968 #ifdef __STDC__
23969 # include <limits.h>
23970 #else
23971 # include <assert.h>
23972 #endif
23973
23974 #undef $ac_func
23975
23976 /* Override any gcc2 internal prototype to avoid an error.  */
23977 #ifdef __cplusplus
23978 extern "C"
23979 {
23980 #endif
23981 /* We use char because int might match the return type of a gcc2
23982    builtin and then its argument prototype would still apply.  */
23983 char $ac_func ();
23984 /* The GNU C library defines this for functions which it implements
23985     to always fail with ENOSYS.  Some functions are actually named
23986     something starting with __ and the normal name is an alias.  */
23987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23988 choke me
23989 #else
23990 char (*f) () = $ac_func;
23991 #endif
23992 #ifdef __cplusplus
23993 }
23994 #endif
23995
23996 int
23997 main ()
23998 {
23999 return f != $ac_func;
24000   ;
24001   return 0;
24002 }
24003 _ACEOF
24004 rm -f conftest.$ac_objext conftest$ac_exeext
24005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24006   (eval $ac_link) 2>conftest.er1
24007   ac_status=$?
24008   grep -v '^ *+' conftest.er1 >conftest.err
24009   rm -f conftest.er1
24010   cat conftest.err >&5
24011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012   (exit $ac_status); } &&
24013          { ac_try='test -z "$ac_c_werror_flag"
24014                          || test ! -s conftest.err'
24015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24016   (eval $ac_try) 2>&5
24017   ac_status=$?
24018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019   (exit $ac_status); }; } &&
24020          { ac_try='test -s conftest$ac_exeext'
24021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24022   (eval $ac_try) 2>&5
24023   ac_status=$?
24024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025   (exit $ac_status); }; }; then
24026   eval "$as_ac_var=yes"
24027 else
24028   echo "$as_me: failed program was:" >&5
24029 sed 's/^/| /' conftest.$ac_ext >&5
24030
24031 eval "$as_ac_var=no"
24032 fi
24033 rm -f conftest.err conftest.$ac_objext \
24034       conftest$ac_exeext conftest.$ac_ext
24035 fi
24036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24038 if test `eval echo '${'$as_ac_var'}'` = yes; then
24039   cat >>confdefs.h <<_ACEOF
24040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24041 _ACEOF
24042
24043 else
24044   case $LIBOBJS in
24045     "$ac_func.$ac_objext"   | \
24046   *" $ac_func.$ac_objext"   | \
24047     "$ac_func.$ac_objext "* | \
24048   *" $ac_func.$ac_objext "* ) ;;
24049   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24050 esac
24051
24052 fi
24053 done
24054
24055
24056   if test $ac_cv_func_memcpy = no; then
24057
24058   :
24059
24060   fi
24061
24062
24063
24064 for ac_func in memmove
24065 do
24066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24067 echo "$as_me:$LINENO: checking for $ac_func" >&5
24068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24069 if eval "test \"\${$as_ac_var+set}\" = set"; then
24070   echo $ECHO_N "(cached) $ECHO_C" >&6
24071 else
24072   cat >conftest.$ac_ext <<_ACEOF
24073 /* confdefs.h.  */
24074 _ACEOF
24075 cat confdefs.h >>conftest.$ac_ext
24076 cat >>conftest.$ac_ext <<_ACEOF
24077 /* end confdefs.h.  */
24078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24080 #define $ac_func innocuous_$ac_func
24081
24082 /* System header to define __stub macros and hopefully few prototypes,
24083     which can conflict with char $ac_func (); below.
24084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24085     <limits.h> exists even on freestanding compilers.  */
24086
24087 #ifdef __STDC__
24088 # include <limits.h>
24089 #else
24090 # include <assert.h>
24091 #endif
24092
24093 #undef $ac_func
24094
24095 /* Override any gcc2 internal prototype to avoid an error.  */
24096 #ifdef __cplusplus
24097 extern "C"
24098 {
24099 #endif
24100 /* We use char because int might match the return type of a gcc2
24101    builtin and then its argument prototype would still apply.  */
24102 char $ac_func ();
24103 /* The GNU C library defines this for functions which it implements
24104     to always fail with ENOSYS.  Some functions are actually named
24105     something starting with __ and the normal name is an alias.  */
24106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24107 choke me
24108 #else
24109 char (*f) () = $ac_func;
24110 #endif
24111 #ifdef __cplusplus
24112 }
24113 #endif
24114
24115 int
24116 main ()
24117 {
24118 return f != $ac_func;
24119   ;
24120   return 0;
24121 }
24122 _ACEOF
24123 rm -f conftest.$ac_objext conftest$ac_exeext
24124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24125   (eval $ac_link) 2>conftest.er1
24126   ac_status=$?
24127   grep -v '^ *+' conftest.er1 >conftest.err
24128   rm -f conftest.er1
24129   cat conftest.err >&5
24130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131   (exit $ac_status); } &&
24132          { ac_try='test -z "$ac_c_werror_flag"
24133                          || test ! -s conftest.err'
24134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24135   (eval $ac_try) 2>&5
24136   ac_status=$?
24137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138   (exit $ac_status); }; } &&
24139          { ac_try='test -s conftest$ac_exeext'
24140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24141   (eval $ac_try) 2>&5
24142   ac_status=$?
24143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144   (exit $ac_status); }; }; then
24145   eval "$as_ac_var=yes"
24146 else
24147   echo "$as_me: failed program was:" >&5
24148 sed 's/^/| /' conftest.$ac_ext >&5
24149
24150 eval "$as_ac_var=no"
24151 fi
24152 rm -f conftest.err conftest.$ac_objext \
24153       conftest$ac_exeext conftest.$ac_ext
24154 fi
24155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24157 if test `eval echo '${'$as_ac_var'}'` = yes; then
24158   cat >>confdefs.h <<_ACEOF
24159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24160 _ACEOF
24161
24162 else
24163   case $LIBOBJS in
24164     "$ac_func.$ac_objext"   | \
24165   *" $ac_func.$ac_objext"   | \
24166     "$ac_func.$ac_objext "* | \
24167   *" $ac_func.$ac_objext "* ) ;;
24168   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24169 esac
24170
24171 fi
24172 done
24173
24174
24175   if test $ac_cv_func_memmove = no; then
24176
24177   :
24178
24179   fi
24180
24181
24182
24183
24184
24185
24186
24187 for ac_func in mempcpy
24188 do
24189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24190 echo "$as_me:$LINENO: checking for $ac_func" >&5
24191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24192 if eval "test \"\${$as_ac_var+set}\" = set"; then
24193   echo $ECHO_N "(cached) $ECHO_C" >&6
24194 else
24195   cat >conftest.$ac_ext <<_ACEOF
24196 /* confdefs.h.  */
24197 _ACEOF
24198 cat confdefs.h >>conftest.$ac_ext
24199 cat >>conftest.$ac_ext <<_ACEOF
24200 /* end confdefs.h.  */
24201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24203 #define $ac_func innocuous_$ac_func
24204
24205 /* System header to define __stub macros and hopefully few prototypes,
24206     which can conflict with char $ac_func (); below.
24207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24208     <limits.h> exists even on freestanding compilers.  */
24209
24210 #ifdef __STDC__
24211 # include <limits.h>
24212 #else
24213 # include <assert.h>
24214 #endif
24215
24216 #undef $ac_func
24217
24218 /* Override any gcc2 internal prototype to avoid an error.  */
24219 #ifdef __cplusplus
24220 extern "C"
24221 {
24222 #endif
24223 /* We use char because int might match the return type of a gcc2
24224    builtin and then its argument prototype would still apply.  */
24225 char $ac_func ();
24226 /* The GNU C library defines this for functions which it implements
24227     to always fail with ENOSYS.  Some functions are actually named
24228     something starting with __ and the normal name is an alias.  */
24229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24230 choke me
24231 #else
24232 char (*f) () = $ac_func;
24233 #endif
24234 #ifdef __cplusplus
24235 }
24236 #endif
24237
24238 int
24239 main ()
24240 {
24241 return f != $ac_func;
24242   ;
24243   return 0;
24244 }
24245 _ACEOF
24246 rm -f conftest.$ac_objext conftest$ac_exeext
24247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24248   (eval $ac_link) 2>conftest.er1
24249   ac_status=$?
24250   grep -v '^ *+' conftest.er1 >conftest.err
24251   rm -f conftest.er1
24252   cat conftest.err >&5
24253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254   (exit $ac_status); } &&
24255          { ac_try='test -z "$ac_c_werror_flag"
24256                          || test ! -s conftest.err'
24257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24258   (eval $ac_try) 2>&5
24259   ac_status=$?
24260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261   (exit $ac_status); }; } &&
24262          { ac_try='test -s conftest$ac_exeext'
24263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24264   (eval $ac_try) 2>&5
24265   ac_status=$?
24266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267   (exit $ac_status); }; }; then
24268   eval "$as_ac_var=yes"
24269 else
24270   echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24272
24273 eval "$as_ac_var=no"
24274 fi
24275 rm -f conftest.err conftest.$ac_objext \
24276       conftest$ac_exeext conftest.$ac_ext
24277 fi
24278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24280 if test `eval echo '${'$as_ac_var'}'` = yes; then
24281   cat >>confdefs.h <<_ACEOF
24282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24283 _ACEOF
24284
24285 else
24286   case $LIBOBJS in
24287     "$ac_func.$ac_objext"   | \
24288   *" $ac_func.$ac_objext"   | \
24289     "$ac_func.$ac_objext "* | \
24290   *" $ac_func.$ac_objext "* ) ;;
24291   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24292 esac
24293
24294 fi
24295 done
24296
24297
24298   if test $ac_cv_func_mempcpy = no; then
24299
24300   :
24301
24302   fi
24303
24304
24305
24306
24307
24308 for ac_func in memrchr
24309 do
24310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24311 echo "$as_me:$LINENO: checking for $ac_func" >&5
24312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24313 if eval "test \"\${$as_ac_var+set}\" = set"; then
24314   echo $ECHO_N "(cached) $ECHO_C" >&6
24315 else
24316   cat >conftest.$ac_ext <<_ACEOF
24317 /* confdefs.h.  */
24318 _ACEOF
24319 cat confdefs.h >>conftest.$ac_ext
24320 cat >>conftest.$ac_ext <<_ACEOF
24321 /* end confdefs.h.  */
24322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24324 #define $ac_func innocuous_$ac_func
24325
24326 /* System header to define __stub macros and hopefully few prototypes,
24327     which can conflict with char $ac_func (); below.
24328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24329     <limits.h> exists even on freestanding compilers.  */
24330
24331 #ifdef __STDC__
24332 # include <limits.h>
24333 #else
24334 # include <assert.h>
24335 #endif
24336
24337 #undef $ac_func
24338
24339 /* Override any gcc2 internal prototype to avoid an error.  */
24340 #ifdef __cplusplus
24341 extern "C"
24342 {
24343 #endif
24344 /* We use char because int might match the return type of a gcc2
24345    builtin and then its argument prototype would still apply.  */
24346 char $ac_func ();
24347 /* The GNU C library defines this for functions which it implements
24348     to always fail with ENOSYS.  Some functions are actually named
24349     something starting with __ and the normal name is an alias.  */
24350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24351 choke me
24352 #else
24353 char (*f) () = $ac_func;
24354 #endif
24355 #ifdef __cplusplus
24356 }
24357 #endif
24358
24359 int
24360 main ()
24361 {
24362 return f != $ac_func;
24363   ;
24364   return 0;
24365 }
24366 _ACEOF
24367 rm -f conftest.$ac_objext conftest$ac_exeext
24368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24369   (eval $ac_link) 2>conftest.er1
24370   ac_status=$?
24371   grep -v '^ *+' conftest.er1 >conftest.err
24372   rm -f conftest.er1
24373   cat conftest.err >&5
24374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375   (exit $ac_status); } &&
24376          { ac_try='test -z "$ac_c_werror_flag"
24377                          || test ! -s conftest.err'
24378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24379   (eval $ac_try) 2>&5
24380   ac_status=$?
24381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382   (exit $ac_status); }; } &&
24383          { ac_try='test -s conftest$ac_exeext'
24384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24385   (eval $ac_try) 2>&5
24386   ac_status=$?
24387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388   (exit $ac_status); }; }; then
24389   eval "$as_ac_var=yes"
24390 else
24391   echo "$as_me: failed program was:" >&5
24392 sed 's/^/| /' conftest.$ac_ext >&5
24393
24394 eval "$as_ac_var=no"
24395 fi
24396 rm -f conftest.err conftest.$ac_objext \
24397       conftest$ac_exeext conftest.$ac_ext
24398 fi
24399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24401 if test `eval echo '${'$as_ac_var'}'` = yes; then
24402   cat >>confdefs.h <<_ACEOF
24403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24404 _ACEOF
24405
24406 else
24407   case $LIBOBJS in
24408     "$ac_func.$ac_objext"   | \
24409   *" $ac_func.$ac_objext"   | \
24410     "$ac_func.$ac_objext "* | \
24411   *" $ac_func.$ac_objext "* ) ;;
24412   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24413 esac
24414
24415 fi
24416 done
24417
24418
24419   if test $ac_cv_func_memrchr = no; then
24420     :
24421   fi
24422
24423
24424
24425 for ac_func in memset
24426 do
24427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24428 echo "$as_me:$LINENO: checking for $ac_func" >&5
24429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24430 if eval "test \"\${$as_ac_var+set}\" = set"; then
24431   echo $ECHO_N "(cached) $ECHO_C" >&6
24432 else
24433   cat >conftest.$ac_ext <<_ACEOF
24434 /* confdefs.h.  */
24435 _ACEOF
24436 cat confdefs.h >>conftest.$ac_ext
24437 cat >>conftest.$ac_ext <<_ACEOF
24438 /* end confdefs.h.  */
24439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24441 #define $ac_func innocuous_$ac_func
24442
24443 /* System header to define __stub macros and hopefully few prototypes,
24444     which can conflict with char $ac_func (); below.
24445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24446     <limits.h> exists even on freestanding compilers.  */
24447
24448 #ifdef __STDC__
24449 # include <limits.h>
24450 #else
24451 # include <assert.h>
24452 #endif
24453
24454 #undef $ac_func
24455
24456 /* Override any gcc2 internal prototype to avoid an error.  */
24457 #ifdef __cplusplus
24458 extern "C"
24459 {
24460 #endif
24461 /* We use char because int might match the return type of a gcc2
24462    builtin and then its argument prototype would still apply.  */
24463 char $ac_func ();
24464 /* The GNU C library defines this for functions which it implements
24465     to always fail with ENOSYS.  Some functions are actually named
24466     something starting with __ and the normal name is an alias.  */
24467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24468 choke me
24469 #else
24470 char (*f) () = $ac_func;
24471 #endif
24472 #ifdef __cplusplus
24473 }
24474 #endif
24475
24476 int
24477 main ()
24478 {
24479 return f != $ac_func;
24480   ;
24481   return 0;
24482 }
24483 _ACEOF
24484 rm -f conftest.$ac_objext conftest$ac_exeext
24485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24486   (eval $ac_link) 2>conftest.er1
24487   ac_status=$?
24488   grep -v '^ *+' conftest.er1 >conftest.err
24489   rm -f conftest.er1
24490   cat conftest.err >&5
24491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492   (exit $ac_status); } &&
24493          { ac_try='test -z "$ac_c_werror_flag"
24494                          || test ! -s conftest.err'
24495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24496   (eval $ac_try) 2>&5
24497   ac_status=$?
24498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499   (exit $ac_status); }; } &&
24500          { ac_try='test -s conftest$ac_exeext'
24501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24502   (eval $ac_try) 2>&5
24503   ac_status=$?
24504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505   (exit $ac_status); }; }; then
24506   eval "$as_ac_var=yes"
24507 else
24508   echo "$as_me: failed program was:" >&5
24509 sed 's/^/| /' conftest.$ac_ext >&5
24510
24511 eval "$as_ac_var=no"
24512 fi
24513 rm -f conftest.err conftest.$ac_objext \
24514       conftest$ac_exeext conftest.$ac_ext
24515 fi
24516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24518 if test `eval echo '${'$as_ac_var'}'` = yes; then
24519   cat >>confdefs.h <<_ACEOF
24520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24521 _ACEOF
24522
24523 else
24524   case $LIBOBJS in
24525     "$ac_func.$ac_objext"   | \
24526   *" $ac_func.$ac_objext"   | \
24527     "$ac_func.$ac_objext "* | \
24528   *" $ac_func.$ac_objext "* ) ;;
24529   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
24530 esac
24531
24532 fi
24533 done
24534
24535
24536   if test $ac_cv_func_memset = no; then
24537
24538   :
24539
24540   fi
24541
24542
24543
24544
24545 for ac_header in stdlib.h sys/time.h unistd.h
24546 do
24547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24549   echo "$as_me:$LINENO: checking for $ac_header" >&5
24550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24552   echo $ECHO_N "(cached) $ECHO_C" >&6
24553 fi
24554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24556 else
24557   # Is the header compilable?
24558 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24560 cat >conftest.$ac_ext <<_ACEOF
24561 /* confdefs.h.  */
24562 _ACEOF
24563 cat confdefs.h >>conftest.$ac_ext
24564 cat >>conftest.$ac_ext <<_ACEOF
24565 /* end confdefs.h.  */
24566 $ac_includes_default
24567 #include <$ac_header>
24568 _ACEOF
24569 rm -f conftest.$ac_objext
24570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24571   (eval $ac_compile) 2>conftest.er1
24572   ac_status=$?
24573   grep -v '^ *+' conftest.er1 >conftest.err
24574   rm -f conftest.er1
24575   cat conftest.err >&5
24576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577   (exit $ac_status); } &&
24578          { ac_try='test -z "$ac_c_werror_flag"
24579                          || test ! -s conftest.err'
24580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24581   (eval $ac_try) 2>&5
24582   ac_status=$?
24583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584   (exit $ac_status); }; } &&
24585          { ac_try='test -s conftest.$ac_objext'
24586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24587   (eval $ac_try) 2>&5
24588   ac_status=$?
24589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590   (exit $ac_status); }; }; then
24591   ac_header_compiler=yes
24592 else
24593   echo "$as_me: failed program was:" >&5
24594 sed 's/^/| /' conftest.$ac_ext >&5
24595
24596 ac_header_compiler=no
24597 fi
24598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24600 echo "${ECHO_T}$ac_header_compiler" >&6
24601
24602 # Is the header present?
24603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24605 cat >conftest.$ac_ext <<_ACEOF
24606 /* confdefs.h.  */
24607 _ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h.  */
24611 #include <$ac_header>
24612 _ACEOF
24613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24614   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24615   ac_status=$?
24616   grep -v '^ *+' conftest.er1 >conftest.err
24617   rm -f conftest.er1
24618   cat conftest.err >&5
24619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620   (exit $ac_status); } >/dev/null; then
24621   if test -s conftest.err; then
24622     ac_cpp_err=$ac_c_preproc_warn_flag
24623     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24624   else
24625     ac_cpp_err=
24626   fi
24627 else
24628   ac_cpp_err=yes
24629 fi
24630 if test -z "$ac_cpp_err"; then
24631   ac_header_preproc=yes
24632 else
24633   echo "$as_me: failed program was:" >&5
24634 sed 's/^/| /' conftest.$ac_ext >&5
24635
24636   ac_header_preproc=no
24637 fi
24638 rm -f conftest.err conftest.$ac_ext
24639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24640 echo "${ECHO_T}$ac_header_preproc" >&6
24641
24642 # So?  What about this header?
24643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24644   yes:no: )
24645     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24649     ac_header_preproc=yes
24650     ;;
24651   no:yes:* )
24652     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24654     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24655 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24656     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24658     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24659 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24662     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24664     (
24665       cat <<\_ASBOX
24666 ## ------------------------------------ ##
24667 ## Report this to bug-coreutils@gnu.org ##
24668 ## ------------------------------------ ##
24669 _ASBOX
24670     ) |
24671       sed "s/^/$as_me: WARNING:     /" >&2
24672     ;;
24673 esac
24674 echo "$as_me:$LINENO: checking for $ac_header" >&5
24675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24677   echo $ECHO_N "(cached) $ECHO_C" >&6
24678 else
24679   eval "$as_ac_Header=\$ac_header_preproc"
24680 fi
24681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24683
24684 fi
24685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24686   cat >>confdefs.h <<_ACEOF
24687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24688 _ACEOF
24689
24690 fi
24691
24692 done
24693
24694
24695 for ac_func in alarm
24696 do
24697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24698 echo "$as_me:$LINENO: checking for $ac_func" >&5
24699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24700 if eval "test \"\${$as_ac_var+set}\" = set"; then
24701   echo $ECHO_N "(cached) $ECHO_C" >&6
24702 else
24703   cat >conftest.$ac_ext <<_ACEOF
24704 /* confdefs.h.  */
24705 _ACEOF
24706 cat confdefs.h >>conftest.$ac_ext
24707 cat >>conftest.$ac_ext <<_ACEOF
24708 /* end confdefs.h.  */
24709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24711 #define $ac_func innocuous_$ac_func
24712
24713 /* System header to define __stub macros and hopefully few prototypes,
24714     which can conflict with char $ac_func (); below.
24715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24716     <limits.h> exists even on freestanding compilers.  */
24717
24718 #ifdef __STDC__
24719 # include <limits.h>
24720 #else
24721 # include <assert.h>
24722 #endif
24723
24724 #undef $ac_func
24725
24726 /* Override any gcc2 internal prototype to avoid an error.  */
24727 #ifdef __cplusplus
24728 extern "C"
24729 {
24730 #endif
24731 /* We use char because int might match the return type of a gcc2
24732    builtin and then its argument prototype would still apply.  */
24733 char $ac_func ();
24734 /* The GNU C library defines this for functions which it implements
24735     to always fail with ENOSYS.  Some functions are actually named
24736     something starting with __ and the normal name is an alias.  */
24737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24738 choke me
24739 #else
24740 char (*f) () = $ac_func;
24741 #endif
24742 #ifdef __cplusplus
24743 }
24744 #endif
24745
24746 int
24747 main ()
24748 {
24749 return f != $ac_func;
24750   ;
24751   return 0;
24752 }
24753 _ACEOF
24754 rm -f conftest.$ac_objext conftest$ac_exeext
24755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24756   (eval $ac_link) 2>conftest.er1
24757   ac_status=$?
24758   grep -v '^ *+' conftest.er1 >conftest.err
24759   rm -f conftest.er1
24760   cat conftest.err >&5
24761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762   (exit $ac_status); } &&
24763          { ac_try='test -z "$ac_c_werror_flag"
24764                          || test ! -s conftest.err'
24765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24766   (eval $ac_try) 2>&5
24767   ac_status=$?
24768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769   (exit $ac_status); }; } &&
24770          { ac_try='test -s conftest$ac_exeext'
24771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24772   (eval $ac_try) 2>&5
24773   ac_status=$?
24774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775   (exit $ac_status); }; }; then
24776   eval "$as_ac_var=yes"
24777 else
24778   echo "$as_me: failed program was:" >&5
24779 sed 's/^/| /' conftest.$ac_ext >&5
24780
24781 eval "$as_ac_var=no"
24782 fi
24783 rm -f conftest.err conftest.$ac_objext \
24784       conftest$ac_exeext conftest.$ac_ext
24785 fi
24786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24788 if test `eval echo '${'$as_ac_var'}'` = yes; then
24789   cat >>confdefs.h <<_ACEOF
24790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24791 _ACEOF
24792
24793 fi
24794 done
24795
24796 echo "$as_me:$LINENO: checking for working mktime" >&5
24797 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
24798 if test "${ac_cv_func_working_mktime+set}" = set; then
24799   echo $ECHO_N "(cached) $ECHO_C" >&6
24800 else
24801   if test "$cross_compiling" = yes; then
24802   ac_cv_func_working_mktime=no
24803 else
24804   cat >conftest.$ac_ext <<_ACEOF
24805 /* confdefs.h.  */
24806 _ACEOF
24807 cat confdefs.h >>conftest.$ac_ext
24808 cat >>conftest.$ac_ext <<_ACEOF
24809 /* end confdefs.h.  */
24810 /* Test program from Paul Eggert and Tony Leneis.  */
24811 #if TIME_WITH_SYS_TIME
24812 # include <sys/time.h>
24813 # include <time.h>
24814 #else
24815 # if HAVE_SYS_TIME_H
24816 #  include <sys/time.h>
24817 # else
24818 #  include <time.h>
24819 # endif
24820 #endif
24821
24822 #if HAVE_STDLIB_H
24823 # include <stdlib.h>
24824 #endif
24825
24826 #if HAVE_UNISTD_H
24827 # include <unistd.h>
24828 #endif
24829
24830 #if !HAVE_ALARM
24831 # define alarm(X) /* empty */
24832 #endif
24833
24834 /* Work around redefinition to rpl_putenv by other config tests.  */
24835 #undef putenv
24836
24837 static time_t time_t_max;
24838 static time_t time_t_min;
24839
24840 /* Values we'll use to set the TZ environment variable.  */
24841 static char *tz_strings[] = {
24842   (char *) 0, "TZ=GMT0", "TZ=JST-9",
24843   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24844 };
24845 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24846
24847 /* Fail if mktime fails to convert a date in the spring-forward gap.
24848    Based on a problem report from Andreas Jaeger.  */
24849 static void
24850 spring_forward_gap ()
24851 {
24852   /* glibc (up to about 1998-10-07) failed this test. */
24853   struct tm tm;
24854
24855   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24856      instead of "TZ=America/Vancouver" in order to detect the bug even
24857      on systems that don't support the Olson extension, or don't have the
24858      full zoneinfo tables installed.  */
24859   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24860
24861   tm.tm_year = 98;
24862   tm.tm_mon = 3;
24863   tm.tm_mday = 5;
24864   tm.tm_hour = 2;
24865   tm.tm_min = 0;
24866   tm.tm_sec = 0;
24867   tm.tm_isdst = -1;
24868   if (mktime (&tm) == (time_t)-1)
24869     exit (1);
24870 }
24871
24872 static void
24873 mktime_test1 (now)
24874      time_t now;
24875 {
24876   struct tm *lt;
24877   if ((lt = localtime (&now)) && mktime (lt) != now)
24878     exit (1);
24879 }
24880
24881 static void
24882 mktime_test (now)
24883      time_t now;
24884 {
24885   mktime_test1 (now);
24886   mktime_test1 ((time_t) (time_t_max - now));
24887   mktime_test1 ((time_t) (time_t_min + now));
24888 }
24889
24890 static void
24891 irix_6_4_bug ()
24892 {
24893   /* Based on code from Ariel Faigon.  */
24894   struct tm tm;
24895   tm.tm_year = 96;
24896   tm.tm_mon = 3;
24897   tm.tm_mday = 0;
24898   tm.tm_hour = 0;
24899   tm.tm_min = 0;
24900   tm.tm_sec = 0;
24901   tm.tm_isdst = -1;
24902   mktime (&tm);
24903   if (tm.tm_mon != 2 || tm.tm_mday != 31)
24904     exit (1);
24905 }
24906
24907 static void
24908 bigtime_test (j)
24909      int j;
24910 {
24911   struct tm tm;
24912   time_t now;
24913   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24914   now = mktime (&tm);
24915   if (now != (time_t) -1)
24916     {
24917       struct tm *lt = localtime (&now);
24918       if (! (lt
24919              && lt->tm_year == tm.tm_year
24920              && lt->tm_mon == tm.tm_mon
24921              && lt->tm_mday == tm.tm_mday
24922              && lt->tm_hour == tm.tm_hour
24923              && lt->tm_min == tm.tm_min
24924              && lt->tm_sec == tm.tm_sec
24925              && lt->tm_yday == tm.tm_yday
24926              && lt->tm_wday == tm.tm_wday
24927              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24928                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24929         exit (1);
24930     }
24931 }
24932
24933 int
24934 main ()
24935 {
24936   time_t t, delta;
24937   int i, j;
24938
24939   /* This test makes some buggy mktime implementations loop.
24940      Give up after 60 seconds; a mktime slower than that
24941      isn't worth using anyway.  */
24942   alarm (60);
24943
24944   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
24945     continue;
24946   time_t_max--;
24947   if ((time_t) -1 < 0)
24948     for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
24949       continue;
24950   delta = time_t_max / 997; /* a suitable prime number */
24951   for (i = 0; i < N_STRINGS; i++)
24952     {
24953       if (tz_strings[i])
24954         putenv (tz_strings[i]);
24955
24956       for (t = 0; t <= time_t_max - delta; t += delta)
24957         mktime_test (t);
24958       mktime_test ((time_t) 1);
24959       mktime_test ((time_t) (60 * 60));
24960       mktime_test ((time_t) (60 * 60 * 24));
24961
24962       for (j = 1; 0 < j; j *= 2)
24963         bigtime_test (j);
24964       bigtime_test (j - 1);
24965     }
24966   irix_6_4_bug ();
24967   spring_forward_gap ();
24968   exit (0);
24969 }
24970 _ACEOF
24971 rm -f conftest$ac_exeext
24972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24973   (eval $ac_link) 2>&5
24974   ac_status=$?
24975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24978   (eval $ac_try) 2>&5
24979   ac_status=$?
24980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981   (exit $ac_status); }; }; then
24982   ac_cv_func_working_mktime=yes
24983 else
24984   echo "$as_me: program exited with status $ac_status" >&5
24985 echo "$as_me: failed program was:" >&5
24986 sed 's/^/| /' conftest.$ac_ext >&5
24987
24988 ( exit $ac_status )
24989 ac_cv_func_working_mktime=no
24990 fi
24991 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24992 fi
24993 fi
24994 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
24995 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
24996 if test $ac_cv_func_working_mktime = no; then
24997   case $LIBOBJS in
24998     "mktime.$ac_objext"   | \
24999   *" mktime.$ac_objext"   | \
25000     "mktime.$ac_objext "* | \
25001   *" mktime.$ac_objext "* ) ;;
25002   *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
25003 esac
25004
25005 fi
25006
25007
25008
25009   if test $ac_cv_func_working_mktime = no; then
25010
25011 cat >>confdefs.h <<\_ACEOF
25012 #define mktime rpl_mktime
25013 _ACEOF
25014
25015     :
25016   fi
25017
25018
25019       echo "$as_me:$LINENO: checking whether euidaccess is declared" >&5
25020 echo $ECHO_N "checking whether euidaccess is declared... $ECHO_C" >&6
25021 if test "${ac_cv_have_decl_euidaccess+set}" = set; then
25022   echo $ECHO_N "(cached) $ECHO_C" >&6
25023 else
25024   cat >conftest.$ac_ext <<_ACEOF
25025 /* confdefs.h.  */
25026 _ACEOF
25027 cat confdefs.h >>conftest.$ac_ext
25028 cat >>conftest.$ac_ext <<_ACEOF
25029 /* end confdefs.h.  */
25030 $ac_includes_default
25031 int
25032 main ()
25033 {
25034 #ifndef euidaccess
25035   char *p = (char *) euidaccess;
25036 #endif
25037
25038   ;
25039   return 0;
25040 }
25041 _ACEOF
25042 rm -f conftest.$ac_objext
25043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25044   (eval $ac_compile) 2>conftest.er1
25045   ac_status=$?
25046   grep -v '^ *+' conftest.er1 >conftest.err
25047   rm -f conftest.er1
25048   cat conftest.err >&5
25049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050   (exit $ac_status); } &&
25051          { ac_try='test -z "$ac_c_werror_flag"
25052                          || test ! -s conftest.err'
25053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25054   (eval $ac_try) 2>&5
25055   ac_status=$?
25056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057   (exit $ac_status); }; } &&
25058          { ac_try='test -s conftest.$ac_objext'
25059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25060   (eval $ac_try) 2>&5
25061   ac_status=$?
25062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063   (exit $ac_status); }; }; then
25064   ac_cv_have_decl_euidaccess=yes
25065 else
25066   echo "$as_me: failed program was:" >&5
25067 sed 's/^/| /' conftest.$ac_ext >&5
25068
25069 ac_cv_have_decl_euidaccess=no
25070 fi
25071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25072 fi
25073 echo "$as_me:$LINENO: result: $ac_cv_have_decl_euidaccess" >&5
25074 echo "${ECHO_T}$ac_cv_have_decl_euidaccess" >&6
25075 if test $ac_cv_have_decl_euidaccess = yes; then
25076
25077 cat >>confdefs.h <<_ACEOF
25078 #define HAVE_DECL_EUIDACCESS 1
25079 _ACEOF
25080
25081
25082 else
25083   cat >>confdefs.h <<_ACEOF
25084 #define HAVE_DECL_EUIDACCESS 0
25085 _ACEOF
25086
25087
25088 fi
25089
25090
25091
25092
25093
25094 for ac_header in libgen.h
25095 do
25096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25098   echo "$as_me:$LINENO: checking for $ac_header" >&5
25099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25101   echo $ECHO_N "(cached) $ECHO_C" >&6
25102 fi
25103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25105 else
25106   # Is the header compilable?
25107 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25109 cat >conftest.$ac_ext <<_ACEOF
25110 /* confdefs.h.  */
25111 _ACEOF
25112 cat confdefs.h >>conftest.$ac_ext
25113 cat >>conftest.$ac_ext <<_ACEOF
25114 /* end confdefs.h.  */
25115 $ac_includes_default
25116 #include <$ac_header>
25117 _ACEOF
25118 rm -f conftest.$ac_objext
25119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25120   (eval $ac_compile) 2>conftest.er1
25121   ac_status=$?
25122   grep -v '^ *+' conftest.er1 >conftest.err
25123   rm -f conftest.er1
25124   cat conftest.err >&5
25125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126   (exit $ac_status); } &&
25127          { ac_try='test -z "$ac_c_werror_flag"
25128                          || test ! -s conftest.err'
25129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25130   (eval $ac_try) 2>&5
25131   ac_status=$?
25132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133   (exit $ac_status); }; } &&
25134          { ac_try='test -s conftest.$ac_objext'
25135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25136   (eval $ac_try) 2>&5
25137   ac_status=$?
25138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139   (exit $ac_status); }; }; then
25140   ac_header_compiler=yes
25141 else
25142   echo "$as_me: failed program was:" >&5
25143 sed 's/^/| /' conftest.$ac_ext >&5
25144
25145 ac_header_compiler=no
25146 fi
25147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25149 echo "${ECHO_T}$ac_header_compiler" >&6
25150
25151 # Is the header present?
25152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25154 cat >conftest.$ac_ext <<_ACEOF
25155 /* confdefs.h.  */
25156 _ACEOF
25157 cat confdefs.h >>conftest.$ac_ext
25158 cat >>conftest.$ac_ext <<_ACEOF
25159 /* end confdefs.h.  */
25160 #include <$ac_header>
25161 _ACEOF
25162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25163   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25164   ac_status=$?
25165   grep -v '^ *+' conftest.er1 >conftest.err
25166   rm -f conftest.er1
25167   cat conftest.err >&5
25168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169   (exit $ac_status); } >/dev/null; then
25170   if test -s conftest.err; then
25171     ac_cpp_err=$ac_c_preproc_warn_flag
25172     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25173   else
25174     ac_cpp_err=
25175   fi
25176 else
25177   ac_cpp_err=yes
25178 fi
25179 if test -z "$ac_cpp_err"; then
25180   ac_header_preproc=yes
25181 else
25182   echo "$as_me: failed program was:" >&5
25183 sed 's/^/| /' conftest.$ac_ext >&5
25184
25185   ac_header_preproc=no
25186 fi
25187 rm -f conftest.err conftest.$ac_ext
25188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25189 echo "${ECHO_T}$ac_header_preproc" >&6
25190
25191 # So?  What about this header?
25192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25193   yes:no: )
25194     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25198     ac_header_preproc=yes
25199     ;;
25200   no:yes:* )
25201     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25203     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25204 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25205     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25207     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25208 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25211     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25213     (
25214       cat <<\_ASBOX
25215 ## ------------------------------------ ##
25216 ## Report this to bug-coreutils@gnu.org ##
25217 ## ------------------------------------ ##
25218 _ASBOX
25219     ) |
25220       sed "s/^/$as_me: WARNING:     /" >&2
25221     ;;
25222 esac
25223 echo "$as_me:$LINENO: checking for $ac_header" >&5
25224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25226   echo $ECHO_N "(cached) $ECHO_C" >&6
25227 else
25228   eval "$as_ac_Header=\$ac_header_preproc"
25229 fi
25230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25232
25233 fi
25234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25235   cat >>confdefs.h <<_ACEOF
25236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25237 _ACEOF
25238
25239 fi
25240
25241 done
25242
25243
25244
25245       echo "$as_me:$LINENO: checking whether setregid is declared" >&5
25246 echo $ECHO_N "checking whether setregid is declared... $ECHO_C" >&6
25247 if test "${ac_cv_have_decl_setregid+set}" = set; then
25248   echo $ECHO_N "(cached) $ECHO_C" >&6
25249 else
25250   cat >conftest.$ac_ext <<_ACEOF
25251 /* confdefs.h.  */
25252 _ACEOF
25253 cat confdefs.h >>conftest.$ac_ext
25254 cat >>conftest.$ac_ext <<_ACEOF
25255 /* end confdefs.h.  */
25256 $ac_includes_default
25257 int
25258 main ()
25259 {
25260 #ifndef setregid
25261   char *p = (char *) setregid;
25262 #endif
25263
25264   ;
25265   return 0;
25266 }
25267 _ACEOF
25268 rm -f conftest.$ac_objext
25269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25270   (eval $ac_compile) 2>conftest.er1
25271   ac_status=$?
25272   grep -v '^ *+' conftest.er1 >conftest.err
25273   rm -f conftest.er1
25274   cat conftest.err >&5
25275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276   (exit $ac_status); } &&
25277          { ac_try='test -z "$ac_c_werror_flag"
25278                          || test ! -s conftest.err'
25279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25280   (eval $ac_try) 2>&5
25281   ac_status=$?
25282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283   (exit $ac_status); }; } &&
25284          { ac_try='test -s conftest.$ac_objext'
25285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25286   (eval $ac_try) 2>&5
25287   ac_status=$?
25288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289   (exit $ac_status); }; }; then
25290   ac_cv_have_decl_setregid=yes
25291 else
25292   echo "$as_me: failed program was:" >&5
25293 sed 's/^/| /' conftest.$ac_ext >&5
25294
25295 ac_cv_have_decl_setregid=no
25296 fi
25297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25298 fi
25299 echo "$as_me:$LINENO: result: $ac_cv_have_decl_setregid" >&5
25300 echo "${ECHO_T}$ac_cv_have_decl_setregid" >&6
25301 if test $ac_cv_have_decl_setregid = yes; then
25302
25303 cat >>confdefs.h <<_ACEOF
25304 #define HAVE_DECL_SETREGID 1
25305 _ACEOF
25306
25307
25308 else
25309   cat >>confdefs.h <<_ACEOF
25310 #define HAVE_DECL_SETREGID 0
25311 _ACEOF
25312
25313
25314 fi
25315
25316
25317
25318 echo "$as_me:$LINENO: checking for getgroups" >&5
25319 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
25320 if test "${ac_cv_func_getgroups+set}" = set; then
25321   echo $ECHO_N "(cached) $ECHO_C" >&6
25322 else
25323   cat >conftest.$ac_ext <<_ACEOF
25324 /* confdefs.h.  */
25325 _ACEOF
25326 cat confdefs.h >>conftest.$ac_ext
25327 cat >>conftest.$ac_ext <<_ACEOF
25328 /* end confdefs.h.  */
25329 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
25330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25331 #define getgroups innocuous_getgroups
25332
25333 /* System header to define __stub macros and hopefully few prototypes,
25334     which can conflict with char getgroups (); below.
25335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25336     <limits.h> exists even on freestanding compilers.  */
25337
25338 #ifdef __STDC__
25339 # include <limits.h>
25340 #else
25341 # include <assert.h>
25342 #endif
25343
25344 #undef getgroups
25345
25346 /* Override any gcc2 internal prototype to avoid an error.  */
25347 #ifdef __cplusplus
25348 extern "C"
25349 {
25350 #endif
25351 /* We use char because int might match the return type of a gcc2
25352    builtin and then its argument prototype would still apply.  */
25353 char getgroups ();
25354 /* The GNU C library defines this for functions which it implements
25355     to always fail with ENOSYS.  Some functions are actually named
25356     something starting with __ and the normal name is an alias.  */
25357 #if defined (__stub_getgroups) || defined (__stub___getgroups)
25358 choke me
25359 #else
25360 char (*f) () = getgroups;
25361 #endif
25362 #ifdef __cplusplus
25363 }
25364 #endif
25365
25366 int
25367 main ()
25368 {
25369 return f != getgroups;
25370   ;
25371   return 0;
25372 }
25373 _ACEOF
25374 rm -f conftest.$ac_objext conftest$ac_exeext
25375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25376   (eval $ac_link) 2>conftest.er1
25377   ac_status=$?
25378   grep -v '^ *+' conftest.er1 >conftest.err
25379   rm -f conftest.er1
25380   cat conftest.err >&5
25381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382   (exit $ac_status); } &&
25383          { ac_try='test -z "$ac_c_werror_flag"
25384                          || test ! -s conftest.err'
25385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25386   (eval $ac_try) 2>&5
25387   ac_status=$?
25388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389   (exit $ac_status); }; } &&
25390          { ac_try='test -s conftest$ac_exeext'
25391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25392   (eval $ac_try) 2>&5
25393   ac_status=$?
25394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395   (exit $ac_status); }; }; then
25396   ac_cv_func_getgroups=yes
25397 else
25398   echo "$as_me: failed program was:" >&5
25399 sed 's/^/| /' conftest.$ac_ext >&5
25400
25401 ac_cv_func_getgroups=no
25402 fi
25403 rm -f conftest.err conftest.$ac_objext \
25404       conftest$ac_exeext conftest.$ac_ext
25405 fi
25406 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25407 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
25408
25409
25410 # If we don't yet have getgroups, see if it's in -lbsd.
25411 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25412 ac_save_LIBS=$LIBS
25413 if test $ac_cv_func_getgroups = no; then
25414   echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25415 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
25416 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25417   echo $ECHO_N "(cached) $ECHO_C" >&6
25418 else
25419   ac_check_lib_save_LIBS=$LIBS
25420 LIBS="-lbsd  $LIBS"
25421 cat >conftest.$ac_ext <<_ACEOF
25422 /* confdefs.h.  */
25423 _ACEOF
25424 cat confdefs.h >>conftest.$ac_ext
25425 cat >>conftest.$ac_ext <<_ACEOF
25426 /* end confdefs.h.  */
25427
25428 /* Override any gcc2 internal prototype to avoid an error.  */
25429 #ifdef __cplusplus
25430 extern "C"
25431 #endif
25432 /* We use char because int might match the return type of a gcc2
25433    builtin and then its argument prototype would still apply.  */
25434 char getgroups ();
25435 int
25436 main ()
25437 {
25438 getgroups ();
25439   ;
25440   return 0;
25441 }
25442 _ACEOF
25443 rm -f conftest.$ac_objext conftest$ac_exeext
25444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25445   (eval $ac_link) 2>conftest.er1
25446   ac_status=$?
25447   grep -v '^ *+' conftest.er1 >conftest.err
25448   rm -f conftest.er1
25449   cat conftest.err >&5
25450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451   (exit $ac_status); } &&
25452          { ac_try='test -z "$ac_c_werror_flag"
25453                          || test ! -s conftest.err'
25454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25455   (eval $ac_try) 2>&5
25456   ac_status=$?
25457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458   (exit $ac_status); }; } &&
25459          { ac_try='test -s conftest$ac_exeext'
25460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25461   (eval $ac_try) 2>&5
25462   ac_status=$?
25463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464   (exit $ac_status); }; }; then
25465   ac_cv_lib_bsd_getgroups=yes
25466 else
25467   echo "$as_me: failed program was:" >&5
25468 sed 's/^/| /' conftest.$ac_ext >&5
25469
25470 ac_cv_lib_bsd_getgroups=no
25471 fi
25472 rm -f conftest.err conftest.$ac_objext \
25473       conftest$ac_exeext conftest.$ac_ext
25474 LIBS=$ac_check_lib_save_LIBS
25475 fi
25476 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25477 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
25478 if test $ac_cv_lib_bsd_getgroups = yes; then
25479   GETGROUPS_LIB=-lbsd
25480 fi
25481
25482 fi
25483
25484 # Run the program to test the functionality of the system-supplied
25485 # getgroups function only if there is such a function.
25486 if test $ac_cv_func_getgroups = yes; then
25487   echo "$as_me:$LINENO: checking for working getgroups" >&5
25488 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
25489 if test "${ac_cv_func_getgroups_works+set}" = set; then
25490   echo $ECHO_N "(cached) $ECHO_C" >&6
25491 else
25492   if test "$cross_compiling" = yes; then
25493   ac_cv_func_getgroups_works=no
25494 else
25495   cat >conftest.$ac_ext <<_ACEOF
25496 /* confdefs.h.  */
25497 _ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h.  */
25501 $ac_includes_default
25502 int
25503 main ()
25504 {
25505 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
25506        exit (getgroups (0, 0) == -1 ? 1 : 0);
25507   ;
25508   return 0;
25509 }
25510 _ACEOF
25511 rm -f conftest$ac_exeext
25512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25513   (eval $ac_link) 2>&5
25514   ac_status=$?
25515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518   (eval $ac_try) 2>&5
25519   ac_status=$?
25520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521   (exit $ac_status); }; }; then
25522   ac_cv_func_getgroups_works=yes
25523 else
25524   echo "$as_me: program exited with status $ac_status" >&5
25525 echo "$as_me: failed program was:" >&5
25526 sed 's/^/| /' conftest.$ac_ext >&5
25527
25528 ( exit $ac_status )
25529 ac_cv_func_getgroups_works=no
25530 fi
25531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25532 fi
25533
25534 fi
25535 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25536 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
25537   if test $ac_cv_func_getgroups_works = yes; then
25538
25539 cat >>confdefs.h <<\_ACEOF
25540 #define HAVE_GETGROUPS 1
25541 _ACEOF
25542
25543   fi
25544 fi
25545 LIBS=$ac_save_LIBS
25546
25547
25548
25549
25550
25551   :
25552
25553
25554
25555
25556
25557
25558 for ac_func in euidaccess
25559 do
25560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25561 echo "$as_me:$LINENO: checking for $ac_func" >&5
25562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25563 if eval "test \"\${$as_ac_var+set}\" = set"; then
25564   echo $ECHO_N "(cached) $ECHO_C" >&6
25565 else
25566   cat >conftest.$ac_ext <<_ACEOF
25567 /* confdefs.h.  */
25568 _ACEOF
25569 cat confdefs.h >>conftest.$ac_ext
25570 cat >>conftest.$ac_ext <<_ACEOF
25571 /* end confdefs.h.  */
25572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25574 #define $ac_func innocuous_$ac_func
25575
25576 /* System header to define __stub macros and hopefully few prototypes,
25577     which can conflict with char $ac_func (); below.
25578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25579     <limits.h> exists even on freestanding compilers.  */
25580
25581 #ifdef __STDC__
25582 # include <limits.h>
25583 #else
25584 # include <assert.h>
25585 #endif
25586
25587 #undef $ac_func
25588
25589 /* Override any gcc2 internal prototype to avoid an error.  */
25590 #ifdef __cplusplus
25591 extern "C"
25592 {
25593 #endif
25594 /* We use char because int might match the return type of a gcc2
25595    builtin and then its argument prototype would still apply.  */
25596 char $ac_func ();
25597 /* The GNU C library defines this for functions which it implements
25598     to always fail with ENOSYS.  Some functions are actually named
25599     something starting with __ and the normal name is an alias.  */
25600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25601 choke me
25602 #else
25603 char (*f) () = $ac_func;
25604 #endif
25605 #ifdef __cplusplus
25606 }
25607 #endif
25608
25609 int
25610 main ()
25611 {
25612 return f != $ac_func;
25613   ;
25614   return 0;
25615 }
25616 _ACEOF
25617 rm -f conftest.$ac_objext conftest$ac_exeext
25618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25619   (eval $ac_link) 2>conftest.er1
25620   ac_status=$?
25621   grep -v '^ *+' conftest.er1 >conftest.err
25622   rm -f conftest.er1
25623   cat conftest.err >&5
25624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625   (exit $ac_status); } &&
25626          { ac_try='test -z "$ac_c_werror_flag"
25627                          || test ! -s conftest.err'
25628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25629   (eval $ac_try) 2>&5
25630   ac_status=$?
25631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632   (exit $ac_status); }; } &&
25633          { ac_try='test -s conftest$ac_exeext'
25634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25635   (eval $ac_try) 2>&5
25636   ac_status=$?
25637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638   (exit $ac_status); }; }; then
25639   eval "$as_ac_var=yes"
25640 else
25641   echo "$as_me: failed program was:" >&5
25642 sed 's/^/| /' conftest.$ac_ext >&5
25643
25644 eval "$as_ac_var=no"
25645 fi
25646 rm -f conftest.err conftest.$ac_objext \
25647       conftest$ac_exeext conftest.$ac_ext
25648 fi
25649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25651 if test `eval echo '${'$as_ac_var'}'` = yes; then
25652   cat >>confdefs.h <<_ACEOF
25653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25654 _ACEOF
25655
25656 else
25657   case $LIBOBJS in
25658     "$ac_func.$ac_objext"   | \
25659   *" $ac_func.$ac_objext"   | \
25660     "$ac_func.$ac_objext "* | \
25661   *" $ac_func.$ac_objext "* ) ;;
25662   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
25663 esac
25664
25665 fi
25666 done
25667
25668
25669   if test $ac_cv_func_euidaccess = no; then
25670
25671
25672   :
25673
25674
25675
25676
25677
25678
25679   :
25680
25681
25682
25683
25684
25685
25686
25687
25688   # Solaris 9 needs -lgen to get the eaccess function.
25689   # Save and restore LIBS so -lgen isn't added to it.  Otherwise, *all*
25690   # programs in the package would end up linked with that potentially-shared
25691   # library, inducing unnecessary run-time overhead.
25692   gl_saved_libs=$LIBS
25693     echo "$as_me:$LINENO: checking for library containing eaccess" >&5
25694 echo $ECHO_N "checking for library containing eaccess... $ECHO_C" >&6
25695 if test "${ac_cv_search_eaccess+set}" = set; then
25696   echo $ECHO_N "(cached) $ECHO_C" >&6
25697 else
25698   ac_func_search_save_LIBS=$LIBS
25699 ac_cv_search_eaccess=no
25700 cat >conftest.$ac_ext <<_ACEOF
25701 /* confdefs.h.  */
25702 _ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h.  */
25706
25707 /* Override any gcc2 internal prototype to avoid an error.  */
25708 #ifdef __cplusplus
25709 extern "C"
25710 #endif
25711 /* We use char because int might match the return type of a gcc2
25712    builtin and then its argument prototype would still apply.  */
25713 char eaccess ();
25714 int
25715 main ()
25716 {
25717 eaccess ();
25718   ;
25719   return 0;
25720 }
25721 _ACEOF
25722 rm -f conftest.$ac_objext conftest$ac_exeext
25723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25724   (eval $ac_link) 2>conftest.er1
25725   ac_status=$?
25726   grep -v '^ *+' conftest.er1 >conftest.err
25727   rm -f conftest.er1
25728   cat conftest.err >&5
25729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730   (exit $ac_status); } &&
25731          { ac_try='test -z "$ac_c_werror_flag"
25732                          || test ! -s conftest.err'
25733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25734   (eval $ac_try) 2>&5
25735   ac_status=$?
25736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737   (exit $ac_status); }; } &&
25738          { ac_try='test -s conftest$ac_exeext'
25739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740   (eval $ac_try) 2>&5
25741   ac_status=$?
25742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743   (exit $ac_status); }; }; then
25744   ac_cv_search_eaccess="none required"
25745 else
25746   echo "$as_me: failed program was:" >&5
25747 sed 's/^/| /' conftest.$ac_ext >&5
25748
25749 fi
25750 rm -f conftest.err conftest.$ac_objext \
25751       conftest$ac_exeext conftest.$ac_ext
25752 if test "$ac_cv_search_eaccess" = no; then
25753   for ac_lib in gen; do
25754     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25755     cat >conftest.$ac_ext <<_ACEOF
25756 /* confdefs.h.  */
25757 _ACEOF
25758 cat confdefs.h >>conftest.$ac_ext
25759 cat >>conftest.$ac_ext <<_ACEOF
25760 /* end confdefs.h.  */
25761
25762 /* Override any gcc2 internal prototype to avoid an error.  */
25763 #ifdef __cplusplus
25764 extern "C"
25765 #endif
25766 /* We use char because int might match the return type of a gcc2
25767    builtin and then its argument prototype would still apply.  */
25768 char eaccess ();
25769 int
25770 main ()
25771 {
25772 eaccess ();
25773   ;
25774   return 0;
25775 }
25776 _ACEOF
25777 rm -f conftest.$ac_objext conftest$ac_exeext
25778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25779   (eval $ac_link) 2>conftest.er1
25780   ac_status=$?
25781   grep -v '^ *+' conftest.er1 >conftest.err
25782   rm -f conftest.er1
25783   cat conftest.err >&5
25784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785   (exit $ac_status); } &&
25786          { ac_try='test -z "$ac_c_werror_flag"
25787                          || test ! -s conftest.err'
25788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25789   (eval $ac_try) 2>&5
25790   ac_status=$?
25791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792   (exit $ac_status); }; } &&
25793          { ac_try='test -s conftest$ac_exeext'
25794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25795   (eval $ac_try) 2>&5
25796   ac_status=$?
25797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25798   (exit $ac_status); }; }; then
25799   ac_cv_search_eaccess="-l$ac_lib"
25800 break
25801 else
25802   echo "$as_me: failed program was:" >&5
25803 sed 's/^/| /' conftest.$ac_ext >&5
25804
25805 fi
25806 rm -f conftest.err conftest.$ac_objext \
25807       conftest$ac_exeext conftest.$ac_ext
25808   done
25809 fi
25810 LIBS=$ac_func_search_save_LIBS
25811 fi
25812 echo "$as_me:$LINENO: result: $ac_cv_search_eaccess" >&5
25813 echo "${ECHO_T}$ac_cv_search_eaccess" >&6
25814 if test "$ac_cv_search_eaccess" != no; then
25815   test "$ac_cv_search_eaccess" = "none required" || LIBS="$ac_cv_search_eaccess $LIBS"
25816   test "$ac_cv_search_eaccess" = "none required" ||
25817                     LIB_EACCESS=$ac_cv_search_eaccess
25818 fi
25819
25820
25821
25822 for ac_func in eaccess
25823 do
25824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25825 echo "$as_me:$LINENO: checking for $ac_func" >&5
25826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25827 if eval "test \"\${$as_ac_var+set}\" = set"; then
25828   echo $ECHO_N "(cached) $ECHO_C" >&6
25829 else
25830   cat >conftest.$ac_ext <<_ACEOF
25831 /* confdefs.h.  */
25832 _ACEOF
25833 cat confdefs.h >>conftest.$ac_ext
25834 cat >>conftest.$ac_ext <<_ACEOF
25835 /* end confdefs.h.  */
25836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25838 #define $ac_func innocuous_$ac_func
25839
25840 /* System header to define __stub macros and hopefully few prototypes,
25841     which can conflict with char $ac_func (); below.
25842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25843     <limits.h> exists even on freestanding compilers.  */
25844
25845 #ifdef __STDC__
25846 # include <limits.h>
25847 #else
25848 # include <assert.h>
25849 #endif
25850
25851 #undef $ac_func
25852
25853 /* Override any gcc2 internal prototype to avoid an error.  */
25854 #ifdef __cplusplus
25855 extern "C"
25856 {
25857 #endif
25858 /* We use char because int might match the return type of a gcc2
25859    builtin and then its argument prototype would still apply.  */
25860 char $ac_func ();
25861 /* The GNU C library defines this for functions which it implements
25862     to always fail with ENOSYS.  Some functions are actually named
25863     something starting with __ and the normal name is an alias.  */
25864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25865 choke me
25866 #else
25867 char (*f) () = $ac_func;
25868 #endif
25869 #ifdef __cplusplus
25870 }
25871 #endif
25872
25873 int
25874 main ()
25875 {
25876 return f != $ac_func;
25877   ;
25878   return 0;
25879 }
25880 _ACEOF
25881 rm -f conftest.$ac_objext conftest$ac_exeext
25882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25883   (eval $ac_link) 2>conftest.er1
25884   ac_status=$?
25885   grep -v '^ *+' conftest.er1 >conftest.err
25886   rm -f conftest.er1
25887   cat conftest.err >&5
25888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889   (exit $ac_status); } &&
25890          { ac_try='test -z "$ac_c_werror_flag"
25891                          || test ! -s conftest.err'
25892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25893   (eval $ac_try) 2>&5
25894   ac_status=$?
25895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896   (exit $ac_status); }; } &&
25897          { ac_try='test -s conftest$ac_exeext'
25898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25899   (eval $ac_try) 2>&5
25900   ac_status=$?
25901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902   (exit $ac_status); }; }; then
25903   eval "$as_ac_var=yes"
25904 else
25905   echo "$as_me: failed program was:" >&5
25906 sed 's/^/| /' conftest.$ac_ext >&5
25907
25908 eval "$as_ac_var=no"
25909 fi
25910 rm -f conftest.err conftest.$ac_objext \
25911       conftest$ac_exeext conftest.$ac_ext
25912 fi
25913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25915 if test `eval echo '${'$as_ac_var'}'` = yes; then
25916   cat >>confdefs.h <<_ACEOF
25917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25918 _ACEOF
25919
25920 fi
25921 done
25922
25923   LIBS=$gl_saved_libs
25924
25925   fi
25926
25927
25928
25929
25930 cat >>confdefs.h <<\_ACEOF
25931 #define PREFER_NONREENTRANT_EUIDACCESS 1
25932 _ACEOF
25933
25934
25935
25936
25937 for ac_func in readlink
25938 do
25939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25940 echo "$as_me:$LINENO: checking for $ac_func" >&5
25941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25942 if eval "test \"\${$as_ac_var+set}\" = set"; then
25943   echo $ECHO_N "(cached) $ECHO_C" >&6
25944 else
25945   cat >conftest.$ac_ext <<_ACEOF
25946 /* confdefs.h.  */
25947 _ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h.  */
25951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25953 #define $ac_func innocuous_$ac_func
25954
25955 /* System header to define __stub macros and hopefully few prototypes,
25956     which can conflict with char $ac_func (); below.
25957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25958     <limits.h> exists even on freestanding compilers.  */
25959
25960 #ifdef __STDC__
25961 # include <limits.h>
25962 #else
25963 # include <assert.h>
25964 #endif
25965
25966 #undef $ac_func
25967
25968 /* Override any gcc2 internal prototype to avoid an error.  */
25969 #ifdef __cplusplus
25970 extern "C"
25971 {
25972 #endif
25973 /* We use char because int might match the return type of a gcc2
25974    builtin and then its argument prototype would still apply.  */
25975 char $ac_func ();
25976 /* The GNU C library defines this for functions which it implements
25977     to always fail with ENOSYS.  Some functions are actually named
25978     something starting with __ and the normal name is an alias.  */
25979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25980 choke me
25981 #else
25982 char (*f) () = $ac_func;
25983 #endif
25984 #ifdef __cplusplus
25985 }
25986 #endif
25987
25988 int
25989 main ()
25990 {
25991 return f != $ac_func;
25992   ;
25993   return 0;
25994 }
25995 _ACEOF
25996 rm -f conftest.$ac_objext conftest$ac_exeext
25997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25998   (eval $ac_link) 2>conftest.er1
25999   ac_status=$?
26000   grep -v '^ *+' conftest.er1 >conftest.err
26001   rm -f conftest.er1
26002   cat conftest.err >&5
26003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004   (exit $ac_status); } &&
26005          { ac_try='test -z "$ac_c_werror_flag"
26006                          || test ! -s conftest.err'
26007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26008   (eval $ac_try) 2>&5
26009   ac_status=$?
26010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011   (exit $ac_status); }; } &&
26012          { ac_try='test -s conftest$ac_exeext'
26013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26014   (eval $ac_try) 2>&5
26015   ac_status=$?
26016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017   (exit $ac_status); }; }; then
26018   eval "$as_ac_var=yes"
26019 else
26020   echo "$as_me: failed program was:" >&5
26021 sed 's/^/| /' conftest.$ac_ext >&5
26022
26023 eval "$as_ac_var=no"
26024 fi
26025 rm -f conftest.err conftest.$ac_objext \
26026       conftest$ac_exeext conftest.$ac_ext
26027 fi
26028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26030 if test `eval echo '${'$as_ac_var'}'` = yes; then
26031   cat >>confdefs.h <<_ACEOF
26032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26033 _ACEOF
26034
26035 fi
26036 done
26037
26038   if test $ac_cv_func_readlink = no; then
26039     case $LIBOBJS in
26040     "readlink.$ac_objext"   | \
26041   *" readlink.$ac_objext"   | \
26042     "readlink.$ac_objext "* | \
26043   *" readlink.$ac_objext "* ) ;;
26044   *) LIBOBJS="$LIBOBJS readlink.$ac_objext" ;;
26045 esac
26046
26047
26048   :
26049
26050   fi
26051
26052
26053
26054 for ac_func in rmdir
26055 do
26056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26057 echo "$as_me:$LINENO: checking for $ac_func" >&5
26058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26059 if eval "test \"\${$as_ac_var+set}\" = set"; then
26060   echo $ECHO_N "(cached) $ECHO_C" >&6
26061 else
26062   cat >conftest.$ac_ext <<_ACEOF
26063 /* confdefs.h.  */
26064 _ACEOF
26065 cat confdefs.h >>conftest.$ac_ext
26066 cat >>conftest.$ac_ext <<_ACEOF
26067 /* end confdefs.h.  */
26068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26070 #define $ac_func innocuous_$ac_func
26071
26072 /* System header to define __stub macros and hopefully few prototypes,
26073     which can conflict with char $ac_func (); below.
26074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26075     <limits.h> exists even on freestanding compilers.  */
26076
26077 #ifdef __STDC__
26078 # include <limits.h>
26079 #else
26080 # include <assert.h>
26081 #endif
26082
26083 #undef $ac_func
26084
26085 /* Override any gcc2 internal prototype to avoid an error.  */
26086 #ifdef __cplusplus
26087 extern "C"
26088 {
26089 #endif
26090 /* We use char because int might match the return type of a gcc2
26091    builtin and then its argument prototype would still apply.  */
26092 char $ac_func ();
26093 /* The GNU C library defines this for functions which it implements
26094     to always fail with ENOSYS.  Some functions are actually named
26095     something starting with __ and the normal name is an alias.  */
26096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26097 choke me
26098 #else
26099 char (*f) () = $ac_func;
26100 #endif
26101 #ifdef __cplusplus
26102 }
26103 #endif
26104
26105 int
26106 main ()
26107 {
26108 return f != $ac_func;
26109   ;
26110   return 0;
26111 }
26112 _ACEOF
26113 rm -f conftest.$ac_objext conftest$ac_exeext
26114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26115   (eval $ac_link) 2>conftest.er1
26116   ac_status=$?
26117   grep -v '^ *+' conftest.er1 >conftest.err
26118   rm -f conftest.er1
26119   cat conftest.err >&5
26120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121   (exit $ac_status); } &&
26122          { ac_try='test -z "$ac_c_werror_flag"
26123                          || test ! -s conftest.err'
26124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26125   (eval $ac_try) 2>&5
26126   ac_status=$?
26127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128   (exit $ac_status); }; } &&
26129          { ac_try='test -s conftest$ac_exeext'
26130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26131   (eval $ac_try) 2>&5
26132   ac_status=$?
26133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134   (exit $ac_status); }; }; then
26135   eval "$as_ac_var=yes"
26136 else
26137   echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26139
26140 eval "$as_ac_var=no"
26141 fi
26142 rm -f conftest.err conftest.$ac_objext \
26143       conftest$ac_exeext conftest.$ac_ext
26144 fi
26145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26147 if test `eval echo '${'$as_ac_var'}'` = yes; then
26148   cat >>confdefs.h <<_ACEOF
26149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26150 _ACEOF
26151
26152 else
26153   case $LIBOBJS in
26154     "$ac_func.$ac_objext"   | \
26155   *" $ac_func.$ac_objext"   | \
26156     "$ac_func.$ac_objext "* | \
26157   *" $ac_func.$ac_objext "* ) ;;
26158   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
26159 esac
26160
26161 fi
26162 done
26163
26164
26165   if test $ac_cv_func_rmdir = no; then
26166
26167
26168   :
26169
26170   fi
26171
26172
26173
26174 for ac_func in rpmatch
26175 do
26176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26177 echo "$as_me:$LINENO: checking for $ac_func" >&5
26178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26179 if eval "test \"\${$as_ac_var+set}\" = set"; then
26180   echo $ECHO_N "(cached) $ECHO_C" >&6
26181 else
26182   cat >conftest.$ac_ext <<_ACEOF
26183 /* confdefs.h.  */
26184 _ACEOF
26185 cat confdefs.h >>conftest.$ac_ext
26186 cat >>conftest.$ac_ext <<_ACEOF
26187 /* end confdefs.h.  */
26188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26190 #define $ac_func innocuous_$ac_func
26191
26192 /* System header to define __stub macros and hopefully few prototypes,
26193     which can conflict with char $ac_func (); below.
26194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26195     <limits.h> exists even on freestanding compilers.  */
26196
26197 #ifdef __STDC__
26198 # include <limits.h>
26199 #else
26200 # include <assert.h>
26201 #endif
26202
26203 #undef $ac_func
26204
26205 /* Override any gcc2 internal prototype to avoid an error.  */
26206 #ifdef __cplusplus
26207 extern "C"
26208 {
26209 #endif
26210 /* We use char because int might match the return type of a gcc2
26211    builtin and then its argument prototype would still apply.  */
26212 char $ac_func ();
26213 /* The GNU C library defines this for functions which it implements
26214     to always fail with ENOSYS.  Some functions are actually named
26215     something starting with __ and the normal name is an alias.  */
26216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26217 choke me
26218 #else
26219 char (*f) () = $ac_func;
26220 #endif
26221 #ifdef __cplusplus
26222 }
26223 #endif
26224
26225 int
26226 main ()
26227 {
26228 return f != $ac_func;
26229   ;
26230   return 0;
26231 }
26232 _ACEOF
26233 rm -f conftest.$ac_objext conftest$ac_exeext
26234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26235   (eval $ac_link) 2>conftest.er1
26236   ac_status=$?
26237   grep -v '^ *+' conftest.er1 >conftest.err
26238   rm -f conftest.er1
26239   cat conftest.err >&5
26240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241   (exit $ac_status); } &&
26242          { ac_try='test -z "$ac_c_werror_flag"
26243                          || test ! -s conftest.err'
26244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26245   (eval $ac_try) 2>&5
26246   ac_status=$?
26247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248   (exit $ac_status); }; } &&
26249          { ac_try='test -s conftest$ac_exeext'
26250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251   (eval $ac_try) 2>&5
26252   ac_status=$?
26253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254   (exit $ac_status); }; }; then
26255   eval "$as_ac_var=yes"
26256 else
26257   echo "$as_me: failed program was:" >&5
26258 sed 's/^/| /' conftest.$ac_ext >&5
26259
26260 eval "$as_ac_var=no"
26261 fi
26262 rm -f conftest.err conftest.$ac_objext \
26263       conftest$ac_exeext conftest.$ac_ext
26264 fi
26265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26267 if test `eval echo '${'$as_ac_var'}'` = yes; then
26268   cat >>confdefs.h <<_ACEOF
26269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26270 _ACEOF
26271
26272 else
26273   case $LIBOBJS in
26274     "$ac_func.$ac_objext"   | \
26275   *" $ac_func.$ac_objext"   | \
26276     "$ac_func.$ac_objext "* | \
26277   *" $ac_func.$ac_objext "* ) ;;
26278   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
26279 esac
26280
26281 fi
26282 done
26283
26284
26285   if test $ac_cv_func_rpmatch = no; then
26286     :
26287   fi
26288
26289
26290
26291
26292 for ac_func in setenv unsetenv
26293 do
26294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26295 echo "$as_me:$LINENO: checking for $ac_func" >&5
26296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26297 if eval "test \"\${$as_ac_var+set}\" = set"; then
26298   echo $ECHO_N "(cached) $ECHO_C" >&6
26299 else
26300   cat >conftest.$ac_ext <<_ACEOF
26301 /* confdefs.h.  */
26302 _ACEOF
26303 cat confdefs.h >>conftest.$ac_ext
26304 cat >>conftest.$ac_ext <<_ACEOF
26305 /* end confdefs.h.  */
26306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26308 #define $ac_func innocuous_$ac_func
26309
26310 /* System header to define __stub macros and hopefully few prototypes,
26311     which can conflict with char $ac_func (); below.
26312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26313     <limits.h> exists even on freestanding compilers.  */
26314
26315 #ifdef __STDC__
26316 # include <limits.h>
26317 #else
26318 # include <assert.h>
26319 #endif
26320
26321 #undef $ac_func
26322
26323 /* Override any gcc2 internal prototype to avoid an error.  */
26324 #ifdef __cplusplus
26325 extern "C"
26326 {
26327 #endif
26328 /* We use char because int might match the return type of a gcc2
26329    builtin and then its argument prototype would still apply.  */
26330 char $ac_func ();
26331 /* The GNU C library defines this for functions which it implements
26332     to always fail with ENOSYS.  Some functions are actually named
26333     something starting with __ and the normal name is an alias.  */
26334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26335 choke me
26336 #else
26337 char (*f) () = $ac_func;
26338 #endif
26339 #ifdef __cplusplus
26340 }
26341 #endif
26342
26343 int
26344 main ()
26345 {
26346 return f != $ac_func;
26347   ;
26348   return 0;
26349 }
26350 _ACEOF
26351 rm -f conftest.$ac_objext conftest$ac_exeext
26352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26353   (eval $ac_link) 2>conftest.er1
26354   ac_status=$?
26355   grep -v '^ *+' conftest.er1 >conftest.err
26356   rm -f conftest.er1
26357   cat conftest.err >&5
26358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359   (exit $ac_status); } &&
26360          { ac_try='test -z "$ac_c_werror_flag"
26361                          || test ! -s conftest.err'
26362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26363   (eval $ac_try) 2>&5
26364   ac_status=$?
26365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366   (exit $ac_status); }; } &&
26367          { ac_try='test -s conftest$ac_exeext'
26368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26369   (eval $ac_try) 2>&5
26370   ac_status=$?
26371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372   (exit $ac_status); }; }; then
26373   eval "$as_ac_var=yes"
26374 else
26375   echo "$as_me: failed program was:" >&5
26376 sed 's/^/| /' conftest.$ac_ext >&5
26377
26378 eval "$as_ac_var=no"
26379 fi
26380 rm -f conftest.err conftest.$ac_objext \
26381       conftest$ac_exeext conftest.$ac_ext
26382 fi
26383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26385 if test `eval echo '${'$as_ac_var'}'` = yes; then
26386   cat >>confdefs.h <<_ACEOF
26387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26388 _ACEOF
26389
26390 else
26391   case $LIBOBJS in
26392     "$ac_func.$ac_objext"   | \
26393   *" $ac_func.$ac_objext"   | \
26394     "$ac_func.$ac_objext "* | \
26395   *" $ac_func.$ac_objext "* ) ;;
26396   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
26397 esac
26398
26399 fi
26400 done
26401
26402
26403   if test $ac_cv_func_setenv = no; then
26404
26405
26406
26407   :
26408
26409
26410
26411
26412
26413
26414 for ac_header in search.h
26415 do
26416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26418   echo "$as_me:$LINENO: checking for $ac_header" >&5
26419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26421   echo $ECHO_N "(cached) $ECHO_C" >&6
26422 fi
26423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26425 else
26426   # Is the header compilable?
26427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26429 cat >conftest.$ac_ext <<_ACEOF
26430 /* confdefs.h.  */
26431 _ACEOF
26432 cat confdefs.h >>conftest.$ac_ext
26433 cat >>conftest.$ac_ext <<_ACEOF
26434 /* end confdefs.h.  */
26435 $ac_includes_default
26436 #include <$ac_header>
26437 _ACEOF
26438 rm -f conftest.$ac_objext
26439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26440   (eval $ac_compile) 2>conftest.er1
26441   ac_status=$?
26442   grep -v '^ *+' conftest.er1 >conftest.err
26443   rm -f conftest.er1
26444   cat conftest.err >&5
26445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446   (exit $ac_status); } &&
26447          { ac_try='test -z "$ac_c_werror_flag"
26448                          || test ! -s conftest.err'
26449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26450   (eval $ac_try) 2>&5
26451   ac_status=$?
26452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453   (exit $ac_status); }; } &&
26454          { ac_try='test -s conftest.$ac_objext'
26455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26456   (eval $ac_try) 2>&5
26457   ac_status=$?
26458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26459   (exit $ac_status); }; }; then
26460   ac_header_compiler=yes
26461 else
26462   echo "$as_me: failed program was:" >&5
26463 sed 's/^/| /' conftest.$ac_ext >&5
26464
26465 ac_header_compiler=no
26466 fi
26467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26469 echo "${ECHO_T}$ac_header_compiler" >&6
26470
26471 # Is the header present?
26472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26474 cat >conftest.$ac_ext <<_ACEOF
26475 /* confdefs.h.  */
26476 _ACEOF
26477 cat confdefs.h >>conftest.$ac_ext
26478 cat >>conftest.$ac_ext <<_ACEOF
26479 /* end confdefs.h.  */
26480 #include <$ac_header>
26481 _ACEOF
26482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26484   ac_status=$?
26485   grep -v '^ *+' conftest.er1 >conftest.err
26486   rm -f conftest.er1
26487   cat conftest.err >&5
26488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489   (exit $ac_status); } >/dev/null; then
26490   if test -s conftest.err; then
26491     ac_cpp_err=$ac_c_preproc_warn_flag
26492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26493   else
26494     ac_cpp_err=
26495   fi
26496 else
26497   ac_cpp_err=yes
26498 fi
26499 if test -z "$ac_cpp_err"; then
26500   ac_header_preproc=yes
26501 else
26502   echo "$as_me: failed program was:" >&5
26503 sed 's/^/| /' conftest.$ac_ext >&5
26504
26505   ac_header_preproc=no
26506 fi
26507 rm -f conftest.err conftest.$ac_ext
26508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26509 echo "${ECHO_T}$ac_header_preproc" >&6
26510
26511 # So?  What about this header?
26512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26513   yes:no: )
26514     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26518     ac_header_preproc=yes
26519     ;;
26520   no:yes:* )
26521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26523     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26524 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26525     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26527     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26528 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26531     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26533     (
26534       cat <<\_ASBOX
26535 ## ------------------------------------ ##
26536 ## Report this to bug-coreutils@gnu.org ##
26537 ## ------------------------------------ ##
26538 _ASBOX
26539     ) |
26540       sed "s/^/$as_me: WARNING:     /" >&2
26541     ;;
26542 esac
26543 echo "$as_me:$LINENO: checking for $ac_header" >&5
26544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26546   echo $ECHO_N "(cached) $ECHO_C" >&6
26547 else
26548   eval "$as_ac_Header=\$ac_header_preproc"
26549 fi
26550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26552
26553 fi
26554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26555   cat >>confdefs.h <<_ACEOF
26556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26557 _ACEOF
26558
26559 fi
26560
26561 done
26562
26563
26564 for ac_func in tsearch
26565 do
26566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26567 echo "$as_me:$LINENO: checking for $ac_func" >&5
26568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26569 if eval "test \"\${$as_ac_var+set}\" = set"; then
26570   echo $ECHO_N "(cached) $ECHO_C" >&6
26571 else
26572   cat >conftest.$ac_ext <<_ACEOF
26573 /* confdefs.h.  */
26574 _ACEOF
26575 cat confdefs.h >>conftest.$ac_ext
26576 cat >>conftest.$ac_ext <<_ACEOF
26577 /* end confdefs.h.  */
26578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26580 #define $ac_func innocuous_$ac_func
26581
26582 /* System header to define __stub macros and hopefully few prototypes,
26583     which can conflict with char $ac_func (); below.
26584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26585     <limits.h> exists even on freestanding compilers.  */
26586
26587 #ifdef __STDC__
26588 # include <limits.h>
26589 #else
26590 # include <assert.h>
26591 #endif
26592
26593 #undef $ac_func
26594
26595 /* Override any gcc2 internal prototype to avoid an error.  */
26596 #ifdef __cplusplus
26597 extern "C"
26598 {
26599 #endif
26600 /* We use char because int might match the return type of a gcc2
26601    builtin and then its argument prototype would still apply.  */
26602 char $ac_func ();
26603 /* The GNU C library defines this for functions which it implements
26604     to always fail with ENOSYS.  Some functions are actually named
26605     something starting with __ and the normal name is an alias.  */
26606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26607 choke me
26608 #else
26609 char (*f) () = $ac_func;
26610 #endif
26611 #ifdef __cplusplus
26612 }
26613 #endif
26614
26615 int
26616 main ()
26617 {
26618 return f != $ac_func;
26619   ;
26620   return 0;
26621 }
26622 _ACEOF
26623 rm -f conftest.$ac_objext conftest$ac_exeext
26624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26625   (eval $ac_link) 2>conftest.er1
26626   ac_status=$?
26627   grep -v '^ *+' conftest.er1 >conftest.err
26628   rm -f conftest.er1
26629   cat conftest.err >&5
26630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631   (exit $ac_status); } &&
26632          { ac_try='test -z "$ac_c_werror_flag"
26633                          || test ! -s conftest.err'
26634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26635   (eval $ac_try) 2>&5
26636   ac_status=$?
26637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638   (exit $ac_status); }; } &&
26639          { ac_try='test -s conftest$ac_exeext'
26640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26641   (eval $ac_try) 2>&5
26642   ac_status=$?
26643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644   (exit $ac_status); }; }; then
26645   eval "$as_ac_var=yes"
26646 else
26647   echo "$as_me: failed program was:" >&5
26648 sed 's/^/| /' conftest.$ac_ext >&5
26649
26650 eval "$as_ac_var=no"
26651 fi
26652 rm -f conftest.err conftest.$ac_objext \
26653       conftest$ac_exeext conftest.$ac_ext
26654 fi
26655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26657 if test `eval echo '${'$as_ac_var'}'` = yes; then
26658   cat >>confdefs.h <<_ACEOF
26659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26660 _ACEOF
26661
26662 fi
26663 done
26664
26665
26666
26667   echo "$as_me:$LINENO: checking if errno is properly declared" >&5
26668 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
26669   if test "${gt_cv_var_errno_declaration+set}" = set; then
26670   echo $ECHO_N "(cached) $ECHO_C" >&6
26671 else
26672
26673     cat >conftest.$ac_ext <<_ACEOF
26674 /* confdefs.h.  */
26675 _ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h.  */
26679 #include <errno.h>
26680       extern struct { int foo; } errno;
26681 int
26682 main ()
26683 {
26684 errno.foo = 1;
26685   ;
26686   return 0;
26687 }
26688 _ACEOF
26689 rm -f conftest.$ac_objext
26690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26691   (eval $ac_compile) 2>conftest.er1
26692   ac_status=$?
26693   grep -v '^ *+' conftest.er1 >conftest.err
26694   rm -f conftest.er1
26695   cat conftest.err >&5
26696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697   (exit $ac_status); } &&
26698          { ac_try='test -z "$ac_c_werror_flag"
26699                          || test ! -s conftest.err'
26700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26701   (eval $ac_try) 2>&5
26702   ac_status=$?
26703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704   (exit $ac_status); }; } &&
26705          { ac_try='test -s conftest.$ac_objext'
26706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26707   (eval $ac_try) 2>&5
26708   ac_status=$?
26709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710   (exit $ac_status); }; }; then
26711   gt_cv_var_errno_declaration=no
26712 else
26713   echo "$as_me: failed program was:" >&5
26714 sed 's/^/| /' conftest.$ac_ext >&5
26715
26716 gt_cv_var_errno_declaration=yes
26717 fi
26718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26719 fi
26720
26721   echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
26722 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
26723   if test $gt_cv_var_errno_declaration = yes; then
26724
26725 cat >>confdefs.h <<\_ACEOF
26726 #define HAVE_ERRNO_DECL 1
26727 _ACEOF
26728
26729   fi
26730
26731
26732
26733   echo "$as_me:$LINENO: checking if environ is properly declared" >&5
26734 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
26735   if test "${gt_cv_var_environ_declaration+set}" = set; then
26736   echo $ECHO_N "(cached) $ECHO_C" >&6
26737 else
26738
26739     cat >conftest.$ac_ext <<_ACEOF
26740 /* confdefs.h.  */
26741 _ACEOF
26742 cat confdefs.h >>conftest.$ac_ext
26743 cat >>conftest.$ac_ext <<_ACEOF
26744 /* end confdefs.h.  */
26745 #include <unistd.h>
26746       extern struct { int foo; } environ;
26747 int
26748 main ()
26749 {
26750 environ.foo = 1;
26751   ;
26752   return 0;
26753 }
26754 _ACEOF
26755 rm -f conftest.$ac_objext
26756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26757   (eval $ac_compile) 2>conftest.er1
26758   ac_status=$?
26759   grep -v '^ *+' conftest.er1 >conftest.err
26760   rm -f conftest.er1
26761   cat conftest.err >&5
26762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763   (exit $ac_status); } &&
26764          { ac_try='test -z "$ac_c_werror_flag"
26765                          || test ! -s conftest.err'
26766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26767   (eval $ac_try) 2>&5
26768   ac_status=$?
26769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770   (exit $ac_status); }; } &&
26771          { ac_try='test -s conftest.$ac_objext'
26772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26773   (eval $ac_try) 2>&5
26774   ac_status=$?
26775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776   (exit $ac_status); }; }; then
26777   gt_cv_var_environ_declaration=no
26778 else
26779   echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.$ac_ext >&5
26781
26782 gt_cv_var_environ_declaration=yes
26783 fi
26784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26785 fi
26786
26787   echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
26788 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
26789   if test $gt_cv_var_environ_declaration = yes; then
26790
26791 cat >>confdefs.h <<\_ACEOF
26792 #define HAVE_ENVIRON_DECL 1
26793 _ACEOF
26794
26795   fi
26796
26797
26798   fi
26799   if test $ac_cv_func_unsetenv = no; then
26800
26801
26802   :
26803
26804
26805
26806
26807
26808
26809
26810   echo "$as_me:$LINENO: checking if errno is properly declared" >&5
26811 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
26812   if test "${gt_cv_var_errno_declaration+set}" = set; then
26813   echo $ECHO_N "(cached) $ECHO_C" >&6
26814 else
26815
26816     cat >conftest.$ac_ext <<_ACEOF
26817 /* confdefs.h.  */
26818 _ACEOF
26819 cat confdefs.h >>conftest.$ac_ext
26820 cat >>conftest.$ac_ext <<_ACEOF
26821 /* end confdefs.h.  */
26822 #include <errno.h>
26823       extern struct { int foo; } errno;
26824 int
26825 main ()
26826 {
26827 errno.foo = 1;
26828   ;
26829   return 0;
26830 }
26831 _ACEOF
26832 rm -f conftest.$ac_objext
26833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26834   (eval $ac_compile) 2>conftest.er1
26835   ac_status=$?
26836   grep -v '^ *+' conftest.er1 >conftest.err
26837   rm -f conftest.er1
26838   cat conftest.err >&5
26839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840   (exit $ac_status); } &&
26841          { ac_try='test -z "$ac_c_werror_flag"
26842                          || test ! -s conftest.err'
26843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26844   (eval $ac_try) 2>&5
26845   ac_status=$?
26846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847   (exit $ac_status); }; } &&
26848          { ac_try='test -s conftest.$ac_objext'
26849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26850   (eval $ac_try) 2>&5
26851   ac_status=$?
26852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853   (exit $ac_status); }; }; then
26854   gt_cv_var_errno_declaration=no
26855 else
26856   echo "$as_me: failed program was:" >&5
26857 sed 's/^/| /' conftest.$ac_ext >&5
26858
26859 gt_cv_var_errno_declaration=yes
26860 fi
26861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26862 fi
26863
26864   echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
26865 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
26866   if test $gt_cv_var_errno_declaration = yes; then
26867
26868 cat >>confdefs.h <<\_ACEOF
26869 #define HAVE_ERRNO_DECL 1
26870 _ACEOF
26871
26872   fi
26873
26874
26875
26876   echo "$as_me:$LINENO: checking if environ is properly declared" >&5
26877 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
26878   if test "${gt_cv_var_environ_declaration+set}" = set; then
26879   echo $ECHO_N "(cached) $ECHO_C" >&6
26880 else
26881
26882     cat >conftest.$ac_ext <<_ACEOF
26883 /* confdefs.h.  */
26884 _ACEOF
26885 cat confdefs.h >>conftest.$ac_ext
26886 cat >>conftest.$ac_ext <<_ACEOF
26887 /* end confdefs.h.  */
26888 #include <unistd.h>
26889       extern struct { int foo; } environ;
26890 int
26891 main ()
26892 {
26893 environ.foo = 1;
26894   ;
26895   return 0;
26896 }
26897 _ACEOF
26898 rm -f conftest.$ac_objext
26899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26900   (eval $ac_compile) 2>conftest.er1
26901   ac_status=$?
26902   grep -v '^ *+' conftest.er1 >conftest.err
26903   rm -f conftest.er1
26904   cat conftest.err >&5
26905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906   (exit $ac_status); } &&
26907          { ac_try='test -z "$ac_c_werror_flag"
26908                          || test ! -s conftest.err'
26909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26910   (eval $ac_try) 2>&5
26911   ac_status=$?
26912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913   (exit $ac_status); }; } &&
26914          { ac_try='test -s conftest.$ac_objext'
26915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916   (eval $ac_try) 2>&5
26917   ac_status=$?
26918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919   (exit $ac_status); }; }; then
26920   gt_cv_var_environ_declaration=no
26921 else
26922   echo "$as_me: failed program was:" >&5
26923 sed 's/^/| /' conftest.$ac_ext >&5
26924
26925 gt_cv_var_environ_declaration=yes
26926 fi
26927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26928 fi
26929
26930   echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
26931 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
26932   if test $gt_cv_var_environ_declaration = yes; then
26933
26934 cat >>confdefs.h <<\_ACEOF
26935 #define HAVE_ENVIRON_DECL 1
26936 _ACEOF
26937
26938   fi
26939
26940
26941   else
26942     echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
26943 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6
26944 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
26945   echo $ECHO_N "(cached) $ECHO_C" >&6
26946 else
26947   cat >conftest.$ac_ext <<_ACEOF
26948 /* confdefs.h.  */
26949 _ACEOF
26950 cat confdefs.h >>conftest.$ac_ext
26951 cat >>conftest.$ac_ext <<_ACEOF
26952 /* end confdefs.h.  */
26953 #include <stdlib.h>
26954 extern
26955 #ifdef __cplusplus
26956 "C"
26957 #endif
26958 #if defined(__STDC__) || defined(__cplusplus)
26959 int unsetenv (const char *name);
26960 #else
26961 int unsetenv();
26962 #endif
26963
26964 int
26965 main ()
26966 {
26967
26968   ;
26969   return 0;
26970 }
26971 _ACEOF
26972 rm -f conftest.$ac_objext
26973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26974   (eval $ac_compile) 2>conftest.er1
26975   ac_status=$?
26976   grep -v '^ *+' conftest.er1 >conftest.err
26977   rm -f conftest.er1
26978   cat conftest.err >&5
26979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980   (exit $ac_status); } &&
26981          { ac_try='test -z "$ac_c_werror_flag"
26982                          || test ! -s conftest.err'
26983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26984   (eval $ac_try) 2>&5
26985   ac_status=$?
26986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987   (exit $ac_status); }; } &&
26988          { ac_try='test -s conftest.$ac_objext'
26989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26990   (eval $ac_try) 2>&5
26991   ac_status=$?
26992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993   (exit $ac_status); }; }; then
26994   gt_cv_func_unsetenv_ret='int'
26995 else
26996   echo "$as_me: failed program was:" >&5
26997 sed 's/^/| /' conftest.$ac_ext >&5
26998
26999 gt_cv_func_unsetenv_ret='void'
27000 fi
27001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27002 fi
27003 echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
27004 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6
27005     if test $gt_cv_func_unsetenv_ret = 'void'; then
27006
27007 cat >>confdefs.h <<\_ACEOF
27008 #define VOID_UNSETENV 1
27009 _ACEOF
27010
27011     fi
27012   fi
27013
27014
27015
27016 for ac_func in sig2str
27017 do
27018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27019 echo "$as_me:$LINENO: checking for $ac_func" >&5
27020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27021 if eval "test \"\${$as_ac_var+set}\" = set"; then
27022   echo $ECHO_N "(cached) $ECHO_C" >&6
27023 else
27024   cat >conftest.$ac_ext <<_ACEOF
27025 /* confdefs.h.  */
27026 _ACEOF
27027 cat confdefs.h >>conftest.$ac_ext
27028 cat >>conftest.$ac_ext <<_ACEOF
27029 /* end confdefs.h.  */
27030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27032 #define $ac_func innocuous_$ac_func
27033
27034 /* System header to define __stub macros and hopefully few prototypes,
27035     which can conflict with char $ac_func (); below.
27036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27037     <limits.h> exists even on freestanding compilers.  */
27038
27039 #ifdef __STDC__
27040 # include <limits.h>
27041 #else
27042 # include <assert.h>
27043 #endif
27044
27045 #undef $ac_func
27046
27047 /* Override any gcc2 internal prototype to avoid an error.  */
27048 #ifdef __cplusplus
27049 extern "C"
27050 {
27051 #endif
27052 /* We use char because int might match the return type of a gcc2
27053    builtin and then its argument prototype would still apply.  */
27054 char $ac_func ();
27055 /* The GNU C library defines this for functions which it implements
27056     to always fail with ENOSYS.  Some functions are actually named
27057     something starting with __ and the normal name is an alias.  */
27058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27059 choke me
27060 #else
27061 char (*f) () = $ac_func;
27062 #endif
27063 #ifdef __cplusplus
27064 }
27065 #endif
27066
27067 int
27068 main ()
27069 {
27070 return f != $ac_func;
27071   ;
27072   return 0;
27073 }
27074 _ACEOF
27075 rm -f conftest.$ac_objext conftest$ac_exeext
27076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27077   (eval $ac_link) 2>conftest.er1
27078   ac_status=$?
27079   grep -v '^ *+' conftest.er1 >conftest.err
27080   rm -f conftest.er1
27081   cat conftest.err >&5
27082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083   (exit $ac_status); } &&
27084          { ac_try='test -z "$ac_c_werror_flag"
27085                          || test ! -s conftest.err'
27086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087   (eval $ac_try) 2>&5
27088   ac_status=$?
27089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090   (exit $ac_status); }; } &&
27091          { ac_try='test -s conftest$ac_exeext'
27092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27093   (eval $ac_try) 2>&5
27094   ac_status=$?
27095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096   (exit $ac_status); }; }; then
27097   eval "$as_ac_var=yes"
27098 else
27099   echo "$as_me: failed program was:" >&5
27100 sed 's/^/| /' conftest.$ac_ext >&5
27101
27102 eval "$as_ac_var=no"
27103 fi
27104 rm -f conftest.err conftest.$ac_objext \
27105       conftest$ac_exeext conftest.$ac_ext
27106 fi
27107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27109 if test `eval echo '${'$as_ac_var'}'` = yes; then
27110   cat >>confdefs.h <<_ACEOF
27111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27112 _ACEOF
27113
27114 else
27115   case $LIBOBJS in
27116     "$ac_func.$ac_objext"   | \
27117   *" $ac_func.$ac_objext"   | \
27118     "$ac_func.$ac_objext "* | \
27119   *" $ac_func.$ac_objext "* ) ;;
27120   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
27121 esac
27122
27123 fi
27124 done
27125
27126
27127   if test $ac_cv_func_sig2str = no; then
27128
27129   :
27130
27131   fi
27132
27133
27134
27135
27136
27137 for ac_func in stpcpy
27138 do
27139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27140 echo "$as_me:$LINENO: checking for $ac_func" >&5
27141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27142 if eval "test \"\${$as_ac_var+set}\" = set"; then
27143   echo $ECHO_N "(cached) $ECHO_C" >&6
27144 else
27145   cat >conftest.$ac_ext <<_ACEOF
27146 /* confdefs.h.  */
27147 _ACEOF
27148 cat confdefs.h >>conftest.$ac_ext
27149 cat >>conftest.$ac_ext <<_ACEOF
27150 /* end confdefs.h.  */
27151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27153 #define $ac_func innocuous_$ac_func
27154
27155 /* System header to define __stub macros and hopefully few prototypes,
27156     which can conflict with char $ac_func (); below.
27157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27158     <limits.h> exists even on freestanding compilers.  */
27159
27160 #ifdef __STDC__
27161 # include <limits.h>
27162 #else
27163 # include <assert.h>
27164 #endif
27165
27166 #undef $ac_func
27167
27168 /* Override any gcc2 internal prototype to avoid an error.  */
27169 #ifdef __cplusplus
27170 extern "C"
27171 {
27172 #endif
27173 /* We use char because int might match the return type of a gcc2
27174    builtin and then its argument prototype would still apply.  */
27175 char $ac_func ();
27176 /* The GNU C library defines this for functions which it implements
27177     to always fail with ENOSYS.  Some functions are actually named
27178     something starting with __ and the normal name is an alias.  */
27179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27180 choke me
27181 #else
27182 char (*f) () = $ac_func;
27183 #endif
27184 #ifdef __cplusplus
27185 }
27186 #endif
27187
27188 int
27189 main ()
27190 {
27191 return f != $ac_func;
27192   ;
27193   return 0;
27194 }
27195 _ACEOF
27196 rm -f conftest.$ac_objext conftest$ac_exeext
27197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27198   (eval $ac_link) 2>conftest.er1
27199   ac_status=$?
27200   grep -v '^ *+' conftest.er1 >conftest.err
27201   rm -f conftest.er1
27202   cat conftest.err >&5
27203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204   (exit $ac_status); } &&
27205          { ac_try='test -z "$ac_c_werror_flag"
27206                          || test ! -s conftest.err'
27207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27208   (eval $ac_try) 2>&5
27209   ac_status=$?
27210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211   (exit $ac_status); }; } &&
27212          { ac_try='test -s conftest$ac_exeext'
27213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27214   (eval $ac_try) 2>&5
27215   ac_status=$?
27216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27217   (exit $ac_status); }; }; then
27218   eval "$as_ac_var=yes"
27219 else
27220   echo "$as_me: failed program was:" >&5
27221 sed 's/^/| /' conftest.$ac_ext >&5
27222
27223 eval "$as_ac_var=no"
27224 fi
27225 rm -f conftest.err conftest.$ac_objext \
27226       conftest$ac_exeext conftest.$ac_ext
27227 fi
27228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27230 if test `eval echo '${'$as_ac_var'}'` = yes; then
27231   cat >>confdefs.h <<_ACEOF
27232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27233 _ACEOF
27234
27235 else
27236   case $LIBOBJS in
27237     "$ac_func.$ac_objext"   | \
27238   *" $ac_func.$ac_objext"   | \
27239     "$ac_func.$ac_objext "* | \
27240   *" $ac_func.$ac_objext "* ) ;;
27241   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
27242 esac
27243
27244 fi
27245 done
27246
27247
27248   if test $ac_cv_func_stpcpy = no; then
27249
27250   :
27251
27252   fi
27253
27254
27255
27256 for ac_func in strcspn
27257 do
27258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27259 echo "$as_me:$LINENO: checking for $ac_func" >&5
27260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27261 if eval "test \"\${$as_ac_var+set}\" = set"; then
27262   echo $ECHO_N "(cached) $ECHO_C" >&6
27263 else
27264   cat >conftest.$ac_ext <<_ACEOF
27265 /* confdefs.h.  */
27266 _ACEOF
27267 cat confdefs.h >>conftest.$ac_ext
27268 cat >>conftest.$ac_ext <<_ACEOF
27269 /* end confdefs.h.  */
27270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27272 #define $ac_func innocuous_$ac_func
27273
27274 /* System header to define __stub macros and hopefully few prototypes,
27275     which can conflict with char $ac_func (); below.
27276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27277     <limits.h> exists even on freestanding compilers.  */
27278
27279 #ifdef __STDC__
27280 # include <limits.h>
27281 #else
27282 # include <assert.h>
27283 #endif
27284
27285 #undef $ac_func
27286
27287 /* Override any gcc2 internal prototype to avoid an error.  */
27288 #ifdef __cplusplus
27289 extern "C"
27290 {
27291 #endif
27292 /* We use char because int might match the return type of a gcc2
27293    builtin and then its argument prototype would still apply.  */
27294 char $ac_func ();
27295 /* The GNU C library defines this for functions which it implements
27296     to always fail with ENOSYS.  Some functions are actually named
27297     something starting with __ and the normal name is an alias.  */
27298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27299 choke me
27300 #else
27301 char (*f) () = $ac_func;
27302 #endif
27303 #ifdef __cplusplus
27304 }
27305 #endif
27306
27307 int
27308 main ()
27309 {
27310 return f != $ac_func;
27311   ;
27312   return 0;
27313 }
27314 _ACEOF
27315 rm -f conftest.$ac_objext conftest$ac_exeext
27316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27317   (eval $ac_link) 2>conftest.er1
27318   ac_status=$?
27319   grep -v '^ *+' conftest.er1 >conftest.err
27320   rm -f conftest.er1
27321   cat conftest.err >&5
27322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323   (exit $ac_status); } &&
27324          { ac_try='test -z "$ac_c_werror_flag"
27325                          || test ! -s conftest.err'
27326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327   (eval $ac_try) 2>&5
27328   ac_status=$?
27329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330   (exit $ac_status); }; } &&
27331          { ac_try='test -s conftest$ac_exeext'
27332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27333   (eval $ac_try) 2>&5
27334   ac_status=$?
27335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336   (exit $ac_status); }; }; then
27337   eval "$as_ac_var=yes"
27338 else
27339   echo "$as_me: failed program was:" >&5
27340 sed 's/^/| /' conftest.$ac_ext >&5
27341
27342 eval "$as_ac_var=no"
27343 fi
27344 rm -f conftest.err conftest.$ac_objext \
27345       conftest$ac_exeext conftest.$ac_ext
27346 fi
27347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27349 if test `eval echo '${'$as_ac_var'}'` = yes; then
27350   cat >>confdefs.h <<_ACEOF
27351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27352 _ACEOF
27353
27354 else
27355   case $LIBOBJS in
27356     "$ac_func.$ac_objext"   | \
27357   *" $ac_func.$ac_objext"   | \
27358     "$ac_func.$ac_objext "* | \
27359   *" $ac_func.$ac_objext "* ) ;;
27360   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
27361 esac
27362
27363 fi
27364 done
27365
27366
27367   if test $ac_cv_func_strcspn = no; then
27368     :
27369   fi
27370
27371
27372       echo "$as_me:$LINENO: checking whether strdup is declared" >&5
27373 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6
27374 if test "${ac_cv_have_decl_strdup+set}" = set; then
27375   echo $ECHO_N "(cached) $ECHO_C" >&6
27376 else
27377   cat >conftest.$ac_ext <<_ACEOF
27378 /* confdefs.h.  */
27379 _ACEOF
27380 cat confdefs.h >>conftest.$ac_ext
27381 cat >>conftest.$ac_ext <<_ACEOF
27382 /* end confdefs.h.  */
27383 $ac_includes_default
27384 int
27385 main ()
27386 {
27387 #ifndef strdup
27388   char *p = (char *) strdup;
27389 #endif
27390
27391   ;
27392   return 0;
27393 }
27394 _ACEOF
27395 rm -f conftest.$ac_objext
27396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27397   (eval $ac_compile) 2>conftest.er1
27398   ac_status=$?
27399   grep -v '^ *+' conftest.er1 >conftest.err
27400   rm -f conftest.er1
27401   cat conftest.err >&5
27402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403   (exit $ac_status); } &&
27404          { ac_try='test -z "$ac_c_werror_flag"
27405                          || test ! -s conftest.err'
27406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27407   (eval $ac_try) 2>&5
27408   ac_status=$?
27409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410   (exit $ac_status); }; } &&
27411          { ac_try='test -s conftest.$ac_objext'
27412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27413   (eval $ac_try) 2>&5
27414   ac_status=$?
27415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416   (exit $ac_status); }; }; then
27417   ac_cv_have_decl_strdup=yes
27418 else
27419   echo "$as_me: failed program was:" >&5
27420 sed 's/^/| /' conftest.$ac_ext >&5
27421
27422 ac_cv_have_decl_strdup=no
27423 fi
27424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27425 fi
27426 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
27427 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6
27428 if test $ac_cv_have_decl_strdup = yes; then
27429
27430 cat >>confdefs.h <<_ACEOF
27431 #define HAVE_DECL_STRDUP 1
27432 _ACEOF
27433
27434
27435 else
27436   cat >>confdefs.h <<_ACEOF
27437 #define HAVE_DECL_STRDUP 0
27438 _ACEOF
27439
27440
27441 fi
27442
27443
27444
27445
27446
27447 for ac_func in strdup
27448 do
27449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27450 echo "$as_me:$LINENO: checking for $ac_func" >&5
27451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27452 if eval "test \"\${$as_ac_var+set}\" = set"; then
27453   echo $ECHO_N "(cached) $ECHO_C" >&6
27454 else
27455   cat >conftest.$ac_ext <<_ACEOF
27456 /* confdefs.h.  */
27457 _ACEOF
27458 cat confdefs.h >>conftest.$ac_ext
27459 cat >>conftest.$ac_ext <<_ACEOF
27460 /* end confdefs.h.  */
27461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27463 #define $ac_func innocuous_$ac_func
27464
27465 /* System header to define __stub macros and hopefully few prototypes,
27466     which can conflict with char $ac_func (); below.
27467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27468     <limits.h> exists even on freestanding compilers.  */
27469
27470 #ifdef __STDC__
27471 # include <limits.h>
27472 #else
27473 # include <assert.h>
27474 #endif
27475
27476 #undef $ac_func
27477
27478 /* Override any gcc2 internal prototype to avoid an error.  */
27479 #ifdef __cplusplus
27480 extern "C"
27481 {
27482 #endif
27483 /* We use char because int might match the return type of a gcc2
27484    builtin and then its argument prototype would still apply.  */
27485 char $ac_func ();
27486 /* The GNU C library defines this for functions which it implements
27487     to always fail with ENOSYS.  Some functions are actually named
27488     something starting with __ and the normal name is an alias.  */
27489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27490 choke me
27491 #else
27492 char (*f) () = $ac_func;
27493 #endif
27494 #ifdef __cplusplus
27495 }
27496 #endif
27497
27498 int
27499 main ()
27500 {
27501 return f != $ac_func;
27502   ;
27503   return 0;
27504 }
27505 _ACEOF
27506 rm -f conftest.$ac_objext conftest$ac_exeext
27507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27508   (eval $ac_link) 2>conftest.er1
27509   ac_status=$?
27510   grep -v '^ *+' conftest.er1 >conftest.err
27511   rm -f conftest.er1
27512   cat conftest.err >&5
27513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514   (exit $ac_status); } &&
27515          { ac_try='test -z "$ac_c_werror_flag"
27516                          || test ! -s conftest.err'
27517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27518   (eval $ac_try) 2>&5
27519   ac_status=$?
27520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521   (exit $ac_status); }; } &&
27522          { ac_try='test -s conftest$ac_exeext'
27523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524   (eval $ac_try) 2>&5
27525   ac_status=$?
27526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527   (exit $ac_status); }; }; then
27528   eval "$as_ac_var=yes"
27529 else
27530   echo "$as_me: failed program was:" >&5
27531 sed 's/^/| /' conftest.$ac_ext >&5
27532
27533 eval "$as_ac_var=no"
27534 fi
27535 rm -f conftest.err conftest.$ac_objext \
27536       conftest$ac_exeext conftest.$ac_ext
27537 fi
27538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27540 if test `eval echo '${'$as_ac_var'}'` = yes; then
27541   cat >>confdefs.h <<_ACEOF
27542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27543 _ACEOF
27544
27545 else
27546   case $LIBOBJS in
27547     "$ac_func.$ac_objext"   | \
27548   *" $ac_func.$ac_objext"   | \
27549     "$ac_func.$ac_objext "* | \
27550   *" $ac_func.$ac_objext "* ) ;;
27551   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
27552 esac
27553
27554 fi
27555 done
27556
27557
27558
27559   :
27560
27561
27562
27563
27564
27565   :
27566
27567
27568
27569
27570
27571 for ac_func in strndup
27572 do
27573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27574 echo "$as_me:$LINENO: checking for $ac_func" >&5
27575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27576 if eval "test \"\${$as_ac_var+set}\" = set"; then
27577   echo $ECHO_N "(cached) $ECHO_C" >&6
27578 else
27579   cat >conftest.$ac_ext <<_ACEOF
27580 /* confdefs.h.  */
27581 _ACEOF
27582 cat confdefs.h >>conftest.$ac_ext
27583 cat >>conftest.$ac_ext <<_ACEOF
27584 /* end confdefs.h.  */
27585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27587 #define $ac_func innocuous_$ac_func
27588
27589 /* System header to define __stub macros and hopefully few prototypes,
27590     which can conflict with char $ac_func (); below.
27591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27592     <limits.h> exists even on freestanding compilers.  */
27593
27594 #ifdef __STDC__
27595 # include <limits.h>
27596 #else
27597 # include <assert.h>
27598 #endif
27599
27600 #undef $ac_func
27601
27602 /* Override any gcc2 internal prototype to avoid an error.  */
27603 #ifdef __cplusplus
27604 extern "C"
27605 {
27606 #endif
27607 /* We use char because int might match the return type of a gcc2
27608    builtin and then its argument prototype would still apply.  */
27609 char $ac_func ();
27610 /* The GNU C library defines this for functions which it implements
27611     to always fail with ENOSYS.  Some functions are actually named
27612     something starting with __ and the normal name is an alias.  */
27613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27614 choke me
27615 #else
27616 char (*f) () = $ac_func;
27617 #endif
27618 #ifdef __cplusplus
27619 }
27620 #endif
27621
27622 int
27623 main ()
27624 {
27625 return f != $ac_func;
27626   ;
27627   return 0;
27628 }
27629 _ACEOF
27630 rm -f conftest.$ac_objext conftest$ac_exeext
27631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27632   (eval $ac_link) 2>conftest.er1
27633   ac_status=$?
27634   grep -v '^ *+' conftest.er1 >conftest.err
27635   rm -f conftest.er1
27636   cat conftest.err >&5
27637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638   (exit $ac_status); } &&
27639          { ac_try='test -z "$ac_c_werror_flag"
27640                          || test ! -s conftest.err'
27641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27642   (eval $ac_try) 2>&5
27643   ac_status=$?
27644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645   (exit $ac_status); }; } &&
27646          { ac_try='test -s conftest$ac_exeext'
27647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27648   (eval $ac_try) 2>&5
27649   ac_status=$?
27650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651   (exit $ac_status); }; }; then
27652   eval "$as_ac_var=yes"
27653 else
27654   echo "$as_me: failed program was:" >&5
27655 sed 's/^/| /' conftest.$ac_ext >&5
27656
27657 eval "$as_ac_var=no"
27658 fi
27659 rm -f conftest.err conftest.$ac_objext \
27660       conftest$ac_exeext conftest.$ac_ext
27661 fi
27662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27664 if test `eval echo '${'$as_ac_var'}'` = yes; then
27665   cat >>confdefs.h <<_ACEOF
27666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27667 _ACEOF
27668
27669 else
27670   case $LIBOBJS in
27671     "$ac_func.$ac_objext"   | \
27672   *" $ac_func.$ac_objext"   | \
27673     "$ac_func.$ac_objext "* | \
27674   *" $ac_func.$ac_objext "* ) ;;
27675   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
27676 esac
27677
27678 fi
27679 done
27680
27681
27682   if test $ac_cv_func_strndup = no; then
27683
27684   echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
27685 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
27686 if test "${ac_cv_have_decl_strnlen+set}" = set; then
27687   echo $ECHO_N "(cached) $ECHO_C" >&6
27688 else
27689   cat >conftest.$ac_ext <<_ACEOF
27690 /* confdefs.h.  */
27691 _ACEOF
27692 cat confdefs.h >>conftest.$ac_ext
27693 cat >>conftest.$ac_ext <<_ACEOF
27694 /* end confdefs.h.  */
27695 $ac_includes_default
27696 int
27697 main ()
27698 {
27699 #ifndef strnlen
27700   char *p = (char *) strnlen;
27701 #endif
27702
27703   ;
27704   return 0;
27705 }
27706 _ACEOF
27707 rm -f conftest.$ac_objext
27708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27709   (eval $ac_compile) 2>conftest.er1
27710   ac_status=$?
27711   grep -v '^ *+' conftest.er1 >conftest.err
27712   rm -f conftest.er1
27713   cat conftest.err >&5
27714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715   (exit $ac_status); } &&
27716          { ac_try='test -z "$ac_c_werror_flag"
27717                          || test ! -s conftest.err'
27718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719   (eval $ac_try) 2>&5
27720   ac_status=$?
27721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722   (exit $ac_status); }; } &&
27723          { ac_try='test -s conftest.$ac_objext'
27724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725   (eval $ac_try) 2>&5
27726   ac_status=$?
27727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728   (exit $ac_status); }; }; then
27729   ac_cv_have_decl_strnlen=yes
27730 else
27731   echo "$as_me: failed program was:" >&5
27732 sed 's/^/| /' conftest.$ac_ext >&5
27733
27734 ac_cv_have_decl_strnlen=no
27735 fi
27736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27737 fi
27738 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
27739 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
27740 if test $ac_cv_have_decl_strnlen = yes; then
27741
27742 cat >>confdefs.h <<_ACEOF
27743 #define HAVE_DECL_STRNLEN 1
27744 _ACEOF
27745
27746
27747 else
27748   cat >>confdefs.h <<_ACEOF
27749 #define HAVE_DECL_STRNLEN 0
27750 _ACEOF
27751
27752
27753 fi
27754
27755
27756
27757   fi
27758
27759
27760
27761
27762   echo "$as_me:$LINENO: checking for working strnlen" >&5
27763 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
27764 if test "${ac_cv_func_strnlen_working+set}" = set; then
27765   echo $ECHO_N "(cached) $ECHO_C" >&6
27766 else
27767   if test "$cross_compiling" = yes; then
27768   ac_cv_func_strnlen_working=no
27769 else
27770   cat >conftest.$ac_ext <<_ACEOF
27771 /* confdefs.h.  */
27772 _ACEOF
27773 cat confdefs.h >>conftest.$ac_ext
27774 cat >>conftest.$ac_ext <<_ACEOF
27775 /* end confdefs.h.  */
27776 $ac_includes_default
27777 int
27778 main ()
27779 {
27780
27781 #define S "foobar"
27782 #define S_LEN (sizeof S - 1)
27783
27784   /* At least one implementation is buggy: that of AIX 4.3 would
27785      give strnlen (S, 1) == 3.  */
27786
27787   int i;
27788   for (i = 0; i < S_LEN + 1; ++i)
27789     {
27790       int expected = i <= S_LEN ? i : S_LEN;
27791       if (strnlen (S, i) != expected)
27792         exit (1);
27793     }
27794   exit (0);
27795
27796   ;
27797   return 0;
27798 }
27799 _ACEOF
27800 rm -f conftest$ac_exeext
27801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27802   (eval $ac_link) 2>&5
27803   ac_status=$?
27804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27807   (eval $ac_try) 2>&5
27808   ac_status=$?
27809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810   (exit $ac_status); }; }; then
27811   ac_cv_func_strnlen_working=yes
27812 else
27813   echo "$as_me: program exited with status $ac_status" >&5
27814 echo "$as_me: failed program was:" >&5
27815 sed 's/^/| /' conftest.$ac_ext >&5
27816
27817 ( exit $ac_status )
27818 ac_cv_func_strnlen_working=no
27819 fi
27820 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27821 fi
27822 fi
27823 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
27824 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
27825 test $ac_cv_func_strnlen_working = no && case $LIBOBJS in
27826     "strnlen.$ac_objext"   | \
27827   *" strnlen.$ac_objext"   | \
27828     "strnlen.$ac_objext "* | \
27829   *" strnlen.$ac_objext "* ) ;;
27830   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" ;;
27831 esac
27832
27833
27834   if test $ac_cv_func_strnlen_working = no; then
27835     # This is necessary because automake-1.6.1 doens't understand
27836     # that the above use of AC_FUNC_STRNLEN means we may have to use
27837     # lib/strnlen.c.
27838     #AC_LIBOBJ(strnlen)
27839
27840 cat >>confdefs.h <<\_ACEOF
27841 #define strnlen rpl_strnlen
27842 _ACEOF
27843
27844     :
27845   fi
27846
27847
27848
27849 for ac_func in strpbrk
27850 do
27851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27852 echo "$as_me:$LINENO: checking for $ac_func" >&5
27853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27854 if eval "test \"\${$as_ac_var+set}\" = set"; then
27855   echo $ECHO_N "(cached) $ECHO_C" >&6
27856 else
27857   cat >conftest.$ac_ext <<_ACEOF
27858 /* confdefs.h.  */
27859 _ACEOF
27860 cat confdefs.h >>conftest.$ac_ext
27861 cat >>conftest.$ac_ext <<_ACEOF
27862 /* end confdefs.h.  */
27863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27865 #define $ac_func innocuous_$ac_func
27866
27867 /* System header to define __stub macros and hopefully few prototypes,
27868     which can conflict with char $ac_func (); below.
27869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27870     <limits.h> exists even on freestanding compilers.  */
27871
27872 #ifdef __STDC__
27873 # include <limits.h>
27874 #else
27875 # include <assert.h>
27876 #endif
27877
27878 #undef $ac_func
27879
27880 /* Override any gcc2 internal prototype to avoid an error.  */
27881 #ifdef __cplusplus
27882 extern "C"
27883 {
27884 #endif
27885 /* We use char because int might match the return type of a gcc2
27886    builtin and then its argument prototype would still apply.  */
27887 char $ac_func ();
27888 /* The GNU C library defines this for functions which it implements
27889     to always fail with ENOSYS.  Some functions are actually named
27890     something starting with __ and the normal name is an alias.  */
27891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27892 choke me
27893 #else
27894 char (*f) () = $ac_func;
27895 #endif
27896 #ifdef __cplusplus
27897 }
27898 #endif
27899
27900 int
27901 main ()
27902 {
27903 return f != $ac_func;
27904   ;
27905   return 0;
27906 }
27907 _ACEOF
27908 rm -f conftest.$ac_objext conftest$ac_exeext
27909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27910   (eval $ac_link) 2>conftest.er1
27911   ac_status=$?
27912   grep -v '^ *+' conftest.er1 >conftest.err
27913   rm -f conftest.er1
27914   cat conftest.err >&5
27915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916   (exit $ac_status); } &&
27917          { ac_try='test -z "$ac_c_werror_flag"
27918                          || test ! -s conftest.err'
27919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27920   (eval $ac_try) 2>&5
27921   ac_status=$?
27922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923   (exit $ac_status); }; } &&
27924          { ac_try='test -s conftest$ac_exeext'
27925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27926   (eval $ac_try) 2>&5
27927   ac_status=$?
27928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929   (exit $ac_status); }; }; then
27930   eval "$as_ac_var=yes"
27931 else
27932   echo "$as_me: failed program was:" >&5
27933 sed 's/^/| /' conftest.$ac_ext >&5
27934
27935 eval "$as_ac_var=no"
27936 fi
27937 rm -f conftest.err conftest.$ac_objext \
27938       conftest$ac_exeext conftest.$ac_ext
27939 fi
27940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27942 if test `eval echo '${'$as_ac_var'}'` = yes; then
27943   cat >>confdefs.h <<_ACEOF
27944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27945 _ACEOF
27946
27947 else
27948   case $LIBOBJS in
27949     "$ac_func.$ac_objext"   | \
27950   *" $ac_func.$ac_objext"   | \
27951     "$ac_func.$ac_objext "* | \
27952   *" $ac_func.$ac_objext "* ) ;;
27953   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
27954 esac
27955
27956 fi
27957 done
27958
27959
27960   if test $ac_cv_func_strpbrk = no; then
27961     :
27962   fi
27963
27964
27965
27966 for ac_func in strstr
27967 do
27968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27969 echo "$as_me:$LINENO: checking for $ac_func" >&5
27970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27971 if eval "test \"\${$as_ac_var+set}\" = set"; then
27972   echo $ECHO_N "(cached) $ECHO_C" >&6
27973 else
27974   cat >conftest.$ac_ext <<_ACEOF
27975 /* confdefs.h.  */
27976 _ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h.  */
27980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27982 #define $ac_func innocuous_$ac_func
27983
27984 /* System header to define __stub macros and hopefully few prototypes,
27985     which can conflict with char $ac_func (); below.
27986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27987     <limits.h> exists even on freestanding compilers.  */
27988
27989 #ifdef __STDC__
27990 # include <limits.h>
27991 #else
27992 # include <assert.h>
27993 #endif
27994
27995 #undef $ac_func
27996
27997 /* Override any gcc2 internal prototype to avoid an error.  */
27998 #ifdef __cplusplus
27999 extern "C"
28000 {
28001 #endif
28002 /* We use char because int might match the return type of a gcc2
28003    builtin and then its argument prototype would still apply.  */
28004 char $ac_func ();
28005 /* The GNU C library defines this for functions which it implements
28006     to always fail with ENOSYS.  Some functions are actually named
28007     something starting with __ and the normal name is an alias.  */
28008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28009 choke me
28010 #else
28011 char (*f) () = $ac_func;
28012 #endif
28013 #ifdef __cplusplus
28014 }
28015 #endif
28016
28017 int
28018 main ()
28019 {
28020 return f != $ac_func;
28021   ;
28022   return 0;
28023 }
28024 _ACEOF
28025 rm -f conftest.$ac_objext conftest$ac_exeext
28026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28027   (eval $ac_link) 2>conftest.er1
28028   ac_status=$?
28029   grep -v '^ *+' conftest.er1 >conftest.err
28030   rm -f conftest.er1
28031   cat conftest.err >&5
28032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033   (exit $ac_status); } &&
28034          { ac_try='test -z "$ac_c_werror_flag"
28035                          || test ! -s conftest.err'
28036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28037   (eval $ac_try) 2>&5
28038   ac_status=$?
28039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28040   (exit $ac_status); }; } &&
28041          { ac_try='test -s conftest$ac_exeext'
28042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28043   (eval $ac_try) 2>&5
28044   ac_status=$?
28045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046   (exit $ac_status); }; }; then
28047   eval "$as_ac_var=yes"
28048 else
28049   echo "$as_me: failed program was:" >&5
28050 sed 's/^/| /' conftest.$ac_ext >&5
28051
28052 eval "$as_ac_var=no"
28053 fi
28054 rm -f conftest.err conftest.$ac_objext \
28055       conftest$ac_exeext conftest.$ac_ext
28056 fi
28057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28059 if test `eval echo '${'$as_ac_var'}'` = yes; then
28060   cat >>confdefs.h <<_ACEOF
28061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28062 _ACEOF
28063
28064 else
28065   case $LIBOBJS in
28066     "$ac_func.$ac_objext"   | \
28067   *" $ac_func.$ac_objext"   | \
28068     "$ac_func.$ac_objext "* | \
28069   *" $ac_func.$ac_objext "* ) ;;
28070   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
28071 esac
28072
28073 fi
28074 done
28075
28076
28077   if test $ac_cv_func_strstr = no; then
28078     :
28079   fi
28080
28081 echo "$as_me:$LINENO: checking for working strtod" >&5
28082 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
28083 if test "${ac_cv_func_strtod+set}" = set; then
28084   echo $ECHO_N "(cached) $ECHO_C" >&6
28085 else
28086   if test "$cross_compiling" = yes; then
28087   ac_cv_func_strtod=no
28088 else
28089   cat >conftest.$ac_ext <<_ACEOF
28090 /* confdefs.h.  */
28091 _ACEOF
28092 cat confdefs.h >>conftest.$ac_ext
28093 cat >>conftest.$ac_ext <<_ACEOF
28094 /* end confdefs.h.  */
28095
28096 double strtod ();
28097 int
28098 main()
28099 {
28100   {
28101     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
28102     char *string = " +69";
28103     char *term;
28104     double value;
28105     value = strtod (string, &term);
28106     if (value != 69 || term != (string + 4))
28107       exit (1);
28108   }
28109
28110   {
28111     /* Under Solaris 2.4, strtod returns the wrong value for the
28112        terminating character under some conditions.  */
28113     char *string = "NaN";
28114     char *term;
28115     strtod (string, &term);
28116     if (term != string && *(term - 1) == 0)
28117       exit (1);
28118   }
28119   exit (0);
28120 }
28121
28122 _ACEOF
28123 rm -f conftest$ac_exeext
28124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28125   (eval $ac_link) 2>&5
28126   ac_status=$?
28127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130   (eval $ac_try) 2>&5
28131   ac_status=$?
28132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133   (exit $ac_status); }; }; then
28134   ac_cv_func_strtod=yes
28135 else
28136   echo "$as_me: program exited with status $ac_status" >&5
28137 echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28139
28140 ( exit $ac_status )
28141 ac_cv_func_strtod=no
28142 fi
28143 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28144 fi
28145 fi
28146 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
28147 echo "${ECHO_T}$ac_cv_func_strtod" >&6
28148 if test $ac_cv_func_strtod = no; then
28149   case $LIBOBJS in
28150     "strtod.$ac_objext"   | \
28151   *" strtod.$ac_objext"   | \
28152     "strtod.$ac_objext "* | \
28153   *" strtod.$ac_objext "* ) ;;
28154   *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
28155 esac
28156
28157 echo "$as_me:$LINENO: checking for pow" >&5
28158 echo $ECHO_N "checking for pow... $ECHO_C" >&6
28159 if test "${ac_cv_func_pow+set}" = set; then
28160   echo $ECHO_N "(cached) $ECHO_C" >&6
28161 else
28162   cat >conftest.$ac_ext <<_ACEOF
28163 /* confdefs.h.  */
28164 _ACEOF
28165 cat confdefs.h >>conftest.$ac_ext
28166 cat >>conftest.$ac_ext <<_ACEOF
28167 /* end confdefs.h.  */
28168 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
28169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28170 #define pow innocuous_pow
28171
28172 /* System header to define __stub macros and hopefully few prototypes,
28173     which can conflict with char pow (); below.
28174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28175     <limits.h> exists even on freestanding compilers.  */
28176
28177 #ifdef __STDC__
28178 # include <limits.h>
28179 #else
28180 # include <assert.h>
28181 #endif
28182
28183 #undef pow
28184
28185 /* Override any gcc2 internal prototype to avoid an error.  */
28186 #ifdef __cplusplus
28187 extern "C"
28188 {
28189 #endif
28190 /* We use char because int might match the return type of a gcc2
28191    builtin and then its argument prototype would still apply.  */
28192 char pow ();
28193 /* The GNU C library defines this for functions which it implements
28194     to always fail with ENOSYS.  Some functions are actually named
28195     something starting with __ and the normal name is an alias.  */
28196 #if defined (__stub_pow) || defined (__stub___pow)
28197 choke me
28198 #else
28199 char (*f) () = pow;
28200 #endif
28201 #ifdef __cplusplus
28202 }
28203 #endif
28204
28205 int
28206 main ()
28207 {
28208 return f != pow;
28209   ;
28210   return 0;
28211 }
28212 _ACEOF
28213 rm -f conftest.$ac_objext conftest$ac_exeext
28214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28215   (eval $ac_link) 2>conftest.er1
28216   ac_status=$?
28217   grep -v '^ *+' conftest.er1 >conftest.err
28218   rm -f conftest.er1
28219   cat conftest.err >&5
28220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221   (exit $ac_status); } &&
28222          { ac_try='test -z "$ac_c_werror_flag"
28223                          || test ! -s conftest.err'
28224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28225   (eval $ac_try) 2>&5
28226   ac_status=$?
28227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228   (exit $ac_status); }; } &&
28229          { ac_try='test -s conftest$ac_exeext'
28230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28231   (eval $ac_try) 2>&5
28232   ac_status=$?
28233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234   (exit $ac_status); }; }; then
28235   ac_cv_func_pow=yes
28236 else
28237   echo "$as_me: failed program was:" >&5
28238 sed 's/^/| /' conftest.$ac_ext >&5
28239
28240 ac_cv_func_pow=no
28241 fi
28242 rm -f conftest.err conftest.$ac_objext \
28243       conftest$ac_exeext conftest.$ac_ext
28244 fi
28245 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
28246 echo "${ECHO_T}$ac_cv_func_pow" >&6
28247
28248 if test $ac_cv_func_pow = no; then
28249   echo "$as_me:$LINENO: checking for pow in -lm" >&5
28250 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
28251 if test "${ac_cv_lib_m_pow+set}" = set; then
28252   echo $ECHO_N "(cached) $ECHO_C" >&6
28253 else
28254   ac_check_lib_save_LIBS=$LIBS
28255 LIBS="-lm  $LIBS"
28256 cat >conftest.$ac_ext <<_ACEOF
28257 /* confdefs.h.  */
28258 _ACEOF
28259 cat confdefs.h >>conftest.$ac_ext
28260 cat >>conftest.$ac_ext <<_ACEOF
28261 /* end confdefs.h.  */
28262
28263 /* Override any gcc2 internal prototype to avoid an error.  */
28264 #ifdef __cplusplus
28265 extern "C"
28266 #endif
28267 /* We use char because int might match the return type of a gcc2
28268    builtin and then its argument prototype would still apply.  */
28269 char pow ();
28270 int
28271 main ()
28272 {
28273 pow ();
28274   ;
28275   return 0;
28276 }
28277 _ACEOF
28278 rm -f conftest.$ac_objext conftest$ac_exeext
28279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28280   (eval $ac_link) 2>conftest.er1
28281   ac_status=$?
28282   grep -v '^ *+' conftest.er1 >conftest.err
28283   rm -f conftest.er1
28284   cat conftest.err >&5
28285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286   (exit $ac_status); } &&
28287          { ac_try='test -z "$ac_c_werror_flag"
28288                          || test ! -s conftest.err'
28289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28290   (eval $ac_try) 2>&5
28291   ac_status=$?
28292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293   (exit $ac_status); }; } &&
28294          { ac_try='test -s conftest$ac_exeext'
28295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28296   (eval $ac_try) 2>&5
28297   ac_status=$?
28298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299   (exit $ac_status); }; }; then
28300   ac_cv_lib_m_pow=yes
28301 else
28302   echo "$as_me: failed program was:" >&5
28303 sed 's/^/| /' conftest.$ac_ext >&5
28304
28305 ac_cv_lib_m_pow=no
28306 fi
28307 rm -f conftest.err conftest.$ac_objext \
28308       conftest$ac_exeext conftest.$ac_ext
28309 LIBS=$ac_check_lib_save_LIBS
28310 fi
28311 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
28312 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
28313 if test $ac_cv_lib_m_pow = yes; then
28314   POW_LIB=-lm
28315 else
28316   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
28317 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
28318 fi
28319
28320 fi
28321
28322 fi
28323
28324
28325
28326   if test $ac_cv_func_strtod = no; then
28327
28328 cat >>confdefs.h <<\_ACEOF
28329 #define strtod rpl_strtod
28330 _ACEOF
28331
28332
28333
28334
28335   :
28336
28337
28338
28339
28340
28341
28342   fi
28343
28344
28345
28346
28347
28348   echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
28349 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
28350 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
28351   echo $ECHO_N "(cached) $ECHO_C" >&6
28352 else
28353   cat >conftest.$ac_ext <<_ACEOF
28354 /* confdefs.h.  */
28355 _ACEOF
28356 cat confdefs.h >>conftest.$ac_ext
28357 cat >>conftest.$ac_ext <<_ACEOF
28358 /* end confdefs.h.  */
28359 #include <inttypes.h>
28360 #ifdef strtoimax
28361  inttypes_h_defines_strtoimax
28362 #endif
28363 _ACEOF
28364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28365   $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
28366   jm_cv_func_strtoimax_macro=yes
28367 else
28368   jm_cv_func_strtoimax_macro=no
28369 fi
28370 rm -f conftest*
28371
28372 fi
28373 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
28374 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
28375
28376   if test "$jm_cv_func_strtoimax_macro" != yes; then
28377
28378 for ac_func in strtoimax
28379 do
28380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28381 echo "$as_me:$LINENO: checking for $ac_func" >&5
28382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28383 if eval "test \"\${$as_ac_var+set}\" = set"; then
28384   echo $ECHO_N "(cached) $ECHO_C" >&6
28385 else
28386   cat >conftest.$ac_ext <<_ACEOF
28387 /* confdefs.h.  */
28388 _ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h.  */
28392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28394 #define $ac_func innocuous_$ac_func
28395
28396 /* System header to define __stub macros and hopefully few prototypes,
28397     which can conflict with char $ac_func (); below.
28398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28399     <limits.h> exists even on freestanding compilers.  */
28400
28401 #ifdef __STDC__
28402 # include <limits.h>
28403 #else
28404 # include <assert.h>
28405 #endif
28406
28407 #undef $ac_func
28408
28409 /* Override any gcc2 internal prototype to avoid an error.  */
28410 #ifdef __cplusplus
28411 extern "C"
28412 {
28413 #endif
28414 /* We use char because int might match the return type of a gcc2
28415    builtin and then its argument prototype would still apply.  */
28416 char $ac_func ();
28417 /* The GNU C library defines this for functions which it implements
28418     to always fail with ENOSYS.  Some functions are actually named
28419     something starting with __ and the normal name is an alias.  */
28420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28421 choke me
28422 #else
28423 char (*f) () = $ac_func;
28424 #endif
28425 #ifdef __cplusplus
28426 }
28427 #endif
28428
28429 int
28430 main ()
28431 {
28432 return f != $ac_func;
28433   ;
28434   return 0;
28435 }
28436 _ACEOF
28437 rm -f conftest.$ac_objext conftest$ac_exeext
28438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28439   (eval $ac_link) 2>conftest.er1
28440   ac_status=$?
28441   grep -v '^ *+' conftest.er1 >conftest.err
28442   rm -f conftest.er1
28443   cat conftest.err >&5
28444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445   (exit $ac_status); } &&
28446          { ac_try='test -z "$ac_c_werror_flag"
28447                          || test ! -s conftest.err'
28448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449   (eval $ac_try) 2>&5
28450   ac_status=$?
28451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452   (exit $ac_status); }; } &&
28453          { ac_try='test -s conftest$ac_exeext'
28454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455   (eval $ac_try) 2>&5
28456   ac_status=$?
28457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458   (exit $ac_status); }; }; then
28459   eval "$as_ac_var=yes"
28460 else
28461   echo "$as_me: failed program was:" >&5
28462 sed 's/^/| /' conftest.$ac_ext >&5
28463
28464 eval "$as_ac_var=no"
28465 fi
28466 rm -f conftest.err conftest.$ac_objext \
28467       conftest$ac_exeext conftest.$ac_ext
28468 fi
28469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28471 if test `eval echo '${'$as_ac_var'}'` = yes; then
28472   cat >>confdefs.h <<_ACEOF
28473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28474 _ACEOF
28475
28476 else
28477   case $LIBOBJS in
28478     "$ac_func.$ac_objext"   | \
28479   *" $ac_func.$ac_objext"   | \
28480     "$ac_func.$ac_objext "* | \
28481   *" $ac_func.$ac_objext "* ) ;;
28482   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
28483 esac
28484
28485 fi
28486 done
28487
28488
28489     if test $ac_cv_func_strtoimax = no; then
28490
28491
28492
28493
28494   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
28495
28496     test $ac_cv_type_long_long = yes \
28497       && ac_type='long long' \
28498       || ac_type='long'
28499
28500 cat >>confdefs.h <<_ACEOF
28501 #define intmax_t $ac_type
28502 _ACEOF
28503
28504   else
28505
28506 cat >>confdefs.h <<\_ACEOF
28507 #define HAVE_INTMAX_T 1
28508 _ACEOF
28509
28510   fi
28511
28512   echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
28513 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
28514 if test "${ac_cv_have_decl_strtoll+set}" = set; then
28515   echo $ECHO_N "(cached) $ECHO_C" >&6
28516 else
28517   cat >conftest.$ac_ext <<_ACEOF
28518 /* confdefs.h.  */
28519 _ACEOF
28520 cat confdefs.h >>conftest.$ac_ext
28521 cat >>conftest.$ac_ext <<_ACEOF
28522 /* end confdefs.h.  */
28523 $ac_includes_default
28524 int
28525 main ()
28526 {
28527 #ifndef strtoll
28528   char *p = (char *) strtoll;
28529 #endif
28530
28531   ;
28532   return 0;
28533 }
28534 _ACEOF
28535 rm -f conftest.$ac_objext
28536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28537   (eval $ac_compile) 2>conftest.er1
28538   ac_status=$?
28539   grep -v '^ *+' conftest.er1 >conftest.err
28540   rm -f conftest.er1
28541   cat conftest.err >&5
28542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543   (exit $ac_status); } &&
28544          { ac_try='test -z "$ac_c_werror_flag"
28545                          || test ! -s conftest.err'
28546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28547   (eval $ac_try) 2>&5
28548   ac_status=$?
28549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550   (exit $ac_status); }; } &&
28551          { ac_try='test -s conftest.$ac_objext'
28552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28553   (eval $ac_try) 2>&5
28554   ac_status=$?
28555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556   (exit $ac_status); }; }; then
28557   ac_cv_have_decl_strtoll=yes
28558 else
28559   echo "$as_me: failed program was:" >&5
28560 sed 's/^/| /' conftest.$ac_ext >&5
28561
28562 ac_cv_have_decl_strtoll=no
28563 fi
28564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28565 fi
28566 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
28567 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
28568 if test $ac_cv_have_decl_strtoll = yes; then
28569
28570 cat >>confdefs.h <<_ACEOF
28571 #define HAVE_DECL_STRTOLL 1
28572 _ACEOF
28573
28574
28575 else
28576   cat >>confdefs.h <<_ACEOF
28577 #define HAVE_DECL_STRTOLL 0
28578 _ACEOF
28579
28580
28581 fi
28582
28583
28584
28585
28586     fi
28587   fi
28588
28589
28590
28591   if test "$ac_cv_type_long_long" = yes; then
28592
28593 for ac_func in strtoll
28594 do
28595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28596 echo "$as_me:$LINENO: checking for $ac_func" >&5
28597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28598 if eval "test \"\${$as_ac_var+set}\" = set"; then
28599   echo $ECHO_N "(cached) $ECHO_C" >&6
28600 else
28601   cat >conftest.$ac_ext <<_ACEOF
28602 /* confdefs.h.  */
28603 _ACEOF
28604 cat confdefs.h >>conftest.$ac_ext
28605 cat >>conftest.$ac_ext <<_ACEOF
28606 /* end confdefs.h.  */
28607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28609 #define $ac_func innocuous_$ac_func
28610
28611 /* System header to define __stub macros and hopefully few prototypes,
28612     which can conflict with char $ac_func (); below.
28613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28614     <limits.h> exists even on freestanding compilers.  */
28615
28616 #ifdef __STDC__
28617 # include <limits.h>
28618 #else
28619 # include <assert.h>
28620 #endif
28621
28622 #undef $ac_func
28623
28624 /* Override any gcc2 internal prototype to avoid an error.  */
28625 #ifdef __cplusplus
28626 extern "C"
28627 {
28628 #endif
28629 /* We use char because int might match the return type of a gcc2
28630    builtin and then its argument prototype would still apply.  */
28631 char $ac_func ();
28632 /* The GNU C library defines this for functions which it implements
28633     to always fail with ENOSYS.  Some functions are actually named
28634     something starting with __ and the normal name is an alias.  */
28635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28636 choke me
28637 #else
28638 char (*f) () = $ac_func;
28639 #endif
28640 #ifdef __cplusplus
28641 }
28642 #endif
28643
28644 int
28645 main ()
28646 {
28647 return f != $ac_func;
28648   ;
28649   return 0;
28650 }
28651 _ACEOF
28652 rm -f conftest.$ac_objext conftest$ac_exeext
28653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28654   (eval $ac_link) 2>conftest.er1
28655   ac_status=$?
28656   grep -v '^ *+' conftest.er1 >conftest.err
28657   rm -f conftest.er1
28658   cat conftest.err >&5
28659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660   (exit $ac_status); } &&
28661          { ac_try='test -z "$ac_c_werror_flag"
28662                          || test ! -s conftest.err'
28663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28664   (eval $ac_try) 2>&5
28665   ac_status=$?
28666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667   (exit $ac_status); }; } &&
28668          { ac_try='test -s conftest$ac_exeext'
28669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28670   (eval $ac_try) 2>&5
28671   ac_status=$?
28672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673   (exit $ac_status); }; }; then
28674   eval "$as_ac_var=yes"
28675 else
28676   echo "$as_me: failed program was:" >&5
28677 sed 's/^/| /' conftest.$ac_ext >&5
28678
28679 eval "$as_ac_var=no"
28680 fi
28681 rm -f conftest.err conftest.$ac_objext \
28682       conftest$ac_exeext conftest.$ac_ext
28683 fi
28684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28686 if test `eval echo '${'$as_ac_var'}'` = yes; then
28687   cat >>confdefs.h <<_ACEOF
28688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28689 _ACEOF
28690
28691 else
28692   case $LIBOBJS in
28693     "$ac_func.$ac_objext"   | \
28694   *" $ac_func.$ac_objext"   | \
28695     "$ac_func.$ac_objext "* | \
28696   *" $ac_func.$ac_objext "* ) ;;
28697   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
28698 esac
28699
28700 fi
28701 done
28702
28703
28704     if test $ac_cv_func_strtoll = no; then
28705
28706   :
28707
28708     fi
28709   fi
28710
28711
28712
28713 for ac_func in strtol
28714 do
28715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28716 echo "$as_me:$LINENO: checking for $ac_func" >&5
28717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28718 if eval "test \"\${$as_ac_var+set}\" = set"; then
28719   echo $ECHO_N "(cached) $ECHO_C" >&6
28720 else
28721   cat >conftest.$ac_ext <<_ACEOF
28722 /* confdefs.h.  */
28723 _ACEOF
28724 cat confdefs.h >>conftest.$ac_ext
28725 cat >>conftest.$ac_ext <<_ACEOF
28726 /* end confdefs.h.  */
28727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28729 #define $ac_func innocuous_$ac_func
28730
28731 /* System header to define __stub macros and hopefully few prototypes,
28732     which can conflict with char $ac_func (); below.
28733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28734     <limits.h> exists even on freestanding compilers.  */
28735
28736 #ifdef __STDC__
28737 # include <limits.h>
28738 #else
28739 # include <assert.h>
28740 #endif
28741
28742 #undef $ac_func
28743
28744 /* Override any gcc2 internal prototype to avoid an error.  */
28745 #ifdef __cplusplus
28746 extern "C"
28747 {
28748 #endif
28749 /* We use char because int might match the return type of a gcc2
28750    builtin and then its argument prototype would still apply.  */
28751 char $ac_func ();
28752 /* The GNU C library defines this for functions which it implements
28753     to always fail with ENOSYS.  Some functions are actually named
28754     something starting with __ and the normal name is an alias.  */
28755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28756 choke me
28757 #else
28758 char (*f) () = $ac_func;
28759 #endif
28760 #ifdef __cplusplus
28761 }
28762 #endif
28763
28764 int
28765 main ()
28766 {
28767 return f != $ac_func;
28768   ;
28769   return 0;
28770 }
28771 _ACEOF
28772 rm -f conftest.$ac_objext conftest$ac_exeext
28773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28774   (eval $ac_link) 2>conftest.er1
28775   ac_status=$?
28776   grep -v '^ *+' conftest.er1 >conftest.err
28777   rm -f conftest.er1
28778   cat conftest.err >&5
28779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780   (exit $ac_status); } &&
28781          { ac_try='test -z "$ac_c_werror_flag"
28782                          || test ! -s conftest.err'
28783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28784   (eval $ac_try) 2>&5
28785   ac_status=$?
28786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787   (exit $ac_status); }; } &&
28788          { ac_try='test -s conftest$ac_exeext'
28789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28790   (eval $ac_try) 2>&5
28791   ac_status=$?
28792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793   (exit $ac_status); }; }; then
28794   eval "$as_ac_var=yes"
28795 else
28796   echo "$as_me: failed program was:" >&5
28797 sed 's/^/| /' conftest.$ac_ext >&5
28798
28799 eval "$as_ac_var=no"
28800 fi
28801 rm -f conftest.err conftest.$ac_objext \
28802       conftest$ac_exeext conftest.$ac_ext
28803 fi
28804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28806 if test `eval echo '${'$as_ac_var'}'` = yes; then
28807   cat >>confdefs.h <<_ACEOF
28808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28809 _ACEOF
28810
28811 else
28812   case $LIBOBJS in
28813     "$ac_func.$ac_objext"   | \
28814   *" $ac_func.$ac_objext"   | \
28815     "$ac_func.$ac_objext "* | \
28816   *" $ac_func.$ac_objext "* ) ;;
28817   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
28818 esac
28819
28820 fi
28821 done
28822
28823
28824   if test $ac_cv_func_strtol = no; then
28825
28826
28827
28828   :
28829
28830
28831
28832
28833
28834
28835   fi
28836
28837
28838
28839   if test "$ac_cv_type_unsigned_long_long" = yes; then
28840
28841 for ac_func in strtoull
28842 do
28843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28844 echo "$as_me:$LINENO: checking for $ac_func" >&5
28845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28846 if eval "test \"\${$as_ac_var+set}\" = set"; then
28847   echo $ECHO_N "(cached) $ECHO_C" >&6
28848 else
28849   cat >conftest.$ac_ext <<_ACEOF
28850 /* confdefs.h.  */
28851 _ACEOF
28852 cat confdefs.h >>conftest.$ac_ext
28853 cat >>conftest.$ac_ext <<_ACEOF
28854 /* end confdefs.h.  */
28855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28857 #define $ac_func innocuous_$ac_func
28858
28859 /* System header to define __stub macros and hopefully few prototypes,
28860     which can conflict with char $ac_func (); below.
28861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28862     <limits.h> exists even on freestanding compilers.  */
28863
28864 #ifdef __STDC__
28865 # include <limits.h>
28866 #else
28867 # include <assert.h>
28868 #endif
28869
28870 #undef $ac_func
28871
28872 /* Override any gcc2 internal prototype to avoid an error.  */
28873 #ifdef __cplusplus
28874 extern "C"
28875 {
28876 #endif
28877 /* We use char because int might match the return type of a gcc2
28878    builtin and then its argument prototype would still apply.  */
28879 char $ac_func ();
28880 /* The GNU C library defines this for functions which it implements
28881     to always fail with ENOSYS.  Some functions are actually named
28882     something starting with __ and the normal name is an alias.  */
28883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28884 choke me
28885 #else
28886 char (*f) () = $ac_func;
28887 #endif
28888 #ifdef __cplusplus
28889 }
28890 #endif
28891
28892 int
28893 main ()
28894 {
28895 return f != $ac_func;
28896   ;
28897   return 0;
28898 }
28899 _ACEOF
28900 rm -f conftest.$ac_objext conftest$ac_exeext
28901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28902   (eval $ac_link) 2>conftest.er1
28903   ac_status=$?
28904   grep -v '^ *+' conftest.er1 >conftest.err
28905   rm -f conftest.er1
28906   cat conftest.err >&5
28907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908   (exit $ac_status); } &&
28909          { ac_try='test -z "$ac_c_werror_flag"
28910                          || test ! -s conftest.err'
28911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28912   (eval $ac_try) 2>&5
28913   ac_status=$?
28914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915   (exit $ac_status); }; } &&
28916          { ac_try='test -s conftest$ac_exeext'
28917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28918   (eval $ac_try) 2>&5
28919   ac_status=$?
28920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921   (exit $ac_status); }; }; then
28922   eval "$as_ac_var=yes"
28923 else
28924   echo "$as_me: failed program was:" >&5
28925 sed 's/^/| /' conftest.$ac_ext >&5
28926
28927 eval "$as_ac_var=no"
28928 fi
28929 rm -f conftest.err conftest.$ac_objext \
28930       conftest$ac_exeext conftest.$ac_ext
28931 fi
28932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28934 if test `eval echo '${'$as_ac_var'}'` = yes; then
28935   cat >>confdefs.h <<_ACEOF
28936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28937 _ACEOF
28938
28939 else
28940   case $LIBOBJS in
28941     "$ac_func.$ac_objext"   | \
28942   *" $ac_func.$ac_objext"   | \
28943     "$ac_func.$ac_objext "* | \
28944   *" $ac_func.$ac_objext "* ) ;;
28945   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
28946 esac
28947
28948 fi
28949 done
28950
28951
28952     if test $ac_cv_func_strtoull = no; then
28953
28954   :
28955
28956     fi
28957   fi
28958
28959
28960
28961 for ac_func in strtoul
28962 do
28963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28964 echo "$as_me:$LINENO: checking for $ac_func" >&5
28965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28966 if eval "test \"\${$as_ac_var+set}\" = set"; then
28967   echo $ECHO_N "(cached) $ECHO_C" >&6
28968 else
28969   cat >conftest.$ac_ext <<_ACEOF
28970 /* confdefs.h.  */
28971 _ACEOF
28972 cat confdefs.h >>conftest.$ac_ext
28973 cat >>conftest.$ac_ext <<_ACEOF
28974 /* end confdefs.h.  */
28975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28977 #define $ac_func innocuous_$ac_func
28978
28979 /* System header to define __stub macros and hopefully few prototypes,
28980     which can conflict with char $ac_func (); below.
28981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28982     <limits.h> exists even on freestanding compilers.  */
28983
28984 #ifdef __STDC__
28985 # include <limits.h>
28986 #else
28987 # include <assert.h>
28988 #endif
28989
28990 #undef $ac_func
28991
28992 /* Override any gcc2 internal prototype to avoid an error.  */
28993 #ifdef __cplusplus
28994 extern "C"
28995 {
28996 #endif
28997 /* We use char because int might match the return type of a gcc2
28998    builtin and then its argument prototype would still apply.  */
28999 char $ac_func ();
29000 /* The GNU C library defines this for functions which it implements
29001     to always fail with ENOSYS.  Some functions are actually named
29002     something starting with __ and the normal name is an alias.  */
29003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29004 choke me
29005 #else
29006 char (*f) () = $ac_func;
29007 #endif
29008 #ifdef __cplusplus
29009 }
29010 #endif
29011
29012 int
29013 main ()
29014 {
29015 return f != $ac_func;
29016   ;
29017   return 0;
29018 }
29019 _ACEOF
29020 rm -f conftest.$ac_objext conftest$ac_exeext
29021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29022   (eval $ac_link) 2>conftest.er1
29023   ac_status=$?
29024   grep -v '^ *+' conftest.er1 >conftest.err
29025   rm -f conftest.er1
29026   cat conftest.err >&5
29027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028   (exit $ac_status); } &&
29029          { ac_try='test -z "$ac_c_werror_flag"
29030                          || test ! -s conftest.err'
29031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29032   (eval $ac_try) 2>&5
29033   ac_status=$?
29034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035   (exit $ac_status); }; } &&
29036          { ac_try='test -s conftest$ac_exeext'
29037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29038   (eval $ac_try) 2>&5
29039   ac_status=$?
29040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041   (exit $ac_status); }; }; then
29042   eval "$as_ac_var=yes"
29043 else
29044   echo "$as_me: failed program was:" >&5
29045 sed 's/^/| /' conftest.$ac_ext >&5
29046
29047 eval "$as_ac_var=no"
29048 fi
29049 rm -f conftest.err conftest.$ac_objext \
29050       conftest$ac_exeext conftest.$ac_ext
29051 fi
29052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29054 if test `eval echo '${'$as_ac_var'}'` = yes; then
29055   cat >>confdefs.h <<_ACEOF
29056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29057 _ACEOF
29058
29059 else
29060   case $LIBOBJS in
29061     "$ac_func.$ac_objext"   | \
29062   *" $ac_func.$ac_objext"   | \
29063     "$ac_func.$ac_objext "* | \
29064   *" $ac_func.$ac_objext "* ) ;;
29065   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
29066 esac
29067
29068 fi
29069 done
29070
29071
29072   if test $ac_cv_func_strtoul = no; then
29073
29074
29075
29076
29077   :
29078
29079
29080
29081
29082
29083
29084
29085   fi
29086
29087
29088
29089
29090
29091   echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
29092 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
29093 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
29094   echo $ECHO_N "(cached) $ECHO_C" >&6
29095 else
29096   cat >conftest.$ac_ext <<_ACEOF
29097 /* confdefs.h.  */
29098 _ACEOF
29099 cat confdefs.h >>conftest.$ac_ext
29100 cat >>conftest.$ac_ext <<_ACEOF
29101 /* end confdefs.h.  */
29102 #include <inttypes.h>
29103 #ifdef strtoumax
29104  inttypes_h_defines_strtoumax
29105 #endif
29106 _ACEOF
29107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29108   $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
29109   jm_cv_func_strtoumax_macro=yes
29110 else
29111   jm_cv_func_strtoumax_macro=no
29112 fi
29113 rm -f conftest*
29114
29115 fi
29116 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
29117 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
29118
29119   if test "$jm_cv_func_strtoumax_macro" != yes; then
29120
29121 for ac_func in strtoumax
29122 do
29123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29124 echo "$as_me:$LINENO: checking for $ac_func" >&5
29125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29126 if eval "test \"\${$as_ac_var+set}\" = set"; then
29127   echo $ECHO_N "(cached) $ECHO_C" >&6
29128 else
29129   cat >conftest.$ac_ext <<_ACEOF
29130 /* confdefs.h.  */
29131 _ACEOF
29132 cat confdefs.h >>conftest.$ac_ext
29133 cat >>conftest.$ac_ext <<_ACEOF
29134 /* end confdefs.h.  */
29135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29137 #define $ac_func innocuous_$ac_func
29138
29139 /* System header to define __stub macros and hopefully few prototypes,
29140     which can conflict with char $ac_func (); below.
29141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29142     <limits.h> exists even on freestanding compilers.  */
29143
29144 #ifdef __STDC__
29145 # include <limits.h>
29146 #else
29147 # include <assert.h>
29148 #endif
29149
29150 #undef $ac_func
29151
29152 /* Override any gcc2 internal prototype to avoid an error.  */
29153 #ifdef __cplusplus
29154 extern "C"
29155 {
29156 #endif
29157 /* We use char because int might match the return type of a gcc2
29158    builtin and then its argument prototype would still apply.  */
29159 char $ac_func ();
29160 /* The GNU C library defines this for functions which it implements
29161     to always fail with ENOSYS.  Some functions are actually named
29162     something starting with __ and the normal name is an alias.  */
29163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29164 choke me
29165 #else
29166 char (*f) () = $ac_func;
29167 #endif
29168 #ifdef __cplusplus
29169 }
29170 #endif
29171
29172 int
29173 main ()
29174 {
29175 return f != $ac_func;
29176   ;
29177   return 0;
29178 }
29179 _ACEOF
29180 rm -f conftest.$ac_objext conftest$ac_exeext
29181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29182   (eval $ac_link) 2>conftest.er1
29183   ac_status=$?
29184   grep -v '^ *+' conftest.er1 >conftest.err
29185   rm -f conftest.er1
29186   cat conftest.err >&5
29187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188   (exit $ac_status); } &&
29189          { ac_try='test -z "$ac_c_werror_flag"
29190                          || test ! -s conftest.err'
29191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29192   (eval $ac_try) 2>&5
29193   ac_status=$?
29194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195   (exit $ac_status); }; } &&
29196          { ac_try='test -s conftest$ac_exeext'
29197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29198   (eval $ac_try) 2>&5
29199   ac_status=$?
29200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201   (exit $ac_status); }; }; then
29202   eval "$as_ac_var=yes"
29203 else
29204   echo "$as_me: failed program was:" >&5
29205 sed 's/^/| /' conftest.$ac_ext >&5
29206
29207 eval "$as_ac_var=no"
29208 fi
29209 rm -f conftest.err conftest.$ac_objext \
29210       conftest$ac_exeext conftest.$ac_ext
29211 fi
29212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29214 if test `eval echo '${'$as_ac_var'}'` = yes; then
29215   cat >>confdefs.h <<_ACEOF
29216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29217 _ACEOF
29218
29219 else
29220   case $LIBOBJS in
29221     "$ac_func.$ac_objext"   | \
29222   *" $ac_func.$ac_objext"   | \
29223     "$ac_func.$ac_objext "* | \
29224   *" $ac_func.$ac_objext "* ) ;;
29225   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
29226 esac
29227
29228 fi
29229 done
29230
29231
29232     if test $ac_cv_func_strtoumax = no; then
29233
29234
29235
29236
29237   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
29238
29239     test $ac_cv_type_unsigned_long_long = yes \
29240       && ac_type='unsigned long long' \
29241       || ac_type='unsigned long'
29242
29243 cat >>confdefs.h <<_ACEOF
29244 #define uintmax_t $ac_type
29245 _ACEOF
29246
29247   else
29248
29249 cat >>confdefs.h <<\_ACEOF
29250 #define HAVE_UINTMAX_T 1
29251 _ACEOF
29252
29253   fi
29254
29255   echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
29256 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
29257 if test "${ac_cv_have_decl_strtoull+set}" = set; then
29258   echo $ECHO_N "(cached) $ECHO_C" >&6
29259 else
29260   cat >conftest.$ac_ext <<_ACEOF
29261 /* confdefs.h.  */
29262 _ACEOF
29263 cat confdefs.h >>conftest.$ac_ext
29264 cat >>conftest.$ac_ext <<_ACEOF
29265 /* end confdefs.h.  */
29266 $ac_includes_default
29267 int
29268 main ()
29269 {
29270 #ifndef strtoull
29271   char *p = (char *) strtoull;
29272 #endif
29273
29274   ;
29275   return 0;
29276 }
29277 _ACEOF
29278 rm -f conftest.$ac_objext
29279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29280   (eval $ac_compile) 2>conftest.er1
29281   ac_status=$?
29282   grep -v '^ *+' conftest.er1 >conftest.err
29283   rm -f conftest.er1
29284   cat conftest.err >&5
29285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29286   (exit $ac_status); } &&
29287          { ac_try='test -z "$ac_c_werror_flag"
29288                          || test ! -s conftest.err'
29289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29290   (eval $ac_try) 2>&5
29291   ac_status=$?
29292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293   (exit $ac_status); }; } &&
29294          { ac_try='test -s conftest.$ac_objext'
29295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29296   (eval $ac_try) 2>&5
29297   ac_status=$?
29298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299   (exit $ac_status); }; }; then
29300   ac_cv_have_decl_strtoull=yes
29301 else
29302   echo "$as_me: failed program was:" >&5
29303 sed 's/^/| /' conftest.$ac_ext >&5
29304
29305 ac_cv_have_decl_strtoull=no
29306 fi
29307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29308 fi
29309 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
29310 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
29311 if test $ac_cv_have_decl_strtoull = yes; then
29312
29313 cat >>confdefs.h <<_ACEOF
29314 #define HAVE_DECL_STRTOULL 1
29315 _ACEOF
29316
29317
29318 else
29319   cat >>confdefs.h <<_ACEOF
29320 #define HAVE_DECL_STRTOULL 0
29321 _ACEOF
29322
29323
29324 fi
29325
29326
29327
29328
29329     fi
29330   fi
29331
29332
29333
29334
29335
29336 for ac_func in strverscmp
29337 do
29338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29339 echo "$as_me:$LINENO: checking for $ac_func" >&5
29340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29341 if eval "test \"\${$as_ac_var+set}\" = set"; then
29342   echo $ECHO_N "(cached) $ECHO_C" >&6
29343 else
29344   cat >conftest.$ac_ext <<_ACEOF
29345 /* confdefs.h.  */
29346 _ACEOF
29347 cat confdefs.h >>conftest.$ac_ext
29348 cat >>conftest.$ac_ext <<_ACEOF
29349 /* end confdefs.h.  */
29350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29352 #define $ac_func innocuous_$ac_func
29353
29354 /* System header to define __stub macros and hopefully few prototypes,
29355     which can conflict with char $ac_func (); below.
29356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29357     <limits.h> exists even on freestanding compilers.  */
29358
29359 #ifdef __STDC__
29360 # include <limits.h>
29361 #else
29362 # include <assert.h>
29363 #endif
29364
29365 #undef $ac_func
29366
29367 /* Override any gcc2 internal prototype to avoid an error.  */
29368 #ifdef __cplusplus
29369 extern "C"
29370 {
29371 #endif
29372 /* We use char because int might match the return type of a gcc2
29373    builtin and then its argument prototype would still apply.  */
29374 char $ac_func ();
29375 /* The GNU C library defines this for functions which it implements
29376     to always fail with ENOSYS.  Some functions are actually named
29377     something starting with __ and the normal name is an alias.  */
29378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29379 choke me
29380 #else
29381 char (*f) () = $ac_func;
29382 #endif
29383 #ifdef __cplusplus
29384 }
29385 #endif
29386
29387 int
29388 main ()
29389 {
29390 return f != $ac_func;
29391   ;
29392   return 0;
29393 }
29394 _ACEOF
29395 rm -f conftest.$ac_objext conftest$ac_exeext
29396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29397   (eval $ac_link) 2>conftest.er1
29398   ac_status=$?
29399   grep -v '^ *+' conftest.er1 >conftest.err
29400   rm -f conftest.er1
29401   cat conftest.err >&5
29402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403   (exit $ac_status); } &&
29404          { ac_try='test -z "$ac_c_werror_flag"
29405                          || test ! -s conftest.err'
29406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29407   (eval $ac_try) 2>&5
29408   ac_status=$?
29409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410   (exit $ac_status); }; } &&
29411          { ac_try='test -s conftest$ac_exeext'
29412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29413   (eval $ac_try) 2>&5
29414   ac_status=$?
29415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416   (exit $ac_status); }; }; then
29417   eval "$as_ac_var=yes"
29418 else
29419   echo "$as_me: failed program was:" >&5
29420 sed 's/^/| /' conftest.$ac_ext >&5
29421
29422 eval "$as_ac_var=no"
29423 fi
29424 rm -f conftest.err conftest.$ac_objext \
29425       conftest$ac_exeext conftest.$ac_ext
29426 fi
29427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29429 if test `eval echo '${'$as_ac_var'}'` = yes; then
29430   cat >>confdefs.h <<_ACEOF
29431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29432 _ACEOF
29433
29434 else
29435   case $LIBOBJS in
29436     "$ac_func.$ac_objext"   | \
29437   *" $ac_func.$ac_objext"   | \
29438     "$ac_func.$ac_objext "* | \
29439   *" $ac_func.$ac_objext "* ) ;;
29440   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
29441 esac
29442
29443 fi
29444 done
29445
29446
29447   if test $ac_cv_func_strverscmp = no; then
29448
29449   :
29450
29451   fi
29452
29453
29454
29455   echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
29456 echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6
29457 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
29458   echo $ECHO_N "(cached) $ECHO_C" >&6
29459 else
29460
29461     cat >conftest.$ac_ext <<_ACEOF
29462 /* confdefs.h.  */
29463 _ACEOF
29464 cat confdefs.h >>conftest.$ac_ext
29465 cat >>conftest.$ac_ext <<_ACEOF
29466 /* end confdefs.h.  */
29467
29468 #include <errno.h>
29469 #ifdef EOVERFLOW
29470 yes
29471 #endif
29472
29473 _ACEOF
29474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29475   $EGREP "yes" >/dev/null 2>&1; then
29476   have_eoverflow=1
29477 fi
29478 rm -f conftest*
29479
29480     if test -n "$have_eoverflow"; then
29481             ac_cv_decl_EOVERFLOW=yes
29482     else
29483       cat >conftest.$ac_ext <<_ACEOF
29484 /* confdefs.h.  */
29485 _ACEOF
29486 cat confdefs.h >>conftest.$ac_ext
29487 cat >>conftest.$ac_ext <<_ACEOF
29488 /* end confdefs.h.  */
29489
29490 #define _XOPEN_SOURCE_EXTENDED 1
29491 #include <errno.h>
29492 #ifdef EOVERFLOW
29493 yes
29494 #endif
29495
29496 _ACEOF
29497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29498   $EGREP "yes" >/dev/null 2>&1; then
29499   have_eoverflow=1
29500 fi
29501 rm -f conftest*
29502
29503       if test -n "$have_eoverflow"; then
29504                         if test "$cross_compiling" = yes; then
29505   # Depending upon the size, compute the lo and hi bounds.
29506 cat >conftest.$ac_ext <<_ACEOF
29507 /* confdefs.h.  */
29508 _ACEOF
29509 cat confdefs.h >>conftest.$ac_ext
29510 cat >>conftest.$ac_ext <<_ACEOF
29511 /* end confdefs.h.  */
29512
29513 #define _XOPEN_SOURCE_EXTENDED 1
29514 #include <errno.h>
29515 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
29516 #include <stdio.h>
29517 #include <stdlib.h>
29518
29519 int
29520 main ()
29521 {
29522 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
29523 test_array [0] = 0
29524
29525   ;
29526   return 0;
29527 }
29528 _ACEOF
29529 rm -f conftest.$ac_objext
29530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29531   (eval $ac_compile) 2>conftest.er1
29532   ac_status=$?
29533   grep -v '^ *+' conftest.er1 >conftest.err
29534   rm -f conftest.er1
29535   cat conftest.err >&5
29536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537   (exit $ac_status); } &&
29538          { ac_try='test -z "$ac_c_werror_flag"
29539                          || test ! -s conftest.err'
29540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29541   (eval $ac_try) 2>&5
29542   ac_status=$?
29543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544   (exit $ac_status); }; } &&
29545          { ac_try='test -s conftest.$ac_objext'
29546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29547   (eval $ac_try) 2>&5
29548   ac_status=$?
29549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550   (exit $ac_status); }; }; then
29551   ac_lo=0 ac_mid=0
29552   while :; do
29553     cat >conftest.$ac_ext <<_ACEOF
29554 /* confdefs.h.  */
29555 _ACEOF
29556 cat confdefs.h >>conftest.$ac_ext
29557 cat >>conftest.$ac_ext <<_ACEOF
29558 /* end confdefs.h.  */
29559
29560 #define _XOPEN_SOURCE_EXTENDED 1
29561 #include <errno.h>
29562 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
29563 #include <stdio.h>
29564 #include <stdlib.h>
29565
29566 int
29567 main ()
29568 {
29569 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
29570 test_array [0] = 0
29571
29572   ;
29573   return 0;
29574 }
29575 _ACEOF
29576 rm -f conftest.$ac_objext
29577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29578   (eval $ac_compile) 2>conftest.er1
29579   ac_status=$?
29580   grep -v '^ *+' conftest.er1 >conftest.err
29581   rm -f conftest.er1
29582   cat conftest.err >&5
29583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584   (exit $ac_status); } &&
29585          { ac_try='test -z "$ac_c_werror_flag"
29586                          || test ! -s conftest.err'
29587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29588   (eval $ac_try) 2>&5
29589   ac_status=$?
29590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591   (exit $ac_status); }; } &&
29592          { ac_try='test -s conftest.$ac_objext'
29593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29594   (eval $ac_try) 2>&5
29595   ac_status=$?
29596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597   (exit $ac_status); }; }; then
29598   ac_hi=$ac_mid; break
29599 else
29600   echo "$as_me: failed program was:" >&5
29601 sed 's/^/| /' conftest.$ac_ext >&5
29602
29603 ac_lo=`expr $ac_mid + 1`
29604                     if test $ac_lo -le $ac_mid; then
29605                       ac_lo= ac_hi=
29606                       break
29607                     fi
29608                     ac_mid=`expr 2 '*' $ac_mid + 1`
29609 fi
29610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29611   done
29612 else
29613   echo "$as_me: failed program was:" >&5
29614 sed 's/^/| /' conftest.$ac_ext >&5
29615
29616 cat >conftest.$ac_ext <<_ACEOF
29617 /* confdefs.h.  */
29618 _ACEOF
29619 cat confdefs.h >>conftest.$ac_ext
29620 cat >>conftest.$ac_ext <<_ACEOF
29621 /* end confdefs.h.  */
29622
29623 #define _XOPEN_SOURCE_EXTENDED 1
29624 #include <errno.h>
29625 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
29626 #include <stdio.h>
29627 #include <stdlib.h>
29628
29629 int
29630 main ()
29631 {
29632 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
29633 test_array [0] = 0
29634
29635   ;
29636   return 0;
29637 }
29638 _ACEOF
29639 rm -f conftest.$ac_objext
29640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29641   (eval $ac_compile) 2>conftest.er1
29642   ac_status=$?
29643   grep -v '^ *+' conftest.er1 >conftest.err
29644   rm -f conftest.er1
29645   cat conftest.err >&5
29646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647   (exit $ac_status); } &&
29648          { ac_try='test -z "$ac_c_werror_flag"
29649                          || test ! -s conftest.err'
29650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29651   (eval $ac_try) 2>&5
29652   ac_status=$?
29653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654   (exit $ac_status); }; } &&
29655          { ac_try='test -s conftest.$ac_objext'
29656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29657   (eval $ac_try) 2>&5
29658   ac_status=$?
29659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660   (exit $ac_status); }; }; then
29661   ac_hi=-1 ac_mid=-1
29662   while :; do
29663     cat >conftest.$ac_ext <<_ACEOF
29664 /* confdefs.h.  */
29665 _ACEOF
29666 cat confdefs.h >>conftest.$ac_ext
29667 cat >>conftest.$ac_ext <<_ACEOF
29668 /* end confdefs.h.  */
29669
29670 #define _XOPEN_SOURCE_EXTENDED 1
29671 #include <errno.h>
29672 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
29673 #include <stdio.h>
29674 #include <stdlib.h>
29675
29676 int
29677 main ()
29678 {
29679 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
29680 test_array [0] = 0
29681
29682   ;
29683   return 0;
29684 }
29685 _ACEOF
29686 rm -f conftest.$ac_objext
29687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29688   (eval $ac_compile) 2>conftest.er1
29689   ac_status=$?
29690   grep -v '^ *+' conftest.er1 >conftest.err
29691   rm -f conftest.er1
29692   cat conftest.err >&5
29693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694   (exit $ac_status); } &&
29695          { ac_try='test -z "$ac_c_werror_flag"
29696                          || test ! -s conftest.err'
29697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29698   (eval $ac_try) 2>&5
29699   ac_status=$?
29700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701   (exit $ac_status); }; } &&
29702          { ac_try='test -s conftest.$ac_objext'
29703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29704   (eval $ac_try) 2>&5
29705   ac_status=$?
29706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707   (exit $ac_status); }; }; then
29708   ac_lo=$ac_mid; break
29709 else
29710   echo "$as_me: failed program was:" >&5
29711 sed 's/^/| /' conftest.$ac_ext >&5
29712
29713 ac_hi=`expr '(' $ac_mid ')' - 1`
29714                        if test $ac_mid -le $ac_hi; then
29715                          ac_lo= ac_hi=
29716                          break
29717                        fi
29718                        ac_mid=`expr 2 '*' $ac_mid`
29719 fi
29720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29721   done
29722 else
29723   echo "$as_me: failed program was:" >&5
29724 sed 's/^/| /' conftest.$ac_ext >&5
29725
29726 ac_lo= ac_hi=
29727 fi
29728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29729 fi
29730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29731 # Binary search between lo and hi bounds.
29732 while test "x$ac_lo" != "x$ac_hi"; do
29733   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29734   cat >conftest.$ac_ext <<_ACEOF
29735 /* confdefs.h.  */
29736 _ACEOF
29737 cat confdefs.h >>conftest.$ac_ext
29738 cat >>conftest.$ac_ext <<_ACEOF
29739 /* end confdefs.h.  */
29740
29741 #define _XOPEN_SOURCE_EXTENDED 1
29742 #include <errno.h>
29743 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
29744 #include <stdio.h>
29745 #include <stdlib.h>
29746
29747 int
29748 main ()
29749 {
29750 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
29751 test_array [0] = 0
29752
29753   ;
29754   return 0;
29755 }
29756 _ACEOF
29757 rm -f conftest.$ac_objext
29758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29759   (eval $ac_compile) 2>conftest.er1
29760   ac_status=$?
29761   grep -v '^ *+' conftest.er1 >conftest.err
29762   rm -f conftest.er1
29763   cat conftest.err >&5
29764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765   (exit $ac_status); } &&
29766          { ac_try='test -z "$ac_c_werror_flag"
29767                          || test ! -s conftest.err'
29768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29769   (eval $ac_try) 2>&5
29770   ac_status=$?
29771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772   (exit $ac_status); }; } &&
29773          { ac_try='test -s conftest.$ac_objext'
29774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29775   (eval $ac_try) 2>&5
29776   ac_status=$?
29777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778   (exit $ac_status); }; }; then
29779   ac_hi=$ac_mid
29780 else
29781   echo "$as_me: failed program was:" >&5
29782 sed 's/^/| /' conftest.$ac_ext >&5
29783
29784 ac_lo=`expr '(' $ac_mid ')' + 1`
29785 fi
29786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29787 done
29788 case $ac_lo in
29789 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
29790 '')  ;;
29791 esac
29792 else
29793   if test "$cross_compiling" = yes; then
29794   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29795 See \`config.log' for more details." >&5
29796 echo "$as_me: error: cannot run test program while cross compiling
29797 See \`config.log' for more details." >&2;}
29798    { (exit 1); exit 1; }; }
29799 else
29800   cat >conftest.$ac_ext <<_ACEOF
29801 /* confdefs.h.  */
29802 _ACEOF
29803 cat confdefs.h >>conftest.$ac_ext
29804 cat >>conftest.$ac_ext <<_ACEOF
29805 /* end confdefs.h.  */
29806
29807 #define _XOPEN_SOURCE_EXTENDED 1
29808 #include <errno.h>
29809 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
29810 #include <stdio.h>
29811 #include <stdlib.h>
29812
29813 long longval () { return EOVERFLOW; }
29814 unsigned long ulongval () { return EOVERFLOW; }
29815 #include <stdio.h>
29816 #include <stdlib.h>
29817 int
29818 main ()
29819 {
29820
29821   FILE *f = fopen ("conftest.val", "w");
29822   if (! f)
29823     exit (1);
29824   if ((EOVERFLOW) < 0)
29825     {
29826       long i = longval ();
29827       if (i != (EOVERFLOW))
29828         exit (1);
29829       fprintf (f, "%ld\n", i);
29830     }
29831   else
29832     {
29833       unsigned long i = ulongval ();
29834       if (i != (EOVERFLOW))
29835         exit (1);
29836       fprintf (f, "%lu\n", i);
29837     }
29838   exit (ferror (f) || fclose (f) != 0);
29839
29840   ;
29841   return 0;
29842 }
29843 _ACEOF
29844 rm -f conftest$ac_exeext
29845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29846   (eval $ac_link) 2>&5
29847   ac_status=$?
29848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29851   (eval $ac_try) 2>&5
29852   ac_status=$?
29853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854   (exit $ac_status); }; }; then
29855   ac_cv_decl_EOVERFLOW=`cat conftest.val`
29856 else
29857   echo "$as_me: program exited with status $ac_status" >&5
29858 echo "$as_me: failed program was:" >&5
29859 sed 's/^/| /' conftest.$ac_ext >&5
29860
29861 fi
29862 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29863 fi
29864 fi
29865 rm -f conftest.val
29866       else
29867                                 ac_cv_decl_EOVERFLOW=E2BIG
29868       fi
29869     fi
29870
29871 fi
29872 echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
29873 echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6
29874   if test "$ac_cv_decl_EOVERFLOW" != yes; then
29875
29876 cat >>confdefs.h <<_ACEOF
29877 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
29878 _ACEOF
29879
29880     EOVERFLOW="$ac_cv_decl_EOVERFLOW"
29881
29882   fi
29883
29884
29885   echo "$as_me:$LINENO: checking for signed" >&5
29886 echo $ECHO_N "checking for signed... $ECHO_C" >&6
29887 if test "${bh_cv_c_signed+set}" = set; then
29888   echo $ECHO_N "(cached) $ECHO_C" >&6
29889 else
29890   cat >conftest.$ac_ext <<_ACEOF
29891 /* confdefs.h.  */
29892 _ACEOF
29893 cat confdefs.h >>conftest.$ac_ext
29894 cat >>conftest.$ac_ext <<_ACEOF
29895 /* end confdefs.h.  */
29896
29897 int
29898 main ()
29899 {
29900 signed char x;
29901   ;
29902   return 0;
29903 }
29904 _ACEOF
29905 rm -f conftest.$ac_objext
29906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29907   (eval $ac_compile) 2>conftest.er1
29908   ac_status=$?
29909   grep -v '^ *+' conftest.er1 >conftest.err
29910   rm -f conftest.er1
29911   cat conftest.err >&5
29912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913   (exit $ac_status); } &&
29914          { ac_try='test -z "$ac_c_werror_flag"
29915                          || test ! -s conftest.err'
29916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29917   (eval $ac_try) 2>&5
29918   ac_status=$?
29919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920   (exit $ac_status); }; } &&
29921          { ac_try='test -s conftest.$ac_objext'
29922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29923   (eval $ac_try) 2>&5
29924   ac_status=$?
29925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29926   (exit $ac_status); }; }; then
29927   bh_cv_c_signed=yes
29928 else
29929   echo "$as_me: failed program was:" >&5
29930 sed 's/^/| /' conftest.$ac_ext >&5
29931
29932 bh_cv_c_signed=no
29933 fi
29934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29935 fi
29936 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
29937 echo "${ECHO_T}$bh_cv_c_signed" >&6
29938   if test $bh_cv_c_signed = no; then
29939
29940 cat >>confdefs.h <<\_ACEOF
29941 #define signed
29942 _ACEOF
29943
29944   fi
29945
29946
29947   echo "$as_me:$LINENO: checking for wchar_t" >&5
29948 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
29949 if test "${gt_cv_c_wchar_t+set}" = set; then
29950   echo $ECHO_N "(cached) $ECHO_C" >&6
29951 else
29952   cat >conftest.$ac_ext <<_ACEOF
29953 /* confdefs.h.  */
29954 _ACEOF
29955 cat confdefs.h >>conftest.$ac_ext
29956 cat >>conftest.$ac_ext <<_ACEOF
29957 /* end confdefs.h.  */
29958 #include <stddef.h>
29959        wchar_t foo = (wchar_t)'\0';
29960 int
29961 main ()
29962 {
29963
29964   ;
29965   return 0;
29966 }
29967 _ACEOF
29968 rm -f conftest.$ac_objext
29969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29970   (eval $ac_compile) 2>conftest.er1
29971   ac_status=$?
29972   grep -v '^ *+' conftest.er1 >conftest.err
29973   rm -f conftest.er1
29974   cat conftest.err >&5
29975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976   (exit $ac_status); } &&
29977          { ac_try='test -z "$ac_c_werror_flag"
29978                          || test ! -s conftest.err'
29979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29980   (eval $ac_try) 2>&5
29981   ac_status=$?
29982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983   (exit $ac_status); }; } &&
29984          { ac_try='test -s conftest.$ac_objext'
29985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29986   (eval $ac_try) 2>&5
29987   ac_status=$?
29988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989   (exit $ac_status); }; }; then
29990   gt_cv_c_wchar_t=yes
29991 else
29992   echo "$as_me: failed program was:" >&5
29993 sed 's/^/| /' conftest.$ac_ext >&5
29994
29995 gt_cv_c_wchar_t=no
29996 fi
29997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29998 fi
29999 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
30000 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
30001   if test $gt_cv_c_wchar_t = yes; then
30002
30003 cat >>confdefs.h <<\_ACEOF
30004 #define HAVE_WCHAR_T 1
30005 _ACEOF
30006
30007   fi
30008
30009
30010   echo "$as_me:$LINENO: checking for wint_t" >&5
30011 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
30012 if test "${gt_cv_c_wint_t+set}" = set; then
30013   echo $ECHO_N "(cached) $ECHO_C" >&6
30014 else
30015   cat >conftest.$ac_ext <<_ACEOF
30016 /* confdefs.h.  */
30017 _ACEOF
30018 cat confdefs.h >>conftest.$ac_ext
30019 cat >>conftest.$ac_ext <<_ACEOF
30020 /* end confdefs.h.  */
30021 #include <wchar.h>
30022        wint_t foo = (wchar_t)'\0';
30023 int
30024 main ()
30025 {
30026
30027   ;
30028   return 0;
30029 }
30030 _ACEOF
30031 rm -f conftest.$ac_objext
30032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30033   (eval $ac_compile) 2>conftest.er1
30034   ac_status=$?
30035   grep -v '^ *+' conftest.er1 >conftest.err
30036   rm -f conftest.er1
30037   cat conftest.err >&5
30038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039   (exit $ac_status); } &&
30040          { ac_try='test -z "$ac_c_werror_flag"
30041                          || test ! -s conftest.err'
30042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30043   (eval $ac_try) 2>&5
30044   ac_status=$?
30045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046   (exit $ac_status); }; } &&
30047          { ac_try='test -s conftest.$ac_objext'
30048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30049   (eval $ac_try) 2>&5
30050   ac_status=$?
30051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052   (exit $ac_status); }; }; then
30053   gt_cv_c_wint_t=yes
30054 else
30055   echo "$as_me: failed program was:" >&5
30056 sed 's/^/| /' conftest.$ac_ext >&5
30057
30058 gt_cv_c_wint_t=no
30059 fi
30060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30061 fi
30062 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
30063 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
30064   if test $gt_cv_c_wint_t = yes; then
30065
30066 cat >>confdefs.h <<\_ACEOF
30067 #define HAVE_WINT_T 1
30068 _ACEOF
30069
30070   fi
30071
30072
30073
30074
30075   echo "$as_me:$LINENO: checking for intmax_t" >&5
30076 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
30077 if test "${gt_cv_c_intmax_t+set}" = set; then
30078   echo $ECHO_N "(cached) $ECHO_C" >&6
30079 else
30080   cat >conftest.$ac_ext <<_ACEOF
30081 /* confdefs.h.  */
30082 _ACEOF
30083 cat confdefs.h >>conftest.$ac_ext
30084 cat >>conftest.$ac_ext <<_ACEOF
30085 /* end confdefs.h.  */
30086
30087 #include <stddef.h>
30088 #include <stdlib.h>
30089 #if HAVE_STDINT_H_WITH_UINTMAX
30090 #include <stdint.h>
30091 #endif
30092 #if HAVE_INTTYPES_H_WITH_UINTMAX
30093 #include <inttypes.h>
30094 #endif
30095
30096 int
30097 main ()
30098 {
30099 intmax_t x = -1;
30100   ;
30101   return 0;
30102 }
30103 _ACEOF
30104 rm -f conftest.$ac_objext
30105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30106   (eval $ac_compile) 2>conftest.er1
30107   ac_status=$?
30108   grep -v '^ *+' conftest.er1 >conftest.err
30109   rm -f conftest.er1
30110   cat conftest.err >&5
30111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112   (exit $ac_status); } &&
30113          { ac_try='test -z "$ac_c_werror_flag"
30114                          || test ! -s conftest.err'
30115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30116   (eval $ac_try) 2>&5
30117   ac_status=$?
30118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119   (exit $ac_status); }; } &&
30120          { ac_try='test -s conftest.$ac_objext'
30121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30122   (eval $ac_try) 2>&5
30123   ac_status=$?
30124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125   (exit $ac_status); }; }; then
30126   gt_cv_c_intmax_t=yes
30127 else
30128   echo "$as_me: failed program was:" >&5
30129 sed 's/^/| /' conftest.$ac_ext >&5
30130
30131 gt_cv_c_intmax_t=no
30132 fi
30133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30134 fi
30135 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
30136 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
30137   if test $gt_cv_c_intmax_t = yes; then
30138
30139 cat >>confdefs.h <<\_ACEOF
30140 #define HAVE_INTMAX_T 1
30141 _ACEOF
30142
30143   else
30144
30145     test $ac_cv_type_long_long = yes \
30146       && ac_type='long long' \
30147       || ac_type='long'
30148
30149 cat >>confdefs.h <<_ACEOF
30150 #define intmax_t $ac_type
30151 _ACEOF
30152
30153   fi
30154
30155
30156
30157
30158 for ac_func in vasnprintf
30159 do
30160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30161 echo "$as_me:$LINENO: checking for $ac_func" >&5
30162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30163 if eval "test \"\${$as_ac_var+set}\" = set"; then
30164   echo $ECHO_N "(cached) $ECHO_C" >&6
30165 else
30166   cat >conftest.$ac_ext <<_ACEOF
30167 /* confdefs.h.  */
30168 _ACEOF
30169 cat confdefs.h >>conftest.$ac_ext
30170 cat >>conftest.$ac_ext <<_ACEOF
30171 /* end confdefs.h.  */
30172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30174 #define $ac_func innocuous_$ac_func
30175
30176 /* System header to define __stub macros and hopefully few prototypes,
30177     which can conflict with char $ac_func (); below.
30178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30179     <limits.h> exists even on freestanding compilers.  */
30180
30181 #ifdef __STDC__
30182 # include <limits.h>
30183 #else
30184 # include <assert.h>
30185 #endif
30186
30187 #undef $ac_func
30188
30189 /* Override any gcc2 internal prototype to avoid an error.  */
30190 #ifdef __cplusplus
30191 extern "C"
30192 {
30193 #endif
30194 /* We use char because int might match the return type of a gcc2
30195    builtin and then its argument prototype would still apply.  */
30196 char $ac_func ();
30197 /* The GNU C library defines this for functions which it implements
30198     to always fail with ENOSYS.  Some functions are actually named
30199     something starting with __ and the normal name is an alias.  */
30200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30201 choke me
30202 #else
30203 char (*f) () = $ac_func;
30204 #endif
30205 #ifdef __cplusplus
30206 }
30207 #endif
30208
30209 int
30210 main ()
30211 {
30212 return f != $ac_func;
30213   ;
30214   return 0;
30215 }
30216 _ACEOF
30217 rm -f conftest.$ac_objext conftest$ac_exeext
30218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30219   (eval $ac_link) 2>conftest.er1
30220   ac_status=$?
30221   grep -v '^ *+' conftest.er1 >conftest.err
30222   rm -f conftest.er1
30223   cat conftest.err >&5
30224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225   (exit $ac_status); } &&
30226          { ac_try='test -z "$ac_c_werror_flag"
30227                          || test ! -s conftest.err'
30228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30229   (eval $ac_try) 2>&5
30230   ac_status=$?
30231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232   (exit $ac_status); }; } &&
30233          { ac_try='test -s conftest$ac_exeext'
30234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30235   (eval $ac_try) 2>&5
30236   ac_status=$?
30237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238   (exit $ac_status); }; }; then
30239   eval "$as_ac_var=yes"
30240 else
30241   echo "$as_me: failed program was:" >&5
30242 sed 's/^/| /' conftest.$ac_ext >&5
30243
30244 eval "$as_ac_var=no"
30245 fi
30246 rm -f conftest.err conftest.$ac_objext \
30247       conftest$ac_exeext conftest.$ac_ext
30248 fi
30249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30251 if test `eval echo '${'$as_ac_var'}'` = yes; then
30252   cat >>confdefs.h <<_ACEOF
30253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30254 _ACEOF
30255
30256 else
30257   case $LIBOBJS in
30258     "$ac_func.$ac_objext"   | \
30259   *" $ac_func.$ac_objext"   | \
30260     "$ac_func.$ac_objext "* | \
30261   *" $ac_func.$ac_objext "* ) ;;
30262   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
30263 esac
30264
30265 fi
30266 done
30267
30268
30269   if test $ac_cv_func_vasnprintf = no; then
30270     case $LIBOBJS in
30271     "printf-args.$ac_objext"   | \
30272   *" printf-args.$ac_objext"   | \
30273     "printf-args.$ac_objext "* | \
30274   *" printf-args.$ac_objext "* ) ;;
30275   *) LIBOBJS="$LIBOBJS printf-args.$ac_objext" ;;
30276 esac
30277
30278     case $LIBOBJS in
30279     "printf-parse.$ac_objext"   | \
30280   *" printf-parse.$ac_objext"   | \
30281     "printf-parse.$ac_objext "* | \
30282   *" printf-parse.$ac_objext "* ) ;;
30283   *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext" ;;
30284 esac
30285
30286     case $LIBOBJS in
30287     "asnprintf.$ac_objext"   | \
30288   *" asnprintf.$ac_objext"   | \
30289     "asnprintf.$ac_objext "* | \
30290   *" asnprintf.$ac_objext "* ) ;;
30291   *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext" ;;
30292 esac
30293
30294
30295
30296
30297
30298
30299
30300
30301
30302
30303
30304
30305
30306
30307   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
30308 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
30309 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
30310   echo $ECHO_N "(cached) $ECHO_C" >&6
30311 else
30312   cat >conftest.$ac_ext <<_ACEOF
30313 /* confdefs.h.  */
30314 _ACEOF
30315 cat confdefs.h >>conftest.$ac_ext
30316 cat >>conftest.$ac_ext <<_ACEOF
30317 /* end confdefs.h.  */
30318 $ac_includes_default
30319 int
30320 main ()
30321 {
30322 if ((ptrdiff_t *) 0)
30323   return 0;
30324 if (sizeof (ptrdiff_t))
30325   return 0;
30326   ;
30327   return 0;
30328 }
30329 _ACEOF
30330 rm -f conftest.$ac_objext
30331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30332   (eval $ac_compile) 2>conftest.er1
30333   ac_status=$?
30334   grep -v '^ *+' conftest.er1 >conftest.err
30335   rm -f conftest.er1
30336   cat conftest.err >&5
30337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338   (exit $ac_status); } &&
30339          { ac_try='test -z "$ac_c_werror_flag"
30340                          || test ! -s conftest.err'
30341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30342   (eval $ac_try) 2>&5
30343   ac_status=$?
30344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345   (exit $ac_status); }; } &&
30346          { ac_try='test -s conftest.$ac_objext'
30347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30348   (eval $ac_try) 2>&5
30349   ac_status=$?
30350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351   (exit $ac_status); }; }; then
30352   ac_cv_type_ptrdiff_t=yes
30353 else
30354   echo "$as_me: failed program was:" >&5
30355 sed 's/^/| /' conftest.$ac_ext >&5
30356
30357 ac_cv_type_ptrdiff_t=no
30358 fi
30359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30360 fi
30361 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
30362 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
30363 if test $ac_cv_type_ptrdiff_t = yes; then
30364
30365 cat >>confdefs.h <<_ACEOF
30366 #define HAVE_PTRDIFF_T 1
30367 _ACEOF
30368
30369
30370 fi
30371
30372
30373
30374
30375
30376
30377
30378
30379
30380
30381
30382 for ac_func in snprintf wcslen
30383 do
30384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30385 echo "$as_me:$LINENO: checking for $ac_func" >&5
30386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30387 if eval "test \"\${$as_ac_var+set}\" = set"; then
30388   echo $ECHO_N "(cached) $ECHO_C" >&6
30389 else
30390   cat >conftest.$ac_ext <<_ACEOF
30391 /* confdefs.h.  */
30392 _ACEOF
30393 cat confdefs.h >>conftest.$ac_ext
30394 cat >>conftest.$ac_ext <<_ACEOF
30395 /* end confdefs.h.  */
30396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30398 #define $ac_func innocuous_$ac_func
30399
30400 /* System header to define __stub macros and hopefully few prototypes,
30401     which can conflict with char $ac_func (); below.
30402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30403     <limits.h> exists even on freestanding compilers.  */
30404
30405 #ifdef __STDC__
30406 # include <limits.h>
30407 #else
30408 # include <assert.h>
30409 #endif
30410
30411 #undef $ac_func
30412
30413 /* Override any gcc2 internal prototype to avoid an error.  */
30414 #ifdef __cplusplus
30415 extern "C"
30416 {
30417 #endif
30418 /* We use char because int might match the return type of a gcc2
30419    builtin and then its argument prototype would still apply.  */
30420 char $ac_func ();
30421 /* The GNU C library defines this for functions which it implements
30422     to always fail with ENOSYS.  Some functions are actually named
30423     something starting with __ and the normal name is an alias.  */
30424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30425 choke me
30426 #else
30427 char (*f) () = $ac_func;
30428 #endif
30429 #ifdef __cplusplus
30430 }
30431 #endif
30432
30433 int
30434 main ()
30435 {
30436 return f != $ac_func;
30437   ;
30438   return 0;
30439 }
30440 _ACEOF
30441 rm -f conftest.$ac_objext conftest$ac_exeext
30442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30443   (eval $ac_link) 2>conftest.er1
30444   ac_status=$?
30445   grep -v '^ *+' conftest.er1 >conftest.err
30446   rm -f conftest.er1
30447   cat conftest.err >&5
30448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449   (exit $ac_status); } &&
30450          { ac_try='test -z "$ac_c_werror_flag"
30451                          || test ! -s conftest.err'
30452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30453   (eval $ac_try) 2>&5
30454   ac_status=$?
30455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456   (exit $ac_status); }; } &&
30457          { ac_try='test -s conftest$ac_exeext'
30458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30459   (eval $ac_try) 2>&5
30460   ac_status=$?
30461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462   (exit $ac_status); }; }; then
30463   eval "$as_ac_var=yes"
30464 else
30465   echo "$as_me: failed program was:" >&5
30466 sed 's/^/| /' conftest.$ac_ext >&5
30467
30468 eval "$as_ac_var=no"
30469 fi
30470 rm -f conftest.err conftest.$ac_objext \
30471       conftest$ac_exeext conftest.$ac_ext
30472 fi
30473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30475 if test `eval echo '${'$as_ac_var'}'` = yes; then
30476   cat >>confdefs.h <<_ACEOF
30477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30478 _ACEOF
30479
30480 fi
30481 done
30482
30483
30484
30485
30486   fi
30487
30488
30489
30490 for ac_func in vasprintf
30491 do
30492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30493 echo "$as_me:$LINENO: checking for $ac_func" >&5
30494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30495 if eval "test \"\${$as_ac_var+set}\" = set"; then
30496   echo $ECHO_N "(cached) $ECHO_C" >&6
30497 else
30498   cat >conftest.$ac_ext <<_ACEOF
30499 /* confdefs.h.  */
30500 _ACEOF
30501 cat confdefs.h >>conftest.$ac_ext
30502 cat >>conftest.$ac_ext <<_ACEOF
30503 /* end confdefs.h.  */
30504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30506 #define $ac_func innocuous_$ac_func
30507
30508 /* System header to define __stub macros and hopefully few prototypes,
30509     which can conflict with char $ac_func (); below.
30510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30511     <limits.h> exists even on freestanding compilers.  */
30512
30513 #ifdef __STDC__
30514 # include <limits.h>
30515 #else
30516 # include <assert.h>
30517 #endif
30518
30519 #undef $ac_func
30520
30521 /* Override any gcc2 internal prototype to avoid an error.  */
30522 #ifdef __cplusplus
30523 extern "C"
30524 {
30525 #endif
30526 /* We use char because int might match the return type of a gcc2
30527    builtin and then its argument prototype would still apply.  */
30528 char $ac_func ();
30529 /* The GNU C library defines this for functions which it implements
30530     to always fail with ENOSYS.  Some functions are actually named
30531     something starting with __ and the normal name is an alias.  */
30532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30533 choke me
30534 #else
30535 char (*f) () = $ac_func;
30536 #endif
30537 #ifdef __cplusplus
30538 }
30539 #endif
30540
30541 int
30542 main ()
30543 {
30544 return f != $ac_func;
30545   ;
30546   return 0;
30547 }
30548 _ACEOF
30549 rm -f conftest.$ac_objext conftest$ac_exeext
30550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30551   (eval $ac_link) 2>conftest.er1
30552   ac_status=$?
30553   grep -v '^ *+' conftest.er1 >conftest.err
30554   rm -f conftest.er1
30555   cat conftest.err >&5
30556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557   (exit $ac_status); } &&
30558          { ac_try='test -z "$ac_c_werror_flag"
30559                          || test ! -s conftest.err'
30560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30561   (eval $ac_try) 2>&5
30562   ac_status=$?
30563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564   (exit $ac_status); }; } &&
30565          { ac_try='test -s conftest$ac_exeext'
30566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30567   (eval $ac_try) 2>&5
30568   ac_status=$?
30569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570   (exit $ac_status); }; }; then
30571   eval "$as_ac_var=yes"
30572 else
30573   echo "$as_me: failed program was:" >&5
30574 sed 's/^/| /' conftest.$ac_ext >&5
30575
30576 eval "$as_ac_var=no"
30577 fi
30578 rm -f conftest.err conftest.$ac_objext \
30579       conftest$ac_exeext conftest.$ac_ext
30580 fi
30581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30583 if test `eval echo '${'$as_ac_var'}'` = yes; then
30584   cat >>confdefs.h <<_ACEOF
30585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30586 _ACEOF
30587
30588 else
30589   case $LIBOBJS in
30590     "$ac_func.$ac_objext"   | \
30591   *" $ac_func.$ac_objext"   | \
30592     "$ac_func.$ac_objext "* | \
30593   *" $ac_func.$ac_objext "* ) ;;
30594   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
30595 esac
30596
30597 fi
30598 done
30599
30600
30601   if test $ac_cv_func_vasprintf = no; then
30602     case $LIBOBJS in
30603     "asprintf.$ac_objext"   | \
30604   *" asprintf.$ac_objext"   | \
30605     "asprintf.$ac_objext "* | \
30606   *" asprintf.$ac_objext "* ) ;;
30607   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
30608 esac
30609
30610
30611
30612
30613
30614   fi
30615
30616
30617
30618
30619   :
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630   :
30631
30632
30633
30634
30635
30636   echo "$as_me:$LINENO: checking for struct timespec" >&5
30637 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
30638 if test "${fu_cv_sys_struct_timespec+set}" = set; then
30639   echo $ECHO_N "(cached) $ECHO_C" >&6
30640 else
30641   cat >conftest.$ac_ext <<_ACEOF
30642 /* confdefs.h.  */
30643 _ACEOF
30644 cat confdefs.h >>conftest.$ac_ext
30645 cat >>conftest.$ac_ext <<_ACEOF
30646 /* end confdefs.h.  */
30647
30648 #      if TIME_WITH_SYS_TIME
30649 #       include <sys/time.h>
30650 #       include <time.h>
30651 #      else
30652 #       if HAVE_SYS_TIME_H
30653 #        include <sys/time.h>
30654 #       else
30655 #        include <time.h>
30656 #       endif
30657 #      endif
30658
30659 int
30660 main ()
30661 {
30662 static struct timespec x; x.tv_sec = x.tv_nsec;
30663   ;
30664   return 0;
30665 }
30666 _ACEOF
30667 rm -f conftest.$ac_objext
30668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30669   (eval $ac_compile) 2>conftest.er1
30670   ac_status=$?
30671   grep -v '^ *+' conftest.er1 >conftest.err
30672   rm -f conftest.er1
30673   cat conftest.err >&5
30674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675   (exit $ac_status); } &&
30676          { ac_try='test -z "$ac_c_werror_flag"
30677                          || test ! -s conftest.err'
30678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30679   (eval $ac_try) 2>&5
30680   ac_status=$?
30681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30682   (exit $ac_status); }; } &&
30683          { ac_try='test -s conftest.$ac_objext'
30684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30685   (eval $ac_try) 2>&5
30686   ac_status=$?
30687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688   (exit $ac_status); }; }; then
30689   fu_cv_sys_struct_timespec=yes
30690 else
30691   echo "$as_me: failed program was:" >&5
30692 sed 's/^/| /' conftest.$ac_ext >&5
30693
30694 fu_cv_sys_struct_timespec=no
30695 fi
30696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30697
30698 fi
30699 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
30700 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
30701
30702   if test $fu_cv_sys_struct_timespec = yes; then
30703
30704 cat >>confdefs.h <<\_ACEOF
30705 #define HAVE_STRUCT_TIMESPEC 1
30706 _ACEOF
30707
30708   fi
30709
30710   echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
30711 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
30712 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
30713   echo $ECHO_N "(cached) $ECHO_C" >&6
30714 else
30715   ac_save_CPPFLAGS="$CPPFLAGS"
30716     ac_cv_struct_st_mtim_nsec=no
30717     # tv_nsec -- the usual case
30718     # _tv_nsec -- Solaris 2.6, if
30719     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
30720     #    && !defined __EXTENSIONS__)
30721     # st__tim.tv_nsec -- UnixWare 2.1.2
30722     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
30723       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
30724       cat >conftest.$ac_ext <<_ACEOF
30725 /* confdefs.h.  */
30726 _ACEOF
30727 cat confdefs.h >>conftest.$ac_ext
30728 cat >>conftest.$ac_ext <<_ACEOF
30729 /* end confdefs.h.  */
30730 #include <sys/types.h>
30731 #include <sys/stat.h>
30732 int
30733 main ()
30734 {
30735 struct stat s; s.st_mtim.ST_MTIM_NSEC;
30736   ;
30737   return 0;
30738 }
30739 _ACEOF
30740 rm -f conftest.$ac_objext
30741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30742   (eval $ac_compile) 2>conftest.er1
30743   ac_status=$?
30744   grep -v '^ *+' conftest.er1 >conftest.err
30745   rm -f conftest.er1
30746   cat conftest.err >&5
30747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748   (exit $ac_status); } &&
30749          { ac_try='test -z "$ac_c_werror_flag"
30750                          || test ! -s conftest.err'
30751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30752   (eval $ac_try) 2>&5
30753   ac_status=$?
30754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755   (exit $ac_status); }; } &&
30756          { ac_try='test -s conftest.$ac_objext'
30757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30758   (eval $ac_try) 2>&5
30759   ac_status=$?
30760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761   (exit $ac_status); }; }; then
30762   ac_cv_struct_st_mtim_nsec=$ac_val; break
30763 else
30764   echo "$as_me: failed program was:" >&5
30765 sed 's/^/| /' conftest.$ac_ext >&5
30766
30767 fi
30768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30769     done
30770     CPPFLAGS="$ac_save_CPPFLAGS"
30771 fi
30772 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
30773 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
30774
30775   if test $ac_cv_struct_st_mtim_nsec != no; then
30776
30777 cat >>confdefs.h <<_ACEOF
30778 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
30779 _ACEOF
30780
30781   fi
30782
30783
30784
30785
30786
30787   echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
30788 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
30789 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
30790   echo $ECHO_N "(cached) $ECHO_C" >&6
30791 else
30792   cat >conftest.$ac_ext <<_ACEOF
30793 /* confdefs.h.  */
30794 _ACEOF
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h.  */
30798 #include <time.h>
30799
30800 int
30801 main ()
30802 {
30803 #ifndef nanosleep
30804   char *p = (char *) nanosleep;
30805 #endif
30806
30807   ;
30808   return 0;
30809 }
30810 _ACEOF
30811 rm -f conftest.$ac_objext
30812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30813   (eval $ac_compile) 2>conftest.er1
30814   ac_status=$?
30815   grep -v '^ *+' conftest.er1 >conftest.err
30816   rm -f conftest.er1
30817   cat conftest.err >&5
30818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30819   (exit $ac_status); } &&
30820          { ac_try='test -z "$ac_c_werror_flag"
30821                          || test ! -s conftest.err'
30822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30823   (eval $ac_try) 2>&5
30824   ac_status=$?
30825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826   (exit $ac_status); }; } &&
30827          { ac_try='test -s conftest.$ac_objext'
30828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30829   (eval $ac_try) 2>&5
30830   ac_status=$?
30831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832   (exit $ac_status); }; }; then
30833   ac_cv_have_decl_nanosleep=yes
30834 else
30835   echo "$as_me: failed program was:" >&5
30836 sed 's/^/| /' conftest.$ac_ext >&5
30837
30838 ac_cv_have_decl_nanosleep=no
30839 fi
30840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30841 fi
30842 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
30843 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
30844 if test $ac_cv_have_decl_nanosleep = yes; then
30845
30846 cat >>confdefs.h <<_ACEOF
30847 #define HAVE_DECL_NANOSLEEP 1
30848 _ACEOF
30849
30850
30851 else
30852   cat >>confdefs.h <<_ACEOF
30853 #define HAVE_DECL_NANOSLEEP 0
30854 _ACEOF
30855
30856
30857 fi
30858
30859
30860
30861
30862   # getdate.y works with bison only.
30863   : ${YACC='bison -y'}
30864
30865
30866 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30867 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
30868 if test "${ac_cv_struct_tm+set}" = set; then
30869   echo $ECHO_N "(cached) $ECHO_C" >&6
30870 else
30871   cat >conftest.$ac_ext <<_ACEOF
30872 /* confdefs.h.  */
30873 _ACEOF
30874 cat confdefs.h >>conftest.$ac_ext
30875 cat >>conftest.$ac_ext <<_ACEOF
30876 /* end confdefs.h.  */
30877 #include <sys/types.h>
30878 #include <time.h>
30879
30880 int
30881 main ()
30882 {
30883 struct tm *tp; tp->tm_sec;
30884   ;
30885   return 0;
30886 }
30887 _ACEOF
30888 rm -f conftest.$ac_objext
30889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30890   (eval $ac_compile) 2>conftest.er1
30891   ac_status=$?
30892   grep -v '^ *+' conftest.er1 >conftest.err
30893   rm -f conftest.er1
30894   cat conftest.err >&5
30895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896   (exit $ac_status); } &&
30897          { ac_try='test -z "$ac_c_werror_flag"
30898                          || test ! -s conftest.err'
30899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30900   (eval $ac_try) 2>&5
30901   ac_status=$?
30902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30903   (exit $ac_status); }; } &&
30904          { ac_try='test -s conftest.$ac_objext'
30905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30906   (eval $ac_try) 2>&5
30907   ac_status=$?
30908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30909   (exit $ac_status); }; }; then
30910   ac_cv_struct_tm=time.h
30911 else
30912   echo "$as_me: failed program was:" >&5
30913 sed 's/^/| /' conftest.$ac_ext >&5
30914
30915 ac_cv_struct_tm=sys/time.h
30916 fi
30917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30918 fi
30919 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30920 echo "${ECHO_T}$ac_cv_struct_tm" >&6
30921 if test $ac_cv_struct_tm = sys/time.h; then
30922
30923 cat >>confdefs.h <<\_ACEOF
30924 #define TM_IN_SYS_TIME 1
30925 _ACEOF
30926
30927 fi
30928
30929
30930   # dnl Persuade glibc <time.h> to declare these functions.
30931
30932
30933   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
30934   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
30935
30936   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
30937   # programs in the package would end up linked with that potentially-shared
30938   # library, inducing unnecessary run-time overhead.
30939   fetish_saved_libs=$LIBS
30940     echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
30941 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
30942 if test "${ac_cv_search_clock_gettime+set}" = set; then
30943   echo $ECHO_N "(cached) $ECHO_C" >&6
30944 else
30945   ac_func_search_save_LIBS=$LIBS
30946 ac_cv_search_clock_gettime=no
30947 cat >conftest.$ac_ext <<_ACEOF
30948 /* confdefs.h.  */
30949 _ACEOF
30950 cat confdefs.h >>conftest.$ac_ext
30951 cat >>conftest.$ac_ext <<_ACEOF
30952 /* end confdefs.h.  */
30953
30954 /* Override any gcc2 internal prototype to avoid an error.  */
30955 #ifdef __cplusplus
30956 extern "C"
30957 #endif
30958 /* We use char because int might match the return type of a gcc2
30959    builtin and then its argument prototype would still apply.  */
30960 char clock_gettime ();
30961 int
30962 main ()
30963 {
30964 clock_gettime ();
30965   ;
30966   return 0;
30967 }
30968 _ACEOF
30969 rm -f conftest.$ac_objext conftest$ac_exeext
30970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30971   (eval $ac_link) 2>conftest.er1
30972   ac_status=$?
30973   grep -v '^ *+' conftest.er1 >conftest.err
30974   rm -f conftest.er1
30975   cat conftest.err >&5
30976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977   (exit $ac_status); } &&
30978          { ac_try='test -z "$ac_c_werror_flag"
30979                          || test ! -s conftest.err'
30980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981   (eval $ac_try) 2>&5
30982   ac_status=$?
30983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984   (exit $ac_status); }; } &&
30985          { ac_try='test -s conftest$ac_exeext'
30986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30987   (eval $ac_try) 2>&5
30988   ac_status=$?
30989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990   (exit $ac_status); }; }; then
30991   ac_cv_search_clock_gettime="none required"
30992 else
30993   echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30995
30996 fi
30997 rm -f conftest.err conftest.$ac_objext \
30998       conftest$ac_exeext conftest.$ac_ext
30999 if test "$ac_cv_search_clock_gettime" = no; then
31000   for ac_lib in rt posix4; do
31001     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31002     cat >conftest.$ac_ext <<_ACEOF
31003 /* confdefs.h.  */
31004 _ACEOF
31005 cat confdefs.h >>conftest.$ac_ext
31006 cat >>conftest.$ac_ext <<_ACEOF
31007 /* end confdefs.h.  */
31008
31009 /* Override any gcc2 internal prototype to avoid an error.  */
31010 #ifdef __cplusplus
31011 extern "C"
31012 #endif
31013 /* We use char because int might match the return type of a gcc2
31014    builtin and then its argument prototype would still apply.  */
31015 char clock_gettime ();
31016 int
31017 main ()
31018 {
31019 clock_gettime ();
31020   ;
31021   return 0;
31022 }
31023 _ACEOF
31024 rm -f conftest.$ac_objext conftest$ac_exeext
31025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31026   (eval $ac_link) 2>conftest.er1
31027   ac_status=$?
31028   grep -v '^ *+' conftest.er1 >conftest.err
31029   rm -f conftest.er1
31030   cat conftest.err >&5
31031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032   (exit $ac_status); } &&
31033          { ac_try='test -z "$ac_c_werror_flag"
31034                          || test ! -s conftest.err'
31035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31036   (eval $ac_try) 2>&5
31037   ac_status=$?
31038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31039   (exit $ac_status); }; } &&
31040          { ac_try='test -s conftest$ac_exeext'
31041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31042   (eval $ac_try) 2>&5
31043   ac_status=$?
31044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045   (exit $ac_status); }; }; then
31046   ac_cv_search_clock_gettime="-l$ac_lib"
31047 break
31048 else
31049   echo "$as_me: failed program was:" >&5
31050 sed 's/^/| /' conftest.$ac_ext >&5
31051
31052 fi
31053 rm -f conftest.err conftest.$ac_objext \
31054       conftest$ac_exeext conftest.$ac_ext
31055   done
31056 fi
31057 LIBS=$ac_func_search_save_LIBS
31058 fi
31059 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
31060 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
31061 if test "$ac_cv_search_clock_gettime" != no; then
31062   test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
31063   test "$ac_cv_search_clock_gettime" = "none required" ||
31064                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
31065 fi
31066
31067
31068
31069
31070 for ac_func in clock_gettime clock_settime
31071 do
31072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31073 echo "$as_me:$LINENO: checking for $ac_func" >&5
31074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31075 if eval "test \"\${$as_ac_var+set}\" = set"; then
31076   echo $ECHO_N "(cached) $ECHO_C" >&6
31077 else
31078   cat >conftest.$ac_ext <<_ACEOF
31079 /* confdefs.h.  */
31080 _ACEOF
31081 cat confdefs.h >>conftest.$ac_ext
31082 cat >>conftest.$ac_ext <<_ACEOF
31083 /* end confdefs.h.  */
31084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31086 #define $ac_func innocuous_$ac_func
31087
31088 /* System header to define __stub macros and hopefully few prototypes,
31089     which can conflict with char $ac_func (); below.
31090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31091     <limits.h> exists even on freestanding compilers.  */
31092
31093 #ifdef __STDC__
31094 # include <limits.h>
31095 #else
31096 # include <assert.h>
31097 #endif
31098
31099 #undef $ac_func
31100
31101 /* Override any gcc2 internal prototype to avoid an error.  */
31102 #ifdef __cplusplus
31103 extern "C"
31104 {
31105 #endif
31106 /* We use char because int might match the return type of a gcc2
31107    builtin and then its argument prototype would still apply.  */
31108 char $ac_func ();
31109 /* The GNU C library defines this for functions which it implements
31110     to always fail with ENOSYS.  Some functions are actually named
31111     something starting with __ and the normal name is an alias.  */
31112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31113 choke me
31114 #else
31115 char (*f) () = $ac_func;
31116 #endif
31117 #ifdef __cplusplus
31118 }
31119 #endif
31120
31121 int
31122 main ()
31123 {
31124 return f != $ac_func;
31125   ;
31126   return 0;
31127 }
31128 _ACEOF
31129 rm -f conftest.$ac_objext conftest$ac_exeext
31130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31131   (eval $ac_link) 2>conftest.er1
31132   ac_status=$?
31133   grep -v '^ *+' conftest.er1 >conftest.err
31134   rm -f conftest.er1
31135   cat conftest.err >&5
31136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137   (exit $ac_status); } &&
31138          { ac_try='test -z "$ac_c_werror_flag"
31139                          || test ! -s conftest.err'
31140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31141   (eval $ac_try) 2>&5
31142   ac_status=$?
31143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144   (exit $ac_status); }; } &&
31145          { ac_try='test -s conftest$ac_exeext'
31146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31147   (eval $ac_try) 2>&5
31148   ac_status=$?
31149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150   (exit $ac_status); }; }; then
31151   eval "$as_ac_var=yes"
31152 else
31153   echo "$as_me: failed program was:" >&5
31154 sed 's/^/| /' conftest.$ac_ext >&5
31155
31156 eval "$as_ac_var=no"
31157 fi
31158 rm -f conftest.err conftest.$ac_objext \
31159       conftest$ac_exeext conftest.$ac_ext
31160 fi
31161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31163 if test `eval echo '${'$as_ac_var'}'` = yes; then
31164   cat >>confdefs.h <<_ACEOF
31165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31166 _ACEOF
31167
31168 fi
31169 done
31170
31171   LIBS=$fetish_saved_libs
31172
31173
31174  echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
31175 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
31176 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
31177   echo $ECHO_N "(cached) $ECHO_C" >&6
31178 else
31179   cat >conftest.$ac_ext <<_ACEOF
31180 /* confdefs.h.  */
31181 _ACEOF
31182 cat confdefs.h >>conftest.$ac_ext
31183 cat >>conftest.$ac_ext <<_ACEOF
31184 /* end confdefs.h.  */
31185 #include <time.h>
31186
31187 int
31188 main ()
31189 {
31190 static struct tm ac_aggr;
31191 if (ac_aggr.tm_gmtoff)
31192 return 0;
31193   ;
31194   return 0;
31195 }
31196 _ACEOF
31197 rm -f conftest.$ac_objext
31198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31199   (eval $ac_compile) 2>conftest.er1
31200   ac_status=$?
31201   grep -v '^ *+' conftest.er1 >conftest.err
31202   rm -f conftest.er1
31203   cat conftest.err >&5
31204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205   (exit $ac_status); } &&
31206          { ac_try='test -z "$ac_c_werror_flag"
31207                          || test ! -s conftest.err'
31208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31209   (eval $ac_try) 2>&5
31210   ac_status=$?
31211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212   (exit $ac_status); }; } &&
31213          { ac_try='test -s conftest.$ac_objext'
31214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31215   (eval $ac_try) 2>&5
31216   ac_status=$?
31217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218   (exit $ac_status); }; }; then
31219   ac_cv_member_struct_tm_tm_gmtoff=yes
31220 else
31221   echo "$as_me: failed program was:" >&5
31222 sed 's/^/| /' conftest.$ac_ext >&5
31223
31224 cat >conftest.$ac_ext <<_ACEOF
31225 /* confdefs.h.  */
31226 _ACEOF
31227 cat confdefs.h >>conftest.$ac_ext
31228 cat >>conftest.$ac_ext <<_ACEOF
31229 /* end confdefs.h.  */
31230 #include <time.h>
31231
31232 int
31233 main ()
31234 {
31235 static struct tm ac_aggr;
31236 if (sizeof ac_aggr.tm_gmtoff)
31237 return 0;
31238   ;
31239   return 0;
31240 }
31241 _ACEOF
31242 rm -f conftest.$ac_objext
31243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31244   (eval $ac_compile) 2>conftest.er1
31245   ac_status=$?
31246   grep -v '^ *+' conftest.er1 >conftest.err
31247   rm -f conftest.er1
31248   cat conftest.err >&5
31249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250   (exit $ac_status); } &&
31251          { ac_try='test -z "$ac_c_werror_flag"
31252                          || test ! -s conftest.err'
31253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31254   (eval $ac_try) 2>&5
31255   ac_status=$?
31256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31257   (exit $ac_status); }; } &&
31258          { ac_try='test -s conftest.$ac_objext'
31259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31260   (eval $ac_try) 2>&5
31261   ac_status=$?
31262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263   (exit $ac_status); }; }; then
31264   ac_cv_member_struct_tm_tm_gmtoff=yes
31265 else
31266   echo "$as_me: failed program was:" >&5
31267 sed 's/^/| /' conftest.$ac_ext >&5
31268
31269 ac_cv_member_struct_tm_tm_gmtoff=no
31270 fi
31271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31272 fi
31273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31274 fi
31275 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
31276 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
31277 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
31278
31279 cat >>confdefs.h <<\_ACEOF
31280 #define HAVE_TM_GMTOFF 1
31281 _ACEOF
31282
31283 fi
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293   :
31294
31295
31296
31297
31298
31299   echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31300 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
31301 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31302   echo $ECHO_N "(cached) $ECHO_C" >&6
31303 else
31304   cat >conftest.$ac_ext <<_ACEOF
31305 /* confdefs.h.  */
31306 _ACEOF
31307 cat confdefs.h >>conftest.$ac_ext
31308 cat >>conftest.$ac_ext <<_ACEOF
31309 /* end confdefs.h.  */
31310 #include <sys/types.h>
31311 #include <$ac_cv_struct_tm>
31312
31313
31314 int
31315 main ()
31316 {
31317 static struct tm ac_aggr;
31318 if (ac_aggr.tm_zone)
31319 return 0;
31320   ;
31321   return 0;
31322 }
31323 _ACEOF
31324 rm -f conftest.$ac_objext
31325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31326   (eval $ac_compile) 2>conftest.er1
31327   ac_status=$?
31328   grep -v '^ *+' conftest.er1 >conftest.err
31329   rm -f conftest.er1
31330   cat conftest.err >&5
31331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332   (exit $ac_status); } &&
31333          { ac_try='test -z "$ac_c_werror_flag"
31334                          || test ! -s conftest.err'
31335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31336   (eval $ac_try) 2>&5
31337   ac_status=$?
31338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339   (exit $ac_status); }; } &&
31340          { ac_try='test -s conftest.$ac_objext'
31341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31342   (eval $ac_try) 2>&5
31343   ac_status=$?
31344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31345   (exit $ac_status); }; }; then
31346   ac_cv_member_struct_tm_tm_zone=yes
31347 else
31348   echo "$as_me: failed program was:" >&5
31349 sed 's/^/| /' conftest.$ac_ext >&5
31350
31351 cat >conftest.$ac_ext <<_ACEOF
31352 /* confdefs.h.  */
31353 _ACEOF
31354 cat confdefs.h >>conftest.$ac_ext
31355 cat >>conftest.$ac_ext <<_ACEOF
31356 /* end confdefs.h.  */
31357 #include <sys/types.h>
31358 #include <$ac_cv_struct_tm>
31359
31360
31361 int
31362 main ()
31363 {
31364 static struct tm ac_aggr;
31365 if (sizeof ac_aggr.tm_zone)
31366 return 0;
31367   ;
31368   return 0;
31369 }
31370 _ACEOF
31371 rm -f conftest.$ac_objext
31372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31373   (eval $ac_compile) 2>conftest.er1
31374   ac_status=$?
31375   grep -v '^ *+' conftest.er1 >conftest.err
31376   rm -f conftest.er1
31377   cat conftest.err >&5
31378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379   (exit $ac_status); } &&
31380          { ac_try='test -z "$ac_c_werror_flag"
31381                          || test ! -s conftest.err'
31382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31383   (eval $ac_try) 2>&5
31384   ac_status=$?
31385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386   (exit $ac_status); }; } &&
31387          { ac_try='test -s conftest.$ac_objext'
31388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31389   (eval $ac_try) 2>&5
31390   ac_status=$?
31391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31392   (exit $ac_status); }; }; then
31393   ac_cv_member_struct_tm_tm_zone=yes
31394 else
31395   echo "$as_me: failed program was:" >&5
31396 sed 's/^/| /' conftest.$ac_ext >&5
31397
31398 ac_cv_member_struct_tm_tm_zone=no
31399 fi
31400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31401 fi
31402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31403 fi
31404 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31405 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
31406 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31407
31408 cat >>confdefs.h <<_ACEOF
31409 #define HAVE_STRUCT_TM_TM_ZONE 1
31410 _ACEOF
31411
31412
31413 fi
31414
31415 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31416
31417 cat >>confdefs.h <<\_ACEOF
31418 #define HAVE_TM_ZONE 1
31419 _ACEOF
31420
31421 else
31422   echo "$as_me:$LINENO: checking for tzname" >&5
31423 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
31424 if test "${ac_cv_var_tzname+set}" = set; then
31425   echo $ECHO_N "(cached) $ECHO_C" >&6
31426 else
31427   cat >conftest.$ac_ext <<_ACEOF
31428 /* confdefs.h.  */
31429 _ACEOF
31430 cat confdefs.h >>conftest.$ac_ext
31431 cat >>conftest.$ac_ext <<_ACEOF
31432 /* end confdefs.h.  */
31433 #include <time.h>
31434 #ifndef tzname /* For SGI.  */
31435 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
31436 #endif
31437
31438 int
31439 main ()
31440 {
31441 atoi(*tzname);
31442   ;
31443   return 0;
31444 }
31445 _ACEOF
31446 rm -f conftest.$ac_objext conftest$ac_exeext
31447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31448   (eval $ac_link) 2>conftest.er1
31449   ac_status=$?
31450   grep -v '^ *+' conftest.er1 >conftest.err
31451   rm -f conftest.er1
31452   cat conftest.err >&5
31453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454   (exit $ac_status); } &&
31455          { ac_try='test -z "$ac_c_werror_flag"
31456                          || test ! -s conftest.err'
31457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31458   (eval $ac_try) 2>&5
31459   ac_status=$?
31460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461   (exit $ac_status); }; } &&
31462          { ac_try='test -s conftest$ac_exeext'
31463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31464   (eval $ac_try) 2>&5
31465   ac_status=$?
31466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467   (exit $ac_status); }; }; then
31468   ac_cv_var_tzname=yes
31469 else
31470   echo "$as_me: failed program was:" >&5
31471 sed 's/^/| /' conftest.$ac_ext >&5
31472
31473 ac_cv_var_tzname=no
31474 fi
31475 rm -f conftest.err conftest.$ac_objext \
31476       conftest$ac_exeext conftest.$ac_ext
31477 fi
31478 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
31479 echo "${ECHO_T}$ac_cv_var_tzname" >&6
31480   if test $ac_cv_var_tzname = yes; then
31481
31482 cat >>confdefs.h <<\_ACEOF
31483 #define HAVE_TZNAME 1
31484 _ACEOF
31485
31486   fi
31487 fi
31488
31489
31490
31491
31492
31493   # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
31494   # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
31495   case " $LIBOBJS " in
31496   *" getndelim2.$ac_objext "* ) ;;
31497   *) case $LIBOBJS in
31498     "getndelim2.$ac_objext"   | \
31499   *" getndelim2.$ac_objext"   | \
31500     "getndelim2.$ac_objext "* | \
31501   *" getndelim2.$ac_objext "* ) ;;
31502   *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
31503 esac
31504 ;;
31505   esac
31506
31507
31508
31509
31510
31511
31512   :
31513
31514   if test -z "$GETOPT_H"; then
31515     GETOPT_H=
31516
31517 for ac_header in getopt.h
31518 do
31519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31521   echo "$as_me:$LINENO: checking for $ac_header" >&5
31522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31524   echo $ECHO_N "(cached) $ECHO_C" >&6
31525 fi
31526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31528 else
31529   # Is the header compilable?
31530 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31532 cat >conftest.$ac_ext <<_ACEOF
31533 /* confdefs.h.  */
31534 _ACEOF
31535 cat confdefs.h >>conftest.$ac_ext
31536 cat >>conftest.$ac_ext <<_ACEOF
31537 /* end confdefs.h.  */
31538 $ac_includes_default
31539 #include <$ac_header>
31540 _ACEOF
31541 rm -f conftest.$ac_objext
31542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31543   (eval $ac_compile) 2>conftest.er1
31544   ac_status=$?
31545   grep -v '^ *+' conftest.er1 >conftest.err
31546   rm -f conftest.er1
31547   cat conftest.err >&5
31548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549   (exit $ac_status); } &&
31550          { ac_try='test -z "$ac_c_werror_flag"
31551                          || test ! -s conftest.err'
31552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31553   (eval $ac_try) 2>&5
31554   ac_status=$?
31555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556   (exit $ac_status); }; } &&
31557          { ac_try='test -s conftest.$ac_objext'
31558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31559   (eval $ac_try) 2>&5
31560   ac_status=$?
31561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562   (exit $ac_status); }; }; then
31563   ac_header_compiler=yes
31564 else
31565   echo "$as_me: failed program was:" >&5
31566 sed 's/^/| /' conftest.$ac_ext >&5
31567
31568 ac_header_compiler=no
31569 fi
31570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31572 echo "${ECHO_T}$ac_header_compiler" >&6
31573
31574 # Is the header present?
31575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31577 cat >conftest.$ac_ext <<_ACEOF
31578 /* confdefs.h.  */
31579 _ACEOF
31580 cat confdefs.h >>conftest.$ac_ext
31581 cat >>conftest.$ac_ext <<_ACEOF
31582 /* end confdefs.h.  */
31583 #include <$ac_header>
31584 _ACEOF
31585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31586   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31587   ac_status=$?
31588   grep -v '^ *+' conftest.er1 >conftest.err
31589   rm -f conftest.er1
31590   cat conftest.err >&5
31591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592   (exit $ac_status); } >/dev/null; then
31593   if test -s conftest.err; then
31594     ac_cpp_err=$ac_c_preproc_warn_flag
31595     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31596   else
31597     ac_cpp_err=
31598   fi
31599 else
31600   ac_cpp_err=yes
31601 fi
31602 if test -z "$ac_cpp_err"; then
31603   ac_header_preproc=yes
31604 else
31605   echo "$as_me: failed program was:" >&5
31606 sed 's/^/| /' conftest.$ac_ext >&5
31607
31608   ac_header_preproc=no
31609 fi
31610 rm -f conftest.err conftest.$ac_ext
31611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31612 echo "${ECHO_T}$ac_header_preproc" >&6
31613
31614 # So?  What about this header?
31615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31616   yes:no: )
31617     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31619     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31621     ac_header_preproc=yes
31622     ;;
31623   no:yes:* )
31624     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31626     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31627 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31628     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31630     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31631 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31634     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31636     (
31637       cat <<\_ASBOX
31638 ## ------------------------------------ ##
31639 ## Report this to bug-coreutils@gnu.org ##
31640 ## ------------------------------------ ##
31641 _ASBOX
31642     ) |
31643       sed "s/^/$as_me: WARNING:     /" >&2
31644     ;;
31645 esac
31646 echo "$as_me:$LINENO: checking for $ac_header" >&5
31647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31649   echo $ECHO_N "(cached) $ECHO_C" >&6
31650 else
31651   eval "$as_ac_Header=\$ac_header_preproc"
31652 fi
31653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31655
31656 fi
31657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31658   cat >>confdefs.h <<_ACEOF
31659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31660 _ACEOF
31661
31662 else
31663   GETOPT_H=getopt.h
31664 fi
31665
31666 done
31667
31668
31669 for ac_func in getopt_long_only
31670 do
31671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31672 echo "$as_me:$LINENO: checking for $ac_func" >&5
31673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31674 if eval "test \"\${$as_ac_var+set}\" = set"; then
31675   echo $ECHO_N "(cached) $ECHO_C" >&6
31676 else
31677   cat >conftest.$ac_ext <<_ACEOF
31678 /* confdefs.h.  */
31679 _ACEOF
31680 cat confdefs.h >>conftest.$ac_ext
31681 cat >>conftest.$ac_ext <<_ACEOF
31682 /* end confdefs.h.  */
31683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31685 #define $ac_func innocuous_$ac_func
31686
31687 /* System header to define __stub macros and hopefully few prototypes,
31688     which can conflict with char $ac_func (); below.
31689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31690     <limits.h> exists even on freestanding compilers.  */
31691
31692 #ifdef __STDC__
31693 # include <limits.h>
31694 #else
31695 # include <assert.h>
31696 #endif
31697
31698 #undef $ac_func
31699
31700 /* Override any gcc2 internal prototype to avoid an error.  */
31701 #ifdef __cplusplus
31702 extern "C"
31703 {
31704 #endif
31705 /* We use char because int might match the return type of a gcc2
31706    builtin and then its argument prototype would still apply.  */
31707 char $ac_func ();
31708 /* The GNU C library defines this for functions which it implements
31709     to always fail with ENOSYS.  Some functions are actually named
31710     something starting with __ and the normal name is an alias.  */
31711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31712 choke me
31713 #else
31714 char (*f) () = $ac_func;
31715 #endif
31716 #ifdef __cplusplus
31717 }
31718 #endif
31719
31720 int
31721 main ()
31722 {
31723 return f != $ac_func;
31724   ;
31725   return 0;
31726 }
31727 _ACEOF
31728 rm -f conftest.$ac_objext conftest$ac_exeext
31729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31730   (eval $ac_link) 2>conftest.er1
31731   ac_status=$?
31732   grep -v '^ *+' conftest.er1 >conftest.err
31733   rm -f conftest.er1
31734   cat conftest.err >&5
31735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31736   (exit $ac_status); } &&
31737          { ac_try='test -z "$ac_c_werror_flag"
31738                          || test ! -s conftest.err'
31739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31740   (eval $ac_try) 2>&5
31741   ac_status=$?
31742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743   (exit $ac_status); }; } &&
31744          { ac_try='test -s conftest$ac_exeext'
31745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31746   (eval $ac_try) 2>&5
31747   ac_status=$?
31748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749   (exit $ac_status); }; }; then
31750   eval "$as_ac_var=yes"
31751 else
31752   echo "$as_me: failed program was:" >&5
31753 sed 's/^/| /' conftest.$ac_ext >&5
31754
31755 eval "$as_ac_var=no"
31756 fi
31757 rm -f conftest.err conftest.$ac_objext \
31758       conftest$ac_exeext conftest.$ac_ext
31759 fi
31760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31762 if test `eval echo '${'$as_ac_var'}'` = yes; then
31763   cat >>confdefs.h <<_ACEOF
31764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31765 _ACEOF
31766
31767 else
31768   GETOPT_H=getopt.h
31769 fi
31770 done
31771
31772
31773             echo "$as_me:$LINENO: checking whether optreset is declared" >&5
31774 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
31775 if test "${ac_cv_have_decl_optreset+set}" = set; then
31776   echo $ECHO_N "(cached) $ECHO_C" >&6
31777 else
31778   cat >conftest.$ac_ext <<_ACEOF
31779 /* confdefs.h.  */
31780 _ACEOF
31781 cat confdefs.h >>conftest.$ac_ext
31782 cat >>conftest.$ac_ext <<_ACEOF
31783 /* end confdefs.h.  */
31784 #include <getopt.h>
31785
31786 int
31787 main ()
31788 {
31789 #ifndef optreset
31790   char *p = (char *) optreset;
31791 #endif
31792
31793   ;
31794   return 0;
31795 }
31796 _ACEOF
31797 rm -f conftest.$ac_objext
31798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31799   (eval $ac_compile) 2>conftest.er1
31800   ac_status=$?
31801   grep -v '^ *+' conftest.er1 >conftest.err
31802   rm -f conftest.er1
31803   cat conftest.err >&5
31804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805   (exit $ac_status); } &&
31806          { ac_try='test -z "$ac_c_werror_flag"
31807                          || test ! -s conftest.err'
31808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31809   (eval $ac_try) 2>&5
31810   ac_status=$?
31811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812   (exit $ac_status); }; } &&
31813          { ac_try='test -s conftest.$ac_objext'
31814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31815   (eval $ac_try) 2>&5
31816   ac_status=$?
31817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818   (exit $ac_status); }; }; then
31819   ac_cv_have_decl_optreset=yes
31820 else
31821   echo "$as_me: failed program was:" >&5
31822 sed 's/^/| /' conftest.$ac_ext >&5
31823
31824 ac_cv_have_decl_optreset=no
31825 fi
31826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31827 fi
31828 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
31829 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
31830 if test $ac_cv_have_decl_optreset = yes; then
31831   GETOPT_H=getopt.h
31832 fi
31833
31834
31835     if test -n "$GETOPT_H"; then
31836
31837   GETOPT_H=getopt.h
31838   case $LIBOBJS in
31839     "getopt.$ac_objext"   | \
31840   *" getopt.$ac_objext"   | \
31841     "getopt.$ac_objext "* | \
31842   *" getopt.$ac_objext "* ) ;;
31843   *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
31844 esac
31845
31846   case $LIBOBJS in
31847     "getopt1.$ac_objext"   | \
31848   *" getopt1.$ac_objext"   | \
31849     "getopt1.$ac_objext "* | \
31850   *" getopt1.$ac_objext "* ) ;;
31851   *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
31852 esac
31853
31854
31855 cat >>confdefs.h <<\_ACEOF
31856 #define __GETOPT_PREFIX rpl_
31857 _ACEOF
31858
31859
31860
31861     fi
31862   fi
31863
31864
31865
31866   :
31867
31868
31869
31870
31871
31872
31873
31874
31875
31876 for ac_header in OS.h
31877 do
31878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31880   echo "$as_me:$LINENO: checking for $ac_header" >&5
31881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31883   echo $ECHO_N "(cached) $ECHO_C" >&6
31884 fi
31885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31887 else
31888   # Is the header compilable?
31889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31891 cat >conftest.$ac_ext <<_ACEOF
31892 /* confdefs.h.  */
31893 _ACEOF
31894 cat confdefs.h >>conftest.$ac_ext
31895 cat >>conftest.$ac_ext <<_ACEOF
31896 /* end confdefs.h.  */
31897 $ac_includes_default
31898 #include <$ac_header>
31899 _ACEOF
31900 rm -f conftest.$ac_objext
31901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31902   (eval $ac_compile) 2>conftest.er1
31903   ac_status=$?
31904   grep -v '^ *+' conftest.er1 >conftest.err
31905   rm -f conftest.er1
31906   cat conftest.err >&5
31907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908   (exit $ac_status); } &&
31909          { ac_try='test -z "$ac_c_werror_flag"
31910                          || test ! -s conftest.err'
31911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31912   (eval $ac_try) 2>&5
31913   ac_status=$?
31914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31915   (exit $ac_status); }; } &&
31916          { ac_try='test -s conftest.$ac_objext'
31917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31918   (eval $ac_try) 2>&5
31919   ac_status=$?
31920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921   (exit $ac_status); }; }; then
31922   ac_header_compiler=yes
31923 else
31924   echo "$as_me: failed program was:" >&5
31925 sed 's/^/| /' conftest.$ac_ext >&5
31926
31927 ac_header_compiler=no
31928 fi
31929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31931 echo "${ECHO_T}$ac_header_compiler" >&6
31932
31933 # Is the header present?
31934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31936 cat >conftest.$ac_ext <<_ACEOF
31937 /* confdefs.h.  */
31938 _ACEOF
31939 cat confdefs.h >>conftest.$ac_ext
31940 cat >>conftest.$ac_ext <<_ACEOF
31941 /* end confdefs.h.  */
31942 #include <$ac_header>
31943 _ACEOF
31944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31946   ac_status=$?
31947   grep -v '^ *+' conftest.er1 >conftest.err
31948   rm -f conftest.er1
31949   cat conftest.err >&5
31950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31951   (exit $ac_status); } >/dev/null; then
31952   if test -s conftest.err; then
31953     ac_cpp_err=$ac_c_preproc_warn_flag
31954     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31955   else
31956     ac_cpp_err=
31957   fi
31958 else
31959   ac_cpp_err=yes
31960 fi
31961 if test -z "$ac_cpp_err"; then
31962   ac_header_preproc=yes
31963 else
31964   echo "$as_me: failed program was:" >&5
31965 sed 's/^/| /' conftest.$ac_ext >&5
31966
31967   ac_header_preproc=no
31968 fi
31969 rm -f conftest.err conftest.$ac_ext
31970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31971 echo "${ECHO_T}$ac_header_preproc" >&6
31972
31973 # So?  What about this header?
31974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31975   yes:no: )
31976     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31980     ac_header_preproc=yes
31981     ;;
31982   no:yes:* )
31983     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31985     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31986 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31987     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31989     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31990 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31993     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31995     (
31996       cat <<\_ASBOX
31997 ## ------------------------------------ ##
31998 ## Report this to bug-coreutils@gnu.org ##
31999 ## ------------------------------------ ##
32000 _ASBOX
32001     ) |
32002       sed "s/^/$as_me: WARNING:     /" >&2
32003     ;;
32004 esac
32005 echo "$as_me:$LINENO: checking for $ac_header" >&5
32006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32008   echo $ECHO_N "(cached) $ECHO_C" >&6
32009 else
32010   eval "$as_ac_Header=\$ac_header_preproc"
32011 fi
32012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32014
32015 fi
32016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32017   cat >>confdefs.h <<_ACEOF
32018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32019 _ACEOF
32020
32021 fi
32022
32023 done
32024
32025
32026 for ac_func in getpagesize
32027 do
32028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32029 echo "$as_me:$LINENO: checking for $ac_func" >&5
32030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32031 if eval "test \"\${$as_ac_var+set}\" = set"; then
32032   echo $ECHO_N "(cached) $ECHO_C" >&6
32033 else
32034   cat >conftest.$ac_ext <<_ACEOF
32035 /* confdefs.h.  */
32036 _ACEOF
32037 cat confdefs.h >>conftest.$ac_ext
32038 cat >>conftest.$ac_ext <<_ACEOF
32039 /* end confdefs.h.  */
32040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32042 #define $ac_func innocuous_$ac_func
32043
32044 /* System header to define __stub macros and hopefully few prototypes,
32045     which can conflict with char $ac_func (); below.
32046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32047     <limits.h> exists even on freestanding compilers.  */
32048
32049 #ifdef __STDC__
32050 # include <limits.h>
32051 #else
32052 # include <assert.h>
32053 #endif
32054
32055 #undef $ac_func
32056
32057 /* Override any gcc2 internal prototype to avoid an error.  */
32058 #ifdef __cplusplus
32059 extern "C"
32060 {
32061 #endif
32062 /* We use char because int might match the return type of a gcc2
32063    builtin and then its argument prototype would still apply.  */
32064 char $ac_func ();
32065 /* The GNU C library defines this for functions which it implements
32066     to always fail with ENOSYS.  Some functions are actually named
32067     something starting with __ and the normal name is an alias.  */
32068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32069 choke me
32070 #else
32071 char (*f) () = $ac_func;
32072 #endif
32073 #ifdef __cplusplus
32074 }
32075 #endif
32076
32077 int
32078 main ()
32079 {
32080 return f != $ac_func;
32081   ;
32082   return 0;
32083 }
32084 _ACEOF
32085 rm -f conftest.$ac_objext conftest$ac_exeext
32086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32087   (eval $ac_link) 2>conftest.er1
32088   ac_status=$?
32089   grep -v '^ *+' conftest.er1 >conftest.err
32090   rm -f conftest.er1
32091   cat conftest.err >&5
32092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32093   (exit $ac_status); } &&
32094          { ac_try='test -z "$ac_c_werror_flag"
32095                          || test ! -s conftest.err'
32096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32097   (eval $ac_try) 2>&5
32098   ac_status=$?
32099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100   (exit $ac_status); }; } &&
32101          { ac_try='test -s conftest$ac_exeext'
32102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32103   (eval $ac_try) 2>&5
32104   ac_status=$?
32105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32106   (exit $ac_status); }; }; then
32107   eval "$as_ac_var=yes"
32108 else
32109   echo "$as_me: failed program was:" >&5
32110 sed 's/^/| /' conftest.$ac_ext >&5
32111
32112 eval "$as_ac_var=no"
32113 fi
32114 rm -f conftest.err conftest.$ac_objext \
32115       conftest$ac_exeext conftest.$ac_ext
32116 fi
32117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32119 if test `eval echo '${'$as_ac_var'}'` = yes; then
32120   cat >>confdefs.h <<_ACEOF
32121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32122 _ACEOF
32123
32124 fi
32125 done
32126
32127
32128
32129
32130 for ac_func in gettimeofday
32131 do
32132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32133 echo "$as_me:$LINENO: checking for $ac_func" >&5
32134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32135 if eval "test \"\${$as_ac_var+set}\" = set"; then
32136   echo $ECHO_N "(cached) $ECHO_C" >&6
32137 else
32138   cat >conftest.$ac_ext <<_ACEOF
32139 /* confdefs.h.  */
32140 _ACEOF
32141 cat confdefs.h >>conftest.$ac_ext
32142 cat >>conftest.$ac_ext <<_ACEOF
32143 /* end confdefs.h.  */
32144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32146 #define $ac_func innocuous_$ac_func
32147
32148 /* System header to define __stub macros and hopefully few prototypes,
32149     which can conflict with char $ac_func (); below.
32150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32151     <limits.h> exists even on freestanding compilers.  */
32152
32153 #ifdef __STDC__
32154 # include <limits.h>
32155 #else
32156 # include <assert.h>
32157 #endif
32158
32159 #undef $ac_func
32160
32161 /* Override any gcc2 internal prototype to avoid an error.  */
32162 #ifdef __cplusplus
32163 extern "C"
32164 {
32165 #endif
32166 /* We use char because int might match the return type of a gcc2
32167    builtin and then its argument prototype would still apply.  */
32168 char $ac_func ();
32169 /* The GNU C library defines this for functions which it implements
32170     to always fail with ENOSYS.  Some functions are actually named
32171     something starting with __ and the normal name is an alias.  */
32172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32173 choke me
32174 #else
32175 char (*f) () = $ac_func;
32176 #endif
32177 #ifdef __cplusplus
32178 }
32179 #endif
32180
32181 int
32182 main ()
32183 {
32184 return f != $ac_func;
32185   ;
32186   return 0;
32187 }
32188 _ACEOF
32189 rm -f conftest.$ac_objext conftest$ac_exeext
32190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32191   (eval $ac_link) 2>conftest.er1
32192   ac_status=$?
32193   grep -v '^ *+' conftest.er1 >conftest.err
32194   rm -f conftest.er1
32195   cat conftest.err >&5
32196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197   (exit $ac_status); } &&
32198          { ac_try='test -z "$ac_c_werror_flag"
32199                          || test ! -s conftest.err'
32200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32201   (eval $ac_try) 2>&5
32202   ac_status=$?
32203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204   (exit $ac_status); }; } &&
32205          { ac_try='test -s conftest$ac_exeext'
32206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32207   (eval $ac_try) 2>&5
32208   ac_status=$?
32209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210   (exit $ac_status); }; }; then
32211   eval "$as_ac_var=yes"
32212 else
32213   echo "$as_me: failed program was:" >&5
32214 sed 's/^/| /' conftest.$ac_ext >&5
32215
32216 eval "$as_ac_var=no"
32217 fi
32218 rm -f conftest.err conftest.$ac_objext \
32219       conftest$ac_exeext conftest.$ac_ext
32220 fi
32221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32223 if test `eval echo '${'$as_ac_var'}'` = yes; then
32224   cat >>confdefs.h <<_ACEOF
32225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32226 _ACEOF
32227
32228 fi
32229 done
32230
32231
32232
32233
32234
32235
32236   :
32237
32238
32239
32240
32241
32242
32243
32244
32245   :
32246
32247
32248
32249
32250
32251   echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
32252 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
32253 if test "${ac_cv_type_getgroups+set}" = set; then
32254   echo $ECHO_N "(cached) $ECHO_C" >&6
32255 else
32256   if test "$cross_compiling" = yes; then
32257   ac_cv_type_getgroups=cross
32258 else
32259   cat >conftest.$ac_ext <<_ACEOF
32260 /* confdefs.h.  */
32261 _ACEOF
32262 cat confdefs.h >>conftest.$ac_ext
32263 cat >>conftest.$ac_ext <<_ACEOF
32264 /* end confdefs.h.  */
32265 /* Thanks to Mike Rendell for this test.  */
32266 #include <sys/types.h>
32267 #define NGID 256
32268 #undef MAX
32269 #define MAX(x, y) ((x) > (y) ? (x) : (y))
32270
32271 int
32272 main ()
32273 {
32274   gid_t gidset[NGID];
32275   int i, n;
32276   union { gid_t gval; long lval; }  val;
32277
32278   val.lval = -1;
32279   for (i = 0; i < NGID; i++)
32280     gidset[i] = val.gval;
32281   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
32282                  gidset);
32283   /* Exit non-zero if getgroups seems to require an array of ints.  This
32284      happens when gid_t is short but getgroups modifies an array of ints.  */
32285   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
32286 }
32287 _ACEOF
32288 rm -f conftest$ac_exeext
32289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32290   (eval $ac_link) 2>&5
32291   ac_status=$?
32292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32295   (eval $ac_try) 2>&5
32296   ac_status=$?
32297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298   (exit $ac_status); }; }; then
32299   ac_cv_type_getgroups=gid_t
32300 else
32301   echo "$as_me: program exited with status $ac_status" >&5
32302 echo "$as_me: failed program was:" >&5
32303 sed 's/^/| /' conftest.$ac_ext >&5
32304
32305 ( exit $ac_status )
32306 ac_cv_type_getgroups=int
32307 fi
32308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32309 fi
32310 if test $ac_cv_type_getgroups = cross; then
32311         cat >conftest.$ac_ext <<_ACEOF
32312 /* confdefs.h.  */
32313 _ACEOF
32314 cat confdefs.h >>conftest.$ac_ext
32315 cat >>conftest.$ac_ext <<_ACEOF
32316 /* end confdefs.h.  */
32317 #include <unistd.h>
32318
32319 _ACEOF
32320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32321   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
32322   ac_cv_type_getgroups=gid_t
32323 else
32324   ac_cv_type_getgroups=int
32325 fi
32326 rm -f conftest*
32327
32328 fi
32329 fi
32330 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
32331 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
32332
32333 cat >>confdefs.h <<_ACEOF
32334 #define GETGROUPS_T $ac_cv_type_getgroups
32335 _ACEOF
32336
32337
32338
32339 :
32340
32341
32342
32343
32344
32345
32346
32347     :
32348
32349
32350
32351   :
32352
32353
32354
32355
32356
32357
32358
32359
32360
32361
32362
32363   :
32364
32365   :
32366   :
32367   :
32368
32369
32370     :
32371
32372
32373
32374 # Check whether --with-afs or --without-afs was given.
32375 if test "${with_afs+set}" = set; then
32376   withval="$with_afs"
32377   test "$withval" = no || with_afs=yes
32378 else
32379   with_afs=no
32380 fi;
32381     if test "$with_afs" = yes; then
32382
32383 cat >>confdefs.h <<\_ACEOF
32384 #define AFS 1
32385 _ACEOF
32386
32387     fi
32388
32389
32390
32391
32392   :
32393
32394
32395
32396
32397
32398
32399
32400
32401
32402
32403 for ac_header in wchar.h
32404 do
32405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32407   echo "$as_me:$LINENO: checking for $ac_header" >&5
32408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32410   echo $ECHO_N "(cached) $ECHO_C" >&6
32411 fi
32412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32414 else
32415   # Is the header compilable?
32416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32418 cat >conftest.$ac_ext <<_ACEOF
32419 /* confdefs.h.  */
32420 _ACEOF
32421 cat confdefs.h >>conftest.$ac_ext
32422 cat >>conftest.$ac_ext <<_ACEOF
32423 /* end confdefs.h.  */
32424 $ac_includes_default
32425 #include <$ac_header>
32426 _ACEOF
32427 rm -f conftest.$ac_objext
32428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32429   (eval $ac_compile) 2>conftest.er1
32430   ac_status=$?
32431   grep -v '^ *+' conftest.er1 >conftest.err
32432   rm -f conftest.er1
32433   cat conftest.err >&5
32434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32435   (exit $ac_status); } &&
32436          { ac_try='test -z "$ac_c_werror_flag"
32437                          || test ! -s conftest.err'
32438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32439   (eval $ac_try) 2>&5
32440   ac_status=$?
32441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442   (exit $ac_status); }; } &&
32443          { ac_try='test -s conftest.$ac_objext'
32444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32445   (eval $ac_try) 2>&5
32446   ac_status=$?
32447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448   (exit $ac_status); }; }; then
32449   ac_header_compiler=yes
32450 else
32451   echo "$as_me: failed program was:" >&5
32452 sed 's/^/| /' conftest.$ac_ext >&5
32453
32454 ac_header_compiler=no
32455 fi
32456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32458 echo "${ECHO_T}$ac_header_compiler" >&6
32459
32460 # Is the header present?
32461 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32463 cat >conftest.$ac_ext <<_ACEOF
32464 /* confdefs.h.  */
32465 _ACEOF
32466 cat confdefs.h >>conftest.$ac_ext
32467 cat >>conftest.$ac_ext <<_ACEOF
32468 /* end confdefs.h.  */
32469 #include <$ac_header>
32470 _ACEOF
32471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32472   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32473   ac_status=$?
32474   grep -v '^ *+' conftest.er1 >conftest.err
32475   rm -f conftest.er1
32476   cat conftest.err >&5
32477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478   (exit $ac_status); } >/dev/null; then
32479   if test -s conftest.err; then
32480     ac_cpp_err=$ac_c_preproc_warn_flag
32481     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32482   else
32483     ac_cpp_err=
32484   fi
32485 else
32486   ac_cpp_err=yes
32487 fi
32488 if test -z "$ac_cpp_err"; then
32489   ac_header_preproc=yes
32490 else
32491   echo "$as_me: failed program was:" >&5
32492 sed 's/^/| /' conftest.$ac_ext >&5
32493
32494   ac_header_preproc=no
32495 fi
32496 rm -f conftest.err conftest.$ac_ext
32497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32498 echo "${ECHO_T}$ac_header_preproc" >&6
32499
32500 # So?  What about this header?
32501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32502   yes:no: )
32503     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32507     ac_header_preproc=yes
32508     ;;
32509   no:yes:* )
32510     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32512     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32513 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32514     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32516     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32517 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32520     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32522     (
32523       cat <<\_ASBOX
32524 ## ------------------------------------ ##
32525 ## Report this to bug-coreutils@gnu.org ##
32526 ## ------------------------------------ ##
32527 _ASBOX
32528     ) |
32529       sed "s/^/$as_me: WARNING:     /" >&2
32530     ;;
32531 esac
32532 echo "$as_me:$LINENO: checking for $ac_header" >&5
32533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32535   echo $ECHO_N "(cached) $ECHO_C" >&6
32536 else
32537   eval "$as_ac_Header=\$ac_header_preproc"
32538 fi
32539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32541
32542 fi
32543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32544   cat >>confdefs.h <<_ACEOF
32545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32546 _ACEOF
32547
32548 fi
32549
32550 done
32551
32552
32553
32554
32555 for ac_header in wctype.h
32556 do
32557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32559   echo "$as_me:$LINENO: checking for $ac_header" >&5
32560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32562   echo $ECHO_N "(cached) $ECHO_C" >&6
32563 fi
32564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32566 else
32567   # Is the header compilable?
32568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32570 cat >conftest.$ac_ext <<_ACEOF
32571 /* confdefs.h.  */
32572 _ACEOF
32573 cat confdefs.h >>conftest.$ac_ext
32574 cat >>conftest.$ac_ext <<_ACEOF
32575 /* end confdefs.h.  */
32576 $ac_includes_default
32577 #include <$ac_header>
32578 _ACEOF
32579 rm -f conftest.$ac_objext
32580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32581   (eval $ac_compile) 2>conftest.er1
32582   ac_status=$?
32583   grep -v '^ *+' conftest.er1 >conftest.err
32584   rm -f conftest.er1
32585   cat conftest.err >&5
32586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587   (exit $ac_status); } &&
32588          { ac_try='test -z "$ac_c_werror_flag"
32589                          || test ! -s conftest.err'
32590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32591   (eval $ac_try) 2>&5
32592   ac_status=$?
32593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594   (exit $ac_status); }; } &&
32595          { ac_try='test -s conftest.$ac_objext'
32596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32597   (eval $ac_try) 2>&5
32598   ac_status=$?
32599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32600   (exit $ac_status); }; }; then
32601   ac_header_compiler=yes
32602 else
32603   echo "$as_me: failed program was:" >&5
32604 sed 's/^/| /' conftest.$ac_ext >&5
32605
32606 ac_header_compiler=no
32607 fi
32608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32609 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32610 echo "${ECHO_T}$ac_header_compiler" >&6
32611
32612 # Is the header present?
32613 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32615 cat >conftest.$ac_ext <<_ACEOF
32616 /* confdefs.h.  */
32617 _ACEOF
32618 cat confdefs.h >>conftest.$ac_ext
32619 cat >>conftest.$ac_ext <<_ACEOF
32620 /* end confdefs.h.  */
32621 #include <$ac_header>
32622 _ACEOF
32623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32624   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32625   ac_status=$?
32626   grep -v '^ *+' conftest.er1 >conftest.err
32627   rm -f conftest.er1
32628   cat conftest.err >&5
32629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630   (exit $ac_status); } >/dev/null; then
32631   if test -s conftest.err; then
32632     ac_cpp_err=$ac_c_preproc_warn_flag
32633     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32634   else
32635     ac_cpp_err=
32636   fi
32637 else
32638   ac_cpp_err=yes
32639 fi
32640 if test -z "$ac_cpp_err"; then
32641   ac_header_preproc=yes
32642 else
32643   echo "$as_me: failed program was:" >&5
32644 sed 's/^/| /' conftest.$ac_ext >&5
32645
32646   ac_header_preproc=no
32647 fi
32648 rm -f conftest.err conftest.$ac_ext
32649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32650 echo "${ECHO_T}$ac_header_preproc" >&6
32651
32652 # So?  What about this header?
32653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32654   yes:no: )
32655     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32659     ac_header_preproc=yes
32660     ;;
32661   no:yes:* )
32662     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32664     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32665 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32666     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32668     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32669 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32672     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32674     (
32675       cat <<\_ASBOX
32676 ## ------------------------------------ ##
32677 ## Report this to bug-coreutils@gnu.org ##
32678 ## ------------------------------------ ##
32679 _ASBOX
32680     ) |
32681       sed "s/^/$as_me: WARNING:     /" >&2
32682     ;;
32683 esac
32684 echo "$as_me:$LINENO: checking for $ac_header" >&5
32685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32687   echo $ECHO_N "(cached) $ECHO_C" >&6
32688 else
32689   eval "$as_ac_Header=\$ac_header_preproc"
32690 fi
32691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32693
32694 fi
32695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32696   cat >>confdefs.h <<_ACEOF
32697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32698 _ACEOF
32699
32700 fi
32701
32702 done
32703
32704
32705
32706
32707 for ac_func in iswprint
32708 do
32709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32710 echo "$as_me:$LINENO: checking for $ac_func" >&5
32711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32712 if eval "test \"\${$as_ac_var+set}\" = set"; then
32713   echo $ECHO_N "(cached) $ECHO_C" >&6
32714 else
32715   cat >conftest.$ac_ext <<_ACEOF
32716 /* confdefs.h.  */
32717 _ACEOF
32718 cat confdefs.h >>conftest.$ac_ext
32719 cat >>conftest.$ac_ext <<_ACEOF
32720 /* end confdefs.h.  */
32721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32723 #define $ac_func innocuous_$ac_func
32724
32725 /* System header to define __stub macros and hopefully few prototypes,
32726     which can conflict with char $ac_func (); below.
32727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32728     <limits.h> exists even on freestanding compilers.  */
32729
32730 #ifdef __STDC__
32731 # include <limits.h>
32732 #else
32733 # include <assert.h>
32734 #endif
32735
32736 #undef $ac_func
32737
32738 /* Override any gcc2 internal prototype to avoid an error.  */
32739 #ifdef __cplusplus
32740 extern "C"
32741 {
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
32755 }
32756 #endif
32757
32758 int
32759 main ()
32760 {
32761 return f != $ac_func;
32762   ;
32763   return 0;
32764 }
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>conftest.er1
32769   ac_status=$?
32770   grep -v '^ *+' conftest.er1 >conftest.err
32771   rm -f conftest.er1
32772   cat conftest.err >&5
32773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774   (exit $ac_status); } &&
32775          { ac_try='test -z "$ac_c_werror_flag"
32776                          || test ! -s conftest.err'
32777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32778   (eval $ac_try) 2>&5
32779   ac_status=$?
32780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781   (exit $ac_status); }; } &&
32782          { ac_try='test -s conftest$ac_exeext'
32783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32784   (eval $ac_try) 2>&5
32785   ac_status=$?
32786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32787   (exit $ac_status); }; }; then
32788   eval "$as_ac_var=yes"
32789 else
32790   echo "$as_me: failed program was:" >&5
32791 sed 's/^/| /' conftest.$ac_ext >&5
32792
32793 eval "$as_ac_var=no"
32794 fi
32795 rm -f conftest.err conftest.$ac_objext \
32796       conftest$ac_exeext conftest.$ac_ext
32797 fi
32798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32800 if test `eval echo '${'$as_ac_var'}'` = yes; then
32801   cat >>confdefs.h <<_ACEOF
32802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32803 _ACEOF
32804
32805 fi
32806 done
32807
32808
32809
32810
32811 for ac_func in mbsinit
32812 do
32813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32814 echo "$as_me:$LINENO: checking for $ac_func" >&5
32815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32816 if eval "test \"\${$as_ac_var+set}\" = set"; then
32817   echo $ECHO_N "(cached) $ECHO_C" >&6
32818 else
32819   cat >conftest.$ac_ext <<_ACEOF
32820 /* confdefs.h.  */
32821 _ACEOF
32822 cat confdefs.h >>conftest.$ac_ext
32823 cat >>conftest.$ac_ext <<_ACEOF
32824 /* end confdefs.h.  */
32825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32827 #define $ac_func innocuous_$ac_func
32828
32829 /* System header to define __stub macros and hopefully few prototypes,
32830     which can conflict with char $ac_func (); below.
32831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32832     <limits.h> exists even on freestanding compilers.  */
32833
32834 #ifdef __STDC__
32835 # include <limits.h>
32836 #else
32837 # include <assert.h>
32838 #endif
32839
32840 #undef $ac_func
32841
32842 /* Override any gcc2 internal prototype to avoid an error.  */
32843 #ifdef __cplusplus
32844 extern "C"
32845 {
32846 #endif
32847 /* We use char because int might match the return type of a gcc2
32848    builtin and then its argument prototype would still apply.  */
32849 char $ac_func ();
32850 /* The GNU C library defines this for functions which it implements
32851     to always fail with ENOSYS.  Some functions are actually named
32852     something starting with __ and the normal name is an alias.  */
32853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32854 choke me
32855 #else
32856 char (*f) () = $ac_func;
32857 #endif
32858 #ifdef __cplusplus
32859 }
32860 #endif
32861
32862 int
32863 main ()
32864 {
32865 return f != $ac_func;
32866   ;
32867   return 0;
32868 }
32869 _ACEOF
32870 rm -f conftest.$ac_objext conftest$ac_exeext
32871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32872   (eval $ac_link) 2>conftest.er1
32873   ac_status=$?
32874   grep -v '^ *+' conftest.er1 >conftest.err
32875   rm -f conftest.er1
32876   cat conftest.err >&5
32877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878   (exit $ac_status); } &&
32879          { ac_try='test -z "$ac_c_werror_flag"
32880                          || test ! -s conftest.err'
32881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32882   (eval $ac_try) 2>&5
32883   ac_status=$?
32884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885   (exit $ac_status); }; } &&
32886          { ac_try='test -s conftest$ac_exeext'
32887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32888   (eval $ac_try) 2>&5
32889   ac_status=$?
32890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891   (exit $ac_status); }; }; then
32892   eval "$as_ac_var=yes"
32893 else
32894   echo "$as_me: failed program was:" >&5
32895 sed 's/^/| /' conftest.$ac_ext >&5
32896
32897 eval "$as_ac_var=no"
32898 fi
32899 rm -f conftest.err conftest.$ac_objext \
32900       conftest$ac_exeext conftest.$ac_ext
32901 fi
32902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32904 if test `eval echo '${'$as_ac_var'}'` = yes; then
32905   cat >>confdefs.h <<_ACEOF
32906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32907 _ACEOF
32908
32909 fi
32910 done
32911
32912
32913
32914
32915   :
32916
32917
32918
32919
32920
32921
32922
32923
32924
32925   :
32926
32927
32928
32929
32930
32931
32932
32933
32934
32935
32936
32937
32938
32939 for ac_func in iswcntrl wcwidth
32940 do
32941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32942 echo "$as_me:$LINENO: checking for $ac_func" >&5
32943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32944 if eval "test \"\${$as_ac_var+set}\" = set"; then
32945   echo $ECHO_N "(cached) $ECHO_C" >&6
32946 else
32947   cat >conftest.$ac_ext <<_ACEOF
32948 /* confdefs.h.  */
32949 _ACEOF
32950 cat confdefs.h >>conftest.$ac_ext
32951 cat >>conftest.$ac_ext <<_ACEOF
32952 /* end confdefs.h.  */
32953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32955 #define $ac_func innocuous_$ac_func
32956
32957 /* System header to define __stub macros and hopefully few prototypes,
32958     which can conflict with char $ac_func (); below.
32959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32960     <limits.h> exists even on freestanding compilers.  */
32961
32962 #ifdef __STDC__
32963 # include <limits.h>
32964 #else
32965 # include <assert.h>
32966 #endif
32967
32968 #undef $ac_func
32969
32970 /* Override any gcc2 internal prototype to avoid an error.  */
32971 #ifdef __cplusplus
32972 extern "C"
32973 {
32974 #endif
32975 /* We use char because int might match the return type of a gcc2
32976    builtin and then its argument prototype would still apply.  */
32977 char $ac_func ();
32978 /* The GNU C library defines this for functions which it implements
32979     to always fail with ENOSYS.  Some functions are actually named
32980     something starting with __ and the normal name is an alias.  */
32981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32982 choke me
32983 #else
32984 char (*f) () = $ac_func;
32985 #endif
32986 #ifdef __cplusplus
32987 }
32988 #endif
32989
32990 int
32991 main ()
32992 {
32993 return f != $ac_func;
32994   ;
32995   return 0;
32996 }
32997 _ACEOF
32998 rm -f conftest.$ac_objext conftest$ac_exeext
32999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33000   (eval $ac_link) 2>conftest.er1
33001   ac_status=$?
33002   grep -v '^ *+' conftest.er1 >conftest.err
33003   rm -f conftest.er1
33004   cat conftest.err >&5
33005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006   (exit $ac_status); } &&
33007          { ac_try='test -z "$ac_c_werror_flag"
33008                          || test ! -s conftest.err'
33009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33010   (eval $ac_try) 2>&5
33011   ac_status=$?
33012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013   (exit $ac_status); }; } &&
33014          { ac_try='test -s conftest$ac_exeext'
33015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33016   (eval $ac_try) 2>&5
33017   ac_status=$?
33018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019   (exit $ac_status); }; }; then
33020   eval "$as_ac_var=yes"
33021 else
33022   echo "$as_me: failed program was:" >&5
33023 sed 's/^/| /' conftest.$ac_ext >&5
33024
33025 eval "$as_ac_var=no"
33026 fi
33027 rm -f conftest.err conftest.$ac_objext \
33028       conftest$ac_exeext conftest.$ac_ext
33029 fi
33030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33032 if test `eval echo '${'$as_ac_var'}'` = yes; then
33033   cat >>confdefs.h <<_ACEOF
33034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33035 _ACEOF
33036
33037 fi
33038 done
33039
33040
33041   echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
33042 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
33043 if test "${gl_cv_func_mbrtowc+set}" = set; then
33044   echo $ECHO_N "(cached) $ECHO_C" >&6
33045 else
33046   cat >conftest.$ac_ext <<_ACEOF
33047 /* confdefs.h.  */
33048 _ACEOF
33049 cat confdefs.h >>conftest.$ac_ext
33050 cat >>conftest.$ac_ext <<_ACEOF
33051 /* end confdefs.h.  */
33052 #include <wchar.h>
33053 int
33054 main ()
33055 {
33056 mbstate_t state; return ! (sizeof state && mbrtowc);
33057   ;
33058   return 0;
33059 }
33060 _ACEOF
33061 rm -f conftest.$ac_objext conftest$ac_exeext
33062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33063   (eval $ac_link) 2>conftest.er1
33064   ac_status=$?
33065   grep -v '^ *+' conftest.er1 >conftest.err
33066   rm -f conftest.er1
33067   cat conftest.err >&5
33068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069   (exit $ac_status); } &&
33070          { ac_try='test -z "$ac_c_werror_flag"
33071                          || test ! -s conftest.err'
33072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33073   (eval $ac_try) 2>&5
33074   ac_status=$?
33075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076   (exit $ac_status); }; } &&
33077          { ac_try='test -s conftest$ac_exeext'
33078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33079   (eval $ac_try) 2>&5
33080   ac_status=$?
33081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33082   (exit $ac_status); }; }; then
33083   gl_cv_func_mbrtowc=yes
33084 else
33085   echo "$as_me: failed program was:" >&5
33086 sed 's/^/| /' conftest.$ac_ext >&5
33087
33088 gl_cv_func_mbrtowc=no
33089 fi
33090 rm -f conftest.err conftest.$ac_objext \
33091       conftest$ac_exeext conftest.$ac_ext
33092 fi
33093 echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
33094 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6
33095   if test $gl_cv_func_mbrtowc = yes; then
33096
33097 cat >>confdefs.h <<\_ACEOF
33098 #define HAVE_MBRTOWC 1
33099 _ACEOF
33100
33101   fi
33102
33103
33104   echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
33105 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
33106 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
33107   echo $ECHO_N "(cached) $ECHO_C" >&6
33108 else
33109   cat >conftest.$ac_ext <<_ACEOF
33110 /* confdefs.h.  */
33111 _ACEOF
33112 cat confdefs.h >>conftest.$ac_ext
33113 cat >>conftest.$ac_ext <<_ACEOF
33114 /* end confdefs.h.  */
33115
33116 /* AIX 3.2.5 declares wcwidth in <string.h>. */
33117 #if HAVE_STRING_H
33118 # include <string.h>
33119 #endif
33120 #if HAVE_WCHAR_H
33121 # include <wchar.h>
33122 #endif
33123
33124 int
33125 main ()
33126 {
33127
33128 #ifndef wcwidth
33129   char *p = (char *) wcwidth;
33130 #endif
33131
33132   ;
33133   return 0;
33134 }
33135 _ACEOF
33136 rm -f conftest.$ac_objext
33137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33138   (eval $ac_compile) 2>conftest.er1
33139   ac_status=$?
33140   grep -v '^ *+' conftest.er1 >conftest.err
33141   rm -f conftest.er1
33142   cat conftest.err >&5
33143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144   (exit $ac_status); } &&
33145          { ac_try='test -z "$ac_c_werror_flag"
33146                          || test ! -s conftest.err'
33147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33148   (eval $ac_try) 2>&5
33149   ac_status=$?
33150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151   (exit $ac_status); }; } &&
33152          { ac_try='test -s conftest.$ac_objext'
33153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33154   (eval $ac_try) 2>&5
33155   ac_status=$?
33156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33157   (exit $ac_status); }; }; then
33158   ac_cv_have_decl_wcwidth=yes
33159 else
33160   echo "$as_me: failed program was:" >&5
33161 sed 's/^/| /' conftest.$ac_ext >&5
33162
33163 ac_cv_have_decl_wcwidth=no
33164 fi
33165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33166 fi
33167 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
33168 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
33169   if test $ac_cv_have_decl_wcwidth = yes; then
33170     ac_val=1
33171   else
33172     ac_val=0
33173   fi
33174
33175 cat >>confdefs.h <<_ACEOF
33176 #define HAVE_DECL_WCWIDTH $ac_val
33177 _ACEOF
33178
33179
33180       echo "$as_me:$LINENO: checking whether mbswidth is declared in <wchar.h>" >&5
33181 echo $ECHO_N "checking whether mbswidth is declared in <wchar.h>... $ECHO_C" >&6
33182 if test "${ac_cv_have_decl_mbswidth+set}" = set; then
33183   echo $ECHO_N "(cached) $ECHO_C" >&6
33184 else
33185   cat >conftest.$ac_ext <<_ACEOF
33186 /* confdefs.h.  */
33187 _ACEOF
33188 cat confdefs.h >>conftest.$ac_ext
33189 cat >>conftest.$ac_ext <<_ACEOF
33190 /* end confdefs.h.  */
33191
33192 #if HAVE_WCHAR_H
33193 # include <wchar.h>
33194 #endif
33195
33196 int
33197 main ()
33198 {
33199
33200   char *p = (char *) mbswidth;
33201
33202   ;
33203   return 0;
33204 }
33205 _ACEOF
33206 rm -f conftest.$ac_objext
33207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33208   (eval $ac_compile) 2>conftest.er1
33209   ac_status=$?
33210   grep -v '^ *+' conftest.er1 >conftest.err
33211   rm -f conftest.er1
33212   cat conftest.err >&5
33213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33214   (exit $ac_status); } &&
33215          { ac_try='test -z "$ac_c_werror_flag"
33216                          || test ! -s conftest.err'
33217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33218   (eval $ac_try) 2>&5
33219   ac_status=$?
33220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221   (exit $ac_status); }; } &&
33222          { ac_try='test -s conftest.$ac_objext'
33223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33224   (eval $ac_try) 2>&5
33225   ac_status=$?
33226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33227   (exit $ac_status); }; }; then
33228   ac_cv_have_decl_mbswidth=yes
33229 else
33230   echo "$as_me: failed program was:" >&5
33231 sed 's/^/| /' conftest.$ac_ext >&5
33232
33233 ac_cv_have_decl_mbswidth=no
33234 fi
33235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33236 fi
33237 echo "$as_me:$LINENO: result: $ac_cv_have_decl_mbswidth" >&5
33238 echo "${ECHO_T}$ac_cv_have_decl_mbswidth" >&6
33239   if test $ac_cv_have_decl_mbswidth = yes; then
33240     ac_val=1
33241   else
33242     ac_val=0
33243   fi
33244
33245 cat >>confdefs.h <<_ACEOF
33246 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
33247 _ACEOF
33248
33249
33250   echo "$as_me:$LINENO: checking for mbstate_t" >&5
33251 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33252 if test "${ac_cv_type_mbstate_t+set}" = set; then
33253   echo $ECHO_N "(cached) $ECHO_C" >&6
33254 else
33255   cat >conftest.$ac_ext <<_ACEOF
33256 /* confdefs.h.  */
33257 _ACEOF
33258 cat confdefs.h >>conftest.$ac_ext
33259 cat >>conftest.$ac_ext <<_ACEOF
33260 /* end confdefs.h.  */
33261 $ac_includes_default
33262 #           include <wchar.h>
33263 int
33264 main ()
33265 {
33266 mbstate_t x; return sizeof x;
33267   ;
33268   return 0;
33269 }
33270 _ACEOF
33271 rm -f conftest.$ac_objext
33272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33273   (eval $ac_compile) 2>conftest.er1
33274   ac_status=$?
33275   grep -v '^ *+' conftest.er1 >conftest.err
33276   rm -f conftest.er1
33277   cat conftest.err >&5
33278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279   (exit $ac_status); } &&
33280          { ac_try='test -z "$ac_c_werror_flag"
33281                          || test ! -s conftest.err'
33282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33283   (eval $ac_try) 2>&5
33284   ac_status=$?
33285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33286   (exit $ac_status); }; } &&
33287          { ac_try='test -s conftest.$ac_objext'
33288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33289   (eval $ac_try) 2>&5
33290   ac_status=$?
33291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292   (exit $ac_status); }; }; then
33293   ac_cv_type_mbstate_t=yes
33294 else
33295   echo "$as_me: failed program was:" >&5
33296 sed 's/^/| /' conftest.$ac_ext >&5
33297
33298 ac_cv_type_mbstate_t=no
33299 fi
33300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33301 fi
33302 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33303 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33304    if test $ac_cv_type_mbstate_t = yes; then
33305
33306 cat >>confdefs.h <<\_ACEOF
33307 #define HAVE_MBSTATE_T 1
33308 _ACEOF
33309
33310    else
33311
33312 cat >>confdefs.h <<\_ACEOF
33313 #define mbstate_t int
33314 _ACEOF
33315
33316    fi
33317
33318
33319
33320
33321
33322   :
33323
33324 echo "$as_me:$LINENO: checking for working memcmp" >&5
33325 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
33326 if test "${ac_cv_func_memcmp_working+set}" = set; then
33327   echo $ECHO_N "(cached) $ECHO_C" >&6
33328 else
33329   if test "$cross_compiling" = yes; then
33330   ac_cv_func_memcmp_working=no
33331 else
33332   cat >conftest.$ac_ext <<_ACEOF
33333 /* confdefs.h.  */
33334 _ACEOF
33335 cat confdefs.h >>conftest.$ac_ext
33336 cat >>conftest.$ac_ext <<_ACEOF
33337 /* end confdefs.h.  */
33338 $ac_includes_default
33339 int
33340 main ()
33341 {
33342
33343   /* Some versions of memcmp are not 8-bit clean.  */
33344   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
33345   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
33346     exit (1);
33347
33348   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
33349      or more and with at least one buffer not starting on a 4-byte boundary.
33350      William Lewis provided this test program.   */
33351   {
33352     char foo[21];
33353     char bar[21];
33354     int i;
33355     for (i = 0; i < 4; i++)
33356       {
33357         char *a = foo + i;
33358         char *b = bar + i;
33359         strcpy (a, "--------01111111");
33360         strcpy (b, "--------10000000");
33361         if (memcmp (a, b, 16) >= 0)
33362           exit (1);
33363       }
33364     exit (0);
33365   }
33366
33367   ;
33368   return 0;
33369 }
33370 _ACEOF
33371 rm -f conftest$ac_exeext
33372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33373   (eval $ac_link) 2>&5
33374   ac_status=$?
33375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33378   (eval $ac_try) 2>&5
33379   ac_status=$?
33380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33381   (exit $ac_status); }; }; then
33382   ac_cv_func_memcmp_working=yes
33383 else
33384   echo "$as_me: program exited with status $ac_status" >&5
33385 echo "$as_me: failed program was:" >&5
33386 sed 's/^/| /' conftest.$ac_ext >&5
33387
33388 ( exit $ac_status )
33389 ac_cv_func_memcmp_working=no
33390 fi
33391 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33392 fi
33393 fi
33394 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
33395 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
33396 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
33397     "memcmp.$ac_objext"   | \
33398   *" memcmp.$ac_objext"   | \
33399     "memcmp.$ac_objext "* | \
33400   *" memcmp.$ac_objext "* ) ;;
33401   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
33402 esac
33403
33404
33405
33406
33407   echo "$as_me:$LINENO: checking for working strcoll" >&5
33408 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
33409 if test "${ac_cv_func_strcoll_works+set}" = set; then
33410   echo $ECHO_N "(cached) $ECHO_C" >&6
33411 else
33412   if test "$cross_compiling" = yes; then
33413   ac_cv_func_strcoll_works=no
33414 else
33415   cat >conftest.$ac_ext <<_ACEOF
33416 /* confdefs.h.  */
33417 _ACEOF
33418 cat confdefs.h >>conftest.$ac_ext
33419 cat >>conftest.$ac_ext <<_ACEOF
33420 /* end confdefs.h.  */
33421 $ac_includes_default
33422 int
33423 main ()
33424 {
33425 exit (strcoll ("abc", "def") >= 0 ||
33426          strcoll ("ABC", "DEF") >= 0 ||
33427          strcoll ("123", "456") >= 0)
33428   ;
33429   return 0;
33430 }
33431 _ACEOF
33432 rm -f conftest$ac_exeext
33433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33434   (eval $ac_link) 2>&5
33435   ac_status=$?
33436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33439   (eval $ac_try) 2>&5
33440   ac_status=$?
33441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33442   (exit $ac_status); }; }; then
33443   ac_cv_func_strcoll_works=yes
33444 else
33445   echo "$as_me: program exited with status $ac_status" >&5
33446 echo "$as_me: failed program was:" >&5
33447 sed 's/^/| /' conftest.$ac_ext >&5
33448
33449 ( exit $ac_status )
33450 ac_cv_func_strcoll_works=no
33451 fi
33452 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33453 fi
33454 fi
33455 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
33456 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
33457 if test $ac_cv_func_strcoll_works = yes; then
33458
33459 cat >>confdefs.h <<\_ACEOF
33460 #define HAVE_STRCOLL 1
33461 _ACEOF
33462
33463 fi
33464
33465
33466
33467
33468
33469
33470
33471
33472
33473 for ac_func in listmntent getmntinfo
33474 do
33475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33476 echo "$as_me:$LINENO: checking for $ac_func" >&5
33477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33478 if eval "test \"\${$as_ac_var+set}\" = set"; then
33479   echo $ECHO_N "(cached) $ECHO_C" >&6
33480 else
33481   cat >conftest.$ac_ext <<_ACEOF
33482 /* confdefs.h.  */
33483 _ACEOF
33484 cat confdefs.h >>conftest.$ac_ext
33485 cat >>conftest.$ac_ext <<_ACEOF
33486 /* end confdefs.h.  */
33487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33489 #define $ac_func innocuous_$ac_func
33490
33491 /* System header to define __stub macros and hopefully few prototypes,
33492     which can conflict with char $ac_func (); below.
33493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33494     <limits.h> exists even on freestanding compilers.  */
33495
33496 #ifdef __STDC__
33497 # include <limits.h>
33498 #else
33499 # include <assert.h>
33500 #endif
33501
33502 #undef $ac_func
33503
33504 /* Override any gcc2 internal prototype to avoid an error.  */
33505 #ifdef __cplusplus
33506 extern "C"
33507 {
33508 #endif
33509 /* We use char because int might match the return type of a gcc2
33510    builtin and then its argument prototype would still apply.  */
33511 char $ac_func ();
33512 /* The GNU C library defines this for functions which it implements
33513     to always fail with ENOSYS.  Some functions are actually named
33514     something starting with __ and the normal name is an alias.  */
33515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33516 choke me
33517 #else
33518 char (*f) () = $ac_func;
33519 #endif
33520 #ifdef __cplusplus
33521 }
33522 #endif
33523
33524 int
33525 main ()
33526 {
33527 return f != $ac_func;
33528   ;
33529   return 0;
33530 }
33531 _ACEOF
33532 rm -f conftest.$ac_objext conftest$ac_exeext
33533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33534   (eval $ac_link) 2>conftest.er1
33535   ac_status=$?
33536   grep -v '^ *+' conftest.er1 >conftest.err
33537   rm -f conftest.er1
33538   cat conftest.err >&5
33539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540   (exit $ac_status); } &&
33541          { ac_try='test -z "$ac_c_werror_flag"
33542                          || test ! -s conftest.err'
33543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33544   (eval $ac_try) 2>&5
33545   ac_status=$?
33546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33547   (exit $ac_status); }; } &&
33548          { ac_try='test -s conftest$ac_exeext'
33549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33550   (eval $ac_try) 2>&5
33551   ac_status=$?
33552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553   (exit $ac_status); }; }; then
33554   eval "$as_ac_var=yes"
33555 else
33556   echo "$as_me: failed program was:" >&5
33557 sed 's/^/| /' conftest.$ac_ext >&5
33558
33559 eval "$as_ac_var=no"
33560 fi
33561 rm -f conftest.err conftest.$ac_objext \
33562       conftest$ac_exeext conftest.$ac_ext
33563 fi
33564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33566 if test `eval echo '${'$as_ac_var'}'` = yes; then
33567   cat >>confdefs.h <<_ACEOF
33568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33569 _ACEOF
33570
33571 fi
33572 done
33573
33574
33575   :
33576
33577
33578
33579
33580
33581
33582 # We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses
33583 # NGROUPS (as the array dimension for a struct member) without a definition.
33584
33585 for ac_header in sys/ucred.h
33586 do
33587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33588 echo "$as_me:$LINENO: checking for $ac_header" >&5
33589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33591   echo $ECHO_N "(cached) $ECHO_C" >&6
33592 else
33593   cat >conftest.$ac_ext <<_ACEOF
33594 /* confdefs.h.  */
33595 _ACEOF
33596 cat confdefs.h >>conftest.$ac_ext
33597 cat >>conftest.$ac_ext <<_ACEOF
33598 /* end confdefs.h.  */
33599 #include <grp.h>
33600
33601 #include <$ac_header>
33602 _ACEOF
33603 rm -f conftest.$ac_objext
33604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33605   (eval $ac_compile) 2>conftest.er1
33606   ac_status=$?
33607   grep -v '^ *+' conftest.er1 >conftest.err
33608   rm -f conftest.er1
33609   cat conftest.err >&5
33610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611   (exit $ac_status); } &&
33612          { ac_try='test -z "$ac_c_werror_flag"
33613                          || test ! -s conftest.err'
33614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33615   (eval $ac_try) 2>&5
33616   ac_status=$?
33617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618   (exit $ac_status); }; } &&
33619          { ac_try='test -s conftest.$ac_objext'
33620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33621   (eval $ac_try) 2>&5
33622   ac_status=$?
33623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33624   (exit $ac_status); }; }; then
33625   eval "$as_ac_Header=yes"
33626 else
33627   echo "$as_me: failed program was:" >&5
33628 sed 's/^/| /' conftest.$ac_ext >&5
33629
33630 eval "$as_ac_Header=no"
33631 fi
33632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33633 fi
33634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33637   cat >>confdefs.h <<_ACEOF
33638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33639 _ACEOF
33640
33641 fi
33642
33643 done
33644
33645
33646
33647 for ac_header in sys/mount.h
33648 do
33649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33650 echo "$as_me:$LINENO: checking for $ac_header" >&5
33651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33653   echo $ECHO_N "(cached) $ECHO_C" >&6
33654 else
33655   cat >conftest.$ac_ext <<_ACEOF
33656 /* confdefs.h.  */
33657 _ACEOF
33658 cat confdefs.h >>conftest.$ac_ext
33659 cat >>conftest.$ac_ext <<_ACEOF
33660 /* end confdefs.h.  */
33661 $ac_includes_default
33662    #if HAVE_SYS_PARAM_H
33663      #include <sys/param.h>
33664     #endif
33665
33666 #include <$ac_header>
33667 _ACEOF
33668 rm -f conftest.$ac_objext
33669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33670   (eval $ac_compile) 2>conftest.er1
33671   ac_status=$?
33672   grep -v '^ *+' conftest.er1 >conftest.err
33673   rm -f conftest.er1
33674   cat conftest.err >&5
33675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33676   (exit $ac_status); } &&
33677          { ac_try='test -z "$ac_c_werror_flag"
33678                          || test ! -s conftest.err'
33679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33680   (eval $ac_try) 2>&5
33681   ac_status=$?
33682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683   (exit $ac_status); }; } &&
33684          { ac_try='test -s conftest.$ac_objext'
33685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33686   (eval $ac_try) 2>&5
33687   ac_status=$?
33688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33689   (exit $ac_status); }; }; then
33690   eval "$as_ac_Header=yes"
33691 else
33692   echo "$as_me: failed program was:" >&5
33693 sed 's/^/| /' conftest.$ac_ext >&5
33694
33695 eval "$as_ac_Header=no"
33696 fi
33697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33698 fi
33699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33702   cat >>confdefs.h <<_ACEOF
33703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33704 _ACEOF
33705
33706 fi
33707
33708 done
33709
33710
33711
33712
33713 for ac_header in mntent.h sys/fs_types.h
33714 do
33715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33717   echo "$as_me:$LINENO: checking for $ac_header" >&5
33718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33720   echo $ECHO_N "(cached) $ECHO_C" >&6
33721 fi
33722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33724 else
33725   # Is the header compilable?
33726 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33728 cat >conftest.$ac_ext <<_ACEOF
33729 /* confdefs.h.  */
33730 _ACEOF
33731 cat confdefs.h >>conftest.$ac_ext
33732 cat >>conftest.$ac_ext <<_ACEOF
33733 /* end confdefs.h.  */
33734 $ac_includes_default
33735 #include <$ac_header>
33736 _ACEOF
33737 rm -f conftest.$ac_objext
33738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33739   (eval $ac_compile) 2>conftest.er1
33740   ac_status=$?
33741   grep -v '^ *+' conftest.er1 >conftest.err
33742   rm -f conftest.er1
33743   cat conftest.err >&5
33744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745   (exit $ac_status); } &&
33746          { ac_try='test -z "$ac_c_werror_flag"
33747                          || test ! -s conftest.err'
33748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33749   (eval $ac_try) 2>&5
33750   ac_status=$?
33751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752   (exit $ac_status); }; } &&
33753          { ac_try='test -s conftest.$ac_objext'
33754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33755   (eval $ac_try) 2>&5
33756   ac_status=$?
33757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758   (exit $ac_status); }; }; then
33759   ac_header_compiler=yes
33760 else
33761   echo "$as_me: failed program was:" >&5
33762 sed 's/^/| /' conftest.$ac_ext >&5
33763
33764 ac_header_compiler=no
33765 fi
33766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33768 echo "${ECHO_T}$ac_header_compiler" >&6
33769
33770 # Is the header present?
33771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33773 cat >conftest.$ac_ext <<_ACEOF
33774 /* confdefs.h.  */
33775 _ACEOF
33776 cat confdefs.h >>conftest.$ac_ext
33777 cat >>conftest.$ac_ext <<_ACEOF
33778 /* end confdefs.h.  */
33779 #include <$ac_header>
33780 _ACEOF
33781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33782   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33783   ac_status=$?
33784   grep -v '^ *+' conftest.er1 >conftest.err
33785   rm -f conftest.er1
33786   cat conftest.err >&5
33787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788   (exit $ac_status); } >/dev/null; then
33789   if test -s conftest.err; then
33790     ac_cpp_err=$ac_c_preproc_warn_flag
33791     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33792   else
33793     ac_cpp_err=
33794   fi
33795 else
33796   ac_cpp_err=yes
33797 fi
33798 if test -z "$ac_cpp_err"; then
33799   ac_header_preproc=yes
33800 else
33801   echo "$as_me: failed program was:" >&5
33802 sed 's/^/| /' conftest.$ac_ext >&5
33803
33804   ac_header_preproc=no
33805 fi
33806 rm -f conftest.err conftest.$ac_ext
33807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33808 echo "${ECHO_T}$ac_header_preproc" >&6
33809
33810 # So?  What about this header?
33811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33812   yes:no: )
33813     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33817     ac_header_preproc=yes
33818     ;;
33819   no:yes:* )
33820     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33822     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33823 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33824     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33826     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33827 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33830     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33832     (
33833       cat <<\_ASBOX
33834 ## ------------------------------------ ##
33835 ## Report this to bug-coreutils@gnu.org ##
33836 ## ------------------------------------ ##
33837 _ASBOX
33838     ) |
33839       sed "s/^/$as_me: WARNING:     /" >&2
33840     ;;
33841 esac
33842 echo "$as_me:$LINENO: checking for $ac_header" >&5
33843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33845   echo $ECHO_N "(cached) $ECHO_C" >&6
33846 else
33847   eval "$as_ac_Header=\$ac_header_preproc"
33848 fi
33849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33851
33852 fi
33853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33854   cat >>confdefs.h <<_ACEOF
33855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33856 _ACEOF
33857
33858 fi
33859
33860 done
33861
33862     getfsstat_includes="\
33863 $ac_includes_default
33864 #if HAVE_SYS_PARAM_H
33865 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
33866 #endif
33867 #if HAVE_SYS_UCRED_H
33868 # include <grp.h> /* needed for definition of NGROUPS */
33869 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
33870 #endif
33871 #if HAVE_SYS_MOUNT_H
33872 # include <sys/mount.h>
33873 #endif
33874 #if HAVE_SYS_FS_TYPES_H
33875 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
33876 #endif
33877 "
33878 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
33879 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
33880 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
33881   echo $ECHO_N "(cached) $ECHO_C" >&6
33882 else
33883   cat >conftest.$ac_ext <<_ACEOF
33884 /* confdefs.h.  */
33885 _ACEOF
33886 cat confdefs.h >>conftest.$ac_ext
33887 cat >>conftest.$ac_ext <<_ACEOF
33888 /* end confdefs.h.  */
33889 $getfsstat_includes
33890
33891 int
33892 main ()
33893 {
33894 static struct fsstat ac_aggr;
33895 if (ac_aggr.f_fstypename)
33896 return 0;
33897   ;
33898   return 0;
33899 }
33900 _ACEOF
33901 rm -f conftest.$ac_objext
33902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33903   (eval $ac_compile) 2>conftest.er1
33904   ac_status=$?
33905   grep -v '^ *+' conftest.er1 >conftest.err
33906   rm -f conftest.er1
33907   cat conftest.err >&5
33908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909   (exit $ac_status); } &&
33910          { ac_try='test -z "$ac_c_werror_flag"
33911                          || test ! -s conftest.err'
33912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33913   (eval $ac_try) 2>&5
33914   ac_status=$?
33915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33916   (exit $ac_status); }; } &&
33917          { ac_try='test -s conftest.$ac_objext'
33918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33919   (eval $ac_try) 2>&5
33920   ac_status=$?
33921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33922   (exit $ac_status); }; }; then
33923   ac_cv_member_struct_fsstat_f_fstypename=yes
33924 else
33925   echo "$as_me: failed program was:" >&5
33926 sed 's/^/| /' conftest.$ac_ext >&5
33927
33928 cat >conftest.$ac_ext <<_ACEOF
33929 /* confdefs.h.  */
33930 _ACEOF
33931 cat confdefs.h >>conftest.$ac_ext
33932 cat >>conftest.$ac_ext <<_ACEOF
33933 /* end confdefs.h.  */
33934 $getfsstat_includes
33935
33936 int
33937 main ()
33938 {
33939 static struct fsstat ac_aggr;
33940 if (sizeof ac_aggr.f_fstypename)
33941 return 0;
33942   ;
33943   return 0;
33944 }
33945 _ACEOF
33946 rm -f conftest.$ac_objext
33947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33948   (eval $ac_compile) 2>conftest.er1
33949   ac_status=$?
33950   grep -v '^ *+' conftest.er1 >conftest.err
33951   rm -f conftest.er1
33952   cat conftest.err >&5
33953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954   (exit $ac_status); } &&
33955          { ac_try='test -z "$ac_c_werror_flag"
33956                          || test ! -s conftest.err'
33957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33958   (eval $ac_try) 2>&5
33959   ac_status=$?
33960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33961   (exit $ac_status); }; } &&
33962          { ac_try='test -s conftest.$ac_objext'
33963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33964   (eval $ac_try) 2>&5
33965   ac_status=$?
33966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967   (exit $ac_status); }; }; then
33968   ac_cv_member_struct_fsstat_f_fstypename=yes
33969 else
33970   echo "$as_me: failed program was:" >&5
33971 sed 's/^/| /' conftest.$ac_ext >&5
33972
33973 ac_cv_member_struct_fsstat_f_fstypename=no
33974 fi
33975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33976 fi
33977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33978 fi
33979 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
33980 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
33981 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
33982
33983 cat >>confdefs.h <<_ACEOF
33984 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
33985 _ACEOF
33986
33987
33988 fi
33989
33990
33991 # Determine how to get the list of mounted file systems.
33992 ac_list_mounted_fs=
33993
33994 # If the getmntent function is available but not in the standard library,
33995 # make sure LIBS contains the appropriate -l option.
33996 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
33997 # -lseq on Dynix/PTX, -lgen on Unixware.
33998 echo "$as_me:$LINENO: checking for library containing getmntent" >&5
33999 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6
34000 if test "${ac_cv_search_getmntent+set}" = set; then
34001   echo $ECHO_N "(cached) $ECHO_C" >&6
34002 else
34003   ac_func_search_save_LIBS=$LIBS
34004 ac_cv_search_getmntent=no
34005 cat >conftest.$ac_ext <<_ACEOF
34006 /* confdefs.h.  */
34007 _ACEOF
34008 cat confdefs.h >>conftest.$ac_ext
34009 cat >>conftest.$ac_ext <<_ACEOF
34010 /* end confdefs.h.  */
34011
34012 /* Override any gcc2 internal prototype to avoid an error.  */
34013 #ifdef __cplusplus
34014 extern "C"
34015 #endif
34016 /* We use char because int might match the return type of a gcc2
34017    builtin and then its argument prototype would still apply.  */
34018 char getmntent ();
34019 int
34020 main ()
34021 {
34022 getmntent ();
34023   ;
34024   return 0;
34025 }
34026 _ACEOF
34027 rm -f conftest.$ac_objext conftest$ac_exeext
34028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34029   (eval $ac_link) 2>conftest.er1
34030   ac_status=$?
34031   grep -v '^ *+' conftest.er1 >conftest.err
34032   rm -f conftest.er1
34033   cat conftest.err >&5
34034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035   (exit $ac_status); } &&
34036          { ac_try='test -z "$ac_c_werror_flag"
34037                          || test ! -s conftest.err'
34038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34039   (eval $ac_try) 2>&5
34040   ac_status=$?
34041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34042   (exit $ac_status); }; } &&
34043          { ac_try='test -s conftest$ac_exeext'
34044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34045   (eval $ac_try) 2>&5
34046   ac_status=$?
34047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34048   (exit $ac_status); }; }; then
34049   ac_cv_search_getmntent="none required"
34050 else
34051   echo "$as_me: failed program was:" >&5
34052 sed 's/^/| /' conftest.$ac_ext >&5
34053
34054 fi
34055 rm -f conftest.err conftest.$ac_objext \
34056       conftest$ac_exeext conftest.$ac_ext
34057 if test "$ac_cv_search_getmntent" = no; then
34058   for ac_lib in sun seq gen; do
34059     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
34060     cat >conftest.$ac_ext <<_ACEOF
34061 /* confdefs.h.  */
34062 _ACEOF
34063 cat confdefs.h >>conftest.$ac_ext
34064 cat >>conftest.$ac_ext <<_ACEOF
34065 /* end confdefs.h.  */
34066
34067 /* Override any gcc2 internal prototype to avoid an error.  */
34068 #ifdef __cplusplus
34069 extern "C"
34070 #endif
34071 /* We use char because int might match the return type of a gcc2
34072    builtin and then its argument prototype would still apply.  */
34073 char getmntent ();
34074 int
34075 main ()
34076 {
34077 getmntent ();
34078   ;
34079   return 0;
34080 }
34081 _ACEOF
34082 rm -f conftest.$ac_objext conftest$ac_exeext
34083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34084   (eval $ac_link) 2>conftest.er1
34085   ac_status=$?
34086   grep -v '^ *+' conftest.er1 >conftest.err
34087   rm -f conftest.er1
34088   cat conftest.err >&5
34089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34090   (exit $ac_status); } &&
34091          { ac_try='test -z "$ac_c_werror_flag"
34092                          || test ! -s conftest.err'
34093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34094   (eval $ac_try) 2>&5
34095   ac_status=$?
34096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34097   (exit $ac_status); }; } &&
34098          { ac_try='test -s conftest$ac_exeext'
34099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34100   (eval $ac_try) 2>&5
34101   ac_status=$?
34102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103   (exit $ac_status); }; }; then
34104   ac_cv_search_getmntent="-l$ac_lib"
34105 break
34106 else
34107   echo "$as_me: failed program was:" >&5
34108 sed 's/^/| /' conftest.$ac_ext >&5
34109
34110 fi
34111 rm -f conftest.err conftest.$ac_objext \
34112       conftest$ac_exeext conftest.$ac_ext
34113   done
34114 fi
34115 LIBS=$ac_func_search_save_LIBS
34116 fi
34117 echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
34118 echo "${ECHO_T}$ac_cv_search_getmntent" >&6
34119 if test "$ac_cv_search_getmntent" != no; then
34120   test "$ac_cv_search_getmntent" = "none required" || LIBS="$ac_cv_search_getmntent $LIBS"
34121
34122 for ac_func in getmntent
34123 do
34124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34125 echo "$as_me:$LINENO: checking for $ac_func" >&5
34126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34127 if eval "test \"\${$as_ac_var+set}\" = set"; then
34128   echo $ECHO_N "(cached) $ECHO_C" >&6
34129 else
34130   cat >conftest.$ac_ext <<_ACEOF
34131 /* confdefs.h.  */
34132 _ACEOF
34133 cat confdefs.h >>conftest.$ac_ext
34134 cat >>conftest.$ac_ext <<_ACEOF
34135 /* end confdefs.h.  */
34136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34138 #define $ac_func innocuous_$ac_func
34139
34140 /* System header to define __stub macros and hopefully few prototypes,
34141     which can conflict with char $ac_func (); below.
34142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34143     <limits.h> exists even on freestanding compilers.  */
34144
34145 #ifdef __STDC__
34146 # include <limits.h>
34147 #else
34148 # include <assert.h>
34149 #endif
34150
34151 #undef $ac_func
34152
34153 /* Override any gcc2 internal prototype to avoid an error.  */
34154 #ifdef __cplusplus
34155 extern "C"
34156 {
34157 #endif
34158 /* We use char because int might match the return type of a gcc2
34159    builtin and then its argument prototype would still apply.  */
34160 char $ac_func ();
34161 /* The GNU C library defines this for functions which it implements
34162     to always fail with ENOSYS.  Some functions are actually named
34163     something starting with __ and the normal name is an alias.  */
34164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34165 choke me
34166 #else
34167 char (*f) () = $ac_func;
34168 #endif
34169 #ifdef __cplusplus
34170 }
34171 #endif
34172
34173 int
34174 main ()
34175 {
34176 return f != $ac_func;
34177   ;
34178   return 0;
34179 }
34180 _ACEOF
34181 rm -f conftest.$ac_objext conftest$ac_exeext
34182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34183   (eval $ac_link) 2>conftest.er1
34184   ac_status=$?
34185   grep -v '^ *+' conftest.er1 >conftest.err
34186   rm -f conftest.er1
34187   cat conftest.err >&5
34188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189   (exit $ac_status); } &&
34190          { ac_try='test -z "$ac_c_werror_flag"
34191                          || test ! -s conftest.err'
34192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34193   (eval $ac_try) 2>&5
34194   ac_status=$?
34195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196   (exit $ac_status); }; } &&
34197          { ac_try='test -s conftest$ac_exeext'
34198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34199   (eval $ac_try) 2>&5
34200   ac_status=$?
34201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34202   (exit $ac_status); }; }; then
34203   eval "$as_ac_var=yes"
34204 else
34205   echo "$as_me: failed program was:" >&5
34206 sed 's/^/| /' conftest.$ac_ext >&5
34207
34208 eval "$as_ac_var=no"
34209 fi
34210 rm -f conftest.err conftest.$ac_objext \
34211       conftest$ac_exeext conftest.$ac_ext
34212 fi
34213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34215 if test `eval echo '${'$as_ac_var'}'` = yes; then
34216   cat >>confdefs.h <<_ACEOF
34217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34218 _ACEOF
34219
34220 fi
34221 done
34222
34223 fi
34224
34225
34226
34227 # This test must precede the ones for getmntent because Unicos-9 is
34228 # reported to have the getmntent function, but its support is incompatible
34229 # with other getmntent implementations.
34230
34231 # NOTE: Normally, I wouldn't use a check for system type as I've done for
34232 # `CRAY' below since that goes against the whole autoconf philosophy.  But
34233 # I think there is too great a chance that some non-Cray system has a
34234 # function named listmntent to risk the false positive.
34235
34236 if test -z "$ac_list_mounted_fs"; then
34237   # Cray UNICOS 9
34238   echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
34239 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
34240   if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
34241   echo $ECHO_N "(cached) $ECHO_C" >&6
34242 else
34243   fu_cv_sys_mounted_cray_listmntent=no
34244       cat >conftest.$ac_ext <<_ACEOF
34245 /* confdefs.h.  */
34246 _ACEOF
34247 cat confdefs.h >>conftest.$ac_ext
34248 cat >>conftest.$ac_ext <<_ACEOF
34249 /* end confdefs.h.  */
34250 #ifdef _CRAY
34251 yes
34252 #endif
34253
34254 _ACEOF
34255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34256   $EGREP "yes" >/dev/null 2>&1; then
34257   test $ac_cv_func_listmntent = yes \
34258             && fu_cv_sys_mounted_cray_listmntent=yes
34259
34260 fi
34261 rm -f conftest*
34262
34263
34264
34265 fi
34266
34267   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
34268 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
34269   if test $fu_cv_sys_mounted_cray_listmntent = yes; then
34270     ac_list_mounted_fs=found
34271
34272 cat >>confdefs.h <<\_ACEOF
34273 #define MOUNTED_LISTMNTENT 1
34274 _ACEOF
34275
34276   fi
34277 fi
34278
34279 if test -z "$ac_list_mounted_fs"; then
34280   # AIX.
34281   echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
34282 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
34283   if test "${fu_cv_sys_mounted_vmount+set}" = set; then
34284   echo $ECHO_N "(cached) $ECHO_C" >&6
34285 else
34286   cat >conftest.$ac_ext <<_ACEOF
34287 /* confdefs.h.  */
34288 _ACEOF
34289 cat confdefs.h >>conftest.$ac_ext
34290 cat >>conftest.$ac_ext <<_ACEOF
34291 /* end confdefs.h.  */
34292 #include <fshelp.h>
34293 _ACEOF
34294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34295   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34296   ac_status=$?
34297   grep -v '^ *+' conftest.er1 >conftest.err
34298   rm -f conftest.er1
34299   cat conftest.err >&5
34300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34301   (exit $ac_status); } >/dev/null; then
34302   if test -s conftest.err; then
34303     ac_cpp_err=$ac_c_preproc_warn_flag
34304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34305   else
34306     ac_cpp_err=
34307   fi
34308 else
34309   ac_cpp_err=yes
34310 fi
34311 if test -z "$ac_cpp_err"; then
34312   fu_cv_sys_mounted_vmount=yes
34313 else
34314   echo "$as_me: failed program was:" >&5
34315 sed 's/^/| /' conftest.$ac_ext >&5
34316
34317   fu_cv_sys_mounted_vmount=no
34318 fi
34319 rm -f conftest.err conftest.$ac_ext
34320 fi
34321
34322   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
34323 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
34324   if test $fu_cv_sys_mounted_vmount = yes; then
34325     ac_list_mounted_fs=found
34326
34327 cat >>confdefs.h <<\_ACEOF
34328 #define MOUNTED_VMOUNT 1
34329 _ACEOF
34330
34331   fi
34332 fi
34333
34334 if test $ac_cv_func_getmntent = yes; then
34335
34336   # This system has the getmntent function.
34337   # Determine whether it's the one-argument variant or the two-argument one.
34338
34339   if test -z "$ac_list_mounted_fs"; then
34340     # 4.3BSD, SunOS, HP-UX, Dynix, Irix
34341     echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
34342 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
34343     if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
34344   echo $ECHO_N "(cached) $ECHO_C" >&6
34345 else
34346   cat >conftest.$ac_ext <<_ACEOF
34347 /* confdefs.h.  */
34348 _ACEOF
34349 cat confdefs.h >>conftest.$ac_ext
34350 cat >>conftest.$ac_ext <<_ACEOF
34351 /* end confdefs.h.  */
34352
34353 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
34354 #include <stdio.h>
34355
34356 #include <mntent.h>
34357 #if !defined MOUNTED
34358 # if defined _PATH_MOUNTED      /* GNU libc  */
34359 #  define MOUNTED _PATH_MOUNTED
34360 # endif
34361 # if defined MNT_MNTTAB /* HP-UX.  */
34362 #  define MOUNTED MNT_MNTTAB
34363 # endif
34364 # if defined MNTTABNAME /* Dynix.  */
34365 #  define MOUNTED MNTTABNAME
34366 # endif
34367 #endif
34368
34369 int
34370 main ()
34371 {
34372  struct mntent *mnt = 0; char *table = MOUNTED;
34373   ;
34374   return 0;
34375 }
34376 _ACEOF
34377 rm -f conftest.$ac_objext
34378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34379   (eval $ac_compile) 2>conftest.er1
34380   ac_status=$?
34381   grep -v '^ *+' conftest.er1 >conftest.err
34382   rm -f conftest.er1
34383   cat conftest.err >&5
34384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34385   (exit $ac_status); } &&
34386          { ac_try='test -z "$ac_c_werror_flag"
34387                          || test ! -s conftest.err'
34388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34389   (eval $ac_try) 2>&5
34390   ac_status=$?
34391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34392   (exit $ac_status); }; } &&
34393          { ac_try='test -s conftest.$ac_objext'
34394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34395   (eval $ac_try) 2>&5
34396   ac_status=$?
34397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34398   (exit $ac_status); }; }; then
34399   fu_cv_sys_mounted_getmntent1=yes
34400 else
34401   echo "$as_me: failed program was:" >&5
34402 sed 's/^/| /' conftest.$ac_ext >&5
34403
34404 fu_cv_sys_mounted_getmntent1=no
34405 fi
34406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34407 fi
34408
34409     echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
34410 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
34411     if test $fu_cv_sys_mounted_getmntent1 = yes; then
34412       ac_list_mounted_fs=found
34413
34414 cat >>confdefs.h <<\_ACEOF
34415 #define MOUNTED_GETMNTENT1 1
34416 _ACEOF
34417
34418     fi
34419   fi
34420
34421   if test -z "$ac_list_mounted_fs"; then
34422     # SVR4
34423     echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
34424 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
34425     if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
34426   echo $ECHO_N "(cached) $ECHO_C" >&6
34427 else
34428   cat >conftest.$ac_ext <<_ACEOF
34429 /* confdefs.h.  */
34430 _ACEOF
34431 cat confdefs.h >>conftest.$ac_ext
34432 cat >>conftest.$ac_ext <<_ACEOF
34433 /* end confdefs.h.  */
34434 #include <sys/mnttab.h>
34435
34436 _ACEOF
34437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34438   $EGREP "getmntent" >/dev/null 2>&1; then
34439   fu_cv_sys_mounted_getmntent2=yes
34440 else
34441   fu_cv_sys_mounted_getmntent2=no
34442 fi
34443 rm -f conftest*
34444
34445 fi
34446
34447     echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
34448 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
34449     if test $fu_cv_sys_mounted_getmntent2 = yes; then
34450       ac_list_mounted_fs=found
34451
34452 cat >>confdefs.h <<\_ACEOF
34453 #define MOUNTED_GETMNTENT2 1
34454 _ACEOF
34455
34456     fi
34457   fi
34458
34459 fi
34460
34461 if test -z "$ac_list_mounted_fs"; then
34462   # DEC Alpha running OSF/1, and Apple Darwin 1.3.
34463   # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
34464
34465   echo "$as_me:$LINENO: checking for getfsstat function" >&5
34466 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
34467   if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
34468   echo $ECHO_N "(cached) $ECHO_C" >&6
34469 else
34470   cat >conftest.$ac_ext <<_ACEOF
34471 /* confdefs.h.  */
34472 _ACEOF
34473 cat confdefs.h >>conftest.$ac_ext
34474 cat >>conftest.$ac_ext <<_ACEOF
34475 /* end confdefs.h.  */
34476
34477 #include <sys/types.h>
34478 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
34479 # define FS_TYPE(Ent) ((Ent).f_fstypename)
34480 #else
34481 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
34482 #endif
34483 $getfsstat_includes
34484
34485 int
34486 main ()
34487 {
34488 struct statfs *stats;
34489    int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
34490    char *t = FS_TYPE (*stats);
34491   ;
34492   return 0;
34493 }
34494 _ACEOF
34495 rm -f conftest.$ac_objext conftest$ac_exeext
34496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34497   (eval $ac_link) 2>conftest.er1
34498   ac_status=$?
34499   grep -v '^ *+' conftest.er1 >conftest.err
34500   rm -f conftest.er1
34501   cat conftest.err >&5
34502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34503   (exit $ac_status); } &&
34504          { ac_try='test -z "$ac_c_werror_flag"
34505                          || test ! -s conftest.err'
34506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34507   (eval $ac_try) 2>&5
34508   ac_status=$?
34509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34510   (exit $ac_status); }; } &&
34511          { ac_try='test -s conftest$ac_exeext'
34512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34513   (eval $ac_try) 2>&5
34514   ac_status=$?
34515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34516   (exit $ac_status); }; }; then
34517   fu_cv_sys_mounted_getfsstat=yes
34518 else
34519   echo "$as_me: failed program was:" >&5
34520 sed 's/^/| /' conftest.$ac_ext >&5
34521
34522 fu_cv_sys_mounted_getfsstat=no
34523 fi
34524 rm -f conftest.err conftest.$ac_objext \
34525       conftest$ac_exeext conftest.$ac_ext
34526 fi
34527
34528   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
34529 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
34530   if test $fu_cv_sys_mounted_getfsstat = yes; then
34531     ac_list_mounted_fs=found
34532
34533 cat >>confdefs.h <<\_ACEOF
34534 #define MOUNTED_GETFSSTAT 1
34535 _ACEOF
34536
34537   fi
34538 fi
34539
34540 if test -z "$ac_list_mounted_fs"; then
34541   # SVR3
34542   echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
34543 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
34544   if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
34545   echo $ECHO_N "(cached) $ECHO_C" >&6
34546 else
34547   cat >conftest.$ac_ext <<_ACEOF
34548 /* confdefs.h.  */
34549 _ACEOF
34550 cat confdefs.h >>conftest.$ac_ext
34551 cat >>conftest.$ac_ext <<_ACEOF
34552 /* end confdefs.h.  */
34553
34554 #include <sys/statfs.h>
34555 #include <sys/fstyp.h>
34556 #include <mnttab.h>
34557 _ACEOF
34558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34559   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34560   ac_status=$?
34561   grep -v '^ *+' conftest.er1 >conftest.err
34562   rm -f conftest.er1
34563   cat conftest.err >&5
34564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34565   (exit $ac_status); } >/dev/null; then
34566   if test -s conftest.err; then
34567     ac_cpp_err=$ac_c_preproc_warn_flag
34568     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34569   else
34570     ac_cpp_err=
34571   fi
34572 else
34573   ac_cpp_err=yes
34574 fi
34575 if test -z "$ac_cpp_err"; then
34576   fu_cv_sys_mounted_fread_fstyp=yes
34577 else
34578   echo "$as_me: failed program was:" >&5
34579 sed 's/^/| /' conftest.$ac_ext >&5
34580
34581   fu_cv_sys_mounted_fread_fstyp=no
34582 fi
34583 rm -f conftest.err conftest.$ac_ext
34584 fi
34585
34586   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
34587 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
34588   if test $fu_cv_sys_mounted_fread_fstyp = yes; then
34589     ac_list_mounted_fs=found
34590
34591 cat >>confdefs.h <<\_ACEOF
34592 #define MOUNTED_FREAD_FSTYP 1
34593 _ACEOF
34594
34595   fi
34596 fi
34597
34598 if test -z "$ac_list_mounted_fs"; then
34599   # 4.4BSD and DEC OSF/1.
34600   echo "$as_me:$LINENO: checking for getmntinfo function" >&5
34601 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
34602   if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
34603   echo $ECHO_N "(cached) $ECHO_C" >&6
34604 else
34605
34606       test "$ac_cv_func_getmntinfo" = yes \
34607           && fu_cv_sys_mounted_getmntinfo=yes \
34608           || fu_cv_sys_mounted_getmntinfo=no
34609
34610 fi
34611
34612   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
34613 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
34614   if test $fu_cv_sys_mounted_getmntinfo = yes; then
34615     ac_list_mounted_fs=found
34616
34617 cat >>confdefs.h <<\_ACEOF
34618 #define MOUNTED_GETMNTINFO 1
34619 _ACEOF
34620
34621   fi
34622 fi
34623
34624 if test -z "$ac_list_mounted_fs"; then
34625   # Ultrix
34626   echo "$as_me:$LINENO: checking for getmnt function" >&5
34627 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
34628   if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
34629   echo $ECHO_N "(cached) $ECHO_C" >&6
34630 else
34631   cat >conftest.$ac_ext <<_ACEOF
34632 /* confdefs.h.  */
34633 _ACEOF
34634 cat confdefs.h >>conftest.$ac_ext
34635 cat >>conftest.$ac_ext <<_ACEOF
34636 /* end confdefs.h.  */
34637
34638 #include <sys/fs_types.h>
34639 #include <sys/mount.h>
34640 _ACEOF
34641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34642   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34643   ac_status=$?
34644   grep -v '^ *+' conftest.er1 >conftest.err
34645   rm -f conftest.er1
34646   cat conftest.err >&5
34647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648   (exit $ac_status); } >/dev/null; then
34649   if test -s conftest.err; then
34650     ac_cpp_err=$ac_c_preproc_warn_flag
34651     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34652   else
34653     ac_cpp_err=
34654   fi
34655 else
34656   ac_cpp_err=yes
34657 fi
34658 if test -z "$ac_cpp_err"; then
34659   fu_cv_sys_mounted_getmnt=yes
34660 else
34661   echo "$as_me: failed program was:" >&5
34662 sed 's/^/| /' conftest.$ac_ext >&5
34663
34664   fu_cv_sys_mounted_getmnt=no
34665 fi
34666 rm -f conftest.err conftest.$ac_ext
34667 fi
34668
34669   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
34670 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
34671   if test $fu_cv_sys_mounted_getmnt = yes; then
34672     ac_list_mounted_fs=found
34673
34674 cat >>confdefs.h <<\_ACEOF
34675 #define MOUNTED_GETMNT 1
34676 _ACEOF
34677
34678   fi
34679 fi
34680
34681 if test -z "$ac_list_mounted_fs"; then
34682   # BeOS
34683
34684
34685 for ac_func in next_dev fs_stat_dev
34686 do
34687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34688 echo "$as_me:$LINENO: checking for $ac_func" >&5
34689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34690 if eval "test \"\${$as_ac_var+set}\" = set"; then
34691   echo $ECHO_N "(cached) $ECHO_C" >&6
34692 else
34693   cat >conftest.$ac_ext <<_ACEOF
34694 /* confdefs.h.  */
34695 _ACEOF
34696 cat confdefs.h >>conftest.$ac_ext
34697 cat >>conftest.$ac_ext <<_ACEOF
34698 /* end confdefs.h.  */
34699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34701 #define $ac_func innocuous_$ac_func
34702
34703 /* System header to define __stub macros and hopefully few prototypes,
34704     which can conflict with char $ac_func (); below.
34705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34706     <limits.h> exists even on freestanding compilers.  */
34707
34708 #ifdef __STDC__
34709 # include <limits.h>
34710 #else
34711 # include <assert.h>
34712 #endif
34713
34714 #undef $ac_func
34715
34716 /* Override any gcc2 internal prototype to avoid an error.  */
34717 #ifdef __cplusplus
34718 extern "C"
34719 {
34720 #endif
34721 /* We use char because int might match the return type of a gcc2
34722    builtin and then its argument prototype would still apply.  */
34723 char $ac_func ();
34724 /* The GNU C library defines this for functions which it implements
34725     to always fail with ENOSYS.  Some functions are actually named
34726     something starting with __ and the normal name is an alias.  */
34727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34728 choke me
34729 #else
34730 char (*f) () = $ac_func;
34731 #endif
34732 #ifdef __cplusplus
34733 }
34734 #endif
34735
34736 int
34737 main ()
34738 {
34739 return f != $ac_func;
34740   ;
34741   return 0;
34742 }
34743 _ACEOF
34744 rm -f conftest.$ac_objext conftest$ac_exeext
34745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34746   (eval $ac_link) 2>conftest.er1
34747   ac_status=$?
34748   grep -v '^ *+' conftest.er1 >conftest.err
34749   rm -f conftest.er1
34750   cat conftest.err >&5
34751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752   (exit $ac_status); } &&
34753          { ac_try='test -z "$ac_c_werror_flag"
34754                          || test ! -s conftest.err'
34755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34756   (eval $ac_try) 2>&5
34757   ac_status=$?
34758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34759   (exit $ac_status); }; } &&
34760          { ac_try='test -s conftest$ac_exeext'
34761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34762   (eval $ac_try) 2>&5
34763   ac_status=$?
34764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34765   (exit $ac_status); }; }; then
34766   eval "$as_ac_var=yes"
34767 else
34768   echo "$as_me: failed program was:" >&5
34769 sed 's/^/| /' conftest.$ac_ext >&5
34770
34771 eval "$as_ac_var=no"
34772 fi
34773 rm -f conftest.err conftest.$ac_objext \
34774       conftest$ac_exeext conftest.$ac_ext
34775 fi
34776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34778 if test `eval echo '${'$as_ac_var'}'` = yes; then
34779   cat >>confdefs.h <<_ACEOF
34780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34781 _ACEOF
34782
34783 fi
34784 done
34785
34786
34787 for ac_header in fs_info.h
34788 do
34789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34791   echo "$as_me:$LINENO: checking for $ac_header" >&5
34792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34794   echo $ECHO_N "(cached) $ECHO_C" >&6
34795 fi
34796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34798 else
34799   # Is the header compilable?
34800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34802 cat >conftest.$ac_ext <<_ACEOF
34803 /* confdefs.h.  */
34804 _ACEOF
34805 cat confdefs.h >>conftest.$ac_ext
34806 cat >>conftest.$ac_ext <<_ACEOF
34807 /* end confdefs.h.  */
34808 $ac_includes_default
34809 #include <$ac_header>
34810 _ACEOF
34811 rm -f conftest.$ac_objext
34812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34813   (eval $ac_compile) 2>conftest.er1
34814   ac_status=$?
34815   grep -v '^ *+' conftest.er1 >conftest.err
34816   rm -f conftest.er1
34817   cat conftest.err >&5
34818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34819   (exit $ac_status); } &&
34820          { ac_try='test -z "$ac_c_werror_flag"
34821                          || test ! -s conftest.err'
34822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34823   (eval $ac_try) 2>&5
34824   ac_status=$?
34825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826   (exit $ac_status); }; } &&
34827          { ac_try='test -s conftest.$ac_objext'
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   ac_header_compiler=yes
34834 else
34835   echo "$as_me: failed program was:" >&5
34836 sed 's/^/| /' conftest.$ac_ext >&5
34837
34838 ac_header_compiler=no
34839 fi
34840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34842 echo "${ECHO_T}$ac_header_compiler" >&6
34843
34844 # Is the header present?
34845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34847 cat >conftest.$ac_ext <<_ACEOF
34848 /* confdefs.h.  */
34849 _ACEOF
34850 cat confdefs.h >>conftest.$ac_ext
34851 cat >>conftest.$ac_ext <<_ACEOF
34852 /* end confdefs.h.  */
34853 #include <$ac_header>
34854 _ACEOF
34855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34856   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34857   ac_status=$?
34858   grep -v '^ *+' conftest.er1 >conftest.err
34859   rm -f conftest.er1
34860   cat conftest.err >&5
34861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862   (exit $ac_status); } >/dev/null; then
34863   if test -s conftest.err; then
34864     ac_cpp_err=$ac_c_preproc_warn_flag
34865     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34866   else
34867     ac_cpp_err=
34868   fi
34869 else
34870   ac_cpp_err=yes
34871 fi
34872 if test -z "$ac_cpp_err"; then
34873   ac_header_preproc=yes
34874 else
34875   echo "$as_me: failed program was:" >&5
34876 sed 's/^/| /' conftest.$ac_ext >&5
34877
34878   ac_header_preproc=no
34879 fi
34880 rm -f conftest.err conftest.$ac_ext
34881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34882 echo "${ECHO_T}$ac_header_preproc" >&6
34883
34884 # So?  What about this header?
34885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34886   yes:no: )
34887     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34891     ac_header_preproc=yes
34892     ;;
34893   no:yes:* )
34894     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34896     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34897 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34898     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34900     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34901 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34904     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34906     (
34907       cat <<\_ASBOX
34908 ## ------------------------------------ ##
34909 ## Report this to bug-coreutils@gnu.org ##
34910 ## ------------------------------------ ##
34911 _ASBOX
34912     ) |
34913       sed "s/^/$as_me: WARNING:     /" >&2
34914     ;;
34915 esac
34916 echo "$as_me:$LINENO: checking for $ac_header" >&5
34917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34919   echo $ECHO_N "(cached) $ECHO_C" >&6
34920 else
34921   eval "$as_ac_Header=\$ac_header_preproc"
34922 fi
34923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34925
34926 fi
34927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34928   cat >>confdefs.h <<_ACEOF
34929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34930 _ACEOF
34931
34932 fi
34933
34934 done
34935
34936   echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
34937 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
34938   if test $ac_cv_header_fs_info_h = yes \
34939       && test $ac_cv_func_next_dev = yes \
34940         && test $ac_cv_func_fs_stat_dev = yes; then
34941     fu_result=yes
34942   else
34943     fu_result=no
34944   fi
34945   echo "$as_me:$LINENO: result: $fu_result" >&5
34946 echo "${ECHO_T}$fu_result" >&6
34947   if test $fu_result = yes; then
34948     ac_list_mounted_fs=found
34949
34950 cat >>confdefs.h <<\_ACEOF
34951 #define MOUNTED_FS_STAT_DEV 1
34952 _ACEOF
34953
34954   fi
34955 fi
34956
34957 if test -z "$ac_list_mounted_fs"; then
34958   # SVR2
34959   echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
34960 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
34961   if test "${fu_cv_sys_mounted_fread+set}" = set; then
34962   echo $ECHO_N "(cached) $ECHO_C" >&6
34963 else
34964   cat >conftest.$ac_ext <<_ACEOF
34965 /* confdefs.h.  */
34966 _ACEOF
34967 cat confdefs.h >>conftest.$ac_ext
34968 cat >>conftest.$ac_ext <<_ACEOF
34969 /* end confdefs.h.  */
34970 #include <mnttab.h>
34971 _ACEOF
34972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34973   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34974   ac_status=$?
34975   grep -v '^ *+' conftest.er1 >conftest.err
34976   rm -f conftest.er1
34977   cat conftest.err >&5
34978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34979   (exit $ac_status); } >/dev/null; then
34980   if test -s conftest.err; then
34981     ac_cpp_err=$ac_c_preproc_warn_flag
34982     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34983   else
34984     ac_cpp_err=
34985   fi
34986 else
34987   ac_cpp_err=yes
34988 fi
34989 if test -z "$ac_cpp_err"; then
34990   fu_cv_sys_mounted_fread=yes
34991 else
34992   echo "$as_me: failed program was:" >&5
34993 sed 's/^/| /' conftest.$ac_ext >&5
34994
34995   fu_cv_sys_mounted_fread=no
34996 fi
34997 rm -f conftest.err conftest.$ac_ext
34998 fi
34999
35000   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
35001 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
35002   if test $fu_cv_sys_mounted_fread = yes; then
35003     ac_list_mounted_fs=found
35004
35005 cat >>confdefs.h <<\_ACEOF
35006 #define MOUNTED_FREAD 1
35007 _ACEOF
35008
35009   fi
35010 fi
35011
35012 if test -z "$ac_list_mounted_fs"; then
35013   { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted file systems" >&5
35014 echo "$as_me: error: could not determine how to read list of mounted file systems" >&2;}
35015    { (exit 1); exit 1; }; }
35016   # FIXME -- no need to abort building the whole package
35017   # Can't build mountlist.c or anything that needs its functions
35018 fi
35019
35020 if test $ac_list_mounted_fs = found; then
35021   gl_cv_list_mounted_fs=yes
35022 else
35023   gl_cv_list_mounted_fs=no
35024 fi
35025
35026
35027
35028   if test $gl_cv_list_mounted_fs = yes; then
35029     case $LIBOBJS in
35030     "mountlist.$ac_objext"   | \
35031   *" mountlist.$ac_objext"   | \
35032     "mountlist.$ac_objext "* | \
35033   *" mountlist.$ac_objext "* ) ;;
35034   *) LIBOBJS="$LIBOBJS mountlist.$ac_objext" ;;
35035 esac
35036
35037
35038
35039   :
35040
35041
35042
35043
35044
35045
35046
35047
35048
35049 for ac_header in sys/mntent.h
35050 do
35051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35053   echo "$as_me:$LINENO: checking for $ac_header" >&5
35054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35056   echo $ECHO_N "(cached) $ECHO_C" >&6
35057 fi
35058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35060 else
35061   # Is the header compilable?
35062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35064 cat >conftest.$ac_ext <<_ACEOF
35065 /* confdefs.h.  */
35066 _ACEOF
35067 cat confdefs.h >>conftest.$ac_ext
35068 cat >>conftest.$ac_ext <<_ACEOF
35069 /* end confdefs.h.  */
35070 $ac_includes_default
35071 #include <$ac_header>
35072 _ACEOF
35073 rm -f conftest.$ac_objext
35074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35075   (eval $ac_compile) 2>conftest.er1
35076   ac_status=$?
35077   grep -v '^ *+' conftest.er1 >conftest.err
35078   rm -f conftest.er1
35079   cat conftest.err >&5
35080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35081   (exit $ac_status); } &&
35082          { ac_try='test -z "$ac_c_werror_flag"
35083                          || test ! -s conftest.err'
35084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35085   (eval $ac_try) 2>&5
35086   ac_status=$?
35087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35088   (exit $ac_status); }; } &&
35089          { ac_try='test -s conftest.$ac_objext'
35090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35091   (eval $ac_try) 2>&5
35092   ac_status=$?
35093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094   (exit $ac_status); }; }; then
35095   ac_header_compiler=yes
35096 else
35097   echo "$as_me: failed program was:" >&5
35098 sed 's/^/| /' conftest.$ac_ext >&5
35099
35100 ac_header_compiler=no
35101 fi
35102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35104 echo "${ECHO_T}$ac_header_compiler" >&6
35105
35106 # Is the header present?
35107 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35109 cat >conftest.$ac_ext <<_ACEOF
35110 /* confdefs.h.  */
35111 _ACEOF
35112 cat confdefs.h >>conftest.$ac_ext
35113 cat >>conftest.$ac_ext <<_ACEOF
35114 /* end confdefs.h.  */
35115 #include <$ac_header>
35116 _ACEOF
35117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35119   ac_status=$?
35120   grep -v '^ *+' conftest.er1 >conftest.err
35121   rm -f conftest.er1
35122   cat conftest.err >&5
35123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124   (exit $ac_status); } >/dev/null; then
35125   if test -s conftest.err; then
35126     ac_cpp_err=$ac_c_preproc_warn_flag
35127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35128   else
35129     ac_cpp_err=
35130   fi
35131 else
35132   ac_cpp_err=yes
35133 fi
35134 if test -z "$ac_cpp_err"; then
35135   ac_header_preproc=yes
35136 else
35137   echo "$as_me: failed program was:" >&5
35138 sed 's/^/| /' conftest.$ac_ext >&5
35139
35140   ac_header_preproc=no
35141 fi
35142 rm -f conftest.err conftest.$ac_ext
35143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35144 echo "${ECHO_T}$ac_header_preproc" >&6
35145
35146 # So?  What about this header?
35147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35148   yes:no: )
35149     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35153     ac_header_preproc=yes
35154     ;;
35155   no:yes:* )
35156     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35158     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35159 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35160     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35162     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35163 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35166     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35168     (
35169       cat <<\_ASBOX
35170 ## ------------------------------------ ##
35171 ## Report this to bug-coreutils@gnu.org ##
35172 ## ------------------------------------ ##
35173 _ASBOX
35174     ) |
35175       sed "s/^/$as_me: WARNING:     /" >&2
35176     ;;
35177 esac
35178 echo "$as_me:$LINENO: checking for $ac_header" >&5
35179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35181   echo $ECHO_N "(cached) $ECHO_C" >&6
35182 else
35183   eval "$as_ac_Header=\$ac_header_preproc"
35184 fi
35185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35187
35188 fi
35189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35190   cat >>confdefs.h <<_ACEOF
35191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35192 _ACEOF
35193
35194 fi
35195
35196 done
35197
35198
35199     echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
35200 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
35201 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
35202   echo $ECHO_N "(cached) $ECHO_C" >&6
35203 else
35204
35205         cat >conftest.$ac_ext <<_ACEOF
35206 /* confdefs.h.  */
35207 _ACEOF
35208 cat confdefs.h >>conftest.$ac_ext
35209 cat >>conftest.$ac_ext <<_ACEOF
35210 /* end confdefs.h.  */
35211
35212 #include <sys/param.h>
35213 #include <sys/types.h>
35214 #include <sys/mount.h>
35215
35216 int
35217 main ()
35218 {
35219 struct statfs s; int i = sizeof s.f_fstypename;
35220   ;
35221   return 0;
35222 }
35223 _ACEOF
35224 rm -f conftest.$ac_objext
35225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35226   (eval $ac_compile) 2>conftest.er1
35227   ac_status=$?
35228   grep -v '^ *+' conftest.er1 >conftest.err
35229   rm -f conftest.er1
35230   cat conftest.err >&5
35231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35232   (exit $ac_status); } &&
35233          { ac_try='test -z "$ac_c_werror_flag"
35234                          || test ! -s conftest.err'
35235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35236   (eval $ac_try) 2>&5
35237   ac_status=$?
35238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35239   (exit $ac_status); }; } &&
35240          { ac_try='test -s conftest.$ac_objext'
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   fu_cv_sys_f_fstypename_in_statfs=yes
35247 else
35248   echo "$as_me: failed program was:" >&5
35249 sed 's/^/| /' conftest.$ac_ext >&5
35250
35251 fu_cv_sys_f_fstypename_in_statfs=no
35252
35253 fi
35254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35255
35256
35257 fi
35258 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
35259 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
35260
35261     if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
35262
35263 cat >>confdefs.h <<\_ACEOF
35264 #define HAVE_F_FSTYPENAME_IN_STATFS 1
35265 _ACEOF
35266
35267     fi
35268
35269
35270
35271   fi
35272
35273
35274   echo "$as_me:$LINENO: checking for obstacks" >&5
35275 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
35276 if test "${ac_cv_func_obstack+set}" = set; then
35277   echo $ECHO_N "(cached) $ECHO_C" >&6
35278 else
35279   cat >conftest.$ac_ext <<_ACEOF
35280 /* confdefs.h.  */
35281 _ACEOF
35282 cat confdefs.h >>conftest.$ac_ext
35283 cat >>conftest.$ac_ext <<_ACEOF
35284 /* end confdefs.h.  */
35285 #include "obstack.h"
35286 int
35287 main ()
35288 {
35289 struct obstack *mem; obstack_free(mem,(char *) 0)
35290   ;
35291   return 0;
35292 }
35293 _ACEOF
35294 rm -f conftest.$ac_objext conftest$ac_exeext
35295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35296   (eval $ac_link) 2>conftest.er1
35297   ac_status=$?
35298   grep -v '^ *+' conftest.er1 >conftest.err
35299   rm -f conftest.er1
35300   cat conftest.err >&5
35301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302   (exit $ac_status); } &&
35303          { ac_try='test -z "$ac_c_werror_flag"
35304                          || test ! -s conftest.err'
35305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35306   (eval $ac_try) 2>&5
35307   ac_status=$?
35308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35309   (exit $ac_status); }; } &&
35310          { ac_try='test -s conftest$ac_exeext'
35311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35312   (eval $ac_try) 2>&5
35313   ac_status=$?
35314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315   (exit $ac_status); }; }; then
35316   ac_cv_func_obstack=yes
35317 else
35318   echo "$as_me: failed program was:" >&5
35319 sed 's/^/| /' conftest.$ac_ext >&5
35320
35321 ac_cv_func_obstack=no
35322 fi
35323 rm -f conftest.err conftest.$ac_objext \
35324       conftest$ac_exeext conftest.$ac_ext
35325 fi
35326 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
35327 echo "${ECHO_T}$ac_cv_func_obstack" >&6
35328 if test $ac_cv_func_obstack = yes; then
35329
35330 cat >>confdefs.h <<\_ACEOF
35331 #define HAVE_OBSTACK 1
35332 _ACEOF
35333
35334 else
35335   case $LIBOBJS in
35336     "obstack.$ac_objext"   | \
35337   *" obstack.$ac_objext"   | \
35338     "obstack.$ac_objext "* | \
35339   *" obstack.$ac_objext "* ) ;;
35340   *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
35341 esac
35342
35343 fi
35344
35345     if test $ac_cv_func_obstack = no; then
35346
35347
35348
35349
35350   :
35351
35352   fi
35353
35354
35355
35356   :
35357
35358
35359
35360
35361
35362
35363
35364
35365
35366
35367
35368 for ac_func in mempcpy
35369 do
35370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35371 echo "$as_me:$LINENO: checking for $ac_func" >&5
35372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35373 if eval "test \"\${$as_ac_var+set}\" = set"; then
35374   echo $ECHO_N "(cached) $ECHO_C" >&6
35375 else
35376   cat >conftest.$ac_ext <<_ACEOF
35377 /* confdefs.h.  */
35378 _ACEOF
35379 cat confdefs.h >>conftest.$ac_ext
35380 cat >>conftest.$ac_ext <<_ACEOF
35381 /* end confdefs.h.  */
35382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35384 #define $ac_func innocuous_$ac_func
35385
35386 /* System header to define __stub macros and hopefully few prototypes,
35387     which can conflict with char $ac_func (); below.
35388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35389     <limits.h> exists even on freestanding compilers.  */
35390
35391 #ifdef __STDC__
35392 # include <limits.h>
35393 #else
35394 # include <assert.h>
35395 #endif
35396
35397 #undef $ac_func
35398
35399 /* Override any gcc2 internal prototype to avoid an error.  */
35400 #ifdef __cplusplus
35401 extern "C"
35402 {
35403 #endif
35404 /* We use char because int might match the return type of a gcc2
35405    builtin and then its argument prototype would still apply.  */
35406 char $ac_func ();
35407 /* The GNU C library defines this for functions which it implements
35408     to always fail with ENOSYS.  Some functions are actually named
35409     something starting with __ and the normal name is an alias.  */
35410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35411 choke me
35412 #else
35413 char (*f) () = $ac_func;
35414 #endif
35415 #ifdef __cplusplus
35416 }
35417 #endif
35418
35419 int
35420 main ()
35421 {
35422 return f != $ac_func;
35423   ;
35424   return 0;
35425 }
35426 _ACEOF
35427 rm -f conftest.$ac_objext conftest$ac_exeext
35428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35429   (eval $ac_link) 2>conftest.er1
35430   ac_status=$?
35431   grep -v '^ *+' conftest.er1 >conftest.err
35432   rm -f conftest.er1
35433   cat conftest.err >&5
35434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35435   (exit $ac_status); } &&
35436          { ac_try='test -z "$ac_c_werror_flag"
35437                          || test ! -s conftest.err'
35438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35439   (eval $ac_try) 2>&5
35440   ac_status=$?
35441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35442   (exit $ac_status); }; } &&
35443          { ac_try='test -s conftest$ac_exeext'
35444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35445   (eval $ac_try) 2>&5
35446   ac_status=$?
35447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35448   (exit $ac_status); }; }; then
35449   eval "$as_ac_var=yes"
35450 else
35451   echo "$as_me: failed program was:" >&5
35452 sed 's/^/| /' conftest.$ac_ext >&5
35453
35454 eval "$as_ac_var=no"
35455 fi
35456 rm -f conftest.err conftest.$ac_objext \
35457       conftest$ac_exeext conftest.$ac_ext
35458 fi
35459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35461 if test `eval echo '${'$as_ac_var'}'` = yes; then
35462   cat >>confdefs.h <<_ACEOF
35463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35464 _ACEOF
35465
35466 fi
35467 done
35468
35469
35470
35471
35472   :
35473
35474
35475
35476
35477
35478
35479 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
35480 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
35481 if test "${gl_cv_var__system_configuration+set}" = set; then
35482   echo $ECHO_N "(cached) $ECHO_C" >&6
35483 else
35484   cat >conftest.$ac_ext <<_ACEOF
35485 /* confdefs.h.  */
35486 _ACEOF
35487 cat confdefs.h >>conftest.$ac_ext
35488 cat >>conftest.$ac_ext <<_ACEOF
35489 /* end confdefs.h.  */
35490 #include <sys/systemcfg.h>
35491
35492 int
35493 main ()
35494 {
35495 double x = _system_configuration.physmem;
35496   ;
35497   return 0;
35498 }
35499 _ACEOF
35500 rm -f conftest.$ac_objext conftest$ac_exeext
35501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35502   (eval $ac_link) 2>conftest.er1
35503   ac_status=$?
35504   grep -v '^ *+' conftest.er1 >conftest.err
35505   rm -f conftest.er1
35506   cat conftest.err >&5
35507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35508   (exit $ac_status); } &&
35509          { ac_try='test -z "$ac_c_werror_flag"
35510                          || test ! -s conftest.err'
35511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35512   (eval $ac_try) 2>&5
35513   ac_status=$?
35514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35515   (exit $ac_status); }; } &&
35516          { ac_try='test -s conftest$ac_exeext'
35517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35518   (eval $ac_try) 2>&5
35519   ac_status=$?
35520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35521   (exit $ac_status); }; }; then
35522   gl_cv_var__system_configuration=yes
35523 else
35524   echo "$as_me: failed program was:" >&5
35525 sed 's/^/| /' conftest.$ac_ext >&5
35526
35527 gl_cv_var__system_configuration=no
35528 fi
35529 rm -f conftest.err conftest.$ac_objext \
35530       conftest$ac_exeext conftest.$ac_ext
35531 fi
35532 echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
35533 echo "${ECHO_T}$gl_cv_var__system_configuration" >&6
35534
35535     if test $gl_cv_var__system_configuration = yes; then
35536
35537 cat >>confdefs.h <<\_ACEOF
35538 #define HAVE__SYSTEM_CONFIGURATION 1
35539 _ACEOF
35540
35541     fi
35542
35543
35544
35545   # Prerequisites of lib/physmem.c.
35546
35547   :
35548
35549
35550
35551
35552
35553
35554
35555
35556
35557
35558
35559
35560
35561 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
35562     machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
35563     sys/systemcfg.h
35564 do
35565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35566 echo "$as_me:$LINENO: checking for $ac_header" >&5
35567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35569   echo $ECHO_N "(cached) $ECHO_C" >&6
35570 else
35571   cat >conftest.$ac_ext <<_ACEOF
35572 /* confdefs.h.  */
35573 _ACEOF
35574 cat confdefs.h >>conftest.$ac_ext
35575 cat >>conftest.$ac_ext <<_ACEOF
35576 /* end confdefs.h.  */
35577 $ac_includes_default
35578
35579 #include <$ac_header>
35580 _ACEOF
35581 rm -f conftest.$ac_objext
35582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35583   (eval $ac_compile) 2>conftest.er1
35584   ac_status=$?
35585   grep -v '^ *+' conftest.er1 >conftest.err
35586   rm -f conftest.er1
35587   cat conftest.err >&5
35588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35589   (exit $ac_status); } &&
35590          { ac_try='test -z "$ac_c_werror_flag"
35591                          || test ! -s conftest.err'
35592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35593   (eval $ac_try) 2>&5
35594   ac_status=$?
35595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35596   (exit $ac_status); }; } &&
35597          { ac_try='test -s conftest.$ac_objext'
35598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35599   (eval $ac_try) 2>&5
35600   ac_status=$?
35601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602   (exit $ac_status); }; }; then
35603   eval "$as_ac_Header=yes"
35604 else
35605   echo "$as_me: failed program was:" >&5
35606 sed 's/^/| /' conftest.$ac_ext >&5
35607
35608 eval "$as_ac_Header=no"
35609 fi
35610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35611 fi
35612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35615   cat >>confdefs.h <<_ACEOF
35616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35617 _ACEOF
35618
35619 fi
35620
35621 done
35622
35623
35624
35625
35626
35627
35628
35629
35630 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
35631 do
35632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35633 echo "$as_me:$LINENO: checking for $ac_func" >&5
35634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35635 if eval "test \"\${$as_ac_var+set}\" = set"; then
35636   echo $ECHO_N "(cached) $ECHO_C" >&6
35637 else
35638   cat >conftest.$ac_ext <<_ACEOF
35639 /* confdefs.h.  */
35640 _ACEOF
35641 cat confdefs.h >>conftest.$ac_ext
35642 cat >>conftest.$ac_ext <<_ACEOF
35643 /* end confdefs.h.  */
35644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35645    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35646 #define $ac_func innocuous_$ac_func
35647
35648 /* System header to define __stub macros and hopefully few prototypes,
35649     which can conflict with char $ac_func (); below.
35650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35651     <limits.h> exists even on freestanding compilers.  */
35652
35653 #ifdef __STDC__
35654 # include <limits.h>
35655 #else
35656 # include <assert.h>
35657 #endif
35658
35659 #undef $ac_func
35660
35661 /* Override any gcc2 internal prototype to avoid an error.  */
35662 #ifdef __cplusplus
35663 extern "C"
35664 {
35665 #endif
35666 /* We use char because int might match the return type of a gcc2
35667    builtin and then its argument prototype would still apply.  */
35668 char $ac_func ();
35669 /* The GNU C library defines this for functions which it implements
35670     to always fail with ENOSYS.  Some functions are actually named
35671     something starting with __ and the normal name is an alias.  */
35672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35673 choke me
35674 #else
35675 char (*f) () = $ac_func;
35676 #endif
35677 #ifdef __cplusplus
35678 }
35679 #endif
35680
35681 int
35682 main ()
35683 {
35684 return f != $ac_func;
35685   ;
35686   return 0;
35687 }
35688 _ACEOF
35689 rm -f conftest.$ac_objext conftest$ac_exeext
35690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35691   (eval $ac_link) 2>conftest.er1
35692   ac_status=$?
35693   grep -v '^ *+' conftest.er1 >conftest.err
35694   rm -f conftest.er1
35695   cat conftest.err >&5
35696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697   (exit $ac_status); } &&
35698          { ac_try='test -z "$ac_c_werror_flag"
35699                          || test ! -s conftest.err'
35700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35701   (eval $ac_try) 2>&5
35702   ac_status=$?
35703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704   (exit $ac_status); }; } &&
35705          { ac_try='test -s conftest$ac_exeext'
35706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35707   (eval $ac_try) 2>&5
35708   ac_status=$?
35709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35710   (exit $ac_status); }; }; then
35711   eval "$as_ac_var=yes"
35712 else
35713   echo "$as_me: failed program was:" >&5
35714 sed 's/^/| /' conftest.$ac_ext >&5
35715
35716 eval "$as_ac_var=no"
35717 fi
35718 rm -f conftest.err conftest.$ac_objext \
35719       conftest$ac_exeext conftest.$ac_ext
35720 fi
35721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35723 if test `eval echo '${'$as_ac_var'}'` = yes; then
35724   cat >>confdefs.h <<_ACEOF
35725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35726 _ACEOF
35727
35728 fi
35729 done
35730
35731
35732
35733
35734     echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
35735 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
35736 if test "${ac_cv_struct_tm+set}" = set; then
35737   echo $ECHO_N "(cached) $ECHO_C" >&6
35738 else
35739   cat >conftest.$ac_ext <<_ACEOF
35740 /* confdefs.h.  */
35741 _ACEOF
35742 cat confdefs.h >>conftest.$ac_ext
35743 cat >>conftest.$ac_ext <<_ACEOF
35744 /* end confdefs.h.  */
35745 #include <sys/types.h>
35746 #include <time.h>
35747
35748 int
35749 main ()
35750 {
35751 struct tm *tp; tp->tm_sec;
35752   ;
35753   return 0;
35754 }
35755 _ACEOF
35756 rm -f conftest.$ac_objext
35757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35758   (eval $ac_compile) 2>conftest.er1
35759   ac_status=$?
35760   grep -v '^ *+' conftest.er1 >conftest.err
35761   rm -f conftest.er1
35762   cat conftest.err >&5
35763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764   (exit $ac_status); } &&
35765          { ac_try='test -z "$ac_c_werror_flag"
35766                          || test ! -s conftest.err'
35767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35768   (eval $ac_try) 2>&5
35769   ac_status=$?
35770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771   (exit $ac_status); }; } &&
35772          { ac_try='test -s conftest.$ac_objext'
35773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35774   (eval $ac_try) 2>&5
35775   ac_status=$?
35776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35777   (exit $ac_status); }; }; then
35778   ac_cv_struct_tm=time.h
35779 else
35780   echo "$as_me: failed program was:" >&5
35781 sed 's/^/| /' conftest.$ac_ext >&5
35782
35783 ac_cv_struct_tm=sys/time.h
35784 fi
35785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35786 fi
35787 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
35788 echo "${ECHO_T}$ac_cv_struct_tm" >&6
35789 if test $ac_cv_struct_tm = sys/time.h; then
35790
35791 cat >>confdefs.h <<\_ACEOF
35792 #define TM_IN_SYS_TIME 1
35793 _ACEOF
35794
35795 fi
35796
35797
35798
35799
35800   :
35801
35802
35803
35804
35805
35806
35807
35808
35809
35810   :
35811
35812
35813
35814
35815
35816
35817
35818
35819
35820   :
35821
35822
35823
35824
35825
35826
35827
35828
35829   echo "$as_me:$LINENO: checking for mbstate_t" >&5
35830 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
35831 if test "${ac_cv_type_mbstate_t+set}" = set; then
35832   echo $ECHO_N "(cached) $ECHO_C" >&6
35833 else
35834   cat >conftest.$ac_ext <<_ACEOF
35835 /* confdefs.h.  */
35836 _ACEOF
35837 cat confdefs.h >>conftest.$ac_ext
35838 cat >>conftest.$ac_ext <<_ACEOF
35839 /* end confdefs.h.  */
35840 $ac_includes_default
35841 #           include <wchar.h>
35842 int
35843 main ()
35844 {
35845 mbstate_t x; return sizeof x;
35846   ;
35847   return 0;
35848 }
35849 _ACEOF
35850 rm -f conftest.$ac_objext
35851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35852   (eval $ac_compile) 2>conftest.er1
35853   ac_status=$?
35854   grep -v '^ *+' conftest.er1 >conftest.err
35855   rm -f conftest.er1
35856   cat conftest.err >&5
35857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35858   (exit $ac_status); } &&
35859          { ac_try='test -z "$ac_c_werror_flag"
35860                          || test ! -s conftest.err'
35861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35862   (eval $ac_try) 2>&5
35863   ac_status=$?
35864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865   (exit $ac_status); }; } &&
35866          { ac_try='test -s conftest.$ac_objext'
35867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35868   (eval $ac_try) 2>&5
35869   ac_status=$?
35870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35871   (exit $ac_status); }; }; then
35872   ac_cv_type_mbstate_t=yes
35873 else
35874   echo "$as_me: failed program was:" >&5
35875 sed 's/^/| /' conftest.$ac_ext >&5
35876
35877 ac_cv_type_mbstate_t=no
35878 fi
35879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35880 fi
35881 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35882 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
35883    if test $ac_cv_type_mbstate_t = yes; then
35884
35885 cat >>confdefs.h <<\_ACEOF
35886 #define HAVE_MBSTATE_T 1
35887 _ACEOF
35888
35889    else
35890
35891 cat >>confdefs.h <<\_ACEOF
35892 #define mbstate_t int
35893 _ACEOF
35894
35895    fi
35896
35897   echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
35898 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
35899 if test "${gl_cv_func_mbrtowc+set}" = set; then
35900   echo $ECHO_N "(cached) $ECHO_C" >&6
35901 else
35902   cat >conftest.$ac_ext <<_ACEOF
35903 /* confdefs.h.  */
35904 _ACEOF
35905 cat confdefs.h >>conftest.$ac_ext
35906 cat >>conftest.$ac_ext <<_ACEOF
35907 /* end confdefs.h.  */
35908 #include <wchar.h>
35909 int
35910 main ()
35911 {
35912 mbstate_t state; return ! (sizeof state && mbrtowc);
35913   ;
35914   return 0;
35915 }
35916 _ACEOF
35917 rm -f conftest.$ac_objext conftest$ac_exeext
35918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35919   (eval $ac_link) 2>conftest.er1
35920   ac_status=$?
35921   grep -v '^ *+' conftest.er1 >conftest.err
35922   rm -f conftest.er1
35923   cat conftest.err >&5
35924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35925   (exit $ac_status); } &&
35926          { ac_try='test -z "$ac_c_werror_flag"
35927                          || test ! -s conftest.err'
35928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35929   (eval $ac_try) 2>&5
35930   ac_status=$?
35931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35932   (exit $ac_status); }; } &&
35933          { ac_try='test -s conftest$ac_exeext'
35934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35935   (eval $ac_try) 2>&5
35936   ac_status=$?
35937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938   (exit $ac_status); }; }; then
35939   gl_cv_func_mbrtowc=yes
35940 else
35941   echo "$as_me: failed program was:" >&5
35942 sed 's/^/| /' conftest.$ac_ext >&5
35943
35944 gl_cv_func_mbrtowc=no
35945 fi
35946 rm -f conftest.err conftest.$ac_objext \
35947       conftest$ac_exeext conftest.$ac_ext
35948 fi
35949 echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
35950 echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6
35951   if test $gl_cv_func_mbrtowc = yes; then
35952
35953 cat >>confdefs.h <<\_ACEOF
35954 #define HAVE_MBRTOWC 1
35955 _ACEOF
35956
35957   fi
35958
35959
35960
35961
35962
35963     :
35964
35965
35966
35967   :
35968
35969
35970
35971
35972
35973   echo "$as_me:$LINENO: checking whether free (NULL) is known to work" >&5
35974 echo $ECHO_N "checking whether free (NULL) is known to work... $ECHO_C" >&6
35975 if test "${gl_cv_func_free+set}" = set; then
35976   echo $ECHO_N "(cached) $ECHO_C" >&6
35977 else
35978   cat >conftest.$ac_ext <<_ACEOF
35979 /* confdefs.h.  */
35980 _ACEOF
35981 cat confdefs.h >>conftest.$ac_ext
35982 cat >>conftest.$ac_ext <<_ACEOF
35983 /* end confdefs.h.  */
35984 #if HAVE_UNISTD_H
35985               #include <unistd.h>
35986             #endif
35987 int
35988 main ()
35989 {
35990 #if _POSIX_VERSION < 199009L && \
35991                 (defined unix || defined _unix || defined _unix_ \
35992                  || defined __unix || defined __unix__)
35993               #error "'free (NULL)' is not known to work"
35994             #endif
35995   ;
35996   return 0;
35997 }
35998 _ACEOF
35999 rm -f conftest.$ac_objext
36000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36001   (eval $ac_compile) 2>conftest.er1
36002   ac_status=$?
36003   grep -v '^ *+' conftest.er1 >conftest.err
36004   rm -f conftest.er1
36005   cat conftest.err >&5
36006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36007   (exit $ac_status); } &&
36008          { ac_try='test -z "$ac_c_werror_flag"
36009                          || test ! -s conftest.err'
36010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36011   (eval $ac_try) 2>&5
36012   ac_status=$?
36013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014   (exit $ac_status); }; } &&
36015          { ac_try='test -s conftest.$ac_objext'
36016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36017   (eval $ac_try) 2>&5
36018   ac_status=$?
36019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36020   (exit $ac_status); }; }; then
36021   gl_cv_func_free=yes
36022 else
36023   echo "$as_me: failed program was:" >&5
36024 sed 's/^/| /' conftest.$ac_ext >&5
36025
36026 gl_cv_func_free=no
36027 fi
36028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36029 fi
36030 echo "$as_me:$LINENO: result: $gl_cv_func_free" >&5
36031 echo "${ECHO_T}$gl_cv_func_free" >&6
36032
36033   if test $gl_cv_func_free = no; then
36034     case $LIBOBJS in
36035     "free.$ac_objext"   | \
36036   *" free.$ac_objext"   | \
36037     "free.$ac_objext "* | \
36038   *" free.$ac_objext "* ) ;;
36039   *) LIBOBJS="$LIBOBJS free.$ac_objext" ;;
36040 esac
36041
36042
36043 cat >>confdefs.h <<\_ACEOF
36044 #define free rpl_free
36045 _ACEOF
36046
36047   fi
36048
36049
36050
36051
36052 for ac_header in utmp.h utmpx.h
36053 do
36054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36056   echo "$as_me:$LINENO: checking for $ac_header" >&5
36057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36059   echo $ECHO_N "(cached) $ECHO_C" >&6
36060 fi
36061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36063 else
36064   # Is the header compilable?
36065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36067 cat >conftest.$ac_ext <<_ACEOF
36068 /* confdefs.h.  */
36069 _ACEOF
36070 cat confdefs.h >>conftest.$ac_ext
36071 cat >>conftest.$ac_ext <<_ACEOF
36072 /* end confdefs.h.  */
36073 $ac_includes_default
36074 #include <$ac_header>
36075 _ACEOF
36076 rm -f conftest.$ac_objext
36077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36078   (eval $ac_compile) 2>conftest.er1
36079   ac_status=$?
36080   grep -v '^ *+' conftest.er1 >conftest.err
36081   rm -f conftest.er1
36082   cat conftest.err >&5
36083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36084   (exit $ac_status); } &&
36085          { ac_try='test -z "$ac_c_werror_flag"
36086                          || test ! -s conftest.err'
36087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36088   (eval $ac_try) 2>&5
36089   ac_status=$?
36090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36091   (exit $ac_status); }; } &&
36092          { ac_try='test -s conftest.$ac_objext'
36093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36094   (eval $ac_try) 2>&5
36095   ac_status=$?
36096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36097   (exit $ac_status); }; }; then
36098   ac_header_compiler=yes
36099 else
36100   echo "$as_me: failed program was:" >&5
36101 sed 's/^/| /' conftest.$ac_ext >&5
36102
36103 ac_header_compiler=no
36104 fi
36105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36107 echo "${ECHO_T}$ac_header_compiler" >&6
36108
36109 # Is the header present?
36110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36112 cat >conftest.$ac_ext <<_ACEOF
36113 /* confdefs.h.  */
36114 _ACEOF
36115 cat confdefs.h >>conftest.$ac_ext
36116 cat >>conftest.$ac_ext <<_ACEOF
36117 /* end confdefs.h.  */
36118 #include <$ac_header>
36119 _ACEOF
36120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36121   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36122   ac_status=$?
36123   grep -v '^ *+' conftest.er1 >conftest.err
36124   rm -f conftest.er1
36125   cat conftest.err >&5
36126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36127   (exit $ac_status); } >/dev/null; then
36128   if test -s conftest.err; then
36129     ac_cpp_err=$ac_c_preproc_warn_flag
36130     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36131   else
36132     ac_cpp_err=
36133   fi
36134 else
36135   ac_cpp_err=yes
36136 fi
36137 if test -z "$ac_cpp_err"; then
36138   ac_header_preproc=yes
36139 else
36140   echo "$as_me: failed program was:" >&5
36141 sed 's/^/| /' conftest.$ac_ext >&5
36142
36143   ac_header_preproc=no
36144 fi
36145 rm -f conftest.err conftest.$ac_ext
36146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36147 echo "${ECHO_T}$ac_header_preproc" >&6
36148
36149 # So?  What about this header?
36150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36151   yes:no: )
36152     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36156     ac_header_preproc=yes
36157     ;;
36158   no:yes:* )
36159     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36161     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36162 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36163     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36165     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36166 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36169     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36171     (
36172       cat <<\_ASBOX
36173 ## ------------------------------------ ##
36174 ## Report this to bug-coreutils@gnu.org ##
36175 ## ------------------------------------ ##
36176 _ASBOX
36177     ) |
36178       sed "s/^/$as_me: WARNING:     /" >&2
36179     ;;
36180 esac
36181 echo "$as_me:$LINENO: checking for $ac_header" >&5
36182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36184   echo $ECHO_N "(cached) $ECHO_C" >&6
36185 else
36186   eval "$as_ac_Header=\$ac_header_preproc"
36187 fi
36188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36190
36191 fi
36192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36193   cat >>confdefs.h <<_ACEOF
36194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36195 _ACEOF
36196
36197 fi
36198
36199 done
36200
36201
36202
36203 for ac_func in utmpname utmpxname
36204 do
36205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36206 echo "$as_me:$LINENO: checking for $ac_func" >&5
36207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36208 if eval "test \"\${$as_ac_var+set}\" = set"; then
36209   echo $ECHO_N "(cached) $ECHO_C" >&6
36210 else
36211   cat >conftest.$ac_ext <<_ACEOF
36212 /* confdefs.h.  */
36213 _ACEOF
36214 cat confdefs.h >>conftest.$ac_ext
36215 cat >>conftest.$ac_ext <<_ACEOF
36216 /* end confdefs.h.  */
36217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36219 #define $ac_func innocuous_$ac_func
36220
36221 /* System header to define __stub macros and hopefully few prototypes,
36222     which can conflict with char $ac_func (); below.
36223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36224     <limits.h> exists even on freestanding compilers.  */
36225
36226 #ifdef __STDC__
36227 # include <limits.h>
36228 #else
36229 # include <assert.h>
36230 #endif
36231
36232 #undef $ac_func
36233
36234 /* Override any gcc2 internal prototype to avoid an error.  */
36235 #ifdef __cplusplus
36236 extern "C"
36237 {
36238 #endif
36239 /* We use char because int might match the return type of a gcc2
36240    builtin and then its argument prototype would still apply.  */
36241 char $ac_func ();
36242 /* The GNU C library defines this for functions which it implements
36243     to always fail with ENOSYS.  Some functions are actually named
36244     something starting with __ and the normal name is an alias.  */
36245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36246 choke me
36247 #else
36248 char (*f) () = $ac_func;
36249 #endif
36250 #ifdef __cplusplus
36251 }
36252 #endif
36253
36254 int
36255 main ()
36256 {
36257 return f != $ac_func;
36258   ;
36259   return 0;
36260 }
36261 _ACEOF
36262 rm -f conftest.$ac_objext conftest$ac_exeext
36263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36264   (eval $ac_link) 2>conftest.er1
36265   ac_status=$?
36266   grep -v '^ *+' conftest.er1 >conftest.err
36267   rm -f conftest.er1
36268   cat conftest.err >&5
36269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36270   (exit $ac_status); } &&
36271          { ac_try='test -z "$ac_c_werror_flag"
36272                          || test ! -s conftest.err'
36273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36274   (eval $ac_try) 2>&5
36275   ac_status=$?
36276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277   (exit $ac_status); }; } &&
36278          { ac_try='test -s conftest$ac_exeext'
36279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36280   (eval $ac_try) 2>&5
36281   ac_status=$?
36282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283   (exit $ac_status); }; }; then
36284   eval "$as_ac_var=yes"
36285 else
36286   echo "$as_me: failed program was:" >&5
36287 sed 's/^/| /' conftest.$ac_ext >&5
36288
36289 eval "$as_ac_var=no"
36290 fi
36291 rm -f conftest.err conftest.$ac_objext \
36292       conftest$ac_exeext conftest.$ac_ext
36293 fi
36294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36296 if test `eval echo '${'$as_ac_var'}'` = yes; then
36297   cat >>confdefs.h <<_ACEOF
36298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36299 _ACEOF
36300
36301 fi
36302 done
36303
36304   echo "$as_me:$LINENO: checking whether getutent is declared" >&5
36305 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
36306 if test "${ac_cv_have_decl_getutent+set}" = set; then
36307   echo $ECHO_N "(cached) $ECHO_C" >&6
36308 else
36309   cat >conftest.$ac_ext <<_ACEOF
36310 /* confdefs.h.  */
36311 _ACEOF
36312 cat confdefs.h >>conftest.$ac_ext
36313 cat >>conftest.$ac_ext <<_ACEOF
36314 /* end confdefs.h.  */
36315
36316 #ifdef HAVE_UTMP_H
36317 # include <utmp.h>
36318 #endif
36319
36320
36321 int
36322 main ()
36323 {
36324 #ifndef getutent
36325   char *p = (char *) getutent;
36326 #endif
36327
36328   ;
36329   return 0;
36330 }
36331 _ACEOF
36332 rm -f conftest.$ac_objext
36333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36334   (eval $ac_compile) 2>conftest.er1
36335   ac_status=$?
36336   grep -v '^ *+' conftest.er1 >conftest.err
36337   rm -f conftest.er1
36338   cat conftest.err >&5
36339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36340   (exit $ac_status); } &&
36341          { ac_try='test -z "$ac_c_werror_flag"
36342                          || test ! -s conftest.err'
36343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36344   (eval $ac_try) 2>&5
36345   ac_status=$?
36346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36347   (exit $ac_status); }; } &&
36348          { ac_try='test -s conftest.$ac_objext'
36349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36350   (eval $ac_try) 2>&5
36351   ac_status=$?
36352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36353   (exit $ac_status); }; }; then
36354   ac_cv_have_decl_getutent=yes
36355 else
36356   echo "$as_me: failed program was:" >&5
36357 sed 's/^/| /' conftest.$ac_ext >&5
36358
36359 ac_cv_have_decl_getutent=no
36360 fi
36361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36362 fi
36363 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
36364 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
36365 if test $ac_cv_have_decl_getutent = yes; then
36366
36367 cat >>confdefs.h <<_ACEOF
36368 #define HAVE_DECL_GETUTENT 1
36369 _ACEOF
36370
36371
36372 else
36373   cat >>confdefs.h <<_ACEOF
36374 #define HAVE_DECL_GETUTENT 0
36375 _ACEOF
36376
36377
36378 fi
36379
36380
36381   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
36382     utmp_includes="\
36383 $ac_includes_default
36384 #ifdef HAVE_UTMPX_H
36385 # include <utmpx.h>
36386 #endif
36387 #ifdef HAVE_UTMP_H
36388 # include <utmp.h>
36389 #endif
36390 "
36391     echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
36392 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
36393 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
36394   echo $ECHO_N "(cached) $ECHO_C" >&6
36395 else
36396   cat >conftest.$ac_ext <<_ACEOF
36397 /* confdefs.h.  */
36398 _ACEOF
36399 cat confdefs.h >>conftest.$ac_ext
36400 cat >>conftest.$ac_ext <<_ACEOF
36401 /* end confdefs.h.  */
36402 $utmp_includes
36403
36404 int
36405 main ()
36406 {
36407 static struct utmpx ac_aggr;
36408 if (ac_aggr.ut_user)
36409 return 0;
36410   ;
36411   return 0;
36412 }
36413 _ACEOF
36414 rm -f conftest.$ac_objext
36415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36416   (eval $ac_compile) 2>conftest.er1
36417   ac_status=$?
36418   grep -v '^ *+' conftest.er1 >conftest.err
36419   rm -f conftest.er1
36420   cat conftest.err >&5
36421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422   (exit $ac_status); } &&
36423          { ac_try='test -z "$ac_c_werror_flag"
36424                          || test ! -s conftest.err'
36425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36426   (eval $ac_try) 2>&5
36427   ac_status=$?
36428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36429   (exit $ac_status); }; } &&
36430          { ac_try='test -s conftest.$ac_objext'
36431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36432   (eval $ac_try) 2>&5
36433   ac_status=$?
36434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36435   (exit $ac_status); }; }; then
36436   ac_cv_member_struct_utmpx_ut_user=yes
36437 else
36438   echo "$as_me: failed program was:" >&5
36439 sed 's/^/| /' conftest.$ac_ext >&5
36440
36441 cat >conftest.$ac_ext <<_ACEOF
36442 /* confdefs.h.  */
36443 _ACEOF
36444 cat confdefs.h >>conftest.$ac_ext
36445 cat >>conftest.$ac_ext <<_ACEOF
36446 /* end confdefs.h.  */
36447 $utmp_includes
36448
36449 int
36450 main ()
36451 {
36452 static struct utmpx ac_aggr;
36453 if (sizeof ac_aggr.ut_user)
36454 return 0;
36455   ;
36456   return 0;
36457 }
36458 _ACEOF
36459 rm -f conftest.$ac_objext
36460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36461   (eval $ac_compile) 2>conftest.er1
36462   ac_status=$?
36463   grep -v '^ *+' conftest.er1 >conftest.err
36464   rm -f conftest.er1
36465   cat conftest.err >&5
36466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36467   (exit $ac_status); } &&
36468          { ac_try='test -z "$ac_c_werror_flag"
36469                          || test ! -s conftest.err'
36470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36471   (eval $ac_try) 2>&5
36472   ac_status=$?
36473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36474   (exit $ac_status); }; } &&
36475          { ac_try='test -s conftest.$ac_objext'
36476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36477   (eval $ac_try) 2>&5
36478   ac_status=$?
36479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36480   (exit $ac_status); }; }; then
36481   ac_cv_member_struct_utmpx_ut_user=yes
36482 else
36483   echo "$as_me: failed program was:" >&5
36484 sed 's/^/| /' conftest.$ac_ext >&5
36485
36486 ac_cv_member_struct_utmpx_ut_user=no
36487 fi
36488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36489 fi
36490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36491 fi
36492 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
36493 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
36494 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
36495
36496 cat >>confdefs.h <<_ACEOF
36497 #define HAVE_STRUCT_UTMPX_UT_USER 1
36498 _ACEOF
36499
36500
36501 fi
36502
36503     echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
36504 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
36505 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
36506   echo $ECHO_N "(cached) $ECHO_C" >&6
36507 else
36508   cat >conftest.$ac_ext <<_ACEOF
36509 /* confdefs.h.  */
36510 _ACEOF
36511 cat confdefs.h >>conftest.$ac_ext
36512 cat >>conftest.$ac_ext <<_ACEOF
36513 /* end confdefs.h.  */
36514 $utmp_includes
36515
36516 int
36517 main ()
36518 {
36519 static struct utmp ac_aggr;
36520 if (ac_aggr.ut_user)
36521 return 0;
36522   ;
36523   return 0;
36524 }
36525 _ACEOF
36526 rm -f conftest.$ac_objext
36527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36528   (eval $ac_compile) 2>conftest.er1
36529   ac_status=$?
36530   grep -v '^ *+' conftest.er1 >conftest.err
36531   rm -f conftest.er1
36532   cat conftest.err >&5
36533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36534   (exit $ac_status); } &&
36535          { ac_try='test -z "$ac_c_werror_flag"
36536                          || test ! -s conftest.err'
36537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36538   (eval $ac_try) 2>&5
36539   ac_status=$?
36540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36541   (exit $ac_status); }; } &&
36542          { ac_try='test -s conftest.$ac_objext'
36543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36544   (eval $ac_try) 2>&5
36545   ac_status=$?
36546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547   (exit $ac_status); }; }; then
36548   ac_cv_member_struct_utmp_ut_user=yes
36549 else
36550   echo "$as_me: failed program was:" >&5
36551 sed 's/^/| /' conftest.$ac_ext >&5
36552
36553 cat >conftest.$ac_ext <<_ACEOF
36554 /* confdefs.h.  */
36555 _ACEOF
36556 cat confdefs.h >>conftest.$ac_ext
36557 cat >>conftest.$ac_ext <<_ACEOF
36558 /* end confdefs.h.  */
36559 $utmp_includes
36560
36561 int
36562 main ()
36563 {
36564 static struct utmp ac_aggr;
36565 if (sizeof ac_aggr.ut_user)
36566 return 0;
36567   ;
36568   return 0;
36569 }
36570 _ACEOF
36571 rm -f conftest.$ac_objext
36572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36573   (eval $ac_compile) 2>conftest.er1
36574   ac_status=$?
36575   grep -v '^ *+' conftest.er1 >conftest.err
36576   rm -f conftest.er1
36577   cat conftest.err >&5
36578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36579   (exit $ac_status); } &&
36580          { ac_try='test -z "$ac_c_werror_flag"
36581                          || test ! -s conftest.err'
36582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36583   (eval $ac_try) 2>&5
36584   ac_status=$?
36585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36586   (exit $ac_status); }; } &&
36587          { ac_try='test -s conftest.$ac_objext'
36588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36589   (eval $ac_try) 2>&5
36590   ac_status=$?
36591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36592   (exit $ac_status); }; }; then
36593   ac_cv_member_struct_utmp_ut_user=yes
36594 else
36595   echo "$as_me: failed program was:" >&5
36596 sed 's/^/| /' conftest.$ac_ext >&5
36597
36598 ac_cv_member_struct_utmp_ut_user=no
36599 fi
36600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36601 fi
36602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36603 fi
36604 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
36605 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
36606 if test $ac_cv_member_struct_utmp_ut_user = yes; then
36607
36608 cat >>confdefs.h <<_ACEOF
36609 #define HAVE_STRUCT_UTMP_UT_USER 1
36610 _ACEOF
36611
36612
36613 fi
36614
36615     echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
36616 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
36617 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
36618   echo $ECHO_N "(cached) $ECHO_C" >&6
36619 else
36620   cat >conftest.$ac_ext <<_ACEOF
36621 /* confdefs.h.  */
36622 _ACEOF
36623 cat confdefs.h >>conftest.$ac_ext
36624 cat >>conftest.$ac_ext <<_ACEOF
36625 /* end confdefs.h.  */
36626 $utmp_includes
36627
36628 int
36629 main ()
36630 {
36631 static struct utmpx ac_aggr;
36632 if (ac_aggr.ut_name)
36633 return 0;
36634   ;
36635   return 0;
36636 }
36637 _ACEOF
36638 rm -f conftest.$ac_objext
36639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36640   (eval $ac_compile) 2>conftest.er1
36641   ac_status=$?
36642   grep -v '^ *+' conftest.er1 >conftest.err
36643   rm -f conftest.er1
36644   cat conftest.err >&5
36645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646   (exit $ac_status); } &&
36647          { ac_try='test -z "$ac_c_werror_flag"
36648                          || test ! -s conftest.err'
36649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36650   (eval $ac_try) 2>&5
36651   ac_status=$?
36652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36653   (exit $ac_status); }; } &&
36654          { ac_try='test -s conftest.$ac_objext'
36655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36656   (eval $ac_try) 2>&5
36657   ac_status=$?
36658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36659   (exit $ac_status); }; }; then
36660   ac_cv_member_struct_utmpx_ut_name=yes
36661 else
36662   echo "$as_me: failed program was:" >&5
36663 sed 's/^/| /' conftest.$ac_ext >&5
36664
36665 cat >conftest.$ac_ext <<_ACEOF
36666 /* confdefs.h.  */
36667 _ACEOF
36668 cat confdefs.h >>conftest.$ac_ext
36669 cat >>conftest.$ac_ext <<_ACEOF
36670 /* end confdefs.h.  */
36671 $utmp_includes
36672
36673 int
36674 main ()
36675 {
36676 static struct utmpx ac_aggr;
36677 if (sizeof ac_aggr.ut_name)
36678 return 0;
36679   ;
36680   return 0;
36681 }
36682 _ACEOF
36683 rm -f conftest.$ac_objext
36684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36685   (eval $ac_compile) 2>conftest.er1
36686   ac_status=$?
36687   grep -v '^ *+' conftest.er1 >conftest.err
36688   rm -f conftest.er1
36689   cat conftest.err >&5
36690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36691   (exit $ac_status); } &&
36692          { ac_try='test -z "$ac_c_werror_flag"
36693                          || test ! -s conftest.err'
36694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36695   (eval $ac_try) 2>&5
36696   ac_status=$?
36697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36698   (exit $ac_status); }; } &&
36699          { ac_try='test -s conftest.$ac_objext'
36700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36701   (eval $ac_try) 2>&5
36702   ac_status=$?
36703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36704   (exit $ac_status); }; }; then
36705   ac_cv_member_struct_utmpx_ut_name=yes
36706 else
36707   echo "$as_me: failed program was:" >&5
36708 sed 's/^/| /' conftest.$ac_ext >&5
36709
36710 ac_cv_member_struct_utmpx_ut_name=no
36711 fi
36712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36713 fi
36714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36715 fi
36716 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
36717 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
36718 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
36719
36720 cat >>confdefs.h <<_ACEOF
36721 #define HAVE_STRUCT_UTMPX_UT_NAME 1
36722 _ACEOF
36723
36724
36725 fi
36726
36727     echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
36728 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
36729 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
36730   echo $ECHO_N "(cached) $ECHO_C" >&6
36731 else
36732   cat >conftest.$ac_ext <<_ACEOF
36733 /* confdefs.h.  */
36734 _ACEOF
36735 cat confdefs.h >>conftest.$ac_ext
36736 cat >>conftest.$ac_ext <<_ACEOF
36737 /* end confdefs.h.  */
36738 $utmp_includes
36739
36740 int
36741 main ()
36742 {
36743 static struct utmp ac_aggr;
36744 if (ac_aggr.ut_name)
36745 return 0;
36746   ;
36747   return 0;
36748 }
36749 _ACEOF
36750 rm -f conftest.$ac_objext
36751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36752   (eval $ac_compile) 2>conftest.er1
36753   ac_status=$?
36754   grep -v '^ *+' conftest.er1 >conftest.err
36755   rm -f conftest.er1
36756   cat conftest.err >&5
36757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36758   (exit $ac_status); } &&
36759          { ac_try='test -z "$ac_c_werror_flag"
36760                          || test ! -s conftest.err'
36761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36762   (eval $ac_try) 2>&5
36763   ac_status=$?
36764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36765   (exit $ac_status); }; } &&
36766          { ac_try='test -s conftest.$ac_objext'
36767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36768   (eval $ac_try) 2>&5
36769   ac_status=$?
36770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771   (exit $ac_status); }; }; then
36772   ac_cv_member_struct_utmp_ut_name=yes
36773 else
36774   echo "$as_me: failed program was:" >&5
36775 sed 's/^/| /' conftest.$ac_ext >&5
36776
36777 cat >conftest.$ac_ext <<_ACEOF
36778 /* confdefs.h.  */
36779 _ACEOF
36780 cat confdefs.h >>conftest.$ac_ext
36781 cat >>conftest.$ac_ext <<_ACEOF
36782 /* end confdefs.h.  */
36783 $utmp_includes
36784
36785 int
36786 main ()
36787 {
36788 static struct utmp ac_aggr;
36789 if (sizeof ac_aggr.ut_name)
36790 return 0;
36791   ;
36792   return 0;
36793 }
36794 _ACEOF
36795 rm -f conftest.$ac_objext
36796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36797   (eval $ac_compile) 2>conftest.er1
36798   ac_status=$?
36799   grep -v '^ *+' conftest.er1 >conftest.err
36800   rm -f conftest.er1
36801   cat conftest.err >&5
36802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36803   (exit $ac_status); } &&
36804          { ac_try='test -z "$ac_c_werror_flag"
36805                          || test ! -s conftest.err'
36806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36807   (eval $ac_try) 2>&5
36808   ac_status=$?
36809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36810   (exit $ac_status); }; } &&
36811          { ac_try='test -s conftest.$ac_objext'
36812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36813   (eval $ac_try) 2>&5
36814   ac_status=$?
36815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36816   (exit $ac_status); }; }; then
36817   ac_cv_member_struct_utmp_ut_name=yes
36818 else
36819   echo "$as_me: failed program was:" >&5
36820 sed 's/^/| /' conftest.$ac_ext >&5
36821
36822 ac_cv_member_struct_utmp_ut_name=no
36823 fi
36824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36825 fi
36826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36827 fi
36828 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
36829 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
36830 if test $ac_cv_member_struct_utmp_ut_name = yes; then
36831
36832 cat >>confdefs.h <<_ACEOF
36833 #define HAVE_STRUCT_UTMP_UT_NAME 1
36834 _ACEOF
36835
36836
36837 fi
36838
36839     echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
36840 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
36841 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
36842   echo $ECHO_N "(cached) $ECHO_C" >&6
36843 else
36844   cat >conftest.$ac_ext <<_ACEOF
36845 /* confdefs.h.  */
36846 _ACEOF
36847 cat confdefs.h >>conftest.$ac_ext
36848 cat >>conftest.$ac_ext <<_ACEOF
36849 /* end confdefs.h.  */
36850 $utmp_includes
36851
36852 int
36853 main ()
36854 {
36855 static struct utmpx ac_aggr;
36856 if (ac_aggr.ut_type)
36857 return 0;
36858   ;
36859   return 0;
36860 }
36861 _ACEOF
36862 rm -f conftest.$ac_objext
36863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36864   (eval $ac_compile) 2>conftest.er1
36865   ac_status=$?
36866   grep -v '^ *+' conftest.er1 >conftest.err
36867   rm -f conftest.er1
36868   cat conftest.err >&5
36869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870   (exit $ac_status); } &&
36871          { ac_try='test -z "$ac_c_werror_flag"
36872                          || test ! -s conftest.err'
36873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36874   (eval $ac_try) 2>&5
36875   ac_status=$?
36876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36877   (exit $ac_status); }; } &&
36878          { ac_try='test -s conftest.$ac_objext'
36879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36880   (eval $ac_try) 2>&5
36881   ac_status=$?
36882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36883   (exit $ac_status); }; }; then
36884   ac_cv_member_struct_utmpx_ut_type=yes
36885 else
36886   echo "$as_me: failed program was:" >&5
36887 sed 's/^/| /' conftest.$ac_ext >&5
36888
36889 cat >conftest.$ac_ext <<_ACEOF
36890 /* confdefs.h.  */
36891 _ACEOF
36892 cat confdefs.h >>conftest.$ac_ext
36893 cat >>conftest.$ac_ext <<_ACEOF
36894 /* end confdefs.h.  */
36895 $utmp_includes
36896
36897 int
36898 main ()
36899 {
36900 static struct utmpx ac_aggr;
36901 if (sizeof ac_aggr.ut_type)
36902 return 0;
36903   ;
36904   return 0;
36905 }
36906 _ACEOF
36907 rm -f conftest.$ac_objext
36908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36909   (eval $ac_compile) 2>conftest.er1
36910   ac_status=$?
36911   grep -v '^ *+' conftest.er1 >conftest.err
36912   rm -f conftest.er1
36913   cat conftest.err >&5
36914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36915   (exit $ac_status); } &&
36916          { ac_try='test -z "$ac_c_werror_flag"
36917                          || test ! -s conftest.err'
36918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36919   (eval $ac_try) 2>&5
36920   ac_status=$?
36921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36922   (exit $ac_status); }; } &&
36923          { ac_try='test -s conftest.$ac_objext'
36924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36925   (eval $ac_try) 2>&5
36926   ac_status=$?
36927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36928   (exit $ac_status); }; }; then
36929   ac_cv_member_struct_utmpx_ut_type=yes
36930 else
36931   echo "$as_me: failed program was:" >&5
36932 sed 's/^/| /' conftest.$ac_ext >&5
36933
36934 ac_cv_member_struct_utmpx_ut_type=no
36935 fi
36936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36937 fi
36938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36939 fi
36940 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
36941 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
36942 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
36943
36944 cat >>confdefs.h <<_ACEOF
36945 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
36946 _ACEOF
36947
36948
36949 fi
36950
36951     echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
36952 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
36953 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
36954   echo $ECHO_N "(cached) $ECHO_C" >&6
36955 else
36956   cat >conftest.$ac_ext <<_ACEOF
36957 /* confdefs.h.  */
36958 _ACEOF
36959 cat confdefs.h >>conftest.$ac_ext
36960 cat >>conftest.$ac_ext <<_ACEOF
36961 /* end confdefs.h.  */
36962 $utmp_includes
36963
36964 int
36965 main ()
36966 {
36967 static struct utmp ac_aggr;
36968 if (ac_aggr.ut_type)
36969 return 0;
36970   ;
36971   return 0;
36972 }
36973 _ACEOF
36974 rm -f conftest.$ac_objext
36975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36976   (eval $ac_compile) 2>conftest.er1
36977   ac_status=$?
36978   grep -v '^ *+' conftest.er1 >conftest.err
36979   rm -f conftest.er1
36980   cat conftest.err >&5
36981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36982   (exit $ac_status); } &&
36983          { ac_try='test -z "$ac_c_werror_flag"
36984                          || test ! -s conftest.err'
36985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36986   (eval $ac_try) 2>&5
36987   ac_status=$?
36988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36989   (exit $ac_status); }; } &&
36990          { ac_try='test -s conftest.$ac_objext'
36991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36992   (eval $ac_try) 2>&5
36993   ac_status=$?
36994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36995   (exit $ac_status); }; }; then
36996   ac_cv_member_struct_utmp_ut_type=yes
36997 else
36998   echo "$as_me: failed program was:" >&5
36999 sed 's/^/| /' conftest.$ac_ext >&5
37000
37001 cat >conftest.$ac_ext <<_ACEOF
37002 /* confdefs.h.  */
37003 _ACEOF
37004 cat confdefs.h >>conftest.$ac_ext
37005 cat >>conftest.$ac_ext <<_ACEOF
37006 /* end confdefs.h.  */
37007 $utmp_includes
37008
37009 int
37010 main ()
37011 {
37012 static struct utmp ac_aggr;
37013 if (sizeof ac_aggr.ut_type)
37014 return 0;
37015   ;
37016   return 0;
37017 }
37018 _ACEOF
37019 rm -f conftest.$ac_objext
37020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37021   (eval $ac_compile) 2>conftest.er1
37022   ac_status=$?
37023   grep -v '^ *+' conftest.er1 >conftest.err
37024   rm -f conftest.er1
37025   cat conftest.err >&5
37026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37027   (exit $ac_status); } &&
37028          { ac_try='test -z "$ac_c_werror_flag"
37029                          || test ! -s conftest.err'
37030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37031   (eval $ac_try) 2>&5
37032   ac_status=$?
37033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37034   (exit $ac_status); }; } &&
37035          { ac_try='test -s conftest.$ac_objext'
37036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37037   (eval $ac_try) 2>&5
37038   ac_status=$?
37039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37040   (exit $ac_status); }; }; then
37041   ac_cv_member_struct_utmp_ut_type=yes
37042 else
37043   echo "$as_me: failed program was:" >&5
37044 sed 's/^/| /' conftest.$ac_ext >&5
37045
37046 ac_cv_member_struct_utmp_ut_type=no
37047 fi
37048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37049 fi
37050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37051 fi
37052 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
37053 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
37054 if test $ac_cv_member_struct_utmp_ut_type = yes; then
37055
37056 cat >>confdefs.h <<_ACEOF
37057 #define HAVE_STRUCT_UTMP_UT_TYPE 1
37058 _ACEOF
37059
37060
37061 fi
37062
37063     echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
37064 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
37065 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
37066   echo $ECHO_N "(cached) $ECHO_C" >&6
37067 else
37068   cat >conftest.$ac_ext <<_ACEOF
37069 /* confdefs.h.  */
37070 _ACEOF
37071 cat confdefs.h >>conftest.$ac_ext
37072 cat >>conftest.$ac_ext <<_ACEOF
37073 /* end confdefs.h.  */
37074 $utmp_includes
37075
37076 int
37077 main ()
37078 {
37079 static struct utmpx ac_aggr;
37080 if (ac_aggr.ut_pid)
37081 return 0;
37082   ;
37083   return 0;
37084 }
37085 _ACEOF
37086 rm -f conftest.$ac_objext
37087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37088   (eval $ac_compile) 2>conftest.er1
37089   ac_status=$?
37090   grep -v '^ *+' conftest.er1 >conftest.err
37091   rm -f conftest.er1
37092   cat conftest.err >&5
37093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37094   (exit $ac_status); } &&
37095          { ac_try='test -z "$ac_c_werror_flag"
37096                          || test ! -s conftest.err'
37097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37098   (eval $ac_try) 2>&5
37099   ac_status=$?
37100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37101   (exit $ac_status); }; } &&
37102          { ac_try='test -s conftest.$ac_objext'
37103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37104   (eval $ac_try) 2>&5
37105   ac_status=$?
37106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37107   (exit $ac_status); }; }; then
37108   ac_cv_member_struct_utmpx_ut_pid=yes
37109 else
37110   echo "$as_me: failed program was:" >&5
37111 sed 's/^/| /' conftest.$ac_ext >&5
37112
37113 cat >conftest.$ac_ext <<_ACEOF
37114 /* confdefs.h.  */
37115 _ACEOF
37116 cat confdefs.h >>conftest.$ac_ext
37117 cat >>conftest.$ac_ext <<_ACEOF
37118 /* end confdefs.h.  */
37119 $utmp_includes
37120
37121 int
37122 main ()
37123 {
37124 static struct utmpx ac_aggr;
37125 if (sizeof ac_aggr.ut_pid)
37126 return 0;
37127   ;
37128   return 0;
37129 }
37130 _ACEOF
37131 rm -f conftest.$ac_objext
37132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37133   (eval $ac_compile) 2>conftest.er1
37134   ac_status=$?
37135   grep -v '^ *+' conftest.er1 >conftest.err
37136   rm -f conftest.er1
37137   cat conftest.err >&5
37138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37139   (exit $ac_status); } &&
37140          { ac_try='test -z "$ac_c_werror_flag"
37141                          || test ! -s conftest.err'
37142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37143   (eval $ac_try) 2>&5
37144   ac_status=$?
37145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37146   (exit $ac_status); }; } &&
37147          { ac_try='test -s conftest.$ac_objext'
37148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37149   (eval $ac_try) 2>&5
37150   ac_status=$?
37151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37152   (exit $ac_status); }; }; then
37153   ac_cv_member_struct_utmpx_ut_pid=yes
37154 else
37155   echo "$as_me: failed program was:" >&5
37156 sed 's/^/| /' conftest.$ac_ext >&5
37157
37158 ac_cv_member_struct_utmpx_ut_pid=no
37159 fi
37160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37161 fi
37162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37163 fi
37164 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
37165 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
37166 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
37167
37168 cat >>confdefs.h <<_ACEOF
37169 #define HAVE_STRUCT_UTMPX_UT_PID 1
37170 _ACEOF
37171
37172
37173 fi
37174
37175     echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
37176 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
37177 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
37178   echo $ECHO_N "(cached) $ECHO_C" >&6
37179 else
37180   cat >conftest.$ac_ext <<_ACEOF
37181 /* confdefs.h.  */
37182 _ACEOF
37183 cat confdefs.h >>conftest.$ac_ext
37184 cat >>conftest.$ac_ext <<_ACEOF
37185 /* end confdefs.h.  */
37186 $utmp_includes
37187
37188 int
37189 main ()
37190 {
37191 static struct utmp ac_aggr;
37192 if (ac_aggr.ut_pid)
37193 return 0;
37194   ;
37195   return 0;
37196 }
37197 _ACEOF
37198 rm -f conftest.$ac_objext
37199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37200   (eval $ac_compile) 2>conftest.er1
37201   ac_status=$?
37202   grep -v '^ *+' conftest.er1 >conftest.err
37203   rm -f conftest.er1
37204   cat conftest.err >&5
37205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206   (exit $ac_status); } &&
37207          { ac_try='test -z "$ac_c_werror_flag"
37208                          || test ! -s conftest.err'
37209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37210   (eval $ac_try) 2>&5
37211   ac_status=$?
37212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37213   (exit $ac_status); }; } &&
37214          { ac_try='test -s conftest.$ac_objext'
37215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37216   (eval $ac_try) 2>&5
37217   ac_status=$?
37218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219   (exit $ac_status); }; }; then
37220   ac_cv_member_struct_utmp_ut_pid=yes
37221 else
37222   echo "$as_me: failed program was:" >&5
37223 sed 's/^/| /' conftest.$ac_ext >&5
37224
37225 cat >conftest.$ac_ext <<_ACEOF
37226 /* confdefs.h.  */
37227 _ACEOF
37228 cat confdefs.h >>conftest.$ac_ext
37229 cat >>conftest.$ac_ext <<_ACEOF
37230 /* end confdefs.h.  */
37231 $utmp_includes
37232
37233 int
37234 main ()
37235 {
37236 static struct utmp ac_aggr;
37237 if (sizeof ac_aggr.ut_pid)
37238 return 0;
37239   ;
37240   return 0;
37241 }
37242 _ACEOF
37243 rm -f conftest.$ac_objext
37244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37245   (eval $ac_compile) 2>conftest.er1
37246   ac_status=$?
37247   grep -v '^ *+' conftest.er1 >conftest.err
37248   rm -f conftest.er1
37249   cat conftest.err >&5
37250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37251   (exit $ac_status); } &&
37252          { ac_try='test -z "$ac_c_werror_flag"
37253                          || test ! -s conftest.err'
37254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37255   (eval $ac_try) 2>&5
37256   ac_status=$?
37257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37258   (exit $ac_status); }; } &&
37259          { ac_try='test -s conftest.$ac_objext'
37260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37261   (eval $ac_try) 2>&5
37262   ac_status=$?
37263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37264   (exit $ac_status); }; }; then
37265   ac_cv_member_struct_utmp_ut_pid=yes
37266 else
37267   echo "$as_me: failed program was:" >&5
37268 sed 's/^/| /' conftest.$ac_ext >&5
37269
37270 ac_cv_member_struct_utmp_ut_pid=no
37271 fi
37272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37273 fi
37274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37275 fi
37276 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
37277 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
37278 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
37279
37280 cat >>confdefs.h <<_ACEOF
37281 #define HAVE_STRUCT_UTMP_UT_PID 1
37282 _ACEOF
37283
37284
37285 fi
37286
37287     echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
37288 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
37289 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
37290   echo $ECHO_N "(cached) $ECHO_C" >&6
37291 else
37292   cat >conftest.$ac_ext <<_ACEOF
37293 /* confdefs.h.  */
37294 _ACEOF
37295 cat confdefs.h >>conftest.$ac_ext
37296 cat >>conftest.$ac_ext <<_ACEOF
37297 /* end confdefs.h.  */
37298 $utmp_includes
37299
37300 int
37301 main ()
37302 {
37303 static struct utmpx ac_aggr;
37304 if (ac_aggr.ut_id)
37305 return 0;
37306   ;
37307   return 0;
37308 }
37309 _ACEOF
37310 rm -f conftest.$ac_objext
37311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37312   (eval $ac_compile) 2>conftest.er1
37313   ac_status=$?
37314   grep -v '^ *+' conftest.er1 >conftest.err
37315   rm -f conftest.er1
37316   cat conftest.err >&5
37317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37318   (exit $ac_status); } &&
37319          { ac_try='test -z "$ac_c_werror_flag"
37320                          || test ! -s conftest.err'
37321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37322   (eval $ac_try) 2>&5
37323   ac_status=$?
37324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37325   (exit $ac_status); }; } &&
37326          { ac_try='test -s conftest.$ac_objext'
37327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37328   (eval $ac_try) 2>&5
37329   ac_status=$?
37330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37331   (exit $ac_status); }; }; then
37332   ac_cv_member_struct_utmpx_ut_id=yes
37333 else
37334   echo "$as_me: failed program was:" >&5
37335 sed 's/^/| /' conftest.$ac_ext >&5
37336
37337 cat >conftest.$ac_ext <<_ACEOF
37338 /* confdefs.h.  */
37339 _ACEOF
37340 cat confdefs.h >>conftest.$ac_ext
37341 cat >>conftest.$ac_ext <<_ACEOF
37342 /* end confdefs.h.  */
37343 $utmp_includes
37344
37345 int
37346 main ()
37347 {
37348 static struct utmpx ac_aggr;
37349 if (sizeof ac_aggr.ut_id)
37350 return 0;
37351   ;
37352   return 0;
37353 }
37354 _ACEOF
37355 rm -f conftest.$ac_objext
37356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37357   (eval $ac_compile) 2>conftest.er1
37358   ac_status=$?
37359   grep -v '^ *+' conftest.er1 >conftest.err
37360   rm -f conftest.er1
37361   cat conftest.err >&5
37362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37363   (exit $ac_status); } &&
37364          { ac_try='test -z "$ac_c_werror_flag"
37365                          || test ! -s conftest.err'
37366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37367   (eval $ac_try) 2>&5
37368   ac_status=$?
37369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37370   (exit $ac_status); }; } &&
37371          { ac_try='test -s conftest.$ac_objext'
37372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37373   (eval $ac_try) 2>&5
37374   ac_status=$?
37375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37376   (exit $ac_status); }; }; then
37377   ac_cv_member_struct_utmpx_ut_id=yes
37378 else
37379   echo "$as_me: failed program was:" >&5
37380 sed 's/^/| /' conftest.$ac_ext >&5
37381
37382 ac_cv_member_struct_utmpx_ut_id=no
37383 fi
37384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37385 fi
37386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37387 fi
37388 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
37389 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
37390 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
37391
37392 cat >>confdefs.h <<_ACEOF
37393 #define HAVE_STRUCT_UTMPX_UT_ID 1
37394 _ACEOF
37395
37396
37397 fi
37398
37399     echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
37400 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
37401 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
37402   echo $ECHO_N "(cached) $ECHO_C" >&6
37403 else
37404   cat >conftest.$ac_ext <<_ACEOF
37405 /* confdefs.h.  */
37406 _ACEOF
37407 cat confdefs.h >>conftest.$ac_ext
37408 cat >>conftest.$ac_ext <<_ACEOF
37409 /* end confdefs.h.  */
37410 $utmp_includes
37411
37412 int
37413 main ()
37414 {
37415 static struct utmp ac_aggr;
37416 if (ac_aggr.ut_id)
37417 return 0;
37418   ;
37419   return 0;
37420 }
37421 _ACEOF
37422 rm -f conftest.$ac_objext
37423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37424   (eval $ac_compile) 2>conftest.er1
37425   ac_status=$?
37426   grep -v '^ *+' conftest.er1 >conftest.err
37427   rm -f conftest.er1
37428   cat conftest.err >&5
37429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37430   (exit $ac_status); } &&
37431          { ac_try='test -z "$ac_c_werror_flag"
37432                          || test ! -s conftest.err'
37433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37434   (eval $ac_try) 2>&5
37435   ac_status=$?
37436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37437   (exit $ac_status); }; } &&
37438          { ac_try='test -s conftest.$ac_objext'
37439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37440   (eval $ac_try) 2>&5
37441   ac_status=$?
37442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37443   (exit $ac_status); }; }; then
37444   ac_cv_member_struct_utmp_ut_id=yes
37445 else
37446   echo "$as_me: failed program was:" >&5
37447 sed 's/^/| /' conftest.$ac_ext >&5
37448
37449 cat >conftest.$ac_ext <<_ACEOF
37450 /* confdefs.h.  */
37451 _ACEOF
37452 cat confdefs.h >>conftest.$ac_ext
37453 cat >>conftest.$ac_ext <<_ACEOF
37454 /* end confdefs.h.  */
37455 $utmp_includes
37456
37457 int
37458 main ()
37459 {
37460 static struct utmp ac_aggr;
37461 if (sizeof ac_aggr.ut_id)
37462 return 0;
37463   ;
37464   return 0;
37465 }
37466 _ACEOF
37467 rm -f conftest.$ac_objext
37468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37469   (eval $ac_compile) 2>conftest.er1
37470   ac_status=$?
37471   grep -v '^ *+' conftest.er1 >conftest.err
37472   rm -f conftest.er1
37473   cat conftest.err >&5
37474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37475   (exit $ac_status); } &&
37476          { ac_try='test -z "$ac_c_werror_flag"
37477                          || test ! -s conftest.err'
37478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37479   (eval $ac_try) 2>&5
37480   ac_status=$?
37481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37482   (exit $ac_status); }; } &&
37483          { ac_try='test -s conftest.$ac_objext'
37484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37485   (eval $ac_try) 2>&5
37486   ac_status=$?
37487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37488   (exit $ac_status); }; }; then
37489   ac_cv_member_struct_utmp_ut_id=yes
37490 else
37491   echo "$as_me: failed program was:" >&5
37492 sed 's/^/| /' conftest.$ac_ext >&5
37493
37494 ac_cv_member_struct_utmp_ut_id=no
37495 fi
37496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37497 fi
37498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37499 fi
37500 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
37501 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
37502 if test $ac_cv_member_struct_utmp_ut_id = yes; then
37503
37504 cat >>confdefs.h <<_ACEOF
37505 #define HAVE_STRUCT_UTMP_UT_ID 1
37506 _ACEOF
37507
37508
37509 fi
37510
37511     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit" >&5
37512 echo $ECHO_N "checking for struct utmpx.ut_exit... $ECHO_C" >&6
37513 if test "${ac_cv_member_struct_utmpx_ut_exit+set}" = set; then
37514   echo $ECHO_N "(cached) $ECHO_C" >&6
37515 else
37516   cat >conftest.$ac_ext <<_ACEOF
37517 /* confdefs.h.  */
37518 _ACEOF
37519 cat confdefs.h >>conftest.$ac_ext
37520 cat >>conftest.$ac_ext <<_ACEOF
37521 /* end confdefs.h.  */
37522 $utmp_includes
37523
37524 int
37525 main ()
37526 {
37527 static struct utmpx ac_aggr;
37528 if (ac_aggr.ut_exit)
37529 return 0;
37530   ;
37531   return 0;
37532 }
37533 _ACEOF
37534 rm -f conftest.$ac_objext
37535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37536   (eval $ac_compile) 2>conftest.er1
37537   ac_status=$?
37538   grep -v '^ *+' conftest.er1 >conftest.err
37539   rm -f conftest.er1
37540   cat conftest.err >&5
37541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37542   (exit $ac_status); } &&
37543          { ac_try='test -z "$ac_c_werror_flag"
37544                          || test ! -s conftest.err'
37545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37546   (eval $ac_try) 2>&5
37547   ac_status=$?
37548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37549   (exit $ac_status); }; } &&
37550          { ac_try='test -s conftest.$ac_objext'
37551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37552   (eval $ac_try) 2>&5
37553   ac_status=$?
37554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37555   (exit $ac_status); }; }; then
37556   ac_cv_member_struct_utmpx_ut_exit=yes
37557 else
37558   echo "$as_me: failed program was:" >&5
37559 sed 's/^/| /' conftest.$ac_ext >&5
37560
37561 cat >conftest.$ac_ext <<_ACEOF
37562 /* confdefs.h.  */
37563 _ACEOF
37564 cat confdefs.h >>conftest.$ac_ext
37565 cat >>conftest.$ac_ext <<_ACEOF
37566 /* end confdefs.h.  */
37567 $utmp_includes
37568
37569 int
37570 main ()
37571 {
37572 static struct utmpx ac_aggr;
37573 if (sizeof ac_aggr.ut_exit)
37574 return 0;
37575   ;
37576   return 0;
37577 }
37578 _ACEOF
37579 rm -f conftest.$ac_objext
37580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37581   (eval $ac_compile) 2>conftest.er1
37582   ac_status=$?
37583   grep -v '^ *+' conftest.er1 >conftest.err
37584   rm -f conftest.er1
37585   cat conftest.err >&5
37586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37587   (exit $ac_status); } &&
37588          { ac_try='test -z "$ac_c_werror_flag"
37589                          || test ! -s conftest.err'
37590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37591   (eval $ac_try) 2>&5
37592   ac_status=$?
37593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37594   (exit $ac_status); }; } &&
37595          { ac_try='test -s conftest.$ac_objext'
37596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37597   (eval $ac_try) 2>&5
37598   ac_status=$?
37599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37600   (exit $ac_status); }; }; then
37601   ac_cv_member_struct_utmpx_ut_exit=yes
37602 else
37603   echo "$as_me: failed program was:" >&5
37604 sed 's/^/| /' conftest.$ac_ext >&5
37605
37606 ac_cv_member_struct_utmpx_ut_exit=no
37607 fi
37608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37609 fi
37610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37611 fi
37612 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit" >&5
37613 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit" >&6
37614 if test $ac_cv_member_struct_utmpx_ut_exit = yes; then
37615
37616 cat >>confdefs.h <<_ACEOF
37617 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
37618 _ACEOF
37619
37620
37621 fi
37622
37623     echo "$as_me:$LINENO: checking for struct utmp.ut_exit" >&5
37624 echo $ECHO_N "checking for struct utmp.ut_exit... $ECHO_C" >&6
37625 if test "${ac_cv_member_struct_utmp_ut_exit+set}" = set; then
37626   echo $ECHO_N "(cached) $ECHO_C" >&6
37627 else
37628   cat >conftest.$ac_ext <<_ACEOF
37629 /* confdefs.h.  */
37630 _ACEOF
37631 cat confdefs.h >>conftest.$ac_ext
37632 cat >>conftest.$ac_ext <<_ACEOF
37633 /* end confdefs.h.  */
37634 $utmp_includes
37635
37636 int
37637 main ()
37638 {
37639 static struct utmp ac_aggr;
37640 if (ac_aggr.ut_exit)
37641 return 0;
37642   ;
37643   return 0;
37644 }
37645 _ACEOF
37646 rm -f conftest.$ac_objext
37647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37648   (eval $ac_compile) 2>conftest.er1
37649   ac_status=$?
37650   grep -v '^ *+' conftest.er1 >conftest.err
37651   rm -f conftest.er1
37652   cat conftest.err >&5
37653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654   (exit $ac_status); } &&
37655          { ac_try='test -z "$ac_c_werror_flag"
37656                          || test ! -s conftest.err'
37657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37658   (eval $ac_try) 2>&5
37659   ac_status=$?
37660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37661   (exit $ac_status); }; } &&
37662          { ac_try='test -s conftest.$ac_objext'
37663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37664   (eval $ac_try) 2>&5
37665   ac_status=$?
37666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37667   (exit $ac_status); }; }; then
37668   ac_cv_member_struct_utmp_ut_exit=yes
37669 else
37670   echo "$as_me: failed program was:" >&5
37671 sed 's/^/| /' conftest.$ac_ext >&5
37672
37673 cat >conftest.$ac_ext <<_ACEOF
37674 /* confdefs.h.  */
37675 _ACEOF
37676 cat confdefs.h >>conftest.$ac_ext
37677 cat >>conftest.$ac_ext <<_ACEOF
37678 /* end confdefs.h.  */
37679 $utmp_includes
37680
37681 int
37682 main ()
37683 {
37684 static struct utmp ac_aggr;
37685 if (sizeof ac_aggr.ut_exit)
37686 return 0;
37687   ;
37688   return 0;
37689 }
37690 _ACEOF
37691 rm -f conftest.$ac_objext
37692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37693   (eval $ac_compile) 2>conftest.er1
37694   ac_status=$?
37695   grep -v '^ *+' conftest.er1 >conftest.err
37696   rm -f conftest.er1
37697   cat conftest.err >&5
37698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37699   (exit $ac_status); } &&
37700          { ac_try='test -z "$ac_c_werror_flag"
37701                          || test ! -s conftest.err'
37702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37703   (eval $ac_try) 2>&5
37704   ac_status=$?
37705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37706   (exit $ac_status); }; } &&
37707          { ac_try='test -s conftest.$ac_objext'
37708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37709   (eval $ac_try) 2>&5
37710   ac_status=$?
37711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37712   (exit $ac_status); }; }; then
37713   ac_cv_member_struct_utmp_ut_exit=yes
37714 else
37715   echo "$as_me: failed program was:" >&5
37716 sed 's/^/| /' conftest.$ac_ext >&5
37717
37718 ac_cv_member_struct_utmp_ut_exit=no
37719 fi
37720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37721 fi
37722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37723 fi
37724 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit" >&5
37725 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit" >&6
37726 if test $ac_cv_member_struct_utmp_ut_exit = yes; then
37727
37728 cat >>confdefs.h <<_ACEOF
37729 #define HAVE_STRUCT_UTMP_UT_EXIT 1
37730 _ACEOF
37731
37732
37733 fi
37734
37735
37736     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
37737 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
37738 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
37739   echo $ECHO_N "(cached) $ECHO_C" >&6
37740 else
37741   cat >conftest.$ac_ext <<_ACEOF
37742 /* confdefs.h.  */
37743 _ACEOF
37744 cat confdefs.h >>conftest.$ac_ext
37745 cat >>conftest.$ac_ext <<_ACEOF
37746 /* end confdefs.h.  */
37747 $utmp_includes
37748
37749 int
37750 main ()
37751 {
37752 static struct utmpx ac_aggr;
37753 if (ac_aggr.ut_exit.ut_exit)
37754 return 0;
37755   ;
37756   return 0;
37757 }
37758 _ACEOF
37759 rm -f conftest.$ac_objext
37760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37761   (eval $ac_compile) 2>conftest.er1
37762   ac_status=$?
37763   grep -v '^ *+' conftest.er1 >conftest.err
37764   rm -f conftest.er1
37765   cat conftest.err >&5
37766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37767   (exit $ac_status); } &&
37768          { ac_try='test -z "$ac_c_werror_flag"
37769                          || test ! -s conftest.err'
37770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37771   (eval $ac_try) 2>&5
37772   ac_status=$?
37773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37774   (exit $ac_status); }; } &&
37775          { ac_try='test -s conftest.$ac_objext'
37776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37777   (eval $ac_try) 2>&5
37778   ac_status=$?
37779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37780   (exit $ac_status); }; }; then
37781   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
37782 else
37783   echo "$as_me: failed program was:" >&5
37784 sed 's/^/| /' conftest.$ac_ext >&5
37785
37786 cat >conftest.$ac_ext <<_ACEOF
37787 /* confdefs.h.  */
37788 _ACEOF
37789 cat confdefs.h >>conftest.$ac_ext
37790 cat >>conftest.$ac_ext <<_ACEOF
37791 /* end confdefs.h.  */
37792 $utmp_includes
37793
37794 int
37795 main ()
37796 {
37797 static struct utmpx ac_aggr;
37798 if (sizeof ac_aggr.ut_exit.ut_exit)
37799 return 0;
37800   ;
37801   return 0;
37802 }
37803 _ACEOF
37804 rm -f conftest.$ac_objext
37805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37806   (eval $ac_compile) 2>conftest.er1
37807   ac_status=$?
37808   grep -v '^ *+' conftest.er1 >conftest.err
37809   rm -f conftest.er1
37810   cat conftest.err >&5
37811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37812   (exit $ac_status); } &&
37813          { ac_try='test -z "$ac_c_werror_flag"
37814                          || test ! -s conftest.err'
37815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37816   (eval $ac_try) 2>&5
37817   ac_status=$?
37818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37819   (exit $ac_status); }; } &&
37820          { ac_try='test -s conftest.$ac_objext'
37821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37822   (eval $ac_try) 2>&5
37823   ac_status=$?
37824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37825   (exit $ac_status); }; }; then
37826   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
37827 else
37828   echo "$as_me: failed program was:" >&5
37829 sed 's/^/| /' conftest.$ac_ext >&5
37830
37831 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
37832 fi
37833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37834 fi
37835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37836 fi
37837 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
37838 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
37839 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
37840
37841 cat >>confdefs.h <<_ACEOF
37842 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
37843 _ACEOF
37844
37845
37846 fi
37847
37848     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
37849 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
37850 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
37851   echo $ECHO_N "(cached) $ECHO_C" >&6
37852 else
37853   cat >conftest.$ac_ext <<_ACEOF
37854 /* confdefs.h.  */
37855 _ACEOF
37856 cat confdefs.h >>conftest.$ac_ext
37857 cat >>conftest.$ac_ext <<_ACEOF
37858 /* end confdefs.h.  */
37859 $utmp_includes
37860
37861 int
37862 main ()
37863 {
37864 static struct utmp ac_aggr;
37865 if (ac_aggr.ut_exit.ut_exit)
37866 return 0;
37867   ;
37868   return 0;
37869 }
37870 _ACEOF
37871 rm -f conftest.$ac_objext
37872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37873   (eval $ac_compile) 2>conftest.er1
37874   ac_status=$?
37875   grep -v '^ *+' conftest.er1 >conftest.err
37876   rm -f conftest.er1
37877   cat conftest.err >&5
37878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37879   (exit $ac_status); } &&
37880          { ac_try='test -z "$ac_c_werror_flag"
37881                          || test ! -s conftest.err'
37882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37883   (eval $ac_try) 2>&5
37884   ac_status=$?
37885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886   (exit $ac_status); }; } &&
37887          { ac_try='test -s conftest.$ac_objext'
37888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37889   (eval $ac_try) 2>&5
37890   ac_status=$?
37891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37892   (exit $ac_status); }; }; then
37893   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
37894 else
37895   echo "$as_me: failed program was:" >&5
37896 sed 's/^/| /' conftest.$ac_ext >&5
37897
37898 cat >conftest.$ac_ext <<_ACEOF
37899 /* confdefs.h.  */
37900 _ACEOF
37901 cat confdefs.h >>conftest.$ac_ext
37902 cat >>conftest.$ac_ext <<_ACEOF
37903 /* end confdefs.h.  */
37904 $utmp_includes
37905
37906 int
37907 main ()
37908 {
37909 static struct utmp ac_aggr;
37910 if (sizeof ac_aggr.ut_exit.ut_exit)
37911 return 0;
37912   ;
37913   return 0;
37914 }
37915 _ACEOF
37916 rm -f conftest.$ac_objext
37917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37918   (eval $ac_compile) 2>conftest.er1
37919   ac_status=$?
37920   grep -v '^ *+' conftest.er1 >conftest.err
37921   rm -f conftest.er1
37922   cat conftest.err >&5
37923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37924   (exit $ac_status); } &&
37925          { ac_try='test -z "$ac_c_werror_flag"
37926                          || test ! -s conftest.err'
37927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37928   (eval $ac_try) 2>&5
37929   ac_status=$?
37930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37931   (exit $ac_status); }; } &&
37932          { ac_try='test -s conftest.$ac_objext'
37933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37934   (eval $ac_try) 2>&5
37935   ac_status=$?
37936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937   (exit $ac_status); }; }; then
37938   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
37939 else
37940   echo "$as_me: failed program was:" >&5
37941 sed 's/^/| /' conftest.$ac_ext >&5
37942
37943 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
37944 fi
37945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37946 fi
37947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37948 fi
37949 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
37950 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
37951 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
37952
37953 cat >>confdefs.h <<_ACEOF
37954 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
37955 _ACEOF
37956
37957
37958 fi
37959
37960     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
37961 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
37962 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
37963   echo $ECHO_N "(cached) $ECHO_C" >&6
37964 else
37965   cat >conftest.$ac_ext <<_ACEOF
37966 /* confdefs.h.  */
37967 _ACEOF
37968 cat confdefs.h >>conftest.$ac_ext
37969 cat >>conftest.$ac_ext <<_ACEOF
37970 /* end confdefs.h.  */
37971 $utmp_includes
37972
37973 int
37974 main ()
37975 {
37976 static struct utmpx ac_aggr;
37977 if (ac_aggr.ut_exit.e_exit)
37978 return 0;
37979   ;
37980   return 0;
37981 }
37982 _ACEOF
37983 rm -f conftest.$ac_objext
37984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37985   (eval $ac_compile) 2>conftest.er1
37986   ac_status=$?
37987   grep -v '^ *+' conftest.er1 >conftest.err
37988   rm -f conftest.er1
37989   cat conftest.err >&5
37990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991   (exit $ac_status); } &&
37992          { ac_try='test -z "$ac_c_werror_flag"
37993                          || test ! -s conftest.err'
37994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37995   (eval $ac_try) 2>&5
37996   ac_status=$?
37997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37998   (exit $ac_status); }; } &&
37999          { ac_try='test -s conftest.$ac_objext'
38000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38001   (eval $ac_try) 2>&5
38002   ac_status=$?
38003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38004   (exit $ac_status); }; }; then
38005   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
38006 else
38007   echo "$as_me: failed program was:" >&5
38008 sed 's/^/| /' conftest.$ac_ext >&5
38009
38010 cat >conftest.$ac_ext <<_ACEOF
38011 /* confdefs.h.  */
38012 _ACEOF
38013 cat confdefs.h >>conftest.$ac_ext
38014 cat >>conftest.$ac_ext <<_ACEOF
38015 /* end confdefs.h.  */
38016 $utmp_includes
38017
38018 int
38019 main ()
38020 {
38021 static struct utmpx ac_aggr;
38022 if (sizeof ac_aggr.ut_exit.e_exit)
38023 return 0;
38024   ;
38025   return 0;
38026 }
38027 _ACEOF
38028 rm -f conftest.$ac_objext
38029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38030   (eval $ac_compile) 2>conftest.er1
38031   ac_status=$?
38032   grep -v '^ *+' conftest.er1 >conftest.err
38033   rm -f conftest.er1
38034   cat conftest.err >&5
38035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38036   (exit $ac_status); } &&
38037          { ac_try='test -z "$ac_c_werror_flag"
38038                          || test ! -s conftest.err'
38039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38040   (eval $ac_try) 2>&5
38041   ac_status=$?
38042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38043   (exit $ac_status); }; } &&
38044          { ac_try='test -s conftest.$ac_objext'
38045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38046   (eval $ac_try) 2>&5
38047   ac_status=$?
38048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38049   (exit $ac_status); }; }; then
38050   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
38051 else
38052   echo "$as_me: failed program was:" >&5
38053 sed 's/^/| /' conftest.$ac_ext >&5
38054
38055 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
38056 fi
38057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38058 fi
38059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38060 fi
38061 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
38062 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
38063 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
38064
38065 cat >>confdefs.h <<_ACEOF
38066 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
38067 _ACEOF
38068
38069
38070 fi
38071
38072     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
38073 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
38074 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
38075   echo $ECHO_N "(cached) $ECHO_C" >&6
38076 else
38077   cat >conftest.$ac_ext <<_ACEOF
38078 /* confdefs.h.  */
38079 _ACEOF
38080 cat confdefs.h >>conftest.$ac_ext
38081 cat >>conftest.$ac_ext <<_ACEOF
38082 /* end confdefs.h.  */
38083 $utmp_includes
38084
38085 int
38086 main ()
38087 {
38088 static struct utmp ac_aggr;
38089 if (ac_aggr.ut_exit.e_exit)
38090 return 0;
38091   ;
38092   return 0;
38093 }
38094 _ACEOF
38095 rm -f conftest.$ac_objext
38096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38097   (eval $ac_compile) 2>conftest.er1
38098   ac_status=$?
38099   grep -v '^ *+' conftest.er1 >conftest.err
38100   rm -f conftest.er1
38101   cat conftest.err >&5
38102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38103   (exit $ac_status); } &&
38104          { ac_try='test -z "$ac_c_werror_flag"
38105                          || test ! -s conftest.err'
38106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38107   (eval $ac_try) 2>&5
38108   ac_status=$?
38109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38110   (exit $ac_status); }; } &&
38111          { ac_try='test -s conftest.$ac_objext'
38112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38113   (eval $ac_try) 2>&5
38114   ac_status=$?
38115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38116   (exit $ac_status); }; }; then
38117   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
38118 else
38119   echo "$as_me: failed program was:" >&5
38120 sed 's/^/| /' conftest.$ac_ext >&5
38121
38122 cat >conftest.$ac_ext <<_ACEOF
38123 /* confdefs.h.  */
38124 _ACEOF
38125 cat confdefs.h >>conftest.$ac_ext
38126 cat >>conftest.$ac_ext <<_ACEOF
38127 /* end confdefs.h.  */
38128 $utmp_includes
38129
38130 int
38131 main ()
38132 {
38133 static struct utmp ac_aggr;
38134 if (sizeof ac_aggr.ut_exit.e_exit)
38135 return 0;
38136   ;
38137   return 0;
38138 }
38139 _ACEOF
38140 rm -f conftest.$ac_objext
38141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38142   (eval $ac_compile) 2>conftest.er1
38143   ac_status=$?
38144   grep -v '^ *+' conftest.er1 >conftest.err
38145   rm -f conftest.er1
38146   cat conftest.err >&5
38147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38148   (exit $ac_status); } &&
38149          { ac_try='test -z "$ac_c_werror_flag"
38150                          || test ! -s conftest.err'
38151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38152   (eval $ac_try) 2>&5
38153   ac_status=$?
38154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38155   (exit $ac_status); }; } &&
38156          { ac_try='test -s conftest.$ac_objext'
38157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38158   (eval $ac_try) 2>&5
38159   ac_status=$?
38160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38161   (exit $ac_status); }; }; then
38162   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
38163 else
38164   echo "$as_me: failed program was:" >&5
38165 sed 's/^/| /' conftest.$ac_ext >&5
38166
38167 ac_cv_member_struct_utmp_ut_exit_e_exit=no
38168 fi
38169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38170 fi
38171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38172 fi
38173 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
38174 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
38175 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
38176
38177 cat >>confdefs.h <<_ACEOF
38178 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
38179 _ACEOF
38180
38181
38182 fi
38183
38184
38185     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
38186 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
38187 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
38188   echo $ECHO_N "(cached) $ECHO_C" >&6
38189 else
38190   cat >conftest.$ac_ext <<_ACEOF
38191 /* confdefs.h.  */
38192 _ACEOF
38193 cat confdefs.h >>conftest.$ac_ext
38194 cat >>conftest.$ac_ext <<_ACEOF
38195 /* end confdefs.h.  */
38196 $utmp_includes
38197
38198 int
38199 main ()
38200 {
38201 static struct utmpx ac_aggr;
38202 if (ac_aggr.ut_exit.ut_termination)
38203 return 0;
38204   ;
38205   return 0;
38206 }
38207 _ACEOF
38208 rm -f conftest.$ac_objext
38209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38210   (eval $ac_compile) 2>conftest.er1
38211   ac_status=$?
38212   grep -v '^ *+' conftest.er1 >conftest.err
38213   rm -f conftest.er1
38214   cat conftest.err >&5
38215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38216   (exit $ac_status); } &&
38217          { ac_try='test -z "$ac_c_werror_flag"
38218                          || test ! -s conftest.err'
38219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38220   (eval $ac_try) 2>&5
38221   ac_status=$?
38222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38223   (exit $ac_status); }; } &&
38224          { ac_try='test -s conftest.$ac_objext'
38225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38226   (eval $ac_try) 2>&5
38227   ac_status=$?
38228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38229   (exit $ac_status); }; }; then
38230   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
38231 else
38232   echo "$as_me: failed program was:" >&5
38233 sed 's/^/| /' conftest.$ac_ext >&5
38234
38235 cat >conftest.$ac_ext <<_ACEOF
38236 /* confdefs.h.  */
38237 _ACEOF
38238 cat confdefs.h >>conftest.$ac_ext
38239 cat >>conftest.$ac_ext <<_ACEOF
38240 /* end confdefs.h.  */
38241 $utmp_includes
38242
38243 int
38244 main ()
38245 {
38246 static struct utmpx ac_aggr;
38247 if (sizeof ac_aggr.ut_exit.ut_termination)
38248 return 0;
38249   ;
38250   return 0;
38251 }
38252 _ACEOF
38253 rm -f conftest.$ac_objext
38254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38255   (eval $ac_compile) 2>conftest.er1
38256   ac_status=$?
38257   grep -v '^ *+' conftest.er1 >conftest.err
38258   rm -f conftest.er1
38259   cat conftest.err >&5
38260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38261   (exit $ac_status); } &&
38262          { ac_try='test -z "$ac_c_werror_flag"
38263                          || test ! -s conftest.err'
38264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38265   (eval $ac_try) 2>&5
38266   ac_status=$?
38267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38268   (exit $ac_status); }; } &&
38269          { ac_try='test -s conftest.$ac_objext'
38270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38271   (eval $ac_try) 2>&5
38272   ac_status=$?
38273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38274   (exit $ac_status); }; }; then
38275   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
38276 else
38277   echo "$as_me: failed program was:" >&5
38278 sed 's/^/| /' conftest.$ac_ext >&5
38279
38280 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
38281 fi
38282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38283 fi
38284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38285 fi
38286 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
38287 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
38288 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
38289
38290 cat >>confdefs.h <<_ACEOF
38291 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
38292 _ACEOF
38293
38294
38295 fi
38296
38297     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
38298 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
38299 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
38300   echo $ECHO_N "(cached) $ECHO_C" >&6
38301 else
38302   cat >conftest.$ac_ext <<_ACEOF
38303 /* confdefs.h.  */
38304 _ACEOF
38305 cat confdefs.h >>conftest.$ac_ext
38306 cat >>conftest.$ac_ext <<_ACEOF
38307 /* end confdefs.h.  */
38308 $utmp_includes
38309
38310 int
38311 main ()
38312 {
38313 static struct utmp ac_aggr;
38314 if (ac_aggr.ut_exit.ut_termination)
38315 return 0;
38316   ;
38317   return 0;
38318 }
38319 _ACEOF
38320 rm -f conftest.$ac_objext
38321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38322   (eval $ac_compile) 2>conftest.er1
38323   ac_status=$?
38324   grep -v '^ *+' conftest.er1 >conftest.err
38325   rm -f conftest.er1
38326   cat conftest.err >&5
38327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38328   (exit $ac_status); } &&
38329          { ac_try='test -z "$ac_c_werror_flag"
38330                          || test ! -s conftest.err'
38331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38332   (eval $ac_try) 2>&5
38333   ac_status=$?
38334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38335   (exit $ac_status); }; } &&
38336          { ac_try='test -s conftest.$ac_objext'
38337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38338   (eval $ac_try) 2>&5
38339   ac_status=$?
38340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341   (exit $ac_status); }; }; then
38342   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
38343 else
38344   echo "$as_me: failed program was:" >&5
38345 sed 's/^/| /' conftest.$ac_ext >&5
38346
38347 cat >conftest.$ac_ext <<_ACEOF
38348 /* confdefs.h.  */
38349 _ACEOF
38350 cat confdefs.h >>conftest.$ac_ext
38351 cat >>conftest.$ac_ext <<_ACEOF
38352 /* end confdefs.h.  */
38353 $utmp_includes
38354
38355 int
38356 main ()
38357 {
38358 static struct utmp ac_aggr;
38359 if (sizeof ac_aggr.ut_exit.ut_termination)
38360 return 0;
38361   ;
38362   return 0;
38363 }
38364 _ACEOF
38365 rm -f conftest.$ac_objext
38366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38367   (eval $ac_compile) 2>conftest.er1
38368   ac_status=$?
38369   grep -v '^ *+' conftest.er1 >conftest.err
38370   rm -f conftest.er1
38371   cat conftest.err >&5
38372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373   (exit $ac_status); } &&
38374          { ac_try='test -z "$ac_c_werror_flag"
38375                          || test ! -s conftest.err'
38376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38377   (eval $ac_try) 2>&5
38378   ac_status=$?
38379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380   (exit $ac_status); }; } &&
38381          { ac_try='test -s conftest.$ac_objext'
38382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38383   (eval $ac_try) 2>&5
38384   ac_status=$?
38385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38386   (exit $ac_status); }; }; then
38387   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
38388 else
38389   echo "$as_me: failed program was:" >&5
38390 sed 's/^/| /' conftest.$ac_ext >&5
38391
38392 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
38393 fi
38394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38395 fi
38396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38397 fi
38398 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
38399 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
38400 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
38401
38402 cat >>confdefs.h <<_ACEOF
38403 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
38404 _ACEOF
38405
38406
38407 fi
38408
38409     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
38410 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
38411 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
38412   echo $ECHO_N "(cached) $ECHO_C" >&6
38413 else
38414   cat >conftest.$ac_ext <<_ACEOF
38415 /* confdefs.h.  */
38416 _ACEOF
38417 cat confdefs.h >>conftest.$ac_ext
38418 cat >>conftest.$ac_ext <<_ACEOF
38419 /* end confdefs.h.  */
38420 $utmp_includes
38421
38422 int
38423 main ()
38424 {
38425 static struct utmpx ac_aggr;
38426 if (ac_aggr.ut_exit.e_termination)
38427 return 0;
38428   ;
38429   return 0;
38430 }
38431 _ACEOF
38432 rm -f conftest.$ac_objext
38433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38434   (eval $ac_compile) 2>conftest.er1
38435   ac_status=$?
38436   grep -v '^ *+' conftest.er1 >conftest.err
38437   rm -f conftest.er1
38438   cat conftest.err >&5
38439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38440   (exit $ac_status); } &&
38441          { ac_try='test -z "$ac_c_werror_flag"
38442                          || test ! -s conftest.err'
38443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38444   (eval $ac_try) 2>&5
38445   ac_status=$?
38446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38447   (exit $ac_status); }; } &&
38448          { ac_try='test -s conftest.$ac_objext'
38449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38450   (eval $ac_try) 2>&5
38451   ac_status=$?
38452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453   (exit $ac_status); }; }; then
38454   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
38455 else
38456   echo "$as_me: failed program was:" >&5
38457 sed 's/^/| /' conftest.$ac_ext >&5
38458
38459 cat >conftest.$ac_ext <<_ACEOF
38460 /* confdefs.h.  */
38461 _ACEOF
38462 cat confdefs.h >>conftest.$ac_ext
38463 cat >>conftest.$ac_ext <<_ACEOF
38464 /* end confdefs.h.  */
38465 $utmp_includes
38466
38467 int
38468 main ()
38469 {
38470 static struct utmpx ac_aggr;
38471 if (sizeof ac_aggr.ut_exit.e_termination)
38472 return 0;
38473   ;
38474   return 0;
38475 }
38476 _ACEOF
38477 rm -f conftest.$ac_objext
38478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38479   (eval $ac_compile) 2>conftest.er1
38480   ac_status=$?
38481   grep -v '^ *+' conftest.er1 >conftest.err
38482   rm -f conftest.er1
38483   cat conftest.err >&5
38484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38485   (exit $ac_status); } &&
38486          { ac_try='test -z "$ac_c_werror_flag"
38487                          || test ! -s conftest.err'
38488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38489   (eval $ac_try) 2>&5
38490   ac_status=$?
38491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38492   (exit $ac_status); }; } &&
38493          { ac_try='test -s conftest.$ac_objext'
38494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38495   (eval $ac_try) 2>&5
38496   ac_status=$?
38497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38498   (exit $ac_status); }; }; then
38499   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
38500 else
38501   echo "$as_me: failed program was:" >&5
38502 sed 's/^/| /' conftest.$ac_ext >&5
38503
38504 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
38505 fi
38506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38507 fi
38508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38509 fi
38510 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
38511 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
38512 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
38513
38514 cat >>confdefs.h <<_ACEOF
38515 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
38516 _ACEOF
38517
38518
38519 fi
38520
38521     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
38522 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
38523 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
38524   echo $ECHO_N "(cached) $ECHO_C" >&6
38525 else
38526   cat >conftest.$ac_ext <<_ACEOF
38527 /* confdefs.h.  */
38528 _ACEOF
38529 cat confdefs.h >>conftest.$ac_ext
38530 cat >>conftest.$ac_ext <<_ACEOF
38531 /* end confdefs.h.  */
38532 $utmp_includes
38533
38534 int
38535 main ()
38536 {
38537 static struct utmp ac_aggr;
38538 if (ac_aggr.ut_exit.e_termination)
38539 return 0;
38540   ;
38541   return 0;
38542 }
38543 _ACEOF
38544 rm -f conftest.$ac_objext
38545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38546   (eval $ac_compile) 2>conftest.er1
38547   ac_status=$?
38548   grep -v '^ *+' conftest.er1 >conftest.err
38549   rm -f conftest.er1
38550   cat conftest.err >&5
38551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38552   (exit $ac_status); } &&
38553          { ac_try='test -z "$ac_c_werror_flag"
38554                          || test ! -s conftest.err'
38555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38556   (eval $ac_try) 2>&5
38557   ac_status=$?
38558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38559   (exit $ac_status); }; } &&
38560          { ac_try='test -s conftest.$ac_objext'
38561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38562   (eval $ac_try) 2>&5
38563   ac_status=$?
38564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38565   (exit $ac_status); }; }; then
38566   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
38567 else
38568   echo "$as_me: failed program was:" >&5
38569 sed 's/^/| /' conftest.$ac_ext >&5
38570
38571 cat >conftest.$ac_ext <<_ACEOF
38572 /* confdefs.h.  */
38573 _ACEOF
38574 cat confdefs.h >>conftest.$ac_ext
38575 cat >>conftest.$ac_ext <<_ACEOF
38576 /* end confdefs.h.  */
38577 $utmp_includes
38578
38579 int
38580 main ()
38581 {
38582 static struct utmp ac_aggr;
38583 if (sizeof ac_aggr.ut_exit.e_termination)
38584 return 0;
38585   ;
38586   return 0;
38587 }
38588 _ACEOF
38589 rm -f conftest.$ac_objext
38590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38591   (eval $ac_compile) 2>conftest.er1
38592   ac_status=$?
38593   grep -v '^ *+' conftest.er1 >conftest.err
38594   rm -f conftest.er1
38595   cat conftest.err >&5
38596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597   (exit $ac_status); } &&
38598          { ac_try='test -z "$ac_c_werror_flag"
38599                          || test ! -s conftest.err'
38600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38601   (eval $ac_try) 2>&5
38602   ac_status=$?
38603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38604   (exit $ac_status); }; } &&
38605          { ac_try='test -s conftest.$ac_objext'
38606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38607   (eval $ac_try) 2>&5
38608   ac_status=$?
38609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38610   (exit $ac_status); }; }; then
38611   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
38612 else
38613   echo "$as_me: failed program was:" >&5
38614 sed 's/^/| /' conftest.$ac_ext >&5
38615
38616 ac_cv_member_struct_utmp_ut_exit_e_termination=no
38617 fi
38618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38619 fi
38620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38621 fi
38622 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
38623 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
38624 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
38625
38626 cat >>confdefs.h <<_ACEOF
38627 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
38628 _ACEOF
38629
38630
38631 fi
38632
38633
38634     case $LIBOBJS in
38635     "readutmp.$ac_objext"   | \
38636   *" readutmp.$ac_objext"   | \
38637     "readutmp.$ac_objext "* | \
38638   *" readutmp.$ac_objext "* ) ;;
38639   *) LIBOBJS="$LIBOBJS readutmp.$ac_objext" ;;
38640 esac
38641
38642
38643
38644
38645   fi
38646
38647 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
38648 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
38649 if test "${gl_cv_c_restrict+set}" = set; then
38650   echo $ECHO_N "(cached) $ECHO_C" >&6
38651 else
38652   gl_cv_c_restrict=no
38653    # Try the official restrict keyword, then gcc's __restrict, and
38654    # the less common variants.
38655    for ac_kw in restrict __restrict __restrict__ _Restrict; do
38656      cat >conftest.$ac_ext <<_ACEOF
38657 /* confdefs.h.  */
38658 _ACEOF
38659 cat confdefs.h >>conftest.$ac_ext
38660 cat >>conftest.$ac_ext <<_ACEOF
38661 /* end confdefs.h.  */
38662 float * $ac_kw x;
38663 _ACEOF
38664 rm -f conftest.$ac_objext
38665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38666   (eval $ac_compile) 2>conftest.er1
38667   ac_status=$?
38668   grep -v '^ *+' conftest.er1 >conftest.err
38669   rm -f conftest.er1
38670   cat conftest.err >&5
38671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38672   (exit $ac_status); } &&
38673          { ac_try='test -z "$ac_c_werror_flag"
38674                          || test ! -s conftest.err'
38675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38676   (eval $ac_try) 2>&5
38677   ac_status=$?
38678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38679   (exit $ac_status); }; } &&
38680          { ac_try='test -s conftest.$ac_objext'
38681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38682   (eval $ac_try) 2>&5
38683   ac_status=$?
38684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38685   (exit $ac_status); }; }; then
38686   gl_cv_c_restrict=$ac_kw; break
38687 else
38688   echo "$as_me: failed program was:" >&5
38689 sed 's/^/| /' conftest.$ac_ext >&5
38690
38691 fi
38692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38693    done
38694
38695 fi
38696 echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
38697 echo "${ECHO_T}$gl_cv_c_restrict" >&6
38698  case $gl_cv_c_restrict in
38699    restrict) ;;
38700    no)
38701 cat >>confdefs.h <<\_ACEOF
38702 #define restrict
38703 _ACEOF
38704  ;;
38705    *)  cat >>confdefs.h <<_ACEOF
38706 #define restrict $gl_cv_c_restrict
38707 _ACEOF
38708  ;;
38709  esac
38710
38711
38712
38713
38714     # Assume we'll default to using the included regex.c.
38715     ac_use_included_regex=yes
38716
38717     # However, if the system regex support is good enough that it passes the
38718     # the following run test, then default to *not* using the included regex.c.
38719     # If cross compiling, assume the test would fail and use the included
38720     # regex.c.  The first failing regular expression is from `Spencer ere
38721     # test #75' in grep-2.3.
38722     echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
38723 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
38724 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
38725   echo $ECHO_N "(cached) $ECHO_C" >&6
38726 else
38727   if test "$cross_compiling" = yes; then
38728                jm_cv_func_working_re_compile_pattern=no
38729 else
38730   cat >conftest.$ac_ext <<_ACEOF
38731 /* confdefs.h.  */
38732 _ACEOF
38733 cat confdefs.h >>conftest.$ac_ext
38734 cat >>conftest.$ac_ext <<_ACEOF
38735 /* end confdefs.h.  */
38736 #include <stdio.h>
38737 #include <string.h>
38738 #include <regex.h>
38739           int
38740           main ()
38741           {
38742             static struct re_pattern_buffer regex;
38743             const char *s;
38744             struct re_registers regs;
38745             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
38746             memset (&regex, 0, sizeof (regex));
38747             s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
38748             /* This should fail with _Invalid character class name_ error.  */
38749             if (!s)
38750               exit (1);
38751
38752             /* This should succeed, but doesn't for e.g. glibc-2.1.3.  */
38753             memset (&regex, 0, sizeof (regex));
38754             s = re_compile_pattern ("{1", 2, &regex);
38755
38756             if (s)
38757               exit (1);
38758
38759             /* The following example is derived from a problem report
38760                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
38761             memset (&regex, 0, sizeof (regex));
38762             s = re_compile_pattern ("[an\371]*n", 7, &regex);
38763             if (s)
38764               exit (1);
38765
38766             /* This should match, but doesn't for e.g. glibc-2.2.1.  */
38767             if (re_match (&regex, "an", 2, 0, &regs) != 2)
38768               exit (1);
38769
38770             memset (&regex, 0, sizeof (regex));
38771             s = re_compile_pattern ("x", 1, &regex);
38772             if (s)
38773               exit (1);
38774
38775             /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
38776                work with a negative RANGE argument.  */
38777             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
38778               exit (1);
38779
38780             exit (0);
38781           }
38782
38783 _ACEOF
38784 rm -f conftest$ac_exeext
38785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38786   (eval $ac_link) 2>&5
38787   ac_status=$?
38788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38789   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38791   (eval $ac_try) 2>&5
38792   ac_status=$?
38793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38794   (exit $ac_status); }; }; then
38795   jm_cv_func_working_re_compile_pattern=yes
38796 else
38797   echo "$as_me: program exited with status $ac_status" >&5
38798 echo "$as_me: failed program was:" >&5
38799 sed 's/^/| /' conftest.$ac_ext >&5
38800
38801 ( exit $ac_status )
38802 jm_cv_func_working_re_compile_pattern=no
38803 fi
38804 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38805 fi
38806 fi
38807 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
38808 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
38809     if test $jm_cv_func_working_re_compile_pattern = yes; then
38810       ac_use_included_regex=no
38811     fi
38812
38813     test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
38814 echo "$as_me: error: missing argument" >&2;}
38815    { (exit 1); exit 1; }; }
38816
38817
38818
38819 # Check whether --with-included-regex or --without-included-regex was given.
38820 if test "${with_included_regex+set}" = set; then
38821   withval="$with_included_regex"
38822   jm_with_regex=$withval
38823 else
38824   jm_with_regex=$ac_use_included_regex
38825 fi;
38826         if test "$jm_with_regex" = yes; then
38827           case $LIBOBJS in
38828     "regex.$ac_objext"   | \
38829   *" regex.$ac_objext"   | \
38830     "regex.$ac_objext "* | \
38831   *" regex.$ac_objext "* ) ;;
38832   *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
38833 esac
38834
38835
38836
38837
38838
38839
38840
38841
38842
38843   :
38844
38845
38846
38847
38848
38849
38850
38851
38852
38853   :
38854
38855
38856
38857
38858
38859
38860
38861
38862
38863 for ac_func in btowc
38864 do
38865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38866 echo "$as_me:$LINENO: checking for $ac_func" >&5
38867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38868 if eval "test \"\${$as_ac_var+set}\" = set"; then
38869   echo $ECHO_N "(cached) $ECHO_C" >&6
38870 else
38871   cat >conftest.$ac_ext <<_ACEOF
38872 /* confdefs.h.  */
38873 _ACEOF
38874 cat confdefs.h >>conftest.$ac_ext
38875 cat >>conftest.$ac_ext <<_ACEOF
38876 /* end confdefs.h.  */
38877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38879 #define $ac_func innocuous_$ac_func
38880
38881 /* System header to define __stub macros and hopefully few prototypes,
38882     which can conflict with char $ac_func (); below.
38883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38884     <limits.h> exists even on freestanding compilers.  */
38885
38886 #ifdef __STDC__
38887 # include <limits.h>
38888 #else
38889 # include <assert.h>
38890 #endif
38891
38892 #undef $ac_func
38893
38894 /* Override any gcc2 internal prototype to avoid an error.  */
38895 #ifdef __cplusplus
38896 extern "C"
38897 {
38898 #endif
38899 /* We use char because int might match the return type of a gcc2
38900    builtin and then its argument prototype would still apply.  */
38901 char $ac_func ();
38902 /* The GNU C library defines this for functions which it implements
38903     to always fail with ENOSYS.  Some functions are actually named
38904     something starting with __ and the normal name is an alias.  */
38905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38906 choke me
38907 #else
38908 char (*f) () = $ac_func;
38909 #endif
38910 #ifdef __cplusplus
38911 }
38912 #endif
38913
38914 int
38915 main ()
38916 {
38917 return f != $ac_func;
38918   ;
38919   return 0;
38920 }
38921 _ACEOF
38922 rm -f conftest.$ac_objext conftest$ac_exeext
38923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38924   (eval $ac_link) 2>conftest.er1
38925   ac_status=$?
38926   grep -v '^ *+' conftest.er1 >conftest.err
38927   rm -f conftest.er1
38928   cat conftest.err >&5
38929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38930   (exit $ac_status); } &&
38931          { ac_try='test -z "$ac_c_werror_flag"
38932                          || test ! -s conftest.err'
38933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38934   (eval $ac_try) 2>&5
38935   ac_status=$?
38936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38937   (exit $ac_status); }; } &&
38938          { ac_try='test -s conftest$ac_exeext'
38939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38940   (eval $ac_try) 2>&5
38941   ac_status=$?
38942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38943   (exit $ac_status); }; }; then
38944   eval "$as_ac_var=yes"
38945 else
38946   echo "$as_me: failed program was:" >&5
38947 sed 's/^/| /' conftest.$ac_ext >&5
38948
38949 eval "$as_ac_var=no"
38950 fi
38951 rm -f conftest.err conftest.$ac_objext \
38952       conftest$ac_exeext conftest.$ac_ext
38953 fi
38954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38956 if test `eval echo '${'$as_ac_var'}'` = yes; then
38957   cat >>confdefs.h <<_ACEOF
38958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38959 _ACEOF
38960
38961 fi
38962 done
38963
38964
38965         fi
38966
38967
38968
38969
38970
38971
38972
38973
38974   :
38975
38976
38977
38978
38979
38980
38981
38982
38983
38984
38985
38986
38987   :
38988
38989
38990
38991
38992
38993
38994
38995
38996
38997
38998   :
38999
39000
39001
39002
39003
39004
39005 for ac_func in pathconf
39006 do
39007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39008 echo "$as_me:$LINENO: checking for $ac_func" >&5
39009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39010 if eval "test \"\${$as_ac_var+set}\" = set"; then
39011   echo $ECHO_N "(cached) $ECHO_C" >&6
39012 else
39013   cat >conftest.$ac_ext <<_ACEOF
39014 /* confdefs.h.  */
39015 _ACEOF
39016 cat confdefs.h >>conftest.$ac_ext
39017 cat >>conftest.$ac_ext <<_ACEOF
39018 /* end confdefs.h.  */
39019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39021 #define $ac_func innocuous_$ac_func
39022
39023 /* System header to define __stub macros and hopefully few prototypes,
39024     which can conflict with char $ac_func (); below.
39025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39026     <limits.h> exists even on freestanding compilers.  */
39027
39028 #ifdef __STDC__
39029 # include <limits.h>
39030 #else
39031 # include <assert.h>
39032 #endif
39033
39034 #undef $ac_func
39035
39036 /* Override any gcc2 internal prototype to avoid an error.  */
39037 #ifdef __cplusplus
39038 extern "C"
39039 {
39040 #endif
39041 /* We use char because int might match the return type of a gcc2
39042    builtin and then its argument prototype would still apply.  */
39043 char $ac_func ();
39044 /* The GNU C library defines this for functions which it implements
39045     to always fail with ENOSYS.  Some functions are actually named
39046     something starting with __ and the normal name is an alias.  */
39047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39048 choke me
39049 #else
39050 char (*f) () = $ac_func;
39051 #endif
39052 #ifdef __cplusplus
39053 }
39054 #endif
39055
39056 int
39057 main ()
39058 {
39059 return f != $ac_func;
39060   ;
39061   return 0;
39062 }
39063 _ACEOF
39064 rm -f conftest.$ac_objext conftest$ac_exeext
39065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39066   (eval $ac_link) 2>conftest.er1
39067   ac_status=$?
39068   grep -v '^ *+' conftest.er1 >conftest.err
39069   rm -f conftest.er1
39070   cat conftest.err >&5
39071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39072   (exit $ac_status); } &&
39073          { ac_try='test -z "$ac_c_werror_flag"
39074                          || test ! -s conftest.err'
39075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39076   (eval $ac_try) 2>&5
39077   ac_status=$?
39078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39079   (exit $ac_status); }; } &&
39080          { ac_try='test -s conftest$ac_exeext'
39081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39082   (eval $ac_try) 2>&5
39083   ac_status=$?
39084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39085   (exit $ac_status); }; }; then
39086   eval "$as_ac_var=yes"
39087 else
39088   echo "$as_me: failed program was:" >&5
39089 sed 's/^/| /' conftest.$ac_ext >&5
39090
39091 eval "$as_ac_var=no"
39092 fi
39093 rm -f conftest.err conftest.$ac_objext \
39094       conftest$ac_exeext conftest.$ac_ext
39095 fi
39096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39098 if test `eval echo '${'$as_ac_var'}'` = yes; then
39099   cat >>confdefs.h <<_ACEOF
39100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39101 _ACEOF
39102
39103 fi
39104 done
39105
39106
39107 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39108 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
39109 if test "${ac_cv_func_closedir_void+set}" = set; then
39110   echo $ECHO_N "(cached) $ECHO_C" >&6
39111 else
39112   if test "$cross_compiling" = yes; then
39113   ac_cv_func_closedir_void=yes
39114 else
39115   cat >conftest.$ac_ext <<_ACEOF
39116 /* confdefs.h.  */
39117 _ACEOF
39118 cat confdefs.h >>conftest.$ac_ext
39119 cat >>conftest.$ac_ext <<_ACEOF
39120 /* end confdefs.h.  */
39121 $ac_includes_default
39122 #include <$ac_header_dirent>
39123 #ifndef __cplusplus
39124 int closedir ();
39125 #endif
39126
39127 int
39128 main ()
39129 {
39130 exit (closedir (opendir (".")) != 0);
39131   ;
39132   return 0;
39133 }
39134 _ACEOF
39135 rm -f conftest$ac_exeext
39136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39137   (eval $ac_link) 2>&5
39138   ac_status=$?
39139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39142   (eval $ac_try) 2>&5
39143   ac_status=$?
39144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39145   (exit $ac_status); }; }; then
39146   ac_cv_func_closedir_void=no
39147 else
39148   echo "$as_me: program exited with status $ac_status" >&5
39149 echo "$as_me: failed program was:" >&5
39150 sed 's/^/| /' conftest.$ac_ext >&5
39151
39152 ( exit $ac_status )
39153 ac_cv_func_closedir_void=yes
39154 fi
39155 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39156 fi
39157 fi
39158 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39159 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
39160 if test $ac_cv_func_closedir_void = yes; then
39161
39162 cat >>confdefs.h <<\_ACEOF
39163 #define CLOSEDIR_VOID 1
39164 _ACEOF
39165
39166 fi
39167
39168
39169
39170
39171
39172
39173
39174   case $LIBOBJS in
39175     "save-cwd.$ac_objext"   | \
39176   *" save-cwd.$ac_objext"   | \
39177     "save-cwd.$ac_objext "* | \
39178   *" save-cwd.$ac_objext "* ) ;;
39179   *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext" ;;
39180 esac
39181
39182
39183   :
39184
39185
39186
39187
39188
39189
39190
39191
39192
39193 for ac_func in fchdir
39194 do
39195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39196 echo "$as_me:$LINENO: checking for $ac_func" >&5
39197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39198 if eval "test \"\${$as_ac_var+set}\" = set"; then
39199   echo $ECHO_N "(cached) $ECHO_C" >&6
39200 else
39201   cat >conftest.$ac_ext <<_ACEOF
39202 /* confdefs.h.  */
39203 _ACEOF
39204 cat confdefs.h >>conftest.$ac_ext
39205 cat >>conftest.$ac_ext <<_ACEOF
39206 /* end confdefs.h.  */
39207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39209 #define $ac_func innocuous_$ac_func
39210
39211 /* System header to define __stub macros and hopefully few prototypes,
39212     which can conflict with char $ac_func (); below.
39213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39214     <limits.h> exists even on freestanding compilers.  */
39215
39216 #ifdef __STDC__
39217 # include <limits.h>
39218 #else
39219 # include <assert.h>
39220 #endif
39221
39222 #undef $ac_func
39223
39224 /* Override any gcc2 internal prototype to avoid an error.  */
39225 #ifdef __cplusplus
39226 extern "C"
39227 {
39228 #endif
39229 /* We use char because int might match the return type of a gcc2
39230    builtin and then its argument prototype would still apply.  */
39231 char $ac_func ();
39232 /* The GNU C library defines this for functions which it implements
39233     to always fail with ENOSYS.  Some functions are actually named
39234     something starting with __ and the normal name is an alias.  */
39235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39236 choke me
39237 #else
39238 char (*f) () = $ac_func;
39239 #endif
39240 #ifdef __cplusplus
39241 }
39242 #endif
39243
39244 int
39245 main ()
39246 {
39247 return f != $ac_func;
39248   ;
39249   return 0;
39250 }
39251 _ACEOF
39252 rm -f conftest.$ac_objext conftest$ac_exeext
39253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39254   (eval $ac_link) 2>conftest.er1
39255   ac_status=$?
39256   grep -v '^ *+' conftest.er1 >conftest.err
39257   rm -f conftest.er1
39258   cat conftest.err >&5
39259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39260   (exit $ac_status); } &&
39261          { ac_try='test -z "$ac_c_werror_flag"
39262                          || test ! -s conftest.err'
39263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39264   (eval $ac_try) 2>&5
39265   ac_status=$?
39266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39267   (exit $ac_status); }; } &&
39268          { ac_try='test -s conftest$ac_exeext'
39269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39270   (eval $ac_try) 2>&5
39271   ac_status=$?
39272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39273   (exit $ac_status); }; }; then
39274   eval "$as_ac_var=yes"
39275 else
39276   echo "$as_me: failed program was:" >&5
39277 sed 's/^/| /' conftest.$ac_ext >&5
39278
39279 eval "$as_ac_var=no"
39280 fi
39281 rm -f conftest.err conftest.$ac_objext \
39282       conftest$ac_exeext conftest.$ac_ext
39283 fi
39284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39286 if test `eval echo '${'$as_ac_var'}'` = yes; then
39287   cat >>confdefs.h <<_ACEOF
39288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39289 _ACEOF
39290
39291 fi
39292 done
39293
39294
39295
39296
39297 for ac_func in settimeofday
39298 do
39299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39300 echo "$as_me:$LINENO: checking for $ac_func" >&5
39301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39302 if eval "test \"\${$as_ac_var+set}\" = set"; then
39303   echo $ECHO_N "(cached) $ECHO_C" >&6
39304 else
39305   cat >conftest.$ac_ext <<_ACEOF
39306 /* confdefs.h.  */
39307 _ACEOF
39308 cat confdefs.h >>conftest.$ac_ext
39309 cat >>conftest.$ac_ext <<_ACEOF
39310 /* end confdefs.h.  */
39311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39313 #define $ac_func innocuous_$ac_func
39314
39315 /* System header to define __stub macros and hopefully few prototypes,
39316     which can conflict with char $ac_func (); below.
39317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39318     <limits.h> exists even on freestanding compilers.  */
39319
39320 #ifdef __STDC__
39321 # include <limits.h>
39322 #else
39323 # include <assert.h>
39324 #endif
39325
39326 #undef $ac_func
39327
39328 /* Override any gcc2 internal prototype to avoid an error.  */
39329 #ifdef __cplusplus
39330 extern "C"
39331 {
39332 #endif
39333 /* We use char because int might match the return type of a gcc2
39334    builtin and then its argument prototype would still apply.  */
39335 char $ac_func ();
39336 /* The GNU C library defines this for functions which it implements
39337     to always fail with ENOSYS.  Some functions are actually named
39338     something starting with __ and the normal name is an alias.  */
39339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39340 choke me
39341 #else
39342 char (*f) () = $ac_func;
39343 #endif
39344 #ifdef __cplusplus
39345 }
39346 #endif
39347
39348 int
39349 main ()
39350 {
39351 return f != $ac_func;
39352   ;
39353   return 0;
39354 }
39355 _ACEOF
39356 rm -f conftest.$ac_objext conftest$ac_exeext
39357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39358   (eval $ac_link) 2>conftest.er1
39359   ac_status=$?
39360   grep -v '^ *+' conftest.er1 >conftest.err
39361   rm -f conftest.er1
39362   cat conftest.err >&5
39363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39364   (exit $ac_status); } &&
39365          { ac_try='test -z "$ac_c_werror_flag"
39366                          || test ! -s conftest.err'
39367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39368   (eval $ac_try) 2>&5
39369   ac_status=$?
39370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39371   (exit $ac_status); }; } &&
39372          { ac_try='test -s conftest$ac_exeext'
39373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39374   (eval $ac_try) 2>&5
39375   ac_status=$?
39376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39377   (exit $ac_status); }; }; then
39378   eval "$as_ac_var=yes"
39379 else
39380   echo "$as_me: failed program was:" >&5
39381 sed 's/^/| /' conftest.$ac_ext >&5
39382
39383 eval "$as_ac_var=no"
39384 fi
39385 rm -f conftest.err conftest.$ac_objext \
39386       conftest$ac_exeext conftest.$ac_ext
39387 fi
39388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39390 if test `eval echo '${'$as_ac_var'}'` = yes; then
39391   cat >>confdefs.h <<_ACEOF
39392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39393 _ACEOF
39394
39395 fi
39396 done
39397
39398
39399
39400
39401 for ac_func in stime
39402 do
39403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39404 echo "$as_me:$LINENO: checking for $ac_func" >&5
39405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39406 if eval "test \"\${$as_ac_var+set}\" = set"; then
39407   echo $ECHO_N "(cached) $ECHO_C" >&6
39408 else
39409   cat >conftest.$ac_ext <<_ACEOF
39410 /* confdefs.h.  */
39411 _ACEOF
39412 cat confdefs.h >>conftest.$ac_ext
39413 cat >>conftest.$ac_ext <<_ACEOF
39414 /* end confdefs.h.  */
39415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39417 #define $ac_func innocuous_$ac_func
39418
39419 /* System header to define __stub macros and hopefully few prototypes,
39420     which can conflict with char $ac_func (); below.
39421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39422     <limits.h> exists even on freestanding compilers.  */
39423
39424 #ifdef __STDC__
39425 # include <limits.h>
39426 #else
39427 # include <assert.h>
39428 #endif
39429
39430 #undef $ac_func
39431
39432 /* Override any gcc2 internal prototype to avoid an error.  */
39433 #ifdef __cplusplus
39434 extern "C"
39435 {
39436 #endif
39437 /* We use char because int might match the return type of a gcc2
39438    builtin and then its argument prototype would still apply.  */
39439 char $ac_func ();
39440 /* The GNU C library defines this for functions which it implements
39441     to always fail with ENOSYS.  Some functions are actually named
39442     something starting with __ and the normal name is an alias.  */
39443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39444 choke me
39445 #else
39446 char (*f) () = $ac_func;
39447 #endif
39448 #ifdef __cplusplus
39449 }
39450 #endif
39451
39452 int
39453 main ()
39454 {
39455 return f != $ac_func;
39456   ;
39457   return 0;
39458 }
39459 _ACEOF
39460 rm -f conftest.$ac_objext conftest$ac_exeext
39461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39462   (eval $ac_link) 2>conftest.er1
39463   ac_status=$?
39464   grep -v '^ *+' conftest.er1 >conftest.err
39465   rm -f conftest.er1
39466   cat conftest.err >&5
39467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39468   (exit $ac_status); } &&
39469          { ac_try='test -z "$ac_c_werror_flag"
39470                          || test ! -s conftest.err'
39471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39472   (eval $ac_try) 2>&5
39473   ac_status=$?
39474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39475   (exit $ac_status); }; } &&
39476          { ac_try='test -s conftest$ac_exeext'
39477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39478   (eval $ac_try) 2>&5
39479   ac_status=$?
39480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39481   (exit $ac_status); }; }; then
39482   eval "$as_ac_var=yes"
39483 else
39484   echo "$as_me: failed program was:" >&5
39485 sed 's/^/| /' conftest.$ac_ext >&5
39486
39487 eval "$as_ac_var=no"
39488 fi
39489 rm -f conftest.err conftest.$ac_objext \
39490       conftest$ac_exeext conftest.$ac_ext
39491 fi
39492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39494 if test `eval echo '${'$as_ac_var'}'` = yes; then
39495   cat >>confdefs.h <<_ACEOF
39496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39497 _ACEOF
39498
39499 fi
39500 done
39501
39502
39503
39504
39505
39506
39507   :
39508
39509
39510
39511
39512
39513
39514
39515
39516
39517
39518
39519   :
39520
39521
39522
39523   :
39524
39525
39526
39527
39528
39529
39530
39531
39532
39533 for ac_func in strcasecmp
39534 do
39535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39536 echo "$as_me:$LINENO: checking for $ac_func" >&5
39537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39538 if eval "test \"\${$as_ac_var+set}\" = set"; then
39539   echo $ECHO_N "(cached) $ECHO_C" >&6
39540 else
39541   cat >conftest.$ac_ext <<_ACEOF
39542 /* confdefs.h.  */
39543 _ACEOF
39544 cat confdefs.h >>conftest.$ac_ext
39545 cat >>conftest.$ac_ext <<_ACEOF
39546 /* end confdefs.h.  */
39547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39549 #define $ac_func innocuous_$ac_func
39550
39551 /* System header to define __stub macros and hopefully few prototypes,
39552     which can conflict with char $ac_func (); below.
39553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39554     <limits.h> exists even on freestanding compilers.  */
39555
39556 #ifdef __STDC__
39557 # include <limits.h>
39558 #else
39559 # include <assert.h>
39560 #endif
39561
39562 #undef $ac_func
39563
39564 /* Override any gcc2 internal prototype to avoid an error.  */
39565 #ifdef __cplusplus
39566 extern "C"
39567 {
39568 #endif
39569 /* We use char because int might match the return type of a gcc2
39570    builtin and then its argument prototype would still apply.  */
39571 char $ac_func ();
39572 /* The GNU C library defines this for functions which it implements
39573     to always fail with ENOSYS.  Some functions are actually named
39574     something starting with __ and the normal name is an alias.  */
39575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39576 choke me
39577 #else
39578 char (*f) () = $ac_func;
39579 #endif
39580 #ifdef __cplusplus
39581 }
39582 #endif
39583
39584 int
39585 main ()
39586 {
39587 return f != $ac_func;
39588   ;
39589   return 0;
39590 }
39591 _ACEOF
39592 rm -f conftest.$ac_objext conftest$ac_exeext
39593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39594   (eval $ac_link) 2>conftest.er1
39595   ac_status=$?
39596   grep -v '^ *+' conftest.er1 >conftest.err
39597   rm -f conftest.er1
39598   cat conftest.err >&5
39599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600   (exit $ac_status); } &&
39601          { ac_try='test -z "$ac_c_werror_flag"
39602                          || test ! -s conftest.err'
39603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39604   (eval $ac_try) 2>&5
39605   ac_status=$?
39606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39607   (exit $ac_status); }; } &&
39608          { ac_try='test -s conftest$ac_exeext'
39609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39610   (eval $ac_try) 2>&5
39611   ac_status=$?
39612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39613   (exit $ac_status); }; }; then
39614   eval "$as_ac_var=yes"
39615 else
39616   echo "$as_me: failed program was:" >&5
39617 sed 's/^/| /' conftest.$ac_ext >&5
39618
39619 eval "$as_ac_var=no"
39620 fi
39621 rm -f conftest.err conftest.$ac_objext \
39622       conftest$ac_exeext conftest.$ac_ext
39623 fi
39624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39626 if test `eval echo '${'$as_ac_var'}'` = yes; then
39627   cat >>confdefs.h <<_ACEOF
39628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39629 _ACEOF
39630
39631 else
39632   case $LIBOBJS in
39633     "$ac_func.$ac_objext"   | \
39634   *" $ac_func.$ac_objext"   | \
39635     "$ac_func.$ac_objext "* | \
39636   *" $ac_func.$ac_objext "* ) ;;
39637   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39638 esac
39639
39640 fi
39641 done
39642
39643
39644   if test $ac_cv_func_strcasecmp = no; then
39645
39646   :
39647
39648   fi
39649
39650
39651
39652 for ac_func in strncasecmp
39653 do
39654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39655 echo "$as_me:$LINENO: checking for $ac_func" >&5
39656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39657 if eval "test \"\${$as_ac_var+set}\" = set"; then
39658   echo $ECHO_N "(cached) $ECHO_C" >&6
39659 else
39660   cat >conftest.$ac_ext <<_ACEOF
39661 /* confdefs.h.  */
39662 _ACEOF
39663 cat confdefs.h >>conftest.$ac_ext
39664 cat >>conftest.$ac_ext <<_ACEOF
39665 /* end confdefs.h.  */
39666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39668 #define $ac_func innocuous_$ac_func
39669
39670 /* System header to define __stub macros and hopefully few prototypes,
39671     which can conflict with char $ac_func (); below.
39672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39673     <limits.h> exists even on freestanding compilers.  */
39674
39675 #ifdef __STDC__
39676 # include <limits.h>
39677 #else
39678 # include <assert.h>
39679 #endif
39680
39681 #undef $ac_func
39682
39683 /* Override any gcc2 internal prototype to avoid an error.  */
39684 #ifdef __cplusplus
39685 extern "C"
39686 {
39687 #endif
39688 /* We use char because int might match the return type of a gcc2
39689    builtin and then its argument prototype would still apply.  */
39690 char $ac_func ();
39691 /* The GNU C library defines this for functions which it implements
39692     to always fail with ENOSYS.  Some functions are actually named
39693     something starting with __ and the normal name is an alias.  */
39694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39695 choke me
39696 #else
39697 char (*f) () = $ac_func;
39698 #endif
39699 #ifdef __cplusplus
39700 }
39701 #endif
39702
39703 int
39704 main ()
39705 {
39706 return f != $ac_func;
39707   ;
39708   return 0;
39709 }
39710 _ACEOF
39711 rm -f conftest.$ac_objext conftest$ac_exeext
39712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39713   (eval $ac_link) 2>conftest.er1
39714   ac_status=$?
39715   grep -v '^ *+' conftest.er1 >conftest.err
39716   rm -f conftest.er1
39717   cat conftest.err >&5
39718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39719   (exit $ac_status); } &&
39720          { ac_try='test -z "$ac_c_werror_flag"
39721                          || test ! -s conftest.err'
39722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39723   (eval $ac_try) 2>&5
39724   ac_status=$?
39725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39726   (exit $ac_status); }; } &&
39727          { ac_try='test -s conftest$ac_exeext'
39728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39729   (eval $ac_try) 2>&5
39730   ac_status=$?
39731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39732   (exit $ac_status); }; }; then
39733   eval "$as_ac_var=yes"
39734 else
39735   echo "$as_me: failed program was:" >&5
39736 sed 's/^/| /' conftest.$ac_ext >&5
39737
39738 eval "$as_ac_var=no"
39739 fi
39740 rm -f conftest.err conftest.$ac_objext \
39741       conftest$ac_exeext conftest.$ac_ext
39742 fi
39743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39745 if test `eval echo '${'$as_ac_var'}'` = yes; then
39746   cat >>confdefs.h <<_ACEOF
39747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39748 _ACEOF
39749
39750 else
39751   case $LIBOBJS in
39752     "$ac_func.$ac_objext"   | \
39753   *" $ac_func.$ac_objext"   | \
39754     "$ac_func.$ac_objext "* | \
39755   *" $ac_func.$ac_objext "* ) ;;
39756   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39757 esac
39758
39759 fi
39760 done
39761
39762
39763   if test $ac_cv_func_strncasecmp = no; then
39764
39765   :
39766
39767   fi
39768
39769
39770
39771     :
39772
39773
39774
39775
39776   :
39777
39778
39779
39780
39781
39782
39783
39784
39785
39786
39787
39788
39789   :
39790
39791
39792
39793
39794
39795
39796
39797
39798
39799
39800   echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
39801 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6
39802 if test "${gl_cv_func_working_utimes+set}" = set; then
39803   echo $ECHO_N "(cached) $ECHO_C" >&6
39804 else
39805
39806   if test "$cross_compiling" = yes; then
39807   gl_cv_func_working_utimes=no
39808 else
39809   cat >conftest.$ac_ext <<_ACEOF
39810 /* confdefs.h.  */
39811 _ACEOF
39812 cat confdefs.h >>conftest.$ac_ext
39813 cat >>conftest.$ac_ext <<_ACEOF
39814 /* end confdefs.h.  */
39815
39816 #include <sys/types.h>
39817 #include <sys/stat.h>
39818 #include <sys/time.h>
39819 #include <unistd.h>
39820 #include <stdlib.h>
39821 #include <stdio.h>
39822 #include <utime.h>
39823
39824 int
39825 main ()
39826 {
39827   static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
39828   struct stat sbuf;
39829   char const *file = "conftest.utimes";
39830   FILE *f;
39831
39832   exit ( ! ((f = fopen (file, "w"))
39833             && fclose (f) == 0
39834             && utimes (file, timeval) == 0
39835             && lstat (file, &sbuf) == 0
39836             && sbuf.st_atime == timeval[0].tv_sec
39837             && sbuf.st_mtime == timeval[1].tv_sec) );
39838 }
39839
39840 _ACEOF
39841 rm -f conftest$ac_exeext
39842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39843   (eval $ac_link) 2>&5
39844   ac_status=$?
39845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39848   (eval $ac_try) 2>&5
39849   ac_status=$?
39850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39851   (exit $ac_status); }; }; then
39852   gl_cv_func_working_utimes=yes
39853 else
39854   echo "$as_me: program exited with status $ac_status" >&5
39855 echo "$as_me: failed program was:" >&5
39856 sed 's/^/| /' conftest.$ac_ext >&5
39857
39858 ( exit $ac_status )
39859 gl_cv_func_working_utimes=no
39860 fi
39861 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39862 fi
39863 fi
39864 echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
39865 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6
39866
39867   if test $gl_cv_func_working_utimes = yes; then
39868
39869 cat >>confdefs.h <<\_ACEOF
39870 #define HAVE_WORKING_UTIMES 1
39871 _ACEOF
39872
39873   fi
39874
39875
39876
39877
39878   :
39879
39880
39881
39882 for ac_func in futimes
39883 do
39884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39885 echo "$as_me:$LINENO: checking for $ac_func" >&5
39886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39887 if eval "test \"\${$as_ac_var+set}\" = set"; then
39888   echo $ECHO_N "(cached) $ECHO_C" >&6
39889 else
39890   cat >conftest.$ac_ext <<_ACEOF
39891 /* confdefs.h.  */
39892 _ACEOF
39893 cat confdefs.h >>conftest.$ac_ext
39894 cat >>conftest.$ac_ext <<_ACEOF
39895 /* end confdefs.h.  */
39896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39898 #define $ac_func innocuous_$ac_func
39899
39900 /* System header to define __stub macros and hopefully few prototypes,
39901     which can conflict with char $ac_func (); below.
39902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39903     <limits.h> exists even on freestanding compilers.  */
39904
39905 #ifdef __STDC__
39906 # include <limits.h>
39907 #else
39908 # include <assert.h>
39909 #endif
39910
39911 #undef $ac_func
39912
39913 /* Override any gcc2 internal prototype to avoid an error.  */
39914 #ifdef __cplusplus
39915 extern "C"
39916 {
39917 #endif
39918 /* We use char because int might match the return type of a gcc2
39919    builtin and then its argument prototype would still apply.  */
39920 char $ac_func ();
39921 /* The GNU C library defines this for functions which it implements
39922     to always fail with ENOSYS.  Some functions are actually named
39923     something starting with __ and the normal name is an alias.  */
39924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39925 choke me
39926 #else
39927 char (*f) () = $ac_func;
39928 #endif
39929 #ifdef __cplusplus
39930 }
39931 #endif
39932
39933 int
39934 main ()
39935 {
39936 return f != $ac_func;
39937   ;
39938   return 0;
39939 }
39940 _ACEOF
39941 rm -f conftest.$ac_objext conftest$ac_exeext
39942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39943   (eval $ac_link) 2>conftest.er1
39944   ac_status=$?
39945   grep -v '^ *+' conftest.er1 >conftest.err
39946   rm -f conftest.er1
39947   cat conftest.err >&5
39948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39949   (exit $ac_status); } &&
39950          { ac_try='test -z "$ac_c_werror_flag"
39951                          || test ! -s conftest.err'
39952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39953   (eval $ac_try) 2>&5
39954   ac_status=$?
39955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39956   (exit $ac_status); }; } &&
39957          { ac_try='test -s conftest$ac_exeext'
39958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39959   (eval $ac_try) 2>&5
39960   ac_status=$?
39961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39962   (exit $ac_status); }; }; then
39963   eval "$as_ac_var=yes"
39964 else
39965   echo "$as_me: failed program was:" >&5
39966 sed 's/^/| /' conftest.$ac_ext >&5
39967
39968 eval "$as_ac_var=no"
39969 fi
39970 rm -f conftest.err conftest.$ac_objext \
39971       conftest$ac_exeext conftest.$ac_ext
39972 fi
39973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39975 if test `eval echo '${'$as_ac_var'}'` = yes; then
39976   cat >>confdefs.h <<_ACEOF
39977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39978 _ACEOF
39979
39980 fi
39981 done
39982
39983
39984
39985
39986
39987
39988
39989
39990   :
39991
39992
39993
39994
39995
39996
39997
39998
39999   :
40000
40001
40002
40003   :
40004
40005
40006
40007
40008   :
40009
40010
40011
40012
40013
40014    echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
40015 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
40016 if test "${gl_cv_func_getcwd_null+set}" = set; then
40017   echo $ECHO_N "(cached) $ECHO_C" >&6
40018 else
40019   if test "$cross_compiling" = yes; then
40020   gl_cv_func_getcwd_null=no
40021 else
40022   cat >conftest.$ac_ext <<_ACEOF
40023 /* confdefs.h.  */
40024 _ACEOF
40025 cat confdefs.h >>conftest.$ac_ext
40026 cat >>conftest.$ac_ext <<_ACEOF
40027 /* end confdefs.h.  */
40028
40029 #        include <stdlib.h>
40030 #        ifdef HAVE_UNISTD_H
40031 #         include <unistd.h>
40032 #        endif
40033 #        ifndef getcwd
40034          char *getcwd ();
40035 #        endif
40036          int
40037          main ()
40038          {
40039            if (chdir ("/") != 0)
40040              exit (1);
40041            else
40042              {
40043                char *f = getcwd (NULL, 0);
40044                exit (! (f && f[0] == '/' && !f[1]));
40045              }
40046          }
40047 _ACEOF
40048 rm -f conftest$ac_exeext
40049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40050   (eval $ac_link) 2>&5
40051   ac_status=$?
40052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40055   (eval $ac_try) 2>&5
40056   ac_status=$?
40057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40058   (exit $ac_status); }; }; then
40059   gl_cv_func_getcwd_null=yes
40060 else
40061   echo "$as_me: program exited with status $ac_status" >&5
40062 echo "$as_me: failed program was:" >&5
40063 sed 's/^/| /' conftest.$ac_ext >&5
40064
40065 ( exit $ac_status )
40066 gl_cv_func_getcwd_null=no
40067 fi
40068 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40069 fi
40070 fi
40071 echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
40072 echo "${ECHO_T}$gl_cv_func_getcwd_null" >&6
40073
40074
40075       echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
40076 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6
40077 if test "${ac_cv_have_decl_getcwd+set}" = set; then
40078   echo $ECHO_N "(cached) $ECHO_C" >&6
40079 else
40080   cat >conftest.$ac_ext <<_ACEOF
40081 /* confdefs.h.  */
40082 _ACEOF
40083 cat confdefs.h >>conftest.$ac_ext
40084 cat >>conftest.$ac_ext <<_ACEOF
40085 /* end confdefs.h.  */
40086 $ac_includes_default
40087 int
40088 main ()
40089 {
40090 #ifndef getcwd
40091   char *p = (char *) getcwd;
40092 #endif
40093
40094   ;
40095   return 0;
40096 }
40097 _ACEOF
40098 rm -f conftest.$ac_objext
40099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40100   (eval $ac_compile) 2>conftest.er1
40101   ac_status=$?
40102   grep -v '^ *+' conftest.er1 >conftest.err
40103   rm -f conftest.er1
40104   cat conftest.err >&5
40105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40106   (exit $ac_status); } &&
40107          { ac_try='test -z "$ac_c_werror_flag"
40108                          || test ! -s conftest.err'
40109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40110   (eval $ac_try) 2>&5
40111   ac_status=$?
40112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40113   (exit $ac_status); }; } &&
40114          { ac_try='test -s conftest.$ac_objext'
40115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40116   (eval $ac_try) 2>&5
40117   ac_status=$?
40118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40119   (exit $ac_status); }; }; then
40120   ac_cv_have_decl_getcwd=yes
40121 else
40122   echo "$as_me: failed program was:" >&5
40123 sed 's/^/| /' conftest.$ac_ext >&5
40124
40125 ac_cv_have_decl_getcwd=no
40126 fi
40127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40128 fi
40129 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
40130 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6
40131 if test $ac_cv_have_decl_getcwd = yes; then
40132
40133 cat >>confdefs.h <<_ACEOF
40134 #define HAVE_DECL_GETCWD 1
40135 _ACEOF
40136
40137
40138 else
40139   cat >>confdefs.h <<_ACEOF
40140 #define HAVE_DECL_GETCWD 0
40141 _ACEOF
40142
40143
40144 fi
40145
40146
40147
40148
40149
40150
40151   case $gl_cv_func_getcwd_null in
40152   yes)
40153
40154   :
40155
40156
40157
40158
40159
40160
40161   :
40162
40163
40164
40165
40166
40167
40168   echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
40169 echo $ECHO_N "checking whether getcwd handles long file names properly... $ECHO_C" >&6
40170 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
40171   echo $ECHO_N "(cached) $ECHO_C" >&6
40172 else
40173   # Arrange for deletion of the temporary directory this test creates.
40174      ac_clean_files="$ac_clean_files confdir3"
40175      if test "$cross_compiling" = yes; then
40176   gl_cv_func_getcwd_path_max=no
40177 else
40178   cat >conftest.$ac_ext <<_ACEOF
40179 /* confdefs.h.  */
40180 _ACEOF
40181 cat confdefs.h >>conftest.$ac_ext
40182 cat >>conftest.$ac_ext <<_ACEOF
40183 /* end confdefs.h.  */
40184
40185 #include <errno.h>
40186 #include <stdlib.h>
40187 #include <unistd.h>
40188 #include <string.h>
40189 #include <limits.h>
40190 #include <sys/stat.h>
40191 #include <sys/types.h>
40192 #if HAVE_FCNTL_H
40193 # include <fcntl.h>
40194 #endif
40195
40196 #ifndef AT_FDCWD
40197 # define AT_FDCWD 0
40198 #endif
40199 #ifdef ENAMETOOLONG
40200 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
40201 #else
40202 # define is_ENAMETOOLONG(x) 0
40203 #endif
40204
40205 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
40206 #undef mkdir
40207
40208 #ifndef S_IRWXU
40209 # define S_IRWXU 0700
40210 #endif
40211
40212 /* The length of this name must be 8.  */
40213 #define DIR_NAME "confdir3"
40214 #define DIR_NAME_LEN 8
40215 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
40216
40217 /* The length of "../".  */
40218 #define DOTDOTSLASH_LEN 3
40219
40220 /* Leftover bytes in the buffer, to work around library or OS bugs.  */
40221 #define BUF_SLOP 20
40222
40223 int
40224 main (void)
40225 {
40226 #ifndef PATH_MAX
40227   /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
40228      at least not on a local file system.  And if we were to start worrying
40229      about remote file systems, we'd have to enable the wrapper function
40230      all of the time, just to be safe.  That's not worth the cost.  */
40231   exit (0);
40232 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
40233         - DIR_NAME_SIZE - BUF_SLOP) \
40234        <= PATH_MAX)
40235   /* FIXME: Assuming there's a system for which this is true,
40236      this should be done in a compile test.  */
40237   exit (0);
40238 #else
40239   char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
40240            + DIR_NAME_SIZE + BUF_SLOP];
40241   char *cwd = getcwd (buf, PATH_MAX);
40242   size_t initial_cwd_len;
40243   size_t cwd_len;
40244   int fail = 0;
40245   size_t n_chdirs = 0;
40246
40247   if (cwd == NULL)
40248     exit (1);
40249
40250   cwd_len = initial_cwd_len = strlen (cwd);
40251
40252   while (1)
40253     {
40254       size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
40255       char *c = NULL;
40256
40257       cwd_len += DIR_NAME_SIZE;
40258       /* If mkdir or chdir fails, be pessimistic and consider that
40259          as a failure, too.  */
40260       if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
40261         {
40262           fail = 2;
40263           break;
40264         }
40265
40266       if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
40267         {
40268           c = getcwd (buf, PATH_MAX);
40269           if (!c && errno == ENOENT)
40270             {
40271               fail = 1;
40272               break;
40273             }
40274           if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
40275             {
40276               fail = 2;
40277               break;
40278             }
40279         }
40280
40281       if (dotdot_max <= cwd_len - initial_cwd_len)
40282         {
40283           if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
40284             break;
40285           c = getcwd (buf, cwd_len + 1);
40286           if (!c)
40287             {
40288               if (! (errno == ERANGE || errno == ENOENT
40289                      || is_ENAMETOOLONG (errno)))
40290                 {
40291                   fail = 2;
40292                   break;
40293                 }
40294               if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
40295                 {
40296                   fail = 1;
40297                   break;
40298                 }
40299             }
40300         }
40301
40302       if (c && strlen (c) != cwd_len)
40303         {
40304           fail = 2;
40305           break;
40306         }
40307       ++n_chdirs;
40308     }
40309
40310   /* Leaving behind such a deep directory is not polite.
40311      So clean up here, right away, even though the driving
40312      shell script would also clean up.  */
40313   {
40314     size_t i;
40315
40316     /* Unlink first, in case the chdir failed.  */
40317     unlink (DIR_NAME);
40318     for (i = 0; i <= n_chdirs; i++)
40319       {
40320         if (chdir ("..") < 0)
40321           break;
40322         rmdir (DIR_NAME);
40323       }
40324   }
40325
40326   exit (fail);
40327 #endif
40328 }
40329
40330 _ACEOF
40331 rm -f conftest$ac_exeext
40332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40333   (eval $ac_link) 2>&5
40334   ac_status=$?
40335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40336   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40338   (eval $ac_try) 2>&5
40339   ac_status=$?
40340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40341   (exit $ac_status); }; }; then
40342   gl_cv_func_getcwd_path_max=yes
40343 else
40344   echo "$as_me: program exited with status $ac_status" >&5
40345 echo "$as_me: failed program was:" >&5
40346 sed 's/^/| /' conftest.$ac_ext >&5
40347
40348 ( exit $ac_status )
40349 case $? in
40350      1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
40351      *) gl_cv_func_getcwd_path_max=no;;
40352      esac
40353 fi
40354 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40355 fi
40356
40357 fi
40358 echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
40359 echo "${ECHO_T}$gl_cv_func_getcwd_path_max" >&6
40360   case $gl_cv_func_getcwd_path_max in
40361   no,*)
40362
40363 cat >>confdefs.h <<\_ACEOF
40364 #define HAVE_PARTLY_WORKING_GETCWD 1
40365 _ACEOF
40366 ;;
40367   esac
40368 ;;
40369   esac
40370
40371   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max in
40372   yes,yes) ;;
40373   *)
40374     case $LIBOBJS in
40375     "getcwd.$ac_objext"   | \
40376   *" getcwd.$ac_objext"   | \
40377     "getcwd.$ac_objext "* | \
40378   *" getcwd.$ac_objext "* ) ;;
40379   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" ;;
40380 esac
40381
40382
40383 cat >>confdefs.h <<\_ACEOF
40384 #define __GETCWD_PREFIX rpl_
40385 _ACEOF
40386
40387
40388
40389
40390
40391
40392   :
40393
40394
40395
40396
40397
40398   :
40399 ;;
40400   esac
40401
40402
40403
40404
40405
40406
40407
40408   :
40409
40410
40411
40412
40413
40414
40415
40416   :
40417
40418
40419
40420
40421
40422
40423
40424
40425
40426   :
40427
40428
40429
40430
40431
40432   echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
40433 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
40434 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
40435   echo $ECHO_N "(cached) $ECHO_C" >&6
40436 else
40437   cat >conftest.$ac_ext <<_ACEOF
40438 /* confdefs.h.  */
40439 _ACEOF
40440 cat confdefs.h >>conftest.$ac_ext
40441 cat >>conftest.$ac_ext <<_ACEOF
40442 /* end confdefs.h.  */
40443 $ac_includes_default
40444 int
40445 main ()
40446 {
40447 #ifndef strtoimax
40448   char *p = (char *) strtoimax;
40449 #endif
40450
40451   ;
40452   return 0;
40453 }
40454 _ACEOF
40455 rm -f conftest.$ac_objext
40456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40457   (eval $ac_compile) 2>conftest.er1
40458   ac_status=$?
40459   grep -v '^ *+' conftest.er1 >conftest.err
40460   rm -f conftest.er1
40461   cat conftest.err >&5
40462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40463   (exit $ac_status); } &&
40464          { ac_try='test -z "$ac_c_werror_flag"
40465                          || test ! -s conftest.err'
40466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40467   (eval $ac_try) 2>&5
40468   ac_status=$?
40469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40470   (exit $ac_status); }; } &&
40471          { ac_try='test -s conftest.$ac_objext'
40472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40473   (eval $ac_try) 2>&5
40474   ac_status=$?
40475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40476   (exit $ac_status); }; }; then
40477   ac_cv_have_decl_strtoimax=yes
40478 else
40479   echo "$as_me: failed program was:" >&5
40480 sed 's/^/| /' conftest.$ac_ext >&5
40481
40482 ac_cv_have_decl_strtoimax=no
40483 fi
40484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40485 fi
40486 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
40487 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
40488 if test $ac_cv_have_decl_strtoimax = yes; then
40489
40490 cat >>confdefs.h <<_ACEOF
40491 #define HAVE_DECL_STRTOIMAX 1
40492 _ACEOF
40493
40494
40495 else
40496   cat >>confdefs.h <<_ACEOF
40497 #define HAVE_DECL_STRTOIMAX 0
40498 _ACEOF
40499
40500
40501 fi
40502 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
40503 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
40504 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
40505   echo $ECHO_N "(cached) $ECHO_C" >&6
40506 else
40507   cat >conftest.$ac_ext <<_ACEOF
40508 /* confdefs.h.  */
40509 _ACEOF
40510 cat confdefs.h >>conftest.$ac_ext
40511 cat >>conftest.$ac_ext <<_ACEOF
40512 /* end confdefs.h.  */
40513 $ac_includes_default
40514 int
40515 main ()
40516 {
40517 #ifndef strtoumax
40518   char *p = (char *) strtoumax;
40519 #endif
40520
40521   ;
40522   return 0;
40523 }
40524 _ACEOF
40525 rm -f conftest.$ac_objext
40526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40527   (eval $ac_compile) 2>conftest.er1
40528   ac_status=$?
40529   grep -v '^ *+' conftest.er1 >conftest.err
40530   rm -f conftest.er1
40531   cat conftest.err >&5
40532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40533   (exit $ac_status); } &&
40534          { ac_try='test -z "$ac_c_werror_flag"
40535                          || test ! -s conftest.err'
40536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40537   (eval $ac_try) 2>&5
40538   ac_status=$?
40539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40540   (exit $ac_status); }; } &&
40541          { ac_try='test -s conftest.$ac_objext'
40542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40543   (eval $ac_try) 2>&5
40544   ac_status=$?
40545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40546   (exit $ac_status); }; }; then
40547   ac_cv_have_decl_strtoumax=yes
40548 else
40549   echo "$as_me: failed program was:" >&5
40550 sed 's/^/| /' conftest.$ac_ext >&5
40551
40552 ac_cv_have_decl_strtoumax=no
40553 fi
40554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40555 fi
40556 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
40557 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
40558 if test $ac_cv_have_decl_strtoumax = yes; then
40559
40560 cat >>confdefs.h <<_ACEOF
40561 #define HAVE_DECL_STRTOUMAX 1
40562 _ACEOF
40563
40564
40565 else
40566   cat >>confdefs.h <<_ACEOF
40567 #define HAVE_DECL_STRTOUMAX 0
40568 _ACEOF
40569
40570
40571 fi
40572
40573
40574
40575
40576
40577
40578
40579
40580
40581
40582
40583     :
40584
40585
40586 for ac_header in stdlib.h
40587 do
40588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40590   echo "$as_me:$LINENO: checking for $ac_header" >&5
40591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40593   echo $ECHO_N "(cached) $ECHO_C" >&6
40594 fi
40595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40597 else
40598   # Is the header compilable?
40599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40601 cat >conftest.$ac_ext <<_ACEOF
40602 /* confdefs.h.  */
40603 _ACEOF
40604 cat confdefs.h >>conftest.$ac_ext
40605 cat >>conftest.$ac_ext <<_ACEOF
40606 /* end confdefs.h.  */
40607 $ac_includes_default
40608 #include <$ac_header>
40609 _ACEOF
40610 rm -f conftest.$ac_objext
40611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40612   (eval $ac_compile) 2>conftest.er1
40613   ac_status=$?
40614   grep -v '^ *+' conftest.er1 >conftest.err
40615   rm -f conftest.er1
40616   cat conftest.err >&5
40617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40618   (exit $ac_status); } &&
40619          { ac_try='test -z "$ac_c_werror_flag"
40620                          || test ! -s conftest.err'
40621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40622   (eval $ac_try) 2>&5
40623   ac_status=$?
40624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40625   (exit $ac_status); }; } &&
40626          { ac_try='test -s conftest.$ac_objext'
40627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40628   (eval $ac_try) 2>&5
40629   ac_status=$?
40630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40631   (exit $ac_status); }; }; then
40632   ac_header_compiler=yes
40633 else
40634   echo "$as_me: failed program was:" >&5
40635 sed 's/^/| /' conftest.$ac_ext >&5
40636
40637 ac_header_compiler=no
40638 fi
40639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40641 echo "${ECHO_T}$ac_header_compiler" >&6
40642
40643 # Is the header present?
40644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40646 cat >conftest.$ac_ext <<_ACEOF
40647 /* confdefs.h.  */
40648 _ACEOF
40649 cat confdefs.h >>conftest.$ac_ext
40650 cat >>conftest.$ac_ext <<_ACEOF
40651 /* end confdefs.h.  */
40652 #include <$ac_header>
40653 _ACEOF
40654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40655   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40656   ac_status=$?
40657   grep -v '^ *+' conftest.er1 >conftest.err
40658   rm -f conftest.er1
40659   cat conftest.err >&5
40660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40661   (exit $ac_status); } >/dev/null; then
40662   if test -s conftest.err; then
40663     ac_cpp_err=$ac_c_preproc_warn_flag
40664     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40665   else
40666     ac_cpp_err=
40667   fi
40668 else
40669   ac_cpp_err=yes
40670 fi
40671 if test -z "$ac_cpp_err"; then
40672   ac_header_preproc=yes
40673 else
40674   echo "$as_me: failed program was:" >&5
40675 sed 's/^/| /' conftest.$ac_ext >&5
40676
40677   ac_header_preproc=no
40678 fi
40679 rm -f conftest.err conftest.$ac_ext
40680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40681 echo "${ECHO_T}$ac_header_preproc" >&6
40682
40683 # So?  What about this header?
40684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40685   yes:no: )
40686     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40690     ac_header_preproc=yes
40691     ;;
40692   no:yes:* )
40693     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40695     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40696 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40697     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40699     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40700 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40703     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40705     (
40706       cat <<\_ASBOX
40707 ## ------------------------------------ ##
40708 ## Report this to bug-coreutils@gnu.org ##
40709 ## ------------------------------------ ##
40710 _ASBOX
40711     ) |
40712       sed "s/^/$as_me: WARNING:     /" >&2
40713     ;;
40714 esac
40715 echo "$as_me:$LINENO: checking for $ac_header" >&5
40716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40718   echo $ECHO_N "(cached) $ECHO_C" >&6
40719 else
40720   eval "$as_ac_Header=\$ac_header_preproc"
40721 fi
40722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40724
40725 fi
40726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40727   cat >>confdefs.h <<_ACEOF
40728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40729 _ACEOF
40730
40731 fi
40732
40733 done
40734
40735 echo "$as_me:$LINENO: checking for GNU libc compatible calloc" >&5
40736 echo $ECHO_N "checking for GNU libc compatible calloc... $ECHO_C" >&6
40737 if test "${ac_cv_func_calloc_0_nonnull+set}" = set; then
40738   echo $ECHO_N "(cached) $ECHO_C" >&6
40739 else
40740   if test "$cross_compiling" = yes; then
40741   ac_cv_func_calloc_0_nonnull=no
40742 else
40743   cat >conftest.$ac_ext <<_ACEOF
40744 /* confdefs.h.  */
40745 _ACEOF
40746 cat confdefs.h >>conftest.$ac_ext
40747 cat >>conftest.$ac_ext <<_ACEOF
40748 /* end confdefs.h.  */
40749 $ac_includes_default
40750 int
40751 main ()
40752 {
40753 exit (!calloc (0, 0) || calloc ((size_t) -1 / 8 + 1, 8));
40754   ;
40755   return 0;
40756 }
40757 _ACEOF
40758 rm -f conftest$ac_exeext
40759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40760   (eval $ac_link) 2>&5
40761   ac_status=$?
40762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40763   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40765   (eval $ac_try) 2>&5
40766   ac_status=$?
40767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40768   (exit $ac_status); }; }; then
40769   ac_cv_func_calloc_0_nonnull=yes
40770 else
40771   echo "$as_me: program exited with status $ac_status" >&5
40772 echo "$as_me: failed program was:" >&5
40773 sed 's/^/| /' conftest.$ac_ext >&5
40774
40775 ( exit $ac_status )
40776 ac_cv_func_calloc_0_nonnull=no
40777 fi
40778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40779 fi
40780 fi
40781 echo "$as_me:$LINENO: result: $ac_cv_func_calloc_0_nonnull" >&5
40782 echo "${ECHO_T}$ac_cv_func_calloc_0_nonnull" >&6
40783 if test $ac_cv_func_calloc_0_nonnull = yes; then
40784
40785 cat >>confdefs.h <<\_ACEOF
40786 #define HAVE_CALLOC 1
40787 _ACEOF
40788
40789 else
40790   cat >>confdefs.h <<\_ACEOF
40791 #define HAVE_CALLOC 0
40792 _ACEOF
40793
40794    case $LIBOBJS in
40795     "calloc.$ac_objext"   | \
40796   *" calloc.$ac_objext"   | \
40797     "calloc.$ac_objext "* | \
40798   *" calloc.$ac_objext "* ) ;;
40799   *) LIBOBJS="$LIBOBJS calloc.$ac_objext" ;;
40800 esac
40801
40802
40803 cat >>confdefs.h <<\_ACEOF
40804 #define calloc rpl_calloc
40805 _ACEOF
40806
40807 fi
40808
40809
40810
40811
40812       echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
40813 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
40814 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
40815   echo $ECHO_N "(cached) $ECHO_C" >&6
40816 else
40817   cat >conftest.$ac_ext <<_ACEOF
40818 /* confdefs.h.  */
40819 _ACEOF
40820 cat confdefs.h >>conftest.$ac_ext
40821 cat >>conftest.$ac_ext <<_ACEOF
40822 /* end confdefs.h.  */
40823 $ac_includes_default
40824 int
40825 main ()
40826 {
40827 #ifndef clearerr_unlocked
40828   char *p = (char *) clearerr_unlocked;
40829 #endif
40830
40831   ;
40832   return 0;
40833 }
40834 _ACEOF
40835 rm -f conftest.$ac_objext
40836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40837   (eval $ac_compile) 2>conftest.er1
40838   ac_status=$?
40839   grep -v '^ *+' conftest.er1 >conftest.err
40840   rm -f conftest.er1
40841   cat conftest.err >&5
40842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40843   (exit $ac_status); } &&
40844          { ac_try='test -z "$ac_c_werror_flag"
40845                          || test ! -s conftest.err'
40846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40847   (eval $ac_try) 2>&5
40848   ac_status=$?
40849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850   (exit $ac_status); }; } &&
40851          { ac_try='test -s conftest.$ac_objext'
40852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40853   (eval $ac_try) 2>&5
40854   ac_status=$?
40855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40856   (exit $ac_status); }; }; then
40857   ac_cv_have_decl_clearerr_unlocked=yes
40858 else
40859   echo "$as_me: failed program was:" >&5
40860 sed 's/^/| /' conftest.$ac_ext >&5
40861
40862 ac_cv_have_decl_clearerr_unlocked=no
40863 fi
40864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40865 fi
40866 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
40867 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
40868 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
40869
40870 cat >>confdefs.h <<_ACEOF
40871 #define HAVE_DECL_CLEARERR_UNLOCKED 1
40872 _ACEOF
40873
40874
40875 else
40876   cat >>confdefs.h <<_ACEOF
40877 #define HAVE_DECL_CLEARERR_UNLOCKED 0
40878 _ACEOF
40879
40880
40881 fi
40882
40883
40884
40885
40886       echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
40887 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
40888 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
40889   echo $ECHO_N "(cached) $ECHO_C" >&6
40890 else
40891   cat >conftest.$ac_ext <<_ACEOF
40892 /* confdefs.h.  */
40893 _ACEOF
40894 cat confdefs.h >>conftest.$ac_ext
40895 cat >>conftest.$ac_ext <<_ACEOF
40896 /* end confdefs.h.  */
40897 $ac_includes_default
40898 int
40899 main ()
40900 {
40901 #ifndef feof_unlocked
40902   char *p = (char *) feof_unlocked;
40903 #endif
40904
40905   ;
40906   return 0;
40907 }
40908 _ACEOF
40909 rm -f conftest.$ac_objext
40910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40911   (eval $ac_compile) 2>conftest.er1
40912   ac_status=$?
40913   grep -v '^ *+' conftest.er1 >conftest.err
40914   rm -f conftest.er1
40915   cat conftest.err >&5
40916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40917   (exit $ac_status); } &&
40918          { ac_try='test -z "$ac_c_werror_flag"
40919                          || test ! -s conftest.err'
40920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40921   (eval $ac_try) 2>&5
40922   ac_status=$?
40923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40924   (exit $ac_status); }; } &&
40925          { ac_try='test -s conftest.$ac_objext'
40926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40927   (eval $ac_try) 2>&5
40928   ac_status=$?
40929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40930   (exit $ac_status); }; }; then
40931   ac_cv_have_decl_feof_unlocked=yes
40932 else
40933   echo "$as_me: failed program was:" >&5
40934 sed 's/^/| /' conftest.$ac_ext >&5
40935
40936 ac_cv_have_decl_feof_unlocked=no
40937 fi
40938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40939 fi
40940 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
40941 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
40942 if test $ac_cv_have_decl_feof_unlocked = yes; then
40943
40944 cat >>confdefs.h <<_ACEOF
40945 #define HAVE_DECL_FEOF_UNLOCKED 1
40946 _ACEOF
40947
40948
40949 else
40950   cat >>confdefs.h <<_ACEOF
40951 #define HAVE_DECL_FEOF_UNLOCKED 0
40952 _ACEOF
40953
40954
40955 fi
40956
40957
40958
40959
40960       echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
40961 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
40962 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
40963   echo $ECHO_N "(cached) $ECHO_C" >&6
40964 else
40965   cat >conftest.$ac_ext <<_ACEOF
40966 /* confdefs.h.  */
40967 _ACEOF
40968 cat confdefs.h >>conftest.$ac_ext
40969 cat >>conftest.$ac_ext <<_ACEOF
40970 /* end confdefs.h.  */
40971 $ac_includes_default
40972 int
40973 main ()
40974 {
40975 #ifndef ferror_unlocked
40976   char *p = (char *) ferror_unlocked;
40977 #endif
40978
40979   ;
40980   return 0;
40981 }
40982 _ACEOF
40983 rm -f conftest.$ac_objext
40984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40985   (eval $ac_compile) 2>conftest.er1
40986   ac_status=$?
40987   grep -v '^ *+' conftest.er1 >conftest.err
40988   rm -f conftest.er1
40989   cat conftest.err >&5
40990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40991   (exit $ac_status); } &&
40992          { ac_try='test -z "$ac_c_werror_flag"
40993                          || test ! -s conftest.err'
40994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40995   (eval $ac_try) 2>&5
40996   ac_status=$?
40997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40998   (exit $ac_status); }; } &&
40999          { ac_try='test -s conftest.$ac_objext'
41000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41001   (eval $ac_try) 2>&5
41002   ac_status=$?
41003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41004   (exit $ac_status); }; }; then
41005   ac_cv_have_decl_ferror_unlocked=yes
41006 else
41007   echo "$as_me: failed program was:" >&5
41008 sed 's/^/| /' conftest.$ac_ext >&5
41009
41010 ac_cv_have_decl_ferror_unlocked=no
41011 fi
41012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41013 fi
41014 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
41015 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
41016 if test $ac_cv_have_decl_ferror_unlocked = yes; then
41017
41018 cat >>confdefs.h <<_ACEOF
41019 #define HAVE_DECL_FERROR_UNLOCKED 1
41020 _ACEOF
41021
41022
41023 else
41024   cat >>confdefs.h <<_ACEOF
41025 #define HAVE_DECL_FERROR_UNLOCKED 0
41026 _ACEOF
41027
41028
41029 fi
41030
41031
41032
41033
41034       echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
41035 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
41036 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
41037   echo $ECHO_N "(cached) $ECHO_C" >&6
41038 else
41039   cat >conftest.$ac_ext <<_ACEOF
41040 /* confdefs.h.  */
41041 _ACEOF
41042 cat confdefs.h >>conftest.$ac_ext
41043 cat >>conftest.$ac_ext <<_ACEOF
41044 /* end confdefs.h.  */
41045 $ac_includes_default
41046 int
41047 main ()
41048 {
41049 #ifndef fgets_unlocked
41050   char *p = (char *) fgets_unlocked;
41051 #endif
41052
41053   ;
41054   return 0;
41055 }
41056 _ACEOF
41057 rm -f conftest.$ac_objext
41058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41059   (eval $ac_compile) 2>conftest.er1
41060   ac_status=$?
41061   grep -v '^ *+' conftest.er1 >conftest.err
41062   rm -f conftest.er1
41063   cat conftest.err >&5
41064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41065   (exit $ac_status); } &&
41066          { ac_try='test -z "$ac_c_werror_flag"
41067                          || test ! -s conftest.err'
41068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41069   (eval $ac_try) 2>&5
41070   ac_status=$?
41071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41072   (exit $ac_status); }; } &&
41073          { ac_try='test -s conftest.$ac_objext'
41074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41075   (eval $ac_try) 2>&5
41076   ac_status=$?
41077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41078   (exit $ac_status); }; }; then
41079   ac_cv_have_decl_fgets_unlocked=yes
41080 else
41081   echo "$as_me: failed program was:" >&5
41082 sed 's/^/| /' conftest.$ac_ext >&5
41083
41084 ac_cv_have_decl_fgets_unlocked=no
41085 fi
41086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41087 fi
41088 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
41089 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
41090 if test $ac_cv_have_decl_fgets_unlocked = yes; then
41091
41092 cat >>confdefs.h <<_ACEOF
41093 #define HAVE_DECL_FGETS_UNLOCKED 1
41094 _ACEOF
41095
41096
41097 else
41098   cat >>confdefs.h <<_ACEOF
41099 #define HAVE_DECL_FGETS_UNLOCKED 0
41100 _ACEOF
41101
41102
41103 fi
41104
41105
41106
41107
41108       echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
41109 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
41110 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
41111   echo $ECHO_N "(cached) $ECHO_C" >&6
41112 else
41113   cat >conftest.$ac_ext <<_ACEOF
41114 /* confdefs.h.  */
41115 _ACEOF
41116 cat confdefs.h >>conftest.$ac_ext
41117 cat >>conftest.$ac_ext <<_ACEOF
41118 /* end confdefs.h.  */
41119 $ac_includes_default
41120 int
41121 main ()
41122 {
41123 #ifndef fputc_unlocked
41124   char *p = (char *) fputc_unlocked;
41125 #endif
41126
41127   ;
41128   return 0;
41129 }
41130 _ACEOF
41131 rm -f conftest.$ac_objext
41132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41133   (eval $ac_compile) 2>conftest.er1
41134   ac_status=$?
41135   grep -v '^ *+' conftest.er1 >conftest.err
41136   rm -f conftest.er1
41137   cat conftest.err >&5
41138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41139   (exit $ac_status); } &&
41140          { ac_try='test -z "$ac_c_werror_flag"
41141                          || test ! -s conftest.err'
41142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41143   (eval $ac_try) 2>&5
41144   ac_status=$?
41145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41146   (exit $ac_status); }; } &&
41147          { ac_try='test -s conftest.$ac_objext'
41148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41149   (eval $ac_try) 2>&5
41150   ac_status=$?
41151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41152   (exit $ac_status); }; }; then
41153   ac_cv_have_decl_fputc_unlocked=yes
41154 else
41155   echo "$as_me: failed program was:" >&5
41156 sed 's/^/| /' conftest.$ac_ext >&5
41157
41158 ac_cv_have_decl_fputc_unlocked=no
41159 fi
41160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41161 fi
41162 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
41163 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
41164 if test $ac_cv_have_decl_fputc_unlocked = yes; then
41165
41166 cat >>confdefs.h <<_ACEOF
41167 #define HAVE_DECL_FPUTC_UNLOCKED 1
41168 _ACEOF
41169
41170
41171 else
41172   cat >>confdefs.h <<_ACEOF
41173 #define HAVE_DECL_FPUTC_UNLOCKED 0
41174 _ACEOF
41175
41176
41177 fi
41178
41179
41180
41181
41182       echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
41183 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
41184 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
41185   echo $ECHO_N "(cached) $ECHO_C" >&6
41186 else
41187   cat >conftest.$ac_ext <<_ACEOF
41188 /* confdefs.h.  */
41189 _ACEOF
41190 cat confdefs.h >>conftest.$ac_ext
41191 cat >>conftest.$ac_ext <<_ACEOF
41192 /* end confdefs.h.  */
41193 $ac_includes_default
41194 int
41195 main ()
41196 {
41197 #ifndef fread_unlocked
41198   char *p = (char *) fread_unlocked;
41199 #endif
41200
41201   ;
41202   return 0;
41203 }
41204 _ACEOF
41205 rm -f conftest.$ac_objext
41206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41207   (eval $ac_compile) 2>conftest.er1
41208   ac_status=$?
41209   grep -v '^ *+' conftest.er1 >conftest.err
41210   rm -f conftest.er1
41211   cat conftest.err >&5
41212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41213   (exit $ac_status); } &&
41214          { ac_try='test -z "$ac_c_werror_flag"
41215                          || test ! -s conftest.err'
41216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41217   (eval $ac_try) 2>&5
41218   ac_status=$?
41219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41220   (exit $ac_status); }; } &&
41221          { ac_try='test -s conftest.$ac_objext'
41222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41223   (eval $ac_try) 2>&5
41224   ac_status=$?
41225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41226   (exit $ac_status); }; }; then
41227   ac_cv_have_decl_fread_unlocked=yes
41228 else
41229   echo "$as_me: failed program was:" >&5
41230 sed 's/^/| /' conftest.$ac_ext >&5
41231
41232 ac_cv_have_decl_fread_unlocked=no
41233 fi
41234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41235 fi
41236 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
41237 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
41238 if test $ac_cv_have_decl_fread_unlocked = yes; then
41239
41240 cat >>confdefs.h <<_ACEOF
41241 #define HAVE_DECL_FREAD_UNLOCKED 1
41242 _ACEOF
41243
41244
41245 else
41246   cat >>confdefs.h <<_ACEOF
41247 #define HAVE_DECL_FREAD_UNLOCKED 0
41248 _ACEOF
41249
41250
41251 fi
41252
41253
41254
41255
41256       echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
41257 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
41258 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
41259   echo $ECHO_N "(cached) $ECHO_C" >&6
41260 else
41261   cat >conftest.$ac_ext <<_ACEOF
41262 /* confdefs.h.  */
41263 _ACEOF
41264 cat confdefs.h >>conftest.$ac_ext
41265 cat >>conftest.$ac_ext <<_ACEOF
41266 /* end confdefs.h.  */
41267 $ac_includes_default
41268 int
41269 main ()
41270 {
41271 #ifndef fwrite_unlocked
41272   char *p = (char *) fwrite_unlocked;
41273 #endif
41274
41275   ;
41276   return 0;
41277 }
41278 _ACEOF
41279 rm -f conftest.$ac_objext
41280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41281   (eval $ac_compile) 2>conftest.er1
41282   ac_status=$?
41283   grep -v '^ *+' conftest.er1 >conftest.err
41284   rm -f conftest.er1
41285   cat conftest.err >&5
41286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41287   (exit $ac_status); } &&
41288          { ac_try='test -z "$ac_c_werror_flag"
41289                          || test ! -s conftest.err'
41290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41291   (eval $ac_try) 2>&5
41292   ac_status=$?
41293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41294   (exit $ac_status); }; } &&
41295          { ac_try='test -s conftest.$ac_objext'
41296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41297   (eval $ac_try) 2>&5
41298   ac_status=$?
41299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41300   (exit $ac_status); }; }; then
41301   ac_cv_have_decl_fwrite_unlocked=yes
41302 else
41303   echo "$as_me: failed program was:" >&5
41304 sed 's/^/| /' conftest.$ac_ext >&5
41305
41306 ac_cv_have_decl_fwrite_unlocked=no
41307 fi
41308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41309 fi
41310 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
41311 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
41312 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
41313
41314 cat >>confdefs.h <<_ACEOF
41315 #define HAVE_DECL_FWRITE_UNLOCKED 1
41316 _ACEOF
41317
41318
41319 else
41320   cat >>confdefs.h <<_ACEOF
41321 #define HAVE_DECL_FWRITE_UNLOCKED 0
41322 _ACEOF
41323
41324
41325 fi
41326
41327
41328
41329
41330       echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
41331 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
41332 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
41333   echo $ECHO_N "(cached) $ECHO_C" >&6
41334 else
41335   cat >conftest.$ac_ext <<_ACEOF
41336 /* confdefs.h.  */
41337 _ACEOF
41338 cat confdefs.h >>conftest.$ac_ext
41339 cat >>conftest.$ac_ext <<_ACEOF
41340 /* end confdefs.h.  */
41341 $ac_includes_default
41342 int
41343 main ()
41344 {
41345 #ifndef getc_unlocked
41346   char *p = (char *) getc_unlocked;
41347 #endif
41348
41349   ;
41350   return 0;
41351 }
41352 _ACEOF
41353 rm -f conftest.$ac_objext
41354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41355   (eval $ac_compile) 2>conftest.er1
41356   ac_status=$?
41357   grep -v '^ *+' conftest.er1 >conftest.err
41358   rm -f conftest.er1
41359   cat conftest.err >&5
41360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41361   (exit $ac_status); } &&
41362          { ac_try='test -z "$ac_c_werror_flag"
41363                          || test ! -s conftest.err'
41364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41365   (eval $ac_try) 2>&5
41366   ac_status=$?
41367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41368   (exit $ac_status); }; } &&
41369          { ac_try='test -s conftest.$ac_objext'
41370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41371   (eval $ac_try) 2>&5
41372   ac_status=$?
41373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41374   (exit $ac_status); }; }; then
41375   ac_cv_have_decl_getc_unlocked=yes
41376 else
41377   echo "$as_me: failed program was:" >&5
41378 sed 's/^/| /' conftest.$ac_ext >&5
41379
41380 ac_cv_have_decl_getc_unlocked=no
41381 fi
41382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41383 fi
41384 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
41385 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
41386 if test $ac_cv_have_decl_getc_unlocked = yes; then
41387
41388 cat >>confdefs.h <<_ACEOF
41389 #define HAVE_DECL_GETC_UNLOCKED 1
41390 _ACEOF
41391
41392
41393 else
41394   cat >>confdefs.h <<_ACEOF
41395 #define HAVE_DECL_GETC_UNLOCKED 0
41396 _ACEOF
41397
41398
41399 fi
41400
41401
41402
41403
41404       echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
41405 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
41406 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
41407   echo $ECHO_N "(cached) $ECHO_C" >&6
41408 else
41409   cat >conftest.$ac_ext <<_ACEOF
41410 /* confdefs.h.  */
41411 _ACEOF
41412 cat confdefs.h >>conftest.$ac_ext
41413 cat >>conftest.$ac_ext <<_ACEOF
41414 /* end confdefs.h.  */
41415 $ac_includes_default
41416 int
41417 main ()
41418 {
41419 #ifndef getchar_unlocked
41420   char *p = (char *) getchar_unlocked;
41421 #endif
41422
41423   ;
41424   return 0;
41425 }
41426 _ACEOF
41427 rm -f conftest.$ac_objext
41428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41429   (eval $ac_compile) 2>conftest.er1
41430   ac_status=$?
41431   grep -v '^ *+' conftest.er1 >conftest.err
41432   rm -f conftest.er1
41433   cat conftest.err >&5
41434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41435   (exit $ac_status); } &&
41436          { ac_try='test -z "$ac_c_werror_flag"
41437                          || test ! -s conftest.err'
41438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41439   (eval $ac_try) 2>&5
41440   ac_status=$?
41441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41442   (exit $ac_status); }; } &&
41443          { ac_try='test -s conftest.$ac_objext'
41444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41445   (eval $ac_try) 2>&5
41446   ac_status=$?
41447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41448   (exit $ac_status); }; }; then
41449   ac_cv_have_decl_getchar_unlocked=yes
41450 else
41451   echo "$as_me: failed program was:" >&5
41452 sed 's/^/| /' conftest.$ac_ext >&5
41453
41454 ac_cv_have_decl_getchar_unlocked=no
41455 fi
41456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41457 fi
41458 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
41459 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
41460 if test $ac_cv_have_decl_getchar_unlocked = yes; then
41461
41462 cat >>confdefs.h <<_ACEOF
41463 #define HAVE_DECL_GETCHAR_UNLOCKED 1
41464 _ACEOF
41465
41466
41467 else
41468   cat >>confdefs.h <<_ACEOF
41469 #define HAVE_DECL_GETCHAR_UNLOCKED 0
41470 _ACEOF
41471
41472
41473 fi
41474
41475
41476
41477
41478       echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
41479 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
41480 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
41481   echo $ECHO_N "(cached) $ECHO_C" >&6
41482 else
41483   cat >conftest.$ac_ext <<_ACEOF
41484 /* confdefs.h.  */
41485 _ACEOF
41486 cat confdefs.h >>conftest.$ac_ext
41487 cat >>conftest.$ac_ext <<_ACEOF
41488 /* end confdefs.h.  */
41489 $ac_includes_default
41490 int
41491 main ()
41492 {
41493 #ifndef putchar_unlocked
41494   char *p = (char *) putchar_unlocked;
41495 #endif
41496
41497   ;
41498   return 0;
41499 }
41500 _ACEOF
41501 rm -f conftest.$ac_objext
41502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41503   (eval $ac_compile) 2>conftest.er1
41504   ac_status=$?
41505   grep -v '^ *+' conftest.er1 >conftest.err
41506   rm -f conftest.er1
41507   cat conftest.err >&5
41508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41509   (exit $ac_status); } &&
41510          { ac_try='test -z "$ac_c_werror_flag"
41511                          || test ! -s conftest.err'
41512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41513   (eval $ac_try) 2>&5
41514   ac_status=$?
41515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41516   (exit $ac_status); }; } &&
41517          { ac_try='test -s conftest.$ac_objext'
41518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41519   (eval $ac_try) 2>&5
41520   ac_status=$?
41521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41522   (exit $ac_status); }; }; then
41523   ac_cv_have_decl_putchar_unlocked=yes
41524 else
41525   echo "$as_me: failed program was:" >&5
41526 sed 's/^/| /' conftest.$ac_ext >&5
41527
41528 ac_cv_have_decl_putchar_unlocked=no
41529 fi
41530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41531 fi
41532 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
41533 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
41534 if test $ac_cv_have_decl_putchar_unlocked = yes; then
41535
41536 cat >>confdefs.h <<_ACEOF
41537 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
41538 _ACEOF
41539
41540
41541 else
41542   cat >>confdefs.h <<_ACEOF
41543 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
41544 _ACEOF
41545
41546
41547 fi
41548
41549
41550
41551
41552
41553 cat >>confdefs.h <<\_ACEOF
41554 #define USE_UNLOCKED_IO 1
41555 _ACEOF
41556
41557
41558
41559
41560
41561   :
41562
41563
41564
41565
41566
41567
41568
41569
41570
41571
41572
41573
41574
41575
41576
41577
41578
41579
41580
41581
41582
41583
41584
41585
41586
41587
41588
41589
41590
41591
41592
41593
41594
41595
41596
41597
41598
41599
41600
41601
41602
41603
41604
41605 for ac_func in strftime
41606 do
41607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41608 echo "$as_me:$LINENO: checking for $ac_func" >&5
41609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41610 if eval "test \"\${$as_ac_var+set}\" = set"; then
41611   echo $ECHO_N "(cached) $ECHO_C" >&6
41612 else
41613   cat >conftest.$ac_ext <<_ACEOF
41614 /* confdefs.h.  */
41615 _ACEOF
41616 cat confdefs.h >>conftest.$ac_ext
41617 cat >>conftest.$ac_ext <<_ACEOF
41618 /* end confdefs.h.  */
41619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41621 #define $ac_func innocuous_$ac_func
41622
41623 /* System header to define __stub macros and hopefully few prototypes,
41624     which can conflict with char $ac_func (); below.
41625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41626     <limits.h> exists even on freestanding compilers.  */
41627
41628 #ifdef __STDC__
41629 # include <limits.h>
41630 #else
41631 # include <assert.h>
41632 #endif
41633
41634 #undef $ac_func
41635
41636 /* Override any gcc2 internal prototype to avoid an error.  */
41637 #ifdef __cplusplus
41638 extern "C"
41639 {
41640 #endif
41641 /* We use char because int might match the return type of a gcc2
41642    builtin and then its argument prototype would still apply.  */
41643 char $ac_func ();
41644 /* The GNU C library defines this for functions which it implements
41645     to always fail with ENOSYS.  Some functions are actually named
41646     something starting with __ and the normal name is an alias.  */
41647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41648 choke me
41649 #else
41650 char (*f) () = $ac_func;
41651 #endif
41652 #ifdef __cplusplus
41653 }
41654 #endif
41655
41656 int
41657 main ()
41658 {
41659 return f != $ac_func;
41660   ;
41661   return 0;
41662 }
41663 _ACEOF
41664 rm -f conftest.$ac_objext conftest$ac_exeext
41665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41666   (eval $ac_link) 2>conftest.er1
41667   ac_status=$?
41668   grep -v '^ *+' conftest.er1 >conftest.err
41669   rm -f conftest.er1
41670   cat conftest.err >&5
41671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41672   (exit $ac_status); } &&
41673          { ac_try='test -z "$ac_c_werror_flag"
41674                          || test ! -s conftest.err'
41675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41676   (eval $ac_try) 2>&5
41677   ac_status=$?
41678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41679   (exit $ac_status); }; } &&
41680          { ac_try='test -s conftest$ac_exeext'
41681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41682   (eval $ac_try) 2>&5
41683   ac_status=$?
41684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41685   (exit $ac_status); }; }; then
41686   eval "$as_ac_var=yes"
41687 else
41688   echo "$as_me: failed program was:" >&5
41689 sed 's/^/| /' conftest.$ac_ext >&5
41690
41691 eval "$as_ac_var=no"
41692 fi
41693 rm -f conftest.err conftest.$ac_objext \
41694       conftest$ac_exeext conftest.$ac_ext
41695 fi
41696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41698 if test `eval echo '${'$as_ac_var'}'` = yes; then
41699   cat >>confdefs.h <<_ACEOF
41700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41701 _ACEOF
41702
41703 else
41704   # strftime is in -lintl on SCO UNIX.
41705 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
41706 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
41707 if test "${ac_cv_lib_intl_strftime+set}" = set; then
41708   echo $ECHO_N "(cached) $ECHO_C" >&6
41709 else
41710   ac_check_lib_save_LIBS=$LIBS
41711 LIBS="-lintl  $LIBS"
41712 cat >conftest.$ac_ext <<_ACEOF
41713 /* confdefs.h.  */
41714 _ACEOF
41715 cat confdefs.h >>conftest.$ac_ext
41716 cat >>conftest.$ac_ext <<_ACEOF
41717 /* end confdefs.h.  */
41718
41719 /* Override any gcc2 internal prototype to avoid an error.  */
41720 #ifdef __cplusplus
41721 extern "C"
41722 #endif
41723 /* We use char because int might match the return type of a gcc2
41724    builtin and then its argument prototype would still apply.  */
41725 char strftime ();
41726 int
41727 main ()
41728 {
41729 strftime ();
41730   ;
41731   return 0;
41732 }
41733 _ACEOF
41734 rm -f conftest.$ac_objext conftest$ac_exeext
41735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41736   (eval $ac_link) 2>conftest.er1
41737   ac_status=$?
41738   grep -v '^ *+' conftest.er1 >conftest.err
41739   rm -f conftest.er1
41740   cat conftest.err >&5
41741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41742   (exit $ac_status); } &&
41743          { ac_try='test -z "$ac_c_werror_flag"
41744                          || test ! -s conftest.err'
41745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41746   (eval $ac_try) 2>&5
41747   ac_status=$?
41748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41749   (exit $ac_status); }; } &&
41750          { ac_try='test -s conftest$ac_exeext'
41751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41752   (eval $ac_try) 2>&5
41753   ac_status=$?
41754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41755   (exit $ac_status); }; }; then
41756   ac_cv_lib_intl_strftime=yes
41757 else
41758   echo "$as_me: failed program was:" >&5
41759 sed 's/^/| /' conftest.$ac_ext >&5
41760
41761 ac_cv_lib_intl_strftime=no
41762 fi
41763 rm -f conftest.err conftest.$ac_objext \
41764       conftest$ac_exeext conftest.$ac_ext
41765 LIBS=$ac_check_lib_save_LIBS
41766 fi
41767 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
41768 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
41769 if test $ac_cv_lib_intl_strftime = yes; then
41770   cat >>confdefs.h <<\_ACEOF
41771 #define HAVE_STRFTIME 1
41772 _ACEOF
41773
41774 LIBS="-lintl $LIBS"
41775 fi
41776
41777 fi
41778 done
41779
41780
41781
41782   echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
41783 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
41784 if test "${gl_cv_func_tzset_clobber+set}" = set; then
41785   echo $ECHO_N "(cached) $ECHO_C" >&6
41786 else
41787
41788   if test "$cross_compiling" = yes; then
41789   gl_cv_func_tzset_clobber=yes
41790 else
41791   cat >conftest.$ac_ext <<_ACEOF
41792 /* confdefs.h.  */
41793 _ACEOF
41794 cat confdefs.h >>conftest.$ac_ext
41795 cat >>conftest.$ac_ext <<_ACEOF
41796 /* end confdefs.h.  */
41797
41798 #if TIME_WITH_SYS_TIME
41799 # include <sys/time.h>
41800 # include <time.h>
41801 #else
41802 # if HAVE_SYS_TIME_H
41803 #  include <sys/time.h>
41804 # else
41805 #  include <time.h>
41806 # endif
41807 #endif
41808 #include <stdlib.h>
41809
41810 int
41811 main ()
41812 {
41813   time_t t1 = 853958121;
41814   struct tm *p, s;
41815   putenv ("TZ=GMT0");
41816   p = localtime (&t1);
41817   s = *p;
41818   putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
41819   tzset ();
41820   exit (p->tm_year != s.tm_year
41821         || p->tm_mon != s.tm_mon
41822         || p->tm_mday != s.tm_mday
41823         || p->tm_hour != s.tm_hour
41824         || p->tm_min != s.tm_min
41825         || p->tm_sec != s.tm_sec);
41826 }
41827
41828 _ACEOF
41829 rm -f conftest$ac_exeext
41830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41831   (eval $ac_link) 2>&5
41832   ac_status=$?
41833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41834   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41836   (eval $ac_try) 2>&5
41837   ac_status=$?
41838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41839   (exit $ac_status); }; }; then
41840   gl_cv_func_tzset_clobber=no
41841 else
41842   echo "$as_me: program exited with status $ac_status" >&5
41843 echo "$as_me: failed program was:" >&5
41844 sed 's/^/| /' conftest.$ac_ext >&5
41845
41846 ( exit $ac_status )
41847 gl_cv_func_tzset_clobber=yes
41848 fi
41849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41850 fi
41851 fi
41852 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
41853 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
41854
41855
41856 cat >>confdefs.h <<\_ACEOF
41857 #define HAVE_RUN_TZSET_TEST 1
41858 _ACEOF
41859
41860
41861   if test $gl_cv_func_tzset_clobber = yes; then
41862
41863   case $LIBOBJS in
41864     "gettimeofday.$ac_objext"   | \
41865   *" gettimeofday.$ac_objext"   | \
41866     "gettimeofday.$ac_objext "* | \
41867   *" gettimeofday.$ac_objext "* ) ;;
41868   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
41869 esac
41870
41871
41872 cat >>confdefs.h <<\_ACEOF
41873 #define gmtime rpl_gmtime
41874 _ACEOF
41875
41876
41877 cat >>confdefs.h <<\_ACEOF
41878 #define localtime rpl_localtime
41879 _ACEOF
41880
41881
41882
41883
41884 cat >>confdefs.h <<\_ACEOF
41885 #define tzset rpl_tzset
41886 _ACEOF
41887
41888
41889 cat >>confdefs.h <<\_ACEOF
41890 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
41891 _ACEOF
41892
41893   fi
41894
41895
41896
41897 for ac_func in mblen
41898 do
41899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41900 echo "$as_me:$LINENO: checking for $ac_func" >&5
41901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41902 if eval "test \"\${$as_ac_var+set}\" = set"; then
41903   echo $ECHO_N "(cached) $ECHO_C" >&6
41904 else
41905   cat >conftest.$ac_ext <<_ACEOF
41906 /* confdefs.h.  */
41907 _ACEOF
41908 cat confdefs.h >>conftest.$ac_ext
41909 cat >>conftest.$ac_ext <<_ACEOF
41910 /* end confdefs.h.  */
41911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41913 #define $ac_func innocuous_$ac_func
41914
41915 /* System header to define __stub macros and hopefully few prototypes,
41916     which can conflict with char $ac_func (); below.
41917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41918     <limits.h> exists even on freestanding compilers.  */
41919
41920 #ifdef __STDC__
41921 # include <limits.h>
41922 #else
41923 # include <assert.h>
41924 #endif
41925
41926 #undef $ac_func
41927
41928 /* Override any gcc2 internal prototype to avoid an error.  */
41929 #ifdef __cplusplus
41930 extern "C"
41931 {
41932 #endif
41933 /* We use char because int might match the return type of a gcc2
41934    builtin and then its argument prototype would still apply.  */
41935 char $ac_func ();
41936 /* The GNU C library defines this for functions which it implements
41937     to always fail with ENOSYS.  Some functions are actually named
41938     something starting with __ and the normal name is an alias.  */
41939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41940 choke me
41941 #else
41942 char (*f) () = $ac_func;
41943 #endif
41944 #ifdef __cplusplus
41945 }
41946 #endif
41947
41948 int
41949 main ()
41950 {
41951 return f != $ac_func;
41952   ;
41953   return 0;
41954 }
41955 _ACEOF
41956 rm -f conftest.$ac_objext conftest$ac_exeext
41957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41958   (eval $ac_link) 2>conftest.er1
41959   ac_status=$?
41960   grep -v '^ *+' conftest.er1 >conftest.err
41961   rm -f conftest.er1
41962   cat conftest.err >&5
41963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41964   (exit $ac_status); } &&
41965          { ac_try='test -z "$ac_c_werror_flag"
41966                          || test ! -s conftest.err'
41967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41968   (eval $ac_try) 2>&5
41969   ac_status=$?
41970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41971   (exit $ac_status); }; } &&
41972          { ac_try='test -s conftest$ac_exeext'
41973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41974   (eval $ac_try) 2>&5
41975   ac_status=$?
41976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41977   (exit $ac_status); }; }; then
41978   eval "$as_ac_var=yes"
41979 else
41980   echo "$as_me: failed program was:" >&5
41981 sed 's/^/| /' conftest.$ac_ext >&5
41982
41983 eval "$as_ac_var=no"
41984 fi
41985 rm -f conftest.err conftest.$ac_objext \
41986       conftest$ac_exeext conftest.$ac_ext
41987 fi
41988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41990 if test `eval echo '${'$as_ac_var'}'` = yes; then
41991   cat >>confdefs.h <<_ACEOF
41992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41993 _ACEOF
41994
41995 fi
41996 done
41997
41998
41999
42000
42001 for ac_func in mbrlen
42002 do
42003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42004 echo "$as_me:$LINENO: checking for $ac_func" >&5
42005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42006 if eval "test \"\${$as_ac_var+set}\" = set"; then
42007   echo $ECHO_N "(cached) $ECHO_C" >&6
42008 else
42009   cat >conftest.$ac_ext <<_ACEOF
42010 /* confdefs.h.  */
42011 _ACEOF
42012 cat confdefs.h >>conftest.$ac_ext
42013 cat >>conftest.$ac_ext <<_ACEOF
42014 /* end confdefs.h.  */
42015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42017 #define $ac_func innocuous_$ac_func
42018
42019 /* System header to define __stub macros and hopefully few prototypes,
42020     which can conflict with char $ac_func (); below.
42021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42022     <limits.h> exists even on freestanding compilers.  */
42023
42024 #ifdef __STDC__
42025 # include <limits.h>
42026 #else
42027 # include <assert.h>
42028 #endif
42029
42030 #undef $ac_func
42031
42032 /* Override any gcc2 internal prototype to avoid an error.  */
42033 #ifdef __cplusplus
42034 extern "C"
42035 {
42036 #endif
42037 /* We use char because int might match the return type of a gcc2
42038    builtin and then its argument prototype would still apply.  */
42039 char $ac_func ();
42040 /* The GNU C library defines this for functions which it implements
42041     to always fail with ENOSYS.  Some functions are actually named
42042     something starting with __ and the normal name is an alias.  */
42043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42044 choke me
42045 #else
42046 char (*f) () = $ac_func;
42047 #endif
42048 #ifdef __cplusplus
42049 }
42050 #endif
42051
42052 int
42053 main ()
42054 {
42055 return f != $ac_func;
42056   ;
42057   return 0;
42058 }
42059 _ACEOF
42060 rm -f conftest.$ac_objext conftest$ac_exeext
42061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42062   (eval $ac_link) 2>conftest.er1
42063   ac_status=$?
42064   grep -v '^ *+' conftest.er1 >conftest.err
42065   rm -f conftest.er1
42066   cat conftest.err >&5
42067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42068   (exit $ac_status); } &&
42069          { ac_try='test -z "$ac_c_werror_flag"
42070                          || test ! -s conftest.err'
42071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42072   (eval $ac_try) 2>&5
42073   ac_status=$?
42074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42075   (exit $ac_status); }; } &&
42076          { ac_try='test -s conftest$ac_exeext'
42077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42078   (eval $ac_try) 2>&5
42079   ac_status=$?
42080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42081   (exit $ac_status); }; }; then
42082   eval "$as_ac_var=yes"
42083 else
42084   echo "$as_me: failed program was:" >&5
42085 sed 's/^/| /' conftest.$ac_ext >&5
42086
42087 eval "$as_ac_var=no"
42088 fi
42089 rm -f conftest.err conftest.$ac_objext \
42090       conftest$ac_exeext conftest.$ac_ext
42091 fi
42092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42094 if test `eval echo '${'$as_ac_var'}'` = yes; then
42095   cat >>confdefs.h <<_ACEOF
42096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42097 _ACEOF
42098
42099 fi
42100 done
42101
42102
42103
42104
42105 for ac_func in tzset
42106 do
42107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42108 echo "$as_me:$LINENO: checking for $ac_func" >&5
42109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42110 if eval "test \"\${$as_ac_var+set}\" = set"; then
42111   echo $ECHO_N "(cached) $ECHO_C" >&6
42112 else
42113   cat >conftest.$ac_ext <<_ACEOF
42114 /* confdefs.h.  */
42115 _ACEOF
42116 cat confdefs.h >>conftest.$ac_ext
42117 cat >>conftest.$ac_ext <<_ACEOF
42118 /* end confdefs.h.  */
42119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42121 #define $ac_func innocuous_$ac_func
42122
42123 /* System header to define __stub macros and hopefully few prototypes,
42124     which can conflict with char $ac_func (); below.
42125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42126     <limits.h> exists even on freestanding compilers.  */
42127
42128 #ifdef __STDC__
42129 # include <limits.h>
42130 #else
42131 # include <assert.h>
42132 #endif
42133
42134 #undef $ac_func
42135
42136 /* Override any gcc2 internal prototype to avoid an error.  */
42137 #ifdef __cplusplus
42138 extern "C"
42139 {
42140 #endif
42141 /* We use char because int might match the return type of a gcc2
42142    builtin and then its argument prototype would still apply.  */
42143 char $ac_func ();
42144 /* The GNU C library defines this for functions which it implements
42145     to always fail with ENOSYS.  Some functions are actually named
42146     something starting with __ and the normal name is an alias.  */
42147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42148 choke me
42149 #else
42150 char (*f) () = $ac_func;
42151 #endif
42152 #ifdef __cplusplus
42153 }
42154 #endif
42155
42156 int
42157 main ()
42158 {
42159 return f != $ac_func;
42160   ;
42161   return 0;
42162 }
42163 _ACEOF
42164 rm -f conftest.$ac_objext conftest$ac_exeext
42165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42166   (eval $ac_link) 2>conftest.er1
42167   ac_status=$?
42168   grep -v '^ *+' conftest.er1 >conftest.err
42169   rm -f conftest.er1
42170   cat conftest.err >&5
42171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42172   (exit $ac_status); } &&
42173          { ac_try='test -z "$ac_c_werror_flag"
42174                          || test ! -s conftest.err'
42175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42176   (eval $ac_try) 2>&5
42177   ac_status=$?
42178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42179   (exit $ac_status); }; } &&
42180          { ac_try='test -s conftest$ac_exeext'
42181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42182   (eval $ac_try) 2>&5
42183   ac_status=$?
42184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42185   (exit $ac_status); }; }; then
42186   eval "$as_ac_var=yes"
42187 else
42188   echo "$as_me: failed program was:" >&5
42189 sed 's/^/| /' conftest.$ac_ext >&5
42190
42191 eval "$as_ac_var=no"
42192 fi
42193 rm -f conftest.err conftest.$ac_objext \
42194       conftest$ac_exeext conftest.$ac_ext
42195 fi
42196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42198 if test `eval echo '${'$as_ac_var'}'` = yes; then
42199   cat >>confdefs.h <<_ACEOF
42200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42201 _ACEOF
42202
42203 fi
42204 done
42205
42206
42207
42208  # strftime.c uses the underyling system strftime if it exists.
42209
42210
42211  # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
42212
42213
42214
42215
42216
42217
42218
42219
42220   :
42221
42222
42223
42224
42225
42226
42227
42228
42229
42230
42231
42232
42233
42234
42235
42236   :
42237
42238
42239
42240
42241
42242
42243
42244
42245
42246
42247 cat >>confdefs.h <<\_ACEOF
42248 #define my_strftime nstrftime
42249 _ACEOF
42250
42251
42252
42253 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
42254 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
42255 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
42256   echo $ECHO_N "(cached) $ECHO_C" >&6
42257 else
42258   rm -f conftest.sym conftest.file
42259 echo >conftest.file
42260 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
42261   if test "$cross_compiling" = yes; then
42262   ac_cv_func_lstat_dereferences_slashed_symlink=no
42263 else
42264   cat >conftest.$ac_ext <<_ACEOF
42265 /* confdefs.h.  */
42266 _ACEOF
42267 cat confdefs.h >>conftest.$ac_ext
42268 cat >>conftest.$ac_ext <<_ACEOF
42269 /* end confdefs.h.  */
42270 $ac_includes_default
42271 int
42272 main ()
42273 {
42274 struct stat sbuf;
42275      /* Linux will dereference the symlink and fail.
42276         That is better in the sense that it means we will not
42277         have to compile and use the lstat wrapper.  */
42278      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
42279   ;
42280   return 0;
42281 }
42282 _ACEOF
42283 rm -f conftest$ac_exeext
42284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42285   (eval $ac_link) 2>&5
42286   ac_status=$?
42287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42288   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42290   (eval $ac_try) 2>&5
42291   ac_status=$?
42292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42293   (exit $ac_status); }; }; then
42294   ac_cv_func_lstat_dereferences_slashed_symlink=yes
42295 else
42296   echo "$as_me: program exited with status $ac_status" >&5
42297 echo "$as_me: failed program was:" >&5
42298 sed 's/^/| /' conftest.$ac_ext >&5
42299
42300 ( exit $ac_status )
42301 ac_cv_func_lstat_dereferences_slashed_symlink=no
42302 fi
42303 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42304 fi
42305 else
42306   # If the `ln -s' command failed, then we probably don't even
42307   # have an lstat function.
42308   ac_cv_func_lstat_dereferences_slashed_symlink=no
42309 fi
42310 rm -f conftest.sym conftest.file
42311
42312 fi
42313 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
42314 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
42315
42316 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
42317
42318 cat >>confdefs.h <<_ACEOF
42319 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
42320 _ACEOF
42321
42322
42323 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
42324   case $LIBOBJS in
42325     "lstat.$ac_objext"   | \
42326   *" lstat.$ac_objext"   | \
42327     "lstat.$ac_objext "* | \
42328   *" lstat.$ac_objext "* ) ;;
42329   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
42330 esac
42331
42332 fi
42333
42334
42335   echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
42336 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
42337 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
42338   echo $ECHO_N "(cached) $ECHO_C" >&6
42339 else
42340   if test "$cross_compiling" = yes; then
42341   ac_cv_func_lstat_empty_string_bug=yes
42342 else
42343   cat >conftest.$ac_ext <<_ACEOF
42344 /* confdefs.h.  */
42345 _ACEOF
42346 cat confdefs.h >>conftest.$ac_ext
42347 cat >>conftest.$ac_ext <<_ACEOF
42348 /* end confdefs.h.  */
42349 $ac_includes_default
42350 int
42351 main ()
42352 {
42353 struct stat sbuf;
42354   exit (lstat ("", &sbuf) ? 1 : 0);
42355   ;
42356   return 0;
42357 }
42358 _ACEOF
42359 rm -f conftest$ac_exeext
42360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42361   (eval $ac_link) 2>&5
42362   ac_status=$?
42363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42364   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42366   (eval $ac_try) 2>&5
42367   ac_status=$?
42368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42369   (exit $ac_status); }; }; then
42370   ac_cv_func_lstat_empty_string_bug=yes
42371 else
42372   echo "$as_me: program exited with status $ac_status" >&5
42373 echo "$as_me: failed program was:" >&5
42374 sed 's/^/| /' conftest.$ac_ext >&5
42375
42376 ( exit $ac_status )
42377 ac_cv_func_lstat_empty_string_bug=no
42378 fi
42379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42380 fi
42381 fi
42382 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
42383 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
42384 if test $ac_cv_func_lstat_empty_string_bug = yes; then
42385   case $LIBOBJS in
42386     "lstat.$ac_objext"   | \
42387   *" lstat.$ac_objext"   | \
42388     "lstat.$ac_objext "* | \
42389   *" lstat.$ac_objext "* ) ;;
42390   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
42391 esac
42392
42393
42394 cat >>confdefs.h <<_ACEOF
42395 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
42396 _ACEOF
42397
42398 fi
42399
42400     if test $ac_cv_func_lstat_empty_string_bug = yes; then
42401
42402
42403   :
42404
42405   fi
42406
42407
42408 for ac_header in stdlib.h
42409 do
42410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42412   echo "$as_me:$LINENO: checking for $ac_header" >&5
42413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42415   echo $ECHO_N "(cached) $ECHO_C" >&6
42416 fi
42417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42419 else
42420   # Is the header compilable?
42421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
42422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42423 cat >conftest.$ac_ext <<_ACEOF
42424 /* confdefs.h.  */
42425 _ACEOF
42426 cat confdefs.h >>conftest.$ac_ext
42427 cat >>conftest.$ac_ext <<_ACEOF
42428 /* end confdefs.h.  */
42429 $ac_includes_default
42430 #include <$ac_header>
42431 _ACEOF
42432 rm -f conftest.$ac_objext
42433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42434   (eval $ac_compile) 2>conftest.er1
42435   ac_status=$?
42436   grep -v '^ *+' conftest.er1 >conftest.err
42437   rm -f conftest.er1
42438   cat conftest.err >&5
42439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42440   (exit $ac_status); } &&
42441          { ac_try='test -z "$ac_c_werror_flag"
42442                          || test ! -s conftest.err'
42443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42444   (eval $ac_try) 2>&5
42445   ac_status=$?
42446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42447   (exit $ac_status); }; } &&
42448          { ac_try='test -s conftest.$ac_objext'
42449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42450   (eval $ac_try) 2>&5
42451   ac_status=$?
42452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42453   (exit $ac_status); }; }; then
42454   ac_header_compiler=yes
42455 else
42456   echo "$as_me: failed program was:" >&5
42457 sed 's/^/| /' conftest.$ac_ext >&5
42458
42459 ac_header_compiler=no
42460 fi
42461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42463 echo "${ECHO_T}$ac_header_compiler" >&6
42464
42465 # Is the header present?
42466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
42467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42468 cat >conftest.$ac_ext <<_ACEOF
42469 /* confdefs.h.  */
42470 _ACEOF
42471 cat confdefs.h >>conftest.$ac_ext
42472 cat >>conftest.$ac_ext <<_ACEOF
42473 /* end confdefs.h.  */
42474 #include <$ac_header>
42475 _ACEOF
42476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42477   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42478   ac_status=$?
42479   grep -v '^ *+' conftest.er1 >conftest.err
42480   rm -f conftest.er1
42481   cat conftest.err >&5
42482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42483   (exit $ac_status); } >/dev/null; then
42484   if test -s conftest.err; then
42485     ac_cpp_err=$ac_c_preproc_warn_flag
42486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42487   else
42488     ac_cpp_err=
42489   fi
42490 else
42491   ac_cpp_err=yes
42492 fi
42493 if test -z "$ac_cpp_err"; then
42494   ac_header_preproc=yes
42495 else
42496   echo "$as_me: failed program was:" >&5
42497 sed 's/^/| /' conftest.$ac_ext >&5
42498
42499   ac_header_preproc=no
42500 fi
42501 rm -f conftest.err conftest.$ac_ext
42502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42503 echo "${ECHO_T}$ac_header_preproc" >&6
42504
42505 # So?  What about this header?
42506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42507   yes:no: )
42508     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42512     ac_header_preproc=yes
42513     ;;
42514   no:yes:* )
42515     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42517     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42518 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42519     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42521     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42522 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42525     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42527     (
42528       cat <<\_ASBOX
42529 ## ------------------------------------ ##
42530 ## Report this to bug-coreutils@gnu.org ##
42531 ## ------------------------------------ ##
42532 _ASBOX
42533     ) |
42534       sed "s/^/$as_me: WARNING:     /" >&2
42535     ;;
42536 esac
42537 echo "$as_me:$LINENO: checking for $ac_header" >&5
42538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42540   echo $ECHO_N "(cached) $ECHO_C" >&6
42541 else
42542   eval "$as_ac_Header=\$ac_header_preproc"
42543 fi
42544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42546
42547 fi
42548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42549   cat >>confdefs.h <<_ACEOF
42550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42551 _ACEOF
42552
42553 fi
42554
42555 done
42556
42557 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
42558 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
42559 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
42560   echo $ECHO_N "(cached) $ECHO_C" >&6
42561 else
42562   if test "$cross_compiling" = yes; then
42563   ac_cv_func_malloc_0_nonnull=no
42564 else
42565   cat >conftest.$ac_ext <<_ACEOF
42566 /* confdefs.h.  */
42567 _ACEOF
42568 cat confdefs.h >>conftest.$ac_ext
42569 cat >>conftest.$ac_ext <<_ACEOF
42570 /* end confdefs.h.  */
42571 #if STDC_HEADERS || HAVE_STDLIB_H
42572 # include <stdlib.h>
42573 #else
42574 char *malloc ();
42575 #endif
42576
42577 int
42578 main ()
42579 {
42580 exit (malloc (0) ? 0 : 1);
42581   ;
42582   return 0;
42583 }
42584 _ACEOF
42585 rm -f conftest$ac_exeext
42586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42587   (eval $ac_link) 2>&5
42588   ac_status=$?
42589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42590   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42592   (eval $ac_try) 2>&5
42593   ac_status=$?
42594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42595   (exit $ac_status); }; }; then
42596   ac_cv_func_malloc_0_nonnull=yes
42597 else
42598   echo "$as_me: program exited with status $ac_status" >&5
42599 echo "$as_me: failed program was:" >&5
42600 sed 's/^/| /' conftest.$ac_ext >&5
42601
42602 ( exit $ac_status )
42603 ac_cv_func_malloc_0_nonnull=no
42604 fi
42605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42606 fi
42607 fi
42608 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
42609 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
42610 if test $ac_cv_func_malloc_0_nonnull = yes; then
42611
42612 cat >>confdefs.h <<\_ACEOF
42613 #define HAVE_MALLOC 1
42614 _ACEOF
42615
42616 else
42617   cat >>confdefs.h <<\_ACEOF
42618 #define HAVE_MALLOC 0
42619 _ACEOF
42620
42621    case $LIBOBJS in
42622     "malloc.$ac_objext"   | \
42623   *" malloc.$ac_objext"   | \
42624     "malloc.$ac_objext "* | \
42625   *" malloc.$ac_objext "* ) ;;
42626   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
42627 esac
42628
42629
42630 cat >>confdefs.h <<\_ACEOF
42631 #define malloc rpl_malloc
42632 _ACEOF
42633
42634 fi
42635
42636
42637
42638
42639
42640   if test $ac_cv_func_memcmp_working = no; then
42641
42642 cat >>confdefs.h <<\_ACEOF
42643 #define memcmp rpl_memcmp
42644 _ACEOF
42645
42646     :
42647   fi
42648
42649
42650  nanosleep_save_libs=$LIBS
42651
42652  # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
42653  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
42654  echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
42655 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
42656 if test "${ac_cv_search_nanosleep+set}" = set; then
42657   echo $ECHO_N "(cached) $ECHO_C" >&6
42658 else
42659   ac_func_search_save_LIBS=$LIBS
42660 ac_cv_search_nanosleep=no
42661 cat >conftest.$ac_ext <<_ACEOF
42662 /* confdefs.h.  */
42663 _ACEOF
42664 cat confdefs.h >>conftest.$ac_ext
42665 cat >>conftest.$ac_ext <<_ACEOF
42666 /* end confdefs.h.  */
42667
42668 /* Override any gcc2 internal prototype to avoid an error.  */
42669 #ifdef __cplusplus
42670 extern "C"
42671 #endif
42672 /* We use char because int might match the return type of a gcc2
42673    builtin and then its argument prototype would still apply.  */
42674 char nanosleep ();
42675 int
42676 main ()
42677 {
42678 nanosleep ();
42679   ;
42680   return 0;
42681 }
42682 _ACEOF
42683 rm -f conftest.$ac_objext conftest$ac_exeext
42684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42685   (eval $ac_link) 2>conftest.er1
42686   ac_status=$?
42687   grep -v '^ *+' conftest.er1 >conftest.err
42688   rm -f conftest.er1
42689   cat conftest.err >&5
42690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42691   (exit $ac_status); } &&
42692          { ac_try='test -z "$ac_c_werror_flag"
42693                          || test ! -s conftest.err'
42694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42695   (eval $ac_try) 2>&5
42696   ac_status=$?
42697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42698   (exit $ac_status); }; } &&
42699          { ac_try='test -s conftest$ac_exeext'
42700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42701   (eval $ac_try) 2>&5
42702   ac_status=$?
42703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42704   (exit $ac_status); }; }; then
42705   ac_cv_search_nanosleep="none required"
42706 else
42707   echo "$as_me: failed program was:" >&5
42708 sed 's/^/| /' conftest.$ac_ext >&5
42709
42710 fi
42711 rm -f conftest.err conftest.$ac_objext \
42712       conftest$ac_exeext conftest.$ac_ext
42713 if test "$ac_cv_search_nanosleep" = no; then
42714   for ac_lib in rt posix4; do
42715     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
42716     cat >conftest.$ac_ext <<_ACEOF
42717 /* confdefs.h.  */
42718 _ACEOF
42719 cat confdefs.h >>conftest.$ac_ext
42720 cat >>conftest.$ac_ext <<_ACEOF
42721 /* end confdefs.h.  */
42722
42723 /* Override any gcc2 internal prototype to avoid an error.  */
42724 #ifdef __cplusplus
42725 extern "C"
42726 #endif
42727 /* We use char because int might match the return type of a gcc2
42728    builtin and then its argument prototype would still apply.  */
42729 char nanosleep ();
42730 int
42731 main ()
42732 {
42733 nanosleep ();
42734   ;
42735   return 0;
42736 }
42737 _ACEOF
42738 rm -f conftest.$ac_objext conftest$ac_exeext
42739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42740   (eval $ac_link) 2>conftest.er1
42741   ac_status=$?
42742   grep -v '^ *+' conftest.er1 >conftest.err
42743   rm -f conftest.er1
42744   cat conftest.err >&5
42745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42746   (exit $ac_status); } &&
42747          { ac_try='test -z "$ac_c_werror_flag"
42748                          || test ! -s conftest.err'
42749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42750   (eval $ac_try) 2>&5
42751   ac_status=$?
42752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42753   (exit $ac_status); }; } &&
42754          { ac_try='test -s conftest$ac_exeext'
42755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42756   (eval $ac_try) 2>&5
42757   ac_status=$?
42758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42759   (exit $ac_status); }; }; then
42760   ac_cv_search_nanosleep="-l$ac_lib"
42761 break
42762 else
42763   echo "$as_me: failed program was:" >&5
42764 sed 's/^/| /' conftest.$ac_ext >&5
42765
42766 fi
42767 rm -f conftest.err conftest.$ac_objext \
42768       conftest$ac_exeext conftest.$ac_ext
42769   done
42770 fi
42771 LIBS=$ac_func_search_save_LIBS
42772 fi
42773 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
42774 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
42775 if test "$ac_cv_search_nanosleep" != no; then
42776   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
42777   test "$ac_cv_search_nanosleep" = "none required" ||
42778                  LIB_NANOSLEEP=$ac_cv_search_nanosleep
42779 fi
42780
42781
42782
42783  echo "$as_me:$LINENO: checking whether nanosleep works" >&5
42784 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
42785 if test "${jm_cv_func_nanosleep_works+set}" = set; then
42786   echo $ECHO_N "(cached) $ECHO_C" >&6
42787 else
42788
42789
42790
42791   :
42792
42793
42794
42795
42796
42797    if test "$cross_compiling" = yes; then
42798          jm_cv_func_nanosleep_works=no
42799 else
42800   cat >conftest.$ac_ext <<_ACEOF
42801 /* confdefs.h.  */
42802 _ACEOF
42803 cat confdefs.h >>conftest.$ac_ext
42804 cat >>conftest.$ac_ext <<_ACEOF
42805 /* end confdefs.h.  */
42806
42807 #   if TIME_WITH_SYS_TIME
42808 #    include <sys/time.h>
42809 #    include <time.h>
42810 #   else
42811 #    if HAVE_SYS_TIME_H
42812 #     include <sys/time.h>
42813 #    else
42814 #     include <time.h>
42815 #    endif
42816 #   endif
42817
42818     int
42819     main ()
42820     {
42821       struct timespec ts_sleep, ts_remaining;
42822       ts_sleep.tv_sec = 0;
42823       ts_sleep.tv_nsec = 1;
42824       exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
42825     }
42826
42827 _ACEOF
42828 rm -f conftest$ac_exeext
42829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42830   (eval $ac_link) 2>&5
42831   ac_status=$?
42832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42833   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42835   (eval $ac_try) 2>&5
42836   ac_status=$?
42837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42838   (exit $ac_status); }; }; then
42839   jm_cv_func_nanosleep_works=yes
42840 else
42841   echo "$as_me: program exited with status $ac_status" >&5
42842 echo "$as_me: failed program was:" >&5
42843 sed 's/^/| /' conftest.$ac_ext >&5
42844
42845 ( exit $ac_status )
42846 jm_cv_func_nanosleep_works=no
42847 fi
42848 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42849 fi
42850
42851 fi
42852 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
42853 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
42854   if test $jm_cv_func_nanosleep_works = no; then
42855     case $LIBOBJS in
42856     "nanosleep.$ac_objext"   | \
42857   *" nanosleep.$ac_objext"   | \
42858     "nanosleep.$ac_objext "* | \
42859   *" nanosleep.$ac_objext "* ) ;;
42860   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext" ;;
42861 esac
42862
42863
42864 cat >>confdefs.h <<\_ACEOF
42865 #define nanosleep rpl_nanosleep
42866 _ACEOF
42867
42868
42869
42870   :
42871
42872
42873
42874
42875
42876
42877   fi
42878
42879  LIBS=$nanosleep_save_libs
42880
42881 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
42882 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
42883 if test "${jm_cv_func_svid_putenv+set}" = set; then
42884   echo $ECHO_N "(cached) $ECHO_C" >&6
42885 else
42886   if test "$cross_compiling" = yes; then
42887              jm_cv_func_svid_putenv=no
42888 else
42889   cat >conftest.$ac_ext <<_ACEOF
42890 /* confdefs.h.  */
42891 _ACEOF
42892 cat confdefs.h >>conftest.$ac_ext
42893 cat >>conftest.$ac_ext <<_ACEOF
42894 /* end confdefs.h.  */
42895
42896     int
42897     main ()
42898     {
42899       /* Put it in env.  */
42900       if (putenv ("CONFTEST_putenv=val"))
42901         exit (1);
42902
42903       /* Try to remove it.  */
42904       if (putenv ("CONFTEST_putenv"))
42905         exit (1);
42906
42907       /* Make sure it was deleted.  */
42908       if (getenv ("CONFTEST_putenv") != 0)
42909         exit (1);
42910
42911       exit (0);
42912     }
42913
42914 _ACEOF
42915 rm -f conftest$ac_exeext
42916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42917   (eval $ac_link) 2>&5
42918   ac_status=$?
42919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42920   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42922   (eval $ac_try) 2>&5
42923   ac_status=$?
42924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42925   (exit $ac_status); }; }; then
42926   jm_cv_func_svid_putenv=yes
42927 else
42928   echo "$as_me: program exited with status $ac_status" >&5
42929 echo "$as_me: failed program was:" >&5
42930 sed 's/^/| /' conftest.$ac_ext >&5
42931
42932 ( exit $ac_status )
42933 jm_cv_func_svid_putenv=no
42934 fi
42935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42936 fi
42937
42938 fi
42939 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
42940 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
42941   if test $jm_cv_func_svid_putenv = no; then
42942     case $LIBOBJS in
42943     "putenv.$ac_objext"   | \
42944   *" putenv.$ac_objext"   | \
42945     "putenv.$ac_objext "* | \
42946   *" putenv.$ac_objext "* ) ;;
42947   *) LIBOBJS="$LIBOBJS putenv.$ac_objext" ;;
42948 esac
42949
42950
42951 cat >>confdefs.h <<\_ACEOF
42952 #define putenv rpl_putenv
42953 _ACEOF
42954
42955
42956
42957   :
42958
42959
42960
42961
42962
42963
42964   fi
42965
42966
42967 for ac_header in stdlib.h
42968 do
42969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42971   echo "$as_me:$LINENO: checking for $ac_header" >&5
42972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42974   echo $ECHO_N "(cached) $ECHO_C" >&6
42975 fi
42976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42978 else
42979   # Is the header compilable?
42980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
42981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42982 cat >conftest.$ac_ext <<_ACEOF
42983 /* confdefs.h.  */
42984 _ACEOF
42985 cat confdefs.h >>conftest.$ac_ext
42986 cat >>conftest.$ac_ext <<_ACEOF
42987 /* end confdefs.h.  */
42988 $ac_includes_default
42989 #include <$ac_header>
42990 _ACEOF
42991 rm -f conftest.$ac_objext
42992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42993   (eval $ac_compile) 2>conftest.er1
42994   ac_status=$?
42995   grep -v '^ *+' conftest.er1 >conftest.err
42996   rm -f conftest.er1
42997   cat conftest.err >&5
42998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42999   (exit $ac_status); } &&
43000          { ac_try='test -z "$ac_c_werror_flag"
43001                          || test ! -s conftest.err'
43002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43003   (eval $ac_try) 2>&5
43004   ac_status=$?
43005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43006   (exit $ac_status); }; } &&
43007          { ac_try='test -s conftest.$ac_objext'
43008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43009   (eval $ac_try) 2>&5
43010   ac_status=$?
43011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43012   (exit $ac_status); }; }; then
43013   ac_header_compiler=yes
43014 else
43015   echo "$as_me: failed program was:" >&5
43016 sed 's/^/| /' conftest.$ac_ext >&5
43017
43018 ac_header_compiler=no
43019 fi
43020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43022 echo "${ECHO_T}$ac_header_compiler" >&6
43023
43024 # Is the header present?
43025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43027 cat >conftest.$ac_ext <<_ACEOF
43028 /* confdefs.h.  */
43029 _ACEOF
43030 cat confdefs.h >>conftest.$ac_ext
43031 cat >>conftest.$ac_ext <<_ACEOF
43032 /* end confdefs.h.  */
43033 #include <$ac_header>
43034 _ACEOF
43035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43036   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43037   ac_status=$?
43038   grep -v '^ *+' conftest.er1 >conftest.err
43039   rm -f conftest.er1
43040   cat conftest.err >&5
43041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43042   (exit $ac_status); } >/dev/null; then
43043   if test -s conftest.err; then
43044     ac_cpp_err=$ac_c_preproc_warn_flag
43045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43046   else
43047     ac_cpp_err=
43048   fi
43049 else
43050   ac_cpp_err=yes
43051 fi
43052 if test -z "$ac_cpp_err"; then
43053   ac_header_preproc=yes
43054 else
43055   echo "$as_me: failed program was:" >&5
43056 sed 's/^/| /' conftest.$ac_ext >&5
43057
43058   ac_header_preproc=no
43059 fi
43060 rm -f conftest.err conftest.$ac_ext
43061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43062 echo "${ECHO_T}$ac_header_preproc" >&6
43063
43064 # So?  What about this header?
43065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43066   yes:no: )
43067     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43071     ac_header_preproc=yes
43072     ;;
43073   no:yes:* )
43074     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43076     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43077 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43078     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43080     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43081 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43084     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43086     (
43087       cat <<\_ASBOX
43088 ## ------------------------------------ ##
43089 ## Report this to bug-coreutils@gnu.org ##
43090 ## ------------------------------------ ##
43091 _ASBOX
43092     ) |
43093       sed "s/^/$as_me: WARNING:     /" >&2
43094     ;;
43095 esac
43096 echo "$as_me:$LINENO: checking for $ac_header" >&5
43097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43099   echo $ECHO_N "(cached) $ECHO_C" >&6
43100 else
43101   eval "$as_ac_Header=\$ac_header_preproc"
43102 fi
43103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43105
43106 fi
43107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43108   cat >>confdefs.h <<_ACEOF
43109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43110 _ACEOF
43111
43112 fi
43113
43114 done
43115
43116 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
43117 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
43118 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
43119   echo $ECHO_N "(cached) $ECHO_C" >&6
43120 else
43121   if test "$cross_compiling" = yes; then
43122   ac_cv_func_realloc_0_nonnull=no
43123 else
43124   cat >conftest.$ac_ext <<_ACEOF
43125 /* confdefs.h.  */
43126 _ACEOF
43127 cat confdefs.h >>conftest.$ac_ext
43128 cat >>conftest.$ac_ext <<_ACEOF
43129 /* end confdefs.h.  */
43130 #if STDC_HEADERS || HAVE_STDLIB_H
43131 # include <stdlib.h>
43132 #else
43133 char *realloc ();
43134 #endif
43135
43136 int
43137 main ()
43138 {
43139 exit (realloc (0, 0) ? 0 : 1);
43140   ;
43141   return 0;
43142 }
43143 _ACEOF
43144 rm -f conftest$ac_exeext
43145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43146   (eval $ac_link) 2>&5
43147   ac_status=$?
43148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43151   (eval $ac_try) 2>&5
43152   ac_status=$?
43153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43154   (exit $ac_status); }; }; then
43155   ac_cv_func_realloc_0_nonnull=yes
43156 else
43157   echo "$as_me: program exited with status $ac_status" >&5
43158 echo "$as_me: failed program was:" >&5
43159 sed 's/^/| /' conftest.$ac_ext >&5
43160
43161 ( exit $ac_status )
43162 ac_cv_func_realloc_0_nonnull=no
43163 fi
43164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43165 fi
43166 fi
43167 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
43168 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
43169 if test $ac_cv_func_realloc_0_nonnull = yes; then
43170
43171 cat >>confdefs.h <<\_ACEOF
43172 #define HAVE_REALLOC 1
43173 _ACEOF
43174
43175 else
43176   cat >>confdefs.h <<\_ACEOF
43177 #define HAVE_REALLOC 0
43178 _ACEOF
43179
43180    case $LIBOBJS in
43181     "realloc.$ac_objext"   | \
43182   *" realloc.$ac_objext"   | \
43183     "realloc.$ac_objext "* | \
43184   *" realloc.$ac_objext "* ) ;;
43185   *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
43186 esac
43187
43188
43189 cat >>confdefs.h <<\_ACEOF
43190 #define realloc rpl_realloc
43191 _ACEOF
43192
43193 fi
43194
43195
43196
43197
43198   echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
43199 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
43200 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
43201   echo $ECHO_N "(cached) $ECHO_C" >&6
43202 else
43203   if test "$cross_compiling" = yes; then
43204   ac_cv_func_stat_empty_string_bug=yes
43205 else
43206   cat >conftest.$ac_ext <<_ACEOF
43207 /* confdefs.h.  */
43208 _ACEOF
43209 cat confdefs.h >>conftest.$ac_ext
43210 cat >>conftest.$ac_ext <<_ACEOF
43211 /* end confdefs.h.  */
43212 $ac_includes_default
43213 int
43214 main ()
43215 {
43216 struct stat sbuf;
43217   exit (stat ("", &sbuf) ? 1 : 0);
43218   ;
43219   return 0;
43220 }
43221 _ACEOF
43222 rm -f conftest$ac_exeext
43223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43224   (eval $ac_link) 2>&5
43225   ac_status=$?
43226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43227   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43229   (eval $ac_try) 2>&5
43230   ac_status=$?
43231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43232   (exit $ac_status); }; }; then
43233   ac_cv_func_stat_empty_string_bug=yes
43234 else
43235   echo "$as_me: program exited with status $ac_status" >&5
43236 echo "$as_me: failed program was:" >&5
43237 sed 's/^/| /' conftest.$ac_ext >&5
43238
43239 ( exit $ac_status )
43240 ac_cv_func_stat_empty_string_bug=no
43241 fi
43242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43243 fi
43244 fi
43245 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
43246 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
43247 if test $ac_cv_func_stat_empty_string_bug = yes; then
43248   case $LIBOBJS in
43249     "stat.$ac_objext"   | \
43250   *" stat.$ac_objext"   | \
43251     "stat.$ac_objext "* | \
43252   *" stat.$ac_objext "* ) ;;
43253   *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
43254 esac
43255
43256
43257 cat >>confdefs.h <<_ACEOF
43258 #define HAVE_STAT_EMPTY_STRING_BUG 1
43259 _ACEOF
43260
43261 fi
43262
43263     if test $ac_cv_func_stat_empty_string_bug = yes; then
43264
43265   :
43266
43267   fi
43268
43269 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
43270 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
43271 if test "${ac_cv_func_utime_null+set}" = set; then
43272   echo $ECHO_N "(cached) $ECHO_C" >&6
43273 else
43274   rm -f conftest.data; >conftest.data
43275 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
43276 if test "$cross_compiling" = yes; then
43277   ac_cv_func_utime_null=no
43278 else
43279   cat >conftest.$ac_ext <<_ACEOF
43280 /* confdefs.h.  */
43281 _ACEOF
43282 cat confdefs.h >>conftest.$ac_ext
43283 cat >>conftest.$ac_ext <<_ACEOF
43284 /* end confdefs.h.  */
43285 $ac_includes_default
43286 int
43287 main ()
43288 {
43289 struct stat s, t;
43290   exit (!(stat ("conftest.data", &s) == 0
43291           && utime ("conftest.data", (long *)0) == 0
43292           && stat ("conftest.data", &t) == 0
43293           && t.st_mtime >= s.st_mtime
43294           && t.st_mtime - s.st_mtime < 120));
43295   ;
43296   return 0;
43297 }
43298 _ACEOF
43299 rm -f conftest$ac_exeext
43300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43301   (eval $ac_link) 2>&5
43302   ac_status=$?
43303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43306   (eval $ac_try) 2>&5
43307   ac_status=$?
43308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43309   (exit $ac_status); }; }; then
43310   ac_cv_func_utime_null=yes
43311 else
43312   echo "$as_me: program exited with status $ac_status" >&5
43313 echo "$as_me: failed program was:" >&5
43314 sed 's/^/| /' conftest.$ac_ext >&5
43315
43316 ( exit $ac_status )
43317 ac_cv_func_utime_null=no
43318 fi
43319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43320 fi
43321 rm -f core *.core
43322 fi
43323 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
43324 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
43325 if test $ac_cv_func_utime_null = yes; then
43326
43327 cat >>confdefs.h <<\_ACEOF
43328 #define HAVE_UTIME_NULL 1
43329 _ACEOF
43330
43331 fi
43332 rm -f conftest.data
43333
43334
43335
43336   if test $ac_cv_func_utime_null = no; then
43337     case $LIBOBJS in
43338     "utime.$ac_objext"   | \
43339   *" utime.$ac_objext"   | \
43340     "utime.$ac_objext "* | \
43341   *" utime.$ac_objext "* ) ;;
43342   *) LIBOBJS="$LIBOBJS utime.$ac_objext" ;;
43343 esac
43344
43345
43346 cat >>confdefs.h <<\_ACEOF
43347 #define utime rpl_utime
43348 _ACEOF
43349
43350
43351
43352   :
43353
43354
43355
43356
43357
43358
43359   echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
43360 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
43361 if test "${ac_cv_func_utimes_null+set}" = set; then
43362   echo $ECHO_N "(cached) $ECHO_C" >&6
43363 else
43364   rm -f conftest.data; > conftest.data
43365 if test "$cross_compiling" = yes; then
43366   ac_cv_func_utimes_null=no
43367 else
43368   cat >conftest.$ac_ext <<_ACEOF
43369 /* confdefs.h.  */
43370 _ACEOF
43371 cat confdefs.h >>conftest.$ac_ext
43372 cat >>conftest.$ac_ext <<_ACEOF
43373 /* end confdefs.h.  */
43374
43375 /* In case stat has been defined to rpl_stat, undef it here.  */
43376 #undef stat
43377 #include <sys/types.h>
43378 #include <sys/stat.h>
43379 main() {
43380 struct stat s, t;
43381 exit(!(stat ("conftest.data", &s) == 0
43382        && utimes("conftest.data", (long *)0) == 0
43383        && stat("conftest.data", &t) == 0
43384        && t.st_mtime >= s.st_mtime
43385        && t.st_mtime - s.st_mtime < 120));
43386 }
43387 _ACEOF
43388 rm -f conftest$ac_exeext
43389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43390   (eval $ac_link) 2>&5
43391   ac_status=$?
43392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43393   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43395   (eval $ac_try) 2>&5
43396   ac_status=$?
43397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43398   (exit $ac_status); }; }; then
43399   ac_cv_func_utimes_null=yes
43400 else
43401   echo "$as_me: program exited with status $ac_status" >&5
43402 echo "$as_me: failed program was:" >&5
43403 sed 's/^/| /' conftest.$ac_ext >&5
43404
43405 ( exit $ac_status )
43406 ac_cv_func_utimes_null=no
43407 fi
43408 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43409 fi
43410 rm -f core core.* *.core
43411 fi
43412 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
43413 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
43414
43415     if test $ac_cv_func_utimes_null = yes; then
43416
43417 cat >>confdefs.h <<\_ACEOF
43418 #define HAVE_UTIMES_NULL 1
43419 _ACEOF
43420
43421     fi
43422
43423
43424
43425   fi
43426
43427
43428
43429
43430
43431
43432
43433
43434
43435
43436  echo "$as_me:$LINENO: checking whether rename is broken" >&5
43437 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
43438 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
43439   echo $ECHO_N "(cached) $ECHO_C" >&6
43440 else
43441
43442     rm -rf conftest.d1 conftest.d2
43443     mkdir conftest.d1 ||
43444       { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
43445 echo "$as_me: error: cannot create temporary directory" >&2;}
43446    { (exit 1); exit 1; }; }
43447     if test "$cross_compiling" = yes; then
43448         vb_cv_func_rename_trailing_slash_bug=yes
43449 else
43450   cat >conftest.$ac_ext <<_ACEOF
43451 /* confdefs.h.  */
43452 _ACEOF
43453 cat confdefs.h >>conftest.$ac_ext
43454 cat >>conftest.$ac_ext <<_ACEOF
43455 /* end confdefs.h.  */
43456
43457 #       include <stdio.h>
43458         int
43459         main ()
43460         {
43461           exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
43462         }
43463
43464 _ACEOF
43465 rm -f conftest$ac_exeext
43466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43467   (eval $ac_link) 2>&5
43468   ac_status=$?
43469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43472   (eval $ac_try) 2>&5
43473   ac_status=$?
43474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43475   (exit $ac_status); }; }; then
43476   vb_cv_func_rename_trailing_slash_bug=no
43477 else
43478   echo "$as_me: program exited with status $ac_status" >&5
43479 echo "$as_me: failed program was:" >&5
43480 sed 's/^/| /' conftest.$ac_ext >&5
43481
43482 ( exit $ac_status )
43483 vb_cv_func_rename_trailing_slash_bug=yes
43484 fi
43485 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43486 fi
43487
43488       rm -rf conftest.d1 conftest.d2
43489
43490 fi
43491 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
43492 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
43493   if test $vb_cv_func_rename_trailing_slash_bug = yes; then
43494     case $LIBOBJS in
43495     "rename.$ac_objext"   | \
43496   *" rename.$ac_objext"   | \
43497     "rename.$ac_objext "* | \
43498   *" rename.$ac_objext "* ) ;;
43499   *) LIBOBJS="$LIBOBJS rename.$ac_objext" ;;
43500 esac
43501
43502
43503 cat >>confdefs.h <<\_ACEOF
43504 #define rename rpl_rename
43505 _ACEOF
43506
43507
43508 cat >>confdefs.h <<\_ACEOF
43509 #define RENAME_TRAILING_SLASH_BUG 1
43510 _ACEOF
43511
43512     :
43513   fi
43514
43515
43516   # We don't yet use c-stack.c.
43517   # AC_REQUIRE([gl_C_STACK])
43518
43519
43520
43521
43522
43523
43524
43525
43526
43527
43528
43529
43530
43531
43532
43533
43534
43535
43536
43537
43538
43539
43540
43541
43542
43543
43544
43545
43546
43547
43548
43549
43550
43551
43552
43553
43554
43555
43556
43557
43558
43559
43560
43561
43562
43563
43564
43565
43566
43567
43568
43569
43570
43571
43572
43573
43574
43575
43576
43577
43578
43579
43580
43581
43582
43583
43584
43585
43586
43587
43588
43589
43590
43591
43592
43593
43594
43595
43596
43597
43598
43599
43600
43601
43602
43603
43604
43605
43606
43607
43608
43609
43610
43611
43612
43613
43614
43615
43616
43617
43618
43619
43620
43621
43622
43623
43624
43625
43626
43627
43628
43629
43630
43631
43632
43633
43634
43635
43636
43637
43638
43639
43640
43641
43642
43643
43644
43645
43646
43647
43648
43649
43650 ac_header_dirent=no
43651 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
43652   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
43653 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
43654 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
43655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43656   echo $ECHO_N "(cached) $ECHO_C" >&6
43657 else
43658   cat >conftest.$ac_ext <<_ACEOF
43659 /* confdefs.h.  */
43660 _ACEOF
43661 cat confdefs.h >>conftest.$ac_ext
43662 cat >>conftest.$ac_ext <<_ACEOF
43663 /* end confdefs.h.  */
43664 #include <sys/types.h>
43665 #include <$ac_hdr>
43666
43667 int
43668 main ()
43669 {
43670 if ((DIR *) 0)
43671 return 0;
43672   ;
43673   return 0;
43674 }
43675 _ACEOF
43676 rm -f conftest.$ac_objext
43677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43678   (eval $ac_compile) 2>conftest.er1
43679   ac_status=$?
43680   grep -v '^ *+' conftest.er1 >conftest.err
43681   rm -f conftest.er1
43682   cat conftest.err >&5
43683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43684   (exit $ac_status); } &&
43685          { ac_try='test -z "$ac_c_werror_flag"
43686                          || test ! -s conftest.err'
43687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43688   (eval $ac_try) 2>&5
43689   ac_status=$?
43690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43691   (exit $ac_status); }; } &&
43692          { ac_try='test -s conftest.$ac_objext'
43693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43694   (eval $ac_try) 2>&5
43695   ac_status=$?
43696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43697   (exit $ac_status); }; }; then
43698   eval "$as_ac_Header=yes"
43699 else
43700   echo "$as_me: failed program was:" >&5
43701 sed 's/^/| /' conftest.$ac_ext >&5
43702
43703 eval "$as_ac_Header=no"
43704 fi
43705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43706 fi
43707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43710   cat >>confdefs.h <<_ACEOF
43711 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
43712 _ACEOF
43713
43714 ac_header_dirent=$ac_hdr; break
43715 fi
43716
43717 done
43718 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
43719 if test $ac_header_dirent = dirent.h; then
43720   echo "$as_me:$LINENO: checking for library containing opendir" >&5
43721 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
43722 if test "${ac_cv_search_opendir+set}" = set; then
43723   echo $ECHO_N "(cached) $ECHO_C" >&6
43724 else
43725   ac_func_search_save_LIBS=$LIBS
43726 ac_cv_search_opendir=no
43727 cat >conftest.$ac_ext <<_ACEOF
43728 /* confdefs.h.  */
43729 _ACEOF
43730 cat confdefs.h >>conftest.$ac_ext
43731 cat >>conftest.$ac_ext <<_ACEOF
43732 /* end confdefs.h.  */
43733
43734 /* Override any gcc2 internal prototype to avoid an error.  */
43735 #ifdef __cplusplus
43736 extern "C"
43737 #endif
43738 /* We use char because int might match the return type of a gcc2
43739    builtin and then its argument prototype would still apply.  */
43740 char opendir ();
43741 int
43742 main ()
43743 {
43744 opendir ();
43745   ;
43746   return 0;
43747 }
43748 _ACEOF
43749 rm -f conftest.$ac_objext conftest$ac_exeext
43750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43751   (eval $ac_link) 2>conftest.er1
43752   ac_status=$?
43753   grep -v '^ *+' conftest.er1 >conftest.err
43754   rm -f conftest.er1
43755   cat conftest.err >&5
43756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43757   (exit $ac_status); } &&
43758          { ac_try='test -z "$ac_c_werror_flag"
43759                          || test ! -s conftest.err'
43760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43761   (eval $ac_try) 2>&5
43762   ac_status=$?
43763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43764   (exit $ac_status); }; } &&
43765          { ac_try='test -s conftest$ac_exeext'
43766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43767   (eval $ac_try) 2>&5
43768   ac_status=$?
43769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43770   (exit $ac_status); }; }; then
43771   ac_cv_search_opendir="none required"
43772 else
43773   echo "$as_me: failed program was:" >&5
43774 sed 's/^/| /' conftest.$ac_ext >&5
43775
43776 fi
43777 rm -f conftest.err conftest.$ac_objext \
43778       conftest$ac_exeext conftest.$ac_ext
43779 if test "$ac_cv_search_opendir" = no; then
43780   for ac_lib in dir; do
43781     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
43782     cat >conftest.$ac_ext <<_ACEOF
43783 /* confdefs.h.  */
43784 _ACEOF
43785 cat confdefs.h >>conftest.$ac_ext
43786 cat >>conftest.$ac_ext <<_ACEOF
43787 /* end confdefs.h.  */
43788
43789 /* Override any gcc2 internal prototype to avoid an error.  */
43790 #ifdef __cplusplus
43791 extern "C"
43792 #endif
43793 /* We use char because int might match the return type of a gcc2
43794    builtin and then its argument prototype would still apply.  */
43795 char opendir ();
43796 int
43797 main ()
43798 {
43799 opendir ();
43800   ;
43801   return 0;
43802 }
43803 _ACEOF
43804 rm -f conftest.$ac_objext conftest$ac_exeext
43805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43806   (eval $ac_link) 2>conftest.er1
43807   ac_status=$?
43808   grep -v '^ *+' conftest.er1 >conftest.err
43809   rm -f conftest.er1
43810   cat conftest.err >&5
43811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43812   (exit $ac_status); } &&
43813          { ac_try='test -z "$ac_c_werror_flag"
43814                          || test ! -s conftest.err'
43815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43816   (eval $ac_try) 2>&5
43817   ac_status=$?
43818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43819   (exit $ac_status); }; } &&
43820          { ac_try='test -s conftest$ac_exeext'
43821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43822   (eval $ac_try) 2>&5
43823   ac_status=$?
43824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43825   (exit $ac_status); }; }; then
43826   ac_cv_search_opendir="-l$ac_lib"
43827 break
43828 else
43829   echo "$as_me: failed program was:" >&5
43830 sed 's/^/| /' conftest.$ac_ext >&5
43831
43832 fi
43833 rm -f conftest.err conftest.$ac_objext \
43834       conftest$ac_exeext conftest.$ac_ext
43835   done
43836 fi
43837 LIBS=$ac_func_search_save_LIBS
43838 fi
43839 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
43840 echo "${ECHO_T}$ac_cv_search_opendir" >&6
43841 if test "$ac_cv_search_opendir" != no; then
43842   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
43843
43844 fi
43845
43846 else
43847   echo "$as_me:$LINENO: checking for library containing opendir" >&5
43848 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
43849 if test "${ac_cv_search_opendir+set}" = set; then
43850   echo $ECHO_N "(cached) $ECHO_C" >&6
43851 else
43852   ac_func_search_save_LIBS=$LIBS
43853 ac_cv_search_opendir=no
43854 cat >conftest.$ac_ext <<_ACEOF
43855 /* confdefs.h.  */
43856 _ACEOF
43857 cat confdefs.h >>conftest.$ac_ext
43858 cat >>conftest.$ac_ext <<_ACEOF
43859 /* end confdefs.h.  */
43860
43861 /* Override any gcc2 internal prototype to avoid an error.  */
43862 #ifdef __cplusplus
43863 extern "C"
43864 #endif
43865 /* We use char because int might match the return type of a gcc2
43866    builtin and then its argument prototype would still apply.  */
43867 char opendir ();
43868 int
43869 main ()
43870 {
43871 opendir ();
43872   ;
43873   return 0;
43874 }
43875 _ACEOF
43876 rm -f conftest.$ac_objext conftest$ac_exeext
43877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43878   (eval $ac_link) 2>conftest.er1
43879   ac_status=$?
43880   grep -v '^ *+' conftest.er1 >conftest.err
43881   rm -f conftest.er1
43882   cat conftest.err >&5
43883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43884   (exit $ac_status); } &&
43885          { ac_try='test -z "$ac_c_werror_flag"
43886                          || test ! -s conftest.err'
43887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43888   (eval $ac_try) 2>&5
43889   ac_status=$?
43890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43891   (exit $ac_status); }; } &&
43892          { ac_try='test -s conftest$ac_exeext'
43893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43894   (eval $ac_try) 2>&5
43895   ac_status=$?
43896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43897   (exit $ac_status); }; }; then
43898   ac_cv_search_opendir="none required"
43899 else
43900   echo "$as_me: failed program was:" >&5
43901 sed 's/^/| /' conftest.$ac_ext >&5
43902
43903 fi
43904 rm -f conftest.err conftest.$ac_objext \
43905       conftest$ac_exeext conftest.$ac_ext
43906 if test "$ac_cv_search_opendir" = no; then
43907   for ac_lib in x; do
43908     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
43909     cat >conftest.$ac_ext <<_ACEOF
43910 /* confdefs.h.  */
43911 _ACEOF
43912 cat confdefs.h >>conftest.$ac_ext
43913 cat >>conftest.$ac_ext <<_ACEOF
43914 /* end confdefs.h.  */
43915
43916 /* Override any gcc2 internal prototype to avoid an error.  */
43917 #ifdef __cplusplus
43918 extern "C"
43919 #endif
43920 /* We use char because int might match the return type of a gcc2
43921    builtin and then its argument prototype would still apply.  */
43922 char opendir ();
43923 int
43924 main ()
43925 {
43926 opendir ();
43927   ;
43928   return 0;
43929 }
43930 _ACEOF
43931 rm -f conftest.$ac_objext conftest$ac_exeext
43932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43933   (eval $ac_link) 2>conftest.er1
43934   ac_status=$?
43935   grep -v '^ *+' conftest.er1 >conftest.err
43936   rm -f conftest.er1
43937   cat conftest.err >&5
43938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43939   (exit $ac_status); } &&
43940          { ac_try='test -z "$ac_c_werror_flag"
43941                          || test ! -s conftest.err'
43942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43943   (eval $ac_try) 2>&5
43944   ac_status=$?
43945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43946   (exit $ac_status); }; } &&
43947          { ac_try='test -s conftest$ac_exeext'
43948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43949   (eval $ac_try) 2>&5
43950   ac_status=$?
43951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43952   (exit $ac_status); }; }; then
43953   ac_cv_search_opendir="-l$ac_lib"
43954 break
43955 else
43956   echo "$as_me: failed program was:" >&5
43957 sed 's/^/| /' conftest.$ac_ext >&5
43958
43959 fi
43960 rm -f conftest.err conftest.$ac_objext \
43961       conftest$ac_exeext conftest.$ac_ext
43962   done
43963 fi
43964 LIBS=$ac_func_search_save_LIBS
43965 fi
43966 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
43967 echo "${ECHO_T}$ac_cv_search_opendir" >&6
43968 if test "$ac_cv_search_opendir" != no; then
43969   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
43970
43971 fi
43972
43973 fi
43974
43975   dirfd_headers='
43976 #if HAVE_DIRENT_H
43977 # include <dirent.h>
43978 #else /* not HAVE_DIRENT_H */
43979 # define dirent direct
43980 # if HAVE_SYS_NDIR_H
43981 #  include <sys/ndir.h>
43982 # endif /* HAVE_SYS_NDIR_H */
43983 # if HAVE_SYS_DIR_H
43984 #  include <sys/dir.h>
43985 # endif /* HAVE_SYS_DIR_H */
43986 # if HAVE_NDIR_H
43987 #  include <ndir.h>
43988 # endif /* HAVE_NDIR_H */
43989 #endif /* HAVE_DIRENT_H */
43990 '
43991
43992 for ac_func in dirfd
43993 do
43994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43995 echo "$as_me:$LINENO: checking for $ac_func" >&5
43996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43997 if eval "test \"\${$as_ac_var+set}\" = set"; then
43998   echo $ECHO_N "(cached) $ECHO_C" >&6
43999 else
44000   cat >conftest.$ac_ext <<_ACEOF
44001 /* confdefs.h.  */
44002 _ACEOF
44003 cat confdefs.h >>conftest.$ac_ext
44004 cat >>conftest.$ac_ext <<_ACEOF
44005 /* end confdefs.h.  */
44006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44008 #define $ac_func innocuous_$ac_func
44009
44010 /* System header to define __stub macros and hopefully few prototypes,
44011     which can conflict with char $ac_func (); below.
44012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44013     <limits.h> exists even on freestanding compilers.  */
44014
44015 #ifdef __STDC__
44016 # include <limits.h>
44017 #else
44018 # include <assert.h>
44019 #endif
44020
44021 #undef $ac_func
44022
44023 /* Override any gcc2 internal prototype to avoid an error.  */
44024 #ifdef __cplusplus
44025 extern "C"
44026 {
44027 #endif
44028 /* We use char because int might match the return type of a gcc2
44029    builtin and then its argument prototype would still apply.  */
44030 char $ac_func ();
44031 /* The GNU C library defines this for functions which it implements
44032     to always fail with ENOSYS.  Some functions are actually named
44033     something starting with __ and the normal name is an alias.  */
44034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44035 choke me
44036 #else
44037 char (*f) () = $ac_func;
44038 #endif
44039 #ifdef __cplusplus
44040 }
44041 #endif
44042
44043 int
44044 main ()
44045 {
44046 return f != $ac_func;
44047   ;
44048   return 0;
44049 }
44050 _ACEOF
44051 rm -f conftest.$ac_objext conftest$ac_exeext
44052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44053   (eval $ac_link) 2>conftest.er1
44054   ac_status=$?
44055   grep -v '^ *+' conftest.er1 >conftest.err
44056   rm -f conftest.er1
44057   cat conftest.err >&5
44058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44059   (exit $ac_status); } &&
44060          { ac_try='test -z "$ac_c_werror_flag"
44061                          || test ! -s conftest.err'
44062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44063   (eval $ac_try) 2>&5
44064   ac_status=$?
44065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44066   (exit $ac_status); }; } &&
44067          { ac_try='test -s conftest$ac_exeext'
44068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44069   (eval $ac_try) 2>&5
44070   ac_status=$?
44071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44072   (exit $ac_status); }; }; then
44073   eval "$as_ac_var=yes"
44074 else
44075   echo "$as_me: failed program was:" >&5
44076 sed 's/^/| /' conftest.$ac_ext >&5
44077
44078 eval "$as_ac_var=no"
44079 fi
44080 rm -f conftest.err conftest.$ac_objext \
44081       conftest$ac_exeext conftest.$ac_ext
44082 fi
44083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44085 if test `eval echo '${'$as_ac_var'}'` = yes; then
44086   cat >>confdefs.h <<_ACEOF
44087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44088 _ACEOF
44089
44090 fi
44091 done
44092
44093   echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
44094 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
44095 if test "${ac_cv_have_decl_dirfd+set}" = set; then
44096   echo $ECHO_N "(cached) $ECHO_C" >&6
44097 else
44098   cat >conftest.$ac_ext <<_ACEOF
44099 /* confdefs.h.  */
44100 _ACEOF
44101 cat confdefs.h >>conftest.$ac_ext
44102 cat >>conftest.$ac_ext <<_ACEOF
44103 /* end confdefs.h.  */
44104 $dirfd_headers
44105
44106 int
44107 main ()
44108 {
44109 #ifndef dirfd
44110   char *p = (char *) dirfd;
44111 #endif
44112
44113   ;
44114   return 0;
44115 }
44116 _ACEOF
44117 rm -f conftest.$ac_objext
44118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44119   (eval $ac_compile) 2>conftest.er1
44120   ac_status=$?
44121   grep -v '^ *+' conftest.er1 >conftest.err
44122   rm -f conftest.er1
44123   cat conftest.err >&5
44124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44125   (exit $ac_status); } &&
44126          { ac_try='test -z "$ac_c_werror_flag"
44127                          || test ! -s conftest.err'
44128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44129   (eval $ac_try) 2>&5
44130   ac_status=$?
44131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44132   (exit $ac_status); }; } &&
44133          { ac_try='test -s conftest.$ac_objext'
44134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44135   (eval $ac_try) 2>&5
44136   ac_status=$?
44137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44138   (exit $ac_status); }; }; then
44139   ac_cv_have_decl_dirfd=yes
44140 else
44141   echo "$as_me: failed program was:" >&5
44142 sed 's/^/| /' conftest.$ac_ext >&5
44143
44144 ac_cv_have_decl_dirfd=no
44145 fi
44146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44147 fi
44148 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
44149 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
44150 if test $ac_cv_have_decl_dirfd = yes; then
44151
44152 cat >>confdefs.h <<_ACEOF
44153 #define HAVE_DECL_DIRFD 1
44154 _ACEOF
44155
44156
44157 else
44158   cat >>confdefs.h <<_ACEOF
44159 #define HAVE_DECL_DIRFD 0
44160 _ACEOF
44161
44162
44163 fi
44164
44165
44166
44167   echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
44168 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
44169 if test "${gl_cv_func_dirfd_macro+set}" = set; then
44170   echo $ECHO_N "(cached) $ECHO_C" >&6
44171 else
44172   cat >conftest.$ac_ext <<_ACEOF
44173 /* confdefs.h.  */
44174 _ACEOF
44175 cat confdefs.h >>conftest.$ac_ext
44176 cat >>conftest.$ac_ext <<_ACEOF
44177 /* end confdefs.h.  */
44178 $dirfd_headers
44179 #ifdef dirfd
44180  dirent_header_defines_dirfd
44181 #endif
44182 _ACEOF
44183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44184   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
44185   gl_cv_func_dirfd_macro=yes
44186 else
44187   gl_cv_func_dirfd_macro=no
44188 fi
44189 rm -f conftest*
44190
44191 fi
44192 echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
44193 echo "${ECHO_T}$gl_cv_func_dirfd_macro" >&6
44194
44195   # Use the replacement only if we have no function, macro,
44196   # or declaration with that name.
44197   if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
44198       = no,no,no; then
44199
44200 for ac_func in dirfd
44201 do
44202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44203 echo "$as_me:$LINENO: checking for $ac_func" >&5
44204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44205 if eval "test \"\${$as_ac_var+set}\" = set"; then
44206   echo $ECHO_N "(cached) $ECHO_C" >&6
44207 else
44208   cat >conftest.$ac_ext <<_ACEOF
44209 /* confdefs.h.  */
44210 _ACEOF
44211 cat confdefs.h >>conftest.$ac_ext
44212 cat >>conftest.$ac_ext <<_ACEOF
44213 /* end confdefs.h.  */
44214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44216 #define $ac_func innocuous_$ac_func
44217
44218 /* System header to define __stub macros and hopefully few prototypes,
44219     which can conflict with char $ac_func (); below.
44220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44221     <limits.h> exists even on freestanding compilers.  */
44222
44223 #ifdef __STDC__
44224 # include <limits.h>
44225 #else
44226 # include <assert.h>
44227 #endif
44228
44229 #undef $ac_func
44230
44231 /* Override any gcc2 internal prototype to avoid an error.  */
44232 #ifdef __cplusplus
44233 extern "C"
44234 {
44235 #endif
44236 /* We use char because int might match the return type of a gcc2
44237    builtin and then its argument prototype would still apply.  */
44238 char $ac_func ();
44239 /* The GNU C library defines this for functions which it implements
44240     to always fail with ENOSYS.  Some functions are actually named
44241     something starting with __ and the normal name is an alias.  */
44242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44243 choke me
44244 #else
44245 char (*f) () = $ac_func;
44246 #endif
44247 #ifdef __cplusplus
44248 }
44249 #endif
44250
44251 int
44252 main ()
44253 {
44254 return f != $ac_func;
44255   ;
44256   return 0;
44257 }
44258 _ACEOF
44259 rm -f conftest.$ac_objext conftest$ac_exeext
44260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44261   (eval $ac_link) 2>conftest.er1
44262   ac_status=$?
44263   grep -v '^ *+' conftest.er1 >conftest.err
44264   rm -f conftest.er1
44265   cat conftest.err >&5
44266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44267   (exit $ac_status); } &&
44268          { ac_try='test -z "$ac_c_werror_flag"
44269                          || test ! -s conftest.err'
44270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44271   (eval $ac_try) 2>&5
44272   ac_status=$?
44273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44274   (exit $ac_status); }; } &&
44275          { ac_try='test -s conftest$ac_exeext'
44276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44277   (eval $ac_try) 2>&5
44278   ac_status=$?
44279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44280   (exit $ac_status); }; }; then
44281   eval "$as_ac_var=yes"
44282 else
44283   echo "$as_me: failed program was:" >&5
44284 sed 's/^/| /' conftest.$ac_ext >&5
44285
44286 eval "$as_ac_var=no"
44287 fi
44288 rm -f conftest.err conftest.$ac_objext \
44289       conftest$ac_exeext conftest.$ac_ext
44290 fi
44291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44293 if test `eval echo '${'$as_ac_var'}'` = yes; then
44294   cat >>confdefs.h <<_ACEOF
44295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44296 _ACEOF
44297
44298 else
44299   case $LIBOBJS in
44300     "$ac_func.$ac_objext"   | \
44301   *" $ac_func.$ac_objext"   | \
44302     "$ac_func.$ac_objext "* | \
44303   *" $ac_func.$ac_objext "* ) ;;
44304   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
44305 esac
44306
44307 fi
44308 done
44309
44310
44311     echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
44312 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
44313 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
44314   echo $ECHO_N "(cached) $ECHO_C" >&6
44315 else
44316
44317         dirfd_save_CFLAGS=$CFLAGS
44318         for ac_expr in d_fd dd_fd; do
44319
44320           CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
44321           cat >conftest.$ac_ext <<_ACEOF
44322 /* confdefs.h.  */
44323 _ACEOF
44324 cat confdefs.h >>conftest.$ac_ext
44325 cat >>conftest.$ac_ext <<_ACEOF
44326 /* end confdefs.h.  */
44327 $dirfd_headers
44328
44329 int
44330 main ()
44331 {
44332 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
44333   ;
44334   return 0;
44335 }
44336 _ACEOF
44337 rm -f conftest.$ac_objext
44338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44339   (eval $ac_compile) 2>conftest.er1
44340   ac_status=$?
44341   grep -v '^ *+' conftest.er1 >conftest.err
44342   rm -f conftest.er1
44343   cat conftest.err >&5
44344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44345   (exit $ac_status); } &&
44346          { ac_try='test -z "$ac_c_werror_flag"
44347                          || test ! -s conftest.err'
44348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44349   (eval $ac_try) 2>&5
44350   ac_status=$?
44351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44352   (exit $ac_status); }; } &&
44353          { ac_try='test -s conftest.$ac_objext'
44354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44355   (eval $ac_try) 2>&5
44356   ac_status=$?
44357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44358   (exit $ac_status); }; }; then
44359   dir_fd_found=yes
44360
44361 else
44362   echo "$as_me: failed program was:" >&5
44363 sed 's/^/| /' conftest.$ac_ext >&5
44364
44365 fi
44366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44367           CFLAGS=$dirfd_save_CFLAGS
44368           test "$dir_fd_found" = yes && break
44369         done
44370         test "$dir_fd_found" = yes || ac_expr=no_such_member
44371
44372         gl_cv_sys_dir_fd_member_name=$ac_expr
44373
44374
44375 fi
44376 echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
44377 echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6
44378     if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
44379
44380 cat >>confdefs.h <<_ACEOF
44381 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
44382 _ACEOF
44383
44384     fi
44385
44386
44387   fi
44388
44389
44390
44391 for ac_header in sys/acl.h
44392 do
44393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44395   echo "$as_me:$LINENO: checking for $ac_header" >&5
44396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44398   echo $ECHO_N "(cached) $ECHO_C" >&6
44399 fi
44400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44402 else
44403   # Is the header compilable?
44404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44406 cat >conftest.$ac_ext <<_ACEOF
44407 /* confdefs.h.  */
44408 _ACEOF
44409 cat confdefs.h >>conftest.$ac_ext
44410 cat >>conftest.$ac_ext <<_ACEOF
44411 /* end confdefs.h.  */
44412 $ac_includes_default
44413 #include <$ac_header>
44414 _ACEOF
44415 rm -f conftest.$ac_objext
44416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44417   (eval $ac_compile) 2>conftest.er1
44418   ac_status=$?
44419   grep -v '^ *+' conftest.er1 >conftest.err
44420   rm -f conftest.er1
44421   cat conftest.err >&5
44422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44423   (exit $ac_status); } &&
44424          { ac_try='test -z "$ac_c_werror_flag"
44425                          || test ! -s conftest.err'
44426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44427   (eval $ac_try) 2>&5
44428   ac_status=$?
44429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44430   (exit $ac_status); }; } &&
44431          { ac_try='test -s conftest.$ac_objext'
44432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44433   (eval $ac_try) 2>&5
44434   ac_status=$?
44435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44436   (exit $ac_status); }; }; then
44437   ac_header_compiler=yes
44438 else
44439   echo "$as_me: failed program was:" >&5
44440 sed 's/^/| /' conftest.$ac_ext >&5
44441
44442 ac_header_compiler=no
44443 fi
44444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44446 echo "${ECHO_T}$ac_header_compiler" >&6
44447
44448 # Is the header present?
44449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44451 cat >conftest.$ac_ext <<_ACEOF
44452 /* confdefs.h.  */
44453 _ACEOF
44454 cat confdefs.h >>conftest.$ac_ext
44455 cat >>conftest.$ac_ext <<_ACEOF
44456 /* end confdefs.h.  */
44457 #include <$ac_header>
44458 _ACEOF
44459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44460   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44461   ac_status=$?
44462   grep -v '^ *+' conftest.er1 >conftest.err
44463   rm -f conftest.er1
44464   cat conftest.err >&5
44465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44466   (exit $ac_status); } >/dev/null; then
44467   if test -s conftest.err; then
44468     ac_cpp_err=$ac_c_preproc_warn_flag
44469     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44470   else
44471     ac_cpp_err=
44472   fi
44473 else
44474   ac_cpp_err=yes
44475 fi
44476 if test -z "$ac_cpp_err"; then
44477   ac_header_preproc=yes
44478 else
44479   echo "$as_me: failed program was:" >&5
44480 sed 's/^/| /' conftest.$ac_ext >&5
44481
44482   ac_header_preproc=no
44483 fi
44484 rm -f conftest.err conftest.$ac_ext
44485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44486 echo "${ECHO_T}$ac_header_preproc" >&6
44487
44488 # So?  What about this header?
44489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44490   yes:no: )
44491     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44495     ac_header_preproc=yes
44496     ;;
44497   no:yes:* )
44498     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44500     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44501 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44502     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44504     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44505 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44508     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44510     (
44511       cat <<\_ASBOX
44512 ## ------------------------------------ ##
44513 ## Report this to bug-coreutils@gnu.org ##
44514 ## ------------------------------------ ##
44515 _ASBOX
44516     ) |
44517       sed "s/^/$as_me: WARNING:     /" >&2
44518     ;;
44519 esac
44520 echo "$as_me:$LINENO: checking for $ac_header" >&5
44521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44523   echo $ECHO_N "(cached) $ECHO_C" >&6
44524 else
44525   eval "$as_ac_Header=\$ac_header_preproc"
44526 fi
44527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44529
44530 fi
44531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44532   cat >>confdefs.h <<_ACEOF
44533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44534 _ACEOF
44535
44536 fi
44537
44538 done
44539
44540
44541 for ac_func in acl
44542 do
44543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44544 echo "$as_me:$LINENO: checking for $ac_func" >&5
44545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44546 if eval "test \"\${$as_ac_var+set}\" = set"; then
44547   echo $ECHO_N "(cached) $ECHO_C" >&6
44548 else
44549   cat >conftest.$ac_ext <<_ACEOF
44550 /* confdefs.h.  */
44551 _ACEOF
44552 cat confdefs.h >>conftest.$ac_ext
44553 cat >>conftest.$ac_ext <<_ACEOF
44554 /* end confdefs.h.  */
44555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44557 #define $ac_func innocuous_$ac_func
44558
44559 /* System header to define __stub macros and hopefully few prototypes,
44560     which can conflict with char $ac_func (); below.
44561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44562     <limits.h> exists even on freestanding compilers.  */
44563
44564 #ifdef __STDC__
44565 # include <limits.h>
44566 #else
44567 # include <assert.h>
44568 #endif
44569
44570 #undef $ac_func
44571
44572 /* Override any gcc2 internal prototype to avoid an error.  */
44573 #ifdef __cplusplus
44574 extern "C"
44575 {
44576 #endif
44577 /* We use char because int might match the return type of a gcc2
44578    builtin and then its argument prototype would still apply.  */
44579 char $ac_func ();
44580 /* The GNU C library defines this for functions which it implements
44581     to always fail with ENOSYS.  Some functions are actually named
44582     something starting with __ and the normal name is an alias.  */
44583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44584 choke me
44585 #else
44586 char (*f) () = $ac_func;
44587 #endif
44588 #ifdef __cplusplus
44589 }
44590 #endif
44591
44592 int
44593 main ()
44594 {
44595 return f != $ac_func;
44596   ;
44597   return 0;
44598 }
44599 _ACEOF
44600 rm -f conftest.$ac_objext conftest$ac_exeext
44601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44602   (eval $ac_link) 2>conftest.er1
44603   ac_status=$?
44604   grep -v '^ *+' conftest.er1 >conftest.err
44605   rm -f conftest.er1
44606   cat conftest.err >&5
44607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44608   (exit $ac_status); } &&
44609          { ac_try='test -z "$ac_c_werror_flag"
44610                          || test ! -s conftest.err'
44611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44612   (eval $ac_try) 2>&5
44613   ac_status=$?
44614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44615   (exit $ac_status); }; } &&
44616          { ac_try='test -s conftest$ac_exeext'
44617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44618   (eval $ac_try) 2>&5
44619   ac_status=$?
44620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44621   (exit $ac_status); }; }; then
44622   eval "$as_ac_var=yes"
44623 else
44624   echo "$as_me: failed program was:" >&5
44625 sed 's/^/| /' conftest.$ac_ext >&5
44626
44627 eval "$as_ac_var=no"
44628 fi
44629 rm -f conftest.err conftest.$ac_objext \
44630       conftest$ac_exeext conftest.$ac_ext
44631 fi
44632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44634 if test `eval echo '${'$as_ac_var'}'` = yes; then
44635   cat >>confdefs.h <<_ACEOF
44636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44637 _ACEOF
44638
44639 fi
44640 done
44641
44642
44643
44644
44645
44646
44647 for ac_func in lchown
44648 do
44649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44650 echo "$as_me:$LINENO: checking for $ac_func" >&5
44651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44652 if eval "test \"\${$as_ac_var+set}\" = set"; then
44653   echo $ECHO_N "(cached) $ECHO_C" >&6
44654 else
44655   cat >conftest.$ac_ext <<_ACEOF
44656 /* confdefs.h.  */
44657 _ACEOF
44658 cat confdefs.h >>conftest.$ac_ext
44659 cat >>conftest.$ac_ext <<_ACEOF
44660 /* end confdefs.h.  */
44661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44663 #define $ac_func innocuous_$ac_func
44664
44665 /* System header to define __stub macros and hopefully few prototypes,
44666     which can conflict with char $ac_func (); below.
44667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44668     <limits.h> exists even on freestanding compilers.  */
44669
44670 #ifdef __STDC__
44671 # include <limits.h>
44672 #else
44673 # include <assert.h>
44674 #endif
44675
44676 #undef $ac_func
44677
44678 /* Override any gcc2 internal prototype to avoid an error.  */
44679 #ifdef __cplusplus
44680 extern "C"
44681 {
44682 #endif
44683 /* We use char because int might match the return type of a gcc2
44684    builtin and then its argument prototype would still apply.  */
44685 char $ac_func ();
44686 /* The GNU C library defines this for functions which it implements
44687     to always fail with ENOSYS.  Some functions are actually named
44688     something starting with __ and the normal name is an alias.  */
44689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44690 choke me
44691 #else
44692 char (*f) () = $ac_func;
44693 #endif
44694 #ifdef __cplusplus
44695 }
44696 #endif
44697
44698 int
44699 main ()
44700 {
44701 return f != $ac_func;
44702   ;
44703   return 0;
44704 }
44705 _ACEOF
44706 rm -f conftest.$ac_objext conftest$ac_exeext
44707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44708   (eval $ac_link) 2>conftest.er1
44709   ac_status=$?
44710   grep -v '^ *+' conftest.er1 >conftest.err
44711   rm -f conftest.er1
44712   cat conftest.err >&5
44713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44714   (exit $ac_status); } &&
44715          { ac_try='test -z "$ac_c_werror_flag"
44716                          || test ! -s conftest.err'
44717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44718   (eval $ac_try) 2>&5
44719   ac_status=$?
44720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44721   (exit $ac_status); }; } &&
44722          { ac_try='test -s conftest$ac_exeext'
44723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44724   (eval $ac_try) 2>&5
44725   ac_status=$?
44726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44727   (exit $ac_status); }; }; then
44728   eval "$as_ac_var=yes"
44729 else
44730   echo "$as_me: failed program was:" >&5
44731 sed 's/^/| /' conftest.$ac_ext >&5
44732
44733 eval "$as_ac_var=no"
44734 fi
44735 rm -f conftest.err conftest.$ac_objext \
44736       conftest$ac_exeext conftest.$ac_ext
44737 fi
44738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44740 if test `eval echo '${'$as_ac_var'}'` = yes; then
44741   cat >>confdefs.h <<_ACEOF
44742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44743 _ACEOF
44744
44745 else
44746   case $LIBOBJS in
44747     "$ac_func.$ac_objext"   | \
44748   *" $ac_func.$ac_objext"   | \
44749     "$ac_func.$ac_objext "* | \
44750   *" $ac_func.$ac_objext "* ) ;;
44751   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
44752 esac
44753
44754 fi
44755 done
44756
44757
44758   if test $ac_cv_func_lchown = no; then
44759
44760
44761   :
44762
44763   fi
44764
44765   echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
44766 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
44767 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
44768   echo $ECHO_N "(cached) $ECHO_C" >&6
44769 else
44770
44771       # Arrange for deletion of the temporary directory this test creates.
44772       ac_clean_files="$ac_clean_files confdir2"
44773       mkdir confdir2; : > confdir2/file
44774       if test "$cross_compiling" = yes; then
44775   fetish_cv_func_rmdir_errno_not_empty=ENOTEMPTY
44776
44777 else
44778   cat >conftest.$ac_ext <<_ACEOF
44779 /* confdefs.h.  */
44780 _ACEOF
44781 cat confdefs.h >>conftest.$ac_ext
44782 cat >>conftest.$ac_ext <<_ACEOF
44783 /* end confdefs.h.  */
44784
44785 #include <stdio.h>
44786 #include <errno.h>
44787 #ifndef errno
44788 extern int errno;
44789 #endif
44790         int main ()
44791         {
44792           FILE *s;
44793           int val;
44794           rmdir ("confdir2");
44795           val = errno;
44796           s = fopen ("confdir2/errno", "w");
44797           fprintf (s, "%d\n", val);
44798           exit (0);
44799         }
44800
44801 _ACEOF
44802 rm -f conftest$ac_exeext
44803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44804   (eval $ac_link) 2>&5
44805   ac_status=$?
44806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44809   (eval $ac_try) 2>&5
44810   ac_status=$?
44811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44812   (exit $ac_status); }; }; then
44813   fetish_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
44814 else
44815   echo "$as_me: program exited with status $ac_status" >&5
44816 echo "$as_me: failed program was:" >&5
44817 sed 's/^/| /' conftest.$ac_ext >&5
44818
44819 ( exit $ac_status )
44820 fetish_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
44821 fi
44822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44823 fi
44824
44825
44826 fi
44827 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
44828 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
44829
44830
44831 cat >>confdefs.h <<_ACEOF
44832 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
44833 _ACEOF
44834
44835
44836
44837 for ac_header in unistd.h
44838 do
44839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44841   echo "$as_me:$LINENO: checking for $ac_header" >&5
44842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44844   echo $ECHO_N "(cached) $ECHO_C" >&6
44845 fi
44846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44848 else
44849   # Is the header compilable?
44850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44852 cat >conftest.$ac_ext <<_ACEOF
44853 /* confdefs.h.  */
44854 _ACEOF
44855 cat confdefs.h >>conftest.$ac_ext
44856 cat >>conftest.$ac_ext <<_ACEOF
44857 /* end confdefs.h.  */
44858 $ac_includes_default
44859 #include <$ac_header>
44860 _ACEOF
44861 rm -f conftest.$ac_objext
44862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44863   (eval $ac_compile) 2>conftest.er1
44864   ac_status=$?
44865   grep -v '^ *+' conftest.er1 >conftest.err
44866   rm -f conftest.er1
44867   cat conftest.err >&5
44868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44869   (exit $ac_status); } &&
44870          { ac_try='test -z "$ac_c_werror_flag"
44871                          || test ! -s conftest.err'
44872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44873   (eval $ac_try) 2>&5
44874   ac_status=$?
44875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44876   (exit $ac_status); }; } &&
44877          { ac_try='test -s conftest.$ac_objext'
44878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44879   (eval $ac_try) 2>&5
44880   ac_status=$?
44881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44882   (exit $ac_status); }; }; then
44883   ac_header_compiler=yes
44884 else
44885   echo "$as_me: failed program was:" >&5
44886 sed 's/^/| /' conftest.$ac_ext >&5
44887
44888 ac_header_compiler=no
44889 fi
44890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44892 echo "${ECHO_T}$ac_header_compiler" >&6
44893
44894 # Is the header present?
44895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44897 cat >conftest.$ac_ext <<_ACEOF
44898 /* confdefs.h.  */
44899 _ACEOF
44900 cat confdefs.h >>conftest.$ac_ext
44901 cat >>conftest.$ac_ext <<_ACEOF
44902 /* end confdefs.h.  */
44903 #include <$ac_header>
44904 _ACEOF
44905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44907   ac_status=$?
44908   grep -v '^ *+' conftest.er1 >conftest.err
44909   rm -f conftest.er1
44910   cat conftest.err >&5
44911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44912   (exit $ac_status); } >/dev/null; then
44913   if test -s conftest.err; then
44914     ac_cpp_err=$ac_c_preproc_warn_flag
44915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44916   else
44917     ac_cpp_err=
44918   fi
44919 else
44920   ac_cpp_err=yes
44921 fi
44922 if test -z "$ac_cpp_err"; then
44923   ac_header_preproc=yes
44924 else
44925   echo "$as_me: failed program was:" >&5
44926 sed 's/^/| /' conftest.$ac_ext >&5
44927
44928   ac_header_preproc=no
44929 fi
44930 rm -f conftest.err conftest.$ac_ext
44931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44932 echo "${ECHO_T}$ac_header_preproc" >&6
44933
44934 # So?  What about this header?
44935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44936   yes:no: )
44937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44941     ac_header_preproc=yes
44942     ;;
44943   no:yes:* )
44944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44956     (
44957       cat <<\_ASBOX
44958 ## ------------------------------------ ##
44959 ## Report this to bug-coreutils@gnu.org ##
44960 ## ------------------------------------ ##
44961 _ASBOX
44962     ) |
44963       sed "s/^/$as_me: WARNING:     /" >&2
44964     ;;
44965 esac
44966 echo "$as_me:$LINENO: checking for $ac_header" >&5
44967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44969   echo $ECHO_N "(cached) $ECHO_C" >&6
44970 else
44971   eval "$as_ac_Header=\$ac_header_preproc"
44972 fi
44973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44975
44976 fi
44977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44978   cat >>confdefs.h <<_ACEOF
44979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44980 _ACEOF
44981
44982 fi
44983
44984 done
44985
44986 echo "$as_me:$LINENO: checking for working chown" >&5
44987 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
44988 if test "${ac_cv_func_chown_works+set}" = set; then
44989   echo $ECHO_N "(cached) $ECHO_C" >&6
44990 else
44991   if test "$cross_compiling" = yes; then
44992   ac_cv_func_chown_works=no
44993 else
44994   cat >conftest.$ac_ext <<_ACEOF
44995 /* confdefs.h.  */
44996 _ACEOF
44997 cat confdefs.h >>conftest.$ac_ext
44998 cat >>conftest.$ac_ext <<_ACEOF
44999 /* end confdefs.h.  */
45000 $ac_includes_default
45001 #include <fcntl.h>
45002
45003 int
45004 main ()
45005 {
45006   char *f = "conftest.chown";
45007   struct stat before, after;
45008
45009   if (creat (f, 0600) < 0)
45010     exit (1);
45011   if (stat (f, &before) < 0)
45012     exit (1);
45013   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
45014     exit (1);
45015   if (stat (f, &after) < 0)
45016     exit (1);
45017   exit ((before.st_uid == after.st_uid
45018          && before.st_gid == after.st_gid) ? 0 : 1);
45019
45020   ;
45021   return 0;
45022 }
45023 _ACEOF
45024 rm -f conftest$ac_exeext
45025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45026   (eval $ac_link) 2>&5
45027   ac_status=$?
45028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45029   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45031   (eval $ac_try) 2>&5
45032   ac_status=$?
45033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45034   (exit $ac_status); }; }; then
45035   ac_cv_func_chown_works=yes
45036 else
45037   echo "$as_me: program exited with status $ac_status" >&5
45038 echo "$as_me: failed program was:" >&5
45039 sed 's/^/| /' conftest.$ac_ext >&5
45040
45041 ( exit $ac_status )
45042 ac_cv_func_chown_works=no
45043 fi
45044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45045 fi
45046 rm -f conftest.chown
45047
45048 fi
45049 echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
45050 echo "${ECHO_T}$ac_cv_func_chown_works" >&6
45051 if test $ac_cv_func_chown_works = yes; then
45052
45053 cat >>confdefs.h <<\_ACEOF
45054 #define HAVE_CHOWN 1
45055 _ACEOF
45056
45057 fi
45058
45059
45060   echo "$as_me:$LINENO: checking whether chown(2) dereferences symlinks" >&5
45061 echo $ECHO_N "checking whether chown(2) dereferences symlinks... $ECHO_C" >&6
45062 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
45063   echo $ECHO_N "(cached) $ECHO_C" >&6
45064 else
45065
45066       if test "$cross_compiling" = yes; then
45067   gl_cv_func_chown_follows_symlink=yes
45068
45069 else
45070   cat >conftest.$ac_ext <<_ACEOF
45071 /* confdefs.h.  */
45072 _ACEOF
45073 cat confdefs.h >>conftest.$ac_ext
45074 cat >>conftest.$ac_ext <<_ACEOF
45075 /* end confdefs.h.  */
45076
45077 #ifdef HAVE_UNISTD_H
45078 # include <unistd.h>
45079 #endif
45080 #include <stdlib.h>
45081 #include <errno.h>
45082
45083         int
45084         main ()
45085         {
45086           char const *dangling_symlink = "conftest.dangle";
45087
45088           unlink (dangling_symlink);
45089           if (symlink ("conftest.no-such", dangling_symlink))
45090             abort ();
45091
45092           /* Exit successfully on a conforming system,
45093              i.e., where chown must fail with ENOENT.  */
45094           exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
45095                     && errno == ENOENT));
45096         }
45097
45098 _ACEOF
45099 rm -f conftest$ac_exeext
45100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45101   (eval $ac_link) 2>&5
45102   ac_status=$?
45103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45104   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45106   (eval $ac_try) 2>&5
45107   ac_status=$?
45108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45109   (exit $ac_status); }; }; then
45110   gl_cv_func_chown_follows_symlink=yes
45111 else
45112   echo "$as_me: program exited with status $ac_status" >&5
45113 echo "$as_me: failed program was:" >&5
45114 sed 's/^/| /' conftest.$ac_ext >&5
45115
45116 ( exit $ac_status )
45117 gl_cv_func_chown_follows_symlink=no
45118 fi
45119 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45120 fi
45121
45122
45123 fi
45124 echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
45125 echo "${ECHO_T}$gl_cv_func_chown_follows_symlink" >&6
45126
45127   if test $gl_cv_func_chown_follows_symlink = no; then
45128
45129 cat >>confdefs.h <<\_ACEOF
45130 #define CHOWN_MODIFIES_SYMLINK 1
45131 _ACEOF
45132
45133   fi
45134
45135
45136
45137
45138
45139
45140   if test $ac_cv_func_chown_works = yes; then
45141
45142 cat >>confdefs.h <<\_ACEOF
45143 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
45144 _ACEOF
45145
45146   fi
45147
45148   # If chown has either of the above problems, then we need the wrapper.
45149   if test $ac_cv_func_chown_works$gl_cv_func_chown_follows_symlink = yesyes; then
45150     : # no wrapper needed
45151   else
45152     case $LIBOBJS in
45153     "chown.$ac_objext"   | \
45154   *" chown.$ac_objext"   | \
45155     "chown.$ac_objext "* | \
45156   *" chown.$ac_objext "* ) ;;
45157   *) LIBOBJS="$LIBOBJS chown.$ac_objext" ;;
45158 esac
45159
45160
45161 cat >>confdefs.h <<\_ACEOF
45162 #define chown rpl_chown
45163 _ACEOF
45164
45165
45166
45167   :
45168
45169
45170
45171
45172
45173
45174
45175
45176   echo "$as_me:$LINENO: checking for fchown" >&5
45177 echo $ECHO_N "checking for fchown... $ECHO_C" >&6
45178 if test "${ac_cv_func_fchown+set}" = set; then
45179   echo $ECHO_N "(cached) $ECHO_C" >&6
45180 else
45181   cat >conftest.$ac_ext <<_ACEOF
45182 /* confdefs.h.  */
45183 _ACEOF
45184 cat confdefs.h >>conftest.$ac_ext
45185 cat >>conftest.$ac_ext <<_ACEOF
45186 /* end confdefs.h.  */
45187 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
45188    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45189 #define fchown innocuous_fchown
45190
45191 /* System header to define __stub macros and hopefully few prototypes,
45192     which can conflict with char fchown (); below.
45193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45194     <limits.h> exists even on freestanding compilers.  */
45195
45196 #ifdef __STDC__
45197 # include <limits.h>
45198 #else
45199 # include <assert.h>
45200 #endif
45201
45202 #undef fchown
45203
45204 /* Override any gcc2 internal prototype to avoid an error.  */
45205 #ifdef __cplusplus
45206 extern "C"
45207 {
45208 #endif
45209 /* We use char because int might match the return type of a gcc2
45210    builtin and then its argument prototype would still apply.  */
45211 char fchown ();
45212 /* The GNU C library defines this for functions which it implements
45213     to always fail with ENOSYS.  Some functions are actually named
45214     something starting with __ and the normal name is an alias.  */
45215 #if defined (__stub_fchown) || defined (__stub___fchown)
45216 choke me
45217 #else
45218 char (*f) () = fchown;
45219 #endif
45220 #ifdef __cplusplus
45221 }
45222 #endif
45223
45224 int
45225 main ()
45226 {
45227 return f != fchown;
45228   ;
45229   return 0;
45230 }
45231 _ACEOF
45232 rm -f conftest.$ac_objext conftest$ac_exeext
45233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45234   (eval $ac_link) 2>conftest.er1
45235   ac_status=$?
45236   grep -v '^ *+' conftest.er1 >conftest.err
45237   rm -f conftest.er1
45238   cat conftest.err >&5
45239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45240   (exit $ac_status); } &&
45241          { ac_try='test -z "$ac_c_werror_flag"
45242                          || test ! -s conftest.err'
45243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45244   (eval $ac_try) 2>&5
45245   ac_status=$?
45246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45247   (exit $ac_status); }; } &&
45248          { ac_try='test -s conftest$ac_exeext'
45249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45250   (eval $ac_try) 2>&5
45251   ac_status=$?
45252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45253   (exit $ac_status); }; }; then
45254   ac_cv_func_fchown=yes
45255 else
45256   echo "$as_me: failed program was:" >&5
45257 sed 's/^/| /' conftest.$ac_ext >&5
45258
45259 ac_cv_func_fchown=no
45260 fi
45261 rm -f conftest.err conftest.$ac_objext \
45262       conftest$ac_exeext conftest.$ac_ext
45263 fi
45264 echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
45265 echo "${ECHO_T}$ac_cv_func_fchown" >&6
45266 if test $ac_cv_func_fchown = yes; then
45267   :
45268 else
45269   case $LIBOBJS in
45270     "fchown-stub.$ac_objext"   | \
45271   *" fchown-stub.$ac_objext"   | \
45272     "fchown-stub.$ac_objext "* | \
45273   *" fchown-stub.$ac_objext "* ) ;;
45274   *) LIBOBJS="$LIBOBJS fchown-stub.$ac_objext" ;;
45275 esac
45276
45277 fi
45278
45279
45280   fi
45281
45282
45283
45284
45285       echo "$as_me:$LINENO: checking for group_member" >&5
45286 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
45287 if test "${ac_cv_func_group_member+set}" = set; then
45288   echo $ECHO_N "(cached) $ECHO_C" >&6
45289 else
45290   cat >conftest.$ac_ext <<_ACEOF
45291 /* confdefs.h.  */
45292 _ACEOF
45293 cat confdefs.h >>conftest.$ac_ext
45294 cat >>conftest.$ac_ext <<_ACEOF
45295 /* end confdefs.h.  */
45296 /* Define group_member to an innocuous variant, in case <limits.h> declares group_member.
45297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45298 #define group_member innocuous_group_member
45299
45300 /* System header to define __stub macros and hopefully few prototypes,
45301     which can conflict with char group_member (); below.
45302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45303     <limits.h> exists even on freestanding compilers.  */
45304
45305 #ifdef __STDC__
45306 # include <limits.h>
45307 #else
45308 # include <assert.h>
45309 #endif
45310
45311 #undef group_member
45312
45313 /* Override any gcc2 internal prototype to avoid an error.  */
45314 #ifdef __cplusplus
45315 extern "C"
45316 {
45317 #endif
45318 /* We use char because int might match the return type of a gcc2
45319    builtin and then its argument prototype would still apply.  */
45320 char group_member ();
45321 /* The GNU C library defines this for functions which it implements
45322     to always fail with ENOSYS.  Some functions are actually named
45323     something starting with __ and the normal name is an alias.  */
45324 #if defined (__stub_group_member) || defined (__stub___group_member)
45325 choke me
45326 #else
45327 char (*f) () = group_member;
45328 #endif
45329 #ifdef __cplusplus
45330 }
45331 #endif
45332
45333 int
45334 main ()
45335 {
45336 return f != group_member;
45337   ;
45338   return 0;
45339 }
45340 _ACEOF
45341 rm -f conftest.$ac_objext conftest$ac_exeext
45342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45343   (eval $ac_link) 2>conftest.er1
45344   ac_status=$?
45345   grep -v '^ *+' conftest.er1 >conftest.err
45346   rm -f conftest.er1
45347   cat conftest.err >&5
45348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45349   (exit $ac_status); } &&
45350          { ac_try='test -z "$ac_c_werror_flag"
45351                          || test ! -s conftest.err'
45352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45353   (eval $ac_try) 2>&5
45354   ac_status=$?
45355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45356   (exit $ac_status); }; } &&
45357          { ac_try='test -s conftest$ac_exeext'
45358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45359   (eval $ac_try) 2>&5
45360   ac_status=$?
45361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45362   (exit $ac_status); }; }; then
45363   ac_cv_func_group_member=yes
45364 else
45365   echo "$as_me: failed program was:" >&5
45366 sed 's/^/| /' conftest.$ac_ext >&5
45367
45368 ac_cv_func_group_member=no
45369 fi
45370 rm -f conftest.err conftest.$ac_objext \
45371       conftest$ac_exeext conftest.$ac_ext
45372 fi
45373 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
45374 echo "${ECHO_T}$ac_cv_func_group_member" >&6
45375 if test $ac_cv_func_group_member = yes; then
45376   :
45377 else
45378
45379     case $LIBOBJS in
45380     "group-member.$ac_objext"   | \
45381   *" group-member.$ac_objext"   | \
45382     "group-member.$ac_objext "* | \
45383   *" group-member.$ac_objext "* ) ;;
45384   *) LIBOBJS="$LIBOBJS group-member.$ac_objext" ;;
45385 esac
45386
45387
45388
45389   :
45390
45391
45392
45393
45394
45395
45396
45397
45398 fi
45399
45400
45401   echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
45402 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
45403 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
45404   echo $ECHO_N "(cached) $ECHO_C" >&6
45405 else
45406
45407             test -z "$ac_cv_header_unistd_h" \
45408       &&
45409 for ac_header in unistd.h
45410 do
45411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45413   echo "$as_me:$LINENO: checking for $ac_header" >&5
45414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45416   echo $ECHO_N "(cached) $ECHO_C" >&6
45417 fi
45418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45420 else
45421   # Is the header compilable?
45422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45424 cat >conftest.$ac_ext <<_ACEOF
45425 /* confdefs.h.  */
45426 _ACEOF
45427 cat confdefs.h >>conftest.$ac_ext
45428 cat >>conftest.$ac_ext <<_ACEOF
45429 /* end confdefs.h.  */
45430 $ac_includes_default
45431 #include <$ac_header>
45432 _ACEOF
45433 rm -f conftest.$ac_objext
45434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45435   (eval $ac_compile) 2>conftest.er1
45436   ac_status=$?
45437   grep -v '^ *+' conftest.er1 >conftest.err
45438   rm -f conftest.er1
45439   cat conftest.err >&5
45440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45441   (exit $ac_status); } &&
45442          { ac_try='test -z "$ac_c_werror_flag"
45443                          || test ! -s conftest.err'
45444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45445   (eval $ac_try) 2>&5
45446   ac_status=$?
45447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45448   (exit $ac_status); }; } &&
45449          { ac_try='test -s conftest.$ac_objext'
45450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45451   (eval $ac_try) 2>&5
45452   ac_status=$?
45453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45454   (exit $ac_status); }; }; then
45455   ac_header_compiler=yes
45456 else
45457   echo "$as_me: failed program was:" >&5
45458 sed 's/^/| /' conftest.$ac_ext >&5
45459
45460 ac_header_compiler=no
45461 fi
45462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45464 echo "${ECHO_T}$ac_header_compiler" >&6
45465
45466 # Is the header present?
45467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45469 cat >conftest.$ac_ext <<_ACEOF
45470 /* confdefs.h.  */
45471 _ACEOF
45472 cat confdefs.h >>conftest.$ac_ext
45473 cat >>conftest.$ac_ext <<_ACEOF
45474 /* end confdefs.h.  */
45475 #include <$ac_header>
45476 _ACEOF
45477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45478   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45479   ac_status=$?
45480   grep -v '^ *+' conftest.er1 >conftest.err
45481   rm -f conftest.er1
45482   cat conftest.err >&5
45483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45484   (exit $ac_status); } >/dev/null; then
45485   if test -s conftest.err; then
45486     ac_cpp_err=$ac_c_preproc_warn_flag
45487     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45488   else
45489     ac_cpp_err=
45490   fi
45491 else
45492   ac_cpp_err=yes
45493 fi
45494 if test -z "$ac_cpp_err"; then
45495   ac_header_preproc=yes
45496 else
45497   echo "$as_me: failed program was:" >&5
45498 sed 's/^/| /' conftest.$ac_ext >&5
45499
45500   ac_header_preproc=no
45501 fi
45502 rm -f conftest.err conftest.$ac_ext
45503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45504 echo "${ECHO_T}$ac_header_preproc" >&6
45505
45506 # So?  What about this header?
45507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45508   yes:no: )
45509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45513     ac_header_preproc=yes
45514     ;;
45515   no:yes:* )
45516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45518     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45519 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45520     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45522     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45523 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45526     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45528     (
45529       cat <<\_ASBOX
45530 ## ------------------------------------ ##
45531 ## Report this to bug-coreutils@gnu.org ##
45532 ## ------------------------------------ ##
45533 _ASBOX
45534     ) |
45535       sed "s/^/$as_me: WARNING:     /" >&2
45536     ;;
45537 esac
45538 echo "$as_me:$LINENO: checking for $ac_header" >&5
45539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45541   echo $ECHO_N "(cached) $ECHO_C" >&6
45542 else
45543   eval "$as_ac_Header=\$ac_header_preproc"
45544 fi
45545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45547
45548 fi
45549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45550   cat >>confdefs.h <<_ACEOF
45551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45552 _ACEOF
45553
45554 fi
45555
45556 done
45557
45558
45559     # Create a regular file.
45560     echo > conftest.file
45561     if test "$cross_compiling" = yes; then
45562   jm_ac_cv_func_link_follows_symlink=yes
45563 else
45564   cat >conftest.$ac_ext <<_ACEOF
45565 /* confdefs.h.  */
45566 _ACEOF
45567 cat confdefs.h >>conftest.$ac_ext
45568 cat >>conftest.$ac_ext <<_ACEOF
45569 /* end confdefs.h.  */
45570
45571 #       include <sys/types.h>
45572 #       include <sys/stat.h>
45573 #       ifdef HAVE_UNISTD_H
45574 #        include <unistd.h>
45575 #       endif
45576
45577 #       define SAME_INODE(Stat_buf_1, Stat_buf_2) \
45578           ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
45579            && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
45580
45581         int
45582         main ()
45583         {
45584           const char *file = "conftest.file";
45585           const char *sym = "conftest.sym";
45586           const char *hard = "conftest.hard";
45587           struct stat sb_file, sb_hard;
45588
45589           /* Create a symlink to the regular file. */
45590           if (symlink (file, sym))
45591             abort ();
45592
45593           /* Create a hard link to that symlink.  */
45594           if (link (sym, hard))
45595             abort ();
45596
45597           if (lstat (hard, &sb_hard))
45598             abort ();
45599           if (lstat (file, &sb_file))
45600             abort ();
45601
45602           /* If the dev/inode of hard and file are the same, then
45603              the link call followed the symlink.  */
45604           return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
45605         }
45606
45607 _ACEOF
45608 rm -f conftest$ac_exeext
45609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45610   (eval $ac_link) 2>&5
45611   ac_status=$?
45612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45615   (eval $ac_try) 2>&5
45616   ac_status=$?
45617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45618   (exit $ac_status); }; }; then
45619   jm_ac_cv_func_link_follows_symlink=yes
45620 else
45621   echo "$as_me: program exited with status $ac_status" >&5
45622 echo "$as_me: failed program was:" >&5
45623 sed 's/^/| /' conftest.$ac_ext >&5
45624
45625 ( exit $ac_status )
45626 jm_ac_cv_func_link_follows_symlink=no
45627 fi
45628 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45629 fi
45630
45631 fi
45632 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
45633 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
45634   if test $jm_ac_cv_func_link_follows_symlink = yes; then
45635
45636 cat >>confdefs.h <<\_ACEOF
45637 #define LINK_FOLLOWS_SYMLINKS 1
45638 _ACEOF
45639
45640   fi
45641
45642
45643
45644 for ac_header in stdio_ext.h
45645 do
45646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45648   echo "$as_me:$LINENO: checking for $ac_header" >&5
45649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45651   echo $ECHO_N "(cached) $ECHO_C" >&6
45652 fi
45653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45655 else
45656   # Is the header compilable?
45657 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45659 cat >conftest.$ac_ext <<_ACEOF
45660 /* confdefs.h.  */
45661 _ACEOF
45662 cat confdefs.h >>conftest.$ac_ext
45663 cat >>conftest.$ac_ext <<_ACEOF
45664 /* end confdefs.h.  */
45665 $ac_includes_default
45666 #include <$ac_header>
45667 _ACEOF
45668 rm -f conftest.$ac_objext
45669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45670   (eval $ac_compile) 2>conftest.er1
45671   ac_status=$?
45672   grep -v '^ *+' conftest.er1 >conftest.err
45673   rm -f conftest.er1
45674   cat conftest.err >&5
45675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45676   (exit $ac_status); } &&
45677          { ac_try='test -z "$ac_c_werror_flag"
45678                          || test ! -s conftest.err'
45679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45680   (eval $ac_try) 2>&5
45681   ac_status=$?
45682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45683   (exit $ac_status); }; } &&
45684          { ac_try='test -s conftest.$ac_objext'
45685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45686   (eval $ac_try) 2>&5
45687   ac_status=$?
45688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45689   (exit $ac_status); }; }; then
45690   ac_header_compiler=yes
45691 else
45692   echo "$as_me: failed program was:" >&5
45693 sed 's/^/| /' conftest.$ac_ext >&5
45694
45695 ac_header_compiler=no
45696 fi
45697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45699 echo "${ECHO_T}$ac_header_compiler" >&6
45700
45701 # Is the header present?
45702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45704 cat >conftest.$ac_ext <<_ACEOF
45705 /* confdefs.h.  */
45706 _ACEOF
45707 cat confdefs.h >>conftest.$ac_ext
45708 cat >>conftest.$ac_ext <<_ACEOF
45709 /* end confdefs.h.  */
45710 #include <$ac_header>
45711 _ACEOF
45712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45713   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45714   ac_status=$?
45715   grep -v '^ *+' conftest.er1 >conftest.err
45716   rm -f conftest.er1
45717   cat conftest.err >&5
45718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45719   (exit $ac_status); } >/dev/null; then
45720   if test -s conftest.err; then
45721     ac_cpp_err=$ac_c_preproc_warn_flag
45722     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45723   else
45724     ac_cpp_err=
45725   fi
45726 else
45727   ac_cpp_err=yes
45728 fi
45729 if test -z "$ac_cpp_err"; then
45730   ac_header_preproc=yes
45731 else
45732   echo "$as_me: failed program was:" >&5
45733 sed 's/^/| /' conftest.$ac_ext >&5
45734
45735   ac_header_preproc=no
45736 fi
45737 rm -f conftest.err conftest.$ac_ext
45738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45739 echo "${ECHO_T}$ac_header_preproc" >&6
45740
45741 # So?  What about this header?
45742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45743   yes:no: )
45744     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45748     ac_header_preproc=yes
45749     ;;
45750   no:yes:* )
45751     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45753     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45754 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45755     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45757     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45758 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45759     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45761     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45763     (
45764       cat <<\_ASBOX
45765 ## ------------------------------------ ##
45766 ## Report this to bug-coreutils@gnu.org ##
45767 ## ------------------------------------ ##
45768 _ASBOX
45769     ) |
45770       sed "s/^/$as_me: WARNING:     /" >&2
45771     ;;
45772 esac
45773 echo "$as_me:$LINENO: checking for $ac_header" >&5
45774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45776   echo $ECHO_N "(cached) $ECHO_C" >&6
45777 else
45778   eval "$as_ac_Header=\$ac_header_preproc"
45779 fi
45780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45782
45783 fi
45784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45785   cat >>confdefs.h <<_ACEOF
45786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45787 _ACEOF
45788
45789 fi
45790
45791 done
45792
45793
45794 for ac_func in __fpending
45795 do
45796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45797 echo "$as_me:$LINENO: checking for $ac_func" >&5
45798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45799 if eval "test \"\${$as_ac_var+set}\" = set"; then
45800   echo $ECHO_N "(cached) $ECHO_C" >&6
45801 else
45802   cat >conftest.$ac_ext <<_ACEOF
45803 /* confdefs.h.  */
45804 _ACEOF
45805 cat confdefs.h >>conftest.$ac_ext
45806 cat >>conftest.$ac_ext <<_ACEOF
45807 /* end confdefs.h.  */
45808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45810 #define $ac_func innocuous_$ac_func
45811
45812 /* System header to define __stub macros and hopefully few prototypes,
45813     which can conflict with char $ac_func (); below.
45814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45815     <limits.h> exists even on freestanding compilers.  */
45816
45817 #ifdef __STDC__
45818 # include <limits.h>
45819 #else
45820 # include <assert.h>
45821 #endif
45822
45823 #undef $ac_func
45824
45825 /* Override any gcc2 internal prototype to avoid an error.  */
45826 #ifdef __cplusplus
45827 extern "C"
45828 {
45829 #endif
45830 /* We use char because int might match the return type of a gcc2
45831    builtin and then its argument prototype would still apply.  */
45832 char $ac_func ();
45833 /* The GNU C library defines this for functions which it implements
45834     to always fail with ENOSYS.  Some functions are actually named
45835     something starting with __ and the normal name is an alias.  */
45836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45837 choke me
45838 #else
45839 char (*f) () = $ac_func;
45840 #endif
45841 #ifdef __cplusplus
45842 }
45843 #endif
45844
45845 int
45846 main ()
45847 {
45848 return f != $ac_func;
45849   ;
45850   return 0;
45851 }
45852 _ACEOF
45853 rm -f conftest.$ac_objext conftest$ac_exeext
45854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45855   (eval $ac_link) 2>conftest.er1
45856   ac_status=$?
45857   grep -v '^ *+' conftest.er1 >conftest.err
45858   rm -f conftest.er1
45859   cat conftest.err >&5
45860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45861   (exit $ac_status); } &&
45862          { ac_try='test -z "$ac_c_werror_flag"
45863                          || test ! -s conftest.err'
45864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45865   (eval $ac_try) 2>&5
45866   ac_status=$?
45867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45868   (exit $ac_status); }; } &&
45869          { ac_try='test -s conftest$ac_exeext'
45870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45871   (eval $ac_try) 2>&5
45872   ac_status=$?
45873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45874   (exit $ac_status); }; }; then
45875   eval "$as_ac_var=yes"
45876 else
45877   echo "$as_me: failed program was:" >&5
45878 sed 's/^/| /' conftest.$ac_ext >&5
45879
45880 eval "$as_ac_var=no"
45881 fi
45882 rm -f conftest.err conftest.$ac_objext \
45883       conftest$ac_exeext conftest.$ac_ext
45884 fi
45885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45887 if test `eval echo '${'$as_ac_var'}'` = yes; then
45888   cat >>confdefs.h <<_ACEOF
45889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45890 _ACEOF
45891
45892 else
45893   case $LIBOBJS in
45894     "$ac_func.$ac_objext"   | \
45895   *" $ac_func.$ac_objext"   | \
45896     "$ac_func.$ac_objext "* | \
45897   *" $ac_func.$ac_objext "* ) ;;
45898   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
45899 esac
45900
45901 fi
45902 done
45903
45904
45905   fp_headers='
45906 #     if HAVE_STDIO_EXT_H
45907 #      include <stdio_ext.h>
45908 #     endif
45909 '
45910   echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
45911 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
45912 if test "${ac_cv_have_decl___fpending+set}" = set; then
45913   echo $ECHO_N "(cached) $ECHO_C" >&6
45914 else
45915   cat >conftest.$ac_ext <<_ACEOF
45916 /* confdefs.h.  */
45917 _ACEOF
45918 cat confdefs.h >>conftest.$ac_ext
45919 cat >>conftest.$ac_ext <<_ACEOF
45920 /* end confdefs.h.  */
45921 $fp_headers
45922
45923 int
45924 main ()
45925 {
45926 #ifndef __fpending
45927   char *p = (char *) __fpending;
45928 #endif
45929
45930   ;
45931   return 0;
45932 }
45933 _ACEOF
45934 rm -f conftest.$ac_objext
45935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45936   (eval $ac_compile) 2>conftest.er1
45937   ac_status=$?
45938   grep -v '^ *+' conftest.er1 >conftest.err
45939   rm -f conftest.er1
45940   cat conftest.err >&5
45941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45942   (exit $ac_status); } &&
45943          { ac_try='test -z "$ac_c_werror_flag"
45944                          || test ! -s conftest.err'
45945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45946   (eval $ac_try) 2>&5
45947   ac_status=$?
45948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45949   (exit $ac_status); }; } &&
45950          { ac_try='test -s conftest.$ac_objext'
45951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45952   (eval $ac_try) 2>&5
45953   ac_status=$?
45954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45955   (exit $ac_status); }; }; then
45956   ac_cv_have_decl___fpending=yes
45957 else
45958   echo "$as_me: failed program was:" >&5
45959 sed 's/^/| /' conftest.$ac_ext >&5
45960
45961 ac_cv_have_decl___fpending=no
45962 fi
45963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45964 fi
45965 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
45966 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
45967 if test $ac_cv_have_decl___fpending = yes; then
45968
45969 cat >>confdefs.h <<_ACEOF
45970 #define HAVE_DECL___FPENDING 1
45971 _ACEOF
45972
45973
45974 else
45975   cat >>confdefs.h <<_ACEOF
45976 #define HAVE_DECL___FPENDING 0
45977 _ACEOF
45978
45979
45980 fi
45981
45982
45983   if test $ac_cv_func___fpending = no; then
45984     echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
45985 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
45986 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
45987   echo $ECHO_N "(cached) $ECHO_C" >&6
45988 else
45989
45990         for ac_expr in                                          \
45991                                                                 \
45992             '# glibc2'                                          \
45993             'fp->_IO_write_ptr - fp->_IO_write_base'            \
45994                                                                 \
45995             '# traditional Unix'                                \
45996             'fp->_ptr - fp->_base'                              \
45997                                                                 \
45998             '# BSD'                                             \
45999             'fp->_p - fp->_bf._base'                            \
46000                                                                 \
46001             '# SCO, Unixware'                                   \
46002             'fp->__ptr - fp->__base'                            \
46003                                                                 \
46004             '# old glibc?'                                      \
46005             'fp->__bufp - fp->__buffer'                         \
46006                                                                 \
46007             '# old glibc iostream?'                             \
46008             'fp->_pptr - fp->_pbase'                            \
46009                                                                 \
46010             '# VMS'                                             \
46011             '(*fp)->_ptr - (*fp)->_base'                        \
46012                                                                 \
46013             '# e.g., DGUX R4.11; the info is not available'     \
46014             1                                                   \
46015             ; do
46016
46017           # Skip each embedded comment.
46018           case "$ac_expr" in '#'*) continue;; esac
46019
46020           cat >conftest.$ac_ext <<_ACEOF
46021 /* confdefs.h.  */
46022 _ACEOF
46023 cat confdefs.h >>conftest.$ac_ext
46024 cat >>conftest.$ac_ext <<_ACEOF
46025 /* end confdefs.h.  */
46026 #include <stdio.h>
46027
46028 int
46029 main ()
46030 {
46031 FILE *fp = stdin; (void) ($ac_expr);
46032   ;
46033   return 0;
46034 }
46035 _ACEOF
46036 rm -f conftest.$ac_objext
46037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46038   (eval $ac_compile) 2>conftest.er1
46039   ac_status=$?
46040   grep -v '^ *+' conftest.er1 >conftest.err
46041   rm -f conftest.er1
46042   cat conftest.err >&5
46043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46044   (exit $ac_status); } &&
46045          { ac_try='test -z "$ac_c_werror_flag"
46046                          || test ! -s conftest.err'
46047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46048   (eval $ac_try) 2>&5
46049   ac_status=$?
46050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46051   (exit $ac_status); }; } &&
46052          { ac_try='test -s conftest.$ac_objext'
46053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46054   (eval $ac_try) 2>&5
46055   ac_status=$?
46056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46057   (exit $ac_status); }; }; then
46058   fp_done=yes
46059
46060 else
46061   echo "$as_me: failed program was:" >&5
46062 sed 's/^/| /' conftest.$ac_ext >&5
46063
46064 fi
46065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46066           test "$fp_done" = yes && break
46067         done
46068
46069         ac_cv_sys_pending_output_n_bytes=$ac_expr
46070
46071
46072 fi
46073 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
46074 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
46075
46076 cat >>confdefs.h <<_ACEOF
46077 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
46078 _ACEOF
46079
46080   fi
46081
46082
46083   echo "$as_me:$LINENO: checking for inttypes.h" >&5
46084 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
46085 if test "${gt_cv_header_inttypes_h+set}" = set; then
46086   echo $ECHO_N "(cached) $ECHO_C" >&6
46087 else
46088
46089     cat >conftest.$ac_ext <<_ACEOF
46090 /* confdefs.h.  */
46091 _ACEOF
46092 cat confdefs.h >>conftest.$ac_ext
46093 cat >>conftest.$ac_ext <<_ACEOF
46094 /* end confdefs.h.  */
46095 #include <sys/types.h>
46096 #include <inttypes.h>
46097 int
46098 main ()
46099 {
46100
46101   ;
46102   return 0;
46103 }
46104 _ACEOF
46105 rm -f conftest.$ac_objext
46106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46107   (eval $ac_compile) 2>conftest.er1
46108   ac_status=$?
46109   grep -v '^ *+' conftest.er1 >conftest.err
46110   rm -f conftest.er1
46111   cat conftest.err >&5
46112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46113   (exit $ac_status); } &&
46114          { ac_try='test -z "$ac_c_werror_flag"
46115                          || test ! -s conftest.err'
46116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46117   (eval $ac_try) 2>&5
46118   ac_status=$?
46119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46120   (exit $ac_status); }; } &&
46121          { ac_try='test -s conftest.$ac_objext'
46122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46123   (eval $ac_try) 2>&5
46124   ac_status=$?
46125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46126   (exit $ac_status); }; }; then
46127   gt_cv_header_inttypes_h=yes
46128 else
46129   echo "$as_me: failed program was:" >&5
46130 sed 's/^/| /' conftest.$ac_ext >&5
46131
46132 gt_cv_header_inttypes_h=no
46133 fi
46134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46135
46136 fi
46137 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
46138 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
46139   if test $gt_cv_header_inttypes_h = yes; then
46140
46141 cat >>confdefs.h <<_ACEOF
46142 #define HAVE_INTTYPES_H 1
46143 _ACEOF
46144
46145   fi
46146
46147
46148
46149   if test $gt_cv_header_inttypes_h = yes; then
46150     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
46151 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
46152 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
46153   echo $ECHO_N "(cached) $ECHO_C" >&6
46154 else
46155
46156         cat >conftest.$ac_ext <<_ACEOF
46157 /* confdefs.h.  */
46158 _ACEOF
46159 cat confdefs.h >>conftest.$ac_ext
46160 cat >>conftest.$ac_ext <<_ACEOF
46161 /* end confdefs.h.  */
46162 #include <inttypes.h>
46163 #ifdef PRId32
46164 char *p = PRId32;
46165 #endif
46166
46167 int
46168 main ()
46169 {
46170
46171   ;
46172   return 0;
46173 }
46174 _ACEOF
46175 rm -f conftest.$ac_objext
46176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46177   (eval $ac_compile) 2>conftest.er1
46178   ac_status=$?
46179   grep -v '^ *+' conftest.er1 >conftest.err
46180   rm -f conftest.er1
46181   cat conftest.err >&5
46182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46183   (exit $ac_status); } &&
46184          { ac_try='test -z "$ac_c_werror_flag"
46185                          || test ! -s conftest.err'
46186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46187   (eval $ac_try) 2>&5
46188   ac_status=$?
46189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46190   (exit $ac_status); }; } &&
46191          { ac_try='test -s conftest.$ac_objext'
46192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46193   (eval $ac_try) 2>&5
46194   ac_status=$?
46195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46196   (exit $ac_status); }; }; then
46197   gt_cv_inttypes_pri_broken=no
46198 else
46199   echo "$as_me: failed program was:" >&5
46200 sed 's/^/| /' conftest.$ac_ext >&5
46201
46202 gt_cv_inttypes_pri_broken=yes
46203 fi
46204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46205
46206 fi
46207 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
46208 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
46209   fi
46210   if test "$gt_cv_inttypes_pri_broken" = yes; then
46211
46212 cat >>confdefs.h <<_ACEOF
46213 #define PRI_MACROS_BROKEN 1
46214 _ACEOF
46215
46216   fi
46217
46218
46219       echo "$as_me:$LINENO: checking for ULLONG_MAX" >&5
46220 echo $ECHO_N "checking for ULLONG_MAX... $ECHO_C" >&6
46221 if test "${gl_cv_ullong_max+set}" = set; then
46222   echo $ECHO_N "(cached) $ECHO_C" >&6
46223 else
46224   gl_cv_ullong_max=no
46225      cat >conftest.$ac_ext <<_ACEOF
46226 /* confdefs.h.  */
46227 _ACEOF
46228 cat confdefs.h >>conftest.$ac_ext
46229 cat >>conftest.$ac_ext <<_ACEOF
46230 /* end confdefs.h.  */
46231
46232         #include <limits.h>
46233         #ifdef ULLONG_MAX
46234          "ULLONG_MAX is defined"
46235         #endif
46236
46237 _ACEOF
46238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46239   $EGREP "ULLONG_MAX is defined" >/dev/null 2>&1; then
46240   gl_cv_ullong_max=yes
46241 fi
46242 rm -f conftest*
46243
46244      case $gl_cv_ullong_max in
46245      no)
46246        for gl_expr in \
46247          18446744073709551615ULL \
46248          4722366482869645213695ULL \
46249          340282366920938463463374607431768211455ULL
46250        do
46251          cat >conftest.$ac_ext <<_ACEOF
46252 /* confdefs.h.  */
46253 _ACEOF
46254 cat confdefs.h >>conftest.$ac_ext
46255 cat >>conftest.$ac_ext <<_ACEOF
46256 /* end confdefs.h.  */
46257
46258 int
46259 main ()
46260 {
46261 char test[$gl_expr == (unsigned long long int) -1 ? 1 : -1];
46262             static unsigned long long int i = $gl_expr;
46263             return i && test;
46264   ;
46265   return 0;
46266 }
46267 _ACEOF
46268 rm -f conftest.$ac_objext
46269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46270   (eval $ac_compile) 2>conftest.er1
46271   ac_status=$?
46272   grep -v '^ *+' conftest.er1 >conftest.err
46273   rm -f conftest.er1
46274   cat conftest.err >&5
46275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46276   (exit $ac_status); } &&
46277          { ac_try='test -z "$ac_c_werror_flag"
46278                          || test ! -s conftest.err'
46279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46280   (eval $ac_try) 2>&5
46281   ac_status=$?
46282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46283   (exit $ac_status); }; } &&
46284          { ac_try='test -s conftest.$ac_objext'
46285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46286   (eval $ac_try) 2>&5
46287   ac_status=$?
46288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46289   (exit $ac_status); }; }; then
46290   gl_cv_ullong_max=$gl_expr
46291 else
46292   echo "$as_me: failed program was:" >&5
46293 sed 's/^/| /' conftest.$ac_ext >&5
46294
46295 fi
46296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46297          test $gl_cv_ullong_max != no && break
46298        done
46299      esac
46300 fi
46301 echo "$as_me:$LINENO: result: $gl_cv_ullong_max" >&5
46302 echo "${ECHO_T}$gl_cv_ullong_max" >&6
46303   case $gl_cv_ullong_max in
46304   yes | no) ;;
46305   *)
46306
46307 cat >>confdefs.h <<_ACEOF
46308 #define ULLONG_MAX $gl_cv_ullong_max
46309 _ACEOF
46310 ;;
46311   esac
46312
46313
46314
46315   if test $ac_cv_func_getgroups_works = no; then
46316     case $LIBOBJS in
46317     "getgroups.$ac_objext"   | \
46318   *" getgroups.$ac_objext"   | \
46319     "getgroups.$ac_objext "* | \
46320   *" getgroups.$ac_objext "* ) ;;
46321   *) LIBOBJS="$LIBOBJS getgroups.$ac_objext" ;;
46322 esac
46323
46324
46325 cat >>confdefs.h <<\_ACEOF
46326 #define getgroups rpl_getgroups
46327 _ACEOF
46328
46329
46330
46331
46332   fi
46333   test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
46334
46335 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
46336 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
46337 if test "${ac_cv_sys_largefile_source+set}" = set; then
46338   echo $ECHO_N "(cached) $ECHO_C" >&6
46339 else
46340   while :; do
46341   ac_cv_sys_largefile_source=no
46342   cat >conftest.$ac_ext <<_ACEOF
46343 /* confdefs.h.  */
46344 _ACEOF
46345 cat confdefs.h >>conftest.$ac_ext
46346 cat >>conftest.$ac_ext <<_ACEOF
46347 /* end confdefs.h.  */
46348 #include <stdio.h>
46349 int
46350 main ()
46351 {
46352 return !fseeko;
46353   ;
46354   return 0;
46355 }
46356 _ACEOF
46357 rm -f conftest.$ac_objext
46358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46359   (eval $ac_compile) 2>conftest.er1
46360   ac_status=$?
46361   grep -v '^ *+' conftest.er1 >conftest.err
46362   rm -f conftest.er1
46363   cat conftest.err >&5
46364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46365   (exit $ac_status); } &&
46366          { ac_try='test -z "$ac_c_werror_flag"
46367                          || test ! -s conftest.err'
46368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46369   (eval $ac_try) 2>&5
46370   ac_status=$?
46371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46372   (exit $ac_status); }; } &&
46373          { ac_try='test -s conftest.$ac_objext'
46374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46375   (eval $ac_try) 2>&5
46376   ac_status=$?
46377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46378   (exit $ac_status); }; }; then
46379   break
46380 else
46381   echo "$as_me: failed program was:" >&5
46382 sed 's/^/| /' conftest.$ac_ext >&5
46383
46384 fi
46385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46386   cat >conftest.$ac_ext <<_ACEOF
46387 /* confdefs.h.  */
46388 _ACEOF
46389 cat confdefs.h >>conftest.$ac_ext
46390 cat >>conftest.$ac_ext <<_ACEOF
46391 /* end confdefs.h.  */
46392 #define _LARGEFILE_SOURCE 1
46393 #include <stdio.h>
46394 int
46395 main ()
46396 {
46397 return !fseeko;
46398   ;
46399   return 0;
46400 }
46401 _ACEOF
46402 rm -f conftest.$ac_objext
46403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46404   (eval $ac_compile) 2>conftest.er1
46405   ac_status=$?
46406   grep -v '^ *+' conftest.er1 >conftest.err
46407   rm -f conftest.er1
46408   cat conftest.err >&5
46409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46410   (exit $ac_status); } &&
46411          { ac_try='test -z "$ac_c_werror_flag"
46412                          || test ! -s conftest.err'
46413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46414   (eval $ac_try) 2>&5
46415   ac_status=$?
46416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46417   (exit $ac_status); }; } &&
46418          { ac_try='test -s conftest.$ac_objext'
46419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46420   (eval $ac_try) 2>&5
46421   ac_status=$?
46422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46423   (exit $ac_status); }; }; then
46424   ac_cv_sys_largefile_source=1; break
46425 else
46426   echo "$as_me: failed program was:" >&5
46427 sed 's/^/| /' conftest.$ac_ext >&5
46428
46429 fi
46430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46431   break
46432 done
46433 fi
46434 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
46435 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
46436 if test "$ac_cv_sys_largefile_source" != no; then
46437
46438 cat >>confdefs.h <<_ACEOF
46439 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
46440 _ACEOF
46441
46442 fi
46443 rm -f conftest*
46444
46445 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
46446 # in glibc 2.1.3, but that breaks too many other things.
46447 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
46448 echo "$as_me:$LINENO: checking for fseeko" >&5
46449 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
46450 if test "${ac_cv_func_fseeko+set}" = set; then
46451   echo $ECHO_N "(cached) $ECHO_C" >&6
46452 else
46453   cat >conftest.$ac_ext <<_ACEOF
46454 /* confdefs.h.  */
46455 _ACEOF
46456 cat confdefs.h >>conftest.$ac_ext
46457 cat >>conftest.$ac_ext <<_ACEOF
46458 /* end confdefs.h.  */
46459 #include <stdio.h>
46460 int
46461 main ()
46462 {
46463 return fseeko && fseeko (stdin, 0, 0);
46464   ;
46465   return 0;
46466 }
46467 _ACEOF
46468 rm -f conftest.$ac_objext conftest$ac_exeext
46469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46470   (eval $ac_link) 2>conftest.er1
46471   ac_status=$?
46472   grep -v '^ *+' conftest.er1 >conftest.err
46473   rm -f conftest.er1
46474   cat conftest.err >&5
46475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46476   (exit $ac_status); } &&
46477          { ac_try='test -z "$ac_c_werror_flag"
46478                          || test ! -s conftest.err'
46479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46480   (eval $ac_try) 2>&5
46481   ac_status=$?
46482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46483   (exit $ac_status); }; } &&
46484          { ac_try='test -s conftest$ac_exeext'
46485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46486   (eval $ac_try) 2>&5
46487   ac_status=$?
46488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46489   (exit $ac_status); }; }; then
46490   ac_cv_func_fseeko=yes
46491 else
46492   echo "$as_me: failed program was:" >&5
46493 sed 's/^/| /' conftest.$ac_ext >&5
46494
46495 ac_cv_func_fseeko=no
46496 fi
46497 rm -f conftest.err conftest.$ac_objext \
46498       conftest$ac_exeext conftest.$ac_ext
46499 fi
46500 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
46501 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
46502 if test $ac_cv_func_fseeko = yes; then
46503
46504 cat >>confdefs.h <<\_ACEOF
46505 #define HAVE_FSEEKO 1
46506 _ACEOF
46507
46508 fi
46509
46510
46511   echo "$as_me:$LINENO: checking for /proc/uptime" >&5
46512 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
46513 if test "${jm_cv_have_proc_uptime+set}" = set; then
46514   echo $ECHO_N "(cached) $ECHO_C" >&6
46515 else
46516   jm_cv_have_proc_uptime=no
46517     test -f /proc/uptime \
46518       && test "$cross_compiling" = no \
46519       && cat < /proc/uptime >/dev/null 2>/dev/null \
46520       && jm_cv_have_proc_uptime=yes
46521 fi
46522 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
46523 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
46524   if test $jm_cv_have_proc_uptime = yes; then
46525
46526 cat >>confdefs.h <<\_ACEOF
46527 #define HAVE_PROC_UPTIME 1
46528 _ACEOF
46529
46530   fi
46531
46532
46533
46534 for ac_func in ftruncate
46535 do
46536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46537 echo "$as_me:$LINENO: checking for $ac_func" >&5
46538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46539 if eval "test \"\${$as_ac_var+set}\" = set"; then
46540   echo $ECHO_N "(cached) $ECHO_C" >&6
46541 else
46542   cat >conftest.$ac_ext <<_ACEOF
46543 /* confdefs.h.  */
46544 _ACEOF
46545 cat confdefs.h >>conftest.$ac_ext
46546 cat >>conftest.$ac_ext <<_ACEOF
46547 /* end confdefs.h.  */
46548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46550 #define $ac_func innocuous_$ac_func
46551
46552 /* System header to define __stub macros and hopefully few prototypes,
46553     which can conflict with char $ac_func (); below.
46554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46555     <limits.h> exists even on freestanding compilers.  */
46556
46557 #ifdef __STDC__
46558 # include <limits.h>
46559 #else
46560 # include <assert.h>
46561 #endif
46562
46563 #undef $ac_func
46564
46565 /* Override any gcc2 internal prototype to avoid an error.  */
46566 #ifdef __cplusplus
46567 extern "C"
46568 {
46569 #endif
46570 /* We use char because int might match the return type of a gcc2
46571    builtin and then its argument prototype would still apply.  */
46572 char $ac_func ();
46573 /* The GNU C library defines this for functions which it implements
46574     to always fail with ENOSYS.  Some functions are actually named
46575     something starting with __ and the normal name is an alias.  */
46576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46577 choke me
46578 #else
46579 char (*f) () = $ac_func;
46580 #endif
46581 #ifdef __cplusplus
46582 }
46583 #endif
46584
46585 int
46586 main ()
46587 {
46588 return f != $ac_func;
46589   ;
46590   return 0;
46591 }
46592 _ACEOF
46593 rm -f conftest.$ac_objext conftest$ac_exeext
46594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46595   (eval $ac_link) 2>conftest.er1
46596   ac_status=$?
46597   grep -v '^ *+' conftest.er1 >conftest.err
46598   rm -f conftest.er1
46599   cat conftest.err >&5
46600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46601   (exit $ac_status); } &&
46602          { ac_try='test -z "$ac_c_werror_flag"
46603                          || test ! -s conftest.err'
46604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46605   (eval $ac_try) 2>&5
46606   ac_status=$?
46607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46608   (exit $ac_status); }; } &&
46609          { ac_try='test -s conftest$ac_exeext'
46610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46611   (eval $ac_try) 2>&5
46612   ac_status=$?
46613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46614   (exit $ac_status); }; }; then
46615   eval "$as_ac_var=yes"
46616 else
46617   echo "$as_me: failed program was:" >&5
46618 sed 's/^/| /' conftest.$ac_ext >&5
46619
46620 eval "$as_ac_var=no"
46621 fi
46622 rm -f conftest.err conftest.$ac_objext \
46623       conftest$ac_exeext conftest.$ac_ext
46624 fi
46625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46627 if test `eval echo '${'$as_ac_var'}'` = yes; then
46628   cat >>confdefs.h <<_ACEOF
46629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46630 _ACEOF
46631
46632 else
46633   case $LIBOBJS in
46634     "$ac_func.$ac_objext"   | \
46635   *" $ac_func.$ac_objext"   | \
46636     "$ac_func.$ac_objext "* | \
46637   *" $ac_func.$ac_objext "* ) ;;
46638   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
46639 esac
46640
46641 fi
46642 done
46643
46644
46645   if test $ac_cv_func_ftruncate = no; then
46646
46647
46648   :
46649
46650
46651
46652
46653
46654
46655 for ac_func in chsize
46656 do
46657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46658 echo "$as_me:$LINENO: checking for $ac_func" >&5
46659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46660 if eval "test \"\${$as_ac_var+set}\" = set"; then
46661   echo $ECHO_N "(cached) $ECHO_C" >&6
46662 else
46663   cat >conftest.$ac_ext <<_ACEOF
46664 /* confdefs.h.  */
46665 _ACEOF
46666 cat confdefs.h >>conftest.$ac_ext
46667 cat >>conftest.$ac_ext <<_ACEOF
46668 /* end confdefs.h.  */
46669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46671 #define $ac_func innocuous_$ac_func
46672
46673 /* System header to define __stub macros and hopefully few prototypes,
46674     which can conflict with char $ac_func (); below.
46675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46676     <limits.h> exists even on freestanding compilers.  */
46677
46678 #ifdef __STDC__
46679 # include <limits.h>
46680 #else
46681 # include <assert.h>
46682 #endif
46683
46684 #undef $ac_func
46685
46686 /* Override any gcc2 internal prototype to avoid an error.  */
46687 #ifdef __cplusplus
46688 extern "C"
46689 {
46690 #endif
46691 /* We use char because int might match the return type of a gcc2
46692    builtin and then its argument prototype would still apply.  */
46693 char $ac_func ();
46694 /* The GNU C library defines this for functions which it implements
46695     to always fail with ENOSYS.  Some functions are actually named
46696     something starting with __ and the normal name is an alias.  */
46697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46698 choke me
46699 #else
46700 char (*f) () = $ac_func;
46701 #endif
46702 #ifdef __cplusplus
46703 }
46704 #endif
46705
46706 int
46707 main ()
46708 {
46709 return f != $ac_func;
46710   ;
46711   return 0;
46712 }
46713 _ACEOF
46714 rm -f conftest.$ac_objext conftest$ac_exeext
46715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46716   (eval $ac_link) 2>conftest.er1
46717   ac_status=$?
46718   grep -v '^ *+' conftest.er1 >conftest.err
46719   rm -f conftest.er1
46720   cat conftest.err >&5
46721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46722   (exit $ac_status); } &&
46723          { ac_try='test -z "$ac_c_werror_flag"
46724                          || test ! -s conftest.err'
46725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46726   (eval $ac_try) 2>&5
46727   ac_status=$?
46728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46729   (exit $ac_status); }; } &&
46730          { ac_try='test -s conftest$ac_exeext'
46731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46732   (eval $ac_try) 2>&5
46733   ac_status=$?
46734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46735   (exit $ac_status); }; }; then
46736   eval "$as_ac_var=yes"
46737 else
46738   echo "$as_me: failed program was:" >&5
46739 sed 's/^/| /' conftest.$ac_ext >&5
46740
46741 eval "$as_ac_var=no"
46742 fi
46743 rm -f conftest.err conftest.$ac_objext \
46744       conftest$ac_exeext conftest.$ac_ext
46745 fi
46746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46747 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46748 if test `eval echo '${'$as_ac_var'}'` = yes; then
46749   cat >>confdefs.h <<_ACEOF
46750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46751 _ACEOF
46752
46753 fi
46754 done
46755
46756
46757   fi
46758
46759
46760
46761 for ac_func in directio
46762 do
46763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46764 echo "$as_me:$LINENO: checking for $ac_func" >&5
46765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46766 if eval "test \"\${$as_ac_var+set}\" = set"; then
46767   echo $ECHO_N "(cached) $ECHO_C" >&6
46768 else
46769   cat >conftest.$ac_ext <<_ACEOF
46770 /* confdefs.h.  */
46771 _ACEOF
46772 cat confdefs.h >>conftest.$ac_ext
46773 cat >>conftest.$ac_ext <<_ACEOF
46774 /* end confdefs.h.  */
46775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46777 #define $ac_func innocuous_$ac_func
46778
46779 /* System header to define __stub macros and hopefully few prototypes,
46780     which can conflict with char $ac_func (); below.
46781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46782     <limits.h> exists even on freestanding compilers.  */
46783
46784 #ifdef __STDC__
46785 # include <limits.h>
46786 #else
46787 # include <assert.h>
46788 #endif
46789
46790 #undef $ac_func
46791
46792 /* Override any gcc2 internal prototype to avoid an error.  */
46793 #ifdef __cplusplus
46794 extern "C"
46795 {
46796 #endif
46797 /* We use char because int might match the return type of a gcc2
46798    builtin and then its argument prototype would still apply.  */
46799 char $ac_func ();
46800 /* The GNU C library defines this for functions which it implements
46801     to always fail with ENOSYS.  Some functions are actually named
46802     something starting with __ and the normal name is an alias.  */
46803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46804 choke me
46805 #else
46806 char (*f) () = $ac_func;
46807 #endif
46808 #ifdef __cplusplus
46809 }
46810 #endif
46811
46812 int
46813 main ()
46814 {
46815 return f != $ac_func;
46816   ;
46817   return 0;
46818 }
46819 _ACEOF
46820 rm -f conftest.$ac_objext conftest$ac_exeext
46821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46822   (eval $ac_link) 2>conftest.er1
46823   ac_status=$?
46824   grep -v '^ *+' conftest.er1 >conftest.err
46825   rm -f conftest.er1
46826   cat conftest.err >&5
46827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46828   (exit $ac_status); } &&
46829          { ac_try='test -z "$ac_c_werror_flag"
46830                          || test ! -s conftest.err'
46831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46832   (eval $ac_try) 2>&5
46833   ac_status=$?
46834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46835   (exit $ac_status); }; } &&
46836          { ac_try='test -s conftest$ac_exeext'
46837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46838   (eval $ac_try) 2>&5
46839   ac_status=$?
46840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46841   (exit $ac_status); }; }; then
46842   eval "$as_ac_var=yes"
46843 else
46844   echo "$as_me: failed program was:" >&5
46845 sed 's/^/| /' conftest.$ac_ext >&5
46846
46847 eval "$as_ac_var=no"
46848 fi
46849 rm -f conftest.err conftest.$ac_objext \
46850       conftest$ac_exeext conftest.$ac_ext
46851 fi
46852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46854 if test `eval echo '${'$as_ac_var'}'` = yes; then
46855   cat >>confdefs.h <<_ACEOF
46856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46857 _ACEOF
46858
46859 fi
46860 done
46861
46862
46863
46864
46865 for ac_func in endgrent
46866 do
46867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46868 echo "$as_me:$LINENO: checking for $ac_func" >&5
46869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46870 if eval "test \"\${$as_ac_var+set}\" = set"; then
46871   echo $ECHO_N "(cached) $ECHO_C" >&6
46872 else
46873   cat >conftest.$ac_ext <<_ACEOF
46874 /* confdefs.h.  */
46875 _ACEOF
46876 cat confdefs.h >>conftest.$ac_ext
46877 cat >>conftest.$ac_ext <<_ACEOF
46878 /* end confdefs.h.  */
46879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46881 #define $ac_func innocuous_$ac_func
46882
46883 /* System header to define __stub macros and hopefully few prototypes,
46884     which can conflict with char $ac_func (); below.
46885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46886     <limits.h> exists even on freestanding compilers.  */
46887
46888 #ifdef __STDC__
46889 # include <limits.h>
46890 #else
46891 # include <assert.h>
46892 #endif
46893
46894 #undef $ac_func
46895
46896 /* Override any gcc2 internal prototype to avoid an error.  */
46897 #ifdef __cplusplus
46898 extern "C"
46899 {
46900 #endif
46901 /* We use char because int might match the return type of a gcc2
46902    builtin and then its argument prototype would still apply.  */
46903 char $ac_func ();
46904 /* The GNU C library defines this for functions which it implements
46905     to always fail with ENOSYS.  Some functions are actually named
46906     something starting with __ and the normal name is an alias.  */
46907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46908 choke me
46909 #else
46910 char (*f) () = $ac_func;
46911 #endif
46912 #ifdef __cplusplus
46913 }
46914 #endif
46915
46916 int
46917 main ()
46918 {
46919 return f != $ac_func;
46920   ;
46921   return 0;
46922 }
46923 _ACEOF
46924 rm -f conftest.$ac_objext conftest$ac_exeext
46925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46926   (eval $ac_link) 2>conftest.er1
46927   ac_status=$?
46928   grep -v '^ *+' conftest.er1 >conftest.err
46929   rm -f conftest.er1
46930   cat conftest.err >&5
46931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46932   (exit $ac_status); } &&
46933          { ac_try='test -z "$ac_c_werror_flag"
46934                          || test ! -s conftest.err'
46935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46936   (eval $ac_try) 2>&5
46937   ac_status=$?
46938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46939   (exit $ac_status); }; } &&
46940          { ac_try='test -s conftest$ac_exeext'
46941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46942   (eval $ac_try) 2>&5
46943   ac_status=$?
46944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46945   (exit $ac_status); }; }; then
46946   eval "$as_ac_var=yes"
46947 else
46948   echo "$as_me: failed program was:" >&5
46949 sed 's/^/| /' conftest.$ac_ext >&5
46950
46951 eval "$as_ac_var=no"
46952 fi
46953 rm -f conftest.err conftest.$ac_objext \
46954       conftest$ac_exeext conftest.$ac_ext
46955 fi
46956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46958 if test `eval echo '${'$as_ac_var'}'` = yes; then
46959   cat >>confdefs.h <<_ACEOF
46960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46961 _ACEOF
46962
46963 fi
46964 done
46965
46966
46967
46968
46969 for ac_func in endpwent
46970 do
46971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46972 echo "$as_me:$LINENO: checking for $ac_func" >&5
46973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46974 if eval "test \"\${$as_ac_var+set}\" = set"; then
46975   echo $ECHO_N "(cached) $ECHO_C" >&6
46976 else
46977   cat >conftest.$ac_ext <<_ACEOF
46978 /* confdefs.h.  */
46979 _ACEOF
46980 cat confdefs.h >>conftest.$ac_ext
46981 cat >>conftest.$ac_ext <<_ACEOF
46982 /* end confdefs.h.  */
46983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46985 #define $ac_func innocuous_$ac_func
46986
46987 /* System header to define __stub macros and hopefully few prototypes,
46988     which can conflict with char $ac_func (); below.
46989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46990     <limits.h> exists even on freestanding compilers.  */
46991
46992 #ifdef __STDC__
46993 # include <limits.h>
46994 #else
46995 # include <assert.h>
46996 #endif
46997
46998 #undef $ac_func
46999
47000 /* Override any gcc2 internal prototype to avoid an error.  */
47001 #ifdef __cplusplus
47002 extern "C"
47003 {
47004 #endif
47005 /* We use char because int might match the return type of a gcc2
47006    builtin and then its argument prototype would still apply.  */
47007 char $ac_func ();
47008 /* The GNU C library defines this for functions which it implements
47009     to always fail with ENOSYS.  Some functions are actually named
47010     something starting with __ and the normal name is an alias.  */
47011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47012 choke me
47013 #else
47014 char (*f) () = $ac_func;
47015 #endif
47016 #ifdef __cplusplus
47017 }
47018 #endif
47019
47020 int
47021 main ()
47022 {
47023 return f != $ac_func;
47024   ;
47025   return 0;
47026 }
47027 _ACEOF
47028 rm -f conftest.$ac_objext conftest$ac_exeext
47029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47030   (eval $ac_link) 2>conftest.er1
47031   ac_status=$?
47032   grep -v '^ *+' conftest.er1 >conftest.err
47033   rm -f conftest.er1
47034   cat conftest.err >&5
47035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47036   (exit $ac_status); } &&
47037          { ac_try='test -z "$ac_c_werror_flag"
47038                          || test ! -s conftest.err'
47039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47040   (eval $ac_try) 2>&5
47041   ac_status=$?
47042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47043   (exit $ac_status); }; } &&
47044          { ac_try='test -s conftest$ac_exeext'
47045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47046   (eval $ac_try) 2>&5
47047   ac_status=$?
47048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47049   (exit $ac_status); }; }; then
47050   eval "$as_ac_var=yes"
47051 else
47052   echo "$as_me: failed program was:" >&5
47053 sed 's/^/| /' conftest.$ac_ext >&5
47054
47055 eval "$as_ac_var=no"
47056 fi
47057 rm -f conftest.err conftest.$ac_objext \
47058       conftest$ac_exeext conftest.$ac_ext
47059 fi
47060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47062 if test `eval echo '${'$as_ac_var'}'` = yes; then
47063   cat >>confdefs.h <<_ACEOF
47064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47065 _ACEOF
47066
47067 fi
47068 done
47069
47070
47071
47072
47073 for ac_func in ftruncate
47074 do
47075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47076 echo "$as_me:$LINENO: checking for $ac_func" >&5
47077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47078 if eval "test \"\${$as_ac_var+set}\" = set"; then
47079   echo $ECHO_N "(cached) $ECHO_C" >&6
47080 else
47081   cat >conftest.$ac_ext <<_ACEOF
47082 /* confdefs.h.  */
47083 _ACEOF
47084 cat confdefs.h >>conftest.$ac_ext
47085 cat >>conftest.$ac_ext <<_ACEOF
47086 /* end confdefs.h.  */
47087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47089 #define $ac_func innocuous_$ac_func
47090
47091 /* System header to define __stub macros and hopefully few prototypes,
47092     which can conflict with char $ac_func (); below.
47093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47094     <limits.h> exists even on freestanding compilers.  */
47095
47096 #ifdef __STDC__
47097 # include <limits.h>
47098 #else
47099 # include <assert.h>
47100 #endif
47101
47102 #undef $ac_func
47103
47104 /* Override any gcc2 internal prototype to avoid an error.  */
47105 #ifdef __cplusplus
47106 extern "C"
47107 {
47108 #endif
47109 /* We use char because int might match the return type of a gcc2
47110    builtin and then its argument prototype would still apply.  */
47111 char $ac_func ();
47112 /* The GNU C library defines this for functions which it implements
47113     to always fail with ENOSYS.  Some functions are actually named
47114     something starting with __ and the normal name is an alias.  */
47115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47116 choke me
47117 #else
47118 char (*f) () = $ac_func;
47119 #endif
47120 #ifdef __cplusplus
47121 }
47122 #endif
47123
47124 int
47125 main ()
47126 {
47127 return f != $ac_func;
47128   ;
47129   return 0;
47130 }
47131 _ACEOF
47132 rm -f conftest.$ac_objext conftest$ac_exeext
47133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47134   (eval $ac_link) 2>conftest.er1
47135   ac_status=$?
47136   grep -v '^ *+' conftest.er1 >conftest.err
47137   rm -f conftest.er1
47138   cat conftest.err >&5
47139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47140   (exit $ac_status); } &&
47141          { ac_try='test -z "$ac_c_werror_flag"
47142                          || test ! -s conftest.err'
47143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47144   (eval $ac_try) 2>&5
47145   ac_status=$?
47146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47147   (exit $ac_status); }; } &&
47148          { ac_try='test -s conftest$ac_exeext'
47149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47150   (eval $ac_try) 2>&5
47151   ac_status=$?
47152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47153   (exit $ac_status); }; }; then
47154   eval "$as_ac_var=yes"
47155 else
47156   echo "$as_me: failed program was:" >&5
47157 sed 's/^/| /' conftest.$ac_ext >&5
47158
47159 eval "$as_ac_var=no"
47160 fi
47161 rm -f conftest.err conftest.$ac_objext \
47162       conftest$ac_exeext conftest.$ac_ext
47163 fi
47164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47166 if test `eval echo '${'$as_ac_var'}'` = yes; then
47167   cat >>confdefs.h <<_ACEOF
47168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47169 _ACEOF
47170
47171 fi
47172 done
47173
47174
47175
47176
47177 for ac_func in gethrtime
47178 do
47179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47180 echo "$as_me:$LINENO: checking for $ac_func" >&5
47181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47182 if eval "test \"\${$as_ac_var+set}\" = set"; then
47183   echo $ECHO_N "(cached) $ECHO_C" >&6
47184 else
47185   cat >conftest.$ac_ext <<_ACEOF
47186 /* confdefs.h.  */
47187 _ACEOF
47188 cat confdefs.h >>conftest.$ac_ext
47189 cat >>conftest.$ac_ext <<_ACEOF
47190 /* end confdefs.h.  */
47191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47193 #define $ac_func innocuous_$ac_func
47194
47195 /* System header to define __stub macros and hopefully few prototypes,
47196     which can conflict with char $ac_func (); below.
47197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47198     <limits.h> exists even on freestanding compilers.  */
47199
47200 #ifdef __STDC__
47201 # include <limits.h>
47202 #else
47203 # include <assert.h>
47204 #endif
47205
47206 #undef $ac_func
47207
47208 /* Override any gcc2 internal prototype to avoid an error.  */
47209 #ifdef __cplusplus
47210 extern "C"
47211 {
47212 #endif
47213 /* We use char because int might match the return type of a gcc2
47214    builtin and then its argument prototype would still apply.  */
47215 char $ac_func ();
47216 /* The GNU C library defines this for functions which it implements
47217     to always fail with ENOSYS.  Some functions are actually named
47218     something starting with __ and the normal name is an alias.  */
47219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47220 choke me
47221 #else
47222 char (*f) () = $ac_func;
47223 #endif
47224 #ifdef __cplusplus
47225 }
47226 #endif
47227
47228 int
47229 main ()
47230 {
47231 return f != $ac_func;
47232   ;
47233   return 0;
47234 }
47235 _ACEOF
47236 rm -f conftest.$ac_objext conftest$ac_exeext
47237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47238   (eval $ac_link) 2>conftest.er1
47239   ac_status=$?
47240   grep -v '^ *+' conftest.er1 >conftest.err
47241   rm -f conftest.er1
47242   cat conftest.err >&5
47243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47244   (exit $ac_status); } &&
47245          { ac_try='test -z "$ac_c_werror_flag"
47246                          || test ! -s conftest.err'
47247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47248   (eval $ac_try) 2>&5
47249   ac_status=$?
47250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47251   (exit $ac_status); }; } &&
47252          { ac_try='test -s conftest$ac_exeext'
47253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47254   (eval $ac_try) 2>&5
47255   ac_status=$?
47256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47257   (exit $ac_status); }; }; then
47258   eval "$as_ac_var=yes"
47259 else
47260   echo "$as_me: failed program was:" >&5
47261 sed 's/^/| /' conftest.$ac_ext >&5
47262
47263 eval "$as_ac_var=no"
47264 fi
47265 rm -f conftest.err conftest.$ac_objext \
47266       conftest$ac_exeext conftest.$ac_ext
47267 fi
47268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47270 if test `eval echo '${'$as_ac_var'}'` = yes; then
47271   cat >>confdefs.h <<_ACEOF
47272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47273 _ACEOF
47274
47275 fi
47276 done
47277
47278
47279
47280
47281 for ac_func in hasmntopt
47282 do
47283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47284 echo "$as_me:$LINENO: checking for $ac_func" >&5
47285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47286 if eval "test \"\${$as_ac_var+set}\" = set"; then
47287   echo $ECHO_N "(cached) $ECHO_C" >&6
47288 else
47289   cat >conftest.$ac_ext <<_ACEOF
47290 /* confdefs.h.  */
47291 _ACEOF
47292 cat confdefs.h >>conftest.$ac_ext
47293 cat >>conftest.$ac_ext <<_ACEOF
47294 /* end confdefs.h.  */
47295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47297 #define $ac_func innocuous_$ac_func
47298
47299 /* System header to define __stub macros and hopefully few prototypes,
47300     which can conflict with char $ac_func (); below.
47301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47302     <limits.h> exists even on freestanding compilers.  */
47303
47304 #ifdef __STDC__
47305 # include <limits.h>
47306 #else
47307 # include <assert.h>
47308 #endif
47309
47310 #undef $ac_func
47311
47312 /* Override any gcc2 internal prototype to avoid an error.  */
47313 #ifdef __cplusplus
47314 extern "C"
47315 {
47316 #endif
47317 /* We use char because int might match the return type of a gcc2
47318    builtin and then its argument prototype would still apply.  */
47319 char $ac_func ();
47320 /* The GNU C library defines this for functions which it implements
47321     to always fail with ENOSYS.  Some functions are actually named
47322     something starting with __ and the normal name is an alias.  */
47323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47324 choke me
47325 #else
47326 char (*f) () = $ac_func;
47327 #endif
47328 #ifdef __cplusplus
47329 }
47330 #endif
47331
47332 int
47333 main ()
47334 {
47335 return f != $ac_func;
47336   ;
47337   return 0;
47338 }
47339 _ACEOF
47340 rm -f conftest.$ac_objext conftest$ac_exeext
47341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47342   (eval $ac_link) 2>conftest.er1
47343   ac_status=$?
47344   grep -v '^ *+' conftest.er1 >conftest.err
47345   rm -f conftest.er1
47346   cat conftest.err >&5
47347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47348   (exit $ac_status); } &&
47349          { ac_try='test -z "$ac_c_werror_flag"
47350                          || test ! -s conftest.err'
47351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47352   (eval $ac_try) 2>&5
47353   ac_status=$?
47354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47355   (exit $ac_status); }; } &&
47356          { ac_try='test -s conftest$ac_exeext'
47357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47358   (eval $ac_try) 2>&5
47359   ac_status=$?
47360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47361   (exit $ac_status); }; }; then
47362   eval "$as_ac_var=yes"
47363 else
47364   echo "$as_me: failed program was:" >&5
47365 sed 's/^/| /' conftest.$ac_ext >&5
47366
47367 eval "$as_ac_var=no"
47368 fi
47369 rm -f conftest.err conftest.$ac_objext \
47370       conftest$ac_exeext conftest.$ac_ext
47371 fi
47372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47374 if test `eval echo '${'$as_ac_var'}'` = yes; then
47375   cat >>confdefs.h <<_ACEOF
47376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47377 _ACEOF
47378
47379 fi
47380 done
47381
47382
47383
47384
47385 for ac_func in iswspace
47386 do
47387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47388 echo "$as_me:$LINENO: checking for $ac_func" >&5
47389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47390 if eval "test \"\${$as_ac_var+set}\" = set"; then
47391   echo $ECHO_N "(cached) $ECHO_C" >&6
47392 else
47393   cat >conftest.$ac_ext <<_ACEOF
47394 /* confdefs.h.  */
47395 _ACEOF
47396 cat confdefs.h >>conftest.$ac_ext
47397 cat >>conftest.$ac_ext <<_ACEOF
47398 /* end confdefs.h.  */
47399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47401 #define $ac_func innocuous_$ac_func
47402
47403 /* System header to define __stub macros and hopefully few prototypes,
47404     which can conflict with char $ac_func (); below.
47405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47406     <limits.h> exists even on freestanding compilers.  */
47407
47408 #ifdef __STDC__
47409 # include <limits.h>
47410 #else
47411 # include <assert.h>
47412 #endif
47413
47414 #undef $ac_func
47415
47416 /* Override any gcc2 internal prototype to avoid an error.  */
47417 #ifdef __cplusplus
47418 extern "C"
47419 {
47420 #endif
47421 /* We use char because int might match the return type of a gcc2
47422    builtin and then its argument prototype would still apply.  */
47423 char $ac_func ();
47424 /* The GNU C library defines this for functions which it implements
47425     to always fail with ENOSYS.  Some functions are actually named
47426     something starting with __ and the normal name is an alias.  */
47427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47428 choke me
47429 #else
47430 char (*f) () = $ac_func;
47431 #endif
47432 #ifdef __cplusplus
47433 }
47434 #endif
47435
47436 int
47437 main ()
47438 {
47439 return f != $ac_func;
47440   ;
47441   return 0;
47442 }
47443 _ACEOF
47444 rm -f conftest.$ac_objext conftest$ac_exeext
47445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47446   (eval $ac_link) 2>conftest.er1
47447   ac_status=$?
47448   grep -v '^ *+' conftest.er1 >conftest.err
47449   rm -f conftest.er1
47450   cat conftest.err >&5
47451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47452   (exit $ac_status); } &&
47453          { ac_try='test -z "$ac_c_werror_flag"
47454                          || test ! -s conftest.err'
47455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47456   (eval $ac_try) 2>&5
47457   ac_status=$?
47458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47459   (exit $ac_status); }; } &&
47460          { ac_try='test -s conftest$ac_exeext'
47461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47462   (eval $ac_try) 2>&5
47463   ac_status=$?
47464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47465   (exit $ac_status); }; }; then
47466   eval "$as_ac_var=yes"
47467 else
47468   echo "$as_me: failed program was:" >&5
47469 sed 's/^/| /' conftest.$ac_ext >&5
47470
47471 eval "$as_ac_var=no"
47472 fi
47473 rm -f conftest.err conftest.$ac_objext \
47474       conftest$ac_exeext conftest.$ac_ext
47475 fi
47476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47478 if test `eval echo '${'$as_ac_var'}'` = yes; then
47479   cat >>confdefs.h <<_ACEOF
47480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47481 _ACEOF
47482
47483 fi
47484 done
47485
47486
47487
47488
47489 for ac_func in lchown
47490 do
47491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47492 echo "$as_me:$LINENO: checking for $ac_func" >&5
47493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47494 if eval "test \"\${$as_ac_var+set}\" = set"; then
47495   echo $ECHO_N "(cached) $ECHO_C" >&6
47496 else
47497   cat >conftest.$ac_ext <<_ACEOF
47498 /* confdefs.h.  */
47499 _ACEOF
47500 cat confdefs.h >>conftest.$ac_ext
47501 cat >>conftest.$ac_ext <<_ACEOF
47502 /* end confdefs.h.  */
47503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47505 #define $ac_func innocuous_$ac_func
47506
47507 /* System header to define __stub macros and hopefully few prototypes,
47508     which can conflict with char $ac_func (); below.
47509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47510     <limits.h> exists even on freestanding compilers.  */
47511
47512 #ifdef __STDC__
47513 # include <limits.h>
47514 #else
47515 # include <assert.h>
47516 #endif
47517
47518 #undef $ac_func
47519
47520 /* Override any gcc2 internal prototype to avoid an error.  */
47521 #ifdef __cplusplus
47522 extern "C"
47523 {
47524 #endif
47525 /* We use char because int might match the return type of a gcc2
47526    builtin and then its argument prototype would still apply.  */
47527 char $ac_func ();
47528 /* The GNU C library defines this for functions which it implements
47529     to always fail with ENOSYS.  Some functions are actually named
47530     something starting with __ and the normal name is an alias.  */
47531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47532 choke me
47533 #else
47534 char (*f) () = $ac_func;
47535 #endif
47536 #ifdef __cplusplus
47537 }
47538 #endif
47539
47540 int
47541 main ()
47542 {
47543 return f != $ac_func;
47544   ;
47545   return 0;
47546 }
47547 _ACEOF
47548 rm -f conftest.$ac_objext conftest$ac_exeext
47549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47550   (eval $ac_link) 2>conftest.er1
47551   ac_status=$?
47552   grep -v '^ *+' conftest.er1 >conftest.err
47553   rm -f conftest.er1
47554   cat conftest.err >&5
47555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47556   (exit $ac_status); } &&
47557          { ac_try='test -z "$ac_c_werror_flag"
47558                          || test ! -s conftest.err'
47559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47560   (eval $ac_try) 2>&5
47561   ac_status=$?
47562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47563   (exit $ac_status); }; } &&
47564          { ac_try='test -s conftest$ac_exeext'
47565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47566   (eval $ac_try) 2>&5
47567   ac_status=$?
47568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47569   (exit $ac_status); }; }; then
47570   eval "$as_ac_var=yes"
47571 else
47572   echo "$as_me: failed program was:" >&5
47573 sed 's/^/| /' conftest.$ac_ext >&5
47574
47575 eval "$as_ac_var=no"
47576 fi
47577 rm -f conftest.err conftest.$ac_objext \
47578       conftest$ac_exeext conftest.$ac_ext
47579 fi
47580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47582 if test `eval echo '${'$as_ac_var'}'` = yes; then
47583   cat >>confdefs.h <<_ACEOF
47584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47585 _ACEOF
47586
47587 fi
47588 done
47589
47590
47591
47592
47593 for ac_func in listmntent
47594 do
47595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47596 echo "$as_me:$LINENO: checking for $ac_func" >&5
47597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47598 if eval "test \"\${$as_ac_var+set}\" = set"; then
47599   echo $ECHO_N "(cached) $ECHO_C" >&6
47600 else
47601   cat >conftest.$ac_ext <<_ACEOF
47602 /* confdefs.h.  */
47603 _ACEOF
47604 cat confdefs.h >>conftest.$ac_ext
47605 cat >>conftest.$ac_ext <<_ACEOF
47606 /* end confdefs.h.  */
47607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47609 #define $ac_func innocuous_$ac_func
47610
47611 /* System header to define __stub macros and hopefully few prototypes,
47612     which can conflict with char $ac_func (); below.
47613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47614     <limits.h> exists even on freestanding compilers.  */
47615
47616 #ifdef __STDC__
47617 # include <limits.h>
47618 #else
47619 # include <assert.h>
47620 #endif
47621
47622 #undef $ac_func
47623
47624 /* Override any gcc2 internal prototype to avoid an error.  */
47625 #ifdef __cplusplus
47626 extern "C"
47627 {
47628 #endif
47629 /* We use char because int might match the return type of a gcc2
47630    builtin and then its argument prototype would still apply.  */
47631 char $ac_func ();
47632 /* The GNU C library defines this for functions which it implements
47633     to always fail with ENOSYS.  Some functions are actually named
47634     something starting with __ and the normal name is an alias.  */
47635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47636 choke me
47637 #else
47638 char (*f) () = $ac_func;
47639 #endif
47640 #ifdef __cplusplus
47641 }
47642 #endif
47643
47644 int
47645 main ()
47646 {
47647 return f != $ac_func;
47648   ;
47649   return 0;
47650 }
47651 _ACEOF
47652 rm -f conftest.$ac_objext conftest$ac_exeext
47653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47654   (eval $ac_link) 2>conftest.er1
47655   ac_status=$?
47656   grep -v '^ *+' conftest.er1 >conftest.err
47657   rm -f conftest.er1
47658   cat conftest.err >&5
47659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47660   (exit $ac_status); } &&
47661          { ac_try='test -z "$ac_c_werror_flag"
47662                          || test ! -s conftest.err'
47663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47664   (eval $ac_try) 2>&5
47665   ac_status=$?
47666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47667   (exit $ac_status); }; } &&
47668          { ac_try='test -s conftest$ac_exeext'
47669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47670   (eval $ac_try) 2>&5
47671   ac_status=$?
47672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47673   (exit $ac_status); }; }; then
47674   eval "$as_ac_var=yes"
47675 else
47676   echo "$as_me: failed program was:" >&5
47677 sed 's/^/| /' conftest.$ac_ext >&5
47678
47679 eval "$as_ac_var=no"
47680 fi
47681 rm -f conftest.err conftest.$ac_objext \
47682       conftest$ac_exeext conftest.$ac_ext
47683 fi
47684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47686 if test `eval echo '${'$as_ac_var'}'` = yes; then
47687   cat >>confdefs.h <<_ACEOF
47688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47689 _ACEOF
47690
47691 fi
47692 done
47693
47694
47695
47696
47697 for ac_func in memcpy
47698 do
47699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47700 echo "$as_me:$LINENO: checking for $ac_func" >&5
47701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47702 if eval "test \"\${$as_ac_var+set}\" = set"; then
47703   echo $ECHO_N "(cached) $ECHO_C" >&6
47704 else
47705   cat >conftest.$ac_ext <<_ACEOF
47706 /* confdefs.h.  */
47707 _ACEOF
47708 cat confdefs.h >>conftest.$ac_ext
47709 cat >>conftest.$ac_ext <<_ACEOF
47710 /* end confdefs.h.  */
47711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47713 #define $ac_func innocuous_$ac_func
47714
47715 /* System header to define __stub macros and hopefully few prototypes,
47716     which can conflict with char $ac_func (); below.
47717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47718     <limits.h> exists even on freestanding compilers.  */
47719
47720 #ifdef __STDC__
47721 # include <limits.h>
47722 #else
47723 # include <assert.h>
47724 #endif
47725
47726 #undef $ac_func
47727
47728 /* Override any gcc2 internal prototype to avoid an error.  */
47729 #ifdef __cplusplus
47730 extern "C"
47731 {
47732 #endif
47733 /* We use char because int might match the return type of a gcc2
47734    builtin and then its argument prototype would still apply.  */
47735 char $ac_func ();
47736 /* The GNU C library defines this for functions which it implements
47737     to always fail with ENOSYS.  Some functions are actually named
47738     something starting with __ and the normal name is an alias.  */
47739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47740 choke me
47741 #else
47742 char (*f) () = $ac_func;
47743 #endif
47744 #ifdef __cplusplus
47745 }
47746 #endif
47747
47748 int
47749 main ()
47750 {
47751 return f != $ac_func;
47752   ;
47753   return 0;
47754 }
47755 _ACEOF
47756 rm -f conftest.$ac_objext conftest$ac_exeext
47757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47758   (eval $ac_link) 2>conftest.er1
47759   ac_status=$?
47760   grep -v '^ *+' conftest.er1 >conftest.err
47761   rm -f conftest.er1
47762   cat conftest.err >&5
47763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47764   (exit $ac_status); } &&
47765          { ac_try='test -z "$ac_c_werror_flag"
47766                          || test ! -s conftest.err'
47767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47768   (eval $ac_try) 2>&5
47769   ac_status=$?
47770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47771   (exit $ac_status); }; } &&
47772          { ac_try='test -s conftest$ac_exeext'
47773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47774   (eval $ac_try) 2>&5
47775   ac_status=$?
47776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47777   (exit $ac_status); }; }; then
47778   eval "$as_ac_var=yes"
47779 else
47780   echo "$as_me: failed program was:" >&5
47781 sed 's/^/| /' conftest.$ac_ext >&5
47782
47783 eval "$as_ac_var=no"
47784 fi
47785 rm -f conftest.err conftest.$ac_objext \
47786       conftest$ac_exeext conftest.$ac_ext
47787 fi
47788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47790 if test `eval echo '${'$as_ac_var'}'` = yes; then
47791   cat >>confdefs.h <<_ACEOF
47792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47793 _ACEOF
47794
47795 fi
47796 done
47797
47798
47799
47800
47801 for ac_func in mkfifo
47802 do
47803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47804 echo "$as_me:$LINENO: checking for $ac_func" >&5
47805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47806 if eval "test \"\${$as_ac_var+set}\" = set"; then
47807   echo $ECHO_N "(cached) $ECHO_C" >&6
47808 else
47809   cat >conftest.$ac_ext <<_ACEOF
47810 /* confdefs.h.  */
47811 _ACEOF
47812 cat confdefs.h >>conftest.$ac_ext
47813 cat >>conftest.$ac_ext <<_ACEOF
47814 /* end confdefs.h.  */
47815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47817 #define $ac_func innocuous_$ac_func
47818
47819 /* System header to define __stub macros and hopefully few prototypes,
47820     which can conflict with char $ac_func (); below.
47821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47822     <limits.h> exists even on freestanding compilers.  */
47823
47824 #ifdef __STDC__
47825 # include <limits.h>
47826 #else
47827 # include <assert.h>
47828 #endif
47829
47830 #undef $ac_func
47831
47832 /* Override any gcc2 internal prototype to avoid an error.  */
47833 #ifdef __cplusplus
47834 extern "C"
47835 {
47836 #endif
47837 /* We use char because int might match the return type of a gcc2
47838    builtin and then its argument prototype would still apply.  */
47839 char $ac_func ();
47840 /* The GNU C library defines this for functions which it implements
47841     to always fail with ENOSYS.  Some functions are actually named
47842     something starting with __ and the normal name is an alias.  */
47843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47844 choke me
47845 #else
47846 char (*f) () = $ac_func;
47847 #endif
47848 #ifdef __cplusplus
47849 }
47850 #endif
47851
47852 int
47853 main ()
47854 {
47855 return f != $ac_func;
47856   ;
47857   return 0;
47858 }
47859 _ACEOF
47860 rm -f conftest.$ac_objext conftest$ac_exeext
47861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47862   (eval $ac_link) 2>conftest.er1
47863   ac_status=$?
47864   grep -v '^ *+' conftest.er1 >conftest.err
47865   rm -f conftest.er1
47866   cat conftest.err >&5
47867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47868   (exit $ac_status); } &&
47869          { ac_try='test -z "$ac_c_werror_flag"
47870                          || test ! -s conftest.err'
47871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47872   (eval $ac_try) 2>&5
47873   ac_status=$?
47874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47875   (exit $ac_status); }; } &&
47876          { ac_try='test -s conftest$ac_exeext'
47877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47878   (eval $ac_try) 2>&5
47879   ac_status=$?
47880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47881   (exit $ac_status); }; }; then
47882   eval "$as_ac_var=yes"
47883 else
47884   echo "$as_me: failed program was:" >&5
47885 sed 's/^/| /' conftest.$ac_ext >&5
47886
47887 eval "$as_ac_var=no"
47888 fi
47889 rm -f conftest.err conftest.$ac_objext \
47890       conftest$ac_exeext conftest.$ac_ext
47891 fi
47892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47894 if test `eval echo '${'$as_ac_var'}'` = yes; then
47895   cat >>confdefs.h <<_ACEOF
47896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47897 _ACEOF
47898
47899 fi
47900 done
47901
47902
47903
47904
47905 for ac_func in realpath
47906 do
47907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47908 echo "$as_me:$LINENO: checking for $ac_func" >&5
47909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47910 if eval "test \"\${$as_ac_var+set}\" = set"; then
47911   echo $ECHO_N "(cached) $ECHO_C" >&6
47912 else
47913   cat >conftest.$ac_ext <<_ACEOF
47914 /* confdefs.h.  */
47915 _ACEOF
47916 cat confdefs.h >>conftest.$ac_ext
47917 cat >>conftest.$ac_ext <<_ACEOF
47918 /* end confdefs.h.  */
47919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47921 #define $ac_func innocuous_$ac_func
47922
47923 /* System header to define __stub macros and hopefully few prototypes,
47924     which can conflict with char $ac_func (); below.
47925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47926     <limits.h> exists even on freestanding compilers.  */
47927
47928 #ifdef __STDC__
47929 # include <limits.h>
47930 #else
47931 # include <assert.h>
47932 #endif
47933
47934 #undef $ac_func
47935
47936 /* Override any gcc2 internal prototype to avoid an error.  */
47937 #ifdef __cplusplus
47938 extern "C"
47939 {
47940 #endif
47941 /* We use char because int might match the return type of a gcc2
47942    builtin and then its argument prototype would still apply.  */
47943 char $ac_func ();
47944 /* The GNU C library defines this for functions which it implements
47945     to always fail with ENOSYS.  Some functions are actually named
47946     something starting with __ and the normal name is an alias.  */
47947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47948 choke me
47949 #else
47950 char (*f) () = $ac_func;
47951 #endif
47952 #ifdef __cplusplus
47953 }
47954 #endif
47955
47956 int
47957 main ()
47958 {
47959 return f != $ac_func;
47960   ;
47961   return 0;
47962 }
47963 _ACEOF
47964 rm -f conftest.$ac_objext conftest$ac_exeext
47965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47966   (eval $ac_link) 2>conftest.er1
47967   ac_status=$?
47968   grep -v '^ *+' conftest.er1 >conftest.err
47969   rm -f conftest.er1
47970   cat conftest.err >&5
47971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47972   (exit $ac_status); } &&
47973          { ac_try='test -z "$ac_c_werror_flag"
47974                          || test ! -s conftest.err'
47975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47976   (eval $ac_try) 2>&5
47977   ac_status=$?
47978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47979   (exit $ac_status); }; } &&
47980          { ac_try='test -s conftest$ac_exeext'
47981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47982   (eval $ac_try) 2>&5
47983   ac_status=$?
47984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47985   (exit $ac_status); }; }; then
47986   eval "$as_ac_var=yes"
47987 else
47988   echo "$as_me: failed program was:" >&5
47989 sed 's/^/| /' conftest.$ac_ext >&5
47990
47991 eval "$as_ac_var=no"
47992 fi
47993 rm -f conftest.err conftest.$ac_objext \
47994       conftest$ac_exeext conftest.$ac_ext
47995 fi
47996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47998 if test `eval echo '${'$as_ac_var'}'` = yes; then
47999   cat >>confdefs.h <<_ACEOF
48000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48001 _ACEOF
48002
48003 fi
48004 done
48005
48006
48007
48008
48009 for ac_func in sethostname
48010 do
48011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48012 echo "$as_me:$LINENO: checking for $ac_func" >&5
48013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48014 if eval "test \"\${$as_ac_var+set}\" = set"; then
48015   echo $ECHO_N "(cached) $ECHO_C" >&6
48016 else
48017   cat >conftest.$ac_ext <<_ACEOF
48018 /* confdefs.h.  */
48019 _ACEOF
48020 cat confdefs.h >>conftest.$ac_ext
48021 cat >>conftest.$ac_ext <<_ACEOF
48022 /* end confdefs.h.  */
48023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48025 #define $ac_func innocuous_$ac_func
48026
48027 /* System header to define __stub macros and hopefully few prototypes,
48028     which can conflict with char $ac_func (); below.
48029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48030     <limits.h> exists even on freestanding compilers.  */
48031
48032 #ifdef __STDC__
48033 # include <limits.h>
48034 #else
48035 # include <assert.h>
48036 #endif
48037
48038 #undef $ac_func
48039
48040 /* Override any gcc2 internal prototype to avoid an error.  */
48041 #ifdef __cplusplus
48042 extern "C"
48043 {
48044 #endif
48045 /* We use char because int might match the return type of a gcc2
48046    builtin and then its argument prototype would still apply.  */
48047 char $ac_func ();
48048 /* The GNU C library defines this for functions which it implements
48049     to always fail with ENOSYS.  Some functions are actually named
48050     something starting with __ and the normal name is an alias.  */
48051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48052 choke me
48053 #else
48054 char (*f) () = $ac_func;
48055 #endif
48056 #ifdef __cplusplus
48057 }
48058 #endif
48059
48060 int
48061 main ()
48062 {
48063 return f != $ac_func;
48064   ;
48065   return 0;
48066 }
48067 _ACEOF
48068 rm -f conftest.$ac_objext conftest$ac_exeext
48069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48070   (eval $ac_link) 2>conftest.er1
48071   ac_status=$?
48072   grep -v '^ *+' conftest.er1 >conftest.err
48073   rm -f conftest.er1
48074   cat conftest.err >&5
48075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48076   (exit $ac_status); } &&
48077          { ac_try='test -z "$ac_c_werror_flag"
48078                          || test ! -s conftest.err'
48079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48080   (eval $ac_try) 2>&5
48081   ac_status=$?
48082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48083   (exit $ac_status); }; } &&
48084          { ac_try='test -s conftest$ac_exeext'
48085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48086   (eval $ac_try) 2>&5
48087   ac_status=$?
48088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48089   (exit $ac_status); }; }; then
48090   eval "$as_ac_var=yes"
48091 else
48092   echo "$as_me: failed program was:" >&5
48093 sed 's/^/| /' conftest.$ac_ext >&5
48094
48095 eval "$as_ac_var=no"
48096 fi
48097 rm -f conftest.err conftest.$ac_objext \
48098       conftest$ac_exeext conftest.$ac_ext
48099 fi
48100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48102 if test `eval echo '${'$as_ac_var'}'` = yes; then
48103   cat >>confdefs.h <<_ACEOF
48104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48105 _ACEOF
48106
48107 fi
48108 done
48109
48110
48111
48112
48113 for ac_func in strchr
48114 do
48115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48116 echo "$as_me:$LINENO: checking for $ac_func" >&5
48117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48118 if eval "test \"\${$as_ac_var+set}\" = set"; then
48119   echo $ECHO_N "(cached) $ECHO_C" >&6
48120 else
48121   cat >conftest.$ac_ext <<_ACEOF
48122 /* confdefs.h.  */
48123 _ACEOF
48124 cat confdefs.h >>conftest.$ac_ext
48125 cat >>conftest.$ac_ext <<_ACEOF
48126 /* end confdefs.h.  */
48127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48129 #define $ac_func innocuous_$ac_func
48130
48131 /* System header to define __stub macros and hopefully few prototypes,
48132     which can conflict with char $ac_func (); below.
48133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48134     <limits.h> exists even on freestanding compilers.  */
48135
48136 #ifdef __STDC__
48137 # include <limits.h>
48138 #else
48139 # include <assert.h>
48140 #endif
48141
48142 #undef $ac_func
48143
48144 /* Override any gcc2 internal prototype to avoid an error.  */
48145 #ifdef __cplusplus
48146 extern "C"
48147 {
48148 #endif
48149 /* We use char because int might match the return type of a gcc2
48150    builtin and then its argument prototype would still apply.  */
48151 char $ac_func ();
48152 /* The GNU C library defines this for functions which it implements
48153     to always fail with ENOSYS.  Some functions are actually named
48154     something starting with __ and the normal name is an alias.  */
48155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48156 choke me
48157 #else
48158 char (*f) () = $ac_func;
48159 #endif
48160 #ifdef __cplusplus
48161 }
48162 #endif
48163
48164 int
48165 main ()
48166 {
48167 return f != $ac_func;
48168   ;
48169   return 0;
48170 }
48171 _ACEOF
48172 rm -f conftest.$ac_objext conftest$ac_exeext
48173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48174   (eval $ac_link) 2>conftest.er1
48175   ac_status=$?
48176   grep -v '^ *+' conftest.er1 >conftest.err
48177   rm -f conftest.er1
48178   cat conftest.err >&5
48179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48180   (exit $ac_status); } &&
48181          { ac_try='test -z "$ac_c_werror_flag"
48182                          || test ! -s conftest.err'
48183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48184   (eval $ac_try) 2>&5
48185   ac_status=$?
48186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48187   (exit $ac_status); }; } &&
48188          { ac_try='test -s conftest$ac_exeext'
48189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48190   (eval $ac_try) 2>&5
48191   ac_status=$?
48192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48193   (exit $ac_status); }; }; then
48194   eval "$as_ac_var=yes"
48195 else
48196   echo "$as_me: failed program was:" >&5
48197 sed 's/^/| /' conftest.$ac_ext >&5
48198
48199 eval "$as_ac_var=no"
48200 fi
48201 rm -f conftest.err conftest.$ac_objext \
48202       conftest$ac_exeext conftest.$ac_ext
48203 fi
48204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48206 if test `eval echo '${'$as_ac_var'}'` = yes; then
48207   cat >>confdefs.h <<_ACEOF
48208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48209 _ACEOF
48210
48211 fi
48212 done
48213
48214
48215
48216
48217 for ac_func in strerror
48218 do
48219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48220 echo "$as_me:$LINENO: checking for $ac_func" >&5
48221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48222 if eval "test \"\${$as_ac_var+set}\" = set"; then
48223   echo $ECHO_N "(cached) $ECHO_C" >&6
48224 else
48225   cat >conftest.$ac_ext <<_ACEOF
48226 /* confdefs.h.  */
48227 _ACEOF
48228 cat confdefs.h >>conftest.$ac_ext
48229 cat >>conftest.$ac_ext <<_ACEOF
48230 /* end confdefs.h.  */
48231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48233 #define $ac_func innocuous_$ac_func
48234
48235 /* System header to define __stub macros and hopefully few prototypes,
48236     which can conflict with char $ac_func (); below.
48237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48238     <limits.h> exists even on freestanding compilers.  */
48239
48240 #ifdef __STDC__
48241 # include <limits.h>
48242 #else
48243 # include <assert.h>
48244 #endif
48245
48246 #undef $ac_func
48247
48248 /* Override any gcc2 internal prototype to avoid an error.  */
48249 #ifdef __cplusplus
48250 extern "C"
48251 {
48252 #endif
48253 /* We use char because int might match the return type of a gcc2
48254    builtin and then its argument prototype would still apply.  */
48255 char $ac_func ();
48256 /* The GNU C library defines this for functions which it implements
48257     to always fail with ENOSYS.  Some functions are actually named
48258     something starting with __ and the normal name is an alias.  */
48259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48260 choke me
48261 #else
48262 char (*f) () = $ac_func;
48263 #endif
48264 #ifdef __cplusplus
48265 }
48266 #endif
48267
48268 int
48269 main ()
48270 {
48271 return f != $ac_func;
48272   ;
48273   return 0;
48274 }
48275 _ACEOF
48276 rm -f conftest.$ac_objext conftest$ac_exeext
48277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48278   (eval $ac_link) 2>conftest.er1
48279   ac_status=$?
48280   grep -v '^ *+' conftest.er1 >conftest.err
48281   rm -f conftest.er1
48282   cat conftest.err >&5
48283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48284   (exit $ac_status); } &&
48285          { ac_try='test -z "$ac_c_werror_flag"
48286                          || test ! -s conftest.err'
48287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48288   (eval $ac_try) 2>&5
48289   ac_status=$?
48290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48291   (exit $ac_status); }; } &&
48292          { ac_try='test -s conftest$ac_exeext'
48293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48294   (eval $ac_try) 2>&5
48295   ac_status=$?
48296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48297   (exit $ac_status); }; }; then
48298   eval "$as_ac_var=yes"
48299 else
48300   echo "$as_me: failed program was:" >&5
48301 sed 's/^/| /' conftest.$ac_ext >&5
48302
48303 eval "$as_ac_var=no"
48304 fi
48305 rm -f conftest.err conftest.$ac_objext \
48306       conftest$ac_exeext conftest.$ac_ext
48307 fi
48308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48310 if test `eval echo '${'$as_ac_var'}'` = yes; then
48311   cat >>confdefs.h <<_ACEOF
48312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48313 _ACEOF
48314
48315 fi
48316 done
48317
48318
48319
48320
48321 for ac_func in strrchr
48322 do
48323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48324 echo "$as_me:$LINENO: checking for $ac_func" >&5
48325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48326 if eval "test \"\${$as_ac_var+set}\" = set"; then
48327   echo $ECHO_N "(cached) $ECHO_C" >&6
48328 else
48329   cat >conftest.$ac_ext <<_ACEOF
48330 /* confdefs.h.  */
48331 _ACEOF
48332 cat confdefs.h >>conftest.$ac_ext
48333 cat >>conftest.$ac_ext <<_ACEOF
48334 /* end confdefs.h.  */
48335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48337 #define $ac_func innocuous_$ac_func
48338
48339 /* System header to define __stub macros and hopefully few prototypes,
48340     which can conflict with char $ac_func (); below.
48341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48342     <limits.h> exists even on freestanding compilers.  */
48343
48344 #ifdef __STDC__
48345 # include <limits.h>
48346 #else
48347 # include <assert.h>
48348 #endif
48349
48350 #undef $ac_func
48351
48352 /* Override any gcc2 internal prototype to avoid an error.  */
48353 #ifdef __cplusplus
48354 extern "C"
48355 {
48356 #endif
48357 /* We use char because int might match the return type of a gcc2
48358    builtin and then its argument prototype would still apply.  */
48359 char $ac_func ();
48360 /* The GNU C library defines this for functions which it implements
48361     to always fail with ENOSYS.  Some functions are actually named
48362     something starting with __ and the normal name is an alias.  */
48363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48364 choke me
48365 #else
48366 char (*f) () = $ac_func;
48367 #endif
48368 #ifdef __cplusplus
48369 }
48370 #endif
48371
48372 int
48373 main ()
48374 {
48375 return f != $ac_func;
48376   ;
48377   return 0;
48378 }
48379 _ACEOF
48380 rm -f conftest.$ac_objext conftest$ac_exeext
48381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48382   (eval $ac_link) 2>conftest.er1
48383   ac_status=$?
48384   grep -v '^ *+' conftest.er1 >conftest.err
48385   rm -f conftest.er1
48386   cat conftest.err >&5
48387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48388   (exit $ac_status); } &&
48389          { ac_try='test -z "$ac_c_werror_flag"
48390                          || test ! -s conftest.err'
48391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48392   (eval $ac_try) 2>&5
48393   ac_status=$?
48394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48395   (exit $ac_status); }; } &&
48396          { ac_try='test -s conftest$ac_exeext'
48397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48398   (eval $ac_try) 2>&5
48399   ac_status=$?
48400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48401   (exit $ac_status); }; }; then
48402   eval "$as_ac_var=yes"
48403 else
48404   echo "$as_me: failed program was:" >&5
48405 sed 's/^/| /' conftest.$ac_ext >&5
48406
48407 eval "$as_ac_var=no"
48408 fi
48409 rm -f conftest.err conftest.$ac_objext \
48410       conftest$ac_exeext conftest.$ac_ext
48411 fi
48412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48414 if test `eval echo '${'$as_ac_var'}'` = yes; then
48415   cat >>confdefs.h <<_ACEOF
48416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48417 _ACEOF
48418
48419 fi
48420 done
48421
48422
48423
48424
48425 for ac_func in sysctl
48426 do
48427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48428 echo "$as_me:$LINENO: checking for $ac_func" >&5
48429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48430 if eval "test \"\${$as_ac_var+set}\" = set"; then
48431   echo $ECHO_N "(cached) $ECHO_C" >&6
48432 else
48433   cat >conftest.$ac_ext <<_ACEOF
48434 /* confdefs.h.  */
48435 _ACEOF
48436 cat confdefs.h >>conftest.$ac_ext
48437 cat >>conftest.$ac_ext <<_ACEOF
48438 /* end confdefs.h.  */
48439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48441 #define $ac_func innocuous_$ac_func
48442
48443 /* System header to define __stub macros and hopefully few prototypes,
48444     which can conflict with char $ac_func (); below.
48445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48446     <limits.h> exists even on freestanding compilers.  */
48447
48448 #ifdef __STDC__
48449 # include <limits.h>
48450 #else
48451 # include <assert.h>
48452 #endif
48453
48454 #undef $ac_func
48455
48456 /* Override any gcc2 internal prototype to avoid an error.  */
48457 #ifdef __cplusplus
48458 extern "C"
48459 {
48460 #endif
48461 /* We use char because int might match the return type of a gcc2
48462    builtin and then its argument prototype would still apply.  */
48463 char $ac_func ();
48464 /* The GNU C library defines this for functions which it implements
48465     to always fail with ENOSYS.  Some functions are actually named
48466     something starting with __ and the normal name is an alias.  */
48467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48468 choke me
48469 #else
48470 char (*f) () = $ac_func;
48471 #endif
48472 #ifdef __cplusplus
48473 }
48474 #endif
48475
48476 int
48477 main ()
48478 {
48479 return f != $ac_func;
48480   ;
48481   return 0;
48482 }
48483 _ACEOF
48484 rm -f conftest.$ac_objext conftest$ac_exeext
48485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48486   (eval $ac_link) 2>conftest.er1
48487   ac_status=$?
48488   grep -v '^ *+' conftest.er1 >conftest.err
48489   rm -f conftest.er1
48490   cat conftest.err >&5
48491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48492   (exit $ac_status); } &&
48493          { ac_try='test -z "$ac_c_werror_flag"
48494                          || test ! -s conftest.err'
48495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48496   (eval $ac_try) 2>&5
48497   ac_status=$?
48498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48499   (exit $ac_status); }; } &&
48500          { ac_try='test -s conftest$ac_exeext'
48501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48502   (eval $ac_try) 2>&5
48503   ac_status=$?
48504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48505   (exit $ac_status); }; }; then
48506   eval "$as_ac_var=yes"
48507 else
48508   echo "$as_me: failed program was:" >&5
48509 sed 's/^/| /' conftest.$ac_ext >&5
48510
48511 eval "$as_ac_var=no"
48512 fi
48513 rm -f conftest.err conftest.$ac_objext \
48514       conftest$ac_exeext conftest.$ac_ext
48515 fi
48516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48518 if test `eval echo '${'$as_ac_var'}'` = yes; then
48519   cat >>confdefs.h <<_ACEOF
48520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48521 _ACEOF
48522
48523 fi
48524 done
48525
48526
48527
48528
48529 for ac_func in sysinfo
48530 do
48531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48532 echo "$as_me:$LINENO: checking for $ac_func" >&5
48533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48534 if eval "test \"\${$as_ac_var+set}\" = set"; then
48535   echo $ECHO_N "(cached) $ECHO_C" >&6
48536 else
48537   cat >conftest.$ac_ext <<_ACEOF
48538 /* confdefs.h.  */
48539 _ACEOF
48540 cat confdefs.h >>conftest.$ac_ext
48541 cat >>conftest.$ac_ext <<_ACEOF
48542 /* end confdefs.h.  */
48543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48545 #define $ac_func innocuous_$ac_func
48546
48547 /* System header to define __stub macros and hopefully few prototypes,
48548     which can conflict with char $ac_func (); below.
48549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48550     <limits.h> exists even on freestanding compilers.  */
48551
48552 #ifdef __STDC__
48553 # include <limits.h>
48554 #else
48555 # include <assert.h>
48556 #endif
48557
48558 #undef $ac_func
48559
48560 /* Override any gcc2 internal prototype to avoid an error.  */
48561 #ifdef __cplusplus
48562 extern "C"
48563 {
48564 #endif
48565 /* We use char because int might match the return type of a gcc2
48566    builtin and then its argument prototype would still apply.  */
48567 char $ac_func ();
48568 /* The GNU C library defines this for functions which it implements
48569     to always fail with ENOSYS.  Some functions are actually named
48570     something starting with __ and the normal name is an alias.  */
48571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48572 choke me
48573 #else
48574 char (*f) () = $ac_func;
48575 #endif
48576 #ifdef __cplusplus
48577 }
48578 #endif
48579
48580 int
48581 main ()
48582 {
48583 return f != $ac_func;
48584   ;
48585   return 0;
48586 }
48587 _ACEOF
48588 rm -f conftest.$ac_objext conftest$ac_exeext
48589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48590   (eval $ac_link) 2>conftest.er1
48591   ac_status=$?
48592   grep -v '^ *+' conftest.er1 >conftest.err
48593   rm -f conftest.er1
48594   cat conftest.err >&5
48595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48596   (exit $ac_status); } &&
48597          { ac_try='test -z "$ac_c_werror_flag"
48598                          || test ! -s conftest.err'
48599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48600   (eval $ac_try) 2>&5
48601   ac_status=$?
48602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48603   (exit $ac_status); }; } &&
48604          { ac_try='test -s conftest$ac_exeext'
48605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48606   (eval $ac_try) 2>&5
48607   ac_status=$?
48608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48609   (exit $ac_status); }; }; then
48610   eval "$as_ac_var=yes"
48611 else
48612   echo "$as_me: failed program was:" >&5
48613 sed 's/^/| /' conftest.$ac_ext >&5
48614
48615 eval "$as_ac_var=no"
48616 fi
48617 rm -f conftest.err conftest.$ac_objext \
48618       conftest$ac_exeext conftest.$ac_ext
48619 fi
48620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48622 if test `eval echo '${'$as_ac_var'}'` = yes; then
48623   cat >>confdefs.h <<_ACEOF
48624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48625 _ACEOF
48626
48627 fi
48628 done
48629
48630
48631
48632
48633 for ac_func in tcgetpgrp
48634 do
48635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48636 echo "$as_me:$LINENO: checking for $ac_func" >&5
48637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48638 if eval "test \"\${$as_ac_var+set}\" = set"; then
48639   echo $ECHO_N "(cached) $ECHO_C" >&6
48640 else
48641   cat >conftest.$ac_ext <<_ACEOF
48642 /* confdefs.h.  */
48643 _ACEOF
48644 cat confdefs.h >>conftest.$ac_ext
48645 cat >>conftest.$ac_ext <<_ACEOF
48646 /* end confdefs.h.  */
48647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48649 #define $ac_func innocuous_$ac_func
48650
48651 /* System header to define __stub macros and hopefully few prototypes,
48652     which can conflict with char $ac_func (); below.
48653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48654     <limits.h> exists even on freestanding compilers.  */
48655
48656 #ifdef __STDC__
48657 # include <limits.h>
48658 #else
48659 # include <assert.h>
48660 #endif
48661
48662 #undef $ac_func
48663
48664 /* Override any gcc2 internal prototype to avoid an error.  */
48665 #ifdef __cplusplus
48666 extern "C"
48667 {
48668 #endif
48669 /* We use char because int might match the return type of a gcc2
48670    builtin and then its argument prototype would still apply.  */
48671 char $ac_func ();
48672 /* The GNU C library defines this for functions which it implements
48673     to always fail with ENOSYS.  Some functions are actually named
48674     something starting with __ and the normal name is an alias.  */
48675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48676 choke me
48677 #else
48678 char (*f) () = $ac_func;
48679 #endif
48680 #ifdef __cplusplus
48681 }
48682 #endif
48683
48684 int
48685 main ()
48686 {
48687 return f != $ac_func;
48688   ;
48689   return 0;
48690 }
48691 _ACEOF
48692 rm -f conftest.$ac_objext conftest$ac_exeext
48693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48694   (eval $ac_link) 2>conftest.er1
48695   ac_status=$?
48696   grep -v '^ *+' conftest.er1 >conftest.err
48697   rm -f conftest.er1
48698   cat conftest.err >&5
48699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48700   (exit $ac_status); } &&
48701          { ac_try='test -z "$ac_c_werror_flag"
48702                          || test ! -s conftest.err'
48703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48704   (eval $ac_try) 2>&5
48705   ac_status=$?
48706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48707   (exit $ac_status); }; } &&
48708          { ac_try='test -s conftest$ac_exeext'
48709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48710   (eval $ac_try) 2>&5
48711   ac_status=$?
48712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48713   (exit $ac_status); }; }; then
48714   eval "$as_ac_var=yes"
48715 else
48716   echo "$as_me: failed program was:" >&5
48717 sed 's/^/| /' conftest.$ac_ext >&5
48718
48719 eval "$as_ac_var=no"
48720 fi
48721 rm -f conftest.err conftest.$ac_objext \
48722       conftest$ac_exeext conftest.$ac_ext
48723 fi
48724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48726 if test `eval echo '${'$as_ac_var'}'` = yes; then
48727   cat >>confdefs.h <<_ACEOF
48728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48729 _ACEOF
48730
48731 fi
48732 done
48733
48734
48735
48736
48737 for ac_func in wcrtomb
48738 do
48739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48740 echo "$as_me:$LINENO: checking for $ac_func" >&5
48741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48742 if eval "test \"\${$as_ac_var+set}\" = set"; then
48743   echo $ECHO_N "(cached) $ECHO_C" >&6
48744 else
48745   cat >conftest.$ac_ext <<_ACEOF
48746 /* confdefs.h.  */
48747 _ACEOF
48748 cat confdefs.h >>conftest.$ac_ext
48749 cat >>conftest.$ac_ext <<_ACEOF
48750 /* end confdefs.h.  */
48751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48753 #define $ac_func innocuous_$ac_func
48754
48755 /* System header to define __stub macros and hopefully few prototypes,
48756     which can conflict with char $ac_func (); below.
48757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48758     <limits.h> exists even on freestanding compilers.  */
48759
48760 #ifdef __STDC__
48761 # include <limits.h>
48762 #else
48763 # include <assert.h>
48764 #endif
48765
48766 #undef $ac_func
48767
48768 /* Override any gcc2 internal prototype to avoid an error.  */
48769 #ifdef __cplusplus
48770 extern "C"
48771 {
48772 #endif
48773 /* We use char because int might match the return type of a gcc2
48774    builtin and then its argument prototype would still apply.  */
48775 char $ac_func ();
48776 /* The GNU C library defines this for functions which it implements
48777     to always fail with ENOSYS.  Some functions are actually named
48778     something starting with __ and the normal name is an alias.  */
48779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48780 choke me
48781 #else
48782 char (*f) () = $ac_func;
48783 #endif
48784 #ifdef __cplusplus
48785 }
48786 #endif
48787
48788 int
48789 main ()
48790 {
48791 return f != $ac_func;
48792   ;
48793   return 0;
48794 }
48795 _ACEOF
48796 rm -f conftest.$ac_objext conftest$ac_exeext
48797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48798   (eval $ac_link) 2>conftest.er1
48799   ac_status=$?
48800   grep -v '^ *+' conftest.er1 >conftest.err
48801   rm -f conftest.er1
48802   cat conftest.err >&5
48803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48804   (exit $ac_status); } &&
48805          { ac_try='test -z "$ac_c_werror_flag"
48806                          || test ! -s conftest.err'
48807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48808   (eval $ac_try) 2>&5
48809   ac_status=$?
48810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48811   (exit $ac_status); }; } &&
48812          { ac_try='test -s conftest$ac_exeext'
48813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48814   (eval $ac_try) 2>&5
48815   ac_status=$?
48816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48817   (exit $ac_status); }; }; then
48818   eval "$as_ac_var=yes"
48819 else
48820   echo "$as_me: failed program was:" >&5
48821 sed 's/^/| /' conftest.$ac_ext >&5
48822
48823 eval "$as_ac_var=no"
48824 fi
48825 rm -f conftest.err conftest.$ac_objext \
48826       conftest$ac_exeext conftest.$ac_ext
48827 fi
48828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48830 if test `eval echo '${'$as_ac_var'}'` = yes; then
48831   cat >>confdefs.h <<_ACEOF
48832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48833 _ACEOF
48834
48835 fi
48836 done
48837
48838
48839
48840
48841 for ac_header in sys/sysmacros.h
48842 do
48843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48845   echo "$as_me:$LINENO: checking for $ac_header" >&5
48846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48848   echo $ECHO_N "(cached) $ECHO_C" >&6
48849 fi
48850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48852 else
48853   # Is the header compilable?
48854 echo "$as_me:$LINENO: checking $ac_header usability" >&5
48855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
48856 cat >conftest.$ac_ext <<_ACEOF
48857 /* confdefs.h.  */
48858 _ACEOF
48859 cat confdefs.h >>conftest.$ac_ext
48860 cat >>conftest.$ac_ext <<_ACEOF
48861 /* end confdefs.h.  */
48862 $ac_includes_default
48863 #include <$ac_header>
48864 _ACEOF
48865 rm -f conftest.$ac_objext
48866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48867   (eval $ac_compile) 2>conftest.er1
48868   ac_status=$?
48869   grep -v '^ *+' conftest.er1 >conftest.err
48870   rm -f conftest.er1
48871   cat conftest.err >&5
48872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48873   (exit $ac_status); } &&
48874          { ac_try='test -z "$ac_c_werror_flag"
48875                          || test ! -s conftest.err'
48876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48877   (eval $ac_try) 2>&5
48878   ac_status=$?
48879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48880   (exit $ac_status); }; } &&
48881          { ac_try='test -s conftest.$ac_objext'
48882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48883   (eval $ac_try) 2>&5
48884   ac_status=$?
48885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48886   (exit $ac_status); }; }; then
48887   ac_header_compiler=yes
48888 else
48889   echo "$as_me: failed program was:" >&5
48890 sed 's/^/| /' conftest.$ac_ext >&5
48891
48892 ac_header_compiler=no
48893 fi
48894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48896 echo "${ECHO_T}$ac_header_compiler" >&6
48897
48898 # Is the header present?
48899 echo "$as_me:$LINENO: checking $ac_header presence" >&5
48900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
48901 cat >conftest.$ac_ext <<_ACEOF
48902 /* confdefs.h.  */
48903 _ACEOF
48904 cat confdefs.h >>conftest.$ac_ext
48905 cat >>conftest.$ac_ext <<_ACEOF
48906 /* end confdefs.h.  */
48907 #include <$ac_header>
48908 _ACEOF
48909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48910   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48911   ac_status=$?
48912   grep -v '^ *+' conftest.er1 >conftest.err
48913   rm -f conftest.er1
48914   cat conftest.err >&5
48915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48916   (exit $ac_status); } >/dev/null; then
48917   if test -s conftest.err; then
48918     ac_cpp_err=$ac_c_preproc_warn_flag
48919     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
48920   else
48921     ac_cpp_err=
48922   fi
48923 else
48924   ac_cpp_err=yes
48925 fi
48926 if test -z "$ac_cpp_err"; then
48927   ac_header_preproc=yes
48928 else
48929   echo "$as_me: failed program was:" >&5
48930 sed 's/^/| /' conftest.$ac_ext >&5
48931
48932   ac_header_preproc=no
48933 fi
48934 rm -f conftest.err conftest.$ac_ext
48935 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48936 echo "${ECHO_T}$ac_header_preproc" >&6
48937
48938 # So?  What about this header?
48939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48940   yes:no: )
48941     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48943     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48945     ac_header_preproc=yes
48946     ;;
48947   no:yes:* )
48948     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48950     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
48951 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
48952     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48954     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
48955 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
48956     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48958     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48960     (
48961       cat <<\_ASBOX
48962 ## ------------------------------------ ##
48963 ## Report this to bug-coreutils@gnu.org ##
48964 ## ------------------------------------ ##
48965 _ASBOX
48966     ) |
48967       sed "s/^/$as_me: WARNING:     /" >&2
48968     ;;
48969 esac
48970 echo "$as_me:$LINENO: checking for $ac_header" >&5
48971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48973   echo $ECHO_N "(cached) $ECHO_C" >&6
48974 else
48975   eval "$as_ac_Header=\$ac_header_preproc"
48976 fi
48977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48979
48980 fi
48981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48982   cat >>confdefs.h <<_ACEOF
48983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48984 _ACEOF
48985
48986 fi
48987
48988 done
48989
48990
48991
48992
48993 for ac_func in statvfs
48994 do
48995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48996 echo "$as_me:$LINENO: checking for $ac_func" >&5
48997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48998 if eval "test \"\${$as_ac_var+set}\" = set"; then
48999   echo $ECHO_N "(cached) $ECHO_C" >&6
49000 else
49001   cat >conftest.$ac_ext <<_ACEOF
49002 /* confdefs.h.  */
49003 _ACEOF
49004 cat confdefs.h >>conftest.$ac_ext
49005 cat >>conftest.$ac_ext <<_ACEOF
49006 /* end confdefs.h.  */
49007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49009 #define $ac_func innocuous_$ac_func
49010
49011 /* System header to define __stub macros and hopefully few prototypes,
49012     which can conflict with char $ac_func (); below.
49013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49014     <limits.h> exists even on freestanding compilers.  */
49015
49016 #ifdef __STDC__
49017 # include <limits.h>
49018 #else
49019 # include <assert.h>
49020 #endif
49021
49022 #undef $ac_func
49023
49024 /* Override any gcc2 internal prototype to avoid an error.  */
49025 #ifdef __cplusplus
49026 extern "C"
49027 {
49028 #endif
49029 /* We use char because int might match the return type of a gcc2
49030    builtin and then its argument prototype would still apply.  */
49031 char $ac_func ();
49032 /* The GNU C library defines this for functions which it implements
49033     to always fail with ENOSYS.  Some functions are actually named
49034     something starting with __ and the normal name is an alias.  */
49035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49036 choke me
49037 #else
49038 char (*f) () = $ac_func;
49039 #endif
49040 #ifdef __cplusplus
49041 }
49042 #endif
49043
49044 int
49045 main ()
49046 {
49047 return f != $ac_func;
49048   ;
49049   return 0;
49050 }
49051 _ACEOF
49052 rm -f conftest.$ac_objext conftest$ac_exeext
49053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49054   (eval $ac_link) 2>conftest.er1
49055   ac_status=$?
49056   grep -v '^ *+' conftest.er1 >conftest.err
49057   rm -f conftest.er1
49058   cat conftest.err >&5
49059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49060   (exit $ac_status); } &&
49061          { ac_try='test -z "$ac_c_werror_flag"
49062                          || test ! -s conftest.err'
49063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49064   (eval $ac_try) 2>&5
49065   ac_status=$?
49066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49067   (exit $ac_status); }; } &&
49068          { ac_try='test -s conftest$ac_exeext'
49069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49070   (eval $ac_try) 2>&5
49071   ac_status=$?
49072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49073   (exit $ac_status); }; }; then
49074   eval "$as_ac_var=yes"
49075 else
49076   echo "$as_me: failed program was:" >&5
49077 sed 's/^/| /' conftest.$ac_ext >&5
49078
49079 eval "$as_ac_var=no"
49080 fi
49081 rm -f conftest.err conftest.$ac_objext \
49082       conftest$ac_exeext conftest.$ac_ext
49083 fi
49084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49086 if test `eval echo '${'$as_ac_var'}'` = yes; then
49087   cat >>confdefs.h <<_ACEOF
49088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49089 _ACEOF
49090
49091 fi
49092 done
49093
49094
49095
49096
49097   :
49098
49099
49100
49101
49102
49103
49104
49105
49106
49107
49108
49109
49110
49111
49112
49113 for ac_header in sys/mount.h
49114 do
49115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49116 echo "$as_me:$LINENO: checking for $ac_header" >&5
49117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49119   echo $ECHO_N "(cached) $ECHO_C" >&6
49120 else
49121   cat >conftest.$ac_ext <<_ACEOF
49122 /* confdefs.h.  */
49123 _ACEOF
49124 cat confdefs.h >>conftest.$ac_ext
49125 cat >>conftest.$ac_ext <<_ACEOF
49126 /* end confdefs.h.  */
49127 $ac_includes_default
49128      #if HAVE_SYS_PARAM_H
49129        #include <sys/param.h>
49130       #endif
49131
49132 #include <$ac_header>
49133 _ACEOF
49134 rm -f conftest.$ac_objext
49135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49136   (eval $ac_compile) 2>conftest.er1
49137   ac_status=$?
49138   grep -v '^ *+' conftest.er1 >conftest.err
49139   rm -f conftest.er1
49140   cat conftest.err >&5
49141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49142   (exit $ac_status); } &&
49143          { ac_try='test -z "$ac_c_werror_flag"
49144                          || test ! -s conftest.err'
49145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49146   (eval $ac_try) 2>&5
49147   ac_status=$?
49148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49149   (exit $ac_status); }; } &&
49150          { ac_try='test -s conftest.$ac_objext'
49151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49152   (eval $ac_try) 2>&5
49153   ac_status=$?
49154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49155   (exit $ac_status); }; }; then
49156   eval "$as_ac_Header=yes"
49157 else
49158   echo "$as_me: failed program was:" >&5
49159 sed 's/^/| /' conftest.$ac_ext >&5
49160
49161 eval "$as_ac_Header=no"
49162 fi
49163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49164 fi
49165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49168   cat >>confdefs.h <<_ACEOF
49169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49170 _ACEOF
49171
49172 fi
49173
49174 done
49175
49176
49177   :
49178
49179
49180
49181
49182
49183
49184   # For `struct statfs' on Ultrix 4.4.
49185
49186
49187
49188 for ac_header in netinet/in.h nfs/nfs_clnt.h nfs/vfs.h
49189 do
49190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49191 echo "$as_me:$LINENO: checking for $ac_header" >&5
49192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49194   echo $ECHO_N "(cached) $ECHO_C" >&6
49195 else
49196   cat >conftest.$ac_ext <<_ACEOF
49197 /* confdefs.h.  */
49198 _ACEOF
49199 cat confdefs.h >>conftest.$ac_ext
49200 cat >>conftest.$ac_ext <<_ACEOF
49201 /* end confdefs.h.  */
49202 $ac_includes_default
49203
49204 #include <$ac_header>
49205 _ACEOF
49206 rm -f conftest.$ac_objext
49207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49208   (eval $ac_compile) 2>conftest.er1
49209   ac_status=$?
49210   grep -v '^ *+' conftest.er1 >conftest.err
49211   rm -f conftest.er1
49212   cat conftest.err >&5
49213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49214   (exit $ac_status); } &&
49215          { ac_try='test -z "$ac_c_werror_flag"
49216                          || test ! -s conftest.err'
49217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49218   (eval $ac_try) 2>&5
49219   ac_status=$?
49220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49221   (exit $ac_status); }; } &&
49222          { ac_try='test -s conftest.$ac_objext'
49223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49224   (eval $ac_try) 2>&5
49225   ac_status=$?
49226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49227   (exit $ac_status); }; }; then
49228   eval "$as_ac_Header=yes"
49229 else
49230   echo "$as_me: failed program was:" >&5
49231 sed 's/^/| /' conftest.$ac_ext >&5
49232
49233 eval "$as_ac_Header=no"
49234 fi
49235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49236 fi
49237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49240   cat >>confdefs.h <<_ACEOF
49241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49242 _ACEOF
49243
49244 fi
49245
49246 done
49247
49248
49249
49250
49251
49252   statxfs_includes="\
49253 $ac_includes_default
49254 #if HAVE_SYS_STATVFS_H
49255 # include <sys/statvfs.h>
49256 #endif
49257 #if HAVE_SYS_VFS_H
49258 # include <sys/vfs.h>
49259 #endif
49260 #if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
49261 # if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
49262 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
49263 #  include <sys/param.h>
49264 #  include <sys/mount.h>
49265 # elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
49266 /* Ultrix 4.4 needs these for the declaration of struct statfs.  */
49267 #  include <netinet/in.h>
49268 #  include <nfs/nfs_clnt.h>
49269 #  include <nfs/vfs.h>
49270 # endif
49271 #endif
49272 "
49273   echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
49274 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
49275 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
49276   echo $ECHO_N "(cached) $ECHO_C" >&6
49277 else
49278   cat >conftest.$ac_ext <<_ACEOF
49279 /* confdefs.h.  */
49280 _ACEOF
49281 cat confdefs.h >>conftest.$ac_ext
49282 cat >>conftest.$ac_ext <<_ACEOF
49283 /* end confdefs.h.  */
49284 $statxfs_includes
49285
49286 int
49287 main ()
49288 {
49289 static struct statfs ac_aggr;
49290 if (ac_aggr.f_basetype)
49291 return 0;
49292   ;
49293   return 0;
49294 }
49295 _ACEOF
49296 rm -f conftest.$ac_objext
49297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49298   (eval $ac_compile) 2>conftest.er1
49299   ac_status=$?
49300   grep -v '^ *+' conftest.er1 >conftest.err
49301   rm -f conftest.er1
49302   cat conftest.err >&5
49303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49304   (exit $ac_status); } &&
49305          { ac_try='test -z "$ac_c_werror_flag"
49306                          || test ! -s conftest.err'
49307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49308   (eval $ac_try) 2>&5
49309   ac_status=$?
49310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49311   (exit $ac_status); }; } &&
49312          { ac_try='test -s conftest.$ac_objext'
49313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49314   (eval $ac_try) 2>&5
49315   ac_status=$?
49316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49317   (exit $ac_status); }; }; then
49318   ac_cv_member_struct_statfs_f_basetype=yes
49319 else
49320   echo "$as_me: failed program was:" >&5
49321 sed 's/^/| /' conftest.$ac_ext >&5
49322
49323 cat >conftest.$ac_ext <<_ACEOF
49324 /* confdefs.h.  */
49325 _ACEOF
49326 cat confdefs.h >>conftest.$ac_ext
49327 cat >>conftest.$ac_ext <<_ACEOF
49328 /* end confdefs.h.  */
49329 $statxfs_includes
49330
49331 int
49332 main ()
49333 {
49334 static struct statfs ac_aggr;
49335 if (sizeof ac_aggr.f_basetype)
49336 return 0;
49337   ;
49338   return 0;
49339 }
49340 _ACEOF
49341 rm -f conftest.$ac_objext
49342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49343   (eval $ac_compile) 2>conftest.er1
49344   ac_status=$?
49345   grep -v '^ *+' conftest.er1 >conftest.err
49346   rm -f conftest.er1
49347   cat conftest.err >&5
49348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49349   (exit $ac_status); } &&
49350          { ac_try='test -z "$ac_c_werror_flag"
49351                          || test ! -s conftest.err'
49352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49353   (eval $ac_try) 2>&5
49354   ac_status=$?
49355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49356   (exit $ac_status); }; } &&
49357          { ac_try='test -s conftest.$ac_objext'
49358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49359   (eval $ac_try) 2>&5
49360   ac_status=$?
49361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49362   (exit $ac_status); }; }; then
49363   ac_cv_member_struct_statfs_f_basetype=yes
49364 else
49365   echo "$as_me: failed program was:" >&5
49366 sed 's/^/| /' conftest.$ac_ext >&5
49367
49368 ac_cv_member_struct_statfs_f_basetype=no
49369 fi
49370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49371 fi
49372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49373 fi
49374 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
49375 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
49376 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
49377
49378 cat >>confdefs.h <<_ACEOF
49379 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
49380 _ACEOF
49381
49382
49383 fi
49384
49385   echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
49386 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
49387 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
49388   echo $ECHO_N "(cached) $ECHO_C" >&6
49389 else
49390   cat >conftest.$ac_ext <<_ACEOF
49391 /* confdefs.h.  */
49392 _ACEOF
49393 cat confdefs.h >>conftest.$ac_ext
49394 cat >>conftest.$ac_ext <<_ACEOF
49395 /* end confdefs.h.  */
49396 $statxfs_includes
49397
49398 int
49399 main ()
49400 {
49401 static struct statvfs ac_aggr;
49402 if (ac_aggr.f_basetype)
49403 return 0;
49404   ;
49405   return 0;
49406 }
49407 _ACEOF
49408 rm -f conftest.$ac_objext
49409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49410   (eval $ac_compile) 2>conftest.er1
49411   ac_status=$?
49412   grep -v '^ *+' conftest.er1 >conftest.err
49413   rm -f conftest.er1
49414   cat conftest.err >&5
49415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49416   (exit $ac_status); } &&
49417          { ac_try='test -z "$ac_c_werror_flag"
49418                          || test ! -s conftest.err'
49419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49420   (eval $ac_try) 2>&5
49421   ac_status=$?
49422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49423   (exit $ac_status); }; } &&
49424          { ac_try='test -s conftest.$ac_objext'
49425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49426   (eval $ac_try) 2>&5
49427   ac_status=$?
49428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49429   (exit $ac_status); }; }; then
49430   ac_cv_member_struct_statvfs_f_basetype=yes
49431 else
49432   echo "$as_me: failed program was:" >&5
49433 sed 's/^/| /' conftest.$ac_ext >&5
49434
49435 cat >conftest.$ac_ext <<_ACEOF
49436 /* confdefs.h.  */
49437 _ACEOF
49438 cat confdefs.h >>conftest.$ac_ext
49439 cat >>conftest.$ac_ext <<_ACEOF
49440 /* end confdefs.h.  */
49441 $statxfs_includes
49442
49443 int
49444 main ()
49445 {
49446 static struct statvfs ac_aggr;
49447 if (sizeof ac_aggr.f_basetype)
49448 return 0;
49449   ;
49450   return 0;
49451 }
49452 _ACEOF
49453 rm -f conftest.$ac_objext
49454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49455   (eval $ac_compile) 2>conftest.er1
49456   ac_status=$?
49457   grep -v '^ *+' conftest.er1 >conftest.err
49458   rm -f conftest.er1
49459   cat conftest.err >&5
49460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49461   (exit $ac_status); } &&
49462          { ac_try='test -z "$ac_c_werror_flag"
49463                          || test ! -s conftest.err'
49464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49465   (eval $ac_try) 2>&5
49466   ac_status=$?
49467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49468   (exit $ac_status); }; } &&
49469          { ac_try='test -s conftest.$ac_objext'
49470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49471   (eval $ac_try) 2>&5
49472   ac_status=$?
49473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49474   (exit $ac_status); }; }; then
49475   ac_cv_member_struct_statvfs_f_basetype=yes
49476 else
49477   echo "$as_me: failed program was:" >&5
49478 sed 's/^/| /' conftest.$ac_ext >&5
49479
49480 ac_cv_member_struct_statvfs_f_basetype=no
49481 fi
49482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49483 fi
49484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49485 fi
49486 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
49487 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
49488 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
49489
49490 cat >>confdefs.h <<_ACEOF
49491 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
49492 _ACEOF
49493
49494
49495 fi
49496
49497   echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
49498 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
49499 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
49500   echo $ECHO_N "(cached) $ECHO_C" >&6
49501 else
49502   cat >conftest.$ac_ext <<_ACEOF
49503 /* confdefs.h.  */
49504 _ACEOF
49505 cat confdefs.h >>conftest.$ac_ext
49506 cat >>conftest.$ac_ext <<_ACEOF
49507 /* end confdefs.h.  */
49508 $statxfs_includes
49509
49510 int
49511 main ()
49512 {
49513 static struct statfs ac_aggr;
49514 if (ac_aggr.f_fstypename)
49515 return 0;
49516   ;
49517   return 0;
49518 }
49519 _ACEOF
49520 rm -f conftest.$ac_objext
49521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49522   (eval $ac_compile) 2>conftest.er1
49523   ac_status=$?
49524   grep -v '^ *+' conftest.er1 >conftest.err
49525   rm -f conftest.er1
49526   cat conftest.err >&5
49527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49528   (exit $ac_status); } &&
49529          { ac_try='test -z "$ac_c_werror_flag"
49530                          || test ! -s conftest.err'
49531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49532   (eval $ac_try) 2>&5
49533   ac_status=$?
49534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49535   (exit $ac_status); }; } &&
49536          { ac_try='test -s conftest.$ac_objext'
49537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49538   (eval $ac_try) 2>&5
49539   ac_status=$?
49540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49541   (exit $ac_status); }; }; then
49542   ac_cv_member_struct_statfs_f_fstypename=yes
49543 else
49544   echo "$as_me: failed program was:" >&5
49545 sed 's/^/| /' conftest.$ac_ext >&5
49546
49547 cat >conftest.$ac_ext <<_ACEOF
49548 /* confdefs.h.  */
49549 _ACEOF
49550 cat confdefs.h >>conftest.$ac_ext
49551 cat >>conftest.$ac_ext <<_ACEOF
49552 /* end confdefs.h.  */
49553 $statxfs_includes
49554
49555 int
49556 main ()
49557 {
49558 static struct statfs ac_aggr;
49559 if (sizeof ac_aggr.f_fstypename)
49560 return 0;
49561   ;
49562   return 0;
49563 }
49564 _ACEOF
49565 rm -f conftest.$ac_objext
49566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49567   (eval $ac_compile) 2>conftest.er1
49568   ac_status=$?
49569   grep -v '^ *+' conftest.er1 >conftest.err
49570   rm -f conftest.er1
49571   cat conftest.err >&5
49572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49573   (exit $ac_status); } &&
49574          { ac_try='test -z "$ac_c_werror_flag"
49575                          || test ! -s conftest.err'
49576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49577   (eval $ac_try) 2>&5
49578   ac_status=$?
49579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49580   (exit $ac_status); }; } &&
49581          { ac_try='test -s conftest.$ac_objext'
49582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49583   (eval $ac_try) 2>&5
49584   ac_status=$?
49585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49586   (exit $ac_status); }; }; then
49587   ac_cv_member_struct_statfs_f_fstypename=yes
49588 else
49589   echo "$as_me: failed program was:" >&5
49590 sed 's/^/| /' conftest.$ac_ext >&5
49591
49592 ac_cv_member_struct_statfs_f_fstypename=no
49593 fi
49594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49595 fi
49596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49597 fi
49598 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
49599 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
49600 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
49601
49602 cat >>confdefs.h <<_ACEOF
49603 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
49604 _ACEOF
49605
49606
49607 fi
49608
49609   echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
49610 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
49611 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
49612   echo $ECHO_N "(cached) $ECHO_C" >&6
49613 else
49614   cat >conftest.$ac_ext <<_ACEOF
49615 /* confdefs.h.  */
49616 _ACEOF
49617 cat confdefs.h >>conftest.$ac_ext
49618 cat >>conftest.$ac_ext <<_ACEOF
49619 /* end confdefs.h.  */
49620 $statxfs_includes
49621
49622 int
49623 main ()
49624 {
49625 static struct statfs ac_aggr;
49626 if (ac_aggr.f_type)
49627 return 0;
49628   ;
49629   return 0;
49630 }
49631 _ACEOF
49632 rm -f conftest.$ac_objext
49633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49634   (eval $ac_compile) 2>conftest.er1
49635   ac_status=$?
49636   grep -v '^ *+' conftest.er1 >conftest.err
49637   rm -f conftest.er1
49638   cat conftest.err >&5
49639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49640   (exit $ac_status); } &&
49641          { ac_try='test -z "$ac_c_werror_flag"
49642                          || test ! -s conftest.err'
49643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49644   (eval $ac_try) 2>&5
49645   ac_status=$?
49646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49647   (exit $ac_status); }; } &&
49648          { ac_try='test -s conftest.$ac_objext'
49649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49650   (eval $ac_try) 2>&5
49651   ac_status=$?
49652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49653   (exit $ac_status); }; }; then
49654   ac_cv_member_struct_statfs_f_type=yes
49655 else
49656   echo "$as_me: failed program was:" >&5
49657 sed 's/^/| /' conftest.$ac_ext >&5
49658
49659 cat >conftest.$ac_ext <<_ACEOF
49660 /* confdefs.h.  */
49661 _ACEOF
49662 cat confdefs.h >>conftest.$ac_ext
49663 cat >>conftest.$ac_ext <<_ACEOF
49664 /* end confdefs.h.  */
49665 $statxfs_includes
49666
49667 int
49668 main ()
49669 {
49670 static struct statfs ac_aggr;
49671 if (sizeof ac_aggr.f_type)
49672 return 0;
49673   ;
49674   return 0;
49675 }
49676 _ACEOF
49677 rm -f conftest.$ac_objext
49678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49679   (eval $ac_compile) 2>conftest.er1
49680   ac_status=$?
49681   grep -v '^ *+' conftest.er1 >conftest.err
49682   rm -f conftest.er1
49683   cat conftest.err >&5
49684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49685   (exit $ac_status); } &&
49686          { ac_try='test -z "$ac_c_werror_flag"
49687                          || test ! -s conftest.err'
49688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49689   (eval $ac_try) 2>&5
49690   ac_status=$?
49691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49692   (exit $ac_status); }; } &&
49693          { ac_try='test -s conftest.$ac_objext'
49694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49695   (eval $ac_try) 2>&5
49696   ac_status=$?
49697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49698   (exit $ac_status); }; }; then
49699   ac_cv_member_struct_statfs_f_type=yes
49700 else
49701   echo "$as_me: failed program was:" >&5
49702 sed 's/^/| /' conftest.$ac_ext >&5
49703
49704 ac_cv_member_struct_statfs_f_type=no
49705 fi
49706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49707 fi
49708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49709 fi
49710 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
49711 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
49712 if test $ac_cv_member_struct_statfs_f_type = yes; then
49713
49714 cat >>confdefs.h <<_ACEOF
49715 #define HAVE_STRUCT_STATFS_F_TYPE 1
49716 _ACEOF
49717
49718
49719 fi
49720
49721   echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
49722 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
49723 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
49724   echo $ECHO_N "(cached) $ECHO_C" >&6
49725 else
49726   cat >conftest.$ac_ext <<_ACEOF
49727 /* confdefs.h.  */
49728 _ACEOF
49729 cat confdefs.h >>conftest.$ac_ext
49730 cat >>conftest.$ac_ext <<_ACEOF
49731 /* end confdefs.h.  */
49732 $statxfs_includes
49733
49734 int
49735 main ()
49736 {
49737 static struct statvfs ac_aggr;
49738 if (ac_aggr.f_type)
49739 return 0;
49740   ;
49741   return 0;
49742 }
49743 _ACEOF
49744 rm -f conftest.$ac_objext
49745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49746   (eval $ac_compile) 2>conftest.er1
49747   ac_status=$?
49748   grep -v '^ *+' conftest.er1 >conftest.err
49749   rm -f conftest.er1
49750   cat conftest.err >&5
49751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49752   (exit $ac_status); } &&
49753          { ac_try='test -z "$ac_c_werror_flag"
49754                          || test ! -s conftest.err'
49755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49756   (eval $ac_try) 2>&5
49757   ac_status=$?
49758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49759   (exit $ac_status); }; } &&
49760          { ac_try='test -s conftest.$ac_objext'
49761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49762   (eval $ac_try) 2>&5
49763   ac_status=$?
49764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49765   (exit $ac_status); }; }; then
49766   ac_cv_member_struct_statvfs_f_type=yes
49767 else
49768   echo "$as_me: failed program was:" >&5
49769 sed 's/^/| /' conftest.$ac_ext >&5
49770
49771 cat >conftest.$ac_ext <<_ACEOF
49772 /* confdefs.h.  */
49773 _ACEOF
49774 cat confdefs.h >>conftest.$ac_ext
49775 cat >>conftest.$ac_ext <<_ACEOF
49776 /* end confdefs.h.  */
49777 $statxfs_includes
49778
49779 int
49780 main ()
49781 {
49782 static struct statvfs ac_aggr;
49783 if (sizeof ac_aggr.f_type)
49784 return 0;
49785   ;
49786   return 0;
49787 }
49788 _ACEOF
49789 rm -f conftest.$ac_objext
49790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49791   (eval $ac_compile) 2>conftest.er1
49792   ac_status=$?
49793   grep -v '^ *+' conftest.er1 >conftest.err
49794   rm -f conftest.er1
49795   cat conftest.err >&5
49796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49797   (exit $ac_status); } &&
49798          { ac_try='test -z "$ac_c_werror_flag"
49799                          || test ! -s conftest.err'
49800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49801   (eval $ac_try) 2>&5
49802   ac_status=$?
49803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49804   (exit $ac_status); }; } &&
49805          { ac_try='test -s conftest.$ac_objext'
49806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49807   (eval $ac_try) 2>&5
49808   ac_status=$?
49809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49810   (exit $ac_status); }; }; then
49811   ac_cv_member_struct_statvfs_f_type=yes
49812 else
49813   echo "$as_me: failed program was:" >&5
49814 sed 's/^/| /' conftest.$ac_ext >&5
49815
49816 ac_cv_member_struct_statvfs_f_type=no
49817 fi
49818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49819 fi
49820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49821 fi
49822 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
49823 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
49824 if test $ac_cv_member_struct_statvfs_f_type = yes; then
49825
49826 cat >>confdefs.h <<_ACEOF
49827 #define HAVE_STRUCT_STATVFS_F_TYPE 1
49828 _ACEOF
49829
49830
49831 fi
49832
49833   echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
49834 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
49835 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
49836   echo $ECHO_N "(cached) $ECHO_C" >&6
49837 else
49838   cat >conftest.$ac_ext <<_ACEOF
49839 /* confdefs.h.  */
49840 _ACEOF
49841 cat confdefs.h >>conftest.$ac_ext
49842 cat >>conftest.$ac_ext <<_ACEOF
49843 /* end confdefs.h.  */
49844 $statxfs_includes
49845
49846 int
49847 main ()
49848 {
49849 static struct statfs ac_aggr;
49850 if (ac_aggr.f_fsid.__val)
49851 return 0;
49852   ;
49853   return 0;
49854 }
49855 _ACEOF
49856 rm -f conftest.$ac_objext
49857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49858   (eval $ac_compile) 2>conftest.er1
49859   ac_status=$?
49860   grep -v '^ *+' conftest.er1 >conftest.err
49861   rm -f conftest.er1
49862   cat conftest.err >&5
49863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49864   (exit $ac_status); } &&
49865          { ac_try='test -z "$ac_c_werror_flag"
49866                          || test ! -s conftest.err'
49867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49868   (eval $ac_try) 2>&5
49869   ac_status=$?
49870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49871   (exit $ac_status); }; } &&
49872          { ac_try='test -s conftest.$ac_objext'
49873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49874   (eval $ac_try) 2>&5
49875   ac_status=$?
49876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49877   (exit $ac_status); }; }; then
49878   ac_cv_member_struct_statfs_f_fsid___val=yes
49879 else
49880   echo "$as_me: failed program was:" >&5
49881 sed 's/^/| /' conftest.$ac_ext >&5
49882
49883 cat >conftest.$ac_ext <<_ACEOF
49884 /* confdefs.h.  */
49885 _ACEOF
49886 cat confdefs.h >>conftest.$ac_ext
49887 cat >>conftest.$ac_ext <<_ACEOF
49888 /* end confdefs.h.  */
49889 $statxfs_includes
49890
49891 int
49892 main ()
49893 {
49894 static struct statfs ac_aggr;
49895 if (sizeof ac_aggr.f_fsid.__val)
49896 return 0;
49897   ;
49898   return 0;
49899 }
49900 _ACEOF
49901 rm -f conftest.$ac_objext
49902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49903   (eval $ac_compile) 2>conftest.er1
49904   ac_status=$?
49905   grep -v '^ *+' conftest.er1 >conftest.err
49906   rm -f conftest.er1
49907   cat conftest.err >&5
49908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49909   (exit $ac_status); } &&
49910          { ac_try='test -z "$ac_c_werror_flag"
49911                          || test ! -s conftest.err'
49912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49913   (eval $ac_try) 2>&5
49914   ac_status=$?
49915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49916   (exit $ac_status); }; } &&
49917          { ac_try='test -s conftest.$ac_objext'
49918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49919   (eval $ac_try) 2>&5
49920   ac_status=$?
49921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49922   (exit $ac_status); }; }; then
49923   ac_cv_member_struct_statfs_f_fsid___val=yes
49924 else
49925   echo "$as_me: failed program was:" >&5
49926 sed 's/^/| /' conftest.$ac_ext >&5
49927
49928 ac_cv_member_struct_statfs_f_fsid___val=no
49929 fi
49930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49931 fi
49932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49933 fi
49934 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
49935 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
49936 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
49937
49938 cat >>confdefs.h <<_ACEOF
49939 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
49940 _ACEOF
49941
49942
49943 fi
49944
49945   echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
49946 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
49947 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
49948   echo $ECHO_N "(cached) $ECHO_C" >&6
49949 else
49950   cat >conftest.$ac_ext <<_ACEOF
49951 /* confdefs.h.  */
49952 _ACEOF
49953 cat confdefs.h >>conftest.$ac_ext
49954 cat >>conftest.$ac_ext <<_ACEOF
49955 /* end confdefs.h.  */
49956 $statxfs_includes
49957
49958 int
49959 main ()
49960 {
49961 static struct statvfs ac_aggr;
49962 if (ac_aggr.f_fsid.__val)
49963 return 0;
49964   ;
49965   return 0;
49966 }
49967 _ACEOF
49968 rm -f conftest.$ac_objext
49969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49970   (eval $ac_compile) 2>conftest.er1
49971   ac_status=$?
49972   grep -v '^ *+' conftest.er1 >conftest.err
49973   rm -f conftest.er1
49974   cat conftest.err >&5
49975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49976   (exit $ac_status); } &&
49977          { ac_try='test -z "$ac_c_werror_flag"
49978                          || test ! -s conftest.err'
49979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49980   (eval $ac_try) 2>&5
49981   ac_status=$?
49982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49983   (exit $ac_status); }; } &&
49984          { ac_try='test -s conftest.$ac_objext'
49985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49986   (eval $ac_try) 2>&5
49987   ac_status=$?
49988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49989   (exit $ac_status); }; }; then
49990   ac_cv_member_struct_statvfs_f_fsid___val=yes
49991 else
49992   echo "$as_me: failed program was:" >&5
49993 sed 's/^/| /' conftest.$ac_ext >&5
49994
49995 cat >conftest.$ac_ext <<_ACEOF
49996 /* confdefs.h.  */
49997 _ACEOF
49998 cat confdefs.h >>conftest.$ac_ext
49999 cat >>conftest.$ac_ext <<_ACEOF
50000 /* end confdefs.h.  */
50001 $statxfs_includes
50002
50003 int
50004 main ()
50005 {
50006 static struct statvfs ac_aggr;
50007 if (sizeof ac_aggr.f_fsid.__val)
50008 return 0;
50009   ;
50010   return 0;
50011 }
50012 _ACEOF
50013 rm -f conftest.$ac_objext
50014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50015   (eval $ac_compile) 2>conftest.er1
50016   ac_status=$?
50017   grep -v '^ *+' conftest.er1 >conftest.err
50018   rm -f conftest.er1
50019   cat conftest.err >&5
50020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50021   (exit $ac_status); } &&
50022          { ac_try='test -z "$ac_c_werror_flag"
50023                          || test ! -s conftest.err'
50024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50025   (eval $ac_try) 2>&5
50026   ac_status=$?
50027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50028   (exit $ac_status); }; } &&
50029          { ac_try='test -s conftest.$ac_objext'
50030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50031   (eval $ac_try) 2>&5
50032   ac_status=$?
50033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50034   (exit $ac_status); }; }; then
50035   ac_cv_member_struct_statvfs_f_fsid___val=yes
50036 else
50037   echo "$as_me: failed program was:" >&5
50038 sed 's/^/| /' conftest.$ac_ext >&5
50039
50040 ac_cv_member_struct_statvfs_f_fsid___val=no
50041 fi
50042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50043 fi
50044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50045 fi
50046 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
50047 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
50048 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
50049
50050 cat >>confdefs.h <<_ACEOF
50051 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
50052 _ACEOF
50053
50054
50055 fi
50056
50057   echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
50058 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
50059 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
50060   echo $ECHO_N "(cached) $ECHO_C" >&6
50061 else
50062   cat >conftest.$ac_ext <<_ACEOF
50063 /* confdefs.h.  */
50064 _ACEOF
50065 cat confdefs.h >>conftest.$ac_ext
50066 cat >>conftest.$ac_ext <<_ACEOF
50067 /* end confdefs.h.  */
50068 $statxfs_includes
50069
50070 int
50071 main ()
50072 {
50073 static struct statfs ac_aggr;
50074 if (ac_aggr.f_namemax)
50075 return 0;
50076   ;
50077   return 0;
50078 }
50079 _ACEOF
50080 rm -f conftest.$ac_objext
50081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50082   (eval $ac_compile) 2>conftest.er1
50083   ac_status=$?
50084   grep -v '^ *+' conftest.er1 >conftest.err
50085   rm -f conftest.er1
50086   cat conftest.err >&5
50087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50088   (exit $ac_status); } &&
50089          { ac_try='test -z "$ac_c_werror_flag"
50090                          || test ! -s conftest.err'
50091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50092   (eval $ac_try) 2>&5
50093   ac_status=$?
50094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50095   (exit $ac_status); }; } &&
50096          { ac_try='test -s conftest.$ac_objext'
50097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50098   (eval $ac_try) 2>&5
50099   ac_status=$?
50100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50101   (exit $ac_status); }; }; then
50102   ac_cv_member_struct_statfs_f_namemax=yes
50103 else
50104   echo "$as_me: failed program was:" >&5
50105 sed 's/^/| /' conftest.$ac_ext >&5
50106
50107 cat >conftest.$ac_ext <<_ACEOF
50108 /* confdefs.h.  */
50109 _ACEOF
50110 cat confdefs.h >>conftest.$ac_ext
50111 cat >>conftest.$ac_ext <<_ACEOF
50112 /* end confdefs.h.  */
50113 $statxfs_includes
50114
50115 int
50116 main ()
50117 {
50118 static struct statfs ac_aggr;
50119 if (sizeof ac_aggr.f_namemax)
50120 return 0;
50121   ;
50122   return 0;
50123 }
50124 _ACEOF
50125 rm -f conftest.$ac_objext
50126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50127   (eval $ac_compile) 2>conftest.er1
50128   ac_status=$?
50129   grep -v '^ *+' conftest.er1 >conftest.err
50130   rm -f conftest.er1
50131   cat conftest.err >&5
50132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50133   (exit $ac_status); } &&
50134          { ac_try='test -z "$ac_c_werror_flag"
50135                          || test ! -s conftest.err'
50136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50137   (eval $ac_try) 2>&5
50138   ac_status=$?
50139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50140   (exit $ac_status); }; } &&
50141          { ac_try='test -s conftest.$ac_objext'
50142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50143   (eval $ac_try) 2>&5
50144   ac_status=$?
50145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50146   (exit $ac_status); }; }; then
50147   ac_cv_member_struct_statfs_f_namemax=yes
50148 else
50149   echo "$as_me: failed program was:" >&5
50150 sed 's/^/| /' conftest.$ac_ext >&5
50151
50152 ac_cv_member_struct_statfs_f_namemax=no
50153 fi
50154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50155 fi
50156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50157 fi
50158 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
50159 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
50160 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
50161
50162 cat >>confdefs.h <<_ACEOF
50163 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
50164 _ACEOF
50165
50166
50167 fi
50168
50169   echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
50170 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
50171 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
50172   echo $ECHO_N "(cached) $ECHO_C" >&6
50173 else
50174   cat >conftest.$ac_ext <<_ACEOF
50175 /* confdefs.h.  */
50176 _ACEOF
50177 cat confdefs.h >>conftest.$ac_ext
50178 cat >>conftest.$ac_ext <<_ACEOF
50179 /* end confdefs.h.  */
50180 $statxfs_includes
50181
50182 int
50183 main ()
50184 {
50185 static struct statvfs ac_aggr;
50186 if (ac_aggr.f_namemax)
50187 return 0;
50188   ;
50189   return 0;
50190 }
50191 _ACEOF
50192 rm -f conftest.$ac_objext
50193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50194   (eval $ac_compile) 2>conftest.er1
50195   ac_status=$?
50196   grep -v '^ *+' conftest.er1 >conftest.err
50197   rm -f conftest.er1
50198   cat conftest.err >&5
50199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50200   (exit $ac_status); } &&
50201          { ac_try='test -z "$ac_c_werror_flag"
50202                          || test ! -s conftest.err'
50203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50204   (eval $ac_try) 2>&5
50205   ac_status=$?
50206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50207   (exit $ac_status); }; } &&
50208          { ac_try='test -s conftest.$ac_objext'
50209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50210   (eval $ac_try) 2>&5
50211   ac_status=$?
50212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50213   (exit $ac_status); }; }; then
50214   ac_cv_member_struct_statvfs_f_namemax=yes
50215 else
50216   echo "$as_me: failed program was:" >&5
50217 sed 's/^/| /' conftest.$ac_ext >&5
50218
50219 cat >conftest.$ac_ext <<_ACEOF
50220 /* confdefs.h.  */
50221 _ACEOF
50222 cat confdefs.h >>conftest.$ac_ext
50223 cat >>conftest.$ac_ext <<_ACEOF
50224 /* end confdefs.h.  */
50225 $statxfs_includes
50226
50227 int
50228 main ()
50229 {
50230 static struct statvfs ac_aggr;
50231 if (sizeof ac_aggr.f_namemax)
50232 return 0;
50233   ;
50234   return 0;
50235 }
50236 _ACEOF
50237 rm -f conftest.$ac_objext
50238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50239   (eval $ac_compile) 2>conftest.er1
50240   ac_status=$?
50241   grep -v '^ *+' conftest.er1 >conftest.err
50242   rm -f conftest.er1
50243   cat conftest.err >&5
50244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50245   (exit $ac_status); } &&
50246          { ac_try='test -z "$ac_c_werror_flag"
50247                          || test ! -s conftest.err'
50248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50249   (eval $ac_try) 2>&5
50250   ac_status=$?
50251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50252   (exit $ac_status); }; } &&
50253          { ac_try='test -s conftest.$ac_objext'
50254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50255   (eval $ac_try) 2>&5
50256   ac_status=$?
50257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50258   (exit $ac_status); }; }; then
50259   ac_cv_member_struct_statvfs_f_namemax=yes
50260 else
50261   echo "$as_me: failed program was:" >&5
50262 sed 's/^/| /' conftest.$ac_ext >&5
50263
50264 ac_cv_member_struct_statvfs_f_namemax=no
50265 fi
50266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50267 fi
50268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50269 fi
50270 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
50271 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
50272 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
50273
50274 cat >>confdefs.h <<_ACEOF
50275 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
50276 _ACEOF
50277
50278
50279 fi
50280
50281   echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
50282 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
50283 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
50284   echo $ECHO_N "(cached) $ECHO_C" >&6
50285 else
50286   cat >conftest.$ac_ext <<_ACEOF
50287 /* confdefs.h.  */
50288 _ACEOF
50289 cat confdefs.h >>conftest.$ac_ext
50290 cat >>conftest.$ac_ext <<_ACEOF
50291 /* end confdefs.h.  */
50292 $statxfs_includes
50293
50294 int
50295 main ()
50296 {
50297 static struct statfs ac_aggr;
50298 if (ac_aggr.f_namelen)
50299 return 0;
50300   ;
50301   return 0;
50302 }
50303 _ACEOF
50304 rm -f conftest.$ac_objext
50305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50306   (eval $ac_compile) 2>conftest.er1
50307   ac_status=$?
50308   grep -v '^ *+' conftest.er1 >conftest.err
50309   rm -f conftest.er1
50310   cat conftest.err >&5
50311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50312   (exit $ac_status); } &&
50313          { ac_try='test -z "$ac_c_werror_flag"
50314                          || test ! -s conftest.err'
50315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50316   (eval $ac_try) 2>&5
50317   ac_status=$?
50318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50319   (exit $ac_status); }; } &&
50320          { ac_try='test -s conftest.$ac_objext'
50321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50322   (eval $ac_try) 2>&5
50323   ac_status=$?
50324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50325   (exit $ac_status); }; }; then
50326   ac_cv_member_struct_statfs_f_namelen=yes
50327 else
50328   echo "$as_me: failed program was:" >&5
50329 sed 's/^/| /' conftest.$ac_ext >&5
50330
50331 cat >conftest.$ac_ext <<_ACEOF
50332 /* confdefs.h.  */
50333 _ACEOF
50334 cat confdefs.h >>conftest.$ac_ext
50335 cat >>conftest.$ac_ext <<_ACEOF
50336 /* end confdefs.h.  */
50337 $statxfs_includes
50338
50339 int
50340 main ()
50341 {
50342 static struct statfs ac_aggr;
50343 if (sizeof ac_aggr.f_namelen)
50344 return 0;
50345   ;
50346   return 0;
50347 }
50348 _ACEOF
50349 rm -f conftest.$ac_objext
50350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50351   (eval $ac_compile) 2>conftest.er1
50352   ac_status=$?
50353   grep -v '^ *+' conftest.er1 >conftest.err
50354   rm -f conftest.er1
50355   cat conftest.err >&5
50356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50357   (exit $ac_status); } &&
50358          { ac_try='test -z "$ac_c_werror_flag"
50359                          || test ! -s conftest.err'
50360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50361   (eval $ac_try) 2>&5
50362   ac_status=$?
50363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50364   (exit $ac_status); }; } &&
50365          { ac_try='test -s conftest.$ac_objext'
50366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50367   (eval $ac_try) 2>&5
50368   ac_status=$?
50369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50370   (exit $ac_status); }; }; then
50371   ac_cv_member_struct_statfs_f_namelen=yes
50372 else
50373   echo "$as_me: failed program was:" >&5
50374 sed 's/^/| /' conftest.$ac_ext >&5
50375
50376 ac_cv_member_struct_statfs_f_namelen=no
50377 fi
50378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50379 fi
50380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50381 fi
50382 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
50383 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
50384 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
50385
50386 cat >>confdefs.h <<_ACEOF
50387 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
50388 _ACEOF
50389
50390
50391 fi
50392
50393   echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
50394 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
50395 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
50396   echo $ECHO_N "(cached) $ECHO_C" >&6
50397 else
50398   cat >conftest.$ac_ext <<_ACEOF
50399 /* confdefs.h.  */
50400 _ACEOF
50401 cat confdefs.h >>conftest.$ac_ext
50402 cat >>conftest.$ac_ext <<_ACEOF
50403 /* end confdefs.h.  */
50404 $statxfs_includes
50405
50406 int
50407 main ()
50408 {
50409 static struct statvfs ac_aggr;
50410 if (ac_aggr.f_namelen)
50411 return 0;
50412   ;
50413   return 0;
50414 }
50415 _ACEOF
50416 rm -f conftest.$ac_objext
50417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50418   (eval $ac_compile) 2>conftest.er1
50419   ac_status=$?
50420   grep -v '^ *+' conftest.er1 >conftest.err
50421   rm -f conftest.er1
50422   cat conftest.err >&5
50423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50424   (exit $ac_status); } &&
50425          { ac_try='test -z "$ac_c_werror_flag"
50426                          || test ! -s conftest.err'
50427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50428   (eval $ac_try) 2>&5
50429   ac_status=$?
50430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50431   (exit $ac_status); }; } &&
50432          { ac_try='test -s conftest.$ac_objext'
50433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50434   (eval $ac_try) 2>&5
50435   ac_status=$?
50436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50437   (exit $ac_status); }; }; then
50438   ac_cv_member_struct_statvfs_f_namelen=yes
50439 else
50440   echo "$as_me: failed program was:" >&5
50441 sed 's/^/| /' conftest.$ac_ext >&5
50442
50443 cat >conftest.$ac_ext <<_ACEOF
50444 /* confdefs.h.  */
50445 _ACEOF
50446 cat confdefs.h >>conftest.$ac_ext
50447 cat >>conftest.$ac_ext <<_ACEOF
50448 /* end confdefs.h.  */
50449 $statxfs_includes
50450
50451 int
50452 main ()
50453 {
50454 static struct statvfs ac_aggr;
50455 if (sizeof ac_aggr.f_namelen)
50456 return 0;
50457   ;
50458   return 0;
50459 }
50460 _ACEOF
50461 rm -f conftest.$ac_objext
50462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50463   (eval $ac_compile) 2>conftest.er1
50464   ac_status=$?
50465   grep -v '^ *+' conftest.er1 >conftest.err
50466   rm -f conftest.er1
50467   cat conftest.err >&5
50468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50469   (exit $ac_status); } &&
50470          { ac_try='test -z "$ac_c_werror_flag"
50471                          || test ! -s conftest.err'
50472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50473   (eval $ac_try) 2>&5
50474   ac_status=$?
50475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50476   (exit $ac_status); }; } &&
50477          { ac_try='test -s conftest.$ac_objext'
50478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50479   (eval $ac_try) 2>&5
50480   ac_status=$?
50481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50482   (exit $ac_status); }; }; then
50483   ac_cv_member_struct_statvfs_f_namelen=yes
50484 else
50485   echo "$as_me: failed program was:" >&5
50486 sed 's/^/| /' conftest.$ac_ext >&5
50487
50488 ac_cv_member_struct_statvfs_f_namelen=no
50489 fi
50490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50491 fi
50492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50493 fi
50494 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
50495 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
50496 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
50497
50498 cat >>confdefs.h <<_ACEOF
50499 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
50500 _ACEOF
50501
50502
50503 fi
50504
50505
50506
50507 echo "$as_me:$LINENO: checking for working readdir" >&5
50508 echo $ECHO_N "checking for working readdir... $ECHO_C" >&6
50509 if test "${gl_cv_func_working_readdir+set}" = set; then
50510   echo $ECHO_N "(cached) $ECHO_C" >&6
50511 else
50512     # Arrange for deletion of the temporary directory this test creates, in
50513   # case the test itself fails to delete everything -- as happens on Sunos.
50514   ac_clean_files="$ac_clean_files conf-dir"
50515
50516   if test "$cross_compiling" = yes; then
50517   gl_cv_func_working_readdir=no
50518 else
50519   cat >conftest.$ac_ext <<_ACEOF
50520 /* confdefs.h.  */
50521 _ACEOF
50522 cat confdefs.h >>conftest.$ac_ext
50523 cat >>conftest.$ac_ext <<_ACEOF
50524 /* end confdefs.h.  */
50525 #   include <stdio.h>
50526 #   include <sys/types.h>
50527 #   include <string.h>
50528
50529 #   ifdef HAVE_DIRENT_H
50530 #    include <dirent.h>
50531 #    define NLENGTH(direct) (strlen((direct)->d_name))
50532 #   else /* not HAVE_DIRENT_H */
50533 #    define dirent direct
50534 #    define NLENGTH(direct) ((direct)->d_namlen)
50535 #    ifdef HAVE_SYS_NDIR_H
50536 #     include <sys/ndir.h>
50537 #    endif /* HAVE_SYS_NDIR_H */
50538 #    ifdef HAVE_SYS_DIR_H
50539 #     include <sys/dir.h>
50540 #    endif /* HAVE_SYS_DIR_H */
50541 #    ifdef HAVE_NDIR_H
50542 #     include <ndir.h>
50543 #    endif /* HAVE_NDIR_H */
50544 #   endif /* HAVE_DIRENT_H */
50545
50546 #   define DOT_OR_DOTDOT(Basename) \
50547      (Basename[0] == '.' && (Basename[1] == '\0' \
50548                              || (Basename[1] == '.' && Basename[2] == '\0')))
50549
50550 /* Don't try to use replacement mkdir; it wouldn't resolve at link time.  */
50551 #   undef mkdir
50552
50553     static void
50554     create_N_file_dir (const char *dir, size_t n_files)
50555     {
50556       unsigned int i;
50557
50558       if (mkdir (dir, 0700))
50559         abort ();
50560       if (chdir (dir))
50561         abort ();
50562
50563       for (i = 0; i < n_files; i++)
50564         {
50565           char file_name[4];
50566           FILE *out;
50567
50568           sprintf (file_name, "%03d", i);
50569           out = fopen (file_name, "w");
50570           if (!out)
50571             abort ();
50572           if (fclose (out) == EOF)
50573             abort ();
50574         }
50575
50576       if (chdir (".."))
50577         abort ();
50578     }
50579
50580     static void
50581     remove_dir (const char *dir)
50582     {
50583       DIR *dirp;
50584
50585       if (chdir (dir))
50586         abort ();
50587
50588       dirp = opendir (".");
50589       if (dirp == NULL)
50590         abort ();
50591
50592       while (1)
50593         {
50594           struct dirent *dp = readdir (dirp);
50595           if (dp == NULL)
50596             break;
50597
50598           if (DOT_OR_DOTDOT (dp->d_name))
50599             continue;
50600
50601           if (unlink (dp->d_name))
50602             abort ();
50603         }
50604       closedir (dirp);
50605
50606       if (chdir (".."))
50607         abort ();
50608
50609       if (rmdir (dir))
50610         exit (1);
50611     }
50612
50613     int
50614     main ()
50615     {
50616       const char *dir = "conf-dir";
50617       create_N_file_dir (dir, 500);
50618       remove_dir (dir);
50619       exit (0);
50620     }
50621 _ACEOF
50622 rm -f conftest$ac_exeext
50623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50624   (eval $ac_link) 2>&5
50625   ac_status=$?
50626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50627   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50629   (eval $ac_try) 2>&5
50630   ac_status=$?
50631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50632   (exit $ac_status); }; }; then
50633   gl_cv_func_working_readdir=yes
50634 else
50635   echo "$as_me: program exited with status $ac_status" >&5
50636 echo "$as_me: failed program was:" >&5
50637 sed 's/^/| /' conftest.$ac_ext >&5
50638
50639 ( exit $ac_status )
50640 gl_cv_func_working_readdir=no
50641 fi
50642 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50643 fi
50644 fi
50645 echo "$as_me:$LINENO: result: $gl_cv_func_working_readdir" >&5
50646 echo "${ECHO_T}$gl_cv_func_working_readdir" >&6
50647
50648   if test $gl_cv_func_working_readdir = yes; then
50649
50650 cat >>confdefs.h <<\_ACEOF
50651 #define HAVE_WORKING_READDIR 1
50652 _ACEOF
50653
50654   fi
50655
50656
50657       if test "X$prefix" = "XNONE"; then
50658     acl_final_prefix="$ac_default_prefix"
50659   else
50660     acl_final_prefix="$prefix"
50661   fi
50662   if test "X$exec_prefix" = "XNONE"; then
50663     acl_final_exec_prefix='${prefix}'
50664   else
50665     acl_final_exec_prefix="$exec_prefix"
50666   fi
50667   acl_save_prefix="$prefix"
50668   prefix="$acl_final_prefix"
50669   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
50670   prefix="$acl_save_prefix"
50671
50672
50673 # Check whether --with-gnu-ld or --without-gnu-ld was given.
50674 if test "${with_gnu_ld+set}" = set; then
50675   withval="$with_gnu_ld"
50676   test "$withval" = no || with_gnu_ld=yes
50677 else
50678   with_gnu_ld=no
50679 fi;
50680 # Prepare PATH_SEPARATOR.
50681 # The user is always right.
50682 if test "${PATH_SEPARATOR+set}" != set; then
50683   echo "#! /bin/sh" >conf$$.sh
50684   echo  "exit 0"   >>conf$$.sh
50685   chmod +x conf$$.sh
50686   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50687     PATH_SEPARATOR=';'
50688   else
50689     PATH_SEPARATOR=:
50690   fi
50691   rm -f conf$$.sh
50692 fi
50693 ac_prog=ld
50694 if test "$GCC" = yes; then
50695   # Check if gcc -print-prog-name=ld gives a path.
50696   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
50697 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
50698   case $host in
50699   *-*-mingw*)
50700     # gcc leaves a trailing carriage return which upsets mingw
50701     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
50702   *)
50703     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
50704   esac
50705   case $ac_prog in
50706     # Accept absolute paths.
50707     [\\/]* | [A-Za-z]:[\\/]*)
50708       re_direlt='/[^/][^/]*/\.\./'
50709       # Canonicalize the path of ld
50710       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
50711       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
50712         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
50713       done
50714       test -z "$LD" && LD="$ac_prog"
50715       ;;
50716   "")
50717     # If it fails, then pretend we aren't using GCC.
50718     ac_prog=ld
50719     ;;
50720   *)
50721     # If it is relative, then search for the first ld in PATH.
50722     with_gnu_ld=unknown
50723     ;;
50724   esac
50725 elif test "$with_gnu_ld" = yes; then
50726   echo "$as_me:$LINENO: checking for GNU ld" >&5
50727 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
50728 else
50729   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
50730 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
50731 fi
50732 if test "${acl_cv_path_LD+set}" = set; then
50733   echo $ECHO_N "(cached) $ECHO_C" >&6
50734 else
50735   if test -z "$LD"; then
50736   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
50737   for ac_dir in $PATH; do
50738     test -z "$ac_dir" && ac_dir=.
50739     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
50740       acl_cv_path_LD="$ac_dir/$ac_prog"
50741       # Check to see if the program is GNU ld.  I'd rather use --version,
50742       # but apparently some GNU ld's only accept -v.
50743       # Break only if it was the GNU/non-GNU ld that we prefer.
50744       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
50745       *GNU* | *'with BFD'*)
50746         test "$with_gnu_ld" != no && break ;;
50747       *)
50748         test "$with_gnu_ld" != yes && break ;;
50749       esac
50750     fi
50751   done
50752   IFS="$ac_save_ifs"
50753 else
50754   acl_cv_path_LD="$LD" # Let the user override the test with a path.
50755 fi
50756 fi
50757
50758 LD="$acl_cv_path_LD"
50759 if test -n "$LD"; then
50760   echo "$as_me:$LINENO: result: $LD" >&5
50761 echo "${ECHO_T}$LD" >&6
50762 else
50763   echo "$as_me:$LINENO: result: no" >&5
50764 echo "${ECHO_T}no" >&6
50765 fi
50766 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
50767 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
50768    { (exit 1); exit 1; }; }
50769 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
50770 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
50771 if test "${acl_cv_prog_gnu_ld+set}" = set; then
50772   echo $ECHO_N "(cached) $ECHO_C" >&6
50773 else
50774   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
50775 case `$LD -v 2>&1 </dev/null` in
50776 *GNU* | *'with BFD'*)
50777   acl_cv_prog_gnu_ld=yes ;;
50778 *)
50779   acl_cv_prog_gnu_ld=no ;;
50780 esac
50781 fi
50782 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
50783 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
50784 with_gnu_ld=$acl_cv_prog_gnu_ld
50785
50786
50787
50788                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
50789 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
50790 if test "${acl_cv_rpath+set}" = set; then
50791   echo $ECHO_N "(cached) $ECHO_C" >&6
50792 else
50793
50794     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
50795     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
50796     . ./conftest.sh
50797     rm -f ./conftest.sh
50798     acl_cv_rpath=done
50799
50800 fi
50801 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
50802 echo "${ECHO_T}$acl_cv_rpath" >&6
50803   wl="$acl_cv_wl"
50804   libext="$acl_cv_libext"
50805   shlibext="$acl_cv_shlibext"
50806   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
50807   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
50808   hardcode_direct="$acl_cv_hardcode_direct"
50809   hardcode_minus_L="$acl_cv_hardcode_minus_L"
50810     # Check whether --enable-rpath or --disable-rpath was given.
50811 if test "${enable_rpath+set}" = set; then
50812   enableval="$enable_rpath"
50813   :
50814 else
50815   enable_rpath=yes
50816 fi;
50817
50818
50819
50820
50821
50822
50823
50824     use_additional=yes
50825
50826   acl_save_prefix="$prefix"
50827   prefix="$acl_final_prefix"
50828   acl_save_exec_prefix="$exec_prefix"
50829   exec_prefix="$acl_final_exec_prefix"
50830
50831     eval additional_includedir=\"$includedir\"
50832     eval additional_libdir=\"$libdir\"
50833
50834   exec_prefix="$acl_save_exec_prefix"
50835   prefix="$acl_save_prefix"
50836
50837
50838 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
50839 if test "${with_libiconv_prefix+set}" = set; then
50840   withval="$with_libiconv_prefix"
50841
50842     if test "X$withval" = "Xno"; then
50843       use_additional=no
50844     else
50845       if test "X$withval" = "X"; then
50846
50847   acl_save_prefix="$prefix"
50848   prefix="$acl_final_prefix"
50849   acl_save_exec_prefix="$exec_prefix"
50850   exec_prefix="$acl_final_exec_prefix"
50851
50852           eval additional_includedir=\"$includedir\"
50853           eval additional_libdir=\"$libdir\"
50854
50855   exec_prefix="$acl_save_exec_prefix"
50856   prefix="$acl_save_prefix"
50857
50858       else
50859         additional_includedir="$withval/include"
50860         additional_libdir="$withval/lib"
50861       fi
50862     fi
50863
50864 fi;
50865       LIBICONV=
50866   LTLIBICONV=
50867   INCICONV=
50868   rpathdirs=
50869   ltrpathdirs=
50870   names_already_handled=
50871   names_next_round='iconv '
50872   while test -n "$names_next_round"; do
50873     names_this_round="$names_next_round"
50874     names_next_round=
50875     for name in $names_this_round; do
50876       already_handled=
50877       for n in $names_already_handled; do
50878         if test "$n" = "$name"; then
50879           already_handled=yes
50880           break
50881         fi
50882       done
50883       if test -z "$already_handled"; then
50884         names_already_handled="$names_already_handled $name"
50885                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
50886         eval value=\"\$HAVE_LIB$uppername\"
50887         if test -n "$value"; then
50888           if test "$value" = yes; then
50889             eval value=\"\$LIB$uppername\"
50890             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
50891             eval value=\"\$LTLIB$uppername\"
50892             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
50893           else
50894                                     :
50895           fi
50896         else
50897                               found_dir=
50898           found_la=
50899           found_so=
50900           found_a=
50901           if test $use_additional = yes; then
50902             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
50903               found_dir="$additional_libdir"
50904               found_so="$additional_libdir/lib$name.$shlibext"
50905               if test -f "$additional_libdir/lib$name.la"; then
50906                 found_la="$additional_libdir/lib$name.la"
50907               fi
50908             else
50909               if test -f "$additional_libdir/lib$name.$libext"; then
50910                 found_dir="$additional_libdir"
50911                 found_a="$additional_libdir/lib$name.$libext"
50912                 if test -f "$additional_libdir/lib$name.la"; then
50913                   found_la="$additional_libdir/lib$name.la"
50914                 fi
50915               fi
50916             fi
50917           fi
50918           if test "X$found_dir" = "X"; then
50919             for x in $LDFLAGS $LTLIBICONV; do
50920
50921   acl_save_prefix="$prefix"
50922   prefix="$acl_final_prefix"
50923   acl_save_exec_prefix="$exec_prefix"
50924   exec_prefix="$acl_final_exec_prefix"
50925   eval x=\"$x\"
50926   exec_prefix="$acl_save_exec_prefix"
50927   prefix="$acl_save_prefix"
50928
50929               case "$x" in
50930                 -L*)
50931                   dir=`echo "X$x" | sed -e 's/^X-L//'`
50932                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
50933                     found_dir="$dir"
50934                     found_so="$dir/lib$name.$shlibext"
50935                     if test -f "$dir/lib$name.la"; then
50936                       found_la="$dir/lib$name.la"
50937                     fi
50938                   else
50939                     if test -f "$dir/lib$name.$libext"; then
50940                       found_dir="$dir"
50941                       found_a="$dir/lib$name.$libext"
50942                       if test -f "$dir/lib$name.la"; then
50943                         found_la="$dir/lib$name.la"
50944                       fi
50945                     fi
50946                   fi
50947                   ;;
50948               esac
50949               if test "X$found_dir" != "X"; then
50950                 break
50951               fi
50952             done
50953           fi
50954           if test "X$found_dir" != "X"; then
50955                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
50956             if test "X$found_so" != "X"; then
50957                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
50958                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
50959               else
50960                                                                                 haveit=
50961                 for x in $ltrpathdirs; do
50962                   if test "X$x" = "X$found_dir"; then
50963                     haveit=yes
50964                     break
50965                   fi
50966                 done
50967                 if test -z "$haveit"; then
50968                   ltrpathdirs="$ltrpathdirs $found_dir"
50969                 fi
50970                                 if test "$hardcode_direct" = yes; then
50971                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
50972                 else
50973                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
50974                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
50975                                                             haveit=
50976                     for x in $rpathdirs; do
50977                       if test "X$x" = "X$found_dir"; then
50978                         haveit=yes
50979                         break
50980                       fi
50981                     done
50982                     if test -z "$haveit"; then
50983                       rpathdirs="$rpathdirs $found_dir"
50984                     fi
50985                   else
50986                                                                                 haveit=
50987                     for x in $LDFLAGS $LIBICONV; do
50988
50989   acl_save_prefix="$prefix"
50990   prefix="$acl_final_prefix"
50991   acl_save_exec_prefix="$exec_prefix"
50992   exec_prefix="$acl_final_exec_prefix"
50993   eval x=\"$x\"
50994   exec_prefix="$acl_save_exec_prefix"
50995   prefix="$acl_save_prefix"
50996
50997                       if test "X$x" = "X-L$found_dir"; then
50998                         haveit=yes
50999                         break
51000                       fi
51001                     done
51002                     if test -z "$haveit"; then
51003                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
51004                     fi
51005                     if test "$hardcode_minus_L" != no; then
51006                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
51007                     else
51008                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
51009                     fi
51010                   fi
51011                 fi
51012               fi
51013             else
51014               if test "X$found_a" != "X"; then
51015                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
51016               else
51017                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
51018               fi
51019             fi
51020                         additional_includedir=
51021             case "$found_dir" in
51022               */lib | */lib/)
51023                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
51024                 additional_includedir="$basedir/include"
51025                 ;;
51026             esac
51027             if test "X$additional_includedir" != "X"; then
51028                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
51029                 haveit=
51030                 if test "X$additional_includedir" = "X/usr/local/include"; then
51031                   if test -n "$GCC"; then
51032                     case $host_os in
51033                       linux*) haveit=yes;;
51034                     esac
51035                   fi
51036                 fi
51037                 if test -z "$haveit"; then
51038                   for x in $CPPFLAGS $INCICONV; do
51039
51040   acl_save_prefix="$prefix"
51041   prefix="$acl_final_prefix"
51042   acl_save_exec_prefix="$exec_prefix"
51043   exec_prefix="$acl_final_exec_prefix"
51044   eval x=\"$x\"
51045   exec_prefix="$acl_save_exec_prefix"
51046   prefix="$acl_save_prefix"
51047
51048                     if test "X$x" = "X-I$additional_includedir"; then
51049                       haveit=yes
51050                       break
51051                     fi
51052                   done
51053                   if test -z "$haveit"; then
51054                     if test -d "$additional_includedir"; then
51055                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
51056                     fi
51057                   fi
51058                 fi
51059               fi
51060             fi
51061                         if test -n "$found_la"; then
51062                                                         save_libdir="$libdir"
51063               case "$found_la" in
51064                 */* | *\\*) . "$found_la" ;;
51065                 *) . "./$found_la" ;;
51066               esac
51067               libdir="$save_libdir"
51068                             for dep in $dependency_libs; do
51069                 case "$dep" in
51070                   -L*)
51071                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
51072                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
51073                       haveit=
51074                       if test "X$additional_libdir" = "X/usr/local/lib"; then
51075                         if test -n "$GCC"; then
51076                           case $host_os in
51077                             linux*) haveit=yes;;
51078                           esac
51079                         fi
51080                       fi
51081                       if test -z "$haveit"; then
51082                         haveit=
51083                         for x in $LDFLAGS $LIBICONV; do
51084
51085   acl_save_prefix="$prefix"
51086   prefix="$acl_final_prefix"
51087   acl_save_exec_prefix="$exec_prefix"
51088   exec_prefix="$acl_final_exec_prefix"
51089   eval x=\"$x\"
51090   exec_prefix="$acl_save_exec_prefix"
51091   prefix="$acl_save_prefix"
51092
51093                           if test "X$x" = "X-L$additional_libdir"; then
51094                             haveit=yes
51095                             break
51096                           fi
51097                         done
51098                         if test -z "$haveit"; then
51099                           if test -d "$additional_libdir"; then
51100                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
51101                           fi
51102                         fi
51103                         haveit=
51104                         for x in $LDFLAGS $LTLIBICONV; do
51105
51106   acl_save_prefix="$prefix"
51107   prefix="$acl_final_prefix"
51108   acl_save_exec_prefix="$exec_prefix"
51109   exec_prefix="$acl_final_exec_prefix"
51110   eval x=\"$x\"
51111   exec_prefix="$acl_save_exec_prefix"
51112   prefix="$acl_save_prefix"
51113
51114                           if test "X$x" = "X-L$additional_libdir"; then
51115                             haveit=yes
51116                             break
51117                           fi
51118                         done
51119                         if test -z "$haveit"; then
51120                           if test -d "$additional_libdir"; then
51121                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
51122                           fi
51123                         fi
51124                       fi
51125                     fi
51126                     ;;
51127                   -R*)
51128                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
51129                     if test "$enable_rpath" != no; then
51130                                                                   haveit=
51131                       for x in $rpathdirs; do
51132                         if test "X$x" = "X$dir"; then
51133                           haveit=yes
51134                           break
51135                         fi
51136                       done
51137                       if test -z "$haveit"; then
51138                         rpathdirs="$rpathdirs $dir"
51139                       fi
51140                                                                   haveit=
51141                       for x in $ltrpathdirs; do
51142                         if test "X$x" = "X$dir"; then
51143                           haveit=yes
51144                           break
51145                         fi
51146                       done
51147                       if test -z "$haveit"; then
51148                         ltrpathdirs="$ltrpathdirs $dir"
51149                       fi
51150                     fi
51151                     ;;
51152                   -l*)
51153                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
51154                     ;;
51155                   *.la)
51156                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
51157                     ;;
51158                   *)
51159                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
51160                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
51161                     ;;
51162                 esac
51163               done
51164             fi
51165           else
51166                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
51167             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
51168           fi
51169         fi
51170       fi
51171     done
51172   done
51173   if test "X$rpathdirs" != "X"; then
51174     if test -n "$hardcode_libdir_separator"; then
51175                         alldirs=
51176       for found_dir in $rpathdirs; do
51177         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
51178       done
51179             acl_save_libdir="$libdir"
51180       libdir="$alldirs"
51181       eval flag=\"$hardcode_libdir_flag_spec\"
51182       libdir="$acl_save_libdir"
51183       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
51184     else
51185             for found_dir in $rpathdirs; do
51186         acl_save_libdir="$libdir"
51187         libdir="$found_dir"
51188         eval flag=\"$hardcode_libdir_flag_spec\"
51189         libdir="$acl_save_libdir"
51190         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
51191       done
51192     fi
51193   fi
51194   if test "X$ltrpathdirs" != "X"; then
51195             for found_dir in $ltrpathdirs; do
51196       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
51197     done
51198   fi
51199
51200
51201
51202
51203
51204
51205
51206 for ac_header in string.h sys/param.h stddef.h
51207 do
51208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51210   echo "$as_me:$LINENO: checking for $ac_header" >&5
51211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51213   echo $ECHO_N "(cached) $ECHO_C" >&6
51214 fi
51215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51217 else
51218   # Is the header compilable?
51219 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51221 cat >conftest.$ac_ext <<_ACEOF
51222 /* confdefs.h.  */
51223 _ACEOF
51224 cat confdefs.h >>conftest.$ac_ext
51225 cat >>conftest.$ac_ext <<_ACEOF
51226 /* end confdefs.h.  */
51227 $ac_includes_default
51228 #include <$ac_header>
51229 _ACEOF
51230 rm -f conftest.$ac_objext
51231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51232   (eval $ac_compile) 2>conftest.er1
51233   ac_status=$?
51234   grep -v '^ *+' conftest.er1 >conftest.err
51235   rm -f conftest.er1
51236   cat conftest.err >&5
51237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51238   (exit $ac_status); } &&
51239          { ac_try='test -z "$ac_c_werror_flag"
51240                          || test ! -s conftest.err'
51241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51242   (eval $ac_try) 2>&5
51243   ac_status=$?
51244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51245   (exit $ac_status); }; } &&
51246          { ac_try='test -s conftest.$ac_objext'
51247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51248   (eval $ac_try) 2>&5
51249   ac_status=$?
51250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51251   (exit $ac_status); }; }; then
51252   ac_header_compiler=yes
51253 else
51254   echo "$as_me: failed program was:" >&5
51255 sed 's/^/| /' conftest.$ac_ext >&5
51256
51257 ac_header_compiler=no
51258 fi
51259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51260 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51261 echo "${ECHO_T}$ac_header_compiler" >&6
51262
51263 # Is the header present?
51264 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51266 cat >conftest.$ac_ext <<_ACEOF
51267 /* confdefs.h.  */
51268 _ACEOF
51269 cat confdefs.h >>conftest.$ac_ext
51270 cat >>conftest.$ac_ext <<_ACEOF
51271 /* end confdefs.h.  */
51272 #include <$ac_header>
51273 _ACEOF
51274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51275   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51276   ac_status=$?
51277   grep -v '^ *+' conftest.er1 >conftest.err
51278   rm -f conftest.er1
51279   cat conftest.err >&5
51280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51281   (exit $ac_status); } >/dev/null; then
51282   if test -s conftest.err; then
51283     ac_cpp_err=$ac_c_preproc_warn_flag
51284     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51285   else
51286     ac_cpp_err=
51287   fi
51288 else
51289   ac_cpp_err=yes
51290 fi
51291 if test -z "$ac_cpp_err"; then
51292   ac_header_preproc=yes
51293 else
51294   echo "$as_me: failed program was:" >&5
51295 sed 's/^/| /' conftest.$ac_ext >&5
51296
51297   ac_header_preproc=no
51298 fi
51299 rm -f conftest.err conftest.$ac_ext
51300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51301 echo "${ECHO_T}$ac_header_preproc" >&6
51302
51303 # So?  What about this header?
51304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51305   yes:no: )
51306     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51310     ac_header_preproc=yes
51311     ;;
51312   no:yes:* )
51313     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51315     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
51316 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
51317     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51319     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
51320 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
51321     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51323     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51325     (
51326       cat <<\_ASBOX
51327 ## ------------------------------------ ##
51328 ## Report this to bug-coreutils@gnu.org ##
51329 ## ------------------------------------ ##
51330 _ASBOX
51331     ) |
51332       sed "s/^/$as_me: WARNING:     /" >&2
51333     ;;
51334 esac
51335 echo "$as_me:$LINENO: checking for $ac_header" >&5
51336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51338   echo $ECHO_N "(cached) $ECHO_C" >&6
51339 else
51340   eval "$as_ac_Header=\$ac_header_preproc"
51341 fi
51342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51344
51345 fi
51346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51347   cat >>confdefs.h <<_ACEOF
51348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51349 _ACEOF
51350
51351 fi
51352
51353 done
51354
51355
51356
51357 for ac_func in resolvepath canonicalize_file_name
51358 do
51359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51360 echo "$as_me:$LINENO: checking for $ac_func" >&5
51361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51362 if eval "test \"\${$as_ac_var+set}\" = set"; then
51363   echo $ECHO_N "(cached) $ECHO_C" >&6
51364 else
51365   cat >conftest.$ac_ext <<_ACEOF
51366 /* confdefs.h.  */
51367 _ACEOF
51368 cat confdefs.h >>conftest.$ac_ext
51369 cat >>conftest.$ac_ext <<_ACEOF
51370 /* end confdefs.h.  */
51371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51373 #define $ac_func innocuous_$ac_func
51374
51375 /* System header to define __stub macros and hopefully few prototypes,
51376     which can conflict with char $ac_func (); below.
51377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51378     <limits.h> exists even on freestanding compilers.  */
51379
51380 #ifdef __STDC__
51381 # include <limits.h>
51382 #else
51383 # include <assert.h>
51384 #endif
51385
51386 #undef $ac_func
51387
51388 /* Override any gcc2 internal prototype to avoid an error.  */
51389 #ifdef __cplusplus
51390 extern "C"
51391 {
51392 #endif
51393 /* We use char because int might match the return type of a gcc2
51394    builtin and then its argument prototype would still apply.  */
51395 char $ac_func ();
51396 /* The GNU C library defines this for functions which it implements
51397     to always fail with ENOSYS.  Some functions are actually named
51398     something starting with __ and the normal name is an alias.  */
51399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51400 choke me
51401 #else
51402 char (*f) () = $ac_func;
51403 #endif
51404 #ifdef __cplusplus
51405 }
51406 #endif
51407
51408 int
51409 main ()
51410 {
51411 return f != $ac_func;
51412   ;
51413   return 0;
51414 }
51415 _ACEOF
51416 rm -f conftest.$ac_objext conftest$ac_exeext
51417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51418   (eval $ac_link) 2>conftest.er1
51419   ac_status=$?
51420   grep -v '^ *+' conftest.er1 >conftest.err
51421   rm -f conftest.er1
51422   cat conftest.err >&5
51423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51424   (exit $ac_status); } &&
51425          { ac_try='test -z "$ac_c_werror_flag"
51426                          || test ! -s conftest.err'
51427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51428   (eval $ac_try) 2>&5
51429   ac_status=$?
51430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51431   (exit $ac_status); }; } &&
51432          { ac_try='test -s conftest$ac_exeext'
51433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51434   (eval $ac_try) 2>&5
51435   ac_status=$?
51436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51437   (exit $ac_status); }; }; then
51438   eval "$as_ac_var=yes"
51439 else
51440   echo "$as_me: failed program was:" >&5
51441 sed 's/^/| /' conftest.$ac_ext >&5
51442
51443 eval "$as_ac_var=no"
51444 fi
51445 rm -f conftest.err conftest.$ac_objext \
51446       conftest$ac_exeext conftest.$ac_ext
51447 fi
51448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51450 if test `eval echo '${'$as_ac_var'}'` = yes; then
51451   cat >>confdefs.h <<_ACEOF
51452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51453 _ACEOF
51454
51455 fi
51456 done
51457
51458
51459
51460
51461
51462   echo "$as_me:$LINENO: checking whether this system has a definition of PATH_MAX" >&5
51463 echo $ECHO_N "checking whether this system has a definition of PATH_MAX... $ECHO_C" >&6
51464 if test "${gl_have_path_max_definition+set}" = set; then
51465   echo $ECHO_N "(cached) $ECHO_C" >&6
51466 else
51467   cat >conftest.$ac_ext <<_ACEOF
51468 /* confdefs.h.  */
51469 _ACEOF
51470 cat confdefs.h >>conftest.$ac_ext
51471 cat >>conftest.$ac_ext <<_ACEOF
51472 /* end confdefs.h.  */
51473 #include <unistd.h>
51474 #include <limits.h>
51475 #ifdef PATH_MAX
51476 have_path_max_definition
51477 #endif
51478 _ACEOF
51479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51480   $EGREP "have_path_max_definition" >/dev/null 2>&1; then
51481   gl_have_path_max_definition=yes
51482 else
51483   gl_have_path_max_definition=no
51484 fi
51485 rm -f conftest*
51486
51487 fi
51488 echo "$as_me:$LINENO: result: $gl_have_path_max_definition" >&5
51489 echo "${ECHO_T}$gl_have_path_max_definition" >&6
51490
51491   if test $gl_have_path_max_definition; then
51492     case $LIBOBJS in
51493     "chdir-long.$ac_objext"   | \
51494   *" chdir-long.$ac_objext"   | \
51495     "chdir-long.$ac_objext "* | \
51496   *" chdir-long.$ac_objext "* ) ;;
51497   *) LIBOBJS="$LIBOBJS chdir-long.$ac_objext" ;;
51498 esac
51499
51500
51501
51502
51503
51504   # Define two additional variables used in the Makefile substitution.
51505
51506   if test "$ac_cv_header_stdbool_h" = yes; then
51507     STDBOOL_H=''
51508   else
51509     STDBOOL_H='stdbool.h'
51510   fi
51511
51512
51513   if test "$ac_cv_type__Bool" = yes; then
51514     HAVE__BOOL=1
51515   else
51516     HAVE__BOOL=0
51517   fi
51518
51519
51520
51521
51522
51523
51524
51525
51526 for ac_func in mempcpy
51527 do
51528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51529 echo "$as_me:$LINENO: checking for $ac_func" >&5
51530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51531 if eval "test \"\${$as_ac_var+set}\" = set"; then
51532   echo $ECHO_N "(cached) $ECHO_C" >&6
51533 else
51534   cat >conftest.$ac_ext <<_ACEOF
51535 /* confdefs.h.  */
51536 _ACEOF
51537 cat confdefs.h >>conftest.$ac_ext
51538 cat >>conftest.$ac_ext <<_ACEOF
51539 /* end confdefs.h.  */
51540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51542 #define $ac_func innocuous_$ac_func
51543
51544 /* System header to define __stub macros and hopefully few prototypes,
51545     which can conflict with char $ac_func (); below.
51546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51547     <limits.h> exists even on freestanding compilers.  */
51548
51549 #ifdef __STDC__
51550 # include <limits.h>
51551 #else
51552 # include <assert.h>
51553 #endif
51554
51555 #undef $ac_func
51556
51557 /* Override any gcc2 internal prototype to avoid an error.  */
51558 #ifdef __cplusplus
51559 extern "C"
51560 {
51561 #endif
51562 /* We use char because int might match the return type of a gcc2
51563    builtin and then its argument prototype would still apply.  */
51564 char $ac_func ();
51565 /* The GNU C library defines this for functions which it implements
51566     to always fail with ENOSYS.  Some functions are actually named
51567     something starting with __ and the normal name is an alias.  */
51568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51569 choke me
51570 #else
51571 char (*f) () = $ac_func;
51572 #endif
51573 #ifdef __cplusplus
51574 }
51575 #endif
51576
51577 int
51578 main ()
51579 {
51580 return f != $ac_func;
51581   ;
51582   return 0;
51583 }
51584 _ACEOF
51585 rm -f conftest.$ac_objext conftest$ac_exeext
51586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51587   (eval $ac_link) 2>conftest.er1
51588   ac_status=$?
51589   grep -v '^ *+' conftest.er1 >conftest.err
51590   rm -f conftest.er1
51591   cat conftest.err >&5
51592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51593   (exit $ac_status); } &&
51594          { ac_try='test -z "$ac_c_werror_flag"
51595                          || test ! -s conftest.err'
51596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51597   (eval $ac_try) 2>&5
51598   ac_status=$?
51599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51600   (exit $ac_status); }; } &&
51601          { ac_try='test -s conftest$ac_exeext'
51602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51603   (eval $ac_try) 2>&5
51604   ac_status=$?
51605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51606   (exit $ac_status); }; }; then
51607   eval "$as_ac_var=yes"
51608 else
51609   echo "$as_me: failed program was:" >&5
51610 sed 's/^/| /' conftest.$ac_ext >&5
51611
51612 eval "$as_ac_var=no"
51613 fi
51614 rm -f conftest.err conftest.$ac_objext \
51615       conftest$ac_exeext conftest.$ac_ext
51616 fi
51617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51619 if test `eval echo '${'$as_ac_var'}'` = yes; then
51620   cat >>confdefs.h <<_ACEOF
51621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51622 _ACEOF
51623
51624 else
51625   case $LIBOBJS in
51626     "$ac_func.$ac_objext"   | \
51627   *" $ac_func.$ac_objext"   | \
51628     "$ac_func.$ac_objext "* | \
51629   *" $ac_func.$ac_objext "* ) ;;
51630   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51631 esac
51632
51633 fi
51634 done
51635
51636
51637   if test $ac_cv_func_mempcpy = no; then
51638
51639   :
51640
51641   fi
51642
51643
51644
51645
51646
51647 for ac_func in openat
51648 do
51649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51650 echo "$as_me:$LINENO: checking for $ac_func" >&5
51651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51652 if eval "test \"\${$as_ac_var+set}\" = set"; then
51653   echo $ECHO_N "(cached) $ECHO_C" >&6
51654 else
51655   cat >conftest.$ac_ext <<_ACEOF
51656 /* confdefs.h.  */
51657 _ACEOF
51658 cat confdefs.h >>conftest.$ac_ext
51659 cat >>conftest.$ac_ext <<_ACEOF
51660 /* end confdefs.h.  */
51661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51663 #define $ac_func innocuous_$ac_func
51664
51665 /* System header to define __stub macros and hopefully few prototypes,
51666     which can conflict with char $ac_func (); below.
51667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51668     <limits.h> exists even on freestanding compilers.  */
51669
51670 #ifdef __STDC__
51671 # include <limits.h>
51672 #else
51673 # include <assert.h>
51674 #endif
51675
51676 #undef $ac_func
51677
51678 /* Override any gcc2 internal prototype to avoid an error.  */
51679 #ifdef __cplusplus
51680 extern "C"
51681 {
51682 #endif
51683 /* We use char because int might match the return type of a gcc2
51684    builtin and then its argument prototype would still apply.  */
51685 char $ac_func ();
51686 /* The GNU C library defines this for functions which it implements
51687     to always fail with ENOSYS.  Some functions are actually named
51688     something starting with __ and the normal name is an alias.  */
51689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51690 choke me
51691 #else
51692 char (*f) () = $ac_func;
51693 #endif
51694 #ifdef __cplusplus
51695 }
51696 #endif
51697
51698 int
51699 main ()
51700 {
51701 return f != $ac_func;
51702   ;
51703   return 0;
51704 }
51705 _ACEOF
51706 rm -f conftest.$ac_objext conftest$ac_exeext
51707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51708   (eval $ac_link) 2>conftest.er1
51709   ac_status=$?
51710   grep -v '^ *+' conftest.er1 >conftest.err
51711   rm -f conftest.er1
51712   cat conftest.err >&5
51713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51714   (exit $ac_status); } &&
51715          { ac_try='test -z "$ac_c_werror_flag"
51716                          || test ! -s conftest.err'
51717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51718   (eval $ac_try) 2>&5
51719   ac_status=$?
51720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51721   (exit $ac_status); }; } &&
51722          { ac_try='test -s conftest$ac_exeext'
51723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51724   (eval $ac_try) 2>&5
51725   ac_status=$?
51726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51727   (exit $ac_status); }; }; then
51728   eval "$as_ac_var=yes"
51729 else
51730   echo "$as_me: failed program was:" >&5
51731 sed 's/^/| /' conftest.$ac_ext >&5
51732
51733 eval "$as_ac_var=no"
51734 fi
51735 rm -f conftest.err conftest.$ac_objext \
51736       conftest$ac_exeext conftest.$ac_ext
51737 fi
51738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51740 if test `eval echo '${'$as_ac_var'}'` = yes; then
51741   cat >>confdefs.h <<_ACEOF
51742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51743 _ACEOF
51744
51745 else
51746   case $LIBOBJS in
51747     "$ac_func.$ac_objext"   | \
51748   *" $ac_func.$ac_objext"   | \
51749     "$ac_func.$ac_objext "* | \
51750   *" $ac_func.$ac_objext "* ) ;;
51751   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51752 esac
51753
51754 fi
51755 done
51756
51757
51758   case $ac_cv_func_openat in
51759   yes) ;;
51760   *)
51761
51762 cat >>confdefs.h <<\_ACEOF
51763 #define __OPENAT_PREFIX rpl_
51764 _ACEOF
51765
51766
51767
51768 ;;
51769   esac
51770
51771
51772   fi
51773
51774
51775
51776
51777   GNU_PACKAGE="GNU $PACKAGE"
51778
51779 cat >>confdefs.h <<_ACEOF
51780 #define GNU_PACKAGE "$GNU_PACKAGE"
51781 _ACEOF
51782
51783
51784
51785
51786 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
51787
51788
51789
51790
51791
51792
51793
51794
51795
51796
51797
51798
51799
51800
51801
51802
51803
51804
51805
51806
51807   echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
51808 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
51809 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
51810   echo $ECHO_N "(cached) $ECHO_C" >&6
51811 else
51812   cat >conftest.$ac_ext <<_ACEOF
51813 /* confdefs.h.  */
51814 _ACEOF
51815 cat confdefs.h >>conftest.$ac_ext
51816 cat >>conftest.$ac_ext <<_ACEOF
51817 /* end confdefs.h.  */
51818 $ac_includes_default
51819 #include <sys/stat.h>
51820
51821
51822 int
51823 main ()
51824 {
51825 static struct stat ac_aggr;
51826 if (ac_aggr.st_author)
51827 return 0;
51828   ;
51829   return 0;
51830 }
51831 _ACEOF
51832 rm -f conftest.$ac_objext
51833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51834   (eval $ac_compile) 2>conftest.er1
51835   ac_status=$?
51836   grep -v '^ *+' conftest.er1 >conftest.err
51837   rm -f conftest.er1
51838   cat conftest.err >&5
51839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51840   (exit $ac_status); } &&
51841          { ac_try='test -z "$ac_c_werror_flag"
51842                          || test ! -s conftest.err'
51843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51844   (eval $ac_try) 2>&5
51845   ac_status=$?
51846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51847   (exit $ac_status); }; } &&
51848          { ac_try='test -s conftest.$ac_objext'
51849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51850   (eval $ac_try) 2>&5
51851   ac_status=$?
51852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51853   (exit $ac_status); }; }; then
51854   ac_cv_member_struct_stat_st_author=yes
51855 else
51856   echo "$as_me: failed program was:" >&5
51857 sed 's/^/| /' conftest.$ac_ext >&5
51858
51859 cat >conftest.$ac_ext <<_ACEOF
51860 /* confdefs.h.  */
51861 _ACEOF
51862 cat confdefs.h >>conftest.$ac_ext
51863 cat >>conftest.$ac_ext <<_ACEOF
51864 /* end confdefs.h.  */
51865 $ac_includes_default
51866 #include <sys/stat.h>
51867
51868
51869 int
51870 main ()
51871 {
51872 static struct stat ac_aggr;
51873 if (sizeof ac_aggr.st_author)
51874 return 0;
51875   ;
51876   return 0;
51877 }
51878 _ACEOF
51879 rm -f conftest.$ac_objext
51880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51881   (eval $ac_compile) 2>conftest.er1
51882   ac_status=$?
51883   grep -v '^ *+' conftest.er1 >conftest.err
51884   rm -f conftest.er1
51885   cat conftest.err >&5
51886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51887   (exit $ac_status); } &&
51888          { ac_try='test -z "$ac_c_werror_flag"
51889                          || test ! -s conftest.err'
51890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51891   (eval $ac_try) 2>&5
51892   ac_status=$?
51893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51894   (exit $ac_status); }; } &&
51895          { ac_try='test -s conftest.$ac_objext'
51896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51897   (eval $ac_try) 2>&5
51898   ac_status=$?
51899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51900   (exit $ac_status); }; }; then
51901   ac_cv_member_struct_stat_st_author=yes
51902 else
51903   echo "$as_me: failed program was:" >&5
51904 sed 's/^/| /' conftest.$ac_ext >&5
51905
51906 ac_cv_member_struct_stat_st_author=no
51907 fi
51908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51909 fi
51910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51911 fi
51912 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
51913 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
51914 if test $ac_cv_member_struct_stat_st_author = yes; then
51915
51916 cat >>confdefs.h <<_ACEOF
51917 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
51918 _ACEOF
51919
51920
51921 fi
51922 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
51923 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
51924 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
51925   echo $ECHO_N "(cached) $ECHO_C" >&6
51926 else
51927   cat >conftest.$ac_ext <<_ACEOF
51928 /* confdefs.h.  */
51929 _ACEOF
51930 cat confdefs.h >>conftest.$ac_ext
51931 cat >>conftest.$ac_ext <<_ACEOF
51932 /* end confdefs.h.  */
51933 $ac_includes_default
51934 #include <sys/stat.h>
51935
51936
51937 int
51938 main ()
51939 {
51940 static struct stat ac_aggr;
51941 if (ac_aggr.st_blksize)
51942 return 0;
51943   ;
51944   return 0;
51945 }
51946 _ACEOF
51947 rm -f conftest.$ac_objext
51948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51949   (eval $ac_compile) 2>conftest.er1
51950   ac_status=$?
51951   grep -v '^ *+' conftest.er1 >conftest.err
51952   rm -f conftest.er1
51953   cat conftest.err >&5
51954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51955   (exit $ac_status); } &&
51956          { ac_try='test -z "$ac_c_werror_flag"
51957                          || test ! -s conftest.err'
51958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51959   (eval $ac_try) 2>&5
51960   ac_status=$?
51961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51962   (exit $ac_status); }; } &&
51963          { ac_try='test -s conftest.$ac_objext'
51964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51965   (eval $ac_try) 2>&5
51966   ac_status=$?
51967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51968   (exit $ac_status); }; }; then
51969   ac_cv_member_struct_stat_st_blksize=yes
51970 else
51971   echo "$as_me: failed program was:" >&5
51972 sed 's/^/| /' conftest.$ac_ext >&5
51973
51974 cat >conftest.$ac_ext <<_ACEOF
51975 /* confdefs.h.  */
51976 _ACEOF
51977 cat confdefs.h >>conftest.$ac_ext
51978 cat >>conftest.$ac_ext <<_ACEOF
51979 /* end confdefs.h.  */
51980 $ac_includes_default
51981 #include <sys/stat.h>
51982
51983
51984 int
51985 main ()
51986 {
51987 static struct stat ac_aggr;
51988 if (sizeof ac_aggr.st_blksize)
51989 return 0;
51990   ;
51991   return 0;
51992 }
51993 _ACEOF
51994 rm -f conftest.$ac_objext
51995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51996   (eval $ac_compile) 2>conftest.er1
51997   ac_status=$?
51998   grep -v '^ *+' conftest.er1 >conftest.err
51999   rm -f conftest.er1
52000   cat conftest.err >&5
52001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52002   (exit $ac_status); } &&
52003          { ac_try='test -z "$ac_c_werror_flag"
52004                          || test ! -s conftest.err'
52005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52006   (eval $ac_try) 2>&5
52007   ac_status=$?
52008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52009   (exit $ac_status); }; } &&
52010          { ac_try='test -s conftest.$ac_objext'
52011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52012   (eval $ac_try) 2>&5
52013   ac_status=$?
52014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52015   (exit $ac_status); }; }; then
52016   ac_cv_member_struct_stat_st_blksize=yes
52017 else
52018   echo "$as_me: failed program was:" >&5
52019 sed 's/^/| /' conftest.$ac_ext >&5
52020
52021 ac_cv_member_struct_stat_st_blksize=no
52022 fi
52023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52024 fi
52025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52026 fi
52027 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
52028 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
52029 if test $ac_cv_member_struct_stat_st_blksize = yes; then
52030
52031 cat >>confdefs.h <<_ACEOF
52032 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
52033 _ACEOF
52034
52035
52036 fi
52037
52038
52039
52040
52041
52042
52043
52044
52045
52046
52047
52048
52049
52050
52051
52052   echo "$as_me:$LINENO: checking for ino_t" >&5
52053 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
52054 if test "${ac_cv_type_ino_t+set}" = set; then
52055   echo $ECHO_N "(cached) $ECHO_C" >&6
52056 else
52057   cat >conftest.$ac_ext <<_ACEOF
52058 /* confdefs.h.  */
52059 _ACEOF
52060 cat confdefs.h >>conftest.$ac_ext
52061 cat >>conftest.$ac_ext <<_ACEOF
52062 /* end confdefs.h.  */
52063 $ac_includes_default
52064 int
52065 main ()
52066 {
52067 if ((ino_t *) 0)
52068   return 0;
52069 if (sizeof (ino_t))
52070   return 0;
52071   ;
52072   return 0;
52073 }
52074 _ACEOF
52075 rm -f conftest.$ac_objext
52076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52077   (eval $ac_compile) 2>conftest.er1
52078   ac_status=$?
52079   grep -v '^ *+' conftest.er1 >conftest.err
52080   rm -f conftest.er1
52081   cat conftest.err >&5
52082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52083   (exit $ac_status); } &&
52084          { ac_try='test -z "$ac_c_werror_flag"
52085                          || test ! -s conftest.err'
52086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52087   (eval $ac_try) 2>&5
52088   ac_status=$?
52089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52090   (exit $ac_status); }; } &&
52091          { ac_try='test -s conftest.$ac_objext'
52092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52093   (eval $ac_try) 2>&5
52094   ac_status=$?
52095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52096   (exit $ac_status); }; }; then
52097   ac_cv_type_ino_t=yes
52098 else
52099   echo "$as_me: failed program was:" >&5
52100 sed 's/^/| /' conftest.$ac_ext >&5
52101
52102 ac_cv_type_ino_t=no
52103 fi
52104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52105 fi
52106 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
52107 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
52108 if test $ac_cv_type_ino_t = yes; then
52109   :
52110 else
52111
52112 cat >>confdefs.h <<_ACEOF
52113 #define ino_t unsigned long int
52114 _ACEOF
52115
52116 fi
52117
52118
52119
52120   echo "$as_me:$LINENO: checking for ssize_t" >&5
52121 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
52122 if test "${gt_cv_ssize_t+set}" = set; then
52123   echo $ECHO_N "(cached) $ECHO_C" >&6
52124 else
52125   cat >conftest.$ac_ext <<_ACEOF
52126 /* confdefs.h.  */
52127 _ACEOF
52128 cat confdefs.h >>conftest.$ac_ext
52129 cat >>conftest.$ac_ext <<_ACEOF
52130 /* end confdefs.h.  */
52131 #include <sys/types.h>
52132 int
52133 main ()
52134 {
52135 int x = sizeof (ssize_t *) + sizeof (ssize_t);
52136   ;
52137   return 0;
52138 }
52139 _ACEOF
52140 rm -f conftest.$ac_objext
52141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52142   (eval $ac_compile) 2>conftest.er1
52143   ac_status=$?
52144   grep -v '^ *+' conftest.er1 >conftest.err
52145   rm -f conftest.er1
52146   cat conftest.err >&5
52147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52148   (exit $ac_status); } &&
52149          { ac_try='test -z "$ac_c_werror_flag"
52150                          || test ! -s conftest.err'
52151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52152   (eval $ac_try) 2>&5
52153   ac_status=$?
52154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52155   (exit $ac_status); }; } &&
52156          { ac_try='test -s conftest.$ac_objext'
52157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52158   (eval $ac_try) 2>&5
52159   ac_status=$?
52160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52161   (exit $ac_status); }; }; then
52162   gt_cv_ssize_t=yes
52163 else
52164   echo "$as_me: failed program was:" >&5
52165 sed 's/^/| /' conftest.$ac_ext >&5
52166
52167 gt_cv_ssize_t=no
52168 fi
52169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52170 fi
52171 echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
52172 echo "${ECHO_T}$gt_cv_ssize_t" >&6
52173   if test $gt_cv_ssize_t = no; then
52174
52175 cat >>confdefs.h <<\_ACEOF
52176 #define ssize_t int
52177 _ACEOF
52178
52179   fi
52180
52181
52182       echo "$as_me:$LINENO: checking for major_t" >&5
52183 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
52184 if test "${ac_cv_type_major_t+set}" = set; then
52185   echo $ECHO_N "(cached) $ECHO_C" >&6
52186 else
52187   cat >conftest.$ac_ext <<_ACEOF
52188 /* confdefs.h.  */
52189 _ACEOF
52190 cat confdefs.h >>conftest.$ac_ext
52191 cat >>conftest.$ac_ext <<_ACEOF
52192 /* end confdefs.h.  */
52193 $ac_includes_default
52194 int
52195 main ()
52196 {
52197 if ((major_t *) 0)
52198   return 0;
52199 if (sizeof (major_t))
52200   return 0;
52201   ;
52202   return 0;
52203 }
52204 _ACEOF
52205 rm -f conftest.$ac_objext
52206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52207   (eval $ac_compile) 2>conftest.er1
52208   ac_status=$?
52209   grep -v '^ *+' conftest.er1 >conftest.err
52210   rm -f conftest.er1
52211   cat conftest.err >&5
52212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52213   (exit $ac_status); } &&
52214          { ac_try='test -z "$ac_c_werror_flag"
52215                          || test ! -s conftest.err'
52216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52217   (eval $ac_try) 2>&5
52218   ac_status=$?
52219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52220   (exit $ac_status); }; } &&
52221          { ac_try='test -s conftest.$ac_objext'
52222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52223   (eval $ac_try) 2>&5
52224   ac_status=$?
52225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52226   (exit $ac_status); }; }; then
52227   ac_cv_type_major_t=yes
52228 else
52229   echo "$as_me: failed program was:" >&5
52230 sed 's/^/| /' conftest.$ac_ext >&5
52231
52232 ac_cv_type_major_t=no
52233 fi
52234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52235 fi
52236 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
52237 echo "${ECHO_T}$ac_cv_type_major_t" >&6
52238 if test $ac_cv_type_major_t = yes; then
52239   :
52240 else
52241
52242 cat >>confdefs.h <<_ACEOF
52243 #define major_t unsigned int
52244 _ACEOF
52245
52246 fi
52247
52248   echo "$as_me:$LINENO: checking for minor_t" >&5
52249 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
52250 if test "${ac_cv_type_minor_t+set}" = set; then
52251   echo $ECHO_N "(cached) $ECHO_C" >&6
52252 else
52253   cat >conftest.$ac_ext <<_ACEOF
52254 /* confdefs.h.  */
52255 _ACEOF
52256 cat confdefs.h >>conftest.$ac_ext
52257 cat >>conftest.$ac_ext <<_ACEOF
52258 /* end confdefs.h.  */
52259 $ac_includes_default
52260 int
52261 main ()
52262 {
52263 if ((minor_t *) 0)
52264   return 0;
52265 if (sizeof (minor_t))
52266   return 0;
52267   ;
52268   return 0;
52269 }
52270 _ACEOF
52271 rm -f conftest.$ac_objext
52272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52273   (eval $ac_compile) 2>conftest.er1
52274   ac_status=$?
52275   grep -v '^ *+' conftest.er1 >conftest.err
52276   rm -f conftest.er1
52277   cat conftest.err >&5
52278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52279   (exit $ac_status); } &&
52280          { ac_try='test -z "$ac_c_werror_flag"
52281                          || test ! -s conftest.err'
52282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52283   (eval $ac_try) 2>&5
52284   ac_status=$?
52285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52286   (exit $ac_status); }; } &&
52287          { ac_try='test -s conftest.$ac_objext'
52288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52289   (eval $ac_try) 2>&5
52290   ac_status=$?
52291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52292   (exit $ac_status); }; }; then
52293   ac_cv_type_minor_t=yes
52294 else
52295   echo "$as_me: failed program was:" >&5
52296 sed 's/^/| /' conftest.$ac_ext >&5
52297
52298 ac_cv_type_minor_t=no
52299 fi
52300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52301 fi
52302 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
52303 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
52304 if test $ac_cv_type_minor_t = yes; then
52305   :
52306 else
52307
52308 cat >>confdefs.h <<_ACEOF
52309 #define minor_t unsigned int
52310 _ACEOF
52311
52312 fi
52313
52314
52315
52316
52317
52318
52319
52320
52321
52322
52323
52324
52325
52326
52327
52328
52329
52330
52331
52332
52333
52334
52335
52336
52337
52338
52339
52340
52341
52342
52343
52344
52345
52346   # This is for od and stat, and any other program that
52347   # uses the PRI.MAX macros from inttypes.h.
52348
52349
52350
52351
52352
52353
52354
52355
52356
52357   ac_have_func=no # yes means we've found a way to get the load average.
52358
52359 # Make sure getloadavg.c is where it belongs, at configure-time.
52360 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
52361   { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
52362 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
52363    { (exit 1); exit 1; }; }
52364
52365 ac_save_LIBS=$LIBS
52366
52367 # Check for getloadavg, but be sure not to touch the cache variable.
52368 (echo "$as_me:$LINENO: checking for getloadavg" >&5
52369 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
52370 if test "${ac_cv_func_getloadavg+set}" = set; then
52371   echo $ECHO_N "(cached) $ECHO_C" >&6
52372 else
52373   cat >conftest.$ac_ext <<_ACEOF
52374 /* confdefs.h.  */
52375 _ACEOF
52376 cat confdefs.h >>conftest.$ac_ext
52377 cat >>conftest.$ac_ext <<_ACEOF
52378 /* end confdefs.h.  */
52379 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
52380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52381 #define getloadavg innocuous_getloadavg
52382
52383 /* System header to define __stub macros and hopefully few prototypes,
52384     which can conflict with char getloadavg (); below.
52385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52386     <limits.h> exists even on freestanding compilers.  */
52387
52388 #ifdef __STDC__
52389 # include <limits.h>
52390 #else
52391 # include <assert.h>
52392 #endif
52393
52394 #undef getloadavg
52395
52396 /* Override any gcc2 internal prototype to avoid an error.  */
52397 #ifdef __cplusplus
52398 extern "C"
52399 {
52400 #endif
52401 /* We use char because int might match the return type of a gcc2
52402    builtin and then its argument prototype would still apply.  */
52403 char getloadavg ();
52404 /* The GNU C library defines this for functions which it implements
52405     to always fail with ENOSYS.  Some functions are actually named
52406     something starting with __ and the normal name is an alias.  */
52407 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
52408 choke me
52409 #else
52410 char (*f) () = getloadavg;
52411 #endif
52412 #ifdef __cplusplus
52413 }
52414 #endif
52415
52416 int
52417 main ()
52418 {
52419 return f != getloadavg;
52420   ;
52421   return 0;
52422 }
52423 _ACEOF
52424 rm -f conftest.$ac_objext conftest$ac_exeext
52425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52426   (eval $ac_link) 2>conftest.er1
52427   ac_status=$?
52428   grep -v '^ *+' conftest.er1 >conftest.err
52429   rm -f conftest.er1
52430   cat conftest.err >&5
52431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52432   (exit $ac_status); } &&
52433          { ac_try='test -z "$ac_c_werror_flag"
52434                          || test ! -s conftest.err'
52435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52436   (eval $ac_try) 2>&5
52437   ac_status=$?
52438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52439   (exit $ac_status); }; } &&
52440          { ac_try='test -s conftest$ac_exeext'
52441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52442   (eval $ac_try) 2>&5
52443   ac_status=$?
52444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52445   (exit $ac_status); }; }; then
52446   ac_cv_func_getloadavg=yes
52447 else
52448   echo "$as_me: failed program was:" >&5
52449 sed 's/^/| /' conftest.$ac_ext >&5
52450
52451 ac_cv_func_getloadavg=no
52452 fi
52453 rm -f conftest.err conftest.$ac_objext \
52454       conftest$ac_exeext conftest.$ac_ext
52455 fi
52456 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
52457 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
52458 if test $ac_cv_func_getloadavg = yes; then
52459   exit 0
52460 else
52461   exit 1
52462 fi
52463 ) && ac_have_func=yes
52464
52465 # On HPUX9, an unprivileged user can get load averages through this function.
52466
52467 for ac_func in pstat_getdynamic
52468 do
52469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52470 echo "$as_me:$LINENO: checking for $ac_func" >&5
52471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52472 if eval "test \"\${$as_ac_var+set}\" = set"; then
52473   echo $ECHO_N "(cached) $ECHO_C" >&6
52474 else
52475   cat >conftest.$ac_ext <<_ACEOF
52476 /* confdefs.h.  */
52477 _ACEOF
52478 cat confdefs.h >>conftest.$ac_ext
52479 cat >>conftest.$ac_ext <<_ACEOF
52480 /* end confdefs.h.  */
52481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52483 #define $ac_func innocuous_$ac_func
52484
52485 /* System header to define __stub macros and hopefully few prototypes,
52486     which can conflict with char $ac_func (); below.
52487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52488     <limits.h> exists even on freestanding compilers.  */
52489
52490 #ifdef __STDC__
52491 # include <limits.h>
52492 #else
52493 # include <assert.h>
52494 #endif
52495
52496 #undef $ac_func
52497
52498 /* Override any gcc2 internal prototype to avoid an error.  */
52499 #ifdef __cplusplus
52500 extern "C"
52501 {
52502 #endif
52503 /* We use char because int might match the return type of a gcc2
52504    builtin and then its argument prototype would still apply.  */
52505 char $ac_func ();
52506 /* The GNU C library defines this for functions which it implements
52507     to always fail with ENOSYS.  Some functions are actually named
52508     something starting with __ and the normal name is an alias.  */
52509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52510 choke me
52511 #else
52512 char (*f) () = $ac_func;
52513 #endif
52514 #ifdef __cplusplus
52515 }
52516 #endif
52517
52518 int
52519 main ()
52520 {
52521 return f != $ac_func;
52522   ;
52523   return 0;
52524 }
52525 _ACEOF
52526 rm -f conftest.$ac_objext conftest$ac_exeext
52527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52528   (eval $ac_link) 2>conftest.er1
52529   ac_status=$?
52530   grep -v '^ *+' conftest.er1 >conftest.err
52531   rm -f conftest.er1
52532   cat conftest.err >&5
52533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52534   (exit $ac_status); } &&
52535          { ac_try='test -z "$ac_c_werror_flag"
52536                          || test ! -s conftest.err'
52537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52538   (eval $ac_try) 2>&5
52539   ac_status=$?
52540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52541   (exit $ac_status); }; } &&
52542          { ac_try='test -s conftest$ac_exeext'
52543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52544   (eval $ac_try) 2>&5
52545   ac_status=$?
52546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52547   (exit $ac_status); }; }; then
52548   eval "$as_ac_var=yes"
52549 else
52550   echo "$as_me: failed program was:" >&5
52551 sed 's/^/| /' conftest.$ac_ext >&5
52552
52553 eval "$as_ac_var=no"
52554 fi
52555 rm -f conftest.err conftest.$ac_objext \
52556       conftest$ac_exeext conftest.$ac_ext
52557 fi
52558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52560 if test `eval echo '${'$as_ac_var'}'` = yes; then
52561   cat >>confdefs.h <<_ACEOF
52562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52563 _ACEOF
52564
52565 fi
52566 done
52567
52568
52569 # Solaris has libkstat which does not require root.
52570
52571 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
52572 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
52573 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
52574   echo $ECHO_N "(cached) $ECHO_C" >&6
52575 else
52576   ac_check_lib_save_LIBS=$LIBS
52577 LIBS="-lkstat  $LIBS"
52578 cat >conftest.$ac_ext <<_ACEOF
52579 /* confdefs.h.  */
52580 _ACEOF
52581 cat confdefs.h >>conftest.$ac_ext
52582 cat >>conftest.$ac_ext <<_ACEOF
52583 /* end confdefs.h.  */
52584
52585 /* Override any gcc2 internal prototype to avoid an error.  */
52586 #ifdef __cplusplus
52587 extern "C"
52588 #endif
52589 /* We use char because int might match the return type of a gcc2
52590    builtin and then its argument prototype would still apply.  */
52591 char kstat_open ();
52592 int
52593 main ()
52594 {
52595 kstat_open ();
52596   ;
52597   return 0;
52598 }
52599 _ACEOF
52600 rm -f conftest.$ac_objext conftest$ac_exeext
52601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52602   (eval $ac_link) 2>conftest.er1
52603   ac_status=$?
52604   grep -v '^ *+' conftest.er1 >conftest.err
52605   rm -f conftest.er1
52606   cat conftest.err >&5
52607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52608   (exit $ac_status); } &&
52609          { ac_try='test -z "$ac_c_werror_flag"
52610                          || test ! -s conftest.err'
52611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52612   (eval $ac_try) 2>&5
52613   ac_status=$?
52614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52615   (exit $ac_status); }; } &&
52616          { ac_try='test -s conftest$ac_exeext'
52617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52618   (eval $ac_try) 2>&5
52619   ac_status=$?
52620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52621   (exit $ac_status); }; }; then
52622   ac_cv_lib_kstat_kstat_open=yes
52623 else
52624   echo "$as_me: failed program was:" >&5
52625 sed 's/^/| /' conftest.$ac_ext >&5
52626
52627 ac_cv_lib_kstat_kstat_open=no
52628 fi
52629 rm -f conftest.err conftest.$ac_objext \
52630       conftest$ac_exeext conftest.$ac_ext
52631 LIBS=$ac_check_lib_save_LIBS
52632 fi
52633 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
52634 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
52635 if test $ac_cv_lib_kstat_kstat_open = yes; then
52636   cat >>confdefs.h <<_ACEOF
52637 #define HAVE_LIBKSTAT 1
52638 _ACEOF
52639
52640   LIBS="-lkstat $LIBS"
52641
52642 fi
52643
52644 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
52645
52646 # Some systems with -lutil have (and need) -lkvm as well, some do not.
52647 # On Solaris, -lkvm requires nlist from -lelf, so check that first
52648 # to get the right answer into the cache.
52649 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
52650 if test $ac_have_func = no; then
52651   echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
52652 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
52653 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
52654   echo $ECHO_N "(cached) $ECHO_C" >&6
52655 else
52656   ac_check_lib_save_LIBS=$LIBS
52657 LIBS="-lelf  $LIBS"
52658 cat >conftest.$ac_ext <<_ACEOF
52659 /* confdefs.h.  */
52660 _ACEOF
52661 cat confdefs.h >>conftest.$ac_ext
52662 cat >>conftest.$ac_ext <<_ACEOF
52663 /* end confdefs.h.  */
52664
52665 /* Override any gcc2 internal prototype to avoid an error.  */
52666 #ifdef __cplusplus
52667 extern "C"
52668 #endif
52669 /* We use char because int might match the return type of a gcc2
52670    builtin and then its argument prototype would still apply.  */
52671 char elf_begin ();
52672 int
52673 main ()
52674 {
52675 elf_begin ();
52676   ;
52677   return 0;
52678 }
52679 _ACEOF
52680 rm -f conftest.$ac_objext conftest$ac_exeext
52681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52682   (eval $ac_link) 2>conftest.er1
52683   ac_status=$?
52684   grep -v '^ *+' conftest.er1 >conftest.err
52685   rm -f conftest.er1
52686   cat conftest.err >&5
52687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52688   (exit $ac_status); } &&
52689          { ac_try='test -z "$ac_c_werror_flag"
52690                          || test ! -s conftest.err'
52691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52692   (eval $ac_try) 2>&5
52693   ac_status=$?
52694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52695   (exit $ac_status); }; } &&
52696          { ac_try='test -s conftest$ac_exeext'
52697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52698   (eval $ac_try) 2>&5
52699   ac_status=$?
52700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52701   (exit $ac_status); }; }; then
52702   ac_cv_lib_elf_elf_begin=yes
52703 else
52704   echo "$as_me: failed program was:" >&5
52705 sed 's/^/| /' conftest.$ac_ext >&5
52706
52707 ac_cv_lib_elf_elf_begin=no
52708 fi
52709 rm -f conftest.err conftest.$ac_objext \
52710       conftest$ac_exeext conftest.$ac_ext
52711 LIBS=$ac_check_lib_save_LIBS
52712 fi
52713 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
52714 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
52715 if test $ac_cv_lib_elf_elf_begin = yes; then
52716   LIBS="-lelf $LIBS"
52717 fi
52718
52719 fi
52720 if test $ac_have_func = no; then
52721   echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
52722 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
52723 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
52724   echo $ECHO_N "(cached) $ECHO_C" >&6
52725 else
52726   ac_check_lib_save_LIBS=$LIBS
52727 LIBS="-lkvm  $LIBS"
52728 cat >conftest.$ac_ext <<_ACEOF
52729 /* confdefs.h.  */
52730 _ACEOF
52731 cat confdefs.h >>conftest.$ac_ext
52732 cat >>conftest.$ac_ext <<_ACEOF
52733 /* end confdefs.h.  */
52734
52735 /* Override any gcc2 internal prototype to avoid an error.  */
52736 #ifdef __cplusplus
52737 extern "C"
52738 #endif
52739 /* We use char because int might match the return type of a gcc2
52740    builtin and then its argument prototype would still apply.  */
52741 char kvm_open ();
52742 int
52743 main ()
52744 {
52745 kvm_open ();
52746   ;
52747   return 0;
52748 }
52749 _ACEOF
52750 rm -f conftest.$ac_objext conftest$ac_exeext
52751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52752   (eval $ac_link) 2>conftest.er1
52753   ac_status=$?
52754   grep -v '^ *+' conftest.er1 >conftest.err
52755   rm -f conftest.er1
52756   cat conftest.err >&5
52757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52758   (exit $ac_status); } &&
52759          { ac_try='test -z "$ac_c_werror_flag"
52760                          || test ! -s conftest.err'
52761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52762   (eval $ac_try) 2>&5
52763   ac_status=$?
52764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52765   (exit $ac_status); }; } &&
52766          { ac_try='test -s conftest$ac_exeext'
52767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52768   (eval $ac_try) 2>&5
52769   ac_status=$?
52770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52771   (exit $ac_status); }; }; then
52772   ac_cv_lib_kvm_kvm_open=yes
52773 else
52774   echo "$as_me: failed program was:" >&5
52775 sed 's/^/| /' conftest.$ac_ext >&5
52776
52777 ac_cv_lib_kvm_kvm_open=no
52778 fi
52779 rm -f conftest.err conftest.$ac_objext \
52780       conftest$ac_exeext conftest.$ac_ext
52781 LIBS=$ac_check_lib_save_LIBS
52782 fi
52783 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
52784 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
52785 if test $ac_cv_lib_kvm_kvm_open = yes; then
52786   LIBS="-lkvm $LIBS"
52787 fi
52788
52789   # Check for the 4.4BSD definition of getloadavg.
52790   echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
52791 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
52792 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
52793   echo $ECHO_N "(cached) $ECHO_C" >&6
52794 else
52795   ac_check_lib_save_LIBS=$LIBS
52796 LIBS="-lutil  $LIBS"
52797 cat >conftest.$ac_ext <<_ACEOF
52798 /* confdefs.h.  */
52799 _ACEOF
52800 cat confdefs.h >>conftest.$ac_ext
52801 cat >>conftest.$ac_ext <<_ACEOF
52802 /* end confdefs.h.  */
52803
52804 /* Override any gcc2 internal prototype to avoid an error.  */
52805 #ifdef __cplusplus
52806 extern "C"
52807 #endif
52808 /* We use char because int might match the return type of a gcc2
52809    builtin and then its argument prototype would still apply.  */
52810 char getloadavg ();
52811 int
52812 main ()
52813 {
52814 getloadavg ();
52815   ;
52816   return 0;
52817 }
52818 _ACEOF
52819 rm -f conftest.$ac_objext conftest$ac_exeext
52820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52821   (eval $ac_link) 2>conftest.er1
52822   ac_status=$?
52823   grep -v '^ *+' conftest.er1 >conftest.err
52824   rm -f conftest.er1
52825   cat conftest.err >&5
52826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52827   (exit $ac_status); } &&
52828          { ac_try='test -z "$ac_c_werror_flag"
52829                          || test ! -s conftest.err'
52830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52831   (eval $ac_try) 2>&5
52832   ac_status=$?
52833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52834   (exit $ac_status); }; } &&
52835          { ac_try='test -s conftest$ac_exeext'
52836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52837   (eval $ac_try) 2>&5
52838   ac_status=$?
52839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52840   (exit $ac_status); }; }; then
52841   ac_cv_lib_util_getloadavg=yes
52842 else
52843   echo "$as_me: failed program was:" >&5
52844 sed 's/^/| /' conftest.$ac_ext >&5
52845
52846 ac_cv_lib_util_getloadavg=no
52847 fi
52848 rm -f conftest.err conftest.$ac_objext \
52849       conftest$ac_exeext conftest.$ac_ext
52850 LIBS=$ac_check_lib_save_LIBS
52851 fi
52852 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
52853 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
52854 if test $ac_cv_lib_util_getloadavg = yes; then
52855   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
52856 fi
52857
52858 fi
52859
52860 if test $ac_have_func = no; then
52861   # There is a commonly available library for RS/6000 AIX.
52862   # Since it is not a standard part of AIX, it might be installed locally.
52863   ac_getloadavg_LIBS=$LIBS
52864   LIBS="-L/usr/local/lib $LIBS"
52865   echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
52866 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
52867 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
52868   echo $ECHO_N "(cached) $ECHO_C" >&6
52869 else
52870   ac_check_lib_save_LIBS=$LIBS
52871 LIBS="-lgetloadavg  $LIBS"
52872 cat >conftest.$ac_ext <<_ACEOF
52873 /* confdefs.h.  */
52874 _ACEOF
52875 cat confdefs.h >>conftest.$ac_ext
52876 cat >>conftest.$ac_ext <<_ACEOF
52877 /* end confdefs.h.  */
52878
52879 /* Override any gcc2 internal prototype to avoid an error.  */
52880 #ifdef __cplusplus
52881 extern "C"
52882 #endif
52883 /* We use char because int might match the return type of a gcc2
52884    builtin and then its argument prototype would still apply.  */
52885 char getloadavg ();
52886 int
52887 main ()
52888 {
52889 getloadavg ();
52890   ;
52891   return 0;
52892 }
52893 _ACEOF
52894 rm -f conftest.$ac_objext conftest$ac_exeext
52895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52896   (eval $ac_link) 2>conftest.er1
52897   ac_status=$?
52898   grep -v '^ *+' conftest.er1 >conftest.err
52899   rm -f conftest.er1
52900   cat conftest.err >&5
52901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52902   (exit $ac_status); } &&
52903          { ac_try='test -z "$ac_c_werror_flag"
52904                          || test ! -s conftest.err'
52905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52906   (eval $ac_try) 2>&5
52907   ac_status=$?
52908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52909   (exit $ac_status); }; } &&
52910          { ac_try='test -s conftest$ac_exeext'
52911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52912   (eval $ac_try) 2>&5
52913   ac_status=$?
52914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52915   (exit $ac_status); }; }; then
52916   ac_cv_lib_getloadavg_getloadavg=yes
52917 else
52918   echo "$as_me: failed program was:" >&5
52919 sed 's/^/| /' conftest.$ac_ext >&5
52920
52921 ac_cv_lib_getloadavg_getloadavg=no
52922 fi
52923 rm -f conftest.err conftest.$ac_objext \
52924       conftest$ac_exeext conftest.$ac_ext
52925 LIBS=$ac_check_lib_save_LIBS
52926 fi
52927 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
52928 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
52929 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
52930   LIBS="-lgetloadavg $LIBS"
52931 else
52932   LIBS=$ac_getloadavg_LIBS
52933 fi
52934
52935 fi
52936
52937 # Make sure it is really in the library, if we think we found it,
52938 # otherwise set up the replacement function.
52939
52940 for ac_func in getloadavg
52941 do
52942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52943 echo "$as_me:$LINENO: checking for $ac_func" >&5
52944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52945 if eval "test \"\${$as_ac_var+set}\" = set"; then
52946   echo $ECHO_N "(cached) $ECHO_C" >&6
52947 else
52948   cat >conftest.$ac_ext <<_ACEOF
52949 /* confdefs.h.  */
52950 _ACEOF
52951 cat confdefs.h >>conftest.$ac_ext
52952 cat >>conftest.$ac_ext <<_ACEOF
52953 /* end confdefs.h.  */
52954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52956 #define $ac_func innocuous_$ac_func
52957
52958 /* System header to define __stub macros and hopefully few prototypes,
52959     which can conflict with char $ac_func (); below.
52960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52961     <limits.h> exists even on freestanding compilers.  */
52962
52963 #ifdef __STDC__
52964 # include <limits.h>
52965 #else
52966 # include <assert.h>
52967 #endif
52968
52969 #undef $ac_func
52970
52971 /* Override any gcc2 internal prototype to avoid an error.  */
52972 #ifdef __cplusplus
52973 extern "C"
52974 {
52975 #endif
52976 /* We use char because int might match the return type of a gcc2
52977    builtin and then its argument prototype would still apply.  */
52978 char $ac_func ();
52979 /* The GNU C library defines this for functions which it implements
52980     to always fail with ENOSYS.  Some functions are actually named
52981     something starting with __ and the normal name is an alias.  */
52982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52983 choke me
52984 #else
52985 char (*f) () = $ac_func;
52986 #endif
52987 #ifdef __cplusplus
52988 }
52989 #endif
52990
52991 int
52992 main ()
52993 {
52994 return f != $ac_func;
52995   ;
52996   return 0;
52997 }
52998 _ACEOF
52999 rm -f conftest.$ac_objext conftest$ac_exeext
53000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53001   (eval $ac_link) 2>conftest.er1
53002   ac_status=$?
53003   grep -v '^ *+' conftest.er1 >conftest.err
53004   rm -f conftest.er1
53005   cat conftest.err >&5
53006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53007   (exit $ac_status); } &&
53008          { ac_try='test -z "$ac_c_werror_flag"
53009                          || test ! -s conftest.err'
53010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53011   (eval $ac_try) 2>&5
53012   ac_status=$?
53013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53014   (exit $ac_status); }; } &&
53015          { ac_try='test -s conftest$ac_exeext'
53016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53017   (eval $ac_try) 2>&5
53018   ac_status=$?
53019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53020   (exit $ac_status); }; }; then
53021   eval "$as_ac_var=yes"
53022 else
53023   echo "$as_me: failed program was:" >&5
53024 sed 's/^/| /' conftest.$ac_ext >&5
53025
53026 eval "$as_ac_var=no"
53027 fi
53028 rm -f conftest.err conftest.$ac_objext \
53029       conftest$ac_exeext conftest.$ac_ext
53030 fi
53031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53033 if test `eval echo '${'$as_ac_var'}'` = yes; then
53034   cat >>confdefs.h <<_ACEOF
53035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53036 _ACEOF
53037
53038 else
53039   case $LIBOBJS in
53040     "getloadavg.$ac_objext"   | \
53041   *" getloadavg.$ac_objext"   | \
53042     "getloadavg.$ac_objext "* | \
53043   *" getloadavg.$ac_objext "* ) ;;
53044   *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
53045 esac
53046
53047
53048 cat >>confdefs.h <<\_ACEOF
53049 #define C_GETLOADAVG 1
53050 _ACEOF
53051
53052 # Figure out what our getloadavg.c needs.
53053 ac_have_func=no
53054 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
53055   echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
53056 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
53057 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
53058   echo $ECHO_N "(cached) $ECHO_C" >&6
53059 fi
53060 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
53061 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
53062 else
53063   # Is the header compilable?
53064 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
53065 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
53066 cat >conftest.$ac_ext <<_ACEOF
53067 /* confdefs.h.  */
53068 _ACEOF
53069 cat confdefs.h >>conftest.$ac_ext
53070 cat >>conftest.$ac_ext <<_ACEOF
53071 /* end confdefs.h.  */
53072 $ac_includes_default
53073 #include <sys/dg_sys_info.h>
53074 _ACEOF
53075 rm -f conftest.$ac_objext
53076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53077   (eval $ac_compile) 2>conftest.er1
53078   ac_status=$?
53079   grep -v '^ *+' conftest.er1 >conftest.err
53080   rm -f conftest.er1
53081   cat conftest.err >&5
53082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53083   (exit $ac_status); } &&
53084          { ac_try='test -z "$ac_c_werror_flag"
53085                          || test ! -s conftest.err'
53086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53087   (eval $ac_try) 2>&5
53088   ac_status=$?
53089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53090   (exit $ac_status); }; } &&
53091          { ac_try='test -s conftest.$ac_objext'
53092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53093   (eval $ac_try) 2>&5
53094   ac_status=$?
53095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53096   (exit $ac_status); }; }; then
53097   ac_header_compiler=yes
53098 else
53099   echo "$as_me: failed program was:" >&5
53100 sed 's/^/| /' conftest.$ac_ext >&5
53101
53102 ac_header_compiler=no
53103 fi
53104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53106 echo "${ECHO_T}$ac_header_compiler" >&6
53107
53108 # Is the header present?
53109 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
53110 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
53111 cat >conftest.$ac_ext <<_ACEOF
53112 /* confdefs.h.  */
53113 _ACEOF
53114 cat confdefs.h >>conftest.$ac_ext
53115 cat >>conftest.$ac_ext <<_ACEOF
53116 /* end confdefs.h.  */
53117 #include <sys/dg_sys_info.h>
53118 _ACEOF
53119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53121   ac_status=$?
53122   grep -v '^ *+' conftest.er1 >conftest.err
53123   rm -f conftest.er1
53124   cat conftest.err >&5
53125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53126   (exit $ac_status); } >/dev/null; then
53127   if test -s conftest.err; then
53128     ac_cpp_err=$ac_c_preproc_warn_flag
53129     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53130   else
53131     ac_cpp_err=
53132   fi
53133 else
53134   ac_cpp_err=yes
53135 fi
53136 if test -z "$ac_cpp_err"; then
53137   ac_header_preproc=yes
53138 else
53139   echo "$as_me: failed program was:" >&5
53140 sed 's/^/| /' conftest.$ac_ext >&5
53141
53142   ac_header_preproc=no
53143 fi
53144 rm -f conftest.err conftest.$ac_ext
53145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53146 echo "${ECHO_T}$ac_header_preproc" >&6
53147
53148 # So?  What about this header?
53149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53150   yes:no: )
53151     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
53152 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53153     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
53154 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
53155     ac_header_preproc=yes
53156     ;;
53157   no:yes:* )
53158     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
53159 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
53160     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
53161 echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
53162     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
53163 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
53164     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
53165 echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
53166     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
53167 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
53168     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
53169 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
53170     (
53171       cat <<\_ASBOX
53172 ## ------------------------------------ ##
53173 ## Report this to bug-coreutils@gnu.org ##
53174 ## ------------------------------------ ##
53175 _ASBOX
53176     ) |
53177       sed "s/^/$as_me: WARNING:     /" >&2
53178     ;;
53179 esac
53180 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
53181 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
53182 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
53183   echo $ECHO_N "(cached) $ECHO_C" >&6
53184 else
53185   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
53186 fi
53187 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
53188 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
53189
53190 fi
53191 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
53192   ac_have_func=yes
53193
53194 cat >>confdefs.h <<\_ACEOF
53195 #define DGUX 1
53196 _ACEOF
53197
53198
53199 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
53200 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
53201 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
53202   echo $ECHO_N "(cached) $ECHO_C" >&6
53203 else
53204   ac_check_lib_save_LIBS=$LIBS
53205 LIBS="-ldgc  $LIBS"
53206 cat >conftest.$ac_ext <<_ACEOF
53207 /* confdefs.h.  */
53208 _ACEOF
53209 cat confdefs.h >>conftest.$ac_ext
53210 cat >>conftest.$ac_ext <<_ACEOF
53211 /* end confdefs.h.  */
53212
53213 /* Override any gcc2 internal prototype to avoid an error.  */
53214 #ifdef __cplusplus
53215 extern "C"
53216 #endif
53217 /* We use char because int might match the return type of a gcc2
53218    builtin and then its argument prototype would still apply.  */
53219 char dg_sys_info ();
53220 int
53221 main ()
53222 {
53223 dg_sys_info ();
53224   ;
53225   return 0;
53226 }
53227 _ACEOF
53228 rm -f conftest.$ac_objext conftest$ac_exeext
53229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53230   (eval $ac_link) 2>conftest.er1
53231   ac_status=$?
53232   grep -v '^ *+' conftest.er1 >conftest.err
53233   rm -f conftest.er1
53234   cat conftest.err >&5
53235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53236   (exit $ac_status); } &&
53237          { ac_try='test -z "$ac_c_werror_flag"
53238                          || test ! -s conftest.err'
53239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53240   (eval $ac_try) 2>&5
53241   ac_status=$?
53242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53243   (exit $ac_status); }; } &&
53244          { ac_try='test -s conftest$ac_exeext'
53245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53246   (eval $ac_try) 2>&5
53247   ac_status=$?
53248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53249   (exit $ac_status); }; }; then
53250   ac_cv_lib_dgc_dg_sys_info=yes
53251 else
53252   echo "$as_me: failed program was:" >&5
53253 sed 's/^/| /' conftest.$ac_ext >&5
53254
53255 ac_cv_lib_dgc_dg_sys_info=no
53256 fi
53257 rm -f conftest.err conftest.$ac_objext \
53258       conftest$ac_exeext conftest.$ac_ext
53259 LIBS=$ac_check_lib_save_LIBS
53260 fi
53261 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
53262 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
53263 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
53264   cat >>confdefs.h <<_ACEOF
53265 #define HAVE_LIBDGC 1
53266 _ACEOF
53267
53268   LIBS="-ldgc $LIBS"
53269
53270 fi
53271
53272 fi
53273
53274
53275
53276 if test "${ac_cv_header_locale_h+set}" = set; then
53277   echo "$as_me:$LINENO: checking for locale.h" >&5
53278 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
53279 if test "${ac_cv_header_locale_h+set}" = set; then
53280   echo $ECHO_N "(cached) $ECHO_C" >&6
53281 fi
53282 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
53283 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
53284 else
53285   # Is the header compilable?
53286 echo "$as_me:$LINENO: checking locale.h usability" >&5
53287 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
53288 cat >conftest.$ac_ext <<_ACEOF
53289 /* confdefs.h.  */
53290 _ACEOF
53291 cat confdefs.h >>conftest.$ac_ext
53292 cat >>conftest.$ac_ext <<_ACEOF
53293 /* end confdefs.h.  */
53294 $ac_includes_default
53295 #include <locale.h>
53296 _ACEOF
53297 rm -f conftest.$ac_objext
53298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53299   (eval $ac_compile) 2>conftest.er1
53300   ac_status=$?
53301   grep -v '^ *+' conftest.er1 >conftest.err
53302   rm -f conftest.er1
53303   cat conftest.err >&5
53304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53305   (exit $ac_status); } &&
53306          { ac_try='test -z "$ac_c_werror_flag"
53307                          || test ! -s conftest.err'
53308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53309   (eval $ac_try) 2>&5
53310   ac_status=$?
53311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53312   (exit $ac_status); }; } &&
53313          { ac_try='test -s conftest.$ac_objext'
53314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53315   (eval $ac_try) 2>&5
53316   ac_status=$?
53317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53318   (exit $ac_status); }; }; then
53319   ac_header_compiler=yes
53320 else
53321   echo "$as_me: failed program was:" >&5
53322 sed 's/^/| /' conftest.$ac_ext >&5
53323
53324 ac_header_compiler=no
53325 fi
53326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53328 echo "${ECHO_T}$ac_header_compiler" >&6
53329
53330 # Is the header present?
53331 echo "$as_me:$LINENO: checking locale.h presence" >&5
53332 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
53333 cat >conftest.$ac_ext <<_ACEOF
53334 /* confdefs.h.  */
53335 _ACEOF
53336 cat confdefs.h >>conftest.$ac_ext
53337 cat >>conftest.$ac_ext <<_ACEOF
53338 /* end confdefs.h.  */
53339 #include <locale.h>
53340 _ACEOF
53341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53342   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53343   ac_status=$?
53344   grep -v '^ *+' conftest.er1 >conftest.err
53345   rm -f conftest.er1
53346   cat conftest.err >&5
53347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53348   (exit $ac_status); } >/dev/null; then
53349   if test -s conftest.err; then
53350     ac_cpp_err=$ac_c_preproc_warn_flag
53351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53352   else
53353     ac_cpp_err=
53354   fi
53355 else
53356   ac_cpp_err=yes
53357 fi
53358 if test -z "$ac_cpp_err"; then
53359   ac_header_preproc=yes
53360 else
53361   echo "$as_me: failed program was:" >&5
53362 sed 's/^/| /' conftest.$ac_ext >&5
53363
53364   ac_header_preproc=no
53365 fi
53366 rm -f conftest.err conftest.$ac_ext
53367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53368 echo "${ECHO_T}$ac_header_preproc" >&6
53369
53370 # So?  What about this header?
53371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53372   yes:no: )
53373     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
53374 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53375     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
53376 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
53377     ac_header_preproc=yes
53378     ;;
53379   no:yes:* )
53380     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
53381 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
53382     { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
53383 echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
53384     { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
53385 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
53386     { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
53387 echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
53388     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
53389 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
53390     { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
53391 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
53392     (
53393       cat <<\_ASBOX
53394 ## ------------------------------------ ##
53395 ## Report this to bug-coreutils@gnu.org ##
53396 ## ------------------------------------ ##
53397 _ASBOX
53398     ) |
53399       sed "s/^/$as_me: WARNING:     /" >&2
53400     ;;
53401 esac
53402 echo "$as_me:$LINENO: checking for locale.h" >&5
53403 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
53404 if test "${ac_cv_header_locale_h+set}" = set; then
53405   echo $ECHO_N "(cached) $ECHO_C" >&6
53406 else
53407   ac_cv_header_locale_h=$ac_header_preproc
53408 fi
53409 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
53410 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
53411
53412 fi
53413
53414
53415
53416 for ac_func in setlocale
53417 do
53418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53419 echo "$as_me:$LINENO: checking for $ac_func" >&5
53420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53421 if eval "test \"\${$as_ac_var+set}\" = set"; then
53422   echo $ECHO_N "(cached) $ECHO_C" >&6
53423 else
53424   cat >conftest.$ac_ext <<_ACEOF
53425 /* confdefs.h.  */
53426 _ACEOF
53427 cat confdefs.h >>conftest.$ac_ext
53428 cat >>conftest.$ac_ext <<_ACEOF
53429 /* end confdefs.h.  */
53430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53432 #define $ac_func innocuous_$ac_func
53433
53434 /* System header to define __stub macros and hopefully few prototypes,
53435     which can conflict with char $ac_func (); below.
53436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53437     <limits.h> exists even on freestanding compilers.  */
53438
53439 #ifdef __STDC__
53440 # include <limits.h>
53441 #else
53442 # include <assert.h>
53443 #endif
53444
53445 #undef $ac_func
53446
53447 /* Override any gcc2 internal prototype to avoid an error.  */
53448 #ifdef __cplusplus
53449 extern "C"
53450 {
53451 #endif
53452 /* We use char because int might match the return type of a gcc2
53453    builtin and then its argument prototype would still apply.  */
53454 char $ac_func ();
53455 /* The GNU C library defines this for functions which it implements
53456     to always fail with ENOSYS.  Some functions are actually named
53457     something starting with __ and the normal name is an alias.  */
53458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53459 choke me
53460 #else
53461 char (*f) () = $ac_func;
53462 #endif
53463 #ifdef __cplusplus
53464 }
53465 #endif
53466
53467 int
53468 main ()
53469 {
53470 return f != $ac_func;
53471   ;
53472   return 0;
53473 }
53474 _ACEOF
53475 rm -f conftest.$ac_objext conftest$ac_exeext
53476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53477   (eval $ac_link) 2>conftest.er1
53478   ac_status=$?
53479   grep -v '^ *+' conftest.er1 >conftest.err
53480   rm -f conftest.er1
53481   cat conftest.err >&5
53482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53483   (exit $ac_status); } &&
53484          { ac_try='test -z "$ac_c_werror_flag"
53485                          || test ! -s conftest.err'
53486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53487   (eval $ac_try) 2>&5
53488   ac_status=$?
53489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53490   (exit $ac_status); }; } &&
53491          { ac_try='test -s conftest$ac_exeext'
53492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53493   (eval $ac_try) 2>&5
53494   ac_status=$?
53495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53496   (exit $ac_status); }; }; then
53497   eval "$as_ac_var=yes"
53498 else
53499   echo "$as_me: failed program was:" >&5
53500 sed 's/^/| /' conftest.$ac_ext >&5
53501
53502 eval "$as_ac_var=no"
53503 fi
53504 rm -f conftest.err conftest.$ac_objext \
53505       conftest$ac_exeext conftest.$ac_ext
53506 fi
53507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53509 if test `eval echo '${'$as_ac_var'}'` = yes; then
53510   cat >>confdefs.h <<_ACEOF
53511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53512 _ACEOF
53513
53514 fi
53515 done
53516
53517
53518 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
53519 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
53520 # Irix 4.0.5F has the header but not the library.
53521 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
53522   ac_have_func=yes
53523
53524 cat >>confdefs.h <<\_ACEOF
53525 #define SVR4 1
53526 _ACEOF
53527
53528 fi
53529
53530 if test $ac_have_func = no; then
53531   if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
53532   echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
53533 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
53534 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
53535   echo $ECHO_N "(cached) $ECHO_C" >&6
53536 fi
53537 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
53538 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
53539 else
53540   # Is the header compilable?
53541 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
53542 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
53543 cat >conftest.$ac_ext <<_ACEOF
53544 /* confdefs.h.  */
53545 _ACEOF
53546 cat confdefs.h >>conftest.$ac_ext
53547 cat >>conftest.$ac_ext <<_ACEOF
53548 /* end confdefs.h.  */
53549 $ac_includes_default
53550 #include <inq_stats/cpustats.h>
53551 _ACEOF
53552 rm -f conftest.$ac_objext
53553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53554   (eval $ac_compile) 2>conftest.er1
53555   ac_status=$?
53556   grep -v '^ *+' conftest.er1 >conftest.err
53557   rm -f conftest.er1
53558   cat conftest.err >&5
53559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53560   (exit $ac_status); } &&
53561          { ac_try='test -z "$ac_c_werror_flag"
53562                          || test ! -s conftest.err'
53563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53564   (eval $ac_try) 2>&5
53565   ac_status=$?
53566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53567   (exit $ac_status); }; } &&
53568          { ac_try='test -s conftest.$ac_objext'
53569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53570   (eval $ac_try) 2>&5
53571   ac_status=$?
53572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53573   (exit $ac_status); }; }; then
53574   ac_header_compiler=yes
53575 else
53576   echo "$as_me: failed program was:" >&5
53577 sed 's/^/| /' conftest.$ac_ext >&5
53578
53579 ac_header_compiler=no
53580 fi
53581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53583 echo "${ECHO_T}$ac_header_compiler" >&6
53584
53585 # Is the header present?
53586 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
53587 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
53588 cat >conftest.$ac_ext <<_ACEOF
53589 /* confdefs.h.  */
53590 _ACEOF
53591 cat confdefs.h >>conftest.$ac_ext
53592 cat >>conftest.$ac_ext <<_ACEOF
53593 /* end confdefs.h.  */
53594 #include <inq_stats/cpustats.h>
53595 _ACEOF
53596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53597   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53598   ac_status=$?
53599   grep -v '^ *+' conftest.er1 >conftest.err
53600   rm -f conftest.er1
53601   cat conftest.err >&5
53602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53603   (exit $ac_status); } >/dev/null; then
53604   if test -s conftest.err; then
53605     ac_cpp_err=$ac_c_preproc_warn_flag
53606     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53607   else
53608     ac_cpp_err=
53609   fi
53610 else
53611   ac_cpp_err=yes
53612 fi
53613 if test -z "$ac_cpp_err"; then
53614   ac_header_preproc=yes
53615 else
53616   echo "$as_me: failed program was:" >&5
53617 sed 's/^/| /' conftest.$ac_ext >&5
53618
53619   ac_header_preproc=no
53620 fi
53621 rm -f conftest.err conftest.$ac_ext
53622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53623 echo "${ECHO_T}$ac_header_preproc" >&6
53624
53625 # So?  What about this header?
53626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53627   yes:no: )
53628     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
53629 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53630     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
53631 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
53632     ac_header_preproc=yes
53633     ;;
53634   no:yes:* )
53635     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
53636 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
53637     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&5
53638 echo "$as_me: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&2;}
53639     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
53640 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
53641     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
53642 echo "$as_me: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
53643     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
53644 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
53645     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
53646 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
53647     (
53648       cat <<\_ASBOX
53649 ## ------------------------------------ ##
53650 ## Report this to bug-coreutils@gnu.org ##
53651 ## ------------------------------------ ##
53652 _ASBOX
53653     ) |
53654       sed "s/^/$as_me: WARNING:     /" >&2
53655     ;;
53656 esac
53657 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
53658 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
53659 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
53660   echo $ECHO_N "(cached) $ECHO_C" >&6
53661 else
53662   ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
53663 fi
53664 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
53665 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
53666
53667 fi
53668 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
53669   ac_have_func=yes
53670
53671 cat >>confdefs.h <<\_ACEOF
53672 #define UMAX 1
53673 _ACEOF
53674
53675
53676 cat >>confdefs.h <<\_ACEOF
53677 #define UMAX4_3 1
53678 _ACEOF
53679
53680 fi
53681
53682
53683 fi
53684
53685 if test $ac_have_func = no; then
53686   if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
53687   echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
53688 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
53689 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
53690   echo $ECHO_N "(cached) $ECHO_C" >&6
53691 fi
53692 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
53693 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
53694 else
53695   # Is the header compilable?
53696 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
53697 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
53698 cat >conftest.$ac_ext <<_ACEOF
53699 /* confdefs.h.  */
53700 _ACEOF
53701 cat confdefs.h >>conftest.$ac_ext
53702 cat >>conftest.$ac_ext <<_ACEOF
53703 /* end confdefs.h.  */
53704 $ac_includes_default
53705 #include <sys/cpustats.h>
53706 _ACEOF
53707 rm -f conftest.$ac_objext
53708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53709   (eval $ac_compile) 2>conftest.er1
53710   ac_status=$?
53711   grep -v '^ *+' conftest.er1 >conftest.err
53712   rm -f conftest.er1
53713   cat conftest.err >&5
53714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53715   (exit $ac_status); } &&
53716          { ac_try='test -z "$ac_c_werror_flag"
53717                          || test ! -s conftest.err'
53718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53719   (eval $ac_try) 2>&5
53720   ac_status=$?
53721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53722   (exit $ac_status); }; } &&
53723          { ac_try='test -s conftest.$ac_objext'
53724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53725   (eval $ac_try) 2>&5
53726   ac_status=$?
53727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53728   (exit $ac_status); }; }; then
53729   ac_header_compiler=yes
53730 else
53731   echo "$as_me: failed program was:" >&5
53732 sed 's/^/| /' conftest.$ac_ext >&5
53733
53734 ac_header_compiler=no
53735 fi
53736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53738 echo "${ECHO_T}$ac_header_compiler" >&6
53739
53740 # Is the header present?
53741 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
53742 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
53743 cat >conftest.$ac_ext <<_ACEOF
53744 /* confdefs.h.  */
53745 _ACEOF
53746 cat confdefs.h >>conftest.$ac_ext
53747 cat >>conftest.$ac_ext <<_ACEOF
53748 /* end confdefs.h.  */
53749 #include <sys/cpustats.h>
53750 _ACEOF
53751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53752   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53753   ac_status=$?
53754   grep -v '^ *+' conftest.er1 >conftest.err
53755   rm -f conftest.er1
53756   cat conftest.err >&5
53757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53758   (exit $ac_status); } >/dev/null; then
53759   if test -s conftest.err; then
53760     ac_cpp_err=$ac_c_preproc_warn_flag
53761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53762   else
53763     ac_cpp_err=
53764   fi
53765 else
53766   ac_cpp_err=yes
53767 fi
53768 if test -z "$ac_cpp_err"; then
53769   ac_header_preproc=yes
53770 else
53771   echo "$as_me: failed program was:" >&5
53772 sed 's/^/| /' conftest.$ac_ext >&5
53773
53774   ac_header_preproc=no
53775 fi
53776 rm -f conftest.err conftest.$ac_ext
53777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53778 echo "${ECHO_T}$ac_header_preproc" >&6
53779
53780 # So?  What about this header?
53781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53782   yes:no: )
53783     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
53784 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
53785     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
53786 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
53787     ac_header_preproc=yes
53788     ;;
53789   no:yes:* )
53790     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
53791 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
53792     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&5
53793 echo "$as_me: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&2;}
53794     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
53795 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
53796     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
53797 echo "$as_me: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
53798     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
53799 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
53800     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
53801 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
53802     (
53803       cat <<\_ASBOX
53804 ## ------------------------------------ ##
53805 ## Report this to bug-coreutils@gnu.org ##
53806 ## ------------------------------------ ##
53807 _ASBOX
53808     ) |
53809       sed "s/^/$as_me: WARNING:     /" >&2
53810     ;;
53811 esac
53812 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
53813 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
53814 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
53815   echo $ECHO_N "(cached) $ECHO_C" >&6
53816 else
53817   ac_cv_header_sys_cpustats_h=$ac_header_preproc
53818 fi
53819 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
53820 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
53821
53822 fi
53823 if test $ac_cv_header_sys_cpustats_h = yes; then
53824   ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
53825 #define UMAX 1
53826 _ACEOF
53827
53828 fi
53829
53830
53831 fi
53832
53833 if test $ac_have_func = no; then
53834
53835 for ac_header in mach/mach.h
53836 do
53837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53839   echo "$as_me:$LINENO: checking for $ac_header" >&5
53840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53842   echo $ECHO_N "(cached) $ECHO_C" >&6
53843 fi
53844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53846 else
53847   # Is the header compilable?
53848 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53850 cat >conftest.$ac_ext <<_ACEOF
53851 /* confdefs.h.  */
53852 _ACEOF
53853 cat confdefs.h >>conftest.$ac_ext
53854 cat >>conftest.$ac_ext <<_ACEOF
53855 /* end confdefs.h.  */
53856 $ac_includes_default
53857 #include <$ac_header>
53858 _ACEOF
53859 rm -f conftest.$ac_objext
53860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53861   (eval $ac_compile) 2>conftest.er1
53862   ac_status=$?
53863   grep -v '^ *+' conftest.er1 >conftest.err
53864   rm -f conftest.er1
53865   cat conftest.err >&5
53866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53867   (exit $ac_status); } &&
53868          { ac_try='test -z "$ac_c_werror_flag"
53869                          || test ! -s conftest.err'
53870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53871   (eval $ac_try) 2>&5
53872   ac_status=$?
53873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53874   (exit $ac_status); }; } &&
53875          { ac_try='test -s conftest.$ac_objext'
53876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53877   (eval $ac_try) 2>&5
53878   ac_status=$?
53879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53880   (exit $ac_status); }; }; then
53881   ac_header_compiler=yes
53882 else
53883   echo "$as_me: failed program was:" >&5
53884 sed 's/^/| /' conftest.$ac_ext >&5
53885
53886 ac_header_compiler=no
53887 fi
53888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53889 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53890 echo "${ECHO_T}$ac_header_compiler" >&6
53891
53892 # Is the header present?
53893 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53894 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53895 cat >conftest.$ac_ext <<_ACEOF
53896 /* confdefs.h.  */
53897 _ACEOF
53898 cat confdefs.h >>conftest.$ac_ext
53899 cat >>conftest.$ac_ext <<_ACEOF
53900 /* end confdefs.h.  */
53901 #include <$ac_header>
53902 _ACEOF
53903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53904   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53905   ac_status=$?
53906   grep -v '^ *+' conftest.er1 >conftest.err
53907   rm -f conftest.er1
53908   cat conftest.err >&5
53909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53910   (exit $ac_status); } >/dev/null; then
53911   if test -s conftest.err; then
53912     ac_cpp_err=$ac_c_preproc_warn_flag
53913     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53914   else
53915     ac_cpp_err=
53916   fi
53917 else
53918   ac_cpp_err=yes
53919 fi
53920 if test -z "$ac_cpp_err"; then
53921   ac_header_preproc=yes
53922 else
53923   echo "$as_me: failed program was:" >&5
53924 sed 's/^/| /' conftest.$ac_ext >&5
53925
53926   ac_header_preproc=no
53927 fi
53928 rm -f conftest.err conftest.$ac_ext
53929 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53930 echo "${ECHO_T}$ac_header_preproc" >&6
53931
53932 # So?  What about this header?
53933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53934   yes:no: )
53935     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53939     ac_header_preproc=yes
53940     ;;
53941   no:yes:* )
53942     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53944     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
53945 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
53946     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53948     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
53949 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
53950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53952     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53954     (
53955       cat <<\_ASBOX
53956 ## ------------------------------------ ##
53957 ## Report this to bug-coreutils@gnu.org ##
53958 ## ------------------------------------ ##
53959 _ASBOX
53960     ) |
53961       sed "s/^/$as_me: WARNING:     /" >&2
53962     ;;
53963 esac
53964 echo "$as_me:$LINENO: checking for $ac_header" >&5
53965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53967   echo $ECHO_N "(cached) $ECHO_C" >&6
53968 else
53969   eval "$as_ac_Header=\$ac_header_preproc"
53970 fi
53971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53973
53974 fi
53975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53976   cat >>confdefs.h <<_ACEOF
53977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53978 _ACEOF
53979
53980 fi
53981
53982 done
53983
53984 fi
53985
53986
53987 for ac_header in nlist.h
53988 do
53989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53991   echo "$as_me:$LINENO: checking for $ac_header" >&5
53992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53994   echo $ECHO_N "(cached) $ECHO_C" >&6
53995 fi
53996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53998 else
53999   # Is the header compilable?
54000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54002 cat >conftest.$ac_ext <<_ACEOF
54003 /* confdefs.h.  */
54004 _ACEOF
54005 cat confdefs.h >>conftest.$ac_ext
54006 cat >>conftest.$ac_ext <<_ACEOF
54007 /* end confdefs.h.  */
54008 $ac_includes_default
54009 #include <$ac_header>
54010 _ACEOF
54011 rm -f conftest.$ac_objext
54012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54013   (eval $ac_compile) 2>conftest.er1
54014   ac_status=$?
54015   grep -v '^ *+' conftest.er1 >conftest.err
54016   rm -f conftest.er1
54017   cat conftest.err >&5
54018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54019   (exit $ac_status); } &&
54020          { ac_try='test -z "$ac_c_werror_flag"
54021                          || test ! -s conftest.err'
54022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54023   (eval $ac_try) 2>&5
54024   ac_status=$?
54025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54026   (exit $ac_status); }; } &&
54027          { ac_try='test -s conftest.$ac_objext'
54028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54029   (eval $ac_try) 2>&5
54030   ac_status=$?
54031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54032   (exit $ac_status); }; }; then
54033   ac_header_compiler=yes
54034 else
54035   echo "$as_me: failed program was:" >&5
54036 sed 's/^/| /' conftest.$ac_ext >&5
54037
54038 ac_header_compiler=no
54039 fi
54040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54042 echo "${ECHO_T}$ac_header_compiler" >&6
54043
54044 # Is the header present?
54045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54047 cat >conftest.$ac_ext <<_ACEOF
54048 /* confdefs.h.  */
54049 _ACEOF
54050 cat confdefs.h >>conftest.$ac_ext
54051 cat >>conftest.$ac_ext <<_ACEOF
54052 /* end confdefs.h.  */
54053 #include <$ac_header>
54054 _ACEOF
54055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54057   ac_status=$?
54058   grep -v '^ *+' conftest.er1 >conftest.err
54059   rm -f conftest.er1
54060   cat conftest.err >&5
54061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54062   (exit $ac_status); } >/dev/null; then
54063   if test -s conftest.err; then
54064     ac_cpp_err=$ac_c_preproc_warn_flag
54065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54066   else
54067     ac_cpp_err=
54068   fi
54069 else
54070   ac_cpp_err=yes
54071 fi
54072 if test -z "$ac_cpp_err"; then
54073   ac_header_preproc=yes
54074 else
54075   echo "$as_me: failed program was:" >&5
54076 sed 's/^/| /' conftest.$ac_ext >&5
54077
54078   ac_header_preproc=no
54079 fi
54080 rm -f conftest.err conftest.$ac_ext
54081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54082 echo "${ECHO_T}$ac_header_preproc" >&6
54083
54084 # So?  What about this header?
54085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54086   yes:no: )
54087     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54091     ac_header_preproc=yes
54092     ;;
54093   no:yes:* )
54094     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54096     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
54097 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
54098     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54100     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
54101 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
54102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54104     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54106     (
54107       cat <<\_ASBOX
54108 ## ------------------------------------ ##
54109 ## Report this to bug-coreutils@gnu.org ##
54110 ## ------------------------------------ ##
54111 _ASBOX
54112     ) |
54113       sed "s/^/$as_me: WARNING:     /" >&2
54114     ;;
54115 esac
54116 echo "$as_me:$LINENO: checking for $ac_header" >&5
54117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54119   echo $ECHO_N "(cached) $ECHO_C" >&6
54120 else
54121   eval "$as_ac_Header=\$ac_header_preproc"
54122 fi
54123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54125
54126 fi
54127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54128   cat >>confdefs.h <<_ACEOF
54129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54130 _ACEOF
54131  echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
54132 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
54133 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
54134   echo $ECHO_N "(cached) $ECHO_C" >&6
54135 else
54136   cat >conftest.$ac_ext <<_ACEOF
54137 /* confdefs.h.  */
54138 _ACEOF
54139 cat confdefs.h >>conftest.$ac_ext
54140 cat >>conftest.$ac_ext <<_ACEOF
54141 /* end confdefs.h.  */
54142 #include <nlist.h>
54143
54144 int
54145 main ()
54146 {
54147 static struct nlist ac_aggr;
54148 if (ac_aggr.n_un.n_name)
54149 return 0;
54150   ;
54151   return 0;
54152 }
54153 _ACEOF
54154 rm -f conftest.$ac_objext
54155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54156   (eval $ac_compile) 2>conftest.er1
54157   ac_status=$?
54158   grep -v '^ *+' conftest.er1 >conftest.err
54159   rm -f conftest.er1
54160   cat conftest.err >&5
54161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54162   (exit $ac_status); } &&
54163          { ac_try='test -z "$ac_c_werror_flag"
54164                          || test ! -s conftest.err'
54165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54166   (eval $ac_try) 2>&5
54167   ac_status=$?
54168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54169   (exit $ac_status); }; } &&
54170          { ac_try='test -s conftest.$ac_objext'
54171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54172   (eval $ac_try) 2>&5
54173   ac_status=$?
54174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54175   (exit $ac_status); }; }; then
54176   ac_cv_member_struct_nlist_n_un_n_name=yes
54177 else
54178   echo "$as_me: failed program was:" >&5
54179 sed 's/^/| /' conftest.$ac_ext >&5
54180
54181 cat >conftest.$ac_ext <<_ACEOF
54182 /* confdefs.h.  */
54183 _ACEOF
54184 cat confdefs.h >>conftest.$ac_ext
54185 cat >>conftest.$ac_ext <<_ACEOF
54186 /* end confdefs.h.  */
54187 #include <nlist.h>
54188
54189 int
54190 main ()
54191 {
54192 static struct nlist ac_aggr;
54193 if (sizeof ac_aggr.n_un.n_name)
54194 return 0;
54195   ;
54196   return 0;
54197 }
54198 _ACEOF
54199 rm -f conftest.$ac_objext
54200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54201   (eval $ac_compile) 2>conftest.er1
54202   ac_status=$?
54203   grep -v '^ *+' conftest.er1 >conftest.err
54204   rm -f conftest.er1
54205   cat conftest.err >&5
54206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54207   (exit $ac_status); } &&
54208          { ac_try='test -z "$ac_c_werror_flag"
54209                          || test ! -s conftest.err'
54210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54211   (eval $ac_try) 2>&5
54212   ac_status=$?
54213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54214   (exit $ac_status); }; } &&
54215          { ac_try='test -s conftest.$ac_objext'
54216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54217   (eval $ac_try) 2>&5
54218   ac_status=$?
54219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54220   (exit $ac_status); }; }; then
54221   ac_cv_member_struct_nlist_n_un_n_name=yes
54222 else
54223   echo "$as_me: failed program was:" >&5
54224 sed 's/^/| /' conftest.$ac_ext >&5
54225
54226 ac_cv_member_struct_nlist_n_un_n_name=no
54227 fi
54228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54229 fi
54230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54231 fi
54232 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
54233 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
54234 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
54235
54236 cat >>confdefs.h <<_ACEOF
54237 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
54238 _ACEOF
54239
54240
54241 cat >>confdefs.h <<\_ACEOF
54242 #define NLIST_NAME_UNION 1
54243 _ACEOF
54244
54245 fi
54246
54247
54248 fi
54249
54250 done
54251
54252 fi
54253 done
54254
54255
54256 # Some definitions of getloadavg require that the program be installed setgid.
54257 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
54258 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
54259 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
54260   echo $ECHO_N "(cached) $ECHO_C" >&6
54261 else
54262   cat >conftest.$ac_ext <<_ACEOF
54263 /* confdefs.h.  */
54264 _ACEOF
54265 cat confdefs.h >>conftest.$ac_ext
54266 cat >>conftest.$ac_ext <<_ACEOF
54267 /* end confdefs.h.  */
54268 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
54269 #ifdef LDAV_PRIVILEGED
54270 Yowza Am I SETGID yet
54271 #endif
54272 _ACEOF
54273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54274   $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
54275   ac_cv_func_getloadavg_setgid=yes
54276 else
54277   ac_cv_func_getloadavg_setgid=no
54278 fi
54279 rm -f conftest*
54280
54281 fi
54282 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
54283 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
54284 if test $ac_cv_func_getloadavg_setgid = yes; then
54285   NEED_SETGID=true
54286
54287 cat >>confdefs.h <<\_ACEOF
54288 #define GETLOADAVG_PRIVILEGED 1
54289 _ACEOF
54290
54291 else
54292   NEED_SETGID=false
54293 fi
54294
54295 if test $ac_cv_func_getloadavg_setgid = yes; then
54296   echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
54297 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
54298 if test "${ac_cv_group_kmem+set}" = set; then
54299   echo $ECHO_N "(cached) $ECHO_C" >&6
54300 else
54301    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
54302   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
54303   # If we got an error (system does not support symlinks), try without -L.
54304   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
54305   ac_cv_group_kmem=`echo $ac_ls_output \
54306     | sed -ne 's/[       ][      ]*/ /g;
54307                s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
54308                / /s/.* //;p;'`
54309
54310 fi
54311 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
54312 echo "${ECHO_T}$ac_cv_group_kmem" >&6
54313   KMEM_GROUP=$ac_cv_group_kmem
54314 fi
54315 if test "x$ac_save_LIBS" = x; then
54316   GETLOADAVG_LIBS=$LIBS
54317 else
54318   GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
54319 fi
54320 LIBS=$ac_save_LIBS
54321
54322
54323
54324
54325
54326
54327   # raise is used by at least sort and ls.
54328
54329 for ac_func in raise
54330 do
54331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54332 echo "$as_me:$LINENO: checking for $ac_func" >&5
54333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54334 if eval "test \"\${$as_ac_var+set}\" = set"; then
54335   echo $ECHO_N "(cached) $ECHO_C" >&6
54336 else
54337   cat >conftest.$ac_ext <<_ACEOF
54338 /* confdefs.h.  */
54339 _ACEOF
54340 cat confdefs.h >>conftest.$ac_ext
54341 cat >>conftest.$ac_ext <<_ACEOF
54342 /* end confdefs.h.  */
54343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54345 #define $ac_func innocuous_$ac_func
54346
54347 /* System header to define __stub macros and hopefully few prototypes,
54348     which can conflict with char $ac_func (); below.
54349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54350     <limits.h> exists even on freestanding compilers.  */
54351
54352 #ifdef __STDC__
54353 # include <limits.h>
54354 #else
54355 # include <assert.h>
54356 #endif
54357
54358 #undef $ac_func
54359
54360 /* Override any gcc2 internal prototype to avoid an error.  */
54361 #ifdef __cplusplus
54362 extern "C"
54363 {
54364 #endif
54365 /* We use char because int might match the return type of a gcc2
54366    builtin and then its argument prototype would still apply.  */
54367 char $ac_func ();
54368 /* The GNU C library defines this for functions which it implements
54369     to always fail with ENOSYS.  Some functions are actually named
54370     something starting with __ and the normal name is an alias.  */
54371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54372 choke me
54373 #else
54374 char (*f) () = $ac_func;
54375 #endif
54376 #ifdef __cplusplus
54377 }
54378 #endif
54379
54380 int
54381 main ()
54382 {
54383 return f != $ac_func;
54384   ;
54385   return 0;
54386 }
54387 _ACEOF
54388 rm -f conftest.$ac_objext conftest$ac_exeext
54389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54390   (eval $ac_link) 2>conftest.er1
54391   ac_status=$?
54392   grep -v '^ *+' conftest.er1 >conftest.err
54393   rm -f conftest.er1
54394   cat conftest.err >&5
54395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54396   (exit $ac_status); } &&
54397          { ac_try='test -z "$ac_c_werror_flag"
54398                          || test ! -s conftest.err'
54399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54400   (eval $ac_try) 2>&5
54401   ac_status=$?
54402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54403   (exit $ac_status); }; } &&
54404          { ac_try='test -s conftest$ac_exeext'
54405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54406   (eval $ac_try) 2>&5
54407   ac_status=$?
54408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54409   (exit $ac_status); }; }; then
54410   eval "$as_ac_var=yes"
54411 else
54412   echo "$as_me: failed program was:" >&5
54413 sed 's/^/| /' conftest.$ac_ext >&5
54414
54415 eval "$as_ac_var=no"
54416 fi
54417 rm -f conftest.err conftest.$ac_objext \
54418       conftest$ac_exeext conftest.$ac_ext
54419 fi
54420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54422 if test `eval echo '${'$as_ac_var'}'` = yes; then
54423   cat >>confdefs.h <<_ACEOF
54424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54425 _ACEOF
54426
54427 else
54428   case $LIBOBJS in
54429     "$ac_func.$ac_objext"   | \
54430   *" $ac_func.$ac_objext"   | \
54431     "$ac_func.$ac_objext "* | \
54432   *" $ac_func.$ac_objext "* ) ;;
54433   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
54434 esac
54435
54436 fi
54437 done
54438
54439
54440
54441   # By default, argmatch should fail calling usage (1).
54442
54443 cat >>confdefs.h <<\_ACEOF
54444 #define ARGMATCH_DIE usage (1)
54445 _ACEOF
54446
54447
54448 cat >>confdefs.h <<\_ACEOF
54449 #define ARGMATCH_DIE_DECL extern void usage ()
54450 _ACEOF
54451
54452
54453         echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
54454 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
54455 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
54456   echo $ECHO_N "(cached) $ECHO_C" >&6
54457 else
54458   ac_cv_func_setvbuf_reversed=no
54459    cat >conftest.$ac_ext <<_ACEOF
54460 /* confdefs.h.  */
54461 _ACEOF
54462 cat confdefs.h >>conftest.$ac_ext
54463 cat >>conftest.$ac_ext <<_ACEOF
54464 /* end confdefs.h.  */
54465 #include <stdio.h>
54466 #         if PROTOTYPES
54467            int (setvbuf) (FILE *, int, char *, size_t);
54468 #         endif
54469 int
54470 main ()
54471 {
54472 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
54473   ;
54474   return 0;
54475 }
54476 _ACEOF
54477 rm -f conftest.$ac_objext conftest$ac_exeext
54478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54479   (eval $ac_link) 2>conftest.er1
54480   ac_status=$?
54481   grep -v '^ *+' conftest.er1 >conftest.err
54482   rm -f conftest.er1
54483   cat conftest.err >&5
54484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54485   (exit $ac_status); } &&
54486          { ac_try='test -z "$ac_c_werror_flag"
54487                          || test ! -s conftest.err'
54488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54489   (eval $ac_try) 2>&5
54490   ac_status=$?
54491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54492   (exit $ac_status); }; } &&
54493          { ac_try='test -s conftest$ac_exeext'
54494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54495   (eval $ac_try) 2>&5
54496   ac_status=$?
54497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54498   (exit $ac_status); }; }; then
54499   cat >conftest.$ac_ext <<_ACEOF
54500 /* confdefs.h.  */
54501 _ACEOF
54502 cat confdefs.h >>conftest.$ac_ext
54503 cat >>conftest.$ac_ext <<_ACEOF
54504 /* end confdefs.h.  */
54505 #include <stdio.h>
54506 #            if PROTOTYPES
54507               int (setvbuf) (FILE *, int, char *, size_t);
54508 #            endif
54509 int
54510 main ()
54511 {
54512 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
54513   ;
54514   return 0;
54515 }
54516 _ACEOF
54517 rm -f conftest.$ac_objext conftest$ac_exeext
54518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54519   (eval $ac_link) 2>conftest.er1
54520   ac_status=$?
54521   grep -v '^ *+' conftest.er1 >conftest.err
54522   rm -f conftest.er1
54523   cat conftest.err >&5
54524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54525   (exit $ac_status); } &&
54526          { ac_try='test -z "$ac_c_werror_flag"
54527                          || test ! -s conftest.err'
54528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54529   (eval $ac_try) 2>&5
54530   ac_status=$?
54531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54532   (exit $ac_status); }; } &&
54533          { ac_try='test -s conftest$ac_exeext'
54534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54535   (eval $ac_try) 2>&5
54536   ac_status=$?
54537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54538   (exit $ac_status); }; }; then
54539   # It compiles and links either way, so it must not be declared
54540          # with a prototype and most likely this is a K&R C compiler.
54541          # Try running it.
54542          if test "$cross_compiling" = yes; then
54543   : # Assume setvbuf is not reversed when cross-compiling.
54544 else
54545   cat >conftest.$ac_ext <<_ACEOF
54546 /* confdefs.h.  */
54547 _ACEOF
54548 cat confdefs.h >>conftest.$ac_ext
54549 cat >>conftest.$ac_ext <<_ACEOF
54550 /* end confdefs.h.  */
54551 #include <stdio.h>
54552 int
54553 main ()
54554 {
54555 /* This call has the arguments reversed.
54556                    A reversed system may check and see that the address of buf
54557                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
54558                 char buf;
54559                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
54560                   exit (1);
54561                 putchar ('\r');
54562                 exit (0); /* Non-reversed systems SEGV here.  */
54563   ;
54564   return 0;
54565 }
54566 _ACEOF
54567 rm -f conftest$ac_exeext
54568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54569   (eval $ac_link) 2>&5
54570   ac_status=$?
54571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54574   (eval $ac_try) 2>&5
54575   ac_status=$?
54576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54577   (exit $ac_status); }; }; then
54578   ac_cv_func_setvbuf_reversed=yes
54579 else
54580   echo "$as_me: program exited with status $ac_status" >&5
54581 echo "$as_me: failed program was:" >&5
54582 sed 's/^/| /' conftest.$ac_ext >&5
54583
54584 ( exit $ac_status )
54585 rm -f core *.core
54586 fi
54587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54588 fi
54589         ac_cv_func_setvbuf_reversed=yes
54590 else
54591   echo "$as_me: failed program was:" >&5
54592 sed 's/^/| /' conftest.$ac_ext >&5
54593
54594 fi
54595 rm -f conftest.err conftest.$ac_objext \
54596       conftest$ac_exeext conftest.$ac_ext
54597 else
54598   echo "$as_me: failed program was:" >&5
54599 sed 's/^/| /' conftest.$ac_ext >&5
54600
54601 fi
54602 rm -f conftest.err conftest.$ac_objext \
54603       conftest$ac_exeext conftest.$ac_ext
54604 fi
54605 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
54606 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
54607 if test $ac_cv_func_setvbuf_reversed = yes; then
54608
54609 cat >>confdefs.h <<\_ACEOF
54610 #define SETVBUF_REVERSED 1
54611 _ACEOF
54612
54613 fi
54614
54615
54616   # used by sleep and shred
54617
54618
54619   :
54620
54621
54622
54623
54624
54625
54626
54627  echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
54628 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
54629 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
54630   echo $ECHO_N "(cached) $ECHO_C" >&6
54631 else
54632   if test "$cross_compiling" = yes; then
54633          jm_cv_func_gettimeofday_clobber=yes
54634 else
54635   cat >conftest.$ac_ext <<_ACEOF
54636 /* confdefs.h.  */
54637 _ACEOF
54638 cat confdefs.h >>conftest.$ac_ext
54639 cat >>conftest.$ac_ext <<_ACEOF
54640 /* end confdefs.h.  */
54641
54642 #include <stdio.h>
54643 #include <string.h>
54644
54645 #if TIME_WITH_SYS_TIME
54646 # include <sys/time.h>
54647 # include <time.h>
54648 #else
54649 # if HAVE_SYS_TIME_H
54650 #  include <sys/time.h>
54651 # else
54652 #  include <time.h>
54653 # endif
54654 #endif
54655
54656 #include <stdlib.h>
54657
54658 int
54659 main ()
54660 {
54661   time_t t = 0;
54662   struct tm *lt;
54663   struct tm saved_lt;
54664   struct timeval tv;
54665   lt = localtime (&t);
54666   saved_lt = *lt;
54667   gettimeofday (&tv, NULL);
54668   if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
54669     exit (1);
54670
54671   exit (0);
54672 }
54673
54674 _ACEOF
54675 rm -f conftest$ac_exeext
54676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54677   (eval $ac_link) 2>&5
54678   ac_status=$?
54679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54680   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54682   (eval $ac_try) 2>&5
54683   ac_status=$?
54684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54685   (exit $ac_status); }; }; then
54686   jm_cv_func_gettimeofday_clobber=no
54687 else
54688   echo "$as_me: program exited with status $ac_status" >&5
54689 echo "$as_me: failed program was:" >&5
54690 sed 's/^/| /' conftest.$ac_ext >&5
54691
54692 ( exit $ac_status )
54693 jm_cv_func_gettimeofday_clobber=yes
54694 fi
54695 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54696 fi
54697
54698 fi
54699 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
54700 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
54701   if test $jm_cv_func_gettimeofday_clobber = yes; then
54702
54703   case $LIBOBJS in
54704     "gettimeofday.$ac_objext"   | \
54705   *" gettimeofday.$ac_objext"   | \
54706     "gettimeofday.$ac_objext "* | \
54707   *" gettimeofday.$ac_objext "* ) ;;
54708   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
54709 esac
54710
54711
54712 cat >>confdefs.h <<\_ACEOF
54713 #define gmtime rpl_gmtime
54714 _ACEOF
54715
54716
54717 cat >>confdefs.h <<\_ACEOF
54718 #define localtime rpl_localtime
54719 _ACEOF
54720
54721
54722
54723
54724 cat >>confdefs.h <<\_ACEOF
54725 #define gettimeofday rpl_gettimeofday
54726 _ACEOF
54727
54728
54729 cat >>confdefs.h <<\_ACEOF
54730 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
54731 _ACEOF
54732
54733
54734
54735
54736   fi
54737
54738   # used by shred
54739
54740   :
54741
54742
54743
54744
54745
54746
54747
54748
54749
54750   :
54751
54752
54753
54754
54755
54756
54757
54758
54759
54760
54761
54762
54763
54764
54765
54766
54767
54768
54769
54770
54771
54772
54773
54774
54775
54776
54777
54778
54779
54780
54781
54782
54783
54784
54785
54786
54787
54788
54789
54790
54791
54792
54793
54794
54795
54796
54797
54798
54799
54800
54801
54802
54803
54804
54805
54806
54807
54808
54809
54810
54811
54812
54813
54814
54815
54816
54817
54818
54819
54820
54821
54822
54823   echo "$as_me:$LINENO: checking for working strtod" >&5
54824 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
54825 if test "${ac_cv_func_strtod+set}" = set; then
54826   echo $ECHO_N "(cached) $ECHO_C" >&6
54827 else
54828   if test "$cross_compiling" = yes; then
54829   ac_cv_func_strtod=no
54830 else
54831   cat >conftest.$ac_ext <<_ACEOF
54832 /* confdefs.h.  */
54833 _ACEOF
54834 cat confdefs.h >>conftest.$ac_ext
54835 cat >>conftest.$ac_ext <<_ACEOF
54836 /* end confdefs.h.  */
54837
54838 double strtod ();
54839 int
54840 main()
54841 {
54842   {
54843     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
54844     char *string = " +69";
54845     char *term;
54846     double value;
54847     value = strtod (string, &term);
54848     if (value != 69 || term != (string + 4))
54849       exit (1);
54850   }
54851
54852   {
54853     /* Under Solaris 2.4, strtod returns the wrong value for the
54854        terminating character under some conditions.  */
54855     char *string = "NaN";
54856     char *term;
54857     strtod (string, &term);
54858     if (term != string && *(term - 1) == 0)
54859       exit (1);
54860   }
54861   exit (0);
54862 }
54863
54864 _ACEOF
54865 rm -f conftest$ac_exeext
54866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54867   (eval $ac_link) 2>&5
54868   ac_status=$?
54869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54872   (eval $ac_try) 2>&5
54873   ac_status=$?
54874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54875   (exit $ac_status); }; }; then
54876   ac_cv_func_strtod=yes
54877 else
54878   echo "$as_me: program exited with status $ac_status" >&5
54879 echo "$as_me: failed program was:" >&5
54880 sed 's/^/| /' conftest.$ac_ext >&5
54881
54882 ( exit $ac_status )
54883 ac_cv_func_strtod=no
54884 fi
54885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54886 fi
54887 fi
54888 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
54889 echo "${ECHO_T}$ac_cv_func_strtod" >&6
54890 if test $ac_cv_func_strtod = no; then
54891   case $LIBOBJS in
54892     "strtod.$ac_objext"   | \
54893   *" strtod.$ac_objext"   | \
54894     "strtod.$ac_objext "* | \
54895   *" strtod.$ac_objext "* ) ;;
54896   *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
54897 esac
54898
54899 echo "$as_me:$LINENO: checking for pow" >&5
54900 echo $ECHO_N "checking for pow... $ECHO_C" >&6
54901 if test "${ac_cv_func_pow+set}" = set; then
54902   echo $ECHO_N "(cached) $ECHO_C" >&6
54903 else
54904   cat >conftest.$ac_ext <<_ACEOF
54905 /* confdefs.h.  */
54906 _ACEOF
54907 cat confdefs.h >>conftest.$ac_ext
54908 cat >>conftest.$ac_ext <<_ACEOF
54909 /* end confdefs.h.  */
54910 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
54911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54912 #define pow innocuous_pow
54913
54914 /* System header to define __stub macros and hopefully few prototypes,
54915     which can conflict with char pow (); below.
54916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54917     <limits.h> exists even on freestanding compilers.  */
54918
54919 #ifdef __STDC__
54920 # include <limits.h>
54921 #else
54922 # include <assert.h>
54923 #endif
54924
54925 #undef pow
54926
54927 /* Override any gcc2 internal prototype to avoid an error.  */
54928 #ifdef __cplusplus
54929 extern "C"
54930 {
54931 #endif
54932 /* We use char because int might match the return type of a gcc2
54933    builtin and then its argument prototype would still apply.  */
54934 char pow ();
54935 /* The GNU C library defines this for functions which it implements
54936     to always fail with ENOSYS.  Some functions are actually named
54937     something starting with __ and the normal name is an alias.  */
54938 #if defined (__stub_pow) || defined (__stub___pow)
54939 choke me
54940 #else
54941 char (*f) () = pow;
54942 #endif
54943 #ifdef __cplusplus
54944 }
54945 #endif
54946
54947 int
54948 main ()
54949 {
54950 return f != pow;
54951   ;
54952   return 0;
54953 }
54954 _ACEOF
54955 rm -f conftest.$ac_objext conftest$ac_exeext
54956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54957   (eval $ac_link) 2>conftest.er1
54958   ac_status=$?
54959   grep -v '^ *+' conftest.er1 >conftest.err
54960   rm -f conftest.er1
54961   cat conftest.err >&5
54962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54963   (exit $ac_status); } &&
54964          { ac_try='test -z "$ac_c_werror_flag"
54965                          || test ! -s conftest.err'
54966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54967   (eval $ac_try) 2>&5
54968   ac_status=$?
54969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54970   (exit $ac_status); }; } &&
54971          { ac_try='test -s conftest$ac_exeext'
54972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54973   (eval $ac_try) 2>&5
54974   ac_status=$?
54975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54976   (exit $ac_status); }; }; then
54977   ac_cv_func_pow=yes
54978 else
54979   echo "$as_me: failed program was:" >&5
54980 sed 's/^/| /' conftest.$ac_ext >&5
54981
54982 ac_cv_func_pow=no
54983 fi
54984 rm -f conftest.err conftest.$ac_objext \
54985       conftest$ac_exeext conftest.$ac_ext
54986 fi
54987 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
54988 echo "${ECHO_T}$ac_cv_func_pow" >&6
54989
54990 if test $ac_cv_func_pow = no; then
54991   echo "$as_me:$LINENO: checking for pow in -lm" >&5
54992 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
54993 if test "${ac_cv_lib_m_pow+set}" = set; then
54994   echo $ECHO_N "(cached) $ECHO_C" >&6
54995 else
54996   ac_check_lib_save_LIBS=$LIBS
54997 LIBS="-lm  $LIBS"
54998 cat >conftest.$ac_ext <<_ACEOF
54999 /* confdefs.h.  */
55000 _ACEOF
55001 cat confdefs.h >>conftest.$ac_ext
55002 cat >>conftest.$ac_ext <<_ACEOF
55003 /* end confdefs.h.  */
55004
55005 /* Override any gcc2 internal prototype to avoid an error.  */
55006 #ifdef __cplusplus
55007 extern "C"
55008 #endif
55009 /* We use char because int might match the return type of a gcc2
55010    builtin and then its argument prototype would still apply.  */
55011 char pow ();
55012 int
55013 main ()
55014 {
55015 pow ();
55016   ;
55017   return 0;
55018 }
55019 _ACEOF
55020 rm -f conftest.$ac_objext conftest$ac_exeext
55021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55022   (eval $ac_link) 2>conftest.er1
55023   ac_status=$?
55024   grep -v '^ *+' conftest.er1 >conftest.err
55025   rm -f conftest.er1
55026   cat conftest.err >&5
55027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55028   (exit $ac_status); } &&
55029          { ac_try='test -z "$ac_c_werror_flag"
55030                          || test ! -s conftest.err'
55031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55032   (eval $ac_try) 2>&5
55033   ac_status=$?
55034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55035   (exit $ac_status); }; } &&
55036          { ac_try='test -s conftest$ac_exeext'
55037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55038   (eval $ac_try) 2>&5
55039   ac_status=$?
55040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55041   (exit $ac_status); }; }; then
55042   ac_cv_lib_m_pow=yes
55043 else
55044   echo "$as_me: failed program was:" >&5
55045 sed 's/^/| /' conftest.$ac_ext >&5
55046
55047 ac_cv_lib_m_pow=no
55048 fi
55049 rm -f conftest.err conftest.$ac_objext \
55050       conftest$ac_exeext conftest.$ac_ext
55051 LIBS=$ac_check_lib_save_LIBS
55052 fi
55053 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
55054 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
55055 if test $ac_cv_lib_m_pow = yes; then
55056   POW_LIB=-lm
55057 else
55058   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
55059 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
55060 fi
55061
55062 fi
55063
55064 fi
55065
55066
55067
55068
55069
55070   # for dd.c and shred.c
55071   fetish_saved_libs=$LIBS
55072     echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
55073 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
55074 if test "${ac_cv_search_fdatasync+set}" = set; then
55075   echo $ECHO_N "(cached) $ECHO_C" >&6
55076 else
55077   ac_func_search_save_LIBS=$LIBS
55078 ac_cv_search_fdatasync=no
55079 cat >conftest.$ac_ext <<_ACEOF
55080 /* confdefs.h.  */
55081 _ACEOF
55082 cat confdefs.h >>conftest.$ac_ext
55083 cat >>conftest.$ac_ext <<_ACEOF
55084 /* end confdefs.h.  */
55085
55086 /* Override any gcc2 internal prototype to avoid an error.  */
55087 #ifdef __cplusplus
55088 extern "C"
55089 #endif
55090 /* We use char because int might match the return type of a gcc2
55091    builtin and then its argument prototype would still apply.  */
55092 char fdatasync ();
55093 int
55094 main ()
55095 {
55096 fdatasync ();
55097   ;
55098   return 0;
55099 }
55100 _ACEOF
55101 rm -f conftest.$ac_objext conftest$ac_exeext
55102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55103   (eval $ac_link) 2>conftest.er1
55104   ac_status=$?
55105   grep -v '^ *+' conftest.er1 >conftest.err
55106   rm -f conftest.er1
55107   cat conftest.err >&5
55108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55109   (exit $ac_status); } &&
55110          { ac_try='test -z "$ac_c_werror_flag"
55111                          || test ! -s conftest.err'
55112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55113   (eval $ac_try) 2>&5
55114   ac_status=$?
55115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55116   (exit $ac_status); }; } &&
55117          { ac_try='test -s conftest$ac_exeext'
55118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55119   (eval $ac_try) 2>&5
55120   ac_status=$?
55121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55122   (exit $ac_status); }; }; then
55123   ac_cv_search_fdatasync="none required"
55124 else
55125   echo "$as_me: failed program was:" >&5
55126 sed 's/^/| /' conftest.$ac_ext >&5
55127
55128 fi
55129 rm -f conftest.err conftest.$ac_objext \
55130       conftest$ac_exeext conftest.$ac_ext
55131 if test "$ac_cv_search_fdatasync" = no; then
55132   for ac_lib in rt posix4; do
55133     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
55134     cat >conftest.$ac_ext <<_ACEOF
55135 /* confdefs.h.  */
55136 _ACEOF
55137 cat confdefs.h >>conftest.$ac_ext
55138 cat >>conftest.$ac_ext <<_ACEOF
55139 /* end confdefs.h.  */
55140
55141 /* Override any gcc2 internal prototype to avoid an error.  */
55142 #ifdef __cplusplus
55143 extern "C"
55144 #endif
55145 /* We use char because int might match the return type of a gcc2
55146    builtin and then its argument prototype would still apply.  */
55147 char fdatasync ();
55148 int
55149 main ()
55150 {
55151 fdatasync ();
55152   ;
55153   return 0;
55154 }
55155 _ACEOF
55156 rm -f conftest.$ac_objext conftest$ac_exeext
55157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55158   (eval $ac_link) 2>conftest.er1
55159   ac_status=$?
55160   grep -v '^ *+' conftest.er1 >conftest.err
55161   rm -f conftest.er1
55162   cat conftest.err >&5
55163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55164   (exit $ac_status); } &&
55165          { ac_try='test -z "$ac_c_werror_flag"
55166                          || test ! -s conftest.err'
55167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55168   (eval $ac_try) 2>&5
55169   ac_status=$?
55170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55171   (exit $ac_status); }; } &&
55172          { ac_try='test -s conftest$ac_exeext'
55173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55174   (eval $ac_try) 2>&5
55175   ac_status=$?
55176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55177   (exit $ac_status); }; }; then
55178   ac_cv_search_fdatasync="-l$ac_lib"
55179 break
55180 else
55181   echo "$as_me: failed program was:" >&5
55182 sed 's/^/| /' conftest.$ac_ext >&5
55183
55184 fi
55185 rm -f conftest.err conftest.$ac_objext \
55186       conftest$ac_exeext conftest.$ac_ext
55187   done
55188 fi
55189 LIBS=$ac_func_search_save_LIBS
55190 fi
55191 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
55192 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
55193 if test "$ac_cv_search_fdatasync" != no; then
55194   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
55195   test "$ac_cv_search_fdatasync" = "none required" ||
55196                     LIB_FDATASYNC=$ac_cv_search_fdatasync
55197 fi
55198
55199
55200
55201 for ac_func in fdatasync
55202 do
55203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55204 echo "$as_me:$LINENO: checking for $ac_func" >&5
55205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55206 if eval "test \"\${$as_ac_var+set}\" = set"; then
55207   echo $ECHO_N "(cached) $ECHO_C" >&6
55208 else
55209   cat >conftest.$ac_ext <<_ACEOF
55210 /* confdefs.h.  */
55211 _ACEOF
55212 cat confdefs.h >>conftest.$ac_ext
55213 cat >>conftest.$ac_ext <<_ACEOF
55214 /* end confdefs.h.  */
55215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55217 #define $ac_func innocuous_$ac_func
55218
55219 /* System header to define __stub macros and hopefully few prototypes,
55220     which can conflict with char $ac_func (); below.
55221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55222     <limits.h> exists even on freestanding compilers.  */
55223
55224 #ifdef __STDC__
55225 # include <limits.h>
55226 #else
55227 # include <assert.h>
55228 #endif
55229
55230 #undef $ac_func
55231
55232 /* Override any gcc2 internal prototype to avoid an error.  */
55233 #ifdef __cplusplus
55234 extern "C"
55235 {
55236 #endif
55237 /* We use char because int might match the return type of a gcc2
55238    builtin and then its argument prototype would still apply.  */
55239 char $ac_func ();
55240 /* The GNU C library defines this for functions which it implements
55241     to always fail with ENOSYS.  Some functions are actually named
55242     something starting with __ and the normal name is an alias.  */
55243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55244 choke me
55245 #else
55246 char (*f) () = $ac_func;
55247 #endif
55248 #ifdef __cplusplus
55249 }
55250 #endif
55251
55252 int
55253 main ()
55254 {
55255 return f != $ac_func;
55256   ;
55257   return 0;
55258 }
55259 _ACEOF
55260 rm -f conftest.$ac_objext conftest$ac_exeext
55261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55262   (eval $ac_link) 2>conftest.er1
55263   ac_status=$?
55264   grep -v '^ *+' conftest.er1 >conftest.err
55265   rm -f conftest.er1
55266   cat conftest.err >&5
55267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55268   (exit $ac_status); } &&
55269          { ac_try='test -z "$ac_c_werror_flag"
55270                          || test ! -s conftest.err'
55271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55272   (eval $ac_try) 2>&5
55273   ac_status=$?
55274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55275   (exit $ac_status); }; } &&
55276          { ac_try='test -s conftest$ac_exeext'
55277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55278   (eval $ac_try) 2>&5
55279   ac_status=$?
55280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55281   (exit $ac_status); }; }; then
55282   eval "$as_ac_var=yes"
55283 else
55284   echo "$as_me: failed program was:" >&5
55285 sed 's/^/| /' conftest.$ac_ext >&5
55286
55287 eval "$as_ac_var=no"
55288 fi
55289 rm -f conftest.err conftest.$ac_objext \
55290       conftest$ac_exeext conftest.$ac_ext
55291 fi
55292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55294 if test `eval echo '${'$as_ac_var'}'` = yes; then
55295   cat >>confdefs.h <<_ACEOF
55296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55297 _ACEOF
55298
55299 fi
55300 done
55301
55302   LIBS=$fetish_saved_libs
55303
55304   # See if linking `seq' requires -lm.
55305   # It does on nearly every system.  The single exception (so far) is
55306   # BeOS which has all the math functions in the normal runtime library
55307   # and doesn't have a separate math library.
55308
55309
55310   ac_seq_body='
55311      static double x, y;
55312      x = floor (x);
55313      x = rint (x);
55314      x = modf (x, &y);'
55315   cat >conftest.$ac_ext <<_ACEOF
55316 /* confdefs.h.  */
55317 _ACEOF
55318 cat confdefs.h >>conftest.$ac_ext
55319 cat >>conftest.$ac_ext <<_ACEOF
55320 /* end confdefs.h.  */
55321 #include <math.h>
55322 int
55323 main ()
55324 {
55325 $ac_seq_body
55326   ;
55327   return 0;
55328 }
55329 _ACEOF
55330 rm -f conftest.$ac_objext conftest$ac_exeext
55331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55332   (eval $ac_link) 2>conftest.er1
55333   ac_status=$?
55334   grep -v '^ *+' conftest.er1 >conftest.err
55335   rm -f conftest.er1
55336   cat conftest.err >&5
55337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55338   (exit $ac_status); } &&
55339          { ac_try='test -z "$ac_c_werror_flag"
55340                          || test ! -s conftest.err'
55341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55342   (eval $ac_try) 2>&5
55343   ac_status=$?
55344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55345   (exit $ac_status); }; } &&
55346          { ac_try='test -s conftest$ac_exeext'
55347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55348   (eval $ac_try) 2>&5
55349   ac_status=$?
55350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55351   (exit $ac_status); }; }; then
55352   :
55353 else
55354   echo "$as_me: failed program was:" >&5
55355 sed 's/^/| /' conftest.$ac_ext >&5
55356
55357 ac_seq_save_LIBS="$LIBS"
55358      LIBS="$LIBS -lm"
55359      cat >conftest.$ac_ext <<_ACEOF
55360 /* confdefs.h.  */
55361 _ACEOF
55362 cat confdefs.h >>conftest.$ac_ext
55363 cat >>conftest.$ac_ext <<_ACEOF
55364 /* end confdefs.h.  */
55365 #include <math.h>
55366 int
55367 main ()
55368 {
55369 $ac_seq_body
55370   ;
55371   return 0;
55372 }
55373 _ACEOF
55374 rm -f conftest.$ac_objext conftest$ac_exeext
55375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55376   (eval $ac_link) 2>conftest.er1
55377   ac_status=$?
55378   grep -v '^ *+' conftest.er1 >conftest.err
55379   rm -f conftest.er1
55380   cat conftest.err >&5
55381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55382   (exit $ac_status); } &&
55383          { ac_try='test -z "$ac_c_werror_flag"
55384                          || test ! -s conftest.err'
55385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55386   (eval $ac_try) 2>&5
55387   ac_status=$?
55388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55389   (exit $ac_status); }; } &&
55390          { ac_try='test -s conftest$ac_exeext'
55391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55392   (eval $ac_try) 2>&5
55393   ac_status=$?
55394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55395   (exit $ac_status); }; }; then
55396   SEQ_LIBM=-lm
55397 else
55398   echo "$as_me: failed program was:" >&5
55399 sed 's/^/| /' conftest.$ac_ext >&5
55400
55401 fi
55402 rm -f conftest.err conftest.$ac_objext \
55403       conftest$ac_exeext conftest.$ac_ext
55404      LIBS="$ac_seq_save_LIBS"
55405
55406 fi
55407 rm -f conftest.err conftest.$ac_objext \
55408       conftest$ac_exeext conftest.$ac_ext
55409
55410
55411   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
55412 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
55413 if test "${am_cv_langinfo_codeset+set}" = set; then
55414   echo $ECHO_N "(cached) $ECHO_C" >&6
55415 else
55416   cat >conftest.$ac_ext <<_ACEOF
55417 /* confdefs.h.  */
55418 _ACEOF
55419 cat confdefs.h >>conftest.$ac_ext
55420 cat >>conftest.$ac_ext <<_ACEOF
55421 /* end confdefs.h.  */
55422 #include <langinfo.h>
55423 int
55424 main ()
55425 {
55426 char* cs = nl_langinfo(CODESET);
55427   ;
55428   return 0;
55429 }
55430 _ACEOF
55431 rm -f conftest.$ac_objext conftest$ac_exeext
55432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55433   (eval $ac_link) 2>conftest.er1
55434   ac_status=$?
55435   grep -v '^ *+' conftest.er1 >conftest.err
55436   rm -f conftest.er1
55437   cat conftest.err >&5
55438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55439   (exit $ac_status); } &&
55440          { ac_try='test -z "$ac_c_werror_flag"
55441                          || test ! -s conftest.err'
55442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55443   (eval $ac_try) 2>&5
55444   ac_status=$?
55445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55446   (exit $ac_status); }; } &&
55447          { ac_try='test -s conftest$ac_exeext'
55448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55449   (eval $ac_try) 2>&5
55450   ac_status=$?
55451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55452   (exit $ac_status); }; }; then
55453   am_cv_langinfo_codeset=yes
55454 else
55455   echo "$as_me: failed program was:" >&5
55456 sed 's/^/| /' conftest.$ac_ext >&5
55457
55458 am_cv_langinfo_codeset=no
55459 fi
55460 rm -f conftest.err conftest.$ac_objext \
55461       conftest$ac_exeext conftest.$ac_ext
55462
55463 fi
55464 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
55465 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
55466   if test $am_cv_langinfo_codeset = yes; then
55467
55468 cat >>confdefs.h <<\_ACEOF
55469 #define HAVE_LANGINFO_CODESET 1
55470 _ACEOF
55471
55472   fi
55473
55474
55475     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
55476 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
55477 if test "${ac_cv_gnu_library_2_1+set}" = set; then
55478   echo $ECHO_N "(cached) $ECHO_C" >&6
55479 else
55480   cat >conftest.$ac_ext <<_ACEOF
55481 /* confdefs.h.  */
55482 _ACEOF
55483 cat confdefs.h >>conftest.$ac_ext
55484 cat >>conftest.$ac_ext <<_ACEOF
55485 /* end confdefs.h.  */
55486
55487 #include <features.h>
55488 #ifdef __GNU_LIBRARY__
55489  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
55490   Lucky GNU user
55491  #endif
55492 #endif
55493
55494 _ACEOF
55495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55496   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
55497   ac_cv_gnu_library_2_1=yes
55498 else
55499   ac_cv_gnu_library_2_1=no
55500 fi
55501 rm -f conftest*
55502
55503
55504
55505 fi
55506 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
55507 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
55508
55509     GLIBC21="$ac_cv_gnu_library_2_1"
55510
55511
55512
55513
55514
55515
55516
55517           am_save_CPPFLAGS="$CPPFLAGS"
55518
55519   for element in $INCICONV; do
55520     haveit=
55521     for x in $CPPFLAGS; do
55522
55523   acl_save_prefix="$prefix"
55524   prefix="$acl_final_prefix"
55525   acl_save_exec_prefix="$exec_prefix"
55526   exec_prefix="$acl_final_exec_prefix"
55527   eval x=\"$x\"
55528   exec_prefix="$acl_save_exec_prefix"
55529   prefix="$acl_save_prefix"
55530
55531       if test "X$x" = "X$element"; then
55532         haveit=yes
55533         break
55534       fi
55535     done
55536     if test -z "$haveit"; then
55537       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
55538     fi
55539   done
55540
55541
55542   echo "$as_me:$LINENO: checking for iconv" >&5
55543 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
55544 if test "${am_cv_func_iconv+set}" = set; then
55545   echo $ECHO_N "(cached) $ECHO_C" >&6
55546 else
55547
55548     am_cv_func_iconv="no, consider installing GNU libiconv"
55549     am_cv_lib_iconv=no
55550     cat >conftest.$ac_ext <<_ACEOF
55551 /* confdefs.h.  */
55552 _ACEOF
55553 cat confdefs.h >>conftest.$ac_ext
55554 cat >>conftest.$ac_ext <<_ACEOF
55555 /* end confdefs.h.  */
55556 #include <stdlib.h>
55557 #include <iconv.h>
55558 int
55559 main ()
55560 {
55561 iconv_t cd = iconv_open("","");
55562        iconv(cd,NULL,NULL,NULL,NULL);
55563        iconv_close(cd);
55564   ;
55565   return 0;
55566 }
55567 _ACEOF
55568 rm -f conftest.$ac_objext conftest$ac_exeext
55569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55570   (eval $ac_link) 2>conftest.er1
55571   ac_status=$?
55572   grep -v '^ *+' conftest.er1 >conftest.err
55573   rm -f conftest.er1
55574   cat conftest.err >&5
55575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55576   (exit $ac_status); } &&
55577          { ac_try='test -z "$ac_c_werror_flag"
55578                          || test ! -s conftest.err'
55579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55580   (eval $ac_try) 2>&5
55581   ac_status=$?
55582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55583   (exit $ac_status); }; } &&
55584          { ac_try='test -s conftest$ac_exeext'
55585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55586   (eval $ac_try) 2>&5
55587   ac_status=$?
55588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55589   (exit $ac_status); }; }; then
55590   am_cv_func_iconv=yes
55591 else
55592   echo "$as_me: failed program was:" >&5
55593 sed 's/^/| /' conftest.$ac_ext >&5
55594
55595 fi
55596 rm -f conftest.err conftest.$ac_objext \
55597       conftest$ac_exeext conftest.$ac_ext
55598     if test "$am_cv_func_iconv" != yes; then
55599       am_save_LIBS="$LIBS"
55600       LIBS="$LIBS $LIBICONV"
55601       cat >conftest.$ac_ext <<_ACEOF
55602 /* confdefs.h.  */
55603 _ACEOF
55604 cat confdefs.h >>conftest.$ac_ext
55605 cat >>conftest.$ac_ext <<_ACEOF
55606 /* end confdefs.h.  */
55607 #include <stdlib.h>
55608 #include <iconv.h>
55609 int
55610 main ()
55611 {
55612 iconv_t cd = iconv_open("","");
55613          iconv(cd,NULL,NULL,NULL,NULL);
55614          iconv_close(cd);
55615   ;
55616   return 0;
55617 }
55618 _ACEOF
55619 rm -f conftest.$ac_objext conftest$ac_exeext
55620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55621   (eval $ac_link) 2>conftest.er1
55622   ac_status=$?
55623   grep -v '^ *+' conftest.er1 >conftest.err
55624   rm -f conftest.er1
55625   cat conftest.err >&5
55626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55627   (exit $ac_status); } &&
55628          { ac_try='test -z "$ac_c_werror_flag"
55629                          || test ! -s conftest.err'
55630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55631   (eval $ac_try) 2>&5
55632   ac_status=$?
55633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55634   (exit $ac_status); }; } &&
55635          { ac_try='test -s conftest$ac_exeext'
55636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55637   (eval $ac_try) 2>&5
55638   ac_status=$?
55639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55640   (exit $ac_status); }; }; then
55641   am_cv_lib_iconv=yes
55642         am_cv_func_iconv=yes
55643 else
55644   echo "$as_me: failed program was:" >&5
55645 sed 's/^/| /' conftest.$ac_ext >&5
55646
55647 fi
55648 rm -f conftest.err conftest.$ac_objext \
55649       conftest$ac_exeext conftest.$ac_ext
55650       LIBS="$am_save_LIBS"
55651     fi
55652
55653 fi
55654 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
55655 echo "${ECHO_T}$am_cv_func_iconv" >&6
55656   if test "$am_cv_func_iconv" = yes; then
55657
55658 cat >>confdefs.h <<\_ACEOF
55659 #define HAVE_ICONV 1
55660 _ACEOF
55661
55662   fi
55663   if test "$am_cv_lib_iconv" = yes; then
55664     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
55665 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
55666     echo "$as_me:$LINENO: result: $LIBICONV" >&5
55667 echo "${ECHO_T}$LIBICONV" >&6
55668   else
55669             CPPFLAGS="$am_save_CPPFLAGS"
55670     LIBICONV=
55671     LTLIBICONV=
55672   fi
55673
55674
55675
55676   if test "$am_cv_func_iconv" = yes; then
55677     echo "$as_me:$LINENO: checking for iconv declaration" >&5
55678 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
55679     if test "${am_cv_proto_iconv+set}" = set; then
55680   echo $ECHO_N "(cached) $ECHO_C" >&6
55681 else
55682
55683       cat >conftest.$ac_ext <<_ACEOF
55684 /* confdefs.h.  */
55685 _ACEOF
55686 cat confdefs.h >>conftest.$ac_ext
55687 cat >>conftest.$ac_ext <<_ACEOF
55688 /* end confdefs.h.  */
55689
55690 #include <stdlib.h>
55691 #include <iconv.h>
55692 extern
55693 #ifdef __cplusplus
55694 "C"
55695 #endif
55696 #if defined(__STDC__) || defined(__cplusplus)
55697 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
55698 #else
55699 size_t iconv();
55700 #endif
55701
55702 int
55703 main ()
55704 {
55705
55706   ;
55707   return 0;
55708 }
55709 _ACEOF
55710 rm -f conftest.$ac_objext
55711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55712   (eval $ac_compile) 2>conftest.er1
55713   ac_status=$?
55714   grep -v '^ *+' conftest.er1 >conftest.err
55715   rm -f conftest.er1
55716   cat conftest.err >&5
55717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55718   (exit $ac_status); } &&
55719          { ac_try='test -z "$ac_c_werror_flag"
55720                          || test ! -s conftest.err'
55721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55722   (eval $ac_try) 2>&5
55723   ac_status=$?
55724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55725   (exit $ac_status); }; } &&
55726          { ac_try='test -s conftest.$ac_objext'
55727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55728   (eval $ac_try) 2>&5
55729   ac_status=$?
55730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55731   (exit $ac_status); }; }; then
55732   am_cv_proto_iconv_arg1=""
55733 else
55734   echo "$as_me: failed program was:" >&5
55735 sed 's/^/| /' conftest.$ac_ext >&5
55736
55737 am_cv_proto_iconv_arg1="const"
55738 fi
55739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55740       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);"
55741 fi
55742
55743     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
55744     echo "$as_me:$LINENO: result: ${ac_t:-
55745          }$am_cv_proto_iconv" >&5
55746 echo "${ECHO_T}${ac_t:-
55747          }$am_cv_proto_iconv" >&6
55748
55749 cat >>confdefs.h <<_ACEOF
55750 #define ICONV_CONST $am_cv_proto_iconv_arg1
55751 _ACEOF
55752
55753   fi
55754
55755     echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
55756 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
55757 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
55758   echo $ECHO_N "(cached) $ECHO_C" >&6
55759 else
55760
55761       if test "$cross_compiling" = yes; then
55762   jm_cv_func_unlink_busy_text=no
55763
55764 else
55765   cat >conftest.$ac_ext <<_ACEOF
55766 /* confdefs.h.  */
55767 _ACEOF
55768 cat confdefs.h >>conftest.$ac_ext
55769 cat >>conftest.$ac_ext <<_ACEOF
55770 /* end confdefs.h.  */
55771
55772         main (argc, argv)
55773           int argc;
55774           char **argv;
55775         {
55776           if (!argc)
55777             exit (-1);
55778           exit (unlink (argv[0]));
55779         }
55780
55781 _ACEOF
55782 rm -f conftest$ac_exeext
55783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55784   (eval $ac_link) 2>&5
55785   ac_status=$?
55786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55787   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55789   (eval $ac_try) 2>&5
55790   ac_status=$?
55791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55792   (exit $ac_status); }; }; then
55793   jm_cv_func_unlink_busy_text=yes
55794 else
55795   echo "$as_me: program exited with status $ac_status" >&5
55796 echo "$as_me: failed program was:" >&5
55797 sed 's/^/| /' conftest.$ac_ext >&5
55798
55799 ( exit $ac_status )
55800 jm_cv_func_unlink_busy_text=no
55801 fi
55802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55803 fi
55804
55805
55806 fi
55807 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
55808 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
55809
55810   if test $jm_cv_func_unlink_busy_text = no; then
55811     INSTALL=$ac_install_sh
55812   fi
55813
55814
55815   # These tests are for df.
55816
55817
55818   if test $gl_cv_list_mounted_fs = yes && test $gl_cv_fs_space = yes; then
55819     DF_PROG='df$(EXEEXT)'
55820   fi
55821
55822
55823
55824   # If any of these functions don't exist (e.g. DJGPP 2.03),
55825   # use the corresponding stub.
55826   echo "$as_me:$LINENO: checking for fchdir" >&5
55827 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
55828 if test "${ac_cv_func_fchdir+set}" = set; then
55829   echo $ECHO_N "(cached) $ECHO_C" >&6
55830 else
55831   cat >conftest.$ac_ext <<_ACEOF
55832 /* confdefs.h.  */
55833 _ACEOF
55834 cat confdefs.h >>conftest.$ac_ext
55835 cat >>conftest.$ac_ext <<_ACEOF
55836 /* end confdefs.h.  */
55837 /* Define fchdir to an innocuous variant, in case <limits.h> declares fchdir.
55838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55839 #define fchdir innocuous_fchdir
55840
55841 /* System header to define __stub macros and hopefully few prototypes,
55842     which can conflict with char fchdir (); below.
55843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55844     <limits.h> exists even on freestanding compilers.  */
55845
55846 #ifdef __STDC__
55847 # include <limits.h>
55848 #else
55849 # include <assert.h>
55850 #endif
55851
55852 #undef fchdir
55853
55854 /* Override any gcc2 internal prototype to avoid an error.  */
55855 #ifdef __cplusplus
55856 extern "C"
55857 {
55858 #endif
55859 /* We use char because int might match the return type of a gcc2
55860    builtin and then its argument prototype would still apply.  */
55861 char fchdir ();
55862 /* The GNU C library defines this for functions which it implements
55863     to always fail with ENOSYS.  Some functions are actually named
55864     something starting with __ and the normal name is an alias.  */
55865 #if defined (__stub_fchdir) || defined (__stub___fchdir)
55866 choke me
55867 #else
55868 char (*f) () = fchdir;
55869 #endif
55870 #ifdef __cplusplus
55871 }
55872 #endif
55873
55874 int
55875 main ()
55876 {
55877 return f != fchdir;
55878   ;
55879   return 0;
55880 }
55881 _ACEOF
55882 rm -f conftest.$ac_objext conftest$ac_exeext
55883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55884   (eval $ac_link) 2>conftest.er1
55885   ac_status=$?
55886   grep -v '^ *+' conftest.er1 >conftest.err
55887   rm -f conftest.er1
55888   cat conftest.err >&5
55889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55890   (exit $ac_status); } &&
55891          { ac_try='test -z "$ac_c_werror_flag"
55892                          || test ! -s conftest.err'
55893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55894   (eval $ac_try) 2>&5
55895   ac_status=$?
55896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55897   (exit $ac_status); }; } &&
55898          { ac_try='test -s conftest$ac_exeext'
55899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55900   (eval $ac_try) 2>&5
55901   ac_status=$?
55902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55903   (exit $ac_status); }; }; then
55904   ac_cv_func_fchdir=yes
55905 else
55906   echo "$as_me: failed program was:" >&5
55907 sed 's/^/| /' conftest.$ac_ext >&5
55908
55909 ac_cv_func_fchdir=no
55910 fi
55911 rm -f conftest.err conftest.$ac_objext \
55912       conftest$ac_exeext conftest.$ac_ext
55913 fi
55914 echo "$as_me:$LINENO: result: $ac_cv_func_fchdir" >&5
55915 echo "${ECHO_T}$ac_cv_func_fchdir" >&6
55916 if test $ac_cv_func_fchdir = yes; then
55917   :
55918 else
55919   case $LIBOBJS in
55920     "fchdir-stub.$ac_objext"   | \
55921   *" fchdir-stub.$ac_objext"   | \
55922     "fchdir-stub.$ac_objext "* | \
55923   *" fchdir-stub.$ac_objext "* ) ;;
55924   *) LIBOBJS="$LIBOBJS fchdir-stub.$ac_objext" ;;
55925 esac
55926
55927 fi
55928
55929
55930
55931
55932
55933
55934 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
55935 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
55936 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
55937   echo $ECHO_N "(cached) $ECHO_C" >&6
55938 else
55939   cat >conftest.$ac_ext <<_ACEOF
55940 /* confdefs.h.  */
55941 _ACEOF
55942 cat confdefs.h >>conftest.$ac_ext
55943 cat >>conftest.$ac_ext <<_ACEOF
55944 /* end confdefs.h.  */
55945 #include <sys/types.h>
55946 #include <termios.h>
55947 #ifdef TIOCGWINSZ
55948   yes
55949 #endif
55950
55951 _ACEOF
55952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55953   $EGREP "yes" >/dev/null 2>&1; then
55954   ac_cv_sys_tiocgwinsz_in_termios_h=yes
55955 else
55956   ac_cv_sys_tiocgwinsz_in_termios_h=no
55957 fi
55958 rm -f conftest*
55959
55960 fi
55961 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
55962 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
55963
55964 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
55965   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
55966 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
55967 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
55968   echo $ECHO_N "(cached) $ECHO_C" >&6
55969 else
55970   cat >conftest.$ac_ext <<_ACEOF
55971 /* confdefs.h.  */
55972 _ACEOF
55973 cat confdefs.h >>conftest.$ac_ext
55974 cat >>conftest.$ac_ext <<_ACEOF
55975 /* end confdefs.h.  */
55976 #include <sys/types.h>
55977 #include <sys/ioctl.h>
55978 #ifdef TIOCGWINSZ
55979   yes
55980 #endif
55981
55982 _ACEOF
55983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55984   $EGREP "yes" >/dev/null 2>&1; then
55985   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
55986 else
55987   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
55988 fi
55989 rm -f conftest*
55990
55991 fi
55992 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
55993 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
55994
55995   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
55996
55997 cat >>confdefs.h <<\_ACEOF
55998 #define GWINSZ_IN_SYS_IOCTL 1
55999 _ACEOF
56000
56001   fi
56002 fi
56003
56004 echo "$as_me:$LINENO: checking POSIX termios" >&5
56005 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
56006 if test "${ac_cv_sys_posix_termios+set}" = set; then
56007   echo $ECHO_N "(cached) $ECHO_C" >&6
56008 else
56009   cat >conftest.$ac_ext <<_ACEOF
56010 /* confdefs.h.  */
56011 _ACEOF
56012 cat confdefs.h >>conftest.$ac_ext
56013 cat >>conftest.$ac_ext <<_ACEOF
56014 /* end confdefs.h.  */
56015 #include <sys/types.h>
56016 #include <unistd.h>
56017 #include <termios.h>
56018
56019 int
56020 main ()
56021 {
56022 /* SunOS 4.0.3 has termios.h but not the library calls.  */
56023    tcgetattr(0, 0);
56024   ;
56025   return 0;
56026 }
56027 _ACEOF
56028 rm -f conftest.$ac_objext conftest$ac_exeext
56029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56030   (eval $ac_link) 2>conftest.er1
56031   ac_status=$?
56032   grep -v '^ *+' conftest.er1 >conftest.err
56033   rm -f conftest.er1
56034   cat conftest.err >&5
56035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56036   (exit $ac_status); } &&
56037          { ac_try='test -z "$ac_c_werror_flag"
56038                          || test ! -s conftest.err'
56039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56040   (eval $ac_try) 2>&5
56041   ac_status=$?
56042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56043   (exit $ac_status); }; } &&
56044          { ac_try='test -s conftest$ac_exeext'
56045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56046   (eval $ac_try) 2>&5
56047   ac_status=$?
56048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56049   (exit $ac_status); }; }; then
56050   ac_cv_sys_posix_termios=yes
56051 else
56052   echo "$as_me: failed program was:" >&5
56053 sed 's/^/| /' conftest.$ac_ext >&5
56054
56055 ac_cv_sys_posix_termios=no
56056 fi
56057 rm -f conftest.err conftest.$ac_objext \
56058       conftest$ac_exeext conftest.$ac_ext
56059 fi
56060 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
56061 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
56062
56063
56064    echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
56065 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
56066 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
56067   echo $ECHO_N "(cached) $ECHO_C" >&6
56068 else
56069   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
56070       if test $ac_cv_sys_posix_termios = yes; then
56071         cat >conftest.$ac_ext <<_ACEOF
56072 /* confdefs.h.  */
56073 _ACEOF
56074 cat confdefs.h >>conftest.$ac_ext
56075 cat >>conftest.$ac_ext <<_ACEOF
56076 /* end confdefs.h.  */
56077 #include <termios.h>
56078           struct winsize x;
56079 int
56080 main ()
56081 {
56082 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
56083   ;
56084   return 0;
56085 }
56086 _ACEOF
56087 rm -f conftest.$ac_objext
56088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56089   (eval $ac_compile) 2>conftest.er1
56090   ac_status=$?
56091   grep -v '^ *+' conftest.er1 >conftest.err
56092   rm -f conftest.er1
56093   cat conftest.err >&5
56094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56095   (exit $ac_status); } &&
56096          { ac_try='test -z "$ac_c_werror_flag"
56097                          || test ! -s conftest.err'
56098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56099   (eval $ac_try) 2>&5
56100   ac_status=$?
56101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56102   (exit $ac_status); }; } &&
56103          { ac_try='test -s conftest.$ac_objext'
56104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56105   (eval $ac_try) 2>&5
56106   ac_status=$?
56107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56108   (exit $ac_status); }; }; then
56109   :
56110 else
56111   echo "$as_me: failed program was:" >&5
56112 sed 's/^/| /' conftest.$ac_ext >&5
56113
56114 fi
56115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56116       fi
56117       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
56118         cat >conftest.$ac_ext <<_ACEOF
56119 /* confdefs.h.  */
56120 _ACEOF
56121 cat confdefs.h >>conftest.$ac_ext
56122 cat >>conftest.$ac_ext <<_ACEOF
56123 /* end confdefs.h.  */
56124 #include <sys/ptem.h>
56125 int
56126 main ()
56127 {
56128 struct winsize x;
56129   ;
56130   return 0;
56131 }
56132 _ACEOF
56133 rm -f conftest.$ac_objext
56134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56135   (eval $ac_compile) 2>conftest.er1
56136   ac_status=$?
56137   grep -v '^ *+' conftest.er1 >conftest.err
56138   rm -f conftest.er1
56139   cat conftest.err >&5
56140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56141   (exit $ac_status); } &&
56142          { ac_try='test -z "$ac_c_werror_flag"
56143                          || test ! -s conftest.err'
56144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56145   (eval $ac_try) 2>&5
56146   ac_status=$?
56147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56148   (exit $ac_status); }; } &&
56149          { ac_try='test -s conftest.$ac_objext'
56150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56151   (eval $ac_try) 2>&5
56152   ac_status=$?
56153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56154   (exit $ac_status); }; }; then
56155   :
56156 else
56157   echo "$as_me: failed program was:" >&5
56158 sed 's/^/| /' conftest.$ac_ext >&5
56159
56160 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
56161 fi
56162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56163       fi
56164 fi
56165 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
56166 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
56167    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
56168
56169 cat >>confdefs.h <<\_ACEOF
56170 #define WINSIZE_IN_PTEM 1
56171 _ACEOF
56172
56173    fi
56174
56175 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
56176 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
56177 if test "${utils_cv_localtime_cache+set}" = set; then
56178   echo $ECHO_N "(cached) $ECHO_C" >&6
56179 else
56180   if test x$ac_cv_func_tzset = xyes; then
56181 if test "$cross_compiling" = yes; then
56182   # If we have tzset, assume the worst when cross-compiling.
56183 utils_cv_localtime_cache=yes
56184 else
56185   cat >conftest.$ac_ext <<_ACEOF
56186 /* confdefs.h.  */
56187 _ACEOF
56188 cat confdefs.h >>conftest.$ac_ext
56189 cat >>conftest.$ac_ext <<_ACEOF
56190 /* end confdefs.h.  */
56191 #include <time.h>
56192 #if STDC_HEADERS
56193 # include <stdlib.h>
56194 #endif
56195 extern char **environ;
56196 unset_TZ ()
56197 {
56198   char **from, **to;
56199   for (to = from = environ; (*to = *from); from++)
56200     if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
56201       to++;
56202 }
56203 main()
56204 {
56205   time_t now = time ((time_t *) 0);
56206   int hour_GMT0, hour_unset;
56207   if (putenv ("TZ=GMT0") != 0)
56208     exit (1);
56209   hour_GMT0 = localtime (&now)->tm_hour;
56210   unset_TZ ();
56211   hour_unset = localtime (&now)->tm_hour;
56212   if (putenv ("TZ=PST8") != 0)
56213     exit (1);
56214   if (localtime (&now)->tm_hour == hour_GMT0)
56215     exit (1);
56216   unset_TZ ();
56217   if (localtime (&now)->tm_hour != hour_unset)
56218     exit (1);
56219   exit (0);
56220 }
56221 _ACEOF
56222 rm -f conftest$ac_exeext
56223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56224   (eval $ac_link) 2>&5
56225   ac_status=$?
56226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56227   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56229   (eval $ac_try) 2>&5
56230   ac_status=$?
56231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56232   (exit $ac_status); }; }; then
56233   utils_cv_localtime_cache=no
56234 else
56235   echo "$as_me: program exited with status $ac_status" >&5
56236 echo "$as_me: failed program was:" >&5
56237 sed 's/^/| /' conftest.$ac_ext >&5
56238
56239 ( exit $ac_status )
56240 utils_cv_localtime_cache=yes
56241 fi
56242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56243 fi
56244 else
56245         # If we lack tzset, report that localtime does not cache TZ,
56246         # since we can't invalidate the cache if we don't have tzset.
56247         utils_cv_localtime_cache=no
56248 fi
56249 fi
56250 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
56251 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
56252 if test $utils_cv_localtime_cache = yes; then
56253
56254 cat >>confdefs.h <<\_ACEOF
56255 #define LOCALTIME_CACHE 1
56256 _ACEOF
56257
56258 fi
56259
56260 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
56261
56262 for ac_func in initgroups
56263 do
56264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56265 echo "$as_me:$LINENO: checking for $ac_func" >&5
56266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56267 if eval "test \"\${$as_ac_var+set}\" = set"; then
56268   echo $ECHO_N "(cached) $ECHO_C" >&6
56269 else
56270   cat >conftest.$ac_ext <<_ACEOF
56271 /* confdefs.h.  */
56272 _ACEOF
56273 cat confdefs.h >>conftest.$ac_ext
56274 cat >>conftest.$ac_ext <<_ACEOF
56275 /* end confdefs.h.  */
56276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56278 #define $ac_func innocuous_$ac_func
56279
56280 /* System header to define __stub macros and hopefully few prototypes,
56281     which can conflict with char $ac_func (); below.
56282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56283     <limits.h> exists even on freestanding compilers.  */
56284
56285 #ifdef __STDC__
56286 # include <limits.h>
56287 #else
56288 # include <assert.h>
56289 #endif
56290
56291 #undef $ac_func
56292
56293 /* Override any gcc2 internal prototype to avoid an error.  */
56294 #ifdef __cplusplus
56295 extern "C"
56296 {
56297 #endif
56298 /* We use char because int might match the return type of a gcc2
56299    builtin and then its argument prototype would still apply.  */
56300 char $ac_func ();
56301 /* The GNU C library defines this for functions which it implements
56302     to always fail with ENOSYS.  Some functions are actually named
56303     something starting with __ and the normal name is an alias.  */
56304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56305 choke me
56306 #else
56307 char (*f) () = $ac_func;
56308 #endif
56309 #ifdef __cplusplus
56310 }
56311 #endif
56312
56313 int
56314 main ()
56315 {
56316 return f != $ac_func;
56317   ;
56318   return 0;
56319 }
56320 _ACEOF
56321 rm -f conftest.$ac_objext conftest$ac_exeext
56322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56323   (eval $ac_link) 2>conftest.er1
56324   ac_status=$?
56325   grep -v '^ *+' conftest.er1 >conftest.err
56326   rm -f conftest.er1
56327   cat conftest.err >&5
56328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56329   (exit $ac_status); } &&
56330          { ac_try='test -z "$ac_c_werror_flag"
56331                          || test ! -s conftest.err'
56332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56333   (eval $ac_try) 2>&5
56334   ac_status=$?
56335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56336   (exit $ac_status); }; } &&
56337          { ac_try='test -s conftest$ac_exeext'
56338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56339   (eval $ac_try) 2>&5
56340   ac_status=$?
56341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56342   (exit $ac_status); }; }; then
56343   eval "$as_ac_var=yes"
56344 else
56345   echo "$as_me: failed program was:" >&5
56346 sed 's/^/| /' conftest.$ac_ext >&5
56347
56348 eval "$as_ac_var=no"
56349 fi
56350 rm -f conftest.err conftest.$ac_objext \
56351       conftest$ac_exeext conftest.$ac_ext
56352 fi
56353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56355 if test `eval echo '${'$as_ac_var'}'` = yes; then
56356   cat >>confdefs.h <<_ACEOF
56357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56358 _ACEOF
56359
56360 fi
56361 done
56362
56363 if test $ac_cv_func_initgroups = no; then
56364
56365 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
56366 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
56367 if test "${ac_cv_lib_os_initgroups+set}" = set; then
56368   echo $ECHO_N "(cached) $ECHO_C" >&6
56369 else
56370   ac_check_lib_save_LIBS=$LIBS
56371 LIBS="-los  $LIBS"
56372 cat >conftest.$ac_ext <<_ACEOF
56373 /* confdefs.h.  */
56374 _ACEOF
56375 cat confdefs.h >>conftest.$ac_ext
56376 cat >>conftest.$ac_ext <<_ACEOF
56377 /* end confdefs.h.  */
56378
56379 /* Override any gcc2 internal prototype to avoid an error.  */
56380 #ifdef __cplusplus
56381 extern "C"
56382 #endif
56383 /* We use char because int might match the return type of a gcc2
56384    builtin and then its argument prototype would still apply.  */
56385 char initgroups ();
56386 int
56387 main ()
56388 {
56389 initgroups ();
56390   ;
56391   return 0;
56392 }
56393 _ACEOF
56394 rm -f conftest.$ac_objext conftest$ac_exeext
56395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56396   (eval $ac_link) 2>conftest.er1
56397   ac_status=$?
56398   grep -v '^ *+' conftest.er1 >conftest.err
56399   rm -f conftest.er1
56400   cat conftest.err >&5
56401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56402   (exit $ac_status); } &&
56403          { ac_try='test -z "$ac_c_werror_flag"
56404                          || test ! -s conftest.err'
56405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56406   (eval $ac_try) 2>&5
56407   ac_status=$?
56408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56409   (exit $ac_status); }; } &&
56410          { ac_try='test -s conftest$ac_exeext'
56411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56412   (eval $ac_try) 2>&5
56413   ac_status=$?
56414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56415   (exit $ac_status); }; }; then
56416   ac_cv_lib_os_initgroups=yes
56417 else
56418   echo "$as_me: failed program was:" >&5
56419 sed 's/^/| /' conftest.$ac_ext >&5
56420
56421 ac_cv_lib_os_initgroups=no
56422 fi
56423 rm -f conftest.err conftest.$ac_objext \
56424       conftest$ac_exeext conftest.$ac_ext
56425 LIBS=$ac_check_lib_save_LIBS
56426 fi
56427 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
56428 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
56429 if test $ac_cv_lib_os_initgroups = yes; then
56430   cat >>confdefs.h <<_ACEOF
56431 #define HAVE_LIBOS 1
56432 _ACEOF
56433
56434   LIBS="-los $LIBS"
56435
56436 fi
56437
56438 fi
56439
56440
56441 for ac_func in syslog
56442 do
56443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56444 echo "$as_me:$LINENO: checking for $ac_func" >&5
56445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56446 if eval "test \"\${$as_ac_var+set}\" = set"; then
56447   echo $ECHO_N "(cached) $ECHO_C" >&6
56448 else
56449   cat >conftest.$ac_ext <<_ACEOF
56450 /* confdefs.h.  */
56451 _ACEOF
56452 cat confdefs.h >>conftest.$ac_ext
56453 cat >>conftest.$ac_ext <<_ACEOF
56454 /* end confdefs.h.  */
56455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56457 #define $ac_func innocuous_$ac_func
56458
56459 /* System header to define __stub macros and hopefully few prototypes,
56460     which can conflict with char $ac_func (); below.
56461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56462     <limits.h> exists even on freestanding compilers.  */
56463
56464 #ifdef __STDC__
56465 # include <limits.h>
56466 #else
56467 # include <assert.h>
56468 #endif
56469
56470 #undef $ac_func
56471
56472 /* Override any gcc2 internal prototype to avoid an error.  */
56473 #ifdef __cplusplus
56474 extern "C"
56475 {
56476 #endif
56477 /* We use char because int might match the return type of a gcc2
56478    builtin and then its argument prototype would still apply.  */
56479 char $ac_func ();
56480 /* The GNU C library defines this for functions which it implements
56481     to always fail with ENOSYS.  Some functions are actually named
56482     something starting with __ and the normal name is an alias.  */
56483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56484 choke me
56485 #else
56486 char (*f) () = $ac_func;
56487 #endif
56488 #ifdef __cplusplus
56489 }
56490 #endif
56491
56492 int
56493 main ()
56494 {
56495 return f != $ac_func;
56496   ;
56497   return 0;
56498 }
56499 _ACEOF
56500 rm -f conftest.$ac_objext conftest$ac_exeext
56501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56502   (eval $ac_link) 2>conftest.er1
56503   ac_status=$?
56504   grep -v '^ *+' conftest.er1 >conftest.err
56505   rm -f conftest.er1
56506   cat conftest.err >&5
56507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56508   (exit $ac_status); } &&
56509          { ac_try='test -z "$ac_c_werror_flag"
56510                          || test ! -s conftest.err'
56511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56512   (eval $ac_try) 2>&5
56513   ac_status=$?
56514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56515   (exit $ac_status); }; } &&
56516          { ac_try='test -s conftest$ac_exeext'
56517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56518   (eval $ac_try) 2>&5
56519   ac_status=$?
56520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56521   (exit $ac_status); }; }; then
56522   eval "$as_ac_var=yes"
56523 else
56524   echo "$as_me: failed program was:" >&5
56525 sed 's/^/| /' conftest.$ac_ext >&5
56526
56527 eval "$as_ac_var=no"
56528 fi
56529 rm -f conftest.err conftest.$ac_objext \
56530       conftest$ac_exeext conftest.$ac_ext
56531 fi
56532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56534 if test `eval echo '${'$as_ac_var'}'` = yes; then
56535   cat >>confdefs.h <<_ACEOF
56536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56537 _ACEOF
56538
56539 fi
56540 done
56541
56542 if test $ac_cv_func_syslog = no; then
56543   # syslog is not in the default libraries.  See if it's in some other.
56544   for lib in bsd socket inet; do
56545     as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
56546 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
56547 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
56548 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
56549   echo $ECHO_N "(cached) $ECHO_C" >&6
56550 else
56551   ac_check_lib_save_LIBS=$LIBS
56552 LIBS="-l$lib  $LIBS"
56553 cat >conftest.$ac_ext <<_ACEOF
56554 /* confdefs.h.  */
56555 _ACEOF
56556 cat confdefs.h >>conftest.$ac_ext
56557 cat >>conftest.$ac_ext <<_ACEOF
56558 /* end confdefs.h.  */
56559
56560 /* Override any gcc2 internal prototype to avoid an error.  */
56561 #ifdef __cplusplus
56562 extern "C"
56563 #endif
56564 /* We use char because int might match the return type of a gcc2
56565    builtin and then its argument prototype would still apply.  */
56566 char syslog ();
56567 int
56568 main ()
56569 {
56570 syslog ();
56571   ;
56572   return 0;
56573 }
56574 _ACEOF
56575 rm -f conftest.$ac_objext conftest$ac_exeext
56576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56577   (eval $ac_link) 2>conftest.er1
56578   ac_status=$?
56579   grep -v '^ *+' conftest.er1 >conftest.err
56580   rm -f conftest.er1
56581   cat conftest.err >&5
56582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56583   (exit $ac_status); } &&
56584          { ac_try='test -z "$ac_c_werror_flag"
56585                          || test ! -s conftest.err'
56586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56587   (eval $ac_try) 2>&5
56588   ac_status=$?
56589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56590   (exit $ac_status); }; } &&
56591          { ac_try='test -s conftest$ac_exeext'
56592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56593   (eval $ac_try) 2>&5
56594   ac_status=$?
56595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56596   (exit $ac_status); }; }; then
56597   eval "$as_ac_Lib=yes"
56598 else
56599   echo "$as_me: failed program was:" >&5
56600 sed 's/^/| /' conftest.$ac_ext >&5
56601
56602 eval "$as_ac_Lib=no"
56603 fi
56604 rm -f conftest.err conftest.$ac_objext \
56605       conftest$ac_exeext conftest.$ac_ext
56606 LIBS=$ac_check_lib_save_LIBS
56607 fi
56608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
56609 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
56610 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
56611
56612 cat >>confdefs.h <<\_ACEOF
56613 #define HAVE_SYSLOG 1
56614 _ACEOF
56615
56616       LIBS="$LIBS -l$lib"; break
56617 fi
56618
56619   done
56620 fi
56621
56622 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
56623 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
56624 if test "${utils_cv_func_setpriority+set}" = set; then
56625   echo $ECHO_N "(cached) $ECHO_C" >&6
56626 else
56627   cat >conftest.$ac_ext <<_ACEOF
56628 /* confdefs.h.  */
56629 _ACEOF
56630 cat confdefs.h >>conftest.$ac_ext
56631 cat >>conftest.$ac_ext <<_ACEOF
56632 /* end confdefs.h.  */
56633 #include <sys/time.h>
56634   #include <sys/resource.h>
56635 int
56636 main ()
56637 {
56638 setpriority(0, 0, 0);
56639   ;
56640   return 0;
56641 }
56642 _ACEOF
56643 rm -f conftest.$ac_objext conftest$ac_exeext
56644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56645   (eval $ac_link) 2>conftest.er1
56646   ac_status=$?
56647   grep -v '^ *+' conftest.er1 >conftest.err
56648   rm -f conftest.er1
56649   cat conftest.err >&5
56650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56651   (exit $ac_status); } &&
56652          { ac_try='test -z "$ac_c_werror_flag"
56653                          || test ! -s conftest.err'
56654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56655   (eval $ac_try) 2>&5
56656   ac_status=$?
56657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56658   (exit $ac_status); }; } &&
56659          { ac_try='test -s conftest$ac_exeext'
56660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56661   (eval $ac_try) 2>&5
56662   ac_status=$?
56663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56664   (exit $ac_status); }; }; then
56665   utils_cv_func_setpriority=yes
56666 else
56667   echo "$as_me: failed program was:" >&5
56668 sed 's/^/| /' conftest.$ac_ext >&5
56669
56670 utils_cv_func_setpriority=no
56671 fi
56672 rm -f conftest.err conftest.$ac_objext \
56673       conftest$ac_exeext conftest.$ac_ext
56674 fi
56675
56676 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
56677 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
56678 if test $utils_cv_func_setpriority = yes; then
56679   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
56680   MAN="$MAN nice.1"
56681 else
56682   echo "$as_me:$LINENO: checking for nice function" >&5
56683 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
56684   if test "${utils_cv_func_nice+set}" = set; then
56685   echo $ECHO_N "(cached) $ECHO_C" >&6
56686 else
56687   cat >conftest.$ac_ext <<_ACEOF
56688 /* confdefs.h.  */
56689 _ACEOF
56690 cat confdefs.h >>conftest.$ac_ext
56691 cat >>conftest.$ac_ext <<_ACEOF
56692 /* end confdefs.h.  */
56693
56694 int
56695 main ()
56696 {
56697 nice();
56698   ;
56699   return 0;
56700 }
56701 _ACEOF
56702 rm -f conftest.$ac_objext conftest$ac_exeext
56703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56704   (eval $ac_link) 2>conftest.er1
56705   ac_status=$?
56706   grep -v '^ *+' conftest.er1 >conftest.err
56707   rm -f conftest.er1
56708   cat conftest.err >&5
56709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56710   (exit $ac_status); } &&
56711          { ac_try='test -z "$ac_c_werror_flag"
56712                          || test ! -s conftest.err'
56713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56714   (eval $ac_try) 2>&5
56715   ac_status=$?
56716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56717   (exit $ac_status); }; } &&
56718          { ac_try='test -s conftest$ac_exeext'
56719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56720   (eval $ac_try) 2>&5
56721   ac_status=$?
56722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56723   (exit $ac_status); }; }; then
56724   utils_cv_func_nice=yes
56725 else
56726   echo "$as_me: failed program was:" >&5
56727 sed 's/^/| /' conftest.$ac_ext >&5
56728
56729 utils_cv_func_nice=no
56730 fi
56731 rm -f conftest.err conftest.$ac_objext \
56732       conftest$ac_exeext conftest.$ac_ext
56733 fi
56734
56735   echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
56736 echo "${ECHO_T}$utils_cv_func_nice" >&6
56737   if test $utils_cv_func_nice = yes; then
56738
56739 cat >>confdefs.h <<\_ACEOF
56740 #define NICE_PRIORITY 1
56741 _ACEOF
56742
56743     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
56744     MAN="$MAN nice.1"
56745   fi
56746 fi
56747
56748
56749
56750
56751   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
56752     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky\$(EXEEXT)"
56753     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS users\$(EXEEXT)"
56754     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS who\$(EXEEXT)"
56755     MAN="$MAN pinky.1 users.1 who.1"
56756   fi
56757
56758
56759 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
56760 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
56761 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
56762   echo $ECHO_N "(cached) $ECHO_C" >&6
56763 else
56764   cat >conftest.$ac_ext <<_ACEOF
56765 /* confdefs.h.  */
56766 _ACEOF
56767 cat confdefs.h >>conftest.$ac_ext
56768 cat >>conftest.$ac_ext <<_ACEOF
56769 /* end confdefs.h.  */
56770 #include <sys/types.h>
56771 #include <utmp.h>
56772 int
56773 main ()
56774 {
56775 struct utmp ut; ut.ut_host;
56776   ;
56777   return 0;
56778 }
56779 _ACEOF
56780 rm -f conftest.$ac_objext conftest$ac_exeext
56781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56782   (eval $ac_link) 2>conftest.er1
56783   ac_status=$?
56784   grep -v '^ *+' conftest.er1 >conftest.err
56785   rm -f conftest.er1
56786   cat conftest.err >&5
56787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56788   (exit $ac_status); } &&
56789          { ac_try='test -z "$ac_c_werror_flag"
56790                          || test ! -s conftest.err'
56791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56792   (eval $ac_try) 2>&5
56793   ac_status=$?
56794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56795   (exit $ac_status); }; } &&
56796          { ac_try='test -s conftest$ac_exeext'
56797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56798   (eval $ac_try) 2>&5
56799   ac_status=$?
56800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56801   (exit $ac_status); }; }; then
56802   su_cv_func_ut_host_in_utmp=yes
56803 else
56804   echo "$as_me: failed program was:" >&5
56805 sed 's/^/| /' conftest.$ac_ext >&5
56806
56807 su_cv_func_ut_host_in_utmp=no
56808 fi
56809 rm -f conftest.err conftest.$ac_objext \
56810       conftest$ac_exeext conftest.$ac_ext
56811 fi
56812
56813 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
56814 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
56815 if test $su_cv_func_ut_host_in_utmp = yes; then
56816   have_ut_host=1
56817
56818 cat >>confdefs.h <<\_ACEOF
56819 #define HAVE_UT_HOST 1
56820 _ACEOF
56821
56822 fi
56823
56824 if test -z "$have_ut_host"; then
56825   echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
56826 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
56827   if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
56828   echo $ECHO_N "(cached) $ECHO_C" >&6
56829 else
56830   cat >conftest.$ac_ext <<_ACEOF
56831 /* confdefs.h.  */
56832 _ACEOF
56833 cat confdefs.h >>conftest.$ac_ext
56834 cat >>conftest.$ac_ext <<_ACEOF
56835 /* end confdefs.h.  */
56836 #include <sys/types.h>
56837 #include <utmpx.h>
56838 int
56839 main ()
56840 {
56841 struct utmpx ut; ut.ut_host;
56842   ;
56843   return 0;
56844 }
56845 _ACEOF
56846 rm -f conftest.$ac_objext conftest$ac_exeext
56847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56848   (eval $ac_link) 2>conftest.er1
56849   ac_status=$?
56850   grep -v '^ *+' conftest.er1 >conftest.err
56851   rm -f conftest.er1
56852   cat conftest.err >&5
56853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56854   (exit $ac_status); } &&
56855          { ac_try='test -z "$ac_c_werror_flag"
56856                          || test ! -s conftest.err'
56857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56858   (eval $ac_try) 2>&5
56859   ac_status=$?
56860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56861   (exit $ac_status); }; } &&
56862          { ac_try='test -s conftest$ac_exeext'
56863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56864   (eval $ac_try) 2>&5
56865   ac_status=$?
56866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56867   (exit $ac_status); }; }; then
56868   su_cv_func_ut_host_in_utmpx=yes
56869 else
56870   echo "$as_me: failed program was:" >&5
56871 sed 's/^/| /' conftest.$ac_ext >&5
56872
56873 su_cv_func_ut_host_in_utmpx=no
56874 fi
56875 rm -f conftest.err conftest.$ac_objext \
56876       conftest$ac_exeext conftest.$ac_ext
56877 fi
56878
56879   echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
56880 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
56881   if test $su_cv_func_ut_host_in_utmpx = yes; then
56882
56883 cat >>confdefs.h <<\_ACEOF
56884 #define HAVE_UTMPX_H 1
56885 _ACEOF
56886
56887
56888 cat >>confdefs.h <<\_ACEOF
56889 #define HAVE_UT_HOST 1
56890 _ACEOF
56891
56892   fi
56893 fi
56894
56895
56896
56897 for ac_func in sysctl
56898 do
56899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56900 echo "$as_me:$LINENO: checking for $ac_func" >&5
56901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56902 if eval "test \"\${$as_ac_var+set}\" = set"; then
56903   echo $ECHO_N "(cached) $ECHO_C" >&6
56904 else
56905   cat >conftest.$ac_ext <<_ACEOF
56906 /* confdefs.h.  */
56907 _ACEOF
56908 cat confdefs.h >>conftest.$ac_ext
56909 cat >>conftest.$ac_ext <<_ACEOF
56910 /* end confdefs.h.  */
56911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56913 #define $ac_func innocuous_$ac_func
56914
56915 /* System header to define __stub macros and hopefully few prototypes,
56916     which can conflict with char $ac_func (); below.
56917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56918     <limits.h> exists even on freestanding compilers.  */
56919
56920 #ifdef __STDC__
56921 # include <limits.h>
56922 #else
56923 # include <assert.h>
56924 #endif
56925
56926 #undef $ac_func
56927
56928 /* Override any gcc2 internal prototype to avoid an error.  */
56929 #ifdef __cplusplus
56930 extern "C"
56931 {
56932 #endif
56933 /* We use char because int might match the return type of a gcc2
56934    builtin and then its argument prototype would still apply.  */
56935 char $ac_func ();
56936 /* The GNU C library defines this for functions which it implements
56937     to always fail with ENOSYS.  Some functions are actually named
56938     something starting with __ and the normal name is an alias.  */
56939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56940 choke me
56941 #else
56942 char (*f) () = $ac_func;
56943 #endif
56944 #ifdef __cplusplus
56945 }
56946 #endif
56947
56948 int
56949 main ()
56950 {
56951 return f != $ac_func;
56952   ;
56953   return 0;
56954 }
56955 _ACEOF
56956 rm -f conftest.$ac_objext conftest$ac_exeext
56957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56958   (eval $ac_link) 2>conftest.er1
56959   ac_status=$?
56960   grep -v '^ *+' conftest.er1 >conftest.err
56961   rm -f conftest.er1
56962   cat conftest.err >&5
56963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56964   (exit $ac_status); } &&
56965          { ac_try='test -z "$ac_c_werror_flag"
56966                          || test ! -s conftest.err'
56967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56968   (eval $ac_try) 2>&5
56969   ac_status=$?
56970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56971   (exit $ac_status); }; } &&
56972          { ac_try='test -s conftest$ac_exeext'
56973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56974   (eval $ac_try) 2>&5
56975   ac_status=$?
56976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56977   (exit $ac_status); }; }; then
56978   eval "$as_ac_var=yes"
56979 else
56980   echo "$as_me: failed program was:" >&5
56981 sed 's/^/| /' conftest.$ac_ext >&5
56982
56983 eval "$as_ac_var=no"
56984 fi
56985 rm -f conftest.err conftest.$ac_objext \
56986       conftest$ac_exeext conftest.$ac_ext
56987 fi
56988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56990 if test `eval echo '${'$as_ac_var'}'` = yes; then
56991   cat >>confdefs.h <<_ACEOF
56992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56993 _ACEOF
56994
56995 fi
56996 done
56997
56998
56999   :
57000
57001
57002
57003
57004
57005
57006 for ac_header in sys/sysctl.h
57007 do
57008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
57009 echo "$as_me:$LINENO: checking for $ac_header" >&5
57010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57012   echo $ECHO_N "(cached) $ECHO_C" >&6
57013 else
57014   cat >conftest.$ac_ext <<_ACEOF
57015 /* confdefs.h.  */
57016 _ACEOF
57017 cat confdefs.h >>conftest.$ac_ext
57018 cat >>conftest.$ac_ext <<_ACEOF
57019 /* end confdefs.h.  */
57020 $ac_includes_default
57021      #if HAVE_SYS_PARAM_H
57022        #include <sys/param.h>
57023       #endif
57024
57025 #include <$ac_header>
57026 _ACEOF
57027 rm -f conftest.$ac_objext
57028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57029   (eval $ac_compile) 2>conftest.er1
57030   ac_status=$?
57031   grep -v '^ *+' conftest.er1 >conftest.err
57032   rm -f conftest.er1
57033   cat conftest.err >&5
57034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57035   (exit $ac_status); } &&
57036          { ac_try='test -z "$ac_c_werror_flag"
57037                          || test ! -s conftest.err'
57038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57039   (eval $ac_try) 2>&5
57040   ac_status=$?
57041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57042   (exit $ac_status); }; } &&
57043          { ac_try='test -s conftest.$ac_objext'
57044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57045   (eval $ac_try) 2>&5
57046   ac_status=$?
57047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57048   (exit $ac_status); }; }; then
57049   eval "$as_ac_Header=yes"
57050 else
57051   echo "$as_me: failed program was:" >&5
57052 sed 's/^/| /' conftest.$ac_ext >&5
57053
57054 eval "$as_ac_Header=no"
57055 fi
57056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57057 fi
57058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57061   cat >>confdefs.h <<_ACEOF
57062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57063 _ACEOF
57064
57065 fi
57066
57067 done
57068
57069   echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
57070 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
57071 if test "${gnulib_cv_have_boot_time+set}" = set; then
57072   echo $ECHO_N "(cached) $ECHO_C" >&6
57073 else
57074
57075       cat >conftest.$ac_ext <<_ACEOF
57076 /* confdefs.h.  */
57077 _ACEOF
57078 cat confdefs.h >>conftest.$ac_ext
57079 cat >>conftest.$ac_ext <<_ACEOF
57080 /* end confdefs.h.  */
57081 $ac_includes_default
57082 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
57083 # if HAVE_SYS_PARAM_H
57084 #  include <sys/param.h> /* needed for OpenBSD 3.0 */
57085 # endif
57086 # include <sys/sysctl.h>
57087 #endif
57088 #ifdef HAVE_UTMPX_H
57089 # include <utmpx.h>
57090 #else
57091 # include <utmp.h>
57092 #endif
57093
57094 int
57095 main ()
57096 {
57097
57098 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
57099 /* your system *does* have the infrastructure to determine boot time */
57100 #else
57101 please_tell_us_how_to_determine_boot_time_on_your_system
57102 #endif
57103
57104   ;
57105   return 0;
57106 }
57107 _ACEOF
57108 rm -f conftest.$ac_objext
57109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57110   (eval $ac_compile) 2>conftest.er1
57111   ac_status=$?
57112   grep -v '^ *+' conftest.er1 >conftest.err
57113   rm -f conftest.er1
57114   cat conftest.err >&5
57115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57116   (exit $ac_status); } &&
57117          { ac_try='test -z "$ac_c_werror_flag"
57118                          || test ! -s conftest.err'
57119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57120   (eval $ac_try) 2>&5
57121   ac_status=$?
57122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57123   (exit $ac_status); }; } &&
57124          { ac_try='test -s conftest.$ac_objext'
57125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57126   (eval $ac_try) 2>&5
57127   ac_status=$?
57128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57129   (exit $ac_status); }; }; then
57130   gnulib_cv_have_boot_time=yes
57131 else
57132   echo "$as_me: failed program was:" >&5
57133 sed 's/^/| /' conftest.$ac_ext >&5
57134
57135 gnulib_cv_have_boot_time=no
57136 fi
57137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57138
57139 fi
57140 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
57141 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
57142   if test $gnulib_cv_have_boot_time = yes; then
57143   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime\$(EXEEXT)"
57144   MAN="$MAN uptime.1"
57145 fi
57146
57147
57148
57149 echo "$as_me:$LINENO: checking POSIX termios" >&5
57150 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
57151 if test "${ac_cv_sys_posix_termios+set}" = set; then
57152   echo $ECHO_N "(cached) $ECHO_C" >&6
57153 else
57154   cat >conftest.$ac_ext <<_ACEOF
57155 /* confdefs.h.  */
57156 _ACEOF
57157 cat confdefs.h >>conftest.$ac_ext
57158 cat >>conftest.$ac_ext <<_ACEOF
57159 /* end confdefs.h.  */
57160 #include <sys/types.h>
57161 #include <unistd.h>
57162 #include <termios.h>
57163
57164 int
57165 main ()
57166 {
57167 /* SunOS 4.0.3 has termios.h but not the library calls.  */
57168    tcgetattr(0, 0);
57169   ;
57170   return 0;
57171 }
57172 _ACEOF
57173 rm -f conftest.$ac_objext conftest$ac_exeext
57174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57175   (eval $ac_link) 2>conftest.er1
57176   ac_status=$?
57177   grep -v '^ *+' conftest.er1 >conftest.err
57178   rm -f conftest.er1
57179   cat conftest.err >&5
57180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57181   (exit $ac_status); } &&
57182          { ac_try='test -z "$ac_c_werror_flag"
57183                          || test ! -s conftest.err'
57184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57185   (eval $ac_try) 2>&5
57186   ac_status=$?
57187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57188   (exit $ac_status); }; } &&
57189          { ac_try='test -s conftest$ac_exeext'
57190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57191   (eval $ac_try) 2>&5
57192   ac_status=$?
57193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57194   (exit $ac_status); }; }; then
57195   ac_cv_sys_posix_termios=yes
57196 else
57197   echo "$as_me: failed program was:" >&5
57198 sed 's/^/| /' conftest.$ac_ext >&5
57199
57200 ac_cv_sys_posix_termios=no
57201 fi
57202 rm -f conftest.err conftest.$ac_objext \
57203       conftest$ac_exeext conftest.$ac_ext
57204 fi
57205 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
57206 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
57207
57208
57209  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
57210 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
57211 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
57212   echo $ECHO_N "(cached) $ECHO_C" >&6
57213 else
57214   jm_cv_sys_tiocgwinsz_needs_termios_h=no
57215
57216    if test $ac_cv_sys_posix_termios = yes; then
57217      cat >conftest.$ac_ext <<_ACEOF
57218 /* confdefs.h.  */
57219 _ACEOF
57220 cat confdefs.h >>conftest.$ac_ext
57221 cat >>conftest.$ac_ext <<_ACEOF
57222 /* end confdefs.h.  */
57223 #include <sys/types.h>
57224 #      include <termios.h>
57225 #      ifdef TIOCGWINSZ
57226          yes
57227 #      endif
57228
57229 _ACEOF
57230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57231   $EGREP "yes" >/dev/null 2>&1; then
57232   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
57233 fi
57234 rm -f conftest*
57235
57236    fi
57237
57238 fi
57239 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
57240 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
57241
57242
57243  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
57244 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
57245 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
57246   echo $ECHO_N "(cached) $ECHO_C" >&6
57247 else
57248   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
57249
57250   if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
57251     cat >conftest.$ac_ext <<_ACEOF
57252 /* confdefs.h.  */
57253 _ACEOF
57254 cat confdefs.h >>conftest.$ac_ext
57255 cat >>conftest.$ac_ext <<_ACEOF
57256 /* end confdefs.h.  */
57257 #include <sys/types.h>
57258 #     include <sys/ioctl.h>
57259 #     ifdef TIOCGWINSZ
57260         yes
57261 #     endif
57262
57263 _ACEOF
57264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57265   $EGREP "yes" >/dev/null 2>&1; then
57266   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
57267 fi
57268 rm -f conftest*
57269
57270   fi
57271
57272 fi
57273 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
57274 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
57275   if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
57276
57277 cat >>confdefs.h <<\_ACEOF
57278 #define GWINSZ_IN_SYS_IOCTL 1
57279 _ACEOF
57280
57281   fi
57282
57283
57284 if test $ac_cv_sys_posix_termios = yes; then
57285   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty\$(EXEEXT)" MAN="$MAN stty.1"
57286
57287   echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
57288 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
57289   if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
57290   echo $ECHO_N "(cached) $ECHO_C" >&6
57291 else
57292   cat >conftest.$ac_ext <<_ACEOF
57293 /* confdefs.h.  */
57294 _ACEOF
57295 cat confdefs.h >>conftest.$ac_ext
57296 cat >>conftest.$ac_ext <<_ACEOF
57297 /* end confdefs.h.  */
57298 #include <termios.h>
57299 #ifdef IUCLC
57300 yes
57301 #endif
57302 _ACEOF
57303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57304   $EGREP "yes" >/dev/null 2>&1; then
57305   su_cv_sys_termios_needs_xopen_source=no
57306 else
57307   cat >conftest.$ac_ext <<_ACEOF
57308 /* confdefs.h.  */
57309 _ACEOF
57310 cat confdefs.h >>conftest.$ac_ext
57311 cat >>conftest.$ac_ext <<_ACEOF
57312 /* end confdefs.h.  */
57313 #define _XOPEN_SOURCE
57314 #include <termios.h>
57315 #ifdef IUCLC
57316 yes
57317 #endif
57318 _ACEOF
57319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57320   $EGREP "yes" >/dev/null 2>&1; then
57321   su_cv_sys_termios_needs_xopen_source=yes
57322 else
57323   su_cv_sys_termios_needs_xopen_source=no
57324 fi
57325 rm -f conftest*
57326
57327 fi
57328 rm -f conftest*
57329
57330 fi
57331
57332   echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
57333 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
57334   test $su_cv_sys_termios_needs_xopen_source = yes &&
57335
57336 cat >>confdefs.h <<\_ACEOF
57337 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
57338 _ACEOF
57339
57340
57341   echo "$as_me:$LINENO: checking c_line in struct termios" >&5
57342 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
57343   if test "${su_cv_sys_c_line_in_termios+set}" = set; then
57344   echo $ECHO_N "(cached) $ECHO_C" >&6
57345 else
57346   cat >conftest.$ac_ext <<_ACEOF
57347 /* confdefs.h.  */
57348 _ACEOF
57349 cat confdefs.h >>conftest.$ac_ext
57350 cat >>conftest.$ac_ext <<_ACEOF
57351 /* end confdefs.h.  */
57352 #if TERMIOS_NEEDS_XOPEN_SOURCE
57353 #define _XOPEN_SOURCE
57354 #endif
57355 #include <sys/types.h>
57356 #include <termios.h>
57357 int
57358 main ()
57359 {
57360 struct termios t; t.c_line;
57361   ;
57362   return 0;
57363 }
57364 _ACEOF
57365 rm -f conftest.$ac_objext conftest$ac_exeext
57366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57367   (eval $ac_link) 2>conftest.er1
57368   ac_status=$?
57369   grep -v '^ *+' conftest.er1 >conftest.err
57370   rm -f conftest.er1
57371   cat conftest.err >&5
57372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57373   (exit $ac_status); } &&
57374          { ac_try='test -z "$ac_c_werror_flag"
57375                          || test ! -s conftest.err'
57376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57377   (eval $ac_try) 2>&5
57378   ac_status=$?
57379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57380   (exit $ac_status); }; } &&
57381          { ac_try='test -s conftest$ac_exeext'
57382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57383   (eval $ac_try) 2>&5
57384   ac_status=$?
57385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57386   (exit $ac_status); }; }; then
57387   su_cv_sys_c_line_in_termios=yes
57388 else
57389   echo "$as_me: failed program was:" >&5
57390 sed 's/^/| /' conftest.$ac_ext >&5
57391
57392 su_cv_sys_c_line_in_termios=no
57393 fi
57394 rm -f conftest.err conftest.$ac_objext \
57395       conftest$ac_exeext conftest.$ac_ext
57396 fi
57397
57398   echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
57399 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
57400   test $su_cv_sys_c_line_in_termios = yes \
57401     &&
57402 cat >>confdefs.h <<\_ACEOF
57403 #define HAVE_C_LINE 1
57404 _ACEOF
57405
57406 fi
57407
57408 # FIXME: note that this macro appears above, too.
57409 # I'm leaving it here for now.  This whole thing needs to be modernized...
57410
57411    echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
57412 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
57413 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
57414   echo $ECHO_N "(cached) $ECHO_C" >&6
57415 else
57416   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
57417       if test $ac_cv_sys_posix_termios = yes; then
57418         cat >conftest.$ac_ext <<_ACEOF
57419 /* confdefs.h.  */
57420 _ACEOF
57421 cat confdefs.h >>conftest.$ac_ext
57422 cat >>conftest.$ac_ext <<_ACEOF
57423 /* end confdefs.h.  */
57424 #include <termios.h>
57425           struct winsize x;
57426 int
57427 main ()
57428 {
57429 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
57430   ;
57431   return 0;
57432 }
57433 _ACEOF
57434 rm -f conftest.$ac_objext
57435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57436   (eval $ac_compile) 2>conftest.er1
57437   ac_status=$?
57438   grep -v '^ *+' conftest.er1 >conftest.err
57439   rm -f conftest.er1
57440   cat conftest.err >&5
57441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57442   (exit $ac_status); } &&
57443          { ac_try='test -z "$ac_c_werror_flag"
57444                          || test ! -s conftest.err'
57445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57446   (eval $ac_try) 2>&5
57447   ac_status=$?
57448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57449   (exit $ac_status); }; } &&
57450          { ac_try='test -s conftest.$ac_objext'
57451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57452   (eval $ac_try) 2>&5
57453   ac_status=$?
57454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57455   (exit $ac_status); }; }; then
57456   :
57457 else
57458   echo "$as_me: failed program was:" >&5
57459 sed 's/^/| /' conftest.$ac_ext >&5
57460
57461 fi
57462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57463       fi
57464       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
57465         cat >conftest.$ac_ext <<_ACEOF
57466 /* confdefs.h.  */
57467 _ACEOF
57468 cat confdefs.h >>conftest.$ac_ext
57469 cat >>conftest.$ac_ext <<_ACEOF
57470 /* end confdefs.h.  */
57471 #include <sys/ptem.h>
57472 int
57473 main ()
57474 {
57475 struct winsize x;
57476   ;
57477   return 0;
57478 }
57479 _ACEOF
57480 rm -f conftest.$ac_objext
57481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57482   (eval $ac_compile) 2>conftest.er1
57483   ac_status=$?
57484   grep -v '^ *+' conftest.er1 >conftest.err
57485   rm -f conftest.er1
57486   cat conftest.err >&5
57487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57488   (exit $ac_status); } &&
57489          { ac_try='test -z "$ac_c_werror_flag"
57490                          || test ! -s conftest.err'
57491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57492   (eval $ac_try) 2>&5
57493   ac_status=$?
57494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57495   (exit $ac_status); }; } &&
57496          { ac_try='test -s conftest.$ac_objext'
57497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57498   (eval $ac_try) 2>&5
57499   ac_status=$?
57500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57501   (exit $ac_status); }; }; then
57502   :
57503 else
57504   echo "$as_me: failed program was:" >&5
57505 sed 's/^/| /' conftest.$ac_ext >&5
57506
57507 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
57508 fi
57509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57510       fi
57511 fi
57512 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
57513 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
57514    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
57515
57516 cat >>confdefs.h <<\_ACEOF
57517 #define WINSIZE_IN_PTEM 1
57518 _ACEOF
57519
57520    fi
57521
57522
57523  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
57524 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
57525 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
57526   echo $ECHO_N "(cached) $ECHO_C" >&6
57527 else
57528   jm_cv_sys_tiocgwinsz_needs_termios_h=no
57529
57530    if test $ac_cv_sys_posix_termios = yes; then
57531      cat >conftest.$ac_ext <<_ACEOF
57532 /* confdefs.h.  */
57533 _ACEOF
57534 cat confdefs.h >>conftest.$ac_ext
57535 cat >>conftest.$ac_ext <<_ACEOF
57536 /* end confdefs.h.  */
57537 #include <sys/types.h>
57538 #      include <termios.h>
57539 #      ifdef TIOCGWINSZ
57540          yes
57541 #      endif
57542
57543 _ACEOF
57544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57545   $EGREP "yes" >/dev/null 2>&1; then
57546   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
57547 fi
57548 rm -f conftest*
57549
57550    fi
57551
57552 fi
57553 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
57554 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
57555
57556
57557 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
57558    test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
57559   echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
57560 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
57561   if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
57562   echo $ECHO_N "(cached) $ECHO_C" >&6
57563 else
57564   cat >conftest.$ac_ext <<_ACEOF
57565 /* confdefs.h.  */
57566 _ACEOF
57567 cat confdefs.h >>conftest.$ac_ext
57568 cat >>conftest.$ac_ext <<_ACEOF
57569 /* end confdefs.h.  */
57570 #include <sys/types.h>
57571 #ifdef WINSIZE_IN_PTEM
57572 # include <sys/stream.h>
57573 # include <sys/ptem.h>
57574 #endif
57575 #include <sys/ioctl.h>
57576 #include <sys/tty.h>
57577 #include <sys/pty.h>
57578 int
57579 main ()
57580 {
57581 int x = TIOCGWINSZ;
57582   ;
57583   return 0;
57584 }
57585 _ACEOF
57586 rm -f conftest.$ac_objext conftest$ac_exeext
57587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57588   (eval $ac_link) 2>conftest.er1
57589   ac_status=$?
57590   grep -v '^ *+' conftest.er1 >conftest.err
57591   rm -f conftest.er1
57592   cat conftest.err >&5
57593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57594   (exit $ac_status); } &&
57595          { ac_try='test -z "$ac_c_werror_flag"
57596                          || test ! -s conftest.err'
57597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57598   (eval $ac_try) 2>&5
57599   ac_status=$?
57600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57601   (exit $ac_status); }; } &&
57602          { ac_try='test -s conftest$ac_exeext'
57603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57604   (eval $ac_try) 2>&5
57605   ac_status=$?
57606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57607   (exit $ac_status); }; }; then
57608   su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
57609 else
57610   echo "$as_me: failed program was:" >&5
57611 sed 's/^/| /' conftest.$ac_ext >&5
57612
57613 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
57614 fi
57615 rm -f conftest.err conftest.$ac_objext \
57616       conftest$ac_exeext conftest.$ac_ext
57617 fi
57618
57619   echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
57620 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
57621
57622   test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
57623       &&
57624 cat >>confdefs.h <<\_ACEOF
57625 #define GWINSZ_IN_SYS_PTY 1
57626 _ACEOF
57627
57628 fi
57629
57630 # For src/kill.c.
57631 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
57632 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
57633 if test "${ac_cv_have_decl_strsignal+set}" = set; then
57634   echo $ECHO_N "(cached) $ECHO_C" >&6
57635 else
57636   cat >conftest.$ac_ext <<_ACEOF
57637 /* confdefs.h.  */
57638 _ACEOF
57639 cat confdefs.h >>conftest.$ac_ext
57640 cat >>conftest.$ac_ext <<_ACEOF
57641 /* end confdefs.h.  */
57642 $ac_includes_default
57643 #include <signal.h>
57644
57645 int
57646 main ()
57647 {
57648 #ifndef strsignal
57649   char *p = (char *) strsignal;
57650 #endif
57651
57652   ;
57653   return 0;
57654 }
57655 _ACEOF
57656 rm -f conftest.$ac_objext
57657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57658   (eval $ac_compile) 2>conftest.er1
57659   ac_status=$?
57660   grep -v '^ *+' conftest.er1 >conftest.err
57661   rm -f conftest.er1
57662   cat conftest.err >&5
57663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57664   (exit $ac_status); } &&
57665          { ac_try='test -z "$ac_c_werror_flag"
57666                          || test ! -s conftest.err'
57667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57668   (eval $ac_try) 2>&5
57669   ac_status=$?
57670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57671   (exit $ac_status); }; } &&
57672          { ac_try='test -s conftest.$ac_objext'
57673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57674   (eval $ac_try) 2>&5
57675   ac_status=$?
57676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57677   (exit $ac_status); }; }; then
57678   ac_cv_have_decl_strsignal=yes
57679 else
57680   echo "$as_me: failed program was:" >&5
57681 sed 's/^/| /' conftest.$ac_ext >&5
57682
57683 ac_cv_have_decl_strsignal=no
57684 fi
57685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57686 fi
57687 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
57688 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
57689 if test $ac_cv_have_decl_strsignal = yes; then
57690
57691 cat >>confdefs.h <<_ACEOF
57692 #define HAVE_DECL_STRSIGNAL 1
57693 _ACEOF
57694
57695
57696 else
57697   cat >>confdefs.h <<_ACEOF
57698 #define HAVE_DECL_STRSIGNAL 0
57699 _ACEOF
57700
57701
57702 fi
57703 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
57704 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
57705 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
57706   echo $ECHO_N "(cached) $ECHO_C" >&6
57707 else
57708   cat >conftest.$ac_ext <<_ACEOF
57709 /* confdefs.h.  */
57710 _ACEOF
57711 cat confdefs.h >>conftest.$ac_ext
57712 cat >>conftest.$ac_ext <<_ACEOF
57713 /* end confdefs.h.  */
57714 $ac_includes_default
57715 #include <signal.h>
57716
57717 int
57718 main ()
57719 {
57720 #ifndef sys_siglist
57721   char *p = (char *) sys_siglist;
57722 #endif
57723
57724   ;
57725   return 0;
57726 }
57727 _ACEOF
57728 rm -f conftest.$ac_objext
57729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57730   (eval $ac_compile) 2>conftest.er1
57731   ac_status=$?
57732   grep -v '^ *+' conftest.er1 >conftest.err
57733   rm -f conftest.er1
57734   cat conftest.err >&5
57735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57736   (exit $ac_status); } &&
57737          { ac_try='test -z "$ac_c_werror_flag"
57738                          || test ! -s conftest.err'
57739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57740   (eval $ac_try) 2>&5
57741   ac_status=$?
57742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57743   (exit $ac_status); }; } &&
57744          { ac_try='test -s conftest.$ac_objext'
57745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57746   (eval $ac_try) 2>&5
57747   ac_status=$?
57748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57749   (exit $ac_status); }; }; then
57750   ac_cv_have_decl_sys_siglist=yes
57751 else
57752   echo "$as_me: failed program was:" >&5
57753 sed 's/^/| /' conftest.$ac_ext >&5
57754
57755 ac_cv_have_decl_sys_siglist=no
57756 fi
57757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57758 fi
57759 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
57760 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
57761 if test $ac_cv_have_decl_sys_siglist = yes; then
57762
57763 cat >>confdefs.h <<_ACEOF
57764 #define HAVE_DECL_SYS_SIGLIST 1
57765 _ACEOF
57766
57767
57768 else
57769   cat >>confdefs.h <<_ACEOF
57770 #define HAVE_DECL_SYS_SIGLIST 0
57771 _ACEOF
57772
57773
57774 fi
57775 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
57776 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
57777 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
57778   echo $ECHO_N "(cached) $ECHO_C" >&6
57779 else
57780   cat >conftest.$ac_ext <<_ACEOF
57781 /* confdefs.h.  */
57782 _ACEOF
57783 cat confdefs.h >>conftest.$ac_ext
57784 cat >>conftest.$ac_ext <<_ACEOF
57785 /* end confdefs.h.  */
57786 $ac_includes_default
57787 #include <signal.h>
57788
57789 int
57790 main ()
57791 {
57792 #ifndef _sys_siglist
57793   char *p = (char *) _sys_siglist;
57794 #endif
57795
57796   ;
57797   return 0;
57798 }
57799 _ACEOF
57800 rm -f conftest.$ac_objext
57801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57802   (eval $ac_compile) 2>conftest.er1
57803   ac_status=$?
57804   grep -v '^ *+' conftest.er1 >conftest.err
57805   rm -f conftest.er1
57806   cat conftest.err >&5
57807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57808   (exit $ac_status); } &&
57809          { ac_try='test -z "$ac_c_werror_flag"
57810                          || test ! -s conftest.err'
57811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57812   (eval $ac_try) 2>&5
57813   ac_status=$?
57814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57815   (exit $ac_status); }; } &&
57816          { ac_try='test -s conftest.$ac_objext'
57817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57818   (eval $ac_try) 2>&5
57819   ac_status=$?
57820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57821   (exit $ac_status); }; }; then
57822   ac_cv_have_decl__sys_siglist=yes
57823 else
57824   echo "$as_me: failed program was:" >&5
57825 sed 's/^/| /' conftest.$ac_ext >&5
57826
57827 ac_cv_have_decl__sys_siglist=no
57828 fi
57829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57830 fi
57831 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
57832 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
57833 if test $ac_cv_have_decl__sys_siglist = yes; then
57834
57835 cat >>confdefs.h <<_ACEOF
57836 #define HAVE_DECL__SYS_SIGLIST 1
57837 _ACEOF
57838
57839
57840 else
57841   cat >>confdefs.h <<_ACEOF
57842 #define HAVE_DECL__SYS_SIGLIST 0
57843 _ACEOF
57844
57845
57846 fi
57847 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
57848 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
57849 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
57850   echo $ECHO_N "(cached) $ECHO_C" >&6
57851 else
57852   cat >conftest.$ac_ext <<_ACEOF
57853 /* confdefs.h.  */
57854 _ACEOF
57855 cat confdefs.h >>conftest.$ac_ext
57856 cat >>conftest.$ac_ext <<_ACEOF
57857 /* end confdefs.h.  */
57858 $ac_includes_default
57859 #include <signal.h>
57860
57861 int
57862 main ()
57863 {
57864 #ifndef __sys_siglist
57865   char *p = (char *) __sys_siglist;
57866 #endif
57867
57868   ;
57869   return 0;
57870 }
57871 _ACEOF
57872 rm -f conftest.$ac_objext
57873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57874   (eval $ac_compile) 2>conftest.er1
57875   ac_status=$?
57876   grep -v '^ *+' conftest.er1 >conftest.err
57877   rm -f conftest.er1
57878   cat conftest.err >&5
57879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57880   (exit $ac_status); } &&
57881          { ac_try='test -z "$ac_c_werror_flag"
57882                          || test ! -s conftest.err'
57883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57884   (eval $ac_try) 2>&5
57885   ac_status=$?
57886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57887   (exit $ac_status); }; } &&
57888          { ac_try='test -s conftest.$ac_objext'
57889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57890   (eval $ac_try) 2>&5
57891   ac_status=$?
57892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57893   (exit $ac_status); }; }; then
57894   ac_cv_have_decl___sys_siglist=yes
57895 else
57896   echo "$as_me: failed program was:" >&5
57897 sed 's/^/| /' conftest.$ac_ext >&5
57898
57899 ac_cv_have_decl___sys_siglist=no
57900 fi
57901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57902 fi
57903 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
57904 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
57905 if test $ac_cv_have_decl___sys_siglist = yes; then
57906
57907 cat >>confdefs.h <<_ACEOF
57908 #define HAVE_DECL___SYS_SIGLIST 1
57909 _ACEOF
57910
57911
57912 else
57913   cat >>confdefs.h <<_ACEOF
57914 #define HAVE_DECL___SYS_SIGLIST 0
57915 _ACEOF
57916
57917
57918 fi
57919
57920
57921
57922 # For src/kill.c and src/printf.c.
57923 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
57924 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
57925 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
57926   echo $ECHO_N "(cached) $ECHO_C" >&6
57927 else
57928   cat >conftest.$ac_ext <<_ACEOF
57929 /* confdefs.h.  */
57930 _ACEOF
57931 cat confdefs.h >>conftest.$ac_ext
57932 cat >>conftest.$ac_ext <<_ACEOF
57933 /* end confdefs.h.  */
57934 $ac_includes_default
57935 int
57936 main ()
57937 {
57938 #ifndef strtoimax
57939   char *p = (char *) strtoimax;
57940 #endif
57941
57942   ;
57943   return 0;
57944 }
57945 _ACEOF
57946 rm -f conftest.$ac_objext
57947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57948   (eval $ac_compile) 2>conftest.er1
57949   ac_status=$?
57950   grep -v '^ *+' conftest.er1 >conftest.err
57951   rm -f conftest.er1
57952   cat conftest.err >&5
57953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57954   (exit $ac_status); } &&
57955          { ac_try='test -z "$ac_c_werror_flag"
57956                          || test ! -s conftest.err'
57957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57958   (eval $ac_try) 2>&5
57959   ac_status=$?
57960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57961   (exit $ac_status); }; } &&
57962          { ac_try='test -s conftest.$ac_objext'
57963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57964   (eval $ac_try) 2>&5
57965   ac_status=$?
57966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57967   (exit $ac_status); }; }; then
57968   ac_cv_have_decl_strtoimax=yes
57969 else
57970   echo "$as_me: failed program was:" >&5
57971 sed 's/^/| /' conftest.$ac_ext >&5
57972
57973 ac_cv_have_decl_strtoimax=no
57974 fi
57975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57976 fi
57977 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
57978 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
57979 if test $ac_cv_have_decl_strtoimax = yes; then
57980
57981 cat >>confdefs.h <<_ACEOF
57982 #define HAVE_DECL_STRTOIMAX 1
57983 _ACEOF
57984
57985
57986 else
57987   cat >>confdefs.h <<_ACEOF
57988 #define HAVE_DECL_STRTOIMAX 0
57989 _ACEOF
57990
57991
57992 fi
57993 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
57994 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
57995 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
57996   echo $ECHO_N "(cached) $ECHO_C" >&6
57997 else
57998   cat >conftest.$ac_ext <<_ACEOF
57999 /* confdefs.h.  */
58000 _ACEOF
58001 cat confdefs.h >>conftest.$ac_ext
58002 cat >>conftest.$ac_ext <<_ACEOF
58003 /* end confdefs.h.  */
58004 $ac_includes_default
58005 int
58006 main ()
58007 {
58008 #ifndef strtoumax
58009   char *p = (char *) strtoumax;
58010 #endif
58011
58012   ;
58013   return 0;
58014 }
58015 _ACEOF
58016 rm -f conftest.$ac_objext
58017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58018   (eval $ac_compile) 2>conftest.er1
58019   ac_status=$?
58020   grep -v '^ *+' conftest.er1 >conftest.err
58021   rm -f conftest.er1
58022   cat conftest.err >&5
58023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58024   (exit $ac_status); } &&
58025          { ac_try='test -z "$ac_c_werror_flag"
58026                          || test ! -s conftest.err'
58027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58028   (eval $ac_try) 2>&5
58029   ac_status=$?
58030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58031   (exit $ac_status); }; } &&
58032          { ac_try='test -s conftest.$ac_objext'
58033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58034   (eval $ac_try) 2>&5
58035   ac_status=$?
58036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58037   (exit $ac_status); }; }; then
58038   ac_cv_have_decl_strtoumax=yes
58039 else
58040   echo "$as_me: failed program was:" >&5
58041 sed 's/^/| /' conftest.$ac_ext >&5
58042
58043 ac_cv_have_decl_strtoumax=no
58044 fi
58045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58046 fi
58047 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
58048 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
58049 if test $ac_cv_have_decl_strtoumax = yes; then
58050
58051 cat >>confdefs.h <<_ACEOF
58052 #define HAVE_DECL_STRTOUMAX 1
58053 _ACEOF
58054
58055
58056 else
58057   cat >>confdefs.h <<_ACEOF
58058 #define HAVE_DECL_STRTOUMAX 0
58059 _ACEOF
58060
58061
58062 fi
58063
58064
58065
58066
58067
58068   # Check for libypsec.a on Dolphin M88K machines.
58069
58070 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
58071 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
58072 if test "${ac_cv_lib_ypsec_main+set}" = set; then
58073   echo $ECHO_N "(cached) $ECHO_C" >&6
58074 else
58075   ac_check_lib_save_LIBS=$LIBS
58076 LIBS="-lypsec  $LIBS"
58077 cat >conftest.$ac_ext <<_ACEOF
58078 /* confdefs.h.  */
58079 _ACEOF
58080 cat confdefs.h >>conftest.$ac_ext
58081 cat >>conftest.$ac_ext <<_ACEOF
58082 /* end confdefs.h.  */
58083
58084
58085 int
58086 main ()
58087 {
58088 main ();
58089   ;
58090   return 0;
58091 }
58092 _ACEOF
58093 rm -f conftest.$ac_objext conftest$ac_exeext
58094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58095   (eval $ac_link) 2>conftest.er1
58096   ac_status=$?
58097   grep -v '^ *+' conftest.er1 >conftest.err
58098   rm -f conftest.er1
58099   cat conftest.err >&5
58100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58101   (exit $ac_status); } &&
58102          { ac_try='test -z "$ac_c_werror_flag"
58103                          || test ! -s conftest.err'
58104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58105   (eval $ac_try) 2>&5
58106   ac_status=$?
58107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58108   (exit $ac_status); }; } &&
58109          { ac_try='test -s conftest$ac_exeext'
58110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58111   (eval $ac_try) 2>&5
58112   ac_status=$?
58113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58114   (exit $ac_status); }; }; then
58115   ac_cv_lib_ypsec_main=yes
58116 else
58117   echo "$as_me: failed program was:" >&5
58118 sed 's/^/| /' conftest.$ac_ext >&5
58119
58120 ac_cv_lib_ypsec_main=no
58121 fi
58122 rm -f conftest.err conftest.$ac_objext \
58123       conftest$ac_exeext conftest.$ac_ext
58124 LIBS=$ac_check_lib_save_LIBS
58125 fi
58126 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
58127 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
58128 if test $ac_cv_lib_ypsec_main = yes; then
58129   cat >>confdefs.h <<_ACEOF
58130 #define HAVE_LIBYPSEC 1
58131 _ACEOF
58132
58133   LIBS="-lypsec $LIBS"
58134
58135 fi
58136
58137
58138   # m88k running dgux 5.4 needs this
58139
58140 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
58141 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
58142 if test "${ac_cv_lib_ldgc_main+set}" = set; then
58143   echo $ECHO_N "(cached) $ECHO_C" >&6
58144 else
58145   ac_check_lib_save_LIBS=$LIBS
58146 LIBS="-lldgc  $LIBS"
58147 cat >conftest.$ac_ext <<_ACEOF
58148 /* confdefs.h.  */
58149 _ACEOF
58150 cat confdefs.h >>conftest.$ac_ext
58151 cat >>conftest.$ac_ext <<_ACEOF
58152 /* end confdefs.h.  */
58153
58154
58155 int
58156 main ()
58157 {
58158 main ();
58159   ;
58160   return 0;
58161 }
58162 _ACEOF
58163 rm -f conftest.$ac_objext conftest$ac_exeext
58164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58165   (eval $ac_link) 2>conftest.er1
58166   ac_status=$?
58167   grep -v '^ *+' conftest.er1 >conftest.err
58168   rm -f conftest.er1
58169   cat conftest.err >&5
58170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58171   (exit $ac_status); } &&
58172          { ac_try='test -z "$ac_c_werror_flag"
58173                          || test ! -s conftest.err'
58174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58175   (eval $ac_try) 2>&5
58176   ac_status=$?
58177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58178   (exit $ac_status); }; } &&
58179          { ac_try='test -s conftest$ac_exeext'
58180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58181   (eval $ac_try) 2>&5
58182   ac_status=$?
58183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58184   (exit $ac_status); }; }; then
58185   ac_cv_lib_ldgc_main=yes
58186 else
58187   echo "$as_me: failed program was:" >&5
58188 sed 's/^/| /' conftest.$ac_ext >&5
58189
58190 ac_cv_lib_ldgc_main=no
58191 fi
58192 rm -f conftest.err conftest.$ac_objext \
58193       conftest$ac_exeext conftest.$ac_ext
58194 LIBS=$ac_check_lib_save_LIBS
58195 fi
58196 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
58197 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
58198 if test $ac_cv_lib_ldgc_main = yes; then
58199   cat >>confdefs.h <<_ACEOF
58200 #define HAVE_LIBLDGC 1
58201 _ACEOF
58202
58203   LIBS="-lldgc $LIBS"
58204
58205 fi
58206
58207
58208   # Some programs need to link with -lm.  printf does if it uses
58209   # lib/strtod.c which uses pow.  And seq uses the math functions,
58210   # floor, modf, rint.  And factor uses sqrt.  And sleep uses fesetround.
58211
58212   # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
58213   # Check for these math functions used by seq.
58214   ac_su_saved_lib="$LIBS"
58215   LIBS="$LIBS -lm"
58216
58217
58218
58219 for ac_func in floor modf rint
58220 do
58221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58222 echo "$as_me:$LINENO: checking for $ac_func" >&5
58223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58224 if eval "test \"\${$as_ac_var+set}\" = set"; then
58225   echo $ECHO_N "(cached) $ECHO_C" >&6
58226 else
58227   cat >conftest.$ac_ext <<_ACEOF
58228 /* confdefs.h.  */
58229 _ACEOF
58230 cat confdefs.h >>conftest.$ac_ext
58231 cat >>conftest.$ac_ext <<_ACEOF
58232 /* end confdefs.h.  */
58233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58234    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58235 #define $ac_func innocuous_$ac_func
58236
58237 /* System header to define __stub macros and hopefully few prototypes,
58238     which can conflict with char $ac_func (); below.
58239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58240     <limits.h> exists even on freestanding compilers.  */
58241
58242 #ifdef __STDC__
58243 # include <limits.h>
58244 #else
58245 # include <assert.h>
58246 #endif
58247
58248 #undef $ac_func
58249
58250 /* Override any gcc2 internal prototype to avoid an error.  */
58251 #ifdef __cplusplus
58252 extern "C"
58253 {
58254 #endif
58255 /* We use char because int might match the return type of a gcc2
58256    builtin and then its argument prototype would still apply.  */
58257 char $ac_func ();
58258 /* The GNU C library defines this for functions which it implements
58259     to always fail with ENOSYS.  Some functions are actually named
58260     something starting with __ and the normal name is an alias.  */
58261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58262 choke me
58263 #else
58264 char (*f) () = $ac_func;
58265 #endif
58266 #ifdef __cplusplus
58267 }
58268 #endif
58269
58270 int
58271 main ()
58272 {
58273 return f != $ac_func;
58274   ;
58275   return 0;
58276 }
58277 _ACEOF
58278 rm -f conftest.$ac_objext conftest$ac_exeext
58279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58280   (eval $ac_link) 2>conftest.er1
58281   ac_status=$?
58282   grep -v '^ *+' conftest.er1 >conftest.err
58283   rm -f conftest.er1
58284   cat conftest.err >&5
58285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58286   (exit $ac_status); } &&
58287          { ac_try='test -z "$ac_c_werror_flag"
58288                          || test ! -s conftest.err'
58289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58290   (eval $ac_try) 2>&5
58291   ac_status=$?
58292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58293   (exit $ac_status); }; } &&
58294          { ac_try='test -s conftest$ac_exeext'
58295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58296   (eval $ac_try) 2>&5
58297   ac_status=$?
58298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58299   (exit $ac_status); }; }; then
58300   eval "$as_ac_var=yes"
58301 else
58302   echo "$as_me: failed program was:" >&5
58303 sed 's/^/| /' conftest.$ac_ext >&5
58304
58305 eval "$as_ac_var=no"
58306 fi
58307 rm -f conftest.err conftest.$ac_objext \
58308       conftest$ac_exeext conftest.$ac_ext
58309 fi
58310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58312 if test `eval echo '${'$as_ac_var'}'` = yes; then
58313   cat >>confdefs.h <<_ACEOF
58314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58315 _ACEOF
58316
58317 fi
58318 done
58319
58320   LIBS="$ac_su_saved_lib"
58321
58322
58323
58324 for ac_func in sqrt
58325 do
58326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58327 echo "$as_me:$LINENO: checking for $ac_func" >&5
58328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58329 if eval "test \"\${$as_ac_var+set}\" = set"; then
58330   echo $ECHO_N "(cached) $ECHO_C" >&6
58331 else
58332   cat >conftest.$ac_ext <<_ACEOF
58333 /* confdefs.h.  */
58334 _ACEOF
58335 cat confdefs.h >>conftest.$ac_ext
58336 cat >>conftest.$ac_ext <<_ACEOF
58337 /* end confdefs.h.  */
58338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58339    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58340 #define $ac_func innocuous_$ac_func
58341
58342 /* System header to define __stub macros and hopefully few prototypes,
58343     which can conflict with char $ac_func (); below.
58344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58345     <limits.h> exists even on freestanding compilers.  */
58346
58347 #ifdef __STDC__
58348 # include <limits.h>
58349 #else
58350 # include <assert.h>
58351 #endif
58352
58353 #undef $ac_func
58354
58355 /* Override any gcc2 internal prototype to avoid an error.  */
58356 #ifdef __cplusplus
58357 extern "C"
58358 {
58359 #endif
58360 /* We use char because int might match the return type of a gcc2
58361    builtin and then its argument prototype would still apply.  */
58362 char $ac_func ();
58363 /* The GNU C library defines this for functions which it implements
58364     to always fail with ENOSYS.  Some functions are actually named
58365     something starting with __ and the normal name is an alias.  */
58366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58367 choke me
58368 #else
58369 char (*f) () = $ac_func;
58370 #endif
58371 #ifdef __cplusplus
58372 }
58373 #endif
58374
58375 int
58376 main ()
58377 {
58378 return f != $ac_func;
58379   ;
58380   return 0;
58381 }
58382 _ACEOF
58383 rm -f conftest.$ac_objext conftest$ac_exeext
58384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58385   (eval $ac_link) 2>conftest.er1
58386   ac_status=$?
58387   grep -v '^ *+' conftest.er1 >conftest.err
58388   rm -f conftest.er1
58389   cat conftest.err >&5
58390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58391   (exit $ac_status); } &&
58392          { ac_try='test -z "$ac_c_werror_flag"
58393                          || test ! -s conftest.err'
58394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58395   (eval $ac_try) 2>&5
58396   ac_status=$?
58397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58398   (exit $ac_status); }; } &&
58399          { ac_try='test -s conftest$ac_exeext'
58400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58401   (eval $ac_try) 2>&5
58402   ac_status=$?
58403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58404   (exit $ac_status); }; }; then
58405   eval "$as_ac_var=yes"
58406 else
58407   echo "$as_me: failed program was:" >&5
58408 sed 's/^/| /' conftest.$ac_ext >&5
58409
58410 eval "$as_ac_var=no"
58411 fi
58412 rm -f conftest.err conftest.$ac_objext \
58413       conftest$ac_exeext conftest.$ac_ext
58414 fi
58415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58417 if test `eval echo '${'$as_ac_var'}'` = yes; then
58418   cat >>confdefs.h <<_ACEOF
58419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58420 _ACEOF
58421
58422 fi
58423 done
58424
58425   if test $ac_cv_func_sqrt = no; then
58426     echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
58427 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
58428 if test "${ac_cv_lib_m_sqrt+set}" = set; then
58429   echo $ECHO_N "(cached) $ECHO_C" >&6
58430 else
58431   ac_check_lib_save_LIBS=$LIBS
58432 LIBS="-lm  $LIBS"
58433 cat >conftest.$ac_ext <<_ACEOF
58434 /* confdefs.h.  */
58435 _ACEOF
58436 cat confdefs.h >>conftest.$ac_ext
58437 cat >>conftest.$ac_ext <<_ACEOF
58438 /* end confdefs.h.  */
58439
58440 /* Override any gcc2 internal prototype to avoid an error.  */
58441 #ifdef __cplusplus
58442 extern "C"
58443 #endif
58444 /* We use char because int might match the return type of a gcc2
58445    builtin and then its argument prototype would still apply.  */
58446 char sqrt ();
58447 int
58448 main ()
58449 {
58450 sqrt ();
58451   ;
58452   return 0;
58453 }
58454 _ACEOF
58455 rm -f conftest.$ac_objext conftest$ac_exeext
58456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58457   (eval $ac_link) 2>conftest.er1
58458   ac_status=$?
58459   grep -v '^ *+' conftest.er1 >conftest.err
58460   rm -f conftest.er1
58461   cat conftest.err >&5
58462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58463   (exit $ac_status); } &&
58464          { ac_try='test -z "$ac_c_werror_flag"
58465                          || test ! -s conftest.err'
58466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58467   (eval $ac_try) 2>&5
58468   ac_status=$?
58469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58470   (exit $ac_status); }; } &&
58471          { ac_try='test -s conftest$ac_exeext'
58472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58473   (eval $ac_try) 2>&5
58474   ac_status=$?
58475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58476   (exit $ac_status); }; }; then
58477   ac_cv_lib_m_sqrt=yes
58478 else
58479   echo "$as_me: failed program was:" >&5
58480 sed 's/^/| /' conftest.$ac_ext >&5
58481
58482 ac_cv_lib_m_sqrt=no
58483 fi
58484 rm -f conftest.err conftest.$ac_objext \
58485       conftest$ac_exeext conftest.$ac_ext
58486 LIBS=$ac_check_lib_save_LIBS
58487 fi
58488 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
58489 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
58490 if test $ac_cv_lib_m_sqrt = yes; then
58491   SQRT_LIBM=-lm
58492 fi
58493
58494   fi
58495
58496
58497
58498 for ac_func in fesetround
58499 do
58500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58501 echo "$as_me:$LINENO: checking for $ac_func" >&5
58502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58503 if eval "test \"\${$as_ac_var+set}\" = set"; then
58504   echo $ECHO_N "(cached) $ECHO_C" >&6
58505 else
58506   cat >conftest.$ac_ext <<_ACEOF
58507 /* confdefs.h.  */
58508 _ACEOF
58509 cat confdefs.h >>conftest.$ac_ext
58510 cat >>conftest.$ac_ext <<_ACEOF
58511 /* end confdefs.h.  */
58512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58514 #define $ac_func innocuous_$ac_func
58515
58516 /* System header to define __stub macros and hopefully few prototypes,
58517     which can conflict with char $ac_func (); below.
58518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58519     <limits.h> exists even on freestanding compilers.  */
58520
58521 #ifdef __STDC__
58522 # include <limits.h>
58523 #else
58524 # include <assert.h>
58525 #endif
58526
58527 #undef $ac_func
58528
58529 /* Override any gcc2 internal prototype to avoid an error.  */
58530 #ifdef __cplusplus
58531 extern "C"
58532 {
58533 #endif
58534 /* We use char because int might match the return type of a gcc2
58535    builtin and then its argument prototype would still apply.  */
58536 char $ac_func ();
58537 /* The GNU C library defines this for functions which it implements
58538     to always fail with ENOSYS.  Some functions are actually named
58539     something starting with __ and the normal name is an alias.  */
58540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58541 choke me
58542 #else
58543 char (*f) () = $ac_func;
58544 #endif
58545 #ifdef __cplusplus
58546 }
58547 #endif
58548
58549 int
58550 main ()
58551 {
58552 return f != $ac_func;
58553   ;
58554   return 0;
58555 }
58556 _ACEOF
58557 rm -f conftest.$ac_objext conftest$ac_exeext
58558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58559   (eval $ac_link) 2>conftest.er1
58560   ac_status=$?
58561   grep -v '^ *+' conftest.er1 >conftest.err
58562   rm -f conftest.er1
58563   cat conftest.err >&5
58564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58565   (exit $ac_status); } &&
58566          { ac_try='test -z "$ac_c_werror_flag"
58567                          || test ! -s conftest.err'
58568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58569   (eval $ac_try) 2>&5
58570   ac_status=$?
58571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58572   (exit $ac_status); }; } &&
58573          { ac_try='test -s conftest$ac_exeext'
58574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58575   (eval $ac_try) 2>&5
58576   ac_status=$?
58577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58578   (exit $ac_status); }; }; then
58579   eval "$as_ac_var=yes"
58580 else
58581   echo "$as_me: failed program was:" >&5
58582 sed 's/^/| /' conftest.$ac_ext >&5
58583
58584 eval "$as_ac_var=no"
58585 fi
58586 rm -f conftest.err conftest.$ac_objext \
58587       conftest$ac_exeext conftest.$ac_ext
58588 fi
58589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58591 if test `eval echo '${'$as_ac_var'}'` = yes; then
58592   cat >>confdefs.h <<_ACEOF
58593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58594 _ACEOF
58595
58596 fi
58597 done
58598
58599   if test $ac_cv_func_fesetround = no; then
58600     echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
58601 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
58602 if test "${ac_cv_lib_m_fesetround+set}" = set; then
58603   echo $ECHO_N "(cached) $ECHO_C" >&6
58604 else
58605   ac_check_lib_save_LIBS=$LIBS
58606 LIBS="-lm  $LIBS"
58607 cat >conftest.$ac_ext <<_ACEOF
58608 /* confdefs.h.  */
58609 _ACEOF
58610 cat confdefs.h >>conftest.$ac_ext
58611 cat >>conftest.$ac_ext <<_ACEOF
58612 /* end confdefs.h.  */
58613
58614 /* Override any gcc2 internal prototype to avoid an error.  */
58615 #ifdef __cplusplus
58616 extern "C"
58617 #endif
58618 /* We use char because int might match the return type of a gcc2
58619    builtin and then its argument prototype would still apply.  */
58620 char fesetround ();
58621 int
58622 main ()
58623 {
58624 fesetround ();
58625   ;
58626   return 0;
58627 }
58628 _ACEOF
58629 rm -f conftest.$ac_objext conftest$ac_exeext
58630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58631   (eval $ac_link) 2>conftest.er1
58632   ac_status=$?
58633   grep -v '^ *+' conftest.er1 >conftest.err
58634   rm -f conftest.er1
58635   cat conftest.err >&5
58636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58637   (exit $ac_status); } &&
58638          { ac_try='test -z "$ac_c_werror_flag"
58639                          || test ! -s conftest.err'
58640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58641   (eval $ac_try) 2>&5
58642   ac_status=$?
58643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58644   (exit $ac_status); }; } &&
58645          { ac_try='test -s conftest$ac_exeext'
58646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58647   (eval $ac_try) 2>&5
58648   ac_status=$?
58649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58650   (exit $ac_status); }; }; then
58651   ac_cv_lib_m_fesetround=yes
58652 else
58653   echo "$as_me: failed program was:" >&5
58654 sed 's/^/| /' conftest.$ac_ext >&5
58655
58656 ac_cv_lib_m_fesetround=no
58657 fi
58658 rm -f conftest.err conftest.$ac_objext \
58659       conftest$ac_exeext conftest.$ac_ext
58660 LIBS=$ac_check_lib_save_LIBS
58661 fi
58662 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
58663 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
58664 if test $ac_cv_lib_m_fesetround = yes; then
58665   FESETROUND_LIBM=-lm
58666 fi
58667
58668   fi
58669
58670   # The -lsun library is required for YP support on Irix-4.0.5 systems.
58671   # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
58672   echo "$as_me:$LINENO: checking for library containing yp_match" >&5
58673 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
58674 if test "${ac_cv_search_yp_match+set}" = set; then
58675   echo $ECHO_N "(cached) $ECHO_C" >&6
58676 else
58677   ac_func_search_save_LIBS=$LIBS
58678 ac_cv_search_yp_match=no
58679 cat >conftest.$ac_ext <<_ACEOF
58680 /* confdefs.h.  */
58681 _ACEOF
58682 cat confdefs.h >>conftest.$ac_ext
58683 cat >>conftest.$ac_ext <<_ACEOF
58684 /* end confdefs.h.  */
58685
58686 /* Override any gcc2 internal prototype to avoid an error.  */
58687 #ifdef __cplusplus
58688 extern "C"
58689 #endif
58690 /* We use char because int might match the return type of a gcc2
58691    builtin and then its argument prototype would still apply.  */
58692 char yp_match ();
58693 int
58694 main ()
58695 {
58696 yp_match ();
58697   ;
58698   return 0;
58699 }
58700 _ACEOF
58701 rm -f conftest.$ac_objext conftest$ac_exeext
58702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58703   (eval $ac_link) 2>conftest.er1
58704   ac_status=$?
58705   grep -v '^ *+' conftest.er1 >conftest.err
58706   rm -f conftest.er1
58707   cat conftest.err >&5
58708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58709   (exit $ac_status); } &&
58710          { ac_try='test -z "$ac_c_werror_flag"
58711                          || test ! -s conftest.err'
58712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58713   (eval $ac_try) 2>&5
58714   ac_status=$?
58715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58716   (exit $ac_status); }; } &&
58717          { ac_try='test -s conftest$ac_exeext'
58718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58719   (eval $ac_try) 2>&5
58720   ac_status=$?
58721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58722   (exit $ac_status); }; }; then
58723   ac_cv_search_yp_match="none required"
58724 else
58725   echo "$as_me: failed program was:" >&5
58726 sed 's/^/| /' conftest.$ac_ext >&5
58727
58728 fi
58729 rm -f conftest.err conftest.$ac_objext \
58730       conftest$ac_exeext conftest.$ac_ext
58731 if test "$ac_cv_search_yp_match" = no; then
58732   for ac_lib in sun ypsec; do
58733     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
58734     cat >conftest.$ac_ext <<_ACEOF
58735 /* confdefs.h.  */
58736 _ACEOF
58737 cat confdefs.h >>conftest.$ac_ext
58738 cat >>conftest.$ac_ext <<_ACEOF
58739 /* end confdefs.h.  */
58740
58741 /* Override any gcc2 internal prototype to avoid an error.  */
58742 #ifdef __cplusplus
58743 extern "C"
58744 #endif
58745 /* We use char because int might match the return type of a gcc2
58746    builtin and then its argument prototype would still apply.  */
58747 char yp_match ();
58748 int
58749 main ()
58750 {
58751 yp_match ();
58752   ;
58753   return 0;
58754 }
58755 _ACEOF
58756 rm -f conftest.$ac_objext conftest$ac_exeext
58757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58758   (eval $ac_link) 2>conftest.er1
58759   ac_status=$?
58760   grep -v '^ *+' conftest.er1 >conftest.err
58761   rm -f conftest.er1
58762   cat conftest.err >&5
58763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58764   (exit $ac_status); } &&
58765          { ac_try='test -z "$ac_c_werror_flag"
58766                          || test ! -s conftest.err'
58767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58768   (eval $ac_try) 2>&5
58769   ac_status=$?
58770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58771   (exit $ac_status); }; } &&
58772          { ac_try='test -s conftest$ac_exeext'
58773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58774   (eval $ac_try) 2>&5
58775   ac_status=$?
58776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58777   (exit $ac_status); }; }; then
58778   ac_cv_search_yp_match="-l$ac_lib"
58779 break
58780 else
58781   echo "$as_me: failed program was:" >&5
58782 sed 's/^/| /' conftest.$ac_ext >&5
58783
58784 fi
58785 rm -f conftest.err conftest.$ac_objext \
58786       conftest$ac_exeext conftest.$ac_ext
58787   done
58788 fi
58789 LIBS=$ac_func_search_save_LIBS
58790 fi
58791 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
58792 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
58793 if test "$ac_cv_search_yp_match" != no; then
58794   test "$ac_cv_search_yp_match" = "none required" || LIBS="$ac_cv_search_yp_match $LIBS"
58795
58796 fi
58797
58798
58799   # SysV needs -lsec, older versions of Linux need -lshadow for
58800   # shadow passwords.  UnixWare 7 needs -lgen.
58801   echo "$as_me:$LINENO: checking for library containing getspnam" >&5
58802 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
58803 if test "${ac_cv_search_getspnam+set}" = set; then
58804   echo $ECHO_N "(cached) $ECHO_C" >&6
58805 else
58806   ac_func_search_save_LIBS=$LIBS
58807 ac_cv_search_getspnam=no
58808 cat >conftest.$ac_ext <<_ACEOF
58809 /* confdefs.h.  */
58810 _ACEOF
58811 cat confdefs.h >>conftest.$ac_ext
58812 cat >>conftest.$ac_ext <<_ACEOF
58813 /* end confdefs.h.  */
58814
58815 /* Override any gcc2 internal prototype to avoid an error.  */
58816 #ifdef __cplusplus
58817 extern "C"
58818 #endif
58819 /* We use char because int might match the return type of a gcc2
58820    builtin and then its argument prototype would still apply.  */
58821 char getspnam ();
58822 int
58823 main ()
58824 {
58825 getspnam ();
58826   ;
58827   return 0;
58828 }
58829 _ACEOF
58830 rm -f conftest.$ac_objext conftest$ac_exeext
58831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58832   (eval $ac_link) 2>conftest.er1
58833   ac_status=$?
58834   grep -v '^ *+' conftest.er1 >conftest.err
58835   rm -f conftest.er1
58836   cat conftest.err >&5
58837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58838   (exit $ac_status); } &&
58839          { ac_try='test -z "$ac_c_werror_flag"
58840                          || test ! -s conftest.err'
58841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58842   (eval $ac_try) 2>&5
58843   ac_status=$?
58844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58845   (exit $ac_status); }; } &&
58846          { ac_try='test -s conftest$ac_exeext'
58847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58848   (eval $ac_try) 2>&5
58849   ac_status=$?
58850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58851   (exit $ac_status); }; }; then
58852   ac_cv_search_getspnam="none required"
58853 else
58854   echo "$as_me: failed program was:" >&5
58855 sed 's/^/| /' conftest.$ac_ext >&5
58856
58857 fi
58858 rm -f conftest.err conftest.$ac_objext \
58859       conftest$ac_exeext conftest.$ac_ext
58860 if test "$ac_cv_search_getspnam" = no; then
58861   for ac_lib in shadow sec gen; do
58862     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
58863     cat >conftest.$ac_ext <<_ACEOF
58864 /* confdefs.h.  */
58865 _ACEOF
58866 cat confdefs.h >>conftest.$ac_ext
58867 cat >>conftest.$ac_ext <<_ACEOF
58868 /* end confdefs.h.  */
58869
58870 /* Override any gcc2 internal prototype to avoid an error.  */
58871 #ifdef __cplusplus
58872 extern "C"
58873 #endif
58874 /* We use char because int might match the return type of a gcc2
58875    builtin and then its argument prototype would still apply.  */
58876 char getspnam ();
58877 int
58878 main ()
58879 {
58880 getspnam ();
58881   ;
58882   return 0;
58883 }
58884 _ACEOF
58885 rm -f conftest.$ac_objext conftest$ac_exeext
58886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58887   (eval $ac_link) 2>conftest.er1
58888   ac_status=$?
58889   grep -v '^ *+' conftest.er1 >conftest.err
58890   rm -f conftest.er1
58891   cat conftest.err >&5
58892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58893   (exit $ac_status); } &&
58894          { ac_try='test -z "$ac_c_werror_flag"
58895                          || test ! -s conftest.err'
58896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58897   (eval $ac_try) 2>&5
58898   ac_status=$?
58899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58900   (exit $ac_status); }; } &&
58901          { ac_try='test -s conftest$ac_exeext'
58902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58903   (eval $ac_try) 2>&5
58904   ac_status=$?
58905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58906   (exit $ac_status); }; }; then
58907   ac_cv_search_getspnam="-l$ac_lib"
58908 break
58909 else
58910   echo "$as_me: failed program was:" >&5
58911 sed 's/^/| /' conftest.$ac_ext >&5
58912
58913 fi
58914 rm -f conftest.err conftest.$ac_objext \
58915       conftest$ac_exeext conftest.$ac_ext
58916   done
58917 fi
58918 LIBS=$ac_func_search_save_LIBS
58919 fi
58920 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
58921 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
58922 if test "$ac_cv_search_getspnam" != no; then
58923   test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
58924
58925 fi
58926
58927
58928
58929 for ac_header in shadow.h
58930 do
58931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58933   echo "$as_me:$LINENO: checking for $ac_header" >&5
58934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58936   echo $ECHO_N "(cached) $ECHO_C" >&6
58937 fi
58938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58940 else
58941   # Is the header compilable?
58942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58944 cat >conftest.$ac_ext <<_ACEOF
58945 /* confdefs.h.  */
58946 _ACEOF
58947 cat confdefs.h >>conftest.$ac_ext
58948 cat >>conftest.$ac_ext <<_ACEOF
58949 /* end confdefs.h.  */
58950 $ac_includes_default
58951 #include <$ac_header>
58952 _ACEOF
58953 rm -f conftest.$ac_objext
58954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58955   (eval $ac_compile) 2>conftest.er1
58956   ac_status=$?
58957   grep -v '^ *+' conftest.er1 >conftest.err
58958   rm -f conftest.er1
58959   cat conftest.err >&5
58960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58961   (exit $ac_status); } &&
58962          { ac_try='test -z "$ac_c_werror_flag"
58963                          || test ! -s conftest.err'
58964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58965   (eval $ac_try) 2>&5
58966   ac_status=$?
58967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58968   (exit $ac_status); }; } &&
58969          { ac_try='test -s conftest.$ac_objext'
58970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58971   (eval $ac_try) 2>&5
58972   ac_status=$?
58973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58974   (exit $ac_status); }; }; then
58975   ac_header_compiler=yes
58976 else
58977   echo "$as_me: failed program was:" >&5
58978 sed 's/^/| /' conftest.$ac_ext >&5
58979
58980 ac_header_compiler=no
58981 fi
58982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58984 echo "${ECHO_T}$ac_header_compiler" >&6
58985
58986 # Is the header present?
58987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58989 cat >conftest.$ac_ext <<_ACEOF
58990 /* confdefs.h.  */
58991 _ACEOF
58992 cat confdefs.h >>conftest.$ac_ext
58993 cat >>conftest.$ac_ext <<_ACEOF
58994 /* end confdefs.h.  */
58995 #include <$ac_header>
58996 _ACEOF
58997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58999   ac_status=$?
59000   grep -v '^ *+' conftest.er1 >conftest.err
59001   rm -f conftest.er1
59002   cat conftest.err >&5
59003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59004   (exit $ac_status); } >/dev/null; then
59005   if test -s conftest.err; then
59006     ac_cpp_err=$ac_c_preproc_warn_flag
59007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59008   else
59009     ac_cpp_err=
59010   fi
59011 else
59012   ac_cpp_err=yes
59013 fi
59014 if test -z "$ac_cpp_err"; then
59015   ac_header_preproc=yes
59016 else
59017   echo "$as_me: failed program was:" >&5
59018 sed 's/^/| /' conftest.$ac_ext >&5
59019
59020   ac_header_preproc=no
59021 fi
59022 rm -f conftest.err conftest.$ac_ext
59023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59024 echo "${ECHO_T}$ac_header_preproc" >&6
59025
59026 # So?  What about this header?
59027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59028   yes:no: )
59029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59033     ac_header_preproc=yes
59034     ;;
59035   no:yes:* )
59036     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59038     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
59039 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
59040     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59042     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
59043 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
59044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59046     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59048     (
59049       cat <<\_ASBOX
59050 ## ------------------------------------ ##
59051 ## Report this to bug-coreutils@gnu.org ##
59052 ## ------------------------------------ ##
59053 _ASBOX
59054     ) |
59055       sed "s/^/$as_me: WARNING:     /" >&2
59056     ;;
59057 esac
59058 echo "$as_me:$LINENO: checking for $ac_header" >&5
59059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59061   echo $ECHO_N "(cached) $ECHO_C" >&6
59062 else
59063   eval "$as_ac_Header=\$ac_header_preproc"
59064 fi
59065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59067
59068 fi
59069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59070   cat >>confdefs.h <<_ACEOF
59071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59072 _ACEOF
59073
59074 fi
59075
59076 done
59077
59078
59079   # Requirements for su.c.
59080   shadow_includes="\
59081 $ac_includes_default
59082 #if HAVE_SHADOW_H
59083 # include <shadow.h>
59084 #endif
59085 "
59086   echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
59087 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
59088 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
59089   echo $ECHO_N "(cached) $ECHO_C" >&6
59090 else
59091   cat >conftest.$ac_ext <<_ACEOF
59092 /* confdefs.h.  */
59093 _ACEOF
59094 cat confdefs.h >>conftest.$ac_ext
59095 cat >>conftest.$ac_ext <<_ACEOF
59096 /* end confdefs.h.  */
59097 $shadow_includes
59098
59099 int
59100 main ()
59101 {
59102 static struct spwd ac_aggr;
59103 if (ac_aggr.sp_pwdp)
59104 return 0;
59105   ;
59106   return 0;
59107 }
59108 _ACEOF
59109 rm -f conftest.$ac_objext
59110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59111   (eval $ac_compile) 2>conftest.er1
59112   ac_status=$?
59113   grep -v '^ *+' conftest.er1 >conftest.err
59114   rm -f conftest.er1
59115   cat conftest.err >&5
59116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59117   (exit $ac_status); } &&
59118          { ac_try='test -z "$ac_c_werror_flag"
59119                          || test ! -s conftest.err'
59120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59121   (eval $ac_try) 2>&5
59122   ac_status=$?
59123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59124   (exit $ac_status); }; } &&
59125          { ac_try='test -s conftest.$ac_objext'
59126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59127   (eval $ac_try) 2>&5
59128   ac_status=$?
59129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59130   (exit $ac_status); }; }; then
59131   ac_cv_member_struct_spwd_sp_pwdp=yes
59132 else
59133   echo "$as_me: failed program was:" >&5
59134 sed 's/^/| /' conftest.$ac_ext >&5
59135
59136 cat >conftest.$ac_ext <<_ACEOF
59137 /* confdefs.h.  */
59138 _ACEOF
59139 cat confdefs.h >>conftest.$ac_ext
59140 cat >>conftest.$ac_ext <<_ACEOF
59141 /* end confdefs.h.  */
59142 $shadow_includes
59143
59144 int
59145 main ()
59146 {
59147 static struct spwd ac_aggr;
59148 if (sizeof ac_aggr.sp_pwdp)
59149 return 0;
59150   ;
59151   return 0;
59152 }
59153 _ACEOF
59154 rm -f conftest.$ac_objext
59155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59156   (eval $ac_compile) 2>conftest.er1
59157   ac_status=$?
59158   grep -v '^ *+' conftest.er1 >conftest.err
59159   rm -f conftest.er1
59160   cat conftest.err >&5
59161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59162   (exit $ac_status); } &&
59163          { ac_try='test -z "$ac_c_werror_flag"
59164                          || test ! -s conftest.err'
59165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59166   (eval $ac_try) 2>&5
59167   ac_status=$?
59168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59169   (exit $ac_status); }; } &&
59170          { ac_try='test -s conftest.$ac_objext'
59171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59172   (eval $ac_try) 2>&5
59173   ac_status=$?
59174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59175   (exit $ac_status); }; }; then
59176   ac_cv_member_struct_spwd_sp_pwdp=yes
59177 else
59178   echo "$as_me: failed program was:" >&5
59179 sed 's/^/| /' conftest.$ac_ext >&5
59180
59181 ac_cv_member_struct_spwd_sp_pwdp=no
59182 fi
59183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59184 fi
59185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59186 fi
59187 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
59188 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
59189 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
59190
59191 cat >>confdefs.h <<_ACEOF
59192 #define HAVE_STRUCT_SPWD_SP_PWDP 1
59193 _ACEOF
59194
59195
59196 fi
59197
59198
59199 for ac_func in getspnam
59200 do
59201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59202 echo "$as_me:$LINENO: checking for $ac_func" >&5
59203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59204 if eval "test \"\${$as_ac_var+set}\" = set"; then
59205   echo $ECHO_N "(cached) $ECHO_C" >&6
59206 else
59207   cat >conftest.$ac_ext <<_ACEOF
59208 /* confdefs.h.  */
59209 _ACEOF
59210 cat confdefs.h >>conftest.$ac_ext
59211 cat >>conftest.$ac_ext <<_ACEOF
59212 /* end confdefs.h.  */
59213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59214    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59215 #define $ac_func innocuous_$ac_func
59216
59217 /* System header to define __stub macros and hopefully few prototypes,
59218     which can conflict with char $ac_func (); below.
59219     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59220     <limits.h> exists even on freestanding compilers.  */
59221
59222 #ifdef __STDC__
59223 # include <limits.h>
59224 #else
59225 # include <assert.h>
59226 #endif
59227
59228 #undef $ac_func
59229
59230 /* Override any gcc2 internal prototype to avoid an error.  */
59231 #ifdef __cplusplus
59232 extern "C"
59233 {
59234 #endif
59235 /* We use char because int might match the return type of a gcc2
59236    builtin and then its argument prototype would still apply.  */
59237 char $ac_func ();
59238 /* The GNU C library defines this for functions which it implements
59239     to always fail with ENOSYS.  Some functions are actually named
59240     something starting with __ and the normal name is an alias.  */
59241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59242 choke me
59243 #else
59244 char (*f) () = $ac_func;
59245 #endif
59246 #ifdef __cplusplus
59247 }
59248 #endif
59249
59250 int
59251 main ()
59252 {
59253 return f != $ac_func;
59254   ;
59255   return 0;
59256 }
59257 _ACEOF
59258 rm -f conftest.$ac_objext conftest$ac_exeext
59259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59260   (eval $ac_link) 2>conftest.er1
59261   ac_status=$?
59262   grep -v '^ *+' conftest.er1 >conftest.err
59263   rm -f conftest.er1
59264   cat conftest.err >&5
59265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59266   (exit $ac_status); } &&
59267          { ac_try='test -z "$ac_c_werror_flag"
59268                          || test ! -s conftest.err'
59269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59270   (eval $ac_try) 2>&5
59271   ac_status=$?
59272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59273   (exit $ac_status); }; } &&
59274          { ac_try='test -s conftest$ac_exeext'
59275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59276   (eval $ac_try) 2>&5
59277   ac_status=$?
59278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59279   (exit $ac_status); }; }; then
59280   eval "$as_ac_var=yes"
59281 else
59282   echo "$as_me: failed program was:" >&5
59283 sed 's/^/| /' conftest.$ac_ext >&5
59284
59285 eval "$as_ac_var=no"
59286 fi
59287 rm -f conftest.err conftest.$ac_objext \
59288       conftest$ac_exeext conftest.$ac_ext
59289 fi
59290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59292 if test `eval echo '${'$as_ac_var'}'` = yes; then
59293   cat >>confdefs.h <<_ACEOF
59294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59295 _ACEOF
59296
59297 fi
59298 done
59299
59300
59301   # SCO-ODT-3.0 is reported to need -lufc for crypt.
59302   # NetBSD needs -lcrypt for crypt.
59303   ac_su_saved_lib="$LIBS"
59304   echo "$as_me:$LINENO: checking for library containing crypt" >&5
59305 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
59306 if test "${ac_cv_search_crypt+set}" = set; then
59307   echo $ECHO_N "(cached) $ECHO_C" >&6
59308 else
59309   ac_func_search_save_LIBS=$LIBS
59310 ac_cv_search_crypt=no
59311 cat >conftest.$ac_ext <<_ACEOF
59312 /* confdefs.h.  */
59313 _ACEOF
59314 cat confdefs.h >>conftest.$ac_ext
59315 cat >>conftest.$ac_ext <<_ACEOF
59316 /* end confdefs.h.  */
59317
59318 /* Override any gcc2 internal prototype to avoid an error.  */
59319 #ifdef __cplusplus
59320 extern "C"
59321 #endif
59322 /* We use char because int might match the return type of a gcc2
59323    builtin and then its argument prototype would still apply.  */
59324 char crypt ();
59325 int
59326 main ()
59327 {
59328 crypt ();
59329   ;
59330   return 0;
59331 }
59332 _ACEOF
59333 rm -f conftest.$ac_objext conftest$ac_exeext
59334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59335   (eval $ac_link) 2>conftest.er1
59336   ac_status=$?
59337   grep -v '^ *+' conftest.er1 >conftest.err
59338   rm -f conftest.er1
59339   cat conftest.err >&5
59340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59341   (exit $ac_status); } &&
59342          { ac_try='test -z "$ac_c_werror_flag"
59343                          || test ! -s conftest.err'
59344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59345   (eval $ac_try) 2>&5
59346   ac_status=$?
59347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59348   (exit $ac_status); }; } &&
59349          { ac_try='test -s conftest$ac_exeext'
59350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59351   (eval $ac_try) 2>&5
59352   ac_status=$?
59353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59354   (exit $ac_status); }; }; then
59355   ac_cv_search_crypt="none required"
59356 else
59357   echo "$as_me: failed program was:" >&5
59358 sed 's/^/| /' conftest.$ac_ext >&5
59359
59360 fi
59361 rm -f conftest.err conftest.$ac_objext \
59362       conftest$ac_exeext conftest.$ac_ext
59363 if test "$ac_cv_search_crypt" = no; then
59364   for ac_lib in ufc crypt; do
59365     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
59366     cat >conftest.$ac_ext <<_ACEOF
59367 /* confdefs.h.  */
59368 _ACEOF
59369 cat confdefs.h >>conftest.$ac_ext
59370 cat >>conftest.$ac_ext <<_ACEOF
59371 /* end confdefs.h.  */
59372
59373 /* Override any gcc2 internal prototype to avoid an error.  */
59374 #ifdef __cplusplus
59375 extern "C"
59376 #endif
59377 /* We use char because int might match the return type of a gcc2
59378    builtin and then its argument prototype would still apply.  */
59379 char crypt ();
59380 int
59381 main ()
59382 {
59383 crypt ();
59384   ;
59385   return 0;
59386 }
59387 _ACEOF
59388 rm -f conftest.$ac_objext conftest$ac_exeext
59389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59390   (eval $ac_link) 2>conftest.er1
59391   ac_status=$?
59392   grep -v '^ *+' conftest.er1 >conftest.err
59393   rm -f conftest.er1
59394   cat conftest.err >&5
59395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59396   (exit $ac_status); } &&
59397          { ac_try='test -z "$ac_c_werror_flag"
59398                          || test ! -s conftest.err'
59399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59400   (eval $ac_try) 2>&5
59401   ac_status=$?
59402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59403   (exit $ac_status); }; } &&
59404          { ac_try='test -s conftest$ac_exeext'
59405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59406   (eval $ac_try) 2>&5
59407   ac_status=$?
59408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59409   (exit $ac_status); }; }; then
59410   ac_cv_search_crypt="-l$ac_lib"
59411 break
59412 else
59413   echo "$as_me: failed program was:" >&5
59414 sed 's/^/| /' conftest.$ac_ext >&5
59415
59416 fi
59417 rm -f conftest.err conftest.$ac_objext \
59418       conftest$ac_exeext conftest.$ac_ext
59419   done
59420 fi
59421 LIBS=$ac_func_search_save_LIBS
59422 fi
59423 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
59424 echo "${ECHO_T}$ac_cv_search_crypt" >&6
59425 if test "$ac_cv_search_crypt" != no; then
59426   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
59427   test "$ac_cv_search_crypt" = "none required" ||
59428                   LIB_CRYPT="$ac_cv_search_crypt"
59429 fi
59430
59431   LIBS="$ac_su_saved_lib"
59432
59433
59434
59435
59436         MKINSTALLDIRS=
59437   if test -n "$ac_aux_dir"; then
59438     case "$ac_aux_dir" in
59439       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
59440       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
59441     esac
59442   fi
59443   if test -z "$MKINSTALLDIRS"; then
59444     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
59445   fi
59446
59447
59448
59449   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
59450 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
59451     # Check whether --enable-nls or --disable-nls was given.
59452 if test "${enable_nls+set}" = set; then
59453   enableval="$enable_nls"
59454   USE_NLS=$enableval
59455 else
59456   USE_NLS=yes
59457 fi;
59458   echo "$as_me:$LINENO: result: $USE_NLS" >&5
59459 echo "${ECHO_T}$USE_NLS" >&6
59460
59461
59462
59463
59464
59465
59466 # Prepare PATH_SEPARATOR.
59467 # The user is always right.
59468 if test "${PATH_SEPARATOR+set}" != set; then
59469   echo "#! /bin/sh" >conf$$.sh
59470   echo  "exit 0"   >>conf$$.sh
59471   chmod +x conf$$.sh
59472   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59473     PATH_SEPARATOR=';'
59474   else
59475     PATH_SEPARATOR=:
59476   fi
59477   rm -f conf$$.sh
59478 fi
59479
59480 # Find out how to test for executable files. Don't use a zero-byte file,
59481 # as systems may use methods other than mode bits to determine executability.
59482 cat >conf$$.file <<_ASEOF
59483 #! /bin/sh
59484 exit 0
59485 _ASEOF
59486 chmod +x conf$$.file
59487 if test -x conf$$.file >/dev/null 2>&1; then
59488   ac_executable_p="test -x"
59489 else
59490   ac_executable_p="test -f"
59491 fi
59492 rm -f conf$$.file
59493
59494 # Extract the first word of "msgfmt", so it can be a program name with args.
59495 set dummy msgfmt; ac_word=$2
59496 echo "$as_me:$LINENO: checking for $ac_word" >&5
59497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59498 if test "${ac_cv_path_MSGFMT+set}" = set; then
59499   echo $ECHO_N "(cached) $ECHO_C" >&6
59500 else
59501   case "$MSGFMT" in
59502   [\\/]* | ?:[\\/]*)
59503     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
59504     ;;
59505   *)
59506     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
59507     for ac_dir in $PATH; do
59508       IFS="$ac_save_IFS"
59509       test -z "$ac_dir" && ac_dir=.
59510       for ac_exec_ext in '' $ac_executable_extensions; do
59511         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
59512           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
59513      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
59514             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
59515             break 2
59516           fi
59517         fi
59518       done
59519     done
59520     IFS="$ac_save_IFS"
59521   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
59522     ;;
59523 esac
59524 fi
59525 MSGFMT="$ac_cv_path_MSGFMT"
59526 if test "$MSGFMT" != ":"; then
59527   echo "$as_me:$LINENO: result: $MSGFMT" >&5
59528 echo "${ECHO_T}$MSGFMT" >&6
59529 else
59530   echo "$as_me:$LINENO: result: no" >&5
59531 echo "${ECHO_T}no" >&6
59532 fi
59533
59534   # Extract the first word of "gmsgfmt", so it can be a program name with args.
59535 set dummy gmsgfmt; ac_word=$2
59536 echo "$as_me:$LINENO: checking for $ac_word" >&5
59537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59538 if test "${ac_cv_path_GMSGFMT+set}" = set; then
59539   echo $ECHO_N "(cached) $ECHO_C" >&6
59540 else
59541   case $GMSGFMT in
59542   [\\/]* | ?:[\\/]*)
59543   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
59544   ;;
59545   *)
59546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59547 for as_dir in $PATH
59548 do
59549   IFS=$as_save_IFS
59550   test -z "$as_dir" && as_dir=.
59551   for ac_exec_ext in '' $ac_executable_extensions; do
59552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59553     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
59554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59555     break 2
59556   fi
59557 done
59558 done
59559
59560   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
59561   ;;
59562 esac
59563 fi
59564 GMSGFMT=$ac_cv_path_GMSGFMT
59565
59566 if test -n "$GMSGFMT"; then
59567   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
59568 echo "${ECHO_T}$GMSGFMT" >&6
59569 else
59570   echo "$as_me:$LINENO: result: no" >&5
59571 echo "${ECHO_T}no" >&6
59572 fi
59573
59574
59575
59576 # Prepare PATH_SEPARATOR.
59577 # The user is always right.
59578 if test "${PATH_SEPARATOR+set}" != set; then
59579   echo "#! /bin/sh" >conf$$.sh
59580   echo  "exit 0"   >>conf$$.sh
59581   chmod +x conf$$.sh
59582   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59583     PATH_SEPARATOR=';'
59584   else
59585     PATH_SEPARATOR=:
59586   fi
59587   rm -f conf$$.sh
59588 fi
59589
59590 # Find out how to test for executable files. Don't use a zero-byte file,
59591 # as systems may use methods other than mode bits to determine executability.
59592 cat >conf$$.file <<_ASEOF
59593 #! /bin/sh
59594 exit 0
59595 _ASEOF
59596 chmod +x conf$$.file
59597 if test -x conf$$.file >/dev/null 2>&1; then
59598   ac_executable_p="test -x"
59599 else
59600   ac_executable_p="test -f"
59601 fi
59602 rm -f conf$$.file
59603
59604 # Extract the first word of "xgettext", so it can be a program name with args.
59605 set dummy xgettext; ac_word=$2
59606 echo "$as_me:$LINENO: checking for $ac_word" >&5
59607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59608 if test "${ac_cv_path_XGETTEXT+set}" = set; then
59609   echo $ECHO_N "(cached) $ECHO_C" >&6
59610 else
59611   case "$XGETTEXT" in
59612   [\\/]* | ?:[\\/]*)
59613     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
59614     ;;
59615   *)
59616     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
59617     for ac_dir in $PATH; do
59618       IFS="$ac_save_IFS"
59619       test -z "$ac_dir" && ac_dir=.
59620       for ac_exec_ext in '' $ac_executable_extensions; do
59621         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
59622           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
59623      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
59624             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
59625             break 2
59626           fi
59627         fi
59628       done
59629     done
59630     IFS="$ac_save_IFS"
59631   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
59632     ;;
59633 esac
59634 fi
59635 XGETTEXT="$ac_cv_path_XGETTEXT"
59636 if test "$XGETTEXT" != ":"; then
59637   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
59638 echo "${ECHO_T}$XGETTEXT" >&6
59639 else
59640   echo "$as_me:$LINENO: result: no" >&5
59641 echo "${ECHO_T}no" >&6
59642 fi
59643
59644     rm -f messages.po
59645
59646
59647 # Prepare PATH_SEPARATOR.
59648 # The user is always right.
59649 if test "${PATH_SEPARATOR+set}" != set; then
59650   echo "#! /bin/sh" >conf$$.sh
59651   echo  "exit 0"   >>conf$$.sh
59652   chmod +x conf$$.sh
59653   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59654     PATH_SEPARATOR=';'
59655   else
59656     PATH_SEPARATOR=:
59657   fi
59658   rm -f conf$$.sh
59659 fi
59660
59661 # Find out how to test for executable files. Don't use a zero-byte file,
59662 # as systems may use methods other than mode bits to determine executability.
59663 cat >conf$$.file <<_ASEOF
59664 #! /bin/sh
59665 exit 0
59666 _ASEOF
59667 chmod +x conf$$.file
59668 if test -x conf$$.file >/dev/null 2>&1; then
59669   ac_executable_p="test -x"
59670 else
59671   ac_executable_p="test -f"
59672 fi
59673 rm -f conf$$.file
59674
59675 # Extract the first word of "msgmerge", so it can be a program name with args.
59676 set dummy msgmerge; ac_word=$2
59677 echo "$as_me:$LINENO: checking for $ac_word" >&5
59678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59679 if test "${ac_cv_path_MSGMERGE+set}" = set; then
59680   echo $ECHO_N "(cached) $ECHO_C" >&6
59681 else
59682   case "$MSGMERGE" in
59683   [\\/]* | ?:[\\/]*)
59684     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
59685     ;;
59686   *)
59687     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
59688     for ac_dir in $PATH; do
59689       IFS="$ac_save_IFS"
59690       test -z "$ac_dir" && ac_dir=.
59691       for ac_exec_ext in '' $ac_executable_extensions; do
59692         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
59693           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
59694             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
59695             break 2
59696           fi
59697         fi
59698       done
59699     done
59700     IFS="$ac_save_IFS"
59701   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
59702     ;;
59703 esac
59704 fi
59705 MSGMERGE="$ac_cv_path_MSGMERGE"
59706 if test "$MSGMERGE" != ":"; then
59707   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
59708 echo "${ECHO_T}$MSGMERGE" >&6
59709 else
59710   echo "$as_me:$LINENO: result: no" >&5
59711 echo "${ECHO_T}no" >&6
59712 fi
59713
59714
59715       if test "$GMSGFMT" != ":"; then
59716             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
59717        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
59718       : ;
59719     else
59720       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
59721       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
59722 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
59723       GMSGFMT=":"
59724     fi
59725   fi
59726
59727       if test "$XGETTEXT" != ":"; then
59728             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
59729        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
59730       : ;
59731     else
59732       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
59733 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
59734       XGETTEXT=":"
59735     fi
59736         rm -f messages.po
59737   fi
59738
59739             ac_config_commands="$ac_config_commands default-1"
59740
59741
59742
59743
59744
59745
59746
59747
59748   #  ifelse(gt_included_intl, yes, [
59749 #    AC_REQUIRE([AM_INTL_SUBDIR])dnl
59750 #  ])
59751
59752
59753
59754
59755
59756
59757
59758
59759
59760   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
59761 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
59762     # Check whether --enable-nls or --disable-nls was given.
59763 if test "${enable_nls+set}" = set; then
59764   enableval="$enable_nls"
59765   USE_NLS=$enableval
59766 else
59767   USE_NLS=yes
59768 fi;
59769   echo "$as_me:$LINENO: result: $USE_NLS" >&5
59770 echo "${ECHO_T}$USE_NLS" >&6
59771
59772
59773
59774
59775   LIBINTL=
59776   LTLIBINTL=
59777   POSUB=
59778
59779     if test "$USE_NLS" = "yes"; then
59780     gt_use_preinstalled_gnugettext=no
59781
59782
59783
59784
59785
59786
59787         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
59788 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
59789 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
59790   echo $ECHO_N "(cached) $ECHO_C" >&6
59791 else
59792   cat >conftest.$ac_ext <<_ACEOF
59793 /* confdefs.h.  */
59794 _ACEOF
59795 cat confdefs.h >>conftest.$ac_ext
59796 cat >>conftest.$ac_ext <<_ACEOF
59797 /* end confdefs.h.  */
59798 #include <libintl.h>
59799 extern int _nl_msg_cat_cntr;
59800 extern int *_nl_domain_bindings;
59801 int
59802 main ()
59803 {
59804 bindtextdomain ("", "");
59805 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
59806   ;
59807   return 0;
59808 }
59809 _ACEOF
59810 rm -f conftest.$ac_objext conftest$ac_exeext
59811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59812   (eval $ac_link) 2>conftest.er1
59813   ac_status=$?
59814   grep -v '^ *+' conftest.er1 >conftest.err
59815   rm -f conftest.er1
59816   cat conftest.err >&5
59817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59818   (exit $ac_status); } &&
59819          { ac_try='test -z "$ac_c_werror_flag"
59820                          || test ! -s conftest.err'
59821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59822   (eval $ac_try) 2>&5
59823   ac_status=$?
59824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59825   (exit $ac_status); }; } &&
59826          { ac_try='test -s conftest$ac_exeext'
59827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59828   (eval $ac_try) 2>&5
59829   ac_status=$?
59830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59831   (exit $ac_status); }; }; then
59832   gt_cv_func_gnugettext2_libc=yes
59833 else
59834   echo "$as_me: failed program was:" >&5
59835 sed 's/^/| /' conftest.$ac_ext >&5
59836
59837 gt_cv_func_gnugettext2_libc=no
59838 fi
59839 rm -f conftest.err conftest.$ac_objext \
59840       conftest$ac_exeext conftest.$ac_ext
59841 fi
59842 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
59843 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
59844
59845         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
59846
59847
59848
59849
59850
59851           am_save_CPPFLAGS="$CPPFLAGS"
59852
59853   for element in $INCICONV; do
59854     haveit=
59855     for x in $CPPFLAGS; do
59856
59857   acl_save_prefix="$prefix"
59858   prefix="$acl_final_prefix"
59859   acl_save_exec_prefix="$exec_prefix"
59860   exec_prefix="$acl_final_exec_prefix"
59861   eval x=\"$x\"
59862   exec_prefix="$acl_save_exec_prefix"
59863   prefix="$acl_save_prefix"
59864
59865       if test "X$x" = "X$element"; then
59866         haveit=yes
59867         break
59868       fi
59869     done
59870     if test -z "$haveit"; then
59871       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
59872     fi
59873   done
59874
59875
59876   echo "$as_me:$LINENO: checking for iconv" >&5
59877 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
59878 if test "${am_cv_func_iconv+set}" = set; then
59879   echo $ECHO_N "(cached) $ECHO_C" >&6
59880 else
59881
59882     am_cv_func_iconv="no, consider installing GNU libiconv"
59883     am_cv_lib_iconv=no
59884     cat >conftest.$ac_ext <<_ACEOF
59885 /* confdefs.h.  */
59886 _ACEOF
59887 cat confdefs.h >>conftest.$ac_ext
59888 cat >>conftest.$ac_ext <<_ACEOF
59889 /* end confdefs.h.  */
59890 #include <stdlib.h>
59891 #include <iconv.h>
59892 int
59893 main ()
59894 {
59895 iconv_t cd = iconv_open("","");
59896        iconv(cd,NULL,NULL,NULL,NULL);
59897        iconv_close(cd);
59898   ;
59899   return 0;
59900 }
59901 _ACEOF
59902 rm -f conftest.$ac_objext conftest$ac_exeext
59903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59904   (eval $ac_link) 2>conftest.er1
59905   ac_status=$?
59906   grep -v '^ *+' conftest.er1 >conftest.err
59907   rm -f conftest.er1
59908   cat conftest.err >&5
59909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59910   (exit $ac_status); } &&
59911          { ac_try='test -z "$ac_c_werror_flag"
59912                          || test ! -s conftest.err'
59913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59914   (eval $ac_try) 2>&5
59915   ac_status=$?
59916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59917   (exit $ac_status); }; } &&
59918          { ac_try='test -s conftest$ac_exeext'
59919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59920   (eval $ac_try) 2>&5
59921   ac_status=$?
59922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59923   (exit $ac_status); }; }; then
59924   am_cv_func_iconv=yes
59925 else
59926   echo "$as_me: failed program was:" >&5
59927 sed 's/^/| /' conftest.$ac_ext >&5
59928
59929 fi
59930 rm -f conftest.err conftest.$ac_objext \
59931       conftest$ac_exeext conftest.$ac_ext
59932     if test "$am_cv_func_iconv" != yes; then
59933       am_save_LIBS="$LIBS"
59934       LIBS="$LIBS $LIBICONV"
59935       cat >conftest.$ac_ext <<_ACEOF
59936 /* confdefs.h.  */
59937 _ACEOF
59938 cat confdefs.h >>conftest.$ac_ext
59939 cat >>conftest.$ac_ext <<_ACEOF
59940 /* end confdefs.h.  */
59941 #include <stdlib.h>
59942 #include <iconv.h>
59943 int
59944 main ()
59945 {
59946 iconv_t cd = iconv_open("","");
59947          iconv(cd,NULL,NULL,NULL,NULL);
59948          iconv_close(cd);
59949   ;
59950   return 0;
59951 }
59952 _ACEOF
59953 rm -f conftest.$ac_objext conftest$ac_exeext
59954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59955   (eval $ac_link) 2>conftest.er1
59956   ac_status=$?
59957   grep -v '^ *+' conftest.er1 >conftest.err
59958   rm -f conftest.er1
59959   cat conftest.err >&5
59960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59961   (exit $ac_status); } &&
59962          { ac_try='test -z "$ac_c_werror_flag"
59963                          || test ! -s conftest.err'
59964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59965   (eval $ac_try) 2>&5
59966   ac_status=$?
59967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59968   (exit $ac_status); }; } &&
59969          { ac_try='test -s conftest$ac_exeext'
59970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59971   (eval $ac_try) 2>&5
59972   ac_status=$?
59973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59974   (exit $ac_status); }; }; then
59975   am_cv_lib_iconv=yes
59976         am_cv_func_iconv=yes
59977 else
59978   echo "$as_me: failed program was:" >&5
59979 sed 's/^/| /' conftest.$ac_ext >&5
59980
59981 fi
59982 rm -f conftest.err conftest.$ac_objext \
59983       conftest$ac_exeext conftest.$ac_ext
59984       LIBS="$am_save_LIBS"
59985     fi
59986
59987 fi
59988 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
59989 echo "${ECHO_T}$am_cv_func_iconv" >&6
59990   if test "$am_cv_func_iconv" = yes; then
59991
59992 cat >>confdefs.h <<\_ACEOF
59993 #define HAVE_ICONV 1
59994 _ACEOF
59995
59996   fi
59997   if test "$am_cv_lib_iconv" = yes; then
59998     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
59999 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
60000     echo "$as_me:$LINENO: result: $LIBICONV" >&5
60001 echo "${ECHO_T}$LIBICONV" >&6
60002   else
60003             CPPFLAGS="$am_save_CPPFLAGS"
60004     LIBICONV=
60005     LTLIBICONV=
60006   fi
60007
60008
60009
60010
60011
60012
60013     use_additional=yes
60014
60015   acl_save_prefix="$prefix"
60016   prefix="$acl_final_prefix"
60017   acl_save_exec_prefix="$exec_prefix"
60018   exec_prefix="$acl_final_exec_prefix"
60019
60020     eval additional_includedir=\"$includedir\"
60021     eval additional_libdir=\"$libdir\"
60022
60023   exec_prefix="$acl_save_exec_prefix"
60024   prefix="$acl_save_prefix"
60025
60026
60027 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
60028 if test "${with_libintl_prefix+set}" = set; then
60029   withval="$with_libintl_prefix"
60030
60031     if test "X$withval" = "Xno"; then
60032       use_additional=no
60033     else
60034       if test "X$withval" = "X"; then
60035
60036   acl_save_prefix="$prefix"
60037   prefix="$acl_final_prefix"
60038   acl_save_exec_prefix="$exec_prefix"
60039   exec_prefix="$acl_final_exec_prefix"
60040
60041           eval additional_includedir=\"$includedir\"
60042           eval additional_libdir=\"$libdir\"
60043
60044   exec_prefix="$acl_save_exec_prefix"
60045   prefix="$acl_save_prefix"
60046
60047       else
60048         additional_includedir="$withval/include"
60049         additional_libdir="$withval/lib"
60050       fi
60051     fi
60052
60053 fi;
60054       LIBINTL=
60055   LTLIBINTL=
60056   INCINTL=
60057   rpathdirs=
60058   ltrpathdirs=
60059   names_already_handled=
60060   names_next_round='intl '
60061   while test -n "$names_next_round"; do
60062     names_this_round="$names_next_round"
60063     names_next_round=
60064     for name in $names_this_round; do
60065       already_handled=
60066       for n in $names_already_handled; do
60067         if test "$n" = "$name"; then
60068           already_handled=yes
60069           break
60070         fi
60071       done
60072       if test -z "$already_handled"; then
60073         names_already_handled="$names_already_handled $name"
60074                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
60075         eval value=\"\$HAVE_LIB$uppername\"
60076         if test -n "$value"; then
60077           if test "$value" = yes; then
60078             eval value=\"\$LIB$uppername\"
60079             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
60080             eval value=\"\$LTLIB$uppername\"
60081             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
60082           else
60083                                     :
60084           fi
60085         else
60086                               found_dir=
60087           found_la=
60088           found_so=
60089           found_a=
60090           if test $use_additional = yes; then
60091             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
60092               found_dir="$additional_libdir"
60093               found_so="$additional_libdir/lib$name.$shlibext"
60094               if test -f "$additional_libdir/lib$name.la"; then
60095                 found_la="$additional_libdir/lib$name.la"
60096               fi
60097             else
60098               if test -f "$additional_libdir/lib$name.$libext"; then
60099                 found_dir="$additional_libdir"
60100                 found_a="$additional_libdir/lib$name.$libext"
60101                 if test -f "$additional_libdir/lib$name.la"; then
60102                   found_la="$additional_libdir/lib$name.la"
60103                 fi
60104               fi
60105             fi
60106           fi
60107           if test "X$found_dir" = "X"; then
60108             for x in $LDFLAGS $LTLIBINTL; do
60109
60110   acl_save_prefix="$prefix"
60111   prefix="$acl_final_prefix"
60112   acl_save_exec_prefix="$exec_prefix"
60113   exec_prefix="$acl_final_exec_prefix"
60114   eval x=\"$x\"
60115   exec_prefix="$acl_save_exec_prefix"
60116   prefix="$acl_save_prefix"
60117
60118               case "$x" in
60119                 -L*)
60120                   dir=`echo "X$x" | sed -e 's/^X-L//'`
60121                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
60122                     found_dir="$dir"
60123                     found_so="$dir/lib$name.$shlibext"
60124                     if test -f "$dir/lib$name.la"; then
60125                       found_la="$dir/lib$name.la"
60126                     fi
60127                   else
60128                     if test -f "$dir/lib$name.$libext"; then
60129                       found_dir="$dir"
60130                       found_a="$dir/lib$name.$libext"
60131                       if test -f "$dir/lib$name.la"; then
60132                         found_la="$dir/lib$name.la"
60133                       fi
60134                     fi
60135                   fi
60136                   ;;
60137               esac
60138               if test "X$found_dir" != "X"; then
60139                 break
60140               fi
60141             done
60142           fi
60143           if test "X$found_dir" != "X"; then
60144                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
60145             if test "X$found_so" != "X"; then
60146                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
60147                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
60148               else
60149                                                                                 haveit=
60150                 for x in $ltrpathdirs; do
60151                   if test "X$x" = "X$found_dir"; then
60152                     haveit=yes
60153                     break
60154                   fi
60155                 done
60156                 if test -z "$haveit"; then
60157                   ltrpathdirs="$ltrpathdirs $found_dir"
60158                 fi
60159                                 if test "$hardcode_direct" = yes; then
60160                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
60161                 else
60162                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
60163                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
60164                                                             haveit=
60165                     for x in $rpathdirs; do
60166                       if test "X$x" = "X$found_dir"; then
60167                         haveit=yes
60168                         break
60169                       fi
60170                     done
60171                     if test -z "$haveit"; then
60172                       rpathdirs="$rpathdirs $found_dir"
60173                     fi
60174                   else
60175                                                                                 haveit=
60176                     for x in $LDFLAGS $LIBINTL; do
60177
60178   acl_save_prefix="$prefix"
60179   prefix="$acl_final_prefix"
60180   acl_save_exec_prefix="$exec_prefix"
60181   exec_prefix="$acl_final_exec_prefix"
60182   eval x=\"$x\"
60183   exec_prefix="$acl_save_exec_prefix"
60184   prefix="$acl_save_prefix"
60185
60186                       if test "X$x" = "X-L$found_dir"; then
60187                         haveit=yes
60188                         break
60189                       fi
60190                     done
60191                     if test -z "$haveit"; then
60192                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
60193                     fi
60194                     if test "$hardcode_minus_L" != no; then
60195                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
60196                     else
60197                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
60198                     fi
60199                   fi
60200                 fi
60201               fi
60202             else
60203               if test "X$found_a" != "X"; then
60204                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
60205               else
60206                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
60207               fi
60208             fi
60209                         additional_includedir=
60210             case "$found_dir" in
60211               */lib | */lib/)
60212                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
60213                 additional_includedir="$basedir/include"
60214                 ;;
60215             esac
60216             if test "X$additional_includedir" != "X"; then
60217                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
60218                 haveit=
60219                 if test "X$additional_includedir" = "X/usr/local/include"; then
60220                   if test -n "$GCC"; then
60221                     case $host_os in
60222                       linux*) haveit=yes;;
60223                     esac
60224                   fi
60225                 fi
60226                 if test -z "$haveit"; then
60227                   for x in $CPPFLAGS $INCINTL; do
60228
60229   acl_save_prefix="$prefix"
60230   prefix="$acl_final_prefix"
60231   acl_save_exec_prefix="$exec_prefix"
60232   exec_prefix="$acl_final_exec_prefix"
60233   eval x=\"$x\"
60234   exec_prefix="$acl_save_exec_prefix"
60235   prefix="$acl_save_prefix"
60236
60237                     if test "X$x" = "X-I$additional_includedir"; then
60238                       haveit=yes
60239                       break
60240                     fi
60241                   done
60242                   if test -z "$haveit"; then
60243                     if test -d "$additional_includedir"; then
60244                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
60245                     fi
60246                   fi
60247                 fi
60248               fi
60249             fi
60250                         if test -n "$found_la"; then
60251                                                         save_libdir="$libdir"
60252               case "$found_la" in
60253                 */* | *\\*) . "$found_la" ;;
60254                 *) . "./$found_la" ;;
60255               esac
60256               libdir="$save_libdir"
60257                             for dep in $dependency_libs; do
60258                 case "$dep" in
60259                   -L*)
60260                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
60261                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
60262                       haveit=
60263                       if test "X$additional_libdir" = "X/usr/local/lib"; then
60264                         if test -n "$GCC"; then
60265                           case $host_os in
60266                             linux*) haveit=yes;;
60267                           esac
60268                         fi
60269                       fi
60270                       if test -z "$haveit"; then
60271                         haveit=
60272                         for x in $LDFLAGS $LIBINTL; do
60273
60274   acl_save_prefix="$prefix"
60275   prefix="$acl_final_prefix"
60276   acl_save_exec_prefix="$exec_prefix"
60277   exec_prefix="$acl_final_exec_prefix"
60278   eval x=\"$x\"
60279   exec_prefix="$acl_save_exec_prefix"
60280   prefix="$acl_save_prefix"
60281
60282                           if test "X$x" = "X-L$additional_libdir"; then
60283                             haveit=yes
60284                             break
60285                           fi
60286                         done
60287                         if test -z "$haveit"; then
60288                           if test -d "$additional_libdir"; then
60289                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
60290                           fi
60291                         fi
60292                         haveit=
60293                         for x in $LDFLAGS $LTLIBINTL; do
60294
60295   acl_save_prefix="$prefix"
60296   prefix="$acl_final_prefix"
60297   acl_save_exec_prefix="$exec_prefix"
60298   exec_prefix="$acl_final_exec_prefix"
60299   eval x=\"$x\"
60300   exec_prefix="$acl_save_exec_prefix"
60301   prefix="$acl_save_prefix"
60302
60303                           if test "X$x" = "X-L$additional_libdir"; then
60304                             haveit=yes
60305                             break
60306                           fi
60307                         done
60308                         if test -z "$haveit"; then
60309                           if test -d "$additional_libdir"; then
60310                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
60311                           fi
60312                         fi
60313                       fi
60314                     fi
60315                     ;;
60316                   -R*)
60317                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
60318                     if test "$enable_rpath" != no; then
60319                                                                   haveit=
60320                       for x in $rpathdirs; do
60321                         if test "X$x" = "X$dir"; then
60322                           haveit=yes
60323                           break
60324                         fi
60325                       done
60326                       if test -z "$haveit"; then
60327                         rpathdirs="$rpathdirs $dir"
60328                       fi
60329                                                                   haveit=
60330                       for x in $ltrpathdirs; do
60331                         if test "X$x" = "X$dir"; then
60332                           haveit=yes
60333                           break
60334                         fi
60335                       done
60336                       if test -z "$haveit"; then
60337                         ltrpathdirs="$ltrpathdirs $dir"
60338                       fi
60339                     fi
60340                     ;;
60341                   -l*)
60342                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
60343                     ;;
60344                   *.la)
60345                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
60346                     ;;
60347                   *)
60348                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
60349                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
60350                     ;;
60351                 esac
60352               done
60353             fi
60354           else
60355                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
60356             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
60357           fi
60358         fi
60359       fi
60360     done
60361   done
60362   if test "X$rpathdirs" != "X"; then
60363     if test -n "$hardcode_libdir_separator"; then
60364                         alldirs=
60365       for found_dir in $rpathdirs; do
60366         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
60367       done
60368             acl_save_libdir="$libdir"
60369       libdir="$alldirs"
60370       eval flag=\"$hardcode_libdir_flag_spec\"
60371       libdir="$acl_save_libdir"
60372       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
60373     else
60374             for found_dir in $rpathdirs; do
60375         acl_save_libdir="$libdir"
60376         libdir="$found_dir"
60377         eval flag=\"$hardcode_libdir_flag_spec\"
60378         libdir="$acl_save_libdir"
60379         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
60380       done
60381     fi
60382   fi
60383   if test "X$ltrpathdirs" != "X"; then
60384             for found_dir in $ltrpathdirs; do
60385       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
60386     done
60387   fi
60388
60389           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
60390 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
60391 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
60392   echo $ECHO_N "(cached) $ECHO_C" >&6
60393 else
60394   gt_save_CPPFLAGS="$CPPFLAGS"
60395             CPPFLAGS="$CPPFLAGS $INCINTL"
60396             gt_save_LIBS="$LIBS"
60397             LIBS="$LIBS $LIBINTL"
60398                         cat >conftest.$ac_ext <<_ACEOF
60399 /* confdefs.h.  */
60400 _ACEOF
60401 cat confdefs.h >>conftest.$ac_ext
60402 cat >>conftest.$ac_ext <<_ACEOF
60403 /* end confdefs.h.  */
60404 #include <libintl.h>
60405 extern int _nl_msg_cat_cntr;
60406 extern
60407 #ifdef __cplusplus
60408 "C"
60409 #endif
60410 const char *_nl_expand_alias ();
60411 int
60412 main ()
60413 {
60414 bindtextdomain ("", "");
60415 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
60416   ;
60417   return 0;
60418 }
60419 _ACEOF
60420 rm -f conftest.$ac_objext conftest$ac_exeext
60421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60422   (eval $ac_link) 2>conftest.er1
60423   ac_status=$?
60424   grep -v '^ *+' conftest.er1 >conftest.err
60425   rm -f conftest.er1
60426   cat conftest.err >&5
60427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60428   (exit $ac_status); } &&
60429          { ac_try='test -z "$ac_c_werror_flag"
60430                          || test ! -s conftest.err'
60431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60432   (eval $ac_try) 2>&5
60433   ac_status=$?
60434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60435   (exit $ac_status); }; } &&
60436          { ac_try='test -s conftest$ac_exeext'
60437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60438   (eval $ac_try) 2>&5
60439   ac_status=$?
60440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60441   (exit $ac_status); }; }; then
60442   gt_cv_func_gnugettext2_libintl=yes
60443 else
60444   echo "$as_me: failed program was:" >&5
60445 sed 's/^/| /' conftest.$ac_ext >&5
60446
60447 gt_cv_func_gnugettext2_libintl=no
60448 fi
60449 rm -f conftest.err conftest.$ac_objext \
60450       conftest$ac_exeext conftest.$ac_ext
60451                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
60452               LIBS="$LIBS $LIBICONV"
60453               cat >conftest.$ac_ext <<_ACEOF
60454 /* confdefs.h.  */
60455 _ACEOF
60456 cat confdefs.h >>conftest.$ac_ext
60457 cat >>conftest.$ac_ext <<_ACEOF
60458 /* end confdefs.h.  */
60459 #include <libintl.h>
60460 extern int _nl_msg_cat_cntr;
60461 extern
60462 #ifdef __cplusplus
60463 "C"
60464 #endif
60465 const char *_nl_expand_alias ();
60466 int
60467 main ()
60468 {
60469 bindtextdomain ("", "");
60470 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
60471   ;
60472   return 0;
60473 }
60474 _ACEOF
60475 rm -f conftest.$ac_objext conftest$ac_exeext
60476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60477   (eval $ac_link) 2>conftest.er1
60478   ac_status=$?
60479   grep -v '^ *+' conftest.er1 >conftest.err
60480   rm -f conftest.er1
60481   cat conftest.err >&5
60482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60483   (exit $ac_status); } &&
60484          { ac_try='test -z "$ac_c_werror_flag"
60485                          || test ! -s conftest.err'
60486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60487   (eval $ac_try) 2>&5
60488   ac_status=$?
60489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60490   (exit $ac_status); }; } &&
60491          { ac_try='test -s conftest$ac_exeext'
60492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60493   (eval $ac_try) 2>&5
60494   ac_status=$?
60495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60496   (exit $ac_status); }; }; then
60497   LIBINTL="$LIBINTL $LIBICONV"
60498                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
60499                 gt_cv_func_gnugettext2_libintl=yes
60500
60501 else
60502   echo "$as_me: failed program was:" >&5
60503 sed 's/^/| /' conftest.$ac_ext >&5
60504
60505 fi
60506 rm -f conftest.err conftest.$ac_objext \
60507       conftest$ac_exeext conftest.$ac_ext
60508             fi
60509             CPPFLAGS="$gt_save_CPPFLAGS"
60510             LIBS="$gt_save_LIBS"
60511 fi
60512 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
60513 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
60514         fi
60515
60516                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
60517            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
60518                 && test "$PACKAGE" != gettext-runtime \
60519                 && test "$PACKAGE" != gettext-tools; }; then
60520           gt_use_preinstalled_gnugettext=yes
60521         else
60522                     LIBINTL=
60523           LTLIBINTL=
60524           INCINTL=
60525         fi
60526
60527
60528
60529     if test "$gt_use_preinstalled_gnugettext" = "yes" \
60530        || test "$nls_cv_use_gnu_gettext" = "yes"; then
60531
60532 cat >>confdefs.h <<\_ACEOF
60533 #define ENABLE_NLS 1
60534 _ACEOF
60535
60536     else
60537       USE_NLS=no
60538     fi
60539   fi
60540
60541   echo "$as_me:$LINENO: checking whether to use NLS" >&5
60542 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
60543   echo "$as_me:$LINENO: result: $USE_NLS" >&5
60544 echo "${ECHO_T}$USE_NLS" >&6
60545   if test "$USE_NLS" = "yes"; then
60546     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
60547 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
60548     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
60549       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
60550         gt_source="external libintl"
60551       else
60552         gt_source="libc"
60553       fi
60554     else
60555       gt_source="included intl directory"
60556     fi
60557     echo "$as_me:$LINENO: result: $gt_source" >&5
60558 echo "${ECHO_T}$gt_source" >&6
60559   fi
60560
60561   if test "$USE_NLS" = "yes"; then
60562
60563     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
60564       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
60565         echo "$as_me:$LINENO: checking how to link with libintl" >&5
60566 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
60567         echo "$as_me:$LINENO: result: $LIBINTL" >&5
60568 echo "${ECHO_T}$LIBINTL" >&6
60569
60570   for element in $INCINTL; do
60571     haveit=
60572     for x in $CPPFLAGS; do
60573
60574   acl_save_prefix="$prefix"
60575   prefix="$acl_final_prefix"
60576   acl_save_exec_prefix="$exec_prefix"
60577   exec_prefix="$acl_final_exec_prefix"
60578   eval x=\"$x\"
60579   exec_prefix="$acl_save_exec_prefix"
60580   prefix="$acl_save_prefix"
60581
60582       if test "X$x" = "X$element"; then
60583         haveit=yes
60584         break
60585       fi
60586     done
60587     if test -z "$haveit"; then
60588       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
60589     fi
60590   done
60591
60592       fi
60593
60594
60595 cat >>confdefs.h <<\_ACEOF
60596 #define HAVE_GETTEXT 1
60597 _ACEOF
60598
60599
60600 cat >>confdefs.h <<\_ACEOF
60601 #define HAVE_DCGETTEXT 1
60602 _ACEOF
60603
60604     fi
60605
60606         POSUB=po
60607   fi
60608
60609
60610
60611     INTLLIBS="$LIBINTL"
60612
60613
60614
60615
60616
60617
60618
60619
60620                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile man/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/readlink/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"
60621
60622 cat >confcache <<\_ACEOF
60623 # This file is a shell script that caches the results of configure
60624 # tests run on this system so they can be shared between configure
60625 # scripts and configure runs, see configure's option --config-cache.
60626 # It is not useful on other systems.  If it contains results you don't
60627 # want to keep, you may remove or edit it.
60628 #
60629 # config.status only pays attention to the cache file if you give it
60630 # the --recheck option to rerun configure.
60631 #
60632 # `ac_cv_env_foo' variables (set or unset) will be overridden when
60633 # loading this file, other *unset* `ac_cv_foo' will be assigned the
60634 # following values.
60635
60636 _ACEOF
60637
60638 # The following way of writing the cache mishandles newlines in values,
60639 # but we know of no workaround that is simple, portable, and efficient.
60640 # So, don't put newlines in cache variables' values.
60641 # Ultrix sh set writes to stderr and can't be redirected directly,
60642 # and sets the high bit in the cache file unless we assign to the vars.
60643 {
60644   (set) 2>&1 |
60645     case `(ac_space=' '; set | grep ac_space) 2>&1` in
60646     *ac_space=\ *)
60647       # `set' does not quote correctly, so add quotes (double-quote
60648       # substitution turns \\\\ into \\, and sed turns \\ into \).
60649       sed -n \
60650         "s/'/'\\\\''/g;
60651           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
60652       ;;
60653     *)
60654       # `set' quotes correctly as required by POSIX, so do not add quotes.
60655       sed -n \
60656         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
60657       ;;
60658     esac;
60659 } |
60660   sed '
60661      t clear
60662      : clear
60663      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
60664      t end
60665      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
60666      : end' >>confcache
60667 if diff $cache_file confcache >/dev/null 2>&1; then :; else
60668   if test -w $cache_file; then
60669     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
60670     cat confcache >$cache_file
60671   else
60672     echo "not updating unwritable cache $cache_file"
60673   fi
60674 fi
60675 rm -f confcache
60676
60677 test "x$prefix" = xNONE && prefix=$ac_default_prefix
60678 # Let make expand exec_prefix.
60679 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
60680
60681 # VPATH may cause trouble with some makes, so we remove $(srcdir),
60682 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
60683 # trailing colons and then remove the whole line if VPATH becomes empty
60684 # (actually we leave an empty line to preserve line numbers).
60685 if test "x$srcdir" = x.; then
60686   ac_vpsub='/^[  ]*VPATH[        ]*=/{
60687 s/:*\$(srcdir):*/:/;
60688 s/:*\${srcdir}:*/:/;
60689 s/:*@srcdir@:*/:/;
60690 s/^\([^=]*=[     ]*\):*/\1/;
60691 s/:*$//;
60692 s/^[^=]*=[       ]*$//;
60693 }'
60694 fi
60695
60696 DEFS=-DHAVE_CONFIG_H
60697
60698 ac_libobjs=
60699 ac_ltlibobjs=
60700 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
60701   # 1. Remove the extension, and $U if already installed.
60702   ac_i=`echo "$ac_i" |
60703          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
60704   # 2. Add them.
60705   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
60706   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
60707 done
60708 LIBOBJS=$ac_libobjs
60709
60710 LTLIBOBJS=$ac_ltlibobjs
60711
60712
60713 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
60714   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
60715 Usually this means the macro was only invoked conditionally." >&5
60716 echo "$as_me: error: conditional \"AMDEP\" was never defined.
60717 Usually this means the macro was only invoked conditionally." >&2;}
60718    { (exit 1); exit 1; }; }
60719 fi
60720 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
60721   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
60722 Usually this means the macro was only invoked conditionally." >&5
60723 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
60724 Usually this means the macro was only invoked conditionally." >&2;}
60725    { (exit 1); exit 1; }; }
60726 fi
60727 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
60728   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
60729 Usually this means the macro was only invoked conditionally." >&5
60730 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
60731 Usually this means the macro was only invoked conditionally." >&2;}
60732    { (exit 1); exit 1; }; }
60733 fi
60734
60735 : ${CONFIG_STATUS=./config.status}
60736 ac_clean_files_save=$ac_clean_files
60737 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
60738 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
60739 echo "$as_me: creating $CONFIG_STATUS" >&6;}
60740 cat >$CONFIG_STATUS <<_ACEOF
60741 #! $SHELL
60742 # Generated by $as_me.
60743 # Run this file to recreate the current configuration.
60744 # Compiler output produced by configure, useful for debugging
60745 # configure, is in config.log if it exists.
60746
60747 debug=false
60748 ac_cs_recheck=false
60749 ac_cs_silent=false
60750 SHELL=\${CONFIG_SHELL-$SHELL}
60751 _ACEOF
60752
60753 cat >>$CONFIG_STATUS <<\_ACEOF
60754 ## --------------------- ##
60755 ## M4sh Initialization.  ##
60756 ## --------------------- ##
60757
60758 # Be Bourne compatible
60759 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
60760   emulate sh
60761   NULLCMD=:
60762   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
60763   # is contrary to our usage.  Disable this feature.
60764   alias -g '${1+"$@"}'='"$@"'
60765 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
60766   set -o posix
60767 fi
60768 DUALCASE=1; export DUALCASE # for MKS sh
60769
60770 # Support unset when possible.
60771 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60772   as_unset=unset
60773 else
60774   as_unset=false
60775 fi
60776
60777
60778 # Work around bugs in pre-3.0 UWIN ksh.
60779 $as_unset ENV MAIL MAILPATH
60780 PS1='$ '
60781 PS2='> '
60782 PS4='+ '
60783
60784 # NLS nuisances.
60785 for as_var in \
60786   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
60787   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
60788   LC_TELEPHONE LC_TIME
60789 do
60790   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
60791     eval $as_var=C; export $as_var
60792   else
60793     $as_unset $as_var
60794   fi
60795 done
60796
60797 # Required to use basename.
60798 if expr a : '\(a\)' >/dev/null 2>&1; then
60799   as_expr=expr
60800 else
60801   as_expr=false
60802 fi
60803
60804 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60805   as_basename=basename
60806 else
60807   as_basename=false
60808 fi
60809
60810
60811 # Name of the executable.
60812 as_me=`$as_basename "$0" ||
60813 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
60814          X"$0" : 'X\(//\)$' \| \
60815          X"$0" : 'X\(/\)$' \| \
60816          .     : '\(.\)' 2>/dev/null ||
60817 echo X/"$0" |
60818     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
60819           /^X\/\(\/\/\)$/{ s//\1/; q; }
60820           /^X\/\(\/\).*/{ s//\1/; q; }
60821           s/.*/./; q'`
60822
60823
60824 # PATH needs CR, and LINENO needs CR and PATH.
60825 # Avoid depending upon Character Ranges.
60826 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
60827 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
60828 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
60829 as_cr_digits='0123456789'
60830 as_cr_alnum=$as_cr_Letters$as_cr_digits
60831
60832 # The user is always right.
60833 if test "${PATH_SEPARATOR+set}" != set; then
60834   echo "#! /bin/sh" >conf$$.sh
60835   echo  "exit 0"   >>conf$$.sh
60836   chmod +x conf$$.sh
60837   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
60838     PATH_SEPARATOR=';'
60839   else
60840     PATH_SEPARATOR=:
60841   fi
60842   rm -f conf$$.sh
60843 fi
60844
60845
60846   as_lineno_1=$LINENO
60847   as_lineno_2=$LINENO
60848   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
60849   test "x$as_lineno_1" != "x$as_lineno_2" &&
60850   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
60851   # Find who we are.  Look in the path if we contain no path at all
60852   # relative or not.
60853   case $0 in
60854     *[\\/]* ) as_myself=$0 ;;
60855     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
60856 for as_dir in $PATH
60857 do
60858   IFS=$as_save_IFS
60859   test -z "$as_dir" && as_dir=.
60860   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
60861 done
60862
60863        ;;
60864   esac
60865   # We did not find ourselves, most probably we were run as `sh COMMAND'
60866   # in which case we are not to be found in the path.
60867   if test "x$as_myself" = x; then
60868     as_myself=$0
60869   fi
60870   if test ! -f "$as_myself"; then
60871     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
60872 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
60873    { (exit 1); exit 1; }; }
60874   fi
60875   case $CONFIG_SHELL in
60876   '')
60877     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
60878 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
60879 do
60880   IFS=$as_save_IFS
60881   test -z "$as_dir" && as_dir=.
60882   for as_base in sh bash ksh sh5; do
60883          case $as_dir in
60884          /*)
60885            if ("$as_dir/$as_base" -c '
60886   as_lineno_1=$LINENO
60887   as_lineno_2=$LINENO
60888   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
60889   test "x$as_lineno_1" != "x$as_lineno_2" &&
60890   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
60891              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
60892              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
60893              CONFIG_SHELL=$as_dir/$as_base
60894              export CONFIG_SHELL
60895              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
60896            fi;;
60897          esac
60898        done
60899 done
60900 ;;
60901   esac
60902
60903   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
60904   # uniformly replaced by the line number.  The first 'sed' inserts a
60905   # line-number line before each line; the second 'sed' does the real
60906   # work.  The second script uses 'N' to pair each line-number line
60907   # with the numbered line, and appends trailing '-' during
60908   # substitution so that $LINENO is not a special case at line end.
60909   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
60910   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
60911   sed '=' <$as_myself |
60912     sed '
60913       N
60914       s,$,-,
60915       : loop
60916       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
60917       t loop
60918       s,-$,,
60919       s,^['$as_cr_digits']*\n,,
60920     ' >$as_me.lineno &&
60921   chmod +x $as_me.lineno ||
60922     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
60923 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
60924    { (exit 1); exit 1; }; }
60925
60926   # Don't try to exec as it changes $[0], causing all sort of problems
60927   # (the dirname of $[0] is not the place where we might find the
60928   # original and so on.  Autoconf is especially sensible to this).
60929   . ./$as_me.lineno
60930   # Exit status is that of the last command.
60931   exit
60932 }
60933
60934
60935 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
60936   *c*,-n*) ECHO_N= ECHO_C='
60937 ' ECHO_T='      ' ;;
60938   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
60939   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
60940 esac
60941
60942 if expr a : '\(a\)' >/dev/null 2>&1; then
60943   as_expr=expr
60944 else
60945   as_expr=false
60946 fi
60947
60948 rm -f conf$$ conf$$.exe conf$$.file
60949 echo >conf$$.file
60950 if ln -s conf$$.file conf$$ 2>/dev/null; then
60951   # We could just check for DJGPP; but this test a) works b) is more generic
60952   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
60953   if test -f conf$$.exe; then
60954     # Don't use ln at all; we don't have any links
60955     as_ln_s='cp -p'
60956   else
60957     as_ln_s='ln -s'
60958   fi
60959 elif ln conf$$.file conf$$ 2>/dev/null; then
60960   as_ln_s=ln
60961 else
60962   as_ln_s='cp -p'
60963 fi
60964 rm -f conf$$ conf$$.exe conf$$.file
60965
60966 if mkdir -p . 2>/dev/null; then
60967   as_mkdir_p=:
60968 else
60969   test -d ./-p && rmdir ./-p
60970   as_mkdir_p=false
60971 fi
60972
60973 as_executable_p="test -f"
60974
60975 # Sed expression to map a string onto a valid CPP name.
60976 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
60977
60978 # Sed expression to map a string onto a valid variable name.
60979 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
60980
60981
60982 # IFS
60983 # We need space, tab and new line, in precisely that order.
60984 as_nl='
60985 '
60986 IFS="   $as_nl"
60987
60988 # CDPATH.
60989 $as_unset CDPATH
60990
60991 exec 6>&1
60992
60993 # Open the log real soon, to keep \$[0] and so on meaningful, and to
60994 # report actual input values of CONFIG_FILES etc. instead of their
60995 # values after options handling.  Logging --version etc. is OK.
60996 exec 5>>config.log
60997 {
60998   echo
60999   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
61000 ## Running $as_me. ##
61001 _ASBOX
61002 } >&5
61003 cat >&5 <<_CSEOF
61004
61005 This file was extended by GNU coreutils $as_me 5.3.0, which was
61006 generated by GNU Autoconf 2.59.  Invocation command line was
61007
61008   CONFIG_FILES    = $CONFIG_FILES
61009   CONFIG_HEADERS  = $CONFIG_HEADERS
61010   CONFIG_LINKS    = $CONFIG_LINKS
61011   CONFIG_COMMANDS = $CONFIG_COMMANDS
61012   $ $0 $@
61013
61014 _CSEOF
61015 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
61016 echo >&5
61017 _ACEOF
61018
61019 # Files that config.status was made for.
61020 if test -n "$ac_config_files"; then
61021   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
61022 fi
61023
61024 if test -n "$ac_config_headers"; then
61025   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
61026 fi
61027
61028 if test -n "$ac_config_links"; then
61029   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
61030 fi
61031
61032 if test -n "$ac_config_commands"; then
61033   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
61034 fi
61035
61036 cat >>$CONFIG_STATUS <<\_ACEOF
61037
61038 ac_cs_usage="\
61039 \`$as_me' instantiates files from templates according to the
61040 current configuration.
61041
61042 Usage: $0 [OPTIONS] [FILE]...
61043
61044   -h, --help       print this help, then exit
61045   -V, --version    print version number, then exit
61046   -q, --quiet      do not print progress messages
61047   -d, --debug      don't remove temporary files
61048       --recheck    update $as_me by reconfiguring in the same conditions
61049   --file=FILE[:TEMPLATE]
61050                    instantiate the configuration file FILE
61051   --header=FILE[:TEMPLATE]
61052                    instantiate the configuration header FILE
61053
61054 Configuration files:
61055 $config_files
61056
61057 Configuration headers:
61058 $config_headers
61059
61060 Configuration commands:
61061 $config_commands
61062
61063 Report bugs to <bug-autoconf@gnu.org>."
61064 _ACEOF
61065
61066 cat >>$CONFIG_STATUS <<_ACEOF
61067 ac_cs_version="\\
61068 GNU coreutils config.status 5.3.0
61069 configured by $0, generated by GNU Autoconf 2.59,
61070   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
61071
61072 Copyright (C) 2003 Free Software Foundation, Inc.
61073 This config.status script is free software; the Free Software Foundation
61074 gives unlimited permission to copy, distribute and modify it."
61075 srcdir=$srcdir
61076 INSTALL="$INSTALL"
61077 _ACEOF
61078
61079 cat >>$CONFIG_STATUS <<\_ACEOF
61080 # If no file are specified by the user, then we need to provide default
61081 # value.  By we need to know if files were specified by the user.
61082 ac_need_defaults=:
61083 while test $# != 0
61084 do
61085   case $1 in
61086   --*=*)
61087     ac_option=`expr "x$1" : 'x\([^=]*\)='`
61088     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
61089     ac_shift=:
61090     ;;
61091   -*)
61092     ac_option=$1
61093     ac_optarg=$2
61094     ac_shift=shift
61095     ;;
61096   *) # This is not an option, so the user has probably given explicit
61097      # arguments.
61098      ac_option=$1
61099      ac_need_defaults=false;;
61100   esac
61101
61102   case $ac_option in
61103   # Handling of the options.
61104 _ACEOF
61105 cat >>$CONFIG_STATUS <<\_ACEOF
61106   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
61107     ac_cs_recheck=: ;;
61108   --version | --vers* | -V )
61109     echo "$ac_cs_version"; exit 0 ;;
61110   --he | --h)
61111     # Conflict between --help and --header
61112     { { echo "$as_me:$LINENO: error: ambiguous option: $1
61113 Try \`$0 --help' for more information." >&5
61114 echo "$as_me: error: ambiguous option: $1
61115 Try \`$0 --help' for more information." >&2;}
61116    { (exit 1); exit 1; }; };;
61117   --help | --hel | -h )
61118     echo "$ac_cs_usage"; exit 0 ;;
61119   --debug | --d* | -d )
61120     debug=: ;;
61121   --file | --fil | --fi | --f )
61122     $ac_shift
61123     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
61124     ac_need_defaults=false;;
61125   --header | --heade | --head | --hea )
61126     $ac_shift
61127     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
61128     ac_need_defaults=false;;
61129   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
61130   | -silent | --silent | --silen | --sile | --sil | --si | --s)
61131     ac_cs_silent=: ;;
61132
61133   # This is an error.
61134   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
61135 Try \`$0 --help' for more information." >&5
61136 echo "$as_me: error: unrecognized option: $1
61137 Try \`$0 --help' for more information." >&2;}
61138    { (exit 1); exit 1; }; } ;;
61139
61140   *) ac_config_targets="$ac_config_targets $1" ;;
61141
61142   esac
61143   shift
61144 done
61145
61146 ac_configure_extra_args=
61147
61148 if $ac_cs_silent; then
61149   exec 6>/dev/null
61150   ac_configure_extra_args="$ac_configure_extra_args --silent"
61151 fi
61152
61153 _ACEOF
61154 cat >>$CONFIG_STATUS <<_ACEOF
61155 if \$ac_cs_recheck; then
61156   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
61157   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
61158 fi
61159
61160 _ACEOF
61161
61162 cat >>$CONFIG_STATUS <<_ACEOF
61163 #
61164 # INIT-COMMANDS section.
61165 #
61166
61167 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
61168 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
61169     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
61170     # from automake.
61171     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
61172     # Capture the value of LINGUAS because we need it to compute CATALOGS.
61173     LINGUAS="${LINGUAS-%UNSET%}"
61174
61175
61176 _ACEOF
61177
61178
61179
61180 cat >>$CONFIG_STATUS <<\_ACEOF
61181 for ac_config_target in $ac_config_targets
61182 do
61183   case "$ac_config_target" in
61184   # Handling of arguments.
61185   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
61186   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
61187   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
61188   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
61189   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
61190   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
61191   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
61192   "tests/basename/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/basename/Makefile" ;;
61193   "tests/chgrp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
61194   "tests/chmod/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
61195   "tests/chown/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
61196   "tests/cp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
61197   "tests/cut/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
61198   "tests/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/date/Makefile" ;;
61199   "tests/dd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
61200   "tests/dircolors/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
61201   "tests/du/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
61202   "tests/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
61203   "tests/factor/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
61204   "tests/fmt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
61205   "tests/head/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
61206   "tests/install/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
61207   "tests/join/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
61208   "tests/ln/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
61209   "tests/ls-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
61210   "tests/ls/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
61211   "tests/md5sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
61212   "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
61213   "tests/mkdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
61214   "tests/mv/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
61215   "tests/od/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
61216   "tests/pr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
61217   "tests/readlink/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/readlink/Makefile" ;;
61218   "tests/rm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
61219   "tests/rmdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
61220   "tests/seq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
61221   "tests/sha1sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
61222   "tests/shred/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
61223   "tests/sort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
61224   "tests/stty/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
61225   "tests/sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
61226   "tests/tac/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
61227   "tests/tail-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
61228   "tests/tail/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
61229   "tests/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
61230   "tests/touch/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
61231   "tests/tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
61232   "tests/tsort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
61233   "tests/unexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
61234   "tests/uniq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
61235   "tests/wc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
61236   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
61237   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
61238   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
61239   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
61240 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
61241    { (exit 1); exit 1; }; };;
61242   esac
61243 done
61244
61245 # If the user did not use the arguments to specify the items to instantiate,
61246 # then the envvar interface is used.  Set only those that are not.
61247 # We use the long form for the default assignment because of an extremely
61248 # bizarre bug on SunOS 4.1.3.
61249 if $ac_need_defaults; then
61250   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
61251   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
61252   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
61253 fi
61254
61255 # Have a temporary directory for convenience.  Make it in the build tree
61256 # simply because there is no reason to put it here, and in addition,
61257 # creating and moving files from /tmp can sometimes cause problems.
61258 # Create a temporary directory, and hook for its removal unless debugging.
61259 $debug ||
61260 {
61261   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
61262   trap '{ (exit 1); exit 1; }' 1 2 13 15
61263 }
61264
61265 # Create a (secure) tmp directory for tmp files.
61266
61267 {
61268   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
61269   test -n "$tmp" && test -d "$tmp"
61270 }  ||
61271 {
61272   tmp=./confstat$$-$RANDOM
61273   (umask 077 && mkdir $tmp)
61274 } ||
61275 {
61276    echo "$me: cannot create a temporary directory in ." >&2
61277    { (exit 1); exit 1; }
61278 }
61279
61280 _ACEOF
61281
61282 cat >>$CONFIG_STATUS <<_ACEOF
61283
61284 #
61285 # CONFIG_FILES section.
61286 #
61287
61288 # No need to generate the scripts if there are no CONFIG_FILES.
61289 # This happens for instance when ./config.status config.h
61290 if test -n "\$CONFIG_FILES"; then
61291   # Protect against being on the right side of a sed subst in config.status.
61292   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
61293    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
61294 s,@SHELL@,$SHELL,;t t
61295 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
61296 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
61297 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
61298 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
61299 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
61300 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
61301 s,@exec_prefix@,$exec_prefix,;t t
61302 s,@prefix@,$prefix,;t t
61303 s,@program_transform_name@,$program_transform_name,;t t
61304 s,@bindir@,$bindir,;t t
61305 s,@sbindir@,$sbindir,;t t
61306 s,@libexecdir@,$libexecdir,;t t
61307 s,@datadir@,$datadir,;t t
61308 s,@sysconfdir@,$sysconfdir,;t t
61309 s,@sharedstatedir@,$sharedstatedir,;t t
61310 s,@localstatedir@,$localstatedir,;t t
61311 s,@libdir@,$libdir,;t t
61312 s,@includedir@,$includedir,;t t
61313 s,@oldincludedir@,$oldincludedir,;t t
61314 s,@infodir@,$infodir,;t t
61315 s,@mandir@,$mandir,;t t
61316 s,@build_alias@,$build_alias,;t t
61317 s,@host_alias@,$host_alias,;t t
61318 s,@target_alias@,$target_alias,;t t
61319 s,@DEFS@,$DEFS,;t t
61320 s,@ECHO_C@,$ECHO_C,;t t
61321 s,@ECHO_N@,$ECHO_N,;t t
61322 s,@ECHO_T@,$ECHO_T,;t t
61323 s,@LIBS@,$LIBS,;t t
61324 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
61325 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
61326 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
61327 s,@CYGPATH_W@,$CYGPATH_W,;t t
61328 s,@PACKAGE@,$PACKAGE,;t t
61329 s,@VERSION@,$VERSION,;t t
61330 s,@ACLOCAL@,$ACLOCAL,;t t
61331 s,@AUTOCONF@,$AUTOCONF,;t t
61332 s,@AUTOMAKE@,$AUTOMAKE,;t t
61333 s,@AUTOHEADER@,$AUTOHEADER,;t t
61334 s,@MAKEINFO@,$MAKEINFO,;t t
61335 s,@install_sh@,$install_sh,;t t
61336 s,@STRIP@,$STRIP,;t t
61337 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
61338 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
61339 s,@mkdir_p@,$mkdir_p,;t t
61340 s,@AWK@,$AWK,;t t
61341 s,@SET_MAKE@,$SET_MAKE,;t t
61342 s,@am__leading_dot@,$am__leading_dot,;t t
61343 s,@AMTAR@,$AMTAR,;t t
61344 s,@am__tar@,$am__tar,;t t
61345 s,@am__untar@,$am__untar,;t t
61346 s,@DEFAULT_POSIX2_VERSION@,$DEFAULT_POSIX2_VERSION,;t t
61347 s,@CC@,$CC,;t t
61348 s,@CFLAGS@,$CFLAGS,;t t
61349 s,@LDFLAGS@,$LDFLAGS,;t t
61350 s,@CPPFLAGS@,$CPPFLAGS,;t t
61351 s,@ac_ct_CC@,$ac_ct_CC,;t t
61352 s,@EXEEXT@,$EXEEXT,;t t
61353 s,@OBJEXT@,$OBJEXT,;t t
61354 s,@DEPDIR@,$DEPDIR,;t t
61355 s,@am__include@,$am__include,;t t
61356 s,@am__quote@,$am__quote,;t t
61357 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
61358 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
61359 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
61360 s,@CCDEPMODE@,$CCDEPMODE,;t t
61361 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
61362 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
61363 s,@CPP@,$CPP,;t t
61364 s,@EGREP@,$EGREP,;t t
61365 s,@PERL@,$PERL,;t t
61366 s,@RANLIB@,$RANLIB,;t t
61367 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
61368 s,@LN_S@,$LN_S,;t t
61369 s,@build@,$build,;t t
61370 s,@build_cpu@,$build_cpu,;t t
61371 s,@build_vendor@,$build_vendor,;t t
61372 s,@build_os@,$build_os,;t t
61373 s,@host@,$host,;t t
61374 s,@host_cpu@,$host_cpu,;t t
61375 s,@host_vendor@,$host_vendor,;t t
61376 s,@host_os@,$host_os,;t t
61377 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
61378 s,@HELP2MAN@,$HELP2MAN,;t t
61379 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
61380 s,@MAN@,$MAN,;t t
61381 s,@DF_PROG@,$DF_PROG,;t t
61382 s,@U@,$U,;t t
61383 s,@ANSI2KNR@,$ANSI2KNR,;t t
61384 s,@LIBOBJS@,$LIBOBJS,;t t
61385 s,@STDBOOL_H@,$STDBOOL_H,;t t
61386 s,@HAVE__BOOL@,$HAVE__BOOL,;t t
61387 s,@ALLOCA@,$ALLOCA,;t t
61388 s,@ALLOCA_H@,$ALLOCA_H,;t t
61389 s,@FNMATCH_H@,$FNMATCH_H,;t t
61390 s,@NEED_SETGID@,$NEED_SETGID,;t t
61391 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
61392 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
61393 s,@LIB_EACCESS@,$LIB_EACCESS,;t t
61394 s,@POW_LIB@,$POW_LIB,;t t
61395 s,@EOVERFLOW@,$EOVERFLOW,;t t
61396 s,@YACC@,$YACC,;t t
61397 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
61398 s,@GETOPT_H@,$GETOPT_H,;t t
61399 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
61400 s,@LIB_FDATASYNC@,$LIB_FDATASYNC,;t t
61401 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
61402 s,@GLIBC21@,$GLIBC21,;t t
61403 s,@LIBICONV@,$LIBICONV,;t t
61404 s,@LTLIBICONV@,$LTLIBICONV,;t t
61405 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
61406 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
61407 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
61408 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
61409 s,@USE_NLS@,$USE_NLS,;t t
61410 s,@MSGFMT@,$MSGFMT,;t t
61411 s,@GMSGFMT@,$GMSGFMT,;t t
61412 s,@XGETTEXT@,$XGETTEXT,;t t
61413 s,@MSGMERGE@,$MSGMERGE,;t t
61414 s,@INTLLIBS@,$INTLLIBS,;t t
61415 s,@LIBINTL@,$LIBINTL,;t t
61416 s,@LTLIBINTL@,$LTLIBINTL,;t t
61417 s,@POSUB@,$POSUB,;t t
61418 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
61419 CEOF
61420
61421 _ACEOF
61422
61423   cat >>$CONFIG_STATUS <<\_ACEOF
61424   # Split the substitutions into bite-sized pieces for seds with
61425   # small command number limits, like on Digital OSF/1 and HP-UX.
61426   ac_max_sed_lines=48
61427   ac_sed_frag=1 # Number of current file.
61428   ac_beg=1 # First line for current file.
61429   ac_end=$ac_max_sed_lines # Line after last line for current file.
61430   ac_more_lines=:
61431   ac_sed_cmds=
61432   while $ac_more_lines; do
61433     if test $ac_beg -gt 1; then
61434       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
61435     else
61436       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
61437     fi
61438     if test ! -s $tmp/subs.frag; then
61439       ac_more_lines=false
61440     else
61441       # The purpose of the label and of the branching condition is to
61442       # speed up the sed processing (if there are no `@' at all, there
61443       # is no need to browse any of the substitutions).
61444       # These are the two extra sed commands mentioned above.
61445       (echo ':t
61446   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
61447       if test -z "$ac_sed_cmds"; then
61448         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
61449       else
61450         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
61451       fi
61452       ac_sed_frag=`expr $ac_sed_frag + 1`
61453       ac_beg=$ac_end
61454       ac_end=`expr $ac_end + $ac_max_sed_lines`
61455     fi
61456   done
61457   if test -z "$ac_sed_cmds"; then
61458     ac_sed_cmds=cat
61459   fi
61460 fi # test -n "$CONFIG_FILES"
61461
61462 _ACEOF
61463 cat >>$CONFIG_STATUS <<\_ACEOF
61464 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
61465   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
61466   case $ac_file in
61467   - | *:- | *:-:* ) # input from stdin
61468         cat >$tmp/stdin
61469         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
61470         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
61471   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
61472         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
61473   * )   ac_file_in=$ac_file.in ;;
61474   esac
61475
61476   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
61477   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
61478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61479          X"$ac_file" : 'X\(//\)[^/]' \| \
61480          X"$ac_file" : 'X\(//\)$' \| \
61481          X"$ac_file" : 'X\(/\)' \| \
61482          .     : '\(.\)' 2>/dev/null ||
61483 echo X"$ac_file" |
61484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
61485           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
61486           /^X\(\/\/\)$/{ s//\1/; q; }
61487           /^X\(\/\).*/{ s//\1/; q; }
61488           s/.*/./; q'`
61489   { if $as_mkdir_p; then
61490     mkdir -p "$ac_dir"
61491   else
61492     as_dir="$ac_dir"
61493     as_dirs=
61494     while test ! -d "$as_dir"; do
61495       as_dirs="$as_dir $as_dirs"
61496       as_dir=`(dirname "$as_dir") 2>/dev/null ||
61497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61498          X"$as_dir" : 'X\(//\)[^/]' \| \
61499          X"$as_dir" : 'X\(//\)$' \| \
61500          X"$as_dir" : 'X\(/\)' \| \
61501          .     : '\(.\)' 2>/dev/null ||
61502 echo X"$as_dir" |
61503     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
61504           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
61505           /^X\(\/\/\)$/{ s//\1/; q; }
61506           /^X\(\/\).*/{ s//\1/; q; }
61507           s/.*/./; q'`
61508     done
61509     test ! -n "$as_dirs" || mkdir $as_dirs
61510   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
61511 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
61512    { (exit 1); exit 1; }; }; }
61513
61514   ac_builddir=.
61515
61516 if test "$ac_dir" != .; then
61517   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
61518   # A "../" for each directory in $ac_dir_suffix.
61519   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
61520 else
61521   ac_dir_suffix= ac_top_builddir=
61522 fi
61523
61524 case $srcdir in
61525   .)  # No --srcdir option.  We are building in place.
61526     ac_srcdir=.
61527     if test -z "$ac_top_builddir"; then
61528        ac_top_srcdir=.
61529     else
61530        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
61531     fi ;;
61532   [\\/]* | ?:[\\/]* )  # Absolute path.
61533     ac_srcdir=$srcdir$ac_dir_suffix;
61534     ac_top_srcdir=$srcdir ;;
61535   *) # Relative path.
61536     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
61537     ac_top_srcdir=$ac_top_builddir$srcdir ;;
61538 esac
61539
61540 # Do not use `cd foo && pwd` to compute absolute paths, because
61541 # the directories may not exist.
61542 case `pwd` in
61543 .) ac_abs_builddir="$ac_dir";;
61544 *)
61545   case "$ac_dir" in
61546   .) ac_abs_builddir=`pwd`;;
61547   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
61548   *) ac_abs_builddir=`pwd`/"$ac_dir";;
61549   esac;;
61550 esac
61551 case $ac_abs_builddir in
61552 .) ac_abs_top_builddir=${ac_top_builddir}.;;
61553 *)
61554   case ${ac_top_builddir}. in
61555   .) ac_abs_top_builddir=$ac_abs_builddir;;
61556   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
61557   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
61558   esac;;
61559 esac
61560 case $ac_abs_builddir in
61561 .) ac_abs_srcdir=$ac_srcdir;;
61562 *)
61563   case $ac_srcdir in
61564   .) ac_abs_srcdir=$ac_abs_builddir;;
61565   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
61566   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
61567   esac;;
61568 esac
61569 case $ac_abs_builddir in
61570 .) ac_abs_top_srcdir=$ac_top_srcdir;;
61571 *)
61572   case $ac_top_srcdir in
61573   .) ac_abs_top_srcdir=$ac_abs_builddir;;
61574   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
61575   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
61576   esac;;
61577 esac
61578
61579
61580   case $INSTALL in
61581   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
61582   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
61583   esac
61584
61585   if test x"$ac_file" != x-; then
61586     { echo "$as_me:$LINENO: creating $ac_file" >&5
61587 echo "$as_me: creating $ac_file" >&6;}
61588     rm -f "$ac_file"
61589   fi
61590   # Let's still pretend it is `configure' which instantiates (i.e., don't
61591   # use $as_me), people would be surprised to read:
61592   #    /* config.h.  Generated by config.status.  */
61593   if test x"$ac_file" = x-; then
61594     configure_input=
61595   else
61596     configure_input="$ac_file.  "
61597   fi
61598   configure_input=$configure_input"Generated from `echo $ac_file_in |
61599                                      sed 's,.*/,,'` by configure."
61600
61601   # First look for the input files in the build tree, otherwise in the
61602   # src tree.
61603   ac_file_inputs=`IFS=:
61604     for f in $ac_file_in; do
61605       case $f in
61606       -) echo $tmp/stdin ;;
61607       [\\/$]*)
61608          # Absolute (can't be DOS-style, as IFS=:)
61609          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
61610 echo "$as_me: error: cannot find input file: $f" >&2;}
61611    { (exit 1); exit 1; }; }
61612          echo "$f";;
61613       *) # Relative
61614          if test -f "$f"; then
61615            # Build tree
61616            echo "$f"
61617          elif test -f "$srcdir/$f"; then
61618            # Source tree
61619            echo "$srcdir/$f"
61620          else
61621            # /dev/null tree
61622            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
61623 echo "$as_me: error: cannot find input file: $f" >&2;}
61624    { (exit 1); exit 1; }; }
61625          fi;;
61626       esac
61627     done` || { (exit 1); exit 1; }
61628 _ACEOF
61629 cat >>$CONFIG_STATUS <<_ACEOF
61630   sed "$ac_vpsub
61631 $extrasub
61632 _ACEOF
61633 cat >>$CONFIG_STATUS <<\_ACEOF
61634 :t
61635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
61636 s,@configure_input@,$configure_input,;t t
61637 s,@srcdir@,$ac_srcdir,;t t
61638 s,@abs_srcdir@,$ac_abs_srcdir,;t t
61639 s,@top_srcdir@,$ac_top_srcdir,;t t
61640 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
61641 s,@builddir@,$ac_builddir,;t t
61642 s,@abs_builddir@,$ac_abs_builddir,;t t
61643 s,@top_builddir@,$ac_top_builddir,;t t
61644 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
61645 s,@INSTALL@,$ac_INSTALL,;t t
61646 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
61647   rm -f $tmp/stdin
61648   if test x"$ac_file" != x-; then
61649     mv $tmp/out $ac_file
61650   else
61651     cat $tmp/out
61652     rm -f $tmp/out
61653   fi
61654
61655 done
61656 _ACEOF
61657 cat >>$CONFIG_STATUS <<\_ACEOF
61658
61659 #
61660 # CONFIG_HEADER section.
61661 #
61662
61663 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
61664 # NAME is the cpp macro being defined and VALUE is the value it is being given.
61665 #
61666 # ac_d sets the value in "#define NAME VALUE" lines.
61667 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
61668 ac_dB='[         ].*$,\1#\2'
61669 ac_dC=' '
61670 ac_dD=',;t'
61671 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
61672 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
61673 ac_uB='$,\1#\2define\3'
61674 ac_uC=' '
61675 ac_uD=',;t'
61676
61677 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
61678   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
61679   case $ac_file in
61680   - | *:- | *:-:* ) # input from stdin
61681         cat >$tmp/stdin
61682         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
61683         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
61684   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
61685         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
61686   * )   ac_file_in=$ac_file.in ;;
61687   esac
61688
61689   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
61690 echo "$as_me: creating $ac_file" >&6;}
61691
61692   # First look for the input files in the build tree, otherwise in the
61693   # src tree.
61694   ac_file_inputs=`IFS=:
61695     for f in $ac_file_in; do
61696       case $f in
61697       -) echo $tmp/stdin ;;
61698       [\\/$]*)
61699          # Absolute (can't be DOS-style, as IFS=:)
61700          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
61701 echo "$as_me: error: cannot find input file: $f" >&2;}
61702    { (exit 1); exit 1; }; }
61703          # Do quote $f, to prevent DOS paths from being IFS'd.
61704          echo "$f";;
61705       *) # Relative
61706          if test -f "$f"; then
61707            # Build tree
61708            echo "$f"
61709          elif test -f "$srcdir/$f"; then
61710            # Source tree
61711            echo "$srcdir/$f"
61712          else
61713            # /dev/null tree
61714            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
61715 echo "$as_me: error: cannot find input file: $f" >&2;}
61716    { (exit 1); exit 1; }; }
61717          fi;;
61718       esac
61719     done` || { (exit 1); exit 1; }
61720   # Remove the trailing spaces.
61721   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
61722
61723 _ACEOF
61724
61725 # Transform confdefs.h into two sed scripts, `conftest.defines' and
61726 # `conftest.undefs', that substitutes the proper values into
61727 # config.h.in to produce config.h.  The first handles `#define'
61728 # templates, and the second `#undef' templates.
61729 # And first: Protect against being on the right side of a sed subst in
61730 # config.status.  Protect against being in an unquoted here document
61731 # in config.status.
61732 rm -f conftest.defines conftest.undefs
61733 # Using a here document instead of a string reduces the quoting nightmare.
61734 # Putting comments in sed scripts is not portable.
61735 #
61736 # `end' is used to avoid that the second main sed command (meant for
61737 # 0-ary CPP macros) applies to n-ary macro definitions.
61738 # See the Autoconf documentation for `clear'.
61739 cat >confdef2sed.sed <<\_ACEOF
61740 s/[\\&,]/\\&/g
61741 s,[\\$`],\\&,g
61742 t clear
61743 : clear
61744 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
61745 t end
61746 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
61747 : end
61748 _ACEOF
61749 # If some macros were called several times there might be several times
61750 # the same #defines, which is useless.  Nevertheless, we may not want to
61751 # sort them, since we want the *last* AC-DEFINE to be honored.
61752 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
61753 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
61754 rm -f confdef2sed.sed
61755
61756 # This sed command replaces #undef with comments.  This is necessary, for
61757 # example, in the case of _POSIX_SOURCE, which is predefined and required
61758 # on some systems where configure will not decide to define it.
61759 cat >>conftest.undefs <<\_ACEOF
61760 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
61761 _ACEOF
61762
61763 # Break up conftest.defines because some shells have a limit on the size
61764 # of here documents, and old seds have small limits too (100 cmds).
61765 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
61766 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
61767 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
61768 echo '  :' >>$CONFIG_STATUS
61769 rm -f conftest.tail
61770 while grep . conftest.defines >/dev/null
61771 do
61772   # Write a limited-size here document to $tmp/defines.sed.
61773   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
61774   # Speed up: don't consider the non `#define' lines.
61775   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
61776   # Work around the forget-to-reset-the-flag bug.
61777   echo 't clr' >>$CONFIG_STATUS
61778   echo ': clr' >>$CONFIG_STATUS
61779   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
61780   echo 'CEOF
61781   sed -f $tmp/defines.sed $tmp/in >$tmp/out
61782   rm -f $tmp/in
61783   mv $tmp/out $tmp/in
61784 ' >>$CONFIG_STATUS
61785   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
61786   rm -f conftest.defines
61787   mv conftest.tail conftest.defines
61788 done
61789 rm -f conftest.defines
61790 echo '  fi # grep' >>$CONFIG_STATUS
61791 echo >>$CONFIG_STATUS
61792
61793 # Break up conftest.undefs because some shells have a limit on the size
61794 # of here documents, and old seds have small limits too (100 cmds).
61795 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
61796 rm -f conftest.tail
61797 while grep . conftest.undefs >/dev/null
61798 do
61799   # Write a limited-size here document to $tmp/undefs.sed.
61800   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
61801   # Speed up: don't consider the non `#undef'
61802   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
61803   # Work around the forget-to-reset-the-flag bug.
61804   echo 't clr' >>$CONFIG_STATUS
61805   echo ': clr' >>$CONFIG_STATUS
61806   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
61807   echo 'CEOF
61808   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
61809   rm -f $tmp/in
61810   mv $tmp/out $tmp/in
61811 ' >>$CONFIG_STATUS
61812   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
61813   rm -f conftest.undefs
61814   mv conftest.tail conftest.undefs
61815 done
61816 rm -f conftest.undefs
61817
61818 cat >>$CONFIG_STATUS <<\_ACEOF
61819   # Let's still pretend it is `configure' which instantiates (i.e., don't
61820   # use $as_me), people would be surprised to read:
61821   #    /* config.h.  Generated by config.status.  */
61822   if test x"$ac_file" = x-; then
61823     echo "/* Generated by configure.  */" >$tmp/config.h
61824   else
61825     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
61826   fi
61827   cat $tmp/in >>$tmp/config.h
61828   rm -f $tmp/in
61829   if test x"$ac_file" != x-; then
61830     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
61831       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
61832 echo "$as_me: $ac_file is unchanged" >&6;}
61833     else
61834       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
61835 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61836          X"$ac_file" : 'X\(//\)[^/]' \| \
61837          X"$ac_file" : 'X\(//\)$' \| \
61838          X"$ac_file" : 'X\(/\)' \| \
61839          .     : '\(.\)' 2>/dev/null ||
61840 echo X"$ac_file" |
61841     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
61842           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
61843           /^X\(\/\/\)$/{ s//\1/; q; }
61844           /^X\(\/\).*/{ s//\1/; q; }
61845           s/.*/./; q'`
61846       { if $as_mkdir_p; then
61847     mkdir -p "$ac_dir"
61848   else
61849     as_dir="$ac_dir"
61850     as_dirs=
61851     while test ! -d "$as_dir"; do
61852       as_dirs="$as_dir $as_dirs"
61853       as_dir=`(dirname "$as_dir") 2>/dev/null ||
61854 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61855          X"$as_dir" : 'X\(//\)[^/]' \| \
61856          X"$as_dir" : 'X\(//\)$' \| \
61857          X"$as_dir" : 'X\(/\)' \| \
61858          .     : '\(.\)' 2>/dev/null ||
61859 echo X"$as_dir" |
61860     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
61861           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
61862           /^X\(\/\/\)$/{ s//\1/; q; }
61863           /^X\(\/\).*/{ s//\1/; q; }
61864           s/.*/./; q'`
61865     done
61866     test ! -n "$as_dirs" || mkdir $as_dirs
61867   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
61868 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
61869    { (exit 1); exit 1; }; }; }
61870
61871       rm -f $ac_file
61872       mv $tmp/config.h $ac_file
61873     fi
61874   else
61875     cat $tmp/config.h
61876     rm -f $tmp/config.h
61877   fi
61878 # Compute $ac_file's index in $config_headers.
61879 _am_stamp_count=1
61880 for _am_header in $config_headers :; do
61881   case $_am_header in
61882     $ac_file | $ac_file:* )
61883       break ;;
61884     * )
61885       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
61886   esac
61887 done
61888 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
61889 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61890          X$ac_file : 'X\(//\)[^/]' \| \
61891          X$ac_file : 'X\(//\)$' \| \
61892          X$ac_file : 'X\(/\)' \| \
61893          .     : '\(.\)' 2>/dev/null ||
61894 echo X$ac_file |
61895     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
61896           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
61897           /^X\(\/\/\)$/{ s//\1/; q; }
61898           /^X\(\/\).*/{ s//\1/; q; }
61899           s/.*/./; q'`/stamp-h$_am_stamp_count
61900 done
61901 _ACEOF
61902 cat >>$CONFIG_STATUS <<\_ACEOF
61903
61904 #
61905 # CONFIG_COMMANDS section.
61906 #
61907 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
61908   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
61909   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
61910   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
61911 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61912          X"$ac_dest" : 'X\(//\)[^/]' \| \
61913          X"$ac_dest" : 'X\(//\)$' \| \
61914          X"$ac_dest" : 'X\(/\)' \| \
61915          .     : '\(.\)' 2>/dev/null ||
61916 echo X"$ac_dest" |
61917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
61918           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
61919           /^X\(\/\/\)$/{ s//\1/; q; }
61920           /^X\(\/\).*/{ s//\1/; q; }
61921           s/.*/./; q'`
61922   { if $as_mkdir_p; then
61923     mkdir -p "$ac_dir"
61924   else
61925     as_dir="$ac_dir"
61926     as_dirs=
61927     while test ! -d "$as_dir"; do
61928       as_dirs="$as_dir $as_dirs"
61929       as_dir=`(dirname "$as_dir") 2>/dev/null ||
61930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61931          X"$as_dir" : 'X\(//\)[^/]' \| \
61932          X"$as_dir" : 'X\(//\)$' \| \
61933          X"$as_dir" : 'X\(/\)' \| \
61934          .     : '\(.\)' 2>/dev/null ||
61935 echo X"$as_dir" |
61936     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
61937           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
61938           /^X\(\/\/\)$/{ s//\1/; q; }
61939           /^X\(\/\).*/{ s//\1/; q; }
61940           s/.*/./; q'`
61941     done
61942     test ! -n "$as_dirs" || mkdir $as_dirs
61943   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
61944 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
61945    { (exit 1); exit 1; }; }; }
61946
61947   ac_builddir=.
61948
61949 if test "$ac_dir" != .; then
61950   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
61951   # A "../" for each directory in $ac_dir_suffix.
61952   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
61953 else
61954   ac_dir_suffix= ac_top_builddir=
61955 fi
61956
61957 case $srcdir in
61958   .)  # No --srcdir option.  We are building in place.
61959     ac_srcdir=.
61960     if test -z "$ac_top_builddir"; then
61961        ac_top_srcdir=.
61962     else
61963        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
61964     fi ;;
61965   [\\/]* | ?:[\\/]* )  # Absolute path.
61966     ac_srcdir=$srcdir$ac_dir_suffix;
61967     ac_top_srcdir=$srcdir ;;
61968   *) # Relative path.
61969     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
61970     ac_top_srcdir=$ac_top_builddir$srcdir ;;
61971 esac
61972
61973 # Do not use `cd foo && pwd` to compute absolute paths, because
61974 # the directories may not exist.
61975 case `pwd` in
61976 .) ac_abs_builddir="$ac_dir";;
61977 *)
61978   case "$ac_dir" in
61979   .) ac_abs_builddir=`pwd`;;
61980   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
61981   *) ac_abs_builddir=`pwd`/"$ac_dir";;
61982   esac;;
61983 esac
61984 case $ac_abs_builddir in
61985 .) ac_abs_top_builddir=${ac_top_builddir}.;;
61986 *)
61987   case ${ac_top_builddir}. in
61988   .) ac_abs_top_builddir=$ac_abs_builddir;;
61989   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
61990   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
61991   esac;;
61992 esac
61993 case $ac_abs_builddir in
61994 .) ac_abs_srcdir=$ac_srcdir;;
61995 *)
61996   case $ac_srcdir in
61997   .) ac_abs_srcdir=$ac_abs_builddir;;
61998   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
61999   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
62000   esac;;
62001 esac
62002 case $ac_abs_builddir in
62003 .) ac_abs_top_srcdir=$ac_top_srcdir;;
62004 *)
62005   case $ac_top_srcdir in
62006   .) ac_abs_top_srcdir=$ac_abs_builddir;;
62007   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
62008   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
62009   esac;;
62010 esac
62011
62012
62013   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
62014 echo "$as_me: executing $ac_dest commands" >&6;}
62015   case $ac_dest in
62016     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
62017   # Strip MF so we end up with the name of the file.
62018   mf=`echo "$mf" | sed -e 's/:.*$//'`
62019   # Check whether this is an Automake generated Makefile or not.
62020   # We used to match only the files named `Makefile.in', but
62021   # some people rename them; so instead we look at the file content.
62022   # Grep'ing the first line is not enough: some people post-process
62023   # each Makefile.in and add a new line on top of each file to say so.
62024   # So let's grep whole file.
62025   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
62026     dirpart=`(dirname "$mf") 2>/dev/null ||
62027 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62028          X"$mf" : 'X\(//\)[^/]' \| \
62029          X"$mf" : 'X\(//\)$' \| \
62030          X"$mf" : 'X\(/\)' \| \
62031          .     : '\(.\)' 2>/dev/null ||
62032 echo X"$mf" |
62033     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
62034           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
62035           /^X\(\/\/\)$/{ s//\1/; q; }
62036           /^X\(\/\).*/{ s//\1/; q; }
62037           s/.*/./; q'`
62038   else
62039     continue
62040   fi
62041   # Extract the definition of DEPDIR, am__include, and am__quote
62042   # from the Makefile without running `make'.
62043   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
62044   test -z "$DEPDIR" && continue
62045   am__include=`sed -n 's/^am__include = //p' < "$mf"`
62046   test -z "am__include" && continue
62047   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
62048   # When using ansi2knr, U may be empty or an underscore; expand it
62049   U=`sed -n 's/^U = //p' < "$mf"`
62050   # Find all dependency output files, they are included files with
62051   # $(DEPDIR) in their names.  We invoke sed twice because it is the
62052   # simplest approach to changing $(DEPDIR) to its actual value in the
62053   # expansion.
62054   for file in `sed -n "
62055     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
62056        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
62057     # Make sure the directory exists.
62058     test -f "$dirpart/$file" && continue
62059     fdir=`(dirname "$file") 2>/dev/null ||
62060 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62061          X"$file" : 'X\(//\)[^/]' \| \
62062          X"$file" : 'X\(//\)$' \| \
62063          X"$file" : 'X\(/\)' \| \
62064          .     : '\(.\)' 2>/dev/null ||
62065 echo X"$file" |
62066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
62067           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
62068           /^X\(\/\/\)$/{ s//\1/; q; }
62069           /^X\(\/\).*/{ s//\1/; q; }
62070           s/.*/./; q'`
62071     { if $as_mkdir_p; then
62072     mkdir -p $dirpart/$fdir
62073   else
62074     as_dir=$dirpart/$fdir
62075     as_dirs=
62076     while test ! -d "$as_dir"; do
62077       as_dirs="$as_dir $as_dirs"
62078       as_dir=`(dirname "$as_dir") 2>/dev/null ||
62079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62080          X"$as_dir" : 'X\(//\)[^/]' \| \
62081          X"$as_dir" : 'X\(//\)$' \| \
62082          X"$as_dir" : 'X\(/\)' \| \
62083          .     : '\(.\)' 2>/dev/null ||
62084 echo X"$as_dir" |
62085     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
62086           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
62087           /^X\(\/\/\)$/{ s//\1/; q; }
62088           /^X\(\/\).*/{ s//\1/; q; }
62089           s/.*/./; q'`
62090     done
62091     test ! -n "$as_dirs" || mkdir $as_dirs
62092   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
62093 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
62094    { (exit 1); exit 1; }; }; }
62095
62096     # echo "creating $dirpart/$file"
62097     echo '# dummy' > "$dirpart/$file"
62098   done
62099 done
62100  ;;
62101     default-1 )
62102     for ac_file in $CONFIG_FILES; do
62103       # Support "outfile[:infile[:infile...]]"
62104       case "$ac_file" in
62105         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
62106       esac
62107       # PO directories have a Makefile.in generated from Makefile.in.in.
62108       case "$ac_file" in */Makefile.in)
62109         # Adjust a relative srcdir.
62110         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
62111         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
62112         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
62113         # In autoconf-2.13 it is called $ac_given_srcdir.
62114         # In autoconf-2.50 it is called $srcdir.
62115         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
62116         case "$ac_given_srcdir" in
62117           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
62118           /*) top_srcdir="$ac_given_srcdir" ;;
62119           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
62120         esac
62121         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
62122           rm -f "$ac_dir/POTFILES"
62123           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
62124           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
62125           POMAKEFILEDEPS="POTFILES.in"
62126           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
62127           # on $ac_dir but don't depend on user-specified configuration
62128           # parameters.
62129           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
62130             # The LINGUAS file contains the set of available languages.
62131             if test -n "$OBSOLETE_ALL_LINGUAS"; then
62132               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
62133             fi
62134             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
62135             # Hide the ALL_LINGUAS assigment from automake.
62136             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
62137             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
62138           else
62139             # The set of available languages was given in configure.in.
62140             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
62141           fi
62142           # Compute POFILES
62143           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
62144           # Compute UPDATEPOFILES
62145           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
62146           # Compute DUMMYPOFILES
62147           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
62148           # Compute GMOFILES
62149           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
62150           case "$ac_given_srcdir" in
62151             .) srcdirpre= ;;
62152             *) srcdirpre='$(srcdir)/' ;;
62153           esac
62154           POFILES=
62155           UPDATEPOFILES=
62156           DUMMYPOFILES=
62157           GMOFILES=
62158           for lang in $ALL_LINGUAS; do
62159             POFILES="$POFILES $srcdirpre$lang.po"
62160             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
62161             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
62162             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
62163           done
62164           # CATALOGS depends on both $ac_dir and the user's LINGUAS
62165           # environment variable.
62166           INST_LINGUAS=
62167           if test -n "$ALL_LINGUAS"; then
62168             for presentlang in $ALL_LINGUAS; do
62169               useit=no
62170               if test "%UNSET%" != "$LINGUAS"; then
62171                 desiredlanguages="$LINGUAS"
62172               else
62173                 desiredlanguages="$ALL_LINGUAS"
62174               fi
62175               for desiredlang in $desiredlanguages; do
62176                 # Use the presentlang catalog if desiredlang is
62177                 #   a. equal to presentlang, or
62178                 #   b. a variant of presentlang (because in this case,
62179                 #      presentlang can be used as a fallback for messages
62180                 #      which are not translated in the desiredlang catalog).
62181                 case "$desiredlang" in
62182                   "$presentlang"*) useit=yes;;
62183                 esac
62184               done
62185               if test $useit = yes; then
62186                 INST_LINGUAS="$INST_LINGUAS $presentlang"
62187               fi
62188             done
62189           fi
62190           CATALOGS=
62191           if test -n "$INST_LINGUAS"; then
62192             for lang in $INST_LINGUAS; do
62193               CATALOGS="$CATALOGS $lang.gmo"
62194             done
62195           fi
62196           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
62197           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
62198           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
62199             if test -f "$f"; then
62200               case "$f" in
62201                 *.orig | *.bak | *~) ;;
62202                 *) cat "$f" >> "$ac_dir/Makefile" ;;
62203               esac
62204             fi
62205           done
62206         fi
62207         ;;
62208       esac
62209     done ;;
62210   esac
62211 done
62212 _ACEOF
62213
62214 cat >>$CONFIG_STATUS <<\_ACEOF
62215
62216 { (exit 0); exit 0; }
62217 _ACEOF
62218 chmod +x $CONFIG_STATUS
62219 ac_clean_files=$ac_clean_files_save
62220
62221
62222 # configure is writing to config.log, and then calls config.status.
62223 # config.status does its own redirection, appending to config.log.
62224 # Unfortunately, on DOS this fails, as config.log is still kept open
62225 # by configure, so config.status won't be able to write to it; its
62226 # output is simply discarded.  So we exec the FD to /dev/null,
62227 # effectively closing config.log, so it can be properly (re)opened and
62228 # appended to by config.status.  When coming back to configure, we
62229 # need to make the FD available again.
62230 if test "$no_create" != yes; then
62231   ac_cs_success=:
62232   ac_config_status_args=
62233   test "$silent" = yes &&
62234     ac_config_status_args="$ac_config_status_args --quiet"
62235   exec 5>/dev/null
62236   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
62237   exec 5>>config.log
62238   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
62239   # would make configure fail if this is the last instruction.
62240   $ac_cs_success || { (exit 1); exit 1; }
62241 fi
62242