.
[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.2.1.
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.2.1'
273 PACKAGE_STRING='GNU coreutils 5.2.1'
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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot 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 POW_LIB YACC LIB_CLOCK_GETTIME LIB_NANOSLEEP 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.2.1 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.2.1:";;
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   --without-included-regex don't compile regex; this is the default on
872                           systems with version 2 of the GNU C library
873                           (use with caution on other system)
874   --with-gnu-ld           assume the C compiler uses GNU ld default=no
875   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
876   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
877   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
878   --without-libintl-prefix     don't search for libintl in includedir and libdir
879
880 Some influential environment variables:
881   DEFAULT_POSIX2_VERSION
882               POSIX version to default to; see 'config.hin'.
883   CC          C compiler command
884   CFLAGS      C compiler flags
885   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
886               nonstandard directory <lib dir>
887   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
888               headers in a nonstandard directory <include dir>
889   CPP         C preprocessor
890
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
893
894 Report bugs to <bug-coreutils@gnu.org>.
895 _ACEOF
896 fi
897
898 if test "$ac_init_help" = "recursive"; then
899   # If there are subdirs, report their specific --help.
900   ac_popdir=`pwd`
901   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902     test -d $ac_dir || continue
903     ac_builddir=.
904
905 if test "$ac_dir" != .; then
906   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907   # A "../" for each directory in $ac_dir_suffix.
908   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909 else
910   ac_dir_suffix= ac_top_builddir=
911 fi
912
913 case $srcdir in
914   .)  # No --srcdir option.  We are building in place.
915     ac_srcdir=.
916     if test -z "$ac_top_builddir"; then
917        ac_top_srcdir=.
918     else
919        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920     fi ;;
921   [\\/]* | ?:[\\/]* )  # Absolute path.
922     ac_srcdir=$srcdir$ac_dir_suffix;
923     ac_top_srcdir=$srcdir ;;
924   *) # Relative path.
925     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926     ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 esac
928
929 # Do not use `cd foo && pwd` to compute absolute paths, because
930 # the directories may not exist.
931 case `pwd` in
932 .) ac_abs_builddir="$ac_dir";;
933 *)
934   case "$ac_dir" in
935   .) ac_abs_builddir=`pwd`;;
936   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937   *) ac_abs_builddir=`pwd`/"$ac_dir";;
938   esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *)
943   case ${ac_top_builddir}. in
944   .) ac_abs_top_builddir=$ac_abs_builddir;;
945   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947   esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_srcdir=$ac_srcdir;;
951 *)
952   case $ac_srcdir in
953   .) ac_abs_srcdir=$ac_abs_builddir;;
954   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956   esac;;
957 esac
958 case $ac_abs_builddir in
959 .) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *)
961   case $ac_top_srcdir in
962   .) ac_abs_top_srcdir=$ac_abs_builddir;;
963   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965   esac;;
966 esac
967
968     cd $ac_dir
969     # Check for guested configure; otherwise get Cygnus style configure.
970     if test -f $ac_srcdir/configure.gnu; then
971       echo
972       $SHELL $ac_srcdir/configure.gnu  --help=recursive
973     elif test -f $ac_srcdir/configure; then
974       echo
975       $SHELL $ac_srcdir/configure  --help=recursive
976     elif test -f $ac_srcdir/configure.ac ||
977            test -f $ac_srcdir/configure.in; then
978       echo
979       $ac_configure --help
980     else
981       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982     fi
983     cd $ac_popdir
984   done
985 fi
986
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
989   cat <<\_ACEOF
990 GNU coreutils configure 5.2.1
991 generated by GNU Autoconf 2.59
992
993 Copyright (C) 2003 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
996 _ACEOF
997   exit 0
998 fi
999 exec 5>config.log
1000 cat >&5 <<_ACEOF
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1003
1004 It was created by GNU coreutils $as_me 5.2.1, which was
1005 generated by GNU Autoconf 2.59.  Invocation command line was
1006
1007   $ $0 $@
1008
1009 _ACEOF
1010 {
1011 cat <<_ASUNAME
1012 ## --------- ##
1013 ## Platform. ##
1014 ## --------- ##
1015
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1024
1025 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1026 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1029 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1030 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1031 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1032
1033 _ASUNAME
1034
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 for as_dir in $PATH
1037 do
1038   IFS=$as_save_IFS
1039   test -z "$as_dir" && as_dir=.
1040   echo "PATH: $as_dir"
1041 done
1042
1043 } >&5
1044
1045 cat >&5 <<_ACEOF
1046
1047
1048 ## ----------- ##
1049 ## Core tests. ##
1050 ## ----------- ##
1051
1052 _ACEOF
1053
1054
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_configure_args=
1061 ac_configure_args0=
1062 ac_configure_args1=
1063 ac_sep=
1064 ac_must_keep_next=false
1065 for ac_pass in 1 2
1066 do
1067   for ac_arg
1068   do
1069     case $ac_arg in
1070     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072     | -silent | --silent | --silen | --sile | --sil)
1073       continue ;;
1074     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076     esac
1077     case $ac_pass in
1078     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079     2)
1080       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081       if test $ac_must_keep_next = true; then
1082         ac_must_keep_next=false # Got value, back to normal.
1083       else
1084         case $ac_arg in
1085           *=* | --config-cache | -C | -disable-* | --disable-* \
1086           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088           | -with-* | --with-* | -without-* | --without-* | --x)
1089             case "$ac_configure_args0 " in
1090               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091             esac
1092             ;;
1093           -* ) ac_must_keep_next=true ;;
1094         esac
1095       fi
1096       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097       # Get rid of the leading space.
1098       ac_sep=" "
1099       ;;
1100     esac
1101   done
1102 done
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log.  We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112   # Save into config.log some information that might help in debugging.
1113   {
1114     echo
1115
1116     cat <<\_ASBOX
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1120 _ASBOX
1121     echo
1122     # The following way of writing the cache mishandles newlines in values,
1123 {
1124   (set) 2>&1 |
1125     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126     *ac_space=\ *)
1127       sed -n \
1128         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130       ;;
1131     *)
1132       sed -n \
1133         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134       ;;
1135     esac;
1136 }
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1143 _ASBOX
1144     echo
1145     for ac_var in $ac_subst_vars
1146     do
1147       eval ac_val=$`echo $ac_var`
1148       echo "$ac_var='"'"'$ac_val'"'"'"
1149     done | sort
1150     echo
1151
1152     if test -n "$ac_subst_files"; then
1153       cat <<\_ASBOX
1154 ## ------------- ##
1155 ## Output files. ##
1156 ## ------------- ##
1157 _ASBOX
1158       echo
1159       for ac_var in $ac_subst_files
1160       do
1161         eval ac_val=$`echo $ac_var`
1162         echo "$ac_var='"'"'$ac_val'"'"'"
1163       done | sort
1164       echo
1165     fi
1166
1167     if test -s confdefs.h; then
1168       cat <<\_ASBOX
1169 ## ----------- ##
1170 ## confdefs.h. ##
1171 ## ----------- ##
1172 _ASBOX
1173       echo
1174       sed "/^$/d" confdefs.h | sort
1175       echo
1176     fi
1177     test "$ac_signal" != 0 &&
1178       echo "$as_me: caught signal $ac_signal"
1179     echo "$as_me: exit $exit_status"
1180   } >&5
1181   rm -f core *.core &&
1182   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183     exit $exit_status
1184      ' 0
1185 for ac_signal in 1 2 13 15; do
1186   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 done
1188 ac_signal=0
1189
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 echo >confdefs.h
1194
1195 # Predefined preprocessor variables.
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 _ACEOF
1215
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 _ACEOF
1220
1221
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225   if test "x$prefix" != xNONE; then
1226     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227   else
1228     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229   fi
1230 fi
1231 for ac_site_file in $CONFIG_SITE; do
1232   if test -r "$ac_site_file"; then
1233     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235     sed 's/^/| /' "$ac_site_file" >&5
1236     . "$ac_site_file"
1237   fi
1238 done
1239
1240 if test -r "$cache_file"; then
1241   # Some versions of bash will fail to source /dev/null (special
1242   # files actually), so we avoid doing that.
1243   if test -f "$cache_file"; then
1244     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1246     case $cache_file in
1247       [\\/]* | ?:[\\/]* ) . $cache_file;;
1248       *)                      . ./$cache_file;;
1249     esac
1250   fi
1251 else
1252   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1254   >$cache_file
1255 fi
1256
1257 # Check that the precious variables saved in the cache have kept the same
1258 # value.
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263   eval ac_new_set=\$ac_env_${ac_var}_set
1264   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265   eval ac_new_val="\$ac_env_${ac_var}_value"
1266   case $ac_old_set,$ac_new_set in
1267     set,)
1268       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270       ac_cache_corrupted=: ;;
1271     ,set)
1272       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274       ac_cache_corrupted=: ;;
1275     ,);;
1276     *)
1277       if test "x$ac_old_val" != "x$ac_new_val"; then
1278         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1281 echo "$as_me:   former value:  $ac_old_val" >&2;}
1282         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1283 echo "$as_me:   current value: $ac_new_val" >&2;}
1284         ac_cache_corrupted=:
1285       fi;;
1286   esac
1287   # Pass precious variables to config.status.
1288   if test "$ac_new_set" = set; then
1289     case $ac_new_val in
1290     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292     *) ac_arg=$ac_var=$ac_new_val ;;
1293     esac
1294     case " $ac_configure_args " in
1295       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1296       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297     esac
1298   fi
1299 done
1300 if $ac_cache_corrupted; then
1301   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305    { (exit 1); exit 1; }; }
1306 fi
1307
1308 ac_ext=c
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313
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 ac_aux_dir=
1343 for ac_dir in config $srcdir/config; do
1344   if test -f $ac_dir/install-sh; then
1345     ac_aux_dir=$ac_dir
1346     ac_install_sh="$ac_aux_dir/install-sh -c"
1347     break
1348   elif test -f $ac_dir/install.sh; then
1349     ac_aux_dir=$ac_dir
1350     ac_install_sh="$ac_aux_dir/install.sh -c"
1351     break
1352   elif test -f $ac_dir/shtool; then
1353     ac_aux_dir=$ac_dir
1354     ac_install_sh="$ac_aux_dir/shtool install -c"
1355     break
1356   fi
1357 done
1358 if test -z "$ac_aux_dir"; then
1359   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1360 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1361    { (exit 1); exit 1; }; }
1362 fi
1363 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1364 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1365 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1366
1367           ac_config_headers="$ac_config_headers config.h:config.hin"
1368
1369
1370 am__api_version="1.8"
1371 # Find a good install program.  We prefer a C program (faster),
1372 # so one script is as good as another.  But avoid the broken or
1373 # incompatible versions:
1374 # SysV /etc/install, /usr/sbin/install
1375 # SunOS /usr/etc/install
1376 # IRIX /sbin/install
1377 # AIX /bin/install
1378 # AmigaOS /C/install, which installs bootblocks on floppy discs
1379 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1380 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1381 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1382 # OS/2's system install, which has a completely different semantic
1383 # ./install, which can be erroneously created by make from ./install.sh.
1384 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1385 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1386 if test -z "$INSTALL"; then
1387 if test "${ac_cv_path_install+set}" = set; then
1388   echo $ECHO_N "(cached) $ECHO_C" >&6
1389 else
1390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1391 for as_dir in $PATH
1392 do
1393   IFS=$as_save_IFS
1394   test -z "$as_dir" && as_dir=.
1395   # Account for people who put trailing slashes in PATH elements.
1396 case $as_dir/ in
1397   ./ | .// | /cC/* | \
1398   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1399   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1400   /usr/ucb/* ) ;;
1401   *)
1402     # OSF1 and SCO ODT 3.0 have their own names for install.
1403     # Don't use installbsd from OSF since it installs stuff as root
1404     # by default.
1405     for ac_prog in ginstall scoinst install; do
1406       for ac_exec_ext in '' $ac_executable_extensions; do
1407         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1408           if test $ac_prog = install &&
1409             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1410             # AIX install.  It has an incompatible calling convention.
1411             :
1412           elif test $ac_prog = install &&
1413             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1414             # program-specific install script used by HP pwplus--don't use.
1415             :
1416           else
1417             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1418             break 3
1419           fi
1420         fi
1421       done
1422     done
1423     ;;
1424 esac
1425 done
1426
1427
1428 fi
1429   if test "${ac_cv_path_install+set}" = set; then
1430     INSTALL=$ac_cv_path_install
1431   else
1432     # As a last resort, use the slow shell script.  We don't cache a
1433     # path for INSTALL within a source directory, because that will
1434     # break other packages using the cache if that directory is
1435     # removed, or if the path is relative.
1436     INSTALL=$ac_install_sh
1437   fi
1438 fi
1439 echo "$as_me:$LINENO: result: $INSTALL" >&5
1440 echo "${ECHO_T}$INSTALL" >&6
1441
1442 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1443 # It thinks the first close brace ends the variable substitution.
1444 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1445
1446 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1447
1448 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1449
1450 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1451 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1452 # Just in case
1453 sleep 1
1454 echo timestamp > conftest.file
1455 # Do `set' in a subshell so we don't clobber the current shell's
1456 # arguments.  Must try -L first in case configure is actually a
1457 # symlink; some systems play weird games with the mod time of symlinks
1458 # (eg FreeBSD returns the mod time of the symlink's containing
1459 # directory).
1460 if (
1461    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1462    if test "$*" = "X"; then
1463       # -L didn't work.
1464       set X `ls -t $srcdir/configure conftest.file`
1465    fi
1466    rm -f conftest.file
1467    if test "$*" != "X $srcdir/configure conftest.file" \
1468       && test "$*" != "X conftest.file $srcdir/configure"; then
1469
1470       # If neither matched, then we have a broken ls.  This can happen
1471       # if, for instance, CONFIG_SHELL is bash and it inherits a
1472       # broken ls alias from the environment.  This has actually
1473       # happened.  Such a system could not be considered "sane".
1474       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1475 alias in your environment" >&5
1476 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1477 alias in your environment" >&2;}
1478    { (exit 1); exit 1; }; }
1479    fi
1480
1481    test "$2" = conftest.file
1482    )
1483 then
1484    # Ok.
1485    :
1486 else
1487    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1488 Check your system clock" >&5
1489 echo "$as_me: error: newly created file is older than distributed files!
1490 Check your system clock" >&2;}
1491    { (exit 1); exit 1; }; }
1492 fi
1493 echo "$as_me:$LINENO: result: yes" >&5
1494 echo "${ECHO_T}yes" >&6
1495 test "$program_prefix" != NONE &&
1496   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1497 # Use a double $ so make ignores it.
1498 test "$program_suffix" != NONE &&
1499   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1500 # Double any \ or $.  echo might interpret backslashes.
1501 # By default was `s,x,x', remove it if useless.
1502 cat <<\_ACEOF >conftest.sed
1503 s/[\\$]/&&/g;s/;s,x,x,$//
1504 _ACEOF
1505 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1506 rm conftest.sed
1507
1508 # expand $ac_aux_dir to an absolute path
1509 am_aux_dir=`cd $ac_aux_dir && pwd`
1510
1511 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1512 # Use eval to expand $SHELL
1513 if eval "$MISSING --run true"; then
1514   am_missing_run="$MISSING --run "
1515 else
1516   am_missing_run=
1517   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1518 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1519 fi
1520
1521 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1522   # Keeping the `.' argument allows $(mkdir_p) to be used without
1523   # argument.  Indeed, we sometimes output rules like
1524   #   $(mkdir_p) $(somedir)
1525   # where $(somedir) is conditionally defined.
1526   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1527   # expensive solution, as it forces Make to start a sub-shell.)
1528   mkdir_p='mkdir -p -- .'
1529 else
1530   # On NextStep and OpenStep, the `mkdir' command does not
1531   # recognize any option.  It will interpret all options as
1532   # directories to create, and then abort because `.' already
1533   # exists.
1534   for d in ./-p ./--version;
1535   do
1536     test -d $d && rmdir $d
1537   done
1538   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1539   if test -f "$ac_aux_dir/mkinstalldirs"; then
1540     mkdir_p='$(mkinstalldirs)'
1541   else
1542     mkdir_p='$(install_sh) -d'
1543   fi
1544 fi
1545
1546 for ac_prog in gawk mawk nawk awk
1547 do
1548   # Extract the first word of "$ac_prog", so it can be a program name with args.
1549 set dummy $ac_prog; ac_word=$2
1550 echo "$as_me:$LINENO: checking for $ac_word" >&5
1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552 if test "${ac_cv_prog_AWK+set}" = set; then
1553   echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555   if test -n "$AWK"; then
1556   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1557 else
1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559 for as_dir in $PATH
1560 do
1561   IFS=$as_save_IFS
1562   test -z "$as_dir" && as_dir=.
1563   for ac_exec_ext in '' $ac_executable_extensions; do
1564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1565     ac_cv_prog_AWK="$ac_prog"
1566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567     break 2
1568   fi
1569 done
1570 done
1571
1572 fi
1573 fi
1574 AWK=$ac_cv_prog_AWK
1575 if test -n "$AWK"; then
1576   echo "$as_me:$LINENO: result: $AWK" >&5
1577 echo "${ECHO_T}$AWK" >&6
1578 else
1579   echo "$as_me:$LINENO: result: no" >&5
1580 echo "${ECHO_T}no" >&6
1581 fi
1582
1583   test -n "$AWK" && break
1584 done
1585
1586 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1587 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1588 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1589 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1590   echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592   cat >conftest.make <<\_ACEOF
1593 all:
1594         @echo 'ac_maketemp="$(MAKE)"'
1595 _ACEOF
1596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1597 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1598 if test -n "$ac_maketemp"; then
1599   eval ac_cv_prog_make_${ac_make}_set=yes
1600 else
1601   eval ac_cv_prog_make_${ac_make}_set=no
1602 fi
1603 rm -f conftest.make
1604 fi
1605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1606   echo "$as_me:$LINENO: result: yes" >&5
1607 echo "${ECHO_T}yes" >&6
1608   SET_MAKE=
1609 else
1610   echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612   SET_MAKE="MAKE=${MAKE-make}"
1613 fi
1614
1615 rm -rf .tst 2>/dev/null
1616 mkdir .tst 2>/dev/null
1617 if test -d .tst; then
1618   am__leading_dot=.
1619 else
1620   am__leading_dot=_
1621 fi
1622 rmdir .tst 2>/dev/null
1623
1624 # test to see if srcdir already configured
1625 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1626    test -f $srcdir/config.status; then
1627   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1628 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1629    { (exit 1); exit 1; }; }
1630 fi
1631
1632 # test whether we have cygpath
1633 if test -z "$CYGPATH_W"; then
1634   if (cygpath --version) >/dev/null 2>/dev/null; then
1635     CYGPATH_W='cygpath -w'
1636   else
1637     CYGPATH_W=echo
1638   fi
1639 fi
1640
1641
1642 # Define the identity of the package.
1643  PACKAGE='coreutils'
1644  VERSION='5.2.1'
1645
1646
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE "$PACKAGE"
1649 _ACEOF
1650
1651
1652 cat >>confdefs.h <<_ACEOF
1653 #define VERSION "$VERSION"
1654 _ACEOF
1655
1656 # Some tools Automake needs.
1657
1658 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1659
1660
1661 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1662
1663
1664 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1665
1666
1667 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1668
1669
1670 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1671
1672
1673 AMTAR=${AMTAR-"${am_missing_run}tar"}
1674
1675 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1676
1677 # Installed binaries are usually stripped using `strip' when the user
1678 # run `make install-strip'.  However `strip' might not be the right
1679 # tool to use in cross-compilation environments, therefore Automake
1680 # will honor the `STRIP' environment variable to overrule this program.
1681 if test "$cross_compiling" != no; then
1682   if test -n "$ac_tool_prefix"; then
1683   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1684 set dummy ${ac_tool_prefix}strip; ac_word=$2
1685 echo "$as_me:$LINENO: checking for $ac_word" >&5
1686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687 if test "${ac_cv_prog_STRIP+set}" = set; then
1688   echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690   if test -n "$STRIP"; then
1691   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1692 else
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 for as_dir in $PATH
1695 do
1696   IFS=$as_save_IFS
1697   test -z "$as_dir" && as_dir=.
1698   for ac_exec_ext in '' $ac_executable_extensions; do
1699   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702     break 2
1703   fi
1704 done
1705 done
1706
1707 fi
1708 fi
1709 STRIP=$ac_cv_prog_STRIP
1710 if test -n "$STRIP"; then
1711   echo "$as_me:$LINENO: result: $STRIP" >&5
1712 echo "${ECHO_T}$STRIP" >&6
1713 else
1714   echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1716 fi
1717
1718 fi
1719 if test -z "$ac_cv_prog_STRIP"; then
1720   ac_ct_STRIP=$STRIP
1721   # Extract the first word of "strip", so it can be a program name with args.
1722 set dummy strip; ac_word=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1726   echo $ECHO_N "(cached) $ECHO_C" >&6
1727 else
1728   if test -n "$ac_ct_STRIP"; then
1729   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1730 else
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 for as_dir in $PATH
1733 do
1734   IFS=$as_save_IFS
1735   test -z "$as_dir" && as_dir=.
1736   for ac_exec_ext in '' $ac_executable_extensions; do
1737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738     ac_cv_prog_ac_ct_STRIP="strip"
1739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740     break 2
1741   fi
1742 done
1743 done
1744
1745   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1746 fi
1747 fi
1748 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1749 if test -n "$ac_ct_STRIP"; then
1750   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1751 echo "${ECHO_T}$ac_ct_STRIP" >&6
1752 else
1753   echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1755 fi
1756
1757   STRIP=$ac_ct_STRIP
1758 else
1759   STRIP="$ac_cv_prog_STRIP"
1760 fi
1761
1762 fi
1763 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1764
1765 # We need awk for the "check" target.  The system "awk" is bad on
1766 # some platforms.
1767
1768
1769
1770
1771
1772   echo "$as_me:$LINENO: checking for desired default level of POSIX conformance" >&5
1773 echo $ECHO_N "checking for desired default level of POSIX conformance... $ECHO_C" >&6
1774   gl_default_posix2_version=none-specified
1775   if test -n "$ac_cv_env_DEFAULT_POSIX2_VERSION_set"; then
1776     gl_default_posix2_version=$ac_cv_env_DEFAULT_POSIX2_VERSION_value
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define DEFAULT_POSIX2_VERSION $gl_default_posix2_version
1780 _ACEOF
1781
1782   fi
1783   echo "$as_me:$LINENO: result: $gl_default_posix2_version" >&5
1784 echo "${ECHO_T}$gl_default_posix2_version" >&6
1785
1786
1787
1788 cat >>confdefs.h <<\_ACEOF
1789 #define _GNU_SOURCE 1
1790 _ACEOF
1791
1792
1793 DEPDIR="${am__leading_dot}deps"
1794
1795           ac_config_commands="$ac_config_commands depfiles"
1796
1797
1798 am_make=${MAKE-make}
1799 cat > confinc << 'END'
1800 am__doit:
1801         @echo done
1802 .PHONY: am__doit
1803 END
1804 # If we don't find an include directive, just comment out the code.
1805 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1806 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1807 am__include="#"
1808 am__quote=
1809 _am_result=none
1810 # First try GNU make style include.
1811 echo "include confinc" > confmf
1812 # We grep out `Entering directory' and `Leaving directory'
1813 # messages which can occur if `w' ends up in MAKEFLAGS.
1814 # In particular we don't look at `^make:' because GNU make might
1815 # be invoked under some other name (usually "gmake"), in which
1816 # case it prints its new name instead of `make'.
1817 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1818    am__include=include
1819    am__quote=
1820    _am_result=GNU
1821 fi
1822 # Now try BSD make style include.
1823 if test "$am__include" = "#"; then
1824    echo '.include "confinc"' > confmf
1825    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1826       am__include=.include
1827       am__quote="\""
1828       _am_result=BSD
1829    fi
1830 fi
1831
1832
1833 echo "$as_me:$LINENO: result: $_am_result" >&5
1834 echo "${ECHO_T}$_am_result" >&6
1835 rm -f confinc confmf
1836
1837 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1838 if test "${enable_dependency_tracking+set}" = set; then
1839   enableval="$enable_dependency_tracking"
1840
1841 fi;
1842 if test "x$enable_dependency_tracking" != xno; then
1843   am_depcomp="$ac_aux_dir/depcomp"
1844   AMDEPBACKSLASH='\'
1845 fi
1846
1847
1848 if test "x$enable_dependency_tracking" != xno; then
1849   AMDEP_TRUE=
1850   AMDEP_FALSE='#'
1851 else
1852   AMDEP_TRUE='#'
1853   AMDEP_FALSE=
1854 fi
1855
1856
1857
1858 ac_ext=c
1859 ac_cpp='$CPP $CPPFLAGS'
1860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1863 if test -n "$ac_tool_prefix"; then
1864   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1865 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_CC+set}" = set; then
1869   echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871   if test -n "$CC"; then
1872   ac_cv_prog_CC="$CC" # Let the user override the test.
1873 else
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877   IFS=$as_save_IFS
1878   test -z "$as_dir" && as_dir=.
1879   for ac_exec_ext in '' $ac_executable_extensions; do
1880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883     break 2
1884   fi
1885 done
1886 done
1887
1888 fi
1889 fi
1890 CC=$ac_cv_prog_CC
1891 if test -n "$CC"; then
1892   echo "$as_me:$LINENO: result: $CC" >&5
1893 echo "${ECHO_T}$CC" >&6
1894 else
1895   echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1897 fi
1898
1899 fi
1900 if test -z "$ac_cv_prog_CC"; then
1901   ac_ct_CC=$CC
1902   # Extract the first word of "gcc", so it can be a program name with args.
1903 set dummy gcc; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1907   echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909   if test -n "$ac_ct_CC"; then
1910   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915   IFS=$as_save_IFS
1916   test -z "$as_dir" && as_dir=.
1917   for ac_exec_ext in '' $ac_executable_extensions; do
1918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919     ac_cv_prog_ac_ct_CC="gcc"
1920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921     break 2
1922   fi
1923 done
1924 done
1925
1926 fi
1927 fi
1928 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1929 if test -n "$ac_ct_CC"; then
1930   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1931 echo "${ECHO_T}$ac_ct_CC" >&6
1932 else
1933   echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1935 fi
1936
1937   CC=$ac_ct_CC
1938 else
1939   CC="$ac_cv_prog_CC"
1940 fi
1941
1942 if test -z "$CC"; then
1943   if test -n "$ac_tool_prefix"; then
1944   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1945 set dummy ${ac_tool_prefix}cc; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_CC+set}" = set; then
1949   echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951   if test -n "$CC"; then
1952   ac_cv_prog_CC="$CC" # Let the user override the test.
1953 else
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1956 do
1957   IFS=$as_save_IFS
1958   test -z "$as_dir" && as_dir=.
1959   for ac_exec_ext in '' $ac_executable_extensions; do
1960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961     ac_cv_prog_CC="${ac_tool_prefix}cc"
1962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963     break 2
1964   fi
1965 done
1966 done
1967
1968 fi
1969 fi
1970 CC=$ac_cv_prog_CC
1971 if test -n "$CC"; then
1972   echo "$as_me:$LINENO: result: $CC" >&5
1973 echo "${ECHO_T}$CC" >&6
1974 else
1975   echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1977 fi
1978
1979 fi
1980 if test -z "$ac_cv_prog_CC"; then
1981   ac_ct_CC=$CC
1982   # Extract the first word of "cc", so it can be a program name with args.
1983 set dummy cc; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1987   echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989   if test -n "$ac_ct_CC"; then
1990   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1991 else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1994 do
1995   IFS=$as_save_IFS
1996   test -z "$as_dir" && as_dir=.
1997   for ac_exec_ext in '' $ac_executable_extensions; do
1998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999     ac_cv_prog_ac_ct_CC="cc"
2000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001     break 2
2002   fi
2003 done
2004 done
2005
2006 fi
2007 fi
2008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2009 if test -n "$ac_ct_CC"; then
2010   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2011 echo "${ECHO_T}$ac_ct_CC" >&6
2012 else
2013   echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2015 fi
2016
2017   CC=$ac_ct_CC
2018 else
2019   CC="$ac_cv_prog_CC"
2020 fi
2021
2022 fi
2023 if test -z "$CC"; then
2024   # Extract the first word of "cc", so it can be a program name with args.
2025 set dummy cc; ac_word=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_CC+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   if test -n "$CC"; then
2032   ac_cv_prog_CC="$CC" # Let the user override the test.
2033 else
2034   ac_prog_rejected=no
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2037 do
2038   IFS=$as_save_IFS
2039   test -z "$as_dir" && as_dir=.
2040   for ac_exec_ext in '' $ac_executable_extensions; do
2041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2043        ac_prog_rejected=yes
2044        continue
2045      fi
2046     ac_cv_prog_CC="cc"
2047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048     break 2
2049   fi
2050 done
2051 done
2052
2053 if test $ac_prog_rejected = yes; then
2054   # We found a bogon in the path, so make sure we never use it.
2055   set dummy $ac_cv_prog_CC
2056   shift
2057   if test $# != 0; then
2058     # We chose a different compiler from the bogus one.
2059     # However, it has the same basename, so the bogon will be chosen
2060     # first if we set CC to just the basename; use the full file name.
2061     shift
2062     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2063   fi
2064 fi
2065 fi
2066 fi
2067 CC=$ac_cv_prog_CC
2068 if test -n "$CC"; then
2069   echo "$as_me:$LINENO: result: $CC" >&5
2070 echo "${ECHO_T}$CC" >&6
2071 else
2072   echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2074 fi
2075
2076 fi
2077 if test -z "$CC"; then
2078   if test -n "$ac_tool_prefix"; then
2079   for ac_prog in cl
2080   do
2081     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_CC+set}" = set; then
2086   echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088   if test -n "$CC"; then
2089   ac_cv_prog_CC="$CC" # Let the user override the test.
2090 else
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2093 do
2094   IFS=$as_save_IFS
2095   test -z "$as_dir" && as_dir=.
2096   for ac_exec_ext in '' $ac_executable_extensions; do
2097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100     break 2
2101   fi
2102 done
2103 done
2104
2105 fi
2106 fi
2107 CC=$ac_cv_prog_CC
2108 if test -n "$CC"; then
2109   echo "$as_me:$LINENO: result: $CC" >&5
2110 echo "${ECHO_T}$CC" >&6
2111 else
2112   echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2114 fi
2115
2116     test -n "$CC" && break
2117   done
2118 fi
2119 if test -z "$CC"; then
2120   ac_ct_CC=$CC
2121   for ac_prog in cl
2122 do
2123   # Extract the first word of "$ac_prog", so it can be a program name with args.
2124 set dummy $ac_prog; ac_word=$2
2125 echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2128   echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130   if test -n "$ac_ct_CC"; then
2131   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2132 else
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2135 do
2136   IFS=$as_save_IFS
2137   test -z "$as_dir" && as_dir=.
2138   for ac_exec_ext in '' $ac_executable_extensions; do
2139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140     ac_cv_prog_ac_ct_CC="$ac_prog"
2141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142     break 2
2143   fi
2144 done
2145 done
2146
2147 fi
2148 fi
2149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2150 if test -n "$ac_ct_CC"; then
2151   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2152 echo "${ECHO_T}$ac_ct_CC" >&6
2153 else
2154   echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6
2156 fi
2157
2158   test -n "$ac_ct_CC" && break
2159 done
2160
2161   CC=$ac_ct_CC
2162 fi
2163
2164 fi
2165
2166
2167 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2168 See \`config.log' for more details." >&5
2169 echo "$as_me: error: no acceptable C compiler found in \$PATH
2170 See \`config.log' for more details." >&2;}
2171    { (exit 1); exit 1; }; }
2172
2173 # Provide some information about the compiler.
2174 echo "$as_me:$LINENO:" \
2175      "checking for C compiler version" >&5
2176 ac_compiler=`set X $ac_compile; echo $2`
2177 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2178   (eval $ac_compiler --version </dev/null >&5) 2>&5
2179   ac_status=$?
2180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181   (exit $ac_status); }
2182 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2183   (eval $ac_compiler -v </dev/null >&5) 2>&5
2184   ac_status=$?
2185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186   (exit $ac_status); }
2187 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2188   (eval $ac_compiler -V </dev/null >&5) 2>&5
2189   ac_status=$?
2190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191   (exit $ac_status); }
2192
2193 cat >conftest.$ac_ext <<_ACEOF
2194 /* confdefs.h.  */
2195 _ACEOF
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h.  */
2199
2200 int
2201 main ()
2202 {
2203
2204   ;
2205   return 0;
2206 }
2207 _ACEOF
2208 ac_clean_files_save=$ac_clean_files
2209 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2210 # Try to create an executable without -o first, disregard a.out.
2211 # It will help us diagnose broken compilers, and finding out an intuition
2212 # of exeext.
2213 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2214 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2215 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2216 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2217   (eval $ac_link_default) 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; then
2221   # Find the output, starting from the most likely.  This scheme is
2222 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2223 # resort.
2224
2225 # Be careful to initialize this variable, since it used to be cached.
2226 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2227 ac_cv_exeext=
2228 # b.out is created by i960 compilers.
2229 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2230 do
2231   test -f "$ac_file" || continue
2232   case $ac_file in
2233     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2234         ;;
2235     conftest.$ac_ext )
2236         # This is the source file.
2237         ;;
2238     [ab].out )
2239         # We found the default executable, but exeext='' is most
2240         # certainly right.
2241         break;;
2242     *.* )
2243         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2244         # FIXME: I believe we export ac_cv_exeext for Libtool,
2245         # but it would be cool to find out if it's true.  Does anybody
2246         # maintain Libtool? --akim.
2247         export ac_cv_exeext
2248         break;;
2249     * )
2250         break;;
2251   esac
2252 done
2253 else
2254   echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2256
2257 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2258 See \`config.log' for more details." >&5
2259 echo "$as_me: error: C compiler cannot create executables
2260 See \`config.log' for more details." >&2;}
2261    { (exit 77); exit 77; }; }
2262 fi
2263
2264 ac_exeext=$ac_cv_exeext
2265 echo "$as_me:$LINENO: result: $ac_file" >&5
2266 echo "${ECHO_T}$ac_file" >&6
2267
2268 # Check the compiler produces executables we can run.  If not, either
2269 # the compiler is broken, or we cross compile.
2270 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2271 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2272 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2273 # If not cross compiling, check that we can run a simple program.
2274 if test "$cross_compiling" != yes; then
2275   if { ac_try='./$ac_file'
2276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277   (eval $ac_try) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; }; then
2281     cross_compiling=no
2282   else
2283     if test "$cross_compiling" = maybe; then
2284         cross_compiling=yes
2285     else
2286         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2287 If you meant to cross compile, use \`--host'.
2288 See \`config.log' for more details." >&5
2289 echo "$as_me: error: cannot run C compiled programs.
2290 If you meant to cross compile, use \`--host'.
2291 See \`config.log' for more details." >&2;}
2292    { (exit 1); exit 1; }; }
2293     fi
2294   fi
2295 fi
2296 echo "$as_me:$LINENO: result: yes" >&5
2297 echo "${ECHO_T}yes" >&6
2298
2299 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2300 ac_clean_files=$ac_clean_files_save
2301 # Check the compiler produces executables we can run.  If not, either
2302 # the compiler is broken, or we cross compile.
2303 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2304 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2305 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2306 echo "${ECHO_T}$cross_compiling" >&6
2307
2308 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2309 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2311   (eval $ac_link) 2>&5
2312   ac_status=$?
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); }; then
2315   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2316 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2317 # work properly (i.e., refer to `conftest.exe'), while it won't with
2318 # `rm'.
2319 for ac_file in conftest.exe conftest conftest.*; do
2320   test -f "$ac_file" || continue
2321   case $ac_file in
2322     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2323     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2324           export ac_cv_exeext
2325           break;;
2326     * ) break;;
2327   esac
2328 done
2329 else
2330   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2333 See \`config.log' for more details." >&2;}
2334    { (exit 1); exit 1; }; }
2335 fi
2336
2337 rm -f conftest$ac_cv_exeext
2338 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2339 echo "${ECHO_T}$ac_cv_exeext" >&6
2340
2341 rm -f conftest.$ac_ext
2342 EXEEXT=$ac_cv_exeext
2343 ac_exeext=$EXEEXT
2344 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2345 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2346 if test "${ac_cv_objext+set}" = set; then
2347   echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349   cat >conftest.$ac_ext <<_ACEOF
2350 /* confdefs.h.  */
2351 _ACEOF
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h.  */
2355
2356 int
2357 main ()
2358 {
2359
2360   ;
2361   return 0;
2362 }
2363 _ACEOF
2364 rm -f conftest.o conftest.obj
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366   (eval $ac_compile) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }; then
2370   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2371   case $ac_file in
2372     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2373     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2374        break;;
2375   esac
2376 done
2377 else
2378   echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2380
2381 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&5
2383 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2384 See \`config.log' for more details." >&2;}
2385    { (exit 1); exit 1; }; }
2386 fi
2387
2388 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2389 fi
2390 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2391 echo "${ECHO_T}$ac_cv_objext" >&6
2392 OBJEXT=$ac_cv_objext
2393 ac_objext=$OBJEXT
2394 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2395 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2396 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2397   echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399   cat >conftest.$ac_ext <<_ACEOF
2400 /* confdefs.h.  */
2401 _ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h.  */
2405
2406 int
2407 main ()
2408 {
2409 #ifndef __GNUC__
2410        choke me
2411 #endif
2412
2413   ;
2414   return 0;
2415 }
2416 _ACEOF
2417 rm -f conftest.$ac_objext
2418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2419   (eval $ac_compile) 2>conftest.er1
2420   ac_status=$?
2421   grep -v '^ *+' conftest.er1 >conftest.err
2422   rm -f conftest.er1
2423   cat conftest.err >&5
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); } &&
2426          { ac_try='test -z "$ac_c_werror_flag"
2427                          || test ! -s conftest.err'
2428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429   (eval $ac_try) 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }; } &&
2433          { ac_try='test -s conftest.$ac_objext'
2434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435   (eval $ac_try) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; }; then
2439   ac_compiler_gnu=yes
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444 ac_compiler_gnu=no
2445 fi
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2448
2449 fi
2450 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2451 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2452 GCC=`test $ac_compiler_gnu = yes && echo yes`
2453 ac_test_CFLAGS=${CFLAGS+set}
2454 ac_save_CFLAGS=$CFLAGS
2455 CFLAGS="-g"
2456 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2458 if test "${ac_cv_prog_cc_g+set}" = set; then
2459   echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461   cat >conftest.$ac_ext <<_ACEOF
2462 /* confdefs.h.  */
2463 _ACEOF
2464 cat confdefs.h >>conftest.$ac_ext
2465 cat >>conftest.$ac_ext <<_ACEOF
2466 /* end confdefs.h.  */
2467
2468 int
2469 main ()
2470 {
2471
2472   ;
2473   return 0;
2474 }
2475 _ACEOF
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478   (eval $ac_compile) 2>conftest.er1
2479   ac_status=$?
2480   grep -v '^ *+' conftest.er1 >conftest.err
2481   rm -f conftest.er1
2482   cat conftest.err >&5
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); } &&
2485          { ac_try='test -z "$ac_c_werror_flag"
2486                          || test ! -s conftest.err'
2487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488   (eval $ac_try) 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }; } &&
2492          { ac_try='test -s conftest.$ac_objext'
2493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494   (eval $ac_try) 2>&5
2495   ac_status=$?
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); }; }; then
2498   ac_cv_prog_cc_g=yes
2499 else
2500   echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2502
2503 ac_cv_prog_cc_g=no
2504 fi
2505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2506 fi
2507 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2508 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2509 if test "$ac_test_CFLAGS" = set; then
2510   CFLAGS=$ac_save_CFLAGS
2511 elif test $ac_cv_prog_cc_g = yes; then
2512   if test "$GCC" = yes; then
2513     CFLAGS="-g -O2"
2514   else
2515     CFLAGS="-g"
2516   fi
2517 else
2518   if test "$GCC" = yes; then
2519     CFLAGS="-O2"
2520   else
2521     CFLAGS=
2522   fi
2523 fi
2524 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2525 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2526 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2527   echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529   ac_cv_prog_cc_stdc=no
2530 ac_save_CC=$CC
2531 cat >conftest.$ac_ext <<_ACEOF
2532 /* confdefs.h.  */
2533 _ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h.  */
2537 #include <stdarg.h>
2538 #include <stdio.h>
2539 #include <sys/types.h>
2540 #include <sys/stat.h>
2541 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2542 struct buf { int x; };
2543 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2544 static char *e (p, i)
2545      char **p;
2546      int i;
2547 {
2548   return p[i];
2549 }
2550 static char *f (char * (*g) (char **, int), char **p, ...)
2551 {
2552   char *s;
2553   va_list v;
2554   va_start (v,p);
2555   s = g (p, va_arg (v,int));
2556   va_end (v);
2557   return s;
2558 }
2559
2560 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2561    function prototypes and stuff, but not '\xHH' hex character constants.
2562    These don't provoke an error unfortunately, instead are silently treated
2563    as 'x'.  The following induces an error, until -std1 is added to get
2564    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2565    array size at least.  It's necessary to write '\x00'==0 to get something
2566    that's true only with -std1.  */
2567 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2568
2569 int test (int i, double x);
2570 struct s1 {int (*f) (int a);};
2571 struct s2 {int (*f) (double a);};
2572 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2573 int argc;
2574 char **argv;
2575 int
2576 main ()
2577 {
2578 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2579   ;
2580   return 0;
2581 }
2582 _ACEOF
2583 # Don't try gcc -ansi; that turns off useful extensions and
2584 # breaks some systems' header files.
2585 # AIX                   -qlanglvl=ansi
2586 # Ultrix and OSF/1      -std1
2587 # HP-UX 10.20 and later -Ae
2588 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2589 # SVR4                  -Xc -D__EXTENSIONS__
2590 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2591 do
2592   CC="$ac_save_CC $ac_arg"
2593   rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595   (eval $ac_compile) 2>conftest.er1
2596   ac_status=$?
2597   grep -v '^ *+' conftest.er1 >conftest.err
2598   rm -f conftest.er1
2599   cat conftest.err >&5
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); } &&
2602          { ac_try='test -z "$ac_c_werror_flag"
2603                          || test ! -s conftest.err'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; } &&
2609          { ac_try='test -s conftest.$ac_objext'
2610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611   (eval $ac_try) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; }; then
2615   ac_cv_prog_cc_stdc=$ac_arg
2616 break
2617 else
2618   echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621 fi
2622 rm -f conftest.err conftest.$ac_objext
2623 done
2624 rm -f conftest.$ac_ext conftest.$ac_objext
2625 CC=$ac_save_CC
2626
2627 fi
2628
2629 case "x$ac_cv_prog_cc_stdc" in
2630   x|xno)
2631     echo "$as_me:$LINENO: result: none needed" >&5
2632 echo "${ECHO_T}none needed" >&6 ;;
2633   *)
2634     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2635 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2636     CC="$CC $ac_cv_prog_cc_stdc" ;;
2637 esac
2638
2639 # Some people use a C++ compiler to compile C.  Since we use `exit',
2640 # in C++ we need to declare it.  In case someone uses the same compiler
2641 # for both compiling C and C++ we need to have the C++ compiler decide
2642 # the declaration of exit, since it's the most demanding environment.
2643 cat >conftest.$ac_ext <<_ACEOF
2644 #ifndef __cplusplus
2645   choke me
2646 #endif
2647 _ACEOF
2648 rm -f conftest.$ac_objext
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650   (eval $ac_compile) 2>conftest.er1
2651   ac_status=$?
2652   grep -v '^ *+' conftest.er1 >conftest.err
2653   rm -f conftest.er1
2654   cat conftest.err >&5
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); } &&
2657          { ac_try='test -z "$ac_c_werror_flag"
2658                          || test ! -s conftest.err'
2659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660   (eval $ac_try) 2>&5
2661   ac_status=$?
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); }; } &&
2664          { ac_try='test -s conftest.$ac_objext'
2665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666   (eval $ac_try) 2>&5
2667   ac_status=$?
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); }; }; then
2670   for ac_declaration in \
2671    '' \
2672    'extern "C" void std::exit (int) throw (); using std::exit;' \
2673    'extern "C" void std::exit (int); using std::exit;' \
2674    'extern "C" void exit (int) throw ();' \
2675    'extern "C" void exit (int);' \
2676    'void exit (int);'
2677 do
2678   cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h.  */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h.  */
2684 $ac_declaration
2685 #include <stdlib.h>
2686 int
2687 main ()
2688 {
2689 exit (42);
2690   ;
2691   return 0;
2692 }
2693 _ACEOF
2694 rm -f conftest.$ac_objext
2695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696   (eval $ac_compile) 2>conftest.er1
2697   ac_status=$?
2698   grep -v '^ *+' conftest.er1 >conftest.err
2699   rm -f conftest.er1
2700   cat conftest.err >&5
2701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); } &&
2703          { ac_try='test -z "$ac_c_werror_flag"
2704                          || test ! -s conftest.err'
2705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706   (eval $ac_try) 2>&5
2707   ac_status=$?
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); }; } &&
2710          { ac_try='test -s conftest.$ac_objext'
2711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712   (eval $ac_try) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }; }; then
2716   :
2717 else
2718   echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2720
2721 continue
2722 fi
2723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724   cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h.  */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h.  */
2730 $ac_declaration
2731 int
2732 main ()
2733 {
2734 exit (42);
2735   ;
2736   return 0;
2737 }
2738 _ACEOF
2739 rm -f conftest.$ac_objext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741   (eval $ac_compile) 2>conftest.er1
2742   ac_status=$?
2743   grep -v '^ *+' conftest.er1 >conftest.err
2744   rm -f conftest.er1
2745   cat conftest.err >&5
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); } &&
2748          { ac_try='test -z "$ac_c_werror_flag"
2749                          || test ! -s conftest.err'
2750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751   (eval $ac_try) 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }; } &&
2755          { ac_try='test -s conftest.$ac_objext'
2756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757   (eval $ac_try) 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; }; then
2761   break
2762 else
2763   echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766 fi
2767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2768 done
2769 rm -f conftest*
2770 if test -n "$ac_declaration"; then
2771   echo '#ifdef __cplusplus' >>confdefs.h
2772   echo $ac_declaration      >>confdefs.h
2773   echo '#endif'             >>confdefs.h
2774 fi
2775
2776 else
2777   echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2779
2780 fi
2781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2782 ac_ext=c
2783 ac_cpp='$CPP $CPPFLAGS'
2784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2787
2788 depcc="$CC"   am_compiler_list=
2789
2790 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2791 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2792 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2793   echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2796   # We make a subdir and do the tests there.  Otherwise we can end up
2797   # making bogus files that we don't know about and never remove.  For
2798   # instance it was reported that on HP-UX the gcc test will end up
2799   # making a dummy file named `D' -- because `-MD' means `put the output
2800   # in D'.
2801   mkdir conftest.dir
2802   # Copy depcomp to subdir because otherwise we won't find it if we're
2803   # using a relative directory.
2804   cp "$am_depcomp" conftest.dir
2805   cd conftest.dir
2806   # We will build objects and dependencies in a subdirectory because
2807   # it helps to detect inapplicable dependency modes.  For instance
2808   # both Tru64's cc and ICC support -MD to output dependencies as a
2809   # side effect of compilation, but ICC will put the dependencies in
2810   # the current directory while Tru64 will put them in the object
2811   # directory.
2812   mkdir sub
2813
2814   am_cv_CC_dependencies_compiler_type=none
2815   if test "$am_compiler_list" = ""; then
2816      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2817   fi
2818   for depmode in $am_compiler_list; do
2819     # Setup a source with many dependencies, because some compilers
2820     # like to wrap large dependency lists on column 80 (with \), and
2821     # we should not choose a depcomp mode which is confused by this.
2822     #
2823     # We need to recreate these files for each test, as the compiler may
2824     # overwrite some of them when testing with obscure command lines.
2825     # This happens at least with the AIX C compiler.
2826     : > sub/conftest.c
2827     for i in 1 2 3 4 5 6; do
2828       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2829       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2830       # Solaris 8's {/usr,}/bin/sh.
2831       touch sub/conftst$i.h
2832     done
2833     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2834
2835     case $depmode in
2836     nosideeffect)
2837       # after this tag, mechanisms are not by side-effect, so they'll
2838       # only be used when explicitly requested
2839       if test "x$enable_dependency_tracking" = xyes; then
2840         continue
2841       else
2842         break
2843       fi
2844       ;;
2845     none) break ;;
2846     esac
2847     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2848     # mode.  It turns out that the SunPro C++ compiler does not properly
2849     # handle `-M -o', and we need to detect this.
2850     if depmode=$depmode \
2851        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2852        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2853        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2854          >/dev/null 2>conftest.err &&
2855        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2856        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2857        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2858       # icc doesn't choke on unknown options, it will just issue warnings
2859       # (even with -Werror).  So we grep stderr for any message
2860       # that says an option was ignored.
2861       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2862         am_cv_CC_dependencies_compiler_type=$depmode
2863         break
2864       fi
2865     fi
2866   done
2867
2868   cd ..
2869   rm -rf conftest.dir
2870 else
2871   am_cv_CC_dependencies_compiler_type=none
2872 fi
2873
2874 fi
2875 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2876 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2877 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2878
2879
2880
2881 if
2882   test "x$enable_dependency_tracking" != xno \
2883   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2884   am__fastdepCC_TRUE=
2885   am__fastdepCC_FALSE='#'
2886 else
2887   am__fastdepCC_TRUE='#'
2888   am__fastdepCC_FALSE=
2889 fi
2890
2891
2892
2893 ac_ext=c
2894 ac_cpp='$CPP $CPPFLAGS'
2895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2898 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2899 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2900 # On Suns, sometimes $CPP names a directory.
2901 if test -n "$CPP" && test -d "$CPP"; then
2902   CPP=
2903 fi
2904 if test -z "$CPP"; then
2905   if test "${ac_cv_prog_CPP+set}" = set; then
2906   echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908       # Double quotes because CPP needs to be expanded
2909     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2910     do
2911       ac_preproc_ok=false
2912 for ac_c_preproc_warn_flag in '' yes
2913 do
2914   # Use a header file that comes with gcc, so configuring glibc
2915   # with a fresh cross-compiler works.
2916   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2917   # <limits.h> exists even on freestanding compilers.
2918   # On the NeXT, cc -E runs the code through the compiler's parser,
2919   # not just through cpp. "Syntax error" is here to catch this case.
2920   cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h.  */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h.  */
2926 #ifdef __STDC__
2927 # include <limits.h>
2928 #else
2929 # include <assert.h>
2930 #endif
2931                      Syntax error
2932 _ACEOF
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2935   ac_status=$?
2936   grep -v '^ *+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } >/dev/null; then
2941   if test -s conftest.err; then
2942     ac_cpp_err=$ac_c_preproc_warn_flag
2943     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2944   else
2945     ac_cpp_err=
2946   fi
2947 else
2948   ac_cpp_err=yes
2949 fi
2950 if test -z "$ac_cpp_err"; then
2951   :
2952 else
2953   echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956   # Broken: fails on valid input.
2957 continue
2958 fi
2959 rm -f conftest.err conftest.$ac_ext
2960
2961   # OK, works on sane cases.  Now check whether non-existent headers
2962   # can be detected and how.
2963   cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h.  */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h.  */
2969 #include <ac_nonexistent.h>
2970 _ACEOF
2971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2973   ac_status=$?
2974   grep -v '^ *+' conftest.er1 >conftest.err
2975   rm -f conftest.er1
2976   cat conftest.err >&5
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); } >/dev/null; then
2979   if test -s conftest.err; then
2980     ac_cpp_err=$ac_c_preproc_warn_flag
2981     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2982   else
2983     ac_cpp_err=
2984   fi
2985 else
2986   ac_cpp_err=yes
2987 fi
2988 if test -z "$ac_cpp_err"; then
2989   # Broken: success on invalid input.
2990 continue
2991 else
2992   echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995   # Passes both tests.
2996 ac_preproc_ok=:
2997 break
2998 fi
2999 rm -f conftest.err conftest.$ac_ext
3000
3001 done
3002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3003 rm -f conftest.err conftest.$ac_ext
3004 if $ac_preproc_ok; then
3005   break
3006 fi
3007
3008     done
3009     ac_cv_prog_CPP=$CPP
3010
3011 fi
3012   CPP=$ac_cv_prog_CPP
3013 else
3014   ac_cv_prog_CPP=$CPP
3015 fi
3016 echo "$as_me:$LINENO: result: $CPP" >&5
3017 echo "${ECHO_T}$CPP" >&6
3018 ac_preproc_ok=false
3019 for ac_c_preproc_warn_flag in '' yes
3020 do
3021   # Use a header file that comes with gcc, so configuring glibc
3022   # with a fresh cross-compiler works.
3023   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3024   # <limits.h> exists even on freestanding compilers.
3025   # On the NeXT, cc -E runs the code through the compiler's parser,
3026   # not just through cpp. "Syntax error" is here to catch this case.
3027   cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h.  */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h.  */
3033 #ifdef __STDC__
3034 # include <limits.h>
3035 #else
3036 # include <assert.h>
3037 #endif
3038                      Syntax error
3039 _ACEOF
3040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3041   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3042   ac_status=$?
3043   grep -v '^ *+' conftest.er1 >conftest.err
3044   rm -f conftest.er1
3045   cat conftest.err >&5
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); } >/dev/null; then
3048   if test -s conftest.err; then
3049     ac_cpp_err=$ac_c_preproc_warn_flag
3050     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3051   else
3052     ac_cpp_err=
3053   fi
3054 else
3055   ac_cpp_err=yes
3056 fi
3057 if test -z "$ac_cpp_err"; then
3058   :
3059 else
3060   echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3062
3063   # Broken: fails on valid input.
3064 continue
3065 fi
3066 rm -f conftest.err conftest.$ac_ext
3067
3068   # OK, works on sane cases.  Now check whether non-existent headers
3069   # can be detected and how.
3070   cat >conftest.$ac_ext <<_ACEOF
3071 /* confdefs.h.  */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h.  */
3076 #include <ac_nonexistent.h>
3077 _ACEOF
3078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3079   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3080   ac_status=$?
3081   grep -v '^ *+' conftest.er1 >conftest.err
3082   rm -f conftest.er1
3083   cat conftest.err >&5
3084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085   (exit $ac_status); } >/dev/null; then
3086   if test -s conftest.err; then
3087     ac_cpp_err=$ac_c_preproc_warn_flag
3088     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3089   else
3090     ac_cpp_err=
3091   fi
3092 else
3093   ac_cpp_err=yes
3094 fi
3095 if test -z "$ac_cpp_err"; then
3096   # Broken: success on invalid input.
3097 continue
3098 else
3099   echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102   # Passes both tests.
3103 ac_preproc_ok=:
3104 break
3105 fi
3106 rm -f conftest.err conftest.$ac_ext
3107
3108 done
3109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3110 rm -f conftest.err conftest.$ac_ext
3111 if $ac_preproc_ok; then
3112   :
3113 else
3114   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3117 See \`config.log' for more details." >&2;}
3118    { (exit 1); exit 1; }; }
3119 fi
3120
3121 ac_ext=c
3122 ac_cpp='$CPP $CPPFLAGS'
3123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126
3127
3128 echo "$as_me:$LINENO: checking for egrep" >&5
3129 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3130 if test "${ac_cv_prog_egrep+set}" = set; then
3131   echo $ECHO_N "(cached) $ECHO_C" >&6
3132 else
3133   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3134     then ac_cv_prog_egrep='grep -E'
3135     else ac_cv_prog_egrep='egrep'
3136     fi
3137 fi
3138 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3139 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3140  EGREP=$ac_cv_prog_egrep
3141
3142
3143
3144 echo "$as_me:$LINENO: checking for AIX" >&5
3145 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3146 cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h.  */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h.  */
3152 #ifdef _AIX
3153   yes
3154 #endif
3155
3156 _ACEOF
3157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3158   $EGREP "yes" >/dev/null 2>&1; then
3159   echo "$as_me:$LINENO: result: yes" >&5
3160 echo "${ECHO_T}yes" >&6
3161 cat >>confdefs.h <<\_ACEOF
3162 #define _ALL_SOURCE 1
3163 _ACEOF
3164
3165 else
3166   echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168 fi
3169 rm -f conftest*
3170
3171
3172 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3173 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3174 if test "${ac_cv_header_stdc+set}" = set; then
3175   echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177   cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h.  */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h.  */
3183 #include <stdlib.h>
3184 #include <stdarg.h>
3185 #include <string.h>
3186 #include <float.h>
3187
3188 int
3189 main ()
3190 {
3191
3192   ;
3193   return 0;
3194 }
3195 _ACEOF
3196 rm -f conftest.$ac_objext
3197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3198   (eval $ac_compile) 2>conftest.er1
3199   ac_status=$?
3200   grep -v '^ *+' conftest.er1 >conftest.err
3201   rm -f conftest.er1
3202   cat conftest.err >&5
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); } &&
3205          { ac_try='test -z "$ac_c_werror_flag"
3206                          || test ! -s conftest.err'
3207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208   (eval $ac_try) 2>&5
3209   ac_status=$?
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); }; } &&
3212          { ac_try='test -s conftest.$ac_objext'
3213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214   (eval $ac_try) 2>&5
3215   ac_status=$?
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }; }; then
3218   ac_cv_header_stdc=yes
3219 else
3220   echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223 ac_cv_header_stdc=no
3224 fi
3225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3226
3227 if test $ac_cv_header_stdc = yes; then
3228   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3229   cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h.  */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h.  */
3235 #include <string.h>
3236
3237 _ACEOF
3238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3239   $EGREP "memchr" >/dev/null 2>&1; then
3240   :
3241 else
3242   ac_cv_header_stdc=no
3243 fi
3244 rm -f conftest*
3245
3246 fi
3247
3248 if test $ac_cv_header_stdc = yes; then
3249   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3250   cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h.  */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h.  */
3256 #include <stdlib.h>
3257
3258 _ACEOF
3259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3260   $EGREP "free" >/dev/null 2>&1; then
3261   :
3262 else
3263   ac_cv_header_stdc=no
3264 fi
3265 rm -f conftest*
3266
3267 fi
3268
3269 if test $ac_cv_header_stdc = yes; then
3270   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3271   if test "$cross_compiling" = yes; then
3272   :
3273 else
3274   cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280 #include <ctype.h>
3281 #if ((' ' & 0x0FF) == 0x020)
3282 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3283 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3284 #else
3285 # define ISLOWER(c) \
3286                    (('a' <= (c) && (c) <= 'i') \
3287                      || ('j' <= (c) && (c) <= 'r') \
3288                      || ('s' <= (c) && (c) <= 'z'))
3289 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3290 #endif
3291
3292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3293 int
3294 main ()
3295 {
3296   int i;
3297   for (i = 0; i < 256; i++)
3298     if (XOR (islower (i), ISLOWER (i))
3299         || toupper (i) != TOUPPER (i))
3300       exit(2);
3301   exit (0);
3302 }
3303 _ACEOF
3304 rm -f conftest$ac_exeext
3305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3306   (eval $ac_link) 2>&5
3307   ac_status=$?
3308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311   (eval $ac_try) 2>&5
3312   ac_status=$?
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); }; }; then
3315   :
3316 else
3317   echo "$as_me: program exited with status $ac_status" >&5
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3320
3321 ( exit $ac_status )
3322 ac_cv_header_stdc=no
3323 fi
3324 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3325 fi
3326 fi
3327 fi
3328 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3329 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3330 if test $ac_cv_header_stdc = yes; then
3331
3332 cat >>confdefs.h <<\_ACEOF
3333 #define STDC_HEADERS 1
3334 _ACEOF
3335
3336 fi
3337
3338 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3349                   inttypes.h stdint.h unistd.h
3350 do
3351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3352 echo "$as_me:$LINENO: checking for $ac_header" >&5
3353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357   cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h.  */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h.  */
3363 $ac_includes_default
3364
3365 #include <$ac_header>
3366 _ACEOF
3367 rm -f conftest.$ac_objext
3368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369   (eval $ac_compile) 2>conftest.er1
3370   ac_status=$?
3371   grep -v '^ *+' conftest.er1 >conftest.err
3372   rm -f conftest.er1
3373   cat conftest.err >&5
3374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); } &&
3376          { ac_try='test -z "$ac_c_werror_flag"
3377                          || test ! -s conftest.err'
3378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379   (eval $ac_try) 2>&5
3380   ac_status=$?
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); }; } &&
3383          { ac_try='test -s conftest.$ac_objext'
3384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385   (eval $ac_try) 2>&5
3386   ac_status=$?
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); }; }; then
3389   eval "$as_ac_Header=yes"
3390 else
3391   echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3393
3394 eval "$as_ac_Header=no"
3395 fi
3396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3397 fi
3398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3401   cat >>confdefs.h <<_ACEOF
3402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3403 _ACEOF
3404
3405 fi
3406
3407 done
3408
3409
3410 if test "${ac_cv_header_minix_config_h+set}" = set; then
3411   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3412 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3413 if test "${ac_cv_header_minix_config_h+set}" = set; then
3414   echo $ECHO_N "(cached) $ECHO_C" >&6
3415 fi
3416 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3417 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3418 else
3419   # Is the header compilable?
3420 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3421 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3422 cat >conftest.$ac_ext <<_ACEOF
3423 /* confdefs.h.  */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h.  */
3428 $ac_includes_default
3429 #include <minix/config.h>
3430 _ACEOF
3431 rm -f conftest.$ac_objext
3432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3433   (eval $ac_compile) 2>conftest.er1
3434   ac_status=$?
3435   grep -v '^ *+' conftest.er1 >conftest.err
3436   rm -f conftest.er1
3437   cat conftest.err >&5
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); } &&
3440          { ac_try='test -z "$ac_c_werror_flag"
3441                          || test ! -s conftest.err'
3442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443   (eval $ac_try) 2>&5
3444   ac_status=$?
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); }; } &&
3447          { ac_try='test -s conftest.$ac_objext'
3448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449   (eval $ac_try) 2>&5
3450   ac_status=$?
3451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); }; }; then
3453   ac_header_compiler=yes
3454 else
3455   echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458 ac_header_compiler=no
3459 fi
3460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3462 echo "${ECHO_T}$ac_header_compiler" >&6
3463
3464 # Is the header present?
3465 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3466 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3467 cat >conftest.$ac_ext <<_ACEOF
3468 /* confdefs.h.  */
3469 _ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h.  */
3473 #include <minix/config.h>
3474 _ACEOF
3475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3476   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3477   ac_status=$?
3478   grep -v '^ *+' conftest.er1 >conftest.err
3479   rm -f conftest.er1
3480   cat conftest.err >&5
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); } >/dev/null; then
3483   if test -s conftest.err; then
3484     ac_cpp_err=$ac_c_preproc_warn_flag
3485     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3486   else
3487     ac_cpp_err=
3488   fi
3489 else
3490   ac_cpp_err=yes
3491 fi
3492 if test -z "$ac_cpp_err"; then
3493   ac_header_preproc=yes
3494 else
3495   echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498   ac_header_preproc=no
3499 fi
3500 rm -f conftest.err conftest.$ac_ext
3501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3502 echo "${ECHO_T}$ac_header_preproc" >&6
3503
3504 # So?  What about this header?
3505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3506   yes:no: )
3507     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3508 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3509     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3510 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3511     ac_header_preproc=yes
3512     ;;
3513   no:yes:* )
3514     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3515 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3516     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3517 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3518     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3519 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3520     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3521 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3522     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3523 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3524     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3525 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3526     (
3527       cat <<\_ASBOX
3528 ## ------------------------------------ ##
3529 ## Report this to bug-coreutils@gnu.org ##
3530 ## ------------------------------------ ##
3531 _ASBOX
3532     ) |
3533       sed "s/^/$as_me: WARNING:     /" >&2
3534     ;;
3535 esac
3536 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3537 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3538 if test "${ac_cv_header_minix_config_h+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   ac_cv_header_minix_config_h=$ac_header_preproc
3542 fi
3543 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3544 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3545
3546 fi
3547 if test $ac_cv_header_minix_config_h = yes; then
3548   MINIX=yes
3549 else
3550   MINIX=
3551 fi
3552
3553
3554 if test "$MINIX" = yes; then
3555
3556 cat >>confdefs.h <<\_ACEOF
3557 #define _POSIX_SOURCE 1
3558 _ACEOF
3559
3560
3561 cat >>confdefs.h <<\_ACEOF
3562 #define _POSIX_1_SOURCE 2
3563 _ACEOF
3564
3565
3566 cat >>confdefs.h <<\_ACEOF
3567 #define _MINIX 1
3568 _ACEOF
3569
3570 fi
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582   cat >>confdefs.h <<\_ACEOF
3583 #define __EXTENSIONS__ 1
3584 _ACEOF
3585
3586
3587
3588       echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
3589 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6
3590   if test "${PERL+set}" = set; then
3591     # `PERL' is set in the user's environment.
3592     candidate_perl_names="$PERL"
3593     perl_specified=yes
3594   else
3595     candidate_perl_names='perl perl5'
3596     perl_specified=no
3597   fi
3598
3599   found=no
3600
3601   PERL="$am_missing_run perl"
3602   for perl in $candidate_perl_names; do
3603     # Run test in a subshell; some versions of sh will print an error if
3604     # an executable is not found, even if stderr is redirected.
3605     if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
3606       PERL=$perl
3607       found=yes
3608       break
3609     fi
3610   done
3611
3612   echo "$as_me:$LINENO: result: $found" >&5
3613 echo "${ECHO_T}$found" >&6
3614   test $found = no && { echo "$as_me:$LINENO: WARNING:
3615 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
3616          a usable version of the Perl File::Compare module.  As a result,
3617          you may be unable to run a few tests or to regenerate certain
3618          files if you modify the sources from which they are derived.
3619  " >&5
3620 echo "$as_me: WARNING:
3621 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
3622          a usable version of the Perl File::Compare module.  As a result,
3623          you may be unable to run a few tests or to regenerate certain
3624          files if you modify the sources from which they are derived.
3625  " >&2;}
3626
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632 if test -n "$ac_tool_prefix"; then
3633   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3634 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3635 echo "$as_me:$LINENO: checking for $ac_word" >&5
3636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637 if test "${ac_cv_prog_CC+set}" = set; then
3638   echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640   if test -n "$CC"; then
3641   ac_cv_prog_CC="$CC" # Let the user override the test.
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3645 do
3646   IFS=$as_save_IFS
3647   test -z "$as_dir" && as_dir=.
3648   for ac_exec_ext in '' $ac_executable_extensions; do
3649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3650     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3652     break 2
3653   fi
3654 done
3655 done
3656
3657 fi
3658 fi
3659 CC=$ac_cv_prog_CC
3660 if test -n "$CC"; then
3661   echo "$as_me:$LINENO: result: $CC" >&5
3662 echo "${ECHO_T}$CC" >&6
3663 else
3664   echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3666 fi
3667
3668 fi
3669 if test -z "$ac_cv_prog_CC"; then
3670   ac_ct_CC=$CC
3671   # Extract the first word of "gcc", so it can be a program name with args.
3672 set dummy gcc; ac_word=$2
3673 echo "$as_me:$LINENO: checking for $ac_word" >&5
3674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3676   echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678   if test -n "$ac_ct_CC"; then
3679   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3680 else
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH
3683 do
3684   IFS=$as_save_IFS
3685   test -z "$as_dir" && as_dir=.
3686   for ac_exec_ext in '' $ac_executable_extensions; do
3687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688     ac_cv_prog_ac_ct_CC="gcc"
3689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3690     break 2
3691   fi
3692 done
3693 done
3694
3695 fi
3696 fi
3697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3698 if test -n "$ac_ct_CC"; then
3699   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3700 echo "${ECHO_T}$ac_ct_CC" >&6
3701 else
3702   echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6
3704 fi
3705
3706   CC=$ac_ct_CC
3707 else
3708   CC="$ac_cv_prog_CC"
3709 fi
3710
3711 if test -z "$CC"; then
3712   if test -n "$ac_tool_prefix"; then
3713   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3714 set dummy ${ac_tool_prefix}cc; ac_word=$2
3715 echo "$as_me:$LINENO: checking for $ac_word" >&5
3716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3717 if test "${ac_cv_prog_CC+set}" = set; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720   if test -n "$CC"; then
3721   ac_cv_prog_CC="$CC" # Let the user override the test.
3722 else
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3725 do
3726   IFS=$as_save_IFS
3727   test -z "$as_dir" && as_dir=.
3728   for ac_exec_ext in '' $ac_executable_extensions; do
3729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3730     ac_cv_prog_CC="${ac_tool_prefix}cc"
3731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3732     break 2
3733   fi
3734 done
3735 done
3736
3737 fi
3738 fi
3739 CC=$ac_cv_prog_CC
3740 if test -n "$CC"; then
3741   echo "$as_me:$LINENO: result: $CC" >&5
3742 echo "${ECHO_T}$CC" >&6
3743 else
3744   echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3746 fi
3747
3748 fi
3749 if test -z "$ac_cv_prog_CC"; then
3750   ac_ct_CC=$CC
3751   # Extract the first word of "cc", so it can be a program name with args.
3752 set dummy cc; ac_word=$2
3753 echo "$as_me:$LINENO: checking for $ac_word" >&5
3754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3756   echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758   if test -n "$ac_ct_CC"; then
3759   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764   IFS=$as_save_IFS
3765   test -z "$as_dir" && as_dir=.
3766   for ac_exec_ext in '' $ac_executable_extensions; do
3767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768     ac_cv_prog_ac_ct_CC="cc"
3769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770     break 2
3771   fi
3772 done
3773 done
3774
3775 fi
3776 fi
3777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3778 if test -n "$ac_ct_CC"; then
3779   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3780 echo "${ECHO_T}$ac_ct_CC" >&6
3781 else
3782   echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3784 fi
3785
3786   CC=$ac_ct_CC
3787 else
3788   CC="$ac_cv_prog_CC"
3789 fi
3790
3791 fi
3792 if test -z "$CC"; then
3793   # Extract the first word of "cc", so it can be a program name with args.
3794 set dummy cc; ac_word=$2
3795 echo "$as_me:$LINENO: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797 if test "${ac_cv_prog_CC+set}" = set; then
3798   echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800   if test -n "$CC"; then
3801   ac_cv_prog_CC="$CC" # Let the user override the test.
3802 else
3803   ac_prog_rejected=no
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3806 do
3807   IFS=$as_save_IFS
3808   test -z "$as_dir" && as_dir=.
3809   for ac_exec_ext in '' $ac_executable_extensions; do
3810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3812        ac_prog_rejected=yes
3813        continue
3814      fi
3815     ac_cv_prog_CC="cc"
3816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817     break 2
3818   fi
3819 done
3820 done
3821
3822 if test $ac_prog_rejected = yes; then
3823   # We found a bogon in the path, so make sure we never use it.
3824   set dummy $ac_cv_prog_CC
3825   shift
3826   if test $# != 0; then
3827     # We chose a different compiler from the bogus one.
3828     # However, it has the same basename, so the bogon will be chosen
3829     # first if we set CC to just the basename; use the full file name.
3830     shift
3831     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3832   fi
3833 fi
3834 fi
3835 fi
3836 CC=$ac_cv_prog_CC
3837 if test -n "$CC"; then
3838   echo "$as_me:$LINENO: result: $CC" >&5
3839 echo "${ECHO_T}$CC" >&6
3840 else
3841   echo "$as_me:$LINENO: result: no" >&5
3842 echo "${ECHO_T}no" >&6
3843 fi
3844
3845 fi
3846 if test -z "$CC"; then
3847   if test -n "$ac_tool_prefix"; then
3848   for ac_prog in cl
3849   do
3850     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3851 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3852 echo "$as_me:$LINENO: checking for $ac_word" >&5
3853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3854 if test "${ac_cv_prog_CC+set}" = set; then
3855   echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857   if test -n "$CC"; then
3858   ac_cv_prog_CC="$CC" # Let the user override the test.
3859 else
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 for as_dir in $PATH
3862 do
3863   IFS=$as_save_IFS
3864   test -z "$as_dir" && as_dir=.
3865   for ac_exec_ext in '' $ac_executable_extensions; do
3866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3869     break 2
3870   fi
3871 done
3872 done
3873
3874 fi
3875 fi
3876 CC=$ac_cv_prog_CC
3877 if test -n "$CC"; then
3878   echo "$as_me:$LINENO: result: $CC" >&5
3879 echo "${ECHO_T}$CC" >&6
3880 else
3881   echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6
3883 fi
3884
3885     test -n "$CC" && break
3886   done
3887 fi
3888 if test -z "$CC"; then
3889   ac_ct_CC=$CC
3890   for ac_prog in cl
3891 do
3892   # Extract the first word of "$ac_prog", so it can be a program name with args.
3893 set dummy $ac_prog; ac_word=$2
3894 echo "$as_me:$LINENO: checking for $ac_word" >&5
3895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3897   echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899   if test -n "$ac_ct_CC"; then
3900   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905   IFS=$as_save_IFS
3906   test -z "$as_dir" && as_dir=.
3907   for ac_exec_ext in '' $ac_executable_extensions; do
3908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909     ac_cv_prog_ac_ct_CC="$ac_prog"
3910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3911     break 2
3912   fi
3913 done
3914 done
3915
3916 fi
3917 fi
3918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3919 if test -n "$ac_ct_CC"; then
3920   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3921 echo "${ECHO_T}$ac_ct_CC" >&6
3922 else
3923   echo "$as_me:$LINENO: result: no" >&5
3924 echo "${ECHO_T}no" >&6
3925 fi
3926
3927   test -n "$ac_ct_CC" && break
3928 done
3929
3930   CC=$ac_ct_CC
3931 fi
3932
3933 fi
3934
3935
3936 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3937 See \`config.log' for more details." >&5
3938 echo "$as_me: error: no acceptable C compiler found in \$PATH
3939 See \`config.log' for more details." >&2;}
3940    { (exit 1); exit 1; }; }
3941
3942 # Provide some information about the compiler.
3943 echo "$as_me:$LINENO:" \
3944      "checking for C compiler version" >&5
3945 ac_compiler=`set X $ac_compile; echo $2`
3946 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3947   (eval $ac_compiler --version </dev/null >&5) 2>&5
3948   ac_status=$?
3949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950   (exit $ac_status); }
3951 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3952   (eval $ac_compiler -v </dev/null >&5) 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); }
3956 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3957   (eval $ac_compiler -V </dev/null >&5) 2>&5
3958   ac_status=$?
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); }
3961
3962 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3963 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3964 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h.  */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h.  */
3973
3974 int
3975 main ()
3976 {
3977 #ifndef __GNUC__
3978        choke me
3979 #endif
3980
3981   ;
3982   return 0;
3983 }
3984 _ACEOF
3985 rm -f conftest.$ac_objext
3986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3987   (eval $ac_compile) 2>conftest.er1
3988   ac_status=$?
3989   grep -v '^ *+' conftest.er1 >conftest.err
3990   rm -f conftest.er1
3991   cat conftest.err >&5
3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); } &&
3994          { ac_try='test -z "$ac_c_werror_flag"
3995                          || test ! -s conftest.err'
3996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997   (eval $ac_try) 2>&5
3998   ac_status=$?
3999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000   (exit $ac_status); }; } &&
4001          { ac_try='test -s conftest.$ac_objext'
4002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003   (eval $ac_try) 2>&5
4004   ac_status=$?
4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006   (exit $ac_status); }; }; then
4007   ac_compiler_gnu=yes
4008 else
4009   echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4011
4012 ac_compiler_gnu=no
4013 fi
4014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4015 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4016
4017 fi
4018 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4019 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4020 GCC=`test $ac_compiler_gnu = yes && echo yes`
4021 ac_test_CFLAGS=${CFLAGS+set}
4022 ac_save_CFLAGS=$CFLAGS
4023 CFLAGS="-g"
4024 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4025 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4026 if test "${ac_cv_prog_cc_g+set}" = set; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029   cat >conftest.$ac_ext <<_ACEOF
4030 /* confdefs.h.  */
4031 _ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h.  */
4035
4036 int
4037 main ()
4038 {
4039
4040   ;
4041   return 0;
4042 }
4043 _ACEOF
4044 rm -f conftest.$ac_objext
4045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4046   (eval $ac_compile) 2>conftest.er1
4047   ac_status=$?
4048   grep -v '^ *+' conftest.er1 >conftest.err
4049   rm -f conftest.er1
4050   cat conftest.err >&5
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); } &&
4053          { ac_try='test -z "$ac_c_werror_flag"
4054                          || test ! -s conftest.err'
4055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056   (eval $ac_try) 2>&5
4057   ac_status=$?
4058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059   (exit $ac_status); }; } &&
4060          { ac_try='test -s conftest.$ac_objext'
4061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062   (eval $ac_try) 2>&5
4063   ac_status=$?
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); }; }; then
4066   ac_cv_prog_cc_g=yes
4067 else
4068   echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4070
4071 ac_cv_prog_cc_g=no
4072 fi
4073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4074 fi
4075 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4076 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4077 if test "$ac_test_CFLAGS" = set; then
4078   CFLAGS=$ac_save_CFLAGS
4079 elif test $ac_cv_prog_cc_g = yes; then
4080   if test "$GCC" = yes; then
4081     CFLAGS="-g -O2"
4082   else
4083     CFLAGS="-g"
4084   fi
4085 else
4086   if test "$GCC" = yes; then
4087     CFLAGS="-O2"
4088   else
4089     CFLAGS=
4090   fi
4091 fi
4092 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4093 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4094 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4095   echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097   ac_cv_prog_cc_stdc=no
4098 ac_save_CC=$CC
4099 cat >conftest.$ac_ext <<_ACEOF
4100 /* confdefs.h.  */
4101 _ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h.  */
4105 #include <stdarg.h>
4106 #include <stdio.h>
4107 #include <sys/types.h>
4108 #include <sys/stat.h>
4109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4110 struct buf { int x; };
4111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4112 static char *e (p, i)
4113      char **p;
4114      int i;
4115 {
4116   return p[i];
4117 }
4118 static char *f (char * (*g) (char **, int), char **p, ...)
4119 {
4120   char *s;
4121   va_list v;
4122   va_start (v,p);
4123   s = g (p, va_arg (v,int));
4124   va_end (v);
4125   return s;
4126 }
4127
4128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4129    function prototypes and stuff, but not '\xHH' hex character constants.
4130    These don't provoke an error unfortunately, instead are silently treated
4131    as 'x'.  The following induces an error, until -std1 is added to get
4132    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4133    array size at least.  It's necessary to write '\x00'==0 to get something
4134    that's true only with -std1.  */
4135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4136
4137 int test (int i, double x);
4138 struct s1 {int (*f) (int a);};
4139 struct s2 {int (*f) (double a);};
4140 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4141 int argc;
4142 char **argv;
4143 int
4144 main ()
4145 {
4146 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4147   ;
4148   return 0;
4149 }
4150 _ACEOF
4151 # Don't try gcc -ansi; that turns off useful extensions and
4152 # breaks some systems' header files.
4153 # AIX                   -qlanglvl=ansi
4154 # Ultrix and OSF/1      -std1
4155 # HP-UX 10.20 and later -Ae
4156 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4157 # SVR4                  -Xc -D__EXTENSIONS__
4158 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4159 do
4160   CC="$ac_save_CC $ac_arg"
4161   rm -f conftest.$ac_objext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163   (eval $ac_compile) 2>conftest.er1
4164   ac_status=$?
4165   grep -v '^ *+' conftest.er1 >conftest.err
4166   rm -f conftest.er1
4167   cat conftest.err >&5
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); } &&
4170          { ac_try='test -z "$ac_c_werror_flag"
4171                          || test ! -s conftest.err'
4172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173   (eval $ac_try) 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); }; } &&
4177          { ac_try='test -s conftest.$ac_objext'
4178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179   (eval $ac_try) 2>&5
4180   ac_status=$?
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); }; }; then
4183   ac_cv_prog_cc_stdc=$ac_arg
4184 break
4185 else
4186   echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189 fi
4190 rm -f conftest.err conftest.$ac_objext
4191 done
4192 rm -f conftest.$ac_ext conftest.$ac_objext
4193 CC=$ac_save_CC
4194
4195 fi
4196
4197 case "x$ac_cv_prog_cc_stdc" in
4198   x|xno)
4199     echo "$as_me:$LINENO: result: none needed" >&5
4200 echo "${ECHO_T}none needed" >&6 ;;
4201   *)
4202     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4203 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4204     CC="$CC $ac_cv_prog_cc_stdc" ;;
4205 esac
4206
4207 # Some people use a C++ compiler to compile C.  Since we use `exit',
4208 # in C++ we need to declare it.  In case someone uses the same compiler
4209 # for both compiling C and C++ we need to have the C++ compiler decide
4210 # the declaration of exit, since it's the most demanding environment.
4211 cat >conftest.$ac_ext <<_ACEOF
4212 #ifndef __cplusplus
4213   choke me
4214 #endif
4215 _ACEOF
4216 rm -f conftest.$ac_objext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218   (eval $ac_compile) 2>conftest.er1
4219   ac_status=$?
4220   grep -v '^ *+' conftest.er1 >conftest.err
4221   rm -f conftest.er1
4222   cat conftest.err >&5
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); } &&
4225          { ac_try='test -z "$ac_c_werror_flag"
4226                          || test ! -s conftest.err'
4227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228   (eval $ac_try) 2>&5
4229   ac_status=$?
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); }; } &&
4232          { ac_try='test -s conftest.$ac_objext'
4233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234   (eval $ac_try) 2>&5
4235   ac_status=$?
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); }; }; then
4238   for ac_declaration in \
4239    '' \
4240    'extern "C" void std::exit (int) throw (); using std::exit;' \
4241    'extern "C" void std::exit (int); using std::exit;' \
4242    'extern "C" void exit (int) throw ();' \
4243    'extern "C" void exit (int);' \
4244    'void exit (int);'
4245 do
4246   cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h.  */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h.  */
4252 $ac_declaration
4253 #include <stdlib.h>
4254 int
4255 main ()
4256 {
4257 exit (42);
4258   ;
4259   return 0;
4260 }
4261 _ACEOF
4262 rm -f conftest.$ac_objext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4264   (eval $ac_compile) 2>conftest.er1
4265   ac_status=$?
4266   grep -v '^ *+' conftest.er1 >conftest.err
4267   rm -f conftest.er1
4268   cat conftest.err >&5
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); } &&
4271          { ac_try='test -z "$ac_c_werror_flag"
4272                          || test ! -s conftest.err'
4273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274   (eval $ac_try) 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); }; } &&
4278          { ac_try='test -s conftest.$ac_objext'
4279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280   (eval $ac_try) 2>&5
4281   ac_status=$?
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); }; }; then
4284   :
4285 else
4286   echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4288
4289 continue
4290 fi
4291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4292   cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h.  */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h.  */
4298 $ac_declaration
4299 int
4300 main ()
4301 {
4302 exit (42);
4303   ;
4304   return 0;
4305 }
4306 _ACEOF
4307 rm -f conftest.$ac_objext
4308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4309   (eval $ac_compile) 2>conftest.er1
4310   ac_status=$?
4311   grep -v '^ *+' conftest.er1 >conftest.err
4312   rm -f conftest.er1
4313   cat conftest.err >&5
4314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315   (exit $ac_status); } &&
4316          { ac_try='test -z "$ac_c_werror_flag"
4317                          || test ! -s conftest.err'
4318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319   (eval $ac_try) 2>&5
4320   ac_status=$?
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); }; } &&
4323          { ac_try='test -s conftest.$ac_objext'
4324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325   (eval $ac_try) 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); }; }; then
4329   break
4330 else
4331   echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4333
4334 fi
4335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4336 done
4337 rm -f conftest*
4338 if test -n "$ac_declaration"; then
4339   echo '#ifdef __cplusplus' >>confdefs.h
4340   echo $ac_declaration      >>confdefs.h
4341   echo '#endif'             >>confdefs.h
4342 fi
4343
4344 else
4345   echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4347
4348 fi
4349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4350 ac_ext=c
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355
4356 depcc="$CC"   am_compiler_list=
4357
4358 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4359 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4360 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4361   echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4364   # We make a subdir and do the tests there.  Otherwise we can end up
4365   # making bogus files that we don't know about and never remove.  For
4366   # instance it was reported that on HP-UX the gcc test will end up
4367   # making a dummy file named `D' -- because `-MD' means `put the output
4368   # in D'.
4369   mkdir conftest.dir
4370   # Copy depcomp to subdir because otherwise we won't find it if we're
4371   # using a relative directory.
4372   cp "$am_depcomp" conftest.dir
4373   cd conftest.dir
4374   # We will build objects and dependencies in a subdirectory because
4375   # it helps to detect inapplicable dependency modes.  For instance
4376   # both Tru64's cc and ICC support -MD to output dependencies as a
4377   # side effect of compilation, but ICC will put the dependencies in
4378   # the current directory while Tru64 will put them in the object
4379   # directory.
4380   mkdir sub
4381
4382   am_cv_CC_dependencies_compiler_type=none
4383   if test "$am_compiler_list" = ""; then
4384      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4385   fi
4386   for depmode in $am_compiler_list; do
4387     # Setup a source with many dependencies, because some compilers
4388     # like to wrap large dependency lists on column 80 (with \), and
4389     # we should not choose a depcomp mode which is confused by this.
4390     #
4391     # We need to recreate these files for each test, as the compiler may
4392     # overwrite some of them when testing with obscure command lines.
4393     # This happens at least with the AIX C compiler.
4394     : > sub/conftest.c
4395     for i in 1 2 3 4 5 6; do
4396       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4397       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4398       # Solaris 8's {/usr,}/bin/sh.
4399       touch sub/conftst$i.h
4400     done
4401     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4402
4403     case $depmode in
4404     nosideeffect)
4405       # after this tag, mechanisms are not by side-effect, so they'll
4406       # only be used when explicitly requested
4407       if test "x$enable_dependency_tracking" = xyes; then
4408         continue
4409       else
4410         break
4411       fi
4412       ;;
4413     none) break ;;
4414     esac
4415     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4416     # mode.  It turns out that the SunPro C++ compiler does not properly
4417     # handle `-M -o', and we need to detect this.
4418     if depmode=$depmode \
4419        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4420        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4421        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4422          >/dev/null 2>conftest.err &&
4423        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4424        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4425        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4426       # icc doesn't choke on unknown options, it will just issue warnings
4427       # (even with -Werror).  So we grep stderr for any message
4428       # that says an option was ignored.
4429       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4430         am_cv_CC_dependencies_compiler_type=$depmode
4431         break
4432       fi
4433     fi
4434   done
4435
4436   cd ..
4437   rm -rf conftest.dir
4438 else
4439   am_cv_CC_dependencies_compiler_type=none
4440 fi
4441
4442 fi
4443 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4444 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4445 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4446
4447
4448
4449 if
4450   test "x$enable_dependency_tracking" != xno \
4451   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4452   am__fastdepCC_TRUE=
4453   am__fastdepCC_FALSE='#'
4454 else
4455   am__fastdepCC_TRUE='#'
4456   am__fastdepCC_FALSE=
4457 fi
4458
4459
4460 ac_ext=c
4461 ac_cpp='$CPP $CPPFLAGS'
4462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4466 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4467 # On Suns, sometimes $CPP names a directory.
4468 if test -n "$CPP" && test -d "$CPP"; then
4469   CPP=
4470 fi
4471 if test -z "$CPP"; then
4472   if test "${ac_cv_prog_CPP+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475       # Double quotes because CPP needs to be expanded
4476     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4477     do
4478       ac_preproc_ok=false
4479 for ac_c_preproc_warn_flag in '' yes
4480 do
4481   # Use a header file that comes with gcc, so configuring glibc
4482   # with a fresh cross-compiler works.
4483   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4484   # <limits.h> exists even on freestanding compilers.
4485   # On the NeXT, cc -E runs the code through the compiler's parser,
4486   # not just through cpp. "Syntax error" is here to catch this case.
4487   cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h.  */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h.  */
4493 #ifdef __STDC__
4494 # include <limits.h>
4495 #else
4496 # include <assert.h>
4497 #endif
4498                      Syntax error
4499 _ACEOF
4500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4502   ac_status=$?
4503   grep -v '^ *+' conftest.er1 >conftest.err
4504   rm -f conftest.er1
4505   cat conftest.err >&5
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); } >/dev/null; then
4508   if test -s conftest.err; then
4509     ac_cpp_err=$ac_c_preproc_warn_flag
4510     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4511   else
4512     ac_cpp_err=
4513   fi
4514 else
4515   ac_cpp_err=yes
4516 fi
4517 if test -z "$ac_cpp_err"; then
4518   :
4519 else
4520   echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523   # Broken: fails on valid input.
4524 continue
4525 fi
4526 rm -f conftest.err conftest.$ac_ext
4527
4528   # OK, works on sane cases.  Now check whether non-existent headers
4529   # can be detected and how.
4530   cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h.  */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h.  */
4536 #include <ac_nonexistent.h>
4537 _ACEOF
4538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4539   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4540   ac_status=$?
4541   grep -v '^ *+' conftest.er1 >conftest.err
4542   rm -f conftest.er1
4543   cat conftest.err >&5
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); } >/dev/null; then
4546   if test -s conftest.err; then
4547     ac_cpp_err=$ac_c_preproc_warn_flag
4548     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4549   else
4550     ac_cpp_err=
4551   fi
4552 else
4553   ac_cpp_err=yes
4554 fi
4555 if test -z "$ac_cpp_err"; then
4556   # Broken: success on invalid input.
4557 continue
4558 else
4559   echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4561
4562   # Passes both tests.
4563 ac_preproc_ok=:
4564 break
4565 fi
4566 rm -f conftest.err conftest.$ac_ext
4567
4568 done
4569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4570 rm -f conftest.err conftest.$ac_ext
4571 if $ac_preproc_ok; then
4572   break
4573 fi
4574
4575     done
4576     ac_cv_prog_CPP=$CPP
4577
4578 fi
4579   CPP=$ac_cv_prog_CPP
4580 else
4581   ac_cv_prog_CPP=$CPP
4582 fi
4583 echo "$as_me:$LINENO: result: $CPP" >&5
4584 echo "${ECHO_T}$CPP" >&6
4585 ac_preproc_ok=false
4586 for ac_c_preproc_warn_flag in '' yes
4587 do
4588   # Use a header file that comes with gcc, so configuring glibc
4589   # with a fresh cross-compiler works.
4590   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4591   # <limits.h> exists even on freestanding compilers.
4592   # On the NeXT, cc -E runs the code through the compiler's parser,
4593   # not just through cpp. "Syntax error" is here to catch this case.
4594   cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h.  */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h.  */
4600 #ifdef __STDC__
4601 # include <limits.h>
4602 #else
4603 # include <assert.h>
4604 #endif
4605                      Syntax error
4606 _ACEOF
4607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4608   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4609   ac_status=$?
4610   grep -v '^ *+' conftest.er1 >conftest.err
4611   rm -f conftest.er1
4612   cat conftest.err >&5
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); } >/dev/null; then
4615   if test -s conftest.err; then
4616     ac_cpp_err=$ac_c_preproc_warn_flag
4617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4618   else
4619     ac_cpp_err=
4620   fi
4621 else
4622   ac_cpp_err=yes
4623 fi
4624 if test -z "$ac_cpp_err"; then
4625   :
4626 else
4627   echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630   # Broken: fails on valid input.
4631 continue
4632 fi
4633 rm -f conftest.err conftest.$ac_ext
4634
4635   # OK, works on sane cases.  Now check whether non-existent headers
4636   # can be detected and how.
4637   cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4643 #include <ac_nonexistent.h>
4644 _ACEOF
4645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4646   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4647   ac_status=$?
4648   grep -v '^ *+' conftest.er1 >conftest.err
4649   rm -f conftest.er1
4650   cat conftest.err >&5
4651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); } >/dev/null; then
4653   if test -s conftest.err; then
4654     ac_cpp_err=$ac_c_preproc_warn_flag
4655     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4656   else
4657     ac_cpp_err=
4658   fi
4659 else
4660   ac_cpp_err=yes
4661 fi
4662 if test -z "$ac_cpp_err"; then
4663   # Broken: success on invalid input.
4664 continue
4665 else
4666   echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669   # Passes both tests.
4670 ac_preproc_ok=:
4671 break
4672 fi
4673 rm -f conftest.err conftest.$ac_ext
4674
4675 done
4676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4677 rm -f conftest.err conftest.$ac_ext
4678 if $ac_preproc_ok; then
4679   :
4680 else
4681   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4682 See \`config.log' for more details." >&5
4683 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4684 See \`config.log' for more details." >&2;}
4685    { (exit 1); exit 1; }; }
4686 fi
4687
4688 ac_ext=c
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693
4694 if test $ac_cv_c_compiler_gnu = yes; then
4695     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4696 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4697 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700     ac_pattern="Autoconf.*'x'"
4701   cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h.  */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h.  */
4707 #include <sgtty.h>
4708 Autoconf TIOCGETP
4709 _ACEOF
4710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4711   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4712   ac_cv_prog_gcc_traditional=yes
4713 else
4714   ac_cv_prog_gcc_traditional=no
4715 fi
4716 rm -f conftest*
4717
4718
4719   if test $ac_cv_prog_gcc_traditional = no; then
4720     cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h.  */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h.  */
4726 #include <termio.h>
4727 Autoconf TCGETA
4728 _ACEOF
4729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4730   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4731   ac_cv_prog_gcc_traditional=yes
4732 fi
4733 rm -f conftest*
4734
4735   fi
4736 fi
4737 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4738 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4739   if test $ac_cv_prog_gcc_traditional = yes; then
4740     CC="$CC -traditional"
4741   fi
4742 fi
4743
4744 if test -n "$ac_tool_prefix"; then
4745   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4746 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4747 echo "$as_me:$LINENO: checking for $ac_word" >&5
4748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4749 if test "${ac_cv_prog_RANLIB+set}" = set; then
4750   echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752   if test -n "$RANLIB"; then
4753   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4757 do
4758   IFS=$as_save_IFS
4759   test -z "$as_dir" && as_dir=.
4760   for ac_exec_ext in '' $ac_executable_extensions; do
4761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764     break 2
4765   fi
4766 done
4767 done
4768
4769 fi
4770 fi
4771 RANLIB=$ac_cv_prog_RANLIB
4772 if test -n "$RANLIB"; then
4773   echo "$as_me:$LINENO: result: $RANLIB" >&5
4774 echo "${ECHO_T}$RANLIB" >&6
4775 else
4776   echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6
4778 fi
4779
4780 fi
4781 if test -z "$ac_cv_prog_RANLIB"; then
4782   ac_ct_RANLIB=$RANLIB
4783   # Extract the first word of "ranlib", so it can be a program name with args.
4784 set dummy ranlib; ac_word=$2
4785 echo "$as_me:$LINENO: checking for $ac_word" >&5
4786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4787 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4788   echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790   if test -n "$ac_ct_RANLIB"; then
4791   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4792 else
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4795 do
4796   IFS=$as_save_IFS
4797   test -z "$as_dir" && as_dir=.
4798   for ac_exec_ext in '' $ac_executable_extensions; do
4799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4800     ac_cv_prog_ac_ct_RANLIB="ranlib"
4801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802     break 2
4803   fi
4804 done
4805 done
4806
4807   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4808 fi
4809 fi
4810 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4811 if test -n "$ac_ct_RANLIB"; then
4812   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4813 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4814 else
4815   echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6
4817 fi
4818
4819   RANLIB=$ac_ct_RANLIB
4820 else
4821   RANLIB="$ac_cv_prog_RANLIB"
4822 fi
4823
4824 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4825 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4826 LN_S=$as_ln_s
4827 if test "$LN_S" = "ln -s"; then
4828   echo "$as_me:$LINENO: result: yes" >&5
4829 echo "${ECHO_T}yes" >&6
4830 else
4831   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4832 echo "${ECHO_T}no, using $LN_S" >&6
4833 fi
4834
4835 # Make sure we can run config.sub.
4836 $ac_config_sub sun4 >/dev/null 2>&1 ||
4837   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4838 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4839    { (exit 1); exit 1; }; }
4840
4841 echo "$as_me:$LINENO: checking build system type" >&5
4842 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4843 if test "${ac_cv_build+set}" = set; then
4844   echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846   ac_cv_build_alias=$build_alias
4847 test -z "$ac_cv_build_alias" &&
4848   ac_cv_build_alias=`$ac_config_guess`
4849 test -z "$ac_cv_build_alias" &&
4850   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4851 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4852    { (exit 1); exit 1; }; }
4853 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4854   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4855 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4856    { (exit 1); exit 1; }; }
4857
4858 fi
4859 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4860 echo "${ECHO_T}$ac_cv_build" >&6
4861 build=$ac_cv_build
4862 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4863 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4864 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4865
4866
4867 echo "$as_me:$LINENO: checking host system type" >&5
4868 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4869 if test "${ac_cv_host+set}" = set; then
4870   echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872   ac_cv_host_alias=$host_alias
4873 test -z "$ac_cv_host_alias" &&
4874   ac_cv_host_alias=$ac_cv_build_alias
4875 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4876   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4877 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4878    { (exit 1); exit 1; }; }
4879
4880 fi
4881 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4882 echo "${ECHO_T}$ac_cv_host" >&6
4883 host=$ac_cv_host
4884 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4885 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4886 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4887
4888
4889
4890
4891
4892 for ac_func in uname
4893 do
4894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4895 echo "$as_me:$LINENO: checking for $ac_func" >&5
4896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4897 if eval "test \"\${$as_ac_var+set}\" = set"; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   cat >conftest.$ac_ext <<_ACEOF
4901 /* confdefs.h.  */
4902 _ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h.  */
4906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4908 #define $ac_func innocuous_$ac_func
4909
4910 /* System header to define __stub macros and hopefully few prototypes,
4911     which can conflict with char $ac_func (); below.
4912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4913     <limits.h> exists even on freestanding compilers.  */
4914
4915 #ifdef __STDC__
4916 # include <limits.h>
4917 #else
4918 # include <assert.h>
4919 #endif
4920
4921 #undef $ac_func
4922
4923 /* Override any gcc2 internal prototype to avoid an error.  */
4924 #ifdef __cplusplus
4925 extern "C"
4926 {
4927 #endif
4928 /* We use char because int might match the return type of a gcc2
4929    builtin and then its argument prototype would still apply.  */
4930 char $ac_func ();
4931 /* The GNU C library defines this for functions which it implements
4932     to always fail with ENOSYS.  Some functions are actually named
4933     something starting with __ and the normal name is an alias.  */
4934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4935 choke me
4936 #else
4937 char (*f) () = $ac_func;
4938 #endif
4939 #ifdef __cplusplus
4940 }
4941 #endif
4942
4943 int
4944 main ()
4945 {
4946 return f != $ac_func;
4947   ;
4948   return 0;
4949 }
4950 _ACEOF
4951 rm -f conftest.$ac_objext conftest$ac_exeext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4953   (eval $ac_link) 2>conftest.er1
4954   ac_status=$?
4955   grep -v '^ *+' conftest.er1 >conftest.err
4956   rm -f conftest.er1
4957   cat conftest.err >&5
4958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959   (exit $ac_status); } &&
4960          { ac_try='test -z "$ac_c_werror_flag"
4961                          || test ! -s conftest.err'
4962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963   (eval $ac_try) 2>&5
4964   ac_status=$?
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); }; } &&
4967          { ac_try='test -s conftest$ac_exeext'
4968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969   (eval $ac_try) 2>&5
4970   ac_status=$?
4971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972   (exit $ac_status); }; }; then
4973   eval "$as_ac_var=yes"
4974 else
4975   echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4977
4978 eval "$as_ac_var=no"
4979 fi
4980 rm -f conftest.err conftest.$ac_objext \
4981       conftest$ac_exeext conftest.$ac_ext
4982 fi
4983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4984 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4985 if test `eval echo '${'$as_ac_var'}'` = yes; then
4986   cat >>confdefs.h <<_ACEOF
4987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4988 _ACEOF
4989  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname\$(EXEEXT)"
4990         MAN="$MAN uname.1"
4991 fi
4992 done
4993
4994
4995 for ac_func in chroot
4996 do
4997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4998 echo "$as_me:$LINENO: checking for $ac_func" >&5
4999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5000 if eval "test \"\${$as_ac_var+set}\" = set"; then
5001   echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003   cat >conftest.$ac_ext <<_ACEOF
5004 /* confdefs.h.  */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h.  */
5009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5011 #define $ac_func innocuous_$ac_func
5012
5013 /* System header to define __stub macros and hopefully few prototypes,
5014     which can conflict with char $ac_func (); below.
5015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5016     <limits.h> exists even on freestanding compilers.  */
5017
5018 #ifdef __STDC__
5019 # include <limits.h>
5020 #else
5021 # include <assert.h>
5022 #endif
5023
5024 #undef $ac_func
5025
5026 /* Override any gcc2 internal prototype to avoid an error.  */
5027 #ifdef __cplusplus
5028 extern "C"
5029 {
5030 #endif
5031 /* We use char because int might match the return type of a gcc2
5032    builtin and then its argument prototype would still apply.  */
5033 char $ac_func ();
5034 /* The GNU C library defines this for functions which it implements
5035     to always fail with ENOSYS.  Some functions are actually named
5036     something starting with __ and the normal name is an alias.  */
5037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5038 choke me
5039 #else
5040 char (*f) () = $ac_func;
5041 #endif
5042 #ifdef __cplusplus
5043 }
5044 #endif
5045
5046 int
5047 main ()
5048 {
5049 return f != $ac_func;
5050   ;
5051   return 0;
5052 }
5053 _ACEOF
5054 rm -f conftest.$ac_objext conftest$ac_exeext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5056   (eval $ac_link) 2>conftest.er1
5057   ac_status=$?
5058   grep -v '^ *+' conftest.er1 >conftest.err
5059   rm -f conftest.er1
5060   cat conftest.err >&5
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); } &&
5063          { ac_try='test -z "$ac_c_werror_flag"
5064                          || test ! -s conftest.err'
5065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066   (eval $ac_try) 2>&5
5067   ac_status=$?
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); }; } &&
5070          { ac_try='test -s conftest$ac_exeext'
5071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072   (eval $ac_try) 2>&5
5073   ac_status=$?
5074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075   (exit $ac_status); }; }; then
5076   eval "$as_ac_var=yes"
5077 else
5078   echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5080
5081 eval "$as_ac_var=no"
5082 fi
5083 rm -f conftest.err conftest.$ac_objext \
5084       conftest$ac_exeext conftest.$ac_ext
5085 fi
5086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5088 if test `eval echo '${'$as_ac_var'}'` = yes; then
5089   cat >>confdefs.h <<_ACEOF
5090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5091 _ACEOF
5092  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot\$(EXEEXT)"
5093         MAN="$MAN chroot.1"
5094 fi
5095 done
5096
5097
5098 for ac_func in gethostid
5099 do
5100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5101 echo "$as_me:$LINENO: checking for $ac_func" >&5
5102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5103 if eval "test \"\${$as_ac_var+set}\" = set"; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106   cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h.  */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h.  */
5112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5114 #define $ac_func innocuous_$ac_func
5115
5116 /* System header to define __stub macros and hopefully few prototypes,
5117     which can conflict with char $ac_func (); below.
5118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5119     <limits.h> exists even on freestanding compilers.  */
5120
5121 #ifdef __STDC__
5122 # include <limits.h>
5123 #else
5124 # include <assert.h>
5125 #endif
5126
5127 #undef $ac_func
5128
5129 /* Override any gcc2 internal prototype to avoid an error.  */
5130 #ifdef __cplusplus
5131 extern "C"
5132 {
5133 #endif
5134 /* We use char because int might match the return type of a gcc2
5135    builtin and then its argument prototype would still apply.  */
5136 char $ac_func ();
5137 /* The GNU C library defines this for functions which it implements
5138     to always fail with ENOSYS.  Some functions are actually named
5139     something starting with __ and the normal name is an alias.  */
5140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5141 choke me
5142 #else
5143 char (*f) () = $ac_func;
5144 #endif
5145 #ifdef __cplusplus
5146 }
5147 #endif
5148
5149 int
5150 main ()
5151 {
5152 return f != $ac_func;
5153   ;
5154   return 0;
5155 }
5156 _ACEOF
5157 rm -f conftest.$ac_objext conftest$ac_exeext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159   (eval $ac_link) 2>conftest.er1
5160   ac_status=$?
5161   grep -v '^ *+' conftest.er1 >conftest.err
5162   rm -f conftest.er1
5163   cat conftest.err >&5
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); } &&
5166          { ac_try='test -z "$ac_c_werror_flag"
5167                          || test ! -s conftest.err'
5168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169   (eval $ac_try) 2>&5
5170   ac_status=$?
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); }; } &&
5173          { ac_try='test -s conftest$ac_exeext'
5174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175   (eval $ac_try) 2>&5
5176   ac_status=$?
5177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178   (exit $ac_status); }; }; then
5179   eval "$as_ac_var=yes"
5180 else
5181   echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5183
5184 eval "$as_ac_var=no"
5185 fi
5186 rm -f conftest.err conftest.$ac_objext \
5187       conftest$ac_exeext conftest.$ac_ext
5188 fi
5189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5191 if test `eval echo '${'$as_ac_var'}'` = yes; then
5192   cat >>confdefs.h <<_ACEOF
5193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5194 _ACEOF
5195  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid\$(EXEEXT)"
5196         MAN="$MAN hostid.1"
5197 fi
5198 done
5199
5200
5201 echo "$as_me:$LINENO: checking for library containing strerror" >&5
5202 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
5203 if test "${ac_cv_search_strerror+set}" = set; then
5204   echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206   ac_func_search_save_LIBS=$LIBS
5207 ac_cv_search_strerror=no
5208 cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h.  */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h.  */
5214
5215 /* Override any gcc2 internal prototype to avoid an error.  */
5216 #ifdef __cplusplus
5217 extern "C"
5218 #endif
5219 /* We use char because int might match the return type of a gcc2
5220    builtin and then its argument prototype would still apply.  */
5221 char strerror ();
5222 int
5223 main ()
5224 {
5225 strerror ();
5226   ;
5227   return 0;
5228 }
5229 _ACEOF
5230 rm -f conftest.$ac_objext conftest$ac_exeext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5232   (eval $ac_link) 2>conftest.er1
5233   ac_status=$?
5234   grep -v '^ *+' conftest.er1 >conftest.err
5235   rm -f conftest.er1
5236   cat conftest.err >&5
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); } &&
5239          { ac_try='test -z "$ac_c_werror_flag"
5240                          || test ! -s conftest.err'
5241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242   (eval $ac_try) 2>&5
5243   ac_status=$?
5244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245   (exit $ac_status); }; } &&
5246          { ac_try='test -s conftest$ac_exeext'
5247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248   (eval $ac_try) 2>&5
5249   ac_status=$?
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); }; }; then
5252   ac_cv_search_strerror="none required"
5253 else
5254   echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5256
5257 fi
5258 rm -f conftest.err conftest.$ac_objext \
5259       conftest$ac_exeext conftest.$ac_ext
5260 if test "$ac_cv_search_strerror" = no; then
5261   for ac_lib in cposix; do
5262     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5263     cat >conftest.$ac_ext <<_ACEOF
5264 /* confdefs.h.  */
5265 _ACEOF
5266 cat confdefs.h >>conftest.$ac_ext
5267 cat >>conftest.$ac_ext <<_ACEOF
5268 /* end confdefs.h.  */
5269
5270 /* Override any gcc2 internal prototype to avoid an error.  */
5271 #ifdef __cplusplus
5272 extern "C"
5273 #endif
5274 /* We use char because int might match the return type of a gcc2
5275    builtin and then its argument prototype would still apply.  */
5276 char strerror ();
5277 int
5278 main ()
5279 {
5280 strerror ();
5281   ;
5282   return 0;
5283 }
5284 _ACEOF
5285 rm -f conftest.$ac_objext conftest$ac_exeext
5286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5287   (eval $ac_link) 2>conftest.er1
5288   ac_status=$?
5289   grep -v '^ *+' conftest.er1 >conftest.err
5290   rm -f conftest.er1
5291   cat conftest.err >&5
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); } &&
5294          { ac_try='test -z "$ac_c_werror_flag"
5295                          || test ! -s conftest.err'
5296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297   (eval $ac_try) 2>&5
5298   ac_status=$?
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); }; } &&
5301          { ac_try='test -s conftest$ac_exeext'
5302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303   (eval $ac_try) 2>&5
5304   ac_status=$?
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }; }; then
5307   ac_cv_search_strerror="-l$ac_lib"
5308 break
5309 else
5310   echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5312
5313 fi
5314 rm -f conftest.err conftest.$ac_objext \
5315       conftest$ac_exeext conftest.$ac_ext
5316   done
5317 fi
5318 LIBS=$ac_func_search_save_LIBS
5319 fi
5320 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5321 echo "${ECHO_T}$ac_cv_search_strerror" >&6
5322 if test "$ac_cv_search_strerror" != no; then
5323   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5324
5325 fi
5326
5327 # Check whether --enable-largefile or --disable-largefile was given.
5328 if test "${enable_largefile+set}" = set; then
5329   enableval="$enable_largefile"
5330
5331 fi;
5332 if test "$enable_largefile" != no; then
5333
5334   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5335 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
5336 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5337   echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339   ac_cv_sys_largefile_CC=no
5340      if test "$GCC" != yes; then
5341        ac_save_CC=$CC
5342        while :; do
5343          # IRIX 6.2 and later do not support large files by default,
5344          # so use the C compiler's -n32 option if that helps.
5345          cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h.  */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h.  */
5351 #include <sys/types.h>
5352  /* Check that off_t can represent 2**63 - 1 correctly.
5353     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5354     since some C++ compilers masquerading as C compilers
5355     incorrectly reject 9223372036854775807.  */
5356 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5357   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5358                        && LARGE_OFF_T % 2147483647 == 1)
5359                       ? 1 : -1];
5360 int
5361 main ()
5362 {
5363
5364   ;
5365   return 0;
5366 }
5367 _ACEOF
5368          rm -f conftest.$ac_objext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5370   (eval $ac_compile) 2>conftest.er1
5371   ac_status=$?
5372   grep -v '^ *+' conftest.er1 >conftest.err
5373   rm -f conftest.er1
5374   cat conftest.err >&5
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); } &&
5377          { ac_try='test -z "$ac_c_werror_flag"
5378                          || test ! -s conftest.err'
5379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380   (eval $ac_try) 2>&5
5381   ac_status=$?
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); }; } &&
5384          { ac_try='test -s conftest.$ac_objext'
5385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386   (eval $ac_try) 2>&5
5387   ac_status=$?
5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); }; }; then
5390   break
5391 else
5392   echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5394
5395 fi
5396 rm -f conftest.err conftest.$ac_objext
5397          CC="$CC -n32"
5398          rm -f conftest.$ac_objext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400   (eval $ac_compile) 2>conftest.er1
5401   ac_status=$?
5402   grep -v '^ *+' conftest.er1 >conftest.err
5403   rm -f conftest.er1
5404   cat conftest.err >&5
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); } &&
5407          { ac_try='test -z "$ac_c_werror_flag"
5408                          || test ! -s conftest.err'
5409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410   (eval $ac_try) 2>&5
5411   ac_status=$?
5412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413   (exit $ac_status); }; } &&
5414          { ac_try='test -s conftest.$ac_objext'
5415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416   (eval $ac_try) 2>&5
5417   ac_status=$?
5418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419   (exit $ac_status); }; }; then
5420   ac_cv_sys_largefile_CC=' -n32'; break
5421 else
5422   echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 fi
5426 rm -f conftest.err conftest.$ac_objext
5427          break
5428        done
5429        CC=$ac_save_CC
5430        rm -f conftest.$ac_ext
5431     fi
5432 fi
5433 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5434 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5435   if test "$ac_cv_sys_largefile_CC" != no; then
5436     CC=$CC$ac_cv_sys_largefile_CC
5437   fi
5438
5439   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5440 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5441 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5442   echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444   while :; do
5445   ac_cv_sys_file_offset_bits=no
5446   cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h.  */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h.  */
5452 #include <sys/types.h>
5453  /* Check that off_t can represent 2**63 - 1 correctly.
5454     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5455     since some C++ compilers masquerading as C compilers
5456     incorrectly reject 9223372036854775807.  */
5457 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5458   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5459                        && LARGE_OFF_T % 2147483647 == 1)
5460                       ? 1 : -1];
5461 int
5462 main ()
5463 {
5464
5465   ;
5466   return 0;
5467 }
5468 _ACEOF
5469 rm -f conftest.$ac_objext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471   (eval $ac_compile) 2>conftest.er1
5472   ac_status=$?
5473   grep -v '^ *+' conftest.er1 >conftest.err
5474   rm -f conftest.er1
5475   cat conftest.err >&5
5476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477   (exit $ac_status); } &&
5478          { ac_try='test -z "$ac_c_werror_flag"
5479                          || test ! -s conftest.err'
5480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481   (eval $ac_try) 2>&5
5482   ac_status=$?
5483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); }; } &&
5485          { ac_try='test -s conftest.$ac_objext'
5486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487   (eval $ac_try) 2>&5
5488   ac_status=$?
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); }; }; then
5491   break
5492 else
5493   echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496 fi
5497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5498   cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h.  */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h.  */
5504 #define _FILE_OFFSET_BITS 64
5505 #include <sys/types.h>
5506  /* Check that off_t can represent 2**63 - 1 correctly.
5507     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5508     since some C++ compilers masquerading as C compilers
5509     incorrectly reject 9223372036854775807.  */
5510 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5511   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5512                        && LARGE_OFF_T % 2147483647 == 1)
5513                       ? 1 : -1];
5514 int
5515 main ()
5516 {
5517
5518   ;
5519   return 0;
5520 }
5521 _ACEOF
5522 rm -f conftest.$ac_objext
5523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524   (eval $ac_compile) 2>conftest.er1
5525   ac_status=$?
5526   grep -v '^ *+' conftest.er1 >conftest.err
5527   rm -f conftest.er1
5528   cat conftest.err >&5
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); } &&
5531          { ac_try='test -z "$ac_c_werror_flag"
5532                          || test ! -s conftest.err'
5533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534   (eval $ac_try) 2>&5
5535   ac_status=$?
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); }; } &&
5538          { ac_try='test -s conftest.$ac_objext'
5539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540   (eval $ac_try) 2>&5
5541   ac_status=$?
5542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543   (exit $ac_status); }; }; then
5544   ac_cv_sys_file_offset_bits=64; break
5545 else
5546   echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5548
5549 fi
5550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5551   break
5552 done
5553 fi
5554 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5555 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5556 if test "$ac_cv_sys_file_offset_bits" != no; then
5557
5558 cat >>confdefs.h <<_ACEOF
5559 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5560 _ACEOF
5561
5562 fi
5563 rm -f conftest*
5564   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5565 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5566 if test "${ac_cv_sys_large_files+set}" = set; then
5567   echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569   while :; do
5570   ac_cv_sys_large_files=no
5571   cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h.  */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h.  */
5577 #include <sys/types.h>
5578  /* Check that off_t can represent 2**63 - 1 correctly.
5579     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5580     since some C++ compilers masquerading as C compilers
5581     incorrectly reject 9223372036854775807.  */
5582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5583   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5584                        && LARGE_OFF_T % 2147483647 == 1)
5585                       ? 1 : -1];
5586 int
5587 main ()
5588 {
5589
5590   ;
5591   return 0;
5592 }
5593 _ACEOF
5594 rm -f conftest.$ac_objext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596   (eval $ac_compile) 2>conftest.er1
5597   ac_status=$?
5598   grep -v '^ *+' conftest.er1 >conftest.err
5599   rm -f conftest.er1
5600   cat conftest.err >&5
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); } &&
5603          { ac_try='test -z "$ac_c_werror_flag"
5604                          || test ! -s conftest.err'
5605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606   (eval $ac_try) 2>&5
5607   ac_status=$?
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); }; } &&
5610          { ac_try='test -s conftest.$ac_objext'
5611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612   (eval $ac_try) 2>&5
5613   ac_status=$?
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); }; }; then
5616   break
5617 else
5618   echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621 fi
5622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5623   cat >conftest.$ac_ext <<_ACEOF
5624 /* confdefs.h.  */
5625 _ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h.  */
5629 #define _LARGE_FILES 1
5630 #include <sys/types.h>
5631  /* Check that off_t can represent 2**63 - 1 correctly.
5632     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5633     since some C++ compilers masquerading as C compilers
5634     incorrectly reject 9223372036854775807.  */
5635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5636   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5637                        && LARGE_OFF_T % 2147483647 == 1)
5638                       ? 1 : -1];
5639 int
5640 main ()
5641 {
5642
5643   ;
5644   return 0;
5645 }
5646 _ACEOF
5647 rm -f conftest.$ac_objext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5649   (eval $ac_compile) 2>conftest.er1
5650   ac_status=$?
5651   grep -v '^ *+' conftest.er1 >conftest.err
5652   rm -f conftest.er1
5653   cat conftest.err >&5
5654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655   (exit $ac_status); } &&
5656          { ac_try='test -z "$ac_c_werror_flag"
5657                          || test ! -s conftest.err'
5658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659   (eval $ac_try) 2>&5
5660   ac_status=$?
5661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662   (exit $ac_status); }; } &&
5663          { ac_try='test -s conftest.$ac_objext'
5664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665   (eval $ac_try) 2>&5
5666   ac_status=$?
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); }; }; then
5669   ac_cv_sys_large_files=1; break
5670 else
5671   echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5673
5674 fi
5675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5676   break
5677 done
5678 fi
5679 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5680 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5681 if test "$ac_cv_sys_large_files" != no; then
5682
5683 cat >>confdefs.h <<_ACEOF
5684 #define _LARGE_FILES $ac_cv_sys_large_files
5685 _ACEOF
5686
5687 fi
5688 rm -f conftest*
5689 fi
5690
5691 echo "$as_me:$LINENO: checking for function prototypes" >&5
5692 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5693 if test "$ac_cv_prog_cc_stdc" != no; then
5694   echo "$as_me:$LINENO: result: yes" >&5
5695 echo "${ECHO_T}yes" >&6
5696
5697 cat >>confdefs.h <<\_ACEOF
5698 #define PROTOTYPES 1
5699 _ACEOF
5700
5701
5702 cat >>confdefs.h <<\_ACEOF
5703 #define __PROTOTYPES 1
5704 _ACEOF
5705
5706 else
5707   echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6
5709 fi
5710
5711
5712 if test "$ac_cv_prog_cc_stdc" != no; then
5713   U= ANSI2KNR=
5714 else
5715   U=_ ANSI2KNR=./ansi2knr
5716 fi
5717 # Ensure some checks needed by ansi2knr itself.
5718
5719
5720 for ac_header in string.h
5721 do
5722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5724   echo "$as_me:$LINENO: checking for $ac_header" >&5
5725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5727   echo $ECHO_N "(cached) $ECHO_C" >&6
5728 fi
5729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5731 else
5732   # Is the header compilable?
5733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5735 cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h.  */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h.  */
5741 $ac_includes_default
5742 #include <$ac_header>
5743 _ACEOF
5744 rm -f conftest.$ac_objext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746   (eval $ac_compile) 2>conftest.er1
5747   ac_status=$?
5748   grep -v '^ *+' conftest.er1 >conftest.err
5749   rm -f conftest.er1
5750   cat conftest.err >&5
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); } &&
5753          { ac_try='test -z "$ac_c_werror_flag"
5754                          || test ! -s conftest.err'
5755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756   (eval $ac_try) 2>&5
5757   ac_status=$?
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); }; } &&
5760          { ac_try='test -s conftest.$ac_objext'
5761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762   (eval $ac_try) 2>&5
5763   ac_status=$?
5764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765   (exit $ac_status); }; }; then
5766   ac_header_compiler=yes
5767 else
5768   echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5770
5771 ac_header_compiler=no
5772 fi
5773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5775 echo "${ECHO_T}$ac_header_compiler" >&6
5776
5777 # Is the header present?
5778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h.  */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h.  */
5786 #include <$ac_header>
5787 _ACEOF
5788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5790   ac_status=$?
5791   grep -v '^ *+' conftest.er1 >conftest.err
5792   rm -f conftest.er1
5793   cat conftest.err >&5
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); } >/dev/null; then
5796   if test -s conftest.err; then
5797     ac_cpp_err=$ac_c_preproc_warn_flag
5798     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5799   else
5800     ac_cpp_err=
5801   fi
5802 else
5803   ac_cpp_err=yes
5804 fi
5805 if test -z "$ac_cpp_err"; then
5806   ac_header_preproc=yes
5807 else
5808   echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5810
5811   ac_header_preproc=no
5812 fi
5813 rm -f conftest.err conftest.$ac_ext
5814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5815 echo "${ECHO_T}$ac_header_preproc" >&6
5816
5817 # So?  What about this header?
5818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5819   yes:no: )
5820     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5824     ac_header_preproc=yes
5825     ;;
5826   no:yes:* )
5827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5829     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5830 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5831     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5833     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5834 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5837     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5839     (
5840       cat <<\_ASBOX
5841 ## ------------------------------------ ##
5842 ## Report this to bug-coreutils@gnu.org ##
5843 ## ------------------------------------ ##
5844 _ASBOX
5845     ) |
5846       sed "s/^/$as_me: WARNING:     /" >&2
5847     ;;
5848 esac
5849 echo "$as_me:$LINENO: checking for $ac_header" >&5
5850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   eval "$as_ac_Header=\$ac_header_preproc"
5855 fi
5856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5858
5859 fi
5860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5861   cat >>confdefs.h <<_ACEOF
5862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5863 _ACEOF
5864
5865 fi
5866
5867 done
5868
5869
5870 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5871 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5872 if test "${ac_cv_c_bigendian+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   # See if sys/param.h defines the BYTE_ORDER macro.
5876 cat >conftest.$ac_ext <<_ACEOF
5877 /* confdefs.h.  */
5878 _ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h.  */
5882 #include <sys/types.h>
5883 #include <sys/param.h>
5884
5885 int
5886 main ()
5887 {
5888 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5889  bogus endian macros
5890 #endif
5891
5892   ;
5893   return 0;
5894 }
5895 _ACEOF
5896 rm -f conftest.$ac_objext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898   (eval $ac_compile) 2>conftest.er1
5899   ac_status=$?
5900   grep -v '^ *+' conftest.er1 >conftest.err
5901   rm -f conftest.er1
5902   cat conftest.err >&5
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); } &&
5905          { ac_try='test -z "$ac_c_werror_flag"
5906                          || test ! -s conftest.err'
5907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908   (eval $ac_try) 2>&5
5909   ac_status=$?
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); }; } &&
5912          { ac_try='test -s conftest.$ac_objext'
5913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914   (eval $ac_try) 2>&5
5915   ac_status=$?
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); }; }; then
5918   # It does; now see whether it defined to BIG_ENDIAN or not.
5919 cat >conftest.$ac_ext <<_ACEOF
5920 /* confdefs.h.  */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h.  */
5925 #include <sys/types.h>
5926 #include <sys/param.h>
5927
5928 int
5929 main ()
5930 {
5931 #if BYTE_ORDER != BIG_ENDIAN
5932  not big endian
5933 #endif
5934
5935   ;
5936   return 0;
5937 }
5938 _ACEOF
5939 rm -f conftest.$ac_objext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5941   (eval $ac_compile) 2>conftest.er1
5942   ac_status=$?
5943   grep -v '^ *+' conftest.er1 >conftest.err
5944   rm -f conftest.er1
5945   cat conftest.err >&5
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); } &&
5948          { ac_try='test -z "$ac_c_werror_flag"
5949                          || test ! -s conftest.err'
5950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951   (eval $ac_try) 2>&5
5952   ac_status=$?
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); }; } &&
5955          { ac_try='test -s conftest.$ac_objext'
5956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957   (eval $ac_try) 2>&5
5958   ac_status=$?
5959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960   (exit $ac_status); }; }; then
5961   ac_cv_c_bigendian=yes
5962 else
5963   echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5965
5966 ac_cv_c_bigendian=no
5967 fi
5968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5969 else
5970   echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5972
5973 # It does not; compile a test program.
5974 if test "$cross_compiling" = yes; then
5975   # try to guess the endianness by grepping values into an object file
5976   ac_cv_c_bigendian=unknown
5977   cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h.  */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h.  */
5983 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5984 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5985 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5986 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5987 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5988 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5989 int
5990 main ()
5991 {
5992  _ascii (); _ebcdic ();
5993   ;
5994   return 0;
5995 }
5996 _ACEOF
5997 rm -f conftest.$ac_objext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5999   (eval $ac_compile) 2>conftest.er1
6000   ac_status=$?
6001   grep -v '^ *+' conftest.er1 >conftest.err
6002   rm -f conftest.er1
6003   cat conftest.err >&5
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } &&
6006          { ac_try='test -z "$ac_c_werror_flag"
6007                          || test ! -s conftest.err'
6008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009   (eval $ac_try) 2>&5
6010   ac_status=$?
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); }; } &&
6013          { ac_try='test -s conftest.$ac_objext'
6014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015   (eval $ac_try) 2>&5
6016   ac_status=$?
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); }; }; then
6019   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6020   ac_cv_c_bigendian=yes
6021 fi
6022 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6023   if test "$ac_cv_c_bigendian" = unknown; then
6024     ac_cv_c_bigendian=no
6025   else
6026     # finding both strings is unlikely to happen, but who knows?
6027     ac_cv_c_bigendian=unknown
6028   fi
6029 fi
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034 fi
6035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6036 else
6037   cat >conftest.$ac_ext <<_ACEOF
6038 /* confdefs.h.  */
6039 _ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h.  */
6043 int
6044 main ()
6045 {
6046   /* Are we little or big endian?  From Harbison&Steele.  */
6047   union
6048   {
6049     long l;
6050     char c[sizeof (long)];
6051   } u;
6052   u.l = 1;
6053   exit (u.c[sizeof (long) - 1] == 1);
6054 }
6055 _ACEOF
6056 rm -f conftest$ac_exeext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058   (eval $ac_link) 2>&5
6059   ac_status=$?
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063   (eval $ac_try) 2>&5
6064   ac_status=$?
6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066   (exit $ac_status); }; }; then
6067   ac_cv_c_bigendian=no
6068 else
6069   echo "$as_me: program exited with status $ac_status" >&5
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073 ( exit $ac_status )
6074 ac_cv_c_bigendian=yes
6075 fi
6076 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6077 fi
6078 fi
6079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6080 fi
6081 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6082 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6083 case $ac_cv_c_bigendian in
6084   yes)
6085
6086 cat >>confdefs.h <<\_ACEOF
6087 #define WORDS_BIGENDIAN 1
6088 _ACEOF
6089  ;;
6090   no)
6091      ;;
6092   *)
6093     { { echo "$as_me:$LINENO: error: unknown endianness
6094 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6095 echo "$as_me: error: unknown endianness
6096 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6097    { (exit 1); exit 1; }; } ;;
6098 esac
6099
6100 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6101 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6102 if test "${ac_cv_c_const+set}" = set; then
6103   echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105   cat >conftest.$ac_ext <<_ACEOF
6106 /* confdefs.h.  */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h.  */
6111
6112 int
6113 main ()
6114 {
6115 /* FIXME: Include the comments suggested by Paul. */
6116 #ifndef __cplusplus
6117   /* Ultrix mips cc rejects this.  */
6118   typedef int charset[2];
6119   const charset x;
6120   /* SunOS 4.1.1 cc rejects this.  */
6121   char const *const *ccp;
6122   char **p;
6123   /* NEC SVR4.0.2 mips cc rejects this.  */
6124   struct point {int x, y;};
6125   static struct point const zero = {0,0};
6126   /* AIX XL C 1.02.0.0 rejects this.
6127      It does not let you subtract one const X* pointer from another in
6128      an arm of an if-expression whose if-part is not a constant
6129      expression */
6130   const char *g = "string";
6131   ccp = &g + (g ? g-g : 0);
6132   /* HPUX 7.0 cc rejects these. */
6133   ++ccp;
6134   p = (char**) ccp;
6135   ccp = (char const *const *) p;
6136   { /* SCO 3.2v4 cc rejects this.  */
6137     char *t;
6138     char const *s = 0 ? (char *) 0 : (char const *) 0;
6139
6140     *t++ = 0;
6141   }
6142   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6143     int x[] = {25, 17};
6144     const int *foo = &x[0];
6145     ++foo;
6146   }
6147   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6148     typedef const int *iptr;
6149     iptr p = 0;
6150     ++p;
6151   }
6152   { /* AIX XL C 1.02.0.0 rejects this saying
6153        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6154     struct s { int j; const int *ap[3]; };
6155     struct s *b; b->j = 5;
6156   }
6157   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6158     const int foo = 10;
6159   }
6160 #endif
6161
6162   ;
6163   return 0;
6164 }
6165 _ACEOF
6166 rm -f conftest.$ac_objext
6167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6168   (eval $ac_compile) 2>conftest.er1
6169   ac_status=$?
6170   grep -v '^ *+' conftest.er1 >conftest.err
6171   rm -f conftest.er1
6172   cat conftest.err >&5
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); } &&
6175          { ac_try='test -z "$ac_c_werror_flag"
6176                          || test ! -s conftest.err'
6177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178   (eval $ac_try) 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); }; } &&
6182          { ac_try='test -s conftest.$ac_objext'
6183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184   (eval $ac_try) 2>&5
6185   ac_status=$?
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); }; }; then
6188   ac_cv_c_const=yes
6189 else
6190   echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6192
6193 ac_cv_c_const=no
6194 fi
6195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6196 fi
6197 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6198 echo "${ECHO_T}$ac_cv_c_const" >&6
6199 if test $ac_cv_c_const = no; then
6200
6201 cat >>confdefs.h <<\_ACEOF
6202 #define const
6203 _ACEOF
6204
6205 fi
6206
6207 echo "$as_me:$LINENO: checking for working volatile" >&5
6208 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6209 if test "${ac_cv_c_volatile+set}" = set; then
6210   echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212   cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h.  */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h.  */
6218
6219 int
6220 main ()
6221 {
6222
6223 volatile int x;
6224 int * volatile y;
6225   ;
6226   return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231   (eval $ac_compile) 2>conftest.er1
6232   ac_status=$?
6233   grep -v '^ *+' conftest.er1 >conftest.err
6234   rm -f conftest.er1
6235   cat conftest.err >&5
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); } &&
6238          { ac_try='test -z "$ac_c_werror_flag"
6239                          || test ! -s conftest.err'
6240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241   (eval $ac_try) 2>&5
6242   ac_status=$?
6243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244   (exit $ac_status); }; } &&
6245          { ac_try='test -s conftest.$ac_objext'
6246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247   (eval $ac_try) 2>&5
6248   ac_status=$?
6249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250   (exit $ac_status); }; }; then
6251   ac_cv_c_volatile=yes
6252 else
6253   echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 ac_cv_c_volatile=no
6257 fi
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259 fi
6260 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6261 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6262 if test $ac_cv_c_volatile = no; then
6263
6264 cat >>confdefs.h <<\_ACEOF
6265 #define volatile
6266 _ACEOF
6267
6268 fi
6269
6270 echo "$as_me:$LINENO: checking for inline" >&5
6271 echo $ECHO_N "checking for inline... $ECHO_C" >&6
6272 if test "${ac_cv_c_inline+set}" = set; then
6273   echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275   ac_cv_c_inline=no
6276 for ac_kw in inline __inline__ __inline; do
6277   cat >conftest.$ac_ext <<_ACEOF
6278 /* confdefs.h.  */
6279 _ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h.  */
6283 #ifndef __cplusplus
6284 typedef int foo_t;
6285 static $ac_kw foo_t static_foo () {return 0; }
6286 $ac_kw foo_t foo () {return 0; }
6287 #endif
6288
6289 _ACEOF
6290 rm -f conftest.$ac_objext
6291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6292   (eval $ac_compile) 2>conftest.er1
6293   ac_status=$?
6294   grep -v '^ *+' conftest.er1 >conftest.err
6295   rm -f conftest.er1
6296   cat conftest.err >&5
6297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298   (exit $ac_status); } &&
6299          { ac_try='test -z "$ac_c_werror_flag"
6300                          || test ! -s conftest.err'
6301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302   (eval $ac_try) 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); }; } &&
6306          { ac_try='test -s conftest.$ac_objext'
6307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308   (eval $ac_try) 2>&5
6309   ac_status=$?
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); }; }; then
6312   ac_cv_c_inline=$ac_kw; break
6313 else
6314   echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6316
6317 fi
6318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6319 done
6320
6321 fi
6322 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6323 echo "${ECHO_T}$ac_cv_c_inline" >&6
6324
6325
6326 case $ac_cv_c_inline in
6327   inline | yes) ;;
6328   *)
6329     case $ac_cv_c_inline in
6330       no) ac_val=;;
6331       *) ac_val=$ac_cv_c_inline;;
6332     esac
6333     cat >>confdefs.h <<_ACEOF
6334 #ifndef __cplusplus
6335 #define inline $ac_val
6336 #endif
6337 _ACEOF
6338     ;;
6339 esac
6340
6341 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
6342 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
6343 if test "${ac_cv_c_long_double+set}" = set; then
6344   echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346   cat >conftest.$ac_ext <<_ACEOF
6347 /* confdefs.h.  */
6348 _ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h.  */
6352 #include <float.h>
6353           long double foo = 0.0;
6354 int
6355 main ()
6356 {
6357 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug.  */
6358           (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
6359           | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
6360 test_array [0] = 0
6361
6362   ;
6363   return 0;
6364 }
6365 _ACEOF
6366 rm -f conftest.$ac_objext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368   (eval $ac_compile) 2>conftest.er1
6369   ac_status=$?
6370   grep -v '^ *+' conftest.er1 >conftest.err
6371   rm -f conftest.er1
6372   cat conftest.err >&5
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); } &&
6375          { ac_try='test -z "$ac_c_werror_flag"
6376                          || test ! -s conftest.err'
6377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378   (eval $ac_try) 2>&5
6379   ac_status=$?
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); }; } &&
6382          { ac_try='test -s conftest.$ac_objext'
6383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384   (eval $ac_try) 2>&5
6385   ac_status=$?
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); }; }; then
6388   ac_cv_c_long_double=yes
6389 else
6390   echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6392
6393 ac_cv_c_long_double=no
6394 fi
6395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6396 fi
6397 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
6398 echo "${ECHO_T}$ac_cv_c_long_double" >&6
6399 if test $ac_cv_c_long_double = yes; then
6400
6401 cat >>confdefs.h <<\_ACEOF
6402 #define HAVE_LONG_DOUBLE 1
6403 _ACEOF
6404
6405 fi
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445 for ac_header in \
6446     errno.h  \
6447     fcntl.h \
6448     float.h \
6449     hurd.h \
6450     limits.h \
6451     memory.h \
6452     mntent.h \
6453     mnttab.h \
6454     netdb.h \
6455     paths.h \
6456     stdlib.h \
6457     stddef.h \
6458     stdint.h \
6459     string.h \
6460     sys/filsys.h \
6461     sys/fs/s5param.h \
6462     sys/fs_types.h \
6463     sys/fstyp.h \
6464     sys/ioctl.h \
6465     sys/mntent.h \
6466     sys/mount.h \
6467     sys/param.h \
6468     sys/resource.h \
6469     sys/socket.h \
6470     sys/statfs.h \
6471     sys/statvfs.h \
6472     sys/sysctl.h \
6473     sys/systeminfo.h \
6474     sys/time.h \
6475     sys/timeb.h \
6476     sys/vfs.h \
6477     sys/wait.h \
6478     syslog.h \
6479     termios.h \
6480     unistd.h \
6481     utime.h \
6482     values.h \
6483
6484 do
6485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6487   echo "$as_me:$LINENO: checking for $ac_header" >&5
6488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6490   echo $ECHO_N "(cached) $ECHO_C" >&6
6491 fi
6492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6494 else
6495   # Is the header compilable?
6496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6498 cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h.  */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h.  */
6504 $ac_includes_default
6505 #include <$ac_header>
6506 _ACEOF
6507 rm -f conftest.$ac_objext
6508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6509   (eval $ac_compile) 2>conftest.er1
6510   ac_status=$?
6511   grep -v '^ *+' conftest.er1 >conftest.err
6512   rm -f conftest.er1
6513   cat conftest.err >&5
6514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515   (exit $ac_status); } &&
6516          { ac_try='test -z "$ac_c_werror_flag"
6517                          || test ! -s conftest.err'
6518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519   (eval $ac_try) 2>&5
6520   ac_status=$?
6521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522   (exit $ac_status); }; } &&
6523          { ac_try='test -s conftest.$ac_objext'
6524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525   (eval $ac_try) 2>&5
6526   ac_status=$?
6527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528   (exit $ac_status); }; }; then
6529   ac_header_compiler=yes
6530 else
6531   echo "$as_me: failed program was:" >&5
6532 sed 's/^/| /' conftest.$ac_ext >&5
6533
6534 ac_header_compiler=no
6535 fi
6536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6538 echo "${ECHO_T}$ac_header_compiler" >&6
6539
6540 # Is the header present?
6541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6543 cat >conftest.$ac_ext <<_ACEOF
6544 /* confdefs.h.  */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h.  */
6549 #include <$ac_header>
6550 _ACEOF
6551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6552   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6553   ac_status=$?
6554   grep -v '^ *+' conftest.er1 >conftest.err
6555   rm -f conftest.er1
6556   cat conftest.err >&5
6557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558   (exit $ac_status); } >/dev/null; then
6559   if test -s conftest.err; then
6560     ac_cpp_err=$ac_c_preproc_warn_flag
6561     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6562   else
6563     ac_cpp_err=
6564   fi
6565 else
6566   ac_cpp_err=yes
6567 fi
6568 if test -z "$ac_cpp_err"; then
6569   ac_header_preproc=yes
6570 else
6571   echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6573
6574   ac_header_preproc=no
6575 fi
6576 rm -f conftest.err conftest.$ac_ext
6577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6578 echo "${ECHO_T}$ac_header_preproc" >&6
6579
6580 # So?  What about this header?
6581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6582   yes:no: )
6583     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6587     ac_header_preproc=yes
6588     ;;
6589   no:yes:* )
6590     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6592     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6593 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6594     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6596     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6597 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6600     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6602     (
6603       cat <<\_ASBOX
6604 ## ------------------------------------ ##
6605 ## Report this to bug-coreutils@gnu.org ##
6606 ## ------------------------------------ ##
6607 _ASBOX
6608     ) |
6609       sed "s/^/$as_me: WARNING:     /" >&2
6610     ;;
6611 esac
6612 echo "$as_me:$LINENO: checking for $ac_header" >&5
6613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6615   echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617   eval "$as_ac_Header=\$ac_header_preproc"
6618 fi
6619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6621
6622 fi
6623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6624   cat >>confdefs.h <<_ACEOF
6625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6626 _ACEOF
6627
6628 fi
6629
6630 done
6631
6632
6633
6634
6635
6636
6637
6638 ac_header_dirent=no
6639 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6640   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6641 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6642 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6644   echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646   cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h.  */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h.  */
6652 #include <sys/types.h>
6653 #include <$ac_hdr>
6654
6655 int
6656 main ()
6657 {
6658 if ((DIR *) 0)
6659 return 0;
6660   ;
6661   return 0;
6662 }
6663 _ACEOF
6664 rm -f conftest.$ac_objext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6666   (eval $ac_compile) 2>conftest.er1
6667   ac_status=$?
6668   grep -v '^ *+' conftest.er1 >conftest.err
6669   rm -f conftest.er1
6670   cat conftest.err >&5
6671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672   (exit $ac_status); } &&
6673          { ac_try='test -z "$ac_c_werror_flag"
6674                          || test ! -s conftest.err'
6675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676   (eval $ac_try) 2>&5
6677   ac_status=$?
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); }; } &&
6680          { ac_try='test -s conftest.$ac_objext'
6681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682   (eval $ac_try) 2>&5
6683   ac_status=$?
6684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); }; }; then
6686   eval "$as_ac_Header=yes"
6687 else
6688   echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6690
6691 eval "$as_ac_Header=no"
6692 fi
6693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6694 fi
6695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6698   cat >>confdefs.h <<_ACEOF
6699 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6700 _ACEOF
6701
6702 ac_header_dirent=$ac_hdr; break
6703 fi
6704
6705 done
6706 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6707 if test $ac_header_dirent = dirent.h; then
6708   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6709 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6710 if test "${ac_cv_search_opendir+set}" = set; then
6711   echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713   ac_func_search_save_LIBS=$LIBS
6714 ac_cv_search_opendir=no
6715 cat >conftest.$ac_ext <<_ACEOF
6716 /* confdefs.h.  */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h.  */
6721
6722 /* Override any gcc2 internal prototype to avoid an error.  */
6723 #ifdef __cplusplus
6724 extern "C"
6725 #endif
6726 /* We use char because int might match the return type of a gcc2
6727    builtin and then its argument prototype would still apply.  */
6728 char opendir ();
6729 int
6730 main ()
6731 {
6732 opendir ();
6733   ;
6734   return 0;
6735 }
6736 _ACEOF
6737 rm -f conftest.$ac_objext conftest$ac_exeext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6739   (eval $ac_link) 2>conftest.er1
6740   ac_status=$?
6741   grep -v '^ *+' conftest.er1 >conftest.err
6742   rm -f conftest.er1
6743   cat conftest.err >&5
6744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745   (exit $ac_status); } &&
6746          { ac_try='test -z "$ac_c_werror_flag"
6747                          || test ! -s conftest.err'
6748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749   (eval $ac_try) 2>&5
6750   ac_status=$?
6751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752   (exit $ac_status); }; } &&
6753          { ac_try='test -s conftest$ac_exeext'
6754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755   (eval $ac_try) 2>&5
6756   ac_status=$?
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); }; }; then
6759   ac_cv_search_opendir="none required"
6760 else
6761   echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6763
6764 fi
6765 rm -f conftest.err conftest.$ac_objext \
6766       conftest$ac_exeext conftest.$ac_ext
6767 if test "$ac_cv_search_opendir" = no; then
6768   for ac_lib in dir; do
6769     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6770     cat >conftest.$ac_ext <<_ACEOF
6771 /* confdefs.h.  */
6772 _ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h.  */
6776
6777 /* Override any gcc2 internal prototype to avoid an error.  */
6778 #ifdef __cplusplus
6779 extern "C"
6780 #endif
6781 /* We use char because int might match the return type of a gcc2
6782    builtin and then its argument prototype would still apply.  */
6783 char opendir ();
6784 int
6785 main ()
6786 {
6787 opendir ();
6788   ;
6789   return 0;
6790 }
6791 _ACEOF
6792 rm -f conftest.$ac_objext conftest$ac_exeext
6793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6794   (eval $ac_link) 2>conftest.er1
6795   ac_status=$?
6796   grep -v '^ *+' conftest.er1 >conftest.err
6797   rm -f conftest.er1
6798   cat conftest.err >&5
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); } &&
6801          { ac_try='test -z "$ac_c_werror_flag"
6802                          || test ! -s conftest.err'
6803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804   (eval $ac_try) 2>&5
6805   ac_status=$?
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); }; } &&
6808          { ac_try='test -s conftest$ac_exeext'
6809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810   (eval $ac_try) 2>&5
6811   ac_status=$?
6812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813   (exit $ac_status); }; }; then
6814   ac_cv_search_opendir="-l$ac_lib"
6815 break
6816 else
6817   echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6819
6820 fi
6821 rm -f conftest.err conftest.$ac_objext \
6822       conftest$ac_exeext conftest.$ac_ext
6823   done
6824 fi
6825 LIBS=$ac_func_search_save_LIBS
6826 fi
6827 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6828 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6829 if test "$ac_cv_search_opendir" != no; then
6830   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6831
6832 fi
6833
6834 else
6835   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6836 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6837 if test "${ac_cv_search_opendir+set}" = set; then
6838   echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840   ac_func_search_save_LIBS=$LIBS
6841 ac_cv_search_opendir=no
6842 cat >conftest.$ac_ext <<_ACEOF
6843 /* confdefs.h.  */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h.  */
6848
6849 /* Override any gcc2 internal prototype to avoid an error.  */
6850 #ifdef __cplusplus
6851 extern "C"
6852 #endif
6853 /* We use char because int might match the return type of a gcc2
6854    builtin and then its argument prototype would still apply.  */
6855 char opendir ();
6856 int
6857 main ()
6858 {
6859 opendir ();
6860   ;
6861   return 0;
6862 }
6863 _ACEOF
6864 rm -f conftest.$ac_objext conftest$ac_exeext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6866   (eval $ac_link) 2>conftest.er1
6867   ac_status=$?
6868   grep -v '^ *+' conftest.er1 >conftest.err
6869   rm -f conftest.er1
6870   cat conftest.err >&5
6871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872   (exit $ac_status); } &&
6873          { ac_try='test -z "$ac_c_werror_flag"
6874                          || test ! -s conftest.err'
6875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876   (eval $ac_try) 2>&5
6877   ac_status=$?
6878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879   (exit $ac_status); }; } &&
6880          { ac_try='test -s conftest$ac_exeext'
6881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882   (eval $ac_try) 2>&5
6883   ac_status=$?
6884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885   (exit $ac_status); }; }; then
6886   ac_cv_search_opendir="none required"
6887 else
6888   echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6890
6891 fi
6892 rm -f conftest.err conftest.$ac_objext \
6893       conftest$ac_exeext conftest.$ac_ext
6894 if test "$ac_cv_search_opendir" = no; then
6895   for ac_lib in x; do
6896     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6897     cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h.  */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h.  */
6903
6904 /* Override any gcc2 internal prototype to avoid an error.  */
6905 #ifdef __cplusplus
6906 extern "C"
6907 #endif
6908 /* We use char because int might match the return type of a gcc2
6909    builtin and then its argument prototype would still apply.  */
6910 char opendir ();
6911 int
6912 main ()
6913 {
6914 opendir ();
6915   ;
6916   return 0;
6917 }
6918 _ACEOF
6919 rm -f conftest.$ac_objext conftest$ac_exeext
6920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6921   (eval $ac_link) 2>conftest.er1
6922   ac_status=$?
6923   grep -v '^ *+' conftest.er1 >conftest.err
6924   rm -f conftest.er1
6925   cat conftest.err >&5
6926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927   (exit $ac_status); } &&
6928          { ac_try='test -z "$ac_c_werror_flag"
6929                          || test ! -s conftest.err'
6930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931   (eval $ac_try) 2>&5
6932   ac_status=$?
6933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934   (exit $ac_status); }; } &&
6935          { ac_try='test -s conftest$ac_exeext'
6936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937   (eval $ac_try) 2>&5
6938   ac_status=$?
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); }; }; then
6941   ac_cv_search_opendir="-l$ac_lib"
6942 break
6943 else
6944   echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6946
6947 fi
6948 rm -f conftest.err conftest.$ac_objext \
6949       conftest$ac_exeext conftest.$ac_ext
6950   done
6951 fi
6952 LIBS=$ac_func_search_save_LIBS
6953 fi
6954 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6955 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6956 if test "$ac_cv_search_opendir" != no; then
6957   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6958
6959 fi
6960
6961 fi
6962
6963 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6964 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6965 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6966   echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968   cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h.  */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h.  */
6974 $ac_includes_default
6975 int
6976 main ()
6977 {
6978 static struct stat ac_aggr;
6979 if (ac_aggr.st_blocks)
6980 return 0;
6981   ;
6982   return 0;
6983 }
6984 _ACEOF
6985 rm -f conftest.$ac_objext
6986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6987   (eval $ac_compile) 2>conftest.er1
6988   ac_status=$?
6989   grep -v '^ *+' conftest.er1 >conftest.err
6990   rm -f conftest.er1
6991   cat conftest.err >&5
6992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993   (exit $ac_status); } &&
6994          { ac_try='test -z "$ac_c_werror_flag"
6995                          || test ! -s conftest.err'
6996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997   (eval $ac_try) 2>&5
6998   ac_status=$?
6999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); }; } &&
7001          { ac_try='test -s conftest.$ac_objext'
7002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003   (eval $ac_try) 2>&5
7004   ac_status=$?
7005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006   (exit $ac_status); }; }; then
7007   ac_cv_member_struct_stat_st_blocks=yes
7008 else
7009   echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7011
7012 cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h.  */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h.  */
7018 $ac_includes_default
7019 int
7020 main ()
7021 {
7022 static struct stat ac_aggr;
7023 if (sizeof ac_aggr.st_blocks)
7024 return 0;
7025   ;
7026   return 0;
7027 }
7028 _ACEOF
7029 rm -f conftest.$ac_objext
7030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7031   (eval $ac_compile) 2>conftest.er1
7032   ac_status=$?
7033   grep -v '^ *+' conftest.er1 >conftest.err
7034   rm -f conftest.er1
7035   cat conftest.err >&5
7036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037   (exit $ac_status); } &&
7038          { ac_try='test -z "$ac_c_werror_flag"
7039                          || test ! -s conftest.err'
7040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041   (eval $ac_try) 2>&5
7042   ac_status=$?
7043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044   (exit $ac_status); }; } &&
7045          { ac_try='test -s conftest.$ac_objext'
7046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047   (eval $ac_try) 2>&5
7048   ac_status=$?
7049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050   (exit $ac_status); }; }; then
7051   ac_cv_member_struct_stat_st_blocks=yes
7052 else
7053   echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7055
7056 ac_cv_member_struct_stat_st_blocks=no
7057 fi
7058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7059 fi
7060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7061 fi
7062 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
7063 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
7064 if test $ac_cv_member_struct_stat_st_blocks = yes; then
7065
7066 cat >>confdefs.h <<_ACEOF
7067 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7068 _ACEOF
7069
7070
7071 cat >>confdefs.h <<\_ACEOF
7072 #define HAVE_ST_BLOCKS 1
7073 _ACEOF
7074
7075 else
7076   case $LIBOBJS in
7077     "fileblocks.$ac_objext"   | \
7078   *" fileblocks.$ac_objext"   | \
7079     "fileblocks.$ac_objext "* | \
7080   *" fileblocks.$ac_objext "* ) ;;
7081   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
7082 esac
7083
7084 fi
7085
7086
7087 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7088 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7089 if test "${ac_cv_header_stat_broken+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   cat >conftest.$ac_ext <<_ACEOF
7093 /* confdefs.h.  */
7094 _ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h.  */
7098 #include <sys/types.h>
7099 #include <sys/stat.h>
7100
7101 #if defined(S_ISBLK) && defined(S_IFDIR)
7102 # if S_ISBLK (S_IFDIR)
7103 You lose.
7104 # endif
7105 #endif
7106
7107 #if defined(S_ISBLK) && defined(S_IFCHR)
7108 # if S_ISBLK (S_IFCHR)
7109 You lose.
7110 # endif
7111 #endif
7112
7113 #if defined(S_ISLNK) && defined(S_IFREG)
7114 # if S_ISLNK (S_IFREG)
7115 You lose.
7116 # endif
7117 #endif
7118
7119 #if defined(S_ISSOCK) && defined(S_IFREG)
7120 # if S_ISSOCK (S_IFREG)
7121 You lose.
7122 # endif
7123 #endif
7124
7125 _ACEOF
7126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7127   $EGREP "You lose" >/dev/null 2>&1; then
7128   ac_cv_header_stat_broken=yes
7129 else
7130   ac_cv_header_stat_broken=no
7131 fi
7132 rm -f conftest*
7133
7134 fi
7135 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7136 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7137 if test $ac_cv_header_stat_broken = yes; then
7138
7139 cat >>confdefs.h <<\_ACEOF
7140 #define STAT_MACROS_BROKEN 1
7141 _ACEOF
7142
7143 fi
7144
7145 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
7146 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
7147 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
7148   echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150   ac_save_CPPFLAGS="$CPPFLAGS"
7151     ac_cv_struct_st_mtim_nsec=no
7152     # tv_nsec -- the usual case
7153     # _tv_nsec -- Solaris 2.6, if
7154     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
7155     #    && !defined __EXTENSIONS__)
7156     # st__tim.tv_nsec -- UnixWare 2.1.2
7157     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
7158       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
7159       cat >conftest.$ac_ext <<_ACEOF
7160 /* confdefs.h.  */
7161 _ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h.  */
7165 #include <sys/types.h>
7166 #include <sys/stat.h>
7167 int
7168 main ()
7169 {
7170 struct stat s; s.st_mtim.ST_MTIM_NSEC;
7171   ;
7172   return 0;
7173 }
7174 _ACEOF
7175 rm -f conftest.$ac_objext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7177   (eval $ac_compile) 2>conftest.er1
7178   ac_status=$?
7179   grep -v '^ *+' conftest.er1 >conftest.err
7180   rm -f conftest.er1
7181   cat conftest.err >&5
7182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183   (exit $ac_status); } &&
7184          { ac_try='test -z "$ac_c_werror_flag"
7185                          || test ! -s conftest.err'
7186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187   (eval $ac_try) 2>&5
7188   ac_status=$?
7189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190   (exit $ac_status); }; } &&
7191          { ac_try='test -s conftest.$ac_objext'
7192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193   (eval $ac_try) 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); }; }; then
7197   ac_cv_struct_st_mtim_nsec=$ac_val; break
7198 else
7199   echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7201
7202 fi
7203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7204     done
7205     CPPFLAGS="$ac_save_CPPFLAGS"
7206 fi
7207 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
7208 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
7209
7210   if test $ac_cv_struct_st_mtim_nsec != no; then
7211
7212 cat >>confdefs.h <<_ACEOF
7213 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
7214 _ACEOF
7215
7216   fi
7217
7218
7219 echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
7220 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
7221 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
7222   echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224   cat >conftest.$ac_ext <<_ACEOF
7225 /* confdefs.h.  */
7226 _ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h.  */
7230 #include <sys/types.h>
7231 #include <sys/stat.h>
7232 int
7233 main ()
7234 {
7235 struct stat s; s.st_dm_mode;
7236   ;
7237   return 0;
7238 }
7239 _ACEOF
7240 rm -f conftest.$ac_objext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7242   (eval $ac_compile) 2>conftest.er1
7243   ac_status=$?
7244   grep -v '^ *+' conftest.er1 >conftest.err
7245   rm -f conftest.er1
7246   cat conftest.err >&5
7247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248   (exit $ac_status); } &&
7249          { ac_try='test -z "$ac_c_werror_flag"
7250                          || test ! -s conftest.err'
7251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252   (eval $ac_try) 2>&5
7253   ac_status=$?
7254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255   (exit $ac_status); }; } &&
7256          { ac_try='test -s conftest.$ac_objext'
7257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258   (eval $ac_try) 2>&5
7259   ac_status=$?
7260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261   (exit $ac_status); }; }; then
7262   ac_cv_struct_st_dm_mode=yes
7263 else
7264   echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7266
7267 ac_cv_struct_st_dm_mode=no
7268 fi
7269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7270 fi
7271 echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
7272 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
7273
7274   if test $ac_cv_struct_st_dm_mode = yes; then
7275
7276 cat >>confdefs.h <<\_ACEOF
7277 #define HAVE_ST_DM_MODE 1
7278 _ACEOF
7279
7280   fi
7281
7282
7283 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7284 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7285 if test "${ac_cv_type_uid_t+set}" = set; then
7286   echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288   cat >conftest.$ac_ext <<_ACEOF
7289 /* confdefs.h.  */
7290 _ACEOF
7291 cat confdefs.h >>conftest.$ac_ext
7292 cat >>conftest.$ac_ext <<_ACEOF
7293 /* end confdefs.h.  */
7294 #include <sys/types.h>
7295
7296 _ACEOF
7297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7298   $EGREP "uid_t" >/dev/null 2>&1; then
7299   ac_cv_type_uid_t=yes
7300 else
7301   ac_cv_type_uid_t=no
7302 fi
7303 rm -f conftest*
7304
7305 fi
7306 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7307 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7308 if test $ac_cv_type_uid_t = no; then
7309
7310 cat >>confdefs.h <<\_ACEOF
7311 #define uid_t int
7312 _ACEOF
7313
7314
7315 cat >>confdefs.h <<\_ACEOF
7316 #define gid_t int
7317 _ACEOF
7318
7319 fi
7320
7321 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7322 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7323 if test "${ac_cv_type_getgroups+set}" = set; then
7324   echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326   if test "$cross_compiling" = yes; then
7327   ac_cv_type_getgroups=cross
7328 else
7329   cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h.  */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h.  */
7335 /* Thanks to Mike Rendell for this test.  */
7336 #include <sys/types.h>
7337 #define NGID 256
7338 #undef MAX
7339 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7340
7341 int
7342 main ()
7343 {
7344   gid_t gidset[NGID];
7345   int i, n;
7346   union { gid_t gval; long lval; }  val;
7347
7348   val.lval = -1;
7349   for (i = 0; i < NGID; i++)
7350     gidset[i] = val.gval;
7351   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7352                  gidset);
7353   /* Exit non-zero if getgroups seems to require an array of ints.  This
7354      happens when gid_t is short but getgroups modifies an array of ints.  */
7355   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7356 }
7357 _ACEOF
7358 rm -f conftest$ac_exeext
7359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7360   (eval $ac_link) 2>&5
7361   ac_status=$?
7362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365   (eval $ac_try) 2>&5
7366   ac_status=$?
7367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368   (exit $ac_status); }; }; then
7369   ac_cv_type_getgroups=gid_t
7370 else
7371   echo "$as_me: program exited with status $ac_status" >&5
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7374
7375 ( exit $ac_status )
7376 ac_cv_type_getgroups=int
7377 fi
7378 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7379 fi
7380 if test $ac_cv_type_getgroups = cross; then
7381         cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h.  */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h.  */
7387 #include <unistd.h>
7388
7389 _ACEOF
7390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7391   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7392   ac_cv_type_getgroups=gid_t
7393 else
7394   ac_cv_type_getgroups=int
7395 fi
7396 rm -f conftest*
7397
7398 fi
7399 fi
7400 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7401 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7402
7403 cat >>confdefs.h <<_ACEOF
7404 #define GETGROUPS_T $ac_cv_type_getgroups
7405 _ACEOF
7406
7407
7408 echo "$as_me:$LINENO: checking for mode_t" >&5
7409 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7410 if test "${ac_cv_type_mode_t+set}" = set; then
7411   echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413   cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h.  */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h.  */
7419 $ac_includes_default
7420 int
7421 main ()
7422 {
7423 if ((mode_t *) 0)
7424   return 0;
7425 if (sizeof (mode_t))
7426   return 0;
7427   ;
7428   return 0;
7429 }
7430 _ACEOF
7431 rm -f conftest.$ac_objext
7432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7433   (eval $ac_compile) 2>conftest.er1
7434   ac_status=$?
7435   grep -v '^ *+' conftest.er1 >conftest.err
7436   rm -f conftest.er1
7437   cat conftest.err >&5
7438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); } &&
7440          { ac_try='test -z "$ac_c_werror_flag"
7441                          || test ! -s conftest.err'
7442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443   (eval $ac_try) 2>&5
7444   ac_status=$?
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); }; } &&
7447          { ac_try='test -s conftest.$ac_objext'
7448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449   (eval $ac_try) 2>&5
7450   ac_status=$?
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); }; }; then
7453   ac_cv_type_mode_t=yes
7454 else
7455   echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7457
7458 ac_cv_type_mode_t=no
7459 fi
7460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7461 fi
7462 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7463 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7464 if test $ac_cv_type_mode_t = yes; then
7465   :
7466 else
7467
7468 cat >>confdefs.h <<_ACEOF
7469 #define mode_t int
7470 _ACEOF
7471
7472 fi
7473
7474 echo "$as_me:$LINENO: checking for off_t" >&5
7475 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7476 if test "${ac_cv_type_off_t+set}" = set; then
7477   echo $ECHO_N "(cached) $ECHO_C" >&6
7478 else
7479   cat >conftest.$ac_ext <<_ACEOF
7480 /* confdefs.h.  */
7481 _ACEOF
7482 cat confdefs.h >>conftest.$ac_ext
7483 cat >>conftest.$ac_ext <<_ACEOF
7484 /* end confdefs.h.  */
7485 $ac_includes_default
7486 int
7487 main ()
7488 {
7489 if ((off_t *) 0)
7490   return 0;
7491 if (sizeof (off_t))
7492   return 0;
7493   ;
7494   return 0;
7495 }
7496 _ACEOF
7497 rm -f conftest.$ac_objext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7499   (eval $ac_compile) 2>conftest.er1
7500   ac_status=$?
7501   grep -v '^ *+' conftest.er1 >conftest.err
7502   rm -f conftest.er1
7503   cat conftest.err >&5
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); } &&
7506          { ac_try='test -z "$ac_c_werror_flag"
7507                          || test ! -s conftest.err'
7508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509   (eval $ac_try) 2>&5
7510   ac_status=$?
7511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512   (exit $ac_status); }; } &&
7513          { ac_try='test -s conftest.$ac_objext'
7514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515   (eval $ac_try) 2>&5
7516   ac_status=$?
7517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); }; }; then
7519   ac_cv_type_off_t=yes
7520 else
7521   echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7523
7524 ac_cv_type_off_t=no
7525 fi
7526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7527 fi
7528 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7529 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7530 if test $ac_cv_type_off_t = yes; then
7531   :
7532 else
7533
7534 cat >>confdefs.h <<_ACEOF
7535 #define off_t long
7536 _ACEOF
7537
7538 fi
7539
7540 echo "$as_me:$LINENO: checking for pid_t" >&5
7541 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7542 if test "${ac_cv_type_pid_t+set}" = set; then
7543   echo $ECHO_N "(cached) $ECHO_C" >&6
7544 else
7545   cat >conftest.$ac_ext <<_ACEOF
7546 /* confdefs.h.  */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h.  */
7551 $ac_includes_default
7552 int
7553 main ()
7554 {
7555 if ((pid_t *) 0)
7556   return 0;
7557 if (sizeof (pid_t))
7558   return 0;
7559   ;
7560   return 0;
7561 }
7562 _ACEOF
7563 rm -f conftest.$ac_objext
7564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7565   (eval $ac_compile) 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); } &&
7572          { ac_try='test -z "$ac_c_werror_flag"
7573                          || test ! -s conftest.err'
7574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575   (eval $ac_try) 2>&5
7576   ac_status=$?
7577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); }; } &&
7579          { ac_try='test -s conftest.$ac_objext'
7580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581   (eval $ac_try) 2>&5
7582   ac_status=$?
7583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584   (exit $ac_status); }; }; then
7585   ac_cv_type_pid_t=yes
7586 else
7587   echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7589
7590 ac_cv_type_pid_t=no
7591 fi
7592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7593 fi
7594 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7595 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7596 if test $ac_cv_type_pid_t = yes; then
7597   :
7598 else
7599
7600 cat >>confdefs.h <<_ACEOF
7601 #define pid_t int
7602 _ACEOF
7603
7604 fi
7605
7606 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7607 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7608 if test "${ac_cv_type_signal+set}" = set; then
7609   echo $ECHO_N "(cached) $ECHO_C" >&6
7610 else
7611   cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h.  */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h.  */
7617 #include <sys/types.h>
7618 #include <signal.h>
7619 #ifdef signal
7620 # undef signal
7621 #endif
7622 #ifdef __cplusplus
7623 extern "C" void (*signal (int, void (*)(int)))(int);
7624 #else
7625 void (*signal ()) ();
7626 #endif
7627
7628 int
7629 main ()
7630 {
7631 int i;
7632   ;
7633   return 0;
7634 }
7635 _ACEOF
7636 rm -f conftest.$ac_objext
7637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7638   (eval $ac_compile) 2>conftest.er1
7639   ac_status=$?
7640   grep -v '^ *+' conftest.er1 >conftest.err
7641   rm -f conftest.er1
7642   cat conftest.err >&5
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); } &&
7645          { ac_try='test -z "$ac_c_werror_flag"
7646                          || test ! -s conftest.err'
7647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648   (eval $ac_try) 2>&5
7649   ac_status=$?
7650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651   (exit $ac_status); }; } &&
7652          { ac_try='test -s conftest.$ac_objext'
7653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654   (eval $ac_try) 2>&5
7655   ac_status=$?
7656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657   (exit $ac_status); }; }; then
7658   ac_cv_type_signal=void
7659 else
7660   echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7662
7663 ac_cv_type_signal=int
7664 fi
7665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7666 fi
7667 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7668 echo "${ECHO_T}$ac_cv_type_signal" >&6
7669
7670 cat >>confdefs.h <<_ACEOF
7671 #define RETSIGTYPE $ac_cv_type_signal
7672 _ACEOF
7673
7674
7675 echo "$as_me:$LINENO: checking for size_t" >&5
7676 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7677 if test "${ac_cv_type_size_t+set}" = set; then
7678   echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680   cat >conftest.$ac_ext <<_ACEOF
7681 /* confdefs.h.  */
7682 _ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h.  */
7686 $ac_includes_default
7687 int
7688 main ()
7689 {
7690 if ((size_t *) 0)
7691   return 0;
7692 if (sizeof (size_t))
7693   return 0;
7694   ;
7695   return 0;
7696 }
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700   (eval $ac_compile) 2>conftest.er1
7701   ac_status=$?
7702   grep -v '^ *+' conftest.er1 >conftest.err
7703   rm -f conftest.er1
7704   cat conftest.err >&5
7705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706   (exit $ac_status); } &&
7707          { ac_try='test -z "$ac_c_werror_flag"
7708                          || test ! -s conftest.err'
7709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710   (eval $ac_try) 2>&5
7711   ac_status=$?
7712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713   (exit $ac_status); }; } &&
7714          { ac_try='test -s conftest.$ac_objext'
7715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716   (eval $ac_try) 2>&5
7717   ac_status=$?
7718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719   (exit $ac_status); }; }; then
7720   ac_cv_type_size_t=yes
7721 else
7722   echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7724
7725 ac_cv_type_size_t=no
7726 fi
7727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7728 fi
7729 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7730 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7731 if test $ac_cv_type_size_t = yes; then
7732   :
7733 else
7734
7735 cat >>confdefs.h <<_ACEOF
7736 #define size_t unsigned
7737 _ACEOF
7738
7739 fi
7740
7741
7742   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7743 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7744 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
7745   echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747   cat >conftest.$ac_ext <<_ACEOF
7748 /* confdefs.h.  */
7749 _ACEOF
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h.  */
7753 #include <sys/types.h>
7754 #include <inttypes.h>
7755 int
7756 main ()
7757 {
7758 uintmax_t i = (uintmax_t) -1;
7759   ;
7760   return 0;
7761 }
7762 _ACEOF
7763 rm -f conftest.$ac_objext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7765   (eval $ac_compile) 2>conftest.er1
7766   ac_status=$?
7767   grep -v '^ *+' conftest.er1 >conftest.err
7768   rm -f conftest.er1
7769   cat conftest.err >&5
7770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771   (exit $ac_status); } &&
7772          { ac_try='test -z "$ac_c_werror_flag"
7773                          || test ! -s conftest.err'
7774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775   (eval $ac_try) 2>&5
7776   ac_status=$?
7777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778   (exit $ac_status); }; } &&
7779          { ac_try='test -s conftest.$ac_objext'
7780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781   (eval $ac_try) 2>&5
7782   ac_status=$?
7783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); }; }; then
7785   jm_ac_cv_header_inttypes_h=yes
7786 else
7787   echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7789
7790 jm_ac_cv_header_inttypes_h=no
7791 fi
7792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7793 fi
7794 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
7795 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
7796   if test $jm_ac_cv_header_inttypes_h = yes; then
7797
7798 cat >>confdefs.h <<_ACEOF
7799 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7800 _ACEOF
7801
7802   fi
7803
7804
7805   echo "$as_me:$LINENO: checking for stdint.h" >&5
7806 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7807 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
7808   echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810   cat >conftest.$ac_ext <<_ACEOF
7811 /* confdefs.h.  */
7812 _ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h.  */
7816 #include <sys/types.h>
7817 #include <stdint.h>
7818 int
7819 main ()
7820 {
7821 uintmax_t i = (uintmax_t) -1;
7822   ;
7823   return 0;
7824 }
7825 _ACEOF
7826 rm -f conftest.$ac_objext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7828   (eval $ac_compile) 2>conftest.er1
7829   ac_status=$?
7830   grep -v '^ *+' conftest.er1 >conftest.err
7831   rm -f conftest.er1
7832   cat conftest.err >&5
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); } &&
7835          { ac_try='test -z "$ac_c_werror_flag"
7836                          || test ! -s conftest.err'
7837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838   (eval $ac_try) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); }; } &&
7842          { ac_try='test -s conftest.$ac_objext'
7843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844   (eval $ac_try) 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); }; }; then
7848   jm_ac_cv_header_stdint_h=yes
7849 else
7850   echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853 jm_ac_cv_header_stdint_h=no
7854 fi
7855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7856 fi
7857 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
7858 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
7859   if test $jm_ac_cv_header_stdint_h = yes; then
7860
7861 cat >>confdefs.h <<_ACEOF
7862 #define HAVE_STDINT_H_WITH_UINTMAX 1
7863 _ACEOF
7864
7865   fi
7866
7867
7868   echo "$as_me:$LINENO: checking for unsigned long long" >&5
7869 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7870 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7871   echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873   cat >conftest.$ac_ext <<_ACEOF
7874 /* confdefs.h.  */
7875 _ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h.  */
7879 unsigned long long ull = 1ULL; int i = 63;
7880 int
7881 main ()
7882 {
7883 unsigned long long ullmax = (unsigned long long) -1;
7884      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7885   ;
7886   return 0;
7887 }
7888 _ACEOF
7889 rm -f conftest.$ac_objext conftest$ac_exeext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891   (eval $ac_link) 2>conftest.er1
7892   ac_status=$?
7893   grep -v '^ *+' conftest.er1 >conftest.err
7894   rm -f conftest.er1
7895   cat conftest.err >&5
7896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); } &&
7898          { ac_try='test -z "$ac_c_werror_flag"
7899                          || test ! -s conftest.err'
7900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901   (eval $ac_try) 2>&5
7902   ac_status=$?
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); }; } &&
7905          { ac_try='test -s conftest$ac_exeext'
7906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907   (eval $ac_try) 2>&5
7908   ac_status=$?
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); }; }; then
7911   ac_cv_type_unsigned_long_long=yes
7912 else
7913   echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7915
7916 ac_cv_type_unsigned_long_long=no
7917 fi
7918 rm -f conftest.err conftest.$ac_objext \
7919       conftest$ac_exeext conftest.$ac_ext
7920 fi
7921 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7922 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7923   if test $ac_cv_type_unsigned_long_long = yes; then
7924
7925 cat >>confdefs.h <<\_ACEOF
7926 #define HAVE_UNSIGNED_LONG_LONG 1
7927 _ACEOF
7928
7929   fi
7930
7931
7932
7933
7934   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7935
7936     test $ac_cv_type_unsigned_long_long = yes \
7937       && ac_type='unsigned long long' \
7938       || ac_type='unsigned long'
7939
7940 cat >>confdefs.h <<_ACEOF
7941 #define uintmax_t $ac_type
7942 _ACEOF
7943
7944   else
7945
7946 cat >>confdefs.h <<\_ACEOF
7947 #define HAVE_UINTMAX_T 1
7948 _ACEOF
7949
7950   fi
7951
7952 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
7953 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
7954 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
7955   echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957   cat >conftest.$ac_ext <<_ACEOF
7958 /* confdefs.h.  */
7959 _ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h.  */
7963 #include <sys/types.h>
7964 int
7965 main ()
7966 {
7967 return makedev(0, 0);
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7974   (eval $ac_link) 2>conftest.er1
7975   ac_status=$?
7976   grep -v '^ *+' conftest.er1 >conftest.err
7977   rm -f conftest.er1
7978   cat conftest.err >&5
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); } &&
7981          { ac_try='test -z "$ac_c_werror_flag"
7982                          || test ! -s conftest.err'
7983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984   (eval $ac_try) 2>&5
7985   ac_status=$?
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); }; } &&
7988          { ac_try='test -s conftest$ac_exeext'
7989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990   (eval $ac_try) 2>&5
7991   ac_status=$?
7992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993   (exit $ac_status); }; }; then
7994   ac_cv_header_sys_types_h_makedev=yes
7995 else
7996   echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7998
7999 ac_cv_header_sys_types_h_makedev=no
8000 fi
8001 rm -f conftest.err conftest.$ac_objext \
8002       conftest$ac_exeext conftest.$ac_ext
8003
8004 fi
8005 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
8006 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
8007
8008 if test $ac_cv_header_sys_types_h_makedev = no; then
8009 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8010   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8011 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8012 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8013   echo $ECHO_N "(cached) $ECHO_C" >&6
8014 fi
8015 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8016 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8017 else
8018   # Is the header compilable?
8019 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
8020 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
8021 cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h.  */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h.  */
8027 $ac_includes_default
8028 #include <sys/mkdev.h>
8029 _ACEOF
8030 rm -f conftest.$ac_objext
8031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8032   (eval $ac_compile) 2>conftest.er1
8033   ac_status=$?
8034   grep -v '^ *+' conftest.er1 >conftest.err
8035   rm -f conftest.er1
8036   cat conftest.err >&5
8037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038   (exit $ac_status); } &&
8039          { ac_try='test -z "$ac_c_werror_flag"
8040                          || test ! -s conftest.err'
8041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042   (eval $ac_try) 2>&5
8043   ac_status=$?
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); }; } &&
8046          { ac_try='test -s conftest.$ac_objext'
8047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048   (eval $ac_try) 2>&5
8049   ac_status=$?
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); }; }; then
8052   ac_header_compiler=yes
8053 else
8054   echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8056
8057 ac_header_compiler=no
8058 fi
8059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8060 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8061 echo "${ECHO_T}$ac_header_compiler" >&6
8062
8063 # Is the header present?
8064 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
8065 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
8066 cat >conftest.$ac_ext <<_ACEOF
8067 /* confdefs.h.  */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h.  */
8072 #include <sys/mkdev.h>
8073 _ACEOF
8074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8075   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8076   ac_status=$?
8077   grep -v '^ *+' conftest.er1 >conftest.err
8078   rm -f conftest.er1
8079   cat conftest.err >&5
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); } >/dev/null; then
8082   if test -s conftest.err; then
8083     ac_cpp_err=$ac_c_preproc_warn_flag
8084     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8085   else
8086     ac_cpp_err=
8087   fi
8088 else
8089   ac_cpp_err=yes
8090 fi
8091 if test -z "$ac_cpp_err"; then
8092   ac_header_preproc=yes
8093 else
8094   echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8096
8097   ac_header_preproc=no
8098 fi
8099 rm -f conftest.err conftest.$ac_ext
8100 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8101 echo "${ECHO_T}$ac_header_preproc" >&6
8102
8103 # So?  What about this header?
8104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8105   yes:no: )
8106     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
8107 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8108     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
8109 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
8110     ac_header_preproc=yes
8111     ;;
8112   no:yes:* )
8113     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
8114 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
8115     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
8116 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
8117     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
8118 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
8119     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
8120 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8121     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
8122 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
8123     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
8124 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
8125     (
8126       cat <<\_ASBOX
8127 ## ------------------------------------ ##
8128 ## Report this to bug-coreutils@gnu.org ##
8129 ## ------------------------------------ ##
8130 _ASBOX
8131     ) |
8132       sed "s/^/$as_me: WARNING:     /" >&2
8133     ;;
8134 esac
8135 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8136 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8137 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8138   echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140   ac_cv_header_sys_mkdev_h=$ac_header_preproc
8141 fi
8142 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8143 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8144
8145 fi
8146 if test $ac_cv_header_sys_mkdev_h = yes; then
8147
8148 cat >>confdefs.h <<\_ACEOF
8149 #define MAJOR_IN_MKDEV 1
8150 _ACEOF
8151
8152 fi
8153
8154
8155
8156   if test $ac_cv_header_sys_mkdev_h = no; then
8157     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8158   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
8159 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
8160 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8161   echo $ECHO_N "(cached) $ECHO_C" >&6
8162 fi
8163 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
8164 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
8165 else
8166   # Is the header compilable?
8167 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
8168 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
8169 cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h.  */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h.  */
8175 $ac_includes_default
8176 #include <sys/sysmacros.h>
8177 _ACEOF
8178 rm -f conftest.$ac_objext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180   (eval $ac_compile) 2>conftest.er1
8181   ac_status=$?
8182   grep -v '^ *+' conftest.er1 >conftest.err
8183   rm -f conftest.er1
8184   cat conftest.err >&5
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); } &&
8187          { ac_try='test -z "$ac_c_werror_flag"
8188                          || test ! -s conftest.err'
8189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190   (eval $ac_try) 2>&5
8191   ac_status=$?
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); }; } &&
8194          { ac_try='test -s conftest.$ac_objext'
8195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196   (eval $ac_try) 2>&5
8197   ac_status=$?
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); }; }; then
8200   ac_header_compiler=yes
8201 else
8202   echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8204
8205 ac_header_compiler=no
8206 fi
8207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8209 echo "${ECHO_T}$ac_header_compiler" >&6
8210
8211 # Is the header present?
8212 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
8213 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
8214 cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h.  */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h.  */
8220 #include <sys/sysmacros.h>
8221 _ACEOF
8222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8223   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8224   ac_status=$?
8225   grep -v '^ *+' conftest.er1 >conftest.err
8226   rm -f conftest.er1
8227   cat conftest.err >&5
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); } >/dev/null; then
8230   if test -s conftest.err; then
8231     ac_cpp_err=$ac_c_preproc_warn_flag
8232     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8233   else
8234     ac_cpp_err=
8235   fi
8236 else
8237   ac_cpp_err=yes
8238 fi
8239 if test -z "$ac_cpp_err"; then
8240   ac_header_preproc=yes
8241 else
8242   echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8244
8245   ac_header_preproc=no
8246 fi
8247 rm -f conftest.err conftest.$ac_ext
8248 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8249 echo "${ECHO_T}$ac_header_preproc" >&6
8250
8251 # So?  What about this header?
8252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8253   yes:no: )
8254     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
8255 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8256     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
8257 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
8258     ac_header_preproc=yes
8259     ;;
8260   no:yes:* )
8261     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
8262 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
8263     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
8264 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
8265     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
8266 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
8267     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
8268 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8269     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
8270 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
8271     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
8272 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
8273     (
8274       cat <<\_ASBOX
8275 ## ------------------------------------ ##
8276 ## Report this to bug-coreutils@gnu.org ##
8277 ## ------------------------------------ ##
8278 _ASBOX
8279     ) |
8280       sed "s/^/$as_me: WARNING:     /" >&2
8281     ;;
8282 esac
8283 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
8284 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
8285 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8286   echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
8289 fi
8290 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
8291 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
8292
8293 fi
8294 if test $ac_cv_header_sys_sysmacros_h = yes; then
8295
8296 cat >>confdefs.h <<\_ACEOF
8297 #define MAJOR_IN_SYSMACROS 1
8298 _ACEOF
8299
8300 fi
8301
8302
8303   fi
8304 fi
8305
8306
8307   echo "$as_me:$LINENO: checking host operating system" >&5
8308 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
8309 if test "${utils_cv_host_operating_system+set}" = set; then
8310   echo $ECHO_N "(cached) $ECHO_C" >&6
8311 else
8312   case $host_os in
8313
8314        # These operating system names do not use the default heuristic below.
8315        # They are in reverse order, so that more-specific prefixes come first.
8316        winnt*)          os='Windows NT';;
8317        vos*)            os='VOS';;
8318        sysv*)           os='Unix System V';;
8319        superux*)        os='SUPER-UX';;
8320        sunos*)          os='SunOS';;
8321        stop*)           os='STOP';;
8322        sco*)            os='SCO Unix';;
8323        riscos*)         os='RISC OS';;
8324        riscix*)         os='RISCiX';;
8325        qnx*)            os='QNX';;
8326        pw32*)           os='PW32';;
8327        ptx*)            os='ptx';;
8328        plan9*)          os='Plan 9';;
8329        osf*)            os='Tru64';;
8330        os2*)            os='OS/2';;
8331        openbsd*)        os='OpenBSD';;
8332        nsk*)            os='NonStop Kernel';;
8333        nonstopux*)      os='NonStop-UX';;
8334        netbsd*-gnu*)    os='GNU/NetBSD';; # NetBSD kernel+libc, GNU userland
8335        netbsd*)         os='NetBSD';;
8336        knetbsd*-gnu)    os='GNU/KNetBSD';; # NetBSD kernel, GNU libc+userland
8337        kfreebsd*-gnu)   os='GNU/KFreeBSD';; # FreeBSD kernel, GNU libc+userland
8338        msdosdjgpp*)     os='DJGPP';;
8339        mpeix*)          os='MPE/iX';;
8340        mint*)           os='MiNT';;
8341        mingw*)          os='MinGW';;
8342        lynxos*)         os='LynxOS';;
8343        linux*)          os='GNU/Linux';;
8344        hpux*)           os='HP-UX';;
8345        hiux*)           os='HI-UX';;
8346        gnu*)            os='GNU';;
8347        freebsd*)        os='FreeBSD';;
8348        dgux*)           os='DG/UX';;
8349        bsdi*)           os='BSD/OS';;
8350        bsd*)            os='BSD';;
8351        beos*)           os='BeOS';;
8352        aux*)            os='A/UX';;
8353        atheos*)         os='AtheOS';;
8354        amigaos*)        os='Amiga OS';;
8355        aix*)            os='AIX';;
8356
8357        # The default heuristic takes the initial alphabetic string
8358        # from $host_os, but capitalizes its first letter.
8359        [A-Za-z]*)
8360          os=`
8361            expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
8362          ``
8363            expr "X$host_os" : 'X.\([A-Za-z]*\)'
8364          `
8365          ;;
8366
8367        # If $host_os does not start with an alphabetic string, use it unchanged.
8368        *)
8369          os=$host_os;;
8370      esac
8371      utils_cv_host_operating_system=$os
8372 fi
8373 echo "$as_me:$LINENO: result: $utils_cv_host_operating_system" >&5
8374 echo "${ECHO_T}$utils_cv_host_operating_system" >&6
8375
8376 cat >>confdefs.h <<_ACEOF
8377 #define HOST_OPERATING_SYSTEM "$utils_cv_host_operating_system"
8378 _ACEOF
8379
8380
8381
8382   echo "$as_me:$LINENO: checking whether to enable assertions" >&5
8383 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
8384   # Check whether --enable-assert or --disable-assert was given.
8385 if test "${enable_assert+set}" = set; then
8386   enableval="$enable_assert"
8387    echo "$as_me:$LINENO: result: no" >&5
8388 echo "${ECHO_T}no" >&6
8389
8390 cat >>confdefs.h <<\_ACEOF
8391 #define NDEBUG 1
8392 _ACEOF
8393
8394 else
8395    echo "$as_me:$LINENO: result: yes" >&5
8396 echo "${ECHO_T}yes" >&6
8397
8398 fi;
8399
8400
8401
8402 for ac_header in sys/time.h
8403 do
8404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8406   echo "$as_me:$LINENO: checking for $ac_header" >&5
8407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8409   echo $ECHO_N "(cached) $ECHO_C" >&6
8410 fi
8411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8413 else
8414   # Is the header compilable?
8415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8417 cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h.  */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h.  */
8423 $ac_includes_default
8424 #include <$ac_header>
8425 _ACEOF
8426 rm -f conftest.$ac_objext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8428   (eval $ac_compile) 2>conftest.er1
8429   ac_status=$?
8430   grep -v '^ *+' conftest.er1 >conftest.err
8431   rm -f conftest.er1
8432   cat conftest.err >&5
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); } &&
8435          { ac_try='test -z "$ac_c_werror_flag"
8436                          || test ! -s conftest.err'
8437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438   (eval $ac_try) 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); }; } &&
8442          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8448   ac_header_compiler=yes
8449 else
8450   echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8452
8453 ac_header_compiler=no
8454 fi
8455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8457 echo "${ECHO_T}$ac_header_compiler" >&6
8458
8459 # Is the header present?
8460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8462 cat >conftest.$ac_ext <<_ACEOF
8463 /* confdefs.h.  */
8464 _ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h.  */
8468 #include <$ac_header>
8469 _ACEOF
8470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8471   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8472   ac_status=$?
8473   grep -v '^ *+' conftest.er1 >conftest.err
8474   rm -f conftest.er1
8475   cat conftest.err >&5
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); } >/dev/null; then
8478   if test -s conftest.err; then
8479     ac_cpp_err=$ac_c_preproc_warn_flag
8480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8481   else
8482     ac_cpp_err=
8483   fi
8484 else
8485   ac_cpp_err=yes
8486 fi
8487 if test -z "$ac_cpp_err"; then
8488   ac_header_preproc=yes
8489 else
8490   echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8492
8493   ac_header_preproc=no
8494 fi
8495 rm -f conftest.err conftest.$ac_ext
8496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8497 echo "${ECHO_T}$ac_header_preproc" >&6
8498
8499 # So?  What about this header?
8500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8501   yes:no: )
8502     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8506     ac_header_preproc=yes
8507     ;;
8508   no:yes:* )
8509     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8511     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8512 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8513     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8515     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8516 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8519     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8521     (
8522       cat <<\_ASBOX
8523 ## ------------------------------------ ##
8524 ## Report this to bug-coreutils@gnu.org ##
8525 ## ------------------------------------ ##
8526 _ASBOX
8527     ) |
8528       sed "s/^/$as_me: WARNING:     /" >&2
8529     ;;
8530 esac
8531 echo "$as_me:$LINENO: checking for $ac_header" >&5
8532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8534   echo $ECHO_N "(cached) $ECHO_C" >&6
8535 else
8536   eval "$as_ac_Header=\$ac_header_preproc"
8537 fi
8538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8540
8541 fi
8542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8543   cat >>confdefs.h <<_ACEOF
8544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8545 _ACEOF
8546
8547 fi
8548
8549 done
8550
8551
8552
8553
8554 for ac_header in utime.h
8555 do
8556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8558   echo "$as_me:$LINENO: checking for $ac_header" >&5
8559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8561   echo $ECHO_N "(cached) $ECHO_C" >&6
8562 fi
8563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8565 else
8566   # Is the header compilable?
8567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8569 cat >conftest.$ac_ext <<_ACEOF
8570 /* confdefs.h.  */
8571 _ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h.  */
8575 $ac_includes_default
8576 #include <$ac_header>
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580   (eval $ac_compile) 2>conftest.er1
8581   ac_status=$?
8582   grep -v '^ *+' conftest.er1 >conftest.err
8583   rm -f conftest.er1
8584   cat conftest.err >&5
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); } &&
8587          { ac_try='test -z "$ac_c_werror_flag"
8588                          || test ! -s conftest.err'
8589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590   (eval $ac_try) 2>&5
8591   ac_status=$?
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); }; } &&
8594          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8600   ac_header_compiler=yes
8601 else
8602   echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8604
8605 ac_header_compiler=no
8606 fi
8607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8609 echo "${ECHO_T}$ac_header_compiler" >&6
8610
8611 # Is the header present?
8612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8614 cat >conftest.$ac_ext <<_ACEOF
8615 /* confdefs.h.  */
8616 _ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h.  */
8620 #include <$ac_header>
8621 _ACEOF
8622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8623   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8624   ac_status=$?
8625   grep -v '^ *+' conftest.er1 >conftest.err
8626   rm -f conftest.er1
8627   cat conftest.err >&5
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); } >/dev/null; then
8630   if test -s conftest.err; then
8631     ac_cpp_err=$ac_c_preproc_warn_flag
8632     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8633   else
8634     ac_cpp_err=
8635   fi
8636 else
8637   ac_cpp_err=yes
8638 fi
8639 if test -z "$ac_cpp_err"; then
8640   ac_header_preproc=yes
8641 else
8642   echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8644
8645   ac_header_preproc=no
8646 fi
8647 rm -f conftest.err conftest.$ac_ext
8648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8649 echo "${ECHO_T}$ac_header_preproc" >&6
8650
8651 # So?  What about this header?
8652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8653   yes:no: )
8654     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8658     ac_header_preproc=yes
8659     ;;
8660   no:yes:* )
8661     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8663     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8664 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8665     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8667     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8668 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8671     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8673     (
8674       cat <<\_ASBOX
8675 ## ------------------------------------ ##
8676 ## Report this to bug-coreutils@gnu.org ##
8677 ## ------------------------------------ ##
8678 _ASBOX
8679     ) |
8680       sed "s/^/$as_me: WARNING:     /" >&2
8681     ;;
8682 esac
8683 echo "$as_me:$LINENO: checking for $ac_header" >&5
8684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8686   echo $ECHO_N "(cached) $ECHO_C" >&6
8687 else
8688   eval "$as_ac_Header=\$ac_header_preproc"
8689 fi
8690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8692
8693 fi
8694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8695   cat >>confdefs.h <<_ACEOF
8696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8697 _ACEOF
8698
8699 fi
8700
8701 done
8702
8703
8704 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8705 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8706 if test "${ac_cv_header_time+set}" = set; then
8707   echo $ECHO_N "(cached) $ECHO_C" >&6
8708 else
8709   cat >conftest.$ac_ext <<_ACEOF
8710 /* confdefs.h.  */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h.  */
8715 #include <sys/types.h>
8716 #include <sys/time.h>
8717 #include <time.h>
8718
8719 int
8720 main ()
8721 {
8722 if ((struct tm *) 0)
8723 return 0;
8724   ;
8725   return 0;
8726 }
8727 _ACEOF
8728 rm -f conftest.$ac_objext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8730   (eval $ac_compile) 2>conftest.er1
8731   ac_status=$?
8732   grep -v '^ *+' conftest.er1 >conftest.err
8733   rm -f conftest.er1
8734   cat conftest.err >&5
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); } &&
8737          { ac_try='test -z "$ac_c_werror_flag"
8738                          || test ! -s conftest.err'
8739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740   (eval $ac_try) 2>&5
8741   ac_status=$?
8742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743   (exit $ac_status); }; } &&
8744          { ac_try='test -s conftest.$ac_objext'
8745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746   (eval $ac_try) 2>&5
8747   ac_status=$?
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); }; }; then
8750   ac_cv_header_time=yes
8751 else
8752   echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8754
8755 ac_cv_header_time=no
8756 fi
8757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8758 fi
8759 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8760 echo "${ECHO_T}$ac_cv_header_time" >&6
8761 if test $ac_cv_header_time = yes; then
8762
8763 cat >>confdefs.h <<\_ACEOF
8764 #define TIME_WITH_SYS_TIME 1
8765 _ACEOF
8766
8767 fi
8768
8769
8770
8771   :
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781   echo "$as_me:$LINENO: checking for struct utimbuf" >&5
8782 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
8783 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
8784   echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786   cat >conftest.$ac_ext <<_ACEOF
8787 /* confdefs.h.  */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h.  */
8792
8793 #ifdef TIME_WITH_SYS_TIME
8794 # include <sys/time.h>
8795 # include <time.h>
8796 #else
8797 # ifdef HAVE_SYS_TIME_H
8798 #  include <sys/time.h>
8799 # else
8800 #  include <time.h>
8801 # endif
8802 #endif
8803 #ifdef HAVE_UTIME_H
8804 # include <utime.h>
8805 #endif
8806
8807 int
8808 main ()
8809 {
8810 static struct utimbuf x; x.actime = x.modtime;
8811   ;
8812   return 0;
8813 }
8814 _ACEOF
8815 rm -f conftest.$ac_objext
8816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8817   (eval $ac_compile) 2>conftest.er1
8818   ac_status=$?
8819   grep -v '^ *+' conftest.er1 >conftest.err
8820   rm -f conftest.er1
8821   cat conftest.err >&5
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); } &&
8824          { ac_try='test -z "$ac_c_werror_flag"
8825                          || test ! -s conftest.err'
8826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827   (eval $ac_try) 2>&5
8828   ac_status=$?
8829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); }; } &&
8831          { ac_try='test -s conftest.$ac_objext'
8832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833   (eval $ac_try) 2>&5
8834   ac_status=$?
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); }; }; then
8837   fu_cv_sys_struct_utimbuf=yes
8838 else
8839   echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8841
8842 fu_cv_sys_struct_utimbuf=no
8843 fi
8844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8845
8846 fi
8847 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
8848 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
8849
8850   if test $fu_cv_sys_struct_utimbuf = yes; then
8851
8852 cat >>confdefs.h <<\_ACEOF
8853 #define HAVE_STRUCT_UTIMBUF 1
8854 _ACEOF
8855
8856   fi
8857
8858    echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
8859 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
8860 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
8861   echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863   cat >conftest.$ac_ext <<_ACEOF
8864 /* confdefs.h.  */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h.  */
8869
8870 #include <sys/types.h>
8871 #ifdef HAVE_DIRENT_H
8872 # include <dirent.h>
8873 #else /* not HAVE_DIRENT_H */
8874 # define dirent direct
8875 # ifdef HAVE_SYS_NDIR_H
8876 #  include <sys/ndir.h>
8877 # endif /* HAVE_SYS_NDIR_H */
8878 # ifdef HAVE_SYS_DIR_H
8879 #  include <sys/dir.h>
8880 # endif /* HAVE_SYS_DIR_H */
8881 # ifdef HAVE_NDIR_H
8882 #  include <ndir.h>
8883 # endif /* HAVE_NDIR_H */
8884 #endif /* HAVE_DIRENT_H */
8885
8886 int
8887 main ()
8888 {
8889 struct dirent dp; dp.d_type = 0;
8890   ;
8891   return 0;
8892 }
8893 _ACEOF
8894 rm -f conftest.$ac_objext conftest$ac_exeext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896   (eval $ac_link) 2>conftest.er1
8897   ac_status=$?
8898   grep -v '^ *+' conftest.er1 >conftest.err
8899   rm -f conftest.er1
8900   cat conftest.err >&5
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); } &&
8903          { ac_try='test -z "$ac_c_werror_flag"
8904                          || test ! -s conftest.err'
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); }; } &&
8910          { ac_try='test -s conftest$ac_exeext'
8911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912   (eval $ac_try) 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }; }; then
8916   jm_cv_struct_dirent_d_type=yes
8917 else
8918   echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 jm_cv_struct_dirent_d_type=no
8922 fi
8923 rm -f conftest.err conftest.$ac_objext \
8924       conftest$ac_exeext conftest.$ac_ext
8925
8926
8927 fi
8928 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
8929 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
8930    if test $jm_cv_struct_dirent_d_type = yes; then
8931
8932 cat >>confdefs.h <<\_ACEOF
8933 #define HAVE_STRUCT_DIRENT_D_TYPE 1
8934 _ACEOF
8935
8936    fi
8937
8938
8939    echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
8940 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
8941 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
8942   echo $ECHO_N "(cached) $ECHO_C" >&6
8943 else
8944   cat >conftest.$ac_ext <<_ACEOF
8945 /* confdefs.h.  */
8946 _ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h.  */
8950
8951 #include <sys/types.h>
8952 #ifdef HAVE_DIRENT_H
8953 # include <dirent.h>
8954 #else /* not HAVE_DIRENT_H */
8955 # define dirent direct
8956 # ifdef HAVE_SYS_NDIR_H
8957 #  include <sys/ndir.h>
8958 # endif /* HAVE_SYS_NDIR_H */
8959 # ifdef HAVE_SYS_DIR_H
8960 #  include <sys/dir.h>
8961 # endif /* HAVE_SYS_DIR_H */
8962 # ifdef HAVE_NDIR_H
8963 #  include <ndir.h>
8964 # endif /* HAVE_NDIR_H */
8965 #endif /* HAVE_DIRENT_H */
8966
8967 int
8968 main ()
8969 {
8970 struct dirent dp; dp.d_ino = 0;
8971   ;
8972   return 0;
8973 }
8974 _ACEOF
8975 rm -f conftest.$ac_objext conftest$ac_exeext
8976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8977   (eval $ac_link) 2>conftest.er1
8978   ac_status=$?
8979   grep -v '^ *+' conftest.er1 >conftest.err
8980   rm -f conftest.er1
8981   cat conftest.err >&5
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); } &&
8984          { ac_try='test -z "$ac_c_werror_flag"
8985                          || test ! -s conftest.err'
8986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987   (eval $ac_try) 2>&5
8988   ac_status=$?
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); }; } &&
8991          { ac_try='test -s conftest$ac_exeext'
8992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993   (eval $ac_try) 2>&5
8994   ac_status=$?
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); }; }; then
8997   jm_cv_struct_dirent_d_ino=yes
8998 else
8999   echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9001
9002 jm_cv_struct_dirent_d_ino=no
9003 fi
9004 rm -f conftest.err conftest.$ac_objext \
9005       conftest$ac_exeext conftest.$ac_ext
9006
9007
9008 fi
9009 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
9010 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
9011    if test $jm_cv_struct_dirent_d_ino = yes; then
9012
9013 cat >>confdefs.h <<\_ACEOF
9014 #define D_INO_IN_DIRENT 1
9015 _ACEOF
9016
9017    fi
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032 for ac_header in grp.h memory.h pwd.h string.h strings.h stdlib.h \
9033                    unistd.h sys/time.h utmp.h utmpx.h
9034 do
9035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9037   echo "$as_me:$LINENO: checking for $ac_header" >&5
9038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9040   echo $ECHO_N "(cached) $ECHO_C" >&6
9041 fi
9042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9044 else
9045   # Is the header compilable?
9046 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9048 cat >conftest.$ac_ext <<_ACEOF
9049 /* confdefs.h.  */
9050 _ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h.  */
9054 $ac_includes_default
9055 #include <$ac_header>
9056 _ACEOF
9057 rm -f conftest.$ac_objext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9059   (eval $ac_compile) 2>conftest.er1
9060   ac_status=$?
9061   grep -v '^ *+' conftest.er1 >conftest.err
9062   rm -f conftest.er1
9063   cat conftest.err >&5
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); } &&
9066          { ac_try='test -z "$ac_c_werror_flag"
9067                          || test ! -s conftest.err'
9068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069   (eval $ac_try) 2>&5
9070   ac_status=$?
9071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072   (exit $ac_status); }; } &&
9073          { ac_try='test -s conftest.$ac_objext'
9074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075   (eval $ac_try) 2>&5
9076   ac_status=$?
9077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); }; }; then
9079   ac_header_compiler=yes
9080 else
9081   echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9083
9084 ac_header_compiler=no
9085 fi
9086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9088 echo "${ECHO_T}$ac_header_compiler" >&6
9089
9090 # Is the header present?
9091 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h.  */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h.  */
9099 #include <$ac_header>
9100 _ACEOF
9101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9103   ac_status=$?
9104   grep -v '^ *+' conftest.er1 >conftest.err
9105   rm -f conftest.er1
9106   cat conftest.err >&5
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); } >/dev/null; then
9109   if test -s conftest.err; then
9110     ac_cpp_err=$ac_c_preproc_warn_flag
9111     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9112   else
9113     ac_cpp_err=
9114   fi
9115 else
9116   ac_cpp_err=yes
9117 fi
9118 if test -z "$ac_cpp_err"; then
9119   ac_header_preproc=yes
9120 else
9121   echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9123
9124   ac_header_preproc=no
9125 fi
9126 rm -f conftest.err conftest.$ac_ext
9127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9128 echo "${ECHO_T}$ac_header_preproc" >&6
9129
9130 # So?  What about this header?
9131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9132   yes:no: )
9133     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9137     ac_header_preproc=yes
9138     ;;
9139   no:yes:* )
9140     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9142     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9143 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9144     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9146     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9147 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9150     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9152     (
9153       cat <<\_ASBOX
9154 ## ------------------------------------ ##
9155 ## Report this to bug-coreutils@gnu.org ##
9156 ## ------------------------------------ ##
9157 _ASBOX
9158     ) |
9159       sed "s/^/$as_me: WARNING:     /" >&2
9160     ;;
9161 esac
9162 echo "$as_me:$LINENO: checking for $ac_header" >&5
9163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9165   echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167   eval "$as_ac_Header=\$ac_header_preproc"
9168 fi
9169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9171
9172 fi
9173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9174   cat >>confdefs.h <<_ACEOF
9175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9176 _ACEOF
9177
9178 fi
9179
9180 done
9181
9182
9183
9184
9185
9186   headers='
9187 #include <stdio.h>
9188 #include <string.h>
9189 #include <stdlib.h>
9190
9191 #if HAVE_UNISTD_H
9192 # include <unistd.h>
9193 #endif
9194
9195 #include <sys/types.h>
9196 #if TIME_WITH_SYS_TIME
9197 # include <sys/time.h>
9198 # include <time.h>
9199 #else
9200 # if HAVE_SYS_TIME_H
9201 #  include <sys/time.h>
9202 # else
9203 #  include <time.h>
9204 # endif
9205 #endif
9206
9207 #if HAVE_UTMP_H
9208 # include <utmp.h>
9209 #endif
9210
9211 #if HAVE_GRP_H
9212 # include <grp.h>
9213 #endif
9214
9215 #if HAVE_PWD_H
9216 # include <pwd.h>
9217 #endif
9218 '
9219
9220   echo "$as_me:$LINENO: checking whether free is declared" >&5
9221 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
9222 if test "${ac_cv_have_decl_free+set}" = set; then
9223   echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225   cat >conftest.$ac_ext <<_ACEOF
9226 /* confdefs.h.  */
9227 _ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h.  */
9231 $headers
9232
9233 int
9234 main ()
9235 {
9236 #ifndef free
9237   char *p = (char *) free;
9238 #endif
9239
9240   ;
9241   return 0;
9242 }
9243 _ACEOF
9244 rm -f conftest.$ac_objext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246   (eval $ac_compile) 2>conftest.er1
9247   ac_status=$?
9248   grep -v '^ *+' conftest.er1 >conftest.err
9249   rm -f conftest.er1
9250   cat conftest.err >&5
9251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252   (exit $ac_status); } &&
9253          { ac_try='test -z "$ac_c_werror_flag"
9254                          || test ! -s conftest.err'
9255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256   (eval $ac_try) 2>&5
9257   ac_status=$?
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); }; } &&
9260          { ac_try='test -s conftest.$ac_objext'
9261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262   (eval $ac_try) 2>&5
9263   ac_status=$?
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); }; }; then
9266   ac_cv_have_decl_free=yes
9267 else
9268   echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9270
9271 ac_cv_have_decl_free=no
9272 fi
9273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9274 fi
9275 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9276 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
9277 if test $ac_cv_have_decl_free = yes; then
9278
9279 cat >>confdefs.h <<_ACEOF
9280 #define HAVE_DECL_FREE 1
9281 _ACEOF
9282
9283
9284 else
9285   cat >>confdefs.h <<_ACEOF
9286 #define HAVE_DECL_FREE 0
9287 _ACEOF
9288
9289
9290 fi
9291 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9292 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
9293 if test "${ac_cv_have_decl_getenv+set}" = set; then
9294   echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296   cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h.  */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h.  */
9302 $headers
9303
9304 int
9305 main ()
9306 {
9307 #ifndef getenv
9308   char *p = (char *) getenv;
9309 #endif
9310
9311   ;
9312   return 0;
9313 }
9314 _ACEOF
9315 rm -f conftest.$ac_objext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9317   (eval $ac_compile) 2>conftest.er1
9318   ac_status=$?
9319   grep -v '^ *+' conftest.er1 >conftest.err
9320   rm -f conftest.er1
9321   cat conftest.err >&5
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); } &&
9324          { ac_try='test -z "$ac_c_werror_flag"
9325                          || test ! -s conftest.err'
9326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327   (eval $ac_try) 2>&5
9328   ac_status=$?
9329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330   (exit $ac_status); }; } &&
9331          { ac_try='test -s conftest.$ac_objext'
9332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333   (eval $ac_try) 2>&5
9334   ac_status=$?
9335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336   (exit $ac_status); }; }; then
9337   ac_cv_have_decl_getenv=yes
9338 else
9339   echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9341
9342 ac_cv_have_decl_getenv=no
9343 fi
9344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9345 fi
9346 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9347 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9348 if test $ac_cv_have_decl_getenv = yes; then
9349
9350 cat >>confdefs.h <<_ACEOF
9351 #define HAVE_DECL_GETENV 1
9352 _ACEOF
9353
9354
9355 else
9356   cat >>confdefs.h <<_ACEOF
9357 #define HAVE_DECL_GETENV 0
9358 _ACEOF
9359
9360
9361 fi
9362 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
9363 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
9364 if test "${ac_cv_have_decl_geteuid+set}" = set; then
9365   echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367   cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h.  */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h.  */
9373 $headers
9374
9375 int
9376 main ()
9377 {
9378 #ifndef geteuid
9379   char *p = (char *) geteuid;
9380 #endif
9381
9382   ;
9383   return 0;
9384 }
9385 _ACEOF
9386 rm -f conftest.$ac_objext
9387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388   (eval $ac_compile) 2>conftest.er1
9389   ac_status=$?
9390   grep -v '^ *+' conftest.er1 >conftest.err
9391   rm -f conftest.er1
9392   cat conftest.err >&5
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); } &&
9395          { ac_try='test -z "$ac_c_werror_flag"
9396                          || test ! -s conftest.err'
9397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398   (eval $ac_try) 2>&5
9399   ac_status=$?
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); }; } &&
9402          { ac_try='test -s conftest.$ac_objext'
9403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404   (eval $ac_try) 2>&5
9405   ac_status=$?
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); }; }; then
9408   ac_cv_have_decl_geteuid=yes
9409 else
9410   echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9412
9413 ac_cv_have_decl_geteuid=no
9414 fi
9415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9416 fi
9417 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
9418 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
9419 if test $ac_cv_have_decl_geteuid = yes; then
9420
9421 cat >>confdefs.h <<_ACEOF
9422 #define HAVE_DECL_GETEUID 1
9423 _ACEOF
9424
9425
9426 else
9427   cat >>confdefs.h <<_ACEOF
9428 #define HAVE_DECL_GETEUID 0
9429 _ACEOF
9430
9431
9432 fi
9433 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
9434 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
9435 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
9436   echo $ECHO_N "(cached) $ECHO_C" >&6
9437 else
9438   cat >conftest.$ac_ext <<_ACEOF
9439 /* confdefs.h.  */
9440 _ACEOF
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h.  */
9444 $headers
9445
9446 int
9447 main ()
9448 {
9449 #ifndef getgrgid
9450   char *p = (char *) getgrgid;
9451 #endif
9452
9453   ;
9454   return 0;
9455 }
9456 _ACEOF
9457 rm -f conftest.$ac_objext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9459   (eval $ac_compile) 2>conftest.er1
9460   ac_status=$?
9461   grep -v '^ *+' conftest.er1 >conftest.err
9462   rm -f conftest.er1
9463   cat conftest.err >&5
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); } &&
9466          { ac_try='test -z "$ac_c_werror_flag"
9467                          || test ! -s conftest.err'
9468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469   (eval $ac_try) 2>&5
9470   ac_status=$?
9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472   (exit $ac_status); }; } &&
9473          { ac_try='test -s conftest.$ac_objext'
9474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475   (eval $ac_try) 2>&5
9476   ac_status=$?
9477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478   (exit $ac_status); }; }; then
9479   ac_cv_have_decl_getgrgid=yes
9480 else
9481   echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9483
9484 ac_cv_have_decl_getgrgid=no
9485 fi
9486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9487 fi
9488 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
9489 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
9490 if test $ac_cv_have_decl_getgrgid = yes; then
9491
9492 cat >>confdefs.h <<_ACEOF
9493 #define HAVE_DECL_GETGRGID 1
9494 _ACEOF
9495
9496
9497 else
9498   cat >>confdefs.h <<_ACEOF
9499 #define HAVE_DECL_GETGRGID 0
9500 _ACEOF
9501
9502
9503 fi
9504 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
9505 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
9506 if test "${ac_cv_have_decl_getlogin+set}" = set; then
9507   echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509   cat >conftest.$ac_ext <<_ACEOF
9510 /* confdefs.h.  */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h.  */
9515 $headers
9516
9517 int
9518 main ()
9519 {
9520 #ifndef getlogin
9521   char *p = (char *) getlogin;
9522 #endif
9523
9524   ;
9525   return 0;
9526 }
9527 _ACEOF
9528 rm -f conftest.$ac_objext
9529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9530   (eval $ac_compile) 2>conftest.er1
9531   ac_status=$?
9532   grep -v '^ *+' conftest.er1 >conftest.err
9533   rm -f conftest.er1
9534   cat conftest.err >&5
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); } &&
9537          { ac_try='test -z "$ac_c_werror_flag"
9538                          || test ! -s conftest.err'
9539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540   (eval $ac_try) 2>&5
9541   ac_status=$?
9542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543   (exit $ac_status); }; } &&
9544          { ac_try='test -s conftest.$ac_objext'
9545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546   (eval $ac_try) 2>&5
9547   ac_status=$?
9548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549   (exit $ac_status); }; }; then
9550   ac_cv_have_decl_getlogin=yes
9551 else
9552   echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9554
9555 ac_cv_have_decl_getlogin=no
9556 fi
9557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9558 fi
9559 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
9560 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
9561 if test $ac_cv_have_decl_getlogin = yes; then
9562
9563 cat >>confdefs.h <<_ACEOF
9564 #define HAVE_DECL_GETLOGIN 1
9565 _ACEOF
9566
9567
9568 else
9569   cat >>confdefs.h <<_ACEOF
9570 #define HAVE_DECL_GETLOGIN 0
9571 _ACEOF
9572
9573
9574 fi
9575 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
9576 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
9577 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
9578   echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580   cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h.  */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h.  */
9586 $headers
9587
9588 int
9589 main ()
9590 {
9591 #ifndef getpwuid
9592   char *p = (char *) getpwuid;
9593 #endif
9594
9595   ;
9596   return 0;
9597 }
9598 _ACEOF
9599 rm -f conftest.$ac_objext
9600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9601   (eval $ac_compile) 2>conftest.er1
9602   ac_status=$?
9603   grep -v '^ *+' conftest.er1 >conftest.err
9604   rm -f conftest.er1
9605   cat conftest.err >&5
9606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607   (exit $ac_status); } &&
9608          { ac_try='test -z "$ac_c_werror_flag"
9609                          || test ! -s conftest.err'
9610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611   (eval $ac_try) 2>&5
9612   ac_status=$?
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); }; } &&
9615          { ac_try='test -s conftest.$ac_objext'
9616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617   (eval $ac_try) 2>&5
9618   ac_status=$?
9619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620   (exit $ac_status); }; }; then
9621   ac_cv_have_decl_getpwuid=yes
9622 else
9623   echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9625
9626 ac_cv_have_decl_getpwuid=no
9627 fi
9628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9629 fi
9630 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
9631 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
9632 if test $ac_cv_have_decl_getpwuid = yes; then
9633
9634 cat >>confdefs.h <<_ACEOF
9635 #define HAVE_DECL_GETPWUID 1
9636 _ACEOF
9637
9638
9639 else
9640   cat >>confdefs.h <<_ACEOF
9641 #define HAVE_DECL_GETPWUID 0
9642 _ACEOF
9643
9644
9645 fi
9646 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
9647 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
9648 if test "${ac_cv_have_decl_getuid+set}" = set; then
9649   echo $ECHO_N "(cached) $ECHO_C" >&6
9650 else
9651   cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h.  */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h.  */
9657 $headers
9658
9659 int
9660 main ()
9661 {
9662 #ifndef getuid
9663   char *p = (char *) getuid;
9664 #endif
9665
9666   ;
9667   return 0;
9668 }
9669 _ACEOF
9670 rm -f conftest.$ac_objext
9671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9672   (eval $ac_compile) 2>conftest.er1
9673   ac_status=$?
9674   grep -v '^ *+' conftest.er1 >conftest.err
9675   rm -f conftest.er1
9676   cat conftest.err >&5
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); } &&
9679          { ac_try='test -z "$ac_c_werror_flag"
9680                          || test ! -s conftest.err'
9681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682   (eval $ac_try) 2>&5
9683   ac_status=$?
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); }; } &&
9686          { ac_try='test -s conftest.$ac_objext'
9687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688   (eval $ac_try) 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); }; }; then
9692   ac_cv_have_decl_getuid=yes
9693 else
9694   echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9696
9697 ac_cv_have_decl_getuid=no
9698 fi
9699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9700 fi
9701 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
9702 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
9703 if test $ac_cv_have_decl_getuid = yes; then
9704
9705 cat >>confdefs.h <<_ACEOF
9706 #define HAVE_DECL_GETUID 1
9707 _ACEOF
9708
9709
9710 else
9711   cat >>confdefs.h <<_ACEOF
9712 #define HAVE_DECL_GETUID 0
9713 _ACEOF
9714
9715
9716 fi
9717 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
9718 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
9719 if test "${ac_cv_have_decl_getutent+set}" = set; then
9720   echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722   cat >conftest.$ac_ext <<_ACEOF
9723 /* confdefs.h.  */
9724 _ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h.  */
9728 $headers
9729
9730 int
9731 main ()
9732 {
9733 #ifndef getutent
9734   char *p = (char *) getutent;
9735 #endif
9736
9737   ;
9738   return 0;
9739 }
9740 _ACEOF
9741 rm -f conftest.$ac_objext
9742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9743   (eval $ac_compile) 2>conftest.er1
9744   ac_status=$?
9745   grep -v '^ *+' conftest.er1 >conftest.err
9746   rm -f conftest.er1
9747   cat conftest.err >&5
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); } &&
9750          { ac_try='test -z "$ac_c_werror_flag"
9751                          || test ! -s conftest.err'
9752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753   (eval $ac_try) 2>&5
9754   ac_status=$?
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); }; } &&
9757          { ac_try='test -s conftest.$ac_objext'
9758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759   (eval $ac_try) 2>&5
9760   ac_status=$?
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); }; }; then
9763   ac_cv_have_decl_getutent=yes
9764 else
9765   echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9767
9768 ac_cv_have_decl_getutent=no
9769 fi
9770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9771 fi
9772 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
9773 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
9774 if test $ac_cv_have_decl_getutent = yes; then
9775
9776 cat >>confdefs.h <<_ACEOF
9777 #define HAVE_DECL_GETUTENT 1
9778 _ACEOF
9779
9780
9781 else
9782   cat >>confdefs.h <<_ACEOF
9783 #define HAVE_DECL_GETUTENT 0
9784 _ACEOF
9785
9786
9787 fi
9788 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
9789 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
9790 if test "${ac_cv_have_decl_lseek+set}" = set; then
9791   echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793   cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h.  */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h.  */
9799 $headers
9800
9801 int
9802 main ()
9803 {
9804 #ifndef lseek
9805   char *p = (char *) lseek;
9806 #endif
9807
9808   ;
9809   return 0;
9810 }
9811 _ACEOF
9812 rm -f conftest.$ac_objext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9814   (eval $ac_compile) 2>conftest.er1
9815   ac_status=$?
9816   grep -v '^ *+' conftest.er1 >conftest.err
9817   rm -f conftest.er1
9818   cat conftest.err >&5
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); } &&
9821          { ac_try='test -z "$ac_c_werror_flag"
9822                          || test ! -s conftest.err'
9823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824   (eval $ac_try) 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); }; } &&
9828          { ac_try='test -s conftest.$ac_objext'
9829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830   (eval $ac_try) 2>&5
9831   ac_status=$?
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); }; }; then
9834   ac_cv_have_decl_lseek=yes
9835 else
9836   echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9838
9839 ac_cv_have_decl_lseek=no
9840 fi
9841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9842 fi
9843 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
9844 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
9845 if test $ac_cv_have_decl_lseek = yes; then
9846
9847 cat >>confdefs.h <<_ACEOF
9848 #define HAVE_DECL_LSEEK 1
9849 _ACEOF
9850
9851
9852 else
9853   cat >>confdefs.h <<_ACEOF
9854 #define HAVE_DECL_LSEEK 0
9855 _ACEOF
9856
9857
9858 fi
9859 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
9860 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
9861 if test "${ac_cv_have_decl_malloc+set}" = set; then
9862   echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864   cat >conftest.$ac_ext <<_ACEOF
9865 /* confdefs.h.  */
9866 _ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h.  */
9870 $headers
9871
9872 int
9873 main ()
9874 {
9875 #ifndef malloc
9876   char *p = (char *) malloc;
9877 #endif
9878
9879   ;
9880   return 0;
9881 }
9882 _ACEOF
9883 rm -f conftest.$ac_objext
9884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9885   (eval $ac_compile) 2>conftest.er1
9886   ac_status=$?
9887   grep -v '^ *+' conftest.er1 >conftest.err
9888   rm -f conftest.er1
9889   cat conftest.err >&5
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); } &&
9892          { ac_try='test -z "$ac_c_werror_flag"
9893                          || test ! -s conftest.err'
9894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895   (eval $ac_try) 2>&5
9896   ac_status=$?
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); }; } &&
9899          { ac_try='test -s conftest.$ac_objext'
9900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901   (eval $ac_try) 2>&5
9902   ac_status=$?
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); }; }; then
9905   ac_cv_have_decl_malloc=yes
9906 else
9907   echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9909
9910 ac_cv_have_decl_malloc=no
9911 fi
9912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9913 fi
9914 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
9915 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
9916 if test $ac_cv_have_decl_malloc = yes; then
9917
9918 cat >>confdefs.h <<_ACEOF
9919 #define HAVE_DECL_MALLOC 1
9920 _ACEOF
9921
9922
9923 else
9924   cat >>confdefs.h <<_ACEOF
9925 #define HAVE_DECL_MALLOC 0
9926 _ACEOF
9927
9928
9929 fi
9930 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
9931 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
9932 if test "${ac_cv_have_decl_memchr+set}" = set; then
9933   echo $ECHO_N "(cached) $ECHO_C" >&6
9934 else
9935   cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h.  */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h.  */
9941 $headers
9942
9943 int
9944 main ()
9945 {
9946 #ifndef memchr
9947   char *p = (char *) memchr;
9948 #endif
9949
9950   ;
9951   return 0;
9952 }
9953 _ACEOF
9954 rm -f conftest.$ac_objext
9955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9956   (eval $ac_compile) 2>conftest.er1
9957   ac_status=$?
9958   grep -v '^ *+' conftest.er1 >conftest.err
9959   rm -f conftest.er1
9960   cat conftest.err >&5
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); } &&
9963          { ac_try='test -z "$ac_c_werror_flag"
9964                          || test ! -s conftest.err'
9965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966   (eval $ac_try) 2>&5
9967   ac_status=$?
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); }; } &&
9970          { ac_try='test -s conftest.$ac_objext'
9971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972   (eval $ac_try) 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); }; }; then
9976   ac_cv_have_decl_memchr=yes
9977 else
9978   echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9980
9981 ac_cv_have_decl_memchr=no
9982 fi
9983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9984 fi
9985 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
9986 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
9987 if test $ac_cv_have_decl_memchr = yes; then
9988
9989 cat >>confdefs.h <<_ACEOF
9990 #define HAVE_DECL_MEMCHR 1
9991 _ACEOF
9992
9993
9994 else
9995   cat >>confdefs.h <<_ACEOF
9996 #define HAVE_DECL_MEMCHR 0
9997 _ACEOF
9998
9999
10000 fi
10001 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
10002 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
10003 if test "${ac_cv_have_decl_memrchr+set}" = set; then
10004   echo $ECHO_N "(cached) $ECHO_C" >&6
10005 else
10006   cat >conftest.$ac_ext <<_ACEOF
10007 /* confdefs.h.  */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h.  */
10012 $headers
10013
10014 int
10015 main ()
10016 {
10017 #ifndef memrchr
10018   char *p = (char *) memrchr;
10019 #endif
10020
10021   ;
10022   return 0;
10023 }
10024 _ACEOF
10025 rm -f conftest.$ac_objext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10027   (eval $ac_compile) 2>conftest.er1
10028   ac_status=$?
10029   grep -v '^ *+' conftest.er1 >conftest.err
10030   rm -f conftest.er1
10031   cat conftest.err >&5
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); } &&
10034          { ac_try='test -z "$ac_c_werror_flag"
10035                          || test ! -s conftest.err'
10036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037   (eval $ac_try) 2>&5
10038   ac_status=$?
10039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040   (exit $ac_status); }; } &&
10041          { ac_try='test -s conftest.$ac_objext'
10042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043   (eval $ac_try) 2>&5
10044   ac_status=$?
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); }; }; then
10047   ac_cv_have_decl_memrchr=yes
10048 else
10049   echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10051
10052 ac_cv_have_decl_memrchr=no
10053 fi
10054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10055 fi
10056 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
10057 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
10058 if test $ac_cv_have_decl_memrchr = yes; then
10059
10060 cat >>confdefs.h <<_ACEOF
10061 #define HAVE_DECL_MEMRCHR 1
10062 _ACEOF
10063
10064
10065 else
10066   cat >>confdefs.h <<_ACEOF
10067 #define HAVE_DECL_MEMRCHR 0
10068 _ACEOF
10069
10070
10071 fi
10072 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
10073 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
10074 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
10075   echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077   cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h.  */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h.  */
10083 $headers
10084
10085 int
10086 main ()
10087 {
10088 #ifndef nanosleep
10089   char *p = (char *) nanosleep;
10090 #endif
10091
10092   ;
10093   return 0;
10094 }
10095 _ACEOF
10096 rm -f conftest.$ac_objext
10097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10098   (eval $ac_compile) 2>conftest.er1
10099   ac_status=$?
10100   grep -v '^ *+' conftest.er1 >conftest.err
10101   rm -f conftest.er1
10102   cat conftest.err >&5
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); } &&
10105          { ac_try='test -z "$ac_c_werror_flag"
10106                          || test ! -s conftest.err'
10107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108   (eval $ac_try) 2>&5
10109   ac_status=$?
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); }; } &&
10112          { ac_try='test -s conftest.$ac_objext'
10113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10114   (eval $ac_try) 2>&5
10115   ac_status=$?
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); }; }; then
10118   ac_cv_have_decl_nanosleep=yes
10119 else
10120   echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10122
10123 ac_cv_have_decl_nanosleep=no
10124 fi
10125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10126 fi
10127 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
10128 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
10129 if test $ac_cv_have_decl_nanosleep = yes; then
10130
10131 cat >>confdefs.h <<_ACEOF
10132 #define HAVE_DECL_NANOSLEEP 1
10133 _ACEOF
10134
10135
10136 else
10137   cat >>confdefs.h <<_ACEOF
10138 #define HAVE_DECL_NANOSLEEP 0
10139 _ACEOF
10140
10141
10142 fi
10143 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
10144 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
10145 if test "${ac_cv_have_decl_realloc+set}" = set; then
10146   echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148   cat >conftest.$ac_ext <<_ACEOF
10149 /* confdefs.h.  */
10150 _ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h.  */
10154 $headers
10155
10156 int
10157 main ()
10158 {
10159 #ifndef realloc
10160   char *p = (char *) realloc;
10161 #endif
10162
10163   ;
10164   return 0;
10165 }
10166 _ACEOF
10167 rm -f conftest.$ac_objext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10169   (eval $ac_compile) 2>conftest.er1
10170   ac_status=$?
10171   grep -v '^ *+' conftest.er1 >conftest.err
10172   rm -f conftest.er1
10173   cat conftest.err >&5
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); } &&
10176          { ac_try='test -z "$ac_c_werror_flag"
10177                          || test ! -s conftest.err'
10178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179   (eval $ac_try) 2>&5
10180   ac_status=$?
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); }; } &&
10183          { ac_try='test -s conftest.$ac_objext'
10184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185   (eval $ac_try) 2>&5
10186   ac_status=$?
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); }; }; then
10189   ac_cv_have_decl_realloc=yes
10190 else
10191   echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10193
10194 ac_cv_have_decl_realloc=no
10195 fi
10196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10197 fi
10198 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
10199 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
10200 if test $ac_cv_have_decl_realloc = yes; then
10201
10202 cat >>confdefs.h <<_ACEOF
10203 #define HAVE_DECL_REALLOC 1
10204 _ACEOF
10205
10206
10207 else
10208   cat >>confdefs.h <<_ACEOF
10209 #define HAVE_DECL_REALLOC 0
10210 _ACEOF
10211
10212
10213 fi
10214 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10215 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
10216 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10217   echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219   cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h.  */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h.  */
10225 $headers
10226
10227 int
10228 main ()
10229 {
10230 #ifndef stpcpy
10231   char *p = (char *) stpcpy;
10232 #endif
10233
10234   ;
10235   return 0;
10236 }
10237 _ACEOF
10238 rm -f conftest.$ac_objext
10239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10240   (eval $ac_compile) 2>conftest.er1
10241   ac_status=$?
10242   grep -v '^ *+' conftest.er1 >conftest.err
10243   rm -f conftest.er1
10244   cat conftest.err >&5
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); } &&
10247          { ac_try='test -z "$ac_c_werror_flag"
10248                          || test ! -s conftest.err'
10249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250   (eval $ac_try) 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; } &&
10254          { ac_try='test -s conftest.$ac_objext'
10255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256   (eval $ac_try) 2>&5
10257   ac_status=$?
10258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259   (exit $ac_status); }; }; then
10260   ac_cv_have_decl_stpcpy=yes
10261 else
10262   echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10264
10265 ac_cv_have_decl_stpcpy=no
10266 fi
10267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10268 fi
10269 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
10270 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
10271 if test $ac_cv_have_decl_stpcpy = yes; then
10272
10273 cat >>confdefs.h <<_ACEOF
10274 #define HAVE_DECL_STPCPY 1
10275 _ACEOF
10276
10277
10278 else
10279   cat >>confdefs.h <<_ACEOF
10280 #define HAVE_DECL_STPCPY 0
10281 _ACEOF
10282
10283
10284 fi
10285 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
10286 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
10287 if test "${ac_cv_have_decl_strndup+set}" = set; then
10288   echo $ECHO_N "(cached) $ECHO_C" >&6
10289 else
10290   cat >conftest.$ac_ext <<_ACEOF
10291 /* confdefs.h.  */
10292 _ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h.  */
10296 $headers
10297
10298 int
10299 main ()
10300 {
10301 #ifndef strndup
10302   char *p = (char *) strndup;
10303 #endif
10304
10305   ;
10306   return 0;
10307 }
10308 _ACEOF
10309 rm -f conftest.$ac_objext
10310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10311   (eval $ac_compile) 2>conftest.er1
10312   ac_status=$?
10313   grep -v '^ *+' conftest.er1 >conftest.err
10314   rm -f conftest.er1
10315   cat conftest.err >&5
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); } &&
10318          { ac_try='test -z "$ac_c_werror_flag"
10319                          || test ! -s conftest.err'
10320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321   (eval $ac_try) 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); }; } &&
10325          { ac_try='test -s conftest.$ac_objext'
10326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327   (eval $ac_try) 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); }; }; then
10331   ac_cv_have_decl_strndup=yes
10332 else
10333   echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10335
10336 ac_cv_have_decl_strndup=no
10337 fi
10338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10339 fi
10340 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
10341 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
10342 if test $ac_cv_have_decl_strndup = yes; then
10343
10344 cat >>confdefs.h <<_ACEOF
10345 #define HAVE_DECL_STRNDUP 1
10346 _ACEOF
10347
10348
10349 else
10350   cat >>confdefs.h <<_ACEOF
10351 #define HAVE_DECL_STRNDUP 0
10352 _ACEOF
10353
10354
10355 fi
10356 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
10357 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
10358 if test "${ac_cv_have_decl_strnlen+set}" = set; then
10359   echo $ECHO_N "(cached) $ECHO_C" >&6
10360 else
10361   cat >conftest.$ac_ext <<_ACEOF
10362 /* confdefs.h.  */
10363 _ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h.  */
10367 $headers
10368
10369 int
10370 main ()
10371 {
10372 #ifndef strnlen
10373   char *p = (char *) strnlen;
10374 #endif
10375
10376   ;
10377   return 0;
10378 }
10379 _ACEOF
10380 rm -f conftest.$ac_objext
10381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10382   (eval $ac_compile) 2>conftest.er1
10383   ac_status=$?
10384   grep -v '^ *+' conftest.er1 >conftest.err
10385   rm -f conftest.er1
10386   cat conftest.err >&5
10387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); } &&
10389          { ac_try='test -z "$ac_c_werror_flag"
10390                          || test ! -s conftest.err'
10391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392   (eval $ac_try) 2>&5
10393   ac_status=$?
10394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395   (exit $ac_status); }; } &&
10396          { ac_try='test -s conftest.$ac_objext'
10397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398   (eval $ac_try) 2>&5
10399   ac_status=$?
10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401   (exit $ac_status); }; }; then
10402   ac_cv_have_decl_strnlen=yes
10403 else
10404   echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10406
10407 ac_cv_have_decl_strnlen=no
10408 fi
10409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10410 fi
10411 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
10412 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
10413 if test $ac_cv_have_decl_strnlen = yes; then
10414
10415 cat >>confdefs.h <<_ACEOF
10416 #define HAVE_DECL_STRNLEN 1
10417 _ACEOF
10418
10419
10420 else
10421   cat >>confdefs.h <<_ACEOF
10422 #define HAVE_DECL_STRNLEN 0
10423 _ACEOF
10424
10425
10426 fi
10427 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
10428 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
10429 if test "${ac_cv_have_decl_strstr+set}" = set; then
10430   echo $ECHO_N "(cached) $ECHO_C" >&6
10431 else
10432   cat >conftest.$ac_ext <<_ACEOF
10433 /* confdefs.h.  */
10434 _ACEOF
10435 cat confdefs.h >>conftest.$ac_ext
10436 cat >>conftest.$ac_ext <<_ACEOF
10437 /* end confdefs.h.  */
10438 $headers
10439
10440 int
10441 main ()
10442 {
10443 #ifndef strstr
10444   char *p = (char *) strstr;
10445 #endif
10446
10447   ;
10448   return 0;
10449 }
10450 _ACEOF
10451 rm -f conftest.$ac_objext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10453   (eval $ac_compile) 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); } &&
10460          { ac_try='test -z "$ac_c_werror_flag"
10461                          || test ! -s conftest.err'
10462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463   (eval $ac_try) 2>&5
10464   ac_status=$?
10465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466   (exit $ac_status); }; } &&
10467          { ac_try='test -s conftest.$ac_objext'
10468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469   (eval $ac_try) 2>&5
10470   ac_status=$?
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); }; }; then
10473   ac_cv_have_decl_strstr=yes
10474 else
10475   echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10477
10478 ac_cv_have_decl_strstr=no
10479 fi
10480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10481 fi
10482 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10483 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10484 if test $ac_cv_have_decl_strstr = yes; then
10485
10486 cat >>confdefs.h <<_ACEOF
10487 #define HAVE_DECL_STRSTR 1
10488 _ACEOF
10489
10490
10491 else
10492   cat >>confdefs.h <<_ACEOF
10493 #define HAVE_DECL_STRSTR 0
10494 _ACEOF
10495
10496
10497 fi
10498 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
10499 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
10500 if test "${ac_cv_have_decl_strtoul+set}" = set; then
10501   echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10503   cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h.  */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h.  */
10509 $headers
10510
10511 int
10512 main ()
10513 {
10514 #ifndef strtoul
10515   char *p = (char *) strtoul;
10516 #endif
10517
10518   ;
10519   return 0;
10520 }
10521 _ACEOF
10522 rm -f conftest.$ac_objext
10523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10524   (eval $ac_compile) 2>conftest.er1
10525   ac_status=$?
10526   grep -v '^ *+' conftest.er1 >conftest.err
10527   rm -f conftest.er1
10528   cat conftest.err >&5
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); } &&
10531          { ac_try='test -z "$ac_c_werror_flag"
10532                          || test ! -s conftest.err'
10533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10534   (eval $ac_try) 2>&5
10535   ac_status=$?
10536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537   (exit $ac_status); }; } &&
10538          { ac_try='test -s conftest.$ac_objext'
10539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540   (eval $ac_try) 2>&5
10541   ac_status=$?
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); }; }; then
10544   ac_cv_have_decl_strtoul=yes
10545 else
10546   echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10548
10549 ac_cv_have_decl_strtoul=no
10550 fi
10551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10552 fi
10553 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
10554 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
10555 if test $ac_cv_have_decl_strtoul = yes; then
10556
10557 cat >>confdefs.h <<_ACEOF
10558 #define HAVE_DECL_STRTOUL 1
10559 _ACEOF
10560
10561
10562 else
10563   cat >>confdefs.h <<_ACEOF
10564 #define HAVE_DECL_STRTOUL 0
10565 _ACEOF
10566
10567
10568 fi
10569 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
10570 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
10571 if test "${ac_cv_have_decl_strtoull+set}" = set; then
10572   echo $ECHO_N "(cached) $ECHO_C" >&6
10573 else
10574   cat >conftest.$ac_ext <<_ACEOF
10575 /* confdefs.h.  */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h.  */
10580 $headers
10581
10582 int
10583 main ()
10584 {
10585 #ifndef strtoull
10586   char *p = (char *) strtoull;
10587 #endif
10588
10589   ;
10590   return 0;
10591 }
10592 _ACEOF
10593 rm -f conftest.$ac_objext
10594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10595   (eval $ac_compile) 2>conftest.er1
10596   ac_status=$?
10597   grep -v '^ *+' conftest.er1 >conftest.err
10598   rm -f conftest.er1
10599   cat conftest.err >&5
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); } &&
10602          { ac_try='test -z "$ac_c_werror_flag"
10603                          || test ! -s conftest.err'
10604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605   (eval $ac_try) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; } &&
10609          { ac_try='test -s conftest.$ac_objext'
10610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611   (eval $ac_try) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }; }; then
10615   ac_cv_have_decl_strtoull=yes
10616 else
10617   echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 ac_cv_have_decl_strtoull=no
10621 fi
10622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10623 fi
10624 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
10625 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
10626 if test $ac_cv_have_decl_strtoull = yes; then
10627
10628 cat >>confdefs.h <<_ACEOF
10629 #define HAVE_DECL_STRTOULL 1
10630 _ACEOF
10631
10632
10633 else
10634   cat >>confdefs.h <<_ACEOF
10635 #define HAVE_DECL_STRTOULL 0
10636 _ACEOF
10637
10638
10639 fi
10640 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
10641 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
10642 if test "${ac_cv_have_decl_ttyname+set}" = set; then
10643   echo $ECHO_N "(cached) $ECHO_C" >&6
10644 else
10645   cat >conftest.$ac_ext <<_ACEOF
10646 /* confdefs.h.  */
10647 _ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h.  */
10651 $headers
10652
10653 int
10654 main ()
10655 {
10656 #ifndef ttyname
10657   char *p = (char *) ttyname;
10658 #endif
10659
10660   ;
10661   return 0;
10662 }
10663 _ACEOF
10664 rm -f conftest.$ac_objext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10666   (eval $ac_compile) 2>conftest.er1
10667   ac_status=$?
10668   grep -v '^ *+' conftest.er1 >conftest.err
10669   rm -f conftest.er1
10670   cat conftest.err >&5
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); } &&
10673          { ac_try='test -z "$ac_c_werror_flag"
10674                          || test ! -s conftest.err'
10675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676   (eval $ac_try) 2>&5
10677   ac_status=$?
10678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); }; } &&
10680          { ac_try='test -s conftest.$ac_objext'
10681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682   (eval $ac_try) 2>&5
10683   ac_status=$?
10684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685   (exit $ac_status); }; }; then
10686   ac_cv_have_decl_ttyname=yes
10687 else
10688   echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10690
10691 ac_cv_have_decl_ttyname=no
10692 fi
10693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10694 fi
10695 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
10696 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
10697 if test $ac_cv_have_decl_ttyname = yes; then
10698
10699 cat >>confdefs.h <<_ACEOF
10700 #define HAVE_DECL_TTYNAME 1
10701 _ACEOF
10702
10703
10704 else
10705   cat >>confdefs.h <<_ACEOF
10706 #define HAVE_DECL_TTYNAME 0
10707 _ACEOF
10708
10709
10710 fi
10711
10712
10713
10714
10715
10716
10717   am_getline_needs_run_time_check=no
10718   echo "$as_me:$LINENO: checking for getline" >&5
10719 echo $ECHO_N "checking for getline... $ECHO_C" >&6
10720 if test "${ac_cv_func_getline+set}" = set; then
10721   echo $ECHO_N "(cached) $ECHO_C" >&6
10722 else
10723   cat >conftest.$ac_ext <<_ACEOF
10724 /* confdefs.h.  */
10725 _ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h.  */
10729 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
10730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10731 #define getline innocuous_getline
10732
10733 /* System header to define __stub macros and hopefully few prototypes,
10734     which can conflict with char getline (); below.
10735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10736     <limits.h> exists even on freestanding compilers.  */
10737
10738 #ifdef __STDC__
10739 # include <limits.h>
10740 #else
10741 # include <assert.h>
10742 #endif
10743
10744 #undef getline
10745
10746 /* Override any gcc2 internal prototype to avoid an error.  */
10747 #ifdef __cplusplus
10748 extern "C"
10749 {
10750 #endif
10751 /* We use char because int might match the return type of a gcc2
10752    builtin and then its argument prototype would still apply.  */
10753 char getline ();
10754 /* The GNU C library defines this for functions which it implements
10755     to always fail with ENOSYS.  Some functions are actually named
10756     something starting with __ and the normal name is an alias.  */
10757 #if defined (__stub_getline) || defined (__stub___getline)
10758 choke me
10759 #else
10760 char (*f) () = getline;
10761 #endif
10762 #ifdef __cplusplus
10763 }
10764 #endif
10765
10766 int
10767 main ()
10768 {
10769 return f != getline;
10770   ;
10771   return 0;
10772 }
10773 _ACEOF
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10776   (eval $ac_link) 2>conftest.er1
10777   ac_status=$?
10778   grep -v '^ *+' conftest.er1 >conftest.err
10779   rm -f conftest.er1
10780   cat conftest.err >&5
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); } &&
10783          { ac_try='test -z "$ac_c_werror_flag"
10784                          || test ! -s conftest.err'
10785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786   (eval $ac_try) 2>&5
10787   ac_status=$?
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); }; } &&
10790          { ac_try='test -s conftest$ac_exeext'
10791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792   (eval $ac_try) 2>&5
10793   ac_status=$?
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); }; }; then
10796   ac_cv_func_getline=yes
10797 else
10798   echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801 ac_cv_func_getline=no
10802 fi
10803 rm -f conftest.err conftest.$ac_objext \
10804       conftest$ac_exeext conftest.$ac_ext
10805 fi
10806 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
10807 echo "${ECHO_T}$ac_cv_func_getline" >&6
10808 if test $ac_cv_func_getline = yes; then
10809                 am_getline_needs_run_time_check=yes
10810 else
10811   am_cv_func_working_getline=no
10812 fi
10813
10814   if test $am_getline_needs_run_time_check = yes; then
10815     echo "$as_me:$LINENO: checking for working getline function" >&5
10816 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
10817 if test "${am_cv_func_working_getline+set}" = set; then
10818   echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10820   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
10821     if test "$cross_compiling" = yes; then
10822   am_cv_func_working_getline=no
10823 else
10824   cat >conftest.$ac_ext <<_ACEOF
10825 /* confdefs.h.  */
10826 _ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h.  */
10830
10831 #    include <stdio.h>
10832 #    include <stdlib.h>
10833 #    include <string.h>
10834     int main ()
10835     { /* Based on a test program from Karl Heuer.  */
10836       char *line = NULL;
10837       size_t siz = 0;
10838       int len;
10839       FILE *in = fopen ("./conftest.data", "r");
10840       if (!in)
10841         return 1;
10842       len = getline (&line, &siz, in);
10843       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
10844     }
10845
10846 _ACEOF
10847 rm -f conftest$ac_exeext
10848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10849   (eval $ac_link) 2>&5
10850   ac_status=$?
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854   (eval $ac_try) 2>&5
10855   ac_status=$?
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); }; }; then
10858   am_cv_func_working_getline=yes
10859 else
10860   echo "$as_me: program exited with status $ac_status" >&5
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10863
10864 ( exit $ac_status )
10865 am_cv_func_working_getline=no
10866 fi
10867 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10868 fi
10869 fi
10870 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
10871 echo "${ECHO_T}$am_cv_func_working_getline" >&6
10872   fi
10873
10874   if test $am_cv_func_working_getline = no; then
10875
10876 cat >>confdefs.h <<\_ACEOF
10877 #define getline gnu_getline
10878 _ACEOF
10879
10880     case $LIBOBJS in
10881     "getline.$ac_objext"   | \
10882   *" getline.$ac_objext"   | \
10883     "getline.$ac_objext "* | \
10884   *" getline.$ac_objext "* ) ;;
10885   *) LIBOBJS="$LIBOBJS getline.$ac_objext" ;;
10886 esac
10887
10888     case $LIBOBJS in
10889     "getndelim2.$ac_objext"   | \
10890   *" getndelim2.$ac_objext"   | \
10891     "getndelim2.$ac_objext "* | \
10892   *" getndelim2.$ac_objext "* ) ;;
10893   *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
10894 esac
10895
10896
10897
10898 for ac_func in getdelim
10899 do
10900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10901 echo "$as_me:$LINENO: checking for $ac_func" >&5
10902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10903 if eval "test \"\${$as_ac_var+set}\" = set"; then
10904   echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906   cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h.  */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h.  */
10912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10914 #define $ac_func innocuous_$ac_func
10915
10916 /* System header to define __stub macros and hopefully few prototypes,
10917     which can conflict with char $ac_func (); below.
10918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10919     <limits.h> exists even on freestanding compilers.  */
10920
10921 #ifdef __STDC__
10922 # include <limits.h>
10923 #else
10924 # include <assert.h>
10925 #endif
10926
10927 #undef $ac_func
10928
10929 /* Override any gcc2 internal prototype to avoid an error.  */
10930 #ifdef __cplusplus
10931 extern "C"
10932 {
10933 #endif
10934 /* We use char because int might match the return type of a gcc2
10935    builtin and then its argument prototype would still apply.  */
10936 char $ac_func ();
10937 /* The GNU C library defines this for functions which it implements
10938     to always fail with ENOSYS.  Some functions are actually named
10939     something starting with __ and the normal name is an alias.  */
10940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10941 choke me
10942 #else
10943 char (*f) () = $ac_func;
10944 #endif
10945 #ifdef __cplusplus
10946 }
10947 #endif
10948
10949 int
10950 main ()
10951 {
10952 return f != $ac_func;
10953   ;
10954   return 0;
10955 }
10956 _ACEOF
10957 rm -f conftest.$ac_objext conftest$ac_exeext
10958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10959   (eval $ac_link) 2>conftest.er1
10960   ac_status=$?
10961   grep -v '^ *+' conftest.er1 >conftest.err
10962   rm -f conftest.er1
10963   cat conftest.err >&5
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); } &&
10966          { ac_try='test -z "$ac_c_werror_flag"
10967                          || test ! -s conftest.err'
10968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969   (eval $ac_try) 2>&5
10970   ac_status=$?
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); }; } &&
10973          { ac_try='test -s conftest$ac_exeext'
10974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975   (eval $ac_try) 2>&5
10976   ac_status=$?
10977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978   (exit $ac_status); }; }; then
10979   eval "$as_ac_var=yes"
10980 else
10981   echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10983
10984 eval "$as_ac_var=no"
10985 fi
10986 rm -f conftest.err conftest.$ac_objext \
10987       conftest$ac_exeext conftest.$ac_ext
10988 fi
10989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10991 if test `eval echo '${'$as_ac_var'}'` = yes; then
10992   cat >>confdefs.h <<_ACEOF
10993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10994 _ACEOF
10995
10996 fi
10997 done
10998
10999
11000
11001
11002
11003   fi
11004
11005 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11006 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
11007 if test "${ac_cv_header_stdbool_h+set}" = set; then
11008   echo $ECHO_N "(cached) $ECHO_C" >&6
11009 else
11010   cat >conftest.$ac_ext <<_ACEOF
11011 /* confdefs.h.  */
11012 _ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h.  */
11016
11017           #include <stdbool.h>
11018           #ifndef bool
11019            "error: bool is not defined"
11020           #endif
11021           #ifndef false
11022            "error: false is not defined"
11023           #endif
11024           #if false
11025            "error: false is not 0"
11026           #endif
11027           #ifndef true
11028            "error: false is not defined"
11029           #endif
11030           #if true != 1
11031            "error: true is not 1"
11032           #endif
11033           #ifndef __bool_true_false_are_defined
11034            "error: __bool_true_false_are_defined is not defined"
11035           #endif
11036
11037           struct s { _Bool s: 1; _Bool t; } s;
11038
11039           char a[true == 1 ? 1 : -1];
11040           char b[false == 0 ? 1 : -1];
11041           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11042           char d[(bool) -0.5 == true ? 1 : -1];
11043           bool e = &s;
11044           char f[(_Bool) -0.0 == false ? 1 : -1];
11045           char g[true];
11046           char h[sizeof (_Bool)];
11047           char i[sizeof s.t];
11048
11049 int
11050 main ()
11051 {
11052  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
11053   ;
11054   return 0;
11055 }
11056 _ACEOF
11057 rm -f conftest.$ac_objext
11058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11059   (eval $ac_compile) 2>conftest.er1
11060   ac_status=$?
11061   grep -v '^ *+' conftest.er1 >conftest.err
11062   rm -f conftest.er1
11063   cat conftest.err >&5
11064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065   (exit $ac_status); } &&
11066          { ac_try='test -z "$ac_c_werror_flag"
11067                          || test ! -s conftest.err'
11068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11069   (eval $ac_try) 2>&5
11070   ac_status=$?
11071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072   (exit $ac_status); }; } &&
11073          { ac_try='test -s conftest.$ac_objext'
11074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075   (eval $ac_try) 2>&5
11076   ac_status=$?
11077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078   (exit $ac_status); }; }; then
11079   ac_cv_header_stdbool_h=yes
11080 else
11081   echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11083
11084 ac_cv_header_stdbool_h=no
11085 fi
11086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11087 fi
11088 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11089 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
11090    echo "$as_me:$LINENO: checking for _Bool" >&5
11091 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
11092 if test "${ac_cv_type__Bool+set}" = set; then
11093   echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095   cat >conftest.$ac_ext <<_ACEOF
11096 /* confdefs.h.  */
11097 _ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h.  */
11101 $ac_includes_default
11102 int
11103 main ()
11104 {
11105 if ((_Bool *) 0)
11106   return 0;
11107 if (sizeof (_Bool))
11108   return 0;
11109   ;
11110   return 0;
11111 }
11112 _ACEOF
11113 rm -f conftest.$ac_objext
11114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11115   (eval $ac_compile) 2>conftest.er1
11116   ac_status=$?
11117   grep -v '^ *+' conftest.er1 >conftest.err
11118   rm -f conftest.er1
11119   cat conftest.err >&5
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); } &&
11122          { ac_try='test -z "$ac_c_werror_flag"
11123                          || test ! -s conftest.err'
11124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125   (eval $ac_try) 2>&5
11126   ac_status=$?
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); }; } &&
11129          { ac_try='test -s conftest.$ac_objext'
11130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131   (eval $ac_try) 2>&5
11132   ac_status=$?
11133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134   (exit $ac_status); }; }; then
11135   ac_cv_type__Bool=yes
11136 else
11137   echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11139
11140 ac_cv_type__Bool=no
11141 fi
11142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11143 fi
11144 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11145 echo "${ECHO_T}$ac_cv_type__Bool" >&6
11146 if test $ac_cv_type__Bool = yes; then
11147
11148 cat >>confdefs.h <<_ACEOF
11149 #define HAVE__BOOL 1
11150 _ACEOF
11151
11152
11153 fi
11154
11155    if test $ac_cv_header_stdbool_h = yes; then
11156
11157 cat >>confdefs.h <<\_ACEOF
11158 #define HAVE_STDBOOL_H 1
11159 _ACEOF
11160
11161    fi
11162
11163
11164
11165   # Define two additional variables used in the Makefile substitution.
11166
11167   if test "$ac_cv_header_stdbool_h" = yes; then
11168     STDBOOL_H=''
11169   else
11170     STDBOOL_H='stdbool.h'
11171   fi
11172
11173
11174   if test "$ac_cv_type__Bool" = yes; then
11175     HAVE__BOOL=1
11176   else
11177     HAVE__BOOL=0
11178   fi
11179
11180
11181   echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
11182 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
11183 if test "${utils_cv_func_mkdir_trailing_slash_bug+set}" = set; then
11184   echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186
11187       # Arrange for deletion of the temporary directory this test might create.
11188       ac_clean_files="$ac_clean_files confdir-slash"
11189       if test "$cross_compiling" = yes; then
11190   utils_cv_func_mkdir_trailing_slash_bug=yes
11191
11192 else
11193   cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h.  */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h.  */
11199
11200 #       include <sys/types.h>
11201 #       include <sys/stat.h>
11202 #       include <stdlib.h>
11203         int main ()
11204         {
11205           rmdir ("confdir-slash");
11206           exit (mkdir ("confdir-slash/", 0700));
11207         }
11208
11209 _ACEOF
11210 rm -f conftest$ac_exeext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11212   (eval $ac_link) 2>&5
11213   ac_status=$?
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217   (eval $ac_try) 2>&5
11218   ac_status=$?
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); }; }; then
11221   utils_cv_func_mkdir_trailing_slash_bug=no
11222 else
11223   echo "$as_me: program exited with status $ac_status" >&5
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11226
11227 ( exit $ac_status )
11228 utils_cv_func_mkdir_trailing_slash_bug=yes
11229 fi
11230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11231 fi
11232
11233
11234 fi
11235 echo "$as_me:$LINENO: result: $utils_cv_func_mkdir_trailing_slash_bug" >&5
11236 echo "${ECHO_T}$utils_cv_func_mkdir_trailing_slash_bug" >&6
11237
11238   if test $utils_cv_func_mkdir_trailing_slash_bug = yes; then
11239     case $LIBOBJS in
11240     "mkdir.$ac_objext"   | \
11241   *" mkdir.$ac_objext"   | \
11242     "mkdir.$ac_objext "* | \
11243   *" mkdir.$ac_objext "* ) ;;
11244   *) LIBOBJS="$LIBOBJS mkdir.$ac_objext" ;;
11245 esac
11246
11247
11248 cat >>confdefs.h <<\_ACEOF
11249 #define mkdir rpl_mkdir
11250 _ACEOF
11251
11252     :
11253   fi
11254
11255
11256
11257 for ac_header in fcntl.h
11258 do
11259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11261   echo "$as_me:$LINENO: checking for $ac_header" >&5
11262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11264   echo $ECHO_N "(cached) $ECHO_C" >&6
11265 fi
11266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11268 else
11269   # Is the header compilable?
11270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11272 cat >conftest.$ac_ext <<_ACEOF
11273 /* confdefs.h.  */
11274 _ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h.  */
11278 $ac_includes_default
11279 #include <$ac_header>
11280 _ACEOF
11281 rm -f conftest.$ac_objext
11282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11283   (eval $ac_compile) 2>conftest.er1
11284   ac_status=$?
11285   grep -v '^ *+' conftest.er1 >conftest.err
11286   rm -f conftest.er1
11287   cat conftest.err >&5
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } &&
11290          { ac_try='test -z "$ac_c_werror_flag"
11291                          || test ! -s conftest.err'
11292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293   (eval $ac_try) 2>&5
11294   ac_status=$?
11295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296   (exit $ac_status); }; } &&
11297          { ac_try='test -s conftest.$ac_objext'
11298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299   (eval $ac_try) 2>&5
11300   ac_status=$?
11301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302   (exit $ac_status); }; }; then
11303   ac_header_compiler=yes
11304 else
11305   echo "$as_me: failed program was:" >&5
11306 sed 's/^/| /' conftest.$ac_ext >&5
11307
11308 ac_header_compiler=no
11309 fi
11310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11312 echo "${ECHO_T}$ac_header_compiler" >&6
11313
11314 # Is the header present?
11315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11317 cat >conftest.$ac_ext <<_ACEOF
11318 /* confdefs.h.  */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h.  */
11323 #include <$ac_header>
11324 _ACEOF
11325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11326   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11327   ac_status=$?
11328   grep -v '^ *+' conftest.er1 >conftest.err
11329   rm -f conftest.er1
11330   cat conftest.err >&5
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); } >/dev/null; then
11333   if test -s conftest.err; then
11334     ac_cpp_err=$ac_c_preproc_warn_flag
11335     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11336   else
11337     ac_cpp_err=
11338   fi
11339 else
11340   ac_cpp_err=yes
11341 fi
11342 if test -z "$ac_cpp_err"; then
11343   ac_header_preproc=yes
11344 else
11345   echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11347
11348   ac_header_preproc=no
11349 fi
11350 rm -f conftest.err conftest.$ac_ext
11351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11352 echo "${ECHO_T}$ac_header_preproc" >&6
11353
11354 # So?  What about this header?
11355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11356   yes:no: )
11357     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11361     ac_header_preproc=yes
11362     ;;
11363   no:yes:* )
11364     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11366     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11367 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11368     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11370     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11371 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11372     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11374     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11376     (
11377       cat <<\_ASBOX
11378 ## ------------------------------------ ##
11379 ## Report this to bug-coreutils@gnu.org ##
11380 ## ------------------------------------ ##
11381 _ASBOX
11382     ) |
11383       sed "s/^/$as_me: WARNING:     /" >&2
11384     ;;
11385 esac
11386 echo "$as_me:$LINENO: checking for $ac_header" >&5
11387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11389   echo $ECHO_N "(cached) $ECHO_C" >&6
11390 else
11391   eval "$as_ac_Header=\$ac_header_preproc"
11392 fi
11393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11395
11396 fi
11397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11398   cat >>confdefs.h <<_ACEOF
11399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11400 _ACEOF
11401
11402 fi
11403
11404 done
11405
11406
11407
11408
11409 for ac_header in unistd.h
11410 do
11411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11413   echo "$as_me:$LINENO: checking for $ac_header" >&5
11414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11416   echo $ECHO_N "(cached) $ECHO_C" >&6
11417 fi
11418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11420 else
11421   # Is the header compilable?
11422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h.  */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h.  */
11430 $ac_includes_default
11431 #include <$ac_header>
11432 _ACEOF
11433 rm -f conftest.$ac_objext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11435   (eval $ac_compile) 2>conftest.er1
11436   ac_status=$?
11437   grep -v '^ *+' conftest.er1 >conftest.err
11438   rm -f conftest.er1
11439   cat conftest.err >&5
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); } &&
11442          { ac_try='test -z "$ac_c_werror_flag"
11443                          || test ! -s conftest.err'
11444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445   (eval $ac_try) 2>&5
11446   ac_status=$?
11447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448   (exit $ac_status); }; } &&
11449          { ac_try='test -s conftest.$ac_objext'
11450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451   (eval $ac_try) 2>&5
11452   ac_status=$?
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); }; }; then
11455   ac_header_compiler=yes
11456 else
11457   echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11459
11460 ac_header_compiler=no
11461 fi
11462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11464 echo "${ECHO_T}$ac_header_compiler" >&6
11465
11466 # Is the header present?
11467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11469 cat >conftest.$ac_ext <<_ACEOF
11470 /* confdefs.h.  */
11471 _ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h.  */
11475 #include <$ac_header>
11476 _ACEOF
11477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11478   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11479   ac_status=$?
11480   grep -v '^ *+' conftest.er1 >conftest.err
11481   rm -f conftest.er1
11482   cat conftest.err >&5
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); } >/dev/null; then
11485   if test -s conftest.err; then
11486     ac_cpp_err=$ac_c_preproc_warn_flag
11487     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11488   else
11489     ac_cpp_err=
11490   fi
11491 else
11492   ac_cpp_err=yes
11493 fi
11494 if test -z "$ac_cpp_err"; then
11495   ac_header_preproc=yes
11496 else
11497   echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11499
11500   ac_header_preproc=no
11501 fi
11502 rm -f conftest.err conftest.$ac_ext
11503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11504 echo "${ECHO_T}$ac_header_preproc" >&6
11505
11506 # So?  What about this header?
11507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11508   yes:no: )
11509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11513     ac_header_preproc=yes
11514     ;;
11515   no:yes:* )
11516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11518     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11519 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11520     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11522     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11523 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11526     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11528     (
11529       cat <<\_ASBOX
11530 ## ------------------------------------ ##
11531 ## Report this to bug-coreutils@gnu.org ##
11532 ## ------------------------------------ ##
11533 _ASBOX
11534     ) |
11535       sed "s/^/$as_me: WARNING:     /" >&2
11536     ;;
11537 esac
11538 echo "$as_me:$LINENO: checking for $ac_header" >&5
11539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11541   echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543   eval "$as_ac_Header=\$ac_header_preproc"
11544 fi
11545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11547
11548 fi
11549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11550   cat >>confdefs.h <<_ACEOF
11551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11552 _ACEOF
11553
11554 fi
11555
11556 done
11557
11558
11559
11560       echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11561 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
11562 if test "${ac_cv_have_decl_getenv+set}" = set; then
11563   echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565   cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h.  */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h.  */
11571 $ac_includes_default
11572 int
11573 main ()
11574 {
11575 #ifndef getenv
11576   char *p = (char *) getenv;
11577 #endif
11578
11579   ;
11580   return 0;
11581 }
11582 _ACEOF
11583 rm -f conftest.$ac_objext
11584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11585   (eval $ac_compile) 2>conftest.er1
11586   ac_status=$?
11587   grep -v '^ *+' conftest.er1 >conftest.err
11588   rm -f conftest.er1
11589   cat conftest.err >&5
11590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591   (exit $ac_status); } &&
11592          { ac_try='test -z "$ac_c_werror_flag"
11593                          || test ! -s conftest.err'
11594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595   (eval $ac_try) 2>&5
11596   ac_status=$?
11597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598   (exit $ac_status); }; } &&
11599          { ac_try='test -s conftest.$ac_objext'
11600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601   (eval $ac_try) 2>&5
11602   ac_status=$?
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); }; }; then
11605   ac_cv_have_decl_getenv=yes
11606 else
11607   echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11609
11610 ac_cv_have_decl_getenv=no
11611 fi
11612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11613 fi
11614 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11615 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11616 if test $ac_cv_have_decl_getenv = yes; then
11617
11618 cat >>confdefs.h <<_ACEOF
11619 #define HAVE_DECL_GETENV 1
11620 _ACEOF
11621
11622
11623 else
11624   cat >>confdefs.h <<_ACEOF
11625 #define HAVE_DECL_GETENV 0
11626 _ACEOF
11627
11628
11629 fi
11630
11631
11632
11633
11634 for ac_func in mkstemp
11635 do
11636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11637 echo "$as_me:$LINENO: checking for $ac_func" >&5
11638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11639 if eval "test \"\${$as_ac_var+set}\" = set"; then
11640   echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642   cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h.  */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h.  */
11648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11650 #define $ac_func innocuous_$ac_func
11651
11652 /* System header to define __stub macros and hopefully few prototypes,
11653     which can conflict with char $ac_func (); below.
11654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11655     <limits.h> exists even on freestanding compilers.  */
11656
11657 #ifdef __STDC__
11658 # include <limits.h>
11659 #else
11660 # include <assert.h>
11661 #endif
11662
11663 #undef $ac_func
11664
11665 /* Override any gcc2 internal prototype to avoid an error.  */
11666 #ifdef __cplusplus
11667 extern "C"
11668 {
11669 #endif
11670 /* We use char because int might match the return type of a gcc2
11671    builtin and then its argument prototype would still apply.  */
11672 char $ac_func ();
11673 /* The GNU C library defines this for functions which it implements
11674     to always fail with ENOSYS.  Some functions are actually named
11675     something starting with __ and the normal name is an alias.  */
11676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11677 choke me
11678 #else
11679 char (*f) () = $ac_func;
11680 #endif
11681 #ifdef __cplusplus
11682 }
11683 #endif
11684
11685 int
11686 main ()
11687 {
11688 return f != $ac_func;
11689   ;
11690   return 0;
11691 }
11692 _ACEOF
11693 rm -f conftest.$ac_objext conftest$ac_exeext
11694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11695   (eval $ac_link) 2>conftest.er1
11696   ac_status=$?
11697   grep -v '^ *+' conftest.er1 >conftest.err
11698   rm -f conftest.er1
11699   cat conftest.err >&5
11700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); } &&
11702          { ac_try='test -z "$ac_c_werror_flag"
11703                          || test ! -s conftest.err'
11704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705   (eval $ac_try) 2>&5
11706   ac_status=$?
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); }; } &&
11709          { ac_try='test -s conftest$ac_exeext'
11710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711   (eval $ac_try) 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); }; }; then
11715   eval "$as_ac_var=yes"
11716 else
11717   echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11719
11720 eval "$as_ac_var=no"
11721 fi
11722 rm -f conftest.err conftest.$ac_objext \
11723       conftest$ac_exeext conftest.$ac_ext
11724 fi
11725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11727 if test `eval echo '${'$as_ac_var'}'` = yes; then
11728   cat >>confdefs.h <<_ACEOF
11729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11730 _ACEOF
11731
11732 else
11733   case $LIBOBJS in
11734     "$ac_func.$ac_objext"   | \
11735   *" $ac_func.$ac_objext"   | \
11736     "$ac_func.$ac_objext "* | \
11737   *" $ac_func.$ac_objext "* ) ;;
11738   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
11739 esac
11740
11741 fi
11742 done
11743
11744
11745   if test $ac_cv_func_mkstemp = no; then
11746     utils_cv_func_mkstemp_limitations=yes
11747   else
11748     echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
11749 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
11750 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
11751   echo $ECHO_N "(cached) $ECHO_C" >&6
11752 else
11753
11754         if test "$cross_compiling" = yes; then
11755   utils_cv_func_mkstemp_limitations=yes
11756
11757 else
11758   cat >conftest.$ac_ext <<_ACEOF
11759 /* confdefs.h.  */
11760 _ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h.  */
11764
11765 #         include <stdlib.h>
11766           int main ()
11767           {
11768             int i;
11769             for (i = 0; i < 70; i++)
11770               {
11771                 char template[] = "conftestXXXXXX";
11772                 int fd = mkstemp (template);
11773                 if (fd == -1)
11774                   exit (1);
11775                 close (fd);
11776               }
11777             exit (0);
11778           }
11779
11780 _ACEOF
11781 rm -f conftest$ac_exeext
11782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11783   (eval $ac_link) 2>&5
11784   ac_status=$?
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11788   (eval $ac_try) 2>&5
11789   ac_status=$?
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); }; }; then
11792   utils_cv_func_mkstemp_limitations=no
11793 else
11794   echo "$as_me: program exited with status $ac_status" >&5
11795 echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11797
11798 ( exit $ac_status )
11799 utils_cv_func_mkstemp_limitations=yes
11800 fi
11801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11802 fi
11803
11804
11805 fi
11806 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
11807 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
11808   fi
11809
11810   if test $utils_cv_func_mkstemp_limitations = yes; then
11811     case $LIBOBJS in
11812     "mkstemp.$ac_objext"   | \
11813   *" mkstemp.$ac_objext"   | \
11814     "mkstemp.$ac_objext "* | \
11815   *" mkstemp.$ac_objext "* ) ;;
11816   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
11817 esac
11818
11819     case $LIBOBJS in
11820     "tempname.$ac_objext"   | \
11821   *" tempname.$ac_objext"   | \
11822     "tempname.$ac_objext "* | \
11823   *" tempname.$ac_objext "* ) ;;
11824   *) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;;
11825 esac
11826
11827
11828 cat >>confdefs.h <<\_ACEOF
11829 #define mkstemp rpl_mkstemp
11830 _ACEOF
11831
11832
11833
11834
11835
11836
11837   :
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850 for ac_header in stdint.h
11851 do
11852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11854   echo "$as_me:$LINENO: checking for $ac_header" >&5
11855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11857   echo $ECHO_N "(cached) $ECHO_C" >&6
11858 fi
11859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11861 else
11862   # Is the header compilable?
11863 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11865 cat >conftest.$ac_ext <<_ACEOF
11866 /* confdefs.h.  */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h.  */
11871 $ac_includes_default
11872 #include <$ac_header>
11873 _ACEOF
11874 rm -f conftest.$ac_objext
11875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11876   (eval $ac_compile) 2>conftest.er1
11877   ac_status=$?
11878   grep -v '^ *+' conftest.er1 >conftest.err
11879   rm -f conftest.er1
11880   cat conftest.err >&5
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); } &&
11883          { ac_try='test -z "$ac_c_werror_flag"
11884                          || test ! -s conftest.err'
11885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886   (eval $ac_try) 2>&5
11887   ac_status=$?
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); }; } &&
11890          { ac_try='test -s conftest.$ac_objext'
11891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892   (eval $ac_try) 2>&5
11893   ac_status=$?
11894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895   (exit $ac_status); }; }; then
11896   ac_header_compiler=yes
11897 else
11898   echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11900
11901 ac_header_compiler=no
11902 fi
11903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11905 echo "${ECHO_T}$ac_header_compiler" >&6
11906
11907 # Is the header present?
11908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11910 cat >conftest.$ac_ext <<_ACEOF
11911 /* confdefs.h.  */
11912 _ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h.  */
11916 #include <$ac_header>
11917 _ACEOF
11918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11919   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11920   ac_status=$?
11921   grep -v '^ *+' conftest.er1 >conftest.err
11922   rm -f conftest.er1
11923   cat conftest.err >&5
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); } >/dev/null; then
11926   if test -s conftest.err; then
11927     ac_cpp_err=$ac_c_preproc_warn_flag
11928     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11929   else
11930     ac_cpp_err=
11931   fi
11932 else
11933   ac_cpp_err=yes
11934 fi
11935 if test -z "$ac_cpp_err"; then
11936   ac_header_preproc=yes
11937 else
11938   echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11940
11941   ac_header_preproc=no
11942 fi
11943 rm -f conftest.err conftest.$ac_ext
11944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11945 echo "${ECHO_T}$ac_header_preproc" >&6
11946
11947 # So?  What about this header?
11948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11949   yes:no: )
11950     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11954     ac_header_preproc=yes
11955     ;;
11956   no:yes:* )
11957     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11959     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11960 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11961     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11963     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11964 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11967     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11969     (
11970       cat <<\_ASBOX
11971 ## ------------------------------------ ##
11972 ## Report this to bug-coreutils@gnu.org ##
11973 ## ------------------------------------ ##
11974 _ASBOX
11975     ) |
11976       sed "s/^/$as_me: WARNING:     /" >&2
11977     ;;
11978 esac
11979 echo "$as_me:$LINENO: checking for $ac_header" >&5
11980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11982   echo $ECHO_N "(cached) $ECHO_C" >&6
11983 else
11984   eval "$as_ac_Header=\$ac_header_preproc"
11985 fi
11986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11988
11989 fi
11990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11991   cat >>confdefs.h <<_ACEOF
11992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11993 _ACEOF
11994
11995 fi
11996
11997 done
11998
11999
12000
12001 for ac_func in __secure_getenv gettimeofday
12002 do
12003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12004 echo "$as_me:$LINENO: checking for $ac_func" >&5
12005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12006 if eval "test \"\${$as_ac_var+set}\" = set"; then
12007   echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009   cat >conftest.$ac_ext <<_ACEOF
12010 /* confdefs.h.  */
12011 _ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h.  */
12015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12017 #define $ac_func innocuous_$ac_func
12018
12019 /* System header to define __stub macros and hopefully few prototypes,
12020     which can conflict with char $ac_func (); below.
12021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12022     <limits.h> exists even on freestanding compilers.  */
12023
12024 #ifdef __STDC__
12025 # include <limits.h>
12026 #else
12027 # include <assert.h>
12028 #endif
12029
12030 #undef $ac_func
12031
12032 /* Override any gcc2 internal prototype to avoid an error.  */
12033 #ifdef __cplusplus
12034 extern "C"
12035 {
12036 #endif
12037 /* We use char because int might match the return type of a gcc2
12038    builtin and then its argument prototype would still apply.  */
12039 char $ac_func ();
12040 /* The GNU C library defines this for functions which it implements
12041     to always fail with ENOSYS.  Some functions are actually named
12042     something starting with __ and the normal name is an alias.  */
12043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12044 choke me
12045 #else
12046 char (*f) () = $ac_func;
12047 #endif
12048 #ifdef __cplusplus
12049 }
12050 #endif
12051
12052 int
12053 main ()
12054 {
12055 return f != $ac_func;
12056   ;
12057   return 0;
12058 }
12059 _ACEOF
12060 rm -f conftest.$ac_objext conftest$ac_exeext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062   (eval $ac_link) 2>conftest.er1
12063   ac_status=$?
12064   grep -v '^ *+' conftest.er1 >conftest.err
12065   rm -f conftest.er1
12066   cat conftest.err >&5
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); } &&
12069          { ac_try='test -z "$ac_c_werror_flag"
12070                          || test ! -s conftest.err'
12071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072   (eval $ac_try) 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; } &&
12076          { ac_try='test -s conftest$ac_exeext'
12077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078   (eval $ac_try) 2>&5
12079   ac_status=$?
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); }; }; then
12082   eval "$as_ac_var=yes"
12083 else
12084   echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 eval "$as_ac_var=no"
12088 fi
12089 rm -f conftest.err conftest.$ac_objext \
12090       conftest$ac_exeext conftest.$ac_ext
12091 fi
12092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12094 if test `eval echo '${'$as_ac_var'}'` = yes; then
12095   cat >>confdefs.h <<_ACEOF
12096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12097 _ACEOF
12098
12099 fi
12100 done
12101
12102
12103   :
12104
12105
12106
12107
12108
12109
12110
12111   fi
12112
12113 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
12114 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
12115 if test "${ac_cv_func_closedir_void+set}" = set; then
12116   echo $ECHO_N "(cached) $ECHO_C" >&6
12117 else
12118   if test "$cross_compiling" = yes; then
12119   ac_cv_func_closedir_void=yes
12120 else
12121   cat >conftest.$ac_ext <<_ACEOF
12122 /* confdefs.h.  */
12123 _ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h.  */
12127 $ac_includes_default
12128 #include <$ac_header_dirent>
12129 #ifndef __cplusplus
12130 int closedir ();
12131 #endif
12132
12133 int
12134 main ()
12135 {
12136 exit (closedir (opendir (".")) != 0);
12137   ;
12138   return 0;
12139 }
12140 _ACEOF
12141 rm -f conftest$ac_exeext
12142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12143   (eval $ac_link) 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148   (eval $ac_try) 2>&5
12149   ac_status=$?
12150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151   (exit $ac_status); }; }; then
12152   ac_cv_func_closedir_void=no
12153 else
12154   echo "$as_me: program exited with status $ac_status" >&5
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12157
12158 ( exit $ac_status )
12159 ac_cv_func_closedir_void=yes
12160 fi
12161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12162 fi
12163 fi
12164 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
12165 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
12166 if test $ac_cv_func_closedir_void = yes; then
12167
12168 cat >>confdefs.h <<\_ACEOF
12169 #define CLOSEDIR_VOID 1
12170 _ACEOF
12171
12172 fi
12173
12174
12175     echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
12176 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
12177 if test "${ac_cv_win_or_dos+set}" = set; then
12178   echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180
12181         cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h.  */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h.  */
12187
12188 int
12189 main ()
12190 {
12191 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
12192 neither MSDOS nor Windows
12193 #endif
12194   ;
12195   return 0;
12196 }
12197 _ACEOF
12198 rm -f conftest.$ac_objext
12199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12200   (eval $ac_compile) 2>conftest.er1
12201   ac_status=$?
12202   grep -v '^ *+' conftest.er1 >conftest.err
12203   rm -f conftest.er1
12204   cat conftest.err >&5
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); } &&
12207          { ac_try='test -z "$ac_c_werror_flag"
12208                          || test ! -s conftest.err'
12209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210   (eval $ac_try) 2>&5
12211   ac_status=$?
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); }; } &&
12214          { ac_try='test -s conftest.$ac_objext'
12215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216   (eval $ac_try) 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); }; }; then
12220   ac_cv_win_or_dos=yes
12221 else
12222   echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12224
12225 ac_cv_win_or_dos=no
12226 fi
12227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12228
12229 fi
12230 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
12231 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
12232
12233     if test x"$ac_cv_win_or_dos" = xyes; then
12234       ac_fs_accepts_drive_letter_prefix=1
12235       ac_fs_backslash_is_file_name_separator=1
12236     else
12237       ac_fs_accepts_drive_letter_prefix=0
12238       ac_fs_backslash_is_file_name_separator=0
12239     fi
12240
12241
12242
12243
12244
12245 cat >>confdefs.h <<_ACEOF
12246 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
12247 _ACEOF
12248
12249
12250
12251
12252
12253
12254 cat >>confdefs.h <<_ACEOF
12255 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
12256 _ACEOF
12257
12258
12259 echo "$as_me:$LINENO: checking for long file names" >&5
12260 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
12261 if test "${ac_cv_sys_long_file_names+set}" = set; then
12262   echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
12264   ac_cv_sys_long_file_names=yes
12265 # Test for long file names in all the places we know might matter:
12266 #      .                the current directory, where building will happen
12267 #      $prefix/lib      where we will be installing things
12268 #      $exec_prefix/lib likewise
12269 # eval it to expand exec_prefix.
12270 #      $TMPDIR          if set, where it might want to write temporary files
12271 # if $TMPDIR is not set:
12272 #      /tmp             where it might want to write temporary files
12273 #      /var/tmp         likewise
12274 #      /usr/tmp         likewise
12275 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
12276   ac_tmpdirs=$TMPDIR
12277 else
12278   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
12279 fi
12280 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
12281   test -d $ac_dir || continue
12282   test -w $ac_dir || continue # It is less confusing to not echo anything here.
12283   ac_xdir=$ac_dir/cf$$
12284   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
12285   ac_tf1=$ac_xdir/conftest9012345
12286   ac_tf2=$ac_xdir/conftest9012346
12287   (echo 1 >$ac_tf1) 2>/dev/null
12288   (echo 2 >$ac_tf2) 2>/dev/null
12289   ac_val=`cat $ac_tf1 2>/dev/null`
12290   if test ! -f $ac_tf1 || test "$ac_val" != 1; then
12291     ac_cv_sys_long_file_names=no
12292     rm -rf $ac_xdir 2>/dev/null
12293     break
12294   fi
12295   rm -rf $ac_xdir 2>/dev/null
12296 done
12297 fi
12298 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
12299 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
12300 if test $ac_cv_sys_long_file_names = yes; then
12301
12302 cat >>confdefs.h <<\_ACEOF
12303 #define HAVE_LONG_FILE_NAMES 1
12304 _ACEOF
12305
12306 fi
12307
12308
12309
12310
12311      echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
12312 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
12313 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
12314   echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316   cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h.  */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h.  */
12322
12323 #include <sys/types.h>
12324 #ifdef HAVE_DIRENT_H
12325 # include <dirent.h>
12326 #else /* not HAVE_DIRENT_H */
12327 # define dirent direct
12328 # ifdef HAVE_SYS_NDIR_H
12329 #  include <sys/ndir.h>
12330 # endif /* HAVE_SYS_NDIR_H */
12331 # ifdef HAVE_SYS_DIR_H
12332 #  include <sys/dir.h>
12333 # endif /* HAVE_SYS_DIR_H */
12334 # ifdef HAVE_NDIR_H
12335 #  include <ndir.h>
12336 # endif /* HAVE_NDIR_H */
12337 #endif /* HAVE_DIRENT_H */
12338
12339 int
12340 main ()
12341 {
12342 struct dirent dp; dp.d_ino = 0;
12343   ;
12344   return 0;
12345 }
12346 _ACEOF
12347 rm -f conftest.$ac_objext conftest$ac_exeext
12348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12349   (eval $ac_link) 2>conftest.er1
12350   ac_status=$?
12351   grep -v '^ *+' conftest.er1 >conftest.err
12352   rm -f conftest.er1
12353   cat conftest.err >&5
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); } &&
12356          { ac_try='test -z "$ac_c_werror_flag"
12357                          || test ! -s conftest.err'
12358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359   (eval $ac_try) 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }; } &&
12363          { ac_try='test -s conftest$ac_exeext'
12364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365   (eval $ac_try) 2>&5
12366   ac_status=$?
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); }; }; then
12369   jm_cv_struct_dirent_d_ino=yes
12370 else
12371   echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12373
12374 jm_cv_struct_dirent_d_ino=no
12375 fi
12376 rm -f conftest.err conftest.$ac_objext \
12377       conftest$ac_exeext conftest.$ac_ext
12378
12379
12380 fi
12381 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
12382 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
12383    if test $jm_cv_struct_dirent_d_ino = yes; then
12384
12385 cat >>confdefs.h <<\_ACEOF
12386 #define D_INO_IN_DIRENT 1
12387 _ACEOF
12388
12389    fi
12390
12391
12392
12393
12394
12395
12396   :
12397
12398
12399
12400
12401
12402
12403 for ac_func in pathconf
12404 do
12405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12406 echo "$as_me:$LINENO: checking for $ac_func" >&5
12407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12408 if eval "test \"\${$as_ac_var+set}\" = set"; then
12409   echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411   cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h.  */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h.  */
12417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12419 #define $ac_func innocuous_$ac_func
12420
12421 /* System header to define __stub macros and hopefully few prototypes,
12422     which can conflict with char $ac_func (); below.
12423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12424     <limits.h> exists even on freestanding compilers.  */
12425
12426 #ifdef __STDC__
12427 # include <limits.h>
12428 #else
12429 # include <assert.h>
12430 #endif
12431
12432 #undef $ac_func
12433
12434 /* Override any gcc2 internal prototype to avoid an error.  */
12435 #ifdef __cplusplus
12436 extern "C"
12437 {
12438 #endif
12439 /* We use char because int might match the return type of a gcc2
12440    builtin and then its argument prototype would still apply.  */
12441 char $ac_func ();
12442 /* The GNU C library defines this for functions which it implements
12443     to always fail with ENOSYS.  Some functions are actually named
12444     something starting with __ and the normal name is an alias.  */
12445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12446 choke me
12447 #else
12448 char (*f) () = $ac_func;
12449 #endif
12450 #ifdef __cplusplus
12451 }
12452 #endif
12453
12454 int
12455 main ()
12456 {
12457 return f != $ac_func;
12458   ;
12459   return 0;
12460 }
12461 _ACEOF
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464   (eval $ac_link) 2>conftest.er1
12465   ac_status=$?
12466   grep -v '^ *+' conftest.er1 >conftest.err
12467   rm -f conftest.er1
12468   cat conftest.err >&5
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); } &&
12471          { ac_try='test -z "$ac_c_werror_flag"
12472                          || test ! -s conftest.err'
12473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474   (eval $ac_try) 2>&5
12475   ac_status=$?
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); }; } &&
12478          { ac_try='test -s conftest$ac_exeext'
12479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480   (eval $ac_try) 2>&5
12481   ac_status=$?
12482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483   (exit $ac_status); }; }; then
12484   eval "$as_ac_var=yes"
12485 else
12486   echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12488
12489 eval "$as_ac_var=no"
12490 fi
12491 rm -f conftest.err conftest.$ac_objext \
12492       conftest$ac_exeext conftest.$ac_ext
12493 fi
12494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12496 if test `eval echo '${'$as_ac_var'}'` = yes; then
12497   cat >>confdefs.h <<_ACEOF
12498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12499 _ACEOF
12500
12501 fi
12502 done
12503
12504
12505
12506
12507   :
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517 for ac_header in netdb.h sys/socket.h netinet/in.h arpa/inet.h
12518 do
12519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12521   echo "$as_me:$LINENO: checking for $ac_header" >&5
12522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12524   echo $ECHO_N "(cached) $ECHO_C" >&6
12525 fi
12526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12528 else
12529   # Is the header compilable?
12530 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h.  */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h.  */
12538 $ac_includes_default
12539 #include <$ac_header>
12540 _ACEOF
12541 rm -f conftest.$ac_objext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543   (eval $ac_compile) 2>conftest.er1
12544   ac_status=$?
12545   grep -v '^ *+' conftest.er1 >conftest.err
12546   rm -f conftest.er1
12547   cat conftest.err >&5
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); } &&
12550          { ac_try='test -z "$ac_c_werror_flag"
12551                          || test ! -s conftest.err'
12552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553   (eval $ac_try) 2>&5
12554   ac_status=$?
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); }; } &&
12557          { ac_try='test -s conftest.$ac_objext'
12558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559   (eval $ac_try) 2>&5
12560   ac_status=$?
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); }; }; then
12563   ac_header_compiler=yes
12564 else
12565   echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568 ac_header_compiler=no
12569 fi
12570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12572 echo "${ECHO_T}$ac_header_compiler" >&6
12573
12574 # Is the header present?
12575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12577 cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h.  */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h.  */
12583 #include <$ac_header>
12584 _ACEOF
12585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12586   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12587   ac_status=$?
12588   grep -v '^ *+' conftest.er1 >conftest.err
12589   rm -f conftest.er1
12590   cat conftest.err >&5
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); } >/dev/null; then
12593   if test -s conftest.err; then
12594     ac_cpp_err=$ac_c_preproc_warn_flag
12595     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12596   else
12597     ac_cpp_err=
12598   fi
12599 else
12600   ac_cpp_err=yes
12601 fi
12602 if test -z "$ac_cpp_err"; then
12603   ac_header_preproc=yes
12604 else
12605   echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608   ac_header_preproc=no
12609 fi
12610 rm -f conftest.err conftest.$ac_ext
12611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12612 echo "${ECHO_T}$ac_header_preproc" >&6
12613
12614 # So?  What about this header?
12615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12616   yes:no: )
12617     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12619     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12621     ac_header_preproc=yes
12622     ;;
12623   no:yes:* )
12624     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12626     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12627 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12628     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12630     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12631 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12634     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12636     (
12637       cat <<\_ASBOX
12638 ## ------------------------------------ ##
12639 ## Report this to bug-coreutils@gnu.org ##
12640 ## ------------------------------------ ##
12641 _ASBOX
12642     ) |
12643       sed "s/^/$as_me: WARNING:     /" >&2
12644     ;;
12645 esac
12646 echo "$as_me:$LINENO: checking for $ac_header" >&5
12647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12649   echo $ECHO_N "(cached) $ECHO_C" >&6
12650 else
12651   eval "$as_ac_Header=\$ac_header_preproc"
12652 fi
12653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12655
12656 fi
12657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12658   cat >>confdefs.h <<_ACEOF
12659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12660 _ACEOF
12661
12662 fi
12663
12664 done
12665
12666
12667         echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
12668 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
12669 if test "${ac_cv_search_gethostbyname+set}" = set; then
12670   echo $ECHO_N "(cached) $ECHO_C" >&6
12671 else
12672   ac_func_search_save_LIBS=$LIBS
12673 ac_cv_search_gethostbyname=no
12674 cat >conftest.$ac_ext <<_ACEOF
12675 /* confdefs.h.  */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h.  */
12680
12681 /* Override any gcc2 internal prototype to avoid an error.  */
12682 #ifdef __cplusplus
12683 extern "C"
12684 #endif
12685 /* We use char because int might match the return type of a gcc2
12686    builtin and then its argument prototype would still apply.  */
12687 char gethostbyname ();
12688 int
12689 main ()
12690 {
12691 gethostbyname ();
12692   ;
12693   return 0;
12694 }
12695 _ACEOF
12696 rm -f conftest.$ac_objext conftest$ac_exeext
12697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12698   (eval $ac_link) 2>conftest.er1
12699   ac_status=$?
12700   grep -v '^ *+' conftest.er1 >conftest.err
12701   rm -f conftest.er1
12702   cat conftest.err >&5
12703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704   (exit $ac_status); } &&
12705          { ac_try='test -z "$ac_c_werror_flag"
12706                          || test ! -s conftest.err'
12707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708   (eval $ac_try) 2>&5
12709   ac_status=$?
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); }; } &&
12712          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12718   ac_cv_search_gethostbyname="none required"
12719 else
12720   echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723 fi
12724 rm -f conftest.err conftest.$ac_objext \
12725       conftest$ac_exeext conftest.$ac_ext
12726 if test "$ac_cv_search_gethostbyname" = no; then
12727   for ac_lib in inet nsl; do
12728     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12729     cat >conftest.$ac_ext <<_ACEOF
12730 /* confdefs.h.  */
12731 _ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h.  */
12735
12736 /* Override any gcc2 internal prototype to avoid an error.  */
12737 #ifdef __cplusplus
12738 extern "C"
12739 #endif
12740 /* We use char because int might match the return type of a gcc2
12741    builtin and then its argument prototype would still apply.  */
12742 char gethostbyname ();
12743 int
12744 main ()
12745 {
12746 gethostbyname ();
12747   ;
12748   return 0;
12749 }
12750 _ACEOF
12751 rm -f conftest.$ac_objext conftest$ac_exeext
12752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12753   (eval $ac_link) 2>conftest.er1
12754   ac_status=$?
12755   grep -v '^ *+' conftest.er1 >conftest.err
12756   rm -f conftest.er1
12757   cat conftest.err >&5
12758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); } &&
12760          { ac_try='test -z "$ac_c_werror_flag"
12761                          || test ! -s conftest.err'
12762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763   (eval $ac_try) 2>&5
12764   ac_status=$?
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); }; } &&
12767          { ac_try='test -s conftest$ac_exeext'
12768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769   (eval $ac_try) 2>&5
12770   ac_status=$?
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); }; }; then
12773   ac_cv_search_gethostbyname="-l$ac_lib"
12774 break
12775 else
12776   echo "$as_me: failed program was:" >&5
12777 sed 's/^/| /' conftest.$ac_ext >&5
12778
12779 fi
12780 rm -f conftest.err conftest.$ac_objext \
12781       conftest$ac_exeext conftest.$ac_ext
12782   done
12783 fi
12784 LIBS=$ac_func_search_save_LIBS
12785 fi
12786 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
12787 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
12788 if test "$ac_cv_search_gethostbyname" != no; then
12789   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
12790
12791 fi
12792
12793
12794
12795
12796
12797 for ac_func in gethostbyname gethostbyaddr inet_ntoa
12798 do
12799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12800 echo "$as_me:$LINENO: checking for $ac_func" >&5
12801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12802 if eval "test \"\${$as_ac_var+set}\" = set"; then
12803   echo $ECHO_N "(cached) $ECHO_C" >&6
12804 else
12805   cat >conftest.$ac_ext <<_ACEOF
12806 /* confdefs.h.  */
12807 _ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h.  */
12811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12813 #define $ac_func innocuous_$ac_func
12814
12815 /* System header to define __stub macros and hopefully few prototypes,
12816     which can conflict with char $ac_func (); below.
12817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12818     <limits.h> exists even on freestanding compilers.  */
12819
12820 #ifdef __STDC__
12821 # include <limits.h>
12822 #else
12823 # include <assert.h>
12824 #endif
12825
12826 #undef $ac_func
12827
12828 /* Override any gcc2 internal prototype to avoid an error.  */
12829 #ifdef __cplusplus
12830 extern "C"
12831 {
12832 #endif
12833 /* We use char because int might match the return type of a gcc2
12834    builtin and then its argument prototype would still apply.  */
12835 char $ac_func ();
12836 /* The GNU C library defines this for functions which it implements
12837     to always fail with ENOSYS.  Some functions are actually named
12838     something starting with __ and the normal name is an alias.  */
12839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12840 choke me
12841 #else
12842 char (*f) () = $ac_func;
12843 #endif
12844 #ifdef __cplusplus
12845 }
12846 #endif
12847
12848 int
12849 main ()
12850 {
12851 return f != $ac_func;
12852   ;
12853   return 0;
12854 }
12855 _ACEOF
12856 rm -f conftest.$ac_objext conftest$ac_exeext
12857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12858   (eval $ac_link) 2>conftest.er1
12859   ac_status=$?
12860   grep -v '^ *+' conftest.er1 >conftest.err
12861   rm -f conftest.er1
12862   cat conftest.err >&5
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); } &&
12865          { ac_try='test -z "$ac_c_werror_flag"
12866                          || test ! -s conftest.err'
12867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868   (eval $ac_try) 2>&5
12869   ac_status=$?
12870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871   (exit $ac_status); }; } &&
12872          { ac_try='test -s conftest$ac_exeext'
12873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874   (eval $ac_try) 2>&5
12875   ac_status=$?
12876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877   (exit $ac_status); }; }; then
12878   eval "$as_ac_var=yes"
12879 else
12880   echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12882
12883 eval "$as_ac_var=no"
12884 fi
12885 rm -f conftest.err conftest.$ac_objext \
12886       conftest$ac_exeext conftest.$ac_ext
12887 fi
12888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12890 if test `eval echo '${'$as_ac_var'}'` = yes; then
12891   cat >>confdefs.h <<_ACEOF
12892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12893 _ACEOF
12894
12895 fi
12896 done
12897
12898
12899
12900     :
12901
12902
12903
12904
12905
12906 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
12907 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
12908 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
12909   echo $ECHO_N "(cached) $ECHO_C" >&6
12910 else
12911   cat >conftest.$ac_ext <<_ACEOF
12912 /* confdefs.h.  */
12913 _ACEOF
12914 cat confdefs.h >>conftest.$ac_ext
12915 cat >>conftest.$ac_ext <<_ACEOF
12916 /* end confdefs.h.  */
12917 $ac_includes_default
12918 int
12919 main ()
12920 {
12921 #ifndef strerror_r
12922   char *p = (char *) strerror_r;
12923 #endif
12924
12925   ;
12926   return 0;
12927 }
12928 _ACEOF
12929 rm -f conftest.$ac_objext
12930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12931   (eval $ac_compile) 2>conftest.er1
12932   ac_status=$?
12933   grep -v '^ *+' conftest.er1 >conftest.err
12934   rm -f conftest.er1
12935   cat conftest.err >&5
12936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); } &&
12938          { ac_try='test -z "$ac_c_werror_flag"
12939                          || test ! -s conftest.err'
12940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941   (eval $ac_try) 2>&5
12942   ac_status=$?
12943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944   (exit $ac_status); }; } &&
12945          { ac_try='test -s conftest.$ac_objext'
12946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947   (eval $ac_try) 2>&5
12948   ac_status=$?
12949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950   (exit $ac_status); }; }; then
12951   ac_cv_have_decl_strerror_r=yes
12952 else
12953   echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12955
12956 ac_cv_have_decl_strerror_r=no
12957 fi
12958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12959 fi
12960 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
12961 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
12962 if test $ac_cv_have_decl_strerror_r = yes; then
12963
12964 cat >>confdefs.h <<_ACEOF
12965 #define HAVE_DECL_STRERROR_R 1
12966 _ACEOF
12967
12968
12969 else
12970   cat >>confdefs.h <<_ACEOF
12971 #define HAVE_DECL_STRERROR_R 0
12972 _ACEOF
12973
12974
12975 fi
12976
12977
12978
12979 for ac_func in strerror_r
12980 do
12981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12982 echo "$as_me:$LINENO: checking for $ac_func" >&5
12983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12984 if eval "test \"\${$as_ac_var+set}\" = set"; then
12985   echo $ECHO_N "(cached) $ECHO_C" >&6
12986 else
12987   cat >conftest.$ac_ext <<_ACEOF
12988 /* confdefs.h.  */
12989 _ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h.  */
12993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12995 #define $ac_func innocuous_$ac_func
12996
12997 /* System header to define __stub macros and hopefully few prototypes,
12998     which can conflict with char $ac_func (); below.
12999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13000     <limits.h> exists even on freestanding compilers.  */
13001
13002 #ifdef __STDC__
13003 # include <limits.h>
13004 #else
13005 # include <assert.h>
13006 #endif
13007
13008 #undef $ac_func
13009
13010 /* Override any gcc2 internal prototype to avoid an error.  */
13011 #ifdef __cplusplus
13012 extern "C"
13013 {
13014 #endif
13015 /* We use char because int might match the return type of a gcc2
13016    builtin and then its argument prototype would still apply.  */
13017 char $ac_func ();
13018 /* The GNU C library defines this for functions which it implements
13019     to always fail with ENOSYS.  Some functions are actually named
13020     something starting with __ and the normal name is an alias.  */
13021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13022 choke me
13023 #else
13024 char (*f) () = $ac_func;
13025 #endif
13026 #ifdef __cplusplus
13027 }
13028 #endif
13029
13030 int
13031 main ()
13032 {
13033 return f != $ac_func;
13034   ;
13035   return 0;
13036 }
13037 _ACEOF
13038 rm -f conftest.$ac_objext conftest$ac_exeext
13039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13040   (eval $ac_link) 2>conftest.er1
13041   ac_status=$?
13042   grep -v '^ *+' conftest.er1 >conftest.err
13043   rm -f conftest.er1
13044   cat conftest.err >&5
13045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046   (exit $ac_status); } &&
13047          { ac_try='test -z "$ac_c_werror_flag"
13048                          || test ! -s conftest.err'
13049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050   (eval $ac_try) 2>&5
13051   ac_status=$?
13052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053   (exit $ac_status); }; } &&
13054          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13060   eval "$as_ac_var=yes"
13061 else
13062   echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13064
13065 eval "$as_ac_var=no"
13066 fi
13067 rm -f conftest.err conftest.$ac_objext \
13068       conftest$ac_exeext conftest.$ac_ext
13069 fi
13070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13072 if test `eval echo '${'$as_ac_var'}'` = yes; then
13073   cat >>confdefs.h <<_ACEOF
13074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13075 _ACEOF
13076
13077 fi
13078 done
13079
13080 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
13081 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
13082 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
13083   echo $ECHO_N "(cached) $ECHO_C" >&6
13084 else
13085
13086     ac_cv_func_strerror_r_char_p=no
13087     if test $ac_cv_have_decl_strerror_r = yes; then
13088       cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h.  */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h.  */
13094 $ac_includes_default
13095 int
13096 main ()
13097 {
13098
13099           char buf[100];
13100           char x = *strerror_r (0, buf, sizeof buf);
13101           char *p = strerror_r (0, buf, sizeof buf);
13102
13103   ;
13104   return 0;
13105 }
13106 _ACEOF
13107 rm -f conftest.$ac_objext
13108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13109   (eval $ac_compile) 2>conftest.er1
13110   ac_status=$?
13111   grep -v '^ *+' conftest.er1 >conftest.err
13112   rm -f conftest.er1
13113   cat conftest.err >&5
13114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115   (exit $ac_status); } &&
13116          { ac_try='test -z "$ac_c_werror_flag"
13117                          || test ! -s conftest.err'
13118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119   (eval $ac_try) 2>&5
13120   ac_status=$?
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); }; } &&
13123          { ac_try='test -s conftest.$ac_objext'
13124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125   (eval $ac_try) 2>&5
13126   ac_status=$?
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); }; }; then
13129   ac_cv_func_strerror_r_char_p=yes
13130 else
13131   echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13133
13134 fi
13135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13136     else
13137       # strerror_r is not declared.  Choose between
13138       # systems that have relatively inaccessible declarations for the
13139       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
13140       # former has a strerror_r that returns char*, while the latter
13141       # has a strerror_r that returns `int'.
13142       # This test should segfault on the DEC system.
13143       if test "$cross_compiling" = yes; then
13144   :
13145 else
13146   cat >conftest.$ac_ext <<_ACEOF
13147 /* confdefs.h.  */
13148 _ACEOF
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h.  */
13152 $ac_includes_default
13153         extern char *strerror_r ();
13154 int
13155 main ()
13156 {
13157 char buf[100];
13158           char x = *strerror_r (0, buf, sizeof buf);
13159           exit (!isalpha (x));
13160   ;
13161   return 0;
13162 }
13163 _ACEOF
13164 rm -f conftest$ac_exeext
13165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13166   (eval $ac_link) 2>&5
13167   ac_status=$?
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171   (eval $ac_try) 2>&5
13172   ac_status=$?
13173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); }; }; then
13175   ac_cv_func_strerror_r_char_p=yes
13176 else
13177   echo "$as_me: program exited with status $ac_status" >&5
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181 fi
13182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13183 fi
13184     fi
13185
13186 fi
13187 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
13188 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
13189 if test $ac_cv_func_strerror_r_char_p = yes; then
13190
13191 cat >>confdefs.h <<\_ACEOF
13192 #define STRERROR_R_CHAR_P 1
13193 _ACEOF
13194
13195 fi
13196
13197
13198   echo "$as_me:$LINENO: checking for error_at_line" >&5
13199 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
13200 if test "${ac_cv_lib_error_at_line+set}" = set; then
13201   echo $ECHO_N "(cached) $ECHO_C" >&6
13202 else
13203   cat >conftest.$ac_ext <<_ACEOF
13204 /* confdefs.h.  */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h.  */
13209 $ac_includes_default
13210 int
13211 main ()
13212 {
13213 error_at_line (0, 0, "", 0, "");
13214   ;
13215   return 0;
13216 }
13217 _ACEOF
13218 rm -f conftest.$ac_objext conftest$ac_exeext
13219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13220   (eval $ac_link) 2>conftest.er1
13221   ac_status=$?
13222   grep -v '^ *+' conftest.er1 >conftest.err
13223   rm -f conftest.er1
13224   cat conftest.err >&5
13225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226   (exit $ac_status); } &&
13227          { ac_try='test -z "$ac_c_werror_flag"
13228                          || test ! -s conftest.err'
13229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230   (eval $ac_try) 2>&5
13231   ac_status=$?
13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); }; } &&
13234          { ac_try='test -s conftest$ac_exeext'
13235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236   (eval $ac_try) 2>&5
13237   ac_status=$?
13238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); }; }; then
13240   ac_cv_lib_error_at_line=yes
13241 else
13242   echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13244
13245 ac_cv_lib_error_at_line=no
13246 fi
13247 rm -f conftest.err conftest.$ac_objext \
13248       conftest$ac_exeext conftest.$ac_ext
13249 fi
13250 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
13251 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
13252 if test $ac_cv_lib_error_at_line = no; then
13253   case $LIBOBJS in
13254     "error.$ac_objext"   | \
13255   *" error.$ac_objext"   | \
13256     "error.$ac_objext "* | \
13257   *" error.$ac_objext "* ) ;;
13258   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
13259 esac
13260
13261 fi
13262
13263
13264
13265   :
13266
13267
13268
13269
13270 for ac_func in isascii
13271 do
13272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13273 echo "$as_me:$LINENO: checking for $ac_func" >&5
13274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13275 if eval "test \"\${$as_ac_var+set}\" = set"; then
13276   echo $ECHO_N "(cached) $ECHO_C" >&6
13277 else
13278   cat >conftest.$ac_ext <<_ACEOF
13279 /* confdefs.h.  */
13280 _ACEOF
13281 cat confdefs.h >>conftest.$ac_ext
13282 cat >>conftest.$ac_ext <<_ACEOF
13283 /* end confdefs.h.  */
13284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13286 #define $ac_func innocuous_$ac_func
13287
13288 /* System header to define __stub macros and hopefully few prototypes,
13289     which can conflict with char $ac_func (); below.
13290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13291     <limits.h> exists even on freestanding compilers.  */
13292
13293 #ifdef __STDC__
13294 # include <limits.h>
13295 #else
13296 # include <assert.h>
13297 #endif
13298
13299 #undef $ac_func
13300
13301 /* Override any gcc2 internal prototype to avoid an error.  */
13302 #ifdef __cplusplus
13303 extern "C"
13304 {
13305 #endif
13306 /* We use char because int might match the return type of a gcc2
13307    builtin and then its argument prototype would still apply.  */
13308 char $ac_func ();
13309 /* The GNU C library defines this for functions which it implements
13310     to always fail with ENOSYS.  Some functions are actually named
13311     something starting with __ and the normal name is an alias.  */
13312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13313 choke me
13314 #else
13315 char (*f) () = $ac_func;
13316 #endif
13317 #ifdef __cplusplus
13318 }
13319 #endif
13320
13321 int
13322 main ()
13323 {
13324 return f != $ac_func;
13325   ;
13326   return 0;
13327 }
13328 _ACEOF
13329 rm -f conftest.$ac_objext conftest$ac_exeext
13330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13331   (eval $ac_link) 2>conftest.er1
13332   ac_status=$?
13333   grep -v '^ *+' conftest.er1 >conftest.err
13334   rm -f conftest.er1
13335   cat conftest.err >&5
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); } &&
13338          { ac_try='test -z "$ac_c_werror_flag"
13339                          || test ! -s conftest.err'
13340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341   (eval $ac_try) 2>&5
13342   ac_status=$?
13343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344   (exit $ac_status); }; } &&
13345          { ac_try='test -s conftest$ac_exeext'
13346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347   (eval $ac_try) 2>&5
13348   ac_status=$?
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); }; }; then
13351   eval "$as_ac_var=yes"
13352 else
13353   echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13355
13356 eval "$as_ac_var=no"
13357 fi
13358 rm -f conftest.err conftest.$ac_objext \
13359       conftest$ac_exeext conftest.$ac_ext
13360 fi
13361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13363 if test `eval echo '${'$as_ac_var'}'` = yes; then
13364   cat >>confdefs.h <<_ACEOF
13365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13366 _ACEOF
13367
13368 fi
13369 done
13370
13371
13372
13373
13374
13375
13376   :
13377
13378
13379
13380
13381
13382
13383
13384     :
13385
13386
13387
13388 for ac_header in sys/param.h
13389 do
13390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13392   echo "$as_me:$LINENO: checking for $ac_header" >&5
13393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13395   echo $ECHO_N "(cached) $ECHO_C" >&6
13396 fi
13397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13399 else
13400   # Is the header compilable?
13401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13403 cat >conftest.$ac_ext <<_ACEOF
13404 /* confdefs.h.  */
13405 _ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h.  */
13409 $ac_includes_default
13410 #include <$ac_header>
13411 _ACEOF
13412 rm -f conftest.$ac_objext
13413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13414   (eval $ac_compile) 2>conftest.er1
13415   ac_status=$?
13416   grep -v '^ *+' conftest.er1 >conftest.err
13417   rm -f conftest.er1
13418   cat conftest.err >&5
13419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   (exit $ac_status); } &&
13421          { ac_try='test -z "$ac_c_werror_flag"
13422                          || test ! -s conftest.err'
13423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424   (eval $ac_try) 2>&5
13425   ac_status=$?
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); }; } &&
13428          { ac_try='test -s conftest.$ac_objext'
13429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430   (eval $ac_try) 2>&5
13431   ac_status=$?
13432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); }; }; then
13434   ac_header_compiler=yes
13435 else
13436   echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13438
13439 ac_header_compiler=no
13440 fi
13441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13443 echo "${ECHO_T}$ac_header_compiler" >&6
13444
13445 # Is the header present?
13446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13448 cat >conftest.$ac_ext <<_ACEOF
13449 /* confdefs.h.  */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h.  */
13454 #include <$ac_header>
13455 _ACEOF
13456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13457   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13458   ac_status=$?
13459   grep -v '^ *+' conftest.er1 >conftest.err
13460   rm -f conftest.er1
13461   cat conftest.err >&5
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); } >/dev/null; then
13464   if test -s conftest.err; then
13465     ac_cpp_err=$ac_c_preproc_warn_flag
13466     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13467   else
13468     ac_cpp_err=
13469   fi
13470 else
13471   ac_cpp_err=yes
13472 fi
13473 if test -z "$ac_cpp_err"; then
13474   ac_header_preproc=yes
13475 else
13476   echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13478
13479   ac_header_preproc=no
13480 fi
13481 rm -f conftest.err conftest.$ac_ext
13482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13483 echo "${ECHO_T}$ac_header_preproc" >&6
13484
13485 # So?  What about this header?
13486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13487   yes:no: )
13488     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13492     ac_header_preproc=yes
13493     ;;
13494   no:yes:* )
13495     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13497     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13498 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13499     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13501     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13502 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13505     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13507     (
13508       cat <<\_ASBOX
13509 ## ------------------------------------ ##
13510 ## Report this to bug-coreutils@gnu.org ##
13511 ## ------------------------------------ ##
13512 _ASBOX
13513     ) |
13514       sed "s/^/$as_me: WARNING:     /" >&2
13515     ;;
13516 esac
13517 echo "$as_me:$LINENO: checking for $ac_header" >&5
13518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13520   echo $ECHO_N "(cached) $ECHO_C" >&6
13521 else
13522   eval "$as_ac_Header=\$ac_header_preproc"
13523 fi
13524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13526
13527 fi
13528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13529   cat >>confdefs.h <<_ACEOF
13530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13531 _ACEOF
13532
13533 fi
13534
13535 done
13536
13537
13538
13539   echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13540 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13541 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13542   echo $ECHO_N "(cached) $ECHO_C" >&6
13543 else
13544   cat >conftest.$ac_ext <<_ACEOF
13545 /* confdefs.h.  */
13546 _ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h.  */
13550 $ac_includes_default
13551 int
13552 main ()
13553 {
13554 static struct stat ac_aggr;
13555 if (ac_aggr.st_blocks)
13556 return 0;
13557   ;
13558   return 0;
13559 }
13560 _ACEOF
13561 rm -f conftest.$ac_objext
13562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13563   (eval $ac_compile) 2>conftest.er1
13564   ac_status=$?
13565   grep -v '^ *+' conftest.er1 >conftest.err
13566   rm -f conftest.er1
13567   cat conftest.err >&5
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); } &&
13570          { ac_try='test -z "$ac_c_werror_flag"
13571                          || test ! -s conftest.err'
13572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573   (eval $ac_try) 2>&5
13574   ac_status=$?
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); }; } &&
13577          { ac_try='test -s conftest.$ac_objext'
13578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579   (eval $ac_try) 2>&5
13580   ac_status=$?
13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); }; }; then
13583   ac_cv_member_struct_stat_st_blocks=yes
13584 else
13585   echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13587
13588 cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h.  */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h.  */
13594 $ac_includes_default
13595 int
13596 main ()
13597 {
13598 static struct stat ac_aggr;
13599 if (sizeof ac_aggr.st_blocks)
13600 return 0;
13601   ;
13602   return 0;
13603 }
13604 _ACEOF
13605 rm -f conftest.$ac_objext
13606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13607   (eval $ac_compile) 2>conftest.er1
13608   ac_status=$?
13609   grep -v '^ *+' conftest.er1 >conftest.err
13610   rm -f conftest.er1
13611   cat conftest.err >&5
13612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613   (exit $ac_status); } &&
13614          { ac_try='test -z "$ac_c_werror_flag"
13615                          || test ! -s conftest.err'
13616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617   (eval $ac_try) 2>&5
13618   ac_status=$?
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); }; } &&
13621          { ac_try='test -s conftest.$ac_objext'
13622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623   (eval $ac_try) 2>&5
13624   ac_status=$?
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); }; }; then
13627   ac_cv_member_struct_stat_st_blocks=yes
13628 else
13629   echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13631
13632 ac_cv_member_struct_stat_st_blocks=no
13633 fi
13634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13635 fi
13636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13637 fi
13638 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13639 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13640 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13641
13642 cat >>confdefs.h <<_ACEOF
13643 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13644 _ACEOF
13645
13646
13647 cat >>confdefs.h <<\_ACEOF
13648 #define HAVE_ST_BLOCKS 1
13649 _ACEOF
13650
13651 else
13652   case $LIBOBJS in
13653     "fileblocks.$ac_objext"   | \
13654   *" fileblocks.$ac_objext"   | \
13655     "fileblocks.$ac_objext "* | \
13656   *" fileblocks.$ac_objext "* ) ;;
13657   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
13658 esac
13659
13660 fi
13661
13662
13663     if test $ac_cv_member_struct_stat_st_blocks = no; then
13664
13665
13666   :
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676   fi
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686   :
13687
13688
13689
13690
13691
13692
13693
13694
13695 for ac_header in sys/mount.h sys/vfs.h sys/fs_types.h
13696 do
13697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13699   echo "$as_me:$LINENO: checking for $ac_header" >&5
13700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13702   echo $ECHO_N "(cached) $ECHO_C" >&6
13703 fi
13704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13706 else
13707   # Is the header compilable?
13708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13710 cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h.  */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h.  */
13716 $ac_includes_default
13717 #include <$ac_header>
13718 _ACEOF
13719 rm -f conftest.$ac_objext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13721   (eval $ac_compile) 2>conftest.er1
13722   ac_status=$?
13723   grep -v '^ *+' conftest.er1 >conftest.err
13724   rm -f conftest.er1
13725   cat conftest.err >&5
13726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727   (exit $ac_status); } &&
13728          { ac_try='test -z "$ac_c_werror_flag"
13729                          || test ! -s conftest.err'
13730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731   (eval $ac_try) 2>&5
13732   ac_status=$?
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); }; } &&
13735          { ac_try='test -s conftest.$ac_objext'
13736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737   (eval $ac_try) 2>&5
13738   ac_status=$?
13739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740   (exit $ac_status); }; }; then
13741   ac_header_compiler=yes
13742 else
13743   echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.$ac_ext >&5
13745
13746 ac_header_compiler=no
13747 fi
13748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13750 echo "${ECHO_T}$ac_header_compiler" >&6
13751
13752 # Is the header present?
13753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13755 cat >conftest.$ac_ext <<_ACEOF
13756 /* confdefs.h.  */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h.  */
13761 #include <$ac_header>
13762 _ACEOF
13763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13764   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13765   ac_status=$?
13766   grep -v '^ *+' conftest.er1 >conftest.err
13767   rm -f conftest.er1
13768   cat conftest.err >&5
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); } >/dev/null; then
13771   if test -s conftest.err; then
13772     ac_cpp_err=$ac_c_preproc_warn_flag
13773     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13774   else
13775     ac_cpp_err=
13776   fi
13777 else
13778   ac_cpp_err=yes
13779 fi
13780 if test -z "$ac_cpp_err"; then
13781   ac_header_preproc=yes
13782 else
13783   echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13785
13786   ac_header_preproc=no
13787 fi
13788 rm -f conftest.err conftest.$ac_ext
13789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13790 echo "${ECHO_T}$ac_header_preproc" >&6
13791
13792 # So?  What about this header?
13793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13794   yes:no: )
13795     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13799     ac_header_preproc=yes
13800     ;;
13801   no:yes:* )
13802     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13804     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13805 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13806     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13808     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13809 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13812     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13814     (
13815       cat <<\_ASBOX
13816 ## ------------------------------------ ##
13817 ## Report this to bug-coreutils@gnu.org ##
13818 ## ------------------------------------ ##
13819 _ASBOX
13820     ) |
13821       sed "s/^/$as_me: WARNING:     /" >&2
13822     ;;
13823 esac
13824 echo "$as_me:$LINENO: checking for $ac_header" >&5
13825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13827   echo $ECHO_N "(cached) $ECHO_C" >&6
13828 else
13829   eval "$as_ac_Header=\$ac_header_preproc"
13830 fi
13831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13833
13834 fi
13835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13836   cat >>confdefs.h <<_ACEOF
13837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13838 _ACEOF
13839
13840 fi
13841
13842 done
13843
13844
13845
13846 echo "checking how to get filesystem space usage..."
13847 ac_fsusage_space=no
13848
13849 # Perform only the link test since it seems there are no variants of the
13850 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
13851 # because that got a false positive on SCO OSR5.  Adding the declaration
13852 # of a `struct statvfs' causes this test to fail (as it should) on such
13853 # systems.  That system is reported to work fine with STAT_STATFS4 which
13854 # is what it gets when this test fails.
13855 if test $ac_fsusage_space = no; then
13856   # SVR4
13857   echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
13858 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
13859 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
13860   echo $ECHO_N "(cached) $ECHO_C" >&6
13861 else
13862   cat >conftest.$ac_ext <<_ACEOF
13863 /* confdefs.h.  */
13864 _ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h.  */
13868 #include <sys/types.h>
13869 #ifdef __GLIBC__
13870 Do not use statvfs on systems with GNU libc, because that function stats
13871 all preceding entries in /proc/mounts, and that makes df hang if even
13872 one of the corresponding file systems is hard-mounted, but not available.
13873 #endif
13874 #include <sys/statvfs.h>
13875 int
13876 main ()
13877 {
13878 struct statvfs fsd; statvfs (0, &fsd);
13879   ;
13880   return 0;
13881 }
13882 _ACEOF
13883 rm -f conftest.$ac_objext conftest$ac_exeext
13884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13885   (eval $ac_link) 2>conftest.er1
13886   ac_status=$?
13887   grep -v '^ *+' conftest.er1 >conftest.err
13888   rm -f conftest.er1
13889   cat conftest.err >&5
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); } &&
13892          { ac_try='test -z "$ac_c_werror_flag"
13893                          || test ! -s conftest.err'
13894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895   (eval $ac_try) 2>&5
13896   ac_status=$?
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); }; } &&
13899          { ac_try='test -s conftest$ac_exeext'
13900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901   (eval $ac_try) 2>&5
13902   ac_status=$?
13903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904   (exit $ac_status); }; }; then
13905   fu_cv_sys_stat_statvfs=yes
13906 else
13907   echo "$as_me: failed program was:" >&5
13908 sed 's/^/| /' conftest.$ac_ext >&5
13909
13910 fu_cv_sys_stat_statvfs=no
13911 fi
13912 rm -f conftest.err conftest.$ac_objext \
13913       conftest$ac_exeext conftest.$ac_ext
13914 fi
13915 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
13916 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
13917   if test $fu_cv_sys_stat_statvfs = yes; then
13918     ac_fsusage_space=yes
13919
13920 cat >>confdefs.h <<\_ACEOF
13921 #define STAT_STATVFS 1
13922 _ACEOF
13923
13924   fi
13925 fi
13926
13927 if test $ac_fsusage_space = no; then
13928   # DEC Alpha running OSF/1
13929   echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
13930 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
13931   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
13932   echo $ECHO_N "(cached) $ECHO_C" >&6
13933 else
13934   if test "$cross_compiling" = yes; then
13935   fu_cv_sys_stat_statfs3_osf1=no
13936 else
13937   cat >conftest.$ac_ext <<_ACEOF
13938 /* confdefs.h.  */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h.  */
13943
13944 #include <sys/param.h>
13945 #include <sys/types.h>
13946 #include <sys/mount.h>
13947   main ()
13948   {
13949     struct statfs fsd;
13950     fsd.f_fsize = 0;
13951     exit (statfs (".", &fsd, sizeof (struct statfs)));
13952   }
13953 _ACEOF
13954 rm -f conftest$ac_exeext
13955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13956   (eval $ac_link) 2>&5
13957   ac_status=$?
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961   (eval $ac_try) 2>&5
13962   ac_status=$?
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); }; }; then
13965   fu_cv_sys_stat_statfs3_osf1=yes
13966 else
13967   echo "$as_me: program exited with status $ac_status" >&5
13968 echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13970
13971 ( exit $ac_status )
13972 fu_cv_sys_stat_statfs3_osf1=no
13973 fi
13974 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13975 fi
13976 fi
13977
13978   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
13979 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
13980   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13981     ac_fsusage_space=yes
13982
13983 cat >>confdefs.h <<\_ACEOF
13984 #define STAT_STATFS3_OSF1 1
13985 _ACEOF
13986
13987   fi
13988 fi
13989
13990 if test $ac_fsusage_space = no; then
13991 # AIX
13992   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
13993 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
13994   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
13995   echo $ECHO_N "(cached) $ECHO_C" >&6
13996 else
13997   if test "$cross_compiling" = yes; then
13998   fu_cv_sys_stat_statfs2_bsize=no
13999 else
14000   cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h.  */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h.  */
14006
14007 #ifdef HAVE_SYS_PARAM_H
14008 #include <sys/param.h>
14009 #endif
14010 #ifdef HAVE_SYS_MOUNT_H
14011 #include <sys/mount.h>
14012 #endif
14013 #ifdef HAVE_SYS_VFS_H
14014 #include <sys/vfs.h>
14015 #endif
14016   main ()
14017   {
14018   struct statfs fsd;
14019   fsd.f_bsize = 0;
14020   exit (statfs (".", &fsd));
14021   }
14022 _ACEOF
14023 rm -f conftest$ac_exeext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14025   (eval $ac_link) 2>&5
14026   ac_status=$?
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030   (eval $ac_try) 2>&5
14031   ac_status=$?
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); }; }; then
14034   fu_cv_sys_stat_statfs2_bsize=yes
14035 else
14036   echo "$as_me: program exited with status $ac_status" >&5
14037 echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14039
14040 ( exit $ac_status )
14041 fu_cv_sys_stat_statfs2_bsize=no
14042 fi
14043 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14044 fi
14045 fi
14046
14047   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
14048 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
14049   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
14050     ac_fsusage_space=yes
14051
14052 cat >>confdefs.h <<\_ACEOF
14053 #define STAT_STATFS2_BSIZE 1
14054 _ACEOF
14055
14056   fi
14057 fi
14058
14059 if test $ac_fsusage_space = no; then
14060 # SVR3
14061   echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
14062 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
14063   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
14064   echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066   if test "$cross_compiling" = yes; then
14067   fu_cv_sys_stat_statfs4=no
14068 else
14069   cat >conftest.$ac_ext <<_ACEOF
14070 /* confdefs.h.  */
14071 _ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h.  */
14075 #include <sys/types.h>
14076 #include <sys/statfs.h>
14077   main ()
14078   {
14079   struct statfs fsd;
14080   exit (statfs (".", &fsd, sizeof fsd, 0));
14081   }
14082 _ACEOF
14083 rm -f conftest$ac_exeext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14085   (eval $ac_link) 2>&5
14086   ac_status=$?
14087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090   (eval $ac_try) 2>&5
14091   ac_status=$?
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); }; }; then
14094   fu_cv_sys_stat_statfs4=yes
14095 else
14096   echo "$as_me: program exited with status $ac_status" >&5
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14099
14100 ( exit $ac_status )
14101 fu_cv_sys_stat_statfs4=no
14102 fi
14103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14104 fi
14105 fi
14106
14107   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
14108 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
14109   if test $fu_cv_sys_stat_statfs4 = yes; then
14110     ac_fsusage_space=yes
14111
14112 cat >>confdefs.h <<\_ACEOF
14113 #define STAT_STATFS4 1
14114 _ACEOF
14115
14116   fi
14117 fi
14118
14119 if test $ac_fsusage_space = no; then
14120 # 4.4BSD and NetBSD
14121   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
14122 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
14123   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
14124   echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126   if test "$cross_compiling" = yes; then
14127   fu_cv_sys_stat_statfs2_fsize=no
14128 else
14129   cat >conftest.$ac_ext <<_ACEOF
14130 /* confdefs.h.  */
14131 _ACEOF
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h.  */
14135 #include <sys/types.h>
14136 #ifdef HAVE_SYS_PARAM_H
14137 #include <sys/param.h>
14138 #endif
14139 #ifdef HAVE_SYS_MOUNT_H
14140 #include <sys/mount.h>
14141 #endif
14142   main ()
14143   {
14144   struct statfs fsd;
14145   fsd.f_fsize = 0;
14146   exit (statfs (".", &fsd));
14147   }
14148 _ACEOF
14149 rm -f conftest$ac_exeext
14150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14151   (eval $ac_link) 2>&5
14152   ac_status=$?
14153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156   (eval $ac_try) 2>&5
14157   ac_status=$?
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); }; }; then
14160   fu_cv_sys_stat_statfs2_fsize=yes
14161 else
14162   echo "$as_me: program exited with status $ac_status" >&5
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14165
14166 ( exit $ac_status )
14167 fu_cv_sys_stat_statfs2_fsize=no
14168 fi
14169 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14170 fi
14171 fi
14172
14173   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
14174 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
14175   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
14176     ac_fsusage_space=yes
14177
14178 cat >>confdefs.h <<\_ACEOF
14179 #define STAT_STATFS2_FSIZE 1
14180 _ACEOF
14181
14182   fi
14183 fi
14184
14185 if test $ac_fsusage_space = no; then
14186   # Ultrix
14187   echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
14188 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
14189   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
14190   echo $ECHO_N "(cached) $ECHO_C" >&6
14191 else
14192   if test "$cross_compiling" = yes; then
14193   fu_cv_sys_stat_fs_data=no
14194 else
14195   cat >conftest.$ac_ext <<_ACEOF
14196 /* confdefs.h.  */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h.  */
14201 #include <sys/types.h>
14202 #ifdef HAVE_SYS_PARAM_H
14203 #include <sys/param.h>
14204 #endif
14205 #ifdef HAVE_SYS_MOUNT_H
14206 #include <sys/mount.h>
14207 #endif
14208 #ifdef HAVE_SYS_FS_TYPES_H
14209 #include <sys/fs_types.h>
14210 #endif
14211   main ()
14212   {
14213   struct fs_data fsd;
14214   /* Ultrix's statfs returns 1 for success,
14215      0 for not mounted, -1 for failure.  */
14216   exit (statfs (".", &fsd) != 1);
14217   }
14218 _ACEOF
14219 rm -f conftest$ac_exeext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14221   (eval $ac_link) 2>&5
14222   ac_status=$?
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226   (eval $ac_try) 2>&5
14227   ac_status=$?
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); }; }; then
14230   fu_cv_sys_stat_fs_data=yes
14231 else
14232   echo "$as_me: program exited with status $ac_status" >&5
14233 echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14235
14236 ( exit $ac_status )
14237 fu_cv_sys_stat_fs_data=no
14238 fi
14239 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14240 fi
14241 fi
14242
14243   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
14244 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
14245   if test $fu_cv_sys_stat_fs_data = yes; then
14246     ac_fsusage_space=yes
14247
14248 cat >>confdefs.h <<\_ACEOF
14249 #define STAT_STATFS2_FS_DATA 1
14250 _ACEOF
14251
14252   fi
14253 fi
14254
14255 if test $ac_fsusage_space = no; then
14256   # SVR2
14257   cat >conftest.$ac_ext <<_ACEOF
14258 /* confdefs.h.  */
14259 _ACEOF
14260 cat confdefs.h >>conftest.$ac_ext
14261 cat >>conftest.$ac_ext <<_ACEOF
14262 /* end confdefs.h.  */
14263 #include <sys/filsys.h>
14264
14265 _ACEOF
14266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14267   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14268   ac_status=$?
14269   grep -v '^ *+' conftest.er1 >conftest.err
14270   rm -f conftest.er1
14271   cat conftest.err >&5
14272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273   (exit $ac_status); } >/dev/null; then
14274   if test -s conftest.err; then
14275     ac_cpp_err=$ac_c_preproc_warn_flag
14276     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14277   else
14278     ac_cpp_err=
14279   fi
14280 else
14281   ac_cpp_err=yes
14282 fi
14283 if test -z "$ac_cpp_err"; then
14284
14285 cat >>confdefs.h <<\_ACEOF
14286 #define STAT_READ_FILSYS 1
14287 _ACEOF
14288
14289     ac_fsusage_space=yes
14290 else
14291   echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14293
14294
14295 fi
14296 rm -f conftest.err conftest.$ac_ext
14297 fi
14298
14299 if test $ac_fsusage_space = yes; then
14300   gl_cv_fs_space=yes
14301 else
14302   gl_cv_fs_space=no
14303 fi
14304
14305
14306
14307   if test $gl_cv_fs_space = yes; then
14308     case $LIBOBJS in
14309     "fsusage.$ac_objext"   | \
14310   *" fsusage.$ac_objext"   | \
14311     "fsusage.$ac_objext "* | \
14312   *" fsusage.$ac_objext "* ) ;;
14313   *) LIBOBJS="$LIBOBJS fsusage.$ac_objext" ;;
14314 esac
14315
14316
14317
14318
14319   :
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h
14331 do
14332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14334   echo "$as_me:$LINENO: checking for $ac_header" >&5
14335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14337   echo $ECHO_N "(cached) $ECHO_C" >&6
14338 fi
14339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14341 else
14342   # Is the header compilable?
14343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14345 cat >conftest.$ac_ext <<_ACEOF
14346 /* confdefs.h.  */
14347 _ACEOF
14348 cat confdefs.h >>conftest.$ac_ext
14349 cat >>conftest.$ac_ext <<_ACEOF
14350 /* end confdefs.h.  */
14351 $ac_includes_default
14352 #include <$ac_header>
14353 _ACEOF
14354 rm -f conftest.$ac_objext
14355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14356   (eval $ac_compile) 2>conftest.er1
14357   ac_status=$?
14358   grep -v '^ *+' conftest.er1 >conftest.err
14359   rm -f conftest.er1
14360   cat conftest.err >&5
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); } &&
14363          { ac_try='test -z "$ac_c_werror_flag"
14364                          || test ! -s conftest.err'
14365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366   (eval $ac_try) 2>&5
14367   ac_status=$?
14368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369   (exit $ac_status); }; } &&
14370          { ac_try='test -s conftest.$ac_objext'
14371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372   (eval $ac_try) 2>&5
14373   ac_status=$?
14374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375   (exit $ac_status); }; }; then
14376   ac_header_compiler=yes
14377 else
14378   echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14380
14381 ac_header_compiler=no
14382 fi
14383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14385 echo "${ECHO_T}$ac_header_compiler" >&6
14386
14387 # Is the header present?
14388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14390 cat >conftest.$ac_ext <<_ACEOF
14391 /* confdefs.h.  */
14392 _ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h.  */
14396 #include <$ac_header>
14397 _ACEOF
14398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14399   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14400   ac_status=$?
14401   grep -v '^ *+' conftest.er1 >conftest.err
14402   rm -f conftest.er1
14403   cat conftest.err >&5
14404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405   (exit $ac_status); } >/dev/null; then
14406   if test -s conftest.err; then
14407     ac_cpp_err=$ac_c_preproc_warn_flag
14408     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14409   else
14410     ac_cpp_err=
14411   fi
14412 else
14413   ac_cpp_err=yes
14414 fi
14415 if test -z "$ac_cpp_err"; then
14416   ac_header_preproc=yes
14417 else
14418   echo "$as_me: failed program was:" >&5
14419 sed 's/^/| /' conftest.$ac_ext >&5
14420
14421   ac_header_preproc=no
14422 fi
14423 rm -f conftest.err conftest.$ac_ext
14424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14425 echo "${ECHO_T}$ac_header_preproc" >&6
14426
14427 # So?  What about this header?
14428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14429   yes:no: )
14430     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14434     ac_header_preproc=yes
14435     ;;
14436   no:yes:* )
14437     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14439     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14440 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14441     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14443     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14444 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14447     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14449     (
14450       cat <<\_ASBOX
14451 ## ------------------------------------ ##
14452 ## Report this to bug-coreutils@gnu.org ##
14453 ## ------------------------------------ ##
14454 _ASBOX
14455     ) |
14456       sed "s/^/$as_me: WARNING:     /" >&2
14457     ;;
14458 esac
14459 echo "$as_me:$LINENO: checking for $ac_header" >&5
14460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14462   echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464   eval "$as_ac_Header=\$ac_header_preproc"
14465 fi
14466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14468
14469 fi
14470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14471   cat >>confdefs.h <<_ACEOF
14472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14473 _ACEOF
14474
14475 fi
14476
14477 done
14478
14479
14480   echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
14481 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
14482   if test "${fu_cv_sys_truncating_statfs+set}" = set; then
14483   echo $ECHO_N "(cached) $ECHO_C" >&6
14484 else
14485   cat >conftest.$ac_ext <<_ACEOF
14486 /* confdefs.h.  */
14487 _ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h.  */
14491
14492 #if !defined(sun) && !defined(__sun)
14493 choke -- this is a workaround for a Sun-specific problem
14494 #endif
14495 #include <sys/types.h>
14496 #include <sys/vfs.h>
14497 int
14498 main ()
14499 {
14500 struct statfs t; long c = *(t.f_spare);
14501   ;
14502   return 0;
14503 }
14504 _ACEOF
14505 rm -f conftest.$ac_objext
14506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14507   (eval $ac_compile) 2>conftest.er1
14508   ac_status=$?
14509   grep -v '^ *+' conftest.er1 >conftest.err
14510   rm -f conftest.er1
14511   cat conftest.err >&5
14512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513   (exit $ac_status); } &&
14514          { ac_try='test -z "$ac_c_werror_flag"
14515                          || test ! -s conftest.err'
14516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517   (eval $ac_try) 2>&5
14518   ac_status=$?
14519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520   (exit $ac_status); }; } &&
14521          { ac_try='test -s conftest.$ac_objext'
14522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523   (eval $ac_try) 2>&5
14524   ac_status=$?
14525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526   (exit $ac_status); }; }; then
14527   fu_cv_sys_truncating_statfs=yes
14528 else
14529   echo "$as_me: failed program was:" >&5
14530 sed 's/^/| /' conftest.$ac_ext >&5
14531
14532 fu_cv_sys_truncating_statfs=no
14533 fi
14534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14535 fi
14536
14537   if test $fu_cv_sys_truncating_statfs = yes; then
14538
14539 cat >>confdefs.h <<\_ACEOF
14540 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
14541 _ACEOF
14542
14543   fi
14544   echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
14545 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
14546
14547
14548   fi
14549
14550 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14551 # for constant arguments.  Useless!
14552 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14553 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14554 if test "${ac_cv_working_alloca_h+set}" = set; then
14555   echo $ECHO_N "(cached) $ECHO_C" >&6
14556 else
14557   cat >conftest.$ac_ext <<_ACEOF
14558 /* confdefs.h.  */
14559 _ACEOF
14560 cat confdefs.h >>conftest.$ac_ext
14561 cat >>conftest.$ac_ext <<_ACEOF
14562 /* end confdefs.h.  */
14563 #include <alloca.h>
14564 int
14565 main ()
14566 {
14567 char *p = (char *) alloca (2 * sizeof (int));
14568   ;
14569   return 0;
14570 }
14571 _ACEOF
14572 rm -f conftest.$ac_objext conftest$ac_exeext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14574   (eval $ac_link) 2>conftest.er1
14575   ac_status=$?
14576   grep -v '^ *+' conftest.er1 >conftest.err
14577   rm -f conftest.er1
14578   cat conftest.err >&5
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); } &&
14581          { ac_try='test -z "$ac_c_werror_flag"
14582                          || test ! -s conftest.err'
14583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584   (eval $ac_try) 2>&5
14585   ac_status=$?
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); }; } &&
14588          { ac_try='test -s conftest$ac_exeext'
14589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590   (eval $ac_try) 2>&5
14591   ac_status=$?
14592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593   (exit $ac_status); }; }; then
14594   ac_cv_working_alloca_h=yes
14595 else
14596   echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14598
14599 ac_cv_working_alloca_h=no
14600 fi
14601 rm -f conftest.err conftest.$ac_objext \
14602       conftest$ac_exeext conftest.$ac_ext
14603 fi
14604 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14605 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14606 if test $ac_cv_working_alloca_h = yes; then
14607
14608 cat >>confdefs.h <<\_ACEOF
14609 #define HAVE_ALLOCA_H 1
14610 _ACEOF
14611
14612 fi
14613
14614 echo "$as_me:$LINENO: checking for alloca" >&5
14615 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14616 if test "${ac_cv_func_alloca_works+set}" = set; then
14617   echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619   cat >conftest.$ac_ext <<_ACEOF
14620 /* confdefs.h.  */
14621 _ACEOF
14622 cat confdefs.h >>conftest.$ac_ext
14623 cat >>conftest.$ac_ext <<_ACEOF
14624 /* end confdefs.h.  */
14625 #ifdef __GNUC__
14626 # define alloca __builtin_alloca
14627 #else
14628 # ifdef _MSC_VER
14629 #  include <malloc.h>
14630 #  define alloca _alloca
14631 # else
14632 #  if HAVE_ALLOCA_H
14633 #   include <alloca.h>
14634 #  else
14635 #   ifdef _AIX
14636  #pragma alloca
14637 #   else
14638 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14639 char *alloca ();
14640 #    endif
14641 #   endif
14642 #  endif
14643 # endif
14644 #endif
14645
14646 int
14647 main ()
14648 {
14649 char *p = (char *) alloca (1);
14650   ;
14651   return 0;
14652 }
14653 _ACEOF
14654 rm -f conftest.$ac_objext conftest$ac_exeext
14655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14656   (eval $ac_link) 2>conftest.er1
14657   ac_status=$?
14658   grep -v '^ *+' conftest.er1 >conftest.err
14659   rm -f conftest.er1
14660   cat conftest.err >&5
14661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662   (exit $ac_status); } &&
14663          { ac_try='test -z "$ac_c_werror_flag"
14664                          || test ! -s conftest.err'
14665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666   (eval $ac_try) 2>&5
14667   ac_status=$?
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); }; } &&
14670          { ac_try='test -s conftest$ac_exeext'
14671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672   (eval $ac_try) 2>&5
14673   ac_status=$?
14674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675   (exit $ac_status); }; }; then
14676   ac_cv_func_alloca_works=yes
14677 else
14678   echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14680
14681 ac_cv_func_alloca_works=no
14682 fi
14683 rm -f conftest.err conftest.$ac_objext \
14684       conftest$ac_exeext conftest.$ac_ext
14685 fi
14686 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14687 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14688
14689 if test $ac_cv_func_alloca_works = yes; then
14690
14691 cat >>confdefs.h <<\_ACEOF
14692 #define HAVE_ALLOCA 1
14693 _ACEOF
14694
14695 else
14696   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14697 # that cause trouble.  Some versions do not even contain alloca or
14698 # contain a buggy version.  If you still want to use their alloca,
14699 # use ar to extract alloca.o from them instead of compiling alloca.c.
14700
14701 ALLOCA=alloca.$ac_objext
14702
14703 cat >>confdefs.h <<\_ACEOF
14704 #define C_ALLOCA 1
14705 _ACEOF
14706
14707
14708 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14709 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14710 if test "${ac_cv_os_cray+set}" = set; then
14711   echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713   cat >conftest.$ac_ext <<_ACEOF
14714 /* confdefs.h.  */
14715 _ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h.  */
14719 #if defined(CRAY) && ! defined(CRAY2)
14720 webecray
14721 #else
14722 wenotbecray
14723 #endif
14724
14725 _ACEOF
14726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14727   $EGREP "webecray" >/dev/null 2>&1; then
14728   ac_cv_os_cray=yes
14729 else
14730   ac_cv_os_cray=no
14731 fi
14732 rm -f conftest*
14733
14734 fi
14735 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14736 echo "${ECHO_T}$ac_cv_os_cray" >&6
14737 if test $ac_cv_os_cray = yes; then
14738   for ac_func in _getb67 GETB67 getb67; do
14739     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14740 echo "$as_me:$LINENO: checking for $ac_func" >&5
14741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14742 if eval "test \"\${$as_ac_var+set}\" = set"; then
14743   echo $ECHO_N "(cached) $ECHO_C" >&6
14744 else
14745   cat >conftest.$ac_ext <<_ACEOF
14746 /* confdefs.h.  */
14747 _ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h.  */
14751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14753 #define $ac_func innocuous_$ac_func
14754
14755 /* System header to define __stub macros and hopefully few prototypes,
14756     which can conflict with char $ac_func (); below.
14757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14758     <limits.h> exists even on freestanding compilers.  */
14759
14760 #ifdef __STDC__
14761 # include <limits.h>
14762 #else
14763 # include <assert.h>
14764 #endif
14765
14766 #undef $ac_func
14767
14768 /* Override any gcc2 internal prototype to avoid an error.  */
14769 #ifdef __cplusplus
14770 extern "C"
14771 {
14772 #endif
14773 /* We use char because int might match the return type of a gcc2
14774    builtin and then its argument prototype would still apply.  */
14775 char $ac_func ();
14776 /* The GNU C library defines this for functions which it implements
14777     to always fail with ENOSYS.  Some functions are actually named
14778     something starting with __ and the normal name is an alias.  */
14779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14780 choke me
14781 #else
14782 char (*f) () = $ac_func;
14783 #endif
14784 #ifdef __cplusplus
14785 }
14786 #endif
14787
14788 int
14789 main ()
14790 {
14791 return f != $ac_func;
14792   ;
14793   return 0;
14794 }
14795 _ACEOF
14796 rm -f conftest.$ac_objext conftest$ac_exeext
14797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14798   (eval $ac_link) 2>conftest.er1
14799   ac_status=$?
14800   grep -v '^ *+' conftest.er1 >conftest.err
14801   rm -f conftest.er1
14802   cat conftest.err >&5
14803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); } &&
14805          { ac_try='test -z "$ac_c_werror_flag"
14806                          || test ! -s conftest.err'
14807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808   (eval $ac_try) 2>&5
14809   ac_status=$?
14810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811   (exit $ac_status); }; } &&
14812          { ac_try='test -s conftest$ac_exeext'
14813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814   (eval $ac_try) 2>&5
14815   ac_status=$?
14816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); }; }; then
14818   eval "$as_ac_var=yes"
14819 else
14820   echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14822
14823 eval "$as_ac_var=no"
14824 fi
14825 rm -f conftest.err conftest.$ac_objext \
14826       conftest$ac_exeext conftest.$ac_ext
14827 fi
14828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14830 if test `eval echo '${'$as_ac_var'}'` = yes; then
14831
14832 cat >>confdefs.h <<_ACEOF
14833 #define CRAY_STACKSEG_END $ac_func
14834 _ACEOF
14835
14836     break
14837 fi
14838
14839   done
14840 fi
14841
14842 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14843 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14844 if test "${ac_cv_c_stack_direction+set}" = set; then
14845   echo $ECHO_N "(cached) $ECHO_C" >&6
14846 else
14847   if test "$cross_compiling" = yes; then
14848   ac_cv_c_stack_direction=0
14849 else
14850   cat >conftest.$ac_ext <<_ACEOF
14851 /* confdefs.h.  */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h.  */
14856 int
14857 find_stack_direction ()
14858 {
14859   static char *addr = 0;
14860   auto char dummy;
14861   if (addr == 0)
14862     {
14863       addr = &dummy;
14864       return find_stack_direction ();
14865     }
14866   else
14867     return (&dummy > addr) ? 1 : -1;
14868 }
14869
14870 int
14871 main ()
14872 {
14873   exit (find_stack_direction () < 0);
14874 }
14875 _ACEOF
14876 rm -f conftest$ac_exeext
14877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14878   (eval $ac_link) 2>&5
14879   ac_status=$?
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883   (eval $ac_try) 2>&5
14884   ac_status=$?
14885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886   (exit $ac_status); }; }; then
14887   ac_cv_c_stack_direction=1
14888 else
14889   echo "$as_me: program exited with status $ac_status" >&5
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14892
14893 ( exit $ac_status )
14894 ac_cv_c_stack_direction=-1
14895 fi
14896 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14897 fi
14898 fi
14899 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14900 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14901
14902 cat >>confdefs.h <<_ACEOF
14903 #define STACK_DIRECTION $ac_cv_c_stack_direction
14904 _ACEOF
14905
14906
14907 fi
14908
14909
14910
14911
14912
14913
14914   if test $ac_cv_func_alloca_works = no; then
14915     :
14916   fi
14917
14918   # Define an additional variable used in the Makefile substitution.
14919
14920   cat >conftest.$ac_ext <<_ACEOF
14921 /* confdefs.h.  */
14922 _ACEOF
14923 cat confdefs.h >>conftest.$ac_ext
14924 cat >>conftest.$ac_ext <<_ACEOF
14925 /* end confdefs.h.  */
14926
14927 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
14928   Need own alloca
14929 #endif
14930
14931 _ACEOF
14932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14933   $EGREP "Need own alloca" >/dev/null 2>&1; then
14934   ALLOCA_H=alloca.h
14935 else
14936   ALLOCA_H=
14937 fi
14938 rm -f conftest*
14939
14940
14941
14942
14943
14944 for ac_func in atexit
14945 do
14946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14947 echo "$as_me:$LINENO: checking for $ac_func" >&5
14948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14949 if eval "test \"\${$as_ac_var+set}\" = set"; then
14950   echo $ECHO_N "(cached) $ECHO_C" >&6
14951 else
14952   cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h.  */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h.  */
14958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14960 #define $ac_func innocuous_$ac_func
14961
14962 /* System header to define __stub macros and hopefully few prototypes,
14963     which can conflict with char $ac_func (); below.
14964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14965     <limits.h> exists even on freestanding compilers.  */
14966
14967 #ifdef __STDC__
14968 # include <limits.h>
14969 #else
14970 # include <assert.h>
14971 #endif
14972
14973 #undef $ac_func
14974
14975 /* Override any gcc2 internal prototype to avoid an error.  */
14976 #ifdef __cplusplus
14977 extern "C"
14978 {
14979 #endif
14980 /* We use char because int might match the return type of a gcc2
14981    builtin and then its argument prototype would still apply.  */
14982 char $ac_func ();
14983 /* The GNU C library defines this for functions which it implements
14984     to always fail with ENOSYS.  Some functions are actually named
14985     something starting with __ and the normal name is an alias.  */
14986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14987 choke me
14988 #else
14989 char (*f) () = $ac_func;
14990 #endif
14991 #ifdef __cplusplus
14992 }
14993 #endif
14994
14995 int
14996 main ()
14997 {
14998 return f != $ac_func;
14999   ;
15000   return 0;
15001 }
15002 _ACEOF
15003 rm -f conftest.$ac_objext conftest$ac_exeext
15004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15005   (eval $ac_link) 2>conftest.er1
15006   ac_status=$?
15007   grep -v '^ *+' conftest.er1 >conftest.err
15008   rm -f conftest.er1
15009   cat conftest.err >&5
15010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011   (exit $ac_status); } &&
15012          { ac_try='test -z "$ac_c_werror_flag"
15013                          || test ! -s conftest.err'
15014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015   (eval $ac_try) 2>&5
15016   ac_status=$?
15017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018   (exit $ac_status); }; } &&
15019          { ac_try='test -s conftest$ac_exeext'
15020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021   (eval $ac_try) 2>&5
15022   ac_status=$?
15023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024   (exit $ac_status); }; }; then
15025   eval "$as_ac_var=yes"
15026 else
15027   echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030 eval "$as_ac_var=no"
15031 fi
15032 rm -f conftest.err conftest.$ac_objext \
15033       conftest$ac_exeext conftest.$ac_ext
15034 fi
15035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15037 if test `eval echo '${'$as_ac_var'}'` = yes; then
15038   cat >>confdefs.h <<_ACEOF
15039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15040 _ACEOF
15041
15042 else
15043   case $LIBOBJS in
15044     "$ac_func.$ac_objext"   | \
15045   *" $ac_func.$ac_objext"   | \
15046     "$ac_func.$ac_objext "* | \
15047   *" $ac_func.$ac_objext "* ) ;;
15048   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15049 esac
15050
15051 fi
15052 done
15053
15054
15055   if test $ac_cv_func_atexit = no; then
15056
15057   :
15058
15059   fi
15060
15061
15062
15063 for ac_func in dup2
15064 do
15065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15066 echo "$as_me:$LINENO: checking for $ac_func" >&5
15067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15068 if eval "test \"\${$as_ac_var+set}\" = set"; then
15069   echo $ECHO_N "(cached) $ECHO_C" >&6
15070 else
15071   cat >conftest.$ac_ext <<_ACEOF
15072 /* confdefs.h.  */
15073 _ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h.  */
15077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15079 #define $ac_func innocuous_$ac_func
15080
15081 /* System header to define __stub macros and hopefully few prototypes,
15082     which can conflict with char $ac_func (); below.
15083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15084     <limits.h> exists even on freestanding compilers.  */
15085
15086 #ifdef __STDC__
15087 # include <limits.h>
15088 #else
15089 # include <assert.h>
15090 #endif
15091
15092 #undef $ac_func
15093
15094 /* Override any gcc2 internal prototype to avoid an error.  */
15095 #ifdef __cplusplus
15096 extern "C"
15097 {
15098 #endif
15099 /* We use char because int might match the return type of a gcc2
15100    builtin and then its argument prototype would still apply.  */
15101 char $ac_func ();
15102 /* The GNU C library defines this for functions which it implements
15103     to always fail with ENOSYS.  Some functions are actually named
15104     something starting with __ and the normal name is an alias.  */
15105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15106 choke me
15107 #else
15108 char (*f) () = $ac_func;
15109 #endif
15110 #ifdef __cplusplus
15111 }
15112 #endif
15113
15114 int
15115 main ()
15116 {
15117 return f != $ac_func;
15118   ;
15119   return 0;
15120 }
15121 _ACEOF
15122 rm -f conftest.$ac_objext conftest$ac_exeext
15123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15124   (eval $ac_link) 2>conftest.er1
15125   ac_status=$?
15126   grep -v '^ *+' conftest.er1 >conftest.err
15127   rm -f conftest.er1
15128   cat conftest.err >&5
15129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130   (exit $ac_status); } &&
15131          { ac_try='test -z "$ac_c_werror_flag"
15132                          || test ! -s conftest.err'
15133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134   (eval $ac_try) 2>&5
15135   ac_status=$?
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); }; } &&
15138          { ac_try='test -s conftest$ac_exeext'
15139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140   (eval $ac_try) 2>&5
15141   ac_status=$?
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); }; }; then
15144   eval "$as_ac_var=yes"
15145 else
15146   echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15148
15149 eval "$as_ac_var=no"
15150 fi
15151 rm -f conftest.err conftest.$ac_objext \
15152       conftest$ac_exeext conftest.$ac_ext
15153 fi
15154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15156 if test `eval echo '${'$as_ac_var'}'` = yes; then
15157   cat >>confdefs.h <<_ACEOF
15158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15159 _ACEOF
15160
15161 else
15162   case $LIBOBJS in
15163     "$ac_func.$ac_objext"   | \
15164   *" $ac_func.$ac_objext"   | \
15165     "$ac_func.$ac_objext "* | \
15166   *" $ac_func.$ac_objext "* ) ;;
15167   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15168 esac
15169
15170 fi
15171 done
15172
15173
15174   if test $ac_cv_func_dup2 = no; then
15175
15176
15177   :
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187   fi
15188
15189 echo "$as_me:$LINENO: checking for getgroups" >&5
15190 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
15191 if test "${ac_cv_func_getgroups+set}" = set; then
15192   echo $ECHO_N "(cached) $ECHO_C" >&6
15193 else
15194   cat >conftest.$ac_ext <<_ACEOF
15195 /* confdefs.h.  */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h.  */
15200 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
15201    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15202 #define getgroups innocuous_getgroups
15203
15204 /* System header to define __stub macros and hopefully few prototypes,
15205     which can conflict with char getgroups (); below.
15206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15207     <limits.h> exists even on freestanding compilers.  */
15208
15209 #ifdef __STDC__
15210 # include <limits.h>
15211 #else
15212 # include <assert.h>
15213 #endif
15214
15215 #undef getgroups
15216
15217 /* Override any gcc2 internal prototype to avoid an error.  */
15218 #ifdef __cplusplus
15219 extern "C"
15220 {
15221 #endif
15222 /* We use char because int might match the return type of a gcc2
15223    builtin and then its argument prototype would still apply.  */
15224 char getgroups ();
15225 /* The GNU C library defines this for functions which it implements
15226     to always fail with ENOSYS.  Some functions are actually named
15227     something starting with __ and the normal name is an alias.  */
15228 #if defined (__stub_getgroups) || defined (__stub___getgroups)
15229 choke me
15230 #else
15231 char (*f) () = getgroups;
15232 #endif
15233 #ifdef __cplusplus
15234 }
15235 #endif
15236
15237 int
15238 main ()
15239 {
15240 return f != getgroups;
15241   ;
15242   return 0;
15243 }
15244 _ACEOF
15245 rm -f conftest.$ac_objext conftest$ac_exeext
15246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15247   (eval $ac_link) 2>conftest.er1
15248   ac_status=$?
15249   grep -v '^ *+' conftest.er1 >conftest.err
15250   rm -f conftest.er1
15251   cat conftest.err >&5
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); } &&
15254          { ac_try='test -z "$ac_c_werror_flag"
15255                          || test ! -s conftest.err'
15256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257   (eval $ac_try) 2>&5
15258   ac_status=$?
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); }; } &&
15261          { ac_try='test -s conftest$ac_exeext'
15262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263   (eval $ac_try) 2>&5
15264   ac_status=$?
15265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266   (exit $ac_status); }; }; then
15267   ac_cv_func_getgroups=yes
15268 else
15269   echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15271
15272 ac_cv_func_getgroups=no
15273 fi
15274 rm -f conftest.err conftest.$ac_objext \
15275       conftest$ac_exeext conftest.$ac_ext
15276 fi
15277 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
15278 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
15279
15280
15281 # If we don't yet have getgroups, see if it's in -lbsd.
15282 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15283 ac_save_LIBS=$LIBS
15284 if test $ac_cv_func_getgroups = no; then
15285   echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
15286 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
15287 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
15288   echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290   ac_check_lib_save_LIBS=$LIBS
15291 LIBS="-lbsd  $LIBS"
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h.  */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h.  */
15298
15299 /* Override any gcc2 internal prototype to avoid an error.  */
15300 #ifdef __cplusplus
15301 extern "C"
15302 #endif
15303 /* We use char because int might match the return type of a gcc2
15304    builtin and then its argument prototype would still apply.  */
15305 char getgroups ();
15306 int
15307 main ()
15308 {
15309 getgroups ();
15310   ;
15311   return 0;
15312 }
15313 _ACEOF
15314 rm -f conftest.$ac_objext conftest$ac_exeext
15315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15316   (eval $ac_link) 2>conftest.er1
15317   ac_status=$?
15318   grep -v '^ *+' conftest.er1 >conftest.err
15319   rm -f conftest.er1
15320   cat conftest.err >&5
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); } &&
15323          { ac_try='test -z "$ac_c_werror_flag"
15324                          || test ! -s conftest.err'
15325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326   (eval $ac_try) 2>&5
15327   ac_status=$?
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); }; } &&
15330          { ac_try='test -s conftest$ac_exeext'
15331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332   (eval $ac_try) 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); }; }; then
15336   ac_cv_lib_bsd_getgroups=yes
15337 else
15338   echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15340
15341 ac_cv_lib_bsd_getgroups=no
15342 fi
15343 rm -f conftest.err conftest.$ac_objext \
15344       conftest$ac_exeext conftest.$ac_ext
15345 LIBS=$ac_check_lib_save_LIBS
15346 fi
15347 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
15348 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
15349 if test $ac_cv_lib_bsd_getgroups = yes; then
15350   GETGROUPS_LIB=-lbsd
15351 fi
15352
15353 fi
15354
15355 # Run the program to test the functionality of the system-supplied
15356 # getgroups function only if there is such a function.
15357 if test $ac_cv_func_getgroups = yes; then
15358   echo "$as_me:$LINENO: checking for working getgroups" >&5
15359 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
15360 if test "${ac_cv_func_getgroups_works+set}" = set; then
15361   echo $ECHO_N "(cached) $ECHO_C" >&6
15362 else
15363   if test "$cross_compiling" = yes; then
15364   ac_cv_func_getgroups_works=no
15365 else
15366   cat >conftest.$ac_ext <<_ACEOF
15367 /* confdefs.h.  */
15368 _ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h.  */
15372 $ac_includes_default
15373 int
15374 main ()
15375 {
15376 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
15377        exit (getgroups (0, 0) == -1 ? 1 : 0);
15378   ;
15379   return 0;
15380 }
15381 _ACEOF
15382 rm -f conftest$ac_exeext
15383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15384   (eval $ac_link) 2>&5
15385   ac_status=$?
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389   (eval $ac_try) 2>&5
15390   ac_status=$?
15391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); }; }; then
15393   ac_cv_func_getgroups_works=yes
15394 else
15395   echo "$as_me: program exited with status $ac_status" >&5
15396 echo "$as_me: failed program was:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15398
15399 ( exit $ac_status )
15400 ac_cv_func_getgroups_works=no
15401 fi
15402 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15403 fi
15404
15405 fi
15406 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
15407 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
15408   if test $ac_cv_func_getgroups_works = yes; then
15409
15410 cat >>confdefs.h <<\_ACEOF
15411 #define HAVE_GETGROUPS 1
15412 _ACEOF
15413
15414   fi
15415 fi
15416 LIBS=$ac_save_LIBS
15417
15418
15419
15420
15421   echo "$as_me:$LINENO: checking whether euidaccess is declared" >&5
15422 echo $ECHO_N "checking whether euidaccess is declared... $ECHO_C" >&6
15423 if test "${ac_cv_have_decl_euidaccess+set}" = set; then
15424   echo $ECHO_N "(cached) $ECHO_C" >&6
15425 else
15426   cat >conftest.$ac_ext <<_ACEOF
15427 /* confdefs.h.  */
15428 _ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h.  */
15432 $ac_includes_default
15433 int
15434 main ()
15435 {
15436 #ifndef euidaccess
15437   char *p = (char *) euidaccess;
15438 #endif
15439
15440   ;
15441   return 0;
15442 }
15443 _ACEOF
15444 rm -f conftest.$ac_objext
15445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15446   (eval $ac_compile) 2>conftest.er1
15447   ac_status=$?
15448   grep -v '^ *+' conftest.er1 >conftest.err
15449   rm -f conftest.er1
15450   cat conftest.err >&5
15451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452   (exit $ac_status); } &&
15453          { ac_try='test -z "$ac_c_werror_flag"
15454                          || test ! -s conftest.err'
15455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456   (eval $ac_try) 2>&5
15457   ac_status=$?
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); }; } &&
15460          { ac_try='test -s conftest.$ac_objext'
15461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462   (eval $ac_try) 2>&5
15463   ac_status=$?
15464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465   (exit $ac_status); }; }; then
15466   ac_cv_have_decl_euidaccess=yes
15467 else
15468   echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15470
15471 ac_cv_have_decl_euidaccess=no
15472 fi
15473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15474 fi
15475 echo "$as_me:$LINENO: result: $ac_cv_have_decl_euidaccess" >&5
15476 echo "${ECHO_T}$ac_cv_have_decl_euidaccess" >&6
15477 if test $ac_cv_have_decl_euidaccess = yes; then
15478
15479 cat >>confdefs.h <<_ACEOF
15480 #define HAVE_DECL_EUIDACCESS 1
15481 _ACEOF
15482
15483
15484 else
15485   cat >>confdefs.h <<_ACEOF
15486 #define HAVE_DECL_EUIDACCESS 0
15487 _ACEOF
15488
15489
15490 fi
15491
15492
15493
15494 for ac_func in euidaccess
15495 do
15496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15497 echo "$as_me:$LINENO: checking for $ac_func" >&5
15498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15499 if eval "test \"\${$as_ac_var+set}\" = set"; then
15500   echo $ECHO_N "(cached) $ECHO_C" >&6
15501 else
15502   cat >conftest.$ac_ext <<_ACEOF
15503 /* confdefs.h.  */
15504 _ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h.  */
15508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15510 #define $ac_func innocuous_$ac_func
15511
15512 /* System header to define __stub macros and hopefully few prototypes,
15513     which can conflict with char $ac_func (); below.
15514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15515     <limits.h> exists even on freestanding compilers.  */
15516
15517 #ifdef __STDC__
15518 # include <limits.h>
15519 #else
15520 # include <assert.h>
15521 #endif
15522
15523 #undef $ac_func
15524
15525 /* Override any gcc2 internal prototype to avoid an error.  */
15526 #ifdef __cplusplus
15527 extern "C"
15528 {
15529 #endif
15530 /* We use char because int might match the return type of a gcc2
15531    builtin and then its argument prototype would still apply.  */
15532 char $ac_func ();
15533 /* The GNU C library defines this for functions which it implements
15534     to always fail with ENOSYS.  Some functions are actually named
15535     something starting with __ and the normal name is an alias.  */
15536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15537 choke me
15538 #else
15539 char (*f) () = $ac_func;
15540 #endif
15541 #ifdef __cplusplus
15542 }
15543 #endif
15544
15545 int
15546 main ()
15547 {
15548 return f != $ac_func;
15549   ;
15550   return 0;
15551 }
15552 _ACEOF
15553 rm -f conftest.$ac_objext conftest$ac_exeext
15554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15555   (eval $ac_link) 2>conftest.er1
15556   ac_status=$?
15557   grep -v '^ *+' conftest.er1 >conftest.err
15558   rm -f conftest.er1
15559   cat conftest.err >&5
15560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561   (exit $ac_status); } &&
15562          { ac_try='test -z "$ac_c_werror_flag"
15563                          || test ! -s conftest.err'
15564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565   (eval $ac_try) 2>&5
15566   ac_status=$?
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); }; } &&
15569          { ac_try='test -s conftest$ac_exeext'
15570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571   (eval $ac_try) 2>&5
15572   ac_status=$?
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); }; }; then
15575   eval "$as_ac_var=yes"
15576 else
15577   echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15579
15580 eval "$as_ac_var=no"
15581 fi
15582 rm -f conftest.err conftest.$ac_objext \
15583       conftest$ac_exeext conftest.$ac_ext
15584 fi
15585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15587 if test `eval echo '${'$as_ac_var'}'` = yes; then
15588   cat >>confdefs.h <<_ACEOF
15589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15590 _ACEOF
15591
15592 else
15593   case $LIBOBJS in
15594     "$ac_func.$ac_objext"   | \
15595   *" $ac_func.$ac_objext"   | \
15596     "$ac_func.$ac_objext "* | \
15597   *" $ac_func.$ac_objext "* ) ;;
15598   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15599 esac
15600
15601 fi
15602 done
15603
15604
15605   if test $ac_cv_func_euidaccess = no; then
15606
15607
15608   :
15609
15610
15611
15612
15613
15614
15615
15616   fi
15617
15618 echo "$as_me:$LINENO: checking for mbstate_t" >&5
15619 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
15620 if test "${ac_cv_type_mbstate_t+set}" = set; then
15621   echo $ECHO_N "(cached) $ECHO_C" >&6
15622 else
15623   cat >conftest.$ac_ext <<_ACEOF
15624 /* confdefs.h.  */
15625 _ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h.  */
15629 $ac_includes_default
15630 #           include <wchar.h>
15631 int
15632 main ()
15633 {
15634 mbstate_t x; return sizeof x;
15635   ;
15636   return 0;
15637 }
15638 _ACEOF
15639 rm -f conftest.$ac_objext
15640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15641   (eval $ac_compile) 2>conftest.er1
15642   ac_status=$?
15643   grep -v '^ *+' conftest.er1 >conftest.err
15644   rm -f conftest.er1
15645   cat conftest.err >&5
15646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647   (exit $ac_status); } &&
15648          { ac_try='test -z "$ac_c_werror_flag"
15649                          || test ! -s conftest.err'
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); }; } &&
15655          { ac_try='test -s conftest.$ac_objext'
15656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657   (eval $ac_try) 2>&5
15658   ac_status=$?
15659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660   (exit $ac_status); }; }; then
15661   ac_cv_type_mbstate_t=yes
15662 else
15663   echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15665
15666 ac_cv_type_mbstate_t=no
15667 fi
15668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15669 fi
15670 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
15671 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
15672    if test $ac_cv_type_mbstate_t = yes; then
15673
15674 cat >>confdefs.h <<\_ACEOF
15675 #define HAVE_MBSTATE_T 1
15676 _ACEOF
15677
15678    else
15679
15680 cat >>confdefs.h <<\_ACEOF
15681 #define mbstate_t int
15682 _ACEOF
15683
15684    fi
15685
15686
15687
15688   FNMATCH_H=
15689   echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
15690 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
15691 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
15692   echo $ECHO_N "(cached) $ECHO_C" >&6
15693 else
15694   # Some versions of Solaris, SCO, and the GNU C Library
15695    # have a broken or incompatible fnmatch.
15696    # So we run a test program.  If we are cross-compiling, take no chance.
15697    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
15698    if test "$cross_compiling" = yes; then
15699   ac_cv_func_fnmatch_gnu=cross
15700 else
15701   cat >conftest.$ac_ext <<_ACEOF
15702 /* confdefs.h.  */
15703 _ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h.  */
15707
15708 #          include <stdlib.h>
15709 #          include <fnmatch.h>
15710 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
15711 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
15712
15713 int
15714 main ()
15715 {
15716 exit
15717            (!(y ("a*", "abc", 0)
15718               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
15719               && y ("a\\\\bc", "abc", 0)
15720               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
15721               && y ("*x", ".x", 0)
15722               && n ("*x", ".x", FNM_PERIOD)
15723               && y ("xxXX", "xXxX", FNM_CASEFOLD)
15724                     && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
15725                     && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
15726                     && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
15727                     && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
15728                     && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
15729   ;
15730   return 0;
15731 }
15732 _ACEOF
15733 rm -f conftest$ac_exeext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15735   (eval $ac_link) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740   (eval $ac_try) 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); }; }; then
15744   ac_cv_func_fnmatch_gnu=yes
15745 else
15746   echo "$as_me: program exited with status $ac_status" >&5
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15749
15750 ( exit $ac_status )
15751 ac_cv_func_fnmatch_gnu=no
15752 fi
15753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15754 fi
15755 fi
15756 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
15757 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
15758 if test $ac_cv_func_fnmatch_gnu = yes; then
15759   rm -f lib/fnmatch.h
15760 else
15761   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
15762 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
15763 if test "${ac_cv_have_decl_getenv+set}" = set; then
15764   echo $ECHO_N "(cached) $ECHO_C" >&6
15765 else
15766   cat >conftest.$ac_ext <<_ACEOF
15767 /* confdefs.h.  */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h.  */
15772 $ac_includes_default
15773 int
15774 main ()
15775 {
15776 #ifndef getenv
15777   char *p = (char *) getenv;
15778 #endif
15779
15780   ;
15781   return 0;
15782 }
15783 _ACEOF
15784 rm -f conftest.$ac_objext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15786   (eval $ac_compile) 2>conftest.er1
15787   ac_status=$?
15788   grep -v '^ *+' conftest.er1 >conftest.err
15789   rm -f conftest.er1
15790   cat conftest.err >&5
15791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792   (exit $ac_status); } &&
15793          { ac_try='test -z "$ac_c_werror_flag"
15794                          || test ! -s conftest.err'
15795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796   (eval $ac_try) 2>&5
15797   ac_status=$?
15798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799   (exit $ac_status); }; } &&
15800          { ac_try='test -s conftest.$ac_objext'
15801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802   (eval $ac_try) 2>&5
15803   ac_status=$?
15804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805   (exit $ac_status); }; }; then
15806   ac_cv_have_decl_getenv=yes
15807 else
15808   echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15810
15811 ac_cv_have_decl_getenv=no
15812 fi
15813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15814 fi
15815 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
15816 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
15817 if test $ac_cv_have_decl_getenv = yes; then
15818
15819 cat >>confdefs.h <<_ACEOF
15820 #define HAVE_DECL_GETENV 1
15821 _ACEOF
15822
15823
15824 else
15825   cat >>confdefs.h <<_ACEOF
15826 #define HAVE_DECL_GETENV 0
15827 _ACEOF
15828
15829
15830 fi
15831
15832
15833
15834
15835
15836
15837 for ac_func in btowc mbsrtowcs mempcpy wmempcpy
15838 do
15839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15840 echo "$as_me:$LINENO: checking for $ac_func" >&5
15841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15842 if eval "test \"\${$as_ac_var+set}\" = set"; then
15843   echo $ECHO_N "(cached) $ECHO_C" >&6
15844 else
15845   cat >conftest.$ac_ext <<_ACEOF
15846 /* confdefs.h.  */
15847 _ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h.  */
15851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15853 #define $ac_func innocuous_$ac_func
15854
15855 /* System header to define __stub macros and hopefully few prototypes,
15856     which can conflict with char $ac_func (); below.
15857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15858     <limits.h> exists even on freestanding compilers.  */
15859
15860 #ifdef __STDC__
15861 # include <limits.h>
15862 #else
15863 # include <assert.h>
15864 #endif
15865
15866 #undef $ac_func
15867
15868 /* Override any gcc2 internal prototype to avoid an error.  */
15869 #ifdef __cplusplus
15870 extern "C"
15871 {
15872 #endif
15873 /* We use char because int might match the return type of a gcc2
15874    builtin and then its argument prototype would still apply.  */
15875 char $ac_func ();
15876 /* The GNU C library defines this for functions which it implements
15877     to always fail with ENOSYS.  Some functions are actually named
15878     something starting with __ and the normal name is an alias.  */
15879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15880 choke me
15881 #else
15882 char (*f) () = $ac_func;
15883 #endif
15884 #ifdef __cplusplus
15885 }
15886 #endif
15887
15888 int
15889 main ()
15890 {
15891 return f != $ac_func;
15892   ;
15893   return 0;
15894 }
15895 _ACEOF
15896 rm -f conftest.$ac_objext conftest$ac_exeext
15897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15898   (eval $ac_link) 2>conftest.er1
15899   ac_status=$?
15900   grep -v '^ *+' conftest.er1 >conftest.err
15901   rm -f conftest.er1
15902   cat conftest.err >&5
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); } &&
15905          { ac_try='test -z "$ac_c_werror_flag"
15906                          || test ! -s conftest.err'
15907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908   (eval $ac_try) 2>&5
15909   ac_status=$?
15910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911   (exit $ac_status); }; } &&
15912          { ac_try='test -s conftest$ac_exeext'
15913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15914   (eval $ac_try) 2>&5
15915   ac_status=$?
15916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917   (exit $ac_status); }; }; then
15918   eval "$as_ac_var=yes"
15919 else
15920   echo "$as_me: failed program was:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15922
15923 eval "$as_ac_var=no"
15924 fi
15925 rm -f conftest.err conftest.$ac_objext \
15926       conftest$ac_exeext conftest.$ac_ext
15927 fi
15928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15930 if test `eval echo '${'$as_ac_var'}'` = yes; then
15931   cat >>confdefs.h <<_ACEOF
15932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15933 _ACEOF
15934
15935 fi
15936 done
15937
15938
15939
15940 for ac_header in wchar.h wctype.h
15941 do
15942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15944   echo "$as_me:$LINENO: checking for $ac_header" >&5
15945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15947   echo $ECHO_N "(cached) $ECHO_C" >&6
15948 fi
15949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15951 else
15952   # Is the header compilable?
15953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15955 cat >conftest.$ac_ext <<_ACEOF
15956 /* confdefs.h.  */
15957 _ACEOF
15958 cat confdefs.h >>conftest.$ac_ext
15959 cat >>conftest.$ac_ext <<_ACEOF
15960 /* end confdefs.h.  */
15961 $ac_includes_default
15962 #include <$ac_header>
15963 _ACEOF
15964 rm -f conftest.$ac_objext
15965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15966   (eval $ac_compile) 2>conftest.er1
15967   ac_status=$?
15968   grep -v '^ *+' conftest.er1 >conftest.err
15969   rm -f conftest.er1
15970   cat conftest.err >&5
15971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972   (exit $ac_status); } &&
15973          { ac_try='test -z "$ac_c_werror_flag"
15974                          || test ! -s conftest.err'
15975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976   (eval $ac_try) 2>&5
15977   ac_status=$?
15978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979   (exit $ac_status); }; } &&
15980          { ac_try='test -s conftest.$ac_objext'
15981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982   (eval $ac_try) 2>&5
15983   ac_status=$?
15984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985   (exit $ac_status); }; }; then
15986   ac_header_compiler=yes
15987 else
15988   echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15990
15991 ac_header_compiler=no
15992 fi
15993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15995 echo "${ECHO_T}$ac_header_compiler" >&6
15996
15997 # Is the header present?
15998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16000 cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h.  */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h.  */
16006 #include <$ac_header>
16007 _ACEOF
16008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16009   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16010   ac_status=$?
16011   grep -v '^ *+' conftest.er1 >conftest.err
16012   rm -f conftest.er1
16013   cat conftest.err >&5
16014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015   (exit $ac_status); } >/dev/null; then
16016   if test -s conftest.err; then
16017     ac_cpp_err=$ac_c_preproc_warn_flag
16018     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16019   else
16020     ac_cpp_err=
16021   fi
16022 else
16023   ac_cpp_err=yes
16024 fi
16025 if test -z "$ac_cpp_err"; then
16026   ac_header_preproc=yes
16027 else
16028   echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16030
16031   ac_header_preproc=no
16032 fi
16033 rm -f conftest.err conftest.$ac_ext
16034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16035 echo "${ECHO_T}$ac_header_preproc" >&6
16036
16037 # So?  What about this header?
16038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16039   yes:no: )
16040     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16044     ac_header_preproc=yes
16045     ;;
16046   no:yes:* )
16047     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16049     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16050 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16051     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16053     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16054 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16057     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16059     (
16060       cat <<\_ASBOX
16061 ## ------------------------------------ ##
16062 ## Report this to bug-coreutils@gnu.org ##
16063 ## ------------------------------------ ##
16064 _ASBOX
16065     ) |
16066       sed "s/^/$as_me: WARNING:     /" >&2
16067     ;;
16068 esac
16069 echo "$as_me:$LINENO: checking for $ac_header" >&5
16070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16072   echo $ECHO_N "(cached) $ECHO_C" >&6
16073 else
16074   eval "$as_ac_Header=\$ac_header_preproc"
16075 fi
16076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16078
16079 fi
16080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16081   cat >>confdefs.h <<_ACEOF
16082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16083 _ACEOF
16084
16085 fi
16086
16087 done
16088
16089 case $LIBOBJS in
16090     "fnmatch.$ac_objext"   | \
16091   *" fnmatch.$ac_objext"   | \
16092     "fnmatch.$ac_objext "* | \
16093   *" fnmatch.$ac_objext "* ) ;;
16094   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
16095 esac
16096
16097 FNMATCH_H=fnmatch.h
16098
16099 fi
16100
16101
16102   if test $ac_cv_func_fnmatch_gnu != yes; then
16103
16104 cat >>confdefs.h <<\_ACEOF
16105 #define fnmatch gnu_fnmatch
16106 _ACEOF
16107
16108   fi
16109
16110
16111
16112
16113 for ac_func in gethostname
16114 do
16115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16116 echo "$as_me:$LINENO: checking for $ac_func" >&5
16117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16118 if eval "test \"\${$as_ac_var+set}\" = set"; then
16119   echo $ECHO_N "(cached) $ECHO_C" >&6
16120 else
16121   cat >conftest.$ac_ext <<_ACEOF
16122 /* confdefs.h.  */
16123 _ACEOF
16124 cat confdefs.h >>conftest.$ac_ext
16125 cat >>conftest.$ac_ext <<_ACEOF
16126 /* end confdefs.h.  */
16127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16129 #define $ac_func innocuous_$ac_func
16130
16131 /* System header to define __stub macros and hopefully few prototypes,
16132     which can conflict with char $ac_func (); below.
16133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16134     <limits.h> exists even on freestanding compilers.  */
16135
16136 #ifdef __STDC__
16137 # include <limits.h>
16138 #else
16139 # include <assert.h>
16140 #endif
16141
16142 #undef $ac_func
16143
16144 /* Override any gcc2 internal prototype to avoid an error.  */
16145 #ifdef __cplusplus
16146 extern "C"
16147 {
16148 #endif
16149 /* We use char because int might match the return type of a gcc2
16150    builtin and then its argument prototype would still apply.  */
16151 char $ac_func ();
16152 /* The GNU C library defines this for functions which it implements
16153     to always fail with ENOSYS.  Some functions are actually named
16154     something starting with __ and the normal name is an alias.  */
16155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16156 choke me
16157 #else
16158 char (*f) () = $ac_func;
16159 #endif
16160 #ifdef __cplusplus
16161 }
16162 #endif
16163
16164 int
16165 main ()
16166 {
16167 return f != $ac_func;
16168   ;
16169   return 0;
16170 }
16171 _ACEOF
16172 rm -f conftest.$ac_objext conftest$ac_exeext
16173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16174   (eval $ac_link) 2>conftest.er1
16175   ac_status=$?
16176   grep -v '^ *+' conftest.er1 >conftest.err
16177   rm -f conftest.er1
16178   cat conftest.err >&5
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); } &&
16181          { ac_try='test -z "$ac_c_werror_flag"
16182                          || test ! -s conftest.err'
16183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184   (eval $ac_try) 2>&5
16185   ac_status=$?
16186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187   (exit $ac_status); }; } &&
16188          { ac_try='test -s conftest$ac_exeext'
16189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190   (eval $ac_try) 2>&5
16191   ac_status=$?
16192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193   (exit $ac_status); }; }; then
16194   eval "$as_ac_var=yes"
16195 else
16196   echo "$as_me: failed program was:" >&5
16197 sed 's/^/| /' conftest.$ac_ext >&5
16198
16199 eval "$as_ac_var=no"
16200 fi
16201 rm -f conftest.err conftest.$ac_objext \
16202       conftest$ac_exeext conftest.$ac_ext
16203 fi
16204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16206 if test `eval echo '${'$as_ac_var'}'` = yes; then
16207   cat >>confdefs.h <<_ACEOF
16208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16209 _ACEOF
16210
16211 else
16212   case $LIBOBJS in
16213     "$ac_func.$ac_objext"   | \
16214   *" $ac_func.$ac_objext"   | \
16215     "$ac_func.$ac_objext "* | \
16216   *" $ac_func.$ac_objext "* ) ;;
16217   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16218 esac
16219
16220 fi
16221 done
16222
16223
16224   if test $ac_cv_func_gethostname = no; then
16225
16226
16227 for ac_func in uname
16228 do
16229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16230 echo "$as_me:$LINENO: checking for $ac_func" >&5
16231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16232 if eval "test \"\${$as_ac_var+set}\" = set"; then
16233   echo $ECHO_N "(cached) $ECHO_C" >&6
16234 else
16235   cat >conftest.$ac_ext <<_ACEOF
16236 /* confdefs.h.  */
16237 _ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h.  */
16241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16243 #define $ac_func innocuous_$ac_func
16244
16245 /* System header to define __stub macros and hopefully few prototypes,
16246     which can conflict with char $ac_func (); below.
16247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16248     <limits.h> exists even on freestanding compilers.  */
16249
16250 #ifdef __STDC__
16251 # include <limits.h>
16252 #else
16253 # include <assert.h>
16254 #endif
16255
16256 #undef $ac_func
16257
16258 /* Override any gcc2 internal prototype to avoid an error.  */
16259 #ifdef __cplusplus
16260 extern "C"
16261 {
16262 #endif
16263 /* We use char because int might match the return type of a gcc2
16264    builtin and then its argument prototype would still apply.  */
16265 char $ac_func ();
16266 /* The GNU C library defines this for functions which it implements
16267     to always fail with ENOSYS.  Some functions are actually named
16268     something starting with __ and the normal name is an alias.  */
16269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16270 choke me
16271 #else
16272 char (*f) () = $ac_func;
16273 #endif
16274 #ifdef __cplusplus
16275 }
16276 #endif
16277
16278 int
16279 main ()
16280 {
16281 return f != $ac_func;
16282   ;
16283   return 0;
16284 }
16285 _ACEOF
16286 rm -f conftest.$ac_objext conftest$ac_exeext
16287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16288   (eval $ac_link) 2>conftest.er1
16289   ac_status=$?
16290   grep -v '^ *+' conftest.er1 >conftest.err
16291   rm -f conftest.er1
16292   cat conftest.err >&5
16293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294   (exit $ac_status); } &&
16295          { ac_try='test -z "$ac_c_werror_flag"
16296                          || test ! -s conftest.err'
16297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298   (eval $ac_try) 2>&5
16299   ac_status=$?
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); }; } &&
16302          { ac_try='test -s conftest$ac_exeext'
16303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304   (eval $ac_try) 2>&5
16305   ac_status=$?
16306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307   (exit $ac_status); }; }; then
16308   eval "$as_ac_var=yes"
16309 else
16310   echo "$as_me: failed program was:" >&5
16311 sed 's/^/| /' conftest.$ac_ext >&5
16312
16313 eval "$as_ac_var=no"
16314 fi
16315 rm -f conftest.err conftest.$ac_objext \
16316       conftest$ac_exeext conftest.$ac_ext
16317 fi
16318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16320 if test `eval echo '${'$as_ac_var'}'` = yes; then
16321   cat >>confdefs.h <<_ACEOF
16322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16323 _ACEOF
16324
16325 fi
16326 done
16327
16328
16329   fi
16330
16331 ac_have_func=no # yes means we've found a way to get the load average.
16332
16333 # Make sure getloadavg.c is where it belongs, at configure-time.
16334 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16335   { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16336 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16337    { (exit 1); exit 1; }; }
16338
16339 ac_save_LIBS=$LIBS
16340
16341 # Check for getloadavg, but be sure not to touch the cache variable.
16342 (echo "$as_me:$LINENO: checking for getloadavg" >&5
16343 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
16344 if test "${ac_cv_func_getloadavg+set}" = set; then
16345   echo $ECHO_N "(cached) $ECHO_C" >&6
16346 else
16347   cat >conftest.$ac_ext <<_ACEOF
16348 /* confdefs.h.  */
16349 _ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h.  */
16353 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16355 #define getloadavg innocuous_getloadavg
16356
16357 /* System header to define __stub macros and hopefully few prototypes,
16358     which can conflict with char getloadavg (); below.
16359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16360     <limits.h> exists even on freestanding compilers.  */
16361
16362 #ifdef __STDC__
16363 # include <limits.h>
16364 #else
16365 # include <assert.h>
16366 #endif
16367
16368 #undef getloadavg
16369
16370 /* Override any gcc2 internal prototype to avoid an error.  */
16371 #ifdef __cplusplus
16372 extern "C"
16373 {
16374 #endif
16375 /* We use char because int might match the return type of a gcc2
16376    builtin and then its argument prototype would still apply.  */
16377 char getloadavg ();
16378 /* The GNU C library defines this for functions which it implements
16379     to always fail with ENOSYS.  Some functions are actually named
16380     something starting with __ and the normal name is an alias.  */
16381 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
16382 choke me
16383 #else
16384 char (*f) () = getloadavg;
16385 #endif
16386 #ifdef __cplusplus
16387 }
16388 #endif
16389
16390 int
16391 main ()
16392 {
16393 return f != getloadavg;
16394   ;
16395   return 0;
16396 }
16397 _ACEOF
16398 rm -f conftest.$ac_objext conftest$ac_exeext
16399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16400   (eval $ac_link) 2>conftest.er1
16401   ac_status=$?
16402   grep -v '^ *+' conftest.er1 >conftest.err
16403   rm -f conftest.er1
16404   cat conftest.err >&5
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); } &&
16407          { ac_try='test -z "$ac_c_werror_flag"
16408                          || test ! -s conftest.err'
16409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410   (eval $ac_try) 2>&5
16411   ac_status=$?
16412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413   (exit $ac_status); }; } &&
16414          { ac_try='test -s conftest$ac_exeext'
16415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16416   (eval $ac_try) 2>&5
16417   ac_status=$?
16418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419   (exit $ac_status); }; }; then
16420   ac_cv_func_getloadavg=yes
16421 else
16422   echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16424
16425 ac_cv_func_getloadavg=no
16426 fi
16427 rm -f conftest.err conftest.$ac_objext \
16428       conftest$ac_exeext conftest.$ac_ext
16429 fi
16430 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16431 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
16432 if test $ac_cv_func_getloadavg = yes; then
16433   exit 0
16434 else
16435   exit 1
16436 fi
16437 ) && ac_have_func=yes
16438
16439 # On HPUX9, an unprivileged user can get load averages through this function.
16440
16441 for ac_func in pstat_getdynamic
16442 do
16443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16444 echo "$as_me:$LINENO: checking for $ac_func" >&5
16445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16446 if eval "test \"\${$as_ac_var+set}\" = set"; then
16447   echo $ECHO_N "(cached) $ECHO_C" >&6
16448 else
16449   cat >conftest.$ac_ext <<_ACEOF
16450 /* confdefs.h.  */
16451 _ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h.  */
16455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16457 #define $ac_func innocuous_$ac_func
16458
16459 /* System header to define __stub macros and hopefully few prototypes,
16460     which can conflict with char $ac_func (); below.
16461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16462     <limits.h> exists even on freestanding compilers.  */
16463
16464 #ifdef __STDC__
16465 # include <limits.h>
16466 #else
16467 # include <assert.h>
16468 #endif
16469
16470 #undef $ac_func
16471
16472 /* Override any gcc2 internal prototype to avoid an error.  */
16473 #ifdef __cplusplus
16474 extern "C"
16475 {
16476 #endif
16477 /* We use char because int might match the return type of a gcc2
16478    builtin and then its argument prototype would still apply.  */
16479 char $ac_func ();
16480 /* The GNU C library defines this for functions which it implements
16481     to always fail with ENOSYS.  Some functions are actually named
16482     something starting with __ and the normal name is an alias.  */
16483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16484 choke me
16485 #else
16486 char (*f) () = $ac_func;
16487 #endif
16488 #ifdef __cplusplus
16489 }
16490 #endif
16491
16492 int
16493 main ()
16494 {
16495 return f != $ac_func;
16496   ;
16497   return 0;
16498 }
16499 _ACEOF
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16502   (eval $ac_link) 2>conftest.er1
16503   ac_status=$?
16504   grep -v '^ *+' conftest.er1 >conftest.err
16505   rm -f conftest.er1
16506   cat conftest.err >&5
16507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508   (exit $ac_status); } &&
16509          { ac_try='test -z "$ac_c_werror_flag"
16510                          || test ! -s conftest.err'
16511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512   (eval $ac_try) 2>&5
16513   ac_status=$?
16514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515   (exit $ac_status); }; } &&
16516          { ac_try='test -s conftest$ac_exeext'
16517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518   (eval $ac_try) 2>&5
16519   ac_status=$?
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); }; }; then
16522   eval "$as_ac_var=yes"
16523 else
16524   echo "$as_me: failed program was:" >&5
16525 sed 's/^/| /' conftest.$ac_ext >&5
16526
16527 eval "$as_ac_var=no"
16528 fi
16529 rm -f conftest.err conftest.$ac_objext \
16530       conftest$ac_exeext conftest.$ac_ext
16531 fi
16532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16534 if test `eval echo '${'$as_ac_var'}'` = yes; then
16535   cat >>confdefs.h <<_ACEOF
16536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16537 _ACEOF
16538
16539 fi
16540 done
16541
16542
16543 # Solaris has libkstat which does not require root.
16544
16545 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16546 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
16547 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16548   echo $ECHO_N "(cached) $ECHO_C" >&6
16549 else
16550   ac_check_lib_save_LIBS=$LIBS
16551 LIBS="-lkstat  $LIBS"
16552 cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h.  */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h.  */
16558
16559 /* Override any gcc2 internal prototype to avoid an error.  */
16560 #ifdef __cplusplus
16561 extern "C"
16562 #endif
16563 /* We use char because int might match the return type of a gcc2
16564    builtin and then its argument prototype would still apply.  */
16565 char kstat_open ();
16566 int
16567 main ()
16568 {
16569 kstat_open ();
16570   ;
16571   return 0;
16572 }
16573 _ACEOF
16574 rm -f conftest.$ac_objext conftest$ac_exeext
16575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16576   (eval $ac_link) 2>conftest.er1
16577   ac_status=$?
16578   grep -v '^ *+' conftest.er1 >conftest.err
16579   rm -f conftest.er1
16580   cat conftest.err >&5
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); } &&
16583          { ac_try='test -z "$ac_c_werror_flag"
16584                          || test ! -s conftest.err'
16585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586   (eval $ac_try) 2>&5
16587   ac_status=$?
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); }; } &&
16590          { ac_try='test -s conftest$ac_exeext'
16591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16592   (eval $ac_try) 2>&5
16593   ac_status=$?
16594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595   (exit $ac_status); }; }; then
16596   ac_cv_lib_kstat_kstat_open=yes
16597 else
16598   echo "$as_me: failed program was:" >&5
16599 sed 's/^/| /' conftest.$ac_ext >&5
16600
16601 ac_cv_lib_kstat_kstat_open=no
16602 fi
16603 rm -f conftest.err conftest.$ac_objext \
16604       conftest$ac_exeext conftest.$ac_ext
16605 LIBS=$ac_check_lib_save_LIBS
16606 fi
16607 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16608 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
16609 if test $ac_cv_lib_kstat_kstat_open = yes; then
16610   cat >>confdefs.h <<_ACEOF
16611 #define HAVE_LIBKSTAT 1
16612 _ACEOF
16613
16614   LIBS="-lkstat $LIBS"
16615
16616 fi
16617
16618 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16619
16620 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16621 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16622 # to get the right answer into the cache.
16623 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16624 if test $ac_have_func = no; then
16625   echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16626 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
16627 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16628   echo $ECHO_N "(cached) $ECHO_C" >&6
16629 else
16630   ac_check_lib_save_LIBS=$LIBS
16631 LIBS="-lelf  $LIBS"
16632 cat >conftest.$ac_ext <<_ACEOF
16633 /* confdefs.h.  */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h.  */
16638
16639 /* Override any gcc2 internal prototype to avoid an error.  */
16640 #ifdef __cplusplus
16641 extern "C"
16642 #endif
16643 /* We use char because int might match the return type of a gcc2
16644    builtin and then its argument prototype would still apply.  */
16645 char elf_begin ();
16646 int
16647 main ()
16648 {
16649 elf_begin ();
16650   ;
16651   return 0;
16652 }
16653 _ACEOF
16654 rm -f conftest.$ac_objext conftest$ac_exeext
16655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16656   (eval $ac_link) 2>conftest.er1
16657   ac_status=$?
16658   grep -v '^ *+' conftest.er1 >conftest.err
16659   rm -f conftest.er1
16660   cat conftest.err >&5
16661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662   (exit $ac_status); } &&
16663          { ac_try='test -z "$ac_c_werror_flag"
16664                          || test ! -s conftest.err'
16665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666   (eval $ac_try) 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); }; } &&
16670          { ac_try='test -s conftest$ac_exeext'
16671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672   (eval $ac_try) 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); }; }; then
16676   ac_cv_lib_elf_elf_begin=yes
16677 else
16678   echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16680
16681 ac_cv_lib_elf_elf_begin=no
16682 fi
16683 rm -f conftest.err conftest.$ac_objext \
16684       conftest$ac_exeext conftest.$ac_ext
16685 LIBS=$ac_check_lib_save_LIBS
16686 fi
16687 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16688 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
16689 if test $ac_cv_lib_elf_elf_begin = yes; then
16690   LIBS="-lelf $LIBS"
16691 fi
16692
16693 fi
16694 if test $ac_have_func = no; then
16695   echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16696 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
16697 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16698   echo $ECHO_N "(cached) $ECHO_C" >&6
16699 else
16700   ac_check_lib_save_LIBS=$LIBS
16701 LIBS="-lkvm  $LIBS"
16702 cat >conftest.$ac_ext <<_ACEOF
16703 /* confdefs.h.  */
16704 _ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h.  */
16708
16709 /* Override any gcc2 internal prototype to avoid an error.  */
16710 #ifdef __cplusplus
16711 extern "C"
16712 #endif
16713 /* We use char because int might match the return type of a gcc2
16714    builtin and then its argument prototype would still apply.  */
16715 char kvm_open ();
16716 int
16717 main ()
16718 {
16719 kvm_open ();
16720   ;
16721   return 0;
16722 }
16723 _ACEOF
16724 rm -f conftest.$ac_objext conftest$ac_exeext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16726   (eval $ac_link) 2>conftest.er1
16727   ac_status=$?
16728   grep -v '^ *+' conftest.er1 >conftest.err
16729   rm -f conftest.er1
16730   cat conftest.err >&5
16731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732   (exit $ac_status); } &&
16733          { ac_try='test -z "$ac_c_werror_flag"
16734                          || test ! -s conftest.err'
16735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736   (eval $ac_try) 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); }; } &&
16740          { ac_try='test -s conftest$ac_exeext'
16741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742   (eval $ac_try) 2>&5
16743   ac_status=$?
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); }; }; then
16746   ac_cv_lib_kvm_kvm_open=yes
16747 else
16748   echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16750
16751 ac_cv_lib_kvm_kvm_open=no
16752 fi
16753 rm -f conftest.err conftest.$ac_objext \
16754       conftest$ac_exeext conftest.$ac_ext
16755 LIBS=$ac_check_lib_save_LIBS
16756 fi
16757 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16758 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
16759 if test $ac_cv_lib_kvm_kvm_open = yes; then
16760   LIBS="-lkvm $LIBS"
16761 fi
16762
16763   # Check for the 4.4BSD definition of getloadavg.
16764   echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16765 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
16766 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16767   echo $ECHO_N "(cached) $ECHO_C" >&6
16768 else
16769   ac_check_lib_save_LIBS=$LIBS
16770 LIBS="-lutil  $LIBS"
16771 cat >conftest.$ac_ext <<_ACEOF
16772 /* confdefs.h.  */
16773 _ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h.  */
16777
16778 /* Override any gcc2 internal prototype to avoid an error.  */
16779 #ifdef __cplusplus
16780 extern "C"
16781 #endif
16782 /* We use char because int might match the return type of a gcc2
16783    builtin and then its argument prototype would still apply.  */
16784 char getloadavg ();
16785 int
16786 main ()
16787 {
16788 getloadavg ();
16789   ;
16790   return 0;
16791 }
16792 _ACEOF
16793 rm -f conftest.$ac_objext conftest$ac_exeext
16794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16795   (eval $ac_link) 2>conftest.er1
16796   ac_status=$?
16797   grep -v '^ *+' conftest.er1 >conftest.err
16798   rm -f conftest.er1
16799   cat conftest.err >&5
16800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801   (exit $ac_status); } &&
16802          { ac_try='test -z "$ac_c_werror_flag"
16803                          || test ! -s conftest.err'
16804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805   (eval $ac_try) 2>&5
16806   ac_status=$?
16807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808   (exit $ac_status); }; } &&
16809          { ac_try='test -s conftest$ac_exeext'
16810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811   (eval $ac_try) 2>&5
16812   ac_status=$?
16813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814   (exit $ac_status); }; }; then
16815   ac_cv_lib_util_getloadavg=yes
16816 else
16817   echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16819
16820 ac_cv_lib_util_getloadavg=no
16821 fi
16822 rm -f conftest.err conftest.$ac_objext \
16823       conftest$ac_exeext conftest.$ac_ext
16824 LIBS=$ac_check_lib_save_LIBS
16825 fi
16826 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16827 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
16828 if test $ac_cv_lib_util_getloadavg = yes; then
16829   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16830 fi
16831
16832 fi
16833
16834 if test $ac_have_func = no; then
16835   # There is a commonly available library for RS/6000 AIX.
16836   # Since it is not a standard part of AIX, it might be installed locally.
16837   ac_getloadavg_LIBS=$LIBS
16838   LIBS="-L/usr/local/lib $LIBS"
16839   echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16840 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
16841 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16842   echo $ECHO_N "(cached) $ECHO_C" >&6
16843 else
16844   ac_check_lib_save_LIBS=$LIBS
16845 LIBS="-lgetloadavg  $LIBS"
16846 cat >conftest.$ac_ext <<_ACEOF
16847 /* confdefs.h.  */
16848 _ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h.  */
16852
16853 /* Override any gcc2 internal prototype to avoid an error.  */
16854 #ifdef __cplusplus
16855 extern "C"
16856 #endif
16857 /* We use char because int might match the return type of a gcc2
16858    builtin and then its argument prototype would still apply.  */
16859 char getloadavg ();
16860 int
16861 main ()
16862 {
16863 getloadavg ();
16864   ;
16865   return 0;
16866 }
16867 _ACEOF
16868 rm -f conftest.$ac_objext conftest$ac_exeext
16869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16870   (eval $ac_link) 2>conftest.er1
16871   ac_status=$?
16872   grep -v '^ *+' conftest.er1 >conftest.err
16873   rm -f conftest.er1
16874   cat conftest.err >&5
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); } &&
16877          { ac_try='test -z "$ac_c_werror_flag"
16878                          || test ! -s conftest.err'
16879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880   (eval $ac_try) 2>&5
16881   ac_status=$?
16882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); }; } &&
16884          { ac_try='test -s conftest$ac_exeext'
16885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886   (eval $ac_try) 2>&5
16887   ac_status=$?
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); }; }; then
16890   ac_cv_lib_getloadavg_getloadavg=yes
16891 else
16892   echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.$ac_ext >&5
16894
16895 ac_cv_lib_getloadavg_getloadavg=no
16896 fi
16897 rm -f conftest.err conftest.$ac_objext \
16898       conftest$ac_exeext conftest.$ac_ext
16899 LIBS=$ac_check_lib_save_LIBS
16900 fi
16901 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16902 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
16903 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16904   LIBS="-lgetloadavg $LIBS"
16905 else
16906   LIBS=$ac_getloadavg_LIBS
16907 fi
16908
16909 fi
16910
16911 # Make sure it is really in the library, if we think we found it,
16912 # otherwise set up the replacement function.
16913
16914 for ac_func in getloadavg
16915 do
16916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16917 echo "$as_me:$LINENO: checking for $ac_func" >&5
16918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16919 if eval "test \"\${$as_ac_var+set}\" = set"; then
16920   echo $ECHO_N "(cached) $ECHO_C" >&6
16921 else
16922   cat >conftest.$ac_ext <<_ACEOF
16923 /* confdefs.h.  */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h.  */
16928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16930 #define $ac_func innocuous_$ac_func
16931
16932 /* System header to define __stub macros and hopefully few prototypes,
16933     which can conflict with char $ac_func (); below.
16934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16935     <limits.h> exists even on freestanding compilers.  */
16936
16937 #ifdef __STDC__
16938 # include <limits.h>
16939 #else
16940 # include <assert.h>
16941 #endif
16942
16943 #undef $ac_func
16944
16945 /* Override any gcc2 internal prototype to avoid an error.  */
16946 #ifdef __cplusplus
16947 extern "C"
16948 {
16949 #endif
16950 /* We use char because int might match the return type of a gcc2
16951    builtin and then its argument prototype would still apply.  */
16952 char $ac_func ();
16953 /* The GNU C library defines this for functions which it implements
16954     to always fail with ENOSYS.  Some functions are actually named
16955     something starting with __ and the normal name is an alias.  */
16956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16957 choke me
16958 #else
16959 char (*f) () = $ac_func;
16960 #endif
16961 #ifdef __cplusplus
16962 }
16963 #endif
16964
16965 int
16966 main ()
16967 {
16968 return f != $ac_func;
16969   ;
16970   return 0;
16971 }
16972 _ACEOF
16973 rm -f conftest.$ac_objext conftest$ac_exeext
16974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16975   (eval $ac_link) 2>conftest.er1
16976   ac_status=$?
16977   grep -v '^ *+' conftest.er1 >conftest.err
16978   rm -f conftest.er1
16979   cat conftest.err >&5
16980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981   (exit $ac_status); } &&
16982          { ac_try='test -z "$ac_c_werror_flag"
16983                          || test ! -s conftest.err'
16984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985   (eval $ac_try) 2>&5
16986   ac_status=$?
16987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988   (exit $ac_status); }; } &&
16989          { ac_try='test -s conftest$ac_exeext'
16990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991   (eval $ac_try) 2>&5
16992   ac_status=$?
16993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); }; }; then
16995   eval "$as_ac_var=yes"
16996 else
16997   echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
16999
17000 eval "$as_ac_var=no"
17001 fi
17002 rm -f conftest.err conftest.$ac_objext \
17003       conftest$ac_exeext conftest.$ac_ext
17004 fi
17005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17007 if test `eval echo '${'$as_ac_var'}'` = yes; then
17008   cat >>confdefs.h <<_ACEOF
17009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17010 _ACEOF
17011
17012 else
17013   case $LIBOBJS in
17014     "getloadavg.$ac_objext"   | \
17015   *" getloadavg.$ac_objext"   | \
17016     "getloadavg.$ac_objext "* | \
17017   *" getloadavg.$ac_objext "* ) ;;
17018   *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
17019 esac
17020
17021
17022 cat >>confdefs.h <<\_ACEOF
17023 #define C_GETLOADAVG 1
17024 _ACEOF
17025
17026 # Figure out what our getloadavg.c needs.
17027 ac_have_func=no
17028 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17029   echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17030 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
17031 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17032   echo $ECHO_N "(cached) $ECHO_C" >&6
17033 fi
17034 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17035 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
17036 else
17037   # Is the header compilable?
17038 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17039 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
17040 cat >conftest.$ac_ext <<_ACEOF
17041 /* confdefs.h.  */
17042 _ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h.  */
17046 $ac_includes_default
17047 #include <sys/dg_sys_info.h>
17048 _ACEOF
17049 rm -f conftest.$ac_objext
17050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17051   (eval $ac_compile) 2>conftest.er1
17052   ac_status=$?
17053   grep -v '^ *+' conftest.er1 >conftest.err
17054   rm -f conftest.er1
17055   cat conftest.err >&5
17056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); } &&
17058          { ac_try='test -z "$ac_c_werror_flag"
17059                          || test ! -s conftest.err'
17060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061   (eval $ac_try) 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); }; } &&
17065          { ac_try='test -s conftest.$ac_objext'
17066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067   (eval $ac_try) 2>&5
17068   ac_status=$?
17069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070   (exit $ac_status); }; }; then
17071   ac_header_compiler=yes
17072 else
17073   echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17075
17076 ac_header_compiler=no
17077 fi
17078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17080 echo "${ECHO_T}$ac_header_compiler" >&6
17081
17082 # Is the header present?
17083 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17084 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
17085 cat >conftest.$ac_ext <<_ACEOF
17086 /* confdefs.h.  */
17087 _ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h.  */
17091 #include <sys/dg_sys_info.h>
17092 _ACEOF
17093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17095   ac_status=$?
17096   grep -v '^ *+' conftest.er1 >conftest.err
17097   rm -f conftest.er1
17098   cat conftest.err >&5
17099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100   (exit $ac_status); } >/dev/null; then
17101   if test -s conftest.err; then
17102     ac_cpp_err=$ac_c_preproc_warn_flag
17103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17104   else
17105     ac_cpp_err=
17106   fi
17107 else
17108   ac_cpp_err=yes
17109 fi
17110 if test -z "$ac_cpp_err"; then
17111   ac_header_preproc=yes
17112 else
17113   echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17115
17116   ac_header_preproc=no
17117 fi
17118 rm -f conftest.err conftest.$ac_ext
17119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17120 echo "${ECHO_T}$ac_header_preproc" >&6
17121
17122 # So?  What about this header?
17123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17124   yes:no: )
17125     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17126 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17127     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17128 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17129     ac_header_preproc=yes
17130     ;;
17131   no:yes:* )
17132     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17133 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17134     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
17135 echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
17136     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17137 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17138     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
17139 echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17140     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17141 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17142     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17143 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17144     (
17145       cat <<\_ASBOX
17146 ## ------------------------------------ ##
17147 ## Report this to bug-coreutils@gnu.org ##
17148 ## ------------------------------------ ##
17149 _ASBOX
17150     ) |
17151       sed "s/^/$as_me: WARNING:     /" >&2
17152     ;;
17153 esac
17154 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17155 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
17156 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17157   echo $ECHO_N "(cached) $ECHO_C" >&6
17158 else
17159   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17160 fi
17161 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17162 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
17163
17164 fi
17165 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17166   ac_have_func=yes
17167
17168 cat >>confdefs.h <<\_ACEOF
17169 #define DGUX 1
17170 _ACEOF
17171
17172
17173 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17174 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
17175 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17176   echo $ECHO_N "(cached) $ECHO_C" >&6
17177 else
17178   ac_check_lib_save_LIBS=$LIBS
17179 LIBS="-ldgc  $LIBS"
17180 cat >conftest.$ac_ext <<_ACEOF
17181 /* confdefs.h.  */
17182 _ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h.  */
17186
17187 /* Override any gcc2 internal prototype to avoid an error.  */
17188 #ifdef __cplusplus
17189 extern "C"
17190 #endif
17191 /* We use char because int might match the return type of a gcc2
17192    builtin and then its argument prototype would still apply.  */
17193 char dg_sys_info ();
17194 int
17195 main ()
17196 {
17197 dg_sys_info ();
17198   ;
17199   return 0;
17200 }
17201 _ACEOF
17202 rm -f conftest.$ac_objext conftest$ac_exeext
17203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17204   (eval $ac_link) 2>conftest.er1
17205   ac_status=$?
17206   grep -v '^ *+' conftest.er1 >conftest.err
17207   rm -f conftest.er1
17208   cat conftest.err >&5
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); } &&
17211          { ac_try='test -z "$ac_c_werror_flag"
17212                          || test ! -s conftest.err'
17213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214   (eval $ac_try) 2>&5
17215   ac_status=$?
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); }; } &&
17218          { ac_try='test -s conftest$ac_exeext'
17219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220   (eval $ac_try) 2>&5
17221   ac_status=$?
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); }; }; then
17224   ac_cv_lib_dgc_dg_sys_info=yes
17225 else
17226   echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17228
17229 ac_cv_lib_dgc_dg_sys_info=no
17230 fi
17231 rm -f conftest.err conftest.$ac_objext \
17232       conftest$ac_exeext conftest.$ac_ext
17233 LIBS=$ac_check_lib_save_LIBS
17234 fi
17235 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17236 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
17237 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17238   cat >>confdefs.h <<_ACEOF
17239 #define HAVE_LIBDGC 1
17240 _ACEOF
17241
17242   LIBS="-ldgc $LIBS"
17243
17244 fi
17245
17246 fi
17247
17248
17249
17250 if test "${ac_cv_header_locale_h+set}" = set; then
17251   echo "$as_me:$LINENO: checking for locale.h" >&5
17252 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
17253 if test "${ac_cv_header_locale_h+set}" = set; then
17254   echo $ECHO_N "(cached) $ECHO_C" >&6
17255 fi
17256 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17257 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
17258 else
17259   # Is the header compilable?
17260 echo "$as_me:$LINENO: checking locale.h usability" >&5
17261 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
17262 cat >conftest.$ac_ext <<_ACEOF
17263 /* confdefs.h.  */
17264 _ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h.  */
17268 $ac_includes_default
17269 #include <locale.h>
17270 _ACEOF
17271 rm -f conftest.$ac_objext
17272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17273   (eval $ac_compile) 2>conftest.er1
17274   ac_status=$?
17275   grep -v '^ *+' conftest.er1 >conftest.err
17276   rm -f conftest.er1
17277   cat conftest.err >&5
17278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279   (exit $ac_status); } &&
17280          { ac_try='test -z "$ac_c_werror_flag"
17281                          || test ! -s conftest.err'
17282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283   (eval $ac_try) 2>&5
17284   ac_status=$?
17285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286   (exit $ac_status); }; } &&
17287          { ac_try='test -s conftest.$ac_objext'
17288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289   (eval $ac_try) 2>&5
17290   ac_status=$?
17291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292   (exit $ac_status); }; }; then
17293   ac_header_compiler=yes
17294 else
17295   echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17297
17298 ac_header_compiler=no
17299 fi
17300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17302 echo "${ECHO_T}$ac_header_compiler" >&6
17303
17304 # Is the header present?
17305 echo "$as_me:$LINENO: checking locale.h presence" >&5
17306 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
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 #include <locale.h>
17314 _ACEOF
17315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17316   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17317   ac_status=$?
17318   grep -v '^ *+' conftest.er1 >conftest.err
17319   rm -f conftest.er1
17320   cat conftest.err >&5
17321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322   (exit $ac_status); } >/dev/null; then
17323   if test -s conftest.err; then
17324     ac_cpp_err=$ac_c_preproc_warn_flag
17325     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17326   else
17327     ac_cpp_err=
17328   fi
17329 else
17330   ac_cpp_err=yes
17331 fi
17332 if test -z "$ac_cpp_err"; then
17333   ac_header_preproc=yes
17334 else
17335   echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17337
17338   ac_header_preproc=no
17339 fi
17340 rm -f conftest.err conftest.$ac_ext
17341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17342 echo "${ECHO_T}$ac_header_preproc" >&6
17343
17344 # So?  What about this header?
17345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17346   yes:no: )
17347     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17348 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17349     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17350 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17351     ac_header_preproc=yes
17352     ;;
17353   no:yes:* )
17354     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17355 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17356     { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
17357 echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
17358     { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17359 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17360     { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
17361 echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17362     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17363 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17364     { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17365 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17366     (
17367       cat <<\_ASBOX
17368 ## ------------------------------------ ##
17369 ## Report this to bug-coreutils@gnu.org ##
17370 ## ------------------------------------ ##
17371 _ASBOX
17372     ) |
17373       sed "s/^/$as_me: WARNING:     /" >&2
17374     ;;
17375 esac
17376 echo "$as_me:$LINENO: checking for locale.h" >&5
17377 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
17378 if test "${ac_cv_header_locale_h+set}" = set; then
17379   echo $ECHO_N "(cached) $ECHO_C" >&6
17380 else
17381   ac_cv_header_locale_h=$ac_header_preproc
17382 fi
17383 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17384 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
17385
17386 fi
17387
17388
17389
17390 for ac_func in setlocale
17391 do
17392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17393 echo "$as_me:$LINENO: checking for $ac_func" >&5
17394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17395 if eval "test \"\${$as_ac_var+set}\" = set"; then
17396   echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398   cat >conftest.$ac_ext <<_ACEOF
17399 /* confdefs.h.  */
17400 _ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h.  */
17404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17406 #define $ac_func innocuous_$ac_func
17407
17408 /* System header to define __stub macros and hopefully few prototypes,
17409     which can conflict with char $ac_func (); below.
17410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17411     <limits.h> exists even on freestanding compilers.  */
17412
17413 #ifdef __STDC__
17414 # include <limits.h>
17415 #else
17416 # include <assert.h>
17417 #endif
17418
17419 #undef $ac_func
17420
17421 /* Override any gcc2 internal prototype to avoid an error.  */
17422 #ifdef __cplusplus
17423 extern "C"
17424 {
17425 #endif
17426 /* We use char because int might match the return type of a gcc2
17427    builtin and then its argument prototype would still apply.  */
17428 char $ac_func ();
17429 /* The GNU C library defines this for functions which it implements
17430     to always fail with ENOSYS.  Some functions are actually named
17431     something starting with __ and the normal name is an alias.  */
17432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17433 choke me
17434 #else
17435 char (*f) () = $ac_func;
17436 #endif
17437 #ifdef __cplusplus
17438 }
17439 #endif
17440
17441 int
17442 main ()
17443 {
17444 return f != $ac_func;
17445   ;
17446   return 0;
17447 }
17448 _ACEOF
17449 rm -f conftest.$ac_objext conftest$ac_exeext
17450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17451   (eval $ac_link) 2>conftest.er1
17452   ac_status=$?
17453   grep -v '^ *+' conftest.er1 >conftest.err
17454   rm -f conftest.er1
17455   cat conftest.err >&5
17456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457   (exit $ac_status); } &&
17458          { ac_try='test -z "$ac_c_werror_flag"
17459                          || test ! -s conftest.err'
17460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461   (eval $ac_try) 2>&5
17462   ac_status=$?
17463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464   (exit $ac_status); }; } &&
17465          { ac_try='test -s conftest$ac_exeext'
17466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467   (eval $ac_try) 2>&5
17468   ac_status=$?
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); }; }; then
17471   eval "$as_ac_var=yes"
17472 else
17473   echo "$as_me: failed program was:" >&5
17474 sed 's/^/| /' conftest.$ac_ext >&5
17475
17476 eval "$as_ac_var=no"
17477 fi
17478 rm -f conftest.err conftest.$ac_objext \
17479       conftest$ac_exeext conftest.$ac_ext
17480 fi
17481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17483 if test `eval echo '${'$as_ac_var'}'` = yes; then
17484   cat >>confdefs.h <<_ACEOF
17485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17486 _ACEOF
17487
17488 fi
17489 done
17490
17491
17492 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17493 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
17494 # Irix 4.0.5F has the header but not the library.
17495 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17496   ac_have_func=yes
17497
17498 cat >>confdefs.h <<\_ACEOF
17499 #define SVR4 1
17500 _ACEOF
17501
17502 fi
17503
17504 if test $ac_have_func = no; then
17505   if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17506   echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17507 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
17508 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17509   echo $ECHO_N "(cached) $ECHO_C" >&6
17510 fi
17511 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17512 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
17513 else
17514   # Is the header compilable?
17515 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17516 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
17517 cat >conftest.$ac_ext <<_ACEOF
17518 /* confdefs.h.  */
17519 _ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h.  */
17523 $ac_includes_default
17524 #include <inq_stats/cpustats.h>
17525 _ACEOF
17526 rm -f conftest.$ac_objext
17527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17528   (eval $ac_compile) 2>conftest.er1
17529   ac_status=$?
17530   grep -v '^ *+' conftest.er1 >conftest.err
17531   rm -f conftest.er1
17532   cat conftest.err >&5
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); } &&
17535          { ac_try='test -z "$ac_c_werror_flag"
17536                          || test ! -s conftest.err'
17537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538   (eval $ac_try) 2>&5
17539   ac_status=$?
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); }; } &&
17542          { ac_try='test -s conftest.$ac_objext'
17543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544   (eval $ac_try) 2>&5
17545   ac_status=$?
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); }; }; then
17548   ac_header_compiler=yes
17549 else
17550   echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17552
17553 ac_header_compiler=no
17554 fi
17555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17557 echo "${ECHO_T}$ac_header_compiler" >&6
17558
17559 # Is the header present?
17560 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17561 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
17562 cat >conftest.$ac_ext <<_ACEOF
17563 /* confdefs.h.  */
17564 _ACEOF
17565 cat confdefs.h >>conftest.$ac_ext
17566 cat >>conftest.$ac_ext <<_ACEOF
17567 /* end confdefs.h.  */
17568 #include <inq_stats/cpustats.h>
17569 _ACEOF
17570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17571   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17572   ac_status=$?
17573   grep -v '^ *+' conftest.er1 >conftest.err
17574   rm -f conftest.er1
17575   cat conftest.err >&5
17576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577   (exit $ac_status); } >/dev/null; then
17578   if test -s conftest.err; then
17579     ac_cpp_err=$ac_c_preproc_warn_flag
17580     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17581   else
17582     ac_cpp_err=
17583   fi
17584 else
17585   ac_cpp_err=yes
17586 fi
17587 if test -z "$ac_cpp_err"; then
17588   ac_header_preproc=yes
17589 else
17590   echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17592
17593   ac_header_preproc=no
17594 fi
17595 rm -f conftest.err conftest.$ac_ext
17596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17597 echo "${ECHO_T}$ac_header_preproc" >&6
17598
17599 # So?  What about this header?
17600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17601   yes:no: )
17602     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17603 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17604     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17605 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17606     ac_header_preproc=yes
17607     ;;
17608   no:yes:* )
17609     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17610 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17611     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&5
17612 echo "$as_me: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&2;}
17613     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17614 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17615     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
17616 echo "$as_me: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17617     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17618 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17619     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17620 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17621     (
17622       cat <<\_ASBOX
17623 ## ------------------------------------ ##
17624 ## Report this to bug-coreutils@gnu.org ##
17625 ## ------------------------------------ ##
17626 _ASBOX
17627     ) |
17628       sed "s/^/$as_me: WARNING:     /" >&2
17629     ;;
17630 esac
17631 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17632 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
17633 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17634   echo $ECHO_N "(cached) $ECHO_C" >&6
17635 else
17636   ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17637 fi
17638 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17639 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
17640
17641 fi
17642 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17643   ac_have_func=yes
17644
17645 cat >>confdefs.h <<\_ACEOF
17646 #define UMAX 1
17647 _ACEOF
17648
17649
17650 cat >>confdefs.h <<\_ACEOF
17651 #define UMAX4_3 1
17652 _ACEOF
17653
17654 fi
17655
17656
17657 fi
17658
17659 if test $ac_have_func = no; then
17660   if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17661   echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17662 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17663 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17664   echo $ECHO_N "(cached) $ECHO_C" >&6
17665 fi
17666 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17667 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17668 else
17669   # Is the header compilable?
17670 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17671 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
17672 cat >conftest.$ac_ext <<_ACEOF
17673 /* confdefs.h.  */
17674 _ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h.  */
17678 $ac_includes_default
17679 #include <sys/cpustats.h>
17680 _ACEOF
17681 rm -f conftest.$ac_objext
17682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17683   (eval $ac_compile) 2>conftest.er1
17684   ac_status=$?
17685   grep -v '^ *+' conftest.er1 >conftest.err
17686   rm -f conftest.er1
17687   cat conftest.err >&5
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); } &&
17690          { ac_try='test -z "$ac_c_werror_flag"
17691                          || test ! -s conftest.err'
17692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693   (eval $ac_try) 2>&5
17694   ac_status=$?
17695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696   (exit $ac_status); }; } &&
17697          { ac_try='test -s conftest.$ac_objext'
17698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699   (eval $ac_try) 2>&5
17700   ac_status=$?
17701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702   (exit $ac_status); }; }; then
17703   ac_header_compiler=yes
17704 else
17705   echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17707
17708 ac_header_compiler=no
17709 fi
17710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17712 echo "${ECHO_T}$ac_header_compiler" >&6
17713
17714 # Is the header present?
17715 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17716 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
17717 cat >conftest.$ac_ext <<_ACEOF
17718 /* confdefs.h.  */
17719 _ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h.  */
17723 #include <sys/cpustats.h>
17724 _ACEOF
17725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17726   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17727   ac_status=$?
17728   grep -v '^ *+' conftest.er1 >conftest.err
17729   rm -f conftest.er1
17730   cat conftest.err >&5
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); } >/dev/null; then
17733   if test -s conftest.err; then
17734     ac_cpp_err=$ac_c_preproc_warn_flag
17735     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17736   else
17737     ac_cpp_err=
17738   fi
17739 else
17740   ac_cpp_err=yes
17741 fi
17742 if test -z "$ac_cpp_err"; then
17743   ac_header_preproc=yes
17744 else
17745   echo "$as_me: failed program was:" >&5
17746 sed 's/^/| /' conftest.$ac_ext >&5
17747
17748   ac_header_preproc=no
17749 fi
17750 rm -f conftest.err conftest.$ac_ext
17751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17752 echo "${ECHO_T}$ac_header_preproc" >&6
17753
17754 # So?  What about this header?
17755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17756   yes:no: )
17757     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17758 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17759     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17760 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17761     ac_header_preproc=yes
17762     ;;
17763   no:yes:* )
17764     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17765 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17766     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&5
17767 echo "$as_me: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&2;}
17768     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17769 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17770     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
17771 echo "$as_me: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17772     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17773 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17774     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17775 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17776     (
17777       cat <<\_ASBOX
17778 ## ------------------------------------ ##
17779 ## Report this to bug-coreutils@gnu.org ##
17780 ## ------------------------------------ ##
17781 _ASBOX
17782     ) |
17783       sed "s/^/$as_me: WARNING:     /" >&2
17784     ;;
17785 esac
17786 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17787 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17788 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17789   echo $ECHO_N "(cached) $ECHO_C" >&6
17790 else
17791   ac_cv_header_sys_cpustats_h=$ac_header_preproc
17792 fi
17793 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17794 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17795
17796 fi
17797 if test $ac_cv_header_sys_cpustats_h = yes; then
17798   ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17799 #define UMAX 1
17800 _ACEOF
17801
17802 fi
17803
17804
17805 fi
17806
17807 if test $ac_have_func = no; then
17808
17809 for ac_header in mach/mach.h
17810 do
17811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17813   echo "$as_me:$LINENO: checking for $ac_header" >&5
17814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17816   echo $ECHO_N "(cached) $ECHO_C" >&6
17817 fi
17818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17820 else
17821   # Is the header compilable?
17822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17824 cat >conftest.$ac_ext <<_ACEOF
17825 /* confdefs.h.  */
17826 _ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h.  */
17830 $ac_includes_default
17831 #include <$ac_header>
17832 _ACEOF
17833 rm -f conftest.$ac_objext
17834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17835   (eval $ac_compile) 2>conftest.er1
17836   ac_status=$?
17837   grep -v '^ *+' conftest.er1 >conftest.err
17838   rm -f conftest.er1
17839   cat conftest.err >&5
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); } &&
17842          { ac_try='test -z "$ac_c_werror_flag"
17843                          || test ! -s conftest.err'
17844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845   (eval $ac_try) 2>&5
17846   ac_status=$?
17847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); }; } &&
17849          { ac_try='test -s conftest.$ac_objext'
17850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851   (eval $ac_try) 2>&5
17852   ac_status=$?
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); }; }; then
17855   ac_header_compiler=yes
17856 else
17857   echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17859
17860 ac_header_compiler=no
17861 fi
17862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17864 echo "${ECHO_T}$ac_header_compiler" >&6
17865
17866 # Is the header present?
17867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17869 cat >conftest.$ac_ext <<_ACEOF
17870 /* confdefs.h.  */
17871 _ACEOF
17872 cat confdefs.h >>conftest.$ac_ext
17873 cat >>conftest.$ac_ext <<_ACEOF
17874 /* end confdefs.h.  */
17875 #include <$ac_header>
17876 _ACEOF
17877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17878   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17879   ac_status=$?
17880   grep -v '^ *+' conftest.er1 >conftest.err
17881   rm -f conftest.er1
17882   cat conftest.err >&5
17883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884   (exit $ac_status); } >/dev/null; then
17885   if test -s conftest.err; then
17886     ac_cpp_err=$ac_c_preproc_warn_flag
17887     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17888   else
17889     ac_cpp_err=
17890   fi
17891 else
17892   ac_cpp_err=yes
17893 fi
17894 if test -z "$ac_cpp_err"; then
17895   ac_header_preproc=yes
17896 else
17897   echo "$as_me: failed program was:" >&5
17898 sed 's/^/| /' conftest.$ac_ext >&5
17899
17900   ac_header_preproc=no
17901 fi
17902 rm -f conftest.err conftest.$ac_ext
17903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17904 echo "${ECHO_T}$ac_header_preproc" >&6
17905
17906 # So?  What about this header?
17907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17908   yes:no: )
17909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17913     ac_header_preproc=yes
17914     ;;
17915   no:yes:* )
17916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17918     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17919 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17920     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17922     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17923 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17926     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17928     (
17929       cat <<\_ASBOX
17930 ## ------------------------------------ ##
17931 ## Report this to bug-coreutils@gnu.org ##
17932 ## ------------------------------------ ##
17933 _ASBOX
17934     ) |
17935       sed "s/^/$as_me: WARNING:     /" >&2
17936     ;;
17937 esac
17938 echo "$as_me:$LINENO: checking for $ac_header" >&5
17939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17941   echo $ECHO_N "(cached) $ECHO_C" >&6
17942 else
17943   eval "$as_ac_Header=\$ac_header_preproc"
17944 fi
17945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17947
17948 fi
17949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17950   cat >>confdefs.h <<_ACEOF
17951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17952 _ACEOF
17953
17954 fi
17955
17956 done
17957
17958 fi
17959
17960
17961 for ac_header in nlist.h
17962 do
17963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17965   echo "$as_me:$LINENO: checking for $ac_header" >&5
17966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17968   echo $ECHO_N "(cached) $ECHO_C" >&6
17969 fi
17970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17972 else
17973   # Is the header compilable?
17974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17976 cat >conftest.$ac_ext <<_ACEOF
17977 /* confdefs.h.  */
17978 _ACEOF
17979 cat confdefs.h >>conftest.$ac_ext
17980 cat >>conftest.$ac_ext <<_ACEOF
17981 /* end confdefs.h.  */
17982 $ac_includes_default
17983 #include <$ac_header>
17984 _ACEOF
17985 rm -f conftest.$ac_objext
17986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17987   (eval $ac_compile) 2>conftest.er1
17988   ac_status=$?
17989   grep -v '^ *+' conftest.er1 >conftest.err
17990   rm -f conftest.er1
17991   cat conftest.err >&5
17992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993   (exit $ac_status); } &&
17994          { ac_try='test -z "$ac_c_werror_flag"
17995                          || test ! -s conftest.err'
17996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997   (eval $ac_try) 2>&5
17998   ac_status=$?
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); }; } &&
18001          { ac_try='test -s conftest.$ac_objext'
18002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003   (eval $ac_try) 2>&5
18004   ac_status=$?
18005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006   (exit $ac_status); }; }; then
18007   ac_header_compiler=yes
18008 else
18009   echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18011
18012 ac_header_compiler=no
18013 fi
18014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18016 echo "${ECHO_T}$ac_header_compiler" >&6
18017
18018 # Is the header present?
18019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18021 cat >conftest.$ac_ext <<_ACEOF
18022 /* confdefs.h.  */
18023 _ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h.  */
18027 #include <$ac_header>
18028 _ACEOF
18029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18031   ac_status=$?
18032   grep -v '^ *+' conftest.er1 >conftest.err
18033   rm -f conftest.er1
18034   cat conftest.err >&5
18035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036   (exit $ac_status); } >/dev/null; then
18037   if test -s conftest.err; then
18038     ac_cpp_err=$ac_c_preproc_warn_flag
18039     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18040   else
18041     ac_cpp_err=
18042   fi
18043 else
18044   ac_cpp_err=yes
18045 fi
18046 if test -z "$ac_cpp_err"; then
18047   ac_header_preproc=yes
18048 else
18049   echo "$as_me: failed program was:" >&5
18050 sed 's/^/| /' conftest.$ac_ext >&5
18051
18052   ac_header_preproc=no
18053 fi
18054 rm -f conftest.err conftest.$ac_ext
18055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18056 echo "${ECHO_T}$ac_header_preproc" >&6
18057
18058 # So?  What about this header?
18059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18060   yes:no: )
18061     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18063     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18065     ac_header_preproc=yes
18066     ;;
18067   no:yes:* )
18068     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18070     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18071 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18072     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18074     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18075 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18078     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18080     (
18081       cat <<\_ASBOX
18082 ## ------------------------------------ ##
18083 ## Report this to bug-coreutils@gnu.org ##
18084 ## ------------------------------------ ##
18085 _ASBOX
18086     ) |
18087       sed "s/^/$as_me: WARNING:     /" >&2
18088     ;;
18089 esac
18090 echo "$as_me:$LINENO: checking for $ac_header" >&5
18091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18093   echo $ECHO_N "(cached) $ECHO_C" >&6
18094 else
18095   eval "$as_ac_Header=\$ac_header_preproc"
18096 fi
18097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18099
18100 fi
18101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18102   cat >>confdefs.h <<_ACEOF
18103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18104 _ACEOF
18105  echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18106 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
18107 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18108   echo $ECHO_N "(cached) $ECHO_C" >&6
18109 else
18110   cat >conftest.$ac_ext <<_ACEOF
18111 /* confdefs.h.  */
18112 _ACEOF
18113 cat confdefs.h >>conftest.$ac_ext
18114 cat >>conftest.$ac_ext <<_ACEOF
18115 /* end confdefs.h.  */
18116 #include <nlist.h>
18117
18118 int
18119 main ()
18120 {
18121 static struct nlist ac_aggr;
18122 if (ac_aggr.n_un.n_name)
18123 return 0;
18124   ;
18125   return 0;
18126 }
18127 _ACEOF
18128 rm -f conftest.$ac_objext
18129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18130   (eval $ac_compile) 2>conftest.er1
18131   ac_status=$?
18132   grep -v '^ *+' conftest.er1 >conftest.err
18133   rm -f conftest.er1
18134   cat conftest.err >&5
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); } &&
18137          { ac_try='test -z "$ac_c_werror_flag"
18138                          || test ! -s conftest.err'
18139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140   (eval $ac_try) 2>&5
18141   ac_status=$?
18142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143   (exit $ac_status); }; } &&
18144          { ac_try='test -s conftest.$ac_objext'
18145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146   (eval $ac_try) 2>&5
18147   ac_status=$?
18148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149   (exit $ac_status); }; }; then
18150   ac_cv_member_struct_nlist_n_un_n_name=yes
18151 else
18152   echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.$ac_ext >&5
18154
18155 cat >conftest.$ac_ext <<_ACEOF
18156 /* confdefs.h.  */
18157 _ACEOF
18158 cat confdefs.h >>conftest.$ac_ext
18159 cat >>conftest.$ac_ext <<_ACEOF
18160 /* end confdefs.h.  */
18161 #include <nlist.h>
18162
18163 int
18164 main ()
18165 {
18166 static struct nlist ac_aggr;
18167 if (sizeof ac_aggr.n_un.n_name)
18168 return 0;
18169   ;
18170   return 0;
18171 }
18172 _ACEOF
18173 rm -f conftest.$ac_objext
18174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18175   (eval $ac_compile) 2>conftest.er1
18176   ac_status=$?
18177   grep -v '^ *+' conftest.er1 >conftest.err
18178   rm -f conftest.er1
18179   cat conftest.err >&5
18180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181   (exit $ac_status); } &&
18182          { ac_try='test -z "$ac_c_werror_flag"
18183                          || test ! -s conftest.err'
18184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185   (eval $ac_try) 2>&5
18186   ac_status=$?
18187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188   (exit $ac_status); }; } &&
18189          { ac_try='test -s conftest.$ac_objext'
18190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191   (eval $ac_try) 2>&5
18192   ac_status=$?
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); }; }; then
18195   ac_cv_member_struct_nlist_n_un_n_name=yes
18196 else
18197   echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18199
18200 ac_cv_member_struct_nlist_n_un_n_name=no
18201 fi
18202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18203 fi
18204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18205 fi
18206 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18207 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
18208 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18209
18210 cat >>confdefs.h <<_ACEOF
18211 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18212 _ACEOF
18213
18214
18215 cat >>confdefs.h <<\_ACEOF
18216 #define NLIST_NAME_UNION 1
18217 _ACEOF
18218
18219 fi
18220
18221
18222 fi
18223
18224 done
18225
18226 fi
18227 done
18228
18229
18230 # Some definitions of getloadavg require that the program be installed setgid.
18231 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18232 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
18233 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18234   echo $ECHO_N "(cached) $ECHO_C" >&6
18235 else
18236   cat >conftest.$ac_ext <<_ACEOF
18237 /* confdefs.h.  */
18238 _ACEOF
18239 cat confdefs.h >>conftest.$ac_ext
18240 cat >>conftest.$ac_ext <<_ACEOF
18241 /* end confdefs.h.  */
18242 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18243 #ifdef LDAV_PRIVILEGED
18244 Yowza Am I SETGID yet
18245 #endif
18246 _ACEOF
18247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18248   $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18249   ac_cv_func_getloadavg_setgid=yes
18250 else
18251   ac_cv_func_getloadavg_setgid=no
18252 fi
18253 rm -f conftest*
18254
18255 fi
18256 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18257 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
18258 if test $ac_cv_func_getloadavg_setgid = yes; then
18259   NEED_SETGID=true
18260
18261 cat >>confdefs.h <<\_ACEOF
18262 #define GETLOADAVG_PRIVILEGED 1
18263 _ACEOF
18264
18265 else
18266   NEED_SETGID=false
18267 fi
18268
18269 if test $ac_cv_func_getloadavg_setgid = yes; then
18270   echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18271 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
18272 if test "${ac_cv_group_kmem+set}" = set; then
18273   echo $ECHO_N "(cached) $ECHO_C" >&6
18274 else
18275    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
18276   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18277   # If we got an error (system does not support symlinks), try without -L.
18278   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18279   ac_cv_group_kmem=`echo $ac_ls_output \
18280     | sed -ne 's/[       ][      ]*/ /g;
18281                s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
18282                / /s/.* //;p;'`
18283
18284 fi
18285 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18286 echo "${ECHO_T}$ac_cv_group_kmem" >&6
18287   KMEM_GROUP=$ac_cv_group_kmem
18288 fi
18289 if test "x$ac_save_LIBS" = x; then
18290   GETLOADAVG_LIBS=$LIBS
18291 else
18292   GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18293 fi
18294 LIBS=$ac_save_LIBS
18295
18296
18297
18298
18299 for ac_header in stdio_ext.h
18300 do
18301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18303   echo "$as_me:$LINENO: checking for $ac_header" >&5
18304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18306   echo $ECHO_N "(cached) $ECHO_C" >&6
18307 fi
18308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18310 else
18311   # Is the header compilable?
18312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18314 cat >conftest.$ac_ext <<_ACEOF
18315 /* confdefs.h.  */
18316 _ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h.  */
18320 $ac_includes_default
18321 #include <$ac_header>
18322 _ACEOF
18323 rm -f conftest.$ac_objext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18325   (eval $ac_compile) 2>conftest.er1
18326   ac_status=$?
18327   grep -v '^ *+' conftest.er1 >conftest.err
18328   rm -f conftest.er1
18329   cat conftest.err >&5
18330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331   (exit $ac_status); } &&
18332          { ac_try='test -z "$ac_c_werror_flag"
18333                          || test ! -s conftest.err'
18334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335   (eval $ac_try) 2>&5
18336   ac_status=$?
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); }; } &&
18339          { ac_try='test -s conftest.$ac_objext'
18340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341   (eval $ac_try) 2>&5
18342   ac_status=$?
18343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344   (exit $ac_status); }; }; then
18345   ac_header_compiler=yes
18346 else
18347   echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18349
18350 ac_header_compiler=no
18351 fi
18352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18354 echo "${ECHO_T}$ac_header_compiler" >&6
18355
18356 # Is the header present?
18357 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18359 cat >conftest.$ac_ext <<_ACEOF
18360 /* confdefs.h.  */
18361 _ACEOF
18362 cat confdefs.h >>conftest.$ac_ext
18363 cat >>conftest.$ac_ext <<_ACEOF
18364 /* end confdefs.h.  */
18365 #include <$ac_header>
18366 _ACEOF
18367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18368   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18369   ac_status=$?
18370   grep -v '^ *+' conftest.er1 >conftest.err
18371   rm -f conftest.er1
18372   cat conftest.err >&5
18373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374   (exit $ac_status); } >/dev/null; then
18375   if test -s conftest.err; then
18376     ac_cpp_err=$ac_c_preproc_warn_flag
18377     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18378   else
18379     ac_cpp_err=
18380   fi
18381 else
18382   ac_cpp_err=yes
18383 fi
18384 if test -z "$ac_cpp_err"; then
18385   ac_header_preproc=yes
18386 else
18387   echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18389
18390   ac_header_preproc=no
18391 fi
18392 rm -f conftest.err conftest.$ac_ext
18393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18394 echo "${ECHO_T}$ac_header_preproc" >&6
18395
18396 # So?  What about this header?
18397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18398   yes:no: )
18399     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18403     ac_header_preproc=yes
18404     ;;
18405   no:yes:* )
18406     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18408     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18409 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18410     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18412     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18413 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18416     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18418     (
18419       cat <<\_ASBOX
18420 ## ------------------------------------ ##
18421 ## Report this to bug-coreutils@gnu.org ##
18422 ## ------------------------------------ ##
18423 _ASBOX
18424     ) |
18425       sed "s/^/$as_me: WARNING:     /" >&2
18426     ;;
18427 esac
18428 echo "$as_me:$LINENO: checking for $ac_header" >&5
18429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18431   echo $ECHO_N "(cached) $ECHO_C" >&6
18432 else
18433   eval "$as_ac_Header=\$ac_header_preproc"
18434 fi
18435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18437
18438 fi
18439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18440   cat >>confdefs.h <<_ACEOF
18441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18442 _ACEOF
18443
18444 fi
18445
18446 done
18447
18448
18449
18450
18451 for ac_func in getpass
18452 do
18453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18454 echo "$as_me:$LINENO: checking for $ac_func" >&5
18455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18456 if eval "test \"\${$as_ac_var+set}\" = set"; then
18457   echo $ECHO_N "(cached) $ECHO_C" >&6
18458 else
18459   cat >conftest.$ac_ext <<_ACEOF
18460 /* confdefs.h.  */
18461 _ACEOF
18462 cat confdefs.h >>conftest.$ac_ext
18463 cat >>conftest.$ac_ext <<_ACEOF
18464 /* end confdefs.h.  */
18465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18467 #define $ac_func innocuous_$ac_func
18468
18469 /* System header to define __stub macros and hopefully few prototypes,
18470     which can conflict with char $ac_func (); below.
18471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18472     <limits.h> exists even on freestanding compilers.  */
18473
18474 #ifdef __STDC__
18475 # include <limits.h>
18476 #else
18477 # include <assert.h>
18478 #endif
18479
18480 #undef $ac_func
18481
18482 /* Override any gcc2 internal prototype to avoid an error.  */
18483 #ifdef __cplusplus
18484 extern "C"
18485 {
18486 #endif
18487 /* We use char because int might match the return type of a gcc2
18488    builtin and then its argument prototype would still apply.  */
18489 char $ac_func ();
18490 /* The GNU C library defines this for functions which it implements
18491     to always fail with ENOSYS.  Some functions are actually named
18492     something starting with __ and the normal name is an alias.  */
18493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18494 choke me
18495 #else
18496 char (*f) () = $ac_func;
18497 #endif
18498 #ifdef __cplusplus
18499 }
18500 #endif
18501
18502 int
18503 main ()
18504 {
18505 return f != $ac_func;
18506   ;
18507   return 0;
18508 }
18509 _ACEOF
18510 rm -f conftest.$ac_objext conftest$ac_exeext
18511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18512   (eval $ac_link) 2>conftest.er1
18513   ac_status=$?
18514   grep -v '^ *+' conftest.er1 >conftest.err
18515   rm -f conftest.er1
18516   cat conftest.err >&5
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); } &&
18519          { ac_try='test -z "$ac_c_werror_flag"
18520                          || test ! -s conftest.err'
18521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522   (eval $ac_try) 2>&5
18523   ac_status=$?
18524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525   (exit $ac_status); }; } &&
18526          { ac_try='test -s conftest$ac_exeext'
18527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528   (eval $ac_try) 2>&5
18529   ac_status=$?
18530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531   (exit $ac_status); }; }; then
18532   eval "$as_ac_var=yes"
18533 else
18534   echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18536
18537 eval "$as_ac_var=no"
18538 fi
18539 rm -f conftest.err conftest.$ac_objext \
18540       conftest$ac_exeext conftest.$ac_ext
18541 fi
18542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18544 if test `eval echo '${'$as_ac_var'}'` = yes; then
18545   cat >>confdefs.h <<_ACEOF
18546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18547 _ACEOF
18548
18549 else
18550   case $LIBOBJS in
18551     "$ac_func.$ac_objext"   | \
18552   *" $ac_func.$ac_objext"   | \
18553     "$ac_func.$ac_objext "* | \
18554   *" $ac_func.$ac_objext "* ) ;;
18555   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
18556 esac
18557
18558 fi
18559 done
18560
18561
18562   if test $ac_cv_func_getpass = no; then
18563
18564
18565   :
18566
18567
18568
18569
18570
18571   :
18572
18573   fi
18574
18575
18576
18577 for ac_func in getusershell
18578 do
18579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18580 echo "$as_me:$LINENO: checking for $ac_func" >&5
18581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18582 if eval "test \"\${$as_ac_var+set}\" = set"; then
18583   echo $ECHO_N "(cached) $ECHO_C" >&6
18584 else
18585   cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h.  */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h.  */
18591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18593 #define $ac_func innocuous_$ac_func
18594
18595 /* System header to define __stub macros and hopefully few prototypes,
18596     which can conflict with char $ac_func (); below.
18597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18598     <limits.h> exists even on freestanding compilers.  */
18599
18600 #ifdef __STDC__
18601 # include <limits.h>
18602 #else
18603 # include <assert.h>
18604 #endif
18605
18606 #undef $ac_func
18607
18608 /* Override any gcc2 internal prototype to avoid an error.  */
18609 #ifdef __cplusplus
18610 extern "C"
18611 {
18612 #endif
18613 /* We use char because int might match the return type of a gcc2
18614    builtin and then its argument prototype would still apply.  */
18615 char $ac_func ();
18616 /* The GNU C library defines this for functions which it implements
18617     to always fail with ENOSYS.  Some functions are actually named
18618     something starting with __ and the normal name is an alias.  */
18619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18620 choke me
18621 #else
18622 char (*f) () = $ac_func;
18623 #endif
18624 #ifdef __cplusplus
18625 }
18626 #endif
18627
18628 int
18629 main ()
18630 {
18631 return f != $ac_func;
18632   ;
18633   return 0;
18634 }
18635 _ACEOF
18636 rm -f conftest.$ac_objext conftest$ac_exeext
18637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18638   (eval $ac_link) 2>conftest.er1
18639   ac_status=$?
18640   grep -v '^ *+' conftest.er1 >conftest.err
18641   rm -f conftest.er1
18642   cat conftest.err >&5
18643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644   (exit $ac_status); } &&
18645          { ac_try='test -z "$ac_c_werror_flag"
18646                          || test ! -s conftest.err'
18647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18648   (eval $ac_try) 2>&5
18649   ac_status=$?
18650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651   (exit $ac_status); }; } &&
18652          { ac_try='test -s conftest$ac_exeext'
18653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18654   (eval $ac_try) 2>&5
18655   ac_status=$?
18656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657   (exit $ac_status); }; }; then
18658   eval "$as_ac_var=yes"
18659 else
18660   echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18662
18663 eval "$as_ac_var=no"
18664 fi
18665 rm -f conftest.err conftest.$ac_objext \
18666       conftest$ac_exeext conftest.$ac_ext
18667 fi
18668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18670 if test `eval echo '${'$as_ac_var'}'` = yes; then
18671   cat >>confdefs.h <<_ACEOF
18672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18673 _ACEOF
18674
18675 else
18676   case $LIBOBJS in
18677     "$ac_func.$ac_objext"   | \
18678   *" $ac_func.$ac_objext"   | \
18679     "$ac_func.$ac_objext "* | \
18680   *" $ac_func.$ac_objext "* ) ;;
18681   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
18682 esac
18683
18684 fi
18685 done
18686
18687
18688   if test $ac_cv_func_getusershell = no; then
18689
18690
18691
18692   :
18693
18694
18695
18696
18697
18698
18699   fi
18700
18701
18702
18703 for ac_func in memchr
18704 do
18705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18706 echo "$as_me:$LINENO: checking for $ac_func" >&5
18707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18708 if eval "test \"\${$as_ac_var+set}\" = set"; then
18709   echo $ECHO_N "(cached) $ECHO_C" >&6
18710 else
18711   cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h.  */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h.  */
18717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18719 #define $ac_func innocuous_$ac_func
18720
18721 /* System header to define __stub macros and hopefully few prototypes,
18722     which can conflict with char $ac_func (); below.
18723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18724     <limits.h> exists even on freestanding compilers.  */
18725
18726 #ifdef __STDC__
18727 # include <limits.h>
18728 #else
18729 # include <assert.h>
18730 #endif
18731
18732 #undef $ac_func
18733
18734 /* Override any gcc2 internal prototype to avoid an error.  */
18735 #ifdef __cplusplus
18736 extern "C"
18737 {
18738 #endif
18739 /* We use char because int might match the return type of a gcc2
18740    builtin and then its argument prototype would still apply.  */
18741 char $ac_func ();
18742 /* The GNU C library defines this for functions which it implements
18743     to always fail with ENOSYS.  Some functions are actually named
18744     something starting with __ and the normal name is an alias.  */
18745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18746 choke me
18747 #else
18748 char (*f) () = $ac_func;
18749 #endif
18750 #ifdef __cplusplus
18751 }
18752 #endif
18753
18754 int
18755 main ()
18756 {
18757 return f != $ac_func;
18758   ;
18759   return 0;
18760 }
18761 _ACEOF
18762 rm -f conftest.$ac_objext conftest$ac_exeext
18763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18764   (eval $ac_link) 2>conftest.er1
18765   ac_status=$?
18766   grep -v '^ *+' conftest.er1 >conftest.err
18767   rm -f conftest.er1
18768   cat conftest.err >&5
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); } &&
18771          { ac_try='test -z "$ac_c_werror_flag"
18772                          || test ! -s conftest.err'
18773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18774   (eval $ac_try) 2>&5
18775   ac_status=$?
18776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777   (exit $ac_status); }; } &&
18778          { ac_try='test -s conftest$ac_exeext'
18779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780   (eval $ac_try) 2>&5
18781   ac_status=$?
18782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783   (exit $ac_status); }; }; then
18784   eval "$as_ac_var=yes"
18785 else
18786   echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18788
18789 eval "$as_ac_var=no"
18790 fi
18791 rm -f conftest.err conftest.$ac_objext \
18792       conftest$ac_exeext conftest.$ac_ext
18793 fi
18794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18796 if test `eval echo '${'$as_ac_var'}'` = yes; then
18797   cat >>confdefs.h <<_ACEOF
18798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18799 _ACEOF
18800
18801 else
18802   case $LIBOBJS in
18803     "$ac_func.$ac_objext"   | \
18804   *" $ac_func.$ac_objext"   | \
18805     "$ac_func.$ac_objext "* | \
18806   *" $ac_func.$ac_objext "* ) ;;
18807   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
18808 esac
18809
18810 fi
18811 done
18812
18813
18814   if test $ac_cv_func_memchr = no; then
18815
18816
18817 for ac_header in bp-sym.h
18818 do
18819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18821   echo "$as_me:$LINENO: checking for $ac_header" >&5
18822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18824   echo $ECHO_N "(cached) $ECHO_C" >&6
18825 fi
18826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18828 else
18829   # Is the header compilable?
18830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18832 cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h.  */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h.  */
18838 $ac_includes_default
18839 #include <$ac_header>
18840 _ACEOF
18841 rm -f conftest.$ac_objext
18842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18843   (eval $ac_compile) 2>conftest.er1
18844   ac_status=$?
18845   grep -v '^ *+' conftest.er1 >conftest.err
18846   rm -f conftest.er1
18847   cat conftest.err >&5
18848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849   (exit $ac_status); } &&
18850          { ac_try='test -z "$ac_c_werror_flag"
18851                          || test ! -s conftest.err'
18852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853   (eval $ac_try) 2>&5
18854   ac_status=$?
18855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856   (exit $ac_status); }; } &&
18857          { ac_try='test -s conftest.$ac_objext'
18858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859   (eval $ac_try) 2>&5
18860   ac_status=$?
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); }; }; then
18863   ac_header_compiler=yes
18864 else
18865   echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18867
18868 ac_header_compiler=no
18869 fi
18870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18872 echo "${ECHO_T}$ac_header_compiler" >&6
18873
18874 # Is the header present?
18875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18877 cat >conftest.$ac_ext <<_ACEOF
18878 /* confdefs.h.  */
18879 _ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h.  */
18883 #include <$ac_header>
18884 _ACEOF
18885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18887   ac_status=$?
18888   grep -v '^ *+' conftest.er1 >conftest.err
18889   rm -f conftest.er1
18890   cat conftest.err >&5
18891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892   (exit $ac_status); } >/dev/null; then
18893   if test -s conftest.err; then
18894     ac_cpp_err=$ac_c_preproc_warn_flag
18895     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18896   else
18897     ac_cpp_err=
18898   fi
18899 else
18900   ac_cpp_err=yes
18901 fi
18902 if test -z "$ac_cpp_err"; then
18903   ac_header_preproc=yes
18904 else
18905   echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18907
18908   ac_header_preproc=no
18909 fi
18910 rm -f conftest.err conftest.$ac_ext
18911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18912 echo "${ECHO_T}$ac_header_preproc" >&6
18913
18914 # So?  What about this header?
18915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18916   yes:no: )
18917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18921     ac_header_preproc=yes
18922     ;;
18923   no:yes:* )
18924     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18926     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18927 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18928     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18930     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18931 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18934     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18936     (
18937       cat <<\_ASBOX
18938 ## ------------------------------------ ##
18939 ## Report this to bug-coreutils@gnu.org ##
18940 ## ------------------------------------ ##
18941 _ASBOX
18942     ) |
18943       sed "s/^/$as_me: WARNING:     /" >&2
18944     ;;
18945 esac
18946 echo "$as_me:$LINENO: checking for $ac_header" >&5
18947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18949   echo $ECHO_N "(cached) $ECHO_C" >&6
18950 else
18951   eval "$as_ac_Header=\$ac_header_preproc"
18952 fi
18953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18955
18956 fi
18957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18958   cat >>confdefs.h <<_ACEOF
18959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18960 _ACEOF
18961
18962 fi
18963
18964 done
18965
18966
18967   fi
18968
18969
18970
18971 for ac_func in memcpy
18972 do
18973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18974 echo "$as_me:$LINENO: checking for $ac_func" >&5
18975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18976 if eval "test \"\${$as_ac_var+set}\" = set"; then
18977   echo $ECHO_N "(cached) $ECHO_C" >&6
18978 else
18979   cat >conftest.$ac_ext <<_ACEOF
18980 /* confdefs.h.  */
18981 _ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h.  */
18985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18987 #define $ac_func innocuous_$ac_func
18988
18989 /* System header to define __stub macros and hopefully few prototypes,
18990     which can conflict with char $ac_func (); below.
18991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18992     <limits.h> exists even on freestanding compilers.  */
18993
18994 #ifdef __STDC__
18995 # include <limits.h>
18996 #else
18997 # include <assert.h>
18998 #endif
18999
19000 #undef $ac_func
19001
19002 /* Override any gcc2 internal prototype to avoid an error.  */
19003 #ifdef __cplusplus
19004 extern "C"
19005 {
19006 #endif
19007 /* We use char because int might match the return type of a gcc2
19008    builtin and then its argument prototype would still apply.  */
19009 char $ac_func ();
19010 /* The GNU C library defines this for functions which it implements
19011     to always fail with ENOSYS.  Some functions are actually named
19012     something starting with __ and the normal name is an alias.  */
19013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19014 choke me
19015 #else
19016 char (*f) () = $ac_func;
19017 #endif
19018 #ifdef __cplusplus
19019 }
19020 #endif
19021
19022 int
19023 main ()
19024 {
19025 return f != $ac_func;
19026   ;
19027   return 0;
19028 }
19029 _ACEOF
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19032   (eval $ac_link) 2>conftest.er1
19033   ac_status=$?
19034   grep -v '^ *+' conftest.er1 >conftest.err
19035   rm -f conftest.er1
19036   cat conftest.err >&5
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); } &&
19039          { ac_try='test -z "$ac_c_werror_flag"
19040                          || test ! -s conftest.err'
19041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042   (eval $ac_try) 2>&5
19043   ac_status=$?
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); }; } &&
19046          { ac_try='test -s conftest$ac_exeext'
19047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048   (eval $ac_try) 2>&5
19049   ac_status=$?
19050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051   (exit $ac_status); }; }; then
19052   eval "$as_ac_var=yes"
19053 else
19054   echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19056
19057 eval "$as_ac_var=no"
19058 fi
19059 rm -f conftest.err conftest.$ac_objext \
19060       conftest$ac_exeext conftest.$ac_ext
19061 fi
19062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19064 if test `eval echo '${'$as_ac_var'}'` = yes; then
19065   cat >>confdefs.h <<_ACEOF
19066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19067 _ACEOF
19068
19069 else
19070   case $LIBOBJS in
19071     "$ac_func.$ac_objext"   | \
19072   *" $ac_func.$ac_objext"   | \
19073     "$ac_func.$ac_objext "* | \
19074   *" $ac_func.$ac_objext "* ) ;;
19075   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19076 esac
19077
19078 fi
19079 done
19080
19081
19082   if test $ac_cv_func_memcpy = no; then
19083
19084   :
19085
19086   fi
19087
19088
19089
19090 for ac_func in memmove
19091 do
19092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19093 echo "$as_me:$LINENO: checking for $ac_func" >&5
19094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19095 if eval "test \"\${$as_ac_var+set}\" = set"; then
19096   echo $ECHO_N "(cached) $ECHO_C" >&6
19097 else
19098   cat >conftest.$ac_ext <<_ACEOF
19099 /* confdefs.h.  */
19100 _ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h.  */
19104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19106 #define $ac_func innocuous_$ac_func
19107
19108 /* System header to define __stub macros and hopefully few prototypes,
19109     which can conflict with char $ac_func (); below.
19110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19111     <limits.h> exists even on freestanding compilers.  */
19112
19113 #ifdef __STDC__
19114 # include <limits.h>
19115 #else
19116 # include <assert.h>
19117 #endif
19118
19119 #undef $ac_func
19120
19121 /* Override any gcc2 internal prototype to avoid an error.  */
19122 #ifdef __cplusplus
19123 extern "C"
19124 {
19125 #endif
19126 /* We use char because int might match the return type of a gcc2
19127    builtin and then its argument prototype would still apply.  */
19128 char $ac_func ();
19129 /* The GNU C library defines this for functions which it implements
19130     to always fail with ENOSYS.  Some functions are actually named
19131     something starting with __ and the normal name is an alias.  */
19132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19133 choke me
19134 #else
19135 char (*f) () = $ac_func;
19136 #endif
19137 #ifdef __cplusplus
19138 }
19139 #endif
19140
19141 int
19142 main ()
19143 {
19144 return f != $ac_func;
19145   ;
19146   return 0;
19147 }
19148 _ACEOF
19149 rm -f conftest.$ac_objext conftest$ac_exeext
19150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19151   (eval $ac_link) 2>conftest.er1
19152   ac_status=$?
19153   grep -v '^ *+' conftest.er1 >conftest.err
19154   rm -f conftest.er1
19155   cat conftest.err >&5
19156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157   (exit $ac_status); } &&
19158          { ac_try='test -z "$ac_c_werror_flag"
19159                          || test ! -s conftest.err'
19160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161   (eval $ac_try) 2>&5
19162   ac_status=$?
19163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164   (exit $ac_status); }; } &&
19165          { ac_try='test -s conftest$ac_exeext'
19166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167   (eval $ac_try) 2>&5
19168   ac_status=$?
19169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170   (exit $ac_status); }; }; then
19171   eval "$as_ac_var=yes"
19172 else
19173   echo "$as_me: failed program was:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19175
19176 eval "$as_ac_var=no"
19177 fi
19178 rm -f conftest.err conftest.$ac_objext \
19179       conftest$ac_exeext conftest.$ac_ext
19180 fi
19181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19183 if test `eval echo '${'$as_ac_var'}'` = yes; then
19184   cat >>confdefs.h <<_ACEOF
19185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19186 _ACEOF
19187
19188 else
19189   case $LIBOBJS in
19190     "$ac_func.$ac_objext"   | \
19191   *" $ac_func.$ac_objext"   | \
19192     "$ac_func.$ac_objext "* | \
19193   *" $ac_func.$ac_objext "* ) ;;
19194   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19195 esac
19196
19197 fi
19198 done
19199
19200
19201   if test $ac_cv_func_memmove = no; then
19202
19203   :
19204
19205   fi
19206
19207
19208
19209
19210
19211 for ac_func in memrchr
19212 do
19213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19214 echo "$as_me:$LINENO: checking for $ac_func" >&5
19215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19216 if eval "test \"\${$as_ac_var+set}\" = set"; then
19217   echo $ECHO_N "(cached) $ECHO_C" >&6
19218 else
19219   cat >conftest.$ac_ext <<_ACEOF
19220 /* confdefs.h.  */
19221 _ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h.  */
19225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19227 #define $ac_func innocuous_$ac_func
19228
19229 /* System header to define __stub macros and hopefully few prototypes,
19230     which can conflict with char $ac_func (); below.
19231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19232     <limits.h> exists even on freestanding compilers.  */
19233
19234 #ifdef __STDC__
19235 # include <limits.h>
19236 #else
19237 # include <assert.h>
19238 #endif
19239
19240 #undef $ac_func
19241
19242 /* Override any gcc2 internal prototype to avoid an error.  */
19243 #ifdef __cplusplus
19244 extern "C"
19245 {
19246 #endif
19247 /* We use char because int might match the return type of a gcc2
19248    builtin and then its argument prototype would still apply.  */
19249 char $ac_func ();
19250 /* The GNU C library defines this for functions which it implements
19251     to always fail with ENOSYS.  Some functions are actually named
19252     something starting with __ and the normal name is an alias.  */
19253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19254 choke me
19255 #else
19256 char (*f) () = $ac_func;
19257 #endif
19258 #ifdef __cplusplus
19259 }
19260 #endif
19261
19262 int
19263 main ()
19264 {
19265 return f != $ac_func;
19266   ;
19267   return 0;
19268 }
19269 _ACEOF
19270 rm -f conftest.$ac_objext conftest$ac_exeext
19271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19272   (eval $ac_link) 2>conftest.er1
19273   ac_status=$?
19274   grep -v '^ *+' conftest.er1 >conftest.err
19275   rm -f conftest.er1
19276   cat conftest.err >&5
19277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278   (exit $ac_status); } &&
19279          { ac_try='test -z "$ac_c_werror_flag"
19280                          || test ! -s conftest.err'
19281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282   (eval $ac_try) 2>&5
19283   ac_status=$?
19284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285   (exit $ac_status); }; } &&
19286          { ac_try='test -s conftest$ac_exeext'
19287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288   (eval $ac_try) 2>&5
19289   ac_status=$?
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); }; }; then
19292   eval "$as_ac_var=yes"
19293 else
19294   echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19296
19297 eval "$as_ac_var=no"
19298 fi
19299 rm -f conftest.err conftest.$ac_objext \
19300       conftest$ac_exeext conftest.$ac_ext
19301 fi
19302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19304 if test `eval echo '${'$as_ac_var'}'` = yes; then
19305   cat >>confdefs.h <<_ACEOF
19306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19307 _ACEOF
19308
19309 else
19310   case $LIBOBJS in
19311     "$ac_func.$ac_objext"   | \
19312   *" $ac_func.$ac_objext"   | \
19313     "$ac_func.$ac_objext "* | \
19314   *" $ac_func.$ac_objext "* ) ;;
19315   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19316 esac
19317
19318 fi
19319 done
19320
19321
19322   if test $ac_cv_func_memrchr = no; then
19323     :
19324   fi
19325
19326
19327
19328 for ac_func in memset
19329 do
19330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19331 echo "$as_me:$LINENO: checking for $ac_func" >&5
19332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19333 if eval "test \"\${$as_ac_var+set}\" = set"; then
19334   echo $ECHO_N "(cached) $ECHO_C" >&6
19335 else
19336   cat >conftest.$ac_ext <<_ACEOF
19337 /* confdefs.h.  */
19338 _ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h.  */
19342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19344 #define $ac_func innocuous_$ac_func
19345
19346 /* System header to define __stub macros and hopefully few prototypes,
19347     which can conflict with char $ac_func (); below.
19348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19349     <limits.h> exists even on freestanding compilers.  */
19350
19351 #ifdef __STDC__
19352 # include <limits.h>
19353 #else
19354 # include <assert.h>
19355 #endif
19356
19357 #undef $ac_func
19358
19359 /* Override any gcc2 internal prototype to avoid an error.  */
19360 #ifdef __cplusplus
19361 extern "C"
19362 {
19363 #endif
19364 /* We use char because int might match the return type of a gcc2
19365    builtin and then its argument prototype would still apply.  */
19366 char $ac_func ();
19367 /* The GNU C library defines this for functions which it implements
19368     to always fail with ENOSYS.  Some functions are actually named
19369     something starting with __ and the normal name is an alias.  */
19370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19371 choke me
19372 #else
19373 char (*f) () = $ac_func;
19374 #endif
19375 #ifdef __cplusplus
19376 }
19377 #endif
19378
19379 int
19380 main ()
19381 {
19382 return f != $ac_func;
19383   ;
19384   return 0;
19385 }
19386 _ACEOF
19387 rm -f conftest.$ac_objext conftest$ac_exeext
19388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19389   (eval $ac_link) 2>conftest.er1
19390   ac_status=$?
19391   grep -v '^ *+' conftest.er1 >conftest.err
19392   rm -f conftest.er1
19393   cat conftest.err >&5
19394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395   (exit $ac_status); } &&
19396          { ac_try='test -z "$ac_c_werror_flag"
19397                          || test ! -s conftest.err'
19398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399   (eval $ac_try) 2>&5
19400   ac_status=$?
19401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402   (exit $ac_status); }; } &&
19403          { ac_try='test -s conftest$ac_exeext'
19404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405   (eval $ac_try) 2>&5
19406   ac_status=$?
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); }; }; then
19409   eval "$as_ac_var=yes"
19410 else
19411   echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19413
19414 eval "$as_ac_var=no"
19415 fi
19416 rm -f conftest.err conftest.$ac_objext \
19417       conftest$ac_exeext conftest.$ac_ext
19418 fi
19419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19421 if test `eval echo '${'$as_ac_var'}'` = yes; then
19422   cat >>confdefs.h <<_ACEOF
19423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19424 _ACEOF
19425
19426 else
19427   case $LIBOBJS in
19428     "$ac_func.$ac_objext"   | \
19429   *" $ac_func.$ac_objext"   | \
19430     "$ac_func.$ac_objext "* | \
19431   *" $ac_func.$ac_objext "* ) ;;
19432   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19433 esac
19434
19435 fi
19436 done
19437
19438
19439   if test $ac_cv_func_memset = no; then
19440
19441   :
19442
19443   fi
19444
19445
19446
19447
19448 for ac_header in stdlib.h sys/time.h unistd.h
19449 do
19450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19452   echo "$as_me:$LINENO: checking for $ac_header" >&5
19453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19455   echo $ECHO_N "(cached) $ECHO_C" >&6
19456 fi
19457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19459 else
19460   # Is the header compilable?
19461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
19470 #include <$ac_header>
19471 _ACEOF
19472 rm -f conftest.$ac_objext
19473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19474   (eval $ac_compile) 2>conftest.er1
19475   ac_status=$?
19476   grep -v '^ *+' conftest.er1 >conftest.err
19477   rm -f conftest.er1
19478   cat conftest.err >&5
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); } &&
19481          { ac_try='test -z "$ac_c_werror_flag"
19482                          || test ! -s conftest.err'
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); }; } &&
19488          { ac_try='test -s conftest.$ac_objext'
19489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490   (eval $ac_try) 2>&5
19491   ac_status=$?
19492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493   (exit $ac_status); }; }; then
19494   ac_header_compiler=yes
19495 else
19496   echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19498
19499 ac_header_compiler=no
19500 fi
19501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19503 echo "${ECHO_T}$ac_header_compiler" >&6
19504
19505 # Is the header present?
19506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19508 cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h.  */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h.  */
19514 #include <$ac_header>
19515 _ACEOF
19516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19518   ac_status=$?
19519   grep -v '^ *+' conftest.er1 >conftest.err
19520   rm -f conftest.er1
19521   cat conftest.err >&5
19522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523   (exit $ac_status); } >/dev/null; then
19524   if test -s conftest.err; then
19525     ac_cpp_err=$ac_c_preproc_warn_flag
19526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19527   else
19528     ac_cpp_err=
19529   fi
19530 else
19531   ac_cpp_err=yes
19532 fi
19533 if test -z "$ac_cpp_err"; then
19534   ac_header_preproc=yes
19535 else
19536   echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19538
19539   ac_header_preproc=no
19540 fi
19541 rm -f conftest.err conftest.$ac_ext
19542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19543 echo "${ECHO_T}$ac_header_preproc" >&6
19544
19545 # So?  What about this header?
19546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19547   yes:no: )
19548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19552     ac_header_preproc=yes
19553     ;;
19554   no:yes:* )
19555     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19557     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19558 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19559     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19561     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19562 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19565     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19567     (
19568       cat <<\_ASBOX
19569 ## ------------------------------------ ##
19570 ## Report this to bug-coreutils@gnu.org ##
19571 ## ------------------------------------ ##
19572 _ASBOX
19573     ) |
19574       sed "s/^/$as_me: WARNING:     /" >&2
19575     ;;
19576 esac
19577 echo "$as_me:$LINENO: checking for $ac_header" >&5
19578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19580   echo $ECHO_N "(cached) $ECHO_C" >&6
19581 else
19582   eval "$as_ac_Header=\$ac_header_preproc"
19583 fi
19584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19586
19587 fi
19588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19589   cat >>confdefs.h <<_ACEOF
19590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19591 _ACEOF
19592
19593 fi
19594
19595 done
19596
19597
19598 for ac_func in alarm
19599 do
19600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19601 echo "$as_me:$LINENO: checking for $ac_func" >&5
19602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19603 if eval "test \"\${$as_ac_var+set}\" = set"; then
19604   echo $ECHO_N "(cached) $ECHO_C" >&6
19605 else
19606   cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h.  */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h.  */
19612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19614 #define $ac_func innocuous_$ac_func
19615
19616 /* System header to define __stub macros and hopefully few prototypes,
19617     which can conflict with char $ac_func (); below.
19618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19619     <limits.h> exists even on freestanding compilers.  */
19620
19621 #ifdef __STDC__
19622 # include <limits.h>
19623 #else
19624 # include <assert.h>
19625 #endif
19626
19627 #undef $ac_func
19628
19629 /* Override any gcc2 internal prototype to avoid an error.  */
19630 #ifdef __cplusplus
19631 extern "C"
19632 {
19633 #endif
19634 /* We use char because int might match the return type of a gcc2
19635    builtin and then its argument prototype would still apply.  */
19636 char $ac_func ();
19637 /* The GNU C library defines this for functions which it implements
19638     to always fail with ENOSYS.  Some functions are actually named
19639     something starting with __ and the normal name is an alias.  */
19640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19641 choke me
19642 #else
19643 char (*f) () = $ac_func;
19644 #endif
19645 #ifdef __cplusplus
19646 }
19647 #endif
19648
19649 int
19650 main ()
19651 {
19652 return f != $ac_func;
19653   ;
19654   return 0;
19655 }
19656 _ACEOF
19657 rm -f conftest.$ac_objext conftest$ac_exeext
19658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19659   (eval $ac_link) 2>conftest.er1
19660   ac_status=$?
19661   grep -v '^ *+' conftest.er1 >conftest.err
19662   rm -f conftest.er1
19663   cat conftest.err >&5
19664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665   (exit $ac_status); } &&
19666          { ac_try='test -z "$ac_c_werror_flag"
19667                          || test ! -s conftest.err'
19668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669   (eval $ac_try) 2>&5
19670   ac_status=$?
19671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672   (exit $ac_status); }; } &&
19673          { ac_try='test -s conftest$ac_exeext'
19674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675   (eval $ac_try) 2>&5
19676   ac_status=$?
19677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678   (exit $ac_status); }; }; then
19679   eval "$as_ac_var=yes"
19680 else
19681   echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19683
19684 eval "$as_ac_var=no"
19685 fi
19686 rm -f conftest.err conftest.$ac_objext \
19687       conftest$ac_exeext conftest.$ac_ext
19688 fi
19689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19691 if test `eval echo '${'$as_ac_var'}'` = yes; then
19692   cat >>confdefs.h <<_ACEOF
19693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19694 _ACEOF
19695
19696 fi
19697 done
19698
19699 echo "$as_me:$LINENO: checking for working mktime" >&5
19700 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
19701 if test "${ac_cv_func_working_mktime+set}" = set; then
19702   echo $ECHO_N "(cached) $ECHO_C" >&6
19703 else
19704   if test "$cross_compiling" = yes; then
19705   ac_cv_func_working_mktime=no
19706 else
19707   cat >conftest.$ac_ext <<_ACEOF
19708 /* confdefs.h.  */
19709 _ACEOF
19710 cat confdefs.h >>conftest.$ac_ext
19711 cat >>conftest.$ac_ext <<_ACEOF
19712 /* end confdefs.h.  */
19713 /* Test program from Paul Eggert and Tony Leneis.  */
19714 #if TIME_WITH_SYS_TIME
19715 # include <sys/time.h>
19716 # include <time.h>
19717 #else
19718 # if HAVE_SYS_TIME_H
19719 #  include <sys/time.h>
19720 # else
19721 #  include <time.h>
19722 # endif
19723 #endif
19724
19725 #if HAVE_STDLIB_H
19726 # include <stdlib.h>
19727 #endif
19728
19729 #if HAVE_UNISTD_H
19730 # include <unistd.h>
19731 #endif
19732
19733 #if !HAVE_ALARM
19734 # define alarm(X) /* empty */
19735 #endif
19736
19737 /* Work around redefinition to rpl_putenv by other config tests.  */
19738 #undef putenv
19739
19740 static time_t time_t_max;
19741 static time_t time_t_min;
19742
19743 /* Values we'll use to set the TZ environment variable.  */
19744 static char *tz_strings[] = {
19745   (char *) 0, "TZ=GMT0", "TZ=JST-9",
19746   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19747 };
19748 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19749
19750 /* Fail if mktime fails to convert a date in the spring-forward gap.
19751    Based on a problem report from Andreas Jaeger.  */
19752 static void
19753 spring_forward_gap ()
19754 {
19755   /* glibc (up to about 1998-10-07) failed this test. */
19756   struct tm tm;
19757
19758   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19759      instead of "TZ=America/Vancouver" in order to detect the bug even
19760      on systems that don't support the Olson extension, or don't have the
19761      full zoneinfo tables installed.  */
19762   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19763
19764   tm.tm_year = 98;
19765   tm.tm_mon = 3;
19766   tm.tm_mday = 5;
19767   tm.tm_hour = 2;
19768   tm.tm_min = 0;
19769   tm.tm_sec = 0;
19770   tm.tm_isdst = -1;
19771   if (mktime (&tm) == (time_t)-1)
19772     exit (1);
19773 }
19774
19775 static void
19776 mktime_test1 (now)
19777      time_t now;
19778 {
19779   struct tm *lt;
19780   if ((lt = localtime (&now)) && mktime (lt) != now)
19781     exit (1);
19782 }
19783
19784 static void
19785 mktime_test (now)
19786      time_t now;
19787 {
19788   mktime_test1 (now);
19789   mktime_test1 ((time_t) (time_t_max - now));
19790   mktime_test1 ((time_t) (time_t_min + now));
19791 }
19792
19793 static void
19794 irix_6_4_bug ()
19795 {
19796   /* Based on code from Ariel Faigon.  */
19797   struct tm tm;
19798   tm.tm_year = 96;
19799   tm.tm_mon = 3;
19800   tm.tm_mday = 0;
19801   tm.tm_hour = 0;
19802   tm.tm_min = 0;
19803   tm.tm_sec = 0;
19804   tm.tm_isdst = -1;
19805   mktime (&tm);
19806   if (tm.tm_mon != 2 || tm.tm_mday != 31)
19807     exit (1);
19808 }
19809
19810 static void
19811 bigtime_test (j)
19812      int j;
19813 {
19814   struct tm tm;
19815   time_t now;
19816   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19817   now = mktime (&tm);
19818   if (now != (time_t) -1)
19819     {
19820       struct tm *lt = localtime (&now);
19821       if (! (lt
19822              && lt->tm_year == tm.tm_year
19823              && lt->tm_mon == tm.tm_mon
19824              && lt->tm_mday == tm.tm_mday
19825              && lt->tm_hour == tm.tm_hour
19826              && lt->tm_min == tm.tm_min
19827              && lt->tm_sec == tm.tm_sec
19828              && lt->tm_yday == tm.tm_yday
19829              && lt->tm_wday == tm.tm_wday
19830              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19831                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19832         exit (1);
19833     }
19834 }
19835
19836 int
19837 main ()
19838 {
19839   time_t t, delta;
19840   int i, j;
19841
19842   /* This test makes some buggy mktime implementations loop.
19843      Give up after 60 seconds; a mktime slower than that
19844      isn't worth using anyway.  */
19845   alarm (60);
19846
19847   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
19848     continue;
19849   time_t_max--;
19850   if ((time_t) -1 < 0)
19851     for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
19852       continue;
19853   delta = time_t_max / 997; /* a suitable prime number */
19854   for (i = 0; i < N_STRINGS; i++)
19855     {
19856       if (tz_strings[i])
19857         putenv (tz_strings[i]);
19858
19859       for (t = 0; t <= time_t_max - delta; t += delta)
19860         mktime_test (t);
19861       mktime_test ((time_t) 1);
19862       mktime_test ((time_t) (60 * 60));
19863       mktime_test ((time_t) (60 * 60 * 24));
19864
19865       for (j = 1; 0 < j; j *= 2)
19866         bigtime_test (j);
19867       bigtime_test (j - 1);
19868     }
19869   irix_6_4_bug ();
19870   spring_forward_gap ();
19871   exit (0);
19872 }
19873 _ACEOF
19874 rm -f conftest$ac_exeext
19875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19876   (eval $ac_link) 2>&5
19877   ac_status=$?
19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881   (eval $ac_try) 2>&5
19882   ac_status=$?
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); }; }; then
19885   ac_cv_func_working_mktime=yes
19886 else
19887   echo "$as_me: program exited with status $ac_status" >&5
19888 echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19890
19891 ( exit $ac_status )
19892 ac_cv_func_working_mktime=no
19893 fi
19894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19895 fi
19896 fi
19897 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
19898 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
19899 if test $ac_cv_func_working_mktime = no; then
19900   case $LIBOBJS in
19901     "mktime.$ac_objext"   | \
19902   *" mktime.$ac_objext"   | \
19903     "mktime.$ac_objext "* | \
19904   *" mktime.$ac_objext "* ) ;;
19905   *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
19906 esac
19907
19908 fi
19909
19910
19911
19912   if test $ac_cv_func_working_mktime = no; then
19913
19914 cat >>confdefs.h <<\_ACEOF
19915 #define mktime rpl_mktime
19916 _ACEOF
19917
19918     :
19919   fi
19920
19921
19922
19923 for ac_func in readlink
19924 do
19925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19926 echo "$as_me:$LINENO: checking for $ac_func" >&5
19927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19928 if eval "test \"\${$as_ac_var+set}\" = set"; then
19929   echo $ECHO_N "(cached) $ECHO_C" >&6
19930 else
19931   cat >conftest.$ac_ext <<_ACEOF
19932 /* confdefs.h.  */
19933 _ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h.  */
19937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19939 #define $ac_func innocuous_$ac_func
19940
19941 /* System header to define __stub macros and hopefully few prototypes,
19942     which can conflict with char $ac_func (); below.
19943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19944     <limits.h> exists even on freestanding compilers.  */
19945
19946 #ifdef __STDC__
19947 # include <limits.h>
19948 #else
19949 # include <assert.h>
19950 #endif
19951
19952 #undef $ac_func
19953
19954 /* Override any gcc2 internal prototype to avoid an error.  */
19955 #ifdef __cplusplus
19956 extern "C"
19957 {
19958 #endif
19959 /* We use char because int might match the return type of a gcc2
19960    builtin and then its argument prototype would still apply.  */
19961 char $ac_func ();
19962 /* The GNU C library defines this for functions which it implements
19963     to always fail with ENOSYS.  Some functions are actually named
19964     something starting with __ and the normal name is an alias.  */
19965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19966 choke me
19967 #else
19968 char (*f) () = $ac_func;
19969 #endif
19970 #ifdef __cplusplus
19971 }
19972 #endif
19973
19974 int
19975 main ()
19976 {
19977 return f != $ac_func;
19978   ;
19979   return 0;
19980 }
19981 _ACEOF
19982 rm -f conftest.$ac_objext conftest$ac_exeext
19983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19984   (eval $ac_link) 2>conftest.er1
19985   ac_status=$?
19986   grep -v '^ *+' conftest.er1 >conftest.err
19987   rm -f conftest.er1
19988   cat conftest.err >&5
19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); } &&
19991          { ac_try='test -z "$ac_c_werror_flag"
19992                          || test ! -s conftest.err'
19993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994   (eval $ac_try) 2>&5
19995   ac_status=$?
19996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997   (exit $ac_status); }; } &&
19998          { ac_try='test -s conftest$ac_exeext'
19999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000   (eval $ac_try) 2>&5
20001   ac_status=$?
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); }; }; then
20004   eval "$as_ac_var=yes"
20005 else
20006   echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20008
20009 eval "$as_ac_var=no"
20010 fi
20011 rm -f conftest.err conftest.$ac_objext \
20012       conftest$ac_exeext conftest.$ac_ext
20013 fi
20014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20016 if test `eval echo '${'$as_ac_var'}'` = yes; then
20017   cat >>confdefs.h <<_ACEOF
20018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20019 _ACEOF
20020
20021 fi
20022 done
20023
20024   if test $ac_cv_func_readlink = no; then
20025     case $LIBOBJS in
20026     "readlink.$ac_objext"   | \
20027   *" readlink.$ac_objext"   | \
20028     "readlink.$ac_objext "* | \
20029   *" readlink.$ac_objext "* ) ;;
20030   *) LIBOBJS="$LIBOBJS readlink.$ac_objext" ;;
20031 esac
20032
20033
20034   :
20035
20036   fi
20037
20038
20039
20040 for ac_func in rmdir
20041 do
20042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20043 echo "$as_me:$LINENO: checking for $ac_func" >&5
20044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20045 if eval "test \"\${$as_ac_var+set}\" = set"; then
20046   echo $ECHO_N "(cached) $ECHO_C" >&6
20047 else
20048   cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h.  */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h.  */
20054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20056 #define $ac_func innocuous_$ac_func
20057
20058 /* System header to define __stub macros and hopefully few prototypes,
20059     which can conflict with char $ac_func (); below.
20060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20061     <limits.h> exists even on freestanding compilers.  */
20062
20063 #ifdef __STDC__
20064 # include <limits.h>
20065 #else
20066 # include <assert.h>
20067 #endif
20068
20069 #undef $ac_func
20070
20071 /* Override any gcc2 internal prototype to avoid an error.  */
20072 #ifdef __cplusplus
20073 extern "C"
20074 {
20075 #endif
20076 /* We use char because int might match the return type of a gcc2
20077    builtin and then its argument prototype would still apply.  */
20078 char $ac_func ();
20079 /* The GNU C library defines this for functions which it implements
20080     to always fail with ENOSYS.  Some functions are actually named
20081     something starting with __ and the normal name is an alias.  */
20082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20083 choke me
20084 #else
20085 char (*f) () = $ac_func;
20086 #endif
20087 #ifdef __cplusplus
20088 }
20089 #endif
20090
20091 int
20092 main ()
20093 {
20094 return f != $ac_func;
20095   ;
20096   return 0;
20097 }
20098 _ACEOF
20099 rm -f conftest.$ac_objext conftest$ac_exeext
20100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20101   (eval $ac_link) 2>conftest.er1
20102   ac_status=$?
20103   grep -v '^ *+' conftest.er1 >conftest.err
20104   rm -f conftest.er1
20105   cat conftest.err >&5
20106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); } &&
20108          { ac_try='test -z "$ac_c_werror_flag"
20109                          || test ! -s conftest.err'
20110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111   (eval $ac_try) 2>&5
20112   ac_status=$?
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); }; } &&
20115          { ac_try='test -s conftest$ac_exeext'
20116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117   (eval $ac_try) 2>&5
20118   ac_status=$?
20119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120   (exit $ac_status); }; }; then
20121   eval "$as_ac_var=yes"
20122 else
20123   echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20125
20126 eval "$as_ac_var=no"
20127 fi
20128 rm -f conftest.err conftest.$ac_objext \
20129       conftest$ac_exeext conftest.$ac_ext
20130 fi
20131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20133 if test `eval echo '${'$as_ac_var'}'` = yes; then
20134   cat >>confdefs.h <<_ACEOF
20135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20136 _ACEOF
20137
20138 else
20139   case $LIBOBJS in
20140     "$ac_func.$ac_objext"   | \
20141   *" $ac_func.$ac_objext"   | \
20142     "$ac_func.$ac_objext "* | \
20143   *" $ac_func.$ac_objext "* ) ;;
20144   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20145 esac
20146
20147 fi
20148 done
20149
20150
20151   if test $ac_cv_func_rmdir = no; then
20152
20153
20154   :
20155
20156   fi
20157
20158
20159
20160 for ac_func in rpmatch
20161 do
20162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20163 echo "$as_me:$LINENO: checking for $ac_func" >&5
20164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20165 if eval "test \"\${$as_ac_var+set}\" = set"; then
20166   echo $ECHO_N "(cached) $ECHO_C" >&6
20167 else
20168   cat >conftest.$ac_ext <<_ACEOF
20169 /* confdefs.h.  */
20170 _ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h.  */
20174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20176 #define $ac_func innocuous_$ac_func
20177
20178 /* System header to define __stub macros and hopefully few prototypes,
20179     which can conflict with char $ac_func (); below.
20180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20181     <limits.h> exists even on freestanding compilers.  */
20182
20183 #ifdef __STDC__
20184 # include <limits.h>
20185 #else
20186 # include <assert.h>
20187 #endif
20188
20189 #undef $ac_func
20190
20191 /* Override any gcc2 internal prototype to avoid an error.  */
20192 #ifdef __cplusplus
20193 extern "C"
20194 {
20195 #endif
20196 /* We use char because int might match the return type of a gcc2
20197    builtin and then its argument prototype would still apply.  */
20198 char $ac_func ();
20199 /* The GNU C library defines this for functions which it implements
20200     to always fail with ENOSYS.  Some functions are actually named
20201     something starting with __ and the normal name is an alias.  */
20202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20203 choke me
20204 #else
20205 char (*f) () = $ac_func;
20206 #endif
20207 #ifdef __cplusplus
20208 }
20209 #endif
20210
20211 int
20212 main ()
20213 {
20214 return f != $ac_func;
20215   ;
20216   return 0;
20217 }
20218 _ACEOF
20219 rm -f conftest.$ac_objext conftest$ac_exeext
20220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20221   (eval $ac_link) 2>conftest.er1
20222   ac_status=$?
20223   grep -v '^ *+' conftest.er1 >conftest.err
20224   rm -f conftest.er1
20225   cat conftest.err >&5
20226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227   (exit $ac_status); } &&
20228          { ac_try='test -z "$ac_c_werror_flag"
20229                          || test ! -s conftest.err'
20230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231   (eval $ac_try) 2>&5
20232   ac_status=$?
20233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234   (exit $ac_status); }; } &&
20235          { ac_try='test -s conftest$ac_exeext'
20236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237   (eval $ac_try) 2>&5
20238   ac_status=$?
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); }; }; then
20241   eval "$as_ac_var=yes"
20242 else
20243   echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.$ac_ext >&5
20245
20246 eval "$as_ac_var=no"
20247 fi
20248 rm -f conftest.err conftest.$ac_objext \
20249       conftest$ac_exeext conftest.$ac_ext
20250 fi
20251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20253 if test `eval echo '${'$as_ac_var'}'` = yes; then
20254   cat >>confdefs.h <<_ACEOF
20255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20256 _ACEOF
20257
20258 else
20259   case $LIBOBJS in
20260     "$ac_func.$ac_objext"   | \
20261   *" $ac_func.$ac_objext"   | \
20262     "$ac_func.$ac_objext "* | \
20263   *" $ac_func.$ac_objext "* ) ;;
20264   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20265 esac
20266
20267 fi
20268 done
20269
20270
20271   if test $ac_cv_func_rpmatch = no; then
20272     :
20273   fi
20274
20275
20276
20277 for ac_func in sig2str
20278 do
20279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20280 echo "$as_me:$LINENO: checking for $ac_func" >&5
20281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20282 if eval "test \"\${$as_ac_var+set}\" = set"; then
20283   echo $ECHO_N "(cached) $ECHO_C" >&6
20284 else
20285   cat >conftest.$ac_ext <<_ACEOF
20286 /* confdefs.h.  */
20287 _ACEOF
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h.  */
20291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20293 #define $ac_func innocuous_$ac_func
20294
20295 /* System header to define __stub macros and hopefully few prototypes,
20296     which can conflict with char $ac_func (); below.
20297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20298     <limits.h> exists even on freestanding compilers.  */
20299
20300 #ifdef __STDC__
20301 # include <limits.h>
20302 #else
20303 # include <assert.h>
20304 #endif
20305
20306 #undef $ac_func
20307
20308 /* Override any gcc2 internal prototype to avoid an error.  */
20309 #ifdef __cplusplus
20310 extern "C"
20311 {
20312 #endif
20313 /* We use char because int might match the return type of a gcc2
20314    builtin and then its argument prototype would still apply.  */
20315 char $ac_func ();
20316 /* The GNU C library defines this for functions which it implements
20317     to always fail with ENOSYS.  Some functions are actually named
20318     something starting with __ and the normal name is an alias.  */
20319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20320 choke me
20321 #else
20322 char (*f) () = $ac_func;
20323 #endif
20324 #ifdef __cplusplus
20325 }
20326 #endif
20327
20328 int
20329 main ()
20330 {
20331 return f != $ac_func;
20332   ;
20333   return 0;
20334 }
20335 _ACEOF
20336 rm -f conftest.$ac_objext conftest$ac_exeext
20337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20338   (eval $ac_link) 2>conftest.er1
20339   ac_status=$?
20340   grep -v '^ *+' conftest.er1 >conftest.err
20341   rm -f conftest.er1
20342   cat conftest.err >&5
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); } &&
20345          { ac_try='test -z "$ac_c_werror_flag"
20346                          || test ! -s conftest.err'
20347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348   (eval $ac_try) 2>&5
20349   ac_status=$?
20350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351   (exit $ac_status); }; } &&
20352          { ac_try='test -s conftest$ac_exeext'
20353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354   (eval $ac_try) 2>&5
20355   ac_status=$?
20356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357   (exit $ac_status); }; }; then
20358   eval "$as_ac_var=yes"
20359 else
20360   echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20362
20363 eval "$as_ac_var=no"
20364 fi
20365 rm -f conftest.err conftest.$ac_objext \
20366       conftest$ac_exeext conftest.$ac_ext
20367 fi
20368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20370 if test `eval echo '${'$as_ac_var'}'` = yes; then
20371   cat >>confdefs.h <<_ACEOF
20372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20373 _ACEOF
20374
20375 else
20376   case $LIBOBJS in
20377     "$ac_func.$ac_objext"   | \
20378   *" $ac_func.$ac_objext"   | \
20379     "$ac_func.$ac_objext "* | \
20380   *" $ac_func.$ac_objext "* ) ;;
20381   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20382 esac
20383
20384 fi
20385 done
20386
20387
20388   if test $ac_cv_func_sig2str = no; then
20389
20390   :
20391
20392   fi
20393
20394
20395
20396
20397
20398 for ac_func in stpcpy
20399 do
20400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20401 echo "$as_me:$LINENO: checking for $ac_func" >&5
20402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20403 if eval "test \"\${$as_ac_var+set}\" = set"; then
20404   echo $ECHO_N "(cached) $ECHO_C" >&6
20405 else
20406   cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h.  */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h.  */
20412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20413    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20414 #define $ac_func innocuous_$ac_func
20415
20416 /* System header to define __stub macros and hopefully few prototypes,
20417     which can conflict with char $ac_func (); below.
20418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20419     <limits.h> exists even on freestanding compilers.  */
20420
20421 #ifdef __STDC__
20422 # include <limits.h>
20423 #else
20424 # include <assert.h>
20425 #endif
20426
20427 #undef $ac_func
20428
20429 /* Override any gcc2 internal prototype to avoid an error.  */
20430 #ifdef __cplusplus
20431 extern "C"
20432 {
20433 #endif
20434 /* We use char because int might match the return type of a gcc2
20435    builtin and then its argument prototype would still apply.  */
20436 char $ac_func ();
20437 /* The GNU C library defines this for functions which it implements
20438     to always fail with ENOSYS.  Some functions are actually named
20439     something starting with __ and the normal name is an alias.  */
20440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20441 choke me
20442 #else
20443 char (*f) () = $ac_func;
20444 #endif
20445 #ifdef __cplusplus
20446 }
20447 #endif
20448
20449 int
20450 main ()
20451 {
20452 return f != $ac_func;
20453   ;
20454   return 0;
20455 }
20456 _ACEOF
20457 rm -f conftest.$ac_objext conftest$ac_exeext
20458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20459   (eval $ac_link) 2>conftest.er1
20460   ac_status=$?
20461   grep -v '^ *+' conftest.er1 >conftest.err
20462   rm -f conftest.er1
20463   cat conftest.err >&5
20464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465   (exit $ac_status); } &&
20466          { ac_try='test -z "$ac_c_werror_flag"
20467                          || test ! -s conftest.err'
20468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469   (eval $ac_try) 2>&5
20470   ac_status=$?
20471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472   (exit $ac_status); }; } &&
20473          { ac_try='test -s conftest$ac_exeext'
20474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475   (eval $ac_try) 2>&5
20476   ac_status=$?
20477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); }; }; then
20479   eval "$as_ac_var=yes"
20480 else
20481   echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20483
20484 eval "$as_ac_var=no"
20485 fi
20486 rm -f conftest.err conftest.$ac_objext \
20487       conftest$ac_exeext conftest.$ac_ext
20488 fi
20489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20490 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20491 if test `eval echo '${'$as_ac_var'}'` = yes; then
20492   cat >>confdefs.h <<_ACEOF
20493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20494 _ACEOF
20495
20496 else
20497   case $LIBOBJS in
20498     "$ac_func.$ac_objext"   | \
20499   *" $ac_func.$ac_objext"   | \
20500     "$ac_func.$ac_objext "* | \
20501   *" $ac_func.$ac_objext "* ) ;;
20502   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20503 esac
20504
20505 fi
20506 done
20507
20508
20509   if test $ac_cv_func_stpcpy = no; then
20510
20511   :
20512
20513   fi
20514
20515
20516
20517 for ac_func in strcspn
20518 do
20519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20520 echo "$as_me:$LINENO: checking for $ac_func" >&5
20521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20522 if eval "test \"\${$as_ac_var+set}\" = set"; then
20523   echo $ECHO_N "(cached) $ECHO_C" >&6
20524 else
20525   cat >conftest.$ac_ext <<_ACEOF
20526 /* confdefs.h.  */
20527 _ACEOF
20528 cat confdefs.h >>conftest.$ac_ext
20529 cat >>conftest.$ac_ext <<_ACEOF
20530 /* end confdefs.h.  */
20531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20533 #define $ac_func innocuous_$ac_func
20534
20535 /* System header to define __stub macros and hopefully few prototypes,
20536     which can conflict with char $ac_func (); below.
20537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20538     <limits.h> exists even on freestanding compilers.  */
20539
20540 #ifdef __STDC__
20541 # include <limits.h>
20542 #else
20543 # include <assert.h>
20544 #endif
20545
20546 #undef $ac_func
20547
20548 /* Override any gcc2 internal prototype to avoid an error.  */
20549 #ifdef __cplusplus
20550 extern "C"
20551 {
20552 #endif
20553 /* We use char because int might match the return type of a gcc2
20554    builtin and then its argument prototype would still apply.  */
20555 char $ac_func ();
20556 /* The GNU C library defines this for functions which it implements
20557     to always fail with ENOSYS.  Some functions are actually named
20558     something starting with __ and the normal name is an alias.  */
20559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20560 choke me
20561 #else
20562 char (*f) () = $ac_func;
20563 #endif
20564 #ifdef __cplusplus
20565 }
20566 #endif
20567
20568 int
20569 main ()
20570 {
20571 return f != $ac_func;
20572   ;
20573   return 0;
20574 }
20575 _ACEOF
20576 rm -f conftest.$ac_objext conftest$ac_exeext
20577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20578   (eval $ac_link) 2>conftest.er1
20579   ac_status=$?
20580   grep -v '^ *+' conftest.er1 >conftest.err
20581   rm -f conftest.er1
20582   cat conftest.err >&5
20583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584   (exit $ac_status); } &&
20585          { ac_try='test -z "$ac_c_werror_flag"
20586                          || test ! -s conftest.err'
20587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588   (eval $ac_try) 2>&5
20589   ac_status=$?
20590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591   (exit $ac_status); }; } &&
20592          { ac_try='test -s conftest$ac_exeext'
20593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594   (eval $ac_try) 2>&5
20595   ac_status=$?
20596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597   (exit $ac_status); }; }; then
20598   eval "$as_ac_var=yes"
20599 else
20600   echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20602
20603 eval "$as_ac_var=no"
20604 fi
20605 rm -f conftest.err conftest.$ac_objext \
20606       conftest$ac_exeext conftest.$ac_ext
20607 fi
20608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20610 if test `eval echo '${'$as_ac_var'}'` = yes; then
20611   cat >>confdefs.h <<_ACEOF
20612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20613 _ACEOF
20614
20615 else
20616   case $LIBOBJS in
20617     "$ac_func.$ac_objext"   | \
20618   *" $ac_func.$ac_objext"   | \
20619     "$ac_func.$ac_objext "* | \
20620   *" $ac_func.$ac_objext "* ) ;;
20621   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20622 esac
20623
20624 fi
20625 done
20626
20627
20628   if test $ac_cv_func_strcspn = no; then
20629     :
20630   fi
20631
20632
20633
20634 for ac_func in strdup
20635 do
20636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20637 echo "$as_me:$LINENO: checking for $ac_func" >&5
20638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20639 if eval "test \"\${$as_ac_var+set}\" = set"; then
20640   echo $ECHO_N "(cached) $ECHO_C" >&6
20641 else
20642   cat >conftest.$ac_ext <<_ACEOF
20643 /* confdefs.h.  */
20644 _ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h.  */
20648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20650 #define $ac_func innocuous_$ac_func
20651
20652 /* System header to define __stub macros and hopefully few prototypes,
20653     which can conflict with char $ac_func (); below.
20654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20655     <limits.h> exists even on freestanding compilers.  */
20656
20657 #ifdef __STDC__
20658 # include <limits.h>
20659 #else
20660 # include <assert.h>
20661 #endif
20662
20663 #undef $ac_func
20664
20665 /* Override any gcc2 internal prototype to avoid an error.  */
20666 #ifdef __cplusplus
20667 extern "C"
20668 {
20669 #endif
20670 /* We use char because int might match the return type of a gcc2
20671    builtin and then its argument prototype would still apply.  */
20672 char $ac_func ();
20673 /* The GNU C library defines this for functions which it implements
20674     to always fail with ENOSYS.  Some functions are actually named
20675     something starting with __ and the normal name is an alias.  */
20676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20677 choke me
20678 #else
20679 char (*f) () = $ac_func;
20680 #endif
20681 #ifdef __cplusplus
20682 }
20683 #endif
20684
20685 int
20686 main ()
20687 {
20688 return f != $ac_func;
20689   ;
20690   return 0;
20691 }
20692 _ACEOF
20693 rm -f conftest.$ac_objext conftest$ac_exeext
20694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20695   (eval $ac_link) 2>conftest.er1
20696   ac_status=$?
20697   grep -v '^ *+' conftest.er1 >conftest.err
20698   rm -f conftest.er1
20699   cat conftest.err >&5
20700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701   (exit $ac_status); } &&
20702          { ac_try='test -z "$ac_c_werror_flag"
20703                          || test ! -s conftest.err'
20704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705   (eval $ac_try) 2>&5
20706   ac_status=$?
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); }; } &&
20709          { ac_try='test -s conftest$ac_exeext'
20710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711   (eval $ac_try) 2>&5
20712   ac_status=$?
20713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714   (exit $ac_status); }; }; then
20715   eval "$as_ac_var=yes"
20716 else
20717   echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20719
20720 eval "$as_ac_var=no"
20721 fi
20722 rm -f conftest.err conftest.$ac_objext \
20723       conftest$ac_exeext conftest.$ac_ext
20724 fi
20725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20727 if test `eval echo '${'$as_ac_var'}'` = yes; then
20728   cat >>confdefs.h <<_ACEOF
20729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20730 _ACEOF
20731
20732 else
20733   case $LIBOBJS in
20734     "$ac_func.$ac_objext"   | \
20735   *" $ac_func.$ac_objext"   | \
20736     "$ac_func.$ac_objext "* | \
20737   *" $ac_func.$ac_objext "* ) ;;
20738   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20739 esac
20740
20741 fi
20742 done
20743
20744
20745   if test $ac_cv_func_strdup = no; then
20746
20747   :
20748
20749   fi
20750
20751
20752
20753
20754
20755 for ac_func in strndup
20756 do
20757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20758 echo "$as_me:$LINENO: checking for $ac_func" >&5
20759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20760 if eval "test \"\${$as_ac_var+set}\" = set"; then
20761   echo $ECHO_N "(cached) $ECHO_C" >&6
20762 else
20763   cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h.  */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h.  */
20769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20771 #define $ac_func innocuous_$ac_func
20772
20773 /* System header to define __stub macros and hopefully few prototypes,
20774     which can conflict with char $ac_func (); below.
20775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20776     <limits.h> exists even on freestanding compilers.  */
20777
20778 #ifdef __STDC__
20779 # include <limits.h>
20780 #else
20781 # include <assert.h>
20782 #endif
20783
20784 #undef $ac_func
20785
20786 /* Override any gcc2 internal prototype to avoid an error.  */
20787 #ifdef __cplusplus
20788 extern "C"
20789 {
20790 #endif
20791 /* We use char because int might match the return type of a gcc2
20792    builtin and then its argument prototype would still apply.  */
20793 char $ac_func ();
20794 /* The GNU C library defines this for functions which it implements
20795     to always fail with ENOSYS.  Some functions are actually named
20796     something starting with __ and the normal name is an alias.  */
20797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20798 choke me
20799 #else
20800 char (*f) () = $ac_func;
20801 #endif
20802 #ifdef __cplusplus
20803 }
20804 #endif
20805
20806 int
20807 main ()
20808 {
20809 return f != $ac_func;
20810   ;
20811   return 0;
20812 }
20813 _ACEOF
20814 rm -f conftest.$ac_objext conftest$ac_exeext
20815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20816   (eval $ac_link) 2>conftest.er1
20817   ac_status=$?
20818   grep -v '^ *+' conftest.er1 >conftest.err
20819   rm -f conftest.er1
20820   cat conftest.err >&5
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); } &&
20823          { ac_try='test -z "$ac_c_werror_flag"
20824                          || test ! -s conftest.err'
20825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826   (eval $ac_try) 2>&5
20827   ac_status=$?
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); }; } &&
20830          { ac_try='test -s conftest$ac_exeext'
20831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832   (eval $ac_try) 2>&5
20833   ac_status=$?
20834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835   (exit $ac_status); }; }; then
20836   eval "$as_ac_var=yes"
20837 else
20838   echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20840
20841 eval "$as_ac_var=no"
20842 fi
20843 rm -f conftest.err conftest.$ac_objext \
20844       conftest$ac_exeext conftest.$ac_ext
20845 fi
20846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20848 if test `eval echo '${'$as_ac_var'}'` = yes; then
20849   cat >>confdefs.h <<_ACEOF
20850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20851 _ACEOF
20852
20853 else
20854   case $LIBOBJS in
20855     "$ac_func.$ac_objext"   | \
20856   *" $ac_func.$ac_objext"   | \
20857     "$ac_func.$ac_objext "* | \
20858   *" $ac_func.$ac_objext "* ) ;;
20859   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20860 esac
20861
20862 fi
20863 done
20864
20865
20866   if test $ac_cv_func_strndup = no; then
20867
20868   echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
20869 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
20870 if test "${ac_cv_have_decl_strnlen+set}" = set; then
20871   echo $ECHO_N "(cached) $ECHO_C" >&6
20872 else
20873   cat >conftest.$ac_ext <<_ACEOF
20874 /* confdefs.h.  */
20875 _ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h.  */
20879 $ac_includes_default
20880 int
20881 main ()
20882 {
20883 #ifndef strnlen
20884   char *p = (char *) strnlen;
20885 #endif
20886
20887   ;
20888   return 0;
20889 }
20890 _ACEOF
20891 rm -f conftest.$ac_objext
20892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20893   (eval $ac_compile) 2>conftest.er1
20894   ac_status=$?
20895   grep -v '^ *+' conftest.er1 >conftest.err
20896   rm -f conftest.er1
20897   cat conftest.err >&5
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); } &&
20900          { ac_try='test -z "$ac_c_werror_flag"
20901                          || test ! -s conftest.err'
20902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903   (eval $ac_try) 2>&5
20904   ac_status=$?
20905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906   (exit $ac_status); }; } &&
20907          { ac_try='test -s conftest.$ac_objext'
20908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909   (eval $ac_try) 2>&5
20910   ac_status=$?
20911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912   (exit $ac_status); }; }; then
20913   ac_cv_have_decl_strnlen=yes
20914 else
20915   echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20917
20918 ac_cv_have_decl_strnlen=no
20919 fi
20920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20921 fi
20922 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
20923 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
20924 if test $ac_cv_have_decl_strnlen = yes; then
20925
20926 cat >>confdefs.h <<_ACEOF
20927 #define HAVE_DECL_STRNLEN 1
20928 _ACEOF
20929
20930
20931 else
20932   cat >>confdefs.h <<_ACEOF
20933 #define HAVE_DECL_STRNLEN 0
20934 _ACEOF
20935
20936
20937 fi
20938
20939
20940
20941   fi
20942
20943
20944
20945
20946   echo "$as_me:$LINENO: checking for working strnlen" >&5
20947 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
20948 if test "${ac_cv_func_strnlen_working+set}" = set; then
20949   echo $ECHO_N "(cached) $ECHO_C" >&6
20950 else
20951   if test "$cross_compiling" = yes; then
20952   ac_cv_func_strnlen_working=no
20953 else
20954   cat >conftest.$ac_ext <<_ACEOF
20955 /* confdefs.h.  */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h.  */
20960 $ac_includes_default
20961 int
20962 main ()
20963 {
20964
20965 #define S "foobar"
20966 #define S_LEN (sizeof S - 1)
20967
20968   /* At least one implementation is buggy: that of AIX 4.3 would
20969      give strnlen (S, 1) == 3.  */
20970
20971   int i;
20972   for (i = 0; i < S_LEN + 1; ++i)
20973     {
20974       int expected = i <= S_LEN ? i : S_LEN;
20975       if (strnlen (S, i) != expected)
20976         exit (1);
20977     }
20978   exit (0);
20979
20980   ;
20981   return 0;
20982 }
20983 _ACEOF
20984 rm -f conftest$ac_exeext
20985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20986   (eval $ac_link) 2>&5
20987   ac_status=$?
20988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991   (eval $ac_try) 2>&5
20992   ac_status=$?
20993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994   (exit $ac_status); }; }; then
20995   ac_cv_func_strnlen_working=yes
20996 else
20997   echo "$as_me: program exited with status $ac_status" >&5
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21000
21001 ( exit $ac_status )
21002 ac_cv_func_strnlen_working=no
21003 fi
21004 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21005 fi
21006 fi
21007 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
21008 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
21009 test $ac_cv_func_strnlen_working = no && case $LIBOBJS in
21010     "strnlen.$ac_objext"   | \
21011   *" strnlen.$ac_objext"   | \
21012     "strnlen.$ac_objext "* | \
21013   *" strnlen.$ac_objext "* ) ;;
21014   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" ;;
21015 esac
21016
21017
21018   if test $ac_cv_func_strnlen_working = no; then
21019     # This is necessary because automake-1.6.1 doens't understand
21020     # that the above use of AC_FUNC_STRNLEN means we may have to use
21021     # lib/strnlen.c.
21022     #AC_LIBOBJ(strnlen)
21023
21024 cat >>confdefs.h <<\_ACEOF
21025 #define strnlen rpl_strnlen
21026 _ACEOF
21027
21028     :
21029   fi
21030
21031
21032
21033 for ac_func in strpbrk
21034 do
21035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21036 echo "$as_me:$LINENO: checking for $ac_func" >&5
21037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21038 if eval "test \"\${$as_ac_var+set}\" = set"; then
21039   echo $ECHO_N "(cached) $ECHO_C" >&6
21040 else
21041   cat >conftest.$ac_ext <<_ACEOF
21042 /* confdefs.h.  */
21043 _ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h.  */
21047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21049 #define $ac_func innocuous_$ac_func
21050
21051 /* System header to define __stub macros and hopefully few prototypes,
21052     which can conflict with char $ac_func (); below.
21053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21054     <limits.h> exists even on freestanding compilers.  */
21055
21056 #ifdef __STDC__
21057 # include <limits.h>
21058 #else
21059 # include <assert.h>
21060 #endif
21061
21062 #undef $ac_func
21063
21064 /* Override any gcc2 internal prototype to avoid an error.  */
21065 #ifdef __cplusplus
21066 extern "C"
21067 {
21068 #endif
21069 /* We use char because int might match the return type of a gcc2
21070    builtin and then its argument prototype would still apply.  */
21071 char $ac_func ();
21072 /* The GNU C library defines this for functions which it implements
21073     to always fail with ENOSYS.  Some functions are actually named
21074     something starting with __ and the normal name is an alias.  */
21075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21076 choke me
21077 #else
21078 char (*f) () = $ac_func;
21079 #endif
21080 #ifdef __cplusplus
21081 }
21082 #endif
21083
21084 int
21085 main ()
21086 {
21087 return f != $ac_func;
21088   ;
21089   return 0;
21090 }
21091 _ACEOF
21092 rm -f conftest.$ac_objext conftest$ac_exeext
21093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21094   (eval $ac_link) 2>conftest.er1
21095   ac_status=$?
21096   grep -v '^ *+' conftest.er1 >conftest.err
21097   rm -f conftest.er1
21098   cat conftest.err >&5
21099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100   (exit $ac_status); } &&
21101          { ac_try='test -z "$ac_c_werror_flag"
21102                          || test ! -s conftest.err'
21103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104   (eval $ac_try) 2>&5
21105   ac_status=$?
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); }; } &&
21108          { ac_try='test -s conftest$ac_exeext'
21109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110   (eval $ac_try) 2>&5
21111   ac_status=$?
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); }; }; then
21114   eval "$as_ac_var=yes"
21115 else
21116   echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21118
21119 eval "$as_ac_var=no"
21120 fi
21121 rm -f conftest.err conftest.$ac_objext \
21122       conftest$ac_exeext conftest.$ac_ext
21123 fi
21124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21126 if test `eval echo '${'$as_ac_var'}'` = yes; then
21127   cat >>confdefs.h <<_ACEOF
21128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21129 _ACEOF
21130
21131 else
21132   case $LIBOBJS in
21133     "$ac_func.$ac_objext"   | \
21134   *" $ac_func.$ac_objext"   | \
21135     "$ac_func.$ac_objext "* | \
21136   *" $ac_func.$ac_objext "* ) ;;
21137   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21138 esac
21139
21140 fi
21141 done
21142
21143
21144   if test $ac_cv_func_strpbrk = no; then
21145     :
21146   fi
21147
21148
21149
21150 for ac_func in strstr
21151 do
21152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21153 echo "$as_me:$LINENO: checking for $ac_func" >&5
21154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21155 if eval "test \"\${$as_ac_var+set}\" = set"; then
21156   echo $ECHO_N "(cached) $ECHO_C" >&6
21157 else
21158   cat >conftest.$ac_ext <<_ACEOF
21159 /* confdefs.h.  */
21160 _ACEOF
21161 cat confdefs.h >>conftest.$ac_ext
21162 cat >>conftest.$ac_ext <<_ACEOF
21163 /* end confdefs.h.  */
21164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21166 #define $ac_func innocuous_$ac_func
21167
21168 /* System header to define __stub macros and hopefully few prototypes,
21169     which can conflict with char $ac_func (); below.
21170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21171     <limits.h> exists even on freestanding compilers.  */
21172
21173 #ifdef __STDC__
21174 # include <limits.h>
21175 #else
21176 # include <assert.h>
21177 #endif
21178
21179 #undef $ac_func
21180
21181 /* Override any gcc2 internal prototype to avoid an error.  */
21182 #ifdef __cplusplus
21183 extern "C"
21184 {
21185 #endif
21186 /* We use char because int might match the return type of a gcc2
21187    builtin and then its argument prototype would still apply.  */
21188 char $ac_func ();
21189 /* The GNU C library defines this for functions which it implements
21190     to always fail with ENOSYS.  Some functions are actually named
21191     something starting with __ and the normal name is an alias.  */
21192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21193 choke me
21194 #else
21195 char (*f) () = $ac_func;
21196 #endif
21197 #ifdef __cplusplus
21198 }
21199 #endif
21200
21201 int
21202 main ()
21203 {
21204 return f != $ac_func;
21205   ;
21206   return 0;
21207 }
21208 _ACEOF
21209 rm -f conftest.$ac_objext conftest$ac_exeext
21210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21211   (eval $ac_link) 2>conftest.er1
21212   ac_status=$?
21213   grep -v '^ *+' conftest.er1 >conftest.err
21214   rm -f conftest.er1
21215   cat conftest.err >&5
21216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217   (exit $ac_status); } &&
21218          { ac_try='test -z "$ac_c_werror_flag"
21219                          || test ! -s conftest.err'
21220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21221   (eval $ac_try) 2>&5
21222   ac_status=$?
21223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224   (exit $ac_status); }; } &&
21225          { ac_try='test -s conftest$ac_exeext'
21226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227   (eval $ac_try) 2>&5
21228   ac_status=$?
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); }; }; then
21231   eval "$as_ac_var=yes"
21232 else
21233   echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21235
21236 eval "$as_ac_var=no"
21237 fi
21238 rm -f conftest.err conftest.$ac_objext \
21239       conftest$ac_exeext conftest.$ac_ext
21240 fi
21241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21243 if test `eval echo '${'$as_ac_var'}'` = yes; then
21244   cat >>confdefs.h <<_ACEOF
21245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21246 _ACEOF
21247
21248 else
21249   case $LIBOBJS in
21250     "$ac_func.$ac_objext"   | \
21251   *" $ac_func.$ac_objext"   | \
21252     "$ac_func.$ac_objext "* | \
21253   *" $ac_func.$ac_objext "* ) ;;
21254   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21255 esac
21256
21257 fi
21258 done
21259
21260
21261   if test $ac_cv_func_strstr = no; then
21262     :
21263   fi
21264
21265 echo "$as_me:$LINENO: checking for working strtod" >&5
21266 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
21267 if test "${ac_cv_func_strtod+set}" = set; then
21268   echo $ECHO_N "(cached) $ECHO_C" >&6
21269 else
21270   if test "$cross_compiling" = yes; then
21271   ac_cv_func_strtod=no
21272 else
21273   cat >conftest.$ac_ext <<_ACEOF
21274 /* confdefs.h.  */
21275 _ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h.  */
21279
21280 double strtod ();
21281 int
21282 main()
21283 {
21284   {
21285     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
21286     char *string = " +69";
21287     char *term;
21288     double value;
21289     value = strtod (string, &term);
21290     if (value != 69 || term != (string + 4))
21291       exit (1);
21292   }
21293
21294   {
21295     /* Under Solaris 2.4, strtod returns the wrong value for the
21296        terminating character under some conditions.  */
21297     char *string = "NaN";
21298     char *term;
21299     strtod (string, &term);
21300     if (term != string && *(term - 1) == 0)
21301       exit (1);
21302   }
21303   exit (0);
21304 }
21305
21306 _ACEOF
21307 rm -f conftest$ac_exeext
21308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21309   (eval $ac_link) 2>&5
21310   ac_status=$?
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314   (eval $ac_try) 2>&5
21315   ac_status=$?
21316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317   (exit $ac_status); }; }; then
21318   ac_cv_func_strtod=yes
21319 else
21320   echo "$as_me: program exited with status $ac_status" >&5
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324 ( exit $ac_status )
21325 ac_cv_func_strtod=no
21326 fi
21327 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21328 fi
21329 fi
21330 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
21331 echo "${ECHO_T}$ac_cv_func_strtod" >&6
21332 if test $ac_cv_func_strtod = no; then
21333   case $LIBOBJS in
21334     "strtod.$ac_objext"   | \
21335   *" strtod.$ac_objext"   | \
21336     "strtod.$ac_objext "* | \
21337   *" strtod.$ac_objext "* ) ;;
21338   *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
21339 esac
21340
21341 echo "$as_me:$LINENO: checking for pow" >&5
21342 echo $ECHO_N "checking for pow... $ECHO_C" >&6
21343 if test "${ac_cv_func_pow+set}" = set; then
21344   echo $ECHO_N "(cached) $ECHO_C" >&6
21345 else
21346   cat >conftest.$ac_ext <<_ACEOF
21347 /* confdefs.h.  */
21348 _ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h.  */
21352 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
21353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21354 #define pow innocuous_pow
21355
21356 /* System header to define __stub macros and hopefully few prototypes,
21357     which can conflict with char pow (); below.
21358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21359     <limits.h> exists even on freestanding compilers.  */
21360
21361 #ifdef __STDC__
21362 # include <limits.h>
21363 #else
21364 # include <assert.h>
21365 #endif
21366
21367 #undef pow
21368
21369 /* Override any gcc2 internal prototype to avoid an error.  */
21370 #ifdef __cplusplus
21371 extern "C"
21372 {
21373 #endif
21374 /* We use char because int might match the return type of a gcc2
21375    builtin and then its argument prototype would still apply.  */
21376 char pow ();
21377 /* The GNU C library defines this for functions which it implements
21378     to always fail with ENOSYS.  Some functions are actually named
21379     something starting with __ and the normal name is an alias.  */
21380 #if defined (__stub_pow) || defined (__stub___pow)
21381 choke me
21382 #else
21383 char (*f) () = pow;
21384 #endif
21385 #ifdef __cplusplus
21386 }
21387 #endif
21388
21389 int
21390 main ()
21391 {
21392 return f != pow;
21393   ;
21394   return 0;
21395 }
21396 _ACEOF
21397 rm -f conftest.$ac_objext conftest$ac_exeext
21398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21399   (eval $ac_link) 2>conftest.er1
21400   ac_status=$?
21401   grep -v '^ *+' conftest.er1 >conftest.err
21402   rm -f conftest.er1
21403   cat conftest.err >&5
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); } &&
21406          { ac_try='test -z "$ac_c_werror_flag"
21407                          || test ! -s conftest.err'
21408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21409   (eval $ac_try) 2>&5
21410   ac_status=$?
21411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   (exit $ac_status); }; } &&
21413          { ac_try='test -s conftest$ac_exeext'
21414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21415   (eval $ac_try) 2>&5
21416   ac_status=$?
21417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418   (exit $ac_status); }; }; then
21419   ac_cv_func_pow=yes
21420 else
21421   echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21423
21424 ac_cv_func_pow=no
21425 fi
21426 rm -f conftest.err conftest.$ac_objext \
21427       conftest$ac_exeext conftest.$ac_ext
21428 fi
21429 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
21430 echo "${ECHO_T}$ac_cv_func_pow" >&6
21431
21432 if test $ac_cv_func_pow = no; then
21433   echo "$as_me:$LINENO: checking for pow in -lm" >&5
21434 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
21435 if test "${ac_cv_lib_m_pow+set}" = set; then
21436   echo $ECHO_N "(cached) $ECHO_C" >&6
21437 else
21438   ac_check_lib_save_LIBS=$LIBS
21439 LIBS="-lm  $LIBS"
21440 cat >conftest.$ac_ext <<_ACEOF
21441 /* confdefs.h.  */
21442 _ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h.  */
21446
21447 /* Override any gcc2 internal prototype to avoid an error.  */
21448 #ifdef __cplusplus
21449 extern "C"
21450 #endif
21451 /* We use char because int might match the return type of a gcc2
21452    builtin and then its argument prototype would still apply.  */
21453 char pow ();
21454 int
21455 main ()
21456 {
21457 pow ();
21458   ;
21459   return 0;
21460 }
21461 _ACEOF
21462 rm -f conftest.$ac_objext conftest$ac_exeext
21463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21464   (eval $ac_link) 2>conftest.er1
21465   ac_status=$?
21466   grep -v '^ *+' conftest.er1 >conftest.err
21467   rm -f conftest.er1
21468   cat conftest.err >&5
21469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470   (exit $ac_status); } &&
21471          { ac_try='test -z "$ac_c_werror_flag"
21472                          || test ! -s conftest.err'
21473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21474   (eval $ac_try) 2>&5
21475   ac_status=$?
21476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477   (exit $ac_status); }; } &&
21478          { ac_try='test -s conftest$ac_exeext'
21479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480   (eval $ac_try) 2>&5
21481   ac_status=$?
21482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483   (exit $ac_status); }; }; then
21484   ac_cv_lib_m_pow=yes
21485 else
21486   echo "$as_me: failed program was:" >&5
21487 sed 's/^/| /' conftest.$ac_ext >&5
21488
21489 ac_cv_lib_m_pow=no
21490 fi
21491 rm -f conftest.err conftest.$ac_objext \
21492       conftest$ac_exeext conftest.$ac_ext
21493 LIBS=$ac_check_lib_save_LIBS
21494 fi
21495 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
21496 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
21497 if test $ac_cv_lib_m_pow = yes; then
21498   POW_LIB=-lm
21499 else
21500   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
21501 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21502 fi
21503
21504 fi
21505
21506 fi
21507
21508
21509
21510   if test $ac_cv_func_strtod = no; then
21511
21512 cat >>confdefs.h <<\_ACEOF
21513 #define strtod rpl_strtod
21514 _ACEOF
21515
21516
21517
21518
21519   :
21520
21521
21522
21523
21524
21525
21526   fi
21527
21528
21529   echo "$as_me:$LINENO: checking for long long" >&5
21530 echo $ECHO_N "checking for long long... $ECHO_C" >&6
21531 if test "${ac_cv_type_long_long+set}" = set; then
21532   echo $ECHO_N "(cached) $ECHO_C" >&6
21533 else
21534   cat >conftest.$ac_ext <<_ACEOF
21535 /* confdefs.h.  */
21536 _ACEOF
21537 cat confdefs.h >>conftest.$ac_ext
21538 cat >>conftest.$ac_ext <<_ACEOF
21539 /* end confdefs.h.  */
21540 long long ll = 1LL; int i = 63;
21541 int
21542 main ()
21543 {
21544 long long llmax = (long long) -1;
21545      return ll << i | ll >> i | llmax / ll | llmax % ll;
21546   ;
21547   return 0;
21548 }
21549 _ACEOF
21550 rm -f conftest.$ac_objext conftest$ac_exeext
21551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21552   (eval $ac_link) 2>conftest.er1
21553   ac_status=$?
21554   grep -v '^ *+' conftest.er1 >conftest.err
21555   rm -f conftest.er1
21556   cat conftest.err >&5
21557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558   (exit $ac_status); } &&
21559          { ac_try='test -z "$ac_c_werror_flag"
21560                          || test ! -s conftest.err'
21561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21562   (eval $ac_try) 2>&5
21563   ac_status=$?
21564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565   (exit $ac_status); }; } &&
21566          { ac_try='test -s conftest$ac_exeext'
21567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21568   (eval $ac_try) 2>&5
21569   ac_status=$?
21570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571   (exit $ac_status); }; }; then
21572   ac_cv_type_long_long=yes
21573 else
21574   echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21576
21577 ac_cv_type_long_long=no
21578 fi
21579 rm -f conftest.err conftest.$ac_objext \
21580       conftest$ac_exeext conftest.$ac_ext
21581 fi
21582 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21583 echo "${ECHO_T}$ac_cv_type_long_long" >&6
21584   if test $ac_cv_type_long_long = yes; then
21585
21586 cat >>confdefs.h <<\_ACEOF
21587 #define HAVE_LONG_LONG 1
21588 _ACEOF
21589
21590   fi
21591
21592
21593
21594
21595
21596   echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
21597 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
21598 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
21599   echo $ECHO_N "(cached) $ECHO_C" >&6
21600 else
21601   cat >conftest.$ac_ext <<_ACEOF
21602 /* confdefs.h.  */
21603 _ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h.  */
21607 #include <inttypes.h>
21608 #ifdef strtoimax
21609  inttypes_h_defines_strtoimax
21610 #endif
21611 _ACEOF
21612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21613   $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
21614   jm_cv_func_strtoimax_macro=yes
21615 else
21616   jm_cv_func_strtoimax_macro=no
21617 fi
21618 rm -f conftest*
21619
21620 fi
21621 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
21622 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
21623
21624   if test "$jm_cv_func_strtoimax_macro" != yes; then
21625
21626 for ac_func in strtoimax
21627 do
21628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21629 echo "$as_me:$LINENO: checking for $ac_func" >&5
21630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21631 if eval "test \"\${$as_ac_var+set}\" = set"; then
21632   echo $ECHO_N "(cached) $ECHO_C" >&6
21633 else
21634   cat >conftest.$ac_ext <<_ACEOF
21635 /* confdefs.h.  */
21636 _ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h.  */
21640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21642 #define $ac_func innocuous_$ac_func
21643
21644 /* System header to define __stub macros and hopefully few prototypes,
21645     which can conflict with char $ac_func (); below.
21646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21647     <limits.h> exists even on freestanding compilers.  */
21648
21649 #ifdef __STDC__
21650 # include <limits.h>
21651 #else
21652 # include <assert.h>
21653 #endif
21654
21655 #undef $ac_func
21656
21657 /* Override any gcc2 internal prototype to avoid an error.  */
21658 #ifdef __cplusplus
21659 extern "C"
21660 {
21661 #endif
21662 /* We use char because int might match the return type of a gcc2
21663    builtin and then its argument prototype would still apply.  */
21664 char $ac_func ();
21665 /* The GNU C library defines this for functions which it implements
21666     to always fail with ENOSYS.  Some functions are actually named
21667     something starting with __ and the normal name is an alias.  */
21668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21669 choke me
21670 #else
21671 char (*f) () = $ac_func;
21672 #endif
21673 #ifdef __cplusplus
21674 }
21675 #endif
21676
21677 int
21678 main ()
21679 {
21680 return f != $ac_func;
21681   ;
21682   return 0;
21683 }
21684 _ACEOF
21685 rm -f conftest.$ac_objext conftest$ac_exeext
21686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21687   (eval $ac_link) 2>conftest.er1
21688   ac_status=$?
21689   grep -v '^ *+' conftest.er1 >conftest.err
21690   rm -f conftest.er1
21691   cat conftest.err >&5
21692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693   (exit $ac_status); } &&
21694          { ac_try='test -z "$ac_c_werror_flag"
21695                          || test ! -s conftest.err'
21696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697   (eval $ac_try) 2>&5
21698   ac_status=$?
21699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700   (exit $ac_status); }; } &&
21701          { ac_try='test -s conftest$ac_exeext'
21702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703   (eval $ac_try) 2>&5
21704   ac_status=$?
21705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706   (exit $ac_status); }; }; then
21707   eval "$as_ac_var=yes"
21708 else
21709   echo "$as_me: failed program was:" >&5
21710 sed 's/^/| /' conftest.$ac_ext >&5
21711
21712 eval "$as_ac_var=no"
21713 fi
21714 rm -f conftest.err conftest.$ac_objext \
21715       conftest$ac_exeext conftest.$ac_ext
21716 fi
21717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21719 if test `eval echo '${'$as_ac_var'}'` = yes; then
21720   cat >>confdefs.h <<_ACEOF
21721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21722 _ACEOF
21723
21724 else
21725   case $LIBOBJS in
21726     "$ac_func.$ac_objext"   | \
21727   *" $ac_func.$ac_objext"   | \
21728     "$ac_func.$ac_objext "* | \
21729   *" $ac_func.$ac_objext "* ) ;;
21730   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21731 esac
21732
21733 fi
21734 done
21735
21736
21737     if test $ac_cv_func_strtoimax = no; then
21738
21739
21740
21741
21742   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
21743
21744     test $ac_cv_type_long_long = yes \
21745       && ac_type='long long' \
21746       || ac_type='long'
21747
21748 cat >>confdefs.h <<_ACEOF
21749 #define intmax_t $ac_type
21750 _ACEOF
21751
21752   else
21753
21754 cat >>confdefs.h <<\_ACEOF
21755 #define HAVE_INTMAX_T 1
21756 _ACEOF
21757
21758   fi
21759
21760   echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
21761 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
21762 if test "${ac_cv_have_decl_strtoll+set}" = set; then
21763   echo $ECHO_N "(cached) $ECHO_C" >&6
21764 else
21765   cat >conftest.$ac_ext <<_ACEOF
21766 /* confdefs.h.  */
21767 _ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h.  */
21771 $ac_includes_default
21772 int
21773 main ()
21774 {
21775 #ifndef strtoll
21776   char *p = (char *) strtoll;
21777 #endif
21778
21779   ;
21780   return 0;
21781 }
21782 _ACEOF
21783 rm -f conftest.$ac_objext
21784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21785   (eval $ac_compile) 2>conftest.er1
21786   ac_status=$?
21787   grep -v '^ *+' conftest.er1 >conftest.err
21788   rm -f conftest.er1
21789   cat conftest.err >&5
21790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791   (exit $ac_status); } &&
21792          { ac_try='test -z "$ac_c_werror_flag"
21793                          || test ! -s conftest.err'
21794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795   (eval $ac_try) 2>&5
21796   ac_status=$?
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); }; } &&
21799          { ac_try='test -s conftest.$ac_objext'
21800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801   (eval $ac_try) 2>&5
21802   ac_status=$?
21803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804   (exit $ac_status); }; }; then
21805   ac_cv_have_decl_strtoll=yes
21806 else
21807   echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810 ac_cv_have_decl_strtoll=no
21811 fi
21812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21813 fi
21814 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
21815 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
21816 if test $ac_cv_have_decl_strtoll = yes; then
21817
21818 cat >>confdefs.h <<_ACEOF
21819 #define HAVE_DECL_STRTOLL 1
21820 _ACEOF
21821
21822
21823 else
21824   cat >>confdefs.h <<_ACEOF
21825 #define HAVE_DECL_STRTOLL 0
21826 _ACEOF
21827
21828
21829 fi
21830
21831
21832
21833
21834     fi
21835   fi
21836
21837
21838
21839   if test "$ac_cv_type_long_long" = yes; then
21840
21841 for ac_func in strtoll
21842 do
21843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21844 echo "$as_me:$LINENO: checking for $ac_func" >&5
21845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21846 if eval "test \"\${$as_ac_var+set}\" = set"; then
21847   echo $ECHO_N "(cached) $ECHO_C" >&6
21848 else
21849   cat >conftest.$ac_ext <<_ACEOF
21850 /* confdefs.h.  */
21851 _ACEOF
21852 cat confdefs.h >>conftest.$ac_ext
21853 cat >>conftest.$ac_ext <<_ACEOF
21854 /* end confdefs.h.  */
21855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21857 #define $ac_func innocuous_$ac_func
21858
21859 /* System header to define __stub macros and hopefully few prototypes,
21860     which can conflict with char $ac_func (); below.
21861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21862     <limits.h> exists even on freestanding compilers.  */
21863
21864 #ifdef __STDC__
21865 # include <limits.h>
21866 #else
21867 # include <assert.h>
21868 #endif
21869
21870 #undef $ac_func
21871
21872 /* Override any gcc2 internal prototype to avoid an error.  */
21873 #ifdef __cplusplus
21874 extern "C"
21875 {
21876 #endif
21877 /* We use char because int might match the return type of a gcc2
21878    builtin and then its argument prototype would still apply.  */
21879 char $ac_func ();
21880 /* The GNU C library defines this for functions which it implements
21881     to always fail with ENOSYS.  Some functions are actually named
21882     something starting with __ and the normal name is an alias.  */
21883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21884 choke me
21885 #else
21886 char (*f) () = $ac_func;
21887 #endif
21888 #ifdef __cplusplus
21889 }
21890 #endif
21891
21892 int
21893 main ()
21894 {
21895 return f != $ac_func;
21896   ;
21897   return 0;
21898 }
21899 _ACEOF
21900 rm -f conftest.$ac_objext conftest$ac_exeext
21901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21902   (eval $ac_link) 2>conftest.er1
21903   ac_status=$?
21904   grep -v '^ *+' conftest.er1 >conftest.err
21905   rm -f conftest.er1
21906   cat conftest.err >&5
21907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); } &&
21909          { ac_try='test -z "$ac_c_werror_flag"
21910                          || test ! -s conftest.err'
21911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912   (eval $ac_try) 2>&5
21913   ac_status=$?
21914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915   (exit $ac_status); }; } &&
21916          { ac_try='test -s conftest$ac_exeext'
21917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21918   (eval $ac_try) 2>&5
21919   ac_status=$?
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); }; }; then
21922   eval "$as_ac_var=yes"
21923 else
21924   echo "$as_me: failed program was:" >&5
21925 sed 's/^/| /' conftest.$ac_ext >&5
21926
21927 eval "$as_ac_var=no"
21928 fi
21929 rm -f conftest.err conftest.$ac_objext \
21930       conftest$ac_exeext conftest.$ac_ext
21931 fi
21932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21934 if test `eval echo '${'$as_ac_var'}'` = yes; then
21935   cat >>confdefs.h <<_ACEOF
21936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21937 _ACEOF
21938
21939 else
21940   case $LIBOBJS in
21941     "$ac_func.$ac_objext"   | \
21942   *" $ac_func.$ac_objext"   | \
21943     "$ac_func.$ac_objext "* | \
21944   *" $ac_func.$ac_objext "* ) ;;
21945   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21946 esac
21947
21948 fi
21949 done
21950
21951
21952     if test $ac_cv_func_strtoll = no; then
21953
21954   :
21955
21956     fi
21957   fi
21958
21959
21960
21961 for ac_func in strtol
21962 do
21963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21964 echo "$as_me:$LINENO: checking for $ac_func" >&5
21965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21966 if eval "test \"\${$as_ac_var+set}\" = set"; then
21967   echo $ECHO_N "(cached) $ECHO_C" >&6
21968 else
21969   cat >conftest.$ac_ext <<_ACEOF
21970 /* confdefs.h.  */
21971 _ACEOF
21972 cat confdefs.h >>conftest.$ac_ext
21973 cat >>conftest.$ac_ext <<_ACEOF
21974 /* end confdefs.h.  */
21975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21977 #define $ac_func innocuous_$ac_func
21978
21979 /* System header to define __stub macros and hopefully few prototypes,
21980     which can conflict with char $ac_func (); below.
21981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21982     <limits.h> exists even on freestanding compilers.  */
21983
21984 #ifdef __STDC__
21985 # include <limits.h>
21986 #else
21987 # include <assert.h>
21988 #endif
21989
21990 #undef $ac_func
21991
21992 /* Override any gcc2 internal prototype to avoid an error.  */
21993 #ifdef __cplusplus
21994 extern "C"
21995 {
21996 #endif
21997 /* We use char because int might match the return type of a gcc2
21998    builtin and then its argument prototype would still apply.  */
21999 char $ac_func ();
22000 /* The GNU C library defines this for functions which it implements
22001     to always fail with ENOSYS.  Some functions are actually named
22002     something starting with __ and the normal name is an alias.  */
22003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22004 choke me
22005 #else
22006 char (*f) () = $ac_func;
22007 #endif
22008 #ifdef __cplusplus
22009 }
22010 #endif
22011
22012 int
22013 main ()
22014 {
22015 return f != $ac_func;
22016   ;
22017   return 0;
22018 }
22019 _ACEOF
22020 rm -f conftest.$ac_objext conftest$ac_exeext
22021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22022   (eval $ac_link) 2>conftest.er1
22023   ac_status=$?
22024   grep -v '^ *+' conftest.er1 >conftest.err
22025   rm -f conftest.er1
22026   cat conftest.err >&5
22027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028   (exit $ac_status); } &&
22029          { ac_try='test -z "$ac_c_werror_flag"
22030                          || test ! -s conftest.err'
22031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032   (eval $ac_try) 2>&5
22033   ac_status=$?
22034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035   (exit $ac_status); }; } &&
22036          { ac_try='test -s conftest$ac_exeext'
22037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038   (eval $ac_try) 2>&5
22039   ac_status=$?
22040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041   (exit $ac_status); }; }; then
22042   eval "$as_ac_var=yes"
22043 else
22044   echo "$as_me: failed program was:" >&5
22045 sed 's/^/| /' conftest.$ac_ext >&5
22046
22047 eval "$as_ac_var=no"
22048 fi
22049 rm -f conftest.err conftest.$ac_objext \
22050       conftest$ac_exeext conftest.$ac_ext
22051 fi
22052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22054 if test `eval echo '${'$as_ac_var'}'` = yes; then
22055   cat >>confdefs.h <<_ACEOF
22056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22057 _ACEOF
22058
22059 else
22060   case $LIBOBJS in
22061     "$ac_func.$ac_objext"   | \
22062   *" $ac_func.$ac_objext"   | \
22063     "$ac_func.$ac_objext "* | \
22064   *" $ac_func.$ac_objext "* ) ;;
22065   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
22066 esac
22067
22068 fi
22069 done
22070
22071
22072   if test $ac_cv_func_strtol = no; then
22073
22074
22075
22076   :
22077
22078
22079
22080
22081
22082
22083   fi
22084
22085
22086
22087   if test "$ac_cv_type_unsigned_long_long" = yes; then
22088
22089 for ac_func in strtoull
22090 do
22091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22092 echo "$as_me:$LINENO: checking for $ac_func" >&5
22093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22094 if eval "test \"\${$as_ac_var+set}\" = set"; then
22095   echo $ECHO_N "(cached) $ECHO_C" >&6
22096 else
22097   cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h.  */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h.  */
22103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22105 #define $ac_func innocuous_$ac_func
22106
22107 /* System header to define __stub macros and hopefully few prototypes,
22108     which can conflict with char $ac_func (); below.
22109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22110     <limits.h> exists even on freestanding compilers.  */
22111
22112 #ifdef __STDC__
22113 # include <limits.h>
22114 #else
22115 # include <assert.h>
22116 #endif
22117
22118 #undef $ac_func
22119
22120 /* Override any gcc2 internal prototype to avoid an error.  */
22121 #ifdef __cplusplus
22122 extern "C"
22123 {
22124 #endif
22125 /* We use char because int might match the return type of a gcc2
22126    builtin and then its argument prototype would still apply.  */
22127 char $ac_func ();
22128 /* The GNU C library defines this for functions which it implements
22129     to always fail with ENOSYS.  Some functions are actually named
22130     something starting with __ and the normal name is an alias.  */
22131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22132 choke me
22133 #else
22134 char (*f) () = $ac_func;
22135 #endif
22136 #ifdef __cplusplus
22137 }
22138 #endif
22139
22140 int
22141 main ()
22142 {
22143 return f != $ac_func;
22144   ;
22145   return 0;
22146 }
22147 _ACEOF
22148 rm -f conftest.$ac_objext conftest$ac_exeext
22149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22150   (eval $ac_link) 2>conftest.er1
22151   ac_status=$?
22152   grep -v '^ *+' conftest.er1 >conftest.err
22153   rm -f conftest.er1
22154   cat conftest.err >&5
22155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156   (exit $ac_status); } &&
22157          { ac_try='test -z "$ac_c_werror_flag"
22158                          || test ! -s conftest.err'
22159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160   (eval $ac_try) 2>&5
22161   ac_status=$?
22162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163   (exit $ac_status); }; } &&
22164          { ac_try='test -s conftest$ac_exeext'
22165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22166   (eval $ac_try) 2>&5
22167   ac_status=$?
22168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169   (exit $ac_status); }; }; then
22170   eval "$as_ac_var=yes"
22171 else
22172   echo "$as_me: failed program was:" >&5
22173 sed 's/^/| /' conftest.$ac_ext >&5
22174
22175 eval "$as_ac_var=no"
22176 fi
22177 rm -f conftest.err conftest.$ac_objext \
22178       conftest$ac_exeext conftest.$ac_ext
22179 fi
22180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22182 if test `eval echo '${'$as_ac_var'}'` = yes; then
22183   cat >>confdefs.h <<_ACEOF
22184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22185 _ACEOF
22186
22187 else
22188   case $LIBOBJS in
22189     "$ac_func.$ac_objext"   | \
22190   *" $ac_func.$ac_objext"   | \
22191     "$ac_func.$ac_objext "* | \
22192   *" $ac_func.$ac_objext "* ) ;;
22193   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
22194 esac
22195
22196 fi
22197 done
22198
22199
22200     if test $ac_cv_func_strtoull = no; then
22201
22202   :
22203
22204     fi
22205   fi
22206
22207
22208
22209 for ac_func in strtoul
22210 do
22211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22212 echo "$as_me:$LINENO: checking for $ac_func" >&5
22213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22214 if eval "test \"\${$as_ac_var+set}\" = set"; then
22215   echo $ECHO_N "(cached) $ECHO_C" >&6
22216 else
22217   cat >conftest.$ac_ext <<_ACEOF
22218 /* confdefs.h.  */
22219 _ACEOF
22220 cat confdefs.h >>conftest.$ac_ext
22221 cat >>conftest.$ac_ext <<_ACEOF
22222 /* end confdefs.h.  */
22223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22225 #define $ac_func innocuous_$ac_func
22226
22227 /* System header to define __stub macros and hopefully few prototypes,
22228     which can conflict with char $ac_func (); below.
22229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22230     <limits.h> exists even on freestanding compilers.  */
22231
22232 #ifdef __STDC__
22233 # include <limits.h>
22234 #else
22235 # include <assert.h>
22236 #endif
22237
22238 #undef $ac_func
22239
22240 /* Override any gcc2 internal prototype to avoid an error.  */
22241 #ifdef __cplusplus
22242 extern "C"
22243 {
22244 #endif
22245 /* We use char because int might match the return type of a gcc2
22246    builtin and then its argument prototype would still apply.  */
22247 char $ac_func ();
22248 /* The GNU C library defines this for functions which it implements
22249     to always fail with ENOSYS.  Some functions are actually named
22250     something starting with __ and the normal name is an alias.  */
22251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22252 choke me
22253 #else
22254 char (*f) () = $ac_func;
22255 #endif
22256 #ifdef __cplusplus
22257 }
22258 #endif
22259
22260 int
22261 main ()
22262 {
22263 return f != $ac_func;
22264   ;
22265   return 0;
22266 }
22267 _ACEOF
22268 rm -f conftest.$ac_objext conftest$ac_exeext
22269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22270   (eval $ac_link) 2>conftest.er1
22271   ac_status=$?
22272   grep -v '^ *+' conftest.er1 >conftest.err
22273   rm -f conftest.er1
22274   cat conftest.err >&5
22275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276   (exit $ac_status); } &&
22277          { ac_try='test -z "$ac_c_werror_flag"
22278                          || test ! -s conftest.err'
22279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280   (eval $ac_try) 2>&5
22281   ac_status=$?
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); }; } &&
22284          { ac_try='test -s conftest$ac_exeext'
22285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286   (eval $ac_try) 2>&5
22287   ac_status=$?
22288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289   (exit $ac_status); }; }; then
22290   eval "$as_ac_var=yes"
22291 else
22292   echo "$as_me: failed program was:" >&5
22293 sed 's/^/| /' conftest.$ac_ext >&5
22294
22295 eval "$as_ac_var=no"
22296 fi
22297 rm -f conftest.err conftest.$ac_objext \
22298       conftest$ac_exeext conftest.$ac_ext
22299 fi
22300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22302 if test `eval echo '${'$as_ac_var'}'` = yes; then
22303   cat >>confdefs.h <<_ACEOF
22304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22305 _ACEOF
22306
22307 else
22308   case $LIBOBJS in
22309     "$ac_func.$ac_objext"   | \
22310   *" $ac_func.$ac_objext"   | \
22311     "$ac_func.$ac_objext "* | \
22312   *" $ac_func.$ac_objext "* ) ;;
22313   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
22314 esac
22315
22316 fi
22317 done
22318
22319
22320   if test $ac_cv_func_strtoul = no; then
22321
22322
22323
22324
22325   :
22326
22327
22328
22329
22330
22331
22332
22333   fi
22334
22335
22336
22337
22338
22339   echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
22340 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
22341 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
22342   echo $ECHO_N "(cached) $ECHO_C" >&6
22343 else
22344   cat >conftest.$ac_ext <<_ACEOF
22345 /* confdefs.h.  */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h.  */
22350 #include <inttypes.h>
22351 #ifdef strtoumax
22352  inttypes_h_defines_strtoumax
22353 #endif
22354 _ACEOF
22355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22356   $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
22357   jm_cv_func_strtoumax_macro=yes
22358 else
22359   jm_cv_func_strtoumax_macro=no
22360 fi
22361 rm -f conftest*
22362
22363 fi
22364 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
22365 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
22366
22367   if test "$jm_cv_func_strtoumax_macro" != yes; then
22368
22369 for ac_func in strtoumax
22370 do
22371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22372 echo "$as_me:$LINENO: checking for $ac_func" >&5
22373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22374 if eval "test \"\${$as_ac_var+set}\" = set"; then
22375   echo $ECHO_N "(cached) $ECHO_C" >&6
22376 else
22377   cat >conftest.$ac_ext <<_ACEOF
22378 /* confdefs.h.  */
22379 _ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h.  */
22383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22385 #define $ac_func innocuous_$ac_func
22386
22387 /* System header to define __stub macros and hopefully few prototypes,
22388     which can conflict with char $ac_func (); below.
22389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22390     <limits.h> exists even on freestanding compilers.  */
22391
22392 #ifdef __STDC__
22393 # include <limits.h>
22394 #else
22395 # include <assert.h>
22396 #endif
22397
22398 #undef $ac_func
22399
22400 /* Override any gcc2 internal prototype to avoid an error.  */
22401 #ifdef __cplusplus
22402 extern "C"
22403 {
22404 #endif
22405 /* We use char because int might match the return type of a gcc2
22406    builtin and then its argument prototype would still apply.  */
22407 char $ac_func ();
22408 /* The GNU C library defines this for functions which it implements
22409     to always fail with ENOSYS.  Some functions are actually named
22410     something starting with __ and the normal name is an alias.  */
22411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22412 choke me
22413 #else
22414 char (*f) () = $ac_func;
22415 #endif
22416 #ifdef __cplusplus
22417 }
22418 #endif
22419
22420 int
22421 main ()
22422 {
22423 return f != $ac_func;
22424   ;
22425   return 0;
22426 }
22427 _ACEOF
22428 rm -f conftest.$ac_objext conftest$ac_exeext
22429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22430   (eval $ac_link) 2>conftest.er1
22431   ac_status=$?
22432   grep -v '^ *+' conftest.er1 >conftest.err
22433   rm -f conftest.er1
22434   cat conftest.err >&5
22435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436   (exit $ac_status); } &&
22437          { ac_try='test -z "$ac_c_werror_flag"
22438                          || test ! -s conftest.err'
22439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22440   (eval $ac_try) 2>&5
22441   ac_status=$?
22442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443   (exit $ac_status); }; } &&
22444          { ac_try='test -s conftest$ac_exeext'
22445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22446   (eval $ac_try) 2>&5
22447   ac_status=$?
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); }; }; then
22450   eval "$as_ac_var=yes"
22451 else
22452   echo "$as_me: failed program was:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22454
22455 eval "$as_ac_var=no"
22456 fi
22457 rm -f conftest.err conftest.$ac_objext \
22458       conftest$ac_exeext conftest.$ac_ext
22459 fi
22460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22462 if test `eval echo '${'$as_ac_var'}'` = yes; then
22463   cat >>confdefs.h <<_ACEOF
22464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22465 _ACEOF
22466
22467 else
22468   case $LIBOBJS in
22469     "$ac_func.$ac_objext"   | \
22470   *" $ac_func.$ac_objext"   | \
22471     "$ac_func.$ac_objext "* | \
22472   *" $ac_func.$ac_objext "* ) ;;
22473   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
22474 esac
22475
22476 fi
22477 done
22478
22479
22480     if test $ac_cv_func_strtoumax = no; then
22481
22482
22483
22484
22485   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
22486
22487     test $ac_cv_type_unsigned_long_long = yes \
22488       && ac_type='unsigned long long' \
22489       || ac_type='unsigned long'
22490
22491 cat >>confdefs.h <<_ACEOF
22492 #define uintmax_t $ac_type
22493 _ACEOF
22494
22495   else
22496
22497 cat >>confdefs.h <<\_ACEOF
22498 #define HAVE_UINTMAX_T 1
22499 _ACEOF
22500
22501   fi
22502
22503   echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
22504 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
22505 if test "${ac_cv_have_decl_strtoull+set}" = set; then
22506   echo $ECHO_N "(cached) $ECHO_C" >&6
22507 else
22508   cat >conftest.$ac_ext <<_ACEOF
22509 /* confdefs.h.  */
22510 _ACEOF
22511 cat confdefs.h >>conftest.$ac_ext
22512 cat >>conftest.$ac_ext <<_ACEOF
22513 /* end confdefs.h.  */
22514 $ac_includes_default
22515 int
22516 main ()
22517 {
22518 #ifndef strtoull
22519   char *p = (char *) strtoull;
22520 #endif
22521
22522   ;
22523   return 0;
22524 }
22525 _ACEOF
22526 rm -f conftest.$ac_objext
22527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22528   (eval $ac_compile) 2>conftest.er1
22529   ac_status=$?
22530   grep -v '^ *+' conftest.er1 >conftest.err
22531   rm -f conftest.er1
22532   cat conftest.err >&5
22533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534   (exit $ac_status); } &&
22535          { ac_try='test -z "$ac_c_werror_flag"
22536                          || test ! -s conftest.err'
22537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22538   (eval $ac_try) 2>&5
22539   ac_status=$?
22540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541   (exit $ac_status); }; } &&
22542          { ac_try='test -s conftest.$ac_objext'
22543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22544   (eval $ac_try) 2>&5
22545   ac_status=$?
22546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547   (exit $ac_status); }; }; then
22548   ac_cv_have_decl_strtoull=yes
22549 else
22550   echo "$as_me: failed program was:" >&5
22551 sed 's/^/| /' conftest.$ac_ext >&5
22552
22553 ac_cv_have_decl_strtoull=no
22554 fi
22555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22556 fi
22557 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
22558 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
22559 if test $ac_cv_have_decl_strtoull = yes; then
22560
22561 cat >>confdefs.h <<_ACEOF
22562 #define HAVE_DECL_STRTOULL 1
22563 _ACEOF
22564
22565
22566 else
22567   cat >>confdefs.h <<_ACEOF
22568 #define HAVE_DECL_STRTOULL 0
22569 _ACEOF
22570
22571
22572 fi
22573
22574
22575
22576
22577     fi
22578   fi
22579
22580
22581
22582
22583
22584 for ac_func in strverscmp
22585 do
22586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22587 echo "$as_me:$LINENO: checking for $ac_func" >&5
22588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22589 if eval "test \"\${$as_ac_var+set}\" = set"; then
22590   echo $ECHO_N "(cached) $ECHO_C" >&6
22591 else
22592   cat >conftest.$ac_ext <<_ACEOF
22593 /* confdefs.h.  */
22594 _ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h.  */
22598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22600 #define $ac_func innocuous_$ac_func
22601
22602 /* System header to define __stub macros and hopefully few prototypes,
22603     which can conflict with char $ac_func (); below.
22604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22605     <limits.h> exists even on freestanding compilers.  */
22606
22607 #ifdef __STDC__
22608 # include <limits.h>
22609 #else
22610 # include <assert.h>
22611 #endif
22612
22613 #undef $ac_func
22614
22615 /* Override any gcc2 internal prototype to avoid an error.  */
22616 #ifdef __cplusplus
22617 extern "C"
22618 {
22619 #endif
22620 /* We use char because int might match the return type of a gcc2
22621    builtin and then its argument prototype would still apply.  */
22622 char $ac_func ();
22623 /* The GNU C library defines this for functions which it implements
22624     to always fail with ENOSYS.  Some functions are actually named
22625     something starting with __ and the normal name is an alias.  */
22626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22627 choke me
22628 #else
22629 char (*f) () = $ac_func;
22630 #endif
22631 #ifdef __cplusplus
22632 }
22633 #endif
22634
22635 int
22636 main ()
22637 {
22638 return f != $ac_func;
22639   ;
22640   return 0;
22641 }
22642 _ACEOF
22643 rm -f conftest.$ac_objext conftest$ac_exeext
22644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22645   (eval $ac_link) 2>conftest.er1
22646   ac_status=$?
22647   grep -v '^ *+' conftest.er1 >conftest.err
22648   rm -f conftest.er1
22649   cat conftest.err >&5
22650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651   (exit $ac_status); } &&
22652          { ac_try='test -z "$ac_c_werror_flag"
22653                          || test ! -s conftest.err'
22654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22655   (eval $ac_try) 2>&5
22656   ac_status=$?
22657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658   (exit $ac_status); }; } &&
22659          { ac_try='test -s conftest$ac_exeext'
22660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22661   (eval $ac_try) 2>&5
22662   ac_status=$?
22663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664   (exit $ac_status); }; }; then
22665   eval "$as_ac_var=yes"
22666 else
22667   echo "$as_me: failed program was:" >&5
22668 sed 's/^/| /' conftest.$ac_ext >&5
22669
22670 eval "$as_ac_var=no"
22671 fi
22672 rm -f conftest.err conftest.$ac_objext \
22673       conftest$ac_exeext conftest.$ac_ext
22674 fi
22675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22677 if test `eval echo '${'$as_ac_var'}'` = yes; then
22678   cat >>confdefs.h <<_ACEOF
22679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22680 _ACEOF
22681
22682 else
22683   case $LIBOBJS in
22684     "$ac_func.$ac_objext"   | \
22685   *" $ac_func.$ac_objext"   | \
22686     "$ac_func.$ac_objext "* | \
22687   *" $ac_func.$ac_objext "* ) ;;
22688   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
22689 esac
22690
22691 fi
22692 done
22693
22694
22695   if test $ac_cv_func_strverscmp = no; then
22696
22697   :
22698
22699   fi
22700
22701
22702   echo "$as_me:$LINENO: checking for signed" >&5
22703 echo $ECHO_N "checking for signed... $ECHO_C" >&6
22704 if test "${bh_cv_c_signed+set}" = set; then
22705   echo $ECHO_N "(cached) $ECHO_C" >&6
22706 else
22707   cat >conftest.$ac_ext <<_ACEOF
22708 /* confdefs.h.  */
22709 _ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h.  */
22713
22714 int
22715 main ()
22716 {
22717 signed char x;
22718   ;
22719   return 0;
22720 }
22721 _ACEOF
22722 rm -f conftest.$ac_objext
22723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22724   (eval $ac_compile) 2>conftest.er1
22725   ac_status=$?
22726   grep -v '^ *+' conftest.er1 >conftest.err
22727   rm -f conftest.er1
22728   cat conftest.err >&5
22729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730   (exit $ac_status); } &&
22731          { ac_try='test -z "$ac_c_werror_flag"
22732                          || test ! -s conftest.err'
22733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734   (eval $ac_try) 2>&5
22735   ac_status=$?
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); }; } &&
22738          { ac_try='test -s conftest.$ac_objext'
22739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740   (eval $ac_try) 2>&5
22741   ac_status=$?
22742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743   (exit $ac_status); }; }; then
22744   bh_cv_c_signed=yes
22745 else
22746   echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22748
22749 bh_cv_c_signed=no
22750 fi
22751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22752 fi
22753 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
22754 echo "${ECHO_T}$bh_cv_c_signed" >&6
22755   if test $bh_cv_c_signed = no; then
22756
22757 cat >>confdefs.h <<\_ACEOF
22758 #define signed
22759 _ACEOF
22760
22761   fi
22762
22763
22764   echo "$as_me:$LINENO: checking for long double" >&5
22765 echo $ECHO_N "checking for long double... $ECHO_C" >&6
22766 if test "${gt_cv_c_long_double+set}" = set; then
22767   echo $ECHO_N "(cached) $ECHO_C" >&6
22768 else
22769   if test "$GCC" = yes; then
22770        gt_cv_c_long_double=yes
22771      else
22772        cat >conftest.$ac_ext <<_ACEOF
22773 /* confdefs.h.  */
22774 _ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h.  */
22778
22779          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
22780          long double foo = 0.0;
22781          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
22782          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
22783
22784 int
22785 main ()
22786 {
22787
22788   ;
22789   return 0;
22790 }
22791 _ACEOF
22792 rm -f conftest.$ac_objext
22793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22794   (eval $ac_compile) 2>conftest.er1
22795   ac_status=$?
22796   grep -v '^ *+' conftest.er1 >conftest.err
22797   rm -f conftest.er1
22798   cat conftest.err >&5
22799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800   (exit $ac_status); } &&
22801          { ac_try='test -z "$ac_c_werror_flag"
22802                          || test ! -s conftest.err'
22803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804   (eval $ac_try) 2>&5
22805   ac_status=$?
22806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807   (exit $ac_status); }; } &&
22808          { ac_try='test -s conftest.$ac_objext'
22809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810   (eval $ac_try) 2>&5
22811   ac_status=$?
22812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813   (exit $ac_status); }; }; then
22814   gt_cv_c_long_double=yes
22815 else
22816   echo "$as_me: failed program was:" >&5
22817 sed 's/^/| /' conftest.$ac_ext >&5
22818
22819 gt_cv_c_long_double=no
22820 fi
22821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22822      fi
22823 fi
22824 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
22825 echo "${ECHO_T}$gt_cv_c_long_double" >&6
22826   if test $gt_cv_c_long_double = yes; then
22827
22828 cat >>confdefs.h <<\_ACEOF
22829 #define HAVE_LONG_DOUBLE 1
22830 _ACEOF
22831
22832   fi
22833
22834
22835   echo "$as_me:$LINENO: checking for wchar_t" >&5
22836 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
22837 if test "${gt_cv_c_wchar_t+set}" = set; then
22838   echo $ECHO_N "(cached) $ECHO_C" >&6
22839 else
22840   cat >conftest.$ac_ext <<_ACEOF
22841 /* confdefs.h.  */
22842 _ACEOF
22843 cat confdefs.h >>conftest.$ac_ext
22844 cat >>conftest.$ac_ext <<_ACEOF
22845 /* end confdefs.h.  */
22846 #include <stddef.h>
22847        wchar_t foo = (wchar_t)'\0';
22848 int
22849 main ()
22850 {
22851
22852   ;
22853   return 0;
22854 }
22855 _ACEOF
22856 rm -f conftest.$ac_objext
22857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22858   (eval $ac_compile) 2>conftest.er1
22859   ac_status=$?
22860   grep -v '^ *+' conftest.er1 >conftest.err
22861   rm -f conftest.er1
22862   cat conftest.err >&5
22863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864   (exit $ac_status); } &&
22865          { ac_try='test -z "$ac_c_werror_flag"
22866                          || test ! -s conftest.err'
22867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22868   (eval $ac_try) 2>&5
22869   ac_status=$?
22870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871   (exit $ac_status); }; } &&
22872          { ac_try='test -s conftest.$ac_objext'
22873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22874   (eval $ac_try) 2>&5
22875   ac_status=$?
22876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877   (exit $ac_status); }; }; then
22878   gt_cv_c_wchar_t=yes
22879 else
22880   echo "$as_me: failed program was:" >&5
22881 sed 's/^/| /' conftest.$ac_ext >&5
22882
22883 gt_cv_c_wchar_t=no
22884 fi
22885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22886 fi
22887 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
22888 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
22889   if test $gt_cv_c_wchar_t = yes; then
22890
22891 cat >>confdefs.h <<\_ACEOF
22892 #define HAVE_WCHAR_T 1
22893 _ACEOF
22894
22895   fi
22896
22897
22898   echo "$as_me:$LINENO: checking for wint_t" >&5
22899 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
22900 if test "${gt_cv_c_wint_t+set}" = set; then
22901   echo $ECHO_N "(cached) $ECHO_C" >&6
22902 else
22903   cat >conftest.$ac_ext <<_ACEOF
22904 /* confdefs.h.  */
22905 _ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h.  */
22909 #include <wchar.h>
22910        wint_t foo = (wchar_t)'\0';
22911 int
22912 main ()
22913 {
22914
22915   ;
22916   return 0;
22917 }
22918 _ACEOF
22919 rm -f conftest.$ac_objext
22920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22921   (eval $ac_compile) 2>conftest.er1
22922   ac_status=$?
22923   grep -v '^ *+' conftest.er1 >conftest.err
22924   rm -f conftest.er1
22925   cat conftest.err >&5
22926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927   (exit $ac_status); } &&
22928          { ac_try='test -z "$ac_c_werror_flag"
22929                          || test ! -s conftest.err'
22930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931   (eval $ac_try) 2>&5
22932   ac_status=$?
22933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934   (exit $ac_status); }; } &&
22935          { ac_try='test -s conftest.$ac_objext'
22936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22937   (eval $ac_try) 2>&5
22938   ac_status=$?
22939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940   (exit $ac_status); }; }; then
22941   gt_cv_c_wint_t=yes
22942 else
22943   echo "$as_me: failed program was:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22945
22946 gt_cv_c_wint_t=no
22947 fi
22948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22949 fi
22950 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
22951 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
22952   if test $gt_cv_c_wint_t = yes; then
22953
22954 cat >>confdefs.h <<\_ACEOF
22955 #define HAVE_WINT_T 1
22956 _ACEOF
22957
22958   fi
22959
22960
22961
22962
22963   echo "$as_me:$LINENO: checking for intmax_t" >&5
22964 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
22965 if test "${gt_cv_c_intmax_t+set}" = set; then
22966   echo $ECHO_N "(cached) $ECHO_C" >&6
22967 else
22968   cat >conftest.$ac_ext <<_ACEOF
22969 /* confdefs.h.  */
22970 _ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h.  */
22974
22975 #include <stddef.h>
22976 #include <stdlib.h>
22977 #if HAVE_STDINT_H_WITH_UINTMAX
22978 #include <stdint.h>
22979 #endif
22980 #if HAVE_INTTYPES_H_WITH_UINTMAX
22981 #include <inttypes.h>
22982 #endif
22983
22984 int
22985 main ()
22986 {
22987 intmax_t x = -1;
22988   ;
22989   return 0;
22990 }
22991 _ACEOF
22992 rm -f conftest.$ac_objext
22993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22994   (eval $ac_compile) 2>conftest.er1
22995   ac_status=$?
22996   grep -v '^ *+' conftest.er1 >conftest.err
22997   rm -f conftest.er1
22998   cat conftest.err >&5
22999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000   (exit $ac_status); } &&
23001          { ac_try='test -z "$ac_c_werror_flag"
23002                          || test ! -s conftest.err'
23003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004   (eval $ac_try) 2>&5
23005   ac_status=$?
23006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007   (exit $ac_status); }; } &&
23008          { ac_try='test -s conftest.$ac_objext'
23009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010   (eval $ac_try) 2>&5
23011   ac_status=$?
23012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013   (exit $ac_status); }; }; then
23014   gt_cv_c_intmax_t=yes
23015 else
23016   echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23018
23019 gt_cv_c_intmax_t=no
23020 fi
23021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23022 fi
23023 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
23024 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
23025   if test $gt_cv_c_intmax_t = yes; then
23026
23027 cat >>confdefs.h <<\_ACEOF
23028 #define HAVE_INTMAX_T 1
23029 _ACEOF
23030
23031   else
23032
23033     test $ac_cv_type_long_long = yes \
23034       && ac_type='long long' \
23035       || ac_type='long'
23036
23037 cat >>confdefs.h <<_ACEOF
23038 #define intmax_t $ac_type
23039 _ACEOF
23040
23041   fi
23042
23043
23044
23045 for ac_func in vasnprintf
23046 do
23047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23048 echo "$as_me:$LINENO: checking for $ac_func" >&5
23049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23050 if eval "test \"\${$as_ac_var+set}\" = set"; then
23051   echo $ECHO_N "(cached) $ECHO_C" >&6
23052 else
23053   cat >conftest.$ac_ext <<_ACEOF
23054 /* confdefs.h.  */
23055 _ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h.  */
23059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23061 #define $ac_func innocuous_$ac_func
23062
23063 /* System header to define __stub macros and hopefully few prototypes,
23064     which can conflict with char $ac_func (); below.
23065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23066     <limits.h> exists even on freestanding compilers.  */
23067
23068 #ifdef __STDC__
23069 # include <limits.h>
23070 #else
23071 # include <assert.h>
23072 #endif
23073
23074 #undef $ac_func
23075
23076 /* Override any gcc2 internal prototype to avoid an error.  */
23077 #ifdef __cplusplus
23078 extern "C"
23079 {
23080 #endif
23081 /* We use char because int might match the return type of a gcc2
23082    builtin and then its argument prototype would still apply.  */
23083 char $ac_func ();
23084 /* The GNU C library defines this for functions which it implements
23085     to always fail with ENOSYS.  Some functions are actually named
23086     something starting with __ and the normal name is an alias.  */
23087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23088 choke me
23089 #else
23090 char (*f) () = $ac_func;
23091 #endif
23092 #ifdef __cplusplus
23093 }
23094 #endif
23095
23096 int
23097 main ()
23098 {
23099 return f != $ac_func;
23100   ;
23101   return 0;
23102 }
23103 _ACEOF
23104 rm -f conftest.$ac_objext conftest$ac_exeext
23105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23106   (eval $ac_link) 2>conftest.er1
23107   ac_status=$?
23108   grep -v '^ *+' conftest.er1 >conftest.err
23109   rm -f conftest.er1
23110   cat conftest.err >&5
23111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112   (exit $ac_status); } &&
23113          { ac_try='test -z "$ac_c_werror_flag"
23114                          || test ! -s conftest.err'
23115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23116   (eval $ac_try) 2>&5
23117   ac_status=$?
23118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119   (exit $ac_status); }; } &&
23120          { ac_try='test -s conftest$ac_exeext'
23121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23122   (eval $ac_try) 2>&5
23123   ac_status=$?
23124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125   (exit $ac_status); }; }; then
23126   eval "$as_ac_var=yes"
23127 else
23128   echo "$as_me: failed program was:" >&5
23129 sed 's/^/| /' conftest.$ac_ext >&5
23130
23131 eval "$as_ac_var=no"
23132 fi
23133 rm -f conftest.err conftest.$ac_objext \
23134       conftest$ac_exeext conftest.$ac_ext
23135 fi
23136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23138 if test `eval echo '${'$as_ac_var'}'` = yes; then
23139   cat >>confdefs.h <<_ACEOF
23140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23141 _ACEOF
23142
23143 else
23144   case $LIBOBJS in
23145     "$ac_func.$ac_objext"   | \
23146   *" $ac_func.$ac_objext"   | \
23147     "$ac_func.$ac_objext "* | \
23148   *" $ac_func.$ac_objext "* ) ;;
23149   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23150 esac
23151
23152 fi
23153 done
23154
23155
23156   if test $ac_cv_func_vasnprintf = no; then
23157     case $LIBOBJS in
23158     "printf-args.$ac_objext"   | \
23159   *" printf-args.$ac_objext"   | \
23160     "printf-args.$ac_objext "* | \
23161   *" printf-args.$ac_objext "* ) ;;
23162   *) LIBOBJS="$LIBOBJS printf-args.$ac_objext" ;;
23163 esac
23164
23165     case $LIBOBJS in
23166     "printf-parse.$ac_objext"   | \
23167   *" printf-parse.$ac_objext"   | \
23168     "printf-parse.$ac_objext "* | \
23169   *" printf-parse.$ac_objext "* ) ;;
23170   *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext" ;;
23171 esac
23172
23173     case $LIBOBJS in
23174     "asnprintf.$ac_objext"   | \
23175   *" asnprintf.$ac_objext"   | \
23176     "asnprintf.$ac_objext "* | \
23177   *" asnprintf.$ac_objext "* ) ;;
23178   *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext" ;;
23179 esac
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
23195 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
23196 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
23197   echo $ECHO_N "(cached) $ECHO_C" >&6
23198 else
23199   cat >conftest.$ac_ext <<_ACEOF
23200 /* confdefs.h.  */
23201 _ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h.  */
23205 $ac_includes_default
23206 int
23207 main ()
23208 {
23209 if ((ptrdiff_t *) 0)
23210   return 0;
23211 if (sizeof (ptrdiff_t))
23212   return 0;
23213   ;
23214   return 0;
23215 }
23216 _ACEOF
23217 rm -f conftest.$ac_objext
23218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23219   (eval $ac_compile) 2>conftest.er1
23220   ac_status=$?
23221   grep -v '^ *+' conftest.er1 >conftest.err
23222   rm -f conftest.er1
23223   cat conftest.err >&5
23224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225   (exit $ac_status); } &&
23226          { ac_try='test -z "$ac_c_werror_flag"
23227                          || test ! -s conftest.err'
23228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23229   (eval $ac_try) 2>&5
23230   ac_status=$?
23231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232   (exit $ac_status); }; } &&
23233          { ac_try='test -s conftest.$ac_objext'
23234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23235   (eval $ac_try) 2>&5
23236   ac_status=$?
23237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238   (exit $ac_status); }; }; then
23239   ac_cv_type_ptrdiff_t=yes
23240 else
23241   echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23243
23244 ac_cv_type_ptrdiff_t=no
23245 fi
23246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23247 fi
23248 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
23249 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
23250 if test $ac_cv_type_ptrdiff_t = yes; then
23251
23252 cat >>confdefs.h <<_ACEOF
23253 #define HAVE_PTRDIFF_T 1
23254 _ACEOF
23255
23256
23257 fi
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269 for ac_func in snprintf wcslen
23270 do
23271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23272 echo "$as_me:$LINENO: checking for $ac_func" >&5
23273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23274 if eval "test \"\${$as_ac_var+set}\" = set"; then
23275   echo $ECHO_N "(cached) $ECHO_C" >&6
23276 else
23277   cat >conftest.$ac_ext <<_ACEOF
23278 /* confdefs.h.  */
23279 _ACEOF
23280 cat confdefs.h >>conftest.$ac_ext
23281 cat >>conftest.$ac_ext <<_ACEOF
23282 /* end confdefs.h.  */
23283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23285 #define $ac_func innocuous_$ac_func
23286
23287 /* System header to define __stub macros and hopefully few prototypes,
23288     which can conflict with char $ac_func (); below.
23289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23290     <limits.h> exists even on freestanding compilers.  */
23291
23292 #ifdef __STDC__
23293 # include <limits.h>
23294 #else
23295 # include <assert.h>
23296 #endif
23297
23298 #undef $ac_func
23299
23300 /* Override any gcc2 internal prototype to avoid an error.  */
23301 #ifdef __cplusplus
23302 extern "C"
23303 {
23304 #endif
23305 /* We use char because int might match the return type of a gcc2
23306    builtin and then its argument prototype would still apply.  */
23307 char $ac_func ();
23308 /* The GNU C library defines this for functions which it implements
23309     to always fail with ENOSYS.  Some functions are actually named
23310     something starting with __ and the normal name is an alias.  */
23311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23312 choke me
23313 #else
23314 char (*f) () = $ac_func;
23315 #endif
23316 #ifdef __cplusplus
23317 }
23318 #endif
23319
23320 int
23321 main ()
23322 {
23323 return f != $ac_func;
23324   ;
23325   return 0;
23326 }
23327 _ACEOF
23328 rm -f conftest.$ac_objext conftest$ac_exeext
23329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23330   (eval $ac_link) 2>conftest.er1
23331   ac_status=$?
23332   grep -v '^ *+' conftest.er1 >conftest.err
23333   rm -f conftest.er1
23334   cat conftest.err >&5
23335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336   (exit $ac_status); } &&
23337          { ac_try='test -z "$ac_c_werror_flag"
23338                          || test ! -s conftest.err'
23339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340   (eval $ac_try) 2>&5
23341   ac_status=$?
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); }; } &&
23344          { ac_try='test -s conftest$ac_exeext'
23345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23346   (eval $ac_try) 2>&5
23347   ac_status=$?
23348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349   (exit $ac_status); }; }; then
23350   eval "$as_ac_var=yes"
23351 else
23352   echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23354
23355 eval "$as_ac_var=no"
23356 fi
23357 rm -f conftest.err conftest.$ac_objext \
23358       conftest$ac_exeext conftest.$ac_ext
23359 fi
23360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23362 if test `eval echo '${'$as_ac_var'}'` = yes; then
23363   cat >>confdefs.h <<_ACEOF
23364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23365 _ACEOF
23366
23367 fi
23368 done
23369
23370
23371
23372
23373   fi
23374
23375
23376
23377 for ac_func in vasprintf
23378 do
23379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23380 echo "$as_me:$LINENO: checking for $ac_func" >&5
23381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23382 if eval "test \"\${$as_ac_var+set}\" = set"; then
23383   echo $ECHO_N "(cached) $ECHO_C" >&6
23384 else
23385   cat >conftest.$ac_ext <<_ACEOF
23386 /* confdefs.h.  */
23387 _ACEOF
23388 cat confdefs.h >>conftest.$ac_ext
23389 cat >>conftest.$ac_ext <<_ACEOF
23390 /* end confdefs.h.  */
23391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23392    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23393 #define $ac_func innocuous_$ac_func
23394
23395 /* System header to define __stub macros and hopefully few prototypes,
23396     which can conflict with char $ac_func (); below.
23397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23398     <limits.h> exists even on freestanding compilers.  */
23399
23400 #ifdef __STDC__
23401 # include <limits.h>
23402 #else
23403 # include <assert.h>
23404 #endif
23405
23406 #undef $ac_func
23407
23408 /* Override any gcc2 internal prototype to avoid an error.  */
23409 #ifdef __cplusplus
23410 extern "C"
23411 {
23412 #endif
23413 /* We use char because int might match the return type of a gcc2
23414    builtin and then its argument prototype would still apply.  */
23415 char $ac_func ();
23416 /* The GNU C library defines this for functions which it implements
23417     to always fail with ENOSYS.  Some functions are actually named
23418     something starting with __ and the normal name is an alias.  */
23419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23420 choke me
23421 #else
23422 char (*f) () = $ac_func;
23423 #endif
23424 #ifdef __cplusplus
23425 }
23426 #endif
23427
23428 int
23429 main ()
23430 {
23431 return f != $ac_func;
23432   ;
23433   return 0;
23434 }
23435 _ACEOF
23436 rm -f conftest.$ac_objext conftest$ac_exeext
23437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23438   (eval $ac_link) 2>conftest.er1
23439   ac_status=$?
23440   grep -v '^ *+' conftest.er1 >conftest.err
23441   rm -f conftest.er1
23442   cat conftest.err >&5
23443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444   (exit $ac_status); } &&
23445          { ac_try='test -z "$ac_c_werror_flag"
23446                          || test ! -s conftest.err'
23447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23448   (eval $ac_try) 2>&5
23449   ac_status=$?
23450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451   (exit $ac_status); }; } &&
23452          { ac_try='test -s conftest$ac_exeext'
23453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23454   (eval $ac_try) 2>&5
23455   ac_status=$?
23456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457   (exit $ac_status); }; }; then
23458   eval "$as_ac_var=yes"
23459 else
23460   echo "$as_me: failed program was:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23462
23463 eval "$as_ac_var=no"
23464 fi
23465 rm -f conftest.err conftest.$ac_objext \
23466       conftest$ac_exeext conftest.$ac_ext
23467 fi
23468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23470 if test `eval echo '${'$as_ac_var'}'` = yes; then
23471   cat >>confdefs.h <<_ACEOF
23472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23473 _ACEOF
23474
23475 else
23476   case $LIBOBJS in
23477     "$ac_func.$ac_objext"   | \
23478   *" $ac_func.$ac_objext"   | \
23479     "$ac_func.$ac_objext "* | \
23480   *" $ac_func.$ac_objext "* ) ;;
23481   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23482 esac
23483
23484 fi
23485 done
23486
23487
23488   if test $ac_cv_func_vasprintf = no; then
23489     case $LIBOBJS in
23490     "asprintf.$ac_objext"   | \
23491   *" asprintf.$ac_objext"   | \
23492     "asprintf.$ac_objext "* | \
23493   *" asprintf.$ac_objext "* ) ;;
23494   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
23495 esac
23496
23497
23498
23499
23500
23501   fi
23502
23503
23504   # getdate.y works with bison only.
23505   : ${YACC='bison -y'}
23506
23507
23508 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23509 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
23510 if test "${ac_cv_struct_tm+set}" = set; then
23511   echo $ECHO_N "(cached) $ECHO_C" >&6
23512 else
23513   cat >conftest.$ac_ext <<_ACEOF
23514 /* confdefs.h.  */
23515 _ACEOF
23516 cat confdefs.h >>conftest.$ac_ext
23517 cat >>conftest.$ac_ext <<_ACEOF
23518 /* end confdefs.h.  */
23519 #include <sys/types.h>
23520 #include <time.h>
23521
23522 int
23523 main ()
23524 {
23525 struct tm *tp; tp->tm_sec;
23526   ;
23527   return 0;
23528 }
23529 _ACEOF
23530 rm -f conftest.$ac_objext
23531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23532   (eval $ac_compile) 2>conftest.er1
23533   ac_status=$?
23534   grep -v '^ *+' conftest.er1 >conftest.err
23535   rm -f conftest.er1
23536   cat conftest.err >&5
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); } &&
23539          { ac_try='test -z "$ac_c_werror_flag"
23540                          || test ! -s conftest.err'
23541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23542   (eval $ac_try) 2>&5
23543   ac_status=$?
23544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545   (exit $ac_status); }; } &&
23546          { ac_try='test -s conftest.$ac_objext'
23547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23548   (eval $ac_try) 2>&5
23549   ac_status=$?
23550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551   (exit $ac_status); }; }; then
23552   ac_cv_struct_tm=time.h
23553 else
23554   echo "$as_me: failed program was:" >&5
23555 sed 's/^/| /' conftest.$ac_ext >&5
23556
23557 ac_cv_struct_tm=sys/time.h
23558 fi
23559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23560 fi
23561 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23562 echo "${ECHO_T}$ac_cv_struct_tm" >&6
23563 if test $ac_cv_struct_tm = sys/time.h; then
23564
23565 cat >>confdefs.h <<\_ACEOF
23566 #define TM_IN_SYS_TIME 1
23567 _ACEOF
23568
23569 fi
23570
23571
23572  echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
23573 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
23574 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
23575   echo $ECHO_N "(cached) $ECHO_C" >&6
23576 else
23577   cat >conftest.$ac_ext <<_ACEOF
23578 /* confdefs.h.  */
23579 _ACEOF
23580 cat confdefs.h >>conftest.$ac_ext
23581 cat >>conftest.$ac_ext <<_ACEOF
23582 /* end confdefs.h.  */
23583 #include <time.h>
23584
23585 int
23586 main ()
23587 {
23588 static struct tm ac_aggr;
23589 if (ac_aggr.tm_gmtoff)
23590 return 0;
23591   ;
23592   return 0;
23593 }
23594 _ACEOF
23595 rm -f conftest.$ac_objext
23596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23597   (eval $ac_compile) 2>conftest.er1
23598   ac_status=$?
23599   grep -v '^ *+' conftest.er1 >conftest.err
23600   rm -f conftest.er1
23601   cat conftest.err >&5
23602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603   (exit $ac_status); } &&
23604          { ac_try='test -z "$ac_c_werror_flag"
23605                          || test ! -s conftest.err'
23606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23607   (eval $ac_try) 2>&5
23608   ac_status=$?
23609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610   (exit $ac_status); }; } &&
23611          { ac_try='test -s conftest.$ac_objext'
23612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23613   (eval $ac_try) 2>&5
23614   ac_status=$?
23615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616   (exit $ac_status); }; }; then
23617   ac_cv_member_struct_tm_tm_gmtoff=yes
23618 else
23619   echo "$as_me: failed program was:" >&5
23620 sed 's/^/| /' conftest.$ac_ext >&5
23621
23622 cat >conftest.$ac_ext <<_ACEOF
23623 /* confdefs.h.  */
23624 _ACEOF
23625 cat confdefs.h >>conftest.$ac_ext
23626 cat >>conftest.$ac_ext <<_ACEOF
23627 /* end confdefs.h.  */
23628 #include <time.h>
23629
23630 int
23631 main ()
23632 {
23633 static struct tm ac_aggr;
23634 if (sizeof ac_aggr.tm_gmtoff)
23635 return 0;
23636   ;
23637   return 0;
23638 }
23639 _ACEOF
23640 rm -f conftest.$ac_objext
23641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23642   (eval $ac_compile) 2>conftest.er1
23643   ac_status=$?
23644   grep -v '^ *+' conftest.er1 >conftest.err
23645   rm -f conftest.er1
23646   cat conftest.err >&5
23647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648   (exit $ac_status); } &&
23649          { ac_try='test -z "$ac_c_werror_flag"
23650                          || test ! -s conftest.err'
23651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23652   (eval $ac_try) 2>&5
23653   ac_status=$?
23654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655   (exit $ac_status); }; } &&
23656          { ac_try='test -s conftest.$ac_objext'
23657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658   (eval $ac_try) 2>&5
23659   ac_status=$?
23660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661   (exit $ac_status); }; }; then
23662   ac_cv_member_struct_tm_tm_gmtoff=yes
23663 else
23664   echo "$as_me: failed program was:" >&5
23665 sed 's/^/| /' conftest.$ac_ext >&5
23666
23667 ac_cv_member_struct_tm_tm_gmtoff=no
23668 fi
23669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23670 fi
23671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23672 fi
23673 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
23674 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
23675 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
23676
23677 cat >>confdefs.h <<\_ACEOF
23678 #define HAVE_TM_GMTOFF 1
23679 _ACEOF
23680
23681 fi
23682
23683
23684
23685     echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23686 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
23687 if test "${ac_cv_header_time+set}" = set; then
23688   echo $ECHO_N "(cached) $ECHO_C" >&6
23689 else
23690   cat >conftest.$ac_ext <<_ACEOF
23691 /* confdefs.h.  */
23692 _ACEOF
23693 cat confdefs.h >>conftest.$ac_ext
23694 cat >>conftest.$ac_ext <<_ACEOF
23695 /* end confdefs.h.  */
23696 #include <sys/types.h>
23697 #include <sys/time.h>
23698 #include <time.h>
23699
23700 int
23701 main ()
23702 {
23703 if ((struct tm *) 0)
23704 return 0;
23705   ;
23706   return 0;
23707 }
23708 _ACEOF
23709 rm -f conftest.$ac_objext
23710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23711   (eval $ac_compile) 2>conftest.er1
23712   ac_status=$?
23713   grep -v '^ *+' conftest.er1 >conftest.err
23714   rm -f conftest.er1
23715   cat conftest.err >&5
23716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717   (exit $ac_status); } &&
23718          { ac_try='test -z "$ac_c_werror_flag"
23719                          || test ! -s conftest.err'
23720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721   (eval $ac_try) 2>&5
23722   ac_status=$?
23723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724   (exit $ac_status); }; } &&
23725          { ac_try='test -s conftest.$ac_objext'
23726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23727   (eval $ac_try) 2>&5
23728   ac_status=$?
23729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730   (exit $ac_status); }; }; then
23731   ac_cv_header_time=yes
23732 else
23733   echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23735
23736 ac_cv_header_time=no
23737 fi
23738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23739 fi
23740 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23741 echo "${ECHO_T}$ac_cv_header_time" >&6
23742 if test $ac_cv_header_time = yes; then
23743
23744 cat >>confdefs.h <<\_ACEOF
23745 #define TIME_WITH_SYS_TIME 1
23746 _ACEOF
23747
23748 fi
23749
23750
23751   :
23752
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762   :
23763
23764
23765
23766
23767
23768   echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23769 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
23770 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23771   echo $ECHO_N "(cached) $ECHO_C" >&6
23772 else
23773   cat >conftest.$ac_ext <<_ACEOF
23774 /* confdefs.h.  */
23775 _ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h.  */
23779 #include <sys/types.h>
23780 #include <$ac_cv_struct_tm>
23781
23782
23783 int
23784 main ()
23785 {
23786 static struct tm ac_aggr;
23787 if (ac_aggr.tm_zone)
23788 return 0;
23789   ;
23790   return 0;
23791 }
23792 _ACEOF
23793 rm -f conftest.$ac_objext
23794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23795   (eval $ac_compile) 2>conftest.er1
23796   ac_status=$?
23797   grep -v '^ *+' conftest.er1 >conftest.err
23798   rm -f conftest.er1
23799   cat conftest.err >&5
23800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801   (exit $ac_status); } &&
23802          { ac_try='test -z "$ac_c_werror_flag"
23803                          || test ! -s conftest.err'
23804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23805   (eval $ac_try) 2>&5
23806   ac_status=$?
23807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808   (exit $ac_status); }; } &&
23809          { ac_try='test -s conftest.$ac_objext'
23810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811   (eval $ac_try) 2>&5
23812   ac_status=$?
23813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814   (exit $ac_status); }; }; then
23815   ac_cv_member_struct_tm_tm_zone=yes
23816 else
23817   echo "$as_me: failed program was:" >&5
23818 sed 's/^/| /' conftest.$ac_ext >&5
23819
23820 cat >conftest.$ac_ext <<_ACEOF
23821 /* confdefs.h.  */
23822 _ACEOF
23823 cat confdefs.h >>conftest.$ac_ext
23824 cat >>conftest.$ac_ext <<_ACEOF
23825 /* end confdefs.h.  */
23826 #include <sys/types.h>
23827 #include <$ac_cv_struct_tm>
23828
23829
23830 int
23831 main ()
23832 {
23833 static struct tm ac_aggr;
23834 if (sizeof ac_aggr.tm_zone)
23835 return 0;
23836   ;
23837   return 0;
23838 }
23839 _ACEOF
23840 rm -f conftest.$ac_objext
23841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23842   (eval $ac_compile) 2>conftest.er1
23843   ac_status=$?
23844   grep -v '^ *+' conftest.er1 >conftest.err
23845   rm -f conftest.er1
23846   cat conftest.err >&5
23847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848   (exit $ac_status); } &&
23849          { ac_try='test -z "$ac_c_werror_flag"
23850                          || test ! -s conftest.err'
23851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23852   (eval $ac_try) 2>&5
23853   ac_status=$?
23854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855   (exit $ac_status); }; } &&
23856          { ac_try='test -s conftest.$ac_objext'
23857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23858   (eval $ac_try) 2>&5
23859   ac_status=$?
23860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861   (exit $ac_status); }; }; then
23862   ac_cv_member_struct_tm_tm_zone=yes
23863 else
23864   echo "$as_me: failed program was:" >&5
23865 sed 's/^/| /' conftest.$ac_ext >&5
23866
23867 ac_cv_member_struct_tm_tm_zone=no
23868 fi
23869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23870 fi
23871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23872 fi
23873 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23874 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
23875 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23876
23877 cat >>confdefs.h <<_ACEOF
23878 #define HAVE_STRUCT_TM_TM_ZONE 1
23879 _ACEOF
23880
23881
23882 fi
23883
23884 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23885
23886 cat >>confdefs.h <<\_ACEOF
23887 #define HAVE_TM_ZONE 1
23888 _ACEOF
23889
23890 else
23891   echo "$as_me:$LINENO: checking for tzname" >&5
23892 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
23893 if test "${ac_cv_var_tzname+set}" = set; then
23894   echo $ECHO_N "(cached) $ECHO_C" >&6
23895 else
23896   cat >conftest.$ac_ext <<_ACEOF
23897 /* confdefs.h.  */
23898 _ACEOF
23899 cat confdefs.h >>conftest.$ac_ext
23900 cat >>conftest.$ac_ext <<_ACEOF
23901 /* end confdefs.h.  */
23902 #include <time.h>
23903 #ifndef tzname /* For SGI.  */
23904 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
23905 #endif
23906
23907 int
23908 main ()
23909 {
23910 atoi(*tzname);
23911   ;
23912   return 0;
23913 }
23914 _ACEOF
23915 rm -f conftest.$ac_objext conftest$ac_exeext
23916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23917   (eval $ac_link) 2>conftest.er1
23918   ac_status=$?
23919   grep -v '^ *+' conftest.er1 >conftest.err
23920   rm -f conftest.er1
23921   cat conftest.err >&5
23922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923   (exit $ac_status); } &&
23924          { ac_try='test -z "$ac_c_werror_flag"
23925                          || test ! -s conftest.err'
23926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23927   (eval $ac_try) 2>&5
23928   ac_status=$?
23929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930   (exit $ac_status); }; } &&
23931          { ac_try='test -s conftest$ac_exeext'
23932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23933   (eval $ac_try) 2>&5
23934   ac_status=$?
23935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936   (exit $ac_status); }; }; then
23937   ac_cv_var_tzname=yes
23938 else
23939   echo "$as_me: failed program was:" >&5
23940 sed 's/^/| /' conftest.$ac_ext >&5
23941
23942 ac_cv_var_tzname=no
23943 fi
23944 rm -f conftest.err conftest.$ac_objext \
23945       conftest$ac_exeext conftest.$ac_ext
23946 fi
23947 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23948 echo "${ECHO_T}$ac_cv_var_tzname" >&6
23949   if test $ac_cv_var_tzname = yes; then
23950
23951 cat >>confdefs.h <<\_ACEOF
23952 #define HAVE_TZNAME 1
23953 _ACEOF
23954
23955   fi
23956 fi
23957
23958
23959
23960
23961   case $LIBOBJS in
23962     "getndelim2.$ac_objext"   | \
23963   *" getndelim2.$ac_objext"   | \
23964     "getndelim2.$ac_objext "* | \
23965   *" getndelim2.$ac_objext "* ) ;;
23966   *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
23967 esac
23968
23969
23970
23971
23972
23973
23974     :
23975
23976
23977
23978   :
23979
23980
23981
23982
23983
23984
23985 for ac_header in OS.h
23986 do
23987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23989   echo "$as_me:$LINENO: checking for $ac_header" >&5
23990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23992   echo $ECHO_N "(cached) $ECHO_C" >&6
23993 fi
23994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23996 else
23997   # Is the header compilable?
23998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24000 cat >conftest.$ac_ext <<_ACEOF
24001 /* confdefs.h.  */
24002 _ACEOF
24003 cat confdefs.h >>conftest.$ac_ext
24004 cat >>conftest.$ac_ext <<_ACEOF
24005 /* end confdefs.h.  */
24006 $ac_includes_default
24007 #include <$ac_header>
24008 _ACEOF
24009 rm -f conftest.$ac_objext
24010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24011   (eval $ac_compile) 2>conftest.er1
24012   ac_status=$?
24013   grep -v '^ *+' conftest.er1 >conftest.err
24014   rm -f conftest.er1
24015   cat conftest.err >&5
24016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017   (exit $ac_status); } &&
24018          { ac_try='test -z "$ac_c_werror_flag"
24019                          || test ! -s conftest.err'
24020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24021   (eval $ac_try) 2>&5
24022   ac_status=$?
24023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024   (exit $ac_status); }; } &&
24025          { ac_try='test -s conftest.$ac_objext'
24026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24027   (eval $ac_try) 2>&5
24028   ac_status=$?
24029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030   (exit $ac_status); }; }; then
24031   ac_header_compiler=yes
24032 else
24033   echo "$as_me: failed program was:" >&5
24034 sed 's/^/| /' conftest.$ac_ext >&5
24035
24036 ac_header_compiler=no
24037 fi
24038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24040 echo "${ECHO_T}$ac_header_compiler" >&6
24041
24042 # Is the header present?
24043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24045 cat >conftest.$ac_ext <<_ACEOF
24046 /* confdefs.h.  */
24047 _ACEOF
24048 cat confdefs.h >>conftest.$ac_ext
24049 cat >>conftest.$ac_ext <<_ACEOF
24050 /* end confdefs.h.  */
24051 #include <$ac_header>
24052 _ACEOF
24053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24054   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24055   ac_status=$?
24056   grep -v '^ *+' conftest.er1 >conftest.err
24057   rm -f conftest.er1
24058   cat conftest.err >&5
24059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060   (exit $ac_status); } >/dev/null; then
24061   if test -s conftest.err; then
24062     ac_cpp_err=$ac_c_preproc_warn_flag
24063     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24064   else
24065     ac_cpp_err=
24066   fi
24067 else
24068   ac_cpp_err=yes
24069 fi
24070 if test -z "$ac_cpp_err"; then
24071   ac_header_preproc=yes
24072 else
24073   echo "$as_me: failed program was:" >&5
24074 sed 's/^/| /' conftest.$ac_ext >&5
24075
24076   ac_header_preproc=no
24077 fi
24078 rm -f conftest.err conftest.$ac_ext
24079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24080 echo "${ECHO_T}$ac_header_preproc" >&6
24081
24082 # So?  What about this header?
24083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24084   yes:no: )
24085     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24089     ac_header_preproc=yes
24090     ;;
24091   no:yes:* )
24092     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24094     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24095 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24096     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24098     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24099 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24102     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24104     (
24105       cat <<\_ASBOX
24106 ## ------------------------------------ ##
24107 ## Report this to bug-coreutils@gnu.org ##
24108 ## ------------------------------------ ##
24109 _ASBOX
24110     ) |
24111       sed "s/^/$as_me: WARNING:     /" >&2
24112     ;;
24113 esac
24114 echo "$as_me:$LINENO: checking for $ac_header" >&5
24115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24117   echo $ECHO_N "(cached) $ECHO_C" >&6
24118 else
24119   eval "$as_ac_Header=\$ac_header_preproc"
24120 fi
24121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24123
24124 fi
24125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24126   cat >>confdefs.h <<_ACEOF
24127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24128 _ACEOF
24129
24130 fi
24131
24132 done
24133
24134
24135 for ac_func in getpagesize
24136 do
24137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24138 echo "$as_me:$LINENO: checking for $ac_func" >&5
24139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24140 if eval "test \"\${$as_ac_var+set}\" = set"; then
24141   echo $ECHO_N "(cached) $ECHO_C" >&6
24142 else
24143   cat >conftest.$ac_ext <<_ACEOF
24144 /* confdefs.h.  */
24145 _ACEOF
24146 cat confdefs.h >>conftest.$ac_ext
24147 cat >>conftest.$ac_ext <<_ACEOF
24148 /* end confdefs.h.  */
24149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24151 #define $ac_func innocuous_$ac_func
24152
24153 /* System header to define __stub macros and hopefully few prototypes,
24154     which can conflict with char $ac_func (); below.
24155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24156     <limits.h> exists even on freestanding compilers.  */
24157
24158 #ifdef __STDC__
24159 # include <limits.h>
24160 #else
24161 # include <assert.h>
24162 #endif
24163
24164 #undef $ac_func
24165
24166 /* Override any gcc2 internal prototype to avoid an error.  */
24167 #ifdef __cplusplus
24168 extern "C"
24169 {
24170 #endif
24171 /* We use char because int might match the return type of a gcc2
24172    builtin and then its argument prototype would still apply.  */
24173 char $ac_func ();
24174 /* The GNU C library defines this for functions which it implements
24175     to always fail with ENOSYS.  Some functions are actually named
24176     something starting with __ and the normal name is an alias.  */
24177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24178 choke me
24179 #else
24180 char (*f) () = $ac_func;
24181 #endif
24182 #ifdef __cplusplus
24183 }
24184 #endif
24185
24186 int
24187 main ()
24188 {
24189 return f != $ac_func;
24190   ;
24191   return 0;
24192 }
24193 _ACEOF
24194 rm -f conftest.$ac_objext conftest$ac_exeext
24195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24196   (eval $ac_link) 2>conftest.er1
24197   ac_status=$?
24198   grep -v '^ *+' conftest.er1 >conftest.err
24199   rm -f conftest.er1
24200   cat conftest.err >&5
24201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202   (exit $ac_status); } &&
24203          { ac_try='test -z "$ac_c_werror_flag"
24204                          || test ! -s conftest.err'
24205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24206   (eval $ac_try) 2>&5
24207   ac_status=$?
24208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209   (exit $ac_status); }; } &&
24210          { ac_try='test -s conftest$ac_exeext'
24211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24212   (eval $ac_try) 2>&5
24213   ac_status=$?
24214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215   (exit $ac_status); }; }; then
24216   eval "$as_ac_var=yes"
24217 else
24218   echo "$as_me: failed program was:" >&5
24219 sed 's/^/| /' conftest.$ac_ext >&5
24220
24221 eval "$as_ac_var=no"
24222 fi
24223 rm -f conftest.err conftest.$ac_objext \
24224       conftest$ac_exeext conftest.$ac_ext
24225 fi
24226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24228 if test `eval echo '${'$as_ac_var'}'` = yes; then
24229   cat >>confdefs.h <<_ACEOF
24230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24231 _ACEOF
24232
24233 fi
24234 done
24235
24236
24237
24238
24239   :
24240
24241
24242
24243
24244
24245   echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
24246 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
24247 if test "${ac_cv_type_getgroups+set}" = set; then
24248   echo $ECHO_N "(cached) $ECHO_C" >&6
24249 else
24250   if test "$cross_compiling" = yes; then
24251   ac_cv_type_getgroups=cross
24252 else
24253   cat >conftest.$ac_ext <<_ACEOF
24254 /* confdefs.h.  */
24255 _ACEOF
24256 cat confdefs.h >>conftest.$ac_ext
24257 cat >>conftest.$ac_ext <<_ACEOF
24258 /* end confdefs.h.  */
24259 /* Thanks to Mike Rendell for this test.  */
24260 #include <sys/types.h>
24261 #define NGID 256
24262 #undef MAX
24263 #define MAX(x, y) ((x) > (y) ? (x) : (y))
24264
24265 int
24266 main ()
24267 {
24268   gid_t gidset[NGID];
24269   int i, n;
24270   union { gid_t gval; long lval; }  val;
24271
24272   val.lval = -1;
24273   for (i = 0; i < NGID; i++)
24274     gidset[i] = val.gval;
24275   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24276                  gidset);
24277   /* Exit non-zero if getgroups seems to require an array of ints.  This
24278      happens when gid_t is short but getgroups modifies an array of ints.  */
24279   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
24280 }
24281 _ACEOF
24282 rm -f conftest$ac_exeext
24283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24284   (eval $ac_link) 2>&5
24285   ac_status=$?
24286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24289   (eval $ac_try) 2>&5
24290   ac_status=$?
24291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292   (exit $ac_status); }; }; then
24293   ac_cv_type_getgroups=gid_t
24294 else
24295   echo "$as_me: program exited with status $ac_status" >&5
24296 echo "$as_me: failed program was:" >&5
24297 sed 's/^/| /' conftest.$ac_ext >&5
24298
24299 ( exit $ac_status )
24300 ac_cv_type_getgroups=int
24301 fi
24302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24303 fi
24304 if test $ac_cv_type_getgroups = cross; then
24305         cat >conftest.$ac_ext <<_ACEOF
24306 /* confdefs.h.  */
24307 _ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h.  */
24311 #include <unistd.h>
24312
24313 _ACEOF
24314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24315   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24316   ac_cv_type_getgroups=gid_t
24317 else
24318   ac_cv_type_getgroups=int
24319 fi
24320 rm -f conftest*
24321
24322 fi
24323 fi
24324 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24325 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
24326
24327 cat >>confdefs.h <<_ACEOF
24328 #define GETGROUPS_T $ac_cv_type_getgroups
24329 _ACEOF
24330
24331
24332
24333
24334
24335 for ac_header in locale.h
24336 do
24337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24339   echo "$as_me:$LINENO: checking for $ac_header" >&5
24340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24342   echo $ECHO_N "(cached) $ECHO_C" >&6
24343 fi
24344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24346 else
24347   # Is the header compilable?
24348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24350 cat >conftest.$ac_ext <<_ACEOF
24351 /* confdefs.h.  */
24352 _ACEOF
24353 cat confdefs.h >>conftest.$ac_ext
24354 cat >>conftest.$ac_ext <<_ACEOF
24355 /* end confdefs.h.  */
24356 $ac_includes_default
24357 #include <$ac_header>
24358 _ACEOF
24359 rm -f conftest.$ac_objext
24360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24361   (eval $ac_compile) 2>conftest.er1
24362   ac_status=$?
24363   grep -v '^ *+' conftest.er1 >conftest.err
24364   rm -f conftest.er1
24365   cat conftest.err >&5
24366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367   (exit $ac_status); } &&
24368          { ac_try='test -z "$ac_c_werror_flag"
24369                          || test ! -s conftest.err'
24370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24371   (eval $ac_try) 2>&5
24372   ac_status=$?
24373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374   (exit $ac_status); }; } &&
24375          { ac_try='test -s conftest.$ac_objext'
24376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24377   (eval $ac_try) 2>&5
24378   ac_status=$?
24379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380   (exit $ac_status); }; }; then
24381   ac_header_compiler=yes
24382 else
24383   echo "$as_me: failed program was:" >&5
24384 sed 's/^/| /' conftest.$ac_ext >&5
24385
24386 ac_header_compiler=no
24387 fi
24388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24390 echo "${ECHO_T}$ac_header_compiler" >&6
24391
24392 # Is the header present?
24393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24395 cat >conftest.$ac_ext <<_ACEOF
24396 /* confdefs.h.  */
24397 _ACEOF
24398 cat confdefs.h >>conftest.$ac_ext
24399 cat >>conftest.$ac_ext <<_ACEOF
24400 /* end confdefs.h.  */
24401 #include <$ac_header>
24402 _ACEOF
24403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24404   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24405   ac_status=$?
24406   grep -v '^ *+' conftest.er1 >conftest.err
24407   rm -f conftest.er1
24408   cat conftest.err >&5
24409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410   (exit $ac_status); } >/dev/null; then
24411   if test -s conftest.err; then
24412     ac_cpp_err=$ac_c_preproc_warn_flag
24413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24414   else
24415     ac_cpp_err=
24416   fi
24417 else
24418   ac_cpp_err=yes
24419 fi
24420 if test -z "$ac_cpp_err"; then
24421   ac_header_preproc=yes
24422 else
24423   echo "$as_me: failed program was:" >&5
24424 sed 's/^/| /' conftest.$ac_ext >&5
24425
24426   ac_header_preproc=no
24427 fi
24428 rm -f conftest.err conftest.$ac_ext
24429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24430 echo "${ECHO_T}$ac_header_preproc" >&6
24431
24432 # So?  What about this header?
24433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24434   yes:no: )
24435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24439     ac_header_preproc=yes
24440     ;;
24441   no:yes:* )
24442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24454     (
24455       cat <<\_ASBOX
24456 ## ------------------------------------ ##
24457 ## Report this to bug-coreutils@gnu.org ##
24458 ## ------------------------------------ ##
24459 _ASBOX
24460     ) |
24461       sed "s/^/$as_me: WARNING:     /" >&2
24462     ;;
24463 esac
24464 echo "$as_me:$LINENO: checking for $ac_header" >&5
24465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24467   echo $ECHO_N "(cached) $ECHO_C" >&6
24468 else
24469   eval "$as_ac_Header=\$ac_header_preproc"
24470 fi
24471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24473
24474 fi
24475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24476   cat >>confdefs.h <<_ACEOF
24477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24478 _ACEOF
24479
24480 fi
24481
24482 done
24483
24484
24485
24486
24487 for ac_func in setlocale
24488 do
24489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24490 echo "$as_me:$LINENO: checking for $ac_func" >&5
24491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24492 if eval "test \"\${$as_ac_var+set}\" = set"; then
24493   echo $ECHO_N "(cached) $ECHO_C" >&6
24494 else
24495   cat >conftest.$ac_ext <<_ACEOF
24496 /* confdefs.h.  */
24497 _ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h.  */
24501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24503 #define $ac_func innocuous_$ac_func
24504
24505 /* System header to define __stub macros and hopefully few prototypes,
24506     which can conflict with char $ac_func (); below.
24507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24508     <limits.h> exists even on freestanding compilers.  */
24509
24510 #ifdef __STDC__
24511 # include <limits.h>
24512 #else
24513 # include <assert.h>
24514 #endif
24515
24516 #undef $ac_func
24517
24518 /* Override any gcc2 internal prototype to avoid an error.  */
24519 #ifdef __cplusplus
24520 extern "C"
24521 {
24522 #endif
24523 /* We use char because int might match the return type of a gcc2
24524    builtin and then its argument prototype would still apply.  */
24525 char $ac_func ();
24526 /* The GNU C library defines this for functions which it implements
24527     to always fail with ENOSYS.  Some functions are actually named
24528     something starting with __ and the normal name is an alias.  */
24529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24530 choke me
24531 #else
24532 char (*f) () = $ac_func;
24533 #endif
24534 #ifdef __cplusplus
24535 }
24536 #endif
24537
24538 int
24539 main ()
24540 {
24541 return f != $ac_func;
24542   ;
24543   return 0;
24544 }
24545 _ACEOF
24546 rm -f conftest.$ac_objext conftest$ac_exeext
24547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24548   (eval $ac_link) 2>conftest.er1
24549   ac_status=$?
24550   grep -v '^ *+' conftest.er1 >conftest.err
24551   rm -f conftest.er1
24552   cat conftest.err >&5
24553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554   (exit $ac_status); } &&
24555          { ac_try='test -z "$ac_c_werror_flag"
24556                          || test ! -s conftest.err'
24557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24558   (eval $ac_try) 2>&5
24559   ac_status=$?
24560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561   (exit $ac_status); }; } &&
24562          { ac_try='test -s conftest$ac_exeext'
24563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24564   (eval $ac_try) 2>&5
24565   ac_status=$?
24566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567   (exit $ac_status); }; }; then
24568   eval "$as_ac_var=yes"
24569 else
24570   echo "$as_me: failed program was:" >&5
24571 sed 's/^/| /' conftest.$ac_ext >&5
24572
24573 eval "$as_ac_var=no"
24574 fi
24575 rm -f conftest.err conftest.$ac_objext \
24576       conftest$ac_exeext conftest.$ac_ext
24577 fi
24578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24580 if test `eval echo '${'$as_ac_var'}'` = yes; then
24581   cat >>confdefs.h <<_ACEOF
24582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24583 _ACEOF
24584
24585 fi
24586 done
24587
24588
24589
24590
24591   :
24592
24593
24594
24595
24596
24597
24598   :
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610 for ac_func in localeconv
24611 do
24612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24613 echo "$as_me:$LINENO: checking for $ac_func" >&5
24614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24615 if eval "test \"\${$as_ac_var+set}\" = set"; then
24616   echo $ECHO_N "(cached) $ECHO_C" >&6
24617 else
24618   cat >conftest.$ac_ext <<_ACEOF
24619 /* confdefs.h.  */
24620 _ACEOF
24621 cat confdefs.h >>conftest.$ac_ext
24622 cat >>conftest.$ac_ext <<_ACEOF
24623 /* end confdefs.h.  */
24624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24626 #define $ac_func innocuous_$ac_func
24627
24628 /* System header to define __stub macros and hopefully few prototypes,
24629     which can conflict with char $ac_func (); below.
24630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24631     <limits.h> exists even on freestanding compilers.  */
24632
24633 #ifdef __STDC__
24634 # include <limits.h>
24635 #else
24636 # include <assert.h>
24637 #endif
24638
24639 #undef $ac_func
24640
24641 /* Override any gcc2 internal prototype to avoid an error.  */
24642 #ifdef __cplusplus
24643 extern "C"
24644 {
24645 #endif
24646 /* We use char because int might match the return type of a gcc2
24647    builtin and then its argument prototype would still apply.  */
24648 char $ac_func ();
24649 /* The GNU C library defines this for functions which it implements
24650     to always fail with ENOSYS.  Some functions are actually named
24651     something starting with __ and the normal name is an alias.  */
24652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24653 choke me
24654 #else
24655 char (*f) () = $ac_func;
24656 #endif
24657 #ifdef __cplusplus
24658 }
24659 #endif
24660
24661 int
24662 main ()
24663 {
24664 return f != $ac_func;
24665   ;
24666   return 0;
24667 }
24668 _ACEOF
24669 rm -f conftest.$ac_objext conftest$ac_exeext
24670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24671   (eval $ac_link) 2>conftest.er1
24672   ac_status=$?
24673   grep -v '^ *+' conftest.er1 >conftest.err
24674   rm -f conftest.er1
24675   cat conftest.err >&5
24676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677   (exit $ac_status); } &&
24678          { ac_try='test -z "$ac_c_werror_flag"
24679                          || test ! -s conftest.err'
24680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24681   (eval $ac_try) 2>&5
24682   ac_status=$?
24683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684   (exit $ac_status); }; } &&
24685          { ac_try='test -s conftest$ac_exeext'
24686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24687   (eval $ac_try) 2>&5
24688   ac_status=$?
24689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690   (exit $ac_status); }; }; then
24691   eval "$as_ac_var=yes"
24692 else
24693   echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.$ac_ext >&5
24695
24696 eval "$as_ac_var=no"
24697 fi
24698 rm -f conftest.err conftest.$ac_objext \
24699       conftest$ac_exeext conftest.$ac_ext
24700 fi
24701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24703 if test `eval echo '${'$as_ac_var'}'` = yes; then
24704   cat >>confdefs.h <<_ACEOF
24705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24706 _ACEOF
24707
24708 fi
24709 done
24710
24711
24712
24713
24714
24715
24716
24717   :
24718
24719
24720
24721
24722
24723
24724   :
24725
24726
24727
24728
24729
24730
24731
24732
24733   :
24734
24735
24736
24737
24738
24739
24740
24741     :
24742
24743
24744     echo "$as_me:$LINENO: checking for AFS" >&5
24745 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
24746     if test -d /afs; then
24747
24748 cat >>confdefs.h <<\_ACEOF
24749 #define AFS 1
24750 _ACEOF
24751
24752       ac_result=yes
24753     else
24754       ac_result=no
24755     fi
24756     echo "$as_me:$LINENO: result: $ac_result" >&5
24757 echo "${ECHO_T}$ac_result" >&6
24758
24759
24760
24761
24762   :
24763
24764
24765
24766
24767
24768
24769
24770
24771
24772
24773 for ac_header in wchar.h
24774 do
24775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24777   echo "$as_me:$LINENO: checking for $ac_header" >&5
24778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24780   echo $ECHO_N "(cached) $ECHO_C" >&6
24781 fi
24782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24784 else
24785   # Is the header compilable?
24786 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24788 cat >conftest.$ac_ext <<_ACEOF
24789 /* confdefs.h.  */
24790 _ACEOF
24791 cat confdefs.h >>conftest.$ac_ext
24792 cat >>conftest.$ac_ext <<_ACEOF
24793 /* end confdefs.h.  */
24794 $ac_includes_default
24795 #include <$ac_header>
24796 _ACEOF
24797 rm -f conftest.$ac_objext
24798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24799   (eval $ac_compile) 2>conftest.er1
24800   ac_status=$?
24801   grep -v '^ *+' conftest.er1 >conftest.err
24802   rm -f conftest.er1
24803   cat conftest.err >&5
24804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805   (exit $ac_status); } &&
24806          { ac_try='test -z "$ac_c_werror_flag"
24807                          || test ! -s conftest.err'
24808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24809   (eval $ac_try) 2>&5
24810   ac_status=$?
24811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812   (exit $ac_status); }; } &&
24813          { ac_try='test -s conftest.$ac_objext'
24814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24815   (eval $ac_try) 2>&5
24816   ac_status=$?
24817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818   (exit $ac_status); }; }; then
24819   ac_header_compiler=yes
24820 else
24821   echo "$as_me: failed program was:" >&5
24822 sed 's/^/| /' conftest.$ac_ext >&5
24823
24824 ac_header_compiler=no
24825 fi
24826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24828 echo "${ECHO_T}$ac_header_compiler" >&6
24829
24830 # Is the header present?
24831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24833 cat >conftest.$ac_ext <<_ACEOF
24834 /* confdefs.h.  */
24835 _ACEOF
24836 cat confdefs.h >>conftest.$ac_ext
24837 cat >>conftest.$ac_ext <<_ACEOF
24838 /* end confdefs.h.  */
24839 #include <$ac_header>
24840 _ACEOF
24841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24843   ac_status=$?
24844   grep -v '^ *+' conftest.er1 >conftest.err
24845   rm -f conftest.er1
24846   cat conftest.err >&5
24847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848   (exit $ac_status); } >/dev/null; then
24849   if test -s conftest.err; then
24850     ac_cpp_err=$ac_c_preproc_warn_flag
24851     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24852   else
24853     ac_cpp_err=
24854   fi
24855 else
24856   ac_cpp_err=yes
24857 fi
24858 if test -z "$ac_cpp_err"; then
24859   ac_header_preproc=yes
24860 else
24861   echo "$as_me: failed program was:" >&5
24862 sed 's/^/| /' conftest.$ac_ext >&5
24863
24864   ac_header_preproc=no
24865 fi
24866 rm -f conftest.err conftest.$ac_ext
24867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24868 echo "${ECHO_T}$ac_header_preproc" >&6
24869
24870 # So?  What about this header?
24871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24872   yes:no: )
24873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24877     ac_header_preproc=yes
24878     ;;
24879   no:yes:* )
24880     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24882     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24883 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24884     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24886     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24887 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24890     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24892     (
24893       cat <<\_ASBOX
24894 ## ------------------------------------ ##
24895 ## Report this to bug-coreutils@gnu.org ##
24896 ## ------------------------------------ ##
24897 _ASBOX
24898     ) |
24899       sed "s/^/$as_me: WARNING:     /" >&2
24900     ;;
24901 esac
24902 echo "$as_me:$LINENO: checking for $ac_header" >&5
24903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24905   echo $ECHO_N "(cached) $ECHO_C" >&6
24906 else
24907   eval "$as_ac_Header=\$ac_header_preproc"
24908 fi
24909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24911
24912 fi
24913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24914   cat >>confdefs.h <<_ACEOF
24915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24916 _ACEOF
24917
24918 fi
24919
24920 done
24921
24922
24923
24924
24925 for ac_header in wctype.h
24926 do
24927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24929   echo "$as_me:$LINENO: checking for $ac_header" >&5
24930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24932   echo $ECHO_N "(cached) $ECHO_C" >&6
24933 fi
24934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24936 else
24937   # Is the header compilable?
24938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24940 cat >conftest.$ac_ext <<_ACEOF
24941 /* confdefs.h.  */
24942 _ACEOF
24943 cat confdefs.h >>conftest.$ac_ext
24944 cat >>conftest.$ac_ext <<_ACEOF
24945 /* end confdefs.h.  */
24946 $ac_includes_default
24947 #include <$ac_header>
24948 _ACEOF
24949 rm -f conftest.$ac_objext
24950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24951   (eval $ac_compile) 2>conftest.er1
24952   ac_status=$?
24953   grep -v '^ *+' conftest.er1 >conftest.err
24954   rm -f conftest.er1
24955   cat conftest.err >&5
24956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957   (exit $ac_status); } &&
24958          { ac_try='test -z "$ac_c_werror_flag"
24959                          || test ! -s conftest.err'
24960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24961   (eval $ac_try) 2>&5
24962   ac_status=$?
24963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964   (exit $ac_status); }; } &&
24965          { ac_try='test -s conftest.$ac_objext'
24966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24967   (eval $ac_try) 2>&5
24968   ac_status=$?
24969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970   (exit $ac_status); }; }; then
24971   ac_header_compiler=yes
24972 else
24973   echo "$as_me: failed program was:" >&5
24974 sed 's/^/| /' conftest.$ac_ext >&5
24975
24976 ac_header_compiler=no
24977 fi
24978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24980 echo "${ECHO_T}$ac_header_compiler" >&6
24981
24982 # Is the header present?
24983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24985 cat >conftest.$ac_ext <<_ACEOF
24986 /* confdefs.h.  */
24987 _ACEOF
24988 cat confdefs.h >>conftest.$ac_ext
24989 cat >>conftest.$ac_ext <<_ACEOF
24990 /* end confdefs.h.  */
24991 #include <$ac_header>
24992 _ACEOF
24993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24995   ac_status=$?
24996   grep -v '^ *+' conftest.er1 >conftest.err
24997   rm -f conftest.er1
24998   cat conftest.err >&5
24999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000   (exit $ac_status); } >/dev/null; then
25001   if test -s conftest.err; then
25002     ac_cpp_err=$ac_c_preproc_warn_flag
25003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25004   else
25005     ac_cpp_err=
25006   fi
25007 else
25008   ac_cpp_err=yes
25009 fi
25010 if test -z "$ac_cpp_err"; then
25011   ac_header_preproc=yes
25012 else
25013   echo "$as_me: failed program was:" >&5
25014 sed 's/^/| /' conftest.$ac_ext >&5
25015
25016   ac_header_preproc=no
25017 fi
25018 rm -f conftest.err conftest.$ac_ext
25019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25020 echo "${ECHO_T}$ac_header_preproc" >&6
25021
25022 # So?  What about this header?
25023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25024   yes:no: )
25025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25029     ac_header_preproc=yes
25030     ;;
25031   no:yes:* )
25032     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25034     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25035 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25036     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25038     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25039 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25042     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25044     (
25045       cat <<\_ASBOX
25046 ## ------------------------------------ ##
25047 ## Report this to bug-coreutils@gnu.org ##
25048 ## ------------------------------------ ##
25049 _ASBOX
25050     ) |
25051       sed "s/^/$as_me: WARNING:     /" >&2
25052     ;;
25053 esac
25054 echo "$as_me:$LINENO: checking for $ac_header" >&5
25055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25057   echo $ECHO_N "(cached) $ECHO_C" >&6
25058 else
25059   eval "$as_ac_Header=\$ac_header_preproc"
25060 fi
25061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25063
25064 fi
25065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25066   cat >>confdefs.h <<_ACEOF
25067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25068 _ACEOF
25069
25070 fi
25071
25072 done
25073
25074
25075
25076
25077 for ac_func in iswprint
25078 do
25079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25080 echo "$as_me:$LINENO: checking for $ac_func" >&5
25081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25082 if eval "test \"\${$as_ac_var+set}\" = set"; then
25083   echo $ECHO_N "(cached) $ECHO_C" >&6
25084 else
25085   cat >conftest.$ac_ext <<_ACEOF
25086 /* confdefs.h.  */
25087 _ACEOF
25088 cat confdefs.h >>conftest.$ac_ext
25089 cat >>conftest.$ac_ext <<_ACEOF
25090 /* end confdefs.h.  */
25091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25093 #define $ac_func innocuous_$ac_func
25094
25095 /* System header to define __stub macros and hopefully few prototypes,
25096     which can conflict with char $ac_func (); below.
25097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25098     <limits.h> exists even on freestanding compilers.  */
25099
25100 #ifdef __STDC__
25101 # include <limits.h>
25102 #else
25103 # include <assert.h>
25104 #endif
25105
25106 #undef $ac_func
25107
25108 /* Override any gcc2 internal prototype to avoid an error.  */
25109 #ifdef __cplusplus
25110 extern "C"
25111 {
25112 #endif
25113 /* We use char because int might match the return type of a gcc2
25114    builtin and then its argument prototype would still apply.  */
25115 char $ac_func ();
25116 /* The GNU C library defines this for functions which it implements
25117     to always fail with ENOSYS.  Some functions are actually named
25118     something starting with __ and the normal name is an alias.  */
25119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25120 choke me
25121 #else
25122 char (*f) () = $ac_func;
25123 #endif
25124 #ifdef __cplusplus
25125 }
25126 #endif
25127
25128 int
25129 main ()
25130 {
25131 return f != $ac_func;
25132   ;
25133   return 0;
25134 }
25135 _ACEOF
25136 rm -f conftest.$ac_objext conftest$ac_exeext
25137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25138   (eval $ac_link) 2>conftest.er1
25139   ac_status=$?
25140   grep -v '^ *+' conftest.er1 >conftest.err
25141   rm -f conftest.er1
25142   cat conftest.err >&5
25143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144   (exit $ac_status); } &&
25145          { ac_try='test -z "$ac_c_werror_flag"
25146                          || test ! -s conftest.err'
25147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148   (eval $ac_try) 2>&5
25149   ac_status=$?
25150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151   (exit $ac_status); }; } &&
25152          { ac_try='test -s conftest$ac_exeext'
25153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154   (eval $ac_try) 2>&5
25155   ac_status=$?
25156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157   (exit $ac_status); }; }; then
25158   eval "$as_ac_var=yes"
25159 else
25160   echo "$as_me: failed program was:" >&5
25161 sed 's/^/| /' conftest.$ac_ext >&5
25162
25163 eval "$as_ac_var=no"
25164 fi
25165 rm -f conftest.err conftest.$ac_objext \
25166       conftest$ac_exeext conftest.$ac_ext
25167 fi
25168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25170 if test `eval echo '${'$as_ac_var'}'` = yes; then
25171   cat >>confdefs.h <<_ACEOF
25172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25173 _ACEOF
25174
25175 fi
25176 done
25177
25178
25179
25180
25181 for ac_func in mbsinit
25182 do
25183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25184 echo "$as_me:$LINENO: checking for $ac_func" >&5
25185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25186 if eval "test \"\${$as_ac_var+set}\" = set"; then
25187   echo $ECHO_N "(cached) $ECHO_C" >&6
25188 else
25189   cat >conftest.$ac_ext <<_ACEOF
25190 /* confdefs.h.  */
25191 _ACEOF
25192 cat confdefs.h >>conftest.$ac_ext
25193 cat >>conftest.$ac_ext <<_ACEOF
25194 /* end confdefs.h.  */
25195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25197 #define $ac_func innocuous_$ac_func
25198
25199 /* System header to define __stub macros and hopefully few prototypes,
25200     which can conflict with char $ac_func (); below.
25201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25202     <limits.h> exists even on freestanding compilers.  */
25203
25204 #ifdef __STDC__
25205 # include <limits.h>
25206 #else
25207 # include <assert.h>
25208 #endif
25209
25210 #undef $ac_func
25211
25212 /* Override any gcc2 internal prototype to avoid an error.  */
25213 #ifdef __cplusplus
25214 extern "C"
25215 {
25216 #endif
25217 /* We use char because int might match the return type of a gcc2
25218    builtin and then its argument prototype would still apply.  */
25219 char $ac_func ();
25220 /* The GNU C library defines this for functions which it implements
25221     to always fail with ENOSYS.  Some functions are actually named
25222     something starting with __ and the normal name is an alias.  */
25223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25224 choke me
25225 #else
25226 char (*f) () = $ac_func;
25227 #endif
25228 #ifdef __cplusplus
25229 }
25230 #endif
25231
25232 int
25233 main ()
25234 {
25235 return f != $ac_func;
25236   ;
25237   return 0;
25238 }
25239 _ACEOF
25240 rm -f conftest.$ac_objext conftest$ac_exeext
25241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25242   (eval $ac_link) 2>conftest.er1
25243   ac_status=$?
25244   grep -v '^ *+' conftest.er1 >conftest.err
25245   rm -f conftest.er1
25246   cat conftest.err >&5
25247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248   (exit $ac_status); } &&
25249          { ac_try='test -z "$ac_c_werror_flag"
25250                          || test ! -s conftest.err'
25251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252   (eval $ac_try) 2>&5
25253   ac_status=$?
25254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255   (exit $ac_status); }; } &&
25256          { ac_try='test -s conftest$ac_exeext'
25257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25258   (eval $ac_try) 2>&5
25259   ac_status=$?
25260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261   (exit $ac_status); }; }; then
25262   eval "$as_ac_var=yes"
25263 else
25264   echo "$as_me: failed program was:" >&5
25265 sed 's/^/| /' conftest.$ac_ext >&5
25266
25267 eval "$as_ac_var=no"
25268 fi
25269 rm -f conftest.err conftest.$ac_objext \
25270       conftest$ac_exeext conftest.$ac_ext
25271 fi
25272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25274 if test `eval echo '${'$as_ac_var'}'` = yes; then
25275   cat >>confdefs.h <<_ACEOF
25276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25277 _ACEOF
25278
25279 fi
25280 done
25281
25282
25283
25284
25285   :
25286
25287
25288
25289
25290
25291
25292
25293
25294
25295   :
25296
25297
25298
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308
25309 for ac_func in iswcntrl wcwidth
25310 do
25311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25312 echo "$as_me:$LINENO: checking for $ac_func" >&5
25313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25314 if eval "test \"\${$as_ac_var+set}\" = set"; then
25315   echo $ECHO_N "(cached) $ECHO_C" >&6
25316 else
25317   cat >conftest.$ac_ext <<_ACEOF
25318 /* confdefs.h.  */
25319 _ACEOF
25320 cat confdefs.h >>conftest.$ac_ext
25321 cat >>conftest.$ac_ext <<_ACEOF
25322 /* end confdefs.h.  */
25323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25325 #define $ac_func innocuous_$ac_func
25326
25327 /* System header to define __stub macros and hopefully few prototypes,
25328     which can conflict with char $ac_func (); below.
25329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25330     <limits.h> exists even on freestanding compilers.  */
25331
25332 #ifdef __STDC__
25333 # include <limits.h>
25334 #else
25335 # include <assert.h>
25336 #endif
25337
25338 #undef $ac_func
25339
25340 /* Override any gcc2 internal prototype to avoid an error.  */
25341 #ifdef __cplusplus
25342 extern "C"
25343 {
25344 #endif
25345 /* We use char because int might match the return type of a gcc2
25346    builtin and then its argument prototype would still apply.  */
25347 char $ac_func ();
25348 /* The GNU C library defines this for functions which it implements
25349     to always fail with ENOSYS.  Some functions are actually named
25350     something starting with __ and the normal name is an alias.  */
25351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25352 choke me
25353 #else
25354 char (*f) () = $ac_func;
25355 #endif
25356 #ifdef __cplusplus
25357 }
25358 #endif
25359
25360 int
25361 main ()
25362 {
25363 return f != $ac_func;
25364   ;
25365   return 0;
25366 }
25367 _ACEOF
25368 rm -f conftest.$ac_objext conftest$ac_exeext
25369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25370   (eval $ac_link) 2>conftest.er1
25371   ac_status=$?
25372   grep -v '^ *+' conftest.er1 >conftest.err
25373   rm -f conftest.er1
25374   cat conftest.err >&5
25375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376   (exit $ac_status); } &&
25377          { ac_try='test -z "$ac_c_werror_flag"
25378                          || test ! -s conftest.err'
25379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25380   (eval $ac_try) 2>&5
25381   ac_status=$?
25382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383   (exit $ac_status); }; } &&
25384          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
25390   eval "$as_ac_var=yes"
25391 else
25392   echo "$as_me: failed program was:" >&5
25393 sed 's/^/| /' conftest.$ac_ext >&5
25394
25395 eval "$as_ac_var=no"
25396 fi
25397 rm -f conftest.err conftest.$ac_objext \
25398       conftest$ac_exeext conftest.$ac_ext
25399 fi
25400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25402 if test `eval echo '${'$as_ac_var'}'` = yes; then
25403   cat >>confdefs.h <<_ACEOF
25404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25405 _ACEOF
25406
25407 fi
25408 done
25409
25410
25411   echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
25412 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
25413 if test "${jm_cv_func_mbrtowc+set}" = set; then
25414   echo $ECHO_N "(cached) $ECHO_C" >&6
25415 else
25416   cat >conftest.$ac_ext <<_ACEOF
25417 /* confdefs.h.  */
25418 _ACEOF
25419 cat confdefs.h >>conftest.$ac_ext
25420 cat >>conftest.$ac_ext <<_ACEOF
25421 /* end confdefs.h.  */
25422 #include <wchar.h>
25423 int
25424 main ()
25425 {
25426 mbstate_t state; return ! (sizeof state && mbrtowc);
25427   ;
25428   return 0;
25429 }
25430 _ACEOF
25431 rm -f conftest.$ac_objext conftest$ac_exeext
25432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25433   (eval $ac_link) 2>conftest.er1
25434   ac_status=$?
25435   grep -v '^ *+' conftest.er1 >conftest.err
25436   rm -f conftest.er1
25437   cat conftest.err >&5
25438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439   (exit $ac_status); } &&
25440          { ac_try='test -z "$ac_c_werror_flag"
25441                          || test ! -s conftest.err'
25442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25443   (eval $ac_try) 2>&5
25444   ac_status=$?
25445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446   (exit $ac_status); }; } &&
25447          { ac_try='test -s conftest$ac_exeext'
25448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25449   (eval $ac_try) 2>&5
25450   ac_status=$?
25451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452   (exit $ac_status); }; }; then
25453   jm_cv_func_mbrtowc=yes
25454 else
25455   echo "$as_me: failed program was:" >&5
25456 sed 's/^/| /' conftest.$ac_ext >&5
25457
25458 jm_cv_func_mbrtowc=no
25459 fi
25460 rm -f conftest.err conftest.$ac_objext \
25461       conftest$ac_exeext conftest.$ac_ext
25462 fi
25463 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
25464 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
25465   if test $jm_cv_func_mbrtowc = yes; then
25466
25467 cat >>confdefs.h <<\_ACEOF
25468 #define HAVE_MBRTOWC 1
25469 _ACEOF
25470
25471   fi
25472
25473
25474   echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
25475 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
25476 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
25477   echo $ECHO_N "(cached) $ECHO_C" >&6
25478 else
25479   cat >conftest.$ac_ext <<_ACEOF
25480 /* confdefs.h.  */
25481 _ACEOF
25482 cat confdefs.h >>conftest.$ac_ext
25483 cat >>conftest.$ac_ext <<_ACEOF
25484 /* end confdefs.h.  */
25485
25486 /* AIX 3.2.5 declares wcwidth in <string.h>. */
25487 #if HAVE_STRING_H
25488 # include <string.h>
25489 #endif
25490 #if HAVE_WCHAR_H
25491 # include <wchar.h>
25492 #endif
25493
25494 int
25495 main ()
25496 {
25497
25498 #ifndef wcwidth
25499   char *p = (char *) wcwidth;
25500 #endif
25501
25502   ;
25503   return 0;
25504 }
25505 _ACEOF
25506 rm -f conftest.$ac_objext
25507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25508   (eval $ac_compile) 2>conftest.er1
25509   ac_status=$?
25510   grep -v '^ *+' conftest.er1 >conftest.err
25511   rm -f conftest.er1
25512   cat conftest.err >&5
25513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514   (exit $ac_status); } &&
25515          { ac_try='test -z "$ac_c_werror_flag"
25516                          || test ! -s conftest.err'
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); }; } &&
25522          { ac_try='test -s conftest.$ac_objext'
25523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25524   (eval $ac_try) 2>&5
25525   ac_status=$?
25526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527   (exit $ac_status); }; }; then
25528   ac_cv_have_decl_wcwidth=yes
25529 else
25530   echo "$as_me: failed program was:" >&5
25531 sed 's/^/| /' conftest.$ac_ext >&5
25532
25533 ac_cv_have_decl_wcwidth=no
25534 fi
25535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25536 fi
25537 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
25538 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
25539   if test $ac_cv_have_decl_wcwidth = yes; then
25540     ac_val=1
25541   else
25542     ac_val=0
25543   fi
25544
25545 cat >>confdefs.h <<_ACEOF
25546 #define HAVE_DECL_WCWIDTH $ac_val
25547 _ACEOF
25548
25549
25550   echo "$as_me:$LINENO: checking for mbstate_t" >&5
25551 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
25552 if test "${ac_cv_type_mbstate_t+set}" = set; then
25553   echo $ECHO_N "(cached) $ECHO_C" >&6
25554 else
25555   cat >conftest.$ac_ext <<_ACEOF
25556 /* confdefs.h.  */
25557 _ACEOF
25558 cat confdefs.h >>conftest.$ac_ext
25559 cat >>conftest.$ac_ext <<_ACEOF
25560 /* end confdefs.h.  */
25561 $ac_includes_default
25562 #           include <wchar.h>
25563 int
25564 main ()
25565 {
25566 mbstate_t x; return sizeof x;
25567   ;
25568   return 0;
25569 }
25570 _ACEOF
25571 rm -f conftest.$ac_objext
25572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25573   (eval $ac_compile) 2>conftest.er1
25574   ac_status=$?
25575   grep -v '^ *+' conftest.er1 >conftest.err
25576   rm -f conftest.er1
25577   cat conftest.err >&5
25578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579   (exit $ac_status); } &&
25580          { ac_try='test -z "$ac_c_werror_flag"
25581                          || test ! -s conftest.err'
25582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25583   (eval $ac_try) 2>&5
25584   ac_status=$?
25585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586   (exit $ac_status); }; } &&
25587          { ac_try='test -s conftest.$ac_objext'
25588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25589   (eval $ac_try) 2>&5
25590   ac_status=$?
25591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592   (exit $ac_status); }; }; then
25593   ac_cv_type_mbstate_t=yes
25594 else
25595   echo "$as_me: failed program was:" >&5
25596 sed 's/^/| /' conftest.$ac_ext >&5
25597
25598 ac_cv_type_mbstate_t=no
25599 fi
25600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25601 fi
25602 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25603 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
25604    if test $ac_cv_type_mbstate_t = yes; then
25605
25606 cat >>confdefs.h <<\_ACEOF
25607 #define HAVE_MBSTATE_T 1
25608 _ACEOF
25609
25610    else
25611
25612 cat >>confdefs.h <<\_ACEOF
25613 #define mbstate_t int
25614 _ACEOF
25615
25616    fi
25617
25618
25619
25620
25621
25622 echo "$as_me:$LINENO: checking for working memcmp" >&5
25623 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
25624 if test "${ac_cv_func_memcmp_working+set}" = set; then
25625   echo $ECHO_N "(cached) $ECHO_C" >&6
25626 else
25627   if test "$cross_compiling" = yes; then
25628   ac_cv_func_memcmp_working=no
25629 else
25630   cat >conftest.$ac_ext <<_ACEOF
25631 /* confdefs.h.  */
25632 _ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h.  */
25636 $ac_includes_default
25637 int
25638 main ()
25639 {
25640
25641   /* Some versions of memcmp are not 8-bit clean.  */
25642   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
25643   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25644     exit (1);
25645
25646   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25647      or more and with at least one buffer not starting on a 4-byte boundary.
25648      William Lewis provided this test program.   */
25649   {
25650     char foo[21];
25651     char bar[21];
25652     int i;
25653     for (i = 0; i < 4; i++)
25654       {
25655         char *a = foo + i;
25656         char *b = bar + i;
25657         strcpy (a, "--------01111111");
25658         strcpy (b, "--------10000000");
25659         if (memcmp (a, b, 16) >= 0)
25660           exit (1);
25661       }
25662     exit (0);
25663   }
25664
25665   ;
25666   return 0;
25667 }
25668 _ACEOF
25669 rm -f conftest$ac_exeext
25670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25671   (eval $ac_link) 2>&5
25672   ac_status=$?
25673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25676   (eval $ac_try) 2>&5
25677   ac_status=$?
25678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679   (exit $ac_status); }; }; then
25680   ac_cv_func_memcmp_working=yes
25681 else
25682   echo "$as_me: program exited with status $ac_status" >&5
25683 echo "$as_me: failed program was:" >&5
25684 sed 's/^/| /' conftest.$ac_ext >&5
25685
25686 ( exit $ac_status )
25687 ac_cv_func_memcmp_working=no
25688 fi
25689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25690 fi
25691 fi
25692 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25693 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
25694 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
25695     "memcmp.$ac_objext"   | \
25696   *" memcmp.$ac_objext"   | \
25697     "memcmp.$ac_objext "* | \
25698   *" memcmp.$ac_objext "* ) ;;
25699   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
25700 esac
25701
25702
25703
25704
25705   echo "$as_me:$LINENO: checking for working strcoll" >&5
25706 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
25707 if test "${ac_cv_func_strcoll_works+set}" = set; then
25708   echo $ECHO_N "(cached) $ECHO_C" >&6
25709 else
25710   if test "$cross_compiling" = yes; then
25711   ac_cv_func_strcoll_works=no
25712 else
25713   cat >conftest.$ac_ext <<_ACEOF
25714 /* confdefs.h.  */
25715 _ACEOF
25716 cat confdefs.h >>conftest.$ac_ext
25717 cat >>conftest.$ac_ext <<_ACEOF
25718 /* end confdefs.h.  */
25719 $ac_includes_default
25720 int
25721 main ()
25722 {
25723 exit (strcoll ("abc", "def") >= 0 ||
25724          strcoll ("ABC", "DEF") >= 0 ||
25725          strcoll ("123", "456") >= 0)
25726   ;
25727   return 0;
25728 }
25729 _ACEOF
25730 rm -f conftest$ac_exeext
25731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25732   (eval $ac_link) 2>&5
25733   ac_status=$?
25734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25737   (eval $ac_try) 2>&5
25738   ac_status=$?
25739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740   (exit $ac_status); }; }; then
25741   ac_cv_func_strcoll_works=yes
25742 else
25743   echo "$as_me: program exited with status $ac_status" >&5
25744 echo "$as_me: failed program was:" >&5
25745 sed 's/^/| /' conftest.$ac_ext >&5
25746
25747 ( exit $ac_status )
25748 ac_cv_func_strcoll_works=no
25749 fi
25750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25751 fi
25752 fi
25753 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
25754 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
25755 if test $ac_cv_func_strcoll_works = yes; then
25756
25757 cat >>confdefs.h <<\_ACEOF
25758 #define HAVE_STRCOLL 1
25759 _ACEOF
25760
25761 fi
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771 for ac_func in listmntent getmntinfo
25772 do
25773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25774 echo "$as_me:$LINENO: checking for $ac_func" >&5
25775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25776 if eval "test \"\${$as_ac_var+set}\" = set"; then
25777   echo $ECHO_N "(cached) $ECHO_C" >&6
25778 else
25779   cat >conftest.$ac_ext <<_ACEOF
25780 /* confdefs.h.  */
25781 _ACEOF
25782 cat confdefs.h >>conftest.$ac_ext
25783 cat >>conftest.$ac_ext <<_ACEOF
25784 /* end confdefs.h.  */
25785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25787 #define $ac_func innocuous_$ac_func
25788
25789 /* System header to define __stub macros and hopefully few prototypes,
25790     which can conflict with char $ac_func (); below.
25791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25792     <limits.h> exists even on freestanding compilers.  */
25793
25794 #ifdef __STDC__
25795 # include <limits.h>
25796 #else
25797 # include <assert.h>
25798 #endif
25799
25800 #undef $ac_func
25801
25802 /* Override any gcc2 internal prototype to avoid an error.  */
25803 #ifdef __cplusplus
25804 extern "C"
25805 {
25806 #endif
25807 /* We use char because int might match the return type of a gcc2
25808    builtin and then its argument prototype would still apply.  */
25809 char $ac_func ();
25810 /* The GNU C library defines this for functions which it implements
25811     to always fail with ENOSYS.  Some functions are actually named
25812     something starting with __ and the normal name is an alias.  */
25813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25814 choke me
25815 #else
25816 char (*f) () = $ac_func;
25817 #endif
25818 #ifdef __cplusplus
25819 }
25820 #endif
25821
25822 int
25823 main ()
25824 {
25825 return f != $ac_func;
25826   ;
25827   return 0;
25828 }
25829 _ACEOF
25830 rm -f conftest.$ac_objext conftest$ac_exeext
25831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25832   (eval $ac_link) 2>conftest.er1
25833   ac_status=$?
25834   grep -v '^ *+' conftest.er1 >conftest.err
25835   rm -f conftest.er1
25836   cat conftest.err >&5
25837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25838   (exit $ac_status); } &&
25839          { ac_try='test -z "$ac_c_werror_flag"
25840                          || test ! -s conftest.err'
25841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25842   (eval $ac_try) 2>&5
25843   ac_status=$?
25844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845   (exit $ac_status); }; } &&
25846          { ac_try='test -s conftest$ac_exeext'
25847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25848   (eval $ac_try) 2>&5
25849   ac_status=$?
25850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851   (exit $ac_status); }; }; then
25852   eval "$as_ac_var=yes"
25853 else
25854   echo "$as_me: failed program was:" >&5
25855 sed 's/^/| /' conftest.$ac_ext >&5
25856
25857 eval "$as_ac_var=no"
25858 fi
25859 rm -f conftest.err conftest.$ac_objext \
25860       conftest$ac_exeext conftest.$ac_ext
25861 fi
25862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25864 if test `eval echo '${'$as_ac_var'}'` = yes; then
25865   cat >>confdefs.h <<_ACEOF
25866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25867 _ACEOF
25868
25869 fi
25870 done
25871
25872
25873   :
25874
25875
25876
25877
25878
25879
25880 # We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses
25881 # NGROUPS (as the array dimension for a struct member) without a definition.
25882
25883 for ac_header in sys/ucred.h
25884 do
25885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25886 echo "$as_me:$LINENO: checking for $ac_header" >&5
25887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25889   echo $ECHO_N "(cached) $ECHO_C" >&6
25890 else
25891   cat >conftest.$ac_ext <<_ACEOF
25892 /* confdefs.h.  */
25893 _ACEOF
25894 cat confdefs.h >>conftest.$ac_ext
25895 cat >>conftest.$ac_ext <<_ACEOF
25896 /* end confdefs.h.  */
25897 #include <grp.h>
25898
25899 #include <$ac_header>
25900 _ACEOF
25901 rm -f conftest.$ac_objext
25902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25903   (eval $ac_compile) 2>conftest.er1
25904   ac_status=$?
25905   grep -v '^ *+' conftest.er1 >conftest.err
25906   rm -f conftest.er1
25907   cat conftest.err >&5
25908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909   (exit $ac_status); } &&
25910          { ac_try='test -z "$ac_c_werror_flag"
25911                          || test ! -s conftest.err'
25912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25913   (eval $ac_try) 2>&5
25914   ac_status=$?
25915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916   (exit $ac_status); }; } &&
25917          { ac_try='test -s conftest.$ac_objext'
25918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25919   (eval $ac_try) 2>&5
25920   ac_status=$?
25921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922   (exit $ac_status); }; }; then
25923   eval "$as_ac_Header=yes"
25924 else
25925   echo "$as_me: failed program was:" >&5
25926 sed 's/^/| /' conftest.$ac_ext >&5
25927
25928 eval "$as_ac_Header=no"
25929 fi
25930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25931 fi
25932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25935   cat >>confdefs.h <<_ACEOF
25936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25937 _ACEOF
25938
25939 fi
25940
25941 done
25942
25943
25944
25945
25946
25947 for ac_header in mntent.h sys/mount.h sys/fs_types.h
25948 do
25949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25951   echo "$as_me:$LINENO: checking for $ac_header" >&5
25952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25954   echo $ECHO_N "(cached) $ECHO_C" >&6
25955 fi
25956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25958 else
25959   # Is the header compilable?
25960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25962 cat >conftest.$ac_ext <<_ACEOF
25963 /* confdefs.h.  */
25964 _ACEOF
25965 cat confdefs.h >>conftest.$ac_ext
25966 cat >>conftest.$ac_ext <<_ACEOF
25967 /* end confdefs.h.  */
25968 $ac_includes_default
25969 #include <$ac_header>
25970 _ACEOF
25971 rm -f conftest.$ac_objext
25972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25973   (eval $ac_compile) 2>conftest.er1
25974   ac_status=$?
25975   grep -v '^ *+' conftest.er1 >conftest.err
25976   rm -f conftest.er1
25977   cat conftest.err >&5
25978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979   (exit $ac_status); } &&
25980          { ac_try='test -z "$ac_c_werror_flag"
25981                          || test ! -s conftest.err'
25982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25983   (eval $ac_try) 2>&5
25984   ac_status=$?
25985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986   (exit $ac_status); }; } &&
25987          { ac_try='test -s conftest.$ac_objext'
25988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25989   (eval $ac_try) 2>&5
25990   ac_status=$?
25991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992   (exit $ac_status); }; }; then
25993   ac_header_compiler=yes
25994 else
25995   echo "$as_me: failed program was:" >&5
25996 sed 's/^/| /' conftest.$ac_ext >&5
25997
25998 ac_header_compiler=no
25999 fi
26000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26002 echo "${ECHO_T}$ac_header_compiler" >&6
26003
26004 # Is the header present?
26005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26007 cat >conftest.$ac_ext <<_ACEOF
26008 /* confdefs.h.  */
26009 _ACEOF
26010 cat confdefs.h >>conftest.$ac_ext
26011 cat >>conftest.$ac_ext <<_ACEOF
26012 /* end confdefs.h.  */
26013 #include <$ac_header>
26014 _ACEOF
26015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26016   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26017   ac_status=$?
26018   grep -v '^ *+' conftest.er1 >conftest.err
26019   rm -f conftest.er1
26020   cat conftest.err >&5
26021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022   (exit $ac_status); } >/dev/null; then
26023   if test -s conftest.err; then
26024     ac_cpp_err=$ac_c_preproc_warn_flag
26025     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26026   else
26027     ac_cpp_err=
26028   fi
26029 else
26030   ac_cpp_err=yes
26031 fi
26032 if test -z "$ac_cpp_err"; then
26033   ac_header_preproc=yes
26034 else
26035   echo "$as_me: failed program was:" >&5
26036 sed 's/^/| /' conftest.$ac_ext >&5
26037
26038   ac_header_preproc=no
26039 fi
26040 rm -f conftest.err conftest.$ac_ext
26041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26042 echo "${ECHO_T}$ac_header_preproc" >&6
26043
26044 # So?  What about this header?
26045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26046   yes:no: )
26047     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26051     ac_header_preproc=yes
26052     ;;
26053   no:yes:* )
26054     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26056     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26057 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26058     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26060     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26061 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26064     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26066     (
26067       cat <<\_ASBOX
26068 ## ------------------------------------ ##
26069 ## Report this to bug-coreutils@gnu.org ##
26070 ## ------------------------------------ ##
26071 _ASBOX
26072     ) |
26073       sed "s/^/$as_me: WARNING:     /" >&2
26074     ;;
26075 esac
26076 echo "$as_me:$LINENO: checking for $ac_header" >&5
26077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26079   echo $ECHO_N "(cached) $ECHO_C" >&6
26080 else
26081   eval "$as_ac_Header=\$ac_header_preproc"
26082 fi
26083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26085
26086 fi
26087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26088   cat >>confdefs.h <<_ACEOF
26089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26090 _ACEOF
26091
26092 fi
26093
26094 done
26095
26096     getfsstat_includes="\
26097 $ac_includes_default
26098 #if HAVE_SYS_PARAM_H
26099 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
26100 #endif
26101 #if HAVE_SYS_UCRED_H
26102 # include <grp.h> /* needed for definition of NGROUPS */
26103 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
26104 #endif
26105 #if HAVE_SYS_MOUNT_H
26106 # include <sys/mount.h>
26107 #endif
26108 #if HAVE_SYS_FS_TYPES_H
26109 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
26110 #endif
26111 "
26112 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
26113 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
26114 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
26115   echo $ECHO_N "(cached) $ECHO_C" >&6
26116 else
26117   cat >conftest.$ac_ext <<_ACEOF
26118 /* confdefs.h.  */
26119 _ACEOF
26120 cat confdefs.h >>conftest.$ac_ext
26121 cat >>conftest.$ac_ext <<_ACEOF
26122 /* end confdefs.h.  */
26123 $getfsstat_includes
26124
26125 int
26126 main ()
26127 {
26128 static struct fsstat ac_aggr;
26129 if (ac_aggr.f_fstypename)
26130 return 0;
26131   ;
26132   return 0;
26133 }
26134 _ACEOF
26135 rm -f conftest.$ac_objext
26136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26137   (eval $ac_compile) 2>conftest.er1
26138   ac_status=$?
26139   grep -v '^ *+' conftest.er1 >conftest.err
26140   rm -f conftest.er1
26141   cat conftest.err >&5
26142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143   (exit $ac_status); } &&
26144          { ac_try='test -z "$ac_c_werror_flag"
26145                          || test ! -s conftest.err'
26146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26147   (eval $ac_try) 2>&5
26148   ac_status=$?
26149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150   (exit $ac_status); }; } &&
26151          { ac_try='test -s conftest.$ac_objext'
26152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26153   (eval $ac_try) 2>&5
26154   ac_status=$?
26155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156   (exit $ac_status); }; }; then
26157   ac_cv_member_struct_fsstat_f_fstypename=yes
26158 else
26159   echo "$as_me: failed program was:" >&5
26160 sed 's/^/| /' conftest.$ac_ext >&5
26161
26162 cat >conftest.$ac_ext <<_ACEOF
26163 /* confdefs.h.  */
26164 _ACEOF
26165 cat confdefs.h >>conftest.$ac_ext
26166 cat >>conftest.$ac_ext <<_ACEOF
26167 /* end confdefs.h.  */
26168 $getfsstat_includes
26169
26170 int
26171 main ()
26172 {
26173 static struct fsstat ac_aggr;
26174 if (sizeof ac_aggr.f_fstypename)
26175 return 0;
26176   ;
26177   return 0;
26178 }
26179 _ACEOF
26180 rm -f conftest.$ac_objext
26181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26182   (eval $ac_compile) 2>conftest.er1
26183   ac_status=$?
26184   grep -v '^ *+' conftest.er1 >conftest.err
26185   rm -f conftest.er1
26186   cat conftest.err >&5
26187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188   (exit $ac_status); } &&
26189          { ac_try='test -z "$ac_c_werror_flag"
26190                          || test ! -s conftest.err'
26191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192   (eval $ac_try) 2>&5
26193   ac_status=$?
26194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195   (exit $ac_status); }; } &&
26196          { ac_try='test -s conftest.$ac_objext'
26197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26198   (eval $ac_try) 2>&5
26199   ac_status=$?
26200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201   (exit $ac_status); }; }; then
26202   ac_cv_member_struct_fsstat_f_fstypename=yes
26203 else
26204   echo "$as_me: failed program was:" >&5
26205 sed 's/^/| /' conftest.$ac_ext >&5
26206
26207 ac_cv_member_struct_fsstat_f_fstypename=no
26208 fi
26209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26210 fi
26211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26212 fi
26213 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
26214 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
26215 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
26216
26217 cat >>confdefs.h <<_ACEOF
26218 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
26219 _ACEOF
26220
26221
26222 fi
26223
26224
26225 # Determine how to get the list of mounted filesystems.
26226 ac_list_mounted_fs=
26227
26228 # If the getmntent function is available but not in the standard library,
26229 # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
26230 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
26231 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
26232 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
26233 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
26234   echo $ECHO_N "(cached) $ECHO_C" >&6
26235 else
26236   ac_check_lib_save_LIBS=$LIBS
26237 LIBS="-lsun  $LIBS"
26238 cat >conftest.$ac_ext <<_ACEOF
26239 /* confdefs.h.  */
26240 _ACEOF
26241 cat confdefs.h >>conftest.$ac_ext
26242 cat >>conftest.$ac_ext <<_ACEOF
26243 /* end confdefs.h.  */
26244
26245 /* Override any gcc2 internal prototype to avoid an error.  */
26246 #ifdef __cplusplus
26247 extern "C"
26248 #endif
26249 /* We use char because int might match the return type of a gcc2
26250    builtin and then its argument prototype would still apply.  */
26251 char getmntent ();
26252 int
26253 main ()
26254 {
26255 getmntent ();
26256   ;
26257   return 0;
26258 }
26259 _ACEOF
26260 rm -f conftest.$ac_objext conftest$ac_exeext
26261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26262   (eval $ac_link) 2>conftest.er1
26263   ac_status=$?
26264   grep -v '^ *+' conftest.er1 >conftest.err
26265   rm -f conftest.er1
26266   cat conftest.err >&5
26267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268   (exit $ac_status); } &&
26269          { ac_try='test -z "$ac_c_werror_flag"
26270                          || test ! -s conftest.err'
26271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26272   (eval $ac_try) 2>&5
26273   ac_status=$?
26274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275   (exit $ac_status); }; } &&
26276          { ac_try='test -s conftest$ac_exeext'
26277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26278   (eval $ac_try) 2>&5
26279   ac_status=$?
26280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281   (exit $ac_status); }; }; then
26282   ac_cv_lib_sun_getmntent=yes
26283 else
26284   echo "$as_me: failed program was:" >&5
26285 sed 's/^/| /' conftest.$ac_ext >&5
26286
26287 ac_cv_lib_sun_getmntent=no
26288 fi
26289 rm -f conftest.err conftest.$ac_objext \
26290       conftest$ac_exeext conftest.$ac_ext
26291 LIBS=$ac_check_lib_save_LIBS
26292 fi
26293 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
26294 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
26295 if test $ac_cv_lib_sun_getmntent = yes; then
26296   LIBS="-lsun $LIBS"
26297 else
26298   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
26299 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
26300 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
26301   echo $ECHO_N "(cached) $ECHO_C" >&6
26302 else
26303   ac_check_lib_save_LIBS=$LIBS
26304 LIBS="-lseq  $LIBS"
26305 cat >conftest.$ac_ext <<_ACEOF
26306 /* confdefs.h.  */
26307 _ACEOF
26308 cat confdefs.h >>conftest.$ac_ext
26309 cat >>conftest.$ac_ext <<_ACEOF
26310 /* end confdefs.h.  */
26311
26312 /* Override any gcc2 internal prototype to avoid an error.  */
26313 #ifdef __cplusplus
26314 extern "C"
26315 #endif
26316 /* We use char because int might match the return type of a gcc2
26317    builtin and then its argument prototype would still apply.  */
26318 char getmntent ();
26319 int
26320 main ()
26321 {
26322 getmntent ();
26323   ;
26324   return 0;
26325 }
26326 _ACEOF
26327 rm -f conftest.$ac_objext conftest$ac_exeext
26328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26329   (eval $ac_link) 2>conftest.er1
26330   ac_status=$?
26331   grep -v '^ *+' conftest.er1 >conftest.err
26332   rm -f conftest.er1
26333   cat conftest.err >&5
26334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335   (exit $ac_status); } &&
26336          { ac_try='test -z "$ac_c_werror_flag"
26337                          || test ! -s conftest.err'
26338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26339   (eval $ac_try) 2>&5
26340   ac_status=$?
26341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342   (exit $ac_status); }; } &&
26343          { ac_try='test -s conftest$ac_exeext'
26344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26345   (eval $ac_try) 2>&5
26346   ac_status=$?
26347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348   (exit $ac_status); }; }; then
26349   ac_cv_lib_seq_getmntent=yes
26350 else
26351   echo "$as_me: failed program was:" >&5
26352 sed 's/^/| /' conftest.$ac_ext >&5
26353
26354 ac_cv_lib_seq_getmntent=no
26355 fi
26356 rm -f conftest.err conftest.$ac_objext \
26357       conftest$ac_exeext conftest.$ac_ext
26358 LIBS=$ac_check_lib_save_LIBS
26359 fi
26360 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
26361 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
26362 if test $ac_cv_lib_seq_getmntent = yes; then
26363   LIBS="-lseq $LIBS"
26364 else
26365   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
26366 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
26367 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
26368   echo $ECHO_N "(cached) $ECHO_C" >&6
26369 else
26370   ac_check_lib_save_LIBS=$LIBS
26371 LIBS="-lgen  $LIBS"
26372 cat >conftest.$ac_ext <<_ACEOF
26373 /* confdefs.h.  */
26374 _ACEOF
26375 cat confdefs.h >>conftest.$ac_ext
26376 cat >>conftest.$ac_ext <<_ACEOF
26377 /* end confdefs.h.  */
26378
26379 /* Override any gcc2 internal prototype to avoid an error.  */
26380 #ifdef __cplusplus
26381 extern "C"
26382 #endif
26383 /* We use char because int might match the return type of a gcc2
26384    builtin and then its argument prototype would still apply.  */
26385 char getmntent ();
26386 int
26387 main ()
26388 {
26389 getmntent ();
26390   ;
26391   return 0;
26392 }
26393 _ACEOF
26394 rm -f conftest.$ac_objext conftest$ac_exeext
26395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26396   (eval $ac_link) 2>conftest.er1
26397   ac_status=$?
26398   grep -v '^ *+' conftest.er1 >conftest.err
26399   rm -f conftest.er1
26400   cat conftest.err >&5
26401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402   (exit $ac_status); } &&
26403          { ac_try='test -z "$ac_c_werror_flag"
26404                          || test ! -s conftest.err'
26405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26406   (eval $ac_try) 2>&5
26407   ac_status=$?
26408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409   (exit $ac_status); }; } &&
26410          { ac_try='test -s conftest$ac_exeext'
26411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26412   (eval $ac_try) 2>&5
26413   ac_status=$?
26414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415   (exit $ac_status); }; }; then
26416   ac_cv_lib_gen_getmntent=yes
26417 else
26418   echo "$as_me: failed program was:" >&5
26419 sed 's/^/| /' conftest.$ac_ext >&5
26420
26421 ac_cv_lib_gen_getmntent=no
26422 fi
26423 rm -f conftest.err conftest.$ac_objext \
26424       conftest$ac_exeext conftest.$ac_ext
26425 LIBS=$ac_check_lib_save_LIBS
26426 fi
26427 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
26428 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
26429 if test $ac_cv_lib_gen_getmntent = yes; then
26430   LIBS="-lgen $LIBS"
26431 fi
26432
26433 fi
26434
26435 fi
26436
26437
26438 for ac_func in getmntent
26439 do
26440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26441 echo "$as_me:$LINENO: checking for $ac_func" >&5
26442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26443 if eval "test \"\${$as_ac_var+set}\" = set"; then
26444   echo $ECHO_N "(cached) $ECHO_C" >&6
26445 else
26446   cat >conftest.$ac_ext <<_ACEOF
26447 /* confdefs.h.  */
26448 _ACEOF
26449 cat confdefs.h >>conftest.$ac_ext
26450 cat >>conftest.$ac_ext <<_ACEOF
26451 /* end confdefs.h.  */
26452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26454 #define $ac_func innocuous_$ac_func
26455
26456 /* System header to define __stub macros and hopefully few prototypes,
26457     which can conflict with char $ac_func (); below.
26458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26459     <limits.h> exists even on freestanding compilers.  */
26460
26461 #ifdef __STDC__
26462 # include <limits.h>
26463 #else
26464 # include <assert.h>
26465 #endif
26466
26467 #undef $ac_func
26468
26469 /* Override any gcc2 internal prototype to avoid an error.  */
26470 #ifdef __cplusplus
26471 extern "C"
26472 {
26473 #endif
26474 /* We use char because int might match the return type of a gcc2
26475    builtin and then its argument prototype would still apply.  */
26476 char $ac_func ();
26477 /* The GNU C library defines this for functions which it implements
26478     to always fail with ENOSYS.  Some functions are actually named
26479     something starting with __ and the normal name is an alias.  */
26480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26481 choke me
26482 #else
26483 char (*f) () = $ac_func;
26484 #endif
26485 #ifdef __cplusplus
26486 }
26487 #endif
26488
26489 int
26490 main ()
26491 {
26492 return f != $ac_func;
26493   ;
26494   return 0;
26495 }
26496 _ACEOF
26497 rm -f conftest.$ac_objext conftest$ac_exeext
26498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26499   (eval $ac_link) 2>conftest.er1
26500   ac_status=$?
26501   grep -v '^ *+' conftest.er1 >conftest.err
26502   rm -f conftest.er1
26503   cat conftest.err >&5
26504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505   (exit $ac_status); } &&
26506          { ac_try='test -z "$ac_c_werror_flag"
26507                          || test ! -s conftest.err'
26508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26509   (eval $ac_try) 2>&5
26510   ac_status=$?
26511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512   (exit $ac_status); }; } &&
26513          { ac_try='test -s conftest$ac_exeext'
26514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26515   (eval $ac_try) 2>&5
26516   ac_status=$?
26517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518   (exit $ac_status); }; }; then
26519   eval "$as_ac_var=yes"
26520 else
26521   echo "$as_me: failed program was:" >&5
26522 sed 's/^/| /' conftest.$ac_ext >&5
26523
26524 eval "$as_ac_var=no"
26525 fi
26526 rm -f conftest.err conftest.$ac_objext \
26527       conftest$ac_exeext conftest.$ac_ext
26528 fi
26529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26531 if test `eval echo '${'$as_ac_var'}'` = yes; then
26532   cat >>confdefs.h <<_ACEOF
26533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26534 _ACEOF
26535
26536 fi
26537 done
26538
26539
26540
26541 # This test must precede the ones for getmntent because Unicos-9 is
26542 # reported to have the getmntent function, but its support is incompatible
26543 # with other getmntent implementations.
26544
26545 # NOTE: Normally, I wouldn't use a check for system type as I've done for
26546 # `CRAY' below since that goes against the whole autoconf philosophy.  But
26547 # I think there is too great a chance that some non-Cray system has a
26548 # function named listmntent to risk the false positive.
26549
26550 if test -z "$ac_list_mounted_fs"; then
26551   # Cray UNICOS 9
26552   echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
26553 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
26554   if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
26555   echo $ECHO_N "(cached) $ECHO_C" >&6
26556 else
26557   fu_cv_sys_mounted_cray_listmntent=no
26558       cat >conftest.$ac_ext <<_ACEOF
26559 /* confdefs.h.  */
26560 _ACEOF
26561 cat confdefs.h >>conftest.$ac_ext
26562 cat >>conftest.$ac_ext <<_ACEOF
26563 /* end confdefs.h.  */
26564 #ifdef _CRAY
26565 yes
26566 #endif
26567
26568 _ACEOF
26569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26570   $EGREP "yes" >/dev/null 2>&1; then
26571   test $ac_cv_func_listmntent = yes \
26572             && fu_cv_sys_mounted_cray_listmntent=yes
26573
26574 fi
26575 rm -f conftest*
26576
26577
26578
26579 fi
26580
26581   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
26582 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
26583   if test $fu_cv_sys_mounted_cray_listmntent = yes; then
26584     ac_list_mounted_fs=found
26585
26586 cat >>confdefs.h <<\_ACEOF
26587 #define MOUNTED_LISTMNTENT 1
26588 _ACEOF
26589
26590   fi
26591 fi
26592
26593 if test -z "$ac_list_mounted_fs"; then
26594   # AIX.
26595   echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
26596 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
26597   if test "${fu_cv_sys_mounted_vmount+set}" = set; then
26598   echo $ECHO_N "(cached) $ECHO_C" >&6
26599 else
26600   cat >conftest.$ac_ext <<_ACEOF
26601 /* confdefs.h.  */
26602 _ACEOF
26603 cat confdefs.h >>conftest.$ac_ext
26604 cat >>conftest.$ac_ext <<_ACEOF
26605 /* end confdefs.h.  */
26606 #include <fshelp.h>
26607 _ACEOF
26608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26609   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26610   ac_status=$?
26611   grep -v '^ *+' conftest.er1 >conftest.err
26612   rm -f conftest.er1
26613   cat conftest.err >&5
26614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615   (exit $ac_status); } >/dev/null; then
26616   if test -s conftest.err; then
26617     ac_cpp_err=$ac_c_preproc_warn_flag
26618     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26619   else
26620     ac_cpp_err=
26621   fi
26622 else
26623   ac_cpp_err=yes
26624 fi
26625 if test -z "$ac_cpp_err"; then
26626   fu_cv_sys_mounted_vmount=yes
26627 else
26628   echo "$as_me: failed program was:" >&5
26629 sed 's/^/| /' conftest.$ac_ext >&5
26630
26631   fu_cv_sys_mounted_vmount=no
26632 fi
26633 rm -f conftest.err conftest.$ac_ext
26634 fi
26635
26636   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
26637 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
26638   if test $fu_cv_sys_mounted_vmount = yes; then
26639     ac_list_mounted_fs=found
26640
26641 cat >>confdefs.h <<\_ACEOF
26642 #define MOUNTED_VMOUNT 1
26643 _ACEOF
26644
26645   fi
26646 fi
26647
26648 if test $ac_cv_func_getmntent = yes; then
26649
26650   # This system has the getmntent function.
26651   # Determine whether it's the one-argument variant or the two-argument one.
26652
26653   if test -z "$ac_list_mounted_fs"; then
26654     # 4.3BSD, SunOS, HP-UX, Dynix, Irix
26655     echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
26656 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
26657     if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
26658   echo $ECHO_N "(cached) $ECHO_C" >&6
26659 else
26660   cat >conftest.$ac_ext <<_ACEOF
26661 /* confdefs.h.  */
26662 _ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h.  */
26666
26667 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
26668 #include <stdio.h>
26669
26670 #include <mntent.h>
26671 #if !defined MOUNTED
26672 # if defined _PATH_MOUNTED      /* GNU libc  */
26673 #  define MOUNTED _PATH_MOUNTED
26674 # endif
26675 # if defined MNT_MNTTAB /* HP-UX.  */
26676 #  define MOUNTED MNT_MNTTAB
26677 # endif
26678 # if defined MNTTABNAME /* Dynix.  */
26679 #  define MOUNTED MNTTABNAME
26680 # endif
26681 #endif
26682
26683 int
26684 main ()
26685 {
26686  struct mntent *mnt = 0; char *table = MOUNTED;
26687   ;
26688   return 0;
26689 }
26690 _ACEOF
26691 rm -f conftest.$ac_objext
26692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26693   (eval $ac_compile) 2>conftest.er1
26694   ac_status=$?
26695   grep -v '^ *+' conftest.er1 >conftest.err
26696   rm -f conftest.er1
26697   cat conftest.err >&5
26698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699   (exit $ac_status); } &&
26700          { ac_try='test -z "$ac_c_werror_flag"
26701                          || test ! -s conftest.err'
26702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26703   (eval $ac_try) 2>&5
26704   ac_status=$?
26705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706   (exit $ac_status); }; } &&
26707          { ac_try='test -s conftest.$ac_objext'
26708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26709   (eval $ac_try) 2>&5
26710   ac_status=$?
26711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712   (exit $ac_status); }; }; then
26713   fu_cv_sys_mounted_getmntent1=yes
26714 else
26715   echo "$as_me: failed program was:" >&5
26716 sed 's/^/| /' conftest.$ac_ext >&5
26717
26718 fu_cv_sys_mounted_getmntent1=no
26719 fi
26720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26721 fi
26722
26723     echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
26724 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
26725     if test $fu_cv_sys_mounted_getmntent1 = yes; then
26726       ac_list_mounted_fs=found
26727
26728 cat >>confdefs.h <<\_ACEOF
26729 #define MOUNTED_GETMNTENT1 1
26730 _ACEOF
26731
26732     fi
26733   fi
26734
26735   if test -z "$ac_list_mounted_fs"; then
26736     # SVR4
26737     echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
26738 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
26739     if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
26740   echo $ECHO_N "(cached) $ECHO_C" >&6
26741 else
26742   cat >conftest.$ac_ext <<_ACEOF
26743 /* confdefs.h.  */
26744 _ACEOF
26745 cat confdefs.h >>conftest.$ac_ext
26746 cat >>conftest.$ac_ext <<_ACEOF
26747 /* end confdefs.h.  */
26748 #include <sys/mnttab.h>
26749
26750 _ACEOF
26751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26752   $EGREP "getmntent" >/dev/null 2>&1; then
26753   fu_cv_sys_mounted_getmntent2=yes
26754 else
26755   fu_cv_sys_mounted_getmntent2=no
26756 fi
26757 rm -f conftest*
26758
26759 fi
26760
26761     echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
26762 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
26763     if test $fu_cv_sys_mounted_getmntent2 = yes; then
26764       ac_list_mounted_fs=found
26765
26766 cat >>confdefs.h <<\_ACEOF
26767 #define MOUNTED_GETMNTENT2 1
26768 _ACEOF
26769
26770     fi
26771   fi
26772
26773 fi
26774
26775 if test -z "$ac_list_mounted_fs"; then
26776   # DEC Alpha running OSF/1, and Apple Darwin 1.3.
26777   # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
26778
26779   echo "$as_me:$LINENO: checking for getfsstat function" >&5
26780 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
26781   if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
26782   echo $ECHO_N "(cached) $ECHO_C" >&6
26783 else
26784   cat >conftest.$ac_ext <<_ACEOF
26785 /* confdefs.h.  */
26786 _ACEOF
26787 cat confdefs.h >>conftest.$ac_ext
26788 cat >>conftest.$ac_ext <<_ACEOF
26789 /* end confdefs.h.  */
26790
26791 #include <sys/types.h>
26792 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
26793 # define FS_TYPE(Ent) ((Ent).f_fstypename)
26794 #else
26795 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
26796 #endif
26797 $getfsstat_includes
26798
26799 int
26800 main ()
26801 {
26802 struct statfs *stats;
26803    int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
26804    char *t = FS_TYPE (*stats);
26805   ;
26806   return 0;
26807 }
26808 _ACEOF
26809 rm -f conftest.$ac_objext conftest$ac_exeext
26810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26811   (eval $ac_link) 2>conftest.er1
26812   ac_status=$?
26813   grep -v '^ *+' conftest.er1 >conftest.err
26814   rm -f conftest.er1
26815   cat conftest.err >&5
26816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817   (exit $ac_status); } &&
26818          { ac_try='test -z "$ac_c_werror_flag"
26819                          || test ! -s conftest.err'
26820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26821   (eval $ac_try) 2>&5
26822   ac_status=$?
26823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824   (exit $ac_status); }; } &&
26825          { ac_try='test -s conftest$ac_exeext'
26826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26827   (eval $ac_try) 2>&5
26828   ac_status=$?
26829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830   (exit $ac_status); }; }; then
26831   fu_cv_sys_mounted_getfsstat=yes
26832 else
26833   echo "$as_me: failed program was:" >&5
26834 sed 's/^/| /' conftest.$ac_ext >&5
26835
26836 fu_cv_sys_mounted_getfsstat=no
26837 fi
26838 rm -f conftest.err conftest.$ac_objext \
26839       conftest$ac_exeext conftest.$ac_ext
26840 fi
26841
26842   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
26843 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
26844   if test $fu_cv_sys_mounted_getfsstat = yes; then
26845     ac_list_mounted_fs=found
26846
26847 cat >>confdefs.h <<\_ACEOF
26848 #define MOUNTED_GETFSSTAT 1
26849 _ACEOF
26850
26851   fi
26852 fi
26853
26854 if test -z "$ac_list_mounted_fs"; then
26855   # SVR3
26856   echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
26857 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
26858   if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
26859   echo $ECHO_N "(cached) $ECHO_C" >&6
26860 else
26861   cat >conftest.$ac_ext <<_ACEOF
26862 /* confdefs.h.  */
26863 _ACEOF
26864 cat confdefs.h >>conftest.$ac_ext
26865 cat >>conftest.$ac_ext <<_ACEOF
26866 /* end confdefs.h.  */
26867
26868 #include <sys/statfs.h>
26869 #include <sys/fstyp.h>
26870 #include <mnttab.h>
26871 _ACEOF
26872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26873   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26874   ac_status=$?
26875   grep -v '^ *+' conftest.er1 >conftest.err
26876   rm -f conftest.er1
26877   cat conftest.err >&5
26878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879   (exit $ac_status); } >/dev/null; then
26880   if test -s conftest.err; then
26881     ac_cpp_err=$ac_c_preproc_warn_flag
26882     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26883   else
26884     ac_cpp_err=
26885   fi
26886 else
26887   ac_cpp_err=yes
26888 fi
26889 if test -z "$ac_cpp_err"; then
26890   fu_cv_sys_mounted_fread_fstyp=yes
26891 else
26892   echo "$as_me: failed program was:" >&5
26893 sed 's/^/| /' conftest.$ac_ext >&5
26894
26895   fu_cv_sys_mounted_fread_fstyp=no
26896 fi
26897 rm -f conftest.err conftest.$ac_ext
26898 fi
26899
26900   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
26901 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
26902   if test $fu_cv_sys_mounted_fread_fstyp = yes; then
26903     ac_list_mounted_fs=found
26904
26905 cat >>confdefs.h <<\_ACEOF
26906 #define MOUNTED_FREAD_FSTYP 1
26907 _ACEOF
26908
26909   fi
26910 fi
26911
26912 if test -z "$ac_list_mounted_fs"; then
26913   # 4.4BSD and DEC OSF/1.
26914   echo "$as_me:$LINENO: checking for getmntinfo function" >&5
26915 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
26916   if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
26917   echo $ECHO_N "(cached) $ECHO_C" >&6
26918 else
26919
26920       test "$ac_cv_func_getmntinfo" = yes \
26921           && fu_cv_sys_mounted_getmntinfo=yes \
26922           || fu_cv_sys_mounted_getmntinfo=no
26923
26924 fi
26925
26926   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
26927 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
26928   if test $fu_cv_sys_mounted_getmntinfo = yes; then
26929     ac_list_mounted_fs=found
26930
26931 cat >>confdefs.h <<\_ACEOF
26932 #define MOUNTED_GETMNTINFO 1
26933 _ACEOF
26934
26935   fi
26936 fi
26937
26938 if test -z "$ac_list_mounted_fs"; then
26939   # Ultrix
26940   echo "$as_me:$LINENO: checking for getmnt function" >&5
26941 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
26942   if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
26943   echo $ECHO_N "(cached) $ECHO_C" >&6
26944 else
26945   cat >conftest.$ac_ext <<_ACEOF
26946 /* confdefs.h.  */
26947 _ACEOF
26948 cat confdefs.h >>conftest.$ac_ext
26949 cat >>conftest.$ac_ext <<_ACEOF
26950 /* end confdefs.h.  */
26951
26952 #include <sys/fs_types.h>
26953 #include <sys/mount.h>
26954 _ACEOF
26955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26957   ac_status=$?
26958   grep -v '^ *+' conftest.er1 >conftest.err
26959   rm -f conftest.er1
26960   cat conftest.err >&5
26961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962   (exit $ac_status); } >/dev/null; then
26963   if test -s conftest.err; then
26964     ac_cpp_err=$ac_c_preproc_warn_flag
26965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26966   else
26967     ac_cpp_err=
26968   fi
26969 else
26970   ac_cpp_err=yes
26971 fi
26972 if test -z "$ac_cpp_err"; then
26973   fu_cv_sys_mounted_getmnt=yes
26974 else
26975   echo "$as_me: failed program was:" >&5
26976 sed 's/^/| /' conftest.$ac_ext >&5
26977
26978   fu_cv_sys_mounted_getmnt=no
26979 fi
26980 rm -f conftest.err conftest.$ac_ext
26981 fi
26982
26983   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
26984 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
26985   if test $fu_cv_sys_mounted_getmnt = yes; then
26986     ac_list_mounted_fs=found
26987
26988 cat >>confdefs.h <<\_ACEOF
26989 #define MOUNTED_GETMNT 1
26990 _ACEOF
26991
26992   fi
26993 fi
26994
26995 if test -z "$ac_list_mounted_fs"; then
26996   # BeOS
26997
26998
26999 for ac_func in next_dev fs_stat_dev
27000 do
27001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27002 echo "$as_me:$LINENO: checking for $ac_func" >&5
27003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27004 if eval "test \"\${$as_ac_var+set}\" = set"; then
27005   echo $ECHO_N "(cached) $ECHO_C" >&6
27006 else
27007   cat >conftest.$ac_ext <<_ACEOF
27008 /* confdefs.h.  */
27009 _ACEOF
27010 cat confdefs.h >>conftest.$ac_ext
27011 cat >>conftest.$ac_ext <<_ACEOF
27012 /* end confdefs.h.  */
27013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27015 #define $ac_func innocuous_$ac_func
27016
27017 /* System header to define __stub macros and hopefully few prototypes,
27018     which can conflict with char $ac_func (); below.
27019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27020     <limits.h> exists even on freestanding compilers.  */
27021
27022 #ifdef __STDC__
27023 # include <limits.h>
27024 #else
27025 # include <assert.h>
27026 #endif
27027
27028 #undef $ac_func
27029
27030 /* Override any gcc2 internal prototype to avoid an error.  */
27031 #ifdef __cplusplus
27032 extern "C"
27033 {
27034 #endif
27035 /* We use char because int might match the return type of a gcc2
27036    builtin and then its argument prototype would still apply.  */
27037 char $ac_func ();
27038 /* The GNU C library defines this for functions which it implements
27039     to always fail with ENOSYS.  Some functions are actually named
27040     something starting with __ and the normal name is an alias.  */
27041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27042 choke me
27043 #else
27044 char (*f) () = $ac_func;
27045 #endif
27046 #ifdef __cplusplus
27047 }
27048 #endif
27049
27050 int
27051 main ()
27052 {
27053 return f != $ac_func;
27054   ;
27055   return 0;
27056 }
27057 _ACEOF
27058 rm -f conftest.$ac_objext conftest$ac_exeext
27059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27060   (eval $ac_link) 2>conftest.er1
27061   ac_status=$?
27062   grep -v '^ *+' conftest.er1 >conftest.err
27063   rm -f conftest.er1
27064   cat conftest.err >&5
27065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066   (exit $ac_status); } &&
27067          { ac_try='test -z "$ac_c_werror_flag"
27068                          || test ! -s conftest.err'
27069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27070   (eval $ac_try) 2>&5
27071   ac_status=$?
27072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073   (exit $ac_status); }; } &&
27074          { ac_try='test -s conftest$ac_exeext'
27075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27076   (eval $ac_try) 2>&5
27077   ac_status=$?
27078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079   (exit $ac_status); }; }; then
27080   eval "$as_ac_var=yes"
27081 else
27082   echo "$as_me: failed program was:" >&5
27083 sed 's/^/| /' conftest.$ac_ext >&5
27084
27085 eval "$as_ac_var=no"
27086 fi
27087 rm -f conftest.err conftest.$ac_objext \
27088       conftest$ac_exeext conftest.$ac_ext
27089 fi
27090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27092 if test `eval echo '${'$as_ac_var'}'` = yes; then
27093   cat >>confdefs.h <<_ACEOF
27094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27095 _ACEOF
27096
27097 fi
27098 done
27099
27100
27101 for ac_header in fs_info.h
27102 do
27103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27105   echo "$as_me:$LINENO: checking for $ac_header" >&5
27106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27108   echo $ECHO_N "(cached) $ECHO_C" >&6
27109 fi
27110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27112 else
27113   # Is the header compilable?
27114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27116 cat >conftest.$ac_ext <<_ACEOF
27117 /* confdefs.h.  */
27118 _ACEOF
27119 cat confdefs.h >>conftest.$ac_ext
27120 cat >>conftest.$ac_ext <<_ACEOF
27121 /* end confdefs.h.  */
27122 $ac_includes_default
27123 #include <$ac_header>
27124 _ACEOF
27125 rm -f conftest.$ac_objext
27126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27127   (eval $ac_compile) 2>conftest.er1
27128   ac_status=$?
27129   grep -v '^ *+' conftest.er1 >conftest.err
27130   rm -f conftest.er1
27131   cat conftest.err >&5
27132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133   (exit $ac_status); } &&
27134          { ac_try='test -z "$ac_c_werror_flag"
27135                          || test ! -s conftest.err'
27136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27137   (eval $ac_try) 2>&5
27138   ac_status=$?
27139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140   (exit $ac_status); }; } &&
27141          { ac_try='test -s conftest.$ac_objext'
27142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143   (eval $ac_try) 2>&5
27144   ac_status=$?
27145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146   (exit $ac_status); }; }; then
27147   ac_header_compiler=yes
27148 else
27149   echo "$as_me: failed program was:" >&5
27150 sed 's/^/| /' conftest.$ac_ext >&5
27151
27152 ac_header_compiler=no
27153 fi
27154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27156 echo "${ECHO_T}$ac_header_compiler" >&6
27157
27158 # Is the header present?
27159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27161 cat >conftest.$ac_ext <<_ACEOF
27162 /* confdefs.h.  */
27163 _ACEOF
27164 cat confdefs.h >>conftest.$ac_ext
27165 cat >>conftest.$ac_ext <<_ACEOF
27166 /* end confdefs.h.  */
27167 #include <$ac_header>
27168 _ACEOF
27169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27170   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27171   ac_status=$?
27172   grep -v '^ *+' conftest.er1 >conftest.err
27173   rm -f conftest.er1
27174   cat conftest.err >&5
27175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176   (exit $ac_status); } >/dev/null; then
27177   if test -s conftest.err; then
27178     ac_cpp_err=$ac_c_preproc_warn_flag
27179     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27180   else
27181     ac_cpp_err=
27182   fi
27183 else
27184   ac_cpp_err=yes
27185 fi
27186 if test -z "$ac_cpp_err"; then
27187   ac_header_preproc=yes
27188 else
27189   echo "$as_me: failed program was:" >&5
27190 sed 's/^/| /' conftest.$ac_ext >&5
27191
27192   ac_header_preproc=no
27193 fi
27194 rm -f conftest.err conftest.$ac_ext
27195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27196 echo "${ECHO_T}$ac_header_preproc" >&6
27197
27198 # So?  What about this header?
27199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27200   yes:no: )
27201     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27205     ac_header_preproc=yes
27206     ;;
27207   no:yes:* )
27208     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27210     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27211 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27212     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27214     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27215 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27218     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27220     (
27221       cat <<\_ASBOX
27222 ## ------------------------------------ ##
27223 ## Report this to bug-coreutils@gnu.org ##
27224 ## ------------------------------------ ##
27225 _ASBOX
27226     ) |
27227       sed "s/^/$as_me: WARNING:     /" >&2
27228     ;;
27229 esac
27230 echo "$as_me:$LINENO: checking for $ac_header" >&5
27231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27233   echo $ECHO_N "(cached) $ECHO_C" >&6
27234 else
27235   eval "$as_ac_Header=\$ac_header_preproc"
27236 fi
27237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27239
27240 fi
27241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27242   cat >>confdefs.h <<_ACEOF
27243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27244 _ACEOF
27245
27246 fi
27247
27248 done
27249
27250   echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
27251 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
27252   if test $ac_cv_header_fs_info_h = yes \
27253       && test $ac_cv_func_next_dev = yes \
27254         && test $ac_cv_func_fs_stat_dev = yes; then
27255     fu_result=yes
27256   else
27257     fu_result=no
27258   fi
27259   echo "$as_me:$LINENO: result: $fu_result" >&5
27260 echo "${ECHO_T}$fu_result" >&6
27261   if test $fu_result = yes; then
27262     ac_list_mounted_fs=found
27263
27264 cat >>confdefs.h <<\_ACEOF
27265 #define MOUNTED_FS_STAT_DEV 1
27266 _ACEOF
27267
27268   fi
27269 fi
27270
27271 if test -z "$ac_list_mounted_fs"; then
27272   # SVR2
27273   echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
27274 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
27275   if test "${fu_cv_sys_mounted_fread+set}" = set; then
27276   echo $ECHO_N "(cached) $ECHO_C" >&6
27277 else
27278   cat >conftest.$ac_ext <<_ACEOF
27279 /* confdefs.h.  */
27280 _ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h.  */
27284 #include <mnttab.h>
27285 _ACEOF
27286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27287   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27288   ac_status=$?
27289   grep -v '^ *+' conftest.er1 >conftest.err
27290   rm -f conftest.er1
27291   cat conftest.err >&5
27292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293   (exit $ac_status); } >/dev/null; then
27294   if test -s conftest.err; then
27295     ac_cpp_err=$ac_c_preproc_warn_flag
27296     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27297   else
27298     ac_cpp_err=
27299   fi
27300 else
27301   ac_cpp_err=yes
27302 fi
27303 if test -z "$ac_cpp_err"; then
27304   fu_cv_sys_mounted_fread=yes
27305 else
27306   echo "$as_me: failed program was:" >&5
27307 sed 's/^/| /' conftest.$ac_ext >&5
27308
27309   fu_cv_sys_mounted_fread=no
27310 fi
27311 rm -f conftest.err conftest.$ac_ext
27312 fi
27313
27314   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
27315 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
27316   if test $fu_cv_sys_mounted_fread = yes; then
27317     ac_list_mounted_fs=found
27318
27319 cat >>confdefs.h <<\_ACEOF
27320 #define MOUNTED_FREAD 1
27321 _ACEOF
27322
27323   fi
27324 fi
27325
27326 if test -z "$ac_list_mounted_fs"; then
27327   { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
27328 echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
27329    { (exit 1); exit 1; }; }
27330   # FIXME -- no need to abort building the whole package
27331   # Can't build mountlist.c or anything that needs its functions
27332 fi
27333
27334 if test $ac_list_mounted_fs = found; then
27335   gl_cv_list_mounted_fs=yes
27336 else
27337   gl_cv_list_mounted_fs=no
27338 fi
27339
27340
27341
27342   if test $gl_cv_list_mounted_fs = yes; then
27343     case $LIBOBJS in
27344     "mountlist.$ac_objext"   | \
27345   *" mountlist.$ac_objext"   | \
27346     "mountlist.$ac_objext "* | \
27347   *" mountlist.$ac_objext "* ) ;;
27348   *) LIBOBJS="$LIBOBJS mountlist.$ac_objext" ;;
27349 esac
27350
27351
27352
27353   :
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363 for ac_header in sys/mntent.h
27364 do
27365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27367   echo "$as_me:$LINENO: checking for $ac_header" >&5
27368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27370   echo $ECHO_N "(cached) $ECHO_C" >&6
27371 fi
27372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27374 else
27375   # Is the header compilable?
27376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27378 cat >conftest.$ac_ext <<_ACEOF
27379 /* confdefs.h.  */
27380 _ACEOF
27381 cat confdefs.h >>conftest.$ac_ext
27382 cat >>conftest.$ac_ext <<_ACEOF
27383 /* end confdefs.h.  */
27384 $ac_includes_default
27385 #include <$ac_header>
27386 _ACEOF
27387 rm -f conftest.$ac_objext
27388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27389   (eval $ac_compile) 2>conftest.er1
27390   ac_status=$?
27391   grep -v '^ *+' conftest.er1 >conftest.err
27392   rm -f conftest.er1
27393   cat conftest.err >&5
27394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395   (exit $ac_status); } &&
27396          { ac_try='test -z "$ac_c_werror_flag"
27397                          || test ! -s conftest.err'
27398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399   (eval $ac_try) 2>&5
27400   ac_status=$?
27401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402   (exit $ac_status); }; } &&
27403          { ac_try='test -s conftest.$ac_objext'
27404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405   (eval $ac_try) 2>&5
27406   ac_status=$?
27407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408   (exit $ac_status); }; }; then
27409   ac_header_compiler=yes
27410 else
27411   echo "$as_me: failed program was:" >&5
27412 sed 's/^/| /' conftest.$ac_ext >&5
27413
27414 ac_header_compiler=no
27415 fi
27416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27418 echo "${ECHO_T}$ac_header_compiler" >&6
27419
27420 # Is the header present?
27421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27423 cat >conftest.$ac_ext <<_ACEOF
27424 /* confdefs.h.  */
27425 _ACEOF
27426 cat confdefs.h >>conftest.$ac_ext
27427 cat >>conftest.$ac_ext <<_ACEOF
27428 /* end confdefs.h.  */
27429 #include <$ac_header>
27430 _ACEOF
27431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27432   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27433   ac_status=$?
27434   grep -v '^ *+' conftest.er1 >conftest.err
27435   rm -f conftest.er1
27436   cat conftest.err >&5
27437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438   (exit $ac_status); } >/dev/null; then
27439   if test -s conftest.err; then
27440     ac_cpp_err=$ac_c_preproc_warn_flag
27441     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27442   else
27443     ac_cpp_err=
27444   fi
27445 else
27446   ac_cpp_err=yes
27447 fi
27448 if test -z "$ac_cpp_err"; then
27449   ac_header_preproc=yes
27450 else
27451   echo "$as_me: failed program was:" >&5
27452 sed 's/^/| /' conftest.$ac_ext >&5
27453
27454   ac_header_preproc=no
27455 fi
27456 rm -f conftest.err conftest.$ac_ext
27457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27458 echo "${ECHO_T}$ac_header_preproc" >&6
27459
27460 # So?  What about this header?
27461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27462   yes:no: )
27463     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27467     ac_header_preproc=yes
27468     ;;
27469   no:yes:* )
27470     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27472     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27473 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27474     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27476     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27477 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27480     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27482     (
27483       cat <<\_ASBOX
27484 ## ------------------------------------ ##
27485 ## Report this to bug-coreutils@gnu.org ##
27486 ## ------------------------------------ ##
27487 _ASBOX
27488     ) |
27489       sed "s/^/$as_me: WARNING:     /" >&2
27490     ;;
27491 esac
27492 echo "$as_me:$LINENO: checking for $ac_header" >&5
27493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27495   echo $ECHO_N "(cached) $ECHO_C" >&6
27496 else
27497   eval "$as_ac_Header=\$ac_header_preproc"
27498 fi
27499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27501
27502 fi
27503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27504   cat >>confdefs.h <<_ACEOF
27505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27506 _ACEOF
27507
27508 fi
27509
27510 done
27511
27512
27513     echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
27514 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
27515 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
27516   echo $ECHO_N "(cached) $ECHO_C" >&6
27517 else
27518
27519         cat >conftest.$ac_ext <<_ACEOF
27520 /* confdefs.h.  */
27521 _ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h.  */
27525
27526 #include <sys/param.h>
27527 #include <sys/types.h>
27528 #include <sys/mount.h>
27529
27530 int
27531 main ()
27532 {
27533 struct statfs s; int i = sizeof s.f_fstypename;
27534   ;
27535   return 0;
27536 }
27537 _ACEOF
27538 rm -f conftest.$ac_objext
27539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27540   (eval $ac_compile) 2>conftest.er1
27541   ac_status=$?
27542   grep -v '^ *+' conftest.er1 >conftest.err
27543   rm -f conftest.er1
27544   cat conftest.err >&5
27545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546   (exit $ac_status); } &&
27547          { ac_try='test -z "$ac_c_werror_flag"
27548                          || test ! -s conftest.err'
27549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27550   (eval $ac_try) 2>&5
27551   ac_status=$?
27552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553   (exit $ac_status); }; } &&
27554          { ac_try='test -s conftest.$ac_objext'
27555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27556   (eval $ac_try) 2>&5
27557   ac_status=$?
27558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559   (exit $ac_status); }; }; then
27560   fu_cv_sys_f_fstypename_in_statfs=yes
27561 else
27562   echo "$as_me: failed program was:" >&5
27563 sed 's/^/| /' conftest.$ac_ext >&5
27564
27565 fu_cv_sys_f_fstypename_in_statfs=no
27566
27567 fi
27568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27569
27570
27571 fi
27572 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
27573 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
27574
27575     if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
27576
27577 cat >>confdefs.h <<\_ACEOF
27578 #define HAVE_F_FSTYPENAME_IN_STATFS 1
27579 _ACEOF
27580
27581     fi
27582
27583
27584
27585   fi
27586
27587
27588   echo "$as_me:$LINENO: checking for obstacks" >&5
27589 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
27590 if test "${ac_cv_func_obstack+set}" = set; then
27591   echo $ECHO_N "(cached) $ECHO_C" >&6
27592 else
27593   cat >conftest.$ac_ext <<_ACEOF
27594 /* confdefs.h.  */
27595 _ACEOF
27596 cat confdefs.h >>conftest.$ac_ext
27597 cat >>conftest.$ac_ext <<_ACEOF
27598 /* end confdefs.h.  */
27599 #include "obstack.h"
27600 int
27601 main ()
27602 {
27603 struct obstack *mem; obstack_free(mem,(char *) 0)
27604   ;
27605   return 0;
27606 }
27607 _ACEOF
27608 rm -f conftest.$ac_objext conftest$ac_exeext
27609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27610   (eval $ac_link) 2>conftest.er1
27611   ac_status=$?
27612   grep -v '^ *+' conftest.er1 >conftest.err
27613   rm -f conftest.er1
27614   cat conftest.err >&5
27615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616   (exit $ac_status); } &&
27617          { ac_try='test -z "$ac_c_werror_flag"
27618                          || test ! -s conftest.err'
27619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27620   (eval $ac_try) 2>&5
27621   ac_status=$?
27622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623   (exit $ac_status); }; } &&
27624          { ac_try='test -s conftest$ac_exeext'
27625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27626   (eval $ac_try) 2>&5
27627   ac_status=$?
27628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629   (exit $ac_status); }; }; then
27630   ac_cv_func_obstack=yes
27631 else
27632   echo "$as_me: failed program was:" >&5
27633 sed 's/^/| /' conftest.$ac_ext >&5
27634
27635 ac_cv_func_obstack=no
27636 fi
27637 rm -f conftest.err conftest.$ac_objext \
27638       conftest$ac_exeext conftest.$ac_ext
27639 fi
27640 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
27641 echo "${ECHO_T}$ac_cv_func_obstack" >&6
27642 if test $ac_cv_func_obstack = yes; then
27643
27644 cat >>confdefs.h <<\_ACEOF
27645 #define HAVE_OBSTACK 1
27646 _ACEOF
27647
27648 else
27649   case $LIBOBJS in
27650     "obstack.$ac_objext"   | \
27651   *" obstack.$ac_objext"   | \
27652     "obstack.$ac_objext "* | \
27653   *" obstack.$ac_objext "* ) ;;
27654   *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
27655 esac
27656
27657 fi
27658
27659     if test $ac_cv_func_obstack = no; then
27660     :
27661   fi
27662
27663
27664
27665   :
27666
27667
27668
27669
27670
27671
27672
27673
27674
27675
27676
27677 for ac_func in mempcpy
27678 do
27679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27680 echo "$as_me:$LINENO: checking for $ac_func" >&5
27681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27682 if eval "test \"\${$as_ac_var+set}\" = set"; then
27683   echo $ECHO_N "(cached) $ECHO_C" >&6
27684 else
27685   cat >conftest.$ac_ext <<_ACEOF
27686 /* confdefs.h.  */
27687 _ACEOF
27688 cat confdefs.h >>conftest.$ac_ext
27689 cat >>conftest.$ac_ext <<_ACEOF
27690 /* end confdefs.h.  */
27691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27693 #define $ac_func innocuous_$ac_func
27694
27695 /* System header to define __stub macros and hopefully few prototypes,
27696     which can conflict with char $ac_func (); below.
27697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27698     <limits.h> exists even on freestanding compilers.  */
27699
27700 #ifdef __STDC__
27701 # include <limits.h>
27702 #else
27703 # include <assert.h>
27704 #endif
27705
27706 #undef $ac_func
27707
27708 /* Override any gcc2 internal prototype to avoid an error.  */
27709 #ifdef __cplusplus
27710 extern "C"
27711 {
27712 #endif
27713 /* We use char because int might match the return type of a gcc2
27714    builtin and then its argument prototype would still apply.  */
27715 char $ac_func ();
27716 /* The GNU C library defines this for functions which it implements
27717     to always fail with ENOSYS.  Some functions are actually named
27718     something starting with __ and the normal name is an alias.  */
27719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27720 choke me
27721 #else
27722 char (*f) () = $ac_func;
27723 #endif
27724 #ifdef __cplusplus
27725 }
27726 #endif
27727
27728 int
27729 main ()
27730 {
27731 return f != $ac_func;
27732   ;
27733   return 0;
27734 }
27735 _ACEOF
27736 rm -f conftest.$ac_objext conftest$ac_exeext
27737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27738   (eval $ac_link) 2>conftest.er1
27739   ac_status=$?
27740   grep -v '^ *+' conftest.er1 >conftest.err
27741   rm -f conftest.er1
27742   cat conftest.err >&5
27743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744   (exit $ac_status); } &&
27745          { ac_try='test -z "$ac_c_werror_flag"
27746                          || test ! -s conftest.err'
27747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27748   (eval $ac_try) 2>&5
27749   ac_status=$?
27750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751   (exit $ac_status); }; } &&
27752          { ac_try='test -s conftest$ac_exeext'
27753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27754   (eval $ac_try) 2>&5
27755   ac_status=$?
27756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757   (exit $ac_status); }; }; then
27758   eval "$as_ac_var=yes"
27759 else
27760   echo "$as_me: failed program was:" >&5
27761 sed 's/^/| /' conftest.$ac_ext >&5
27762
27763 eval "$as_ac_var=no"
27764 fi
27765 rm -f conftest.err conftest.$ac_objext \
27766       conftest$ac_exeext conftest.$ac_ext
27767 fi
27768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27770 if test `eval echo '${'$as_ac_var'}'` = yes; then
27771   cat >>confdefs.h <<_ACEOF
27772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27773 _ACEOF
27774
27775 fi
27776 done
27777
27778
27779
27780
27781
27782   :
27783
27784
27785
27786
27787
27788
27789   :
27790
27791
27792
27793
27794
27795
27796 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
27797 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
27798 if test "${gl_cv_var__system_configuration+set}" = set; then
27799   echo $ECHO_N "(cached) $ECHO_C" >&6
27800 else
27801   cat >conftest.$ac_ext <<_ACEOF
27802 /* confdefs.h.  */
27803 _ACEOF
27804 cat confdefs.h >>conftest.$ac_ext
27805 cat >>conftest.$ac_ext <<_ACEOF
27806 /* end confdefs.h.  */
27807 #include <sys/systemcfg.h>
27808
27809 int
27810 main ()
27811 {
27812 double x = _system_configuration.physmem;
27813   ;
27814   return 0;
27815 }
27816 _ACEOF
27817 rm -f conftest.$ac_objext conftest$ac_exeext
27818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27819   (eval $ac_link) 2>conftest.er1
27820   ac_status=$?
27821   grep -v '^ *+' conftest.er1 >conftest.err
27822   rm -f conftest.er1
27823   cat conftest.err >&5
27824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825   (exit $ac_status); } &&
27826          { ac_try='test -z "$ac_c_werror_flag"
27827                          || test ! -s conftest.err'
27828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27829   (eval $ac_try) 2>&5
27830   ac_status=$?
27831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832   (exit $ac_status); }; } &&
27833          { ac_try='test -s conftest$ac_exeext'
27834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27835   (eval $ac_try) 2>&5
27836   ac_status=$?
27837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838   (exit $ac_status); }; }; then
27839   gl_cv_var__system_configuration=yes
27840 else
27841   echo "$as_me: failed program was:" >&5
27842 sed 's/^/| /' conftest.$ac_ext >&5
27843
27844 gl_cv_var__system_configuration=no
27845 fi
27846 rm -f conftest.err conftest.$ac_objext \
27847       conftest$ac_exeext conftest.$ac_ext
27848 fi
27849 echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
27850 echo "${ECHO_T}$gl_cv_var__system_configuration" >&6
27851
27852     if test $gl_cv_var__system_configuration = yes; then
27853
27854 cat >>confdefs.h <<\_ACEOF
27855 #define HAVE__SYSTEM_CONFIGURATION 1
27856 _ACEOF
27857
27858     fi
27859
27860
27861
27862   # Prerequisites of lib/physmem.c.
27863
27864   :
27865
27866
27867
27868
27869
27870
27871
27872
27873
27874
27875
27876
27877
27878 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
27879     machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
27880     sys/systemcfg.h
27881 do
27882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27883 echo "$as_me:$LINENO: checking for $ac_header" >&5
27884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27886   echo $ECHO_N "(cached) $ECHO_C" >&6
27887 else
27888   cat >conftest.$ac_ext <<_ACEOF
27889 /* confdefs.h.  */
27890 _ACEOF
27891 cat confdefs.h >>conftest.$ac_ext
27892 cat >>conftest.$ac_ext <<_ACEOF
27893 /* end confdefs.h.  */
27894 $ac_includes_default
27895
27896 #include <$ac_header>
27897 _ACEOF
27898 rm -f conftest.$ac_objext
27899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27900   (eval $ac_compile) 2>conftest.er1
27901   ac_status=$?
27902   grep -v '^ *+' conftest.er1 >conftest.err
27903   rm -f conftest.er1
27904   cat conftest.err >&5
27905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906   (exit $ac_status); } &&
27907          { ac_try='test -z "$ac_c_werror_flag"
27908                          || test ! -s conftest.err'
27909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27910   (eval $ac_try) 2>&5
27911   ac_status=$?
27912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27913   (exit $ac_status); }; } &&
27914          { ac_try='test -s conftest.$ac_objext'
27915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27916   (eval $ac_try) 2>&5
27917   ac_status=$?
27918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919   (exit $ac_status); }; }; then
27920   eval "$as_ac_Header=yes"
27921 else
27922   echo "$as_me: failed program was:" >&5
27923 sed 's/^/| /' conftest.$ac_ext >&5
27924
27925 eval "$as_ac_Header=no"
27926 fi
27927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27928 fi
27929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27932   cat >>confdefs.h <<_ACEOF
27933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27934 _ACEOF
27935
27936 fi
27937
27938 done
27939
27940
27941
27942
27943
27944
27945
27946
27947 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
27948 do
27949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27950 echo "$as_me:$LINENO: checking for $ac_func" >&5
27951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27952 if eval "test \"\${$as_ac_var+set}\" = set"; then
27953   echo $ECHO_N "(cached) $ECHO_C" >&6
27954 else
27955   cat >conftest.$ac_ext <<_ACEOF
27956 /* confdefs.h.  */
27957 _ACEOF
27958 cat confdefs.h >>conftest.$ac_ext
27959 cat >>conftest.$ac_ext <<_ACEOF
27960 /* end confdefs.h.  */
27961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27963 #define $ac_func innocuous_$ac_func
27964
27965 /* System header to define __stub macros and hopefully few prototypes,
27966     which can conflict with char $ac_func (); below.
27967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27968     <limits.h> exists even on freestanding compilers.  */
27969
27970 #ifdef __STDC__
27971 # include <limits.h>
27972 #else
27973 # include <assert.h>
27974 #endif
27975
27976 #undef $ac_func
27977
27978 /* Override any gcc2 internal prototype to avoid an error.  */
27979 #ifdef __cplusplus
27980 extern "C"
27981 {
27982 #endif
27983 /* We use char because int might match the return type of a gcc2
27984    builtin and then its argument prototype would still apply.  */
27985 char $ac_func ();
27986 /* The GNU C library defines this for functions which it implements
27987     to always fail with ENOSYS.  Some functions are actually named
27988     something starting with __ and the normal name is an alias.  */
27989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27990 choke me
27991 #else
27992 char (*f) () = $ac_func;
27993 #endif
27994 #ifdef __cplusplus
27995 }
27996 #endif
27997
27998 int
27999 main ()
28000 {
28001 return f != $ac_func;
28002   ;
28003   return 0;
28004 }
28005 _ACEOF
28006 rm -f conftest.$ac_objext conftest$ac_exeext
28007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28008   (eval $ac_link) 2>conftest.er1
28009   ac_status=$?
28010   grep -v '^ *+' conftest.er1 >conftest.err
28011   rm -f conftest.er1
28012   cat conftest.err >&5
28013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28014   (exit $ac_status); } &&
28015          { ac_try='test -z "$ac_c_werror_flag"
28016                          || test ! -s conftest.err'
28017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28018   (eval $ac_try) 2>&5
28019   ac_status=$?
28020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021   (exit $ac_status); }; } &&
28022          { ac_try='test -s conftest$ac_exeext'
28023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28024   (eval $ac_try) 2>&5
28025   ac_status=$?
28026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027   (exit $ac_status); }; }; then
28028   eval "$as_ac_var=yes"
28029 else
28030   echo "$as_me: failed program was:" >&5
28031 sed 's/^/| /' conftest.$ac_ext >&5
28032
28033 eval "$as_ac_var=no"
28034 fi
28035 rm -f conftest.err conftest.$ac_objext \
28036       conftest$ac_exeext conftest.$ac_ext
28037 fi
28038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28040 if test `eval echo '${'$as_ac_var'}'` = yes; then
28041   cat >>confdefs.h <<_ACEOF
28042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28043 _ACEOF
28044
28045 fi
28046 done
28047
28048
28049
28050
28051     echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28052 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
28053 if test "${ac_cv_struct_tm+set}" = set; then
28054   echo $ECHO_N "(cached) $ECHO_C" >&6
28055 else
28056   cat >conftest.$ac_ext <<_ACEOF
28057 /* confdefs.h.  */
28058 _ACEOF
28059 cat confdefs.h >>conftest.$ac_ext
28060 cat >>conftest.$ac_ext <<_ACEOF
28061 /* end confdefs.h.  */
28062 #include <sys/types.h>
28063 #include <time.h>
28064
28065 int
28066 main ()
28067 {
28068 struct tm *tp; tp->tm_sec;
28069   ;
28070   return 0;
28071 }
28072 _ACEOF
28073 rm -f conftest.$ac_objext
28074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28075   (eval $ac_compile) 2>conftest.er1
28076   ac_status=$?
28077   grep -v '^ *+' conftest.er1 >conftest.err
28078   rm -f conftest.er1
28079   cat conftest.err >&5
28080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081   (exit $ac_status); } &&
28082          { ac_try='test -z "$ac_c_werror_flag"
28083                          || test ! -s conftest.err'
28084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28085   (eval $ac_try) 2>&5
28086   ac_status=$?
28087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088   (exit $ac_status); }; } &&
28089          { ac_try='test -s conftest.$ac_objext'
28090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28091   (eval $ac_try) 2>&5
28092   ac_status=$?
28093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094   (exit $ac_status); }; }; then
28095   ac_cv_struct_tm=time.h
28096 else
28097   echo "$as_me: failed program was:" >&5
28098 sed 's/^/| /' conftest.$ac_ext >&5
28099
28100 ac_cv_struct_tm=sys/time.h
28101 fi
28102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28103 fi
28104 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28105 echo "${ECHO_T}$ac_cv_struct_tm" >&6
28106 if test $ac_cv_struct_tm = sys/time.h; then
28107
28108 cat >>confdefs.h <<\_ACEOF
28109 #define TM_IN_SYS_TIME 1
28110 _ACEOF
28111
28112 fi
28113
28114
28115
28116
28117   :
28118
28119
28120
28121
28122
28123
28124
28125
28126
28127   :
28128
28129
28130
28131
28132
28133
28134
28135
28136
28137   :
28138
28139
28140
28141
28142
28143
28144
28145
28146   echo "$as_me:$LINENO: checking for mbstate_t" >&5
28147 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
28148 if test "${ac_cv_type_mbstate_t+set}" = set; then
28149   echo $ECHO_N "(cached) $ECHO_C" >&6
28150 else
28151   cat >conftest.$ac_ext <<_ACEOF
28152 /* confdefs.h.  */
28153 _ACEOF
28154 cat confdefs.h >>conftest.$ac_ext
28155 cat >>conftest.$ac_ext <<_ACEOF
28156 /* end confdefs.h.  */
28157 $ac_includes_default
28158 #           include <wchar.h>
28159 int
28160 main ()
28161 {
28162 mbstate_t x; return sizeof x;
28163   ;
28164   return 0;
28165 }
28166 _ACEOF
28167 rm -f conftest.$ac_objext
28168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28169   (eval $ac_compile) 2>conftest.er1
28170   ac_status=$?
28171   grep -v '^ *+' conftest.er1 >conftest.err
28172   rm -f conftest.er1
28173   cat conftest.err >&5
28174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175   (exit $ac_status); } &&
28176          { ac_try='test -z "$ac_c_werror_flag"
28177                          || test ! -s conftest.err'
28178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28179   (eval $ac_try) 2>&5
28180   ac_status=$?
28181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182   (exit $ac_status); }; } &&
28183          { ac_try='test -s conftest.$ac_objext'
28184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28185   (eval $ac_try) 2>&5
28186   ac_status=$?
28187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188   (exit $ac_status); }; }; then
28189   ac_cv_type_mbstate_t=yes
28190 else
28191   echo "$as_me: failed program was:" >&5
28192 sed 's/^/| /' conftest.$ac_ext >&5
28193
28194 ac_cv_type_mbstate_t=no
28195 fi
28196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28197 fi
28198 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
28199 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
28200    if test $ac_cv_type_mbstate_t = yes; then
28201
28202 cat >>confdefs.h <<\_ACEOF
28203 #define HAVE_MBSTATE_T 1
28204 _ACEOF
28205
28206    else
28207
28208 cat >>confdefs.h <<\_ACEOF
28209 #define mbstate_t int
28210 _ACEOF
28211
28212    fi
28213
28214   echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
28215 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
28216 if test "${jm_cv_func_mbrtowc+set}" = set; then
28217   echo $ECHO_N "(cached) $ECHO_C" >&6
28218 else
28219   cat >conftest.$ac_ext <<_ACEOF
28220 /* confdefs.h.  */
28221 _ACEOF
28222 cat confdefs.h >>conftest.$ac_ext
28223 cat >>conftest.$ac_ext <<_ACEOF
28224 /* end confdefs.h.  */
28225 #include <wchar.h>
28226 int
28227 main ()
28228 {
28229 mbstate_t state; return ! (sizeof state && mbrtowc);
28230   ;
28231   return 0;
28232 }
28233 _ACEOF
28234 rm -f conftest.$ac_objext conftest$ac_exeext
28235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28236   (eval $ac_link) 2>conftest.er1
28237   ac_status=$?
28238   grep -v '^ *+' conftest.er1 >conftest.err
28239   rm -f conftest.er1
28240   cat conftest.err >&5
28241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242   (exit $ac_status); } &&
28243          { ac_try='test -z "$ac_c_werror_flag"
28244                          || test ! -s conftest.err'
28245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28246   (eval $ac_try) 2>&5
28247   ac_status=$?
28248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28249   (exit $ac_status); }; } &&
28250          { ac_try='test -s conftest$ac_exeext'
28251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28252   (eval $ac_try) 2>&5
28253   ac_status=$?
28254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255   (exit $ac_status); }; }; then
28256   jm_cv_func_mbrtowc=yes
28257 else
28258   echo "$as_me: failed program was:" >&5
28259 sed 's/^/| /' conftest.$ac_ext >&5
28260
28261 jm_cv_func_mbrtowc=no
28262 fi
28263 rm -f conftest.err conftest.$ac_objext \
28264       conftest$ac_exeext conftest.$ac_ext
28265 fi
28266 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
28267 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
28268   if test $jm_cv_func_mbrtowc = yes; then
28269
28270 cat >>confdefs.h <<\_ACEOF
28271 #define HAVE_MBRTOWC 1
28272 _ACEOF
28273
28274   fi
28275
28276
28277
28278
28279
28280     :
28281
28282
28283
28284   :
28285
28286
28287
28288
28289
28290
28291
28292 for ac_header in utmp.h utmpx.h
28293 do
28294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28296   echo "$as_me:$LINENO: checking for $ac_header" >&5
28297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28299   echo $ECHO_N "(cached) $ECHO_C" >&6
28300 fi
28301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28303 else
28304   # Is the header compilable?
28305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28307 cat >conftest.$ac_ext <<_ACEOF
28308 /* confdefs.h.  */
28309 _ACEOF
28310 cat confdefs.h >>conftest.$ac_ext
28311 cat >>conftest.$ac_ext <<_ACEOF
28312 /* end confdefs.h.  */
28313 $ac_includes_default
28314 #include <$ac_header>
28315 _ACEOF
28316 rm -f conftest.$ac_objext
28317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28318   (eval $ac_compile) 2>conftest.er1
28319   ac_status=$?
28320   grep -v '^ *+' conftest.er1 >conftest.err
28321   rm -f conftest.er1
28322   cat conftest.err >&5
28323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324   (exit $ac_status); } &&
28325          { ac_try='test -z "$ac_c_werror_flag"
28326                          || test ! -s conftest.err'
28327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28328   (eval $ac_try) 2>&5
28329   ac_status=$?
28330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331   (exit $ac_status); }; } &&
28332          { ac_try='test -s conftest.$ac_objext'
28333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28334   (eval $ac_try) 2>&5
28335   ac_status=$?
28336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28337   (exit $ac_status); }; }; then
28338   ac_header_compiler=yes
28339 else
28340   echo "$as_me: failed program was:" >&5
28341 sed 's/^/| /' conftest.$ac_ext >&5
28342
28343 ac_header_compiler=no
28344 fi
28345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28347 echo "${ECHO_T}$ac_header_compiler" >&6
28348
28349 # Is the header present?
28350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28352 cat >conftest.$ac_ext <<_ACEOF
28353 /* confdefs.h.  */
28354 _ACEOF
28355 cat confdefs.h >>conftest.$ac_ext
28356 cat >>conftest.$ac_ext <<_ACEOF
28357 /* end confdefs.h.  */
28358 #include <$ac_header>
28359 _ACEOF
28360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28362   ac_status=$?
28363   grep -v '^ *+' conftest.er1 >conftest.err
28364   rm -f conftest.er1
28365   cat conftest.err >&5
28366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367   (exit $ac_status); } >/dev/null; then
28368   if test -s conftest.err; then
28369     ac_cpp_err=$ac_c_preproc_warn_flag
28370     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28371   else
28372     ac_cpp_err=
28373   fi
28374 else
28375   ac_cpp_err=yes
28376 fi
28377 if test -z "$ac_cpp_err"; then
28378   ac_header_preproc=yes
28379 else
28380   echo "$as_me: failed program was:" >&5
28381 sed 's/^/| /' conftest.$ac_ext >&5
28382
28383   ac_header_preproc=no
28384 fi
28385 rm -f conftest.err conftest.$ac_ext
28386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28387 echo "${ECHO_T}$ac_header_preproc" >&6
28388
28389 # So?  What about this header?
28390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28391   yes:no: )
28392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28396     ac_header_preproc=yes
28397     ;;
28398   no:yes:* )
28399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28411     (
28412       cat <<\_ASBOX
28413 ## ------------------------------------ ##
28414 ## Report this to bug-coreutils@gnu.org ##
28415 ## ------------------------------------ ##
28416 _ASBOX
28417     ) |
28418       sed "s/^/$as_me: WARNING:     /" >&2
28419     ;;
28420 esac
28421 echo "$as_me:$LINENO: checking for $ac_header" >&5
28422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28424   echo $ECHO_N "(cached) $ECHO_C" >&6
28425 else
28426   eval "$as_ac_Header=\$ac_header_preproc"
28427 fi
28428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28430
28431 fi
28432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28433   cat >>confdefs.h <<_ACEOF
28434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28435 _ACEOF
28436
28437 fi
28438
28439 done
28440
28441
28442
28443 for ac_func in utmpname utmpxname
28444 do
28445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28446 echo "$as_me:$LINENO: checking for $ac_func" >&5
28447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28448 if eval "test \"\${$as_ac_var+set}\" = set"; then
28449   echo $ECHO_N "(cached) $ECHO_C" >&6
28450 else
28451   cat >conftest.$ac_ext <<_ACEOF
28452 /* confdefs.h.  */
28453 _ACEOF
28454 cat confdefs.h >>conftest.$ac_ext
28455 cat >>conftest.$ac_ext <<_ACEOF
28456 /* end confdefs.h.  */
28457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28459 #define $ac_func innocuous_$ac_func
28460
28461 /* System header to define __stub macros and hopefully few prototypes,
28462     which can conflict with char $ac_func (); below.
28463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28464     <limits.h> exists even on freestanding compilers.  */
28465
28466 #ifdef __STDC__
28467 # include <limits.h>
28468 #else
28469 # include <assert.h>
28470 #endif
28471
28472 #undef $ac_func
28473
28474 /* Override any gcc2 internal prototype to avoid an error.  */
28475 #ifdef __cplusplus
28476 extern "C"
28477 {
28478 #endif
28479 /* We use char because int might match the return type of a gcc2
28480    builtin and then its argument prototype would still apply.  */
28481 char $ac_func ();
28482 /* The GNU C library defines this for functions which it implements
28483     to always fail with ENOSYS.  Some functions are actually named
28484     something starting with __ and the normal name is an alias.  */
28485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28486 choke me
28487 #else
28488 char (*f) () = $ac_func;
28489 #endif
28490 #ifdef __cplusplus
28491 }
28492 #endif
28493
28494 int
28495 main ()
28496 {
28497 return f != $ac_func;
28498   ;
28499   return 0;
28500 }
28501 _ACEOF
28502 rm -f conftest.$ac_objext conftest$ac_exeext
28503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28504   (eval $ac_link) 2>conftest.er1
28505   ac_status=$?
28506   grep -v '^ *+' conftest.er1 >conftest.err
28507   rm -f conftest.er1
28508   cat conftest.err >&5
28509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510   (exit $ac_status); } &&
28511          { ac_try='test -z "$ac_c_werror_flag"
28512                          || test ! -s conftest.err'
28513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28514   (eval $ac_try) 2>&5
28515   ac_status=$?
28516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517   (exit $ac_status); }; } &&
28518          { ac_try='test -s conftest$ac_exeext'
28519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28520   (eval $ac_try) 2>&5
28521   ac_status=$?
28522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523   (exit $ac_status); }; }; then
28524   eval "$as_ac_var=yes"
28525 else
28526   echo "$as_me: failed program was:" >&5
28527 sed 's/^/| /' conftest.$ac_ext >&5
28528
28529 eval "$as_ac_var=no"
28530 fi
28531 rm -f conftest.err conftest.$ac_objext \
28532       conftest$ac_exeext conftest.$ac_ext
28533 fi
28534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28536 if test `eval echo '${'$as_ac_var'}'` = yes; then
28537   cat >>confdefs.h <<_ACEOF
28538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28539 _ACEOF
28540
28541 fi
28542 done
28543
28544   echo "$as_me:$LINENO: checking whether getutent is declared" >&5
28545 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
28546 if test "${ac_cv_have_decl_getutent+set}" = set; then
28547   echo $ECHO_N "(cached) $ECHO_C" >&6
28548 else
28549   cat >conftest.$ac_ext <<_ACEOF
28550 /* confdefs.h.  */
28551 _ACEOF
28552 cat confdefs.h >>conftest.$ac_ext
28553 cat >>conftest.$ac_ext <<_ACEOF
28554 /* end confdefs.h.  */
28555
28556 #ifdef HAVE_UTMP_H
28557 # include <utmp.h>
28558 #endif
28559
28560
28561 int
28562 main ()
28563 {
28564 #ifndef getutent
28565   char *p = (char *) getutent;
28566 #endif
28567
28568   ;
28569   return 0;
28570 }
28571 _ACEOF
28572 rm -f conftest.$ac_objext
28573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28574   (eval $ac_compile) 2>conftest.er1
28575   ac_status=$?
28576   grep -v '^ *+' conftest.er1 >conftest.err
28577   rm -f conftest.er1
28578   cat conftest.err >&5
28579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28580   (exit $ac_status); } &&
28581          { ac_try='test -z "$ac_c_werror_flag"
28582                          || test ! -s conftest.err'
28583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28584   (eval $ac_try) 2>&5
28585   ac_status=$?
28586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587   (exit $ac_status); }; } &&
28588          { ac_try='test -s conftest.$ac_objext'
28589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28590   (eval $ac_try) 2>&5
28591   ac_status=$?
28592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593   (exit $ac_status); }; }; then
28594   ac_cv_have_decl_getutent=yes
28595 else
28596   echo "$as_me: failed program was:" >&5
28597 sed 's/^/| /' conftest.$ac_ext >&5
28598
28599 ac_cv_have_decl_getutent=no
28600 fi
28601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28602 fi
28603 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
28604 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
28605 if test $ac_cv_have_decl_getutent = yes; then
28606
28607 cat >>confdefs.h <<_ACEOF
28608 #define HAVE_DECL_GETUTENT 1
28609 _ACEOF
28610
28611
28612 else
28613   cat >>confdefs.h <<_ACEOF
28614 #define HAVE_DECL_GETUTENT 0
28615 _ACEOF
28616
28617
28618 fi
28619
28620
28621   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
28622     utmp_includes="\
28623 $ac_includes_default
28624 #ifdef HAVE_UTMPX_H
28625 # include <utmpx.h>
28626 #endif
28627 #ifdef HAVE_UTMP_H
28628 # include <utmp.h>
28629 #endif
28630 "
28631     echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
28632 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
28633 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
28634   echo $ECHO_N "(cached) $ECHO_C" >&6
28635 else
28636   cat >conftest.$ac_ext <<_ACEOF
28637 /* confdefs.h.  */
28638 _ACEOF
28639 cat confdefs.h >>conftest.$ac_ext
28640 cat >>conftest.$ac_ext <<_ACEOF
28641 /* end confdefs.h.  */
28642 $utmp_includes
28643
28644 int
28645 main ()
28646 {
28647 static struct utmpx ac_aggr;
28648 if (ac_aggr.ut_user)
28649 return 0;
28650   ;
28651   return 0;
28652 }
28653 _ACEOF
28654 rm -f conftest.$ac_objext
28655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28656   (eval $ac_compile) 2>conftest.er1
28657   ac_status=$?
28658   grep -v '^ *+' conftest.er1 >conftest.err
28659   rm -f conftest.er1
28660   cat conftest.err >&5
28661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662   (exit $ac_status); } &&
28663          { ac_try='test -z "$ac_c_werror_flag"
28664                          || test ! -s conftest.err'
28665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28666   (eval $ac_try) 2>&5
28667   ac_status=$?
28668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669   (exit $ac_status); }; } &&
28670          { ac_try='test -s conftest.$ac_objext'
28671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672   (eval $ac_try) 2>&5
28673   ac_status=$?
28674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675   (exit $ac_status); }; }; then
28676   ac_cv_member_struct_utmpx_ut_user=yes
28677 else
28678   echo "$as_me: failed program was:" >&5
28679 sed 's/^/| /' conftest.$ac_ext >&5
28680
28681 cat >conftest.$ac_ext <<_ACEOF
28682 /* confdefs.h.  */
28683 _ACEOF
28684 cat confdefs.h >>conftest.$ac_ext
28685 cat >>conftest.$ac_ext <<_ACEOF
28686 /* end confdefs.h.  */
28687 $utmp_includes
28688
28689 int
28690 main ()
28691 {
28692 static struct utmpx ac_aggr;
28693 if (sizeof ac_aggr.ut_user)
28694 return 0;
28695   ;
28696   return 0;
28697 }
28698 _ACEOF
28699 rm -f conftest.$ac_objext
28700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28701   (eval $ac_compile) 2>conftest.er1
28702   ac_status=$?
28703   grep -v '^ *+' conftest.er1 >conftest.err
28704   rm -f conftest.er1
28705   cat conftest.err >&5
28706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707   (exit $ac_status); } &&
28708          { ac_try='test -z "$ac_c_werror_flag"
28709                          || test ! -s conftest.err'
28710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28711   (eval $ac_try) 2>&5
28712   ac_status=$?
28713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714   (exit $ac_status); }; } &&
28715          { ac_try='test -s conftest.$ac_objext'
28716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28717   (eval $ac_try) 2>&5
28718   ac_status=$?
28719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720   (exit $ac_status); }; }; then
28721   ac_cv_member_struct_utmpx_ut_user=yes
28722 else
28723   echo "$as_me: failed program was:" >&5
28724 sed 's/^/| /' conftest.$ac_ext >&5
28725
28726 ac_cv_member_struct_utmpx_ut_user=no
28727 fi
28728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28729 fi
28730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28731 fi
28732 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
28733 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
28734 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
28735
28736 cat >>confdefs.h <<_ACEOF
28737 #define HAVE_STRUCT_UTMPX_UT_USER 1
28738 _ACEOF
28739
28740
28741 fi
28742
28743     echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
28744 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
28745 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
28746   echo $ECHO_N "(cached) $ECHO_C" >&6
28747 else
28748   cat >conftest.$ac_ext <<_ACEOF
28749 /* confdefs.h.  */
28750 _ACEOF
28751 cat confdefs.h >>conftest.$ac_ext
28752 cat >>conftest.$ac_ext <<_ACEOF
28753 /* end confdefs.h.  */
28754 $utmp_includes
28755
28756 int
28757 main ()
28758 {
28759 static struct utmp ac_aggr;
28760 if (ac_aggr.ut_user)
28761 return 0;
28762   ;
28763   return 0;
28764 }
28765 _ACEOF
28766 rm -f conftest.$ac_objext
28767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28768   (eval $ac_compile) 2>conftest.er1
28769   ac_status=$?
28770   grep -v '^ *+' conftest.er1 >conftest.err
28771   rm -f conftest.er1
28772   cat conftest.err >&5
28773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774   (exit $ac_status); } &&
28775          { ac_try='test -z "$ac_c_werror_flag"
28776                          || test ! -s conftest.err'
28777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28778   (eval $ac_try) 2>&5
28779   ac_status=$?
28780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781   (exit $ac_status); }; } &&
28782          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28788   ac_cv_member_struct_utmp_ut_user=yes
28789 else
28790   echo "$as_me: failed program was:" >&5
28791 sed 's/^/| /' conftest.$ac_ext >&5
28792
28793 cat >conftest.$ac_ext <<_ACEOF
28794 /* confdefs.h.  */
28795 _ACEOF
28796 cat confdefs.h >>conftest.$ac_ext
28797 cat >>conftest.$ac_ext <<_ACEOF
28798 /* end confdefs.h.  */
28799 $utmp_includes
28800
28801 int
28802 main ()
28803 {
28804 static struct utmp ac_aggr;
28805 if (sizeof ac_aggr.ut_user)
28806 return 0;
28807   ;
28808   return 0;
28809 }
28810 _ACEOF
28811 rm -f conftest.$ac_objext
28812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28813   (eval $ac_compile) 2>conftest.er1
28814   ac_status=$?
28815   grep -v '^ *+' conftest.er1 >conftest.err
28816   rm -f conftest.er1
28817   cat conftest.err >&5
28818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819   (exit $ac_status); } &&
28820          { ac_try='test -z "$ac_c_werror_flag"
28821                          || test ! -s conftest.err'
28822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28823   (eval $ac_try) 2>&5
28824   ac_status=$?
28825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826   (exit $ac_status); }; } &&
28827          { ac_try='test -s conftest.$ac_objext'
28828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28829   (eval $ac_try) 2>&5
28830   ac_status=$?
28831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832   (exit $ac_status); }; }; then
28833   ac_cv_member_struct_utmp_ut_user=yes
28834 else
28835   echo "$as_me: failed program was:" >&5
28836 sed 's/^/| /' conftest.$ac_ext >&5
28837
28838 ac_cv_member_struct_utmp_ut_user=no
28839 fi
28840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28841 fi
28842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28843 fi
28844 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
28845 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
28846 if test $ac_cv_member_struct_utmp_ut_user = yes; then
28847
28848 cat >>confdefs.h <<_ACEOF
28849 #define HAVE_STRUCT_UTMP_UT_USER 1
28850 _ACEOF
28851
28852
28853 fi
28854
28855     echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
28856 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
28857 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
28858   echo $ECHO_N "(cached) $ECHO_C" >&6
28859 else
28860   cat >conftest.$ac_ext <<_ACEOF
28861 /* confdefs.h.  */
28862 _ACEOF
28863 cat confdefs.h >>conftest.$ac_ext
28864 cat >>conftest.$ac_ext <<_ACEOF
28865 /* end confdefs.h.  */
28866 $utmp_includes
28867
28868 int
28869 main ()
28870 {
28871 static struct utmpx ac_aggr;
28872 if (ac_aggr.ut_name)
28873 return 0;
28874   ;
28875   return 0;
28876 }
28877 _ACEOF
28878 rm -f conftest.$ac_objext
28879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28880   (eval $ac_compile) 2>conftest.er1
28881   ac_status=$?
28882   grep -v '^ *+' conftest.er1 >conftest.err
28883   rm -f conftest.er1
28884   cat conftest.err >&5
28885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886   (exit $ac_status); } &&
28887          { ac_try='test -z "$ac_c_werror_flag"
28888                          || test ! -s conftest.err'
28889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28890   (eval $ac_try) 2>&5
28891   ac_status=$?
28892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893   (exit $ac_status); }; } &&
28894          { ac_try='test -s conftest.$ac_objext'
28895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28896   (eval $ac_try) 2>&5
28897   ac_status=$?
28898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899   (exit $ac_status); }; }; then
28900   ac_cv_member_struct_utmpx_ut_name=yes
28901 else
28902   echo "$as_me: failed program was:" >&5
28903 sed 's/^/| /' conftest.$ac_ext >&5
28904
28905 cat >conftest.$ac_ext <<_ACEOF
28906 /* confdefs.h.  */
28907 _ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h.  */
28911 $utmp_includes
28912
28913 int
28914 main ()
28915 {
28916 static struct utmpx ac_aggr;
28917 if (sizeof ac_aggr.ut_name)
28918 return 0;
28919   ;
28920   return 0;
28921 }
28922 _ACEOF
28923 rm -f conftest.$ac_objext
28924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28925   (eval $ac_compile) 2>conftest.er1
28926   ac_status=$?
28927   grep -v '^ *+' conftest.er1 >conftest.err
28928   rm -f conftest.er1
28929   cat conftest.err >&5
28930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931   (exit $ac_status); } &&
28932          { ac_try='test -z "$ac_c_werror_flag"
28933                          || test ! -s conftest.err'
28934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28935   (eval $ac_try) 2>&5
28936   ac_status=$?
28937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938   (exit $ac_status); }; } &&
28939          { ac_try='test -s conftest.$ac_objext'
28940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28941   (eval $ac_try) 2>&5
28942   ac_status=$?
28943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944   (exit $ac_status); }; }; then
28945   ac_cv_member_struct_utmpx_ut_name=yes
28946 else
28947   echo "$as_me: failed program was:" >&5
28948 sed 's/^/| /' conftest.$ac_ext >&5
28949
28950 ac_cv_member_struct_utmpx_ut_name=no
28951 fi
28952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28953 fi
28954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28955 fi
28956 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
28957 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
28958 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
28959
28960 cat >>confdefs.h <<_ACEOF
28961 #define HAVE_STRUCT_UTMPX_UT_NAME 1
28962 _ACEOF
28963
28964
28965 fi
28966
28967     echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
28968 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
28969 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
28970   echo $ECHO_N "(cached) $ECHO_C" >&6
28971 else
28972   cat >conftest.$ac_ext <<_ACEOF
28973 /* confdefs.h.  */
28974 _ACEOF
28975 cat confdefs.h >>conftest.$ac_ext
28976 cat >>conftest.$ac_ext <<_ACEOF
28977 /* end confdefs.h.  */
28978 $utmp_includes
28979
28980 int
28981 main ()
28982 {
28983 static struct utmp ac_aggr;
28984 if (ac_aggr.ut_name)
28985 return 0;
28986   ;
28987   return 0;
28988 }
28989 _ACEOF
28990 rm -f conftest.$ac_objext
28991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28992   (eval $ac_compile) 2>conftest.er1
28993   ac_status=$?
28994   grep -v '^ *+' conftest.er1 >conftest.err
28995   rm -f conftest.er1
28996   cat conftest.err >&5
28997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998   (exit $ac_status); } &&
28999          { ac_try='test -z "$ac_c_werror_flag"
29000                          || test ! -s conftest.err'
29001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002   (eval $ac_try) 2>&5
29003   ac_status=$?
29004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005   (exit $ac_status); }; } &&
29006          { ac_try='test -s conftest.$ac_objext'
29007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29008   (eval $ac_try) 2>&5
29009   ac_status=$?
29010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011   (exit $ac_status); }; }; then
29012   ac_cv_member_struct_utmp_ut_name=yes
29013 else
29014   echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29016
29017 cat >conftest.$ac_ext <<_ACEOF
29018 /* confdefs.h.  */
29019 _ACEOF
29020 cat confdefs.h >>conftest.$ac_ext
29021 cat >>conftest.$ac_ext <<_ACEOF
29022 /* end confdefs.h.  */
29023 $utmp_includes
29024
29025 int
29026 main ()
29027 {
29028 static struct utmp ac_aggr;
29029 if (sizeof ac_aggr.ut_name)
29030 return 0;
29031   ;
29032   return 0;
29033 }
29034 _ACEOF
29035 rm -f conftest.$ac_objext
29036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29037   (eval $ac_compile) 2>conftest.er1
29038   ac_status=$?
29039   grep -v '^ *+' conftest.er1 >conftest.err
29040   rm -f conftest.er1
29041   cat conftest.err >&5
29042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043   (exit $ac_status); } &&
29044          { ac_try='test -z "$ac_c_werror_flag"
29045                          || test ! -s conftest.err'
29046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29047   (eval $ac_try) 2>&5
29048   ac_status=$?
29049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050   (exit $ac_status); }; } &&
29051          { ac_try='test -s conftest.$ac_objext'
29052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29053   (eval $ac_try) 2>&5
29054   ac_status=$?
29055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056   (exit $ac_status); }; }; then
29057   ac_cv_member_struct_utmp_ut_name=yes
29058 else
29059   echo "$as_me: failed program was:" >&5
29060 sed 's/^/| /' conftest.$ac_ext >&5
29061
29062 ac_cv_member_struct_utmp_ut_name=no
29063 fi
29064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29065 fi
29066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29067 fi
29068 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
29069 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
29070 if test $ac_cv_member_struct_utmp_ut_name = yes; then
29071
29072 cat >>confdefs.h <<_ACEOF
29073 #define HAVE_STRUCT_UTMP_UT_NAME 1
29074 _ACEOF
29075
29076
29077 fi
29078
29079     echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
29080 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
29081 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
29082   echo $ECHO_N "(cached) $ECHO_C" >&6
29083 else
29084   cat >conftest.$ac_ext <<_ACEOF
29085 /* confdefs.h.  */
29086 _ACEOF
29087 cat confdefs.h >>conftest.$ac_ext
29088 cat >>conftest.$ac_ext <<_ACEOF
29089 /* end confdefs.h.  */
29090 $utmp_includes
29091
29092 int
29093 main ()
29094 {
29095 static struct utmpx ac_aggr;
29096 if (ac_aggr.ut_type)
29097 return 0;
29098   ;
29099   return 0;
29100 }
29101 _ACEOF
29102 rm -f conftest.$ac_objext
29103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29104   (eval $ac_compile) 2>conftest.er1
29105   ac_status=$?
29106   grep -v '^ *+' conftest.er1 >conftest.err
29107   rm -f conftest.er1
29108   cat conftest.err >&5
29109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110   (exit $ac_status); } &&
29111          { ac_try='test -z "$ac_c_werror_flag"
29112                          || test ! -s conftest.err'
29113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114   (eval $ac_try) 2>&5
29115   ac_status=$?
29116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117   (exit $ac_status); }; } &&
29118          { ac_try='test -s conftest.$ac_objext'
29119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29120   (eval $ac_try) 2>&5
29121   ac_status=$?
29122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123   (exit $ac_status); }; }; then
29124   ac_cv_member_struct_utmpx_ut_type=yes
29125 else
29126   echo "$as_me: failed program was:" >&5
29127 sed 's/^/| /' conftest.$ac_ext >&5
29128
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 $utmp_includes
29136
29137 int
29138 main ()
29139 {
29140 static struct utmpx ac_aggr;
29141 if (sizeof ac_aggr.ut_type)
29142 return 0;
29143   ;
29144   return 0;
29145 }
29146 _ACEOF
29147 rm -f conftest.$ac_objext
29148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29149   (eval $ac_compile) 2>conftest.er1
29150   ac_status=$?
29151   grep -v '^ *+' conftest.er1 >conftest.err
29152   rm -f conftest.er1
29153   cat conftest.err >&5
29154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155   (exit $ac_status); } &&
29156          { ac_try='test -z "$ac_c_werror_flag"
29157                          || test ! -s conftest.err'
29158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29159   (eval $ac_try) 2>&5
29160   ac_status=$?
29161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162   (exit $ac_status); }; } &&
29163          { ac_try='test -s conftest.$ac_objext'
29164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29165   (eval $ac_try) 2>&5
29166   ac_status=$?
29167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168   (exit $ac_status); }; }; then
29169   ac_cv_member_struct_utmpx_ut_type=yes
29170 else
29171   echo "$as_me: failed program was:" >&5
29172 sed 's/^/| /' conftest.$ac_ext >&5
29173
29174 ac_cv_member_struct_utmpx_ut_type=no
29175 fi
29176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29177 fi
29178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29179 fi
29180 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
29181 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
29182 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
29183
29184 cat >>confdefs.h <<_ACEOF
29185 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
29186 _ACEOF
29187
29188
29189 fi
29190
29191     echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
29192 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
29193 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
29194   echo $ECHO_N "(cached) $ECHO_C" >&6
29195 else
29196   cat >conftest.$ac_ext <<_ACEOF
29197 /* confdefs.h.  */
29198 _ACEOF
29199 cat confdefs.h >>conftest.$ac_ext
29200 cat >>conftest.$ac_ext <<_ACEOF
29201 /* end confdefs.h.  */
29202 $utmp_includes
29203
29204 int
29205 main ()
29206 {
29207 static struct utmp ac_aggr;
29208 if (ac_aggr.ut_type)
29209 return 0;
29210   ;
29211   return 0;
29212 }
29213 _ACEOF
29214 rm -f conftest.$ac_objext
29215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29216   (eval $ac_compile) 2>conftest.er1
29217   ac_status=$?
29218   grep -v '^ *+' conftest.er1 >conftest.err
29219   rm -f conftest.er1
29220   cat conftest.err >&5
29221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29222   (exit $ac_status); } &&
29223          { ac_try='test -z "$ac_c_werror_flag"
29224                          || test ! -s conftest.err'
29225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29226   (eval $ac_try) 2>&5
29227   ac_status=$?
29228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229   (exit $ac_status); }; } &&
29230          { ac_try='test -s conftest.$ac_objext'
29231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29232   (eval $ac_try) 2>&5
29233   ac_status=$?
29234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235   (exit $ac_status); }; }; then
29236   ac_cv_member_struct_utmp_ut_type=yes
29237 else
29238   echo "$as_me: failed program was:" >&5
29239 sed 's/^/| /' conftest.$ac_ext >&5
29240
29241 cat >conftest.$ac_ext <<_ACEOF
29242 /* confdefs.h.  */
29243 _ACEOF
29244 cat confdefs.h >>conftest.$ac_ext
29245 cat >>conftest.$ac_ext <<_ACEOF
29246 /* end confdefs.h.  */
29247 $utmp_includes
29248
29249 int
29250 main ()
29251 {
29252 static struct utmp ac_aggr;
29253 if (sizeof ac_aggr.ut_type)
29254 return 0;
29255   ;
29256   return 0;
29257 }
29258 _ACEOF
29259 rm -f conftest.$ac_objext
29260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29261   (eval $ac_compile) 2>conftest.er1
29262   ac_status=$?
29263   grep -v '^ *+' conftest.er1 >conftest.err
29264   rm -f conftest.er1
29265   cat conftest.err >&5
29266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267   (exit $ac_status); } &&
29268          { ac_try='test -z "$ac_c_werror_flag"
29269                          || test ! -s conftest.err'
29270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271   (eval $ac_try) 2>&5
29272   ac_status=$?
29273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274   (exit $ac_status); }; } &&
29275          { ac_try='test -s conftest.$ac_objext'
29276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29277   (eval $ac_try) 2>&5
29278   ac_status=$?
29279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280   (exit $ac_status); }; }; then
29281   ac_cv_member_struct_utmp_ut_type=yes
29282 else
29283   echo "$as_me: failed program was:" >&5
29284 sed 's/^/| /' conftest.$ac_ext >&5
29285
29286 ac_cv_member_struct_utmp_ut_type=no
29287 fi
29288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29289 fi
29290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29291 fi
29292 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
29293 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
29294 if test $ac_cv_member_struct_utmp_ut_type = yes; then
29295
29296 cat >>confdefs.h <<_ACEOF
29297 #define HAVE_STRUCT_UTMP_UT_TYPE 1
29298 _ACEOF
29299
29300
29301 fi
29302
29303     echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
29304 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
29305 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
29306   echo $ECHO_N "(cached) $ECHO_C" >&6
29307 else
29308   cat >conftest.$ac_ext <<_ACEOF
29309 /* confdefs.h.  */
29310 _ACEOF
29311 cat confdefs.h >>conftest.$ac_ext
29312 cat >>conftest.$ac_ext <<_ACEOF
29313 /* end confdefs.h.  */
29314 $utmp_includes
29315
29316 int
29317 main ()
29318 {
29319 static struct utmpx ac_aggr;
29320 if (ac_aggr.ut_pid)
29321 return 0;
29322   ;
29323   return 0;
29324 }
29325 _ACEOF
29326 rm -f conftest.$ac_objext
29327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29328   (eval $ac_compile) 2>conftest.er1
29329   ac_status=$?
29330   grep -v '^ *+' conftest.er1 >conftest.err
29331   rm -f conftest.er1
29332   cat conftest.err >&5
29333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334   (exit $ac_status); } &&
29335          { ac_try='test -z "$ac_c_werror_flag"
29336                          || test ! -s conftest.err'
29337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29338   (eval $ac_try) 2>&5
29339   ac_status=$?
29340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341   (exit $ac_status); }; } &&
29342          { ac_try='test -s conftest.$ac_objext'
29343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29344   (eval $ac_try) 2>&5
29345   ac_status=$?
29346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347   (exit $ac_status); }; }; then
29348   ac_cv_member_struct_utmpx_ut_pid=yes
29349 else
29350   echo "$as_me: failed program was:" >&5
29351 sed 's/^/| /' conftest.$ac_ext >&5
29352
29353 cat >conftest.$ac_ext <<_ACEOF
29354 /* confdefs.h.  */
29355 _ACEOF
29356 cat confdefs.h >>conftest.$ac_ext
29357 cat >>conftest.$ac_ext <<_ACEOF
29358 /* end confdefs.h.  */
29359 $utmp_includes
29360
29361 int
29362 main ()
29363 {
29364 static struct utmpx ac_aggr;
29365 if (sizeof ac_aggr.ut_pid)
29366 return 0;
29367   ;
29368   return 0;
29369 }
29370 _ACEOF
29371 rm -f conftest.$ac_objext
29372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29373   (eval $ac_compile) 2>conftest.er1
29374   ac_status=$?
29375   grep -v '^ *+' conftest.er1 >conftest.err
29376   rm -f conftest.er1
29377   cat conftest.err >&5
29378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379   (exit $ac_status); } &&
29380          { ac_try='test -z "$ac_c_werror_flag"
29381                          || test ! -s conftest.err'
29382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29383   (eval $ac_try) 2>&5
29384   ac_status=$?
29385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386   (exit $ac_status); }; } &&
29387          { ac_try='test -s conftest.$ac_objext'
29388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29389   (eval $ac_try) 2>&5
29390   ac_status=$?
29391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392   (exit $ac_status); }; }; then
29393   ac_cv_member_struct_utmpx_ut_pid=yes
29394 else
29395   echo "$as_me: failed program was:" >&5
29396 sed 's/^/| /' conftest.$ac_ext >&5
29397
29398 ac_cv_member_struct_utmpx_ut_pid=no
29399 fi
29400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29401 fi
29402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29403 fi
29404 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
29405 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
29406 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
29407
29408 cat >>confdefs.h <<_ACEOF
29409 #define HAVE_STRUCT_UTMPX_UT_PID 1
29410 _ACEOF
29411
29412
29413 fi
29414
29415     echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
29416 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
29417 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
29418   echo $ECHO_N "(cached) $ECHO_C" >&6
29419 else
29420   cat >conftest.$ac_ext <<_ACEOF
29421 /* confdefs.h.  */
29422 _ACEOF
29423 cat confdefs.h >>conftest.$ac_ext
29424 cat >>conftest.$ac_ext <<_ACEOF
29425 /* end confdefs.h.  */
29426 $utmp_includes
29427
29428 int
29429 main ()
29430 {
29431 static struct utmp ac_aggr;
29432 if (ac_aggr.ut_pid)
29433 return 0;
29434   ;
29435   return 0;
29436 }
29437 _ACEOF
29438 rm -f conftest.$ac_objext
29439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29440   (eval $ac_compile) 2>conftest.er1
29441   ac_status=$?
29442   grep -v '^ *+' conftest.er1 >conftest.err
29443   rm -f conftest.er1
29444   cat conftest.err >&5
29445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29446   (exit $ac_status); } &&
29447          { ac_try='test -z "$ac_c_werror_flag"
29448                          || test ! -s conftest.err'
29449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29450   (eval $ac_try) 2>&5
29451   ac_status=$?
29452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453   (exit $ac_status); }; } &&
29454          { ac_try='test -s conftest.$ac_objext'
29455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29456   (eval $ac_try) 2>&5
29457   ac_status=$?
29458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459   (exit $ac_status); }; }; then
29460   ac_cv_member_struct_utmp_ut_pid=yes
29461 else
29462   echo "$as_me: failed program was:" >&5
29463 sed 's/^/| /' conftest.$ac_ext >&5
29464
29465 cat >conftest.$ac_ext <<_ACEOF
29466 /* confdefs.h.  */
29467 _ACEOF
29468 cat confdefs.h >>conftest.$ac_ext
29469 cat >>conftest.$ac_ext <<_ACEOF
29470 /* end confdefs.h.  */
29471 $utmp_includes
29472
29473 int
29474 main ()
29475 {
29476 static struct utmp ac_aggr;
29477 if (sizeof ac_aggr.ut_pid)
29478 return 0;
29479   ;
29480   return 0;
29481 }
29482 _ACEOF
29483 rm -f conftest.$ac_objext
29484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29485   (eval $ac_compile) 2>conftest.er1
29486   ac_status=$?
29487   grep -v '^ *+' conftest.er1 >conftest.err
29488   rm -f conftest.er1
29489   cat conftest.err >&5
29490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491   (exit $ac_status); } &&
29492          { ac_try='test -z "$ac_c_werror_flag"
29493                          || test ! -s conftest.err'
29494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29495   (eval $ac_try) 2>&5
29496   ac_status=$?
29497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498   (exit $ac_status); }; } &&
29499          { ac_try='test -s conftest.$ac_objext'
29500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29501   (eval $ac_try) 2>&5
29502   ac_status=$?
29503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29504   (exit $ac_status); }; }; then
29505   ac_cv_member_struct_utmp_ut_pid=yes
29506 else
29507   echo "$as_me: failed program was:" >&5
29508 sed 's/^/| /' conftest.$ac_ext >&5
29509
29510 ac_cv_member_struct_utmp_ut_pid=no
29511 fi
29512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29513 fi
29514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29515 fi
29516 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
29517 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
29518 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
29519
29520 cat >>confdefs.h <<_ACEOF
29521 #define HAVE_STRUCT_UTMP_UT_PID 1
29522 _ACEOF
29523
29524
29525 fi
29526
29527     echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
29528 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
29529 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
29530   echo $ECHO_N "(cached) $ECHO_C" >&6
29531 else
29532   cat >conftest.$ac_ext <<_ACEOF
29533 /* confdefs.h.  */
29534 _ACEOF
29535 cat confdefs.h >>conftest.$ac_ext
29536 cat >>conftest.$ac_ext <<_ACEOF
29537 /* end confdefs.h.  */
29538 $utmp_includes
29539
29540 int
29541 main ()
29542 {
29543 static struct utmpx ac_aggr;
29544 if (ac_aggr.ut_id)
29545 return 0;
29546   ;
29547   return 0;
29548 }
29549 _ACEOF
29550 rm -f conftest.$ac_objext
29551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29552   (eval $ac_compile) 2>conftest.er1
29553   ac_status=$?
29554   grep -v '^ *+' conftest.er1 >conftest.err
29555   rm -f conftest.er1
29556   cat conftest.err >&5
29557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558   (exit $ac_status); } &&
29559          { ac_try='test -z "$ac_c_werror_flag"
29560                          || test ! -s conftest.err'
29561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29562   (eval $ac_try) 2>&5
29563   ac_status=$?
29564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565   (exit $ac_status); }; } &&
29566          { ac_try='test -s conftest.$ac_objext'
29567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29568   (eval $ac_try) 2>&5
29569   ac_status=$?
29570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29571   (exit $ac_status); }; }; then
29572   ac_cv_member_struct_utmpx_ut_id=yes
29573 else
29574   echo "$as_me: failed program was:" >&5
29575 sed 's/^/| /' conftest.$ac_ext >&5
29576
29577 cat >conftest.$ac_ext <<_ACEOF
29578 /* confdefs.h.  */
29579 _ACEOF
29580 cat confdefs.h >>conftest.$ac_ext
29581 cat >>conftest.$ac_ext <<_ACEOF
29582 /* end confdefs.h.  */
29583 $utmp_includes
29584
29585 int
29586 main ()
29587 {
29588 static struct utmpx ac_aggr;
29589 if (sizeof ac_aggr.ut_id)
29590 return 0;
29591   ;
29592   return 0;
29593 }
29594 _ACEOF
29595 rm -f conftest.$ac_objext
29596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29597   (eval $ac_compile) 2>conftest.er1
29598   ac_status=$?
29599   grep -v '^ *+' conftest.er1 >conftest.err
29600   rm -f conftest.er1
29601   cat conftest.err >&5
29602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603   (exit $ac_status); } &&
29604          { ac_try='test -z "$ac_c_werror_flag"
29605                          || test ! -s conftest.err'
29606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29607   (eval $ac_try) 2>&5
29608   ac_status=$?
29609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610   (exit $ac_status); }; } &&
29611          { ac_try='test -s conftest.$ac_objext'
29612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29613   (eval $ac_try) 2>&5
29614   ac_status=$?
29615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616   (exit $ac_status); }; }; then
29617   ac_cv_member_struct_utmpx_ut_id=yes
29618 else
29619   echo "$as_me: failed program was:" >&5
29620 sed 's/^/| /' conftest.$ac_ext >&5
29621
29622 ac_cv_member_struct_utmpx_ut_id=no
29623 fi
29624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29625 fi
29626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29627 fi
29628 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
29629 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
29630 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
29631
29632 cat >>confdefs.h <<_ACEOF
29633 #define HAVE_STRUCT_UTMPX_UT_ID 1
29634 _ACEOF
29635
29636
29637 fi
29638
29639     echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
29640 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
29641 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
29642   echo $ECHO_N "(cached) $ECHO_C" >&6
29643 else
29644   cat >conftest.$ac_ext <<_ACEOF
29645 /* confdefs.h.  */
29646 _ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h.  */
29650 $utmp_includes
29651
29652 int
29653 main ()
29654 {
29655 static struct utmp ac_aggr;
29656 if (ac_aggr.ut_id)
29657 return 0;
29658   ;
29659   return 0;
29660 }
29661 _ACEOF
29662 rm -f conftest.$ac_objext
29663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29664   (eval $ac_compile) 2>conftest.er1
29665   ac_status=$?
29666   grep -v '^ *+' conftest.er1 >conftest.err
29667   rm -f conftest.er1
29668   cat conftest.err >&5
29669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670   (exit $ac_status); } &&
29671          { ac_try='test -z "$ac_c_werror_flag"
29672                          || test ! -s conftest.err'
29673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29674   (eval $ac_try) 2>&5
29675   ac_status=$?
29676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677   (exit $ac_status); }; } &&
29678          { ac_try='test -s conftest.$ac_objext'
29679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29680   (eval $ac_try) 2>&5
29681   ac_status=$?
29682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683   (exit $ac_status); }; }; then
29684   ac_cv_member_struct_utmp_ut_id=yes
29685 else
29686   echo "$as_me: failed program was:" >&5
29687 sed 's/^/| /' conftest.$ac_ext >&5
29688
29689 cat >conftest.$ac_ext <<_ACEOF
29690 /* confdefs.h.  */
29691 _ACEOF
29692 cat confdefs.h >>conftest.$ac_ext
29693 cat >>conftest.$ac_ext <<_ACEOF
29694 /* end confdefs.h.  */
29695 $utmp_includes
29696
29697 int
29698 main ()
29699 {
29700 static struct utmp ac_aggr;
29701 if (sizeof ac_aggr.ut_id)
29702 return 0;
29703   ;
29704   return 0;
29705 }
29706 _ACEOF
29707 rm -f conftest.$ac_objext
29708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29709   (eval $ac_compile) 2>conftest.er1
29710   ac_status=$?
29711   grep -v '^ *+' conftest.er1 >conftest.err
29712   rm -f conftest.er1
29713   cat conftest.err >&5
29714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715   (exit $ac_status); } &&
29716          { ac_try='test -z "$ac_c_werror_flag"
29717                          || test ! -s conftest.err'
29718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29719   (eval $ac_try) 2>&5
29720   ac_status=$?
29721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722   (exit $ac_status); }; } &&
29723          { ac_try='test -s conftest.$ac_objext'
29724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29725   (eval $ac_try) 2>&5
29726   ac_status=$?
29727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728   (exit $ac_status); }; }; then
29729   ac_cv_member_struct_utmp_ut_id=yes
29730 else
29731   echo "$as_me: failed program was:" >&5
29732 sed 's/^/| /' conftest.$ac_ext >&5
29733
29734 ac_cv_member_struct_utmp_ut_id=no
29735 fi
29736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29737 fi
29738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29739 fi
29740 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
29741 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
29742 if test $ac_cv_member_struct_utmp_ut_id = yes; then
29743
29744 cat >>confdefs.h <<_ACEOF
29745 #define HAVE_STRUCT_UTMP_UT_ID 1
29746 _ACEOF
29747
29748
29749 fi
29750
29751     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit" >&5
29752 echo $ECHO_N "checking for struct utmpx.ut_exit... $ECHO_C" >&6
29753 if test "${ac_cv_member_struct_utmpx_ut_exit+set}" = set; then
29754   echo $ECHO_N "(cached) $ECHO_C" >&6
29755 else
29756   cat >conftest.$ac_ext <<_ACEOF
29757 /* confdefs.h.  */
29758 _ACEOF
29759 cat confdefs.h >>conftest.$ac_ext
29760 cat >>conftest.$ac_ext <<_ACEOF
29761 /* end confdefs.h.  */
29762 $utmp_includes
29763
29764 int
29765 main ()
29766 {
29767 static struct utmpx ac_aggr;
29768 if (ac_aggr.ut_exit)
29769 return 0;
29770   ;
29771   return 0;
29772 }
29773 _ACEOF
29774 rm -f conftest.$ac_objext
29775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29776   (eval $ac_compile) 2>conftest.er1
29777   ac_status=$?
29778   grep -v '^ *+' conftest.er1 >conftest.err
29779   rm -f conftest.er1
29780   cat conftest.err >&5
29781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782   (exit $ac_status); } &&
29783          { ac_try='test -z "$ac_c_werror_flag"
29784                          || test ! -s conftest.err'
29785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29786   (eval $ac_try) 2>&5
29787   ac_status=$?
29788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789   (exit $ac_status); }; } &&
29790          { ac_try='test -s conftest.$ac_objext'
29791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29792   (eval $ac_try) 2>&5
29793   ac_status=$?
29794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795   (exit $ac_status); }; }; then
29796   ac_cv_member_struct_utmpx_ut_exit=yes
29797 else
29798   echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29800
29801 cat >conftest.$ac_ext <<_ACEOF
29802 /* confdefs.h.  */
29803 _ACEOF
29804 cat confdefs.h >>conftest.$ac_ext
29805 cat >>conftest.$ac_ext <<_ACEOF
29806 /* end confdefs.h.  */
29807 $utmp_includes
29808
29809 int
29810 main ()
29811 {
29812 static struct utmpx ac_aggr;
29813 if (sizeof ac_aggr.ut_exit)
29814 return 0;
29815   ;
29816   return 0;
29817 }
29818 _ACEOF
29819 rm -f conftest.$ac_objext
29820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29821   (eval $ac_compile) 2>conftest.er1
29822   ac_status=$?
29823   grep -v '^ *+' conftest.er1 >conftest.err
29824   rm -f conftest.er1
29825   cat conftest.err >&5
29826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827   (exit $ac_status); } &&
29828          { ac_try='test -z "$ac_c_werror_flag"
29829                          || test ! -s conftest.err'
29830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29831   (eval $ac_try) 2>&5
29832   ac_status=$?
29833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834   (exit $ac_status); }; } &&
29835          { ac_try='test -s conftest.$ac_objext'
29836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29837   (eval $ac_try) 2>&5
29838   ac_status=$?
29839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840   (exit $ac_status); }; }; then
29841   ac_cv_member_struct_utmpx_ut_exit=yes
29842 else
29843   echo "$as_me: failed program was:" >&5
29844 sed 's/^/| /' conftest.$ac_ext >&5
29845
29846 ac_cv_member_struct_utmpx_ut_exit=no
29847 fi
29848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29849 fi
29850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29851 fi
29852 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit" >&5
29853 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit" >&6
29854 if test $ac_cv_member_struct_utmpx_ut_exit = yes; then
29855
29856 cat >>confdefs.h <<_ACEOF
29857 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
29858 _ACEOF
29859
29860
29861 fi
29862
29863     echo "$as_me:$LINENO: checking for struct utmp.ut_exit" >&5
29864 echo $ECHO_N "checking for struct utmp.ut_exit... $ECHO_C" >&6
29865 if test "${ac_cv_member_struct_utmp_ut_exit+set}" = set; then
29866   echo $ECHO_N "(cached) $ECHO_C" >&6
29867 else
29868   cat >conftest.$ac_ext <<_ACEOF
29869 /* confdefs.h.  */
29870 _ACEOF
29871 cat confdefs.h >>conftest.$ac_ext
29872 cat >>conftest.$ac_ext <<_ACEOF
29873 /* end confdefs.h.  */
29874 $utmp_includes
29875
29876 int
29877 main ()
29878 {
29879 static struct utmp ac_aggr;
29880 if (ac_aggr.ut_exit)
29881 return 0;
29882   ;
29883   return 0;
29884 }
29885 _ACEOF
29886 rm -f conftest.$ac_objext
29887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29888   (eval $ac_compile) 2>conftest.er1
29889   ac_status=$?
29890   grep -v '^ *+' conftest.er1 >conftest.err
29891   rm -f conftest.er1
29892   cat conftest.err >&5
29893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894   (exit $ac_status); } &&
29895          { ac_try='test -z "$ac_c_werror_flag"
29896                          || test ! -s conftest.err'
29897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29898   (eval $ac_try) 2>&5
29899   ac_status=$?
29900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901   (exit $ac_status); }; } &&
29902          { ac_try='test -s conftest.$ac_objext'
29903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29904   (eval $ac_try) 2>&5
29905   ac_status=$?
29906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907   (exit $ac_status); }; }; then
29908   ac_cv_member_struct_utmp_ut_exit=yes
29909 else
29910   echo "$as_me: failed program was:" >&5
29911 sed 's/^/| /' conftest.$ac_ext >&5
29912
29913 cat >conftest.$ac_ext <<_ACEOF
29914 /* confdefs.h.  */
29915 _ACEOF
29916 cat confdefs.h >>conftest.$ac_ext
29917 cat >>conftest.$ac_ext <<_ACEOF
29918 /* end confdefs.h.  */
29919 $utmp_includes
29920
29921 int
29922 main ()
29923 {
29924 static struct utmp ac_aggr;
29925 if (sizeof ac_aggr.ut_exit)
29926 return 0;
29927   ;
29928   return 0;
29929 }
29930 _ACEOF
29931 rm -f conftest.$ac_objext
29932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29933   (eval $ac_compile) 2>conftest.er1
29934   ac_status=$?
29935   grep -v '^ *+' conftest.er1 >conftest.err
29936   rm -f conftest.er1
29937   cat conftest.err >&5
29938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939   (exit $ac_status); } &&
29940          { ac_try='test -z "$ac_c_werror_flag"
29941                          || test ! -s conftest.err'
29942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29943   (eval $ac_try) 2>&5
29944   ac_status=$?
29945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946   (exit $ac_status); }; } &&
29947          { ac_try='test -s conftest.$ac_objext'
29948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29949   (eval $ac_try) 2>&5
29950   ac_status=$?
29951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952   (exit $ac_status); }; }; then
29953   ac_cv_member_struct_utmp_ut_exit=yes
29954 else
29955   echo "$as_me: failed program was:" >&5
29956 sed 's/^/| /' conftest.$ac_ext >&5
29957
29958 ac_cv_member_struct_utmp_ut_exit=no
29959 fi
29960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29961 fi
29962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29963 fi
29964 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit" >&5
29965 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit" >&6
29966 if test $ac_cv_member_struct_utmp_ut_exit = yes; then
29967
29968 cat >>confdefs.h <<_ACEOF
29969 #define HAVE_STRUCT_UTMP_UT_EXIT 1
29970 _ACEOF
29971
29972
29973 fi
29974
29975
29976     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
29977 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
29978 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
29979   echo $ECHO_N "(cached) $ECHO_C" >&6
29980 else
29981   cat >conftest.$ac_ext <<_ACEOF
29982 /* confdefs.h.  */
29983 _ACEOF
29984 cat confdefs.h >>conftest.$ac_ext
29985 cat >>conftest.$ac_ext <<_ACEOF
29986 /* end confdefs.h.  */
29987 $utmp_includes
29988
29989 int
29990 main ()
29991 {
29992 static struct utmpx ac_aggr;
29993 if (ac_aggr.ut_exit.ut_exit)
29994 return 0;
29995   ;
29996   return 0;
29997 }
29998 _ACEOF
29999 rm -f conftest.$ac_objext
30000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30001   (eval $ac_compile) 2>conftest.er1
30002   ac_status=$?
30003   grep -v '^ *+' conftest.er1 >conftest.err
30004   rm -f conftest.er1
30005   cat conftest.err >&5
30006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007   (exit $ac_status); } &&
30008          { ac_try='test -z "$ac_c_werror_flag"
30009                          || test ! -s conftest.err'
30010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30011   (eval $ac_try) 2>&5
30012   ac_status=$?
30013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014   (exit $ac_status); }; } &&
30015          { ac_try='test -s conftest.$ac_objext'
30016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30017   (eval $ac_try) 2>&5
30018   ac_status=$?
30019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30020   (exit $ac_status); }; }; then
30021   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
30022 else
30023   echo "$as_me: failed program was:" >&5
30024 sed 's/^/| /' conftest.$ac_ext >&5
30025
30026 cat >conftest.$ac_ext <<_ACEOF
30027 /* confdefs.h.  */
30028 _ACEOF
30029 cat confdefs.h >>conftest.$ac_ext
30030 cat >>conftest.$ac_ext <<_ACEOF
30031 /* end confdefs.h.  */
30032 $utmp_includes
30033
30034 int
30035 main ()
30036 {
30037 static struct utmpx ac_aggr;
30038 if (sizeof ac_aggr.ut_exit.ut_exit)
30039 return 0;
30040   ;
30041   return 0;
30042 }
30043 _ACEOF
30044 rm -f conftest.$ac_objext
30045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30046   (eval $ac_compile) 2>conftest.er1
30047   ac_status=$?
30048   grep -v '^ *+' conftest.er1 >conftest.err
30049   rm -f conftest.er1
30050   cat conftest.err >&5
30051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052   (exit $ac_status); } &&
30053          { ac_try='test -z "$ac_c_werror_flag"
30054                          || test ! -s conftest.err'
30055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30056   (eval $ac_try) 2>&5
30057   ac_status=$?
30058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059   (exit $ac_status); }; } &&
30060          { ac_try='test -s conftest.$ac_objext'
30061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30062   (eval $ac_try) 2>&5
30063   ac_status=$?
30064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065   (exit $ac_status); }; }; then
30066   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
30067 else
30068   echo "$as_me: failed program was:" >&5
30069 sed 's/^/| /' conftest.$ac_ext >&5
30070
30071 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
30072 fi
30073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30074 fi
30075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30076 fi
30077 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
30078 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
30079 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
30080
30081 cat >>confdefs.h <<_ACEOF
30082 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
30083 _ACEOF
30084
30085
30086 fi
30087
30088     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
30089 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
30090 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
30091   echo $ECHO_N "(cached) $ECHO_C" >&6
30092 else
30093   cat >conftest.$ac_ext <<_ACEOF
30094 /* confdefs.h.  */
30095 _ACEOF
30096 cat confdefs.h >>conftest.$ac_ext
30097 cat >>conftest.$ac_ext <<_ACEOF
30098 /* end confdefs.h.  */
30099 $utmp_includes
30100
30101 int
30102 main ()
30103 {
30104 static struct utmp ac_aggr;
30105 if (ac_aggr.ut_exit.ut_exit)
30106 return 0;
30107   ;
30108   return 0;
30109 }
30110 _ACEOF
30111 rm -f conftest.$ac_objext
30112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30113   (eval $ac_compile) 2>conftest.er1
30114   ac_status=$?
30115   grep -v '^ *+' conftest.er1 >conftest.err
30116   rm -f conftest.er1
30117   cat conftest.err >&5
30118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119   (exit $ac_status); } &&
30120          { ac_try='test -z "$ac_c_werror_flag"
30121                          || test ! -s conftest.err'
30122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30123   (eval $ac_try) 2>&5
30124   ac_status=$?
30125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126   (exit $ac_status); }; } &&
30127          { ac_try='test -s conftest.$ac_objext'
30128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30129   (eval $ac_try) 2>&5
30130   ac_status=$?
30131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132   (exit $ac_status); }; }; then
30133   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
30134 else
30135   echo "$as_me: failed program was:" >&5
30136 sed 's/^/| /' conftest.$ac_ext >&5
30137
30138 cat >conftest.$ac_ext <<_ACEOF
30139 /* confdefs.h.  */
30140 _ACEOF
30141 cat confdefs.h >>conftest.$ac_ext
30142 cat >>conftest.$ac_ext <<_ACEOF
30143 /* end confdefs.h.  */
30144 $utmp_includes
30145
30146 int
30147 main ()
30148 {
30149 static struct utmp ac_aggr;
30150 if (sizeof ac_aggr.ut_exit.ut_exit)
30151 return 0;
30152   ;
30153   return 0;
30154 }
30155 _ACEOF
30156 rm -f conftest.$ac_objext
30157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30158   (eval $ac_compile) 2>conftest.er1
30159   ac_status=$?
30160   grep -v '^ *+' conftest.er1 >conftest.err
30161   rm -f conftest.er1
30162   cat conftest.err >&5
30163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30164   (exit $ac_status); } &&
30165          { ac_try='test -z "$ac_c_werror_flag"
30166                          || test ! -s conftest.err'
30167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30168   (eval $ac_try) 2>&5
30169   ac_status=$?
30170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171   (exit $ac_status); }; } &&
30172          { ac_try='test -s conftest.$ac_objext'
30173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30174   (eval $ac_try) 2>&5
30175   ac_status=$?
30176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177   (exit $ac_status); }; }; then
30178   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
30179 else
30180   echo "$as_me: failed program was:" >&5
30181 sed 's/^/| /' conftest.$ac_ext >&5
30182
30183 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
30184 fi
30185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30186 fi
30187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30188 fi
30189 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
30190 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
30191 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
30192
30193 cat >>confdefs.h <<_ACEOF
30194 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
30195 _ACEOF
30196
30197
30198 fi
30199
30200     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
30201 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
30202 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
30203   echo $ECHO_N "(cached) $ECHO_C" >&6
30204 else
30205   cat >conftest.$ac_ext <<_ACEOF
30206 /* confdefs.h.  */
30207 _ACEOF
30208 cat confdefs.h >>conftest.$ac_ext
30209 cat >>conftest.$ac_ext <<_ACEOF
30210 /* end confdefs.h.  */
30211 $utmp_includes
30212
30213 int
30214 main ()
30215 {
30216 static struct utmpx ac_aggr;
30217 if (ac_aggr.ut_exit.e_exit)
30218 return 0;
30219   ;
30220   return 0;
30221 }
30222 _ACEOF
30223 rm -f conftest.$ac_objext
30224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30225   (eval $ac_compile) 2>conftest.er1
30226   ac_status=$?
30227   grep -v '^ *+' conftest.er1 >conftest.err
30228   rm -f conftest.er1
30229   cat conftest.err >&5
30230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231   (exit $ac_status); } &&
30232          { ac_try='test -z "$ac_c_werror_flag"
30233                          || test ! -s conftest.err'
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); }; } &&
30239          { ac_try='test -s conftest.$ac_objext'
30240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30241   (eval $ac_try) 2>&5
30242   ac_status=$?
30243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244   (exit $ac_status); }; }; then
30245   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
30246 else
30247   echo "$as_me: failed program was:" >&5
30248 sed 's/^/| /' conftest.$ac_ext >&5
30249
30250 cat >conftest.$ac_ext <<_ACEOF
30251 /* confdefs.h.  */
30252 _ACEOF
30253 cat confdefs.h >>conftest.$ac_ext
30254 cat >>conftest.$ac_ext <<_ACEOF
30255 /* end confdefs.h.  */
30256 $utmp_includes
30257
30258 int
30259 main ()
30260 {
30261 static struct utmpx ac_aggr;
30262 if (sizeof ac_aggr.ut_exit.e_exit)
30263 return 0;
30264   ;
30265   return 0;
30266 }
30267 _ACEOF
30268 rm -f conftest.$ac_objext
30269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30270   (eval $ac_compile) 2>conftest.er1
30271   ac_status=$?
30272   grep -v '^ *+' conftest.er1 >conftest.err
30273   rm -f conftest.er1
30274   cat conftest.err >&5
30275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30276   (exit $ac_status); } &&
30277          { ac_try='test -z "$ac_c_werror_flag"
30278                          || test ! -s conftest.err'
30279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30280   (eval $ac_try) 2>&5
30281   ac_status=$?
30282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283   (exit $ac_status); }; } &&
30284          { ac_try='test -s conftest.$ac_objext'
30285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30286   (eval $ac_try) 2>&5
30287   ac_status=$?
30288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289   (exit $ac_status); }; }; then
30290   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
30291 else
30292   echo "$as_me: failed program was:" >&5
30293 sed 's/^/| /' conftest.$ac_ext >&5
30294
30295 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
30296 fi
30297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30298 fi
30299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30300 fi
30301 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
30302 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
30303 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
30304
30305 cat >>confdefs.h <<_ACEOF
30306 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
30307 _ACEOF
30308
30309
30310 fi
30311
30312     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
30313 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
30314 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
30315   echo $ECHO_N "(cached) $ECHO_C" >&6
30316 else
30317   cat >conftest.$ac_ext <<_ACEOF
30318 /* confdefs.h.  */
30319 _ACEOF
30320 cat confdefs.h >>conftest.$ac_ext
30321 cat >>conftest.$ac_ext <<_ACEOF
30322 /* end confdefs.h.  */
30323 $utmp_includes
30324
30325 int
30326 main ()
30327 {
30328 static struct utmp ac_aggr;
30329 if (ac_aggr.ut_exit.e_exit)
30330 return 0;
30331   ;
30332   return 0;
30333 }
30334 _ACEOF
30335 rm -f conftest.$ac_objext
30336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30337   (eval $ac_compile) 2>conftest.er1
30338   ac_status=$?
30339   grep -v '^ *+' conftest.er1 >conftest.err
30340   rm -f conftest.er1
30341   cat conftest.err >&5
30342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343   (exit $ac_status); } &&
30344          { ac_try='test -z "$ac_c_werror_flag"
30345                          || test ! -s conftest.err'
30346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30347   (eval $ac_try) 2>&5
30348   ac_status=$?
30349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350   (exit $ac_status); }; } &&
30351          { ac_try='test -s conftest.$ac_objext'
30352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30353   (eval $ac_try) 2>&5
30354   ac_status=$?
30355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356   (exit $ac_status); }; }; then
30357   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
30358 else
30359   echo "$as_me: failed program was:" >&5
30360 sed 's/^/| /' conftest.$ac_ext >&5
30361
30362 cat >conftest.$ac_ext <<_ACEOF
30363 /* confdefs.h.  */
30364 _ACEOF
30365 cat confdefs.h >>conftest.$ac_ext
30366 cat >>conftest.$ac_ext <<_ACEOF
30367 /* end confdefs.h.  */
30368 $utmp_includes
30369
30370 int
30371 main ()
30372 {
30373 static struct utmp ac_aggr;
30374 if (sizeof ac_aggr.ut_exit.e_exit)
30375 return 0;
30376   ;
30377   return 0;
30378 }
30379 _ACEOF
30380 rm -f conftest.$ac_objext
30381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30382   (eval $ac_compile) 2>conftest.er1
30383   ac_status=$?
30384   grep -v '^ *+' conftest.er1 >conftest.err
30385   rm -f conftest.er1
30386   cat conftest.err >&5
30387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388   (exit $ac_status); } &&
30389          { ac_try='test -z "$ac_c_werror_flag"
30390                          || test ! -s conftest.err'
30391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30392   (eval $ac_try) 2>&5
30393   ac_status=$?
30394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395   (exit $ac_status); }; } &&
30396          { ac_try='test -s conftest.$ac_objext'
30397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30398   (eval $ac_try) 2>&5
30399   ac_status=$?
30400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401   (exit $ac_status); }; }; then
30402   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
30403 else
30404   echo "$as_me: failed program was:" >&5
30405 sed 's/^/| /' conftest.$ac_ext >&5
30406
30407 ac_cv_member_struct_utmp_ut_exit_e_exit=no
30408 fi
30409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30410 fi
30411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30412 fi
30413 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
30414 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
30415 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
30416
30417 cat >>confdefs.h <<_ACEOF
30418 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
30419 _ACEOF
30420
30421
30422 fi
30423
30424
30425     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
30426 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
30427 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
30428   echo $ECHO_N "(cached) $ECHO_C" >&6
30429 else
30430   cat >conftest.$ac_ext <<_ACEOF
30431 /* confdefs.h.  */
30432 _ACEOF
30433 cat confdefs.h >>conftest.$ac_ext
30434 cat >>conftest.$ac_ext <<_ACEOF
30435 /* end confdefs.h.  */
30436 $utmp_includes
30437
30438 int
30439 main ()
30440 {
30441 static struct utmpx ac_aggr;
30442 if (ac_aggr.ut_exit.ut_termination)
30443 return 0;
30444   ;
30445   return 0;
30446 }
30447 _ACEOF
30448 rm -f conftest.$ac_objext
30449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30450   (eval $ac_compile) 2>conftest.er1
30451   ac_status=$?
30452   grep -v '^ *+' conftest.er1 >conftest.err
30453   rm -f conftest.er1
30454   cat conftest.err >&5
30455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456   (exit $ac_status); } &&
30457          { ac_try='test -z "$ac_c_werror_flag"
30458                          || test ! -s conftest.err'
30459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30460   (eval $ac_try) 2>&5
30461   ac_status=$?
30462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30463   (exit $ac_status); }; } &&
30464          { ac_try='test -s conftest.$ac_objext'
30465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30466   (eval $ac_try) 2>&5
30467   ac_status=$?
30468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469   (exit $ac_status); }; }; then
30470   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
30471 else
30472   echo "$as_me: failed program was:" >&5
30473 sed 's/^/| /' conftest.$ac_ext >&5
30474
30475 cat >conftest.$ac_ext <<_ACEOF
30476 /* confdefs.h.  */
30477 _ACEOF
30478 cat confdefs.h >>conftest.$ac_ext
30479 cat >>conftest.$ac_ext <<_ACEOF
30480 /* end confdefs.h.  */
30481 $utmp_includes
30482
30483 int
30484 main ()
30485 {
30486 static struct utmpx ac_aggr;
30487 if (sizeof ac_aggr.ut_exit.ut_termination)
30488 return 0;
30489   ;
30490   return 0;
30491 }
30492 _ACEOF
30493 rm -f conftest.$ac_objext
30494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30495   (eval $ac_compile) 2>conftest.er1
30496   ac_status=$?
30497   grep -v '^ *+' conftest.er1 >conftest.err
30498   rm -f conftest.er1
30499   cat conftest.err >&5
30500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501   (exit $ac_status); } &&
30502          { ac_try='test -z "$ac_c_werror_flag"
30503                          || test ! -s conftest.err'
30504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30505   (eval $ac_try) 2>&5
30506   ac_status=$?
30507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508   (exit $ac_status); }; } &&
30509          { ac_try='test -s conftest.$ac_objext'
30510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30511   (eval $ac_try) 2>&5
30512   ac_status=$?
30513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30514   (exit $ac_status); }; }; then
30515   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
30516 else
30517   echo "$as_me: failed program was:" >&5
30518 sed 's/^/| /' conftest.$ac_ext >&5
30519
30520 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
30521 fi
30522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30523 fi
30524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30525 fi
30526 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
30527 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
30528 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
30529
30530 cat >>confdefs.h <<_ACEOF
30531 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
30532 _ACEOF
30533
30534
30535 fi
30536
30537     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
30538 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
30539 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
30540   echo $ECHO_N "(cached) $ECHO_C" >&6
30541 else
30542   cat >conftest.$ac_ext <<_ACEOF
30543 /* confdefs.h.  */
30544 _ACEOF
30545 cat confdefs.h >>conftest.$ac_ext
30546 cat >>conftest.$ac_ext <<_ACEOF
30547 /* end confdefs.h.  */
30548 $utmp_includes
30549
30550 int
30551 main ()
30552 {
30553 static struct utmp ac_aggr;
30554 if (ac_aggr.ut_exit.ut_termination)
30555 return 0;
30556   ;
30557   return 0;
30558 }
30559 _ACEOF
30560 rm -f conftest.$ac_objext
30561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30562   (eval $ac_compile) 2>conftest.er1
30563   ac_status=$?
30564   grep -v '^ *+' conftest.er1 >conftest.err
30565   rm -f conftest.er1
30566   cat conftest.err >&5
30567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568   (exit $ac_status); } &&
30569          { ac_try='test -z "$ac_c_werror_flag"
30570                          || test ! -s conftest.err'
30571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30572   (eval $ac_try) 2>&5
30573   ac_status=$?
30574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575   (exit $ac_status); }; } &&
30576          { ac_try='test -s conftest.$ac_objext'
30577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30578   (eval $ac_try) 2>&5
30579   ac_status=$?
30580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581   (exit $ac_status); }; }; then
30582   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
30583 else
30584   echo "$as_me: failed program was:" >&5
30585 sed 's/^/| /' conftest.$ac_ext >&5
30586
30587 cat >conftest.$ac_ext <<_ACEOF
30588 /* confdefs.h.  */
30589 _ACEOF
30590 cat confdefs.h >>conftest.$ac_ext
30591 cat >>conftest.$ac_ext <<_ACEOF
30592 /* end confdefs.h.  */
30593 $utmp_includes
30594
30595 int
30596 main ()
30597 {
30598 static struct utmp ac_aggr;
30599 if (sizeof ac_aggr.ut_exit.ut_termination)
30600 return 0;
30601   ;
30602   return 0;
30603 }
30604 _ACEOF
30605 rm -f conftest.$ac_objext
30606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30607   (eval $ac_compile) 2>conftest.er1
30608   ac_status=$?
30609   grep -v '^ *+' conftest.er1 >conftest.err
30610   rm -f conftest.er1
30611   cat conftest.err >&5
30612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613   (exit $ac_status); } &&
30614          { ac_try='test -z "$ac_c_werror_flag"
30615                          || test ! -s conftest.err'
30616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30617   (eval $ac_try) 2>&5
30618   ac_status=$?
30619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620   (exit $ac_status); }; } &&
30621          { ac_try='test -s conftest.$ac_objext'
30622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30623   (eval $ac_try) 2>&5
30624   ac_status=$?
30625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626   (exit $ac_status); }; }; then
30627   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
30628 else
30629   echo "$as_me: failed program was:" >&5
30630 sed 's/^/| /' conftest.$ac_ext >&5
30631
30632 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
30633 fi
30634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30635 fi
30636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30637 fi
30638 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
30639 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
30640 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
30641
30642 cat >>confdefs.h <<_ACEOF
30643 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
30644 _ACEOF
30645
30646
30647 fi
30648
30649     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
30650 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
30651 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
30652   echo $ECHO_N "(cached) $ECHO_C" >&6
30653 else
30654   cat >conftest.$ac_ext <<_ACEOF
30655 /* confdefs.h.  */
30656 _ACEOF
30657 cat confdefs.h >>conftest.$ac_ext
30658 cat >>conftest.$ac_ext <<_ACEOF
30659 /* end confdefs.h.  */
30660 $utmp_includes
30661
30662 int
30663 main ()
30664 {
30665 static struct utmpx ac_aggr;
30666 if (ac_aggr.ut_exit.e_termination)
30667 return 0;
30668   ;
30669   return 0;
30670 }
30671 _ACEOF
30672 rm -f conftest.$ac_objext
30673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30674   (eval $ac_compile) 2>conftest.er1
30675   ac_status=$?
30676   grep -v '^ *+' conftest.er1 >conftest.err
30677   rm -f conftest.er1
30678   cat conftest.err >&5
30679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680   (exit $ac_status); } &&
30681          { ac_try='test -z "$ac_c_werror_flag"
30682                          || test ! -s conftest.err'
30683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30684   (eval $ac_try) 2>&5
30685   ac_status=$?
30686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687   (exit $ac_status); }; } &&
30688          { ac_try='test -s conftest.$ac_objext'
30689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30690   (eval $ac_try) 2>&5
30691   ac_status=$?
30692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693   (exit $ac_status); }; }; then
30694   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
30695 else
30696   echo "$as_me: failed program was:" >&5
30697 sed 's/^/| /' conftest.$ac_ext >&5
30698
30699 cat >conftest.$ac_ext <<_ACEOF
30700 /* confdefs.h.  */
30701 _ACEOF
30702 cat confdefs.h >>conftest.$ac_ext
30703 cat >>conftest.$ac_ext <<_ACEOF
30704 /* end confdefs.h.  */
30705 $utmp_includes
30706
30707 int
30708 main ()
30709 {
30710 static struct utmpx ac_aggr;
30711 if (sizeof ac_aggr.ut_exit.e_termination)
30712 return 0;
30713   ;
30714   return 0;
30715 }
30716 _ACEOF
30717 rm -f conftest.$ac_objext
30718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30719   (eval $ac_compile) 2>conftest.er1
30720   ac_status=$?
30721   grep -v '^ *+' conftest.er1 >conftest.err
30722   rm -f conftest.er1
30723   cat conftest.err >&5
30724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725   (exit $ac_status); } &&
30726          { ac_try='test -z "$ac_c_werror_flag"
30727                          || test ! -s conftest.err'
30728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30729   (eval $ac_try) 2>&5
30730   ac_status=$?
30731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732   (exit $ac_status); }; } &&
30733          { ac_try='test -s conftest.$ac_objext'
30734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30735   (eval $ac_try) 2>&5
30736   ac_status=$?
30737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738   (exit $ac_status); }; }; then
30739   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
30740 else
30741   echo "$as_me: failed program was:" >&5
30742 sed 's/^/| /' conftest.$ac_ext >&5
30743
30744 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
30745 fi
30746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30747 fi
30748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30749 fi
30750 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
30751 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
30752 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
30753
30754 cat >>confdefs.h <<_ACEOF
30755 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
30756 _ACEOF
30757
30758
30759 fi
30760
30761     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
30762 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
30763 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
30764   echo $ECHO_N "(cached) $ECHO_C" >&6
30765 else
30766   cat >conftest.$ac_ext <<_ACEOF
30767 /* confdefs.h.  */
30768 _ACEOF
30769 cat confdefs.h >>conftest.$ac_ext
30770 cat >>conftest.$ac_ext <<_ACEOF
30771 /* end confdefs.h.  */
30772 $utmp_includes
30773
30774 int
30775 main ()
30776 {
30777 static struct utmp ac_aggr;
30778 if (ac_aggr.ut_exit.e_termination)
30779 return 0;
30780   ;
30781   return 0;
30782 }
30783 _ACEOF
30784 rm -f conftest.$ac_objext
30785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30786   (eval $ac_compile) 2>conftest.er1
30787   ac_status=$?
30788   grep -v '^ *+' conftest.er1 >conftest.err
30789   rm -f conftest.er1
30790   cat conftest.err >&5
30791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792   (exit $ac_status); } &&
30793          { ac_try='test -z "$ac_c_werror_flag"
30794                          || test ! -s conftest.err'
30795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30796   (eval $ac_try) 2>&5
30797   ac_status=$?
30798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799   (exit $ac_status); }; } &&
30800          { ac_try='test -s conftest.$ac_objext'
30801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30802   (eval $ac_try) 2>&5
30803   ac_status=$?
30804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805   (exit $ac_status); }; }; then
30806   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
30807 else
30808   echo "$as_me: failed program was:" >&5
30809 sed 's/^/| /' conftest.$ac_ext >&5
30810
30811 cat >conftest.$ac_ext <<_ACEOF
30812 /* confdefs.h.  */
30813 _ACEOF
30814 cat confdefs.h >>conftest.$ac_ext
30815 cat >>conftest.$ac_ext <<_ACEOF
30816 /* end confdefs.h.  */
30817 $utmp_includes
30818
30819 int
30820 main ()
30821 {
30822 static struct utmp ac_aggr;
30823 if (sizeof ac_aggr.ut_exit.e_termination)
30824 return 0;
30825   ;
30826   return 0;
30827 }
30828 _ACEOF
30829 rm -f conftest.$ac_objext
30830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30831   (eval $ac_compile) 2>conftest.er1
30832   ac_status=$?
30833   grep -v '^ *+' conftest.er1 >conftest.err
30834   rm -f conftest.er1
30835   cat conftest.err >&5
30836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837   (exit $ac_status); } &&
30838          { ac_try='test -z "$ac_c_werror_flag"
30839                          || test ! -s conftest.err'
30840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30841   (eval $ac_try) 2>&5
30842   ac_status=$?
30843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844   (exit $ac_status); }; } &&
30845          { ac_try='test -s conftest.$ac_objext'
30846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30847   (eval $ac_try) 2>&5
30848   ac_status=$?
30849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850   (exit $ac_status); }; }; then
30851   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
30852 else
30853   echo "$as_me: failed program was:" >&5
30854 sed 's/^/| /' conftest.$ac_ext >&5
30855
30856 ac_cv_member_struct_utmp_ut_exit_e_termination=no
30857 fi
30858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30859 fi
30860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30861 fi
30862 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
30863 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
30864 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
30865
30866 cat >>confdefs.h <<_ACEOF
30867 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
30868 _ACEOF
30869
30870
30871 fi
30872
30873
30874     case $LIBOBJS in
30875     "readutmp.$ac_objext"   | \
30876   *" readutmp.$ac_objext"   | \
30877     "readutmp.$ac_objext "* | \
30878   *" readutmp.$ac_objext "* ) ;;
30879   *) LIBOBJS="$LIBOBJS readutmp.$ac_objext" ;;
30880 esac
30881
30882
30883   :
30884
30885   fi
30886
30887 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
30888 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
30889 if test "${gl_cv_c_restrict+set}" = set; then
30890   echo $ECHO_N "(cached) $ECHO_C" >&6
30891 else
30892   gl_cv_c_restrict=no
30893    # Try the official restrict keyword, then gcc's __restrict, and
30894    # the less common variants.
30895    for ac_kw in restrict __restrict __restrict__ _Restrict; do
30896      cat >conftest.$ac_ext <<_ACEOF
30897 /* confdefs.h.  */
30898 _ACEOF
30899 cat confdefs.h >>conftest.$ac_ext
30900 cat >>conftest.$ac_ext <<_ACEOF
30901 /* end confdefs.h.  */
30902 float * $ac_kw x;
30903 _ACEOF
30904 rm -f conftest.$ac_objext
30905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30906   (eval $ac_compile) 2>conftest.er1
30907   ac_status=$?
30908   grep -v '^ *+' conftest.er1 >conftest.err
30909   rm -f conftest.er1
30910   cat conftest.err >&5
30911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30912   (exit $ac_status); } &&
30913          { ac_try='test -z "$ac_c_werror_flag"
30914                          || test ! -s conftest.err'
30915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30916   (eval $ac_try) 2>&5
30917   ac_status=$?
30918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919   (exit $ac_status); }; } &&
30920          { ac_try='test -s conftest.$ac_objext'
30921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30922   (eval $ac_try) 2>&5
30923   ac_status=$?
30924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30925   (exit $ac_status); }; }; then
30926   gl_cv_c_restrict=$ac_kw; break
30927 else
30928   echo "$as_me: failed program was:" >&5
30929 sed 's/^/| /' conftest.$ac_ext >&5
30930
30931 fi
30932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30933    done
30934
30935 fi
30936 echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
30937 echo "${ECHO_T}$gl_cv_c_restrict" >&6
30938  case $gl_cv_c_restrict in
30939    restrict) ;;
30940    no)
30941 cat >>confdefs.h <<\_ACEOF
30942 #define restrict
30943 _ACEOF
30944  ;;
30945    *)  cat >>confdefs.h <<_ACEOF
30946 #define restrict $gl_cv_c_restrict
30947 _ACEOF
30948  ;;
30949  esac
30950
30951
30952
30953
30954     # Assume we'll default to using the included regex.c.
30955     ac_use_included_regex=yes
30956
30957     # However, if the system regex support is good enough that it passes the
30958     # the following run test, then default to *not* using the included regex.c.
30959     # If cross compiling, assume the test would fail and use the included
30960     # regex.c.  The first failing regular expression is from `Spencer ere
30961     # test #75' in grep-2.3.
30962     echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
30963 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
30964 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
30965   echo $ECHO_N "(cached) $ECHO_C" >&6
30966 else
30967   if test "$cross_compiling" = yes; then
30968                jm_cv_func_working_re_compile_pattern=no
30969 else
30970   cat >conftest.$ac_ext <<_ACEOF
30971 /* confdefs.h.  */
30972 _ACEOF
30973 cat confdefs.h >>conftest.$ac_ext
30974 cat >>conftest.$ac_ext <<_ACEOF
30975 /* end confdefs.h.  */
30976 #include <stdio.h>
30977 #include <string.h>
30978 #include <regex.h>
30979           int
30980           main ()
30981           {
30982             static struct re_pattern_buffer regex;
30983             const char *s;
30984             struct re_registers regs;
30985             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
30986             memset (&regex, 0, sizeof (regex));
30987             s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
30988             /* This should fail with _Invalid character class name_ error.  */
30989             if (!s)
30990               exit (1);
30991
30992             /* This should succeed, but doesn't for e.g. glibc-2.1.3.  */
30993             memset (&regex, 0, sizeof (regex));
30994             s = re_compile_pattern ("{1", 2, &regex);
30995
30996             if (s)
30997               exit (1);
30998
30999             /* The following example is derived from a problem report
31000                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
31001             memset (&regex, 0, sizeof (regex));
31002             s = re_compile_pattern ("[an\371]*n", 7, &regex);
31003             if (s)
31004               exit (1);
31005
31006             /* This should match, but doesn't for e.g. glibc-2.2.1.  */
31007             if (re_match (&regex, "an", 2, 0, &regs) != 2)
31008               exit (1);
31009
31010             memset (&regex, 0, sizeof (regex));
31011             s = re_compile_pattern ("x", 1, &regex);
31012             if (s)
31013               exit (1);
31014
31015             /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
31016                work with a negative RANGE argument.  */
31017             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
31018               exit (1);
31019
31020             exit (0);
31021           }
31022
31023 _ACEOF
31024 rm -f conftest$ac_exeext
31025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31026   (eval $ac_link) 2>&5
31027   ac_status=$?
31028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31031   (eval $ac_try) 2>&5
31032   ac_status=$?
31033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034   (exit $ac_status); }; }; then
31035   jm_cv_func_working_re_compile_pattern=yes
31036 else
31037   echo "$as_me: program exited with status $ac_status" >&5
31038 echo "$as_me: failed program was:" >&5
31039 sed 's/^/| /' conftest.$ac_ext >&5
31040
31041 ( exit $ac_status )
31042 jm_cv_func_working_re_compile_pattern=no
31043 fi
31044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31045 fi
31046 fi
31047 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
31048 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
31049     if test $jm_cv_func_working_re_compile_pattern = yes; then
31050       ac_use_included_regex=no
31051     fi
31052
31053     test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
31054 echo "$as_me: error: missing argument" >&2;}
31055    { (exit 1); exit 1; }; }
31056
31057
31058
31059 # Check whether --with-included-regex or --without-included-regex was given.
31060 if test "${with_included_regex+set}" = set; then
31061   withval="$with_included_regex"
31062   jm_with_regex=$withval
31063 else
31064   jm_with_regex=$ac_use_included_regex
31065 fi;
31066         if test "$jm_with_regex" = yes; then
31067           case $LIBOBJS in
31068     "regex.$ac_objext"   | \
31069   *" regex.$ac_objext"   | \
31070     "regex.$ac_objext "* | \
31071   *" regex.$ac_objext "* ) ;;
31072   *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
31073 esac
31074
31075
31076
31077
31078
31079
31080
31081
31082
31083   :
31084
31085
31086
31087
31088
31089
31090
31091
31092
31093   :
31094
31095
31096
31097
31098
31099
31100
31101
31102
31103 for ac_func in btowc
31104 do
31105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31106 echo "$as_me:$LINENO: checking for $ac_func" >&5
31107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31108 if eval "test \"\${$as_ac_var+set}\" = set"; then
31109   echo $ECHO_N "(cached) $ECHO_C" >&6
31110 else
31111   cat >conftest.$ac_ext <<_ACEOF
31112 /* confdefs.h.  */
31113 _ACEOF
31114 cat confdefs.h >>conftest.$ac_ext
31115 cat >>conftest.$ac_ext <<_ACEOF
31116 /* end confdefs.h.  */
31117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31119 #define $ac_func innocuous_$ac_func
31120
31121 /* System header to define __stub macros and hopefully few prototypes,
31122     which can conflict with char $ac_func (); below.
31123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31124     <limits.h> exists even on freestanding compilers.  */
31125
31126 #ifdef __STDC__
31127 # include <limits.h>
31128 #else
31129 # include <assert.h>
31130 #endif
31131
31132 #undef $ac_func
31133
31134 /* Override any gcc2 internal prototype to avoid an error.  */
31135 #ifdef __cplusplus
31136 extern "C"
31137 {
31138 #endif
31139 /* We use char because int might match the return type of a gcc2
31140    builtin and then its argument prototype would still apply.  */
31141 char $ac_func ();
31142 /* The GNU C library defines this for functions which it implements
31143     to always fail with ENOSYS.  Some functions are actually named
31144     something starting with __ and the normal name is an alias.  */
31145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31146 choke me
31147 #else
31148 char (*f) () = $ac_func;
31149 #endif
31150 #ifdef __cplusplus
31151 }
31152 #endif
31153
31154 int
31155 main ()
31156 {
31157 return f != $ac_func;
31158   ;
31159   return 0;
31160 }
31161 _ACEOF
31162 rm -f conftest.$ac_objext conftest$ac_exeext
31163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31164   (eval $ac_link) 2>conftest.er1
31165   ac_status=$?
31166   grep -v '^ *+' conftest.er1 >conftest.err
31167   rm -f conftest.er1
31168   cat conftest.err >&5
31169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170   (exit $ac_status); } &&
31171          { ac_try='test -z "$ac_c_werror_flag"
31172                          || test ! -s conftest.err'
31173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31174   (eval $ac_try) 2>&5
31175   ac_status=$?
31176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177   (exit $ac_status); }; } &&
31178          { ac_try='test -s conftest$ac_exeext'
31179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31180   (eval $ac_try) 2>&5
31181   ac_status=$?
31182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183   (exit $ac_status); }; }; then
31184   eval "$as_ac_var=yes"
31185 else
31186   echo "$as_me: failed program was:" >&5
31187 sed 's/^/| /' conftest.$ac_ext >&5
31188
31189 eval "$as_ac_var=no"
31190 fi
31191 rm -f conftest.err conftest.$ac_objext \
31192       conftest$ac_exeext conftest.$ac_ext
31193 fi
31194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31196 if test `eval echo '${'$as_ac_var'}'` = yes; then
31197   cat >>confdefs.h <<_ACEOF
31198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31199 _ACEOF
31200
31201 fi
31202 done
31203
31204
31205         fi
31206
31207
31208
31209
31210
31211
31212
31213
31214   :
31215
31216
31217
31218
31219
31220
31221
31222
31223
31224
31225
31226
31227   :
31228
31229
31230
31231
31232
31233
31234
31235
31236
31237
31238   :
31239
31240
31241
31242
31243
31244
31245 for ac_func in pathconf
31246 do
31247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31248 echo "$as_me:$LINENO: checking for $ac_func" >&5
31249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31250 if eval "test \"\${$as_ac_var+set}\" = set"; then
31251   echo $ECHO_N "(cached) $ECHO_C" >&6
31252 else
31253   cat >conftest.$ac_ext <<_ACEOF
31254 /* confdefs.h.  */
31255 _ACEOF
31256 cat confdefs.h >>conftest.$ac_ext
31257 cat >>conftest.$ac_ext <<_ACEOF
31258 /* end confdefs.h.  */
31259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31261 #define $ac_func innocuous_$ac_func
31262
31263 /* System header to define __stub macros and hopefully few prototypes,
31264     which can conflict with char $ac_func (); below.
31265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31266     <limits.h> exists even on freestanding compilers.  */
31267
31268 #ifdef __STDC__
31269 # include <limits.h>
31270 #else
31271 # include <assert.h>
31272 #endif
31273
31274 #undef $ac_func
31275
31276 /* Override any gcc2 internal prototype to avoid an error.  */
31277 #ifdef __cplusplus
31278 extern "C"
31279 {
31280 #endif
31281 /* We use char because int might match the return type of a gcc2
31282    builtin and then its argument prototype would still apply.  */
31283 char $ac_func ();
31284 /* The GNU C library defines this for functions which it implements
31285     to always fail with ENOSYS.  Some functions are actually named
31286     something starting with __ and the normal name is an alias.  */
31287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31288 choke me
31289 #else
31290 char (*f) () = $ac_func;
31291 #endif
31292 #ifdef __cplusplus
31293 }
31294 #endif
31295
31296 int
31297 main ()
31298 {
31299 return f != $ac_func;
31300   ;
31301   return 0;
31302 }
31303 _ACEOF
31304 rm -f conftest.$ac_objext conftest$ac_exeext
31305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31306   (eval $ac_link) 2>conftest.er1
31307   ac_status=$?
31308   grep -v '^ *+' conftest.er1 >conftest.err
31309   rm -f conftest.er1
31310   cat conftest.err >&5
31311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31312   (exit $ac_status); } &&
31313          { ac_try='test -z "$ac_c_werror_flag"
31314                          || test ! -s conftest.err'
31315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31316   (eval $ac_try) 2>&5
31317   ac_status=$?
31318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319   (exit $ac_status); }; } &&
31320          { ac_try='test -s conftest$ac_exeext'
31321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31322   (eval $ac_try) 2>&5
31323   ac_status=$?
31324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325   (exit $ac_status); }; }; then
31326   eval "$as_ac_var=yes"
31327 else
31328   echo "$as_me: failed program was:" >&5
31329 sed 's/^/| /' conftest.$ac_ext >&5
31330
31331 eval "$as_ac_var=no"
31332 fi
31333 rm -f conftest.err conftest.$ac_objext \
31334       conftest$ac_exeext conftest.$ac_ext
31335 fi
31336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31338 if test `eval echo '${'$as_ac_var'}'` = yes; then
31339   cat >>confdefs.h <<_ACEOF
31340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31341 _ACEOF
31342
31343 fi
31344 done
31345
31346
31347
31348
31349
31350
31351
31352
31353   :
31354
31355
31356
31357
31358
31359
31360
31361
31362
31363 for ac_func in fchdir
31364 do
31365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31366 echo "$as_me:$LINENO: checking for $ac_func" >&5
31367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31368 if eval "test \"\${$as_ac_var+set}\" = set"; then
31369   echo $ECHO_N "(cached) $ECHO_C" >&6
31370 else
31371   cat >conftest.$ac_ext <<_ACEOF
31372 /* confdefs.h.  */
31373 _ACEOF
31374 cat confdefs.h >>conftest.$ac_ext
31375 cat >>conftest.$ac_ext <<_ACEOF
31376 /* end confdefs.h.  */
31377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31378    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31379 #define $ac_func innocuous_$ac_func
31380
31381 /* System header to define __stub macros and hopefully few prototypes,
31382     which can conflict with char $ac_func (); below.
31383     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31384     <limits.h> exists even on freestanding compilers.  */
31385
31386 #ifdef __STDC__
31387 # include <limits.h>
31388 #else
31389 # include <assert.h>
31390 #endif
31391
31392 #undef $ac_func
31393
31394 /* Override any gcc2 internal prototype to avoid an error.  */
31395 #ifdef __cplusplus
31396 extern "C"
31397 {
31398 #endif
31399 /* We use char because int might match the return type of a gcc2
31400    builtin and then its argument prototype would still apply.  */
31401 char $ac_func ();
31402 /* The GNU C library defines this for functions which it implements
31403     to always fail with ENOSYS.  Some functions are actually named
31404     something starting with __ and the normal name is an alias.  */
31405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31406 choke me
31407 #else
31408 char (*f) () = $ac_func;
31409 #endif
31410 #ifdef __cplusplus
31411 }
31412 #endif
31413
31414 int
31415 main ()
31416 {
31417 return f != $ac_func;
31418   ;
31419   return 0;
31420 }
31421 _ACEOF
31422 rm -f conftest.$ac_objext conftest$ac_exeext
31423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31424   (eval $ac_link) 2>conftest.er1
31425   ac_status=$?
31426   grep -v '^ *+' conftest.er1 >conftest.err
31427   rm -f conftest.er1
31428   cat conftest.err >&5
31429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430   (exit $ac_status); } &&
31431          { ac_try='test -z "$ac_c_werror_flag"
31432                          || test ! -s conftest.err'
31433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31434   (eval $ac_try) 2>&5
31435   ac_status=$?
31436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437   (exit $ac_status); }; } &&
31438          { ac_try='test -s conftest$ac_exeext'
31439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31440   (eval $ac_try) 2>&5
31441   ac_status=$?
31442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443   (exit $ac_status); }; }; then
31444   eval "$as_ac_var=yes"
31445 else
31446   echo "$as_me: failed program was:" >&5
31447 sed 's/^/| /' conftest.$ac_ext >&5
31448
31449 eval "$as_ac_var=no"
31450 fi
31451 rm -f conftest.err conftest.$ac_objext \
31452       conftest$ac_exeext conftest.$ac_ext
31453 fi
31454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31456 if test `eval echo '${'$as_ac_var'}'` = yes; then
31457   cat >>confdefs.h <<_ACEOF
31458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31459 _ACEOF
31460
31461 fi
31462 done
31463
31464
31465
31466   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
31467   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
31468
31469   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
31470   # programs in the package would end up linked with that potentially-shared
31471   # library, inducing unnecessary run-time overhead.
31472   fetish_saved_libs=$LIBS
31473     echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
31474 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
31475 if test "${ac_cv_search_clock_gettime+set}" = set; then
31476   echo $ECHO_N "(cached) $ECHO_C" >&6
31477 else
31478   ac_func_search_save_LIBS=$LIBS
31479 ac_cv_search_clock_gettime=no
31480 cat >conftest.$ac_ext <<_ACEOF
31481 /* confdefs.h.  */
31482 _ACEOF
31483 cat confdefs.h >>conftest.$ac_ext
31484 cat >>conftest.$ac_ext <<_ACEOF
31485 /* end confdefs.h.  */
31486
31487 /* Override any gcc2 internal prototype to avoid an error.  */
31488 #ifdef __cplusplus
31489 extern "C"
31490 #endif
31491 /* We use char because int might match the return type of a gcc2
31492    builtin and then its argument prototype would still apply.  */
31493 char clock_gettime ();
31494 int
31495 main ()
31496 {
31497 clock_gettime ();
31498   ;
31499   return 0;
31500 }
31501 _ACEOF
31502 rm -f conftest.$ac_objext conftest$ac_exeext
31503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31504   (eval $ac_link) 2>conftest.er1
31505   ac_status=$?
31506   grep -v '^ *+' conftest.er1 >conftest.err
31507   rm -f conftest.er1
31508   cat conftest.err >&5
31509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31510   (exit $ac_status); } &&
31511          { ac_try='test -z "$ac_c_werror_flag"
31512                          || test ! -s conftest.err'
31513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31514   (eval $ac_try) 2>&5
31515   ac_status=$?
31516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517   (exit $ac_status); }; } &&
31518          { ac_try='test -s conftest$ac_exeext'
31519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31520   (eval $ac_try) 2>&5
31521   ac_status=$?
31522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523   (exit $ac_status); }; }; then
31524   ac_cv_search_clock_gettime="none required"
31525 else
31526   echo "$as_me: failed program was:" >&5
31527 sed 's/^/| /' conftest.$ac_ext >&5
31528
31529 fi
31530 rm -f conftest.err conftest.$ac_objext \
31531       conftest$ac_exeext conftest.$ac_ext
31532 if test "$ac_cv_search_clock_gettime" = no; then
31533   for ac_lib in rt posix4; do
31534     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31535     cat >conftest.$ac_ext <<_ACEOF
31536 /* confdefs.h.  */
31537 _ACEOF
31538 cat confdefs.h >>conftest.$ac_ext
31539 cat >>conftest.$ac_ext <<_ACEOF
31540 /* end confdefs.h.  */
31541
31542 /* Override any gcc2 internal prototype to avoid an error.  */
31543 #ifdef __cplusplus
31544 extern "C"
31545 #endif
31546 /* We use char because int might match the return type of a gcc2
31547    builtin and then its argument prototype would still apply.  */
31548 char clock_gettime ();
31549 int
31550 main ()
31551 {
31552 clock_gettime ();
31553   ;
31554   return 0;
31555 }
31556 _ACEOF
31557 rm -f conftest.$ac_objext conftest$ac_exeext
31558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31559   (eval $ac_link) 2>conftest.er1
31560   ac_status=$?
31561   grep -v '^ *+' conftest.er1 >conftest.err
31562   rm -f conftest.er1
31563   cat conftest.err >&5
31564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565   (exit $ac_status); } &&
31566          { ac_try='test -z "$ac_c_werror_flag"
31567                          || test ! -s conftest.err'
31568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31569   (eval $ac_try) 2>&5
31570   ac_status=$?
31571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31572   (exit $ac_status); }; } &&
31573          { ac_try='test -s conftest$ac_exeext'
31574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31575   (eval $ac_try) 2>&5
31576   ac_status=$?
31577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578   (exit $ac_status); }; }; then
31579   ac_cv_search_clock_gettime="-l$ac_lib"
31580 break
31581 else
31582   echo "$as_me: failed program was:" >&5
31583 sed 's/^/| /' conftest.$ac_ext >&5
31584
31585 fi
31586 rm -f conftest.err conftest.$ac_objext \
31587       conftest$ac_exeext conftest.$ac_ext
31588   done
31589 fi
31590 LIBS=$ac_func_search_save_LIBS
31591 fi
31592 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
31593 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
31594 if test "$ac_cv_search_clock_gettime" != no; then
31595   test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
31596   test "$ac_cv_search_clock_gettime" = "none required" ||
31597                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
31598 fi
31599
31600
31601
31602
31603 for ac_func in clock_gettime clock_settime
31604 do
31605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31606 echo "$as_me:$LINENO: checking for $ac_func" >&5
31607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31608 if eval "test \"\${$as_ac_var+set}\" = set"; then
31609   echo $ECHO_N "(cached) $ECHO_C" >&6
31610 else
31611   cat >conftest.$ac_ext <<_ACEOF
31612 /* confdefs.h.  */
31613 _ACEOF
31614 cat confdefs.h >>conftest.$ac_ext
31615 cat >>conftest.$ac_ext <<_ACEOF
31616 /* end confdefs.h.  */
31617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31619 #define $ac_func innocuous_$ac_func
31620
31621 /* System header to define __stub macros and hopefully few prototypes,
31622     which can conflict with char $ac_func (); below.
31623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31624     <limits.h> exists even on freestanding compilers.  */
31625
31626 #ifdef __STDC__
31627 # include <limits.h>
31628 #else
31629 # include <assert.h>
31630 #endif
31631
31632 #undef $ac_func
31633
31634 /* Override any gcc2 internal prototype to avoid an error.  */
31635 #ifdef __cplusplus
31636 extern "C"
31637 {
31638 #endif
31639 /* We use char because int might match the return type of a gcc2
31640    builtin and then its argument prototype would still apply.  */
31641 char $ac_func ();
31642 /* The GNU C library defines this for functions which it implements
31643     to always fail with ENOSYS.  Some functions are actually named
31644     something starting with __ and the normal name is an alias.  */
31645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31646 choke me
31647 #else
31648 char (*f) () = $ac_func;
31649 #endif
31650 #ifdef __cplusplus
31651 }
31652 #endif
31653
31654 int
31655 main ()
31656 {
31657 return f != $ac_func;
31658   ;
31659   return 0;
31660 }
31661 _ACEOF
31662 rm -f conftest.$ac_objext conftest$ac_exeext
31663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31664   (eval $ac_link) 2>conftest.er1
31665   ac_status=$?
31666   grep -v '^ *+' conftest.er1 >conftest.err
31667   rm -f conftest.er1
31668   cat conftest.err >&5
31669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670   (exit $ac_status); } &&
31671          { ac_try='test -z "$ac_c_werror_flag"
31672                          || test ! -s conftest.err'
31673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31674   (eval $ac_try) 2>&5
31675   ac_status=$?
31676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31677   (exit $ac_status); }; } &&
31678          { ac_try='test -s conftest$ac_exeext'
31679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31680   (eval $ac_try) 2>&5
31681   ac_status=$?
31682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683   (exit $ac_status); }; }; then
31684   eval "$as_ac_var=yes"
31685 else
31686   echo "$as_me: failed program was:" >&5
31687 sed 's/^/| /' conftest.$ac_ext >&5
31688
31689 eval "$as_ac_var=no"
31690 fi
31691 rm -f conftest.err conftest.$ac_objext \
31692       conftest$ac_exeext conftest.$ac_ext
31693 fi
31694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31696 if test `eval echo '${'$as_ac_var'}'` = yes; then
31697   cat >>confdefs.h <<_ACEOF
31698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31699 _ACEOF
31700
31701 fi
31702 done
31703
31704   LIBS=$fetish_saved_libs
31705
31706
31707     # Need clock_settime.
31708
31709
31710
31711     :
31712
31713
31714
31715   :
31716
31717
31718
31719
31720
31721
31722
31723
31724
31725 for ac_func in strcasecmp
31726 do
31727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31728 echo "$as_me:$LINENO: checking for $ac_func" >&5
31729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31730 if eval "test \"\${$as_ac_var+set}\" = set"; then
31731   echo $ECHO_N "(cached) $ECHO_C" >&6
31732 else
31733   cat >conftest.$ac_ext <<_ACEOF
31734 /* confdefs.h.  */
31735 _ACEOF
31736 cat confdefs.h >>conftest.$ac_ext
31737 cat >>conftest.$ac_ext <<_ACEOF
31738 /* end confdefs.h.  */
31739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31741 #define $ac_func innocuous_$ac_func
31742
31743 /* System header to define __stub macros and hopefully few prototypes,
31744     which can conflict with char $ac_func (); below.
31745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31746     <limits.h> exists even on freestanding compilers.  */
31747
31748 #ifdef __STDC__
31749 # include <limits.h>
31750 #else
31751 # include <assert.h>
31752 #endif
31753
31754 #undef $ac_func
31755
31756 /* Override any gcc2 internal prototype to avoid an error.  */
31757 #ifdef __cplusplus
31758 extern "C"
31759 {
31760 #endif
31761 /* We use char because int might match the return type of a gcc2
31762    builtin and then its argument prototype would still apply.  */
31763 char $ac_func ();
31764 /* The GNU C library defines this for functions which it implements
31765     to always fail with ENOSYS.  Some functions are actually named
31766     something starting with __ and the normal name is an alias.  */
31767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31768 choke me
31769 #else
31770 char (*f) () = $ac_func;
31771 #endif
31772 #ifdef __cplusplus
31773 }
31774 #endif
31775
31776 int
31777 main ()
31778 {
31779 return f != $ac_func;
31780   ;
31781   return 0;
31782 }
31783 _ACEOF
31784 rm -f conftest.$ac_objext conftest$ac_exeext
31785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31786   (eval $ac_link) 2>conftest.er1
31787   ac_status=$?
31788   grep -v '^ *+' conftest.er1 >conftest.err
31789   rm -f conftest.er1
31790   cat conftest.err >&5
31791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31792   (exit $ac_status); } &&
31793          { ac_try='test -z "$ac_c_werror_flag"
31794                          || test ! -s conftest.err'
31795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31796   (eval $ac_try) 2>&5
31797   ac_status=$?
31798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799   (exit $ac_status); }; } &&
31800          { ac_try='test -s conftest$ac_exeext'
31801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31802   (eval $ac_try) 2>&5
31803   ac_status=$?
31804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805   (exit $ac_status); }; }; then
31806   eval "$as_ac_var=yes"
31807 else
31808   echo "$as_me: failed program was:" >&5
31809 sed 's/^/| /' conftest.$ac_ext >&5
31810
31811 eval "$as_ac_var=no"
31812 fi
31813 rm -f conftest.err conftest.$ac_objext \
31814       conftest$ac_exeext conftest.$ac_ext
31815 fi
31816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31818 if test `eval echo '${'$as_ac_var'}'` = yes; then
31819   cat >>confdefs.h <<_ACEOF
31820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31821 _ACEOF
31822
31823 else
31824   case $LIBOBJS in
31825     "$ac_func.$ac_objext"   | \
31826   *" $ac_func.$ac_objext"   | \
31827     "$ac_func.$ac_objext "* | \
31828   *" $ac_func.$ac_objext "* ) ;;
31829   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
31830 esac
31831
31832 fi
31833 done
31834
31835
31836   if test $ac_cv_func_strcasecmp = no; then
31837
31838   :
31839
31840   fi
31841
31842
31843
31844 for ac_func in strncasecmp
31845 do
31846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31847 echo "$as_me:$LINENO: checking for $ac_func" >&5
31848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31849 if eval "test \"\${$as_ac_var+set}\" = set"; then
31850   echo $ECHO_N "(cached) $ECHO_C" >&6
31851 else
31852   cat >conftest.$ac_ext <<_ACEOF
31853 /* confdefs.h.  */
31854 _ACEOF
31855 cat confdefs.h >>conftest.$ac_ext
31856 cat >>conftest.$ac_ext <<_ACEOF
31857 /* end confdefs.h.  */
31858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31860 #define $ac_func innocuous_$ac_func
31861
31862 /* System header to define __stub macros and hopefully few prototypes,
31863     which can conflict with char $ac_func (); below.
31864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31865     <limits.h> exists even on freestanding compilers.  */
31866
31867 #ifdef __STDC__
31868 # include <limits.h>
31869 #else
31870 # include <assert.h>
31871 #endif
31872
31873 #undef $ac_func
31874
31875 /* Override any gcc2 internal prototype to avoid an error.  */
31876 #ifdef __cplusplus
31877 extern "C"
31878 {
31879 #endif
31880 /* We use char because int might match the return type of a gcc2
31881    builtin and then its argument prototype would still apply.  */
31882 char $ac_func ();
31883 /* The GNU C library defines this for functions which it implements
31884     to always fail with ENOSYS.  Some functions are actually named
31885     something starting with __ and the normal name is an alias.  */
31886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31887 choke me
31888 #else
31889 char (*f) () = $ac_func;
31890 #endif
31891 #ifdef __cplusplus
31892 }
31893 #endif
31894
31895 int
31896 main ()
31897 {
31898 return f != $ac_func;
31899   ;
31900   return 0;
31901 }
31902 _ACEOF
31903 rm -f conftest.$ac_objext conftest$ac_exeext
31904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31905   (eval $ac_link) 2>conftest.er1
31906   ac_status=$?
31907   grep -v '^ *+' conftest.er1 >conftest.err
31908   rm -f conftest.er1
31909   cat conftest.err >&5
31910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911   (exit $ac_status); } &&
31912          { ac_try='test -z "$ac_c_werror_flag"
31913                          || test ! -s conftest.err'
31914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31915   (eval $ac_try) 2>&5
31916   ac_status=$?
31917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918   (exit $ac_status); }; } &&
31919          { ac_try='test -s conftest$ac_exeext'
31920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31921   (eval $ac_try) 2>&5
31922   ac_status=$?
31923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924   (exit $ac_status); }; }; then
31925   eval "$as_ac_var=yes"
31926 else
31927   echo "$as_me: failed program was:" >&5
31928 sed 's/^/| /' conftest.$ac_ext >&5
31929
31930 eval "$as_ac_var=no"
31931 fi
31932 rm -f conftest.err conftest.$ac_objext \
31933       conftest$ac_exeext conftest.$ac_ext
31934 fi
31935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31937 if test `eval echo '${'$as_ac_var'}'` = yes; then
31938   cat >>confdefs.h <<_ACEOF
31939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31940 _ACEOF
31941
31942 else
31943   case $LIBOBJS in
31944     "$ac_func.$ac_objext"   | \
31945   *" $ac_func.$ac_objext"   | \
31946     "$ac_func.$ac_objext "* | \
31947   *" $ac_func.$ac_objext "* ) ;;
31948   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
31949 esac
31950
31951 fi
31952 done
31953
31954
31955   if test $ac_cv_func_strncasecmp = no; then
31956
31957   :
31958
31959   fi
31960
31961
31962
31963
31964
31965   :
31966
31967
31968
31969
31970
31971
31972
31973
31974
31975
31976   :
31977
31978
31979
31980
31981
31982   echo "$as_me:$LINENO: checking for struct timespec" >&5
31983 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
31984 if test "${fu_cv_sys_struct_timespec+set}" = set; then
31985   echo $ECHO_N "(cached) $ECHO_C" >&6
31986 else
31987   cat >conftest.$ac_ext <<_ACEOF
31988 /* confdefs.h.  */
31989 _ACEOF
31990 cat confdefs.h >>conftest.$ac_ext
31991 cat >>conftest.$ac_ext <<_ACEOF
31992 /* end confdefs.h.  */
31993
31994 #      if TIME_WITH_SYS_TIME
31995 #       include <sys/time.h>
31996 #       include <time.h>
31997 #      else
31998 #       if HAVE_SYS_TIME_H
31999 #        include <sys/time.h>
32000 #       else
32001 #        include <time.h>
32002 #       endif
32003 #      endif
32004
32005 int
32006 main ()
32007 {
32008 static struct timespec x; x.tv_sec = x.tv_nsec;
32009   ;
32010   return 0;
32011 }
32012 _ACEOF
32013 rm -f conftest.$ac_objext
32014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32015   (eval $ac_compile) 2>conftest.er1
32016   ac_status=$?
32017   grep -v '^ *+' conftest.er1 >conftest.err
32018   rm -f conftest.er1
32019   cat conftest.err >&5
32020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021   (exit $ac_status); } &&
32022          { ac_try='test -z "$ac_c_werror_flag"
32023                          || test ! -s conftest.err'
32024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32025   (eval $ac_try) 2>&5
32026   ac_status=$?
32027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028   (exit $ac_status); }; } &&
32029          { ac_try='test -s conftest.$ac_objext'
32030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32031   (eval $ac_try) 2>&5
32032   ac_status=$?
32033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034   (exit $ac_status); }; }; then
32035   fu_cv_sys_struct_timespec=yes
32036 else
32037   echo "$as_me: failed program was:" >&5
32038 sed 's/^/| /' conftest.$ac_ext >&5
32039
32040 fu_cv_sys_struct_timespec=no
32041 fi
32042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32043
32044 fi
32045 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
32046 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
32047
32048   if test $fu_cv_sys_struct_timespec = yes; then
32049
32050 cat >>confdefs.h <<\_ACEOF
32051 #define HAVE_STRUCT_TIMESPEC 1
32052 _ACEOF
32053
32054   fi
32055
32056   echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
32057 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
32058 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
32059   echo $ECHO_N "(cached) $ECHO_C" >&6
32060 else
32061   ac_save_CPPFLAGS="$CPPFLAGS"
32062     ac_cv_struct_st_mtim_nsec=no
32063     # tv_nsec -- the usual case
32064     # _tv_nsec -- Solaris 2.6, if
32065     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
32066     #    && !defined __EXTENSIONS__)
32067     # st__tim.tv_nsec -- UnixWare 2.1.2
32068     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
32069       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
32070       cat >conftest.$ac_ext <<_ACEOF
32071 /* confdefs.h.  */
32072 _ACEOF
32073 cat confdefs.h >>conftest.$ac_ext
32074 cat >>conftest.$ac_ext <<_ACEOF
32075 /* end confdefs.h.  */
32076 #include <sys/types.h>
32077 #include <sys/stat.h>
32078 int
32079 main ()
32080 {
32081 struct stat s; s.st_mtim.ST_MTIM_NSEC;
32082   ;
32083   return 0;
32084 }
32085 _ACEOF
32086 rm -f conftest.$ac_objext
32087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32088   (eval $ac_compile) 2>conftest.er1
32089   ac_status=$?
32090   grep -v '^ *+' conftest.er1 >conftest.err
32091   rm -f conftest.er1
32092   cat conftest.err >&5
32093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094   (exit $ac_status); } &&
32095          { ac_try='test -z "$ac_c_werror_flag"
32096                          || test ! -s conftest.err'
32097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32098   (eval $ac_try) 2>&5
32099   ac_status=$?
32100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101   (exit $ac_status); }; } &&
32102          { ac_try='test -s conftest.$ac_objext'
32103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32104   (eval $ac_try) 2>&5
32105   ac_status=$?
32106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107   (exit $ac_status); }; }; then
32108   ac_cv_struct_st_mtim_nsec=$ac_val; break
32109 else
32110   echo "$as_me: failed program was:" >&5
32111 sed 's/^/| /' conftest.$ac_ext >&5
32112
32113 fi
32114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32115     done
32116     CPPFLAGS="$ac_save_CPPFLAGS"
32117 fi
32118 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
32119 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
32120
32121   if test $ac_cv_struct_st_mtim_nsec != no; then
32122
32123 cat >>confdefs.h <<_ACEOF
32124 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
32125 _ACEOF
32126
32127   fi
32128
32129
32130
32131
32132
32133   echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
32134 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
32135 if test "${ac_cv_have_decl_nanosleep+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 #include <time.h>
32145
32146 int
32147 main ()
32148 {
32149 #ifndef nanosleep
32150   char *p = (char *) nanosleep;
32151 #endif
32152
32153   ;
32154   return 0;
32155 }
32156 _ACEOF
32157 rm -f conftest.$ac_objext
32158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32159   (eval $ac_compile) 2>conftest.er1
32160   ac_status=$?
32161   grep -v '^ *+' conftest.er1 >conftest.err
32162   rm -f conftest.er1
32163   cat conftest.err >&5
32164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165   (exit $ac_status); } &&
32166          { ac_try='test -z "$ac_c_werror_flag"
32167                          || test ! -s conftest.err'
32168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32169   (eval $ac_try) 2>&5
32170   ac_status=$?
32171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172   (exit $ac_status); }; } &&
32173          { ac_try='test -s conftest.$ac_objext'
32174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32175   (eval $ac_try) 2>&5
32176   ac_status=$?
32177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178   (exit $ac_status); }; }; then
32179   ac_cv_have_decl_nanosleep=yes
32180 else
32181   echo "$as_me: failed program was:" >&5
32182 sed 's/^/| /' conftest.$ac_ext >&5
32183
32184 ac_cv_have_decl_nanosleep=no
32185 fi
32186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32187 fi
32188 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
32189 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
32190 if test $ac_cv_have_decl_nanosleep = yes; then
32191
32192 cat >>confdefs.h <<_ACEOF
32193 #define HAVE_DECL_NANOSLEEP 1
32194 _ACEOF
32195
32196
32197 else
32198   cat >>confdefs.h <<_ACEOF
32199 #define HAVE_DECL_NANOSLEEP 0
32200 _ACEOF
32201
32202
32203 fi
32204
32205
32206
32207
32208     :
32209
32210
32211
32212
32213   :
32214
32215
32216
32217
32218
32219
32220
32221
32222
32223
32224
32225
32226
32227   :
32228
32229
32230
32231
32232
32233
32234
32235
32236
32237
32238   echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
32239 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6
32240 if test "${gl_cv_func_working_utimes+set}" = set; then
32241   echo $ECHO_N "(cached) $ECHO_C" >&6
32242 else
32243
32244   if test "$cross_compiling" = yes; then
32245   gl_cv_func_working_utimes=no
32246 else
32247   cat >conftest.$ac_ext <<_ACEOF
32248 /* confdefs.h.  */
32249 _ACEOF
32250 cat confdefs.h >>conftest.$ac_ext
32251 cat >>conftest.$ac_ext <<_ACEOF
32252 /* end confdefs.h.  */
32253
32254 #include <sys/types.h>
32255 #include <sys/stat.h>
32256 #include <sys/time.h>
32257 #include <unistd.h>
32258 #include <stdlib.h>
32259 #include <stdio.h>
32260 #include <utime.h>
32261
32262 int
32263 main ()
32264 {
32265   static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
32266   struct stat sbuf;
32267   char const *file = "conftest.utimes";
32268   FILE *f;
32269
32270   exit ( ! ((f = fopen (file, "w"))
32271             && fclose (f) == 0
32272             && utimes (file, timeval) == 0
32273             && lstat (file, &sbuf) == 0
32274             && sbuf.st_atime == timeval[0].tv_sec
32275             && sbuf.st_mtime == timeval[1].tv_sec) );
32276 }
32277
32278 _ACEOF
32279 rm -f conftest$ac_exeext
32280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32281   (eval $ac_link) 2>&5
32282   ac_status=$?
32283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32286   (eval $ac_try) 2>&5
32287   ac_status=$?
32288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289   (exit $ac_status); }; }; then
32290   gl_cv_func_working_utimes=yes
32291 else
32292   echo "$as_me: program exited with status $ac_status" >&5
32293 echo "$as_me: failed program was:" >&5
32294 sed 's/^/| /' conftest.$ac_ext >&5
32295
32296 ( exit $ac_status )
32297 gl_cv_func_working_utimes=no
32298 fi
32299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32300 fi
32301 fi
32302 echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
32303 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6
32304
32305   if test $gl_cv_func_working_utimes = yes; then
32306
32307 cat >>confdefs.h <<\_ACEOF
32308 #define HAVE_WORKING_UTIMES 1
32309 _ACEOF
32310
32311   fi
32312
32313
32314
32315
32316
32317
32318
32319
32320 for ac_header in stdlib.h
32321 do
32322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32324   echo "$as_me:$LINENO: checking for $ac_header" >&5
32325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32327   echo $ECHO_N "(cached) $ECHO_C" >&6
32328 fi
32329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32331 else
32332   # Is the header compilable?
32333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32335 cat >conftest.$ac_ext <<_ACEOF
32336 /* confdefs.h.  */
32337 _ACEOF
32338 cat confdefs.h >>conftest.$ac_ext
32339 cat >>conftest.$ac_ext <<_ACEOF
32340 /* end confdefs.h.  */
32341 $ac_includes_default
32342 #include <$ac_header>
32343 _ACEOF
32344 rm -f conftest.$ac_objext
32345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32346   (eval $ac_compile) 2>conftest.er1
32347   ac_status=$?
32348   grep -v '^ *+' conftest.er1 >conftest.err
32349   rm -f conftest.er1
32350   cat conftest.err >&5
32351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352   (exit $ac_status); } &&
32353          { ac_try='test -z "$ac_c_werror_flag"
32354                          || test ! -s conftest.err'
32355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32356   (eval $ac_try) 2>&5
32357   ac_status=$?
32358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359   (exit $ac_status); }; } &&
32360          { ac_try='test -s conftest.$ac_objext'
32361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32362   (eval $ac_try) 2>&5
32363   ac_status=$?
32364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365   (exit $ac_status); }; }; then
32366   ac_header_compiler=yes
32367 else
32368   echo "$as_me: failed program was:" >&5
32369 sed 's/^/| /' conftest.$ac_ext >&5
32370
32371 ac_header_compiler=no
32372 fi
32373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32375 echo "${ECHO_T}$ac_header_compiler" >&6
32376
32377 # Is the header present?
32378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32380 cat >conftest.$ac_ext <<_ACEOF
32381 /* confdefs.h.  */
32382 _ACEOF
32383 cat confdefs.h >>conftest.$ac_ext
32384 cat >>conftest.$ac_ext <<_ACEOF
32385 /* end confdefs.h.  */
32386 #include <$ac_header>
32387 _ACEOF
32388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32389   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32390   ac_status=$?
32391   grep -v '^ *+' conftest.er1 >conftest.err
32392   rm -f conftest.er1
32393   cat conftest.err >&5
32394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395   (exit $ac_status); } >/dev/null; then
32396   if test -s conftest.err; then
32397     ac_cpp_err=$ac_c_preproc_warn_flag
32398     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32399   else
32400     ac_cpp_err=
32401   fi
32402 else
32403   ac_cpp_err=yes
32404 fi
32405 if test -z "$ac_cpp_err"; then
32406   ac_header_preproc=yes
32407 else
32408   echo "$as_me: failed program was:" >&5
32409 sed 's/^/| /' conftest.$ac_ext >&5
32410
32411   ac_header_preproc=no
32412 fi
32413 rm -f conftest.err conftest.$ac_ext
32414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32415 echo "${ECHO_T}$ac_header_preproc" >&6
32416
32417 # So?  What about this header?
32418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32419   yes:no: )
32420     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32424     ac_header_preproc=yes
32425     ;;
32426   no:yes:* )
32427     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32429     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32430 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32431     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32433     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32434 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32437     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32439     (
32440       cat <<\_ASBOX
32441 ## ------------------------------------ ##
32442 ## Report this to bug-coreutils@gnu.org ##
32443 ## ------------------------------------ ##
32444 _ASBOX
32445     ) |
32446       sed "s/^/$as_me: WARNING:     /" >&2
32447     ;;
32448 esac
32449 echo "$as_me:$LINENO: checking for $ac_header" >&5
32450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32452   echo $ECHO_N "(cached) $ECHO_C" >&6
32453 else
32454   eval "$as_ac_Header=\$ac_header_preproc"
32455 fi
32456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32458
32459 fi
32460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32461   cat >>confdefs.h <<_ACEOF
32462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32463 _ACEOF
32464
32465 fi
32466
32467 done
32468
32469 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
32470 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
32471 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
32472   echo $ECHO_N "(cached) $ECHO_C" >&6
32473 else
32474   if test "$cross_compiling" = yes; then
32475   ac_cv_func_malloc_0_nonnull=no
32476 else
32477   cat >conftest.$ac_ext <<_ACEOF
32478 /* confdefs.h.  */
32479 _ACEOF
32480 cat confdefs.h >>conftest.$ac_ext
32481 cat >>conftest.$ac_ext <<_ACEOF
32482 /* end confdefs.h.  */
32483 #if STDC_HEADERS || HAVE_STDLIB_H
32484 # include <stdlib.h>
32485 #else
32486 char *malloc ();
32487 #endif
32488
32489 int
32490 main ()
32491 {
32492 exit (malloc (0) ? 0 : 1);
32493   ;
32494   return 0;
32495 }
32496 _ACEOF
32497 rm -f conftest$ac_exeext
32498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32499   (eval $ac_link) 2>&5
32500   ac_status=$?
32501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32504   (eval $ac_try) 2>&5
32505   ac_status=$?
32506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507   (exit $ac_status); }; }; then
32508   ac_cv_func_malloc_0_nonnull=yes
32509 else
32510   echo "$as_me: program exited with status $ac_status" >&5
32511 echo "$as_me: failed program was:" >&5
32512 sed 's/^/| /' conftest.$ac_ext >&5
32513
32514 ( exit $ac_status )
32515 ac_cv_func_malloc_0_nonnull=no
32516 fi
32517 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32518 fi
32519 fi
32520 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
32521 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
32522 if test $ac_cv_func_malloc_0_nonnull = yes; then
32523
32524 cat >>confdefs.h <<\_ACEOF
32525 #define HAVE_MALLOC 1
32526 _ACEOF
32527
32528 else
32529   cat >>confdefs.h <<\_ACEOF
32530 #define HAVE_MALLOC 0
32531 _ACEOF
32532
32533    case $LIBOBJS in
32534     "malloc.$ac_objext"   | \
32535   *" malloc.$ac_objext"   | \
32536     "malloc.$ac_objext "* | \
32537   *" malloc.$ac_objext "* ) ;;
32538   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
32539 esac
32540
32541
32542 cat >>confdefs.h <<\_ACEOF
32543 #define malloc rpl_malloc
32544 _ACEOF
32545
32546 fi
32547
32548
32549
32550
32551
32552     if test X"$ac_cv_func_malloc_0_nonnull" = Xno || test X"$ac_cv_func_malloc_works" = Xno; then
32553
32554   :
32555
32556   fi
32557
32558
32559 for ac_header in stdlib.h
32560 do
32561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32563   echo "$as_me:$LINENO: checking for $ac_header" >&5
32564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32566   echo $ECHO_N "(cached) $ECHO_C" >&6
32567 fi
32568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32570 else
32571   # Is the header compilable?
32572 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32574 cat >conftest.$ac_ext <<_ACEOF
32575 /* confdefs.h.  */
32576 _ACEOF
32577 cat confdefs.h >>conftest.$ac_ext
32578 cat >>conftest.$ac_ext <<_ACEOF
32579 /* end confdefs.h.  */
32580 $ac_includes_default
32581 #include <$ac_header>
32582 _ACEOF
32583 rm -f conftest.$ac_objext
32584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32585   (eval $ac_compile) 2>conftest.er1
32586   ac_status=$?
32587   grep -v '^ *+' conftest.er1 >conftest.err
32588   rm -f conftest.er1
32589   cat conftest.err >&5
32590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591   (exit $ac_status); } &&
32592          { ac_try='test -z "$ac_c_werror_flag"
32593                          || test ! -s conftest.err'
32594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32595   (eval $ac_try) 2>&5
32596   ac_status=$?
32597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598   (exit $ac_status); }; } &&
32599          { ac_try='test -s conftest.$ac_objext'
32600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32601   (eval $ac_try) 2>&5
32602   ac_status=$?
32603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604   (exit $ac_status); }; }; then
32605   ac_header_compiler=yes
32606 else
32607   echo "$as_me: failed program was:" >&5
32608 sed 's/^/| /' conftest.$ac_ext >&5
32609
32610 ac_header_compiler=no
32611 fi
32612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32613 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32614 echo "${ECHO_T}$ac_header_compiler" >&6
32615
32616 # Is the header present?
32617 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32619 cat >conftest.$ac_ext <<_ACEOF
32620 /* confdefs.h.  */
32621 _ACEOF
32622 cat confdefs.h >>conftest.$ac_ext
32623 cat >>conftest.$ac_ext <<_ACEOF
32624 /* end confdefs.h.  */
32625 #include <$ac_header>
32626 _ACEOF
32627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32628   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32629   ac_status=$?
32630   grep -v '^ *+' conftest.er1 >conftest.err
32631   rm -f conftest.er1
32632   cat conftest.err >&5
32633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634   (exit $ac_status); } >/dev/null; then
32635   if test -s conftest.err; then
32636     ac_cpp_err=$ac_c_preproc_warn_flag
32637     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32638   else
32639     ac_cpp_err=
32640   fi
32641 else
32642   ac_cpp_err=yes
32643 fi
32644 if test -z "$ac_cpp_err"; then
32645   ac_header_preproc=yes
32646 else
32647   echo "$as_me: failed program was:" >&5
32648 sed 's/^/| /' conftest.$ac_ext >&5
32649
32650   ac_header_preproc=no
32651 fi
32652 rm -f conftest.err conftest.$ac_ext
32653 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32654 echo "${ECHO_T}$ac_header_preproc" >&6
32655
32656 # So?  What about this header?
32657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32658   yes:no: )
32659     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32661     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32663     ac_header_preproc=yes
32664     ;;
32665   no:yes:* )
32666     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32668     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32669 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32670     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32672     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32673 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32674     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32676     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32678     (
32679       cat <<\_ASBOX
32680 ## ------------------------------------ ##
32681 ## Report this to bug-coreutils@gnu.org ##
32682 ## ------------------------------------ ##
32683 _ASBOX
32684     ) |
32685       sed "s/^/$as_me: WARNING:     /" >&2
32686     ;;
32687 esac
32688 echo "$as_me:$LINENO: checking for $ac_header" >&5
32689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32691   echo $ECHO_N "(cached) $ECHO_C" >&6
32692 else
32693   eval "$as_ac_Header=\$ac_header_preproc"
32694 fi
32695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32697
32698 fi
32699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32700   cat >>confdefs.h <<_ACEOF
32701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32702 _ACEOF
32703
32704 fi
32705
32706 done
32707
32708 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
32709 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
32710 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
32711   echo $ECHO_N "(cached) $ECHO_C" >&6
32712 else
32713   if test "$cross_compiling" = yes; then
32714   ac_cv_func_realloc_0_nonnull=no
32715 else
32716   cat >conftest.$ac_ext <<_ACEOF
32717 /* confdefs.h.  */
32718 _ACEOF
32719 cat confdefs.h >>conftest.$ac_ext
32720 cat >>conftest.$ac_ext <<_ACEOF
32721 /* end confdefs.h.  */
32722 #if STDC_HEADERS || HAVE_STDLIB_H
32723 # include <stdlib.h>
32724 #else
32725 char *realloc ();
32726 #endif
32727
32728 int
32729 main ()
32730 {
32731 exit (realloc (0, 0) ? 0 : 1);
32732   ;
32733   return 0;
32734 }
32735 _ACEOF
32736 rm -f conftest$ac_exeext
32737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32738   (eval $ac_link) 2>&5
32739   ac_status=$?
32740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32743   (eval $ac_try) 2>&5
32744   ac_status=$?
32745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746   (exit $ac_status); }; }; then
32747   ac_cv_func_realloc_0_nonnull=yes
32748 else
32749   echo "$as_me: program exited with status $ac_status" >&5
32750 echo "$as_me: failed program was:" >&5
32751 sed 's/^/| /' conftest.$ac_ext >&5
32752
32753 ( exit $ac_status )
32754 ac_cv_func_realloc_0_nonnull=no
32755 fi
32756 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32757 fi
32758 fi
32759 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
32760 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
32761 if test $ac_cv_func_realloc_0_nonnull = yes; then
32762
32763 cat >>confdefs.h <<\_ACEOF
32764 #define HAVE_REALLOC 1
32765 _ACEOF
32766
32767 else
32768   cat >>confdefs.h <<\_ACEOF
32769 #define HAVE_REALLOC 0
32770 _ACEOF
32771
32772    case $LIBOBJS in
32773     "realloc.$ac_objext"   | \
32774   *" realloc.$ac_objext"   | \
32775     "realloc.$ac_objext "* | \
32776   *" realloc.$ac_objext "* ) ;;
32777   *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
32778 esac
32779
32780
32781 cat >>confdefs.h <<\_ACEOF
32782 #define realloc rpl_realloc
32783 _ACEOF
32784
32785 fi
32786
32787
32788
32789
32790
32791     if test X"$ac_cv_func_realloc_0_nonnull" = Xno || test X"$ac_cv_func_realloc_works" = Xno; then
32792
32793   :
32794
32795   fi
32796
32797
32798
32799   :
32800
32801
32802
32803
32804
32805   :
32806
32807
32808   :
32809
32810
32811
32812
32813   :
32814
32815
32816
32817
32818
32819
32820 for ac_func in getcwd
32821 do
32822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32823 echo "$as_me:$LINENO: checking for $ac_func" >&5
32824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32825 if eval "test \"\${$as_ac_var+set}\" = set"; then
32826   echo $ECHO_N "(cached) $ECHO_C" >&6
32827 else
32828   cat >conftest.$ac_ext <<_ACEOF
32829 /* confdefs.h.  */
32830 _ACEOF
32831 cat confdefs.h >>conftest.$ac_ext
32832 cat >>conftest.$ac_ext <<_ACEOF
32833 /* end confdefs.h.  */
32834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32836 #define $ac_func innocuous_$ac_func
32837
32838 /* System header to define __stub macros and hopefully few prototypes,
32839     which can conflict with char $ac_func (); below.
32840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32841     <limits.h> exists even on freestanding compilers.  */
32842
32843 #ifdef __STDC__
32844 # include <limits.h>
32845 #else
32846 # include <assert.h>
32847 #endif
32848
32849 #undef $ac_func
32850
32851 /* Override any gcc2 internal prototype to avoid an error.  */
32852 #ifdef __cplusplus
32853 extern "C"
32854 {
32855 #endif
32856 /* We use char because int might match the return type of a gcc2
32857    builtin and then its argument prototype would still apply.  */
32858 char $ac_func ();
32859 /* The GNU C library defines this for functions which it implements
32860     to always fail with ENOSYS.  Some functions are actually named
32861     something starting with __ and the normal name is an alias.  */
32862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32863 choke me
32864 #else
32865 char (*f) () = $ac_func;
32866 #endif
32867 #ifdef __cplusplus
32868 }
32869 #endif
32870
32871 int
32872 main ()
32873 {
32874 return f != $ac_func;
32875   ;
32876   return 0;
32877 }
32878 _ACEOF
32879 rm -f conftest.$ac_objext conftest$ac_exeext
32880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32881   (eval $ac_link) 2>conftest.er1
32882   ac_status=$?
32883   grep -v '^ *+' conftest.er1 >conftest.err
32884   rm -f conftest.er1
32885   cat conftest.err >&5
32886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887   (exit $ac_status); } &&
32888          { ac_try='test -z "$ac_c_werror_flag"
32889                          || test ! -s conftest.err'
32890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32891   (eval $ac_try) 2>&5
32892   ac_status=$?
32893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894   (exit $ac_status); }; } &&
32895          { ac_try='test -s conftest$ac_exeext'
32896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32897   (eval $ac_try) 2>&5
32898   ac_status=$?
32899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900   (exit $ac_status); }; }; then
32901   eval "$as_ac_var=yes"
32902 else
32903   echo "$as_me: failed program was:" >&5
32904 sed 's/^/| /' conftest.$ac_ext >&5
32905
32906 eval "$as_ac_var=no"
32907 fi
32908 rm -f conftest.err conftest.$ac_objext \
32909       conftest$ac_exeext conftest.$ac_ext
32910 fi
32911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32913 if test `eval echo '${'$as_ac_var'}'` = yes; then
32914   cat >>confdefs.h <<_ACEOF
32915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32916 _ACEOF
32917
32918 fi
32919 done
32920
32921
32922
32923   :
32924
32925
32926
32927
32928
32929    echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
32930 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
32931 if test "${ac_cv_func_getcwd_null+set}" = set; then
32932   echo $ECHO_N "(cached) $ECHO_C" >&6
32933 else
32934   if test "$cross_compiling" = yes; then
32935   ac_cv_func_getcwd_null=no
32936 else
32937   cat >conftest.$ac_ext <<_ACEOF
32938 /* confdefs.h.  */
32939 _ACEOF
32940 cat confdefs.h >>conftest.$ac_ext
32941 cat >>conftest.$ac_ext <<_ACEOF
32942 /* end confdefs.h.  */
32943
32944 #        include <stdlib.h>
32945 #        ifdef HAVE_UNISTD_H
32946 #         include <unistd.h>
32947 #        endif
32948 #        ifndef getcwd
32949          char *getcwd ();
32950 #        endif
32951          int
32952          main ()
32953          {
32954            if (chdir ("/") != 0)
32955              exit (1);
32956            else
32957              {
32958                char *f = getcwd (NULL, 0);
32959                exit (! (f && f[0] == '/' && !f[1]));
32960              }
32961          }
32962 _ACEOF
32963 rm -f conftest$ac_exeext
32964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32965   (eval $ac_link) 2>&5
32966   ac_status=$?
32967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32970   (eval $ac_try) 2>&5
32971   ac_status=$?
32972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973   (exit $ac_status); }; }; then
32974   ac_cv_func_getcwd_null=yes
32975 else
32976   echo "$as_me: program exited with status $ac_status" >&5
32977 echo "$as_me: failed program was:" >&5
32978 sed 's/^/| /' conftest.$ac_ext >&5
32979
32980 ( exit $ac_status )
32981 ac_cv_func_getcwd_null=no
32982 fi
32983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32984 fi
32985 fi
32986 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
32987 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
32988    if test $ac_cv_func_getcwd_null = yes; then
32989
32990 cat >>confdefs.h <<\_ACEOF
32991 #define HAVE_GETCWD_NULL 1
32992 _ACEOF
32993
32994    fi
32995
32996
32997
32998
32999   :
33000
33001
33002
33003
33004
33005
33006
33007   :
33008
33009
33010
33011
33012
33013
33014
33015
33016
33017   :
33018
33019
33020
33021
33022
33023   echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
33024 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
33025 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
33026   echo $ECHO_N "(cached) $ECHO_C" >&6
33027 else
33028   cat >conftest.$ac_ext <<_ACEOF
33029 /* confdefs.h.  */
33030 _ACEOF
33031 cat confdefs.h >>conftest.$ac_ext
33032 cat >>conftest.$ac_ext <<_ACEOF
33033 /* end confdefs.h.  */
33034 $ac_includes_default
33035 int
33036 main ()
33037 {
33038 #ifndef strtoimax
33039   char *p = (char *) strtoimax;
33040 #endif
33041
33042   ;
33043   return 0;
33044 }
33045 _ACEOF
33046 rm -f conftest.$ac_objext
33047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33048   (eval $ac_compile) 2>conftest.er1
33049   ac_status=$?
33050   grep -v '^ *+' conftest.er1 >conftest.err
33051   rm -f conftest.er1
33052   cat conftest.err >&5
33053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054   (exit $ac_status); } &&
33055          { ac_try='test -z "$ac_c_werror_flag"
33056                          || test ! -s conftest.err'
33057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33058   (eval $ac_try) 2>&5
33059   ac_status=$?
33060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33061   (exit $ac_status); }; } &&
33062          { ac_try='test -s conftest.$ac_objext'
33063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33064   (eval $ac_try) 2>&5
33065   ac_status=$?
33066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33067   (exit $ac_status); }; }; then
33068   ac_cv_have_decl_strtoimax=yes
33069 else
33070   echo "$as_me: failed program was:" >&5
33071 sed 's/^/| /' conftest.$ac_ext >&5
33072
33073 ac_cv_have_decl_strtoimax=no
33074 fi
33075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33076 fi
33077 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
33078 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
33079 if test $ac_cv_have_decl_strtoimax = yes; then
33080
33081 cat >>confdefs.h <<_ACEOF
33082 #define HAVE_DECL_STRTOIMAX 1
33083 _ACEOF
33084
33085
33086 else
33087   cat >>confdefs.h <<_ACEOF
33088 #define HAVE_DECL_STRTOIMAX 0
33089 _ACEOF
33090
33091
33092 fi
33093 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
33094 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
33095 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
33096   echo $ECHO_N "(cached) $ECHO_C" >&6
33097 else
33098   cat >conftest.$ac_ext <<_ACEOF
33099 /* confdefs.h.  */
33100 _ACEOF
33101 cat confdefs.h >>conftest.$ac_ext
33102 cat >>conftest.$ac_ext <<_ACEOF
33103 /* end confdefs.h.  */
33104 $ac_includes_default
33105 int
33106 main ()
33107 {
33108 #ifndef strtoumax
33109   char *p = (char *) strtoumax;
33110 #endif
33111
33112   ;
33113   return 0;
33114 }
33115 _ACEOF
33116 rm -f conftest.$ac_objext
33117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33118   (eval $ac_compile) 2>conftest.er1
33119   ac_status=$?
33120   grep -v '^ *+' conftest.er1 >conftest.err
33121   rm -f conftest.er1
33122   cat conftest.err >&5
33123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124   (exit $ac_status); } &&
33125          { ac_try='test -z "$ac_c_werror_flag"
33126                          || test ! -s conftest.err'
33127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33128   (eval $ac_try) 2>&5
33129   ac_status=$?
33130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131   (exit $ac_status); }; } &&
33132          { ac_try='test -s conftest.$ac_objext'
33133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33134   (eval $ac_try) 2>&5
33135   ac_status=$?
33136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137   (exit $ac_status); }; }; then
33138   ac_cv_have_decl_strtoumax=yes
33139 else
33140   echo "$as_me: failed program was:" >&5
33141 sed 's/^/| /' conftest.$ac_ext >&5
33142
33143 ac_cv_have_decl_strtoumax=no
33144 fi
33145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33146 fi
33147 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
33148 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
33149 if test $ac_cv_have_decl_strtoumax = yes; then
33150
33151 cat >>confdefs.h <<_ACEOF
33152 #define HAVE_DECL_STRTOUMAX 1
33153 _ACEOF
33154
33155
33156 else
33157   cat >>confdefs.h <<_ACEOF
33158 #define HAVE_DECL_STRTOUMAX 0
33159 _ACEOF
33160
33161
33162 fi
33163
33164
33165
33166
33167
33168
33169
33170
33171
33172
33173
33174     :
33175
33176
33177       echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
33178 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
33179 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
33180   echo $ECHO_N "(cached) $ECHO_C" >&6
33181 else
33182   cat >conftest.$ac_ext <<_ACEOF
33183 /* confdefs.h.  */
33184 _ACEOF
33185 cat confdefs.h >>conftest.$ac_ext
33186 cat >>conftest.$ac_ext <<_ACEOF
33187 /* end confdefs.h.  */
33188 $ac_includes_default
33189 int
33190 main ()
33191 {
33192 #ifndef clearerr_unlocked
33193   char *p = (char *) clearerr_unlocked;
33194 #endif
33195
33196   ;
33197   return 0;
33198 }
33199 _ACEOF
33200 rm -f conftest.$ac_objext
33201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33202   (eval $ac_compile) 2>conftest.er1
33203   ac_status=$?
33204   grep -v '^ *+' conftest.er1 >conftest.err
33205   rm -f conftest.er1
33206   cat conftest.err >&5
33207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208   (exit $ac_status); } &&
33209          { ac_try='test -z "$ac_c_werror_flag"
33210                          || test ! -s conftest.err'
33211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33212   (eval $ac_try) 2>&5
33213   ac_status=$?
33214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33215   (exit $ac_status); }; } &&
33216          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
33222   ac_cv_have_decl_clearerr_unlocked=yes
33223 else
33224   echo "$as_me: failed program was:" >&5
33225 sed 's/^/| /' conftest.$ac_ext >&5
33226
33227 ac_cv_have_decl_clearerr_unlocked=no
33228 fi
33229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33230 fi
33231 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
33232 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
33233 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
33234
33235 cat >>confdefs.h <<_ACEOF
33236 #define HAVE_DECL_CLEARERR_UNLOCKED 1
33237 _ACEOF
33238
33239
33240 else
33241   cat >>confdefs.h <<_ACEOF
33242 #define HAVE_DECL_CLEARERR_UNLOCKED 0
33243 _ACEOF
33244
33245
33246 fi
33247
33248
33249
33250
33251       echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
33252 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
33253 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
33254   echo $ECHO_N "(cached) $ECHO_C" >&6
33255 else
33256   cat >conftest.$ac_ext <<_ACEOF
33257 /* confdefs.h.  */
33258 _ACEOF
33259 cat confdefs.h >>conftest.$ac_ext
33260 cat >>conftest.$ac_ext <<_ACEOF
33261 /* end confdefs.h.  */
33262 $ac_includes_default
33263 int
33264 main ()
33265 {
33266 #ifndef feof_unlocked
33267   char *p = (char *) feof_unlocked;
33268 #endif
33269
33270   ;
33271   return 0;
33272 }
33273 _ACEOF
33274 rm -f conftest.$ac_objext
33275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33276   (eval $ac_compile) 2>conftest.er1
33277   ac_status=$?
33278   grep -v '^ *+' conftest.er1 >conftest.err
33279   rm -f conftest.er1
33280   cat conftest.err >&5
33281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282   (exit $ac_status); } &&
33283          { ac_try='test -z "$ac_c_werror_flag"
33284                          || test ! -s conftest.err'
33285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33286   (eval $ac_try) 2>&5
33287   ac_status=$?
33288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289   (exit $ac_status); }; } &&
33290          { ac_try='test -s conftest.$ac_objext'
33291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33292   (eval $ac_try) 2>&5
33293   ac_status=$?
33294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33295   (exit $ac_status); }; }; then
33296   ac_cv_have_decl_feof_unlocked=yes
33297 else
33298   echo "$as_me: failed program was:" >&5
33299 sed 's/^/| /' conftest.$ac_ext >&5
33300
33301 ac_cv_have_decl_feof_unlocked=no
33302 fi
33303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33304 fi
33305 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
33306 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
33307 if test $ac_cv_have_decl_feof_unlocked = yes; then
33308
33309 cat >>confdefs.h <<_ACEOF
33310 #define HAVE_DECL_FEOF_UNLOCKED 1
33311 _ACEOF
33312
33313
33314 else
33315   cat >>confdefs.h <<_ACEOF
33316 #define HAVE_DECL_FEOF_UNLOCKED 0
33317 _ACEOF
33318
33319
33320 fi
33321
33322
33323
33324
33325       echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
33326 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
33327 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
33328   echo $ECHO_N "(cached) $ECHO_C" >&6
33329 else
33330   cat >conftest.$ac_ext <<_ACEOF
33331 /* confdefs.h.  */
33332 _ACEOF
33333 cat confdefs.h >>conftest.$ac_ext
33334 cat >>conftest.$ac_ext <<_ACEOF
33335 /* end confdefs.h.  */
33336 $ac_includes_default
33337 int
33338 main ()
33339 {
33340 #ifndef ferror_unlocked
33341   char *p = (char *) ferror_unlocked;
33342 #endif
33343
33344   ;
33345   return 0;
33346 }
33347 _ACEOF
33348 rm -f conftest.$ac_objext
33349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33350   (eval $ac_compile) 2>conftest.er1
33351   ac_status=$?
33352   grep -v '^ *+' conftest.er1 >conftest.err
33353   rm -f conftest.er1
33354   cat conftest.err >&5
33355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356   (exit $ac_status); } &&
33357          { ac_try='test -z "$ac_c_werror_flag"
33358                          || test ! -s conftest.err'
33359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33360   (eval $ac_try) 2>&5
33361   ac_status=$?
33362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33363   (exit $ac_status); }; } &&
33364          { ac_try='test -s conftest.$ac_objext'
33365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33366   (eval $ac_try) 2>&5
33367   ac_status=$?
33368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369   (exit $ac_status); }; }; then
33370   ac_cv_have_decl_ferror_unlocked=yes
33371 else
33372   echo "$as_me: failed program was:" >&5
33373 sed 's/^/| /' conftest.$ac_ext >&5
33374
33375 ac_cv_have_decl_ferror_unlocked=no
33376 fi
33377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33378 fi
33379 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
33380 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
33381 if test $ac_cv_have_decl_ferror_unlocked = yes; then
33382
33383 cat >>confdefs.h <<_ACEOF
33384 #define HAVE_DECL_FERROR_UNLOCKED 1
33385 _ACEOF
33386
33387
33388 else
33389   cat >>confdefs.h <<_ACEOF
33390 #define HAVE_DECL_FERROR_UNLOCKED 0
33391 _ACEOF
33392
33393
33394 fi
33395
33396
33397
33398
33399       echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
33400 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
33401 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
33402   echo $ECHO_N "(cached) $ECHO_C" >&6
33403 else
33404   cat >conftest.$ac_ext <<_ACEOF
33405 /* confdefs.h.  */
33406 _ACEOF
33407 cat confdefs.h >>conftest.$ac_ext
33408 cat >>conftest.$ac_ext <<_ACEOF
33409 /* end confdefs.h.  */
33410 $ac_includes_default
33411 int
33412 main ()
33413 {
33414 #ifndef fflush_unlocked
33415   char *p = (char *) fflush_unlocked;
33416 #endif
33417
33418   ;
33419   return 0;
33420 }
33421 _ACEOF
33422 rm -f conftest.$ac_objext
33423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33424   (eval $ac_compile) 2>conftest.er1
33425   ac_status=$?
33426   grep -v '^ *+' conftest.er1 >conftest.err
33427   rm -f conftest.er1
33428   cat conftest.err >&5
33429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430   (exit $ac_status); } &&
33431          { ac_try='test -z "$ac_c_werror_flag"
33432                          || test ! -s conftest.err'
33433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33434   (eval $ac_try) 2>&5
33435   ac_status=$?
33436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437   (exit $ac_status); }; } &&
33438          { ac_try='test -s conftest.$ac_objext'
33439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33440   (eval $ac_try) 2>&5
33441   ac_status=$?
33442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33443   (exit $ac_status); }; }; then
33444   ac_cv_have_decl_fflush_unlocked=yes
33445 else
33446   echo "$as_me: failed program was:" >&5
33447 sed 's/^/| /' conftest.$ac_ext >&5
33448
33449 ac_cv_have_decl_fflush_unlocked=no
33450 fi
33451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33452 fi
33453 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
33454 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
33455 if test $ac_cv_have_decl_fflush_unlocked = yes; then
33456
33457 cat >>confdefs.h <<_ACEOF
33458 #define HAVE_DECL_FFLUSH_UNLOCKED 1
33459 _ACEOF
33460
33461
33462 else
33463   cat >>confdefs.h <<_ACEOF
33464 #define HAVE_DECL_FFLUSH_UNLOCKED 0
33465 _ACEOF
33466
33467
33468 fi
33469
33470
33471
33472
33473       echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
33474 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
33475 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
33476   echo $ECHO_N "(cached) $ECHO_C" >&6
33477 else
33478   cat >conftest.$ac_ext <<_ACEOF
33479 /* confdefs.h.  */
33480 _ACEOF
33481 cat confdefs.h >>conftest.$ac_ext
33482 cat >>conftest.$ac_ext <<_ACEOF
33483 /* end confdefs.h.  */
33484 $ac_includes_default
33485 int
33486 main ()
33487 {
33488 #ifndef fgets_unlocked
33489   char *p = (char *) fgets_unlocked;
33490 #endif
33491
33492   ;
33493   return 0;
33494 }
33495 _ACEOF
33496 rm -f conftest.$ac_objext
33497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33498   (eval $ac_compile) 2>conftest.er1
33499   ac_status=$?
33500   grep -v '^ *+' conftest.er1 >conftest.err
33501   rm -f conftest.er1
33502   cat conftest.err >&5
33503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33504   (exit $ac_status); } &&
33505          { ac_try='test -z "$ac_c_werror_flag"
33506                          || test ! -s conftest.err'
33507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33508   (eval $ac_try) 2>&5
33509   ac_status=$?
33510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33511   (exit $ac_status); }; } &&
33512          { ac_try='test -s conftest.$ac_objext'
33513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33514   (eval $ac_try) 2>&5
33515   ac_status=$?
33516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33517   (exit $ac_status); }; }; then
33518   ac_cv_have_decl_fgets_unlocked=yes
33519 else
33520   echo "$as_me: failed program was:" >&5
33521 sed 's/^/| /' conftest.$ac_ext >&5
33522
33523 ac_cv_have_decl_fgets_unlocked=no
33524 fi
33525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33526 fi
33527 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
33528 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
33529 if test $ac_cv_have_decl_fgets_unlocked = yes; then
33530
33531 cat >>confdefs.h <<_ACEOF
33532 #define HAVE_DECL_FGETS_UNLOCKED 1
33533 _ACEOF
33534
33535
33536 else
33537   cat >>confdefs.h <<_ACEOF
33538 #define HAVE_DECL_FGETS_UNLOCKED 0
33539 _ACEOF
33540
33541
33542 fi
33543
33544
33545
33546
33547       echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
33548 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
33549 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
33550   echo $ECHO_N "(cached) $ECHO_C" >&6
33551 else
33552   cat >conftest.$ac_ext <<_ACEOF
33553 /* confdefs.h.  */
33554 _ACEOF
33555 cat confdefs.h >>conftest.$ac_ext
33556 cat >>conftest.$ac_ext <<_ACEOF
33557 /* end confdefs.h.  */
33558 $ac_includes_default
33559 int
33560 main ()
33561 {
33562 #ifndef fputc_unlocked
33563   char *p = (char *) fputc_unlocked;
33564 #endif
33565
33566   ;
33567   return 0;
33568 }
33569 _ACEOF
33570 rm -f conftest.$ac_objext
33571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33572   (eval $ac_compile) 2>conftest.er1
33573   ac_status=$?
33574   grep -v '^ *+' conftest.er1 >conftest.err
33575   rm -f conftest.er1
33576   cat conftest.err >&5
33577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33578   (exit $ac_status); } &&
33579          { ac_try='test -z "$ac_c_werror_flag"
33580                          || test ! -s conftest.err'
33581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33582   (eval $ac_try) 2>&5
33583   ac_status=$?
33584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33585   (exit $ac_status); }; } &&
33586          { ac_try='test -s conftest.$ac_objext'
33587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33588   (eval $ac_try) 2>&5
33589   ac_status=$?
33590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591   (exit $ac_status); }; }; then
33592   ac_cv_have_decl_fputc_unlocked=yes
33593 else
33594   echo "$as_me: failed program was:" >&5
33595 sed 's/^/| /' conftest.$ac_ext >&5
33596
33597 ac_cv_have_decl_fputc_unlocked=no
33598 fi
33599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33600 fi
33601 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
33602 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
33603 if test $ac_cv_have_decl_fputc_unlocked = yes; then
33604
33605 cat >>confdefs.h <<_ACEOF
33606 #define HAVE_DECL_FPUTC_UNLOCKED 1
33607 _ACEOF
33608
33609
33610 else
33611   cat >>confdefs.h <<_ACEOF
33612 #define HAVE_DECL_FPUTC_UNLOCKED 0
33613 _ACEOF
33614
33615
33616 fi
33617
33618
33619
33620
33621       echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
33622 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
33623 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
33624   echo $ECHO_N "(cached) $ECHO_C" >&6
33625 else
33626   cat >conftest.$ac_ext <<_ACEOF
33627 /* confdefs.h.  */
33628 _ACEOF
33629 cat confdefs.h >>conftest.$ac_ext
33630 cat >>conftest.$ac_ext <<_ACEOF
33631 /* end confdefs.h.  */
33632 $ac_includes_default
33633 int
33634 main ()
33635 {
33636 #ifndef fputs_unlocked
33637   char *p = (char *) fputs_unlocked;
33638 #endif
33639
33640   ;
33641   return 0;
33642 }
33643 _ACEOF
33644 rm -f conftest.$ac_objext
33645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33646   (eval $ac_compile) 2>conftest.er1
33647   ac_status=$?
33648   grep -v '^ *+' conftest.er1 >conftest.err
33649   rm -f conftest.er1
33650   cat conftest.err >&5
33651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33652   (exit $ac_status); } &&
33653          { ac_try='test -z "$ac_c_werror_flag"
33654                          || test ! -s conftest.err'
33655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33656   (eval $ac_try) 2>&5
33657   ac_status=$?
33658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659   (exit $ac_status); }; } &&
33660          { ac_try='test -s conftest.$ac_objext'
33661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33662   (eval $ac_try) 2>&5
33663   ac_status=$?
33664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33665   (exit $ac_status); }; }; then
33666   ac_cv_have_decl_fputs_unlocked=yes
33667 else
33668   echo "$as_me: failed program was:" >&5
33669 sed 's/^/| /' conftest.$ac_ext >&5
33670
33671 ac_cv_have_decl_fputs_unlocked=no
33672 fi
33673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33674 fi
33675 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
33676 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
33677 if test $ac_cv_have_decl_fputs_unlocked = yes; then
33678
33679 cat >>confdefs.h <<_ACEOF
33680 #define HAVE_DECL_FPUTS_UNLOCKED 1
33681 _ACEOF
33682
33683
33684 else
33685   cat >>confdefs.h <<_ACEOF
33686 #define HAVE_DECL_FPUTS_UNLOCKED 0
33687 _ACEOF
33688
33689
33690 fi
33691
33692
33693
33694
33695       echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
33696 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
33697 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
33698   echo $ECHO_N "(cached) $ECHO_C" >&6
33699 else
33700   cat >conftest.$ac_ext <<_ACEOF
33701 /* confdefs.h.  */
33702 _ACEOF
33703 cat confdefs.h >>conftest.$ac_ext
33704 cat >>conftest.$ac_ext <<_ACEOF
33705 /* end confdefs.h.  */
33706 $ac_includes_default
33707 int
33708 main ()
33709 {
33710 #ifndef fread_unlocked
33711   char *p = (char *) fread_unlocked;
33712 #endif
33713
33714   ;
33715   return 0;
33716 }
33717 _ACEOF
33718 rm -f conftest.$ac_objext
33719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33720   (eval $ac_compile) 2>conftest.er1
33721   ac_status=$?
33722   grep -v '^ *+' conftest.er1 >conftest.err
33723   rm -f conftest.er1
33724   cat conftest.err >&5
33725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726   (exit $ac_status); } &&
33727          { ac_try='test -z "$ac_c_werror_flag"
33728                          || test ! -s conftest.err'
33729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33730   (eval $ac_try) 2>&5
33731   ac_status=$?
33732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33733   (exit $ac_status); }; } &&
33734          { ac_try='test -s conftest.$ac_objext'
33735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33736   (eval $ac_try) 2>&5
33737   ac_status=$?
33738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739   (exit $ac_status); }; }; then
33740   ac_cv_have_decl_fread_unlocked=yes
33741 else
33742   echo "$as_me: failed program was:" >&5
33743 sed 's/^/| /' conftest.$ac_ext >&5
33744
33745 ac_cv_have_decl_fread_unlocked=no
33746 fi
33747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33748 fi
33749 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
33750 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
33751 if test $ac_cv_have_decl_fread_unlocked = yes; then
33752
33753 cat >>confdefs.h <<_ACEOF
33754 #define HAVE_DECL_FREAD_UNLOCKED 1
33755 _ACEOF
33756
33757
33758 else
33759   cat >>confdefs.h <<_ACEOF
33760 #define HAVE_DECL_FREAD_UNLOCKED 0
33761 _ACEOF
33762
33763
33764 fi
33765
33766
33767
33768
33769       echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
33770 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
33771 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
33772   echo $ECHO_N "(cached) $ECHO_C" >&6
33773 else
33774   cat >conftest.$ac_ext <<_ACEOF
33775 /* confdefs.h.  */
33776 _ACEOF
33777 cat confdefs.h >>conftest.$ac_ext
33778 cat >>conftest.$ac_ext <<_ACEOF
33779 /* end confdefs.h.  */
33780 $ac_includes_default
33781 int
33782 main ()
33783 {
33784 #ifndef fwrite_unlocked
33785   char *p = (char *) fwrite_unlocked;
33786 #endif
33787
33788   ;
33789   return 0;
33790 }
33791 _ACEOF
33792 rm -f conftest.$ac_objext
33793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33794   (eval $ac_compile) 2>conftest.er1
33795   ac_status=$?
33796   grep -v '^ *+' conftest.er1 >conftest.err
33797   rm -f conftest.er1
33798   cat conftest.err >&5
33799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800   (exit $ac_status); } &&
33801          { ac_try='test -z "$ac_c_werror_flag"
33802                          || test ! -s conftest.err'
33803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33804   (eval $ac_try) 2>&5
33805   ac_status=$?
33806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807   (exit $ac_status); }; } &&
33808          { ac_try='test -s conftest.$ac_objext'
33809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33810   (eval $ac_try) 2>&5
33811   ac_status=$?
33812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813   (exit $ac_status); }; }; then
33814   ac_cv_have_decl_fwrite_unlocked=yes
33815 else
33816   echo "$as_me: failed program was:" >&5
33817 sed 's/^/| /' conftest.$ac_ext >&5
33818
33819 ac_cv_have_decl_fwrite_unlocked=no
33820 fi
33821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33822 fi
33823 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
33824 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
33825 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
33826
33827 cat >>confdefs.h <<_ACEOF
33828 #define HAVE_DECL_FWRITE_UNLOCKED 1
33829 _ACEOF
33830
33831
33832 else
33833   cat >>confdefs.h <<_ACEOF
33834 #define HAVE_DECL_FWRITE_UNLOCKED 0
33835 _ACEOF
33836
33837
33838 fi
33839
33840
33841
33842
33843       echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
33844 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
33845 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
33846   echo $ECHO_N "(cached) $ECHO_C" >&6
33847 else
33848   cat >conftest.$ac_ext <<_ACEOF
33849 /* confdefs.h.  */
33850 _ACEOF
33851 cat confdefs.h >>conftest.$ac_ext
33852 cat >>conftest.$ac_ext <<_ACEOF
33853 /* end confdefs.h.  */
33854 $ac_includes_default
33855 int
33856 main ()
33857 {
33858 #ifndef getc_unlocked
33859   char *p = (char *) getc_unlocked;
33860 #endif
33861
33862   ;
33863   return 0;
33864 }
33865 _ACEOF
33866 rm -f conftest.$ac_objext
33867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33868   (eval $ac_compile) 2>conftest.er1
33869   ac_status=$?
33870   grep -v '^ *+' conftest.er1 >conftest.err
33871   rm -f conftest.er1
33872   cat conftest.err >&5
33873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874   (exit $ac_status); } &&
33875          { ac_try='test -z "$ac_c_werror_flag"
33876                          || test ! -s conftest.err'
33877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33878   (eval $ac_try) 2>&5
33879   ac_status=$?
33880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881   (exit $ac_status); }; } &&
33882          { ac_try='test -s conftest.$ac_objext'
33883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33884   (eval $ac_try) 2>&5
33885   ac_status=$?
33886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33887   (exit $ac_status); }; }; then
33888   ac_cv_have_decl_getc_unlocked=yes
33889 else
33890   echo "$as_me: failed program was:" >&5
33891 sed 's/^/| /' conftest.$ac_ext >&5
33892
33893 ac_cv_have_decl_getc_unlocked=no
33894 fi
33895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33896 fi
33897 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
33898 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
33899 if test $ac_cv_have_decl_getc_unlocked = yes; then
33900
33901 cat >>confdefs.h <<_ACEOF
33902 #define HAVE_DECL_GETC_UNLOCKED 1
33903 _ACEOF
33904
33905
33906 else
33907   cat >>confdefs.h <<_ACEOF
33908 #define HAVE_DECL_GETC_UNLOCKED 0
33909 _ACEOF
33910
33911
33912 fi
33913
33914
33915
33916
33917       echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
33918 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
33919 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
33920   echo $ECHO_N "(cached) $ECHO_C" >&6
33921 else
33922   cat >conftest.$ac_ext <<_ACEOF
33923 /* confdefs.h.  */
33924 _ACEOF
33925 cat confdefs.h >>conftest.$ac_ext
33926 cat >>conftest.$ac_ext <<_ACEOF
33927 /* end confdefs.h.  */
33928 $ac_includes_default
33929 int
33930 main ()
33931 {
33932 #ifndef getchar_unlocked
33933   char *p = (char *) getchar_unlocked;
33934 #endif
33935
33936   ;
33937   return 0;
33938 }
33939 _ACEOF
33940 rm -f conftest.$ac_objext
33941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33942   (eval $ac_compile) 2>conftest.er1
33943   ac_status=$?
33944   grep -v '^ *+' conftest.er1 >conftest.err
33945   rm -f conftest.er1
33946   cat conftest.err >&5
33947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948   (exit $ac_status); } &&
33949          { ac_try='test -z "$ac_c_werror_flag"
33950                          || test ! -s conftest.err'
33951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33952   (eval $ac_try) 2>&5
33953   ac_status=$?
33954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33955   (exit $ac_status); }; } &&
33956          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
33962   ac_cv_have_decl_getchar_unlocked=yes
33963 else
33964   echo "$as_me: failed program was:" >&5
33965 sed 's/^/| /' conftest.$ac_ext >&5
33966
33967 ac_cv_have_decl_getchar_unlocked=no
33968 fi
33969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33970 fi
33971 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
33972 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
33973 if test $ac_cv_have_decl_getchar_unlocked = yes; then
33974
33975 cat >>confdefs.h <<_ACEOF
33976 #define HAVE_DECL_GETCHAR_UNLOCKED 1
33977 _ACEOF
33978
33979
33980 else
33981   cat >>confdefs.h <<_ACEOF
33982 #define HAVE_DECL_GETCHAR_UNLOCKED 0
33983 _ACEOF
33984
33985
33986 fi
33987
33988
33989
33990
33991       echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
33992 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
33993 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
33994   echo $ECHO_N "(cached) $ECHO_C" >&6
33995 else
33996   cat >conftest.$ac_ext <<_ACEOF
33997 /* confdefs.h.  */
33998 _ACEOF
33999 cat confdefs.h >>conftest.$ac_ext
34000 cat >>conftest.$ac_ext <<_ACEOF
34001 /* end confdefs.h.  */
34002 $ac_includes_default
34003 int
34004 main ()
34005 {
34006 #ifndef putc_unlocked
34007   char *p = (char *) putc_unlocked;
34008 #endif
34009
34010   ;
34011   return 0;
34012 }
34013 _ACEOF
34014 rm -f conftest.$ac_objext
34015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34016   (eval $ac_compile) 2>conftest.er1
34017   ac_status=$?
34018   grep -v '^ *+' conftest.er1 >conftest.err
34019   rm -f conftest.er1
34020   cat conftest.err >&5
34021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022   (exit $ac_status); } &&
34023          { ac_try='test -z "$ac_c_werror_flag"
34024                          || test ! -s conftest.err'
34025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34026   (eval $ac_try) 2>&5
34027   ac_status=$?
34028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029   (exit $ac_status); }; } &&
34030          { ac_try='test -s conftest.$ac_objext'
34031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34032   (eval $ac_try) 2>&5
34033   ac_status=$?
34034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035   (exit $ac_status); }; }; then
34036   ac_cv_have_decl_putc_unlocked=yes
34037 else
34038   echo "$as_me: failed program was:" >&5
34039 sed 's/^/| /' conftest.$ac_ext >&5
34040
34041 ac_cv_have_decl_putc_unlocked=no
34042 fi
34043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34044 fi
34045 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
34046 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
34047 if test $ac_cv_have_decl_putc_unlocked = yes; then
34048
34049 cat >>confdefs.h <<_ACEOF
34050 #define HAVE_DECL_PUTC_UNLOCKED 1
34051 _ACEOF
34052
34053
34054 else
34055   cat >>confdefs.h <<_ACEOF
34056 #define HAVE_DECL_PUTC_UNLOCKED 0
34057 _ACEOF
34058
34059
34060 fi
34061
34062
34063
34064
34065       echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
34066 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
34067 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
34068   echo $ECHO_N "(cached) $ECHO_C" >&6
34069 else
34070   cat >conftest.$ac_ext <<_ACEOF
34071 /* confdefs.h.  */
34072 _ACEOF
34073 cat confdefs.h >>conftest.$ac_ext
34074 cat >>conftest.$ac_ext <<_ACEOF
34075 /* end confdefs.h.  */
34076 $ac_includes_default
34077 int
34078 main ()
34079 {
34080 #ifndef putchar_unlocked
34081   char *p = (char *) putchar_unlocked;
34082 #endif
34083
34084   ;
34085   return 0;
34086 }
34087 _ACEOF
34088 rm -f conftest.$ac_objext
34089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34090   (eval $ac_compile) 2>conftest.er1
34091   ac_status=$?
34092   grep -v '^ *+' conftest.er1 >conftest.err
34093   rm -f conftest.er1
34094   cat conftest.err >&5
34095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34096   (exit $ac_status); } &&
34097          { ac_try='test -z "$ac_c_werror_flag"
34098                          || test ! -s conftest.err'
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); }; } &&
34104          { ac_try='test -s conftest.$ac_objext'
34105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34106   (eval $ac_try) 2>&5
34107   ac_status=$?
34108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109   (exit $ac_status); }; }; then
34110   ac_cv_have_decl_putchar_unlocked=yes
34111 else
34112   echo "$as_me: failed program was:" >&5
34113 sed 's/^/| /' conftest.$ac_ext >&5
34114
34115 ac_cv_have_decl_putchar_unlocked=no
34116 fi
34117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34118 fi
34119 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
34120 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
34121 if test $ac_cv_have_decl_putchar_unlocked = yes; then
34122
34123 cat >>confdefs.h <<_ACEOF
34124 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
34125 _ACEOF
34126
34127
34128 else
34129   cat >>confdefs.h <<_ACEOF
34130 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
34131 _ACEOF
34132
34133
34134 fi
34135
34136
34137
34138
34139
34140
34141
34142   :
34143
34144
34145
34146
34147
34148
34149
34150
34151
34152
34153
34154
34155
34156
34157
34158
34159
34160
34161
34162
34163
34164
34165
34166
34167
34168
34169
34170
34171
34172
34173
34174
34175
34176
34177
34178
34179
34180
34181
34182
34183
34184
34185
34186
34187   echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
34188 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
34189 if test "${gl_cv_func_tzset_clobber+set}" = set; then
34190   echo $ECHO_N "(cached) $ECHO_C" >&6
34191 else
34192
34193   if test "$cross_compiling" = yes; then
34194   gl_cv_func_tzset_clobber=yes
34195 else
34196   cat >conftest.$ac_ext <<_ACEOF
34197 /* confdefs.h.  */
34198 _ACEOF
34199 cat confdefs.h >>conftest.$ac_ext
34200 cat >>conftest.$ac_ext <<_ACEOF
34201 /* end confdefs.h.  */
34202
34203 #if TIME_WITH_SYS_TIME
34204 # include <sys/time.h>
34205 # include <time.h>
34206 #else
34207 # if HAVE_SYS_TIME_H
34208 #  include <sys/time.h>
34209 # else
34210 #  include <time.h>
34211 # endif
34212 #endif
34213 #include <stdlib.h>
34214
34215 int
34216 main ()
34217 {
34218   time_t t1 = 853958121;
34219   struct tm *p, s;
34220   putenv ("TZ=GMT0");
34221   p = localtime (&t1);
34222   s = *p;
34223   putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
34224   tzset ();
34225   exit (p->tm_year != s.tm_year
34226         || p->tm_mon != s.tm_mon
34227         || p->tm_mday != s.tm_mday
34228         || p->tm_hour != s.tm_hour
34229         || p->tm_min != s.tm_min
34230         || p->tm_sec != s.tm_sec);
34231 }
34232
34233 _ACEOF
34234 rm -f conftest$ac_exeext
34235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34236   (eval $ac_link) 2>&5
34237   ac_status=$?
34238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34241   (eval $ac_try) 2>&5
34242   ac_status=$?
34243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244   (exit $ac_status); }; }; then
34245   gl_cv_func_tzset_clobber=no
34246 else
34247   echo "$as_me: program exited with status $ac_status" >&5
34248 echo "$as_me: failed program was:" >&5
34249 sed 's/^/| /' conftest.$ac_ext >&5
34250
34251 ( exit $ac_status )
34252 gl_cv_func_tzset_clobber=yes
34253 fi
34254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34255 fi
34256 fi
34257 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
34258 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
34259
34260
34261 cat >>confdefs.h <<\_ACEOF
34262 #define HAVE_RUN_TZSET_TEST 1
34263 _ACEOF
34264
34265
34266   if test $gl_cv_func_tzset_clobber = yes; then
34267
34268   case $LIBOBJS in
34269     "gettimeofday.$ac_objext"   | \
34270   *" gettimeofday.$ac_objext"   | \
34271     "gettimeofday.$ac_objext "* | \
34272   *" gettimeofday.$ac_objext "* ) ;;
34273   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
34274 esac
34275
34276
34277 cat >>confdefs.h <<\_ACEOF
34278 #define gmtime rpl_gmtime
34279 _ACEOF
34280
34281
34282 cat >>confdefs.h <<\_ACEOF
34283 #define localtime rpl_localtime
34284 _ACEOF
34285
34286
34287
34288
34289 cat >>confdefs.h <<\_ACEOF
34290 #define tzset rpl_tzset
34291 _ACEOF
34292
34293
34294 cat >>confdefs.h <<\_ACEOF
34295 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
34296 _ACEOF
34297
34298   fi
34299
34300
34301
34302
34303 for ac_func in strftime
34304 do
34305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34306 echo "$as_me:$LINENO: checking for $ac_func" >&5
34307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34308 if eval "test \"\${$as_ac_var+set}\" = set"; then
34309   echo $ECHO_N "(cached) $ECHO_C" >&6
34310 else
34311   cat >conftest.$ac_ext <<_ACEOF
34312 /* confdefs.h.  */
34313 _ACEOF
34314 cat confdefs.h >>conftest.$ac_ext
34315 cat >>conftest.$ac_ext <<_ACEOF
34316 /* end confdefs.h.  */
34317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34318    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34319 #define $ac_func innocuous_$ac_func
34320
34321 /* System header to define __stub macros and hopefully few prototypes,
34322     which can conflict with char $ac_func (); below.
34323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34324     <limits.h> exists even on freestanding compilers.  */
34325
34326 #ifdef __STDC__
34327 # include <limits.h>
34328 #else
34329 # include <assert.h>
34330 #endif
34331
34332 #undef $ac_func
34333
34334 /* Override any gcc2 internal prototype to avoid an error.  */
34335 #ifdef __cplusplus
34336 extern "C"
34337 {
34338 #endif
34339 /* We use char because int might match the return type of a gcc2
34340    builtin and then its argument prototype would still apply.  */
34341 char $ac_func ();
34342 /* The GNU C library defines this for functions which it implements
34343     to always fail with ENOSYS.  Some functions are actually named
34344     something starting with __ and the normal name is an alias.  */
34345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34346 choke me
34347 #else
34348 char (*f) () = $ac_func;
34349 #endif
34350 #ifdef __cplusplus
34351 }
34352 #endif
34353
34354 int
34355 main ()
34356 {
34357 return f != $ac_func;
34358   ;
34359   return 0;
34360 }
34361 _ACEOF
34362 rm -f conftest.$ac_objext conftest$ac_exeext
34363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34364   (eval $ac_link) 2>conftest.er1
34365   ac_status=$?
34366   grep -v '^ *+' conftest.er1 >conftest.err
34367   rm -f conftest.er1
34368   cat conftest.err >&5
34369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34370   (exit $ac_status); } &&
34371          { ac_try='test -z "$ac_c_werror_flag"
34372                          || test ! -s conftest.err'
34373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34374   (eval $ac_try) 2>&5
34375   ac_status=$?
34376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377   (exit $ac_status); }; } &&
34378          { ac_try='test -s conftest$ac_exeext'
34379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34380   (eval $ac_try) 2>&5
34381   ac_status=$?
34382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383   (exit $ac_status); }; }; then
34384   eval "$as_ac_var=yes"
34385 else
34386   echo "$as_me: failed program was:" >&5
34387 sed 's/^/| /' conftest.$ac_ext >&5
34388
34389 eval "$as_ac_var=no"
34390 fi
34391 rm -f conftest.err conftest.$ac_objext \
34392       conftest$ac_exeext conftest.$ac_ext
34393 fi
34394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34396 if test `eval echo '${'$as_ac_var'}'` = yes; then
34397   cat >>confdefs.h <<_ACEOF
34398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34399 _ACEOF
34400
34401 else
34402   # strftime is in -lintl on SCO UNIX.
34403 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
34404 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
34405 if test "${ac_cv_lib_intl_strftime+set}" = set; then
34406   echo $ECHO_N "(cached) $ECHO_C" >&6
34407 else
34408   ac_check_lib_save_LIBS=$LIBS
34409 LIBS="-lintl  $LIBS"
34410 cat >conftest.$ac_ext <<_ACEOF
34411 /* confdefs.h.  */
34412 _ACEOF
34413 cat confdefs.h >>conftest.$ac_ext
34414 cat >>conftest.$ac_ext <<_ACEOF
34415 /* end confdefs.h.  */
34416
34417 /* Override any gcc2 internal prototype to avoid an error.  */
34418 #ifdef __cplusplus
34419 extern "C"
34420 #endif
34421 /* We use char because int might match the return type of a gcc2
34422    builtin and then its argument prototype would still apply.  */
34423 char strftime ();
34424 int
34425 main ()
34426 {
34427 strftime ();
34428   ;
34429   return 0;
34430 }
34431 _ACEOF
34432 rm -f conftest.$ac_objext conftest$ac_exeext
34433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34434   (eval $ac_link) 2>conftest.er1
34435   ac_status=$?
34436   grep -v '^ *+' conftest.er1 >conftest.err
34437   rm -f conftest.er1
34438   cat conftest.err >&5
34439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440   (exit $ac_status); } &&
34441          { ac_try='test -z "$ac_c_werror_flag"
34442                          || test ! -s conftest.err'
34443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34444   (eval $ac_try) 2>&5
34445   ac_status=$?
34446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34447   (exit $ac_status); }; } &&
34448          { ac_try='test -s conftest$ac_exeext'
34449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34450   (eval $ac_try) 2>&5
34451   ac_status=$?
34452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34453   (exit $ac_status); }; }; then
34454   ac_cv_lib_intl_strftime=yes
34455 else
34456   echo "$as_me: failed program was:" >&5
34457 sed 's/^/| /' conftest.$ac_ext >&5
34458
34459 ac_cv_lib_intl_strftime=no
34460 fi
34461 rm -f conftest.err conftest.$ac_objext \
34462       conftest$ac_exeext conftest.$ac_ext
34463 LIBS=$ac_check_lib_save_LIBS
34464 fi
34465 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
34466 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
34467 if test $ac_cv_lib_intl_strftime = yes; then
34468   cat >>confdefs.h <<\_ACEOF
34469 #define HAVE_STRFTIME 1
34470 _ACEOF
34471
34472 LIBS="-lintl $LIBS"
34473 fi
34474
34475 fi
34476 done
34477
34478
34479
34480   :
34481
34482
34483
34484
34485
34486
34487 for ac_func in tzset
34488 do
34489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34490 echo "$as_me:$LINENO: checking for $ac_func" >&5
34491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34492 if eval "test \"\${$as_ac_var+set}\" = set"; then
34493   echo $ECHO_N "(cached) $ECHO_C" >&6
34494 else
34495   cat >conftest.$ac_ext <<_ACEOF
34496 /* confdefs.h.  */
34497 _ACEOF
34498 cat confdefs.h >>conftest.$ac_ext
34499 cat >>conftest.$ac_ext <<_ACEOF
34500 /* end confdefs.h.  */
34501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34503 #define $ac_func innocuous_$ac_func
34504
34505 /* System header to define __stub macros and hopefully few prototypes,
34506     which can conflict with char $ac_func (); below.
34507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34508     <limits.h> exists even on freestanding compilers.  */
34509
34510 #ifdef __STDC__
34511 # include <limits.h>
34512 #else
34513 # include <assert.h>
34514 #endif
34515
34516 #undef $ac_func
34517
34518 /* Override any gcc2 internal prototype to avoid an error.  */
34519 #ifdef __cplusplus
34520 extern "C"
34521 {
34522 #endif
34523 /* We use char because int might match the return type of a gcc2
34524    builtin and then its argument prototype would still apply.  */
34525 char $ac_func ();
34526 /* The GNU C library defines this for functions which it implements
34527     to always fail with ENOSYS.  Some functions are actually named
34528     something starting with __ and the normal name is an alias.  */
34529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34530 choke me
34531 #else
34532 char (*f) () = $ac_func;
34533 #endif
34534 #ifdef __cplusplus
34535 }
34536 #endif
34537
34538 int
34539 main ()
34540 {
34541 return f != $ac_func;
34542   ;
34543   return 0;
34544 }
34545 _ACEOF
34546 rm -f conftest.$ac_objext conftest$ac_exeext
34547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34548   (eval $ac_link) 2>conftest.er1
34549   ac_status=$?
34550   grep -v '^ *+' conftest.er1 >conftest.err
34551   rm -f conftest.er1
34552   cat conftest.err >&5
34553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554   (exit $ac_status); } &&
34555          { ac_try='test -z "$ac_c_werror_flag"
34556                          || test ! -s conftest.err'
34557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34558   (eval $ac_try) 2>&5
34559   ac_status=$?
34560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561   (exit $ac_status); }; } &&
34562          { ac_try='test -s conftest$ac_exeext'
34563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34564   (eval $ac_try) 2>&5
34565   ac_status=$?
34566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567   (exit $ac_status); }; }; then
34568   eval "$as_ac_var=yes"
34569 else
34570   echo "$as_me: failed program was:" >&5
34571 sed 's/^/| /' conftest.$ac_ext >&5
34572
34573 eval "$as_ac_var=no"
34574 fi
34575 rm -f conftest.err conftest.$ac_objext \
34576       conftest$ac_exeext conftest.$ac_ext
34577 fi
34578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34580 if test `eval echo '${'$as_ac_var'}'` = yes; then
34581   cat >>confdefs.h <<_ACEOF
34582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34583 _ACEOF
34584
34585 fi
34586 done
34587
34588
34589  # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
34590  echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
34591 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
34592 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
34593   echo $ECHO_N "(cached) $ECHO_C" >&6
34594 else
34595   cat >conftest.$ac_ext <<_ACEOF
34596 /* confdefs.h.  */
34597 _ACEOF
34598 cat confdefs.h >>conftest.$ac_ext
34599 cat >>conftest.$ac_ext <<_ACEOF
34600 /* end confdefs.h.  */
34601 #include <sys/types.h>
34602 #include <$ac_cv_struct_tm>
34603
34604
34605 int
34606 main ()
34607 {
34608 static struct tm ac_aggr;
34609 if (ac_aggr.tm_zone)
34610 return 0;
34611   ;
34612   return 0;
34613 }
34614 _ACEOF
34615 rm -f conftest.$ac_objext
34616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34617   (eval $ac_compile) 2>conftest.er1
34618   ac_status=$?
34619   grep -v '^ *+' conftest.er1 >conftest.err
34620   rm -f conftest.er1
34621   cat conftest.err >&5
34622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623   (exit $ac_status); } &&
34624          { ac_try='test -z "$ac_c_werror_flag"
34625                          || test ! -s conftest.err'
34626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34627   (eval $ac_try) 2>&5
34628   ac_status=$?
34629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34630   (exit $ac_status); }; } &&
34631          { ac_try='test -s conftest.$ac_objext'
34632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34633   (eval $ac_try) 2>&5
34634   ac_status=$?
34635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636   (exit $ac_status); }; }; then
34637   ac_cv_member_struct_tm_tm_zone=yes
34638 else
34639   echo "$as_me: failed program was:" >&5
34640 sed 's/^/| /' conftest.$ac_ext >&5
34641
34642 cat >conftest.$ac_ext <<_ACEOF
34643 /* confdefs.h.  */
34644 _ACEOF
34645 cat confdefs.h >>conftest.$ac_ext
34646 cat >>conftest.$ac_ext <<_ACEOF
34647 /* end confdefs.h.  */
34648 #include <sys/types.h>
34649 #include <$ac_cv_struct_tm>
34650
34651
34652 int
34653 main ()
34654 {
34655 static struct tm ac_aggr;
34656 if (sizeof ac_aggr.tm_zone)
34657 return 0;
34658   ;
34659   return 0;
34660 }
34661 _ACEOF
34662 rm -f conftest.$ac_objext
34663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34664   (eval $ac_compile) 2>conftest.er1
34665   ac_status=$?
34666   grep -v '^ *+' conftest.er1 >conftest.err
34667   rm -f conftest.er1
34668   cat conftest.err >&5
34669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670   (exit $ac_status); } &&
34671          { ac_try='test -z "$ac_c_werror_flag"
34672                          || test ! -s conftest.err'
34673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34674   (eval $ac_try) 2>&5
34675   ac_status=$?
34676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34677   (exit $ac_status); }; } &&
34678          { ac_try='test -s conftest.$ac_objext'
34679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34680   (eval $ac_try) 2>&5
34681   ac_status=$?
34682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683   (exit $ac_status); }; }; then
34684   ac_cv_member_struct_tm_tm_zone=yes
34685 else
34686   echo "$as_me: failed program was:" >&5
34687 sed 's/^/| /' conftest.$ac_ext >&5
34688
34689 ac_cv_member_struct_tm_tm_zone=no
34690 fi
34691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34692 fi
34693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34694 fi
34695 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
34696 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
34697 if test $ac_cv_member_struct_tm_tm_zone = yes; then
34698
34699 cat >>confdefs.h <<_ACEOF
34700 #define HAVE_STRUCT_TM_TM_ZONE 1
34701 _ACEOF
34702
34703
34704 fi
34705
34706 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
34707
34708 cat >>confdefs.h <<\_ACEOF
34709 #define HAVE_TM_ZONE 1
34710 _ACEOF
34711
34712 else
34713   echo "$as_me:$LINENO: checking for tzname" >&5
34714 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
34715 if test "${ac_cv_var_tzname+set}" = set; then
34716   echo $ECHO_N "(cached) $ECHO_C" >&6
34717 else
34718   cat >conftest.$ac_ext <<_ACEOF
34719 /* confdefs.h.  */
34720 _ACEOF
34721 cat confdefs.h >>conftest.$ac_ext
34722 cat >>conftest.$ac_ext <<_ACEOF
34723 /* end confdefs.h.  */
34724 #include <time.h>
34725 #ifndef tzname /* For SGI.  */
34726 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
34727 #endif
34728
34729 int
34730 main ()
34731 {
34732 atoi(*tzname);
34733   ;
34734   return 0;
34735 }
34736 _ACEOF
34737 rm -f conftest.$ac_objext conftest$ac_exeext
34738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34739   (eval $ac_link) 2>conftest.er1
34740   ac_status=$?
34741   grep -v '^ *+' conftest.er1 >conftest.err
34742   rm -f conftest.er1
34743   cat conftest.err >&5
34744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745   (exit $ac_status); } &&
34746          { ac_try='test -z "$ac_c_werror_flag"
34747                          || test ! -s conftest.err'
34748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34749   (eval $ac_try) 2>&5
34750   ac_status=$?
34751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752   (exit $ac_status); }; } &&
34753          { ac_try='test -s conftest$ac_exeext'
34754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34755   (eval $ac_try) 2>&5
34756   ac_status=$?
34757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758   (exit $ac_status); }; }; then
34759   ac_cv_var_tzname=yes
34760 else
34761   echo "$as_me: failed program was:" >&5
34762 sed 's/^/| /' conftest.$ac_ext >&5
34763
34764 ac_cv_var_tzname=no
34765 fi
34766 rm -f conftest.err conftest.$ac_objext \
34767       conftest$ac_exeext conftest.$ac_ext
34768 fi
34769 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
34770 echo "${ECHO_T}$ac_cv_var_tzname" >&6
34771   if test $ac_cv_var_tzname = yes; then
34772
34773 cat >>confdefs.h <<\_ACEOF
34774 #define HAVE_TZNAME 1
34775 _ACEOF
34776
34777   fi
34778 fi
34779
34780
34781
34782
34783 for ac_func in mblen mbrlen
34784 do
34785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34786 echo "$as_me:$LINENO: checking for $ac_func" >&5
34787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34788 if eval "test \"\${$as_ac_var+set}\" = set"; then
34789   echo $ECHO_N "(cached) $ECHO_C" >&6
34790 else
34791   cat >conftest.$ac_ext <<_ACEOF
34792 /* confdefs.h.  */
34793 _ACEOF
34794 cat confdefs.h >>conftest.$ac_ext
34795 cat >>conftest.$ac_ext <<_ACEOF
34796 /* end confdefs.h.  */
34797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34799 #define $ac_func innocuous_$ac_func
34800
34801 /* System header to define __stub macros and hopefully few prototypes,
34802     which can conflict with char $ac_func (); below.
34803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34804     <limits.h> exists even on freestanding compilers.  */
34805
34806 #ifdef __STDC__
34807 # include <limits.h>
34808 #else
34809 # include <assert.h>
34810 #endif
34811
34812 #undef $ac_func
34813
34814 /* Override any gcc2 internal prototype to avoid an error.  */
34815 #ifdef __cplusplus
34816 extern "C"
34817 {
34818 #endif
34819 /* We use char because int might match the return type of a gcc2
34820    builtin and then its argument prototype would still apply.  */
34821 char $ac_func ();
34822 /* The GNU C library defines this for functions which it implements
34823     to always fail with ENOSYS.  Some functions are actually named
34824     something starting with __ and the normal name is an alias.  */
34825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34826 choke me
34827 #else
34828 char (*f) () = $ac_func;
34829 #endif
34830 #ifdef __cplusplus
34831 }
34832 #endif
34833
34834 int
34835 main ()
34836 {
34837 return f != $ac_func;
34838   ;
34839   return 0;
34840 }
34841 _ACEOF
34842 rm -f conftest.$ac_objext conftest$ac_exeext
34843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34844   (eval $ac_link) 2>conftest.er1
34845   ac_status=$?
34846   grep -v '^ *+' conftest.er1 >conftest.err
34847   rm -f conftest.er1
34848   cat conftest.err >&5
34849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850   (exit $ac_status); } &&
34851          { ac_try='test -z "$ac_c_werror_flag"
34852                          || test ! -s conftest.err'
34853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34854   (eval $ac_try) 2>&5
34855   ac_status=$?
34856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857   (exit $ac_status); }; } &&
34858          { ac_try='test -s conftest$ac_exeext'
34859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34860   (eval $ac_try) 2>&5
34861   ac_status=$?
34862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863   (exit $ac_status); }; }; then
34864   eval "$as_ac_var=yes"
34865 else
34866   echo "$as_me: failed program was:" >&5
34867 sed 's/^/| /' conftest.$ac_ext >&5
34868
34869 eval "$as_ac_var=no"
34870 fi
34871 rm -f conftest.err conftest.$ac_objext \
34872       conftest$ac_exeext conftest.$ac_ext
34873 fi
34874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34876 if test `eval echo '${'$as_ac_var'}'` = yes; then
34877   cat >>confdefs.h <<_ACEOF
34878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34879 _ACEOF
34880
34881 fi
34882 done
34883
34884  echo "$as_me:$LINENO: checking for mbstate_t" >&5
34885 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34886 if test "${ac_cv_type_mbstate_t+set}" = set; then
34887   echo $ECHO_N "(cached) $ECHO_C" >&6
34888 else
34889   cat >conftest.$ac_ext <<_ACEOF
34890 /* confdefs.h.  */
34891 _ACEOF
34892 cat confdefs.h >>conftest.$ac_ext
34893 cat >>conftest.$ac_ext <<_ACEOF
34894 /* end confdefs.h.  */
34895 $ac_includes_default
34896 #           include <wchar.h>
34897 int
34898 main ()
34899 {
34900 mbstate_t x; return sizeof x;
34901   ;
34902   return 0;
34903 }
34904 _ACEOF
34905 rm -f conftest.$ac_objext
34906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34907   (eval $ac_compile) 2>conftest.er1
34908   ac_status=$?
34909   grep -v '^ *+' conftest.er1 >conftest.err
34910   rm -f conftest.er1
34911   cat conftest.err >&5
34912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34913   (exit $ac_status); } &&
34914          { ac_try='test -z "$ac_c_werror_flag"
34915                          || test ! -s conftest.err'
34916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34917   (eval $ac_try) 2>&5
34918   ac_status=$?
34919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920   (exit $ac_status); }; } &&
34921          { ac_try='test -s conftest.$ac_objext'
34922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34923   (eval $ac_try) 2>&5
34924   ac_status=$?
34925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926   (exit $ac_status); }; }; then
34927   ac_cv_type_mbstate_t=yes
34928 else
34929   echo "$as_me: failed program was:" >&5
34930 sed 's/^/| /' conftest.$ac_ext >&5
34931
34932 ac_cv_type_mbstate_t=no
34933 fi
34934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34935 fi
34936 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34937 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34938    if test $ac_cv_type_mbstate_t = yes; then
34939
34940 cat >>confdefs.h <<\_ACEOF
34941 #define HAVE_MBSTATE_T 1
34942 _ACEOF
34943
34944    else
34945
34946 cat >>confdefs.h <<\_ACEOF
34947 #define mbstate_t int
34948 _ACEOF
34949
34950    fi
34951
34952
34953
34954
34955
34956
34957   :
34958
34959
34960
34961
34962
34963
34964 cat >>confdefs.h <<\_ACEOF
34965 #define my_strftime nstrftime
34966 _ACEOF
34967
34968
34969 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
34970 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
34971 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
34972   echo $ECHO_N "(cached) $ECHO_C" >&6
34973 else
34974   rm -f conftest.sym conftest.file
34975 echo >conftest.file
34976 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
34977   if test "$cross_compiling" = yes; then
34978   ac_cv_func_lstat_dereferences_slashed_symlink=no
34979 else
34980   cat >conftest.$ac_ext <<_ACEOF
34981 /* confdefs.h.  */
34982 _ACEOF
34983 cat confdefs.h >>conftest.$ac_ext
34984 cat >>conftest.$ac_ext <<_ACEOF
34985 /* end confdefs.h.  */
34986 $ac_includes_default
34987 int
34988 main ()
34989 {
34990 struct stat sbuf;
34991      /* Linux will dereference the symlink and fail.
34992         That is better in the sense that it means we will not
34993         have to compile and use the lstat wrapper.  */
34994      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
34995   ;
34996   return 0;
34997 }
34998 _ACEOF
34999 rm -f conftest$ac_exeext
35000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35001   (eval $ac_link) 2>&5
35002   ac_status=$?
35003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35004   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35006   (eval $ac_try) 2>&5
35007   ac_status=$?
35008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35009   (exit $ac_status); }; }; then
35010   ac_cv_func_lstat_dereferences_slashed_symlink=yes
35011 else
35012   echo "$as_me: program exited with status $ac_status" >&5
35013 echo "$as_me: failed program was:" >&5
35014 sed 's/^/| /' conftest.$ac_ext >&5
35015
35016 ( exit $ac_status )
35017 ac_cv_func_lstat_dereferences_slashed_symlink=no
35018 fi
35019 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35020 fi
35021 else
35022   # If the `ln -s' command failed, then we probably don't even
35023   # have an lstat function.
35024   ac_cv_func_lstat_dereferences_slashed_symlink=no
35025 fi
35026 rm -f conftest.sym conftest.file
35027
35028 fi
35029 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
35030 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
35031
35032 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
35033
35034 cat >>confdefs.h <<_ACEOF
35035 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
35036 _ACEOF
35037
35038
35039 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
35040   case $LIBOBJS in
35041     "lstat.$ac_objext"   | \
35042   *" lstat.$ac_objext"   | \
35043     "lstat.$ac_objext "* | \
35044   *" lstat.$ac_objext "* ) ;;
35045   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
35046 esac
35047
35048 fi
35049
35050
35051   echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
35052 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
35053 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
35054   echo $ECHO_N "(cached) $ECHO_C" >&6
35055 else
35056   if test "$cross_compiling" = yes; then
35057   ac_cv_func_lstat_empty_string_bug=yes
35058 else
35059   cat >conftest.$ac_ext <<_ACEOF
35060 /* confdefs.h.  */
35061 _ACEOF
35062 cat confdefs.h >>conftest.$ac_ext
35063 cat >>conftest.$ac_ext <<_ACEOF
35064 /* end confdefs.h.  */
35065 $ac_includes_default
35066 int
35067 main ()
35068 {
35069 struct stat sbuf;
35070   exit (lstat ("", &sbuf) ? 1 : 0);
35071   ;
35072   return 0;
35073 }
35074 _ACEOF
35075 rm -f conftest$ac_exeext
35076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35077   (eval $ac_link) 2>&5
35078   ac_status=$?
35079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35080   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35082   (eval $ac_try) 2>&5
35083   ac_status=$?
35084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35085   (exit $ac_status); }; }; then
35086   ac_cv_func_lstat_empty_string_bug=yes
35087 else
35088   echo "$as_me: program exited with status $ac_status" >&5
35089 echo "$as_me: failed program was:" >&5
35090 sed 's/^/| /' conftest.$ac_ext >&5
35091
35092 ( exit $ac_status )
35093 ac_cv_func_lstat_empty_string_bug=no
35094 fi
35095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35096 fi
35097 fi
35098 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
35099 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
35100 if test $ac_cv_func_lstat_empty_string_bug = yes; then
35101   case $LIBOBJS in
35102     "lstat.$ac_objext"   | \
35103   *" lstat.$ac_objext"   | \
35104     "lstat.$ac_objext "* | \
35105   *" lstat.$ac_objext "* ) ;;
35106   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
35107 esac
35108
35109
35110 cat >>confdefs.h <<_ACEOF
35111 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
35112 _ACEOF
35113
35114 fi
35115
35116     if test $ac_cv_func_lstat_empty_string_bug = yes; then
35117
35118
35119   :
35120
35121   fi
35122
35123
35124
35125   if test $ac_cv_func_memcmp_working = no; then
35126
35127 cat >>confdefs.h <<\_ACEOF
35128 #define memcmp rpl_memcmp
35129 _ACEOF
35130
35131     :
35132   fi
35133
35134
35135  nanosleep_save_libs=$LIBS
35136
35137  # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
35138  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
35139  echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
35140 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
35141 if test "${ac_cv_search_nanosleep+set}" = set; then
35142   echo $ECHO_N "(cached) $ECHO_C" >&6
35143 else
35144   ac_func_search_save_LIBS=$LIBS
35145 ac_cv_search_nanosleep=no
35146 cat >conftest.$ac_ext <<_ACEOF
35147 /* confdefs.h.  */
35148 _ACEOF
35149 cat confdefs.h >>conftest.$ac_ext
35150 cat >>conftest.$ac_ext <<_ACEOF
35151 /* end confdefs.h.  */
35152
35153 /* Override any gcc2 internal prototype to avoid an error.  */
35154 #ifdef __cplusplus
35155 extern "C"
35156 #endif
35157 /* We use char because int might match the return type of a gcc2
35158    builtin and then its argument prototype would still apply.  */
35159 char nanosleep ();
35160 int
35161 main ()
35162 {
35163 nanosleep ();
35164   ;
35165   return 0;
35166 }
35167 _ACEOF
35168 rm -f conftest.$ac_objext conftest$ac_exeext
35169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35170   (eval $ac_link) 2>conftest.er1
35171   ac_status=$?
35172   grep -v '^ *+' conftest.er1 >conftest.err
35173   rm -f conftest.er1
35174   cat conftest.err >&5
35175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176   (exit $ac_status); } &&
35177          { ac_try='test -z "$ac_c_werror_flag"
35178                          || test ! -s conftest.err'
35179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35180   (eval $ac_try) 2>&5
35181   ac_status=$?
35182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35183   (exit $ac_status); }; } &&
35184          { ac_try='test -s conftest$ac_exeext'
35185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35186   (eval $ac_try) 2>&5
35187   ac_status=$?
35188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35189   (exit $ac_status); }; }; then
35190   ac_cv_search_nanosleep="none required"
35191 else
35192   echo "$as_me: failed program was:" >&5
35193 sed 's/^/| /' conftest.$ac_ext >&5
35194
35195 fi
35196 rm -f conftest.err conftest.$ac_objext \
35197       conftest$ac_exeext conftest.$ac_ext
35198 if test "$ac_cv_search_nanosleep" = no; then
35199   for ac_lib in rt posix4; do
35200     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
35201     cat >conftest.$ac_ext <<_ACEOF
35202 /* confdefs.h.  */
35203 _ACEOF
35204 cat confdefs.h >>conftest.$ac_ext
35205 cat >>conftest.$ac_ext <<_ACEOF
35206 /* end confdefs.h.  */
35207
35208 /* Override any gcc2 internal prototype to avoid an error.  */
35209 #ifdef __cplusplus
35210 extern "C"
35211 #endif
35212 /* We use char because int might match the return type of a gcc2
35213    builtin and then its argument prototype would still apply.  */
35214 char nanosleep ();
35215 int
35216 main ()
35217 {
35218 nanosleep ();
35219   ;
35220   return 0;
35221 }
35222 _ACEOF
35223 rm -f conftest.$ac_objext conftest$ac_exeext
35224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35225   (eval $ac_link) 2>conftest.er1
35226   ac_status=$?
35227   grep -v '^ *+' conftest.er1 >conftest.err
35228   rm -f conftest.er1
35229   cat conftest.err >&5
35230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35231   (exit $ac_status); } &&
35232          { ac_try='test -z "$ac_c_werror_flag"
35233                          || test ! -s conftest.err'
35234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35235   (eval $ac_try) 2>&5
35236   ac_status=$?
35237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238   (exit $ac_status); }; } &&
35239          { ac_try='test -s conftest$ac_exeext'
35240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35241   (eval $ac_try) 2>&5
35242   ac_status=$?
35243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244   (exit $ac_status); }; }; then
35245   ac_cv_search_nanosleep="-l$ac_lib"
35246 break
35247 else
35248   echo "$as_me: failed program was:" >&5
35249 sed 's/^/| /' conftest.$ac_ext >&5
35250
35251 fi
35252 rm -f conftest.err conftest.$ac_objext \
35253       conftest$ac_exeext conftest.$ac_ext
35254   done
35255 fi
35256 LIBS=$ac_func_search_save_LIBS
35257 fi
35258 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
35259 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
35260 if test "$ac_cv_search_nanosleep" != no; then
35261   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
35262   test "$ac_cv_search_nanosleep" = "none required" ||
35263                  LIB_NANOSLEEP=$ac_cv_search_nanosleep
35264 fi
35265
35266
35267
35268  echo "$as_me:$LINENO: checking whether nanosleep works" >&5
35269 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
35270 if test "${jm_cv_func_nanosleep_works+set}" = set; then
35271   echo $ECHO_N "(cached) $ECHO_C" >&6
35272 else
35273
35274
35275
35276   :
35277
35278
35279
35280
35281
35282    if test "$cross_compiling" = yes; then
35283          jm_cv_func_nanosleep_works=no
35284 else
35285   cat >conftest.$ac_ext <<_ACEOF
35286 /* confdefs.h.  */
35287 _ACEOF
35288 cat confdefs.h >>conftest.$ac_ext
35289 cat >>conftest.$ac_ext <<_ACEOF
35290 /* end confdefs.h.  */
35291
35292 #   if TIME_WITH_SYS_TIME
35293 #    include <sys/time.h>
35294 #    include <time.h>
35295 #   else
35296 #    if HAVE_SYS_TIME_H
35297 #     include <sys/time.h>
35298 #    else
35299 #     include <time.h>
35300 #    endif
35301 #   endif
35302
35303     int
35304     main ()
35305     {
35306       struct timespec ts_sleep, ts_remaining;
35307       ts_sleep.tv_sec = 0;
35308       ts_sleep.tv_nsec = 1;
35309       exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
35310     }
35311
35312 _ACEOF
35313 rm -f conftest$ac_exeext
35314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35315   (eval $ac_link) 2>&5
35316   ac_status=$?
35317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35320   (eval $ac_try) 2>&5
35321   ac_status=$?
35322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323   (exit $ac_status); }; }; then
35324   jm_cv_func_nanosleep_works=yes
35325 else
35326   echo "$as_me: program exited with status $ac_status" >&5
35327 echo "$as_me: failed program was:" >&5
35328 sed 's/^/| /' conftest.$ac_ext >&5
35329
35330 ( exit $ac_status )
35331 jm_cv_func_nanosleep_works=no
35332 fi
35333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35334 fi
35335
35336 fi
35337 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
35338 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
35339   if test $jm_cv_func_nanosleep_works = no; then
35340     case $LIBOBJS in
35341     "nanosleep.$ac_objext"   | \
35342   *" nanosleep.$ac_objext"   | \
35343     "nanosleep.$ac_objext "* | \
35344   *" nanosleep.$ac_objext "* ) ;;
35345   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext" ;;
35346 esac
35347
35348
35349 cat >>confdefs.h <<\_ACEOF
35350 #define nanosleep rpl_nanosleep
35351 _ACEOF
35352
35353
35354
35355   :
35356
35357
35358
35359
35360
35361
35362   fi
35363
35364  LIBS=$nanosleep_save_libs
35365
35366 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
35367 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
35368 if test "${jm_cv_func_svid_putenv+set}" = set; then
35369   echo $ECHO_N "(cached) $ECHO_C" >&6
35370 else
35371   if test "$cross_compiling" = yes; then
35372              jm_cv_func_svid_putenv=no
35373 else
35374   cat >conftest.$ac_ext <<_ACEOF
35375 /* confdefs.h.  */
35376 _ACEOF
35377 cat confdefs.h >>conftest.$ac_ext
35378 cat >>conftest.$ac_ext <<_ACEOF
35379 /* end confdefs.h.  */
35380
35381     int
35382     main ()
35383     {
35384       /* Put it in env.  */
35385       if (putenv ("CONFTEST_putenv=val"))
35386         exit (1);
35387
35388       /* Try to remove it.  */
35389       if (putenv ("CONFTEST_putenv"))
35390         exit (1);
35391
35392       /* Make sure it was deleted.  */
35393       if (getenv ("CONFTEST_putenv") != 0)
35394         exit (1);
35395
35396       exit (0);
35397     }
35398
35399 _ACEOF
35400 rm -f conftest$ac_exeext
35401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35402   (eval $ac_link) 2>&5
35403   ac_status=$?
35404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35405   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35407   (eval $ac_try) 2>&5
35408   ac_status=$?
35409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35410   (exit $ac_status); }; }; then
35411   jm_cv_func_svid_putenv=yes
35412 else
35413   echo "$as_me: program exited with status $ac_status" >&5
35414 echo "$as_me: failed program was:" >&5
35415 sed 's/^/| /' conftest.$ac_ext >&5
35416
35417 ( exit $ac_status )
35418 jm_cv_func_svid_putenv=no
35419 fi
35420 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35421 fi
35422
35423 fi
35424 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
35425 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
35426   if test $jm_cv_func_svid_putenv = no; then
35427     case $LIBOBJS in
35428     "putenv.$ac_objext"   | \
35429   *" putenv.$ac_objext"   | \
35430     "putenv.$ac_objext "* | \
35431   *" putenv.$ac_objext "* ) ;;
35432   *) LIBOBJS="$LIBOBJS putenv.$ac_objext" ;;
35433 esac
35434
35435
35436 cat >>confdefs.h <<\_ACEOF
35437 #define putenv rpl_putenv
35438 _ACEOF
35439
35440
35441
35442   :
35443
35444
35445
35446
35447
35448
35449   fi
35450
35451
35452   echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
35453 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
35454 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
35455   echo $ECHO_N "(cached) $ECHO_C" >&6
35456 else
35457   if test "$cross_compiling" = yes; then
35458   ac_cv_func_stat_empty_string_bug=yes
35459 else
35460   cat >conftest.$ac_ext <<_ACEOF
35461 /* confdefs.h.  */
35462 _ACEOF
35463 cat confdefs.h >>conftest.$ac_ext
35464 cat >>conftest.$ac_ext <<_ACEOF
35465 /* end confdefs.h.  */
35466 $ac_includes_default
35467 int
35468 main ()
35469 {
35470 struct stat sbuf;
35471   exit (stat ("", &sbuf) ? 1 : 0);
35472   ;
35473   return 0;
35474 }
35475 _ACEOF
35476 rm -f conftest$ac_exeext
35477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35478   (eval $ac_link) 2>&5
35479   ac_status=$?
35480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35481   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35483   (eval $ac_try) 2>&5
35484   ac_status=$?
35485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486   (exit $ac_status); }; }; then
35487   ac_cv_func_stat_empty_string_bug=yes
35488 else
35489   echo "$as_me: program exited with status $ac_status" >&5
35490 echo "$as_me: failed program was:" >&5
35491 sed 's/^/| /' conftest.$ac_ext >&5
35492
35493 ( exit $ac_status )
35494 ac_cv_func_stat_empty_string_bug=no
35495 fi
35496 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35497 fi
35498 fi
35499 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
35500 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
35501 if test $ac_cv_func_stat_empty_string_bug = yes; then
35502   case $LIBOBJS in
35503     "stat.$ac_objext"   | \
35504   *" stat.$ac_objext"   | \
35505     "stat.$ac_objext "* | \
35506   *" stat.$ac_objext "* ) ;;
35507   *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
35508 esac
35509
35510
35511 cat >>confdefs.h <<_ACEOF
35512 #define HAVE_STAT_EMPTY_STRING_BUG 1
35513 _ACEOF
35514
35515 fi
35516
35517     if test $ac_cv_func_stat_empty_string_bug = yes; then
35518
35519   :
35520
35521   fi
35522
35523 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
35524 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
35525 if test "${ac_cv_func_utime_null+set}" = set; then
35526   echo $ECHO_N "(cached) $ECHO_C" >&6
35527 else
35528   rm -f conftest.data; >conftest.data
35529 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
35530 if test "$cross_compiling" = yes; then
35531   ac_cv_func_utime_null=no
35532 else
35533   cat >conftest.$ac_ext <<_ACEOF
35534 /* confdefs.h.  */
35535 _ACEOF
35536 cat confdefs.h >>conftest.$ac_ext
35537 cat >>conftest.$ac_ext <<_ACEOF
35538 /* end confdefs.h.  */
35539 $ac_includes_default
35540 int
35541 main ()
35542 {
35543 struct stat s, t;
35544   exit (!(stat ("conftest.data", &s) == 0
35545           && utime ("conftest.data", (long *)0) == 0
35546           && stat ("conftest.data", &t) == 0
35547           && t.st_mtime >= s.st_mtime
35548           && t.st_mtime - s.st_mtime < 120));
35549   ;
35550   return 0;
35551 }
35552 _ACEOF
35553 rm -f conftest$ac_exeext
35554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35555   (eval $ac_link) 2>&5
35556   ac_status=$?
35557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35560   (eval $ac_try) 2>&5
35561   ac_status=$?
35562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35563   (exit $ac_status); }; }; then
35564   ac_cv_func_utime_null=yes
35565 else
35566   echo "$as_me: program exited with status $ac_status" >&5
35567 echo "$as_me: failed program was:" >&5
35568 sed 's/^/| /' conftest.$ac_ext >&5
35569
35570 ( exit $ac_status )
35571 ac_cv_func_utime_null=no
35572 fi
35573 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35574 fi
35575 rm -f core *.core
35576 fi
35577 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
35578 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
35579 if test $ac_cv_func_utime_null = yes; then
35580
35581 cat >>confdefs.h <<\_ACEOF
35582 #define HAVE_UTIME_NULL 1
35583 _ACEOF
35584
35585 fi
35586 rm -f conftest.data
35587
35588
35589
35590   if test $ac_cv_func_utime_null = no; then
35591     case $LIBOBJS in
35592     "utime.$ac_objext"   | \
35593   *" utime.$ac_objext"   | \
35594     "utime.$ac_objext "* | \
35595   *" utime.$ac_objext "* ) ;;
35596   *) LIBOBJS="$LIBOBJS utime.$ac_objext" ;;
35597 esac
35598
35599
35600 cat >>confdefs.h <<\_ACEOF
35601 #define utime rpl_utime
35602 _ACEOF
35603
35604
35605
35606   :
35607
35608
35609
35610
35611
35612
35613   echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
35614 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
35615 if test "${ac_cv_func_utimes_null+set}" = set; then
35616   echo $ECHO_N "(cached) $ECHO_C" >&6
35617 else
35618   rm -f conftest.data; > conftest.data
35619 if test "$cross_compiling" = yes; then
35620   ac_cv_func_utimes_null=no
35621 else
35622   cat >conftest.$ac_ext <<_ACEOF
35623 /* confdefs.h.  */
35624 _ACEOF
35625 cat confdefs.h >>conftest.$ac_ext
35626 cat >>conftest.$ac_ext <<_ACEOF
35627 /* end confdefs.h.  */
35628
35629 /* In case stat has been defined to rpl_stat, undef it here.  */
35630 #undef stat
35631 #include <sys/types.h>
35632 #include <sys/stat.h>
35633 main() {
35634 struct stat s, t;
35635 exit(!(stat ("conftest.data", &s) == 0
35636        && utimes("conftest.data", (long *)0) == 0
35637        && stat("conftest.data", &t) == 0
35638        && t.st_mtime >= s.st_mtime
35639        && t.st_mtime - s.st_mtime < 120));
35640 }
35641 _ACEOF
35642 rm -f conftest$ac_exeext
35643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35644   (eval $ac_link) 2>&5
35645   ac_status=$?
35646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35647   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35649   (eval $ac_try) 2>&5
35650   ac_status=$?
35651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35652   (exit $ac_status); }; }; then
35653   ac_cv_func_utimes_null=yes
35654 else
35655   echo "$as_me: program exited with status $ac_status" >&5
35656 echo "$as_me: failed program was:" >&5
35657 sed 's/^/| /' conftest.$ac_ext >&5
35658
35659 ( exit $ac_status )
35660 ac_cv_func_utimes_null=no
35661 fi
35662 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35663 fi
35664 rm -f core core.* *.core
35665 fi
35666 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
35667 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
35668
35669     if test $ac_cv_func_utimes_null = yes; then
35670
35671 cat >>confdefs.h <<\_ACEOF
35672 #define HAVE_UTIMES_NULL 1
35673 _ACEOF
35674
35675     fi
35676
35677
35678
35679   fi
35680
35681
35682
35683
35684
35685
35686 for ac_header in sys/sysmacros.h sys/statvfs.h sys/vfs.h inttypes.h
35687 do
35688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35690   echo "$as_me:$LINENO: checking for $ac_header" >&5
35691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35693   echo $ECHO_N "(cached) $ECHO_C" >&6
35694 fi
35695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35697 else
35698   # Is the header compilable?
35699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35701 cat >conftest.$ac_ext <<_ACEOF
35702 /* confdefs.h.  */
35703 _ACEOF
35704 cat confdefs.h >>conftest.$ac_ext
35705 cat >>conftest.$ac_ext <<_ACEOF
35706 /* end confdefs.h.  */
35707 $ac_includes_default
35708 #include <$ac_header>
35709 _ACEOF
35710 rm -f conftest.$ac_objext
35711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35712   (eval $ac_compile) 2>conftest.er1
35713   ac_status=$?
35714   grep -v '^ *+' conftest.er1 >conftest.err
35715   rm -f conftest.er1
35716   cat conftest.err >&5
35717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718   (exit $ac_status); } &&
35719          { ac_try='test -z "$ac_c_werror_flag"
35720                          || test ! -s conftest.err'
35721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35722   (eval $ac_try) 2>&5
35723   ac_status=$?
35724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725   (exit $ac_status); }; } &&
35726          { ac_try='test -s conftest.$ac_objext'
35727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35728   (eval $ac_try) 2>&5
35729   ac_status=$?
35730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35731   (exit $ac_status); }; }; then
35732   ac_header_compiler=yes
35733 else
35734   echo "$as_me: failed program was:" >&5
35735 sed 's/^/| /' conftest.$ac_ext >&5
35736
35737 ac_header_compiler=no
35738 fi
35739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35741 echo "${ECHO_T}$ac_header_compiler" >&6
35742
35743 # Is the header present?
35744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35746 cat >conftest.$ac_ext <<_ACEOF
35747 /* confdefs.h.  */
35748 _ACEOF
35749 cat confdefs.h >>conftest.$ac_ext
35750 cat >>conftest.$ac_ext <<_ACEOF
35751 /* end confdefs.h.  */
35752 #include <$ac_header>
35753 _ACEOF
35754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35755   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35756   ac_status=$?
35757   grep -v '^ *+' conftest.er1 >conftest.err
35758   rm -f conftest.er1
35759   cat conftest.err >&5
35760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35761   (exit $ac_status); } >/dev/null; then
35762   if test -s conftest.err; then
35763     ac_cpp_err=$ac_c_preproc_warn_flag
35764     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35765   else
35766     ac_cpp_err=
35767   fi
35768 else
35769   ac_cpp_err=yes
35770 fi
35771 if test -z "$ac_cpp_err"; then
35772   ac_header_preproc=yes
35773 else
35774   echo "$as_me: failed program was:" >&5
35775 sed 's/^/| /' conftest.$ac_ext >&5
35776
35777   ac_header_preproc=no
35778 fi
35779 rm -f conftest.err conftest.$ac_ext
35780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35781 echo "${ECHO_T}$ac_header_preproc" >&6
35782
35783 # So?  What about this header?
35784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35785   yes:no: )
35786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35790     ac_header_preproc=yes
35791     ;;
35792   no:yes:* )
35793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35805     (
35806       cat <<\_ASBOX
35807 ## ------------------------------------ ##
35808 ## Report this to bug-coreutils@gnu.org ##
35809 ## ------------------------------------ ##
35810 _ASBOX
35811     ) |
35812       sed "s/^/$as_me: WARNING:     /" >&2
35813     ;;
35814 esac
35815 echo "$as_me:$LINENO: checking for $ac_header" >&5
35816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35818   echo $ECHO_N "(cached) $ECHO_C" >&6
35819 else
35820   eval "$as_ac_Header=\$ac_header_preproc"
35821 fi
35822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35824
35825 fi
35826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35827   cat >>confdefs.h <<_ACEOF
35828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35829 _ACEOF
35830
35831 fi
35832
35833 done
35834
35835
35836
35837 for ac_header in sys/param.h sys/mount.h
35838 do
35839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35841   echo "$as_me:$LINENO: checking for $ac_header" >&5
35842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35844   echo $ECHO_N "(cached) $ECHO_C" >&6
35845 fi
35846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35848 else
35849   # Is the header compilable?
35850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35852 cat >conftest.$ac_ext <<_ACEOF
35853 /* confdefs.h.  */
35854 _ACEOF
35855 cat confdefs.h >>conftest.$ac_ext
35856 cat >>conftest.$ac_ext <<_ACEOF
35857 /* end confdefs.h.  */
35858 $ac_includes_default
35859 #include <$ac_header>
35860 _ACEOF
35861 rm -f conftest.$ac_objext
35862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35863   (eval $ac_compile) 2>conftest.er1
35864   ac_status=$?
35865   grep -v '^ *+' conftest.er1 >conftest.err
35866   rm -f conftest.er1
35867   cat conftest.err >&5
35868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35869   (exit $ac_status); } &&
35870          { ac_try='test -z "$ac_c_werror_flag"
35871                          || test ! -s conftest.err'
35872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35873   (eval $ac_try) 2>&5
35874   ac_status=$?
35875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35876   (exit $ac_status); }; } &&
35877          { ac_try='test -s conftest.$ac_objext'
35878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35879   (eval $ac_try) 2>&5
35880   ac_status=$?
35881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35882   (exit $ac_status); }; }; then
35883   ac_header_compiler=yes
35884 else
35885   echo "$as_me: failed program was:" >&5
35886 sed 's/^/| /' conftest.$ac_ext >&5
35887
35888 ac_header_compiler=no
35889 fi
35890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35892 echo "${ECHO_T}$ac_header_compiler" >&6
35893
35894 # Is the header present?
35895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35897 cat >conftest.$ac_ext <<_ACEOF
35898 /* confdefs.h.  */
35899 _ACEOF
35900 cat confdefs.h >>conftest.$ac_ext
35901 cat >>conftest.$ac_ext <<_ACEOF
35902 /* end confdefs.h.  */
35903 #include <$ac_header>
35904 _ACEOF
35905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35907   ac_status=$?
35908   grep -v '^ *+' conftest.er1 >conftest.err
35909   rm -f conftest.er1
35910   cat conftest.err >&5
35911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35912   (exit $ac_status); } >/dev/null; then
35913   if test -s conftest.err; then
35914     ac_cpp_err=$ac_c_preproc_warn_flag
35915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35916   else
35917     ac_cpp_err=
35918   fi
35919 else
35920   ac_cpp_err=yes
35921 fi
35922 if test -z "$ac_cpp_err"; then
35923   ac_header_preproc=yes
35924 else
35925   echo "$as_me: failed program was:" >&5
35926 sed 's/^/| /' conftest.$ac_ext >&5
35927
35928   ac_header_preproc=no
35929 fi
35930 rm -f conftest.err conftest.$ac_ext
35931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35932 echo "${ECHO_T}$ac_header_preproc" >&6
35933
35934 # So?  What about this header?
35935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35936   yes:no: )
35937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35941     ac_header_preproc=yes
35942     ;;
35943   no:yes:* )
35944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35956     (
35957       cat <<\_ASBOX
35958 ## ------------------------------------ ##
35959 ## Report this to bug-coreutils@gnu.org ##
35960 ## ------------------------------------ ##
35961 _ASBOX
35962     ) |
35963       sed "s/^/$as_me: WARNING:     /" >&2
35964     ;;
35965 esac
35966 echo "$as_me:$LINENO: checking for $ac_header" >&5
35967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35969   echo $ECHO_N "(cached) $ECHO_C" >&6
35970 else
35971   eval "$as_ac_Header=\$ac_header_preproc"
35972 fi
35973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35975
35976 fi
35977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35978   cat >>confdefs.h <<_ACEOF
35979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35980 _ACEOF
35981
35982 fi
35983
35984 done
35985
35986
35987 for ac_func in statvfs
35988 do
35989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35990 echo "$as_me:$LINENO: checking for $ac_func" >&5
35991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35992 if eval "test \"\${$as_ac_var+set}\" = set"; then
35993   echo $ECHO_N "(cached) $ECHO_C" >&6
35994 else
35995   cat >conftest.$ac_ext <<_ACEOF
35996 /* confdefs.h.  */
35997 _ACEOF
35998 cat confdefs.h >>conftest.$ac_ext
35999 cat >>conftest.$ac_ext <<_ACEOF
36000 /* end confdefs.h.  */
36001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36003 #define $ac_func innocuous_$ac_func
36004
36005 /* System header to define __stub macros and hopefully few prototypes,
36006     which can conflict with char $ac_func (); below.
36007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36008     <limits.h> exists even on freestanding compilers.  */
36009
36010 #ifdef __STDC__
36011 # include <limits.h>
36012 #else
36013 # include <assert.h>
36014 #endif
36015
36016 #undef $ac_func
36017
36018 /* Override any gcc2 internal prototype to avoid an error.  */
36019 #ifdef __cplusplus
36020 extern "C"
36021 {
36022 #endif
36023 /* We use char because int might match the return type of a gcc2
36024    builtin and then its argument prototype would still apply.  */
36025 char $ac_func ();
36026 /* The GNU C library defines this for functions which it implements
36027     to always fail with ENOSYS.  Some functions are actually named
36028     something starting with __ and the normal name is an alias.  */
36029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36030 choke me
36031 #else
36032 char (*f) () = $ac_func;
36033 #endif
36034 #ifdef __cplusplus
36035 }
36036 #endif
36037
36038 int
36039 main ()
36040 {
36041 return f != $ac_func;
36042   ;
36043   return 0;
36044 }
36045 _ACEOF
36046 rm -f conftest.$ac_objext conftest$ac_exeext
36047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36048   (eval $ac_link) 2>conftest.er1
36049   ac_status=$?
36050   grep -v '^ *+' conftest.er1 >conftest.err
36051   rm -f conftest.er1
36052   cat conftest.err >&5
36053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36054   (exit $ac_status); } &&
36055          { ac_try='test -z "$ac_c_werror_flag"
36056                          || test ! -s conftest.err'
36057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36058   (eval $ac_try) 2>&5
36059   ac_status=$?
36060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36061   (exit $ac_status); }; } &&
36062          { ac_try='test -s conftest$ac_exeext'
36063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36064   (eval $ac_try) 2>&5
36065   ac_status=$?
36066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36067   (exit $ac_status); }; }; then
36068   eval "$as_ac_var=yes"
36069 else
36070   echo "$as_me: failed program was:" >&5
36071 sed 's/^/| /' conftest.$ac_ext >&5
36072
36073 eval "$as_ac_var=no"
36074 fi
36075 rm -f conftest.err conftest.$ac_objext \
36076       conftest$ac_exeext conftest.$ac_ext
36077 fi
36078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36080 if test `eval echo '${'$as_ac_var'}'` = yes; then
36081   cat >>confdefs.h <<_ACEOF
36082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36083 _ACEOF
36084
36085 fi
36086 done
36087
36088
36089   # For `struct statfs' on Ultrix 4.4.
36090
36091
36092
36093 for ac_header in netinet/in.h nfs/nfs_clnt.h nfs/vfs.h
36094 do
36095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36096 echo "$as_me:$LINENO: checking for $ac_header" >&5
36097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36099   echo $ECHO_N "(cached) $ECHO_C" >&6
36100 else
36101   cat >conftest.$ac_ext <<_ACEOF
36102 /* confdefs.h.  */
36103 _ACEOF
36104 cat confdefs.h >>conftest.$ac_ext
36105 cat >>conftest.$ac_ext <<_ACEOF
36106 /* end confdefs.h.  */
36107 $ac_includes_default
36108
36109 #include <$ac_header>
36110 _ACEOF
36111 rm -f conftest.$ac_objext
36112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36113   (eval $ac_compile) 2>conftest.er1
36114   ac_status=$?
36115   grep -v '^ *+' conftest.er1 >conftest.err
36116   rm -f conftest.er1
36117   cat conftest.err >&5
36118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119   (exit $ac_status); } &&
36120          { ac_try='test -z "$ac_c_werror_flag"
36121                          || test ! -s conftest.err'
36122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36123   (eval $ac_try) 2>&5
36124   ac_status=$?
36125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36126   (exit $ac_status); }; } &&
36127          { ac_try='test -s conftest.$ac_objext'
36128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36129   (eval $ac_try) 2>&5
36130   ac_status=$?
36131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132   (exit $ac_status); }; }; then
36133   eval "$as_ac_Header=yes"
36134 else
36135   echo "$as_me: failed program was:" >&5
36136 sed 's/^/| /' conftest.$ac_ext >&5
36137
36138 eval "$as_ac_Header=no"
36139 fi
36140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36141 fi
36142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36145   cat >>confdefs.h <<_ACEOF
36146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36147 _ACEOF
36148
36149 fi
36150
36151 done
36152
36153
36154
36155
36156   statxfs_includes="\
36157 $ac_includes_default
36158 #if HAVE_SYS_STATVFS_H
36159 # include <sys/statvfs.h>
36160 #endif
36161 #if HAVE_SYS_VFS_H
36162 # include <sys/vfs.h>
36163 #endif
36164 #if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
36165 # if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
36166 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
36167 #  include <sys/param.h>
36168 #  include <sys/mount.h>
36169 # elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
36170 /* Ultrix 4.4 needs these for the declaration of struct statfs.  */
36171 #  include <netinet/in.h>
36172 #  include <nfs/nfs_clnt.h>
36173 #  include <nfs/vfs.h>
36174 # endif
36175 #endif
36176 "
36177   echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
36178 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
36179 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
36180   echo $ECHO_N "(cached) $ECHO_C" >&6
36181 else
36182   cat >conftest.$ac_ext <<_ACEOF
36183 /* confdefs.h.  */
36184 _ACEOF
36185 cat confdefs.h >>conftest.$ac_ext
36186 cat >>conftest.$ac_ext <<_ACEOF
36187 /* end confdefs.h.  */
36188 $statxfs_includes
36189
36190 int
36191 main ()
36192 {
36193 static struct statfs ac_aggr;
36194 if (ac_aggr.f_basetype)
36195 return 0;
36196   ;
36197   return 0;
36198 }
36199 _ACEOF
36200 rm -f conftest.$ac_objext
36201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36202   (eval $ac_compile) 2>conftest.er1
36203   ac_status=$?
36204   grep -v '^ *+' conftest.er1 >conftest.err
36205   rm -f conftest.er1
36206   cat conftest.err >&5
36207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36208   (exit $ac_status); } &&
36209          { ac_try='test -z "$ac_c_werror_flag"
36210                          || test ! -s conftest.err'
36211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36212   (eval $ac_try) 2>&5
36213   ac_status=$?
36214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36215   (exit $ac_status); }; } &&
36216          { ac_try='test -s conftest.$ac_objext'
36217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36218   (eval $ac_try) 2>&5
36219   ac_status=$?
36220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36221   (exit $ac_status); }; }; then
36222   ac_cv_member_struct_statfs_f_basetype=yes
36223 else
36224   echo "$as_me: failed program was:" >&5
36225 sed 's/^/| /' conftest.$ac_ext >&5
36226
36227 cat >conftest.$ac_ext <<_ACEOF
36228 /* confdefs.h.  */
36229 _ACEOF
36230 cat confdefs.h >>conftest.$ac_ext
36231 cat >>conftest.$ac_ext <<_ACEOF
36232 /* end confdefs.h.  */
36233 $statxfs_includes
36234
36235 int
36236 main ()
36237 {
36238 static struct statfs ac_aggr;
36239 if (sizeof ac_aggr.f_basetype)
36240 return 0;
36241   ;
36242   return 0;
36243 }
36244 _ACEOF
36245 rm -f conftest.$ac_objext
36246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36247   (eval $ac_compile) 2>conftest.er1
36248   ac_status=$?
36249   grep -v '^ *+' conftest.er1 >conftest.err
36250   rm -f conftest.er1
36251   cat conftest.err >&5
36252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36253   (exit $ac_status); } &&
36254          { ac_try='test -z "$ac_c_werror_flag"
36255                          || test ! -s conftest.err'
36256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36257   (eval $ac_try) 2>&5
36258   ac_status=$?
36259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36260   (exit $ac_status); }; } &&
36261          { ac_try='test -s conftest.$ac_objext'
36262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36263   (eval $ac_try) 2>&5
36264   ac_status=$?
36265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36266   (exit $ac_status); }; }; then
36267   ac_cv_member_struct_statfs_f_basetype=yes
36268 else
36269   echo "$as_me: failed program was:" >&5
36270 sed 's/^/| /' conftest.$ac_ext >&5
36271
36272 ac_cv_member_struct_statfs_f_basetype=no
36273 fi
36274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36275 fi
36276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36277 fi
36278 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
36279 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
36280 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
36281
36282 cat >>confdefs.h <<_ACEOF
36283 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
36284 _ACEOF
36285
36286
36287 fi
36288
36289   echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
36290 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
36291 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
36292   echo $ECHO_N "(cached) $ECHO_C" >&6
36293 else
36294   cat >conftest.$ac_ext <<_ACEOF
36295 /* confdefs.h.  */
36296 _ACEOF
36297 cat confdefs.h >>conftest.$ac_ext
36298 cat >>conftest.$ac_ext <<_ACEOF
36299 /* end confdefs.h.  */
36300 $statxfs_includes
36301
36302 int
36303 main ()
36304 {
36305 static struct statvfs ac_aggr;
36306 if (ac_aggr.f_basetype)
36307 return 0;
36308   ;
36309   return 0;
36310 }
36311 _ACEOF
36312 rm -f conftest.$ac_objext
36313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36314   (eval $ac_compile) 2>conftest.er1
36315   ac_status=$?
36316   grep -v '^ *+' conftest.er1 >conftest.err
36317   rm -f conftest.er1
36318   cat conftest.err >&5
36319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320   (exit $ac_status); } &&
36321          { ac_try='test -z "$ac_c_werror_flag"
36322                          || test ! -s conftest.err'
36323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36324   (eval $ac_try) 2>&5
36325   ac_status=$?
36326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327   (exit $ac_status); }; } &&
36328          { ac_try='test -s conftest.$ac_objext'
36329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36330   (eval $ac_try) 2>&5
36331   ac_status=$?
36332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36333   (exit $ac_status); }; }; then
36334   ac_cv_member_struct_statvfs_f_basetype=yes
36335 else
36336   echo "$as_me: failed program was:" >&5
36337 sed 's/^/| /' conftest.$ac_ext >&5
36338
36339 cat >conftest.$ac_ext <<_ACEOF
36340 /* confdefs.h.  */
36341 _ACEOF
36342 cat confdefs.h >>conftest.$ac_ext
36343 cat >>conftest.$ac_ext <<_ACEOF
36344 /* end confdefs.h.  */
36345 $statxfs_includes
36346
36347 int
36348 main ()
36349 {
36350 static struct statvfs ac_aggr;
36351 if (sizeof ac_aggr.f_basetype)
36352 return 0;
36353   ;
36354   return 0;
36355 }
36356 _ACEOF
36357 rm -f conftest.$ac_objext
36358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36359   (eval $ac_compile) 2>conftest.er1
36360   ac_status=$?
36361   grep -v '^ *+' conftest.er1 >conftest.err
36362   rm -f conftest.er1
36363   cat conftest.err >&5
36364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365   (exit $ac_status); } &&
36366          { ac_try='test -z "$ac_c_werror_flag"
36367                          || test ! -s conftest.err'
36368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36369   (eval $ac_try) 2>&5
36370   ac_status=$?
36371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36372   (exit $ac_status); }; } &&
36373          { ac_try='test -s conftest.$ac_objext'
36374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36375   (eval $ac_try) 2>&5
36376   ac_status=$?
36377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36378   (exit $ac_status); }; }; then
36379   ac_cv_member_struct_statvfs_f_basetype=yes
36380 else
36381   echo "$as_me: failed program was:" >&5
36382 sed 's/^/| /' conftest.$ac_ext >&5
36383
36384 ac_cv_member_struct_statvfs_f_basetype=no
36385 fi
36386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36387 fi
36388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36389 fi
36390 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
36391 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
36392 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
36393
36394 cat >>confdefs.h <<_ACEOF
36395 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
36396 _ACEOF
36397
36398
36399 fi
36400
36401   echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
36402 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
36403 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
36404   echo $ECHO_N "(cached) $ECHO_C" >&6
36405 else
36406   cat >conftest.$ac_ext <<_ACEOF
36407 /* confdefs.h.  */
36408 _ACEOF
36409 cat confdefs.h >>conftest.$ac_ext
36410 cat >>conftest.$ac_ext <<_ACEOF
36411 /* end confdefs.h.  */
36412 $statxfs_includes
36413
36414 int
36415 main ()
36416 {
36417 static struct statfs ac_aggr;
36418 if (ac_aggr.f_fstypename)
36419 return 0;
36420   ;
36421   return 0;
36422 }
36423 _ACEOF
36424 rm -f conftest.$ac_objext
36425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36426   (eval $ac_compile) 2>conftest.er1
36427   ac_status=$?
36428   grep -v '^ *+' conftest.er1 >conftest.err
36429   rm -f conftest.er1
36430   cat conftest.err >&5
36431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36432   (exit $ac_status); } &&
36433          { ac_try='test -z "$ac_c_werror_flag"
36434                          || test ! -s conftest.err'
36435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36436   (eval $ac_try) 2>&5
36437   ac_status=$?
36438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36439   (exit $ac_status); }; } &&
36440          { ac_try='test -s conftest.$ac_objext'
36441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36442   (eval $ac_try) 2>&5
36443   ac_status=$?
36444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36445   (exit $ac_status); }; }; then
36446   ac_cv_member_struct_statfs_f_fstypename=yes
36447 else
36448   echo "$as_me: failed program was:" >&5
36449 sed 's/^/| /' conftest.$ac_ext >&5
36450
36451 cat >conftest.$ac_ext <<_ACEOF
36452 /* confdefs.h.  */
36453 _ACEOF
36454 cat confdefs.h >>conftest.$ac_ext
36455 cat >>conftest.$ac_ext <<_ACEOF
36456 /* end confdefs.h.  */
36457 $statxfs_includes
36458
36459 int
36460 main ()
36461 {
36462 static struct statfs ac_aggr;
36463 if (sizeof ac_aggr.f_fstypename)
36464 return 0;
36465   ;
36466   return 0;
36467 }
36468 _ACEOF
36469 rm -f conftest.$ac_objext
36470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36471   (eval $ac_compile) 2>conftest.er1
36472   ac_status=$?
36473   grep -v '^ *+' conftest.er1 >conftest.err
36474   rm -f conftest.er1
36475   cat conftest.err >&5
36476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36477   (exit $ac_status); } &&
36478          { ac_try='test -z "$ac_c_werror_flag"
36479                          || test ! -s conftest.err'
36480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36481   (eval $ac_try) 2>&5
36482   ac_status=$?
36483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36484   (exit $ac_status); }; } &&
36485          { ac_try='test -s conftest.$ac_objext'
36486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36487   (eval $ac_try) 2>&5
36488   ac_status=$?
36489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36490   (exit $ac_status); }; }; then
36491   ac_cv_member_struct_statfs_f_fstypename=yes
36492 else
36493   echo "$as_me: failed program was:" >&5
36494 sed 's/^/| /' conftest.$ac_ext >&5
36495
36496 ac_cv_member_struct_statfs_f_fstypename=no
36497 fi
36498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36499 fi
36500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36501 fi
36502 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
36503 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
36504 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
36505
36506 cat >>confdefs.h <<_ACEOF
36507 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
36508 _ACEOF
36509
36510
36511 fi
36512
36513   echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
36514 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
36515 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
36516   echo $ECHO_N "(cached) $ECHO_C" >&6
36517 else
36518   cat >conftest.$ac_ext <<_ACEOF
36519 /* confdefs.h.  */
36520 _ACEOF
36521 cat confdefs.h >>conftest.$ac_ext
36522 cat >>conftest.$ac_ext <<_ACEOF
36523 /* end confdefs.h.  */
36524 $statxfs_includes
36525
36526 int
36527 main ()
36528 {
36529 static struct statfs ac_aggr;
36530 if (ac_aggr.f_type)
36531 return 0;
36532   ;
36533   return 0;
36534 }
36535 _ACEOF
36536 rm -f conftest.$ac_objext
36537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36538   (eval $ac_compile) 2>conftest.er1
36539   ac_status=$?
36540   grep -v '^ *+' conftest.er1 >conftest.err
36541   rm -f conftest.er1
36542   cat conftest.err >&5
36543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36544   (exit $ac_status); } &&
36545          { ac_try='test -z "$ac_c_werror_flag"
36546                          || test ! -s conftest.err'
36547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36548   (eval $ac_try) 2>&5
36549   ac_status=$?
36550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36551   (exit $ac_status); }; } &&
36552          { ac_try='test -s conftest.$ac_objext'
36553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36554   (eval $ac_try) 2>&5
36555   ac_status=$?
36556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36557   (exit $ac_status); }; }; then
36558   ac_cv_member_struct_statfs_f_type=yes
36559 else
36560   echo "$as_me: failed program was:" >&5
36561 sed 's/^/| /' conftest.$ac_ext >&5
36562
36563 cat >conftest.$ac_ext <<_ACEOF
36564 /* confdefs.h.  */
36565 _ACEOF
36566 cat confdefs.h >>conftest.$ac_ext
36567 cat >>conftest.$ac_ext <<_ACEOF
36568 /* end confdefs.h.  */
36569 $statxfs_includes
36570
36571 int
36572 main ()
36573 {
36574 static struct statfs ac_aggr;
36575 if (sizeof ac_aggr.f_type)
36576 return 0;
36577   ;
36578   return 0;
36579 }
36580 _ACEOF
36581 rm -f conftest.$ac_objext
36582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36583   (eval $ac_compile) 2>conftest.er1
36584   ac_status=$?
36585   grep -v '^ *+' conftest.er1 >conftest.err
36586   rm -f conftest.er1
36587   cat conftest.err >&5
36588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36589   (exit $ac_status); } &&
36590          { ac_try='test -z "$ac_c_werror_flag"
36591                          || test ! -s conftest.err'
36592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36593   (eval $ac_try) 2>&5
36594   ac_status=$?
36595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36596   (exit $ac_status); }; } &&
36597          { ac_try='test -s conftest.$ac_objext'
36598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36599   (eval $ac_try) 2>&5
36600   ac_status=$?
36601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36602   (exit $ac_status); }; }; then
36603   ac_cv_member_struct_statfs_f_type=yes
36604 else
36605   echo "$as_me: failed program was:" >&5
36606 sed 's/^/| /' conftest.$ac_ext >&5
36607
36608 ac_cv_member_struct_statfs_f_type=no
36609 fi
36610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36611 fi
36612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36613 fi
36614 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
36615 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
36616 if test $ac_cv_member_struct_statfs_f_type = yes; then
36617
36618 cat >>confdefs.h <<_ACEOF
36619 #define HAVE_STRUCT_STATFS_F_TYPE 1
36620 _ACEOF
36621
36622
36623 fi
36624
36625   echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
36626 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
36627 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
36628   echo $ECHO_N "(cached) $ECHO_C" >&6
36629 else
36630   cat >conftest.$ac_ext <<_ACEOF
36631 /* confdefs.h.  */
36632 _ACEOF
36633 cat confdefs.h >>conftest.$ac_ext
36634 cat >>conftest.$ac_ext <<_ACEOF
36635 /* end confdefs.h.  */
36636 $statxfs_includes
36637
36638 int
36639 main ()
36640 {
36641 static struct statvfs ac_aggr;
36642 if (ac_aggr.f_type)
36643 return 0;
36644   ;
36645   return 0;
36646 }
36647 _ACEOF
36648 rm -f conftest.$ac_objext
36649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36650   (eval $ac_compile) 2>conftest.er1
36651   ac_status=$?
36652   grep -v '^ *+' conftest.er1 >conftest.err
36653   rm -f conftest.er1
36654   cat conftest.err >&5
36655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656   (exit $ac_status); } &&
36657          { ac_try='test -z "$ac_c_werror_flag"
36658                          || test ! -s conftest.err'
36659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36660   (eval $ac_try) 2>&5
36661   ac_status=$?
36662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36663   (exit $ac_status); }; } &&
36664          { ac_try='test -s conftest.$ac_objext'
36665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36666   (eval $ac_try) 2>&5
36667   ac_status=$?
36668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36669   (exit $ac_status); }; }; then
36670   ac_cv_member_struct_statvfs_f_type=yes
36671 else
36672   echo "$as_me: failed program was:" >&5
36673 sed 's/^/| /' conftest.$ac_ext >&5
36674
36675 cat >conftest.$ac_ext <<_ACEOF
36676 /* confdefs.h.  */
36677 _ACEOF
36678 cat confdefs.h >>conftest.$ac_ext
36679 cat >>conftest.$ac_ext <<_ACEOF
36680 /* end confdefs.h.  */
36681 $statxfs_includes
36682
36683 int
36684 main ()
36685 {
36686 static struct statvfs ac_aggr;
36687 if (sizeof ac_aggr.f_type)
36688 return 0;
36689   ;
36690   return 0;
36691 }
36692 _ACEOF
36693 rm -f conftest.$ac_objext
36694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36695   (eval $ac_compile) 2>conftest.er1
36696   ac_status=$?
36697   grep -v '^ *+' conftest.er1 >conftest.err
36698   rm -f conftest.er1
36699   cat conftest.err >&5
36700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701   (exit $ac_status); } &&
36702          { ac_try='test -z "$ac_c_werror_flag"
36703                          || test ! -s conftest.err'
36704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36705   (eval $ac_try) 2>&5
36706   ac_status=$?
36707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36708   (exit $ac_status); }; } &&
36709          { ac_try='test -s conftest.$ac_objext'
36710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36711   (eval $ac_try) 2>&5
36712   ac_status=$?
36713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36714   (exit $ac_status); }; }; then
36715   ac_cv_member_struct_statvfs_f_type=yes
36716 else
36717   echo "$as_me: failed program was:" >&5
36718 sed 's/^/| /' conftest.$ac_ext >&5
36719
36720 ac_cv_member_struct_statvfs_f_type=no
36721 fi
36722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36723 fi
36724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36725 fi
36726 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
36727 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
36728 if test $ac_cv_member_struct_statvfs_f_type = yes; then
36729
36730 cat >>confdefs.h <<_ACEOF
36731 #define HAVE_STRUCT_STATVFS_F_TYPE 1
36732 _ACEOF
36733
36734
36735 fi
36736
36737   echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
36738 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
36739 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
36740   echo $ECHO_N "(cached) $ECHO_C" >&6
36741 else
36742   cat >conftest.$ac_ext <<_ACEOF
36743 /* confdefs.h.  */
36744 _ACEOF
36745 cat confdefs.h >>conftest.$ac_ext
36746 cat >>conftest.$ac_ext <<_ACEOF
36747 /* end confdefs.h.  */
36748 $statxfs_includes
36749
36750 int
36751 main ()
36752 {
36753 static struct statfs ac_aggr;
36754 if (ac_aggr.f_fsid.__val)
36755 return 0;
36756   ;
36757   return 0;
36758 }
36759 _ACEOF
36760 rm -f conftest.$ac_objext
36761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36762   (eval $ac_compile) 2>conftest.er1
36763   ac_status=$?
36764   grep -v '^ *+' conftest.er1 >conftest.err
36765   rm -f conftest.er1
36766   cat conftest.err >&5
36767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768   (exit $ac_status); } &&
36769          { ac_try='test -z "$ac_c_werror_flag"
36770                          || test ! -s conftest.err'
36771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36772   (eval $ac_try) 2>&5
36773   ac_status=$?
36774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36775   (exit $ac_status); }; } &&
36776          { ac_try='test -s conftest.$ac_objext'
36777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36778   (eval $ac_try) 2>&5
36779   ac_status=$?
36780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36781   (exit $ac_status); }; }; then
36782   ac_cv_member_struct_statfs_f_fsid___val=yes
36783 else
36784   echo "$as_me: failed program was:" >&5
36785 sed 's/^/| /' conftest.$ac_ext >&5
36786
36787 cat >conftest.$ac_ext <<_ACEOF
36788 /* confdefs.h.  */
36789 _ACEOF
36790 cat confdefs.h >>conftest.$ac_ext
36791 cat >>conftest.$ac_ext <<_ACEOF
36792 /* end confdefs.h.  */
36793 $statxfs_includes
36794
36795 int
36796 main ()
36797 {
36798 static struct statfs ac_aggr;
36799 if (sizeof ac_aggr.f_fsid.__val)
36800 return 0;
36801   ;
36802   return 0;
36803 }
36804 _ACEOF
36805 rm -f conftest.$ac_objext
36806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36807   (eval $ac_compile) 2>conftest.er1
36808   ac_status=$?
36809   grep -v '^ *+' conftest.er1 >conftest.err
36810   rm -f conftest.er1
36811   cat conftest.err >&5
36812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36813   (exit $ac_status); } &&
36814          { ac_try='test -z "$ac_c_werror_flag"
36815                          || test ! -s conftest.err'
36816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36817   (eval $ac_try) 2>&5
36818   ac_status=$?
36819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36820   (exit $ac_status); }; } &&
36821          { ac_try='test -s conftest.$ac_objext'
36822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36823   (eval $ac_try) 2>&5
36824   ac_status=$?
36825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36826   (exit $ac_status); }; }; then
36827   ac_cv_member_struct_statfs_f_fsid___val=yes
36828 else
36829   echo "$as_me: failed program was:" >&5
36830 sed 's/^/| /' conftest.$ac_ext >&5
36831
36832 ac_cv_member_struct_statfs_f_fsid___val=no
36833 fi
36834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36835 fi
36836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36837 fi
36838 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
36839 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
36840 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
36841
36842 cat >>confdefs.h <<_ACEOF
36843 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
36844 _ACEOF
36845
36846
36847 fi
36848
36849   echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
36850 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
36851 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
36852   echo $ECHO_N "(cached) $ECHO_C" >&6
36853 else
36854   cat >conftest.$ac_ext <<_ACEOF
36855 /* confdefs.h.  */
36856 _ACEOF
36857 cat confdefs.h >>conftest.$ac_ext
36858 cat >>conftest.$ac_ext <<_ACEOF
36859 /* end confdefs.h.  */
36860 $statxfs_includes
36861
36862 int
36863 main ()
36864 {
36865 static struct statvfs ac_aggr;
36866 if (ac_aggr.f_fsid.__val)
36867 return 0;
36868   ;
36869   return 0;
36870 }
36871 _ACEOF
36872 rm -f conftest.$ac_objext
36873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36874   (eval $ac_compile) 2>conftest.er1
36875   ac_status=$?
36876   grep -v '^ *+' conftest.er1 >conftest.err
36877   rm -f conftest.er1
36878   cat conftest.err >&5
36879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36880   (exit $ac_status); } &&
36881          { ac_try='test -z "$ac_c_werror_flag"
36882                          || test ! -s conftest.err'
36883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36884   (eval $ac_try) 2>&5
36885   ac_status=$?
36886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36887   (exit $ac_status); }; } &&
36888          { ac_try='test -s conftest.$ac_objext'
36889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36890   (eval $ac_try) 2>&5
36891   ac_status=$?
36892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36893   (exit $ac_status); }; }; then
36894   ac_cv_member_struct_statvfs_f_fsid___val=yes
36895 else
36896   echo "$as_me: failed program was:" >&5
36897 sed 's/^/| /' conftest.$ac_ext >&5
36898
36899 cat >conftest.$ac_ext <<_ACEOF
36900 /* confdefs.h.  */
36901 _ACEOF
36902 cat confdefs.h >>conftest.$ac_ext
36903 cat >>conftest.$ac_ext <<_ACEOF
36904 /* end confdefs.h.  */
36905 $statxfs_includes
36906
36907 int
36908 main ()
36909 {
36910 static struct statvfs ac_aggr;
36911 if (sizeof ac_aggr.f_fsid.__val)
36912 return 0;
36913   ;
36914   return 0;
36915 }
36916 _ACEOF
36917 rm -f conftest.$ac_objext
36918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36919   (eval $ac_compile) 2>conftest.er1
36920   ac_status=$?
36921   grep -v '^ *+' conftest.er1 >conftest.err
36922   rm -f conftest.er1
36923   cat conftest.err >&5
36924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36925   (exit $ac_status); } &&
36926          { ac_try='test -z "$ac_c_werror_flag"
36927                          || test ! -s conftest.err'
36928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36929   (eval $ac_try) 2>&5
36930   ac_status=$?
36931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36932   (exit $ac_status); }; } &&
36933          { ac_try='test -s conftest.$ac_objext'
36934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36935   (eval $ac_try) 2>&5
36936   ac_status=$?
36937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36938   (exit $ac_status); }; }; then
36939   ac_cv_member_struct_statvfs_f_fsid___val=yes
36940 else
36941   echo "$as_me: failed program was:" >&5
36942 sed 's/^/| /' conftest.$ac_ext >&5
36943
36944 ac_cv_member_struct_statvfs_f_fsid___val=no
36945 fi
36946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36947 fi
36948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36949 fi
36950 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
36951 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
36952 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
36953
36954 cat >>confdefs.h <<_ACEOF
36955 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
36956 _ACEOF
36957
36958
36959 fi
36960
36961   echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
36962 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
36963 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
36964   echo $ECHO_N "(cached) $ECHO_C" >&6
36965 else
36966   cat >conftest.$ac_ext <<_ACEOF
36967 /* confdefs.h.  */
36968 _ACEOF
36969 cat confdefs.h >>conftest.$ac_ext
36970 cat >>conftest.$ac_ext <<_ACEOF
36971 /* end confdefs.h.  */
36972 $statxfs_includes
36973
36974 int
36975 main ()
36976 {
36977 static struct statfs ac_aggr;
36978 if (ac_aggr.f_namemax)
36979 return 0;
36980   ;
36981   return 0;
36982 }
36983 _ACEOF
36984 rm -f conftest.$ac_objext
36985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36986   (eval $ac_compile) 2>conftest.er1
36987   ac_status=$?
36988   grep -v '^ *+' conftest.er1 >conftest.err
36989   rm -f conftest.er1
36990   cat conftest.err >&5
36991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36992   (exit $ac_status); } &&
36993          { ac_try='test -z "$ac_c_werror_flag"
36994                          || test ! -s conftest.err'
36995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36996   (eval $ac_try) 2>&5
36997   ac_status=$?
36998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999   (exit $ac_status); }; } &&
37000          { ac_try='test -s conftest.$ac_objext'
37001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37002   (eval $ac_try) 2>&5
37003   ac_status=$?
37004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37005   (exit $ac_status); }; }; then
37006   ac_cv_member_struct_statfs_f_namemax=yes
37007 else
37008   echo "$as_me: failed program was:" >&5
37009 sed 's/^/| /' conftest.$ac_ext >&5
37010
37011 cat >conftest.$ac_ext <<_ACEOF
37012 /* confdefs.h.  */
37013 _ACEOF
37014 cat confdefs.h >>conftest.$ac_ext
37015 cat >>conftest.$ac_ext <<_ACEOF
37016 /* end confdefs.h.  */
37017 $statxfs_includes
37018
37019 int
37020 main ()
37021 {
37022 static struct statfs ac_aggr;
37023 if (sizeof ac_aggr.f_namemax)
37024 return 0;
37025   ;
37026   return 0;
37027 }
37028 _ACEOF
37029 rm -f conftest.$ac_objext
37030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37031   (eval $ac_compile) 2>conftest.er1
37032   ac_status=$?
37033   grep -v '^ *+' conftest.er1 >conftest.err
37034   rm -f conftest.er1
37035   cat conftest.err >&5
37036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37037   (exit $ac_status); } &&
37038          { ac_try='test -z "$ac_c_werror_flag"
37039                          || test ! -s conftest.err'
37040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37041   (eval $ac_try) 2>&5
37042   ac_status=$?
37043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044   (exit $ac_status); }; } &&
37045          { ac_try='test -s conftest.$ac_objext'
37046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37047   (eval $ac_try) 2>&5
37048   ac_status=$?
37049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37050   (exit $ac_status); }; }; then
37051   ac_cv_member_struct_statfs_f_namemax=yes
37052 else
37053   echo "$as_me: failed program was:" >&5
37054 sed 's/^/| /' conftest.$ac_ext >&5
37055
37056 ac_cv_member_struct_statfs_f_namemax=no
37057 fi
37058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37059 fi
37060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37061 fi
37062 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
37063 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
37064 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
37065
37066 cat >>confdefs.h <<_ACEOF
37067 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
37068 _ACEOF
37069
37070
37071 fi
37072
37073   echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
37074 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
37075 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
37076   echo $ECHO_N "(cached) $ECHO_C" >&6
37077 else
37078   cat >conftest.$ac_ext <<_ACEOF
37079 /* confdefs.h.  */
37080 _ACEOF
37081 cat confdefs.h >>conftest.$ac_ext
37082 cat >>conftest.$ac_ext <<_ACEOF
37083 /* end confdefs.h.  */
37084 $statxfs_includes
37085
37086 int
37087 main ()
37088 {
37089 static struct statvfs ac_aggr;
37090 if (ac_aggr.f_namemax)
37091 return 0;
37092   ;
37093   return 0;
37094 }
37095 _ACEOF
37096 rm -f conftest.$ac_objext
37097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37098   (eval $ac_compile) 2>conftest.er1
37099   ac_status=$?
37100   grep -v '^ *+' conftest.er1 >conftest.err
37101   rm -f conftest.er1
37102   cat conftest.err >&5
37103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37104   (exit $ac_status); } &&
37105          { ac_try='test -z "$ac_c_werror_flag"
37106                          || test ! -s conftest.err'
37107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37108   (eval $ac_try) 2>&5
37109   ac_status=$?
37110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37111   (exit $ac_status); }; } &&
37112          { ac_try='test -s conftest.$ac_objext'
37113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37114   (eval $ac_try) 2>&5
37115   ac_status=$?
37116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37117   (exit $ac_status); }; }; then
37118   ac_cv_member_struct_statvfs_f_namemax=yes
37119 else
37120   echo "$as_me: failed program was:" >&5
37121 sed 's/^/| /' conftest.$ac_ext >&5
37122
37123 cat >conftest.$ac_ext <<_ACEOF
37124 /* confdefs.h.  */
37125 _ACEOF
37126 cat confdefs.h >>conftest.$ac_ext
37127 cat >>conftest.$ac_ext <<_ACEOF
37128 /* end confdefs.h.  */
37129 $statxfs_includes
37130
37131 int
37132 main ()
37133 {
37134 static struct statvfs ac_aggr;
37135 if (sizeof ac_aggr.f_namemax)
37136 return 0;
37137   ;
37138   return 0;
37139 }
37140 _ACEOF
37141 rm -f conftest.$ac_objext
37142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37143   (eval $ac_compile) 2>conftest.er1
37144   ac_status=$?
37145   grep -v '^ *+' conftest.er1 >conftest.err
37146   rm -f conftest.er1
37147   cat conftest.err >&5
37148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37149   (exit $ac_status); } &&
37150          { ac_try='test -z "$ac_c_werror_flag"
37151                          || test ! -s conftest.err'
37152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37153   (eval $ac_try) 2>&5
37154   ac_status=$?
37155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37156   (exit $ac_status); }; } &&
37157          { ac_try='test -s conftest.$ac_objext'
37158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37159   (eval $ac_try) 2>&5
37160   ac_status=$?
37161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37162   (exit $ac_status); }; }; then
37163   ac_cv_member_struct_statvfs_f_namemax=yes
37164 else
37165   echo "$as_me: failed program was:" >&5
37166 sed 's/^/| /' conftest.$ac_ext >&5
37167
37168 ac_cv_member_struct_statvfs_f_namemax=no
37169 fi
37170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37171 fi
37172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37173 fi
37174 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
37175 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
37176 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
37177
37178 cat >>confdefs.h <<_ACEOF
37179 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
37180 _ACEOF
37181
37182
37183 fi
37184
37185   echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
37186 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
37187 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
37188   echo $ECHO_N "(cached) $ECHO_C" >&6
37189 else
37190   cat >conftest.$ac_ext <<_ACEOF
37191 /* confdefs.h.  */
37192 _ACEOF
37193 cat confdefs.h >>conftest.$ac_ext
37194 cat >>conftest.$ac_ext <<_ACEOF
37195 /* end confdefs.h.  */
37196 $statxfs_includes
37197
37198 int
37199 main ()
37200 {
37201 static struct statfs ac_aggr;
37202 if (ac_aggr.f_namelen)
37203 return 0;
37204   ;
37205   return 0;
37206 }
37207 _ACEOF
37208 rm -f conftest.$ac_objext
37209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37210   (eval $ac_compile) 2>conftest.er1
37211   ac_status=$?
37212   grep -v '^ *+' conftest.er1 >conftest.err
37213   rm -f conftest.er1
37214   cat conftest.err >&5
37215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37216   (exit $ac_status); } &&
37217          { ac_try='test -z "$ac_c_werror_flag"
37218                          || test ! -s conftest.err'
37219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37220   (eval $ac_try) 2>&5
37221   ac_status=$?
37222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37223   (exit $ac_status); }; } &&
37224          { ac_try='test -s conftest.$ac_objext'
37225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37226   (eval $ac_try) 2>&5
37227   ac_status=$?
37228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37229   (exit $ac_status); }; }; then
37230   ac_cv_member_struct_statfs_f_namelen=yes
37231 else
37232   echo "$as_me: failed program was:" >&5
37233 sed 's/^/| /' conftest.$ac_ext >&5
37234
37235 cat >conftest.$ac_ext <<_ACEOF
37236 /* confdefs.h.  */
37237 _ACEOF
37238 cat confdefs.h >>conftest.$ac_ext
37239 cat >>conftest.$ac_ext <<_ACEOF
37240 /* end confdefs.h.  */
37241 $statxfs_includes
37242
37243 int
37244 main ()
37245 {
37246 static struct statfs ac_aggr;
37247 if (sizeof ac_aggr.f_namelen)
37248 return 0;
37249   ;
37250   return 0;
37251 }
37252 _ACEOF
37253 rm -f conftest.$ac_objext
37254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37255   (eval $ac_compile) 2>conftest.er1
37256   ac_status=$?
37257   grep -v '^ *+' conftest.er1 >conftest.err
37258   rm -f conftest.er1
37259   cat conftest.err >&5
37260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261   (exit $ac_status); } &&
37262          { ac_try='test -z "$ac_c_werror_flag"
37263                          || test ! -s conftest.err'
37264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37265   (eval $ac_try) 2>&5
37266   ac_status=$?
37267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37268   (exit $ac_status); }; } &&
37269          { ac_try='test -s conftest.$ac_objext'
37270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37271   (eval $ac_try) 2>&5
37272   ac_status=$?
37273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274   (exit $ac_status); }; }; then
37275   ac_cv_member_struct_statfs_f_namelen=yes
37276 else
37277   echo "$as_me: failed program was:" >&5
37278 sed 's/^/| /' conftest.$ac_ext >&5
37279
37280 ac_cv_member_struct_statfs_f_namelen=no
37281 fi
37282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37283 fi
37284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37285 fi
37286 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
37287 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
37288 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
37289
37290 cat >>confdefs.h <<_ACEOF
37291 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
37292 _ACEOF
37293
37294
37295 fi
37296
37297   echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
37298 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
37299 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
37300   echo $ECHO_N "(cached) $ECHO_C" >&6
37301 else
37302   cat >conftest.$ac_ext <<_ACEOF
37303 /* confdefs.h.  */
37304 _ACEOF
37305 cat confdefs.h >>conftest.$ac_ext
37306 cat >>conftest.$ac_ext <<_ACEOF
37307 /* end confdefs.h.  */
37308 $statxfs_includes
37309
37310 int
37311 main ()
37312 {
37313 static struct statvfs ac_aggr;
37314 if (ac_aggr.f_namelen)
37315 return 0;
37316   ;
37317   return 0;
37318 }
37319 _ACEOF
37320 rm -f conftest.$ac_objext
37321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37322   (eval $ac_compile) 2>conftest.er1
37323   ac_status=$?
37324   grep -v '^ *+' conftest.er1 >conftest.err
37325   rm -f conftest.er1
37326   cat conftest.err >&5
37327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37328   (exit $ac_status); } &&
37329          { ac_try='test -z "$ac_c_werror_flag"
37330                          || test ! -s conftest.err'
37331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37332   (eval $ac_try) 2>&5
37333   ac_status=$?
37334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37335   (exit $ac_status); }; } &&
37336          { ac_try='test -s conftest.$ac_objext'
37337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37338   (eval $ac_try) 2>&5
37339   ac_status=$?
37340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37341   (exit $ac_status); }; }; then
37342   ac_cv_member_struct_statvfs_f_namelen=yes
37343 else
37344   echo "$as_me: failed program was:" >&5
37345 sed 's/^/| /' conftest.$ac_ext >&5
37346
37347 cat >conftest.$ac_ext <<_ACEOF
37348 /* confdefs.h.  */
37349 _ACEOF
37350 cat confdefs.h >>conftest.$ac_ext
37351 cat >>conftest.$ac_ext <<_ACEOF
37352 /* end confdefs.h.  */
37353 $statxfs_includes
37354
37355 int
37356 main ()
37357 {
37358 static struct statvfs ac_aggr;
37359 if (sizeof ac_aggr.f_namelen)
37360 return 0;
37361   ;
37362   return 0;
37363 }
37364 _ACEOF
37365 rm -f conftest.$ac_objext
37366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37367   (eval $ac_compile) 2>conftest.er1
37368   ac_status=$?
37369   grep -v '^ *+' conftest.er1 >conftest.err
37370   rm -f conftest.er1
37371   cat conftest.err >&5
37372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37373   (exit $ac_status); } &&
37374          { ac_try='test -z "$ac_c_werror_flag"
37375                          || test ! -s conftest.err'
37376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37377   (eval $ac_try) 2>&5
37378   ac_status=$?
37379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37380   (exit $ac_status); }; } &&
37381          { ac_try='test -s conftest.$ac_objext'
37382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37383   (eval $ac_try) 2>&5
37384   ac_status=$?
37385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37386   (exit $ac_status); }; }; then
37387   ac_cv_member_struct_statvfs_f_namelen=yes
37388 else
37389   echo "$as_me: failed program was:" >&5
37390 sed 's/^/| /' conftest.$ac_ext >&5
37391
37392 ac_cv_member_struct_statvfs_f_namelen=no
37393 fi
37394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37395 fi
37396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37397 fi
37398 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
37399 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
37400 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
37401
37402 cat >>confdefs.h <<_ACEOF
37403 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
37404 _ACEOF
37405
37406
37407 fi
37408
37409
37410
37411
37412
37413
37414
37415
37416
37417
37418
37419  echo "$as_me:$LINENO: checking whether rename is broken" >&5
37420 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
37421 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
37422   echo $ECHO_N "(cached) $ECHO_C" >&6
37423 else
37424
37425     rm -rf conftest.d1 conftest.d2
37426     mkdir conftest.d1 ||
37427       { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
37428 echo "$as_me: error: cannot create temporary directory" >&2;}
37429    { (exit 1); exit 1; }; }
37430     if test "$cross_compiling" = yes; then
37431         vb_cv_func_rename_trailing_slash_bug=yes
37432 else
37433   cat >conftest.$ac_ext <<_ACEOF
37434 /* confdefs.h.  */
37435 _ACEOF
37436 cat confdefs.h >>conftest.$ac_ext
37437 cat >>conftest.$ac_ext <<_ACEOF
37438 /* end confdefs.h.  */
37439
37440 #       include <stdio.h>
37441         int
37442         main ()
37443         {
37444           exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
37445         }
37446
37447 _ACEOF
37448 rm -f conftest$ac_exeext
37449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37450   (eval $ac_link) 2>&5
37451   ac_status=$?
37452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37455   (eval $ac_try) 2>&5
37456   ac_status=$?
37457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37458   (exit $ac_status); }; }; then
37459   vb_cv_func_rename_trailing_slash_bug=no
37460 else
37461   echo "$as_me: program exited with status $ac_status" >&5
37462 echo "$as_me: failed program was:" >&5
37463 sed 's/^/| /' conftest.$ac_ext >&5
37464
37465 ( exit $ac_status )
37466 vb_cv_func_rename_trailing_slash_bug=yes
37467 fi
37468 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37469 fi
37470
37471       rm -rf conftest.d1 conftest.d2
37472
37473 fi
37474 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
37475 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
37476   if test $vb_cv_func_rename_trailing_slash_bug = yes; then
37477     case $LIBOBJS in
37478     "rename.$ac_objext"   | \
37479   *" rename.$ac_objext"   | \
37480     "rename.$ac_objext "* | \
37481   *" rename.$ac_objext "* ) ;;
37482   *) LIBOBJS="$LIBOBJS rename.$ac_objext" ;;
37483 esac
37484
37485
37486 cat >>confdefs.h <<\_ACEOF
37487 #define rename rpl_rename
37488 _ACEOF
37489
37490
37491 cat >>confdefs.h <<\_ACEOF
37492 #define RENAME_TRAILING_SLASH_BUG 1
37493 _ACEOF
37494
37495     :
37496   fi
37497
37498
37499   # We don't yet use c-stack.c.
37500   # AC_REQUIRE([gl_C_STACK])
37501
37502
37503
37504
37505
37506
37507
37508
37509
37510
37511
37512
37513
37514
37515
37516
37517
37518
37519
37520
37521
37522
37523
37524
37525
37526
37527
37528
37529
37530
37531
37532
37533
37534
37535
37536
37537
37538
37539
37540
37541
37542
37543
37544
37545
37546
37547
37548
37549
37550
37551
37552
37553
37554
37555
37556
37557
37558
37559
37560
37561
37562
37563
37564
37565
37566
37567
37568
37569
37570
37571
37572
37573
37574
37575
37576
37577
37578
37579
37580
37581
37582
37583
37584
37585
37586
37587
37588
37589
37590
37591
37592
37593
37594
37595
37596
37597
37598
37599
37600
37601
37602
37603
37604
37605
37606
37607
37608
37609
37610
37611
37612
37613
37614
37615
37616
37617
37618
37619
37620
37621
37622
37623
37624 ac_header_dirent=no
37625 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
37626   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
37627 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
37628 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
37629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37630   echo $ECHO_N "(cached) $ECHO_C" >&6
37631 else
37632   cat >conftest.$ac_ext <<_ACEOF
37633 /* confdefs.h.  */
37634 _ACEOF
37635 cat confdefs.h >>conftest.$ac_ext
37636 cat >>conftest.$ac_ext <<_ACEOF
37637 /* end confdefs.h.  */
37638 #include <sys/types.h>
37639 #include <$ac_hdr>
37640
37641 int
37642 main ()
37643 {
37644 if ((DIR *) 0)
37645 return 0;
37646   ;
37647   return 0;
37648 }
37649 _ACEOF
37650 rm -f conftest.$ac_objext
37651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37652   (eval $ac_compile) 2>conftest.er1
37653   ac_status=$?
37654   grep -v '^ *+' conftest.er1 >conftest.err
37655   rm -f conftest.er1
37656   cat conftest.err >&5
37657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37658   (exit $ac_status); } &&
37659          { ac_try='test -z "$ac_c_werror_flag"
37660                          || test ! -s conftest.err'
37661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37662   (eval $ac_try) 2>&5
37663   ac_status=$?
37664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37665   (exit $ac_status); }; } &&
37666          { ac_try='test -s conftest.$ac_objext'
37667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37668   (eval $ac_try) 2>&5
37669   ac_status=$?
37670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671   (exit $ac_status); }; }; then
37672   eval "$as_ac_Header=yes"
37673 else
37674   echo "$as_me: failed program was:" >&5
37675 sed 's/^/| /' conftest.$ac_ext >&5
37676
37677 eval "$as_ac_Header=no"
37678 fi
37679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37680 fi
37681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37684   cat >>confdefs.h <<_ACEOF
37685 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
37686 _ACEOF
37687
37688 ac_header_dirent=$ac_hdr; break
37689 fi
37690
37691 done
37692 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
37693 if test $ac_header_dirent = dirent.h; then
37694   echo "$as_me:$LINENO: checking for library containing opendir" >&5
37695 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
37696 if test "${ac_cv_search_opendir+set}" = set; then
37697   echo $ECHO_N "(cached) $ECHO_C" >&6
37698 else
37699   ac_func_search_save_LIBS=$LIBS
37700 ac_cv_search_opendir=no
37701 cat >conftest.$ac_ext <<_ACEOF
37702 /* confdefs.h.  */
37703 _ACEOF
37704 cat confdefs.h >>conftest.$ac_ext
37705 cat >>conftest.$ac_ext <<_ACEOF
37706 /* end confdefs.h.  */
37707
37708 /* Override any gcc2 internal prototype to avoid an error.  */
37709 #ifdef __cplusplus
37710 extern "C"
37711 #endif
37712 /* We use char because int might match the return type of a gcc2
37713    builtin and then its argument prototype would still apply.  */
37714 char opendir ();
37715 int
37716 main ()
37717 {
37718 opendir ();
37719   ;
37720   return 0;
37721 }
37722 _ACEOF
37723 rm -f conftest.$ac_objext conftest$ac_exeext
37724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37725   (eval $ac_link) 2>conftest.er1
37726   ac_status=$?
37727   grep -v '^ *+' conftest.er1 >conftest.err
37728   rm -f conftest.er1
37729   cat conftest.err >&5
37730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37731   (exit $ac_status); } &&
37732          { ac_try='test -z "$ac_c_werror_flag"
37733                          || test ! -s conftest.err'
37734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37735   (eval $ac_try) 2>&5
37736   ac_status=$?
37737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37738   (exit $ac_status); }; } &&
37739          { ac_try='test -s conftest$ac_exeext'
37740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37741   (eval $ac_try) 2>&5
37742   ac_status=$?
37743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744   (exit $ac_status); }; }; then
37745   ac_cv_search_opendir="none required"
37746 else
37747   echo "$as_me: failed program was:" >&5
37748 sed 's/^/| /' conftest.$ac_ext >&5
37749
37750 fi
37751 rm -f conftest.err conftest.$ac_objext \
37752       conftest$ac_exeext conftest.$ac_ext
37753 if test "$ac_cv_search_opendir" = no; then
37754   for ac_lib in dir; do
37755     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37756     cat >conftest.$ac_ext <<_ACEOF
37757 /* confdefs.h.  */
37758 _ACEOF
37759 cat confdefs.h >>conftest.$ac_ext
37760 cat >>conftest.$ac_ext <<_ACEOF
37761 /* end confdefs.h.  */
37762
37763 /* Override any gcc2 internal prototype to avoid an error.  */
37764 #ifdef __cplusplus
37765 extern "C"
37766 #endif
37767 /* We use char because int might match the return type of a gcc2
37768    builtin and then its argument prototype would still apply.  */
37769 char opendir ();
37770 int
37771 main ()
37772 {
37773 opendir ();
37774   ;
37775   return 0;
37776 }
37777 _ACEOF
37778 rm -f conftest.$ac_objext conftest$ac_exeext
37779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37780   (eval $ac_link) 2>conftest.er1
37781   ac_status=$?
37782   grep -v '^ *+' conftest.er1 >conftest.err
37783   rm -f conftest.er1
37784   cat conftest.err >&5
37785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37786   (exit $ac_status); } &&
37787          { ac_try='test -z "$ac_c_werror_flag"
37788                          || test ! -s conftest.err'
37789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37790   (eval $ac_try) 2>&5
37791   ac_status=$?
37792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793   (exit $ac_status); }; } &&
37794          { ac_try='test -s conftest$ac_exeext'
37795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37796   (eval $ac_try) 2>&5
37797   ac_status=$?
37798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37799   (exit $ac_status); }; }; then
37800   ac_cv_search_opendir="-l$ac_lib"
37801 break
37802 else
37803   echo "$as_me: failed program was:" >&5
37804 sed 's/^/| /' conftest.$ac_ext >&5
37805
37806 fi
37807 rm -f conftest.err conftest.$ac_objext \
37808       conftest$ac_exeext conftest.$ac_ext
37809   done
37810 fi
37811 LIBS=$ac_func_search_save_LIBS
37812 fi
37813 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
37814 echo "${ECHO_T}$ac_cv_search_opendir" >&6
37815 if test "$ac_cv_search_opendir" != no; then
37816   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
37817
37818 fi
37819
37820 else
37821   echo "$as_me:$LINENO: checking for library containing opendir" >&5
37822 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
37823 if test "${ac_cv_search_opendir+set}" = set; then
37824   echo $ECHO_N "(cached) $ECHO_C" >&6
37825 else
37826   ac_func_search_save_LIBS=$LIBS
37827 ac_cv_search_opendir=no
37828 cat >conftest.$ac_ext <<_ACEOF
37829 /* confdefs.h.  */
37830 _ACEOF
37831 cat confdefs.h >>conftest.$ac_ext
37832 cat >>conftest.$ac_ext <<_ACEOF
37833 /* end confdefs.h.  */
37834
37835 /* Override any gcc2 internal prototype to avoid an error.  */
37836 #ifdef __cplusplus
37837 extern "C"
37838 #endif
37839 /* We use char because int might match the return type of a gcc2
37840    builtin and then its argument prototype would still apply.  */
37841 char opendir ();
37842 int
37843 main ()
37844 {
37845 opendir ();
37846   ;
37847   return 0;
37848 }
37849 _ACEOF
37850 rm -f conftest.$ac_objext conftest$ac_exeext
37851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37852   (eval $ac_link) 2>conftest.er1
37853   ac_status=$?
37854   grep -v '^ *+' conftest.er1 >conftest.err
37855   rm -f conftest.er1
37856   cat conftest.err >&5
37857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37858   (exit $ac_status); } &&
37859          { ac_try='test -z "$ac_c_werror_flag"
37860                          || test ! -s conftest.err'
37861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37862   (eval $ac_try) 2>&5
37863   ac_status=$?
37864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37865   (exit $ac_status); }; } &&
37866          { ac_try='test -s conftest$ac_exeext'
37867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37868   (eval $ac_try) 2>&5
37869   ac_status=$?
37870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37871   (exit $ac_status); }; }; then
37872   ac_cv_search_opendir="none required"
37873 else
37874   echo "$as_me: failed program was:" >&5
37875 sed 's/^/| /' conftest.$ac_ext >&5
37876
37877 fi
37878 rm -f conftest.err conftest.$ac_objext \
37879       conftest$ac_exeext conftest.$ac_ext
37880 if test "$ac_cv_search_opendir" = no; then
37881   for ac_lib in x; do
37882     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37883     cat >conftest.$ac_ext <<_ACEOF
37884 /* confdefs.h.  */
37885 _ACEOF
37886 cat confdefs.h >>conftest.$ac_ext
37887 cat >>conftest.$ac_ext <<_ACEOF
37888 /* end confdefs.h.  */
37889
37890 /* Override any gcc2 internal prototype to avoid an error.  */
37891 #ifdef __cplusplus
37892 extern "C"
37893 #endif
37894 /* We use char because int might match the return type of a gcc2
37895    builtin and then its argument prototype would still apply.  */
37896 char opendir ();
37897 int
37898 main ()
37899 {
37900 opendir ();
37901   ;
37902   return 0;
37903 }
37904 _ACEOF
37905 rm -f conftest.$ac_objext conftest$ac_exeext
37906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37907   (eval $ac_link) 2>conftest.er1
37908   ac_status=$?
37909   grep -v '^ *+' conftest.er1 >conftest.err
37910   rm -f conftest.er1
37911   cat conftest.err >&5
37912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37913   (exit $ac_status); } &&
37914          { ac_try='test -z "$ac_c_werror_flag"
37915                          || test ! -s conftest.err'
37916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37917   (eval $ac_try) 2>&5
37918   ac_status=$?
37919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920   (exit $ac_status); }; } &&
37921          { ac_try='test -s conftest$ac_exeext'
37922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37923   (eval $ac_try) 2>&5
37924   ac_status=$?
37925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37926   (exit $ac_status); }; }; then
37927   ac_cv_search_opendir="-l$ac_lib"
37928 break
37929 else
37930   echo "$as_me: failed program was:" >&5
37931 sed 's/^/| /' conftest.$ac_ext >&5
37932
37933 fi
37934 rm -f conftest.err conftest.$ac_objext \
37935       conftest$ac_exeext conftest.$ac_ext
37936   done
37937 fi
37938 LIBS=$ac_func_search_save_LIBS
37939 fi
37940 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
37941 echo "${ECHO_T}$ac_cv_search_opendir" >&6
37942 if test "$ac_cv_search_opendir" != no; then
37943   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
37944
37945 fi
37946
37947 fi
37948
37949   dirfd_headers='
37950 #if HAVE_DIRENT_H
37951 # include <dirent.h>
37952 #else /* not HAVE_DIRENT_H */
37953 # define dirent direct
37954 # if HAVE_SYS_NDIR_H
37955 #  include <sys/ndir.h>
37956 # endif /* HAVE_SYS_NDIR_H */
37957 # if HAVE_SYS_DIR_H
37958 #  include <sys/dir.h>
37959 # endif /* HAVE_SYS_DIR_H */
37960 # if HAVE_NDIR_H
37961 #  include <ndir.h>
37962 # endif /* HAVE_NDIR_H */
37963 #endif /* HAVE_DIRENT_H */
37964 '
37965
37966 for ac_func in dirfd
37967 do
37968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37969 echo "$as_me:$LINENO: checking for $ac_func" >&5
37970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37971 if eval "test \"\${$as_ac_var+set}\" = set"; then
37972   echo $ECHO_N "(cached) $ECHO_C" >&6
37973 else
37974   cat >conftest.$ac_ext <<_ACEOF
37975 /* confdefs.h.  */
37976 _ACEOF
37977 cat confdefs.h >>conftest.$ac_ext
37978 cat >>conftest.$ac_ext <<_ACEOF
37979 /* end confdefs.h.  */
37980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37982 #define $ac_func innocuous_$ac_func
37983
37984 /* System header to define __stub macros and hopefully few prototypes,
37985     which can conflict with char $ac_func (); below.
37986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37987     <limits.h> exists even on freestanding compilers.  */
37988
37989 #ifdef __STDC__
37990 # include <limits.h>
37991 #else
37992 # include <assert.h>
37993 #endif
37994
37995 #undef $ac_func
37996
37997 /* Override any gcc2 internal prototype to avoid an error.  */
37998 #ifdef __cplusplus
37999 extern "C"
38000 {
38001 #endif
38002 /* We use char because int might match the return type of a gcc2
38003    builtin and then its argument prototype would still apply.  */
38004 char $ac_func ();
38005 /* The GNU C library defines this for functions which it implements
38006     to always fail with ENOSYS.  Some functions are actually named
38007     something starting with __ and the normal name is an alias.  */
38008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38009 choke me
38010 #else
38011 char (*f) () = $ac_func;
38012 #endif
38013 #ifdef __cplusplus
38014 }
38015 #endif
38016
38017 int
38018 main ()
38019 {
38020 return f != $ac_func;
38021   ;
38022   return 0;
38023 }
38024 _ACEOF
38025 rm -f conftest.$ac_objext conftest$ac_exeext
38026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38027   (eval $ac_link) 2>conftest.er1
38028   ac_status=$?
38029   grep -v '^ *+' conftest.er1 >conftest.err
38030   rm -f conftest.er1
38031   cat conftest.err >&5
38032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38033   (exit $ac_status); } &&
38034          { ac_try='test -z "$ac_c_werror_flag"
38035                          || test ! -s conftest.err'
38036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38037   (eval $ac_try) 2>&5
38038   ac_status=$?
38039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38040   (exit $ac_status); }; } &&
38041          { ac_try='test -s conftest$ac_exeext'
38042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38043   (eval $ac_try) 2>&5
38044   ac_status=$?
38045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38046   (exit $ac_status); }; }; then
38047   eval "$as_ac_var=yes"
38048 else
38049   echo "$as_me: failed program was:" >&5
38050 sed 's/^/| /' conftest.$ac_ext >&5
38051
38052 eval "$as_ac_var=no"
38053 fi
38054 rm -f conftest.err conftest.$ac_objext \
38055       conftest$ac_exeext conftest.$ac_ext
38056 fi
38057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38059 if test `eval echo '${'$as_ac_var'}'` = yes; then
38060   cat >>confdefs.h <<_ACEOF
38061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38062 _ACEOF
38063
38064 fi
38065 done
38066
38067   echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
38068 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
38069 if test "${ac_cv_have_decl_dirfd+set}" = set; then
38070   echo $ECHO_N "(cached) $ECHO_C" >&6
38071 else
38072   cat >conftest.$ac_ext <<_ACEOF
38073 /* confdefs.h.  */
38074 _ACEOF
38075 cat confdefs.h >>conftest.$ac_ext
38076 cat >>conftest.$ac_ext <<_ACEOF
38077 /* end confdefs.h.  */
38078 $dirfd_headers
38079
38080 int
38081 main ()
38082 {
38083 #ifndef dirfd
38084   char *p = (char *) dirfd;
38085 #endif
38086
38087   ;
38088   return 0;
38089 }
38090 _ACEOF
38091 rm -f conftest.$ac_objext
38092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38093   (eval $ac_compile) 2>conftest.er1
38094   ac_status=$?
38095   grep -v '^ *+' conftest.er1 >conftest.err
38096   rm -f conftest.er1
38097   cat conftest.err >&5
38098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38099   (exit $ac_status); } &&
38100          { ac_try='test -z "$ac_c_werror_flag"
38101                          || test ! -s conftest.err'
38102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38103   (eval $ac_try) 2>&5
38104   ac_status=$?
38105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38106   (exit $ac_status); }; } &&
38107          { ac_try='test -s conftest.$ac_objext'
38108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38109   (eval $ac_try) 2>&5
38110   ac_status=$?
38111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38112   (exit $ac_status); }; }; then
38113   ac_cv_have_decl_dirfd=yes
38114 else
38115   echo "$as_me: failed program was:" >&5
38116 sed 's/^/| /' conftest.$ac_ext >&5
38117
38118 ac_cv_have_decl_dirfd=no
38119 fi
38120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38121 fi
38122 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
38123 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
38124 if test $ac_cv_have_decl_dirfd = yes; then
38125
38126 cat >>confdefs.h <<_ACEOF
38127 #define HAVE_DECL_DIRFD 1
38128 _ACEOF
38129
38130
38131 else
38132   cat >>confdefs.h <<_ACEOF
38133 #define HAVE_DECL_DIRFD 0
38134 _ACEOF
38135
38136
38137 fi
38138
38139
38140
38141   echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
38142 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
38143 if test "${jm_cv_func_dirfd_macro+set}" = set; then
38144   echo $ECHO_N "(cached) $ECHO_C" >&6
38145 else
38146   cat >conftest.$ac_ext <<_ACEOF
38147 /* confdefs.h.  */
38148 _ACEOF
38149 cat confdefs.h >>conftest.$ac_ext
38150 cat >>conftest.$ac_ext <<_ACEOF
38151 /* end confdefs.h.  */
38152 $dirfd_headers
38153 #ifdef dirfd
38154  dirent_header_defines_dirfd
38155 #endif
38156 _ACEOF
38157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38158   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
38159   jm_cv_func_dirfd_macro=yes
38160 else
38161   jm_cv_func_dirfd_macro=no
38162 fi
38163 rm -f conftest*
38164
38165 fi
38166 echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
38167 echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6
38168
38169   # Use the replacement only if we have no function, macro,
38170   # or declaration with that name.
38171   if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
38172       = no,no,no; then
38173
38174 for ac_func in dirfd
38175 do
38176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38177 echo "$as_me:$LINENO: checking for $ac_func" >&5
38178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38179 if eval "test \"\${$as_ac_var+set}\" = set"; then
38180   echo $ECHO_N "(cached) $ECHO_C" >&6
38181 else
38182   cat >conftest.$ac_ext <<_ACEOF
38183 /* confdefs.h.  */
38184 _ACEOF
38185 cat confdefs.h >>conftest.$ac_ext
38186 cat >>conftest.$ac_ext <<_ACEOF
38187 /* end confdefs.h.  */
38188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38190 #define $ac_func innocuous_$ac_func
38191
38192 /* System header to define __stub macros and hopefully few prototypes,
38193     which can conflict with char $ac_func (); below.
38194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38195     <limits.h> exists even on freestanding compilers.  */
38196
38197 #ifdef __STDC__
38198 # include <limits.h>
38199 #else
38200 # include <assert.h>
38201 #endif
38202
38203 #undef $ac_func
38204
38205 /* Override any gcc2 internal prototype to avoid an error.  */
38206 #ifdef __cplusplus
38207 extern "C"
38208 {
38209 #endif
38210 /* We use char because int might match the return type of a gcc2
38211    builtin and then its argument prototype would still apply.  */
38212 char $ac_func ();
38213 /* The GNU C library defines this for functions which it implements
38214     to always fail with ENOSYS.  Some functions are actually named
38215     something starting with __ and the normal name is an alias.  */
38216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38217 choke me
38218 #else
38219 char (*f) () = $ac_func;
38220 #endif
38221 #ifdef __cplusplus
38222 }
38223 #endif
38224
38225 int
38226 main ()
38227 {
38228 return f != $ac_func;
38229   ;
38230   return 0;
38231 }
38232 _ACEOF
38233 rm -f conftest.$ac_objext conftest$ac_exeext
38234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38235   (eval $ac_link) 2>conftest.er1
38236   ac_status=$?
38237   grep -v '^ *+' conftest.er1 >conftest.err
38238   rm -f conftest.er1
38239   cat conftest.err >&5
38240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38241   (exit $ac_status); } &&
38242          { ac_try='test -z "$ac_c_werror_flag"
38243                          || test ! -s conftest.err'
38244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38245   (eval $ac_try) 2>&5
38246   ac_status=$?
38247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38248   (exit $ac_status); }; } &&
38249          { ac_try='test -s conftest$ac_exeext'
38250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38251   (eval $ac_try) 2>&5
38252   ac_status=$?
38253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38254   (exit $ac_status); }; }; then
38255   eval "$as_ac_var=yes"
38256 else
38257   echo "$as_me: failed program was:" >&5
38258 sed 's/^/| /' conftest.$ac_ext >&5
38259
38260 eval "$as_ac_var=no"
38261 fi
38262 rm -f conftest.err conftest.$ac_objext \
38263       conftest$ac_exeext conftest.$ac_ext
38264 fi
38265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38267 if test `eval echo '${'$as_ac_var'}'` = yes; then
38268   cat >>confdefs.h <<_ACEOF
38269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38270 _ACEOF
38271
38272 else
38273   case $LIBOBJS in
38274     "$ac_func.$ac_objext"   | \
38275   *" $ac_func.$ac_objext"   | \
38276     "$ac_func.$ac_objext "* | \
38277   *" $ac_func.$ac_objext "* ) ;;
38278   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
38279 esac
38280
38281 fi
38282 done
38283
38284
38285     echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
38286 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
38287 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
38288   echo $ECHO_N "(cached) $ECHO_C" >&6
38289 else
38290
38291         dirfd_save_CFLAGS=$CFLAGS
38292         for ac_expr in d_fd dd_fd; do
38293
38294           CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
38295           cat >conftest.$ac_ext <<_ACEOF
38296 /* confdefs.h.  */
38297 _ACEOF
38298 cat confdefs.h >>conftest.$ac_ext
38299 cat >>conftest.$ac_ext <<_ACEOF
38300 /* end confdefs.h.  */
38301 $dirfd_headers
38302
38303 int
38304 main ()
38305 {
38306 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
38307   ;
38308   return 0;
38309 }
38310 _ACEOF
38311 rm -f conftest.$ac_objext
38312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38313   (eval $ac_compile) 2>conftest.er1
38314   ac_status=$?
38315   grep -v '^ *+' conftest.er1 >conftest.err
38316   rm -f conftest.er1
38317   cat conftest.err >&5
38318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38319   (exit $ac_status); } &&
38320          { ac_try='test -z "$ac_c_werror_flag"
38321                          || test ! -s conftest.err'
38322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38323   (eval $ac_try) 2>&5
38324   ac_status=$?
38325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38326   (exit $ac_status); }; } &&
38327          { ac_try='test -s conftest.$ac_objext'
38328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38329   (eval $ac_try) 2>&5
38330   ac_status=$?
38331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38332   (exit $ac_status); }; }; then
38333   dir_fd_found=yes
38334
38335 else
38336   echo "$as_me: failed program was:" >&5
38337 sed 's/^/| /' conftest.$ac_ext >&5
38338
38339 fi
38340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38341           CFLAGS=$dirfd_save_CFLAGS
38342           test "$dir_fd_found" = yes && break
38343         done
38344         test "$dir_fd_found" = yes || ac_expr=no_such_member
38345
38346         gl_cv_sys_dir_fd_member_name=$ac_expr
38347
38348
38349 fi
38350 echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
38351 echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6
38352     if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
38353
38354 cat >>confdefs.h <<_ACEOF
38355 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
38356 _ACEOF
38357
38358     fi
38359
38360
38361   fi
38362
38363
38364
38365 for ac_header in sys/acl.h
38366 do
38367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38369   echo "$as_me:$LINENO: checking for $ac_header" >&5
38370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38372   echo $ECHO_N "(cached) $ECHO_C" >&6
38373 fi
38374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38376 else
38377   # Is the header compilable?
38378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38380 cat >conftest.$ac_ext <<_ACEOF
38381 /* confdefs.h.  */
38382 _ACEOF
38383 cat confdefs.h >>conftest.$ac_ext
38384 cat >>conftest.$ac_ext <<_ACEOF
38385 /* end confdefs.h.  */
38386 $ac_includes_default
38387 #include <$ac_header>
38388 _ACEOF
38389 rm -f conftest.$ac_objext
38390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38391   (eval $ac_compile) 2>conftest.er1
38392   ac_status=$?
38393   grep -v '^ *+' conftest.er1 >conftest.err
38394   rm -f conftest.er1
38395   cat conftest.err >&5
38396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38397   (exit $ac_status); } &&
38398          { ac_try='test -z "$ac_c_werror_flag"
38399                          || test ! -s conftest.err'
38400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38401   (eval $ac_try) 2>&5
38402   ac_status=$?
38403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38404   (exit $ac_status); }; } &&
38405          { ac_try='test -s conftest.$ac_objext'
38406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38407   (eval $ac_try) 2>&5
38408   ac_status=$?
38409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38410   (exit $ac_status); }; }; then
38411   ac_header_compiler=yes
38412 else
38413   echo "$as_me: failed program was:" >&5
38414 sed 's/^/| /' conftest.$ac_ext >&5
38415
38416 ac_header_compiler=no
38417 fi
38418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38420 echo "${ECHO_T}$ac_header_compiler" >&6
38421
38422 # Is the header present?
38423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38425 cat >conftest.$ac_ext <<_ACEOF
38426 /* confdefs.h.  */
38427 _ACEOF
38428 cat confdefs.h >>conftest.$ac_ext
38429 cat >>conftest.$ac_ext <<_ACEOF
38430 /* end confdefs.h.  */
38431 #include <$ac_header>
38432 _ACEOF
38433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38434   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
38441   if test -s conftest.err; then
38442     ac_cpp_err=$ac_c_preproc_warn_flag
38443     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38444   else
38445     ac_cpp_err=
38446   fi
38447 else
38448   ac_cpp_err=yes
38449 fi
38450 if test -z "$ac_cpp_err"; then
38451   ac_header_preproc=yes
38452 else
38453   echo "$as_me: failed program was:" >&5
38454 sed 's/^/| /' conftest.$ac_ext >&5
38455
38456   ac_header_preproc=no
38457 fi
38458 rm -f conftest.err conftest.$ac_ext
38459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38460 echo "${ECHO_T}$ac_header_preproc" >&6
38461
38462 # So?  What about this header?
38463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38464   yes:no: )
38465     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38469     ac_header_preproc=yes
38470     ;;
38471   no:yes:* )
38472     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38474     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38475 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38476     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38478     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38479 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38482     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38484     (
38485       cat <<\_ASBOX
38486 ## ------------------------------------ ##
38487 ## Report this to bug-coreutils@gnu.org ##
38488 ## ------------------------------------ ##
38489 _ASBOX
38490     ) |
38491       sed "s/^/$as_me: WARNING:     /" >&2
38492     ;;
38493 esac
38494 echo "$as_me:$LINENO: checking for $ac_header" >&5
38495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38497   echo $ECHO_N "(cached) $ECHO_C" >&6
38498 else
38499   eval "$as_ac_Header=\$ac_header_preproc"
38500 fi
38501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38503
38504 fi
38505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38506   cat >>confdefs.h <<_ACEOF
38507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38508 _ACEOF
38509
38510 fi
38511
38512 done
38513
38514
38515 for ac_func in acl
38516 do
38517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38518 echo "$as_me:$LINENO: checking for $ac_func" >&5
38519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38520 if eval "test \"\${$as_ac_var+set}\" = set"; then
38521   echo $ECHO_N "(cached) $ECHO_C" >&6
38522 else
38523   cat >conftest.$ac_ext <<_ACEOF
38524 /* confdefs.h.  */
38525 _ACEOF
38526 cat confdefs.h >>conftest.$ac_ext
38527 cat >>conftest.$ac_ext <<_ACEOF
38528 /* end confdefs.h.  */
38529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38531 #define $ac_func innocuous_$ac_func
38532
38533 /* System header to define __stub macros and hopefully few prototypes,
38534     which can conflict with char $ac_func (); below.
38535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38536     <limits.h> exists even on freestanding compilers.  */
38537
38538 #ifdef __STDC__
38539 # include <limits.h>
38540 #else
38541 # include <assert.h>
38542 #endif
38543
38544 #undef $ac_func
38545
38546 /* Override any gcc2 internal prototype to avoid an error.  */
38547 #ifdef __cplusplus
38548 extern "C"
38549 {
38550 #endif
38551 /* We use char because int might match the return type of a gcc2
38552    builtin and then its argument prototype would still apply.  */
38553 char $ac_func ();
38554 /* The GNU C library defines this for functions which it implements
38555     to always fail with ENOSYS.  Some functions are actually named
38556     something starting with __ and the normal name is an alias.  */
38557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38558 choke me
38559 #else
38560 char (*f) () = $ac_func;
38561 #endif
38562 #ifdef __cplusplus
38563 }
38564 #endif
38565
38566 int
38567 main ()
38568 {
38569 return f != $ac_func;
38570   ;
38571   return 0;
38572 }
38573 _ACEOF
38574 rm -f conftest.$ac_objext conftest$ac_exeext
38575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38576   (eval $ac_link) 2>conftest.er1
38577   ac_status=$?
38578   grep -v '^ *+' conftest.er1 >conftest.err
38579   rm -f conftest.er1
38580   cat conftest.err >&5
38581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38582   (exit $ac_status); } &&
38583          { ac_try='test -z "$ac_c_werror_flag"
38584                          || test ! -s conftest.err'
38585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38586   (eval $ac_try) 2>&5
38587   ac_status=$?
38588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38589   (exit $ac_status); }; } &&
38590          { ac_try='test -s conftest$ac_exeext'
38591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38592   (eval $ac_try) 2>&5
38593   ac_status=$?
38594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38595   (exit $ac_status); }; }; then
38596   eval "$as_ac_var=yes"
38597 else
38598   echo "$as_me: failed program was:" >&5
38599 sed 's/^/| /' conftest.$ac_ext >&5
38600
38601 eval "$as_ac_var=no"
38602 fi
38603 rm -f conftest.err conftest.$ac_objext \
38604       conftest$ac_exeext conftest.$ac_ext
38605 fi
38606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38608 if test `eval echo '${'$as_ac_var'}'` = yes; then
38609   cat >>confdefs.h <<_ACEOF
38610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38611 _ACEOF
38612
38613 fi
38614 done
38615
38616
38617
38618
38619
38620 for ac_func in lchown
38621 do
38622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38623 echo "$as_me:$LINENO: checking for $ac_func" >&5
38624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38625 if eval "test \"\${$as_ac_var+set}\" = set"; then
38626   echo $ECHO_N "(cached) $ECHO_C" >&6
38627 else
38628   cat >conftest.$ac_ext <<_ACEOF
38629 /* confdefs.h.  */
38630 _ACEOF
38631 cat confdefs.h >>conftest.$ac_ext
38632 cat >>conftest.$ac_ext <<_ACEOF
38633 /* end confdefs.h.  */
38634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38635    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38636 #define $ac_func innocuous_$ac_func
38637
38638 /* System header to define __stub macros and hopefully few prototypes,
38639     which can conflict with char $ac_func (); below.
38640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38641     <limits.h> exists even on freestanding compilers.  */
38642
38643 #ifdef __STDC__
38644 # include <limits.h>
38645 #else
38646 # include <assert.h>
38647 #endif
38648
38649 #undef $ac_func
38650
38651 /* Override any gcc2 internal prototype to avoid an error.  */
38652 #ifdef __cplusplus
38653 extern "C"
38654 {
38655 #endif
38656 /* We use char because int might match the return type of a gcc2
38657    builtin and then its argument prototype would still apply.  */
38658 char $ac_func ();
38659 /* The GNU C library defines this for functions which it implements
38660     to always fail with ENOSYS.  Some functions are actually named
38661     something starting with __ and the normal name is an alias.  */
38662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38663 choke me
38664 #else
38665 char (*f) () = $ac_func;
38666 #endif
38667 #ifdef __cplusplus
38668 }
38669 #endif
38670
38671 int
38672 main ()
38673 {
38674 return f != $ac_func;
38675   ;
38676   return 0;
38677 }
38678 _ACEOF
38679 rm -f conftest.$ac_objext conftest$ac_exeext
38680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38681   (eval $ac_link) 2>conftest.er1
38682   ac_status=$?
38683   grep -v '^ *+' conftest.er1 >conftest.err
38684   rm -f conftest.er1
38685   cat conftest.err >&5
38686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38687   (exit $ac_status); } &&
38688          { ac_try='test -z "$ac_c_werror_flag"
38689                          || test ! -s conftest.err'
38690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38691   (eval $ac_try) 2>&5
38692   ac_status=$?
38693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38694   (exit $ac_status); }; } &&
38695          { ac_try='test -s conftest$ac_exeext'
38696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38697   (eval $ac_try) 2>&5
38698   ac_status=$?
38699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700   (exit $ac_status); }; }; then
38701   eval "$as_ac_var=yes"
38702 else
38703   echo "$as_me: failed program was:" >&5
38704 sed 's/^/| /' conftest.$ac_ext >&5
38705
38706 eval "$as_ac_var=no"
38707 fi
38708 rm -f conftest.err conftest.$ac_objext \
38709       conftest$ac_exeext conftest.$ac_ext
38710 fi
38711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38713 if test `eval echo '${'$as_ac_var'}'` = yes; then
38714   cat >>confdefs.h <<_ACEOF
38715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38716 _ACEOF
38717
38718 else
38719   case $LIBOBJS in
38720     "$ac_func.$ac_objext"   | \
38721   *" $ac_func.$ac_objext"   | \
38722     "$ac_func.$ac_objext "* | \
38723   *" $ac_func.$ac_objext "* ) ;;
38724   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
38725 esac
38726
38727 fi
38728 done
38729
38730
38731   if test $ac_cv_func_lchown = no; then
38732
38733
38734   :
38735
38736   fi
38737
38738   echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
38739 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
38740 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
38741   echo $ECHO_N "(cached) $ECHO_C" >&6
38742 else
38743
38744       # Arrange for deletion of the temporary directory this test creates.
38745       ac_clean_files="$ac_clean_files confdir2"
38746       mkdir confdir2; : > confdir2/file
38747       if test "$cross_compiling" = yes; then
38748   fetish_cv_func_rmdir_errno_not_empty=ENOTEMPTY
38749
38750 else
38751   cat >conftest.$ac_ext <<_ACEOF
38752 /* confdefs.h.  */
38753 _ACEOF
38754 cat confdefs.h >>conftest.$ac_ext
38755 cat >>conftest.$ac_ext <<_ACEOF
38756 /* end confdefs.h.  */
38757
38758 #include <stdio.h>
38759 #include <errno.h>
38760 #ifndef errno
38761 extern int errno;
38762 #endif
38763         int main ()
38764         {
38765           FILE *s;
38766           int val;
38767           rmdir ("confdir2");
38768           val = errno;
38769           s = fopen ("confdir2/errno", "w");
38770           fprintf (s, "%d\n", val);
38771           exit (0);
38772         }
38773
38774 _ACEOF
38775 rm -f conftest$ac_exeext
38776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38777   (eval $ac_link) 2>&5
38778   ac_status=$?
38779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38780   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38782   (eval $ac_try) 2>&5
38783   ac_status=$?
38784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38785   (exit $ac_status); }; }; then
38786   fetish_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
38787 else
38788   echo "$as_me: program exited with status $ac_status" >&5
38789 echo "$as_me: failed program was:" >&5
38790 sed 's/^/| /' conftest.$ac_ext >&5
38791
38792 ( exit $ac_status )
38793 fetish_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
38794 fi
38795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38796 fi
38797
38798
38799 fi
38800 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
38801 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
38802
38803
38804 cat >>confdefs.h <<_ACEOF
38805 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
38806 _ACEOF
38807
38808
38809
38810 for ac_header in unistd.h
38811 do
38812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38814   echo "$as_me:$LINENO: checking for $ac_header" >&5
38815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38817   echo $ECHO_N "(cached) $ECHO_C" >&6
38818 fi
38819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38821 else
38822   # Is the header compilable?
38823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38825 cat >conftest.$ac_ext <<_ACEOF
38826 /* confdefs.h.  */
38827 _ACEOF
38828 cat confdefs.h >>conftest.$ac_ext
38829 cat >>conftest.$ac_ext <<_ACEOF
38830 /* end confdefs.h.  */
38831 $ac_includes_default
38832 #include <$ac_header>
38833 _ACEOF
38834 rm -f conftest.$ac_objext
38835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38836   (eval $ac_compile) 2>conftest.er1
38837   ac_status=$?
38838   grep -v '^ *+' conftest.er1 >conftest.err
38839   rm -f conftest.er1
38840   cat conftest.err >&5
38841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842   (exit $ac_status); } &&
38843          { ac_try='test -z "$ac_c_werror_flag"
38844                          || test ! -s conftest.err'
38845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38846   (eval $ac_try) 2>&5
38847   ac_status=$?
38848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38849   (exit $ac_status); }; } &&
38850          { ac_try='test -s conftest.$ac_objext'
38851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38852   (eval $ac_try) 2>&5
38853   ac_status=$?
38854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38855   (exit $ac_status); }; }; then
38856   ac_header_compiler=yes
38857 else
38858   echo "$as_me: failed program was:" >&5
38859 sed 's/^/| /' conftest.$ac_ext >&5
38860
38861 ac_header_compiler=no
38862 fi
38863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38865 echo "${ECHO_T}$ac_header_compiler" >&6
38866
38867 # Is the header present?
38868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38870 cat >conftest.$ac_ext <<_ACEOF
38871 /* confdefs.h.  */
38872 _ACEOF
38873 cat confdefs.h >>conftest.$ac_ext
38874 cat >>conftest.$ac_ext <<_ACEOF
38875 /* end confdefs.h.  */
38876 #include <$ac_header>
38877 _ACEOF
38878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38879   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38880   ac_status=$?
38881   grep -v '^ *+' conftest.er1 >conftest.err
38882   rm -f conftest.er1
38883   cat conftest.err >&5
38884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38885   (exit $ac_status); } >/dev/null; then
38886   if test -s conftest.err; then
38887     ac_cpp_err=$ac_c_preproc_warn_flag
38888     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38889   else
38890     ac_cpp_err=
38891   fi
38892 else
38893   ac_cpp_err=yes
38894 fi
38895 if test -z "$ac_cpp_err"; then
38896   ac_header_preproc=yes
38897 else
38898   echo "$as_me: failed program was:" >&5
38899 sed 's/^/| /' conftest.$ac_ext >&5
38900
38901   ac_header_preproc=no
38902 fi
38903 rm -f conftest.err conftest.$ac_ext
38904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38905 echo "${ECHO_T}$ac_header_preproc" >&6
38906
38907 # So?  What about this header?
38908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38909   yes:no: )
38910     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38914     ac_header_preproc=yes
38915     ;;
38916   no:yes:* )
38917     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38919     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38920 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38921     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38923     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38924 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38927     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38929     (
38930       cat <<\_ASBOX
38931 ## ------------------------------------ ##
38932 ## Report this to bug-coreutils@gnu.org ##
38933 ## ------------------------------------ ##
38934 _ASBOX
38935     ) |
38936       sed "s/^/$as_me: WARNING:     /" >&2
38937     ;;
38938 esac
38939 echo "$as_me:$LINENO: checking for $ac_header" >&5
38940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38942   echo $ECHO_N "(cached) $ECHO_C" >&6
38943 else
38944   eval "$as_ac_Header=\$ac_header_preproc"
38945 fi
38946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38948
38949 fi
38950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38951   cat >>confdefs.h <<_ACEOF
38952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38953 _ACEOF
38954
38955 fi
38956
38957 done
38958
38959 echo "$as_me:$LINENO: checking for working chown" >&5
38960 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
38961 if test "${ac_cv_func_chown_works+set}" = set; then
38962   echo $ECHO_N "(cached) $ECHO_C" >&6
38963 else
38964   if test "$cross_compiling" = yes; then
38965   ac_cv_func_chown_works=no
38966 else
38967   cat >conftest.$ac_ext <<_ACEOF
38968 /* confdefs.h.  */
38969 _ACEOF
38970 cat confdefs.h >>conftest.$ac_ext
38971 cat >>conftest.$ac_ext <<_ACEOF
38972 /* end confdefs.h.  */
38973 $ac_includes_default
38974 #include <fcntl.h>
38975
38976 int
38977 main ()
38978 {
38979   char *f = "conftest.chown";
38980   struct stat before, after;
38981
38982   if (creat (f, 0600) < 0)
38983     exit (1);
38984   if (stat (f, &before) < 0)
38985     exit (1);
38986   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
38987     exit (1);
38988   if (stat (f, &after) < 0)
38989     exit (1);
38990   exit ((before.st_uid == after.st_uid
38991          && before.st_gid == after.st_gid) ? 0 : 1);
38992
38993   ;
38994   return 0;
38995 }
38996 _ACEOF
38997 rm -f conftest$ac_exeext
38998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38999   (eval $ac_link) 2>&5
39000   ac_status=$?
39001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39004   (eval $ac_try) 2>&5
39005   ac_status=$?
39006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39007   (exit $ac_status); }; }; then
39008   ac_cv_func_chown_works=yes
39009 else
39010   echo "$as_me: program exited with status $ac_status" >&5
39011 echo "$as_me: failed program was:" >&5
39012 sed 's/^/| /' conftest.$ac_ext >&5
39013
39014 ( exit $ac_status )
39015 ac_cv_func_chown_works=no
39016 fi
39017 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39018 fi
39019 rm -f conftest.chown
39020
39021 fi
39022 echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
39023 echo "${ECHO_T}$ac_cv_func_chown_works" >&6
39024 if test $ac_cv_func_chown_works = yes; then
39025
39026 cat >>confdefs.h <<\_ACEOF
39027 #define HAVE_CHOWN 1
39028 _ACEOF
39029
39030 fi
39031
39032
39033
39034   if test $ac_cv_func_chown_works = no; then
39035     case $LIBOBJS in
39036     "chown.$ac_objext"   | \
39037   *" chown.$ac_objext"   | \
39038     "chown.$ac_objext "* | \
39039   *" chown.$ac_objext "* ) ;;
39040   *) LIBOBJS="$LIBOBJS chown.$ac_objext" ;;
39041 esac
39042
39043
39044 cat >>confdefs.h <<\_ACEOF
39045 #define chown rpl_chown
39046 _ACEOF
39047
39048
39049
39050   :
39051
39052
39053
39054
39055
39056
39057   fi
39058
39059
39060
39061
39062       echo "$as_me:$LINENO: checking for group_member" >&5
39063 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
39064 if test "${ac_cv_func_group_member+set}" = set; then
39065   echo $ECHO_N "(cached) $ECHO_C" >&6
39066 else
39067   cat >conftest.$ac_ext <<_ACEOF
39068 /* confdefs.h.  */
39069 _ACEOF
39070 cat confdefs.h >>conftest.$ac_ext
39071 cat >>conftest.$ac_ext <<_ACEOF
39072 /* end confdefs.h.  */
39073 /* Define group_member to an innocuous variant, in case <limits.h> declares group_member.
39074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39075 #define group_member innocuous_group_member
39076
39077 /* System header to define __stub macros and hopefully few prototypes,
39078     which can conflict with char group_member (); below.
39079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39080     <limits.h> exists even on freestanding compilers.  */
39081
39082 #ifdef __STDC__
39083 # include <limits.h>
39084 #else
39085 # include <assert.h>
39086 #endif
39087
39088 #undef group_member
39089
39090 /* Override any gcc2 internal prototype to avoid an error.  */
39091 #ifdef __cplusplus
39092 extern "C"
39093 {
39094 #endif
39095 /* We use char because int might match the return type of a gcc2
39096    builtin and then its argument prototype would still apply.  */
39097 char group_member ();
39098 /* The GNU C library defines this for functions which it implements
39099     to always fail with ENOSYS.  Some functions are actually named
39100     something starting with __ and the normal name is an alias.  */
39101 #if defined (__stub_group_member) || defined (__stub___group_member)
39102 choke me
39103 #else
39104 char (*f) () = group_member;
39105 #endif
39106 #ifdef __cplusplus
39107 }
39108 #endif
39109
39110 int
39111 main ()
39112 {
39113 return f != group_member;
39114   ;
39115   return 0;
39116 }
39117 _ACEOF
39118 rm -f conftest.$ac_objext conftest$ac_exeext
39119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39120   (eval $ac_link) 2>conftest.er1
39121   ac_status=$?
39122   grep -v '^ *+' conftest.er1 >conftest.err
39123   rm -f conftest.er1
39124   cat conftest.err >&5
39125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39126   (exit $ac_status); } &&
39127          { ac_try='test -z "$ac_c_werror_flag"
39128                          || test ! -s conftest.err'
39129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39130   (eval $ac_try) 2>&5
39131   ac_status=$?
39132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39133   (exit $ac_status); }; } &&
39134          { ac_try='test -s conftest$ac_exeext'
39135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39136   (eval $ac_try) 2>&5
39137   ac_status=$?
39138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39139   (exit $ac_status); }; }; then
39140   ac_cv_func_group_member=yes
39141 else
39142   echo "$as_me: failed program was:" >&5
39143 sed 's/^/| /' conftest.$ac_ext >&5
39144
39145 ac_cv_func_group_member=no
39146 fi
39147 rm -f conftest.err conftest.$ac_objext \
39148       conftest$ac_exeext conftest.$ac_ext
39149 fi
39150 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
39151 echo "${ECHO_T}$ac_cv_func_group_member" >&6
39152 if test $ac_cv_func_group_member = yes; then
39153   :
39154 else
39155
39156     case $LIBOBJS in
39157     "group-member.$ac_objext"   | \
39158   *" group-member.$ac_objext"   | \
39159     "group-member.$ac_objext "* | \
39160   *" group-member.$ac_objext "* ) ;;
39161   *) LIBOBJS="$LIBOBJS group-member.$ac_objext" ;;
39162 esac
39163
39164
39165
39166   :
39167
39168
39169
39170
39171
39172
39173
39174
39175 fi
39176
39177
39178   echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
39179 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
39180 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
39181   echo $ECHO_N "(cached) $ECHO_C" >&6
39182 else
39183
39184             test -z "$ac_cv_header_unistd_h" \
39185       &&
39186 for ac_header in unistd.h
39187 do
39188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39190   echo "$as_me:$LINENO: checking for $ac_header" >&5
39191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39193   echo $ECHO_N "(cached) $ECHO_C" >&6
39194 fi
39195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39197 else
39198   # Is the header compilable?
39199 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
39208 #include <$ac_header>
39209 _ACEOF
39210 rm -f conftest.$ac_objext
39211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39212   (eval $ac_compile) 2>conftest.er1
39213   ac_status=$?
39214   grep -v '^ *+' conftest.er1 >conftest.err
39215   rm -f conftest.er1
39216   cat conftest.err >&5
39217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39218   (exit $ac_status); } &&
39219          { ac_try='test -z "$ac_c_werror_flag"
39220                          || test ! -s conftest.err'
39221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39222   (eval $ac_try) 2>&5
39223   ac_status=$?
39224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225   (exit $ac_status); }; } &&
39226          { ac_try='test -s conftest.$ac_objext'
39227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39228   (eval $ac_try) 2>&5
39229   ac_status=$?
39230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39231   (exit $ac_status); }; }; then
39232   ac_header_compiler=yes
39233 else
39234   echo "$as_me: failed program was:" >&5
39235 sed 's/^/| /' conftest.$ac_ext >&5
39236
39237 ac_header_compiler=no
39238 fi
39239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39241 echo "${ECHO_T}$ac_header_compiler" >&6
39242
39243 # Is the header present?
39244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39246 cat >conftest.$ac_ext <<_ACEOF
39247 /* confdefs.h.  */
39248 _ACEOF
39249 cat confdefs.h >>conftest.$ac_ext
39250 cat >>conftest.$ac_ext <<_ACEOF
39251 /* end confdefs.h.  */
39252 #include <$ac_header>
39253 _ACEOF
39254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39256   ac_status=$?
39257   grep -v '^ *+' conftest.er1 >conftest.err
39258   rm -f conftest.er1
39259   cat conftest.err >&5
39260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39261   (exit $ac_status); } >/dev/null; then
39262   if test -s conftest.err; then
39263     ac_cpp_err=$ac_c_preproc_warn_flag
39264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39265   else
39266     ac_cpp_err=
39267   fi
39268 else
39269   ac_cpp_err=yes
39270 fi
39271 if test -z "$ac_cpp_err"; then
39272   ac_header_preproc=yes
39273 else
39274   echo "$as_me: failed program was:" >&5
39275 sed 's/^/| /' conftest.$ac_ext >&5
39276
39277   ac_header_preproc=no
39278 fi
39279 rm -f conftest.err conftest.$ac_ext
39280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39281 echo "${ECHO_T}$ac_header_preproc" >&6
39282
39283 # So?  What about this header?
39284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39285   yes:no: )
39286     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39290     ac_header_preproc=yes
39291     ;;
39292   no:yes:* )
39293     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39295     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39296 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39297     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39299     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39300 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39303     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39305     (
39306       cat <<\_ASBOX
39307 ## ------------------------------------ ##
39308 ## Report this to bug-coreutils@gnu.org ##
39309 ## ------------------------------------ ##
39310 _ASBOX
39311     ) |
39312       sed "s/^/$as_me: WARNING:     /" >&2
39313     ;;
39314 esac
39315 echo "$as_me:$LINENO: checking for $ac_header" >&5
39316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39318   echo $ECHO_N "(cached) $ECHO_C" >&6
39319 else
39320   eval "$as_ac_Header=\$ac_header_preproc"
39321 fi
39322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39324
39325 fi
39326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39327   cat >>confdefs.h <<_ACEOF
39328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39329 _ACEOF
39330
39331 fi
39332
39333 done
39334
39335
39336     # Create a regular file.
39337     echo > conftest.file
39338     if test "$cross_compiling" = yes; then
39339   jm_ac_cv_func_link_follows_symlink=yes
39340 else
39341   cat >conftest.$ac_ext <<_ACEOF
39342 /* confdefs.h.  */
39343 _ACEOF
39344 cat confdefs.h >>conftest.$ac_ext
39345 cat >>conftest.$ac_ext <<_ACEOF
39346 /* end confdefs.h.  */
39347
39348 #       include <sys/types.h>
39349 #       include <sys/stat.h>
39350 #       ifdef HAVE_UNISTD_H
39351 #        include <unistd.h>
39352 #       endif
39353
39354 #       define SAME_INODE(Stat_buf_1, Stat_buf_2) \
39355           ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
39356            && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
39357
39358         int
39359         main ()
39360         {
39361           const char *file = "conftest.file";
39362           const char *sym = "conftest.sym";
39363           const char *hard = "conftest.hard";
39364           struct stat sb_file, sb_hard;
39365
39366           /* Create a symlink to the regular file. */
39367           if (symlink (file, sym))
39368             abort ();
39369
39370           /* Create a hard link to that symlink.  */
39371           if (link (sym, hard))
39372             abort ();
39373
39374           if (lstat (hard, &sb_hard))
39375             abort ();
39376           if (lstat (file, &sb_file))
39377             abort ();
39378
39379           /* If the dev/inode of hard and file are the same, then
39380              the link call followed the symlink.  */
39381           return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
39382         }
39383
39384 _ACEOF
39385 rm -f conftest$ac_exeext
39386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39387   (eval $ac_link) 2>&5
39388   ac_status=$?
39389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39390   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39392   (eval $ac_try) 2>&5
39393   ac_status=$?
39394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39395   (exit $ac_status); }; }; then
39396   jm_ac_cv_func_link_follows_symlink=yes
39397 else
39398   echo "$as_me: program exited with status $ac_status" >&5
39399 echo "$as_me: failed program was:" >&5
39400 sed 's/^/| /' conftest.$ac_ext >&5
39401
39402 ( exit $ac_status )
39403 jm_ac_cv_func_link_follows_symlink=no
39404 fi
39405 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39406 fi
39407
39408 fi
39409 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
39410 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
39411   if test $jm_ac_cv_func_link_follows_symlink = yes; then
39412
39413 cat >>confdefs.h <<\_ACEOF
39414 #define LINK_FOLLOWS_SYMLINKS 1
39415 _ACEOF
39416
39417   fi
39418
39419
39420
39421 for ac_header in stdio_ext.h
39422 do
39423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39425   echo "$as_me:$LINENO: checking for $ac_header" >&5
39426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39428   echo $ECHO_N "(cached) $ECHO_C" >&6
39429 fi
39430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39432 else
39433   # Is the header compilable?
39434 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39436 cat >conftest.$ac_ext <<_ACEOF
39437 /* confdefs.h.  */
39438 _ACEOF
39439 cat confdefs.h >>conftest.$ac_ext
39440 cat >>conftest.$ac_ext <<_ACEOF
39441 /* end confdefs.h.  */
39442 $ac_includes_default
39443 #include <$ac_header>
39444 _ACEOF
39445 rm -f conftest.$ac_objext
39446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39447   (eval $ac_compile) 2>conftest.er1
39448   ac_status=$?
39449   grep -v '^ *+' conftest.er1 >conftest.err
39450   rm -f conftest.er1
39451   cat conftest.err >&5
39452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39453   (exit $ac_status); } &&
39454          { ac_try='test -z "$ac_c_werror_flag"
39455                          || test ! -s conftest.err'
39456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39457   (eval $ac_try) 2>&5
39458   ac_status=$?
39459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39460   (exit $ac_status); }; } &&
39461          { ac_try='test -s conftest.$ac_objext'
39462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39463   (eval $ac_try) 2>&5
39464   ac_status=$?
39465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39466   (exit $ac_status); }; }; then
39467   ac_header_compiler=yes
39468 else
39469   echo "$as_me: failed program was:" >&5
39470 sed 's/^/| /' conftest.$ac_ext >&5
39471
39472 ac_header_compiler=no
39473 fi
39474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39476 echo "${ECHO_T}$ac_header_compiler" >&6
39477
39478 # Is the header present?
39479 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39481 cat >conftest.$ac_ext <<_ACEOF
39482 /* confdefs.h.  */
39483 _ACEOF
39484 cat confdefs.h >>conftest.$ac_ext
39485 cat >>conftest.$ac_ext <<_ACEOF
39486 /* end confdefs.h.  */
39487 #include <$ac_header>
39488 _ACEOF
39489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39490   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39491   ac_status=$?
39492   grep -v '^ *+' conftest.er1 >conftest.err
39493   rm -f conftest.er1
39494   cat conftest.err >&5
39495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496   (exit $ac_status); } >/dev/null; then
39497   if test -s conftest.err; then
39498     ac_cpp_err=$ac_c_preproc_warn_flag
39499     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39500   else
39501     ac_cpp_err=
39502   fi
39503 else
39504   ac_cpp_err=yes
39505 fi
39506 if test -z "$ac_cpp_err"; then
39507   ac_header_preproc=yes
39508 else
39509   echo "$as_me: failed program was:" >&5
39510 sed 's/^/| /' conftest.$ac_ext >&5
39511
39512   ac_header_preproc=no
39513 fi
39514 rm -f conftest.err conftest.$ac_ext
39515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39516 echo "${ECHO_T}$ac_header_preproc" >&6
39517
39518 # So?  What about this header?
39519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39520   yes:no: )
39521     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39525     ac_header_preproc=yes
39526     ;;
39527   no:yes:* )
39528     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39530     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39531 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39532     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39534     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39535 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39538     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39540     (
39541       cat <<\_ASBOX
39542 ## ------------------------------------ ##
39543 ## Report this to bug-coreutils@gnu.org ##
39544 ## ------------------------------------ ##
39545 _ASBOX
39546     ) |
39547       sed "s/^/$as_me: WARNING:     /" >&2
39548     ;;
39549 esac
39550 echo "$as_me:$LINENO: checking for $ac_header" >&5
39551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39553   echo $ECHO_N "(cached) $ECHO_C" >&6
39554 else
39555   eval "$as_ac_Header=\$ac_header_preproc"
39556 fi
39557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39559
39560 fi
39561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39562   cat >>confdefs.h <<_ACEOF
39563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39564 _ACEOF
39565
39566 fi
39567
39568 done
39569
39570
39571 for ac_func in __fpending
39572 do
39573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39574 echo "$as_me:$LINENO: checking for $ac_func" >&5
39575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39576 if eval "test \"\${$as_ac_var+set}\" = set"; then
39577   echo $ECHO_N "(cached) $ECHO_C" >&6
39578 else
39579   cat >conftest.$ac_ext <<_ACEOF
39580 /* confdefs.h.  */
39581 _ACEOF
39582 cat confdefs.h >>conftest.$ac_ext
39583 cat >>conftest.$ac_ext <<_ACEOF
39584 /* end confdefs.h.  */
39585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39587 #define $ac_func innocuous_$ac_func
39588
39589 /* System header to define __stub macros and hopefully few prototypes,
39590     which can conflict with char $ac_func (); below.
39591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39592     <limits.h> exists even on freestanding compilers.  */
39593
39594 #ifdef __STDC__
39595 # include <limits.h>
39596 #else
39597 # include <assert.h>
39598 #endif
39599
39600 #undef $ac_func
39601
39602 /* Override any gcc2 internal prototype to avoid an error.  */
39603 #ifdef __cplusplus
39604 extern "C"
39605 {
39606 #endif
39607 /* We use char because int might match the return type of a gcc2
39608    builtin and then its argument prototype would still apply.  */
39609 char $ac_func ();
39610 /* The GNU C library defines this for functions which it implements
39611     to always fail with ENOSYS.  Some functions are actually named
39612     something starting with __ and the normal name is an alias.  */
39613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39614 choke me
39615 #else
39616 char (*f) () = $ac_func;
39617 #endif
39618 #ifdef __cplusplus
39619 }
39620 #endif
39621
39622 int
39623 main ()
39624 {
39625 return f != $ac_func;
39626   ;
39627   return 0;
39628 }
39629 _ACEOF
39630 rm -f conftest.$ac_objext conftest$ac_exeext
39631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39632   (eval $ac_link) 2>conftest.er1
39633   ac_status=$?
39634   grep -v '^ *+' conftest.er1 >conftest.err
39635   rm -f conftest.er1
39636   cat conftest.err >&5
39637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39638   (exit $ac_status); } &&
39639          { ac_try='test -z "$ac_c_werror_flag"
39640                          || test ! -s conftest.err'
39641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39642   (eval $ac_try) 2>&5
39643   ac_status=$?
39644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39645   (exit $ac_status); }; } &&
39646          { ac_try='test -s conftest$ac_exeext'
39647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39648   (eval $ac_try) 2>&5
39649   ac_status=$?
39650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39651   (exit $ac_status); }; }; then
39652   eval "$as_ac_var=yes"
39653 else
39654   echo "$as_me: failed program was:" >&5
39655 sed 's/^/| /' conftest.$ac_ext >&5
39656
39657 eval "$as_ac_var=no"
39658 fi
39659 rm -f conftest.err conftest.$ac_objext \
39660       conftest$ac_exeext conftest.$ac_ext
39661 fi
39662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39664 if test `eval echo '${'$as_ac_var'}'` = yes; then
39665   cat >>confdefs.h <<_ACEOF
39666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39667 _ACEOF
39668
39669 else
39670   case $LIBOBJS in
39671     "$ac_func.$ac_objext"   | \
39672   *" $ac_func.$ac_objext"   | \
39673     "$ac_func.$ac_objext "* | \
39674   *" $ac_func.$ac_objext "* ) ;;
39675   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39676 esac
39677
39678 fi
39679 done
39680
39681
39682   fp_headers='
39683 #     if HAVE_STDIO_EXT_H
39684 #      include <stdio_ext.h>
39685 #     endif
39686 '
39687   echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
39688 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
39689 if test "${ac_cv_have_decl___fpending+set}" = set; then
39690   echo $ECHO_N "(cached) $ECHO_C" >&6
39691 else
39692   cat >conftest.$ac_ext <<_ACEOF
39693 /* confdefs.h.  */
39694 _ACEOF
39695 cat confdefs.h >>conftest.$ac_ext
39696 cat >>conftest.$ac_ext <<_ACEOF
39697 /* end confdefs.h.  */
39698 $fp_headers
39699
39700 int
39701 main ()
39702 {
39703 #ifndef __fpending
39704   char *p = (char *) __fpending;
39705 #endif
39706
39707   ;
39708   return 0;
39709 }
39710 _ACEOF
39711 rm -f conftest.$ac_objext
39712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39713   (eval $ac_compile) 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_objext'
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   ac_cv_have_decl___fpending=yes
39734 else
39735   echo "$as_me: failed program was:" >&5
39736 sed 's/^/| /' conftest.$ac_ext >&5
39737
39738 ac_cv_have_decl___fpending=no
39739 fi
39740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39741 fi
39742 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
39743 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
39744 if test $ac_cv_have_decl___fpending = yes; then
39745
39746 cat >>confdefs.h <<_ACEOF
39747 #define HAVE_DECL___FPENDING 1
39748 _ACEOF
39749
39750
39751 else
39752   cat >>confdefs.h <<_ACEOF
39753 #define HAVE_DECL___FPENDING 0
39754 _ACEOF
39755
39756
39757 fi
39758
39759
39760   if test $ac_cv_func___fpending = no; then
39761     echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
39762 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
39763 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
39764   echo $ECHO_N "(cached) $ECHO_C" >&6
39765 else
39766
39767         for ac_expr in                                          \
39768                                                                 \
39769             '# glibc2'                                          \
39770             'fp->_IO_write_ptr - fp->_IO_write_base'            \
39771                                                                 \
39772             '# traditional Unix'                                \
39773             'fp->_ptr - fp->_base'                              \
39774                                                                 \
39775             '# BSD'                                             \
39776             'fp->_p - fp->_bf._base'                            \
39777                                                                 \
39778             '# SCO, Unixware'                                   \
39779             'fp->__ptr - fp->__base'                            \
39780                                                                 \
39781             '# old glibc?'                                      \
39782             'fp->__bufp - fp->__buffer'                         \
39783                                                                 \
39784             '# old glibc iostream?'                             \
39785             'fp->_pptr - fp->_pbase'                            \
39786                                                                 \
39787             '# VMS'                                             \
39788             '(*fp)->_ptr - (*fp)->_base'                        \
39789                                                                 \
39790             '# e.g., DGUX R4.11; the info is not available'     \
39791             1                                                   \
39792             ; do
39793
39794           # Skip each embedded comment.
39795           case "$ac_expr" in '#'*) continue;; esac
39796
39797           cat >conftest.$ac_ext <<_ACEOF
39798 /* confdefs.h.  */
39799 _ACEOF
39800 cat confdefs.h >>conftest.$ac_ext
39801 cat >>conftest.$ac_ext <<_ACEOF
39802 /* end confdefs.h.  */
39803 #include <stdio.h>
39804
39805 int
39806 main ()
39807 {
39808 FILE *fp = stdin; (void) ($ac_expr);
39809   ;
39810   return 0;
39811 }
39812 _ACEOF
39813 rm -f conftest.$ac_objext
39814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39815   (eval $ac_compile) 2>conftest.er1
39816   ac_status=$?
39817   grep -v '^ *+' conftest.er1 >conftest.err
39818   rm -f conftest.er1
39819   cat conftest.err >&5
39820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39821   (exit $ac_status); } &&
39822          { ac_try='test -z "$ac_c_werror_flag"
39823                          || test ! -s conftest.err'
39824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39825   (eval $ac_try) 2>&5
39826   ac_status=$?
39827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39828   (exit $ac_status); }; } &&
39829          { ac_try='test -s conftest.$ac_objext'
39830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39831   (eval $ac_try) 2>&5
39832   ac_status=$?
39833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39834   (exit $ac_status); }; }; then
39835   fp_done=yes
39836
39837 else
39838   echo "$as_me: failed program was:" >&5
39839 sed 's/^/| /' conftest.$ac_ext >&5
39840
39841 fi
39842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39843           test "$fp_done" = yes && break
39844         done
39845
39846         ac_cv_sys_pending_output_n_bytes=$ac_expr
39847
39848
39849 fi
39850 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
39851 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
39852
39853 cat >>confdefs.h <<_ACEOF
39854 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
39855 _ACEOF
39856
39857   fi
39858
39859
39860   echo "$as_me:$LINENO: checking for inttypes.h" >&5
39861 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
39862 if test "${gt_cv_header_inttypes_h+set}" = set; then
39863   echo $ECHO_N "(cached) $ECHO_C" >&6
39864 else
39865
39866     cat >conftest.$ac_ext <<_ACEOF
39867 /* confdefs.h.  */
39868 _ACEOF
39869 cat confdefs.h >>conftest.$ac_ext
39870 cat >>conftest.$ac_ext <<_ACEOF
39871 /* end confdefs.h.  */
39872 #include <sys/types.h>
39873 #include <inttypes.h>
39874 int
39875 main ()
39876 {
39877
39878   ;
39879   return 0;
39880 }
39881 _ACEOF
39882 rm -f conftest.$ac_objext
39883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39884   (eval $ac_compile) 2>conftest.er1
39885   ac_status=$?
39886   grep -v '^ *+' conftest.er1 >conftest.err
39887   rm -f conftest.er1
39888   cat conftest.err >&5
39889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39890   (exit $ac_status); } &&
39891          { ac_try='test -z "$ac_c_werror_flag"
39892                          || test ! -s conftest.err'
39893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39894   (eval $ac_try) 2>&5
39895   ac_status=$?
39896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39897   (exit $ac_status); }; } &&
39898          { ac_try='test -s conftest.$ac_objext'
39899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39900   (eval $ac_try) 2>&5
39901   ac_status=$?
39902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39903   (exit $ac_status); }; }; then
39904   gt_cv_header_inttypes_h=yes
39905 else
39906   echo "$as_me: failed program was:" >&5
39907 sed 's/^/| /' conftest.$ac_ext >&5
39908
39909 gt_cv_header_inttypes_h=no
39910 fi
39911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39912
39913 fi
39914 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
39915 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
39916   if test $gt_cv_header_inttypes_h = yes; then
39917
39918 cat >>confdefs.h <<_ACEOF
39919 #define HAVE_INTTYPES_H 1
39920 _ACEOF
39921
39922   fi
39923
39924
39925
39926   if test $gt_cv_header_inttypes_h = yes; then
39927     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
39928 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
39929 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
39930   echo $ECHO_N "(cached) $ECHO_C" >&6
39931 else
39932
39933         cat >conftest.$ac_ext <<_ACEOF
39934 /* confdefs.h.  */
39935 _ACEOF
39936 cat confdefs.h >>conftest.$ac_ext
39937 cat >>conftest.$ac_ext <<_ACEOF
39938 /* end confdefs.h.  */
39939 #include <inttypes.h>
39940 #ifdef PRId32
39941 char *p = PRId32;
39942 #endif
39943
39944 int
39945 main ()
39946 {
39947
39948   ;
39949   return 0;
39950 }
39951 _ACEOF
39952 rm -f conftest.$ac_objext
39953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39954   (eval $ac_compile) 2>conftest.er1
39955   ac_status=$?
39956   grep -v '^ *+' conftest.er1 >conftest.err
39957   rm -f conftest.er1
39958   cat conftest.err >&5
39959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39960   (exit $ac_status); } &&
39961          { ac_try='test -z "$ac_c_werror_flag"
39962                          || test ! -s conftest.err'
39963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39964   (eval $ac_try) 2>&5
39965   ac_status=$?
39966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967   (exit $ac_status); }; } &&
39968          { ac_try='test -s conftest.$ac_objext'
39969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39970   (eval $ac_try) 2>&5
39971   ac_status=$?
39972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39973   (exit $ac_status); }; }; then
39974   gt_cv_inttypes_pri_broken=no
39975 else
39976   echo "$as_me: failed program was:" >&5
39977 sed 's/^/| /' conftest.$ac_ext >&5
39978
39979 gt_cv_inttypes_pri_broken=yes
39980 fi
39981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39982
39983 fi
39984 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
39985 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
39986   fi
39987   if test "$gt_cv_inttypes_pri_broken" = yes; then
39988
39989 cat >>confdefs.h <<_ACEOF
39990 #define PRI_MACROS_BROKEN 1
39991 _ACEOF
39992
39993   fi
39994
39995
39996
39997   if test $ac_cv_func_getgroups_works = no; then
39998     case $LIBOBJS in
39999     "getgroups.$ac_objext"   | \
40000   *" getgroups.$ac_objext"   | \
40001     "getgroups.$ac_objext "* | \
40002   *" getgroups.$ac_objext "* ) ;;
40003   *) LIBOBJS="$LIBOBJS getgroups.$ac_objext" ;;
40004 esac
40005
40006
40007 cat >>confdefs.h <<\_ACEOF
40008 #define getgroups rpl_getgroups
40009 _ACEOF
40010
40011
40012
40013
40014   fi
40015   test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
40016
40017 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
40018 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
40019 if test "${ac_cv_sys_largefile_source+set}" = set; then
40020   echo $ECHO_N "(cached) $ECHO_C" >&6
40021 else
40022   while :; do
40023   ac_cv_sys_largefile_source=no
40024   cat >conftest.$ac_ext <<_ACEOF
40025 /* confdefs.h.  */
40026 _ACEOF
40027 cat confdefs.h >>conftest.$ac_ext
40028 cat >>conftest.$ac_ext <<_ACEOF
40029 /* end confdefs.h.  */
40030 #include <stdio.h>
40031 int
40032 main ()
40033 {
40034 return !fseeko;
40035   ;
40036   return 0;
40037 }
40038 _ACEOF
40039 rm -f conftest.$ac_objext
40040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40041   (eval $ac_compile) 2>conftest.er1
40042   ac_status=$?
40043   grep -v '^ *+' conftest.er1 >conftest.err
40044   rm -f conftest.er1
40045   cat conftest.err >&5
40046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047   (exit $ac_status); } &&
40048          { ac_try='test -z "$ac_c_werror_flag"
40049                          || test ! -s conftest.err'
40050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40051   (eval $ac_try) 2>&5
40052   ac_status=$?
40053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40054   (exit $ac_status); }; } &&
40055          { ac_try='test -s conftest.$ac_objext'
40056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40057   (eval $ac_try) 2>&5
40058   ac_status=$?
40059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40060   (exit $ac_status); }; }; then
40061   break
40062 else
40063   echo "$as_me: failed program was:" >&5
40064 sed 's/^/| /' conftest.$ac_ext >&5
40065
40066 fi
40067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40068   cat >conftest.$ac_ext <<_ACEOF
40069 /* confdefs.h.  */
40070 _ACEOF
40071 cat confdefs.h >>conftest.$ac_ext
40072 cat >>conftest.$ac_ext <<_ACEOF
40073 /* end confdefs.h.  */
40074 #define _LARGEFILE_SOURCE 1
40075 #include <stdio.h>
40076 int
40077 main ()
40078 {
40079 return !fseeko;
40080   ;
40081   return 0;
40082 }
40083 _ACEOF
40084 rm -f conftest.$ac_objext
40085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40086   (eval $ac_compile) 2>conftest.er1
40087   ac_status=$?
40088   grep -v '^ *+' conftest.er1 >conftest.err
40089   rm -f conftest.er1
40090   cat conftest.err >&5
40091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40092   (exit $ac_status); } &&
40093          { ac_try='test -z "$ac_c_werror_flag"
40094                          || test ! -s conftest.err'
40095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40096   (eval $ac_try) 2>&5
40097   ac_status=$?
40098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40099   (exit $ac_status); }; } &&
40100          { ac_try='test -s conftest.$ac_objext'
40101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40102   (eval $ac_try) 2>&5
40103   ac_status=$?
40104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105   (exit $ac_status); }; }; then
40106   ac_cv_sys_largefile_source=1; break
40107 else
40108   echo "$as_me: failed program was:" >&5
40109 sed 's/^/| /' conftest.$ac_ext >&5
40110
40111 fi
40112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40113   break
40114 done
40115 fi
40116 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
40117 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
40118 if test "$ac_cv_sys_largefile_source" != no; then
40119
40120 cat >>confdefs.h <<_ACEOF
40121 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
40122 _ACEOF
40123
40124 fi
40125 rm -f conftest*
40126
40127 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
40128 # in glibc 2.1.3, but that breaks too many other things.
40129 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
40130 echo "$as_me:$LINENO: checking for fseeko" >&5
40131 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
40132 if test "${ac_cv_func_fseeko+set}" = set; then
40133   echo $ECHO_N "(cached) $ECHO_C" >&6
40134 else
40135   cat >conftest.$ac_ext <<_ACEOF
40136 /* confdefs.h.  */
40137 _ACEOF
40138 cat confdefs.h >>conftest.$ac_ext
40139 cat >>conftest.$ac_ext <<_ACEOF
40140 /* end confdefs.h.  */
40141 #include <stdio.h>
40142 int
40143 main ()
40144 {
40145 return fseeko && fseeko (stdin, 0, 0);
40146   ;
40147   return 0;
40148 }
40149 _ACEOF
40150 rm -f conftest.$ac_objext conftest$ac_exeext
40151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40152   (eval $ac_link) 2>conftest.er1
40153   ac_status=$?
40154   grep -v '^ *+' conftest.er1 >conftest.err
40155   rm -f conftest.er1
40156   cat conftest.err >&5
40157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40158   (exit $ac_status); } &&
40159          { ac_try='test -z "$ac_c_werror_flag"
40160                          || test ! -s conftest.err'
40161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40162   (eval $ac_try) 2>&5
40163   ac_status=$?
40164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40165   (exit $ac_status); }; } &&
40166          { ac_try='test -s conftest$ac_exeext'
40167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40168   (eval $ac_try) 2>&5
40169   ac_status=$?
40170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40171   (exit $ac_status); }; }; then
40172   ac_cv_func_fseeko=yes
40173 else
40174   echo "$as_me: failed program was:" >&5
40175 sed 's/^/| /' conftest.$ac_ext >&5
40176
40177 ac_cv_func_fseeko=no
40178 fi
40179 rm -f conftest.err conftest.$ac_objext \
40180       conftest$ac_exeext conftest.$ac_ext
40181 fi
40182 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
40183 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
40184 if test $ac_cv_func_fseeko = yes; then
40185
40186 cat >>confdefs.h <<\_ACEOF
40187 #define HAVE_FSEEKO 1
40188 _ACEOF
40189
40190 fi
40191
40192
40193   echo "$as_me:$LINENO: checking for /proc/uptime" >&5
40194 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
40195 if test "${jm_cv_have_proc_uptime+set}" = set; then
40196   echo $ECHO_N "(cached) $ECHO_C" >&6
40197 else
40198   jm_cv_have_proc_uptime=no
40199     test -f /proc/uptime \
40200       && test "$cross_compiling" = no \
40201       && cat < /proc/uptime >/dev/null 2>/dev/null \
40202       && jm_cv_have_proc_uptime=yes
40203 fi
40204 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
40205 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
40206   if test $jm_cv_have_proc_uptime = yes; then
40207
40208 cat >>confdefs.h <<\_ACEOF
40209 #define HAVE_PROC_UPTIME 1
40210 _ACEOF
40211
40212   fi
40213
40214
40215
40216 for ac_func in ftruncate
40217 do
40218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40219 echo "$as_me:$LINENO: checking for $ac_func" >&5
40220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40221 if eval "test \"\${$as_ac_var+set}\" = set"; then
40222   echo $ECHO_N "(cached) $ECHO_C" >&6
40223 else
40224   cat >conftest.$ac_ext <<_ACEOF
40225 /* confdefs.h.  */
40226 _ACEOF
40227 cat confdefs.h >>conftest.$ac_ext
40228 cat >>conftest.$ac_ext <<_ACEOF
40229 /* end confdefs.h.  */
40230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40232 #define $ac_func innocuous_$ac_func
40233
40234 /* System header to define __stub macros and hopefully few prototypes,
40235     which can conflict with char $ac_func (); below.
40236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40237     <limits.h> exists even on freestanding compilers.  */
40238
40239 #ifdef __STDC__
40240 # include <limits.h>
40241 #else
40242 # include <assert.h>
40243 #endif
40244
40245 #undef $ac_func
40246
40247 /* Override any gcc2 internal prototype to avoid an error.  */
40248 #ifdef __cplusplus
40249 extern "C"
40250 {
40251 #endif
40252 /* We use char because int might match the return type of a gcc2
40253    builtin and then its argument prototype would still apply.  */
40254 char $ac_func ();
40255 /* The GNU C library defines this for functions which it implements
40256     to always fail with ENOSYS.  Some functions are actually named
40257     something starting with __ and the normal name is an alias.  */
40258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40259 choke me
40260 #else
40261 char (*f) () = $ac_func;
40262 #endif
40263 #ifdef __cplusplus
40264 }
40265 #endif
40266
40267 int
40268 main ()
40269 {
40270 return f != $ac_func;
40271   ;
40272   return 0;
40273 }
40274 _ACEOF
40275 rm -f conftest.$ac_objext conftest$ac_exeext
40276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40277   (eval $ac_link) 2>conftest.er1
40278   ac_status=$?
40279   grep -v '^ *+' conftest.er1 >conftest.err
40280   rm -f conftest.er1
40281   cat conftest.err >&5
40282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40283   (exit $ac_status); } &&
40284          { ac_try='test -z "$ac_c_werror_flag"
40285                          || test ! -s conftest.err'
40286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40287   (eval $ac_try) 2>&5
40288   ac_status=$?
40289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40290   (exit $ac_status); }; } &&
40291          { ac_try='test -s conftest$ac_exeext'
40292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40293   (eval $ac_try) 2>&5
40294   ac_status=$?
40295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40296   (exit $ac_status); }; }; then
40297   eval "$as_ac_var=yes"
40298 else
40299   echo "$as_me: failed program was:" >&5
40300 sed 's/^/| /' conftest.$ac_ext >&5
40301
40302 eval "$as_ac_var=no"
40303 fi
40304 rm -f conftest.err conftest.$ac_objext \
40305       conftest$ac_exeext conftest.$ac_ext
40306 fi
40307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40309 if test `eval echo '${'$as_ac_var'}'` = yes; then
40310   cat >>confdefs.h <<_ACEOF
40311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40312 _ACEOF
40313
40314 else
40315   case $LIBOBJS in
40316     "$ac_func.$ac_objext"   | \
40317   *" $ac_func.$ac_objext"   | \
40318     "$ac_func.$ac_objext "* | \
40319   *" $ac_func.$ac_objext "* ) ;;
40320   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
40321 esac
40322
40323 fi
40324 done
40325
40326
40327   if test $ac_cv_func_ftruncate = no; then
40328
40329
40330   :
40331
40332
40333
40334
40335
40336
40337 for ac_func in chsize
40338 do
40339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40340 echo "$as_me:$LINENO: checking for $ac_func" >&5
40341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40342 if eval "test \"\${$as_ac_var+set}\" = set"; then
40343   echo $ECHO_N "(cached) $ECHO_C" >&6
40344 else
40345   cat >conftest.$ac_ext <<_ACEOF
40346 /* confdefs.h.  */
40347 _ACEOF
40348 cat confdefs.h >>conftest.$ac_ext
40349 cat >>conftest.$ac_ext <<_ACEOF
40350 /* end confdefs.h.  */
40351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40353 #define $ac_func innocuous_$ac_func
40354
40355 /* System header to define __stub macros and hopefully few prototypes,
40356     which can conflict with char $ac_func (); below.
40357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40358     <limits.h> exists even on freestanding compilers.  */
40359
40360 #ifdef __STDC__
40361 # include <limits.h>
40362 #else
40363 # include <assert.h>
40364 #endif
40365
40366 #undef $ac_func
40367
40368 /* Override any gcc2 internal prototype to avoid an error.  */
40369 #ifdef __cplusplus
40370 extern "C"
40371 {
40372 #endif
40373 /* We use char because int might match the return type of a gcc2
40374    builtin and then its argument prototype would still apply.  */
40375 char $ac_func ();
40376 /* The GNU C library defines this for functions which it implements
40377     to always fail with ENOSYS.  Some functions are actually named
40378     something starting with __ and the normal name is an alias.  */
40379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40380 choke me
40381 #else
40382 char (*f) () = $ac_func;
40383 #endif
40384 #ifdef __cplusplus
40385 }
40386 #endif
40387
40388 int
40389 main ()
40390 {
40391 return f != $ac_func;
40392   ;
40393   return 0;
40394 }
40395 _ACEOF
40396 rm -f conftest.$ac_objext conftest$ac_exeext
40397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40398   (eval $ac_link) 2>conftest.er1
40399   ac_status=$?
40400   grep -v '^ *+' conftest.er1 >conftest.err
40401   rm -f conftest.er1
40402   cat conftest.err >&5
40403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40404   (exit $ac_status); } &&
40405          { ac_try='test -z "$ac_c_werror_flag"
40406                          || test ! -s conftest.err'
40407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40408   (eval $ac_try) 2>&5
40409   ac_status=$?
40410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40411   (exit $ac_status); }; } &&
40412          { ac_try='test -s conftest$ac_exeext'
40413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40414   (eval $ac_try) 2>&5
40415   ac_status=$?
40416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40417   (exit $ac_status); }; }; then
40418   eval "$as_ac_var=yes"
40419 else
40420   echo "$as_me: failed program was:" >&5
40421 sed 's/^/| /' conftest.$ac_ext >&5
40422
40423 eval "$as_ac_var=no"
40424 fi
40425 rm -f conftest.err conftest.$ac_objext \
40426       conftest$ac_exeext conftest.$ac_ext
40427 fi
40428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40430 if test `eval echo '${'$as_ac_var'}'` = yes; then
40431   cat >>confdefs.h <<_ACEOF
40432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40433 _ACEOF
40434
40435 fi
40436 done
40437
40438
40439   fi
40440
40441
40442   echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
40443 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6
40444 if test "${ac_cv_have_decl_getcwd+set}" = set; then
40445   echo $ECHO_N "(cached) $ECHO_C" >&6
40446 else
40447   cat >conftest.$ac_ext <<_ACEOF
40448 /* confdefs.h.  */
40449 _ACEOF
40450 cat confdefs.h >>conftest.$ac_ext
40451 cat >>conftest.$ac_ext <<_ACEOF
40452 /* end confdefs.h.  */
40453 $ac_includes_default
40454 int
40455 main ()
40456 {
40457 #ifndef getcwd
40458   char *p = (char *) getcwd;
40459 #endif
40460
40461   ;
40462   return 0;
40463 }
40464 _ACEOF
40465 rm -f conftest.$ac_objext
40466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40467   (eval $ac_compile) 2>conftest.er1
40468   ac_status=$?
40469   grep -v '^ *+' conftest.er1 >conftest.err
40470   rm -f conftest.er1
40471   cat conftest.err >&5
40472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40473   (exit $ac_status); } &&
40474          { ac_try='test -z "$ac_c_werror_flag"
40475                          || test ! -s conftest.err'
40476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40477   (eval $ac_try) 2>&5
40478   ac_status=$?
40479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40480   (exit $ac_status); }; } &&
40481          { ac_try='test -s conftest.$ac_objext'
40482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40483   (eval $ac_try) 2>&5
40484   ac_status=$?
40485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40486   (exit $ac_status); }; }; then
40487   ac_cv_have_decl_getcwd=yes
40488 else
40489   echo "$as_me: failed program was:" >&5
40490 sed 's/^/| /' conftest.$ac_ext >&5
40491
40492 ac_cv_have_decl_getcwd=no
40493 fi
40494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40495 fi
40496 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
40497 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6
40498 if test $ac_cv_have_decl_getcwd = yes; then
40499
40500 cat >>confdefs.h <<_ACEOF
40501 #define HAVE_DECL_GETCWD 1
40502 _ACEOF
40503
40504
40505 else
40506   cat >>confdefs.h <<_ACEOF
40507 #define HAVE_DECL_GETCWD 0
40508 _ACEOF
40509
40510
40511 fi
40512
40513
40514   echo "$as_me:$LINENO: checking whether getcwd properly handles paths longer than PATH_MAX" >&5
40515 echo $ECHO_N "checking whether getcwd properly handles paths longer than PATH_MAX... $ECHO_C" >&6
40516 if test "${gl_cv_func_getcwd_vs_path_max+set}" = set; then
40517   echo $ECHO_N "(cached) $ECHO_C" >&6
40518 else
40519
40520   # Arrange for deletion of the temporary directory this test creates.
40521   ac_clean_files="$ac_clean_files confdir3"
40522   if test "$cross_compiling" = yes; then
40523   gl_cv_func_getcwd_vs_path_max=no
40524 else
40525   cat >conftest.$ac_ext <<_ACEOF
40526 /* confdefs.h.  */
40527 _ACEOF
40528 cat confdefs.h >>conftest.$ac_ext
40529 cat >>conftest.$ac_ext <<_ACEOF
40530 /* end confdefs.h.  */
40531
40532 #include <stdlib.h>
40533 #include <unistd.h>
40534 #include <string.h>
40535 #include <limits.h>
40536 #include <sys/stat.h>
40537 #include <sys/types.h>
40538
40539 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
40540 #undef mkdir
40541
40542 #ifndef CHAR_BIT
40543 # define CHAR_BIT 8
40544 #endif
40545
40546 /* The extra casts work around common compiler bugs.  */
40547 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
40548 /* The outer cast is needed to work around a bug in Cray C 5.0.3.0.
40549    It is necessary at least when t == time_t.  */
40550 #define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \
40551                               ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0))
40552 #define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t)))
40553
40554 #ifndef INT_MAX
40555 # define INT_MAX TYPE_MAXIMUM (int)
40556 #endif
40557
40558 /* The length of this name must be 8.  */
40559 #define DIR_NAME "confdir3"
40560
40561 int
40562 main ()
40563 {
40564 #ifndef PATH_MAX
40565   /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
40566      at least not on a local file system.  And if we were to start worrying
40567      about remote file systems, we'd have to enable the wrapper function
40568      all of the time, just to be safe.  That's not worth the cost.  */
40569   exit (0);
40570 #elif INT_MAX - 9 <= PATH_MAX
40571   /* The '9', above, comes from strlen (DIR_NAME) + 1.  */
40572   /* FIXME: Assuming there's a system for which this is true,
40573      this should be done in a compile test.  */
40574   exit (0);
40575 #else
40576   char buf[PATH_MAX + 20];
40577   char *cwd = getcwd (buf, PATH_MAX);
40578   size_t cwd_len;
40579   int fail = 0;
40580   size_t n_chdirs = 0;
40581
40582   if (cwd == NULL)
40583     exit (1);
40584
40585   cwd_len = strlen (cwd);
40586
40587   while (1)
40588     {
40589       char *c;
40590       size_t len;
40591
40592       cwd_len += 1 + strlen (DIR_NAME);
40593       /* If mkdir or chdir fails, be pessimistic and consider that
40594          as a failure, too.  */
40595       if (mkdir (DIR_NAME, 0700) < 0 || chdir (DIR_NAME) < 0)
40596         {
40597           fail = 1;
40598           break;
40599         }
40600       if ((c = getcwd (buf, PATH_MAX)) == NULL)
40601         {
40602           /* This allows any failure to indicate there is no bug.
40603              FIXME: check errno?  */
40604           break;
40605         }
40606       if ((len = strlen (c)) != cwd_len)
40607         {
40608           fail = 1;
40609           break;
40610         }
40611       ++n_chdirs;
40612       if (PATH_MAX < len)
40613         break;
40614     }
40615
40616   /* Leaving behind such a deep directory is not polite.
40617      So clean up here, right away, even though the driving
40618      shell script would also clean up.  */
40619   {
40620     size_t i;
40621
40622     /* Unlink first, in case the chdir failed.  */
40623     unlink (DIR_NAME);
40624     for (i = 0; i <= n_chdirs; i++)
40625       {
40626         if (chdir ("..") < 0)
40627           break;
40628         rmdir (DIR_NAME);
40629       }
40630   }
40631
40632   exit (fail);
40633 #endif
40634 }
40635
40636 _ACEOF
40637 rm -f conftest$ac_exeext
40638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40639   (eval $ac_link) 2>&5
40640   ac_status=$?
40641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40642   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40644   (eval $ac_try) 2>&5
40645   ac_status=$?
40646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40647   (exit $ac_status); }; }; then
40648   gl_cv_func_getcwd_vs_path_max=yes
40649 else
40650   echo "$as_me: program exited with status $ac_status" >&5
40651 echo "$as_me: failed program was:" >&5
40652 sed 's/^/| /' conftest.$ac_ext >&5
40653
40654 ( exit $ac_status )
40655 gl_cv_func_getcwd_vs_path_max=no
40656 fi
40657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40658 fi
40659 fi
40660 echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_vs_path_max" >&5
40661 echo "${ECHO_T}$gl_cv_func_getcwd_vs_path_max" >&6
40662
40663   if test $gl_cv_func_getcwd_vs_path_max = yes; then
40664     case $LIBOBJS in
40665     "getcwd.$ac_objext"   | \
40666   *" getcwd.$ac_objext"   | \
40667     "getcwd.$ac_objext "* | \
40668   *" getcwd.$ac_objext "* ) ;;
40669   *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" ;;
40670 esac
40671
40672
40673 cat >>confdefs.h <<\_ACEOF
40674 #define getcwd rpl_getcwd
40675 _ACEOF
40676
40677   fi
40678
40679
40680 echo "$as_me:$LINENO: checking for working readdir" >&5
40681 echo $ECHO_N "checking for working readdir... $ECHO_C" >&6
40682 if test "${gl_cv_func_working_readdir+set}" = set; then
40683   echo $ECHO_N "(cached) $ECHO_C" >&6
40684 else
40685     # Arrange for deletion of the temporary directory this test creates, in
40686   # case the test itself fails to delete everything -- as happens on Sunos.
40687   ac_clean_files="$ac_clean_files conf-dir"
40688
40689   if test "$cross_compiling" = yes; then
40690   gl_cv_func_working_readdir=no
40691 else
40692   cat >conftest.$ac_ext <<_ACEOF
40693 /* confdefs.h.  */
40694 _ACEOF
40695 cat confdefs.h >>conftest.$ac_ext
40696 cat >>conftest.$ac_ext <<_ACEOF
40697 /* end confdefs.h.  */
40698 #   include <stdio.h>
40699 #   include <sys/types.h>
40700 #   include <string.h>
40701
40702 #   ifdef HAVE_DIRENT_H
40703 #    include <dirent.h>
40704 #    define NLENGTH(direct) (strlen((direct)->d_name))
40705 #   else /* not HAVE_DIRENT_H */
40706 #    define dirent direct
40707 #    define NLENGTH(direct) ((direct)->d_namlen)
40708 #    ifdef HAVE_SYS_NDIR_H
40709 #     include <sys/ndir.h>
40710 #    endif /* HAVE_SYS_NDIR_H */
40711 #    ifdef HAVE_SYS_DIR_H
40712 #     include <sys/dir.h>
40713 #    endif /* HAVE_SYS_DIR_H */
40714 #    ifdef HAVE_NDIR_H
40715 #     include <ndir.h>
40716 #    endif /* HAVE_NDIR_H */
40717 #   endif /* HAVE_DIRENT_H */
40718
40719 #   define DOT_OR_DOTDOT(Basename) \
40720      (Basename[0] == '.' && (Basename[1] == '\0' \
40721                              || (Basename[1] == '.' && Basename[2] == '\0')))
40722
40723 /* Don't try to use replacement mkdir; it wouldn't resolve at link time.  */
40724 #   undef mkdir
40725
40726     static void
40727     create_N_file_dir (const char *dir, size_t n_files)
40728     {
40729       unsigned int i;
40730
40731       if (mkdir (dir, 0700))
40732         abort ();
40733       if (chdir (dir))
40734         abort ();
40735
40736       for (i = 0; i < n_files; i++)
40737         {
40738           char file_name[4];
40739           FILE *out;
40740
40741           sprintf (file_name, "%03d", i);
40742           out = fopen (file_name, "w");
40743           if (!out)
40744             abort ();
40745           if (fclose (out) == EOF)
40746             abort ();
40747         }
40748
40749       if (chdir (".."))
40750         abort ();
40751     }
40752
40753     static void
40754     remove_dir (const char *dir)
40755     {
40756       DIR *dirp;
40757
40758       if (chdir (dir))
40759         abort ();
40760
40761       dirp = opendir (".");
40762       if (dirp == NULL)
40763         abort ();
40764
40765       while (1)
40766         {
40767           struct dirent *dp = readdir (dirp);
40768           if (dp == NULL)
40769             break;
40770
40771           if (DOT_OR_DOTDOT (dp->d_name))
40772             continue;
40773
40774           if (unlink (dp->d_name))
40775             abort ();
40776         }
40777       closedir (dirp);
40778
40779       if (chdir (".."))
40780         abort ();
40781
40782       if (rmdir (dir))
40783         exit (1);
40784     }
40785
40786     int
40787     main ()
40788     {
40789       const char *dir = "conf-dir";
40790       create_N_file_dir (dir, 500);
40791       remove_dir (dir);
40792       exit (0);
40793     }
40794 _ACEOF
40795 rm -f conftest$ac_exeext
40796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40797   (eval $ac_link) 2>&5
40798   ac_status=$?
40799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40802   (eval $ac_try) 2>&5
40803   ac_status=$?
40804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40805   (exit $ac_status); }; }; then
40806   gl_cv_func_working_readdir=yes
40807 else
40808   echo "$as_me: program exited with status $ac_status" >&5
40809 echo "$as_me: failed program was:" >&5
40810 sed 's/^/| /' conftest.$ac_ext >&5
40811
40812 ( exit $ac_status )
40813 gl_cv_func_working_readdir=no
40814 fi
40815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40816 fi
40817 fi
40818 echo "$as_me:$LINENO: result: $gl_cv_func_working_readdir" >&5
40819 echo "${ECHO_T}$gl_cv_func_working_readdir" >&6
40820
40821   if test $gl_cv_func_working_readdir = yes; then
40822
40823 cat >>confdefs.h <<\_ACEOF
40824 #define HAVE_WORKING_READDIR 1
40825 _ACEOF
40826
40827   fi
40828
40829
40830       if test "X$prefix" = "XNONE"; then
40831     acl_final_prefix="$ac_default_prefix"
40832   else
40833     acl_final_prefix="$prefix"
40834   fi
40835   if test "X$exec_prefix" = "XNONE"; then
40836     acl_final_exec_prefix='${prefix}'
40837   else
40838     acl_final_exec_prefix="$exec_prefix"
40839   fi
40840   acl_save_prefix="$prefix"
40841   prefix="$acl_final_prefix"
40842   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
40843   prefix="$acl_save_prefix"
40844
40845
40846 # Check whether --with-gnu-ld or --without-gnu-ld was given.
40847 if test "${with_gnu_ld+set}" = set; then
40848   withval="$with_gnu_ld"
40849   test "$withval" = no || with_gnu_ld=yes
40850 else
40851   with_gnu_ld=no
40852 fi;
40853 # Prepare PATH_SEPARATOR.
40854 # The user is always right.
40855 if test "${PATH_SEPARATOR+set}" != set; then
40856   echo "#! /bin/sh" >conf$$.sh
40857   echo  "exit 0"   >>conf$$.sh
40858   chmod +x conf$$.sh
40859   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40860     PATH_SEPARATOR=';'
40861   else
40862     PATH_SEPARATOR=:
40863   fi
40864   rm -f conf$$.sh
40865 fi
40866 ac_prog=ld
40867 if test "$GCC" = yes; then
40868   # Check if gcc -print-prog-name=ld gives a path.
40869   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
40870 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
40871   case $host in
40872   *-*-mingw*)
40873     # gcc leaves a trailing carriage return which upsets mingw
40874     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
40875   *)
40876     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
40877   esac
40878   case $ac_prog in
40879     # Accept absolute paths.
40880     [\\/]* | [A-Za-z]:[\\/]*)
40881       re_direlt='/[^/][^/]*/\.\./'
40882       # Canonicalize the path of ld
40883       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
40884       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
40885         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
40886       done
40887       test -z "$LD" && LD="$ac_prog"
40888       ;;
40889   "")
40890     # If it fails, then pretend we aren't using GCC.
40891     ac_prog=ld
40892     ;;
40893   *)
40894     # If it is relative, then search for the first ld in PATH.
40895     with_gnu_ld=unknown
40896     ;;
40897   esac
40898 elif test "$with_gnu_ld" = yes; then
40899   echo "$as_me:$LINENO: checking for GNU ld" >&5
40900 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
40901 else
40902   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
40903 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
40904 fi
40905 if test "${acl_cv_path_LD+set}" = set; then
40906   echo $ECHO_N "(cached) $ECHO_C" >&6
40907 else
40908   if test -z "$LD"; then
40909   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
40910   for ac_dir in $PATH; do
40911     test -z "$ac_dir" && ac_dir=.
40912     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
40913       acl_cv_path_LD="$ac_dir/$ac_prog"
40914       # Check to see if the program is GNU ld.  I'd rather use --version,
40915       # but apparently some GNU ld's only accept -v.
40916       # Break only if it was the GNU/non-GNU ld that we prefer.
40917       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
40918       *GNU* | *'with BFD'*)
40919         test "$with_gnu_ld" != no && break ;;
40920       *)
40921         test "$with_gnu_ld" != yes && break ;;
40922       esac
40923     fi
40924   done
40925   IFS="$ac_save_ifs"
40926 else
40927   acl_cv_path_LD="$LD" # Let the user override the test with a path.
40928 fi
40929 fi
40930
40931 LD="$acl_cv_path_LD"
40932 if test -n "$LD"; then
40933   echo "$as_me:$LINENO: result: $LD" >&5
40934 echo "${ECHO_T}$LD" >&6
40935 else
40936   echo "$as_me:$LINENO: result: no" >&5
40937 echo "${ECHO_T}no" >&6
40938 fi
40939 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
40940 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
40941    { (exit 1); exit 1; }; }
40942 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
40943 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
40944 if test "${acl_cv_prog_gnu_ld+set}" = set; then
40945   echo $ECHO_N "(cached) $ECHO_C" >&6
40946 else
40947   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
40948 case `$LD -v 2>&1 </dev/null` in
40949 *GNU* | *'with BFD'*)
40950   acl_cv_prog_gnu_ld=yes ;;
40951 *)
40952   acl_cv_prog_gnu_ld=no ;;
40953 esac
40954 fi
40955 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
40956 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
40957 with_gnu_ld=$acl_cv_prog_gnu_ld
40958
40959
40960
40961                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
40962 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
40963 if test "${acl_cv_rpath+set}" = set; then
40964   echo $ECHO_N "(cached) $ECHO_C" >&6
40965 else
40966
40967     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
40968     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
40969     . ./conftest.sh
40970     rm -f ./conftest.sh
40971     acl_cv_rpath=done
40972
40973 fi
40974 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
40975 echo "${ECHO_T}$acl_cv_rpath" >&6
40976   wl="$acl_cv_wl"
40977   libext="$acl_cv_libext"
40978   shlibext="$acl_cv_shlibext"
40979   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
40980   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
40981   hardcode_direct="$acl_cv_hardcode_direct"
40982   hardcode_minus_L="$acl_cv_hardcode_minus_L"
40983     # Check whether --enable-rpath or --disable-rpath was given.
40984 if test "${enable_rpath+set}" = set; then
40985   enableval="$enable_rpath"
40986   :
40987 else
40988   enable_rpath=yes
40989 fi;
40990
40991
40992
40993
40994
40995
40996
40997     use_additional=yes
40998
40999   acl_save_prefix="$prefix"
41000   prefix="$acl_final_prefix"
41001   acl_save_exec_prefix="$exec_prefix"
41002   exec_prefix="$acl_final_exec_prefix"
41003
41004     eval additional_includedir=\"$includedir\"
41005     eval additional_libdir=\"$libdir\"
41006
41007   exec_prefix="$acl_save_exec_prefix"
41008   prefix="$acl_save_prefix"
41009
41010
41011 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
41012 if test "${with_libiconv_prefix+set}" = set; then
41013   withval="$with_libiconv_prefix"
41014
41015     if test "X$withval" = "Xno"; then
41016       use_additional=no
41017     else
41018       if test "X$withval" = "X"; then
41019
41020   acl_save_prefix="$prefix"
41021   prefix="$acl_final_prefix"
41022   acl_save_exec_prefix="$exec_prefix"
41023   exec_prefix="$acl_final_exec_prefix"
41024
41025           eval additional_includedir=\"$includedir\"
41026           eval additional_libdir=\"$libdir\"
41027
41028   exec_prefix="$acl_save_exec_prefix"
41029   prefix="$acl_save_prefix"
41030
41031       else
41032         additional_includedir="$withval/include"
41033         additional_libdir="$withval/lib"
41034       fi
41035     fi
41036
41037 fi;
41038       LIBICONV=
41039   LTLIBICONV=
41040   INCICONV=
41041   rpathdirs=
41042   ltrpathdirs=
41043   names_already_handled=
41044   names_next_round='iconv '
41045   while test -n "$names_next_round"; do
41046     names_this_round="$names_next_round"
41047     names_next_round=
41048     for name in $names_this_round; do
41049       already_handled=
41050       for n in $names_already_handled; do
41051         if test "$n" = "$name"; then
41052           already_handled=yes
41053           break
41054         fi
41055       done
41056       if test -z "$already_handled"; then
41057         names_already_handled="$names_already_handled $name"
41058                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
41059         eval value=\"\$HAVE_LIB$uppername\"
41060         if test -n "$value"; then
41061           if test "$value" = yes; then
41062             eval value=\"\$LIB$uppername\"
41063             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
41064             eval value=\"\$LTLIB$uppername\"
41065             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
41066           else
41067                                     :
41068           fi
41069         else
41070                               found_dir=
41071           found_la=
41072           found_so=
41073           found_a=
41074           if test $use_additional = yes; then
41075             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
41076               found_dir="$additional_libdir"
41077               found_so="$additional_libdir/lib$name.$shlibext"
41078               if test -f "$additional_libdir/lib$name.la"; then
41079                 found_la="$additional_libdir/lib$name.la"
41080               fi
41081             else
41082               if test -f "$additional_libdir/lib$name.$libext"; then
41083                 found_dir="$additional_libdir"
41084                 found_a="$additional_libdir/lib$name.$libext"
41085                 if test -f "$additional_libdir/lib$name.la"; then
41086                   found_la="$additional_libdir/lib$name.la"
41087                 fi
41088               fi
41089             fi
41090           fi
41091           if test "X$found_dir" = "X"; then
41092             for x in $LDFLAGS $LTLIBICONV; do
41093
41094   acl_save_prefix="$prefix"
41095   prefix="$acl_final_prefix"
41096   acl_save_exec_prefix="$exec_prefix"
41097   exec_prefix="$acl_final_exec_prefix"
41098   eval x=\"$x\"
41099   exec_prefix="$acl_save_exec_prefix"
41100   prefix="$acl_save_prefix"
41101
41102               case "$x" in
41103                 -L*)
41104                   dir=`echo "X$x" | sed -e 's/^X-L//'`
41105                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
41106                     found_dir="$dir"
41107                     found_so="$dir/lib$name.$shlibext"
41108                     if test -f "$dir/lib$name.la"; then
41109                       found_la="$dir/lib$name.la"
41110                     fi
41111                   else
41112                     if test -f "$dir/lib$name.$libext"; then
41113                       found_dir="$dir"
41114                       found_a="$dir/lib$name.$libext"
41115                       if test -f "$dir/lib$name.la"; then
41116                         found_la="$dir/lib$name.la"
41117                       fi
41118                     fi
41119                   fi
41120                   ;;
41121               esac
41122               if test "X$found_dir" != "X"; then
41123                 break
41124               fi
41125             done
41126           fi
41127           if test "X$found_dir" != "X"; then
41128                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
41129             if test "X$found_so" != "X"; then
41130                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
41131                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
41132               else
41133                                                                                 haveit=
41134                 for x in $ltrpathdirs; do
41135                   if test "X$x" = "X$found_dir"; then
41136                     haveit=yes
41137                     break
41138                   fi
41139                 done
41140                 if test -z "$haveit"; then
41141                   ltrpathdirs="$ltrpathdirs $found_dir"
41142                 fi
41143                                 if test "$hardcode_direct" = yes; then
41144                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
41145                 else
41146                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
41147                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
41148                                                             haveit=
41149                     for x in $rpathdirs; do
41150                       if test "X$x" = "X$found_dir"; then
41151                         haveit=yes
41152                         break
41153                       fi
41154                     done
41155                     if test -z "$haveit"; then
41156                       rpathdirs="$rpathdirs $found_dir"
41157                     fi
41158                   else
41159                                                                                 haveit=
41160                     for x in $LDFLAGS $LIBICONV; do
41161
41162   acl_save_prefix="$prefix"
41163   prefix="$acl_final_prefix"
41164   acl_save_exec_prefix="$exec_prefix"
41165   exec_prefix="$acl_final_exec_prefix"
41166   eval x=\"$x\"
41167   exec_prefix="$acl_save_exec_prefix"
41168   prefix="$acl_save_prefix"
41169
41170                       if test "X$x" = "X-L$found_dir"; then
41171                         haveit=yes
41172                         break
41173                       fi
41174                     done
41175                     if test -z "$haveit"; then
41176                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
41177                     fi
41178                     if test "$hardcode_minus_L" != no; then
41179                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
41180                     else
41181                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
41182                     fi
41183                   fi
41184                 fi
41185               fi
41186             else
41187               if test "X$found_a" != "X"; then
41188                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
41189               else
41190                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
41191               fi
41192             fi
41193                         additional_includedir=
41194             case "$found_dir" in
41195               */lib | */lib/)
41196                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
41197                 additional_includedir="$basedir/include"
41198                 ;;
41199             esac
41200             if test "X$additional_includedir" != "X"; then
41201                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
41202                 haveit=
41203                 if test "X$additional_includedir" = "X/usr/local/include"; then
41204                   if test -n "$GCC"; then
41205                     case $host_os in
41206                       linux*) haveit=yes;;
41207                     esac
41208                   fi
41209                 fi
41210                 if test -z "$haveit"; then
41211                   for x in $CPPFLAGS $INCICONV; do
41212
41213   acl_save_prefix="$prefix"
41214   prefix="$acl_final_prefix"
41215   acl_save_exec_prefix="$exec_prefix"
41216   exec_prefix="$acl_final_exec_prefix"
41217   eval x=\"$x\"
41218   exec_prefix="$acl_save_exec_prefix"
41219   prefix="$acl_save_prefix"
41220
41221                     if test "X$x" = "X-I$additional_includedir"; then
41222                       haveit=yes
41223                       break
41224                     fi
41225                   done
41226                   if test -z "$haveit"; then
41227                     if test -d "$additional_includedir"; then
41228                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
41229                     fi
41230                   fi
41231                 fi
41232               fi
41233             fi
41234                         if test -n "$found_la"; then
41235                                                         save_libdir="$libdir"
41236               case "$found_la" in
41237                 */* | *\\*) . "$found_la" ;;
41238                 *) . "./$found_la" ;;
41239               esac
41240               libdir="$save_libdir"
41241                             for dep in $dependency_libs; do
41242                 case "$dep" in
41243                   -L*)
41244                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
41245                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
41246                       haveit=
41247                       if test "X$additional_libdir" = "X/usr/local/lib"; then
41248                         if test -n "$GCC"; then
41249                           case $host_os in
41250                             linux*) haveit=yes;;
41251                           esac
41252                         fi
41253                       fi
41254                       if test -z "$haveit"; then
41255                         haveit=
41256                         for x in $LDFLAGS $LIBICONV; do
41257
41258   acl_save_prefix="$prefix"
41259   prefix="$acl_final_prefix"
41260   acl_save_exec_prefix="$exec_prefix"
41261   exec_prefix="$acl_final_exec_prefix"
41262   eval x=\"$x\"
41263   exec_prefix="$acl_save_exec_prefix"
41264   prefix="$acl_save_prefix"
41265
41266                           if test "X$x" = "X-L$additional_libdir"; then
41267                             haveit=yes
41268                             break
41269                           fi
41270                         done
41271                         if test -z "$haveit"; then
41272                           if test -d "$additional_libdir"; then
41273                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
41274                           fi
41275                         fi
41276                         haveit=
41277                         for x in $LDFLAGS $LTLIBICONV; do
41278
41279   acl_save_prefix="$prefix"
41280   prefix="$acl_final_prefix"
41281   acl_save_exec_prefix="$exec_prefix"
41282   exec_prefix="$acl_final_exec_prefix"
41283   eval x=\"$x\"
41284   exec_prefix="$acl_save_exec_prefix"
41285   prefix="$acl_save_prefix"
41286
41287                           if test "X$x" = "X-L$additional_libdir"; then
41288                             haveit=yes
41289                             break
41290                           fi
41291                         done
41292                         if test -z "$haveit"; then
41293                           if test -d "$additional_libdir"; then
41294                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
41295                           fi
41296                         fi
41297                       fi
41298                     fi
41299                     ;;
41300                   -R*)
41301                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
41302                     if test "$enable_rpath" != no; then
41303                                                                   haveit=
41304                       for x in $rpathdirs; do
41305                         if test "X$x" = "X$dir"; then
41306                           haveit=yes
41307                           break
41308                         fi
41309                       done
41310                       if test -z "$haveit"; then
41311                         rpathdirs="$rpathdirs $dir"
41312                       fi
41313                                                                   haveit=
41314                       for x in $ltrpathdirs; do
41315                         if test "X$x" = "X$dir"; then
41316                           haveit=yes
41317                           break
41318                         fi
41319                       done
41320                       if test -z "$haveit"; then
41321                         ltrpathdirs="$ltrpathdirs $dir"
41322                       fi
41323                     fi
41324                     ;;
41325                   -l*)
41326                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
41327                     ;;
41328                   *.la)
41329                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
41330                     ;;
41331                   *)
41332                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
41333                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
41334                     ;;
41335                 esac
41336               done
41337             fi
41338           else
41339                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
41340             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
41341           fi
41342         fi
41343       fi
41344     done
41345   done
41346   if test "X$rpathdirs" != "X"; then
41347     if test -n "$hardcode_libdir_separator"; then
41348                         alldirs=
41349       for found_dir in $rpathdirs; do
41350         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
41351       done
41352             acl_save_libdir="$libdir"
41353       libdir="$alldirs"
41354       eval flag=\"$hardcode_libdir_flag_spec\"
41355       libdir="$acl_save_libdir"
41356       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
41357     else
41358             for found_dir in $rpathdirs; do
41359         acl_save_libdir="$libdir"
41360         libdir="$found_dir"
41361         eval flag=\"$hardcode_libdir_flag_spec\"
41362         libdir="$acl_save_libdir"
41363         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
41364       done
41365     fi
41366   fi
41367   if test "X$ltrpathdirs" != "X"; then
41368             for found_dir in $ltrpathdirs; do
41369       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
41370     done
41371   fi
41372
41373
41374
41375
41376
41377
41378
41379 for ac_header in string.h sys/param.h stddef.h
41380 do
41381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41383   echo "$as_me:$LINENO: checking for $ac_header" >&5
41384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41386   echo $ECHO_N "(cached) $ECHO_C" >&6
41387 fi
41388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41390 else
41391   # Is the header compilable?
41392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41394 cat >conftest.$ac_ext <<_ACEOF
41395 /* confdefs.h.  */
41396 _ACEOF
41397 cat confdefs.h >>conftest.$ac_ext
41398 cat >>conftest.$ac_ext <<_ACEOF
41399 /* end confdefs.h.  */
41400 $ac_includes_default
41401 #include <$ac_header>
41402 _ACEOF
41403 rm -f conftest.$ac_objext
41404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41405   (eval $ac_compile) 2>conftest.er1
41406   ac_status=$?
41407   grep -v '^ *+' conftest.er1 >conftest.err
41408   rm -f conftest.er1
41409   cat conftest.err >&5
41410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41411   (exit $ac_status); } &&
41412          { ac_try='test -z "$ac_c_werror_flag"
41413                          || test ! -s conftest.err'
41414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41415   (eval $ac_try) 2>&5
41416   ac_status=$?
41417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41418   (exit $ac_status); }; } &&
41419          { ac_try='test -s conftest.$ac_objext'
41420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41421   (eval $ac_try) 2>&5
41422   ac_status=$?
41423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41424   (exit $ac_status); }; }; then
41425   ac_header_compiler=yes
41426 else
41427   echo "$as_me: failed program was:" >&5
41428 sed 's/^/| /' conftest.$ac_ext >&5
41429
41430 ac_header_compiler=no
41431 fi
41432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41434 echo "${ECHO_T}$ac_header_compiler" >&6
41435
41436 # Is the header present?
41437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41439 cat >conftest.$ac_ext <<_ACEOF
41440 /* confdefs.h.  */
41441 _ACEOF
41442 cat confdefs.h >>conftest.$ac_ext
41443 cat >>conftest.$ac_ext <<_ACEOF
41444 /* end confdefs.h.  */
41445 #include <$ac_header>
41446 _ACEOF
41447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41448   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41449   ac_status=$?
41450   grep -v '^ *+' conftest.er1 >conftest.err
41451   rm -f conftest.er1
41452   cat conftest.err >&5
41453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41454   (exit $ac_status); } >/dev/null; then
41455   if test -s conftest.err; then
41456     ac_cpp_err=$ac_c_preproc_warn_flag
41457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41458   else
41459     ac_cpp_err=
41460   fi
41461 else
41462   ac_cpp_err=yes
41463 fi
41464 if test -z "$ac_cpp_err"; then
41465   ac_header_preproc=yes
41466 else
41467   echo "$as_me: failed program was:" >&5
41468 sed 's/^/| /' conftest.$ac_ext >&5
41469
41470   ac_header_preproc=no
41471 fi
41472 rm -f conftest.err conftest.$ac_ext
41473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41474 echo "${ECHO_T}$ac_header_preproc" >&6
41475
41476 # So?  What about this header?
41477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41478   yes:no: )
41479     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41483     ac_header_preproc=yes
41484     ;;
41485   no:yes:* )
41486     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41488     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41489 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41490     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41492     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41493 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41496     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41498     (
41499       cat <<\_ASBOX
41500 ## ------------------------------------ ##
41501 ## Report this to bug-coreutils@gnu.org ##
41502 ## ------------------------------------ ##
41503 _ASBOX
41504     ) |
41505       sed "s/^/$as_me: WARNING:     /" >&2
41506     ;;
41507 esac
41508 echo "$as_me:$LINENO: checking for $ac_header" >&5
41509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41511   echo $ECHO_N "(cached) $ECHO_C" >&6
41512 else
41513   eval "$as_ac_Header=\$ac_header_preproc"
41514 fi
41515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41517
41518 fi
41519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41520   cat >>confdefs.h <<_ACEOF
41521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41522 _ACEOF
41523
41524 fi
41525
41526 done
41527
41528
41529 for ac_func in resolvepath
41530 do
41531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41532 echo "$as_me:$LINENO: checking for $ac_func" >&5
41533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41534 if eval "test \"\${$as_ac_var+set}\" = set"; then
41535   echo $ECHO_N "(cached) $ECHO_C" >&6
41536 else
41537   cat >conftest.$ac_ext <<_ACEOF
41538 /* confdefs.h.  */
41539 _ACEOF
41540 cat confdefs.h >>conftest.$ac_ext
41541 cat >>conftest.$ac_ext <<_ACEOF
41542 /* end confdefs.h.  */
41543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41545 #define $ac_func innocuous_$ac_func
41546
41547 /* System header to define __stub macros and hopefully few prototypes,
41548     which can conflict with char $ac_func (); below.
41549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41550     <limits.h> exists even on freestanding compilers.  */
41551
41552 #ifdef __STDC__
41553 # include <limits.h>
41554 #else
41555 # include <assert.h>
41556 #endif
41557
41558 #undef $ac_func
41559
41560 /* Override any gcc2 internal prototype to avoid an error.  */
41561 #ifdef __cplusplus
41562 extern "C"
41563 {
41564 #endif
41565 /* We use char because int might match the return type of a gcc2
41566    builtin and then its argument prototype would still apply.  */
41567 char $ac_func ();
41568 /* The GNU C library defines this for functions which it implements
41569     to always fail with ENOSYS.  Some functions are actually named
41570     something starting with __ and the normal name is an alias.  */
41571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41572 choke me
41573 #else
41574 char (*f) () = $ac_func;
41575 #endif
41576 #ifdef __cplusplus
41577 }
41578 #endif
41579
41580 int
41581 main ()
41582 {
41583 return f != $ac_func;
41584   ;
41585   return 0;
41586 }
41587 _ACEOF
41588 rm -f conftest.$ac_objext conftest$ac_exeext
41589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41590   (eval $ac_link) 2>conftest.er1
41591   ac_status=$?
41592   grep -v '^ *+' conftest.er1 >conftest.err
41593   rm -f conftest.er1
41594   cat conftest.err >&5
41595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41596   (exit $ac_status); } &&
41597          { ac_try='test -z "$ac_c_werror_flag"
41598                          || test ! -s conftest.err'
41599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41600   (eval $ac_try) 2>&5
41601   ac_status=$?
41602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41603   (exit $ac_status); }; } &&
41604          { ac_try='test -s conftest$ac_exeext'
41605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41606   (eval $ac_try) 2>&5
41607   ac_status=$?
41608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41609   (exit $ac_status); }; }; then
41610   eval "$as_ac_var=yes"
41611 else
41612   echo "$as_me: failed program was:" >&5
41613 sed 's/^/| /' conftest.$ac_ext >&5
41614
41615 eval "$as_ac_var=no"
41616 fi
41617 rm -f conftest.err conftest.$ac_objext \
41618       conftest$ac_exeext conftest.$ac_ext
41619 fi
41620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41622 if test `eval echo '${'$as_ac_var'}'` = yes; then
41623   cat >>confdefs.h <<_ACEOF
41624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41625 _ACEOF
41626
41627 fi
41628 done
41629
41630
41631
41632     # This would simply be AC_REPLACE_FUNC([canonicalize_file_name])
41633     # if the function name weren't so long.  Besides, I would rather
41634     # not have underscores in file names.
41635     echo "$as_me:$LINENO: checking for canonicalize_file_name" >&5
41636 echo $ECHO_N "checking for canonicalize_file_name... $ECHO_C" >&6
41637 if test "${ac_cv_func_canonicalize_file_name+set}" = set; then
41638   echo $ECHO_N "(cached) $ECHO_C" >&6
41639 else
41640   cat >conftest.$ac_ext <<_ACEOF
41641 /* confdefs.h.  */
41642 _ACEOF
41643 cat confdefs.h >>conftest.$ac_ext
41644 cat >>conftest.$ac_ext <<_ACEOF
41645 /* end confdefs.h.  */
41646 /* Define canonicalize_file_name to an innocuous variant, in case <limits.h> declares canonicalize_file_name.
41647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41648 #define canonicalize_file_name innocuous_canonicalize_file_name
41649
41650 /* System header to define __stub macros and hopefully few prototypes,
41651     which can conflict with char canonicalize_file_name (); below.
41652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41653     <limits.h> exists even on freestanding compilers.  */
41654
41655 #ifdef __STDC__
41656 # include <limits.h>
41657 #else
41658 # include <assert.h>
41659 #endif
41660
41661 #undef canonicalize_file_name
41662
41663 /* Override any gcc2 internal prototype to avoid an error.  */
41664 #ifdef __cplusplus
41665 extern "C"
41666 {
41667 #endif
41668 /* We use char because int might match the return type of a gcc2
41669    builtin and then its argument prototype would still apply.  */
41670 char canonicalize_file_name ();
41671 /* The GNU C library defines this for functions which it implements
41672     to always fail with ENOSYS.  Some functions are actually named
41673     something starting with __ and the normal name is an alias.  */
41674 #if defined (__stub_canonicalize_file_name) || defined (__stub___canonicalize_file_name)
41675 choke me
41676 #else
41677 char (*f) () = canonicalize_file_name;
41678 #endif
41679 #ifdef __cplusplus
41680 }
41681 #endif
41682
41683 int
41684 main ()
41685 {
41686 return f != canonicalize_file_name;
41687   ;
41688   return 0;
41689 }
41690 _ACEOF
41691 rm -f conftest.$ac_objext conftest$ac_exeext
41692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41693   (eval $ac_link) 2>conftest.er1
41694   ac_status=$?
41695   grep -v '^ *+' conftest.er1 >conftest.err
41696   rm -f conftest.er1
41697   cat conftest.err >&5
41698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41699   (exit $ac_status); } &&
41700          { ac_try='test -z "$ac_c_werror_flag"
41701                          || test ! -s conftest.err'
41702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41703   (eval $ac_try) 2>&5
41704   ac_status=$?
41705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41706   (exit $ac_status); }; } &&
41707          { ac_try='test -s conftest$ac_exeext'
41708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41709   (eval $ac_try) 2>&5
41710   ac_status=$?
41711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41712   (exit $ac_status); }; }; then
41713   ac_cv_func_canonicalize_file_name=yes
41714 else
41715   echo "$as_me: failed program was:" >&5
41716 sed 's/^/| /' conftest.$ac_ext >&5
41717
41718 ac_cv_func_canonicalize_file_name=no
41719 fi
41720 rm -f conftest.err conftest.$ac_objext \
41721       conftest$ac_exeext conftest.$ac_ext
41722 fi
41723 echo "$as_me:$LINENO: result: $ac_cv_func_canonicalize_file_name" >&5
41724 echo "${ECHO_T}$ac_cv_func_canonicalize_file_name" >&6
41725 if test $ac_cv_func_canonicalize_file_name = yes; then
41726   :
41727 else
41728   case $LIBOBJS in
41729     "canonicalize.$ac_objext"   | \
41730   *" canonicalize.$ac_objext"   | \
41731     "canonicalize.$ac_objext "* | \
41732   *" canonicalize.$ac_objext "* ) ;;
41733   *) LIBOBJS="$LIBOBJS canonicalize.$ac_objext" ;;
41734 esac
41735
41736 fi
41737
41738
41739
41740
41741   :
41742
41743
41744
41745
41746
41747   echo "$as_me:$LINENO: checking whether free (NULL) is known to work" >&5
41748 echo $ECHO_N "checking whether free (NULL) is known to work... $ECHO_C" >&6
41749 if test "${gl_cv_func_free+set}" = set; then
41750   echo $ECHO_N "(cached) $ECHO_C" >&6
41751 else
41752   cat >conftest.$ac_ext <<_ACEOF
41753 /* confdefs.h.  */
41754 _ACEOF
41755 cat confdefs.h >>conftest.$ac_ext
41756 cat >>conftest.$ac_ext <<_ACEOF
41757 /* end confdefs.h.  */
41758 #if HAVE_UNISTD_H
41759               #include <unistd.h>
41760             #endif
41761 int
41762 main ()
41763 {
41764 #if _POSIX_VERSION < 199009L && \
41765                 (defined unix || defined _unix || defined _unix_ \
41766                  || defined __unix || defined __unix__)
41767               #error "'free (NULL)' is not known to work"
41768             #endif
41769   ;
41770   return 0;
41771 }
41772 _ACEOF
41773 rm -f conftest.$ac_objext
41774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41775   (eval $ac_compile) 2>conftest.er1
41776   ac_status=$?
41777   grep -v '^ *+' conftest.er1 >conftest.err
41778   rm -f conftest.er1
41779   cat conftest.err >&5
41780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41781   (exit $ac_status); } &&
41782          { ac_try='test -z "$ac_c_werror_flag"
41783                          || test ! -s conftest.err'
41784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41785   (eval $ac_try) 2>&5
41786   ac_status=$?
41787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41788   (exit $ac_status); }; } &&
41789          { ac_try='test -s conftest.$ac_objext'
41790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41791   (eval $ac_try) 2>&5
41792   ac_status=$?
41793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41794   (exit $ac_status); }; }; then
41795   gl_cv_func_free=yes
41796 else
41797   echo "$as_me: failed program was:" >&5
41798 sed 's/^/| /' conftest.$ac_ext >&5
41799
41800 gl_cv_func_free=no
41801 fi
41802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41803 fi
41804 echo "$as_me:$LINENO: result: $gl_cv_func_free" >&5
41805 echo "${ECHO_T}$gl_cv_func_free" >&6
41806
41807   if test $gl_cv_func_free = yes; then
41808     case $LIBOBJS in
41809     "free.$ac_objext"   | \
41810   *" free.$ac_objext"   | \
41811     "free.$ac_objext "* | \
41812   *" free.$ac_objext "* ) ;;
41813   *) LIBOBJS="$LIBOBJS free.$ac_objext" ;;
41814 esac
41815
41816
41817 cat >>confdefs.h <<\_ACEOF
41818 #define free rpl_free
41819 _ACEOF
41820
41821   fi
41822
41823
41824
41825
41826   GNU_PACKAGE="GNU $PACKAGE"
41827
41828 cat >>confdefs.h <<_ACEOF
41829 #define GNU_PACKAGE "$GNU_PACKAGE"
41830 _ACEOF
41831
41832
41833
41834
41835 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
41836
41837
41838
41839
41840
41841
41842
41843
41844
41845
41846
41847
41848
41849
41850
41851
41852
41853
41854
41855
41856   echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
41857 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
41858 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
41859   echo $ECHO_N "(cached) $ECHO_C" >&6
41860 else
41861   cat >conftest.$ac_ext <<_ACEOF
41862 /* confdefs.h.  */
41863 _ACEOF
41864 cat confdefs.h >>conftest.$ac_ext
41865 cat >>conftest.$ac_ext <<_ACEOF
41866 /* end confdefs.h.  */
41867 $ac_includes_default
41868 #include <sys/stat.h>
41869
41870
41871 int
41872 main ()
41873 {
41874 static struct stat ac_aggr;
41875 if (ac_aggr.st_author)
41876 return 0;
41877   ;
41878   return 0;
41879 }
41880 _ACEOF
41881 rm -f conftest.$ac_objext
41882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41883   (eval $ac_compile) 2>conftest.er1
41884   ac_status=$?
41885   grep -v '^ *+' conftest.er1 >conftest.err
41886   rm -f conftest.er1
41887   cat conftest.err >&5
41888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41889   (exit $ac_status); } &&
41890          { ac_try='test -z "$ac_c_werror_flag"
41891                          || test ! -s conftest.err'
41892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41893   (eval $ac_try) 2>&5
41894   ac_status=$?
41895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41896   (exit $ac_status); }; } &&
41897          { ac_try='test -s conftest.$ac_objext'
41898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41899   (eval $ac_try) 2>&5
41900   ac_status=$?
41901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902   (exit $ac_status); }; }; then
41903   ac_cv_member_struct_stat_st_author=yes
41904 else
41905   echo "$as_me: failed program was:" >&5
41906 sed 's/^/| /' conftest.$ac_ext >&5
41907
41908 cat >conftest.$ac_ext <<_ACEOF
41909 /* confdefs.h.  */
41910 _ACEOF
41911 cat confdefs.h >>conftest.$ac_ext
41912 cat >>conftest.$ac_ext <<_ACEOF
41913 /* end confdefs.h.  */
41914 $ac_includes_default
41915 #include <sys/stat.h>
41916
41917
41918 int
41919 main ()
41920 {
41921 static struct stat ac_aggr;
41922 if (sizeof ac_aggr.st_author)
41923 return 0;
41924   ;
41925   return 0;
41926 }
41927 _ACEOF
41928 rm -f conftest.$ac_objext
41929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41930   (eval $ac_compile) 2>conftest.er1
41931   ac_status=$?
41932   grep -v '^ *+' conftest.er1 >conftest.err
41933   rm -f conftest.er1
41934   cat conftest.err >&5
41935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41936   (exit $ac_status); } &&
41937          { ac_try='test -z "$ac_c_werror_flag"
41938                          || test ! -s conftest.err'
41939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41940   (eval $ac_try) 2>&5
41941   ac_status=$?
41942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41943   (exit $ac_status); }; } &&
41944          { ac_try='test -s conftest.$ac_objext'
41945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41946   (eval $ac_try) 2>&5
41947   ac_status=$?
41948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41949   (exit $ac_status); }; }; then
41950   ac_cv_member_struct_stat_st_author=yes
41951 else
41952   echo "$as_me: failed program was:" >&5
41953 sed 's/^/| /' conftest.$ac_ext >&5
41954
41955 ac_cv_member_struct_stat_st_author=no
41956 fi
41957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41958 fi
41959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41960 fi
41961 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
41962 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
41963 if test $ac_cv_member_struct_stat_st_author = yes; then
41964
41965 cat >>confdefs.h <<_ACEOF
41966 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
41967 _ACEOF
41968
41969
41970 fi
41971 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
41972 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
41973 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
41974   echo $ECHO_N "(cached) $ECHO_C" >&6
41975 else
41976   cat >conftest.$ac_ext <<_ACEOF
41977 /* confdefs.h.  */
41978 _ACEOF
41979 cat confdefs.h >>conftest.$ac_ext
41980 cat >>conftest.$ac_ext <<_ACEOF
41981 /* end confdefs.h.  */
41982 $ac_includes_default
41983 #include <sys/stat.h>
41984
41985
41986 int
41987 main ()
41988 {
41989 static struct stat ac_aggr;
41990 if (ac_aggr.st_blksize)
41991 return 0;
41992   ;
41993   return 0;
41994 }
41995 _ACEOF
41996 rm -f conftest.$ac_objext
41997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41998   (eval $ac_compile) 2>conftest.er1
41999   ac_status=$?
42000   grep -v '^ *+' conftest.er1 >conftest.err
42001   rm -f conftest.er1
42002   cat conftest.err >&5
42003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42004   (exit $ac_status); } &&
42005          { ac_try='test -z "$ac_c_werror_flag"
42006                          || test ! -s conftest.err'
42007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42008   (eval $ac_try) 2>&5
42009   ac_status=$?
42010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42011   (exit $ac_status); }; } &&
42012          { ac_try='test -s conftest.$ac_objext'
42013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42014   (eval $ac_try) 2>&5
42015   ac_status=$?
42016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42017   (exit $ac_status); }; }; then
42018   ac_cv_member_struct_stat_st_blksize=yes
42019 else
42020   echo "$as_me: failed program was:" >&5
42021 sed 's/^/| /' conftest.$ac_ext >&5
42022
42023 cat >conftest.$ac_ext <<_ACEOF
42024 /* confdefs.h.  */
42025 _ACEOF
42026 cat confdefs.h >>conftest.$ac_ext
42027 cat >>conftest.$ac_ext <<_ACEOF
42028 /* end confdefs.h.  */
42029 $ac_includes_default
42030 #include <sys/stat.h>
42031
42032
42033 int
42034 main ()
42035 {
42036 static struct stat ac_aggr;
42037 if (sizeof ac_aggr.st_blksize)
42038 return 0;
42039   ;
42040   return 0;
42041 }
42042 _ACEOF
42043 rm -f conftest.$ac_objext
42044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42045   (eval $ac_compile) 2>conftest.er1
42046   ac_status=$?
42047   grep -v '^ *+' conftest.er1 >conftest.err
42048   rm -f conftest.er1
42049   cat conftest.err >&5
42050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42051   (exit $ac_status); } &&
42052          { ac_try='test -z "$ac_c_werror_flag"
42053                          || test ! -s conftest.err'
42054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42055   (eval $ac_try) 2>&5
42056   ac_status=$?
42057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42058   (exit $ac_status); }; } &&
42059          { ac_try='test -s conftest.$ac_objext'
42060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42061   (eval $ac_try) 2>&5
42062   ac_status=$?
42063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42064   (exit $ac_status); }; }; then
42065   ac_cv_member_struct_stat_st_blksize=yes
42066 else
42067   echo "$as_me: failed program was:" >&5
42068 sed 's/^/| /' conftest.$ac_ext >&5
42069
42070 ac_cv_member_struct_stat_st_blksize=no
42071 fi
42072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42073 fi
42074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42075 fi
42076 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
42077 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
42078 if test $ac_cv_member_struct_stat_st_blksize = yes; then
42079
42080 cat >>confdefs.h <<_ACEOF
42081 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
42082 _ACEOF
42083
42084
42085 fi
42086
42087
42088
42089
42090
42091
42092
42093
42094
42095
42096
42097
42098
42099
42100   echo "$as_me:$LINENO: checking for ino_t" >&5
42101 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
42102 if test "${ac_cv_type_ino_t+set}" = set; then
42103   echo $ECHO_N "(cached) $ECHO_C" >&6
42104 else
42105   cat >conftest.$ac_ext <<_ACEOF
42106 /* confdefs.h.  */
42107 _ACEOF
42108 cat confdefs.h >>conftest.$ac_ext
42109 cat >>conftest.$ac_ext <<_ACEOF
42110 /* end confdefs.h.  */
42111 $ac_includes_default
42112 int
42113 main ()
42114 {
42115 if ((ino_t *) 0)
42116   return 0;
42117 if (sizeof (ino_t))
42118   return 0;
42119   ;
42120   return 0;
42121 }
42122 _ACEOF
42123 rm -f conftest.$ac_objext
42124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42125   (eval $ac_compile) 2>conftest.er1
42126   ac_status=$?
42127   grep -v '^ *+' conftest.er1 >conftest.err
42128   rm -f conftest.er1
42129   cat conftest.err >&5
42130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42131   (exit $ac_status); } &&
42132          { ac_try='test -z "$ac_c_werror_flag"
42133                          || test ! -s conftest.err'
42134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42135   (eval $ac_try) 2>&5
42136   ac_status=$?
42137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42138   (exit $ac_status); }; } &&
42139          { ac_try='test -s conftest.$ac_objext'
42140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42141   (eval $ac_try) 2>&5
42142   ac_status=$?
42143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42144   (exit $ac_status); }; }; then
42145   ac_cv_type_ino_t=yes
42146 else
42147   echo "$as_me: failed program was:" >&5
42148 sed 's/^/| /' conftest.$ac_ext >&5
42149
42150 ac_cv_type_ino_t=no
42151 fi
42152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42153 fi
42154 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
42155 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
42156 if test $ac_cv_type_ino_t = yes; then
42157   :
42158 else
42159
42160 cat >>confdefs.h <<_ACEOF
42161 #define ino_t unsigned long int
42162 _ACEOF
42163
42164 fi
42165
42166   echo "$as_me:$LINENO: checking for uintptr_t" >&5
42167 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
42168 if test "${ac_cv_type_uintptr_t+set}" = set; then
42169   echo $ECHO_N "(cached) $ECHO_C" >&6
42170 else
42171   cat >conftest.$ac_ext <<_ACEOF
42172 /* confdefs.h.  */
42173 _ACEOF
42174 cat confdefs.h >>conftest.$ac_ext
42175 cat >>conftest.$ac_ext <<_ACEOF
42176 /* end confdefs.h.  */
42177 $ac_includes_default
42178 int
42179 main ()
42180 {
42181 if ((uintptr_t *) 0)
42182   return 0;
42183 if (sizeof (uintptr_t))
42184   return 0;
42185   ;
42186   return 0;
42187 }
42188 _ACEOF
42189 rm -f conftest.$ac_objext
42190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42191   (eval $ac_compile) 2>conftest.er1
42192   ac_status=$?
42193   grep -v '^ *+' conftest.er1 >conftest.err
42194   rm -f conftest.er1
42195   cat conftest.err >&5
42196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42197   (exit $ac_status); } &&
42198          { ac_try='test -z "$ac_c_werror_flag"
42199                          || test ! -s conftest.err'
42200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42201   (eval $ac_try) 2>&5
42202   ac_status=$?
42203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42204   (exit $ac_status); }; } &&
42205          { ac_try='test -s conftest.$ac_objext'
42206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42207   (eval $ac_try) 2>&5
42208   ac_status=$?
42209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42210   (exit $ac_status); }; }; then
42211   ac_cv_type_uintptr_t=yes
42212 else
42213   echo "$as_me: failed program was:" >&5
42214 sed 's/^/| /' conftest.$ac_ext >&5
42215
42216 ac_cv_type_uintptr_t=no
42217 fi
42218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42219 fi
42220 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
42221 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
42222 if test $ac_cv_type_uintptr_t = yes; then
42223   :
42224 else
42225
42226 cat >>confdefs.h <<_ACEOF
42227 #define uintptr_t size_t
42228 _ACEOF
42229
42230 fi
42231
42232
42233
42234   echo "$as_me:$LINENO: checking for ssize_t" >&5
42235 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
42236 if test "${gt_cv_ssize_t+set}" = set; then
42237   echo $ECHO_N "(cached) $ECHO_C" >&6
42238 else
42239   cat >conftest.$ac_ext <<_ACEOF
42240 /* confdefs.h.  */
42241 _ACEOF
42242 cat confdefs.h >>conftest.$ac_ext
42243 cat >>conftest.$ac_ext <<_ACEOF
42244 /* end confdefs.h.  */
42245 #include <sys/types.h>
42246 int
42247 main ()
42248 {
42249 int x = sizeof (ssize_t *) + sizeof (ssize_t);
42250   ;
42251   return 0;
42252 }
42253 _ACEOF
42254 rm -f conftest.$ac_objext
42255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42256   (eval $ac_compile) 2>conftest.er1
42257   ac_status=$?
42258   grep -v '^ *+' conftest.er1 >conftest.err
42259   rm -f conftest.er1
42260   cat conftest.err >&5
42261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42262   (exit $ac_status); } &&
42263          { ac_try='test -z "$ac_c_werror_flag"
42264                          || test ! -s conftest.err'
42265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42266   (eval $ac_try) 2>&5
42267   ac_status=$?
42268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42269   (exit $ac_status); }; } &&
42270          { ac_try='test -s conftest.$ac_objext'
42271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42272   (eval $ac_try) 2>&5
42273   ac_status=$?
42274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42275   (exit $ac_status); }; }; then
42276   gt_cv_ssize_t=yes
42277 else
42278   echo "$as_me: failed program was:" >&5
42279 sed 's/^/| /' conftest.$ac_ext >&5
42280
42281 gt_cv_ssize_t=no
42282 fi
42283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42284 fi
42285 echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
42286 echo "${ECHO_T}$gt_cv_ssize_t" >&6
42287   if test $gt_cv_ssize_t = no; then
42288
42289 cat >>confdefs.h <<\_ACEOF
42290 #define ssize_t int
42291 _ACEOF
42292
42293   fi
42294
42295
42296       echo "$as_me:$LINENO: checking for major_t" >&5
42297 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
42298 if test "${ac_cv_type_major_t+set}" = set; then
42299   echo $ECHO_N "(cached) $ECHO_C" >&6
42300 else
42301   cat >conftest.$ac_ext <<_ACEOF
42302 /* confdefs.h.  */
42303 _ACEOF
42304 cat confdefs.h >>conftest.$ac_ext
42305 cat >>conftest.$ac_ext <<_ACEOF
42306 /* end confdefs.h.  */
42307 $ac_includes_default
42308 int
42309 main ()
42310 {
42311 if ((major_t *) 0)
42312   return 0;
42313 if (sizeof (major_t))
42314   return 0;
42315   ;
42316   return 0;
42317 }
42318 _ACEOF
42319 rm -f conftest.$ac_objext
42320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42321   (eval $ac_compile) 2>conftest.er1
42322   ac_status=$?
42323   grep -v '^ *+' conftest.er1 >conftest.err
42324   rm -f conftest.er1
42325   cat conftest.err >&5
42326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42327   (exit $ac_status); } &&
42328          { ac_try='test -z "$ac_c_werror_flag"
42329                          || test ! -s conftest.err'
42330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42331   (eval $ac_try) 2>&5
42332   ac_status=$?
42333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42334   (exit $ac_status); }; } &&
42335          { ac_try='test -s conftest.$ac_objext'
42336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42337   (eval $ac_try) 2>&5
42338   ac_status=$?
42339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42340   (exit $ac_status); }; }; then
42341   ac_cv_type_major_t=yes
42342 else
42343   echo "$as_me: failed program was:" >&5
42344 sed 's/^/| /' conftest.$ac_ext >&5
42345
42346 ac_cv_type_major_t=no
42347 fi
42348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42349 fi
42350 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
42351 echo "${ECHO_T}$ac_cv_type_major_t" >&6
42352 if test $ac_cv_type_major_t = yes; then
42353   :
42354 else
42355
42356 cat >>confdefs.h <<_ACEOF
42357 #define major_t unsigned int
42358 _ACEOF
42359
42360 fi
42361
42362   echo "$as_me:$LINENO: checking for minor_t" >&5
42363 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
42364 if test "${ac_cv_type_minor_t+set}" = set; then
42365   echo $ECHO_N "(cached) $ECHO_C" >&6
42366 else
42367   cat >conftest.$ac_ext <<_ACEOF
42368 /* confdefs.h.  */
42369 _ACEOF
42370 cat confdefs.h >>conftest.$ac_ext
42371 cat >>conftest.$ac_ext <<_ACEOF
42372 /* end confdefs.h.  */
42373 $ac_includes_default
42374 int
42375 main ()
42376 {
42377 if ((minor_t *) 0)
42378   return 0;
42379 if (sizeof (minor_t))
42380   return 0;
42381   ;
42382   return 0;
42383 }
42384 _ACEOF
42385 rm -f conftest.$ac_objext
42386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42387   (eval $ac_compile) 2>conftest.er1
42388   ac_status=$?
42389   grep -v '^ *+' conftest.er1 >conftest.err
42390   rm -f conftest.er1
42391   cat conftest.err >&5
42392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42393   (exit $ac_status); } &&
42394          { ac_try='test -z "$ac_c_werror_flag"
42395                          || test ! -s conftest.err'
42396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42397   (eval $ac_try) 2>&5
42398   ac_status=$?
42399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42400   (exit $ac_status); }; } &&
42401          { ac_try='test -s conftest.$ac_objext'
42402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42403   (eval $ac_try) 2>&5
42404   ac_status=$?
42405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42406   (exit $ac_status); }; }; then
42407   ac_cv_type_minor_t=yes
42408 else
42409   echo "$as_me: failed program was:" >&5
42410 sed 's/^/| /' conftest.$ac_ext >&5
42411
42412 ac_cv_type_minor_t=no
42413 fi
42414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42415 fi
42416 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
42417 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
42418 if test $ac_cv_type_minor_t = yes; then
42419   :
42420 else
42421
42422 cat >>confdefs.h <<_ACEOF
42423 #define minor_t unsigned int
42424 _ACEOF
42425
42426 fi
42427
42428
42429
42430
42431
42432
42433
42434
42435
42436
42437
42438
42439
42440
42441
42442
42443
42444
42445
42446
42447
42448
42449
42450
42451
42452
42453
42454
42455
42456
42457
42458   # This is for od and stat, and any other program that
42459   # uses the PRI.MAX macros from inttypes.h.
42460
42461
42462
42463
42464
42465
42466
42467
42468   ac_have_func=no # yes means we've found a way to get the load average.
42469
42470 # Make sure getloadavg.c is where it belongs, at configure-time.
42471 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
42472   { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
42473 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
42474    { (exit 1); exit 1; }; }
42475
42476 ac_save_LIBS=$LIBS
42477
42478 # Check for getloadavg, but be sure not to touch the cache variable.
42479 (echo "$as_me:$LINENO: checking for getloadavg" >&5
42480 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
42481 if test "${ac_cv_func_getloadavg+set}" = set; then
42482   echo $ECHO_N "(cached) $ECHO_C" >&6
42483 else
42484   cat >conftest.$ac_ext <<_ACEOF
42485 /* confdefs.h.  */
42486 _ACEOF
42487 cat confdefs.h >>conftest.$ac_ext
42488 cat >>conftest.$ac_ext <<_ACEOF
42489 /* end confdefs.h.  */
42490 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
42491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42492 #define getloadavg innocuous_getloadavg
42493
42494 /* System header to define __stub macros and hopefully few prototypes,
42495     which can conflict with char getloadavg (); below.
42496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42497     <limits.h> exists even on freestanding compilers.  */
42498
42499 #ifdef __STDC__
42500 # include <limits.h>
42501 #else
42502 # include <assert.h>
42503 #endif
42504
42505 #undef getloadavg
42506
42507 /* Override any gcc2 internal prototype to avoid an error.  */
42508 #ifdef __cplusplus
42509 extern "C"
42510 {
42511 #endif
42512 /* We use char because int might match the return type of a gcc2
42513    builtin and then its argument prototype would still apply.  */
42514 char getloadavg ();
42515 /* The GNU C library defines this for functions which it implements
42516     to always fail with ENOSYS.  Some functions are actually named
42517     something starting with __ and the normal name is an alias.  */
42518 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
42519 choke me
42520 #else
42521 char (*f) () = getloadavg;
42522 #endif
42523 #ifdef __cplusplus
42524 }
42525 #endif
42526
42527 int
42528 main ()
42529 {
42530 return f != getloadavg;
42531   ;
42532   return 0;
42533 }
42534 _ACEOF
42535 rm -f conftest.$ac_objext conftest$ac_exeext
42536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42537   (eval $ac_link) 2>conftest.er1
42538   ac_status=$?
42539   grep -v '^ *+' conftest.er1 >conftest.err
42540   rm -f conftest.er1
42541   cat conftest.err >&5
42542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42543   (exit $ac_status); } &&
42544          { ac_try='test -z "$ac_c_werror_flag"
42545                          || test ! -s conftest.err'
42546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42547   (eval $ac_try) 2>&5
42548   ac_status=$?
42549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42550   (exit $ac_status); }; } &&
42551          { ac_try='test -s conftest$ac_exeext'
42552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42553   (eval $ac_try) 2>&5
42554   ac_status=$?
42555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42556   (exit $ac_status); }; }; then
42557   ac_cv_func_getloadavg=yes
42558 else
42559   echo "$as_me: failed program was:" >&5
42560 sed 's/^/| /' conftest.$ac_ext >&5
42561
42562 ac_cv_func_getloadavg=no
42563 fi
42564 rm -f conftest.err conftest.$ac_objext \
42565       conftest$ac_exeext conftest.$ac_ext
42566 fi
42567 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
42568 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
42569 if test $ac_cv_func_getloadavg = yes; then
42570   exit 0
42571 else
42572   exit 1
42573 fi
42574 ) && ac_have_func=yes
42575
42576 # On HPUX9, an unprivileged user can get load averages through this function.
42577
42578 for ac_func in pstat_getdynamic
42579 do
42580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42581 echo "$as_me:$LINENO: checking for $ac_func" >&5
42582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42583 if eval "test \"\${$as_ac_var+set}\" = set"; then
42584   echo $ECHO_N "(cached) $ECHO_C" >&6
42585 else
42586   cat >conftest.$ac_ext <<_ACEOF
42587 /* confdefs.h.  */
42588 _ACEOF
42589 cat confdefs.h >>conftest.$ac_ext
42590 cat >>conftest.$ac_ext <<_ACEOF
42591 /* end confdefs.h.  */
42592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42594 #define $ac_func innocuous_$ac_func
42595
42596 /* System header to define __stub macros and hopefully few prototypes,
42597     which can conflict with char $ac_func (); below.
42598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42599     <limits.h> exists even on freestanding compilers.  */
42600
42601 #ifdef __STDC__
42602 # include <limits.h>
42603 #else
42604 # include <assert.h>
42605 #endif
42606
42607 #undef $ac_func
42608
42609 /* Override any gcc2 internal prototype to avoid an error.  */
42610 #ifdef __cplusplus
42611 extern "C"
42612 {
42613 #endif
42614 /* We use char because int might match the return type of a gcc2
42615    builtin and then its argument prototype would still apply.  */
42616 char $ac_func ();
42617 /* The GNU C library defines this for functions which it implements
42618     to always fail with ENOSYS.  Some functions are actually named
42619     something starting with __ and the normal name is an alias.  */
42620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42621 choke me
42622 #else
42623 char (*f) () = $ac_func;
42624 #endif
42625 #ifdef __cplusplus
42626 }
42627 #endif
42628
42629 int
42630 main ()
42631 {
42632 return f != $ac_func;
42633   ;
42634   return 0;
42635 }
42636 _ACEOF
42637 rm -f conftest.$ac_objext conftest$ac_exeext
42638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42639   (eval $ac_link) 2>conftest.er1
42640   ac_status=$?
42641   grep -v '^ *+' conftest.er1 >conftest.err
42642   rm -f conftest.er1
42643   cat conftest.err >&5
42644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42645   (exit $ac_status); } &&
42646          { ac_try='test -z "$ac_c_werror_flag"
42647                          || test ! -s conftest.err'
42648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42649   (eval $ac_try) 2>&5
42650   ac_status=$?
42651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42652   (exit $ac_status); }; } &&
42653          { ac_try='test -s conftest$ac_exeext'
42654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42655   (eval $ac_try) 2>&5
42656   ac_status=$?
42657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42658   (exit $ac_status); }; }; then
42659   eval "$as_ac_var=yes"
42660 else
42661   echo "$as_me: failed program was:" >&5
42662 sed 's/^/| /' conftest.$ac_ext >&5
42663
42664 eval "$as_ac_var=no"
42665 fi
42666 rm -f conftest.err conftest.$ac_objext \
42667       conftest$ac_exeext conftest.$ac_ext
42668 fi
42669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42671 if test `eval echo '${'$as_ac_var'}'` = yes; then
42672   cat >>confdefs.h <<_ACEOF
42673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42674 _ACEOF
42675
42676 fi
42677 done
42678
42679
42680 # Solaris has libkstat which does not require root.
42681
42682 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
42683 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
42684 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
42685   echo $ECHO_N "(cached) $ECHO_C" >&6
42686 else
42687   ac_check_lib_save_LIBS=$LIBS
42688 LIBS="-lkstat  $LIBS"
42689 cat >conftest.$ac_ext <<_ACEOF
42690 /* confdefs.h.  */
42691 _ACEOF
42692 cat confdefs.h >>conftest.$ac_ext
42693 cat >>conftest.$ac_ext <<_ACEOF
42694 /* end confdefs.h.  */
42695
42696 /* Override any gcc2 internal prototype to avoid an error.  */
42697 #ifdef __cplusplus
42698 extern "C"
42699 #endif
42700 /* We use char because int might match the return type of a gcc2
42701    builtin and then its argument prototype would still apply.  */
42702 char kstat_open ();
42703 int
42704 main ()
42705 {
42706 kstat_open ();
42707   ;
42708   return 0;
42709 }
42710 _ACEOF
42711 rm -f conftest.$ac_objext conftest$ac_exeext
42712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42713   (eval $ac_link) 2>conftest.er1
42714   ac_status=$?
42715   grep -v '^ *+' conftest.er1 >conftest.err
42716   rm -f conftest.er1
42717   cat conftest.err >&5
42718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42719   (exit $ac_status); } &&
42720          { ac_try='test -z "$ac_c_werror_flag"
42721                          || test ! -s conftest.err'
42722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42723   (eval $ac_try) 2>&5
42724   ac_status=$?
42725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42726   (exit $ac_status); }; } &&
42727          { ac_try='test -s conftest$ac_exeext'
42728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42729   (eval $ac_try) 2>&5
42730   ac_status=$?
42731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42732   (exit $ac_status); }; }; then
42733   ac_cv_lib_kstat_kstat_open=yes
42734 else
42735   echo "$as_me: failed program was:" >&5
42736 sed 's/^/| /' conftest.$ac_ext >&5
42737
42738 ac_cv_lib_kstat_kstat_open=no
42739 fi
42740 rm -f conftest.err conftest.$ac_objext \
42741       conftest$ac_exeext conftest.$ac_ext
42742 LIBS=$ac_check_lib_save_LIBS
42743 fi
42744 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
42745 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
42746 if test $ac_cv_lib_kstat_kstat_open = yes; then
42747   cat >>confdefs.h <<_ACEOF
42748 #define HAVE_LIBKSTAT 1
42749 _ACEOF
42750
42751   LIBS="-lkstat $LIBS"
42752
42753 fi
42754
42755 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
42756
42757 # Some systems with -lutil have (and need) -lkvm as well, some do not.
42758 # On Solaris, -lkvm requires nlist from -lelf, so check that first
42759 # to get the right answer into the cache.
42760 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
42761 if test $ac_have_func = no; then
42762   echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
42763 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
42764 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
42765   echo $ECHO_N "(cached) $ECHO_C" >&6
42766 else
42767   ac_check_lib_save_LIBS=$LIBS
42768 LIBS="-lelf  $LIBS"
42769 cat >conftest.$ac_ext <<_ACEOF
42770 /* confdefs.h.  */
42771 _ACEOF
42772 cat confdefs.h >>conftest.$ac_ext
42773 cat >>conftest.$ac_ext <<_ACEOF
42774 /* end confdefs.h.  */
42775
42776 /* Override any gcc2 internal prototype to avoid an error.  */
42777 #ifdef __cplusplus
42778 extern "C"
42779 #endif
42780 /* We use char because int might match the return type of a gcc2
42781    builtin and then its argument prototype would still apply.  */
42782 char elf_begin ();
42783 int
42784 main ()
42785 {
42786 elf_begin ();
42787   ;
42788   return 0;
42789 }
42790 _ACEOF
42791 rm -f conftest.$ac_objext conftest$ac_exeext
42792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42793   (eval $ac_link) 2>conftest.er1
42794   ac_status=$?
42795   grep -v '^ *+' conftest.er1 >conftest.err
42796   rm -f conftest.er1
42797   cat conftest.err >&5
42798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42799   (exit $ac_status); } &&
42800          { ac_try='test -z "$ac_c_werror_flag"
42801                          || test ! -s conftest.err'
42802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42803   (eval $ac_try) 2>&5
42804   ac_status=$?
42805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42806   (exit $ac_status); }; } &&
42807          { ac_try='test -s conftest$ac_exeext'
42808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42809   (eval $ac_try) 2>&5
42810   ac_status=$?
42811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42812   (exit $ac_status); }; }; then
42813   ac_cv_lib_elf_elf_begin=yes
42814 else
42815   echo "$as_me: failed program was:" >&5
42816 sed 's/^/| /' conftest.$ac_ext >&5
42817
42818 ac_cv_lib_elf_elf_begin=no
42819 fi
42820 rm -f conftest.err conftest.$ac_objext \
42821       conftest$ac_exeext conftest.$ac_ext
42822 LIBS=$ac_check_lib_save_LIBS
42823 fi
42824 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
42825 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
42826 if test $ac_cv_lib_elf_elf_begin = yes; then
42827   LIBS="-lelf $LIBS"
42828 fi
42829
42830 fi
42831 if test $ac_have_func = no; then
42832   echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
42833 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
42834 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
42835   echo $ECHO_N "(cached) $ECHO_C" >&6
42836 else
42837   ac_check_lib_save_LIBS=$LIBS
42838 LIBS="-lkvm  $LIBS"
42839 cat >conftest.$ac_ext <<_ACEOF
42840 /* confdefs.h.  */
42841 _ACEOF
42842 cat confdefs.h >>conftest.$ac_ext
42843 cat >>conftest.$ac_ext <<_ACEOF
42844 /* end confdefs.h.  */
42845
42846 /* Override any gcc2 internal prototype to avoid an error.  */
42847 #ifdef __cplusplus
42848 extern "C"
42849 #endif
42850 /* We use char because int might match the return type of a gcc2
42851    builtin and then its argument prototype would still apply.  */
42852 char kvm_open ();
42853 int
42854 main ()
42855 {
42856 kvm_open ();
42857   ;
42858   return 0;
42859 }
42860 _ACEOF
42861 rm -f conftest.$ac_objext conftest$ac_exeext
42862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42863   (eval $ac_link) 2>conftest.er1
42864   ac_status=$?
42865   grep -v '^ *+' conftest.er1 >conftest.err
42866   rm -f conftest.er1
42867   cat conftest.err >&5
42868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42869   (exit $ac_status); } &&
42870          { ac_try='test -z "$ac_c_werror_flag"
42871                          || test ! -s conftest.err'
42872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42873   (eval $ac_try) 2>&5
42874   ac_status=$?
42875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42876   (exit $ac_status); }; } &&
42877          { ac_try='test -s conftest$ac_exeext'
42878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42879   (eval $ac_try) 2>&5
42880   ac_status=$?
42881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42882   (exit $ac_status); }; }; then
42883   ac_cv_lib_kvm_kvm_open=yes
42884 else
42885   echo "$as_me: failed program was:" >&5
42886 sed 's/^/| /' conftest.$ac_ext >&5
42887
42888 ac_cv_lib_kvm_kvm_open=no
42889 fi
42890 rm -f conftest.err conftest.$ac_objext \
42891       conftest$ac_exeext conftest.$ac_ext
42892 LIBS=$ac_check_lib_save_LIBS
42893 fi
42894 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
42895 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
42896 if test $ac_cv_lib_kvm_kvm_open = yes; then
42897   LIBS="-lkvm $LIBS"
42898 fi
42899
42900   # Check for the 4.4BSD definition of getloadavg.
42901   echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
42902 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
42903 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
42904   echo $ECHO_N "(cached) $ECHO_C" >&6
42905 else
42906   ac_check_lib_save_LIBS=$LIBS
42907 LIBS="-lutil  $LIBS"
42908 cat >conftest.$ac_ext <<_ACEOF
42909 /* confdefs.h.  */
42910 _ACEOF
42911 cat confdefs.h >>conftest.$ac_ext
42912 cat >>conftest.$ac_ext <<_ACEOF
42913 /* end confdefs.h.  */
42914
42915 /* Override any gcc2 internal prototype to avoid an error.  */
42916 #ifdef __cplusplus
42917 extern "C"
42918 #endif
42919 /* We use char because int might match the return type of a gcc2
42920    builtin and then its argument prototype would still apply.  */
42921 char getloadavg ();
42922 int
42923 main ()
42924 {
42925 getloadavg ();
42926   ;
42927   return 0;
42928 }
42929 _ACEOF
42930 rm -f conftest.$ac_objext conftest$ac_exeext
42931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42932   (eval $ac_link) 2>conftest.er1
42933   ac_status=$?
42934   grep -v '^ *+' conftest.er1 >conftest.err
42935   rm -f conftest.er1
42936   cat conftest.err >&5
42937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42938   (exit $ac_status); } &&
42939          { ac_try='test -z "$ac_c_werror_flag"
42940                          || test ! -s conftest.err'
42941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42942   (eval $ac_try) 2>&5
42943   ac_status=$?
42944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42945   (exit $ac_status); }; } &&
42946          { ac_try='test -s conftest$ac_exeext'
42947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42948   (eval $ac_try) 2>&5
42949   ac_status=$?
42950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42951   (exit $ac_status); }; }; then
42952   ac_cv_lib_util_getloadavg=yes
42953 else
42954   echo "$as_me: failed program was:" >&5
42955 sed 's/^/| /' conftest.$ac_ext >&5
42956
42957 ac_cv_lib_util_getloadavg=no
42958 fi
42959 rm -f conftest.err conftest.$ac_objext \
42960       conftest$ac_exeext conftest.$ac_ext
42961 LIBS=$ac_check_lib_save_LIBS
42962 fi
42963 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
42964 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
42965 if test $ac_cv_lib_util_getloadavg = yes; then
42966   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
42967 fi
42968
42969 fi
42970
42971 if test $ac_have_func = no; then
42972   # There is a commonly available library for RS/6000 AIX.
42973   # Since it is not a standard part of AIX, it might be installed locally.
42974   ac_getloadavg_LIBS=$LIBS
42975   LIBS="-L/usr/local/lib $LIBS"
42976   echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
42977 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
42978 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
42979   echo $ECHO_N "(cached) $ECHO_C" >&6
42980 else
42981   ac_check_lib_save_LIBS=$LIBS
42982 LIBS="-lgetloadavg  $LIBS"
42983 cat >conftest.$ac_ext <<_ACEOF
42984 /* confdefs.h.  */
42985 _ACEOF
42986 cat confdefs.h >>conftest.$ac_ext
42987 cat >>conftest.$ac_ext <<_ACEOF
42988 /* end confdefs.h.  */
42989
42990 /* Override any gcc2 internal prototype to avoid an error.  */
42991 #ifdef __cplusplus
42992 extern "C"
42993 #endif
42994 /* We use char because int might match the return type of a gcc2
42995    builtin and then its argument prototype would still apply.  */
42996 char getloadavg ();
42997 int
42998 main ()
42999 {
43000 getloadavg ();
43001   ;
43002   return 0;
43003 }
43004 _ACEOF
43005 rm -f conftest.$ac_objext conftest$ac_exeext
43006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43007   (eval $ac_link) 2>conftest.er1
43008   ac_status=$?
43009   grep -v '^ *+' conftest.er1 >conftest.err
43010   rm -f conftest.er1
43011   cat conftest.err >&5
43012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43013   (exit $ac_status); } &&
43014          { ac_try='test -z "$ac_c_werror_flag"
43015                          || test ! -s conftest.err'
43016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43017   (eval $ac_try) 2>&5
43018   ac_status=$?
43019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43020   (exit $ac_status); }; } &&
43021          { ac_try='test -s conftest$ac_exeext'
43022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43023   (eval $ac_try) 2>&5
43024   ac_status=$?
43025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43026   (exit $ac_status); }; }; then
43027   ac_cv_lib_getloadavg_getloadavg=yes
43028 else
43029   echo "$as_me: failed program was:" >&5
43030 sed 's/^/| /' conftest.$ac_ext >&5
43031
43032 ac_cv_lib_getloadavg_getloadavg=no
43033 fi
43034 rm -f conftest.err conftest.$ac_objext \
43035       conftest$ac_exeext conftest.$ac_ext
43036 LIBS=$ac_check_lib_save_LIBS
43037 fi
43038 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
43039 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
43040 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
43041   LIBS="-lgetloadavg $LIBS"
43042 else
43043   LIBS=$ac_getloadavg_LIBS
43044 fi
43045
43046 fi
43047
43048 # Make sure it is really in the library, if we think we found it,
43049 # otherwise set up the replacement function.
43050
43051 for ac_func in getloadavg
43052 do
43053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43054 echo "$as_me:$LINENO: checking for $ac_func" >&5
43055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43056 if eval "test \"\${$as_ac_var+set}\" = set"; then
43057   echo $ECHO_N "(cached) $ECHO_C" >&6
43058 else
43059   cat >conftest.$ac_ext <<_ACEOF
43060 /* confdefs.h.  */
43061 _ACEOF
43062 cat confdefs.h >>conftest.$ac_ext
43063 cat >>conftest.$ac_ext <<_ACEOF
43064 /* end confdefs.h.  */
43065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43067 #define $ac_func innocuous_$ac_func
43068
43069 /* System header to define __stub macros and hopefully few prototypes,
43070     which can conflict with char $ac_func (); below.
43071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43072     <limits.h> exists even on freestanding compilers.  */
43073
43074 #ifdef __STDC__
43075 # include <limits.h>
43076 #else
43077 # include <assert.h>
43078 #endif
43079
43080 #undef $ac_func
43081
43082 /* Override any gcc2 internal prototype to avoid an error.  */
43083 #ifdef __cplusplus
43084 extern "C"
43085 {
43086 #endif
43087 /* We use char because int might match the return type of a gcc2
43088    builtin and then its argument prototype would still apply.  */
43089 char $ac_func ();
43090 /* The GNU C library defines this for functions which it implements
43091     to always fail with ENOSYS.  Some functions are actually named
43092     something starting with __ and the normal name is an alias.  */
43093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43094 choke me
43095 #else
43096 char (*f) () = $ac_func;
43097 #endif
43098 #ifdef __cplusplus
43099 }
43100 #endif
43101
43102 int
43103 main ()
43104 {
43105 return f != $ac_func;
43106   ;
43107   return 0;
43108 }
43109 _ACEOF
43110 rm -f conftest.$ac_objext conftest$ac_exeext
43111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43112   (eval $ac_link) 2>conftest.er1
43113   ac_status=$?
43114   grep -v '^ *+' conftest.er1 >conftest.err
43115   rm -f conftest.er1
43116   cat conftest.err >&5
43117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43118   (exit $ac_status); } &&
43119          { ac_try='test -z "$ac_c_werror_flag"
43120                          || test ! -s conftest.err'
43121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43122   (eval $ac_try) 2>&5
43123   ac_status=$?
43124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43125   (exit $ac_status); }; } &&
43126          { ac_try='test -s conftest$ac_exeext'
43127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43128   (eval $ac_try) 2>&5
43129   ac_status=$?
43130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43131   (exit $ac_status); }; }; then
43132   eval "$as_ac_var=yes"
43133 else
43134   echo "$as_me: failed program was:" >&5
43135 sed 's/^/| /' conftest.$ac_ext >&5
43136
43137 eval "$as_ac_var=no"
43138 fi
43139 rm -f conftest.err conftest.$ac_objext \
43140       conftest$ac_exeext conftest.$ac_ext
43141 fi
43142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43144 if test `eval echo '${'$as_ac_var'}'` = yes; then
43145   cat >>confdefs.h <<_ACEOF
43146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43147 _ACEOF
43148
43149 else
43150   case $LIBOBJS in
43151     "getloadavg.$ac_objext"   | \
43152   *" getloadavg.$ac_objext"   | \
43153     "getloadavg.$ac_objext "* | \
43154   *" getloadavg.$ac_objext "* ) ;;
43155   *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
43156 esac
43157
43158
43159 cat >>confdefs.h <<\_ACEOF
43160 #define C_GETLOADAVG 1
43161 _ACEOF
43162
43163 # Figure out what our getloadavg.c needs.
43164 ac_have_func=no
43165 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
43166   echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
43167 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
43168 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
43169   echo $ECHO_N "(cached) $ECHO_C" >&6
43170 fi
43171 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
43172 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
43173 else
43174   # Is the header compilable?
43175 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
43176 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
43177 cat >conftest.$ac_ext <<_ACEOF
43178 /* confdefs.h.  */
43179 _ACEOF
43180 cat confdefs.h >>conftest.$ac_ext
43181 cat >>conftest.$ac_ext <<_ACEOF
43182 /* end confdefs.h.  */
43183 $ac_includes_default
43184 #include <sys/dg_sys_info.h>
43185 _ACEOF
43186 rm -f conftest.$ac_objext
43187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43188   (eval $ac_compile) 2>conftest.er1
43189   ac_status=$?
43190   grep -v '^ *+' conftest.er1 >conftest.err
43191   rm -f conftest.er1
43192   cat conftest.err >&5
43193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43194   (exit $ac_status); } &&
43195          { ac_try='test -z "$ac_c_werror_flag"
43196                          || test ! -s conftest.err'
43197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43198   (eval $ac_try) 2>&5
43199   ac_status=$?
43200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43201   (exit $ac_status); }; } &&
43202          { ac_try='test -s conftest.$ac_objext'
43203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43204   (eval $ac_try) 2>&5
43205   ac_status=$?
43206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43207   (exit $ac_status); }; }; then
43208   ac_header_compiler=yes
43209 else
43210   echo "$as_me: failed program was:" >&5
43211 sed 's/^/| /' conftest.$ac_ext >&5
43212
43213 ac_header_compiler=no
43214 fi
43215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43217 echo "${ECHO_T}$ac_header_compiler" >&6
43218
43219 # Is the header present?
43220 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
43221 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
43222 cat >conftest.$ac_ext <<_ACEOF
43223 /* confdefs.h.  */
43224 _ACEOF
43225 cat confdefs.h >>conftest.$ac_ext
43226 cat >>conftest.$ac_ext <<_ACEOF
43227 /* end confdefs.h.  */
43228 #include <sys/dg_sys_info.h>
43229 _ACEOF
43230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43231   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43232   ac_status=$?
43233   grep -v '^ *+' conftest.er1 >conftest.err
43234   rm -f conftest.er1
43235   cat conftest.err >&5
43236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43237   (exit $ac_status); } >/dev/null; then
43238   if test -s conftest.err; then
43239     ac_cpp_err=$ac_c_preproc_warn_flag
43240     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43241   else
43242     ac_cpp_err=
43243   fi
43244 else
43245   ac_cpp_err=yes
43246 fi
43247 if test -z "$ac_cpp_err"; then
43248   ac_header_preproc=yes
43249 else
43250   echo "$as_me: failed program was:" >&5
43251 sed 's/^/| /' conftest.$ac_ext >&5
43252
43253   ac_header_preproc=no
43254 fi
43255 rm -f conftest.err conftest.$ac_ext
43256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43257 echo "${ECHO_T}$ac_header_preproc" >&6
43258
43259 # So?  What about this header?
43260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43261   yes:no: )
43262     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
43263 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43264     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
43265 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
43266     ac_header_preproc=yes
43267     ;;
43268   no:yes:* )
43269     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
43270 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
43271     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
43272 echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
43273     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
43274 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
43275     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
43276 echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43277     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
43278 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
43279     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
43280 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
43281     (
43282       cat <<\_ASBOX
43283 ## ------------------------------------ ##
43284 ## Report this to bug-coreutils@gnu.org ##
43285 ## ------------------------------------ ##
43286 _ASBOX
43287     ) |
43288       sed "s/^/$as_me: WARNING:     /" >&2
43289     ;;
43290 esac
43291 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
43292 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
43293 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
43294   echo $ECHO_N "(cached) $ECHO_C" >&6
43295 else
43296   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
43297 fi
43298 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
43299 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
43300
43301 fi
43302 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
43303   ac_have_func=yes
43304
43305 cat >>confdefs.h <<\_ACEOF
43306 #define DGUX 1
43307 _ACEOF
43308
43309
43310 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
43311 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
43312 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
43313   echo $ECHO_N "(cached) $ECHO_C" >&6
43314 else
43315   ac_check_lib_save_LIBS=$LIBS
43316 LIBS="-ldgc  $LIBS"
43317 cat >conftest.$ac_ext <<_ACEOF
43318 /* confdefs.h.  */
43319 _ACEOF
43320 cat confdefs.h >>conftest.$ac_ext
43321 cat >>conftest.$ac_ext <<_ACEOF
43322 /* end confdefs.h.  */
43323
43324 /* Override any gcc2 internal prototype to avoid an error.  */
43325 #ifdef __cplusplus
43326 extern "C"
43327 #endif
43328 /* We use char because int might match the return type of a gcc2
43329    builtin and then its argument prototype would still apply.  */
43330 char dg_sys_info ();
43331 int
43332 main ()
43333 {
43334 dg_sys_info ();
43335   ;
43336   return 0;
43337 }
43338 _ACEOF
43339 rm -f conftest.$ac_objext conftest$ac_exeext
43340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43341   (eval $ac_link) 2>conftest.er1
43342   ac_status=$?
43343   grep -v '^ *+' conftest.er1 >conftest.err
43344   rm -f conftest.er1
43345   cat conftest.err >&5
43346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43347   (exit $ac_status); } &&
43348          { ac_try='test -z "$ac_c_werror_flag"
43349                          || test ! -s conftest.err'
43350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43351   (eval $ac_try) 2>&5
43352   ac_status=$?
43353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43354   (exit $ac_status); }; } &&
43355          { ac_try='test -s conftest$ac_exeext'
43356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43357   (eval $ac_try) 2>&5
43358   ac_status=$?
43359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43360   (exit $ac_status); }; }; then
43361   ac_cv_lib_dgc_dg_sys_info=yes
43362 else
43363   echo "$as_me: failed program was:" >&5
43364 sed 's/^/| /' conftest.$ac_ext >&5
43365
43366 ac_cv_lib_dgc_dg_sys_info=no
43367 fi
43368 rm -f conftest.err conftest.$ac_objext \
43369       conftest$ac_exeext conftest.$ac_ext
43370 LIBS=$ac_check_lib_save_LIBS
43371 fi
43372 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
43373 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
43374 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
43375   cat >>confdefs.h <<_ACEOF
43376 #define HAVE_LIBDGC 1
43377 _ACEOF
43378
43379   LIBS="-ldgc $LIBS"
43380
43381 fi
43382
43383 fi
43384
43385
43386
43387 if test "${ac_cv_header_locale_h+set}" = set; then
43388   echo "$as_me:$LINENO: checking for locale.h" >&5
43389 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
43390 if test "${ac_cv_header_locale_h+set}" = set; then
43391   echo $ECHO_N "(cached) $ECHO_C" >&6
43392 fi
43393 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
43394 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
43395 else
43396   # Is the header compilable?
43397 echo "$as_me:$LINENO: checking locale.h usability" >&5
43398 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
43399 cat >conftest.$ac_ext <<_ACEOF
43400 /* confdefs.h.  */
43401 _ACEOF
43402 cat confdefs.h >>conftest.$ac_ext
43403 cat >>conftest.$ac_ext <<_ACEOF
43404 /* end confdefs.h.  */
43405 $ac_includes_default
43406 #include <locale.h>
43407 _ACEOF
43408 rm -f conftest.$ac_objext
43409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43410   (eval $ac_compile) 2>conftest.er1
43411   ac_status=$?
43412   grep -v '^ *+' conftest.er1 >conftest.err
43413   rm -f conftest.er1
43414   cat conftest.err >&5
43415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43416   (exit $ac_status); } &&
43417          { ac_try='test -z "$ac_c_werror_flag"
43418                          || test ! -s conftest.err'
43419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43420   (eval $ac_try) 2>&5
43421   ac_status=$?
43422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43423   (exit $ac_status); }; } &&
43424          { ac_try='test -s conftest.$ac_objext'
43425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43426   (eval $ac_try) 2>&5
43427   ac_status=$?
43428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43429   (exit $ac_status); }; }; then
43430   ac_header_compiler=yes
43431 else
43432   echo "$as_me: failed program was:" >&5
43433 sed 's/^/| /' conftest.$ac_ext >&5
43434
43435 ac_header_compiler=no
43436 fi
43437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43439 echo "${ECHO_T}$ac_header_compiler" >&6
43440
43441 # Is the header present?
43442 echo "$as_me:$LINENO: checking locale.h presence" >&5
43443 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
43444 cat >conftest.$ac_ext <<_ACEOF
43445 /* confdefs.h.  */
43446 _ACEOF
43447 cat confdefs.h >>conftest.$ac_ext
43448 cat >>conftest.$ac_ext <<_ACEOF
43449 /* end confdefs.h.  */
43450 #include <locale.h>
43451 _ACEOF
43452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43453   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43454   ac_status=$?
43455   grep -v '^ *+' conftest.er1 >conftest.err
43456   rm -f conftest.er1
43457   cat conftest.err >&5
43458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43459   (exit $ac_status); } >/dev/null; then
43460   if test -s conftest.err; then
43461     ac_cpp_err=$ac_c_preproc_warn_flag
43462     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43463   else
43464     ac_cpp_err=
43465   fi
43466 else
43467   ac_cpp_err=yes
43468 fi
43469 if test -z "$ac_cpp_err"; then
43470   ac_header_preproc=yes
43471 else
43472   echo "$as_me: failed program was:" >&5
43473 sed 's/^/| /' conftest.$ac_ext >&5
43474
43475   ac_header_preproc=no
43476 fi
43477 rm -f conftest.err conftest.$ac_ext
43478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43479 echo "${ECHO_T}$ac_header_preproc" >&6
43480
43481 # So?  What about this header?
43482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43483   yes:no: )
43484     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
43485 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43486     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
43487 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
43488     ac_header_preproc=yes
43489     ;;
43490   no:yes:* )
43491     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
43492 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
43493     { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
43494 echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
43495     { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
43496 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
43497     { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
43498 echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43499     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
43500 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
43501     { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
43502 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
43503     (
43504       cat <<\_ASBOX
43505 ## ------------------------------------ ##
43506 ## Report this to bug-coreutils@gnu.org ##
43507 ## ------------------------------------ ##
43508 _ASBOX
43509     ) |
43510       sed "s/^/$as_me: WARNING:     /" >&2
43511     ;;
43512 esac
43513 echo "$as_me:$LINENO: checking for locale.h" >&5
43514 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
43515 if test "${ac_cv_header_locale_h+set}" = set; then
43516   echo $ECHO_N "(cached) $ECHO_C" >&6
43517 else
43518   ac_cv_header_locale_h=$ac_header_preproc
43519 fi
43520 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
43521 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
43522
43523 fi
43524
43525
43526
43527 for ac_func in setlocale
43528 do
43529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43530 echo "$as_me:$LINENO: checking for $ac_func" >&5
43531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43532 if eval "test \"\${$as_ac_var+set}\" = set"; then
43533   echo $ECHO_N "(cached) $ECHO_C" >&6
43534 else
43535   cat >conftest.$ac_ext <<_ACEOF
43536 /* confdefs.h.  */
43537 _ACEOF
43538 cat confdefs.h >>conftest.$ac_ext
43539 cat >>conftest.$ac_ext <<_ACEOF
43540 /* end confdefs.h.  */
43541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43543 #define $ac_func innocuous_$ac_func
43544
43545 /* System header to define __stub macros and hopefully few prototypes,
43546     which can conflict with char $ac_func (); below.
43547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43548     <limits.h> exists even on freestanding compilers.  */
43549
43550 #ifdef __STDC__
43551 # include <limits.h>
43552 #else
43553 # include <assert.h>
43554 #endif
43555
43556 #undef $ac_func
43557
43558 /* Override any gcc2 internal prototype to avoid an error.  */
43559 #ifdef __cplusplus
43560 extern "C"
43561 {
43562 #endif
43563 /* We use char because int might match the return type of a gcc2
43564    builtin and then its argument prototype would still apply.  */
43565 char $ac_func ();
43566 /* The GNU C library defines this for functions which it implements
43567     to always fail with ENOSYS.  Some functions are actually named
43568     something starting with __ and the normal name is an alias.  */
43569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43570 choke me
43571 #else
43572 char (*f) () = $ac_func;
43573 #endif
43574 #ifdef __cplusplus
43575 }
43576 #endif
43577
43578 int
43579 main ()
43580 {
43581 return f != $ac_func;
43582   ;
43583   return 0;
43584 }
43585 _ACEOF
43586 rm -f conftest.$ac_objext conftest$ac_exeext
43587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43588   (eval $ac_link) 2>conftest.er1
43589   ac_status=$?
43590   grep -v '^ *+' conftest.er1 >conftest.err
43591   rm -f conftest.er1
43592   cat conftest.err >&5
43593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43594   (exit $ac_status); } &&
43595          { ac_try='test -z "$ac_c_werror_flag"
43596                          || test ! -s conftest.err'
43597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43598   (eval $ac_try) 2>&5
43599   ac_status=$?
43600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43601   (exit $ac_status); }; } &&
43602          { ac_try='test -s conftest$ac_exeext'
43603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43604   (eval $ac_try) 2>&5
43605   ac_status=$?
43606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43607   (exit $ac_status); }; }; then
43608   eval "$as_ac_var=yes"
43609 else
43610   echo "$as_me: failed program was:" >&5
43611 sed 's/^/| /' conftest.$ac_ext >&5
43612
43613 eval "$as_ac_var=no"
43614 fi
43615 rm -f conftest.err conftest.$ac_objext \
43616       conftest$ac_exeext conftest.$ac_ext
43617 fi
43618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43620 if test `eval echo '${'$as_ac_var'}'` = yes; then
43621   cat >>confdefs.h <<_ACEOF
43622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43623 _ACEOF
43624
43625 fi
43626 done
43627
43628
43629 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
43630 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
43631 # Irix 4.0.5F has the header but not the library.
43632 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
43633   ac_have_func=yes
43634
43635 cat >>confdefs.h <<\_ACEOF
43636 #define SVR4 1
43637 _ACEOF
43638
43639 fi
43640
43641 if test $ac_have_func = no; then
43642   if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
43643   echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
43644 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
43645 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
43646   echo $ECHO_N "(cached) $ECHO_C" >&6
43647 fi
43648 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
43649 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
43650 else
43651   # Is the header compilable?
43652 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
43653 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
43654 cat >conftest.$ac_ext <<_ACEOF
43655 /* confdefs.h.  */
43656 _ACEOF
43657 cat confdefs.h >>conftest.$ac_ext
43658 cat >>conftest.$ac_ext <<_ACEOF
43659 /* end confdefs.h.  */
43660 $ac_includes_default
43661 #include <inq_stats/cpustats.h>
43662 _ACEOF
43663 rm -f conftest.$ac_objext
43664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43665   (eval $ac_compile) 2>conftest.er1
43666   ac_status=$?
43667   grep -v '^ *+' conftest.er1 >conftest.err
43668   rm -f conftest.er1
43669   cat conftest.err >&5
43670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43671   (exit $ac_status); } &&
43672          { ac_try='test -z "$ac_c_werror_flag"
43673                          || test ! -s conftest.err'
43674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43675   (eval $ac_try) 2>&5
43676   ac_status=$?
43677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43678   (exit $ac_status); }; } &&
43679          { ac_try='test -s conftest.$ac_objext'
43680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43681   (eval $ac_try) 2>&5
43682   ac_status=$?
43683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43684   (exit $ac_status); }; }; then
43685   ac_header_compiler=yes
43686 else
43687   echo "$as_me: failed program was:" >&5
43688 sed 's/^/| /' conftest.$ac_ext >&5
43689
43690 ac_header_compiler=no
43691 fi
43692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43693 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43694 echo "${ECHO_T}$ac_header_compiler" >&6
43695
43696 # Is the header present?
43697 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
43698 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
43699 cat >conftest.$ac_ext <<_ACEOF
43700 /* confdefs.h.  */
43701 _ACEOF
43702 cat confdefs.h >>conftest.$ac_ext
43703 cat >>conftest.$ac_ext <<_ACEOF
43704 /* end confdefs.h.  */
43705 #include <inq_stats/cpustats.h>
43706 _ACEOF
43707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43708   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43709   ac_status=$?
43710   grep -v '^ *+' conftest.er1 >conftest.err
43711   rm -f conftest.er1
43712   cat conftest.err >&5
43713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43714   (exit $ac_status); } >/dev/null; then
43715   if test -s conftest.err; then
43716     ac_cpp_err=$ac_c_preproc_warn_flag
43717     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43718   else
43719     ac_cpp_err=
43720   fi
43721 else
43722   ac_cpp_err=yes
43723 fi
43724 if test -z "$ac_cpp_err"; then
43725   ac_header_preproc=yes
43726 else
43727   echo "$as_me: failed program was:" >&5
43728 sed 's/^/| /' conftest.$ac_ext >&5
43729
43730   ac_header_preproc=no
43731 fi
43732 rm -f conftest.err conftest.$ac_ext
43733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43734 echo "${ECHO_T}$ac_header_preproc" >&6
43735
43736 # So?  What about this header?
43737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43738   yes:no: )
43739     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
43740 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43741     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
43742 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
43743     ac_header_preproc=yes
43744     ;;
43745   no:yes:* )
43746     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
43747 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
43748     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&5
43749 echo "$as_me: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&2;}
43750     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
43751 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
43752     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
43753 echo "$as_me: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43754     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
43755 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
43756     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
43757 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
43758     (
43759       cat <<\_ASBOX
43760 ## ------------------------------------ ##
43761 ## Report this to bug-coreutils@gnu.org ##
43762 ## ------------------------------------ ##
43763 _ASBOX
43764     ) |
43765       sed "s/^/$as_me: WARNING:     /" >&2
43766     ;;
43767 esac
43768 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
43769 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
43770 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
43771   echo $ECHO_N "(cached) $ECHO_C" >&6
43772 else
43773   ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
43774 fi
43775 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
43776 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
43777
43778 fi
43779 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
43780   ac_have_func=yes
43781
43782 cat >>confdefs.h <<\_ACEOF
43783 #define UMAX 1
43784 _ACEOF
43785
43786
43787 cat >>confdefs.h <<\_ACEOF
43788 #define UMAX4_3 1
43789 _ACEOF
43790
43791 fi
43792
43793
43794 fi
43795
43796 if test $ac_have_func = no; then
43797   if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
43798   echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
43799 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
43800 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
43801   echo $ECHO_N "(cached) $ECHO_C" >&6
43802 fi
43803 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
43804 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
43805 else
43806   # Is the header compilable?
43807 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
43808 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
43809 cat >conftest.$ac_ext <<_ACEOF
43810 /* confdefs.h.  */
43811 _ACEOF
43812 cat confdefs.h >>conftest.$ac_ext
43813 cat >>conftest.$ac_ext <<_ACEOF
43814 /* end confdefs.h.  */
43815 $ac_includes_default
43816 #include <sys/cpustats.h>
43817 _ACEOF
43818 rm -f conftest.$ac_objext
43819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43820   (eval $ac_compile) 2>conftest.er1
43821   ac_status=$?
43822   grep -v '^ *+' conftest.er1 >conftest.err
43823   rm -f conftest.er1
43824   cat conftest.err >&5
43825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43826   (exit $ac_status); } &&
43827          { ac_try='test -z "$ac_c_werror_flag"
43828                          || test ! -s conftest.err'
43829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43830   (eval $ac_try) 2>&5
43831   ac_status=$?
43832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43833   (exit $ac_status); }; } &&
43834          { ac_try='test -s conftest.$ac_objext'
43835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43836   (eval $ac_try) 2>&5
43837   ac_status=$?
43838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43839   (exit $ac_status); }; }; then
43840   ac_header_compiler=yes
43841 else
43842   echo "$as_me: failed program was:" >&5
43843 sed 's/^/| /' conftest.$ac_ext >&5
43844
43845 ac_header_compiler=no
43846 fi
43847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43849 echo "${ECHO_T}$ac_header_compiler" >&6
43850
43851 # Is the header present?
43852 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
43853 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
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 #include <sys/cpustats.h>
43861 _ACEOF
43862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43863   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43864   ac_status=$?
43865   grep -v '^ *+' conftest.er1 >conftest.err
43866   rm -f conftest.er1
43867   cat conftest.err >&5
43868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43869   (exit $ac_status); } >/dev/null; then
43870   if test -s conftest.err; then
43871     ac_cpp_err=$ac_c_preproc_warn_flag
43872     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43873   else
43874     ac_cpp_err=
43875   fi
43876 else
43877   ac_cpp_err=yes
43878 fi
43879 if test -z "$ac_cpp_err"; then
43880   ac_header_preproc=yes
43881 else
43882   echo "$as_me: failed program was:" >&5
43883 sed 's/^/| /' conftest.$ac_ext >&5
43884
43885   ac_header_preproc=no
43886 fi
43887 rm -f conftest.err conftest.$ac_ext
43888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43889 echo "${ECHO_T}$ac_header_preproc" >&6
43890
43891 # So?  What about this header?
43892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43893   yes:no: )
43894     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
43895 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43896     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
43897 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
43898     ac_header_preproc=yes
43899     ;;
43900   no:yes:* )
43901     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
43902 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
43903     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&5
43904 echo "$as_me: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&2;}
43905     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
43906 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
43907     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
43908 echo "$as_me: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43909     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
43910 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
43911     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
43912 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
43913     (
43914       cat <<\_ASBOX
43915 ## ------------------------------------ ##
43916 ## Report this to bug-coreutils@gnu.org ##
43917 ## ------------------------------------ ##
43918 _ASBOX
43919     ) |
43920       sed "s/^/$as_me: WARNING:     /" >&2
43921     ;;
43922 esac
43923 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
43924 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
43925 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
43926   echo $ECHO_N "(cached) $ECHO_C" >&6
43927 else
43928   ac_cv_header_sys_cpustats_h=$ac_header_preproc
43929 fi
43930 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
43931 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
43932
43933 fi
43934 if test $ac_cv_header_sys_cpustats_h = yes; then
43935   ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
43936 #define UMAX 1
43937 _ACEOF
43938
43939 fi
43940
43941
43942 fi
43943
43944 if test $ac_have_func = no; then
43945
43946 for ac_header in mach/mach.h
43947 do
43948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43950   echo "$as_me:$LINENO: checking for $ac_header" >&5
43951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43953   echo $ECHO_N "(cached) $ECHO_C" >&6
43954 fi
43955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43957 else
43958   # Is the header compilable?
43959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43961 cat >conftest.$ac_ext <<_ACEOF
43962 /* confdefs.h.  */
43963 _ACEOF
43964 cat confdefs.h >>conftest.$ac_ext
43965 cat >>conftest.$ac_ext <<_ACEOF
43966 /* end confdefs.h.  */
43967 $ac_includes_default
43968 #include <$ac_header>
43969 _ACEOF
43970 rm -f conftest.$ac_objext
43971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43972   (eval $ac_compile) 2>conftest.er1
43973   ac_status=$?
43974   grep -v '^ *+' conftest.er1 >conftest.err
43975   rm -f conftest.er1
43976   cat conftest.err >&5
43977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43978   (exit $ac_status); } &&
43979          { ac_try='test -z "$ac_c_werror_flag"
43980                          || test ! -s conftest.err'
43981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43982   (eval $ac_try) 2>&5
43983   ac_status=$?
43984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43985   (exit $ac_status); }; } &&
43986          { ac_try='test -s conftest.$ac_objext'
43987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43988   (eval $ac_try) 2>&5
43989   ac_status=$?
43990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43991   (exit $ac_status); }; }; then
43992   ac_header_compiler=yes
43993 else
43994   echo "$as_me: failed program was:" >&5
43995 sed 's/^/| /' conftest.$ac_ext >&5
43996
43997 ac_header_compiler=no
43998 fi
43999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44001 echo "${ECHO_T}$ac_header_compiler" >&6
44002
44003 # Is the header present?
44004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44006 cat >conftest.$ac_ext <<_ACEOF
44007 /* confdefs.h.  */
44008 _ACEOF
44009 cat confdefs.h >>conftest.$ac_ext
44010 cat >>conftest.$ac_ext <<_ACEOF
44011 /* end confdefs.h.  */
44012 #include <$ac_header>
44013 _ACEOF
44014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44016   ac_status=$?
44017   grep -v '^ *+' conftest.er1 >conftest.err
44018   rm -f conftest.er1
44019   cat conftest.err >&5
44020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44021   (exit $ac_status); } >/dev/null; then
44022   if test -s conftest.err; then
44023     ac_cpp_err=$ac_c_preproc_warn_flag
44024     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44025   else
44026     ac_cpp_err=
44027   fi
44028 else
44029   ac_cpp_err=yes
44030 fi
44031 if test -z "$ac_cpp_err"; then
44032   ac_header_preproc=yes
44033 else
44034   echo "$as_me: failed program was:" >&5
44035 sed 's/^/| /' conftest.$ac_ext >&5
44036
44037   ac_header_preproc=no
44038 fi
44039 rm -f conftest.err conftest.$ac_ext
44040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44041 echo "${ECHO_T}$ac_header_preproc" >&6
44042
44043 # So?  What about this header?
44044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44045   yes:no: )
44046     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44050     ac_header_preproc=yes
44051     ;;
44052   no:yes:* )
44053     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44055     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44056 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44057     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44059     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44060 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44063     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44065     (
44066       cat <<\_ASBOX
44067 ## ------------------------------------ ##
44068 ## Report this to bug-coreutils@gnu.org ##
44069 ## ------------------------------------ ##
44070 _ASBOX
44071     ) |
44072       sed "s/^/$as_me: WARNING:     /" >&2
44073     ;;
44074 esac
44075 echo "$as_me:$LINENO: checking for $ac_header" >&5
44076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44078   echo $ECHO_N "(cached) $ECHO_C" >&6
44079 else
44080   eval "$as_ac_Header=\$ac_header_preproc"
44081 fi
44082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44084
44085 fi
44086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44087   cat >>confdefs.h <<_ACEOF
44088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44089 _ACEOF
44090
44091 fi
44092
44093 done
44094
44095 fi
44096
44097
44098 for ac_header in nlist.h
44099 do
44100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44102   echo "$as_me:$LINENO: checking for $ac_header" >&5
44103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44105   echo $ECHO_N "(cached) $ECHO_C" >&6
44106 fi
44107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44109 else
44110   # Is the header compilable?
44111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44113 cat >conftest.$ac_ext <<_ACEOF
44114 /* confdefs.h.  */
44115 _ACEOF
44116 cat confdefs.h >>conftest.$ac_ext
44117 cat >>conftest.$ac_ext <<_ACEOF
44118 /* end confdefs.h.  */
44119 $ac_includes_default
44120 #include <$ac_header>
44121 _ACEOF
44122 rm -f conftest.$ac_objext
44123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44124   (eval $ac_compile) 2>conftest.er1
44125   ac_status=$?
44126   grep -v '^ *+' conftest.er1 >conftest.err
44127   rm -f conftest.er1
44128   cat conftest.err >&5
44129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44130   (exit $ac_status); } &&
44131          { ac_try='test -z "$ac_c_werror_flag"
44132                          || test ! -s conftest.err'
44133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44134   (eval $ac_try) 2>&5
44135   ac_status=$?
44136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44137   (exit $ac_status); }; } &&
44138          { ac_try='test -s conftest.$ac_objext'
44139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44140   (eval $ac_try) 2>&5
44141   ac_status=$?
44142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44143   (exit $ac_status); }; }; then
44144   ac_header_compiler=yes
44145 else
44146   echo "$as_me: failed program was:" >&5
44147 sed 's/^/| /' conftest.$ac_ext >&5
44148
44149 ac_header_compiler=no
44150 fi
44151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44153 echo "${ECHO_T}$ac_header_compiler" >&6
44154
44155 # Is the header present?
44156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44158 cat >conftest.$ac_ext <<_ACEOF
44159 /* confdefs.h.  */
44160 _ACEOF
44161 cat confdefs.h >>conftest.$ac_ext
44162 cat >>conftest.$ac_ext <<_ACEOF
44163 /* end confdefs.h.  */
44164 #include <$ac_header>
44165 _ACEOF
44166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44167   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44168   ac_status=$?
44169   grep -v '^ *+' conftest.er1 >conftest.err
44170   rm -f conftest.er1
44171   cat conftest.err >&5
44172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44173   (exit $ac_status); } >/dev/null; then
44174   if test -s conftest.err; then
44175     ac_cpp_err=$ac_c_preproc_warn_flag
44176     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44177   else
44178     ac_cpp_err=
44179   fi
44180 else
44181   ac_cpp_err=yes
44182 fi
44183 if test -z "$ac_cpp_err"; then
44184   ac_header_preproc=yes
44185 else
44186   echo "$as_me: failed program was:" >&5
44187 sed 's/^/| /' conftest.$ac_ext >&5
44188
44189   ac_header_preproc=no
44190 fi
44191 rm -f conftest.err conftest.$ac_ext
44192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44193 echo "${ECHO_T}$ac_header_preproc" >&6
44194
44195 # So?  What about this header?
44196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44197   yes:no: )
44198     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44202     ac_header_preproc=yes
44203     ;;
44204   no:yes:* )
44205     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44207     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44208 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44209     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44211     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44212 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44215     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44217     (
44218       cat <<\_ASBOX
44219 ## ------------------------------------ ##
44220 ## Report this to bug-coreutils@gnu.org ##
44221 ## ------------------------------------ ##
44222 _ASBOX
44223     ) |
44224       sed "s/^/$as_me: WARNING:     /" >&2
44225     ;;
44226 esac
44227 echo "$as_me:$LINENO: checking for $ac_header" >&5
44228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44230   echo $ECHO_N "(cached) $ECHO_C" >&6
44231 else
44232   eval "$as_ac_Header=\$ac_header_preproc"
44233 fi
44234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44236
44237 fi
44238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44239   cat >>confdefs.h <<_ACEOF
44240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44241 _ACEOF
44242  echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
44243 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
44244 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
44245   echo $ECHO_N "(cached) $ECHO_C" >&6
44246 else
44247   cat >conftest.$ac_ext <<_ACEOF
44248 /* confdefs.h.  */
44249 _ACEOF
44250 cat confdefs.h >>conftest.$ac_ext
44251 cat >>conftest.$ac_ext <<_ACEOF
44252 /* end confdefs.h.  */
44253 #include <nlist.h>
44254
44255 int
44256 main ()
44257 {
44258 static struct nlist ac_aggr;
44259 if (ac_aggr.n_un.n_name)
44260 return 0;
44261   ;
44262   return 0;
44263 }
44264 _ACEOF
44265 rm -f conftest.$ac_objext
44266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44267   (eval $ac_compile) 2>conftest.er1
44268   ac_status=$?
44269   grep -v '^ *+' conftest.er1 >conftest.err
44270   rm -f conftest.er1
44271   cat conftest.err >&5
44272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44273   (exit $ac_status); } &&
44274          { ac_try='test -z "$ac_c_werror_flag"
44275                          || test ! -s conftest.err'
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); }; } &&
44281          { ac_try='test -s conftest.$ac_objext'
44282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44283   (eval $ac_try) 2>&5
44284   ac_status=$?
44285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44286   (exit $ac_status); }; }; then
44287   ac_cv_member_struct_nlist_n_un_n_name=yes
44288 else
44289   echo "$as_me: failed program was:" >&5
44290 sed 's/^/| /' conftest.$ac_ext >&5
44291
44292 cat >conftest.$ac_ext <<_ACEOF
44293 /* confdefs.h.  */
44294 _ACEOF
44295 cat confdefs.h >>conftest.$ac_ext
44296 cat >>conftest.$ac_ext <<_ACEOF
44297 /* end confdefs.h.  */
44298 #include <nlist.h>
44299
44300 int
44301 main ()
44302 {
44303 static struct nlist ac_aggr;
44304 if (sizeof ac_aggr.n_un.n_name)
44305 return 0;
44306   ;
44307   return 0;
44308 }
44309 _ACEOF
44310 rm -f conftest.$ac_objext
44311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44312   (eval $ac_compile) 2>conftest.er1
44313   ac_status=$?
44314   grep -v '^ *+' conftest.er1 >conftest.err
44315   rm -f conftest.er1
44316   cat conftest.err >&5
44317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44318   (exit $ac_status); } &&
44319          { ac_try='test -z "$ac_c_werror_flag"
44320                          || test ! -s conftest.err'
44321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44322   (eval $ac_try) 2>&5
44323   ac_status=$?
44324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44325   (exit $ac_status); }; } &&
44326          { ac_try='test -s conftest.$ac_objext'
44327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44328   (eval $ac_try) 2>&5
44329   ac_status=$?
44330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44331   (exit $ac_status); }; }; then
44332   ac_cv_member_struct_nlist_n_un_n_name=yes
44333 else
44334   echo "$as_me: failed program was:" >&5
44335 sed 's/^/| /' conftest.$ac_ext >&5
44336
44337 ac_cv_member_struct_nlist_n_un_n_name=no
44338 fi
44339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44340 fi
44341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44342 fi
44343 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
44344 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
44345 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
44346
44347 cat >>confdefs.h <<_ACEOF
44348 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
44349 _ACEOF
44350
44351
44352 cat >>confdefs.h <<\_ACEOF
44353 #define NLIST_NAME_UNION 1
44354 _ACEOF
44355
44356 fi
44357
44358
44359 fi
44360
44361 done
44362
44363 fi
44364 done
44365
44366
44367 # Some definitions of getloadavg require that the program be installed setgid.
44368 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
44369 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
44370 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
44371   echo $ECHO_N "(cached) $ECHO_C" >&6
44372 else
44373   cat >conftest.$ac_ext <<_ACEOF
44374 /* confdefs.h.  */
44375 _ACEOF
44376 cat confdefs.h >>conftest.$ac_ext
44377 cat >>conftest.$ac_ext <<_ACEOF
44378 /* end confdefs.h.  */
44379 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
44380 #ifdef LDAV_PRIVILEGED
44381 Yowza Am I SETGID yet
44382 #endif
44383 _ACEOF
44384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44385   $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
44386   ac_cv_func_getloadavg_setgid=yes
44387 else
44388   ac_cv_func_getloadavg_setgid=no
44389 fi
44390 rm -f conftest*
44391
44392 fi
44393 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
44394 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
44395 if test $ac_cv_func_getloadavg_setgid = yes; then
44396   NEED_SETGID=true
44397
44398 cat >>confdefs.h <<\_ACEOF
44399 #define GETLOADAVG_PRIVILEGED 1
44400 _ACEOF
44401
44402 else
44403   NEED_SETGID=false
44404 fi
44405
44406 if test $ac_cv_func_getloadavg_setgid = yes; then
44407   echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
44408 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
44409 if test "${ac_cv_group_kmem+set}" = set; then
44410   echo $ECHO_N "(cached) $ECHO_C" >&6
44411 else
44412    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
44413   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
44414   # If we got an error (system does not support symlinks), try without -L.
44415   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
44416   ac_cv_group_kmem=`echo $ac_ls_output \
44417     | sed -ne 's/[       ][      ]*/ /g;
44418                s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
44419                / /s/.* //;p;'`
44420
44421 fi
44422 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
44423 echo "${ECHO_T}$ac_cv_group_kmem" >&6
44424   KMEM_GROUP=$ac_cv_group_kmem
44425 fi
44426 if test "x$ac_save_LIBS" = x; then
44427   GETLOADAVG_LIBS=$LIBS
44428 else
44429   GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
44430 fi
44431 LIBS=$ac_save_LIBS
44432
44433
44434
44435
44436
44437
44438   # raise is used by at least sort and ls.
44439
44440 for ac_func in raise
44441 do
44442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44443 echo "$as_me:$LINENO: checking for $ac_func" >&5
44444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44445 if eval "test \"\${$as_ac_var+set}\" = set"; then
44446   echo $ECHO_N "(cached) $ECHO_C" >&6
44447 else
44448   cat >conftest.$ac_ext <<_ACEOF
44449 /* confdefs.h.  */
44450 _ACEOF
44451 cat confdefs.h >>conftest.$ac_ext
44452 cat >>conftest.$ac_ext <<_ACEOF
44453 /* end confdefs.h.  */
44454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44456 #define $ac_func innocuous_$ac_func
44457
44458 /* System header to define __stub macros and hopefully few prototypes,
44459     which can conflict with char $ac_func (); below.
44460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44461     <limits.h> exists even on freestanding compilers.  */
44462
44463 #ifdef __STDC__
44464 # include <limits.h>
44465 #else
44466 # include <assert.h>
44467 #endif
44468
44469 #undef $ac_func
44470
44471 /* Override any gcc2 internal prototype to avoid an error.  */
44472 #ifdef __cplusplus
44473 extern "C"
44474 {
44475 #endif
44476 /* We use char because int might match the return type of a gcc2
44477    builtin and then its argument prototype would still apply.  */
44478 char $ac_func ();
44479 /* The GNU C library defines this for functions which it implements
44480     to always fail with ENOSYS.  Some functions are actually named
44481     something starting with __ and the normal name is an alias.  */
44482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44483 choke me
44484 #else
44485 char (*f) () = $ac_func;
44486 #endif
44487 #ifdef __cplusplus
44488 }
44489 #endif
44490
44491 int
44492 main ()
44493 {
44494 return f != $ac_func;
44495   ;
44496   return 0;
44497 }
44498 _ACEOF
44499 rm -f conftest.$ac_objext conftest$ac_exeext
44500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44501   (eval $ac_link) 2>conftest.er1
44502   ac_status=$?
44503   grep -v '^ *+' conftest.er1 >conftest.err
44504   rm -f conftest.er1
44505   cat conftest.err >&5
44506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44507   (exit $ac_status); } &&
44508          { ac_try='test -z "$ac_c_werror_flag"
44509                          || test ! -s conftest.err'
44510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44511   (eval $ac_try) 2>&5
44512   ac_status=$?
44513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44514   (exit $ac_status); }; } &&
44515          { ac_try='test -s conftest$ac_exeext'
44516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44517   (eval $ac_try) 2>&5
44518   ac_status=$?
44519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44520   (exit $ac_status); }; }; then
44521   eval "$as_ac_var=yes"
44522 else
44523   echo "$as_me: failed program was:" >&5
44524 sed 's/^/| /' conftest.$ac_ext >&5
44525
44526 eval "$as_ac_var=no"
44527 fi
44528 rm -f conftest.err conftest.$ac_objext \
44529       conftest$ac_exeext conftest.$ac_ext
44530 fi
44531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44533 if test `eval echo '${'$as_ac_var'}'` = yes; then
44534   cat >>confdefs.h <<_ACEOF
44535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44536 _ACEOF
44537
44538 else
44539   case $LIBOBJS in
44540     "$ac_func.$ac_objext"   | \
44541   *" $ac_func.$ac_objext"   | \
44542     "$ac_func.$ac_objext "* | \
44543   *" $ac_func.$ac_objext "* ) ;;
44544   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
44545 esac
44546
44547 fi
44548 done
44549
44550
44551
44552   # By default, argmatch should fail calling usage (1).
44553
44554 cat >>confdefs.h <<\_ACEOF
44555 #define ARGMATCH_DIE usage (1)
44556 _ACEOF
44557
44558
44559 cat >>confdefs.h <<\_ACEOF
44560 #define ARGMATCH_DIE_DECL extern void usage ()
44561 _ACEOF
44562
44563
44564         echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
44565 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
44566 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
44567   echo $ECHO_N "(cached) $ECHO_C" >&6
44568 else
44569   ac_cv_func_setvbuf_reversed=no
44570    cat >conftest.$ac_ext <<_ACEOF
44571 /* confdefs.h.  */
44572 _ACEOF
44573 cat confdefs.h >>conftest.$ac_ext
44574 cat >>conftest.$ac_ext <<_ACEOF
44575 /* end confdefs.h.  */
44576 #include <stdio.h>
44577 #         if PROTOTYPES
44578            int (setvbuf) (FILE *, int, char *, size_t);
44579 #         endif
44580 int
44581 main ()
44582 {
44583 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
44584   ;
44585   return 0;
44586 }
44587 _ACEOF
44588 rm -f conftest.$ac_objext conftest$ac_exeext
44589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44590   (eval $ac_link) 2>conftest.er1
44591   ac_status=$?
44592   grep -v '^ *+' conftest.er1 >conftest.err
44593   rm -f conftest.er1
44594   cat conftest.err >&5
44595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44596   (exit $ac_status); } &&
44597          { ac_try='test -z "$ac_c_werror_flag"
44598                          || test ! -s conftest.err'
44599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44600   (eval $ac_try) 2>&5
44601   ac_status=$?
44602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44603   (exit $ac_status); }; } &&
44604          { ac_try='test -s conftest$ac_exeext'
44605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44606   (eval $ac_try) 2>&5
44607   ac_status=$?
44608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44609   (exit $ac_status); }; }; then
44610   cat >conftest.$ac_ext <<_ACEOF
44611 /* confdefs.h.  */
44612 _ACEOF
44613 cat confdefs.h >>conftest.$ac_ext
44614 cat >>conftest.$ac_ext <<_ACEOF
44615 /* end confdefs.h.  */
44616 #include <stdio.h>
44617 #            if PROTOTYPES
44618               int (setvbuf) (FILE *, int, char *, size_t);
44619 #            endif
44620 int
44621 main ()
44622 {
44623 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
44624   ;
44625   return 0;
44626 }
44627 _ACEOF
44628 rm -f conftest.$ac_objext conftest$ac_exeext
44629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44630   (eval $ac_link) 2>conftest.er1
44631   ac_status=$?
44632   grep -v '^ *+' conftest.er1 >conftest.err
44633   rm -f conftest.er1
44634   cat conftest.err >&5
44635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44636   (exit $ac_status); } &&
44637          { ac_try='test -z "$ac_c_werror_flag"
44638                          || test ! -s conftest.err'
44639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44640   (eval $ac_try) 2>&5
44641   ac_status=$?
44642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44643   (exit $ac_status); }; } &&
44644          { ac_try='test -s conftest$ac_exeext'
44645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44646   (eval $ac_try) 2>&5
44647   ac_status=$?
44648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44649   (exit $ac_status); }; }; then
44650   # It compiles and links either way, so it must not be declared
44651          # with a prototype and most likely this is a K&R C compiler.
44652          # Try running it.
44653          if test "$cross_compiling" = yes; then
44654   : # Assume setvbuf is not reversed when cross-compiling.
44655 else
44656   cat >conftest.$ac_ext <<_ACEOF
44657 /* confdefs.h.  */
44658 _ACEOF
44659 cat confdefs.h >>conftest.$ac_ext
44660 cat >>conftest.$ac_ext <<_ACEOF
44661 /* end confdefs.h.  */
44662 #include <stdio.h>
44663 int
44664 main ()
44665 {
44666 /* This call has the arguments reversed.
44667                    A reversed system may check and see that the address of buf
44668                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
44669                 char buf;
44670                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
44671                   exit (1);
44672                 putchar ('\r');
44673                 exit (0); /* Non-reversed systems SEGV here.  */
44674   ;
44675   return 0;
44676 }
44677 _ACEOF
44678 rm -f conftest$ac_exeext
44679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44680   (eval $ac_link) 2>&5
44681   ac_status=$?
44682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44685   (eval $ac_try) 2>&5
44686   ac_status=$?
44687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44688   (exit $ac_status); }; }; then
44689   ac_cv_func_setvbuf_reversed=yes
44690 else
44691   echo "$as_me: program exited with status $ac_status" >&5
44692 echo "$as_me: failed program was:" >&5
44693 sed 's/^/| /' conftest.$ac_ext >&5
44694
44695 ( exit $ac_status )
44696 rm -f core *.core
44697 fi
44698 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44699 fi
44700         ac_cv_func_setvbuf_reversed=yes
44701 else
44702   echo "$as_me: failed program was:" >&5
44703 sed 's/^/| /' conftest.$ac_ext >&5
44704
44705 fi
44706 rm -f conftest.err conftest.$ac_objext \
44707       conftest$ac_exeext conftest.$ac_ext
44708 else
44709   echo "$as_me: failed program was:" >&5
44710 sed 's/^/| /' conftest.$ac_ext >&5
44711
44712 fi
44713 rm -f conftest.err conftest.$ac_objext \
44714       conftest$ac_exeext conftest.$ac_ext
44715 fi
44716 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
44717 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
44718 if test $ac_cv_func_setvbuf_reversed = yes; then
44719
44720 cat >>confdefs.h <<\_ACEOF
44721 #define SETVBUF_REVERSED 1
44722 _ACEOF
44723
44724 fi
44725
44726
44727   # used by sleep and shred
44728
44729
44730 for ac_func in gettimeofday
44731 do
44732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44733 echo "$as_me:$LINENO: checking for $ac_func" >&5
44734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44735 if eval "test \"\${$as_ac_var+set}\" = set"; then
44736   echo $ECHO_N "(cached) $ECHO_C" >&6
44737 else
44738   cat >conftest.$ac_ext <<_ACEOF
44739 /* confdefs.h.  */
44740 _ACEOF
44741 cat confdefs.h >>conftest.$ac_ext
44742 cat >>conftest.$ac_ext <<_ACEOF
44743 /* end confdefs.h.  */
44744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44746 #define $ac_func innocuous_$ac_func
44747
44748 /* System header to define __stub macros and hopefully few prototypes,
44749     which can conflict with char $ac_func (); below.
44750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44751     <limits.h> exists even on freestanding compilers.  */
44752
44753 #ifdef __STDC__
44754 # include <limits.h>
44755 #else
44756 # include <assert.h>
44757 #endif
44758
44759 #undef $ac_func
44760
44761 /* Override any gcc2 internal prototype to avoid an error.  */
44762 #ifdef __cplusplus
44763 extern "C"
44764 {
44765 #endif
44766 /* We use char because int might match the return type of a gcc2
44767    builtin and then its argument prototype would still apply.  */
44768 char $ac_func ();
44769 /* The GNU C library defines this for functions which it implements
44770     to always fail with ENOSYS.  Some functions are actually named
44771     something starting with __ and the normal name is an alias.  */
44772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44773 choke me
44774 #else
44775 char (*f) () = $ac_func;
44776 #endif
44777 #ifdef __cplusplus
44778 }
44779 #endif
44780
44781 int
44782 main ()
44783 {
44784 return f != $ac_func;
44785   ;
44786   return 0;
44787 }
44788 _ACEOF
44789 rm -f conftest.$ac_objext conftest$ac_exeext
44790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44791   (eval $ac_link) 2>conftest.er1
44792   ac_status=$?
44793   grep -v '^ *+' conftest.er1 >conftest.err
44794   rm -f conftest.er1
44795   cat conftest.err >&5
44796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44797   (exit $ac_status); } &&
44798          { ac_try='test -z "$ac_c_werror_flag"
44799                          || test ! -s conftest.err'
44800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44801   (eval $ac_try) 2>&5
44802   ac_status=$?
44803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44804   (exit $ac_status); }; } &&
44805          { ac_try='test -s conftest$ac_exeext'
44806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44807   (eval $ac_try) 2>&5
44808   ac_status=$?
44809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44810   (exit $ac_status); }; }; then
44811   eval "$as_ac_var=yes"
44812 else
44813   echo "$as_me: failed program was:" >&5
44814 sed 's/^/| /' conftest.$ac_ext >&5
44815
44816 eval "$as_ac_var=no"
44817 fi
44818 rm -f conftest.err conftest.$ac_objext \
44819       conftest$ac_exeext conftest.$ac_ext
44820 fi
44821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44822 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44823 if test `eval echo '${'$as_ac_var'}'` = yes; then
44824   cat >>confdefs.h <<_ACEOF
44825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44826 _ACEOF
44827
44828 fi
44829 done
44830
44831
44832
44833  echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
44834 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
44835 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
44836   echo $ECHO_N "(cached) $ECHO_C" >&6
44837 else
44838   if test "$cross_compiling" = yes; then
44839          jm_cv_func_gettimeofday_clobber=yes
44840 else
44841   cat >conftest.$ac_ext <<_ACEOF
44842 /* confdefs.h.  */
44843 _ACEOF
44844 cat confdefs.h >>conftest.$ac_ext
44845 cat >>conftest.$ac_ext <<_ACEOF
44846 /* end confdefs.h.  */
44847
44848 #include <stdio.h>
44849 #include <string.h>
44850
44851 #if TIME_WITH_SYS_TIME
44852 # include <sys/time.h>
44853 # include <time.h>
44854 #else
44855 # if HAVE_SYS_TIME_H
44856 #  include <sys/time.h>
44857 # else
44858 #  include <time.h>
44859 # endif
44860 #endif
44861
44862 #include <stdlib.h>
44863
44864 int
44865 main ()
44866 {
44867   time_t t = 0;
44868   struct tm *lt;
44869   struct tm saved_lt;
44870   struct timeval tv;
44871   lt = localtime (&t);
44872   saved_lt = *lt;
44873   gettimeofday (&tv, NULL);
44874   if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
44875     exit (1);
44876
44877   exit (0);
44878 }
44879
44880 _ACEOF
44881 rm -f conftest$ac_exeext
44882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44883   (eval $ac_link) 2>&5
44884   ac_status=$?
44885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44886   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44888   (eval $ac_try) 2>&5
44889   ac_status=$?
44890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44891   (exit $ac_status); }; }; then
44892   jm_cv_func_gettimeofday_clobber=no
44893 else
44894   echo "$as_me: program exited with status $ac_status" >&5
44895 echo "$as_me: failed program was:" >&5
44896 sed 's/^/| /' conftest.$ac_ext >&5
44897
44898 ( exit $ac_status )
44899 jm_cv_func_gettimeofday_clobber=yes
44900 fi
44901 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44902 fi
44903
44904 fi
44905 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
44906 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
44907   if test $jm_cv_func_gettimeofday_clobber = yes; then
44908
44909   case $LIBOBJS in
44910     "gettimeofday.$ac_objext"   | \
44911   *" gettimeofday.$ac_objext"   | \
44912     "gettimeofday.$ac_objext "* | \
44913   *" gettimeofday.$ac_objext "* ) ;;
44914   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
44915 esac
44916
44917
44918 cat >>confdefs.h <<\_ACEOF
44919 #define gmtime rpl_gmtime
44920 _ACEOF
44921
44922
44923 cat >>confdefs.h <<\_ACEOF
44924 #define localtime rpl_localtime
44925 _ACEOF
44926
44927
44928
44929
44930 cat >>confdefs.h <<\_ACEOF
44931 #define gettimeofday rpl_gettimeofday
44932 _ACEOF
44933
44934
44935 cat >>confdefs.h <<\_ACEOF
44936 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
44937 _ACEOF
44938
44939
44940
44941
44942   fi
44943
44944
44945
44946
44947
44948
44949
44950
44951
44952
44953
44954
44955
44956
44957
44958
44959
44960
44961
44962
44963
44964
44965
44966
44967
44968
44969
44970 for ac_func in \
44971     endgrent \
44972     endpwent \
44973     fdatasync \
44974     ftruncate \
44975     gethrtime \
44976     hasmntopt \
44977     isascii \
44978     iswspace \
44979     lchown \
44980     listmntent \
44981     localeconv \
44982     memcpy \
44983     mempcpy \
44984     mkfifo \
44985     realpath \
44986     sethostname \
44987     strchr \
44988     strerror \
44989     strrchr \
44990     sysctl \
44991     sysinfo \
44992     wcrtomb \
44993     tzset \
44994
44995 do
44996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44997 echo "$as_me:$LINENO: checking for $ac_func" >&5
44998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44999 if eval "test \"\${$as_ac_var+set}\" = set"; then
45000   echo $ECHO_N "(cached) $ECHO_C" >&6
45001 else
45002   cat >conftest.$ac_ext <<_ACEOF
45003 /* confdefs.h.  */
45004 _ACEOF
45005 cat confdefs.h >>conftest.$ac_ext
45006 cat >>conftest.$ac_ext <<_ACEOF
45007 /* end confdefs.h.  */
45008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45010 #define $ac_func innocuous_$ac_func
45011
45012 /* System header to define __stub macros and hopefully few prototypes,
45013     which can conflict with char $ac_func (); below.
45014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45015     <limits.h> exists even on freestanding compilers.  */
45016
45017 #ifdef __STDC__
45018 # include <limits.h>
45019 #else
45020 # include <assert.h>
45021 #endif
45022
45023 #undef $ac_func
45024
45025 /* Override any gcc2 internal prototype to avoid an error.  */
45026 #ifdef __cplusplus
45027 extern "C"
45028 {
45029 #endif
45030 /* We use char because int might match the return type of a gcc2
45031    builtin and then its argument prototype would still apply.  */
45032 char $ac_func ();
45033 /* The GNU C library defines this for functions which it implements
45034     to always fail with ENOSYS.  Some functions are actually named
45035     something starting with __ and the normal name is an alias.  */
45036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45037 choke me
45038 #else
45039 char (*f) () = $ac_func;
45040 #endif
45041 #ifdef __cplusplus
45042 }
45043 #endif
45044
45045 int
45046 main ()
45047 {
45048 return f != $ac_func;
45049   ;
45050   return 0;
45051 }
45052 _ACEOF
45053 rm -f conftest.$ac_objext conftest$ac_exeext
45054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45055   (eval $ac_link) 2>conftest.er1
45056   ac_status=$?
45057   grep -v '^ *+' conftest.er1 >conftest.err
45058   rm -f conftest.er1
45059   cat conftest.err >&5
45060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45061   (exit $ac_status); } &&
45062          { ac_try='test -z "$ac_c_werror_flag"
45063                          || test ! -s conftest.err'
45064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45065   (eval $ac_try) 2>&5
45066   ac_status=$?
45067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45068   (exit $ac_status); }; } &&
45069          { ac_try='test -s conftest$ac_exeext'
45070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45071   (eval $ac_try) 2>&5
45072   ac_status=$?
45073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45074   (exit $ac_status); }; }; then
45075   eval "$as_ac_var=yes"
45076 else
45077   echo "$as_me: failed program was:" >&5
45078 sed 's/^/| /' conftest.$ac_ext >&5
45079
45080 eval "$as_ac_var=no"
45081 fi
45082 rm -f conftest.err conftest.$ac_objext \
45083       conftest$ac_exeext conftest.$ac_ext
45084 fi
45085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45087 if test `eval echo '${'$as_ac_var'}'` = yes; then
45088   cat >>confdefs.h <<_ACEOF
45089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45090 _ACEOF
45091
45092 fi
45093 done
45094
45095
45096   # for test.c
45097
45098
45099 for ac_func in setreuid setregid
45100 do
45101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45102 echo "$as_me:$LINENO: checking for $ac_func" >&5
45103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45104 if eval "test \"\${$as_ac_var+set}\" = set"; then
45105   echo $ECHO_N "(cached) $ECHO_C" >&6
45106 else
45107   cat >conftest.$ac_ext <<_ACEOF
45108 /* confdefs.h.  */
45109 _ACEOF
45110 cat confdefs.h >>conftest.$ac_ext
45111 cat >>conftest.$ac_ext <<_ACEOF
45112 /* end confdefs.h.  */
45113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45115 #define $ac_func innocuous_$ac_func
45116
45117 /* System header to define __stub macros and hopefully few prototypes,
45118     which can conflict with char $ac_func (); below.
45119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45120     <limits.h> exists even on freestanding compilers.  */
45121
45122 #ifdef __STDC__
45123 # include <limits.h>
45124 #else
45125 # include <assert.h>
45126 #endif
45127
45128 #undef $ac_func
45129
45130 /* Override any gcc2 internal prototype to avoid an error.  */
45131 #ifdef __cplusplus
45132 extern "C"
45133 {
45134 #endif
45135 /* We use char because int might match the return type of a gcc2
45136    builtin and then its argument prototype would still apply.  */
45137 char $ac_func ();
45138 /* The GNU C library defines this for functions which it implements
45139     to always fail with ENOSYS.  Some functions are actually named
45140     something starting with __ and the normal name is an alias.  */
45141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45142 choke me
45143 #else
45144 char (*f) () = $ac_func;
45145 #endif
45146 #ifdef __cplusplus
45147 }
45148 #endif
45149
45150 int
45151 main ()
45152 {
45153 return f != $ac_func;
45154   ;
45155   return 0;
45156 }
45157 _ACEOF
45158 rm -f conftest.$ac_objext conftest$ac_exeext
45159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45160   (eval $ac_link) 2>conftest.er1
45161   ac_status=$?
45162   grep -v '^ *+' conftest.er1 >conftest.err
45163   rm -f conftest.er1
45164   cat conftest.err >&5
45165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45166   (exit $ac_status); } &&
45167          { ac_try='test -z "$ac_c_werror_flag"
45168                          || test ! -s conftest.err'
45169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45170   (eval $ac_try) 2>&5
45171   ac_status=$?
45172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45173   (exit $ac_status); }; } &&
45174          { ac_try='test -s conftest$ac_exeext'
45175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45176   (eval $ac_try) 2>&5
45177   ac_status=$?
45178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45179   (exit $ac_status); }; }; then
45180   eval "$as_ac_var=yes"
45181 else
45182   echo "$as_me: failed program was:" >&5
45183 sed 's/^/| /' conftest.$ac_ext >&5
45184
45185 eval "$as_ac_var=no"
45186 fi
45187 rm -f conftest.err conftest.$ac_objext \
45188       conftest$ac_exeext conftest.$ac_ext
45189 fi
45190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45192 if test `eval echo '${'$as_ac_var'}'` = yes; then
45193   cat >>confdefs.h <<_ACEOF
45194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45195 _ACEOF
45196
45197 fi
45198 done
45199
45200
45201   echo "$as_me:$LINENO: checking for working strtod" >&5
45202 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
45203 if test "${ac_cv_func_strtod+set}" = set; then
45204   echo $ECHO_N "(cached) $ECHO_C" >&6
45205 else
45206   if test "$cross_compiling" = yes; then
45207   ac_cv_func_strtod=no
45208 else
45209   cat >conftest.$ac_ext <<_ACEOF
45210 /* confdefs.h.  */
45211 _ACEOF
45212 cat confdefs.h >>conftest.$ac_ext
45213 cat >>conftest.$ac_ext <<_ACEOF
45214 /* end confdefs.h.  */
45215
45216 double strtod ();
45217 int
45218 main()
45219 {
45220   {
45221     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
45222     char *string = " +69";
45223     char *term;
45224     double value;
45225     value = strtod (string, &term);
45226     if (value != 69 || term != (string + 4))
45227       exit (1);
45228   }
45229
45230   {
45231     /* Under Solaris 2.4, strtod returns the wrong value for the
45232        terminating character under some conditions.  */
45233     char *string = "NaN";
45234     char *term;
45235     strtod (string, &term);
45236     if (term != string && *(term - 1) == 0)
45237       exit (1);
45238   }
45239   exit (0);
45240 }
45241
45242 _ACEOF
45243 rm -f conftest$ac_exeext
45244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45245   (eval $ac_link) 2>&5
45246   ac_status=$?
45247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45248   (exit $ac_status); } && { ac_try='./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_strtod=yes
45255 else
45256   echo "$as_me: program exited with status $ac_status" >&5
45257 echo "$as_me: failed program was:" >&5
45258 sed 's/^/| /' conftest.$ac_ext >&5
45259
45260 ( exit $ac_status )
45261 ac_cv_func_strtod=no
45262 fi
45263 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45264 fi
45265 fi
45266 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
45267 echo "${ECHO_T}$ac_cv_func_strtod" >&6
45268 if test $ac_cv_func_strtod = no; then
45269   case $LIBOBJS in
45270     "strtod.$ac_objext"   | \
45271   *" strtod.$ac_objext"   | \
45272     "strtod.$ac_objext "* | \
45273   *" strtod.$ac_objext "* ) ;;
45274   *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
45275 esac
45276
45277 echo "$as_me:$LINENO: checking for pow" >&5
45278 echo $ECHO_N "checking for pow... $ECHO_C" >&6
45279 if test "${ac_cv_func_pow+set}" = set; then
45280   echo $ECHO_N "(cached) $ECHO_C" >&6
45281 else
45282   cat >conftest.$ac_ext <<_ACEOF
45283 /* confdefs.h.  */
45284 _ACEOF
45285 cat confdefs.h >>conftest.$ac_ext
45286 cat >>conftest.$ac_ext <<_ACEOF
45287 /* end confdefs.h.  */
45288 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
45289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45290 #define pow innocuous_pow
45291
45292 /* System header to define __stub macros and hopefully few prototypes,
45293     which can conflict with char pow (); below.
45294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45295     <limits.h> exists even on freestanding compilers.  */
45296
45297 #ifdef __STDC__
45298 # include <limits.h>
45299 #else
45300 # include <assert.h>
45301 #endif
45302
45303 #undef pow
45304
45305 /* Override any gcc2 internal prototype to avoid an error.  */
45306 #ifdef __cplusplus
45307 extern "C"
45308 {
45309 #endif
45310 /* We use char because int might match the return type of a gcc2
45311    builtin and then its argument prototype would still apply.  */
45312 char pow ();
45313 /* The GNU C library defines this for functions which it implements
45314     to always fail with ENOSYS.  Some functions are actually named
45315     something starting with __ and the normal name is an alias.  */
45316 #if defined (__stub_pow) || defined (__stub___pow)
45317 choke me
45318 #else
45319 char (*f) () = pow;
45320 #endif
45321 #ifdef __cplusplus
45322 }
45323 #endif
45324
45325 int
45326 main ()
45327 {
45328 return f != pow;
45329   ;
45330   return 0;
45331 }
45332 _ACEOF
45333 rm -f conftest.$ac_objext conftest$ac_exeext
45334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45335   (eval $ac_link) 2>conftest.er1
45336   ac_status=$?
45337   grep -v '^ *+' conftest.er1 >conftest.err
45338   rm -f conftest.er1
45339   cat conftest.err >&5
45340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45341   (exit $ac_status); } &&
45342          { ac_try='test -z "$ac_c_werror_flag"
45343                          || test ! -s conftest.err'
45344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45345   (eval $ac_try) 2>&5
45346   ac_status=$?
45347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45348   (exit $ac_status); }; } &&
45349          { ac_try='test -s conftest$ac_exeext'
45350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45351   (eval $ac_try) 2>&5
45352   ac_status=$?
45353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45354   (exit $ac_status); }; }; then
45355   ac_cv_func_pow=yes
45356 else
45357   echo "$as_me: failed program was:" >&5
45358 sed 's/^/| /' conftest.$ac_ext >&5
45359
45360 ac_cv_func_pow=no
45361 fi
45362 rm -f conftest.err conftest.$ac_objext \
45363       conftest$ac_exeext conftest.$ac_ext
45364 fi
45365 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
45366 echo "${ECHO_T}$ac_cv_func_pow" >&6
45367
45368 if test $ac_cv_func_pow = no; then
45369   echo "$as_me:$LINENO: checking for pow in -lm" >&5
45370 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
45371 if test "${ac_cv_lib_m_pow+set}" = set; then
45372   echo $ECHO_N "(cached) $ECHO_C" >&6
45373 else
45374   ac_check_lib_save_LIBS=$LIBS
45375 LIBS="-lm  $LIBS"
45376 cat >conftest.$ac_ext <<_ACEOF
45377 /* confdefs.h.  */
45378 _ACEOF
45379 cat confdefs.h >>conftest.$ac_ext
45380 cat >>conftest.$ac_ext <<_ACEOF
45381 /* end confdefs.h.  */
45382
45383 /* Override any gcc2 internal prototype to avoid an error.  */
45384 #ifdef __cplusplus
45385 extern "C"
45386 #endif
45387 /* We use char because int might match the return type of a gcc2
45388    builtin and then its argument prototype would still apply.  */
45389 char pow ();
45390 int
45391 main ()
45392 {
45393 pow ();
45394   ;
45395   return 0;
45396 }
45397 _ACEOF
45398 rm -f conftest.$ac_objext conftest$ac_exeext
45399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45400   (eval $ac_link) 2>conftest.er1
45401   ac_status=$?
45402   grep -v '^ *+' conftest.er1 >conftest.err
45403   rm -f conftest.er1
45404   cat conftest.err >&5
45405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45406   (exit $ac_status); } &&
45407          { ac_try='test -z "$ac_c_werror_flag"
45408                          || test ! -s conftest.err'
45409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45410   (eval $ac_try) 2>&5
45411   ac_status=$?
45412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45413   (exit $ac_status); }; } &&
45414          { ac_try='test -s conftest$ac_exeext'
45415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45416   (eval $ac_try) 2>&5
45417   ac_status=$?
45418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45419   (exit $ac_status); }; }; then
45420   ac_cv_lib_m_pow=yes
45421 else
45422   echo "$as_me: failed program was:" >&5
45423 sed 's/^/| /' conftest.$ac_ext >&5
45424
45425 ac_cv_lib_m_pow=no
45426 fi
45427 rm -f conftest.err conftest.$ac_objext \
45428       conftest$ac_exeext conftest.$ac_ext
45429 LIBS=$ac_check_lib_save_LIBS
45430 fi
45431 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
45432 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
45433 if test $ac_cv_lib_m_pow = yes; then
45434   POW_LIB=-lm
45435 else
45436   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
45437 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
45438 fi
45439
45440 fi
45441
45442 fi
45443
45444
45445
45446
45447   # See if linking `seq' requires -lm.
45448   # It does on nearly every system.  The single exception (so far) is
45449   # BeOS which has all the math functions in the normal runtime library
45450   # and doesn't have a separate math library.
45451
45452
45453   ac_seq_body='
45454      static double x, y;
45455      x = floor (x);
45456      x = rint (x);
45457      x = modf (x, &y);'
45458   cat >conftest.$ac_ext <<_ACEOF
45459 /* confdefs.h.  */
45460 _ACEOF
45461 cat confdefs.h >>conftest.$ac_ext
45462 cat >>conftest.$ac_ext <<_ACEOF
45463 /* end confdefs.h.  */
45464 #include <math.h>
45465 int
45466 main ()
45467 {
45468 $ac_seq_body
45469   ;
45470   return 0;
45471 }
45472 _ACEOF
45473 rm -f conftest.$ac_objext conftest$ac_exeext
45474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45475   (eval $ac_link) 2>conftest.er1
45476   ac_status=$?
45477   grep -v '^ *+' conftest.er1 >conftest.err
45478   rm -f conftest.er1
45479   cat conftest.err >&5
45480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45481   (exit $ac_status); } &&
45482          { ac_try='test -z "$ac_c_werror_flag"
45483                          || test ! -s conftest.err'
45484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45485   (eval $ac_try) 2>&5
45486   ac_status=$?
45487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45488   (exit $ac_status); }; } &&
45489          { ac_try='test -s conftest$ac_exeext'
45490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45491   (eval $ac_try) 2>&5
45492   ac_status=$?
45493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45494   (exit $ac_status); }; }; then
45495   :
45496 else
45497   echo "$as_me: failed program was:" >&5
45498 sed 's/^/| /' conftest.$ac_ext >&5
45499
45500 ac_seq_save_LIBS="$LIBS"
45501      LIBS="$LIBS -lm"
45502      cat >conftest.$ac_ext <<_ACEOF
45503 /* confdefs.h.  */
45504 _ACEOF
45505 cat confdefs.h >>conftest.$ac_ext
45506 cat >>conftest.$ac_ext <<_ACEOF
45507 /* end confdefs.h.  */
45508 #include <math.h>
45509 int
45510 main ()
45511 {
45512 $ac_seq_body
45513   ;
45514   return 0;
45515 }
45516 _ACEOF
45517 rm -f conftest.$ac_objext conftest$ac_exeext
45518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45519   (eval $ac_link) 2>conftest.er1
45520   ac_status=$?
45521   grep -v '^ *+' conftest.er1 >conftest.err
45522   rm -f conftest.er1
45523   cat conftest.err >&5
45524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45525   (exit $ac_status); } &&
45526          { ac_try='test -z "$ac_c_werror_flag"
45527                          || test ! -s conftest.err'
45528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45529   (eval $ac_try) 2>&5
45530   ac_status=$?
45531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45532   (exit $ac_status); }; } &&
45533          { ac_try='test -s conftest$ac_exeext'
45534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45535   (eval $ac_try) 2>&5
45536   ac_status=$?
45537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45538   (exit $ac_status); }; }; then
45539   SEQ_LIBM=-lm
45540 else
45541   echo "$as_me: failed program was:" >&5
45542 sed 's/^/| /' conftest.$ac_ext >&5
45543
45544 fi
45545 rm -f conftest.err conftest.$ac_objext \
45546       conftest$ac_exeext conftest.$ac_ext
45547      LIBS="$ac_seq_save_LIBS"
45548
45549 fi
45550 rm -f conftest.err conftest.$ac_objext \
45551       conftest$ac_exeext conftest.$ac_ext
45552
45553
45554   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
45555 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
45556 if test "${am_cv_langinfo_codeset+set}" = set; then
45557   echo $ECHO_N "(cached) $ECHO_C" >&6
45558 else
45559   cat >conftest.$ac_ext <<_ACEOF
45560 /* confdefs.h.  */
45561 _ACEOF
45562 cat confdefs.h >>conftest.$ac_ext
45563 cat >>conftest.$ac_ext <<_ACEOF
45564 /* end confdefs.h.  */
45565 #include <langinfo.h>
45566 int
45567 main ()
45568 {
45569 char* cs = nl_langinfo(CODESET);
45570   ;
45571   return 0;
45572 }
45573 _ACEOF
45574 rm -f conftest.$ac_objext conftest$ac_exeext
45575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45576   (eval $ac_link) 2>conftest.er1
45577   ac_status=$?
45578   grep -v '^ *+' conftest.er1 >conftest.err
45579   rm -f conftest.er1
45580   cat conftest.err >&5
45581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45582   (exit $ac_status); } &&
45583          { ac_try='test -z "$ac_c_werror_flag"
45584                          || test ! -s conftest.err'
45585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45586   (eval $ac_try) 2>&5
45587   ac_status=$?
45588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45589   (exit $ac_status); }; } &&
45590          { ac_try='test -s conftest$ac_exeext'
45591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45592   (eval $ac_try) 2>&5
45593   ac_status=$?
45594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45595   (exit $ac_status); }; }; then
45596   am_cv_langinfo_codeset=yes
45597 else
45598   echo "$as_me: failed program was:" >&5
45599 sed 's/^/| /' conftest.$ac_ext >&5
45600
45601 am_cv_langinfo_codeset=no
45602 fi
45603 rm -f conftest.err conftest.$ac_objext \
45604       conftest$ac_exeext conftest.$ac_ext
45605
45606 fi
45607 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
45608 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
45609   if test $am_cv_langinfo_codeset = yes; then
45610
45611 cat >>confdefs.h <<\_ACEOF
45612 #define HAVE_LANGINFO_CODESET 1
45613 _ACEOF
45614
45615   fi
45616
45617
45618     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
45619 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
45620 if test "${ac_cv_gnu_library_2_1+set}" = set; then
45621   echo $ECHO_N "(cached) $ECHO_C" >&6
45622 else
45623   cat >conftest.$ac_ext <<_ACEOF
45624 /* confdefs.h.  */
45625 _ACEOF
45626 cat confdefs.h >>conftest.$ac_ext
45627 cat >>conftest.$ac_ext <<_ACEOF
45628 /* end confdefs.h.  */
45629
45630 #include <features.h>
45631 #ifdef __GNU_LIBRARY__
45632  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
45633   Lucky GNU user
45634  #endif
45635 #endif
45636
45637 _ACEOF
45638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45639   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
45640   ac_cv_gnu_library_2_1=yes
45641 else
45642   ac_cv_gnu_library_2_1=no
45643 fi
45644 rm -f conftest*
45645
45646
45647
45648 fi
45649 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
45650 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
45651
45652     GLIBC21="$ac_cv_gnu_library_2_1"
45653
45654
45655
45656
45657
45658
45659
45660           am_save_CPPFLAGS="$CPPFLAGS"
45661
45662   for element in $INCICONV; do
45663     haveit=
45664     for x in $CPPFLAGS; do
45665
45666   acl_save_prefix="$prefix"
45667   prefix="$acl_final_prefix"
45668   acl_save_exec_prefix="$exec_prefix"
45669   exec_prefix="$acl_final_exec_prefix"
45670   eval x=\"$x\"
45671   exec_prefix="$acl_save_exec_prefix"
45672   prefix="$acl_save_prefix"
45673
45674       if test "X$x" = "X$element"; then
45675         haveit=yes
45676         break
45677       fi
45678     done
45679     if test -z "$haveit"; then
45680       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
45681     fi
45682   done
45683
45684
45685   echo "$as_me:$LINENO: checking for iconv" >&5
45686 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
45687 if test "${am_cv_func_iconv+set}" = set; then
45688   echo $ECHO_N "(cached) $ECHO_C" >&6
45689 else
45690
45691     am_cv_func_iconv="no, consider installing GNU libiconv"
45692     am_cv_lib_iconv=no
45693     cat >conftest.$ac_ext <<_ACEOF
45694 /* confdefs.h.  */
45695 _ACEOF
45696 cat confdefs.h >>conftest.$ac_ext
45697 cat >>conftest.$ac_ext <<_ACEOF
45698 /* end confdefs.h.  */
45699 #include <stdlib.h>
45700 #include <iconv.h>
45701 int
45702 main ()
45703 {
45704 iconv_t cd = iconv_open("","");
45705        iconv(cd,NULL,NULL,NULL,NULL);
45706        iconv_close(cd);
45707   ;
45708   return 0;
45709 }
45710 _ACEOF
45711 rm -f conftest.$ac_objext conftest$ac_exeext
45712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45713   (eval $ac_link) 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); } &&
45720          { ac_try='test -z "$ac_c_werror_flag"
45721                          || test ! -s conftest.err'
45722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45723   (eval $ac_try) 2>&5
45724   ac_status=$?
45725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45726   (exit $ac_status); }; } &&
45727          { ac_try='test -s conftest$ac_exeext'
45728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45729   (eval $ac_try) 2>&5
45730   ac_status=$?
45731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45732   (exit $ac_status); }; }; then
45733   am_cv_func_iconv=yes
45734 else
45735   echo "$as_me: failed program was:" >&5
45736 sed 's/^/| /' conftest.$ac_ext >&5
45737
45738 fi
45739 rm -f conftest.err conftest.$ac_objext \
45740       conftest$ac_exeext conftest.$ac_ext
45741     if test "$am_cv_func_iconv" != yes; then
45742       am_save_LIBS="$LIBS"
45743       LIBS="$LIBS $LIBICONV"
45744       cat >conftest.$ac_ext <<_ACEOF
45745 /* confdefs.h.  */
45746 _ACEOF
45747 cat confdefs.h >>conftest.$ac_ext
45748 cat >>conftest.$ac_ext <<_ACEOF
45749 /* end confdefs.h.  */
45750 #include <stdlib.h>
45751 #include <iconv.h>
45752 int
45753 main ()
45754 {
45755 iconv_t cd = iconv_open("","");
45756          iconv(cd,NULL,NULL,NULL,NULL);
45757          iconv_close(cd);
45758   ;
45759   return 0;
45760 }
45761 _ACEOF
45762 rm -f conftest.$ac_objext conftest$ac_exeext
45763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45764   (eval $ac_link) 2>conftest.er1
45765   ac_status=$?
45766   grep -v '^ *+' conftest.er1 >conftest.err
45767   rm -f conftest.er1
45768   cat conftest.err >&5
45769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45770   (exit $ac_status); } &&
45771          { ac_try='test -z "$ac_c_werror_flag"
45772                          || test ! -s conftest.err'
45773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45774   (eval $ac_try) 2>&5
45775   ac_status=$?
45776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45777   (exit $ac_status); }; } &&
45778          { ac_try='test -s conftest$ac_exeext'
45779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45780   (eval $ac_try) 2>&5
45781   ac_status=$?
45782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45783   (exit $ac_status); }; }; then
45784   am_cv_lib_iconv=yes
45785         am_cv_func_iconv=yes
45786 else
45787   echo "$as_me: failed program was:" >&5
45788 sed 's/^/| /' conftest.$ac_ext >&5
45789
45790 fi
45791 rm -f conftest.err conftest.$ac_objext \
45792       conftest$ac_exeext conftest.$ac_ext
45793       LIBS="$am_save_LIBS"
45794     fi
45795
45796 fi
45797 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
45798 echo "${ECHO_T}$am_cv_func_iconv" >&6
45799   if test "$am_cv_func_iconv" = yes; then
45800
45801 cat >>confdefs.h <<\_ACEOF
45802 #define HAVE_ICONV 1
45803 _ACEOF
45804
45805   fi
45806   if test "$am_cv_lib_iconv" = yes; then
45807     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
45808 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
45809     echo "$as_me:$LINENO: result: $LIBICONV" >&5
45810 echo "${ECHO_T}$LIBICONV" >&6
45811   else
45812             CPPFLAGS="$am_save_CPPFLAGS"
45813     LIBICONV=
45814     LTLIBICONV=
45815   fi
45816
45817
45818
45819   if test "$am_cv_func_iconv" = yes; then
45820     echo "$as_me:$LINENO: checking for iconv declaration" >&5
45821 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
45822     if test "${am_cv_proto_iconv+set}" = set; then
45823   echo $ECHO_N "(cached) $ECHO_C" >&6
45824 else
45825
45826       cat >conftest.$ac_ext <<_ACEOF
45827 /* confdefs.h.  */
45828 _ACEOF
45829 cat confdefs.h >>conftest.$ac_ext
45830 cat >>conftest.$ac_ext <<_ACEOF
45831 /* end confdefs.h.  */
45832
45833 #include <stdlib.h>
45834 #include <iconv.h>
45835 extern
45836 #ifdef __cplusplus
45837 "C"
45838 #endif
45839 #if defined(__STDC__) || defined(__cplusplus)
45840 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
45841 #else
45842 size_t iconv();
45843 #endif
45844
45845 int
45846 main ()
45847 {
45848
45849   ;
45850   return 0;
45851 }
45852 _ACEOF
45853 rm -f conftest.$ac_objext
45854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45855   (eval $ac_compile) 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_objext'
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   am_cv_proto_iconv_arg1=""
45876 else
45877   echo "$as_me: failed program was:" >&5
45878 sed 's/^/| /' conftest.$ac_ext >&5
45879
45880 am_cv_proto_iconv_arg1="const"
45881 fi
45882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45883       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);"
45884 fi
45885
45886     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
45887     echo "$as_me:$LINENO: result: ${ac_t:-
45888          }$am_cv_proto_iconv" >&5
45889 echo "${ECHO_T}${ac_t:-
45890          }$am_cv_proto_iconv" >&6
45891
45892 cat >>confdefs.h <<_ACEOF
45893 #define ICONV_CONST $am_cv_proto_iconv_arg1
45894 _ACEOF
45895
45896   fi
45897
45898     echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
45899 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
45900 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
45901   echo $ECHO_N "(cached) $ECHO_C" >&6
45902 else
45903
45904       if test "$cross_compiling" = yes; then
45905   jm_cv_func_unlink_busy_text=no
45906
45907 else
45908   cat >conftest.$ac_ext <<_ACEOF
45909 /* confdefs.h.  */
45910 _ACEOF
45911 cat confdefs.h >>conftest.$ac_ext
45912 cat >>conftest.$ac_ext <<_ACEOF
45913 /* end confdefs.h.  */
45914
45915         main (argc, argv)
45916           int argc;
45917           char **argv;
45918         {
45919           if (!argc)
45920             exit (-1);
45921           exit (unlink (argv[0]));
45922         }
45923
45924 _ACEOF
45925 rm -f conftest$ac_exeext
45926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45927   (eval $ac_link) 2>&5
45928   ac_status=$?
45929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45932   (eval $ac_try) 2>&5
45933   ac_status=$?
45934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45935   (exit $ac_status); }; }; then
45936   jm_cv_func_unlink_busy_text=yes
45937 else
45938   echo "$as_me: program exited with status $ac_status" >&5
45939 echo "$as_me: failed program was:" >&5
45940 sed 's/^/| /' conftest.$ac_ext >&5
45941
45942 ( exit $ac_status )
45943 jm_cv_func_unlink_busy_text=no
45944 fi
45945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45946 fi
45947
45948
45949 fi
45950 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
45951 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
45952
45953   if test $jm_cv_func_unlink_busy_text = no; then
45954     INSTALL=$ac_install_sh
45955   fi
45956
45957
45958   # These tests are for df.
45959
45960
45961   if test $gl_cv_list_mounted_fs = yes && test $gl_cv_fs_space = yes; then
45962     DF_PROG='df$(EXEEXT)'
45963   fi
45964
45965
45966
45967   # If any of these functions don't exist (e.g. DJGPP 2.03),
45968   # use the corresponding stub.
45969   echo "$as_me:$LINENO: checking for fchdir" >&5
45970 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
45971 if test "${ac_cv_func_fchdir+set}" = set; then
45972   echo $ECHO_N "(cached) $ECHO_C" >&6
45973 else
45974   cat >conftest.$ac_ext <<_ACEOF
45975 /* confdefs.h.  */
45976 _ACEOF
45977 cat confdefs.h >>conftest.$ac_ext
45978 cat >>conftest.$ac_ext <<_ACEOF
45979 /* end confdefs.h.  */
45980 /* Define fchdir to an innocuous variant, in case <limits.h> declares fchdir.
45981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45982 #define fchdir innocuous_fchdir
45983
45984 /* System header to define __stub macros and hopefully few prototypes,
45985     which can conflict with char fchdir (); below.
45986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45987     <limits.h> exists even on freestanding compilers.  */
45988
45989 #ifdef __STDC__
45990 # include <limits.h>
45991 #else
45992 # include <assert.h>
45993 #endif
45994
45995 #undef fchdir
45996
45997 /* Override any gcc2 internal prototype to avoid an error.  */
45998 #ifdef __cplusplus
45999 extern "C"
46000 {
46001 #endif
46002 /* We use char because int might match the return type of a gcc2
46003    builtin and then its argument prototype would still apply.  */
46004 char fchdir ();
46005 /* The GNU C library defines this for functions which it implements
46006     to always fail with ENOSYS.  Some functions are actually named
46007     something starting with __ and the normal name is an alias.  */
46008 #if defined (__stub_fchdir) || defined (__stub___fchdir)
46009 choke me
46010 #else
46011 char (*f) () = fchdir;
46012 #endif
46013 #ifdef __cplusplus
46014 }
46015 #endif
46016
46017 int
46018 main ()
46019 {
46020 return f != fchdir;
46021   ;
46022   return 0;
46023 }
46024 _ACEOF
46025 rm -f conftest.$ac_objext conftest$ac_exeext
46026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46027   (eval $ac_link) 2>conftest.er1
46028   ac_status=$?
46029   grep -v '^ *+' conftest.er1 >conftest.err
46030   rm -f conftest.er1
46031   cat conftest.err >&5
46032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46033   (exit $ac_status); } &&
46034          { ac_try='test -z "$ac_c_werror_flag"
46035                          || test ! -s conftest.err'
46036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46037   (eval $ac_try) 2>&5
46038   ac_status=$?
46039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46040   (exit $ac_status); }; } &&
46041          { ac_try='test -s conftest$ac_exeext'
46042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46043   (eval $ac_try) 2>&5
46044   ac_status=$?
46045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46046   (exit $ac_status); }; }; then
46047   ac_cv_func_fchdir=yes
46048 else
46049   echo "$as_me: failed program was:" >&5
46050 sed 's/^/| /' conftest.$ac_ext >&5
46051
46052 ac_cv_func_fchdir=no
46053 fi
46054 rm -f conftest.err conftest.$ac_objext \
46055       conftest$ac_exeext conftest.$ac_ext
46056 fi
46057 echo "$as_me:$LINENO: result: $ac_cv_func_fchdir" >&5
46058 echo "${ECHO_T}$ac_cv_func_fchdir" >&6
46059 if test $ac_cv_func_fchdir = yes; then
46060   :
46061 else
46062   case $LIBOBJS in
46063     "fchdir-stub.$ac_objext"   | \
46064   *" fchdir-stub.$ac_objext"   | \
46065     "fchdir-stub.$ac_objext "* | \
46066   *" fchdir-stub.$ac_objext "* ) ;;
46067   *) LIBOBJS="$LIBOBJS fchdir-stub.$ac_objext" ;;
46068 esac
46069
46070 fi
46071
46072   echo "$as_me:$LINENO: checking for fchown" >&5
46073 echo $ECHO_N "checking for fchown... $ECHO_C" >&6
46074 if test "${ac_cv_func_fchown+set}" = set; then
46075   echo $ECHO_N "(cached) $ECHO_C" >&6
46076 else
46077   cat >conftest.$ac_ext <<_ACEOF
46078 /* confdefs.h.  */
46079 _ACEOF
46080 cat confdefs.h >>conftest.$ac_ext
46081 cat >>conftest.$ac_ext <<_ACEOF
46082 /* end confdefs.h.  */
46083 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
46084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46085 #define fchown innocuous_fchown
46086
46087 /* System header to define __stub macros and hopefully few prototypes,
46088     which can conflict with char fchown (); below.
46089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46090     <limits.h> exists even on freestanding compilers.  */
46091
46092 #ifdef __STDC__
46093 # include <limits.h>
46094 #else
46095 # include <assert.h>
46096 #endif
46097
46098 #undef fchown
46099
46100 /* Override any gcc2 internal prototype to avoid an error.  */
46101 #ifdef __cplusplus
46102 extern "C"
46103 {
46104 #endif
46105 /* We use char because int might match the return type of a gcc2
46106    builtin and then its argument prototype would still apply.  */
46107 char fchown ();
46108 /* The GNU C library defines this for functions which it implements
46109     to always fail with ENOSYS.  Some functions are actually named
46110     something starting with __ and the normal name is an alias.  */
46111 #if defined (__stub_fchown) || defined (__stub___fchown)
46112 choke me
46113 #else
46114 char (*f) () = fchown;
46115 #endif
46116 #ifdef __cplusplus
46117 }
46118 #endif
46119
46120 int
46121 main ()
46122 {
46123 return f != fchown;
46124   ;
46125   return 0;
46126 }
46127 _ACEOF
46128 rm -f conftest.$ac_objext conftest$ac_exeext
46129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46130   (eval $ac_link) 2>conftest.er1
46131   ac_status=$?
46132   grep -v '^ *+' conftest.er1 >conftest.err
46133   rm -f conftest.er1
46134   cat conftest.err >&5
46135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46136   (exit $ac_status); } &&
46137          { ac_try='test -z "$ac_c_werror_flag"
46138                          || test ! -s conftest.err'
46139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46140   (eval $ac_try) 2>&5
46141   ac_status=$?
46142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46143   (exit $ac_status); }; } &&
46144          { ac_try='test -s conftest$ac_exeext'
46145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46146   (eval $ac_try) 2>&5
46147   ac_status=$?
46148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46149   (exit $ac_status); }; }; then
46150   ac_cv_func_fchown=yes
46151 else
46152   echo "$as_me: failed program was:" >&5
46153 sed 's/^/| /' conftest.$ac_ext >&5
46154
46155 ac_cv_func_fchown=no
46156 fi
46157 rm -f conftest.err conftest.$ac_objext \
46158       conftest$ac_exeext conftest.$ac_ext
46159 fi
46160 echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
46161 echo "${ECHO_T}$ac_cv_func_fchown" >&6
46162 if test $ac_cv_func_fchown = yes; then
46163   :
46164 else
46165   case $LIBOBJS in
46166     "fchown-stub.$ac_objext"   | \
46167   *" fchown-stub.$ac_objext"   | \
46168     "fchown-stub.$ac_objext "* | \
46169   *" fchown-stub.$ac_objext "* ) ;;
46170   *) LIBOBJS="$LIBOBJS fchown-stub.$ac_objext" ;;
46171 esac
46172
46173 fi
46174
46175
46176
46177
46178
46179 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
46180 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
46181 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
46182   echo $ECHO_N "(cached) $ECHO_C" >&6
46183 else
46184   cat >conftest.$ac_ext <<_ACEOF
46185 /* confdefs.h.  */
46186 _ACEOF
46187 cat confdefs.h >>conftest.$ac_ext
46188 cat >>conftest.$ac_ext <<_ACEOF
46189 /* end confdefs.h.  */
46190 #include <sys/types.h>
46191 #include <termios.h>
46192 #ifdef TIOCGWINSZ
46193   yes
46194 #endif
46195
46196 _ACEOF
46197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46198   $EGREP "yes" >/dev/null 2>&1; then
46199   ac_cv_sys_tiocgwinsz_in_termios_h=yes
46200 else
46201   ac_cv_sys_tiocgwinsz_in_termios_h=no
46202 fi
46203 rm -f conftest*
46204
46205 fi
46206 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
46207 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
46208
46209 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
46210   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
46211 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
46212 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
46213   echo $ECHO_N "(cached) $ECHO_C" >&6
46214 else
46215   cat >conftest.$ac_ext <<_ACEOF
46216 /* confdefs.h.  */
46217 _ACEOF
46218 cat confdefs.h >>conftest.$ac_ext
46219 cat >>conftest.$ac_ext <<_ACEOF
46220 /* end confdefs.h.  */
46221 #include <sys/types.h>
46222 #include <sys/ioctl.h>
46223 #ifdef TIOCGWINSZ
46224   yes
46225 #endif
46226
46227 _ACEOF
46228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46229   $EGREP "yes" >/dev/null 2>&1; then
46230   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
46231 else
46232   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
46233 fi
46234 rm -f conftest*
46235
46236 fi
46237 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
46238 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
46239
46240   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
46241
46242 cat >>confdefs.h <<\_ACEOF
46243 #define GWINSZ_IN_SYS_IOCTL 1
46244 _ACEOF
46245
46246   fi
46247 fi
46248
46249 echo "$as_me:$LINENO: checking POSIX termios" >&5
46250 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
46251 if test "${ac_cv_sys_posix_termios+set}" = set; then
46252   echo $ECHO_N "(cached) $ECHO_C" >&6
46253 else
46254   cat >conftest.$ac_ext <<_ACEOF
46255 /* confdefs.h.  */
46256 _ACEOF
46257 cat confdefs.h >>conftest.$ac_ext
46258 cat >>conftest.$ac_ext <<_ACEOF
46259 /* end confdefs.h.  */
46260 #include <sys/types.h>
46261 #include <unistd.h>
46262 #include <termios.h>
46263
46264 int
46265 main ()
46266 {
46267 /* SunOS 4.0.3 has termios.h but not the library calls.  */
46268    tcgetattr(0, 0);
46269   ;
46270   return 0;
46271 }
46272 _ACEOF
46273 rm -f conftest.$ac_objext conftest$ac_exeext
46274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46275   (eval $ac_link) 2>conftest.er1
46276   ac_status=$?
46277   grep -v '^ *+' conftest.er1 >conftest.err
46278   rm -f conftest.er1
46279   cat conftest.err >&5
46280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46281   (exit $ac_status); } &&
46282          { ac_try='test -z "$ac_c_werror_flag"
46283                          || test ! -s conftest.err'
46284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46285   (eval $ac_try) 2>&5
46286   ac_status=$?
46287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46288   (exit $ac_status); }; } &&
46289          { ac_try='test -s conftest$ac_exeext'
46290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46291   (eval $ac_try) 2>&5
46292   ac_status=$?
46293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46294   (exit $ac_status); }; }; then
46295   ac_cv_sys_posix_termios=yes
46296 else
46297   echo "$as_me: failed program was:" >&5
46298 sed 's/^/| /' conftest.$ac_ext >&5
46299
46300 ac_cv_sys_posix_termios=no
46301 fi
46302 rm -f conftest.err conftest.$ac_objext \
46303       conftest$ac_exeext conftest.$ac_ext
46304 fi
46305 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
46306 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
46307
46308
46309    echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
46310 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
46311 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
46312   echo $ECHO_N "(cached) $ECHO_C" >&6
46313 else
46314   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
46315       if test $ac_cv_sys_posix_termios = yes; then
46316         cat >conftest.$ac_ext <<_ACEOF
46317 /* confdefs.h.  */
46318 _ACEOF
46319 cat confdefs.h >>conftest.$ac_ext
46320 cat >>conftest.$ac_ext <<_ACEOF
46321 /* end confdefs.h.  */
46322 #include <termios.h>
46323           struct winsize x;
46324 int
46325 main ()
46326 {
46327 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
46328   ;
46329   return 0;
46330 }
46331 _ACEOF
46332 rm -f conftest.$ac_objext
46333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46334   (eval $ac_compile) 2>conftest.er1
46335   ac_status=$?
46336   grep -v '^ *+' conftest.er1 >conftest.err
46337   rm -f conftest.er1
46338   cat conftest.err >&5
46339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46340   (exit $ac_status); } &&
46341          { ac_try='test -z "$ac_c_werror_flag"
46342                          || test ! -s conftest.err'
46343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46344   (eval $ac_try) 2>&5
46345   ac_status=$?
46346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46347   (exit $ac_status); }; } &&
46348          { ac_try='test -s conftest.$ac_objext'
46349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46350   (eval $ac_try) 2>&5
46351   ac_status=$?
46352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46353   (exit $ac_status); }; }; then
46354   :
46355 else
46356   echo "$as_me: failed program was:" >&5
46357 sed 's/^/| /' conftest.$ac_ext >&5
46358
46359 fi
46360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46361       fi
46362       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
46363         cat >conftest.$ac_ext <<_ACEOF
46364 /* confdefs.h.  */
46365 _ACEOF
46366 cat confdefs.h >>conftest.$ac_ext
46367 cat >>conftest.$ac_ext <<_ACEOF
46368 /* end confdefs.h.  */
46369 #include <sys/ptem.h>
46370 int
46371 main ()
46372 {
46373 struct winsize x;
46374   ;
46375   return 0;
46376 }
46377 _ACEOF
46378 rm -f conftest.$ac_objext
46379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46380   (eval $ac_compile) 2>conftest.er1
46381   ac_status=$?
46382   grep -v '^ *+' conftest.er1 >conftest.err
46383   rm -f conftest.er1
46384   cat conftest.err >&5
46385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46386   (exit $ac_status); } &&
46387          { ac_try='test -z "$ac_c_werror_flag"
46388                          || test ! -s conftest.err'
46389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46390   (eval $ac_try) 2>&5
46391   ac_status=$?
46392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46393   (exit $ac_status); }; } &&
46394          { ac_try='test -s conftest.$ac_objext'
46395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46396   (eval $ac_try) 2>&5
46397   ac_status=$?
46398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46399   (exit $ac_status); }; }; then
46400   :
46401 else
46402   echo "$as_me: failed program was:" >&5
46403 sed 's/^/| /' conftest.$ac_ext >&5
46404
46405 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
46406 fi
46407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46408       fi
46409 fi
46410 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
46411 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
46412    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
46413
46414 cat >>confdefs.h <<\_ACEOF
46415 #define WINSIZE_IN_PTEM 1
46416 _ACEOF
46417
46418    fi
46419
46420 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
46421 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
46422 if test "${utils_cv_localtime_cache+set}" = set; then
46423   echo $ECHO_N "(cached) $ECHO_C" >&6
46424 else
46425   if test x$ac_cv_func_tzset = xyes; then
46426 if test "$cross_compiling" = yes; then
46427   # If we have tzset, assume the worst when cross-compiling.
46428 utils_cv_localtime_cache=yes
46429 else
46430   cat >conftest.$ac_ext <<_ACEOF
46431 /* confdefs.h.  */
46432 _ACEOF
46433 cat confdefs.h >>conftest.$ac_ext
46434 cat >>conftest.$ac_ext <<_ACEOF
46435 /* end confdefs.h.  */
46436 #include <time.h>
46437 #if STDC_HEADERS
46438 # include <stdlib.h>
46439 #endif
46440 extern char **environ;
46441 unset_TZ ()
46442 {
46443   char **from, **to;
46444   for (to = from = environ; (*to = *from); from++)
46445     if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
46446       to++;
46447 }
46448 main()
46449 {
46450   time_t now = time ((time_t *) 0);
46451   int hour_GMT0, hour_unset;
46452   if (putenv ("TZ=GMT0") != 0)
46453     exit (1);
46454   hour_GMT0 = localtime (&now)->tm_hour;
46455   unset_TZ ();
46456   hour_unset = localtime (&now)->tm_hour;
46457   if (putenv ("TZ=PST8") != 0)
46458     exit (1);
46459   if (localtime (&now)->tm_hour == hour_GMT0)
46460     exit (1);
46461   unset_TZ ();
46462   if (localtime (&now)->tm_hour != hour_unset)
46463     exit (1);
46464   exit (0);
46465 }
46466 _ACEOF
46467 rm -f conftest$ac_exeext
46468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46469   (eval $ac_link) 2>&5
46470   ac_status=$?
46471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46472   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46474   (eval $ac_try) 2>&5
46475   ac_status=$?
46476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46477   (exit $ac_status); }; }; then
46478   utils_cv_localtime_cache=no
46479 else
46480   echo "$as_me: program exited with status $ac_status" >&5
46481 echo "$as_me: failed program was:" >&5
46482 sed 's/^/| /' conftest.$ac_ext >&5
46483
46484 ( exit $ac_status )
46485 utils_cv_localtime_cache=yes
46486 fi
46487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46488 fi
46489 else
46490         # If we lack tzset, report that localtime does not cache TZ,
46491         # since we can't invalidate the cache if we don't have tzset.
46492         utils_cv_localtime_cache=no
46493 fi
46494 fi
46495 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
46496 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
46497 if test $utils_cv_localtime_cache = yes; then
46498
46499 cat >>confdefs.h <<\_ACEOF
46500 #define LOCALTIME_CACHE 1
46501 _ACEOF
46502
46503 fi
46504
46505 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
46506
46507 for ac_func in initgroups
46508 do
46509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46510 echo "$as_me:$LINENO: checking for $ac_func" >&5
46511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46512 if eval "test \"\${$as_ac_var+set}\" = set"; then
46513   echo $ECHO_N "(cached) $ECHO_C" >&6
46514 else
46515   cat >conftest.$ac_ext <<_ACEOF
46516 /* confdefs.h.  */
46517 _ACEOF
46518 cat confdefs.h >>conftest.$ac_ext
46519 cat >>conftest.$ac_ext <<_ACEOF
46520 /* end confdefs.h.  */
46521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46523 #define $ac_func innocuous_$ac_func
46524
46525 /* System header to define __stub macros and hopefully few prototypes,
46526     which can conflict with char $ac_func (); below.
46527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46528     <limits.h> exists even on freestanding compilers.  */
46529
46530 #ifdef __STDC__
46531 # include <limits.h>
46532 #else
46533 # include <assert.h>
46534 #endif
46535
46536 #undef $ac_func
46537
46538 /* Override any gcc2 internal prototype to avoid an error.  */
46539 #ifdef __cplusplus
46540 extern "C"
46541 {
46542 #endif
46543 /* We use char because int might match the return type of a gcc2
46544    builtin and then its argument prototype would still apply.  */
46545 char $ac_func ();
46546 /* The GNU C library defines this for functions which it implements
46547     to always fail with ENOSYS.  Some functions are actually named
46548     something starting with __ and the normal name is an alias.  */
46549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46550 choke me
46551 #else
46552 char (*f) () = $ac_func;
46553 #endif
46554 #ifdef __cplusplus
46555 }
46556 #endif
46557
46558 int
46559 main ()
46560 {
46561 return f != $ac_func;
46562   ;
46563   return 0;
46564 }
46565 _ACEOF
46566 rm -f conftest.$ac_objext conftest$ac_exeext
46567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46568   (eval $ac_link) 2>conftest.er1
46569   ac_status=$?
46570   grep -v '^ *+' conftest.er1 >conftest.err
46571   rm -f conftest.er1
46572   cat conftest.err >&5
46573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46574   (exit $ac_status); } &&
46575          { ac_try='test -z "$ac_c_werror_flag"
46576                          || test ! -s conftest.err'
46577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46578   (eval $ac_try) 2>&5
46579   ac_status=$?
46580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46581   (exit $ac_status); }; } &&
46582          { ac_try='test -s conftest$ac_exeext'
46583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46584   (eval $ac_try) 2>&5
46585   ac_status=$?
46586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46587   (exit $ac_status); }; }; then
46588   eval "$as_ac_var=yes"
46589 else
46590   echo "$as_me: failed program was:" >&5
46591 sed 's/^/| /' conftest.$ac_ext >&5
46592
46593 eval "$as_ac_var=no"
46594 fi
46595 rm -f conftest.err conftest.$ac_objext \
46596       conftest$ac_exeext conftest.$ac_ext
46597 fi
46598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46600 if test `eval echo '${'$as_ac_var'}'` = yes; then
46601   cat >>confdefs.h <<_ACEOF
46602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46603 _ACEOF
46604
46605 fi
46606 done
46607
46608 if test $ac_cv_func_initgroups = no; then
46609
46610 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
46611 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
46612 if test "${ac_cv_lib_os_initgroups+set}" = set; then
46613   echo $ECHO_N "(cached) $ECHO_C" >&6
46614 else
46615   ac_check_lib_save_LIBS=$LIBS
46616 LIBS="-los  $LIBS"
46617 cat >conftest.$ac_ext <<_ACEOF
46618 /* confdefs.h.  */
46619 _ACEOF
46620 cat confdefs.h >>conftest.$ac_ext
46621 cat >>conftest.$ac_ext <<_ACEOF
46622 /* end confdefs.h.  */
46623
46624 /* Override any gcc2 internal prototype to avoid an error.  */
46625 #ifdef __cplusplus
46626 extern "C"
46627 #endif
46628 /* We use char because int might match the return type of a gcc2
46629    builtin and then its argument prototype would still apply.  */
46630 char initgroups ();
46631 int
46632 main ()
46633 {
46634 initgroups ();
46635   ;
46636   return 0;
46637 }
46638 _ACEOF
46639 rm -f conftest.$ac_objext conftest$ac_exeext
46640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46641   (eval $ac_link) 2>conftest.er1
46642   ac_status=$?
46643   grep -v '^ *+' conftest.er1 >conftest.err
46644   rm -f conftest.er1
46645   cat conftest.err >&5
46646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46647   (exit $ac_status); } &&
46648          { ac_try='test -z "$ac_c_werror_flag"
46649                          || test ! -s conftest.err'
46650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46651   (eval $ac_try) 2>&5
46652   ac_status=$?
46653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46654   (exit $ac_status); }; } &&
46655          { ac_try='test -s conftest$ac_exeext'
46656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46657   (eval $ac_try) 2>&5
46658   ac_status=$?
46659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46660   (exit $ac_status); }; }; then
46661   ac_cv_lib_os_initgroups=yes
46662 else
46663   echo "$as_me: failed program was:" >&5
46664 sed 's/^/| /' conftest.$ac_ext >&5
46665
46666 ac_cv_lib_os_initgroups=no
46667 fi
46668 rm -f conftest.err conftest.$ac_objext \
46669       conftest$ac_exeext conftest.$ac_ext
46670 LIBS=$ac_check_lib_save_LIBS
46671 fi
46672 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
46673 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
46674 if test $ac_cv_lib_os_initgroups = yes; then
46675   cat >>confdefs.h <<_ACEOF
46676 #define HAVE_LIBOS 1
46677 _ACEOF
46678
46679   LIBS="-los $LIBS"
46680
46681 fi
46682
46683 fi
46684
46685
46686 for ac_func in syslog
46687 do
46688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46689 echo "$as_me:$LINENO: checking for $ac_func" >&5
46690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46691 if eval "test \"\${$as_ac_var+set}\" = set"; then
46692   echo $ECHO_N "(cached) $ECHO_C" >&6
46693 else
46694   cat >conftest.$ac_ext <<_ACEOF
46695 /* confdefs.h.  */
46696 _ACEOF
46697 cat confdefs.h >>conftest.$ac_ext
46698 cat >>conftest.$ac_ext <<_ACEOF
46699 /* end confdefs.h.  */
46700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46702 #define $ac_func innocuous_$ac_func
46703
46704 /* System header to define __stub macros and hopefully few prototypes,
46705     which can conflict with char $ac_func (); below.
46706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46707     <limits.h> exists even on freestanding compilers.  */
46708
46709 #ifdef __STDC__
46710 # include <limits.h>
46711 #else
46712 # include <assert.h>
46713 #endif
46714
46715 #undef $ac_func
46716
46717 /* Override any gcc2 internal prototype to avoid an error.  */
46718 #ifdef __cplusplus
46719 extern "C"
46720 {
46721 #endif
46722 /* We use char because int might match the return type of a gcc2
46723    builtin and then its argument prototype would still apply.  */
46724 char $ac_func ();
46725 /* The GNU C library defines this for functions which it implements
46726     to always fail with ENOSYS.  Some functions are actually named
46727     something starting with __ and the normal name is an alias.  */
46728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46729 choke me
46730 #else
46731 char (*f) () = $ac_func;
46732 #endif
46733 #ifdef __cplusplus
46734 }
46735 #endif
46736
46737 int
46738 main ()
46739 {
46740 return f != $ac_func;
46741   ;
46742   return 0;
46743 }
46744 _ACEOF
46745 rm -f conftest.$ac_objext conftest$ac_exeext
46746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46747   (eval $ac_link) 2>conftest.er1
46748   ac_status=$?
46749   grep -v '^ *+' conftest.er1 >conftest.err
46750   rm -f conftest.er1
46751   cat conftest.err >&5
46752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46753   (exit $ac_status); } &&
46754          { ac_try='test -z "$ac_c_werror_flag"
46755                          || test ! -s conftest.err'
46756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46757   (eval $ac_try) 2>&5
46758   ac_status=$?
46759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46760   (exit $ac_status); }; } &&
46761          { ac_try='test -s conftest$ac_exeext'
46762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46763   (eval $ac_try) 2>&5
46764   ac_status=$?
46765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46766   (exit $ac_status); }; }; then
46767   eval "$as_ac_var=yes"
46768 else
46769   echo "$as_me: failed program was:" >&5
46770 sed 's/^/| /' conftest.$ac_ext >&5
46771
46772 eval "$as_ac_var=no"
46773 fi
46774 rm -f conftest.err conftest.$ac_objext \
46775       conftest$ac_exeext conftest.$ac_ext
46776 fi
46777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46779 if test `eval echo '${'$as_ac_var'}'` = yes; then
46780   cat >>confdefs.h <<_ACEOF
46781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46782 _ACEOF
46783
46784 fi
46785 done
46786
46787 if test $ac_cv_func_syslog = no; then
46788   # syslog is not in the default libraries.  See if it's in some other.
46789   for lib in bsd socket inet; do
46790     as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
46791 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
46792 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
46793 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
46794   echo $ECHO_N "(cached) $ECHO_C" >&6
46795 else
46796   ac_check_lib_save_LIBS=$LIBS
46797 LIBS="-l$lib  $LIBS"
46798 cat >conftest.$ac_ext <<_ACEOF
46799 /* confdefs.h.  */
46800 _ACEOF
46801 cat confdefs.h >>conftest.$ac_ext
46802 cat >>conftest.$ac_ext <<_ACEOF
46803 /* end confdefs.h.  */
46804
46805 /* Override any gcc2 internal prototype to avoid an error.  */
46806 #ifdef __cplusplus
46807 extern "C"
46808 #endif
46809 /* We use char because int might match the return type of a gcc2
46810    builtin and then its argument prototype would still apply.  */
46811 char syslog ();
46812 int
46813 main ()
46814 {
46815 syslog ();
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_Lib=yes"
46843 else
46844   echo "$as_me: failed program was:" >&5
46845 sed 's/^/| /' conftest.$ac_ext >&5
46846
46847 eval "$as_ac_Lib=no"
46848 fi
46849 rm -f conftest.err conftest.$ac_objext \
46850       conftest$ac_exeext conftest.$ac_ext
46851 LIBS=$ac_check_lib_save_LIBS
46852 fi
46853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
46854 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
46855 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46856
46857 cat >>confdefs.h <<\_ACEOF
46858 #define HAVE_SYSLOG 1
46859 _ACEOF
46860
46861       LIBS="$LIBS -l$lib"; break
46862 fi
46863
46864   done
46865 fi
46866
46867 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
46868 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
46869 if test "${utils_cv_func_setpriority+set}" = set; then
46870   echo $ECHO_N "(cached) $ECHO_C" >&6
46871 else
46872   cat >conftest.$ac_ext <<_ACEOF
46873 /* confdefs.h.  */
46874 _ACEOF
46875 cat confdefs.h >>conftest.$ac_ext
46876 cat >>conftest.$ac_ext <<_ACEOF
46877 /* end confdefs.h.  */
46878 #include <sys/time.h>
46879   #include <sys/resource.h>
46880 int
46881 main ()
46882 {
46883 setpriority(0, 0, 0);
46884   ;
46885   return 0;
46886 }
46887 _ACEOF
46888 rm -f conftest.$ac_objext conftest$ac_exeext
46889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46890   (eval $ac_link) 2>conftest.er1
46891   ac_status=$?
46892   grep -v '^ *+' conftest.er1 >conftest.err
46893   rm -f conftest.er1
46894   cat conftest.err >&5
46895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46896   (exit $ac_status); } &&
46897          { ac_try='test -z "$ac_c_werror_flag"
46898                          || test ! -s conftest.err'
46899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46900   (eval $ac_try) 2>&5
46901   ac_status=$?
46902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46903   (exit $ac_status); }; } &&
46904          { ac_try='test -s conftest$ac_exeext'
46905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46906   (eval $ac_try) 2>&5
46907   ac_status=$?
46908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46909   (exit $ac_status); }; }; then
46910   utils_cv_func_setpriority=yes
46911 else
46912   echo "$as_me: failed program was:" >&5
46913 sed 's/^/| /' conftest.$ac_ext >&5
46914
46915 utils_cv_func_setpriority=no
46916 fi
46917 rm -f conftest.err conftest.$ac_objext \
46918       conftest$ac_exeext conftest.$ac_ext
46919 fi
46920
46921 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
46922 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
46923 if test $utils_cv_func_setpriority = yes; then
46924   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
46925   MAN="$MAN nice.1"
46926 else
46927   echo "$as_me:$LINENO: checking for nice function" >&5
46928 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
46929   if test "${utils_cv_func_nice+set}" = set; then
46930   echo $ECHO_N "(cached) $ECHO_C" >&6
46931 else
46932   cat >conftest.$ac_ext <<_ACEOF
46933 /* confdefs.h.  */
46934 _ACEOF
46935 cat confdefs.h >>conftest.$ac_ext
46936 cat >>conftest.$ac_ext <<_ACEOF
46937 /* end confdefs.h.  */
46938
46939 int
46940 main ()
46941 {
46942 nice();
46943   ;
46944   return 0;
46945 }
46946 _ACEOF
46947 rm -f conftest.$ac_objext conftest$ac_exeext
46948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46949   (eval $ac_link) 2>conftest.er1
46950   ac_status=$?
46951   grep -v '^ *+' conftest.er1 >conftest.err
46952   rm -f conftest.er1
46953   cat conftest.err >&5
46954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46955   (exit $ac_status); } &&
46956          { ac_try='test -z "$ac_c_werror_flag"
46957                          || test ! -s conftest.err'
46958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46959   (eval $ac_try) 2>&5
46960   ac_status=$?
46961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46962   (exit $ac_status); }; } &&
46963          { ac_try='test -s conftest$ac_exeext'
46964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46965   (eval $ac_try) 2>&5
46966   ac_status=$?
46967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46968   (exit $ac_status); }; }; then
46969   utils_cv_func_nice=yes
46970 else
46971   echo "$as_me: failed program was:" >&5
46972 sed 's/^/| /' conftest.$ac_ext >&5
46973
46974 utils_cv_func_nice=no
46975 fi
46976 rm -f conftest.err conftest.$ac_objext \
46977       conftest$ac_exeext conftest.$ac_ext
46978 fi
46979
46980   echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
46981 echo "${ECHO_T}$utils_cv_func_nice" >&6
46982   if test $utils_cv_func_nice = yes; then
46983
46984 cat >>confdefs.h <<\_ACEOF
46985 #define NICE_PRIORITY 1
46986 _ACEOF
46987
46988     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
46989     MAN="$MAN nice.1"
46990   fi
46991 fi
46992
46993
46994
46995
46996   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
46997     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky\$(EXEEXT)"
46998     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS users\$(EXEEXT)"
46999     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS who\$(EXEEXT)"
47000     MAN="$MAN pinky.1 users.1 who.1"
47001   fi
47002
47003
47004 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
47005 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
47006 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
47007   echo $ECHO_N "(cached) $ECHO_C" >&6
47008 else
47009   cat >conftest.$ac_ext <<_ACEOF
47010 /* confdefs.h.  */
47011 _ACEOF
47012 cat confdefs.h >>conftest.$ac_ext
47013 cat >>conftest.$ac_ext <<_ACEOF
47014 /* end confdefs.h.  */
47015 #include <sys/types.h>
47016 #include <utmp.h>
47017 int
47018 main ()
47019 {
47020 struct utmp ut; ut.ut_host;
47021   ;
47022   return 0;
47023 }
47024 _ACEOF
47025 rm -f conftest.$ac_objext conftest$ac_exeext
47026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47027   (eval $ac_link) 2>conftest.er1
47028   ac_status=$?
47029   grep -v '^ *+' conftest.er1 >conftest.err
47030   rm -f conftest.er1
47031   cat conftest.err >&5
47032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47033   (exit $ac_status); } &&
47034          { ac_try='test -z "$ac_c_werror_flag"
47035                          || test ! -s conftest.err'
47036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47037   (eval $ac_try) 2>&5
47038   ac_status=$?
47039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47040   (exit $ac_status); }; } &&
47041          { ac_try='test -s conftest$ac_exeext'
47042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47043   (eval $ac_try) 2>&5
47044   ac_status=$?
47045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47046   (exit $ac_status); }; }; then
47047   su_cv_func_ut_host_in_utmp=yes
47048 else
47049   echo "$as_me: failed program was:" >&5
47050 sed 's/^/| /' conftest.$ac_ext >&5
47051
47052 su_cv_func_ut_host_in_utmp=no
47053 fi
47054 rm -f conftest.err conftest.$ac_objext \
47055       conftest$ac_exeext conftest.$ac_ext
47056 fi
47057
47058 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
47059 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
47060 if test $su_cv_func_ut_host_in_utmp = yes; then
47061   have_ut_host=1
47062
47063 cat >>confdefs.h <<\_ACEOF
47064 #define HAVE_UT_HOST 1
47065 _ACEOF
47066
47067 fi
47068
47069 if test -z "$have_ut_host"; then
47070   echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
47071 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
47072   if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
47073   echo $ECHO_N "(cached) $ECHO_C" >&6
47074 else
47075   cat >conftest.$ac_ext <<_ACEOF
47076 /* confdefs.h.  */
47077 _ACEOF
47078 cat confdefs.h >>conftest.$ac_ext
47079 cat >>conftest.$ac_ext <<_ACEOF
47080 /* end confdefs.h.  */
47081 #include <sys/types.h>
47082 #include <utmpx.h>
47083 int
47084 main ()
47085 {
47086 struct utmpx ut; ut.ut_host;
47087   ;
47088   return 0;
47089 }
47090 _ACEOF
47091 rm -f conftest.$ac_objext conftest$ac_exeext
47092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47093   (eval $ac_link) 2>conftest.er1
47094   ac_status=$?
47095   grep -v '^ *+' conftest.er1 >conftest.err
47096   rm -f conftest.er1
47097   cat conftest.err >&5
47098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47099   (exit $ac_status); } &&
47100          { ac_try='test -z "$ac_c_werror_flag"
47101                          || test ! -s conftest.err'
47102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47103   (eval $ac_try) 2>&5
47104   ac_status=$?
47105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47106   (exit $ac_status); }; } &&
47107          { ac_try='test -s conftest$ac_exeext'
47108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47109   (eval $ac_try) 2>&5
47110   ac_status=$?
47111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47112   (exit $ac_status); }; }; then
47113   su_cv_func_ut_host_in_utmpx=yes
47114 else
47115   echo "$as_me: failed program was:" >&5
47116 sed 's/^/| /' conftest.$ac_ext >&5
47117
47118 su_cv_func_ut_host_in_utmpx=no
47119 fi
47120 rm -f conftest.err conftest.$ac_objext \
47121       conftest$ac_exeext conftest.$ac_ext
47122 fi
47123
47124   echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
47125 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
47126   if test $su_cv_func_ut_host_in_utmpx = yes; then
47127
47128 cat >>confdefs.h <<\_ACEOF
47129 #define HAVE_UTMPX_H 1
47130 _ACEOF
47131
47132
47133 cat >>confdefs.h <<\_ACEOF
47134 #define HAVE_UT_HOST 1
47135 _ACEOF
47136
47137   fi
47138 fi
47139
47140
47141
47142 for ac_func in sysctl
47143 do
47144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47145 echo "$as_me:$LINENO: checking for $ac_func" >&5
47146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47147 if eval "test \"\${$as_ac_var+set}\" = set"; then
47148   echo $ECHO_N "(cached) $ECHO_C" >&6
47149 else
47150   cat >conftest.$ac_ext <<_ACEOF
47151 /* confdefs.h.  */
47152 _ACEOF
47153 cat confdefs.h >>conftest.$ac_ext
47154 cat >>conftest.$ac_ext <<_ACEOF
47155 /* end confdefs.h.  */
47156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47158 #define $ac_func innocuous_$ac_func
47159
47160 /* System header to define __stub macros and hopefully few prototypes,
47161     which can conflict with char $ac_func (); below.
47162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47163     <limits.h> exists even on freestanding compilers.  */
47164
47165 #ifdef __STDC__
47166 # include <limits.h>
47167 #else
47168 # include <assert.h>
47169 #endif
47170
47171 #undef $ac_func
47172
47173 /* Override any gcc2 internal prototype to avoid an error.  */
47174 #ifdef __cplusplus
47175 extern "C"
47176 {
47177 #endif
47178 /* We use char because int might match the return type of a gcc2
47179    builtin and then its argument prototype would still apply.  */
47180 char $ac_func ();
47181 /* The GNU C library defines this for functions which it implements
47182     to always fail with ENOSYS.  Some functions are actually named
47183     something starting with __ and the normal name is an alias.  */
47184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47185 choke me
47186 #else
47187 char (*f) () = $ac_func;
47188 #endif
47189 #ifdef __cplusplus
47190 }
47191 #endif
47192
47193 int
47194 main ()
47195 {
47196 return f != $ac_func;
47197   ;
47198   return 0;
47199 }
47200 _ACEOF
47201 rm -f conftest.$ac_objext conftest$ac_exeext
47202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47203   (eval $ac_link) 2>conftest.er1
47204   ac_status=$?
47205   grep -v '^ *+' conftest.er1 >conftest.err
47206   rm -f conftest.er1
47207   cat conftest.err >&5
47208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47209   (exit $ac_status); } &&
47210          { ac_try='test -z "$ac_c_werror_flag"
47211                          || test ! -s conftest.err'
47212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47213   (eval $ac_try) 2>&5
47214   ac_status=$?
47215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47216   (exit $ac_status); }; } &&
47217          { ac_try='test -s conftest$ac_exeext'
47218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47219   (eval $ac_try) 2>&5
47220   ac_status=$?
47221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47222   (exit $ac_status); }; }; then
47223   eval "$as_ac_var=yes"
47224 else
47225   echo "$as_me: failed program was:" >&5
47226 sed 's/^/| /' conftest.$ac_ext >&5
47227
47228 eval "$as_ac_var=no"
47229 fi
47230 rm -f conftest.err conftest.$ac_objext \
47231       conftest$ac_exeext conftest.$ac_ext
47232 fi
47233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47235 if test `eval echo '${'$as_ac_var'}'` = yes; then
47236   cat >>confdefs.h <<_ACEOF
47237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47238 _ACEOF
47239
47240 fi
47241 done
47242
47243
47244 for ac_header in sys/sysctl.h
47245 do
47246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47248   echo "$as_me:$LINENO: checking for $ac_header" >&5
47249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47251   echo $ECHO_N "(cached) $ECHO_C" >&6
47252 fi
47253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47255 else
47256   # Is the header compilable?
47257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
47258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
47259 cat >conftest.$ac_ext <<_ACEOF
47260 /* confdefs.h.  */
47261 _ACEOF
47262 cat confdefs.h >>conftest.$ac_ext
47263 cat >>conftest.$ac_ext <<_ACEOF
47264 /* end confdefs.h.  */
47265 $ac_includes_default
47266 #include <$ac_header>
47267 _ACEOF
47268 rm -f conftest.$ac_objext
47269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47270   (eval $ac_compile) 2>conftest.er1
47271   ac_status=$?
47272   grep -v '^ *+' conftest.er1 >conftest.err
47273   rm -f conftest.er1
47274   cat conftest.err >&5
47275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47276   (exit $ac_status); } &&
47277          { ac_try='test -z "$ac_c_werror_flag"
47278                          || test ! -s conftest.err'
47279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47280   (eval $ac_try) 2>&5
47281   ac_status=$?
47282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47283   (exit $ac_status); }; } &&
47284          { ac_try='test -s conftest.$ac_objext'
47285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47286   (eval $ac_try) 2>&5
47287   ac_status=$?
47288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47289   (exit $ac_status); }; }; then
47290   ac_header_compiler=yes
47291 else
47292   echo "$as_me: failed program was:" >&5
47293 sed 's/^/| /' conftest.$ac_ext >&5
47294
47295 ac_header_compiler=no
47296 fi
47297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47299 echo "${ECHO_T}$ac_header_compiler" >&6
47300
47301 # Is the header present?
47302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
47303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
47304 cat >conftest.$ac_ext <<_ACEOF
47305 /* confdefs.h.  */
47306 _ACEOF
47307 cat confdefs.h >>conftest.$ac_ext
47308 cat >>conftest.$ac_ext <<_ACEOF
47309 /* end confdefs.h.  */
47310 #include <$ac_header>
47311 _ACEOF
47312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47313   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47314   ac_status=$?
47315   grep -v '^ *+' conftest.er1 >conftest.err
47316   rm -f conftest.er1
47317   cat conftest.err >&5
47318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47319   (exit $ac_status); } >/dev/null; then
47320   if test -s conftest.err; then
47321     ac_cpp_err=$ac_c_preproc_warn_flag
47322     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
47323   else
47324     ac_cpp_err=
47325   fi
47326 else
47327   ac_cpp_err=yes
47328 fi
47329 if test -z "$ac_cpp_err"; then
47330   ac_header_preproc=yes
47331 else
47332   echo "$as_me: failed program was:" >&5
47333 sed 's/^/| /' conftest.$ac_ext >&5
47334
47335   ac_header_preproc=no
47336 fi
47337 rm -f conftest.err conftest.$ac_ext
47338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47339 echo "${ECHO_T}$ac_header_preproc" >&6
47340
47341 # So?  What about this header?
47342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47343   yes:no: )
47344     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47348     ac_header_preproc=yes
47349     ;;
47350   no:yes:* )
47351     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47353     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
47354 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
47355     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47357     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
47358 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
47359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47361     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47363     (
47364       cat <<\_ASBOX
47365 ## ------------------------------------ ##
47366 ## Report this to bug-coreutils@gnu.org ##
47367 ## ------------------------------------ ##
47368 _ASBOX
47369     ) |
47370       sed "s/^/$as_me: WARNING:     /" >&2
47371     ;;
47372 esac
47373 echo "$as_me:$LINENO: checking for $ac_header" >&5
47374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47376   echo $ECHO_N "(cached) $ECHO_C" >&6
47377 else
47378   eval "$as_ac_Header=\$ac_header_preproc"
47379 fi
47380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47382
47383 fi
47384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47385   cat >>confdefs.h <<_ACEOF
47386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47387 _ACEOF
47388
47389 fi
47390
47391 done
47392
47393   echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
47394 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
47395 if test "${gnulib_cv_have_boot_time+set}" = set; then
47396   echo $ECHO_N "(cached) $ECHO_C" >&6
47397 else
47398
47399       cat >conftest.$ac_ext <<_ACEOF
47400 /* confdefs.h.  */
47401 _ACEOF
47402 cat confdefs.h >>conftest.$ac_ext
47403 cat >>conftest.$ac_ext <<_ACEOF
47404 /* end confdefs.h.  */
47405 $ac_includes_default
47406 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
47407 # include <sys/param.h> /* needed for OpenBSD 3.0 */
47408 # include <sys/sysctl.h>
47409 #endif
47410 #ifdef HAVE_UTMPX_H
47411 # include <utmpx.h>
47412 #else
47413 # include <utmp.h>
47414 #endif
47415
47416 int
47417 main ()
47418 {
47419
47420 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
47421 /* your system *does* have the infrastructure to determine boot time */
47422 #else
47423 please_tell_us_how_to_determine_boot_time_on_your_system
47424 #endif
47425
47426   ;
47427   return 0;
47428 }
47429 _ACEOF
47430 rm -f conftest.$ac_objext
47431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47432   (eval $ac_compile) 2>conftest.er1
47433   ac_status=$?
47434   grep -v '^ *+' conftest.er1 >conftest.err
47435   rm -f conftest.er1
47436   cat conftest.err >&5
47437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47438   (exit $ac_status); } &&
47439          { ac_try='test -z "$ac_c_werror_flag"
47440                          || test ! -s conftest.err'
47441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47442   (eval $ac_try) 2>&5
47443   ac_status=$?
47444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47445   (exit $ac_status); }; } &&
47446          { ac_try='test -s conftest.$ac_objext'
47447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47448   (eval $ac_try) 2>&5
47449   ac_status=$?
47450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47451   (exit $ac_status); }; }; then
47452   gnulib_cv_have_boot_time=yes
47453 else
47454   echo "$as_me: failed program was:" >&5
47455 sed 's/^/| /' conftest.$ac_ext >&5
47456
47457 gnulib_cv_have_boot_time=no
47458 fi
47459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47460
47461 fi
47462 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
47463 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
47464   if test $gnulib_cv_have_boot_time = yes; then
47465   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime\$(EXEEXT)"
47466   MAN="$MAN uptime.1"
47467 fi
47468
47469
47470
47471 echo "$as_me:$LINENO: checking POSIX termios" >&5
47472 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
47473 if test "${ac_cv_sys_posix_termios+set}" = set; then
47474   echo $ECHO_N "(cached) $ECHO_C" >&6
47475 else
47476   cat >conftest.$ac_ext <<_ACEOF
47477 /* confdefs.h.  */
47478 _ACEOF
47479 cat confdefs.h >>conftest.$ac_ext
47480 cat >>conftest.$ac_ext <<_ACEOF
47481 /* end confdefs.h.  */
47482 #include <sys/types.h>
47483 #include <unistd.h>
47484 #include <termios.h>
47485
47486 int
47487 main ()
47488 {
47489 /* SunOS 4.0.3 has termios.h but not the library calls.  */
47490    tcgetattr(0, 0);
47491   ;
47492   return 0;
47493 }
47494 _ACEOF
47495 rm -f conftest.$ac_objext conftest$ac_exeext
47496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47497   (eval $ac_link) 2>conftest.er1
47498   ac_status=$?
47499   grep -v '^ *+' conftest.er1 >conftest.err
47500   rm -f conftest.er1
47501   cat conftest.err >&5
47502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47503   (exit $ac_status); } &&
47504          { ac_try='test -z "$ac_c_werror_flag"
47505                          || test ! -s conftest.err'
47506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47507   (eval $ac_try) 2>&5
47508   ac_status=$?
47509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47510   (exit $ac_status); }; } &&
47511          { ac_try='test -s conftest$ac_exeext'
47512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47513   (eval $ac_try) 2>&5
47514   ac_status=$?
47515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47516   (exit $ac_status); }; }; then
47517   ac_cv_sys_posix_termios=yes
47518 else
47519   echo "$as_me: failed program was:" >&5
47520 sed 's/^/| /' conftest.$ac_ext >&5
47521
47522 ac_cv_sys_posix_termios=no
47523 fi
47524 rm -f conftest.err conftest.$ac_objext \
47525       conftest$ac_exeext conftest.$ac_ext
47526 fi
47527 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
47528 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
47529
47530
47531  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
47532 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
47533 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
47534   echo $ECHO_N "(cached) $ECHO_C" >&6
47535 else
47536   jm_cv_sys_tiocgwinsz_needs_termios_h=no
47537
47538    if test $ac_cv_sys_posix_termios = yes; then
47539      cat >conftest.$ac_ext <<_ACEOF
47540 /* confdefs.h.  */
47541 _ACEOF
47542 cat confdefs.h >>conftest.$ac_ext
47543 cat >>conftest.$ac_ext <<_ACEOF
47544 /* end confdefs.h.  */
47545 #include <sys/types.h>
47546 #      include <termios.h>
47547 #      ifdef TIOCGWINSZ
47548          yes
47549 #      endif
47550
47551 _ACEOF
47552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47553   $EGREP "yes" >/dev/null 2>&1; then
47554   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
47555 fi
47556 rm -f conftest*
47557
47558    fi
47559
47560 fi
47561 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
47562 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
47563
47564
47565  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
47566 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
47567 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
47568   echo $ECHO_N "(cached) $ECHO_C" >&6
47569 else
47570   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
47571
47572   if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
47573     cat >conftest.$ac_ext <<_ACEOF
47574 /* confdefs.h.  */
47575 _ACEOF
47576 cat confdefs.h >>conftest.$ac_ext
47577 cat >>conftest.$ac_ext <<_ACEOF
47578 /* end confdefs.h.  */
47579 #include <sys/types.h>
47580 #     include <sys/ioctl.h>
47581 #     ifdef TIOCGWINSZ
47582         yes
47583 #     endif
47584
47585 _ACEOF
47586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47587   $EGREP "yes" >/dev/null 2>&1; then
47588   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
47589 fi
47590 rm -f conftest*
47591
47592   fi
47593
47594 fi
47595 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
47596 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
47597   if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
47598
47599 cat >>confdefs.h <<\_ACEOF
47600 #define GWINSZ_IN_SYS_IOCTL 1
47601 _ACEOF
47602
47603   fi
47604
47605
47606 if test $ac_cv_sys_posix_termios = yes; then
47607   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty\$(EXEEXT)" MAN="$MAN stty.1"
47608
47609   echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
47610 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
47611   if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
47612   echo $ECHO_N "(cached) $ECHO_C" >&6
47613 else
47614   cat >conftest.$ac_ext <<_ACEOF
47615 /* confdefs.h.  */
47616 _ACEOF
47617 cat confdefs.h >>conftest.$ac_ext
47618 cat >>conftest.$ac_ext <<_ACEOF
47619 /* end confdefs.h.  */
47620 #include <termios.h>
47621 #ifdef IUCLC
47622 yes
47623 #endif
47624 _ACEOF
47625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47626   $EGREP "yes" >/dev/null 2>&1; then
47627   su_cv_sys_termios_needs_xopen_source=no
47628 else
47629   cat >conftest.$ac_ext <<_ACEOF
47630 /* confdefs.h.  */
47631 _ACEOF
47632 cat confdefs.h >>conftest.$ac_ext
47633 cat >>conftest.$ac_ext <<_ACEOF
47634 /* end confdefs.h.  */
47635 #define _XOPEN_SOURCE
47636 #include <termios.h>
47637 #ifdef IUCLC
47638 yes
47639 #endif
47640 _ACEOF
47641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47642   $EGREP "yes" >/dev/null 2>&1; then
47643   su_cv_sys_termios_needs_xopen_source=yes
47644 else
47645   su_cv_sys_termios_needs_xopen_source=no
47646 fi
47647 rm -f conftest*
47648
47649 fi
47650 rm -f conftest*
47651
47652 fi
47653
47654   echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
47655 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
47656   test $su_cv_sys_termios_needs_xopen_source = yes &&
47657
47658 cat >>confdefs.h <<\_ACEOF
47659 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
47660 _ACEOF
47661
47662
47663   echo "$as_me:$LINENO: checking c_line in struct termios" >&5
47664 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
47665   if test "${su_cv_sys_c_line_in_termios+set}" = set; then
47666   echo $ECHO_N "(cached) $ECHO_C" >&6
47667 else
47668   cat >conftest.$ac_ext <<_ACEOF
47669 /* confdefs.h.  */
47670 _ACEOF
47671 cat confdefs.h >>conftest.$ac_ext
47672 cat >>conftest.$ac_ext <<_ACEOF
47673 /* end confdefs.h.  */
47674 #if TERMIOS_NEEDS_XOPEN_SOURCE
47675 #define _XOPEN_SOURCE
47676 #endif
47677 #include <sys/types.h>
47678 #include <termios.h>
47679 int
47680 main ()
47681 {
47682 struct termios t; t.c_line;
47683   ;
47684   return 0;
47685 }
47686 _ACEOF
47687 rm -f conftest.$ac_objext conftest$ac_exeext
47688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47689   (eval $ac_link) 2>conftest.er1
47690   ac_status=$?
47691   grep -v '^ *+' conftest.er1 >conftest.err
47692   rm -f conftest.er1
47693   cat conftest.err >&5
47694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47695   (exit $ac_status); } &&
47696          { ac_try='test -z "$ac_c_werror_flag"
47697                          || test ! -s conftest.err'
47698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47699   (eval $ac_try) 2>&5
47700   ac_status=$?
47701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47702   (exit $ac_status); }; } &&
47703          { ac_try='test -s conftest$ac_exeext'
47704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47705   (eval $ac_try) 2>&5
47706   ac_status=$?
47707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47708   (exit $ac_status); }; }; then
47709   su_cv_sys_c_line_in_termios=yes
47710 else
47711   echo "$as_me: failed program was:" >&5
47712 sed 's/^/| /' conftest.$ac_ext >&5
47713
47714 su_cv_sys_c_line_in_termios=no
47715 fi
47716 rm -f conftest.err conftest.$ac_objext \
47717       conftest$ac_exeext conftest.$ac_ext
47718 fi
47719
47720   echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
47721 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
47722   test $su_cv_sys_c_line_in_termios = yes \
47723     &&
47724 cat >>confdefs.h <<\_ACEOF
47725 #define HAVE_C_LINE 1
47726 _ACEOF
47727
47728 fi
47729
47730 # FIXME: note that this macro appears above, too.
47731 # I'm leaving it here for now.  This whole thing needs to be modernized...
47732
47733    echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
47734 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
47735 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
47736   echo $ECHO_N "(cached) $ECHO_C" >&6
47737 else
47738   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
47739       if test $ac_cv_sys_posix_termios = yes; then
47740         cat >conftest.$ac_ext <<_ACEOF
47741 /* confdefs.h.  */
47742 _ACEOF
47743 cat confdefs.h >>conftest.$ac_ext
47744 cat >>conftest.$ac_ext <<_ACEOF
47745 /* end confdefs.h.  */
47746 #include <termios.h>
47747           struct winsize x;
47748 int
47749 main ()
47750 {
47751 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
47752   ;
47753   return 0;
47754 }
47755 _ACEOF
47756 rm -f conftest.$ac_objext
47757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47758   (eval $ac_compile) 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_objext'
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   :
47779 else
47780   echo "$as_me: failed program was:" >&5
47781 sed 's/^/| /' conftest.$ac_ext >&5
47782
47783 fi
47784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47785       fi
47786       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
47787         cat >conftest.$ac_ext <<_ACEOF
47788 /* confdefs.h.  */
47789 _ACEOF
47790 cat confdefs.h >>conftest.$ac_ext
47791 cat >>conftest.$ac_ext <<_ACEOF
47792 /* end confdefs.h.  */
47793 #include <sys/ptem.h>
47794 int
47795 main ()
47796 {
47797 struct winsize x;
47798   ;
47799   return 0;
47800 }
47801 _ACEOF
47802 rm -f conftest.$ac_objext
47803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47804   (eval $ac_compile) 2>conftest.er1
47805   ac_status=$?
47806   grep -v '^ *+' conftest.er1 >conftest.err
47807   rm -f conftest.er1
47808   cat conftest.err >&5
47809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47810   (exit $ac_status); } &&
47811          { ac_try='test -z "$ac_c_werror_flag"
47812                          || test ! -s conftest.err'
47813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47814   (eval $ac_try) 2>&5
47815   ac_status=$?
47816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47817   (exit $ac_status); }; } &&
47818          { ac_try='test -s conftest.$ac_objext'
47819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47820   (eval $ac_try) 2>&5
47821   ac_status=$?
47822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47823   (exit $ac_status); }; }; then
47824   :
47825 else
47826   echo "$as_me: failed program was:" >&5
47827 sed 's/^/| /' conftest.$ac_ext >&5
47828
47829 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
47830 fi
47831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47832       fi
47833 fi
47834 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
47835 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
47836    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
47837
47838 cat >>confdefs.h <<\_ACEOF
47839 #define WINSIZE_IN_PTEM 1
47840 _ACEOF
47841
47842    fi
47843
47844
47845  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
47846 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
47847 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
47848   echo $ECHO_N "(cached) $ECHO_C" >&6
47849 else
47850   jm_cv_sys_tiocgwinsz_needs_termios_h=no
47851
47852    if test $ac_cv_sys_posix_termios = yes; then
47853      cat >conftest.$ac_ext <<_ACEOF
47854 /* confdefs.h.  */
47855 _ACEOF
47856 cat confdefs.h >>conftest.$ac_ext
47857 cat >>conftest.$ac_ext <<_ACEOF
47858 /* end confdefs.h.  */
47859 #include <sys/types.h>
47860 #      include <termios.h>
47861 #      ifdef TIOCGWINSZ
47862          yes
47863 #      endif
47864
47865 _ACEOF
47866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47867   $EGREP "yes" >/dev/null 2>&1; then
47868   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
47869 fi
47870 rm -f conftest*
47871
47872    fi
47873
47874 fi
47875 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
47876 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
47877
47878
47879 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
47880    test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
47881   echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
47882 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
47883   if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
47884   echo $ECHO_N "(cached) $ECHO_C" >&6
47885 else
47886   cat >conftest.$ac_ext <<_ACEOF
47887 /* confdefs.h.  */
47888 _ACEOF
47889 cat confdefs.h >>conftest.$ac_ext
47890 cat >>conftest.$ac_ext <<_ACEOF
47891 /* end confdefs.h.  */
47892 #include <sys/types.h>
47893 #ifdef WINSIZE_IN_PTEM
47894 # include <sys/stream.h>
47895 # include <sys/ptem.h>
47896 #endif
47897 #include <sys/ioctl.h>
47898 #include <sys/tty.h>
47899 #include <sys/pty.h>
47900 int
47901 main ()
47902 {
47903 int x = TIOCGWINSZ;
47904   ;
47905   return 0;
47906 }
47907 _ACEOF
47908 rm -f conftest.$ac_objext conftest$ac_exeext
47909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47910   (eval $ac_link) 2>conftest.er1
47911   ac_status=$?
47912   grep -v '^ *+' conftest.er1 >conftest.err
47913   rm -f conftest.er1
47914   cat conftest.err >&5
47915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47916   (exit $ac_status); } &&
47917          { ac_try='test -z "$ac_c_werror_flag"
47918                          || test ! -s conftest.err'
47919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47920   (eval $ac_try) 2>&5
47921   ac_status=$?
47922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47923   (exit $ac_status); }; } &&
47924          { ac_try='test -s conftest$ac_exeext'
47925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47926   (eval $ac_try) 2>&5
47927   ac_status=$?
47928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47929   (exit $ac_status); }; }; then
47930   su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
47931 else
47932   echo "$as_me: failed program was:" >&5
47933 sed 's/^/| /' conftest.$ac_ext >&5
47934
47935 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
47936 fi
47937 rm -f conftest.err conftest.$ac_objext \
47938       conftest$ac_exeext conftest.$ac_ext
47939 fi
47940
47941   echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
47942 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
47943
47944   test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
47945       &&
47946 cat >>confdefs.h <<\_ACEOF
47947 #define GWINSZ_IN_SYS_PTY 1
47948 _ACEOF
47949
47950 fi
47951
47952 # For src/kill.c.
47953 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
47954 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
47955 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
47956   echo $ECHO_N "(cached) $ECHO_C" >&6
47957 else
47958   cat >conftest.$ac_ext <<_ACEOF
47959 /* confdefs.h.  */
47960 _ACEOF
47961 cat confdefs.h >>conftest.$ac_ext
47962 cat >>conftest.$ac_ext <<_ACEOF
47963 /* end confdefs.h.  */
47964 $ac_includes_default
47965 int
47966 main ()
47967 {
47968 #ifndef strtoimax
47969   char *p = (char *) strtoimax;
47970 #endif
47971
47972   ;
47973   return 0;
47974 }
47975 _ACEOF
47976 rm -f conftest.$ac_objext
47977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47978   (eval $ac_compile) 2>conftest.er1
47979   ac_status=$?
47980   grep -v '^ *+' conftest.er1 >conftest.err
47981   rm -f conftest.er1
47982   cat conftest.err >&5
47983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47984   (exit $ac_status); } &&
47985          { ac_try='test -z "$ac_c_werror_flag"
47986                          || test ! -s conftest.err'
47987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47988   (eval $ac_try) 2>&5
47989   ac_status=$?
47990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47991   (exit $ac_status); }; } &&
47992          { ac_try='test -s conftest.$ac_objext'
47993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47994   (eval $ac_try) 2>&5
47995   ac_status=$?
47996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47997   (exit $ac_status); }; }; then
47998   ac_cv_have_decl_strtoimax=yes
47999 else
48000   echo "$as_me: failed program was:" >&5
48001 sed 's/^/| /' conftest.$ac_ext >&5
48002
48003 ac_cv_have_decl_strtoimax=no
48004 fi
48005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48006 fi
48007 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
48008 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
48009 if test $ac_cv_have_decl_strtoimax = yes; then
48010
48011 cat >>confdefs.h <<_ACEOF
48012 #define HAVE_DECL_STRTOIMAX 1
48013 _ACEOF
48014
48015
48016 else
48017   cat >>confdefs.h <<_ACEOF
48018 #define HAVE_DECL_STRTOIMAX 0
48019 _ACEOF
48020
48021
48022 fi
48023
48024
48025 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
48026 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
48027 if test "${ac_cv_have_decl_strsignal+set}" = set; then
48028   echo $ECHO_N "(cached) $ECHO_C" >&6
48029 else
48030   cat >conftest.$ac_ext <<_ACEOF
48031 /* confdefs.h.  */
48032 _ACEOF
48033 cat confdefs.h >>conftest.$ac_ext
48034 cat >>conftest.$ac_ext <<_ACEOF
48035 /* end confdefs.h.  */
48036 $ac_includes_default
48037 #include <signal.h>
48038
48039 int
48040 main ()
48041 {
48042 #ifndef strsignal
48043   char *p = (char *) strsignal;
48044 #endif
48045
48046   ;
48047   return 0;
48048 }
48049 _ACEOF
48050 rm -f conftest.$ac_objext
48051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48052   (eval $ac_compile) 2>conftest.er1
48053   ac_status=$?
48054   grep -v '^ *+' conftest.er1 >conftest.err
48055   rm -f conftest.er1
48056   cat conftest.err >&5
48057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48058   (exit $ac_status); } &&
48059          { ac_try='test -z "$ac_c_werror_flag"
48060                          || test ! -s conftest.err'
48061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48062   (eval $ac_try) 2>&5
48063   ac_status=$?
48064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48065   (exit $ac_status); }; } &&
48066          { ac_try='test -s conftest.$ac_objext'
48067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48068   (eval $ac_try) 2>&5
48069   ac_status=$?
48070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48071   (exit $ac_status); }; }; then
48072   ac_cv_have_decl_strsignal=yes
48073 else
48074   echo "$as_me: failed program was:" >&5
48075 sed 's/^/| /' conftest.$ac_ext >&5
48076
48077 ac_cv_have_decl_strsignal=no
48078 fi
48079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48080 fi
48081 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
48082 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
48083 if test $ac_cv_have_decl_strsignal = yes; then
48084
48085 cat >>confdefs.h <<_ACEOF
48086 #define HAVE_DECL_STRSIGNAL 1
48087 _ACEOF
48088
48089
48090 else
48091   cat >>confdefs.h <<_ACEOF
48092 #define HAVE_DECL_STRSIGNAL 0
48093 _ACEOF
48094
48095
48096 fi
48097 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
48098 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
48099 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
48100   echo $ECHO_N "(cached) $ECHO_C" >&6
48101 else
48102   cat >conftest.$ac_ext <<_ACEOF
48103 /* confdefs.h.  */
48104 _ACEOF
48105 cat confdefs.h >>conftest.$ac_ext
48106 cat >>conftest.$ac_ext <<_ACEOF
48107 /* end confdefs.h.  */
48108 $ac_includes_default
48109 #include <signal.h>
48110
48111 int
48112 main ()
48113 {
48114 #ifndef sys_siglist
48115   char *p = (char *) sys_siglist;
48116 #endif
48117
48118   ;
48119   return 0;
48120 }
48121 _ACEOF
48122 rm -f conftest.$ac_objext
48123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48124   (eval $ac_compile) 2>conftest.er1
48125   ac_status=$?
48126   grep -v '^ *+' conftest.er1 >conftest.err
48127   rm -f conftest.er1
48128   cat conftest.err >&5
48129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48130   (exit $ac_status); } &&
48131          { ac_try='test -z "$ac_c_werror_flag"
48132                          || test ! -s conftest.err'
48133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48134   (eval $ac_try) 2>&5
48135   ac_status=$?
48136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48137   (exit $ac_status); }; } &&
48138          { ac_try='test -s conftest.$ac_objext'
48139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48140   (eval $ac_try) 2>&5
48141   ac_status=$?
48142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48143   (exit $ac_status); }; }; then
48144   ac_cv_have_decl_sys_siglist=yes
48145 else
48146   echo "$as_me: failed program was:" >&5
48147 sed 's/^/| /' conftest.$ac_ext >&5
48148
48149 ac_cv_have_decl_sys_siglist=no
48150 fi
48151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48152 fi
48153 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
48154 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
48155 if test $ac_cv_have_decl_sys_siglist = yes; then
48156
48157 cat >>confdefs.h <<_ACEOF
48158 #define HAVE_DECL_SYS_SIGLIST 1
48159 _ACEOF
48160
48161
48162 else
48163   cat >>confdefs.h <<_ACEOF
48164 #define HAVE_DECL_SYS_SIGLIST 0
48165 _ACEOF
48166
48167
48168 fi
48169 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
48170 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
48171 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
48172   echo $ECHO_N "(cached) $ECHO_C" >&6
48173 else
48174   cat >conftest.$ac_ext <<_ACEOF
48175 /* confdefs.h.  */
48176 _ACEOF
48177 cat confdefs.h >>conftest.$ac_ext
48178 cat >>conftest.$ac_ext <<_ACEOF
48179 /* end confdefs.h.  */
48180 $ac_includes_default
48181 #include <signal.h>
48182
48183 int
48184 main ()
48185 {
48186 #ifndef _sys_siglist
48187   char *p = (char *) _sys_siglist;
48188 #endif
48189
48190   ;
48191   return 0;
48192 }
48193 _ACEOF
48194 rm -f conftest.$ac_objext
48195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48196   (eval $ac_compile) 2>conftest.er1
48197   ac_status=$?
48198   grep -v '^ *+' conftest.er1 >conftest.err
48199   rm -f conftest.er1
48200   cat conftest.err >&5
48201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48202   (exit $ac_status); } &&
48203          { ac_try='test -z "$ac_c_werror_flag"
48204                          || test ! -s conftest.err'
48205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48206   (eval $ac_try) 2>&5
48207   ac_status=$?
48208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48209   (exit $ac_status); }; } &&
48210          { ac_try='test -s conftest.$ac_objext'
48211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48212   (eval $ac_try) 2>&5
48213   ac_status=$?
48214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48215   (exit $ac_status); }; }; then
48216   ac_cv_have_decl__sys_siglist=yes
48217 else
48218   echo "$as_me: failed program was:" >&5
48219 sed 's/^/| /' conftest.$ac_ext >&5
48220
48221 ac_cv_have_decl__sys_siglist=no
48222 fi
48223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48224 fi
48225 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
48226 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
48227 if test $ac_cv_have_decl__sys_siglist = yes; then
48228
48229 cat >>confdefs.h <<_ACEOF
48230 #define HAVE_DECL__SYS_SIGLIST 1
48231 _ACEOF
48232
48233
48234 else
48235   cat >>confdefs.h <<_ACEOF
48236 #define HAVE_DECL__SYS_SIGLIST 0
48237 _ACEOF
48238
48239
48240 fi
48241 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
48242 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
48243 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
48244   echo $ECHO_N "(cached) $ECHO_C" >&6
48245 else
48246   cat >conftest.$ac_ext <<_ACEOF
48247 /* confdefs.h.  */
48248 _ACEOF
48249 cat confdefs.h >>conftest.$ac_ext
48250 cat >>conftest.$ac_ext <<_ACEOF
48251 /* end confdefs.h.  */
48252 $ac_includes_default
48253 #include <signal.h>
48254
48255 int
48256 main ()
48257 {
48258 #ifndef __sys_siglist
48259   char *p = (char *) __sys_siglist;
48260 #endif
48261
48262   ;
48263   return 0;
48264 }
48265 _ACEOF
48266 rm -f conftest.$ac_objext
48267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48268   (eval $ac_compile) 2>conftest.er1
48269   ac_status=$?
48270   grep -v '^ *+' conftest.er1 >conftest.err
48271   rm -f conftest.er1
48272   cat conftest.err >&5
48273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48274   (exit $ac_status); } &&
48275          { ac_try='test -z "$ac_c_werror_flag"
48276                          || test ! -s conftest.err'
48277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48278   (eval $ac_try) 2>&5
48279   ac_status=$?
48280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48281   (exit $ac_status); }; } &&
48282          { ac_try='test -s conftest.$ac_objext'
48283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48284   (eval $ac_try) 2>&5
48285   ac_status=$?
48286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48287   (exit $ac_status); }; }; then
48288   ac_cv_have_decl___sys_siglist=yes
48289 else
48290   echo "$as_me: failed program was:" >&5
48291 sed 's/^/| /' conftest.$ac_ext >&5
48292
48293 ac_cv_have_decl___sys_siglist=no
48294 fi
48295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48296 fi
48297 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
48298 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
48299 if test $ac_cv_have_decl___sys_siglist = yes; then
48300
48301 cat >>confdefs.h <<_ACEOF
48302 #define HAVE_DECL___SYS_SIGLIST 1
48303 _ACEOF
48304
48305
48306 else
48307   cat >>confdefs.h <<_ACEOF
48308 #define HAVE_DECL___SYS_SIGLIST 0
48309 _ACEOF
48310
48311
48312 fi
48313
48314
48315
48316
48317
48318   # Check for libypsec.a on Dolphin M88K machines.
48319
48320 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
48321 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
48322 if test "${ac_cv_lib_ypsec_main+set}" = set; then
48323   echo $ECHO_N "(cached) $ECHO_C" >&6
48324 else
48325   ac_check_lib_save_LIBS=$LIBS
48326 LIBS="-lypsec  $LIBS"
48327 cat >conftest.$ac_ext <<_ACEOF
48328 /* confdefs.h.  */
48329 _ACEOF
48330 cat confdefs.h >>conftest.$ac_ext
48331 cat >>conftest.$ac_ext <<_ACEOF
48332 /* end confdefs.h.  */
48333
48334
48335 int
48336 main ()
48337 {
48338 main ();
48339   ;
48340   return 0;
48341 }
48342 _ACEOF
48343 rm -f conftest.$ac_objext conftest$ac_exeext
48344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48345   (eval $ac_link) 2>conftest.er1
48346   ac_status=$?
48347   grep -v '^ *+' conftest.er1 >conftest.err
48348   rm -f conftest.er1
48349   cat conftest.err >&5
48350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48351   (exit $ac_status); } &&
48352          { ac_try='test -z "$ac_c_werror_flag"
48353                          || test ! -s conftest.err'
48354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48355   (eval $ac_try) 2>&5
48356   ac_status=$?
48357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48358   (exit $ac_status); }; } &&
48359          { ac_try='test -s conftest$ac_exeext'
48360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48361   (eval $ac_try) 2>&5
48362   ac_status=$?
48363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48364   (exit $ac_status); }; }; then
48365   ac_cv_lib_ypsec_main=yes
48366 else
48367   echo "$as_me: failed program was:" >&5
48368 sed 's/^/| /' conftest.$ac_ext >&5
48369
48370 ac_cv_lib_ypsec_main=no
48371 fi
48372 rm -f conftest.err conftest.$ac_objext \
48373       conftest$ac_exeext conftest.$ac_ext
48374 LIBS=$ac_check_lib_save_LIBS
48375 fi
48376 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
48377 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
48378 if test $ac_cv_lib_ypsec_main = yes; then
48379   cat >>confdefs.h <<_ACEOF
48380 #define HAVE_LIBYPSEC 1
48381 _ACEOF
48382
48383   LIBS="-lypsec $LIBS"
48384
48385 fi
48386
48387
48388   # m88k running dgux 5.4 needs this
48389
48390 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
48391 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
48392 if test "${ac_cv_lib_ldgc_main+set}" = set; then
48393   echo $ECHO_N "(cached) $ECHO_C" >&6
48394 else
48395   ac_check_lib_save_LIBS=$LIBS
48396 LIBS="-lldgc  $LIBS"
48397 cat >conftest.$ac_ext <<_ACEOF
48398 /* confdefs.h.  */
48399 _ACEOF
48400 cat confdefs.h >>conftest.$ac_ext
48401 cat >>conftest.$ac_ext <<_ACEOF
48402 /* end confdefs.h.  */
48403
48404
48405 int
48406 main ()
48407 {
48408 main ();
48409   ;
48410   return 0;
48411 }
48412 _ACEOF
48413 rm -f conftest.$ac_objext conftest$ac_exeext
48414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48415   (eval $ac_link) 2>conftest.er1
48416   ac_status=$?
48417   grep -v '^ *+' conftest.er1 >conftest.err
48418   rm -f conftest.er1
48419   cat conftest.err >&5
48420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48421   (exit $ac_status); } &&
48422          { ac_try='test -z "$ac_c_werror_flag"
48423                          || test ! -s conftest.err'
48424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48425   (eval $ac_try) 2>&5
48426   ac_status=$?
48427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48428   (exit $ac_status); }; } &&
48429          { ac_try='test -s conftest$ac_exeext'
48430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48431   (eval $ac_try) 2>&5
48432   ac_status=$?
48433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48434   (exit $ac_status); }; }; then
48435   ac_cv_lib_ldgc_main=yes
48436 else
48437   echo "$as_me: failed program was:" >&5
48438 sed 's/^/| /' conftest.$ac_ext >&5
48439
48440 ac_cv_lib_ldgc_main=no
48441 fi
48442 rm -f conftest.err conftest.$ac_objext \
48443       conftest$ac_exeext conftest.$ac_ext
48444 LIBS=$ac_check_lib_save_LIBS
48445 fi
48446 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
48447 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
48448 if test $ac_cv_lib_ldgc_main = yes; then
48449   cat >>confdefs.h <<_ACEOF
48450 #define HAVE_LIBLDGC 1
48451 _ACEOF
48452
48453   LIBS="-lldgc $LIBS"
48454
48455 fi
48456
48457
48458   # Some programs need to link with -lm.  printf does if it uses
48459   # lib/strtod.c which uses pow.  And seq uses the math functions,
48460   # floor, modf, rint.  And factor uses sqrt.  And sleep uses fesetround.
48461
48462   # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
48463   # Check for these math functions used by seq.
48464   ac_su_saved_lib="$LIBS"
48465   LIBS="$LIBS -lm"
48466
48467
48468
48469 for ac_func in floor modf rint
48470 do
48471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48472 echo "$as_me:$LINENO: checking for $ac_func" >&5
48473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48474 if eval "test \"\${$as_ac_var+set}\" = set"; then
48475   echo $ECHO_N "(cached) $ECHO_C" >&6
48476 else
48477   cat >conftest.$ac_ext <<_ACEOF
48478 /* confdefs.h.  */
48479 _ACEOF
48480 cat confdefs.h >>conftest.$ac_ext
48481 cat >>conftest.$ac_ext <<_ACEOF
48482 /* end confdefs.h.  */
48483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48485 #define $ac_func innocuous_$ac_func
48486
48487 /* System header to define __stub macros and hopefully few prototypes,
48488     which can conflict with char $ac_func (); below.
48489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48490     <limits.h> exists even on freestanding compilers.  */
48491
48492 #ifdef __STDC__
48493 # include <limits.h>
48494 #else
48495 # include <assert.h>
48496 #endif
48497
48498 #undef $ac_func
48499
48500 /* Override any gcc2 internal prototype to avoid an error.  */
48501 #ifdef __cplusplus
48502 extern "C"
48503 {
48504 #endif
48505 /* We use char because int might match the return type of a gcc2
48506    builtin and then its argument prototype would still apply.  */
48507 char $ac_func ();
48508 /* The GNU C library defines this for functions which it implements
48509     to always fail with ENOSYS.  Some functions are actually named
48510     something starting with __ and the normal name is an alias.  */
48511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48512 choke me
48513 #else
48514 char (*f) () = $ac_func;
48515 #endif
48516 #ifdef __cplusplus
48517 }
48518 #endif
48519
48520 int
48521 main ()
48522 {
48523 return f != $ac_func;
48524   ;
48525   return 0;
48526 }
48527 _ACEOF
48528 rm -f conftest.$ac_objext conftest$ac_exeext
48529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48530   (eval $ac_link) 2>conftest.er1
48531   ac_status=$?
48532   grep -v '^ *+' conftest.er1 >conftest.err
48533   rm -f conftest.er1
48534   cat conftest.err >&5
48535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48536   (exit $ac_status); } &&
48537          { ac_try='test -z "$ac_c_werror_flag"
48538                          || test ! -s conftest.err'
48539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48540   (eval $ac_try) 2>&5
48541   ac_status=$?
48542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48543   (exit $ac_status); }; } &&
48544          { ac_try='test -s conftest$ac_exeext'
48545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48546   (eval $ac_try) 2>&5
48547   ac_status=$?
48548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48549   (exit $ac_status); }; }; then
48550   eval "$as_ac_var=yes"
48551 else
48552   echo "$as_me: failed program was:" >&5
48553 sed 's/^/| /' conftest.$ac_ext >&5
48554
48555 eval "$as_ac_var=no"
48556 fi
48557 rm -f conftest.err conftest.$ac_objext \
48558       conftest$ac_exeext conftest.$ac_ext
48559 fi
48560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48562 if test `eval echo '${'$as_ac_var'}'` = yes; then
48563   cat >>confdefs.h <<_ACEOF
48564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48565 _ACEOF
48566
48567 fi
48568 done
48569
48570   LIBS="$ac_su_saved_lib"
48571
48572
48573
48574 for ac_func in sqrt
48575 do
48576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48577 echo "$as_me:$LINENO: checking for $ac_func" >&5
48578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48579 if eval "test \"\${$as_ac_var+set}\" = set"; then
48580   echo $ECHO_N "(cached) $ECHO_C" >&6
48581 else
48582   cat >conftest.$ac_ext <<_ACEOF
48583 /* confdefs.h.  */
48584 _ACEOF
48585 cat confdefs.h >>conftest.$ac_ext
48586 cat >>conftest.$ac_ext <<_ACEOF
48587 /* end confdefs.h.  */
48588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48589    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48590 #define $ac_func innocuous_$ac_func
48591
48592 /* System header to define __stub macros and hopefully few prototypes,
48593     which can conflict with char $ac_func (); below.
48594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48595     <limits.h> exists even on freestanding compilers.  */
48596
48597 #ifdef __STDC__
48598 # include <limits.h>
48599 #else
48600 # include <assert.h>
48601 #endif
48602
48603 #undef $ac_func
48604
48605 /* Override any gcc2 internal prototype to avoid an error.  */
48606 #ifdef __cplusplus
48607 extern "C"
48608 {
48609 #endif
48610 /* We use char because int might match the return type of a gcc2
48611    builtin and then its argument prototype would still apply.  */
48612 char $ac_func ();
48613 /* The GNU C library defines this for functions which it implements
48614     to always fail with ENOSYS.  Some functions are actually named
48615     something starting with __ and the normal name is an alias.  */
48616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48617 choke me
48618 #else
48619 char (*f) () = $ac_func;
48620 #endif
48621 #ifdef __cplusplus
48622 }
48623 #endif
48624
48625 int
48626 main ()
48627 {
48628 return f != $ac_func;
48629   ;
48630   return 0;
48631 }
48632 _ACEOF
48633 rm -f conftest.$ac_objext conftest$ac_exeext
48634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48635   (eval $ac_link) 2>conftest.er1
48636   ac_status=$?
48637   grep -v '^ *+' conftest.er1 >conftest.err
48638   rm -f conftest.er1
48639   cat conftest.err >&5
48640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48641   (exit $ac_status); } &&
48642          { ac_try='test -z "$ac_c_werror_flag"
48643                          || test ! -s conftest.err'
48644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48645   (eval $ac_try) 2>&5
48646   ac_status=$?
48647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48648   (exit $ac_status); }; } &&
48649          { ac_try='test -s conftest$ac_exeext'
48650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48651   (eval $ac_try) 2>&5
48652   ac_status=$?
48653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48654   (exit $ac_status); }; }; then
48655   eval "$as_ac_var=yes"
48656 else
48657   echo "$as_me: failed program was:" >&5
48658 sed 's/^/| /' conftest.$ac_ext >&5
48659
48660 eval "$as_ac_var=no"
48661 fi
48662 rm -f conftest.err conftest.$ac_objext \
48663       conftest$ac_exeext conftest.$ac_ext
48664 fi
48665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48667 if test `eval echo '${'$as_ac_var'}'` = yes; then
48668   cat >>confdefs.h <<_ACEOF
48669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48670 _ACEOF
48671
48672 fi
48673 done
48674
48675   if test $ac_cv_func_sqrt = no; then
48676     echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
48677 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
48678 if test "${ac_cv_lib_m_sqrt+set}" = set; then
48679   echo $ECHO_N "(cached) $ECHO_C" >&6
48680 else
48681   ac_check_lib_save_LIBS=$LIBS
48682 LIBS="-lm  $LIBS"
48683 cat >conftest.$ac_ext <<_ACEOF
48684 /* confdefs.h.  */
48685 _ACEOF
48686 cat confdefs.h >>conftest.$ac_ext
48687 cat >>conftest.$ac_ext <<_ACEOF
48688 /* end confdefs.h.  */
48689
48690 /* Override any gcc2 internal prototype to avoid an error.  */
48691 #ifdef __cplusplus
48692 extern "C"
48693 #endif
48694 /* We use char because int might match the return type of a gcc2
48695    builtin and then its argument prototype would still apply.  */
48696 char sqrt ();
48697 int
48698 main ()
48699 {
48700 sqrt ();
48701   ;
48702   return 0;
48703 }
48704 _ACEOF
48705 rm -f conftest.$ac_objext conftest$ac_exeext
48706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48707   (eval $ac_link) 2>conftest.er1
48708   ac_status=$?
48709   grep -v '^ *+' conftest.er1 >conftest.err
48710   rm -f conftest.er1
48711   cat conftest.err >&5
48712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48713   (exit $ac_status); } &&
48714          { ac_try='test -z "$ac_c_werror_flag"
48715                          || test ! -s conftest.err'
48716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48717   (eval $ac_try) 2>&5
48718   ac_status=$?
48719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48720   (exit $ac_status); }; } &&
48721          { ac_try='test -s conftest$ac_exeext'
48722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48723   (eval $ac_try) 2>&5
48724   ac_status=$?
48725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48726   (exit $ac_status); }; }; then
48727   ac_cv_lib_m_sqrt=yes
48728 else
48729   echo "$as_me: failed program was:" >&5
48730 sed 's/^/| /' conftest.$ac_ext >&5
48731
48732 ac_cv_lib_m_sqrt=no
48733 fi
48734 rm -f conftest.err conftest.$ac_objext \
48735       conftest$ac_exeext conftest.$ac_ext
48736 LIBS=$ac_check_lib_save_LIBS
48737 fi
48738 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
48739 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
48740 if test $ac_cv_lib_m_sqrt = yes; then
48741   SQRT_LIBM=-lm
48742 fi
48743
48744   fi
48745
48746
48747
48748 for ac_func in fesetround
48749 do
48750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48751 echo "$as_me:$LINENO: checking for $ac_func" >&5
48752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48753 if eval "test \"\${$as_ac_var+set}\" = set"; then
48754   echo $ECHO_N "(cached) $ECHO_C" >&6
48755 else
48756   cat >conftest.$ac_ext <<_ACEOF
48757 /* confdefs.h.  */
48758 _ACEOF
48759 cat confdefs.h >>conftest.$ac_ext
48760 cat >>conftest.$ac_ext <<_ACEOF
48761 /* end confdefs.h.  */
48762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48764 #define $ac_func innocuous_$ac_func
48765
48766 /* System header to define __stub macros and hopefully few prototypes,
48767     which can conflict with char $ac_func (); below.
48768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48769     <limits.h> exists even on freestanding compilers.  */
48770
48771 #ifdef __STDC__
48772 # include <limits.h>
48773 #else
48774 # include <assert.h>
48775 #endif
48776
48777 #undef $ac_func
48778
48779 /* Override any gcc2 internal prototype to avoid an error.  */
48780 #ifdef __cplusplus
48781 extern "C"
48782 {
48783 #endif
48784 /* We use char because int might match the return type of a gcc2
48785    builtin and then its argument prototype would still apply.  */
48786 char $ac_func ();
48787 /* The GNU C library defines this for functions which it implements
48788     to always fail with ENOSYS.  Some functions are actually named
48789     something starting with __ and the normal name is an alias.  */
48790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48791 choke me
48792 #else
48793 char (*f) () = $ac_func;
48794 #endif
48795 #ifdef __cplusplus
48796 }
48797 #endif
48798
48799 int
48800 main ()
48801 {
48802 return f != $ac_func;
48803   ;
48804   return 0;
48805 }
48806 _ACEOF
48807 rm -f conftest.$ac_objext conftest$ac_exeext
48808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48809   (eval $ac_link) 2>conftest.er1
48810   ac_status=$?
48811   grep -v '^ *+' conftest.er1 >conftest.err
48812   rm -f conftest.er1
48813   cat conftest.err >&5
48814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48815   (exit $ac_status); } &&
48816          { ac_try='test -z "$ac_c_werror_flag"
48817                          || test ! -s conftest.err'
48818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48819   (eval $ac_try) 2>&5
48820   ac_status=$?
48821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48822   (exit $ac_status); }; } &&
48823          { ac_try='test -s conftest$ac_exeext'
48824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48825   (eval $ac_try) 2>&5
48826   ac_status=$?
48827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48828   (exit $ac_status); }; }; then
48829   eval "$as_ac_var=yes"
48830 else
48831   echo "$as_me: failed program was:" >&5
48832 sed 's/^/| /' conftest.$ac_ext >&5
48833
48834 eval "$as_ac_var=no"
48835 fi
48836 rm -f conftest.err conftest.$ac_objext \
48837       conftest$ac_exeext conftest.$ac_ext
48838 fi
48839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48841 if test `eval echo '${'$as_ac_var'}'` = yes; then
48842   cat >>confdefs.h <<_ACEOF
48843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48844 _ACEOF
48845
48846 fi
48847 done
48848
48849   if test $ac_cv_func_fesetround = no; then
48850     echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
48851 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
48852 if test "${ac_cv_lib_m_fesetround+set}" = set; then
48853   echo $ECHO_N "(cached) $ECHO_C" >&6
48854 else
48855   ac_check_lib_save_LIBS=$LIBS
48856 LIBS="-lm  $LIBS"
48857 cat >conftest.$ac_ext <<_ACEOF
48858 /* confdefs.h.  */
48859 _ACEOF
48860 cat confdefs.h >>conftest.$ac_ext
48861 cat >>conftest.$ac_ext <<_ACEOF
48862 /* end confdefs.h.  */
48863
48864 /* Override any gcc2 internal prototype to avoid an error.  */
48865 #ifdef __cplusplus
48866 extern "C"
48867 #endif
48868 /* We use char because int might match the return type of a gcc2
48869    builtin and then its argument prototype would still apply.  */
48870 char fesetround ();
48871 int
48872 main ()
48873 {
48874 fesetround ();
48875   ;
48876   return 0;
48877 }
48878 _ACEOF
48879 rm -f conftest.$ac_objext conftest$ac_exeext
48880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48881   (eval $ac_link) 2>conftest.er1
48882   ac_status=$?
48883   grep -v '^ *+' conftest.er1 >conftest.err
48884   rm -f conftest.er1
48885   cat conftest.err >&5
48886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48887   (exit $ac_status); } &&
48888          { ac_try='test -z "$ac_c_werror_flag"
48889                          || test ! -s conftest.err'
48890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48891   (eval $ac_try) 2>&5
48892   ac_status=$?
48893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48894   (exit $ac_status); }; } &&
48895          { ac_try='test -s conftest$ac_exeext'
48896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48897   (eval $ac_try) 2>&5
48898   ac_status=$?
48899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48900   (exit $ac_status); }; }; then
48901   ac_cv_lib_m_fesetround=yes
48902 else
48903   echo "$as_me: failed program was:" >&5
48904 sed 's/^/| /' conftest.$ac_ext >&5
48905
48906 ac_cv_lib_m_fesetround=no
48907 fi
48908 rm -f conftest.err conftest.$ac_objext \
48909       conftest$ac_exeext conftest.$ac_ext
48910 LIBS=$ac_check_lib_save_LIBS
48911 fi
48912 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
48913 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
48914 if test $ac_cv_lib_m_fesetround = yes; then
48915   FESETROUND_LIBM=-lm
48916 fi
48917
48918   fi
48919
48920   # The -lsun library is required for YP support on Irix-4.0.5 systems.
48921   # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
48922   echo "$as_me:$LINENO: checking for library containing yp_match" >&5
48923 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
48924 if test "${ac_cv_search_yp_match+set}" = set; then
48925   echo $ECHO_N "(cached) $ECHO_C" >&6
48926 else
48927   ac_func_search_save_LIBS=$LIBS
48928 ac_cv_search_yp_match=no
48929 cat >conftest.$ac_ext <<_ACEOF
48930 /* confdefs.h.  */
48931 _ACEOF
48932 cat confdefs.h >>conftest.$ac_ext
48933 cat >>conftest.$ac_ext <<_ACEOF
48934 /* end confdefs.h.  */
48935
48936 /* Override any gcc2 internal prototype to avoid an error.  */
48937 #ifdef __cplusplus
48938 extern "C"
48939 #endif
48940 /* We use char because int might match the return type of a gcc2
48941    builtin and then its argument prototype would still apply.  */
48942 char yp_match ();
48943 int
48944 main ()
48945 {
48946 yp_match ();
48947   ;
48948   return 0;
48949 }
48950 _ACEOF
48951 rm -f conftest.$ac_objext conftest$ac_exeext
48952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48953   (eval $ac_link) 2>conftest.er1
48954   ac_status=$?
48955   grep -v '^ *+' conftest.er1 >conftest.err
48956   rm -f conftest.er1
48957   cat conftest.err >&5
48958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48959   (exit $ac_status); } &&
48960          { ac_try='test -z "$ac_c_werror_flag"
48961                          || test ! -s conftest.err'
48962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48963   (eval $ac_try) 2>&5
48964   ac_status=$?
48965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48966   (exit $ac_status); }; } &&
48967          { ac_try='test -s conftest$ac_exeext'
48968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48969   (eval $ac_try) 2>&5
48970   ac_status=$?
48971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48972   (exit $ac_status); }; }; then
48973   ac_cv_search_yp_match="none required"
48974 else
48975   echo "$as_me: failed program was:" >&5
48976 sed 's/^/| /' conftest.$ac_ext >&5
48977
48978 fi
48979 rm -f conftest.err conftest.$ac_objext \
48980       conftest$ac_exeext conftest.$ac_ext
48981 if test "$ac_cv_search_yp_match" = no; then
48982   for ac_lib in sun ypsec; do
48983     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
48984     cat >conftest.$ac_ext <<_ACEOF
48985 /* confdefs.h.  */
48986 _ACEOF
48987 cat confdefs.h >>conftest.$ac_ext
48988 cat >>conftest.$ac_ext <<_ACEOF
48989 /* end confdefs.h.  */
48990
48991 /* Override any gcc2 internal prototype to avoid an error.  */
48992 #ifdef __cplusplus
48993 extern "C"
48994 #endif
48995 /* We use char because int might match the return type of a gcc2
48996    builtin and then its argument prototype would still apply.  */
48997 char yp_match ();
48998 int
48999 main ()
49000 {
49001 yp_match ();
49002   ;
49003   return 0;
49004 }
49005 _ACEOF
49006 rm -f conftest.$ac_objext conftest$ac_exeext
49007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49008   (eval $ac_link) 2>conftest.er1
49009   ac_status=$?
49010   grep -v '^ *+' conftest.er1 >conftest.err
49011   rm -f conftest.er1
49012   cat conftest.err >&5
49013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49014   (exit $ac_status); } &&
49015          { ac_try='test -z "$ac_c_werror_flag"
49016                          || test ! -s conftest.err'
49017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49018   (eval $ac_try) 2>&5
49019   ac_status=$?
49020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49021   (exit $ac_status); }; } &&
49022          { ac_try='test -s conftest$ac_exeext'
49023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49024   (eval $ac_try) 2>&5
49025   ac_status=$?
49026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49027   (exit $ac_status); }; }; then
49028   ac_cv_search_yp_match="-l$ac_lib"
49029 break
49030 else
49031   echo "$as_me: failed program was:" >&5
49032 sed 's/^/| /' conftest.$ac_ext >&5
49033
49034 fi
49035 rm -f conftest.err conftest.$ac_objext \
49036       conftest$ac_exeext conftest.$ac_ext
49037   done
49038 fi
49039 LIBS=$ac_func_search_save_LIBS
49040 fi
49041 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
49042 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
49043 if test "$ac_cv_search_yp_match" != no; then
49044   test "$ac_cv_search_yp_match" = "none required" || LIBS="$ac_cv_search_yp_match $LIBS"
49045
49046 fi
49047
49048
49049   # SysV needs -lsec, older versions of Linux need -lshadow for
49050   # shadow passwords.  UnixWare 7 needs -lgen.
49051   echo "$as_me:$LINENO: checking for library containing getspnam" >&5
49052 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
49053 if test "${ac_cv_search_getspnam+set}" = set; then
49054   echo $ECHO_N "(cached) $ECHO_C" >&6
49055 else
49056   ac_func_search_save_LIBS=$LIBS
49057 ac_cv_search_getspnam=no
49058 cat >conftest.$ac_ext <<_ACEOF
49059 /* confdefs.h.  */
49060 _ACEOF
49061 cat confdefs.h >>conftest.$ac_ext
49062 cat >>conftest.$ac_ext <<_ACEOF
49063 /* end confdefs.h.  */
49064
49065 /* Override any gcc2 internal prototype to avoid an error.  */
49066 #ifdef __cplusplus
49067 extern "C"
49068 #endif
49069 /* We use char because int might match the return type of a gcc2
49070    builtin and then its argument prototype would still apply.  */
49071 char getspnam ();
49072 int
49073 main ()
49074 {
49075 getspnam ();
49076   ;
49077   return 0;
49078 }
49079 _ACEOF
49080 rm -f conftest.$ac_objext conftest$ac_exeext
49081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49082   (eval $ac_link) 2>conftest.er1
49083   ac_status=$?
49084   grep -v '^ *+' conftest.er1 >conftest.err
49085   rm -f conftest.er1
49086   cat conftest.err >&5
49087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49088   (exit $ac_status); } &&
49089          { ac_try='test -z "$ac_c_werror_flag"
49090                          || test ! -s conftest.err'
49091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49092   (eval $ac_try) 2>&5
49093   ac_status=$?
49094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49095   (exit $ac_status); }; } &&
49096          { ac_try='test -s conftest$ac_exeext'
49097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49098   (eval $ac_try) 2>&5
49099   ac_status=$?
49100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49101   (exit $ac_status); }; }; then
49102   ac_cv_search_getspnam="none required"
49103 else
49104   echo "$as_me: failed program was:" >&5
49105 sed 's/^/| /' conftest.$ac_ext >&5
49106
49107 fi
49108 rm -f conftest.err conftest.$ac_objext \
49109       conftest$ac_exeext conftest.$ac_ext
49110 if test "$ac_cv_search_getspnam" = no; then
49111   for ac_lib in shadow sec gen; do
49112     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
49113     cat >conftest.$ac_ext <<_ACEOF
49114 /* confdefs.h.  */
49115 _ACEOF
49116 cat confdefs.h >>conftest.$ac_ext
49117 cat >>conftest.$ac_ext <<_ACEOF
49118 /* end confdefs.h.  */
49119
49120 /* Override any gcc2 internal prototype to avoid an error.  */
49121 #ifdef __cplusplus
49122 extern "C"
49123 #endif
49124 /* We use char because int might match the return type of a gcc2
49125    builtin and then its argument prototype would still apply.  */
49126 char getspnam ();
49127 int
49128 main ()
49129 {
49130 getspnam ();
49131   ;
49132   return 0;
49133 }
49134 _ACEOF
49135 rm -f conftest.$ac_objext conftest$ac_exeext
49136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49137   (eval $ac_link) 2>conftest.er1
49138   ac_status=$?
49139   grep -v '^ *+' conftest.er1 >conftest.err
49140   rm -f conftest.er1
49141   cat conftest.err >&5
49142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49143   (exit $ac_status); } &&
49144          { ac_try='test -z "$ac_c_werror_flag"
49145                          || test ! -s conftest.err'
49146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49147   (eval $ac_try) 2>&5
49148   ac_status=$?
49149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49150   (exit $ac_status); }; } &&
49151          { ac_try='test -s conftest$ac_exeext'
49152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49153   (eval $ac_try) 2>&5
49154   ac_status=$?
49155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49156   (exit $ac_status); }; }; then
49157   ac_cv_search_getspnam="-l$ac_lib"
49158 break
49159 else
49160   echo "$as_me: failed program was:" >&5
49161 sed 's/^/| /' conftest.$ac_ext >&5
49162
49163 fi
49164 rm -f conftest.err conftest.$ac_objext \
49165       conftest$ac_exeext conftest.$ac_ext
49166   done
49167 fi
49168 LIBS=$ac_func_search_save_LIBS
49169 fi
49170 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
49171 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
49172 if test "$ac_cv_search_getspnam" != no; then
49173   test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
49174
49175 fi
49176
49177
49178
49179 for ac_header in shadow.h
49180 do
49181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49183   echo "$as_me:$LINENO: checking for $ac_header" >&5
49184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49186   echo $ECHO_N "(cached) $ECHO_C" >&6
49187 fi
49188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49190 else
49191   # Is the header compilable?
49192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49194 cat >conftest.$ac_ext <<_ACEOF
49195 /* confdefs.h.  */
49196 _ACEOF
49197 cat confdefs.h >>conftest.$ac_ext
49198 cat >>conftest.$ac_ext <<_ACEOF
49199 /* end confdefs.h.  */
49200 $ac_includes_default
49201 #include <$ac_header>
49202 _ACEOF
49203 rm -f conftest.$ac_objext
49204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49205   (eval $ac_compile) 2>conftest.er1
49206   ac_status=$?
49207   grep -v '^ *+' conftest.er1 >conftest.err
49208   rm -f conftest.er1
49209   cat conftest.err >&5
49210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49211   (exit $ac_status); } &&
49212          { ac_try='test -z "$ac_c_werror_flag"
49213                          || test ! -s conftest.err'
49214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49215   (eval $ac_try) 2>&5
49216   ac_status=$?
49217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49218   (exit $ac_status); }; } &&
49219          { ac_try='test -s conftest.$ac_objext'
49220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49221   (eval $ac_try) 2>&5
49222   ac_status=$?
49223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49224   (exit $ac_status); }; }; then
49225   ac_header_compiler=yes
49226 else
49227   echo "$as_me: failed program was:" >&5
49228 sed 's/^/| /' conftest.$ac_ext >&5
49229
49230 ac_header_compiler=no
49231 fi
49232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49234 echo "${ECHO_T}$ac_header_compiler" >&6
49235
49236 # Is the header present?
49237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49239 cat >conftest.$ac_ext <<_ACEOF
49240 /* confdefs.h.  */
49241 _ACEOF
49242 cat confdefs.h >>conftest.$ac_ext
49243 cat >>conftest.$ac_ext <<_ACEOF
49244 /* end confdefs.h.  */
49245 #include <$ac_header>
49246 _ACEOF
49247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49248   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49249   ac_status=$?
49250   grep -v '^ *+' conftest.er1 >conftest.err
49251   rm -f conftest.er1
49252   cat conftest.err >&5
49253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49254   (exit $ac_status); } >/dev/null; then
49255   if test -s conftest.err; then
49256     ac_cpp_err=$ac_c_preproc_warn_flag
49257     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
49258   else
49259     ac_cpp_err=
49260   fi
49261 else
49262   ac_cpp_err=yes
49263 fi
49264 if test -z "$ac_cpp_err"; then
49265   ac_header_preproc=yes
49266 else
49267   echo "$as_me: failed program was:" >&5
49268 sed 's/^/| /' conftest.$ac_ext >&5
49269
49270   ac_header_preproc=no
49271 fi
49272 rm -f conftest.err conftest.$ac_ext
49273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49274 echo "${ECHO_T}$ac_header_preproc" >&6
49275
49276 # So?  What about this header?
49277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49278   yes:no: )
49279     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49282 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49283     ac_header_preproc=yes
49284     ;;
49285   no:yes:* )
49286     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49288     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
49289 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
49290     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49291 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49292     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
49293 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
49294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49296     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49297 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49298     (
49299       cat <<\_ASBOX
49300 ## ------------------------------------ ##
49301 ## Report this to bug-coreutils@gnu.org ##
49302 ## ------------------------------------ ##
49303 _ASBOX
49304     ) |
49305       sed "s/^/$as_me: WARNING:     /" >&2
49306     ;;
49307 esac
49308 echo "$as_me:$LINENO: checking for $ac_header" >&5
49309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49311   echo $ECHO_N "(cached) $ECHO_C" >&6
49312 else
49313   eval "$as_ac_Header=\$ac_header_preproc"
49314 fi
49315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49317
49318 fi
49319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49320   cat >>confdefs.h <<_ACEOF
49321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49322 _ACEOF
49323
49324 fi
49325
49326 done
49327
49328
49329   # Requirements for su.c.
49330   shadow_includes="\
49331 $ac_includes_default
49332 #if HAVE_SHADOW_H
49333 # include <shadow.h>
49334 #endif
49335 "
49336   echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
49337 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
49338 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
49339   echo $ECHO_N "(cached) $ECHO_C" >&6
49340 else
49341   cat >conftest.$ac_ext <<_ACEOF
49342 /* confdefs.h.  */
49343 _ACEOF
49344 cat confdefs.h >>conftest.$ac_ext
49345 cat >>conftest.$ac_ext <<_ACEOF
49346 /* end confdefs.h.  */
49347 $shadow_includes
49348
49349 int
49350 main ()
49351 {
49352 static struct spwd ac_aggr;
49353 if (ac_aggr.sp_pwdp)
49354 return 0;
49355   ;
49356   return 0;
49357 }
49358 _ACEOF
49359 rm -f conftest.$ac_objext
49360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49361   (eval $ac_compile) 2>conftest.er1
49362   ac_status=$?
49363   grep -v '^ *+' conftest.er1 >conftest.err
49364   rm -f conftest.er1
49365   cat conftest.err >&5
49366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49367   (exit $ac_status); } &&
49368          { ac_try='test -z "$ac_c_werror_flag"
49369                          || test ! -s conftest.err'
49370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49371   (eval $ac_try) 2>&5
49372   ac_status=$?
49373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49374   (exit $ac_status); }; } &&
49375          { ac_try='test -s conftest.$ac_objext'
49376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49377   (eval $ac_try) 2>&5
49378   ac_status=$?
49379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49380   (exit $ac_status); }; }; then
49381   ac_cv_member_struct_spwd_sp_pwdp=yes
49382 else
49383   echo "$as_me: failed program was:" >&5
49384 sed 's/^/| /' conftest.$ac_ext >&5
49385
49386 cat >conftest.$ac_ext <<_ACEOF
49387 /* confdefs.h.  */
49388 _ACEOF
49389 cat confdefs.h >>conftest.$ac_ext
49390 cat >>conftest.$ac_ext <<_ACEOF
49391 /* end confdefs.h.  */
49392 $shadow_includes
49393
49394 int
49395 main ()
49396 {
49397 static struct spwd ac_aggr;
49398 if (sizeof ac_aggr.sp_pwdp)
49399 return 0;
49400   ;
49401   return 0;
49402 }
49403 _ACEOF
49404 rm -f conftest.$ac_objext
49405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49406   (eval $ac_compile) 2>conftest.er1
49407   ac_status=$?
49408   grep -v '^ *+' conftest.er1 >conftest.err
49409   rm -f conftest.er1
49410   cat conftest.err >&5
49411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49412   (exit $ac_status); } &&
49413          { ac_try='test -z "$ac_c_werror_flag"
49414                          || test ! -s conftest.err'
49415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49416   (eval $ac_try) 2>&5
49417   ac_status=$?
49418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49419   (exit $ac_status); }; } &&
49420          { ac_try='test -s conftest.$ac_objext'
49421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49422   (eval $ac_try) 2>&5
49423   ac_status=$?
49424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49425   (exit $ac_status); }; }; then
49426   ac_cv_member_struct_spwd_sp_pwdp=yes
49427 else
49428   echo "$as_me: failed program was:" >&5
49429 sed 's/^/| /' conftest.$ac_ext >&5
49430
49431 ac_cv_member_struct_spwd_sp_pwdp=no
49432 fi
49433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49434 fi
49435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49436 fi
49437 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
49438 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
49439 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
49440
49441 cat >>confdefs.h <<_ACEOF
49442 #define HAVE_STRUCT_SPWD_SP_PWDP 1
49443 _ACEOF
49444
49445
49446 fi
49447
49448
49449 for ac_func in getspnam
49450 do
49451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49452 echo "$as_me:$LINENO: checking for $ac_func" >&5
49453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49454 if eval "test \"\${$as_ac_var+set}\" = set"; then
49455   echo $ECHO_N "(cached) $ECHO_C" >&6
49456 else
49457   cat >conftest.$ac_ext <<_ACEOF
49458 /* confdefs.h.  */
49459 _ACEOF
49460 cat confdefs.h >>conftest.$ac_ext
49461 cat >>conftest.$ac_ext <<_ACEOF
49462 /* end confdefs.h.  */
49463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49465 #define $ac_func innocuous_$ac_func
49466
49467 /* System header to define __stub macros and hopefully few prototypes,
49468     which can conflict with char $ac_func (); below.
49469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49470     <limits.h> exists even on freestanding compilers.  */
49471
49472 #ifdef __STDC__
49473 # include <limits.h>
49474 #else
49475 # include <assert.h>
49476 #endif
49477
49478 #undef $ac_func
49479
49480 /* Override any gcc2 internal prototype to avoid an error.  */
49481 #ifdef __cplusplus
49482 extern "C"
49483 {
49484 #endif
49485 /* We use char because int might match the return type of a gcc2
49486    builtin and then its argument prototype would still apply.  */
49487 char $ac_func ();
49488 /* The GNU C library defines this for functions which it implements
49489     to always fail with ENOSYS.  Some functions are actually named
49490     something starting with __ and the normal name is an alias.  */
49491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49492 choke me
49493 #else
49494 char (*f) () = $ac_func;
49495 #endif
49496 #ifdef __cplusplus
49497 }
49498 #endif
49499
49500 int
49501 main ()
49502 {
49503 return f != $ac_func;
49504   ;
49505   return 0;
49506 }
49507 _ACEOF
49508 rm -f conftest.$ac_objext conftest$ac_exeext
49509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49510   (eval $ac_link) 2>conftest.er1
49511   ac_status=$?
49512   grep -v '^ *+' conftest.er1 >conftest.err
49513   rm -f conftest.er1
49514   cat conftest.err >&5
49515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49516   (exit $ac_status); } &&
49517          { ac_try='test -z "$ac_c_werror_flag"
49518                          || test ! -s conftest.err'
49519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49520   (eval $ac_try) 2>&5
49521   ac_status=$?
49522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49523   (exit $ac_status); }; } &&
49524          { ac_try='test -s conftest$ac_exeext'
49525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49526   (eval $ac_try) 2>&5
49527   ac_status=$?
49528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49529   (exit $ac_status); }; }; then
49530   eval "$as_ac_var=yes"
49531 else
49532   echo "$as_me: failed program was:" >&5
49533 sed 's/^/| /' conftest.$ac_ext >&5
49534
49535 eval "$as_ac_var=no"
49536 fi
49537 rm -f conftest.err conftest.$ac_objext \
49538       conftest$ac_exeext conftest.$ac_ext
49539 fi
49540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49542 if test `eval echo '${'$as_ac_var'}'` = yes; then
49543   cat >>confdefs.h <<_ACEOF
49544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49545 _ACEOF
49546
49547 fi
49548 done
49549
49550
49551   # SCO-ODT-3.0 is reported to need -lufc for crypt.
49552   # NetBSD needs -lcrypt for crypt.
49553   ac_su_saved_lib="$LIBS"
49554   echo "$as_me:$LINENO: checking for library containing crypt" >&5
49555 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
49556 if test "${ac_cv_search_crypt+set}" = set; then
49557   echo $ECHO_N "(cached) $ECHO_C" >&6
49558 else
49559   ac_func_search_save_LIBS=$LIBS
49560 ac_cv_search_crypt=no
49561 cat >conftest.$ac_ext <<_ACEOF
49562 /* confdefs.h.  */
49563 _ACEOF
49564 cat confdefs.h >>conftest.$ac_ext
49565 cat >>conftest.$ac_ext <<_ACEOF
49566 /* end confdefs.h.  */
49567
49568 /* Override any gcc2 internal prototype to avoid an error.  */
49569 #ifdef __cplusplus
49570 extern "C"
49571 #endif
49572 /* We use char because int might match the return type of a gcc2
49573    builtin and then its argument prototype would still apply.  */
49574 char crypt ();
49575 int
49576 main ()
49577 {
49578 crypt ();
49579   ;
49580   return 0;
49581 }
49582 _ACEOF
49583 rm -f conftest.$ac_objext conftest$ac_exeext
49584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49585   (eval $ac_link) 2>conftest.er1
49586   ac_status=$?
49587   grep -v '^ *+' conftest.er1 >conftest.err
49588   rm -f conftest.er1
49589   cat conftest.err >&5
49590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49591   (exit $ac_status); } &&
49592          { ac_try='test -z "$ac_c_werror_flag"
49593                          || test ! -s conftest.err'
49594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49595   (eval $ac_try) 2>&5
49596   ac_status=$?
49597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49598   (exit $ac_status); }; } &&
49599          { ac_try='test -s conftest$ac_exeext'
49600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49601   (eval $ac_try) 2>&5
49602   ac_status=$?
49603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49604   (exit $ac_status); }; }; then
49605   ac_cv_search_crypt="none required"
49606 else
49607   echo "$as_me: failed program was:" >&5
49608 sed 's/^/| /' conftest.$ac_ext >&5
49609
49610 fi
49611 rm -f conftest.err conftest.$ac_objext \
49612       conftest$ac_exeext conftest.$ac_ext
49613 if test "$ac_cv_search_crypt" = no; then
49614   for ac_lib in ufc crypt; do
49615     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
49616     cat >conftest.$ac_ext <<_ACEOF
49617 /* confdefs.h.  */
49618 _ACEOF
49619 cat confdefs.h >>conftest.$ac_ext
49620 cat >>conftest.$ac_ext <<_ACEOF
49621 /* end confdefs.h.  */
49622
49623 /* Override any gcc2 internal prototype to avoid an error.  */
49624 #ifdef __cplusplus
49625 extern "C"
49626 #endif
49627 /* We use char because int might match the return type of a gcc2
49628    builtin and then its argument prototype would still apply.  */
49629 char crypt ();
49630 int
49631 main ()
49632 {
49633 crypt ();
49634   ;
49635   return 0;
49636 }
49637 _ACEOF
49638 rm -f conftest.$ac_objext conftest$ac_exeext
49639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49640   (eval $ac_link) 2>conftest.er1
49641   ac_status=$?
49642   grep -v '^ *+' conftest.er1 >conftest.err
49643   rm -f conftest.er1
49644   cat conftest.err >&5
49645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49646   (exit $ac_status); } &&
49647          { ac_try='test -z "$ac_c_werror_flag"
49648                          || test ! -s conftest.err'
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); }; } &&
49654          { ac_try='test -s conftest$ac_exeext'
49655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49656   (eval $ac_try) 2>&5
49657   ac_status=$?
49658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49659   (exit $ac_status); }; }; then
49660   ac_cv_search_crypt="-l$ac_lib"
49661 break
49662 else
49663   echo "$as_me: failed program was:" >&5
49664 sed 's/^/| /' conftest.$ac_ext >&5
49665
49666 fi
49667 rm -f conftest.err conftest.$ac_objext \
49668       conftest$ac_exeext conftest.$ac_ext
49669   done
49670 fi
49671 LIBS=$ac_func_search_save_LIBS
49672 fi
49673 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
49674 echo "${ECHO_T}$ac_cv_search_crypt" >&6
49675 if test "$ac_cv_search_crypt" != no; then
49676   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
49677   test "$ac_cv_search_crypt" = "none required" ||
49678                   LIB_CRYPT="$ac_cv_search_crypt"
49679 fi
49680
49681   LIBS="$ac_su_saved_lib"
49682
49683
49684
49685
49686         MKINSTALLDIRS=
49687   if test -n "$ac_aux_dir"; then
49688     case "$ac_aux_dir" in
49689       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
49690       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
49691     esac
49692   fi
49693   if test -z "$MKINSTALLDIRS"; then
49694     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
49695   fi
49696
49697
49698
49699   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
49700 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
49701     # Check whether --enable-nls or --disable-nls was given.
49702 if test "${enable_nls+set}" = set; then
49703   enableval="$enable_nls"
49704   USE_NLS=$enableval
49705 else
49706   USE_NLS=yes
49707 fi;
49708   echo "$as_me:$LINENO: result: $USE_NLS" >&5
49709 echo "${ECHO_T}$USE_NLS" >&6
49710
49711
49712
49713
49714
49715
49716 # Prepare PATH_SEPARATOR.
49717 # The user is always right.
49718 if test "${PATH_SEPARATOR+set}" != set; then
49719   echo "#! /bin/sh" >conf$$.sh
49720   echo  "exit 0"   >>conf$$.sh
49721   chmod +x conf$$.sh
49722   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49723     PATH_SEPARATOR=';'
49724   else
49725     PATH_SEPARATOR=:
49726   fi
49727   rm -f conf$$.sh
49728 fi
49729
49730 # Find out how to test for executable files. Don't use a zero-byte file,
49731 # as systems may use methods other than mode bits to determine executability.
49732 cat >conf$$.file <<_ASEOF
49733 #! /bin/sh
49734 exit 0
49735 _ASEOF
49736 chmod +x conf$$.file
49737 if test -x conf$$.file >/dev/null 2>&1; then
49738   ac_executable_p="test -x"
49739 else
49740   ac_executable_p="test -f"
49741 fi
49742 rm -f conf$$.file
49743
49744 # Extract the first word of "msgfmt", so it can be a program name with args.
49745 set dummy msgfmt; ac_word=$2
49746 echo "$as_me:$LINENO: checking for $ac_word" >&5
49747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49748 if test "${ac_cv_path_MSGFMT+set}" = set; then
49749   echo $ECHO_N "(cached) $ECHO_C" >&6
49750 else
49751   case "$MSGFMT" in
49752   [\\/]* | ?:[\\/]*)
49753     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
49754     ;;
49755   *)
49756     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
49757     for ac_dir in $PATH; do
49758       IFS="$ac_save_IFS"
49759       test -z "$ac_dir" && ac_dir=.
49760       for ac_exec_ext in '' $ac_executable_extensions; do
49761         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
49762           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
49763      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
49764             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
49765             break 2
49766           fi
49767         fi
49768       done
49769     done
49770     IFS="$ac_save_IFS"
49771   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
49772     ;;
49773 esac
49774 fi
49775 MSGFMT="$ac_cv_path_MSGFMT"
49776 if test "$MSGFMT" != ":"; then
49777   echo "$as_me:$LINENO: result: $MSGFMT" >&5
49778 echo "${ECHO_T}$MSGFMT" >&6
49779 else
49780   echo "$as_me:$LINENO: result: no" >&5
49781 echo "${ECHO_T}no" >&6
49782 fi
49783
49784   # Extract the first word of "gmsgfmt", so it can be a program name with args.
49785 set dummy gmsgfmt; ac_word=$2
49786 echo "$as_me:$LINENO: checking for $ac_word" >&5
49787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49788 if test "${ac_cv_path_GMSGFMT+set}" = set; then
49789   echo $ECHO_N "(cached) $ECHO_C" >&6
49790 else
49791   case $GMSGFMT in
49792   [\\/]* | ?:[\\/]*)
49793   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
49794   ;;
49795   *)
49796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49797 for as_dir in $PATH
49798 do
49799   IFS=$as_save_IFS
49800   test -z "$as_dir" && as_dir=.
49801   for ac_exec_ext in '' $ac_executable_extensions; do
49802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49803     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
49804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49805     break 2
49806   fi
49807 done
49808 done
49809
49810   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
49811   ;;
49812 esac
49813 fi
49814 GMSGFMT=$ac_cv_path_GMSGFMT
49815
49816 if test -n "$GMSGFMT"; then
49817   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
49818 echo "${ECHO_T}$GMSGFMT" >&6
49819 else
49820   echo "$as_me:$LINENO: result: no" >&5
49821 echo "${ECHO_T}no" >&6
49822 fi
49823
49824
49825
49826 # Prepare PATH_SEPARATOR.
49827 # The user is always right.
49828 if test "${PATH_SEPARATOR+set}" != set; then
49829   echo "#! /bin/sh" >conf$$.sh
49830   echo  "exit 0"   >>conf$$.sh
49831   chmod +x conf$$.sh
49832   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49833     PATH_SEPARATOR=';'
49834   else
49835     PATH_SEPARATOR=:
49836   fi
49837   rm -f conf$$.sh
49838 fi
49839
49840 # Find out how to test for executable files. Don't use a zero-byte file,
49841 # as systems may use methods other than mode bits to determine executability.
49842 cat >conf$$.file <<_ASEOF
49843 #! /bin/sh
49844 exit 0
49845 _ASEOF
49846 chmod +x conf$$.file
49847 if test -x conf$$.file >/dev/null 2>&1; then
49848   ac_executable_p="test -x"
49849 else
49850   ac_executable_p="test -f"
49851 fi
49852 rm -f conf$$.file
49853
49854 # Extract the first word of "xgettext", so it can be a program name with args.
49855 set dummy xgettext; ac_word=$2
49856 echo "$as_me:$LINENO: checking for $ac_word" >&5
49857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49858 if test "${ac_cv_path_XGETTEXT+set}" = set; then
49859   echo $ECHO_N "(cached) $ECHO_C" >&6
49860 else
49861   case "$XGETTEXT" in
49862   [\\/]* | ?:[\\/]*)
49863     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
49864     ;;
49865   *)
49866     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
49867     for ac_dir in $PATH; do
49868       IFS="$ac_save_IFS"
49869       test -z "$ac_dir" && ac_dir=.
49870       for ac_exec_ext in '' $ac_executable_extensions; do
49871         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
49872           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
49873      (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
49874             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
49875             break 2
49876           fi
49877         fi
49878       done
49879     done
49880     IFS="$ac_save_IFS"
49881   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
49882     ;;
49883 esac
49884 fi
49885 XGETTEXT="$ac_cv_path_XGETTEXT"
49886 if test "$XGETTEXT" != ":"; then
49887   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
49888 echo "${ECHO_T}$XGETTEXT" >&6
49889 else
49890   echo "$as_me:$LINENO: result: no" >&5
49891 echo "${ECHO_T}no" >&6
49892 fi
49893
49894     rm -f messages.po
49895
49896
49897 # Prepare PATH_SEPARATOR.
49898 # The user is always right.
49899 if test "${PATH_SEPARATOR+set}" != set; then
49900   echo "#! /bin/sh" >conf$$.sh
49901   echo  "exit 0"   >>conf$$.sh
49902   chmod +x conf$$.sh
49903   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49904     PATH_SEPARATOR=';'
49905   else
49906     PATH_SEPARATOR=:
49907   fi
49908   rm -f conf$$.sh
49909 fi
49910
49911 # Find out how to test for executable files. Don't use a zero-byte file,
49912 # as systems may use methods other than mode bits to determine executability.
49913 cat >conf$$.file <<_ASEOF
49914 #! /bin/sh
49915 exit 0
49916 _ASEOF
49917 chmod +x conf$$.file
49918 if test -x conf$$.file >/dev/null 2>&1; then
49919   ac_executable_p="test -x"
49920 else
49921   ac_executable_p="test -f"
49922 fi
49923 rm -f conf$$.file
49924
49925 # Extract the first word of "msgmerge", so it can be a program name with args.
49926 set dummy msgmerge; ac_word=$2
49927 echo "$as_me:$LINENO: checking for $ac_word" >&5
49928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49929 if test "${ac_cv_path_MSGMERGE+set}" = set; then
49930   echo $ECHO_N "(cached) $ECHO_C" >&6
49931 else
49932   case "$MSGMERGE" in
49933   [\\/]* | ?:[\\/]*)
49934     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
49935     ;;
49936   *)
49937     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
49938     for ac_dir in $PATH; do
49939       IFS="$ac_save_IFS"
49940       test -z "$ac_dir" && ac_dir=.
49941       for ac_exec_ext in '' $ac_executable_extensions; do
49942         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
49943           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
49944             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
49945             break 2
49946           fi
49947         fi
49948       done
49949     done
49950     IFS="$ac_save_IFS"
49951   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
49952     ;;
49953 esac
49954 fi
49955 MSGMERGE="$ac_cv_path_MSGMERGE"
49956 if test "$MSGMERGE" != ":"; then
49957   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
49958 echo "${ECHO_T}$MSGMERGE" >&6
49959 else
49960   echo "$as_me:$LINENO: result: no" >&5
49961 echo "${ECHO_T}no" >&6
49962 fi
49963
49964
49965       if test "$GMSGFMT" != ":"; then
49966             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
49967        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
49968       : ;
49969     else
49970       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
49971       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
49972 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
49973       GMSGFMT=":"
49974     fi
49975   fi
49976
49977       if test "$XGETTEXT" != ":"; then
49978             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
49979        (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
49980       : ;
49981     else
49982       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
49983 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
49984       XGETTEXT=":"
49985     fi
49986         rm -f messages.po
49987   fi
49988
49989             ac_config_commands="$ac_config_commands default-1"
49990
49991
49992
49993
49994
49995
49996
49997
49998
49999
50000
50001
50002
50003
50004
50005
50006
50007
50008   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
50009 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
50010     # Check whether --enable-nls or --disable-nls was given.
50011 if test "${enable_nls+set}" = set; then
50012   enableval="$enable_nls"
50013   USE_NLS=$enableval
50014 else
50015   USE_NLS=yes
50016 fi;
50017   echo "$as_me:$LINENO: result: $USE_NLS" >&5
50018 echo "${ECHO_T}$USE_NLS" >&6
50019
50020
50021
50022
50023   LIBINTL=
50024   LTLIBINTL=
50025   POSUB=
50026
50027     if test "$USE_NLS" = "yes"; then
50028     gt_use_preinstalled_gnugettext=no
50029
50030
50031
50032
50033
50034
50035         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
50036 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
50037 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
50038   echo $ECHO_N "(cached) $ECHO_C" >&6
50039 else
50040   cat >conftest.$ac_ext <<_ACEOF
50041 /* confdefs.h.  */
50042 _ACEOF
50043 cat confdefs.h >>conftest.$ac_ext
50044 cat >>conftest.$ac_ext <<_ACEOF
50045 /* end confdefs.h.  */
50046 #include <libintl.h>
50047 extern int _nl_msg_cat_cntr;
50048 extern int *_nl_domain_bindings;
50049 int
50050 main ()
50051 {
50052 bindtextdomain ("", "");
50053 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
50054   ;
50055   return 0;
50056 }
50057 _ACEOF
50058 rm -f conftest.$ac_objext conftest$ac_exeext
50059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50060   (eval $ac_link) 2>conftest.er1
50061   ac_status=$?
50062   grep -v '^ *+' conftest.er1 >conftest.err
50063   rm -f conftest.er1
50064   cat conftest.err >&5
50065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50066   (exit $ac_status); } &&
50067          { ac_try='test -z "$ac_c_werror_flag"
50068                          || test ! -s conftest.err'
50069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50070   (eval $ac_try) 2>&5
50071   ac_status=$?
50072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50073   (exit $ac_status); }; } &&
50074          { ac_try='test -s conftest$ac_exeext'
50075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50076   (eval $ac_try) 2>&5
50077   ac_status=$?
50078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50079   (exit $ac_status); }; }; then
50080   gt_cv_func_gnugettext2_libc=yes
50081 else
50082   echo "$as_me: failed program was:" >&5
50083 sed 's/^/| /' conftest.$ac_ext >&5
50084
50085 gt_cv_func_gnugettext2_libc=no
50086 fi
50087 rm -f conftest.err conftest.$ac_objext \
50088       conftest$ac_exeext conftest.$ac_ext
50089 fi
50090 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
50091 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
50092
50093         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
50094
50095
50096
50097
50098
50099           am_save_CPPFLAGS="$CPPFLAGS"
50100
50101   for element in $INCICONV; do
50102     haveit=
50103     for x in $CPPFLAGS; do
50104
50105   acl_save_prefix="$prefix"
50106   prefix="$acl_final_prefix"
50107   acl_save_exec_prefix="$exec_prefix"
50108   exec_prefix="$acl_final_exec_prefix"
50109   eval x=\"$x\"
50110   exec_prefix="$acl_save_exec_prefix"
50111   prefix="$acl_save_prefix"
50112
50113       if test "X$x" = "X$element"; then
50114         haveit=yes
50115         break
50116       fi
50117     done
50118     if test -z "$haveit"; then
50119       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
50120     fi
50121   done
50122
50123
50124   echo "$as_me:$LINENO: checking for iconv" >&5
50125 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
50126 if test "${am_cv_func_iconv+set}" = set; then
50127   echo $ECHO_N "(cached) $ECHO_C" >&6
50128 else
50129
50130     am_cv_func_iconv="no, consider installing GNU libiconv"
50131     am_cv_lib_iconv=no
50132     cat >conftest.$ac_ext <<_ACEOF
50133 /* confdefs.h.  */
50134 _ACEOF
50135 cat confdefs.h >>conftest.$ac_ext
50136 cat >>conftest.$ac_ext <<_ACEOF
50137 /* end confdefs.h.  */
50138 #include <stdlib.h>
50139 #include <iconv.h>
50140 int
50141 main ()
50142 {
50143 iconv_t cd = iconv_open("","");
50144        iconv(cd,NULL,NULL,NULL,NULL);
50145        iconv_close(cd);
50146   ;
50147   return 0;
50148 }
50149 _ACEOF
50150 rm -f conftest.$ac_objext conftest$ac_exeext
50151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50152   (eval $ac_link) 2>conftest.er1
50153   ac_status=$?
50154   grep -v '^ *+' conftest.er1 >conftest.err
50155   rm -f conftest.er1
50156   cat conftest.err >&5
50157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50158   (exit $ac_status); } &&
50159          { ac_try='test -z "$ac_c_werror_flag"
50160                          || test ! -s conftest.err'
50161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50162   (eval $ac_try) 2>&5
50163   ac_status=$?
50164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50165   (exit $ac_status); }; } &&
50166          { ac_try='test -s conftest$ac_exeext'
50167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50168   (eval $ac_try) 2>&5
50169   ac_status=$?
50170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50171   (exit $ac_status); }; }; then
50172   am_cv_func_iconv=yes
50173 else
50174   echo "$as_me: failed program was:" >&5
50175 sed 's/^/| /' conftest.$ac_ext >&5
50176
50177 fi
50178 rm -f conftest.err conftest.$ac_objext \
50179       conftest$ac_exeext conftest.$ac_ext
50180     if test "$am_cv_func_iconv" != yes; then
50181       am_save_LIBS="$LIBS"
50182       LIBS="$LIBS $LIBICONV"
50183       cat >conftest.$ac_ext <<_ACEOF
50184 /* confdefs.h.  */
50185 _ACEOF
50186 cat confdefs.h >>conftest.$ac_ext
50187 cat >>conftest.$ac_ext <<_ACEOF
50188 /* end confdefs.h.  */
50189 #include <stdlib.h>
50190 #include <iconv.h>
50191 int
50192 main ()
50193 {
50194 iconv_t cd = iconv_open("","");
50195          iconv(cd,NULL,NULL,NULL,NULL);
50196          iconv_close(cd);
50197   ;
50198   return 0;
50199 }
50200 _ACEOF
50201 rm -f conftest.$ac_objext conftest$ac_exeext
50202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50203   (eval $ac_link) 2>conftest.er1
50204   ac_status=$?
50205   grep -v '^ *+' conftest.er1 >conftest.err
50206   rm -f conftest.er1
50207   cat conftest.err >&5
50208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50209   (exit $ac_status); } &&
50210          { ac_try='test -z "$ac_c_werror_flag"
50211                          || test ! -s conftest.err'
50212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50213   (eval $ac_try) 2>&5
50214   ac_status=$?
50215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50216   (exit $ac_status); }; } &&
50217          { ac_try='test -s conftest$ac_exeext'
50218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50219   (eval $ac_try) 2>&5
50220   ac_status=$?
50221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50222   (exit $ac_status); }; }; then
50223   am_cv_lib_iconv=yes
50224         am_cv_func_iconv=yes
50225 else
50226   echo "$as_me: failed program was:" >&5
50227 sed 's/^/| /' conftest.$ac_ext >&5
50228
50229 fi
50230 rm -f conftest.err conftest.$ac_objext \
50231       conftest$ac_exeext conftest.$ac_ext
50232       LIBS="$am_save_LIBS"
50233     fi
50234
50235 fi
50236 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
50237 echo "${ECHO_T}$am_cv_func_iconv" >&6
50238   if test "$am_cv_func_iconv" = yes; then
50239
50240 cat >>confdefs.h <<\_ACEOF
50241 #define HAVE_ICONV 1
50242 _ACEOF
50243
50244   fi
50245   if test "$am_cv_lib_iconv" = yes; then
50246     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
50247 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
50248     echo "$as_me:$LINENO: result: $LIBICONV" >&5
50249 echo "${ECHO_T}$LIBICONV" >&6
50250   else
50251             CPPFLAGS="$am_save_CPPFLAGS"
50252     LIBICONV=
50253     LTLIBICONV=
50254   fi
50255
50256
50257
50258
50259
50260
50261     use_additional=yes
50262
50263   acl_save_prefix="$prefix"
50264   prefix="$acl_final_prefix"
50265   acl_save_exec_prefix="$exec_prefix"
50266   exec_prefix="$acl_final_exec_prefix"
50267
50268     eval additional_includedir=\"$includedir\"
50269     eval additional_libdir=\"$libdir\"
50270
50271   exec_prefix="$acl_save_exec_prefix"
50272   prefix="$acl_save_prefix"
50273
50274
50275 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
50276 if test "${with_libintl_prefix+set}" = set; then
50277   withval="$with_libintl_prefix"
50278
50279     if test "X$withval" = "Xno"; then
50280       use_additional=no
50281     else
50282       if test "X$withval" = "X"; then
50283
50284   acl_save_prefix="$prefix"
50285   prefix="$acl_final_prefix"
50286   acl_save_exec_prefix="$exec_prefix"
50287   exec_prefix="$acl_final_exec_prefix"
50288
50289           eval additional_includedir=\"$includedir\"
50290           eval additional_libdir=\"$libdir\"
50291
50292   exec_prefix="$acl_save_exec_prefix"
50293   prefix="$acl_save_prefix"
50294
50295       else
50296         additional_includedir="$withval/include"
50297         additional_libdir="$withval/lib"
50298       fi
50299     fi
50300
50301 fi;
50302       LIBINTL=
50303   LTLIBINTL=
50304   INCINTL=
50305   rpathdirs=
50306   ltrpathdirs=
50307   names_already_handled=
50308   names_next_round='intl '
50309   while test -n "$names_next_round"; do
50310     names_this_round="$names_next_round"
50311     names_next_round=
50312     for name in $names_this_round; do
50313       already_handled=
50314       for n in $names_already_handled; do
50315         if test "$n" = "$name"; then
50316           already_handled=yes
50317           break
50318         fi
50319       done
50320       if test -z "$already_handled"; then
50321         names_already_handled="$names_already_handled $name"
50322                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
50323         eval value=\"\$HAVE_LIB$uppername\"
50324         if test -n "$value"; then
50325           if test "$value" = yes; then
50326             eval value=\"\$LIB$uppername\"
50327             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
50328             eval value=\"\$LTLIB$uppername\"
50329             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
50330           else
50331                                     :
50332           fi
50333         else
50334                               found_dir=
50335           found_la=
50336           found_so=
50337           found_a=
50338           if test $use_additional = yes; then
50339             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
50340               found_dir="$additional_libdir"
50341               found_so="$additional_libdir/lib$name.$shlibext"
50342               if test -f "$additional_libdir/lib$name.la"; then
50343                 found_la="$additional_libdir/lib$name.la"
50344               fi
50345             else
50346               if test -f "$additional_libdir/lib$name.$libext"; then
50347                 found_dir="$additional_libdir"
50348                 found_a="$additional_libdir/lib$name.$libext"
50349                 if test -f "$additional_libdir/lib$name.la"; then
50350                   found_la="$additional_libdir/lib$name.la"
50351                 fi
50352               fi
50353             fi
50354           fi
50355           if test "X$found_dir" = "X"; then
50356             for x in $LDFLAGS $LTLIBINTL; do
50357
50358   acl_save_prefix="$prefix"
50359   prefix="$acl_final_prefix"
50360   acl_save_exec_prefix="$exec_prefix"
50361   exec_prefix="$acl_final_exec_prefix"
50362   eval x=\"$x\"
50363   exec_prefix="$acl_save_exec_prefix"
50364   prefix="$acl_save_prefix"
50365
50366               case "$x" in
50367                 -L*)
50368                   dir=`echo "X$x" | sed -e 's/^X-L//'`
50369                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
50370                     found_dir="$dir"
50371                     found_so="$dir/lib$name.$shlibext"
50372                     if test -f "$dir/lib$name.la"; then
50373                       found_la="$dir/lib$name.la"
50374                     fi
50375                   else
50376                     if test -f "$dir/lib$name.$libext"; then
50377                       found_dir="$dir"
50378                       found_a="$dir/lib$name.$libext"
50379                       if test -f "$dir/lib$name.la"; then
50380                         found_la="$dir/lib$name.la"
50381                       fi
50382                     fi
50383                   fi
50384                   ;;
50385               esac
50386               if test "X$found_dir" != "X"; then
50387                 break
50388               fi
50389             done
50390           fi
50391           if test "X$found_dir" != "X"; then
50392                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
50393             if test "X$found_so" != "X"; then
50394                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
50395                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
50396               else
50397                                                                                 haveit=
50398                 for x in $ltrpathdirs; do
50399                   if test "X$x" = "X$found_dir"; then
50400                     haveit=yes
50401                     break
50402                   fi
50403                 done
50404                 if test -z "$haveit"; then
50405                   ltrpathdirs="$ltrpathdirs $found_dir"
50406                 fi
50407                                 if test "$hardcode_direct" = yes; then
50408                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
50409                 else
50410                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
50411                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
50412                                                             haveit=
50413                     for x in $rpathdirs; do
50414                       if test "X$x" = "X$found_dir"; then
50415                         haveit=yes
50416                         break
50417                       fi
50418                     done
50419                     if test -z "$haveit"; then
50420                       rpathdirs="$rpathdirs $found_dir"
50421                     fi
50422                   else
50423                                                                                 haveit=
50424                     for x in $LDFLAGS $LIBINTL; do
50425
50426   acl_save_prefix="$prefix"
50427   prefix="$acl_final_prefix"
50428   acl_save_exec_prefix="$exec_prefix"
50429   exec_prefix="$acl_final_exec_prefix"
50430   eval x=\"$x\"
50431   exec_prefix="$acl_save_exec_prefix"
50432   prefix="$acl_save_prefix"
50433
50434                       if test "X$x" = "X-L$found_dir"; then
50435                         haveit=yes
50436                         break
50437                       fi
50438                     done
50439                     if test -z "$haveit"; then
50440                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
50441                     fi
50442                     if test "$hardcode_minus_L" != no; then
50443                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
50444                     else
50445                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
50446                     fi
50447                   fi
50448                 fi
50449               fi
50450             else
50451               if test "X$found_a" != "X"; then
50452                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
50453               else
50454                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
50455               fi
50456             fi
50457                         additional_includedir=
50458             case "$found_dir" in
50459               */lib | */lib/)
50460                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
50461                 additional_includedir="$basedir/include"
50462                 ;;
50463             esac
50464             if test "X$additional_includedir" != "X"; then
50465                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
50466                 haveit=
50467                 if test "X$additional_includedir" = "X/usr/local/include"; then
50468                   if test -n "$GCC"; then
50469                     case $host_os in
50470                       linux*) haveit=yes;;
50471                     esac
50472                   fi
50473                 fi
50474                 if test -z "$haveit"; then
50475                   for x in $CPPFLAGS $INCINTL; do
50476
50477   acl_save_prefix="$prefix"
50478   prefix="$acl_final_prefix"
50479   acl_save_exec_prefix="$exec_prefix"
50480   exec_prefix="$acl_final_exec_prefix"
50481   eval x=\"$x\"
50482   exec_prefix="$acl_save_exec_prefix"
50483   prefix="$acl_save_prefix"
50484
50485                     if test "X$x" = "X-I$additional_includedir"; then
50486                       haveit=yes
50487                       break
50488                     fi
50489                   done
50490                   if test -z "$haveit"; then
50491                     if test -d "$additional_includedir"; then
50492                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
50493                     fi
50494                   fi
50495                 fi
50496               fi
50497             fi
50498                         if test -n "$found_la"; then
50499                                                         save_libdir="$libdir"
50500               case "$found_la" in
50501                 */* | *\\*) . "$found_la" ;;
50502                 *) . "./$found_la" ;;
50503               esac
50504               libdir="$save_libdir"
50505                             for dep in $dependency_libs; do
50506                 case "$dep" in
50507                   -L*)
50508                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
50509                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
50510                       haveit=
50511                       if test "X$additional_libdir" = "X/usr/local/lib"; then
50512                         if test -n "$GCC"; then
50513                           case $host_os in
50514                             linux*) haveit=yes;;
50515                           esac
50516                         fi
50517                       fi
50518                       if test -z "$haveit"; then
50519                         haveit=
50520                         for x in $LDFLAGS $LIBINTL; do
50521
50522   acl_save_prefix="$prefix"
50523   prefix="$acl_final_prefix"
50524   acl_save_exec_prefix="$exec_prefix"
50525   exec_prefix="$acl_final_exec_prefix"
50526   eval x=\"$x\"
50527   exec_prefix="$acl_save_exec_prefix"
50528   prefix="$acl_save_prefix"
50529
50530                           if test "X$x" = "X-L$additional_libdir"; then
50531                             haveit=yes
50532                             break
50533                           fi
50534                         done
50535                         if test -z "$haveit"; then
50536                           if test -d "$additional_libdir"; then
50537                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
50538                           fi
50539                         fi
50540                         haveit=
50541                         for x in $LDFLAGS $LTLIBINTL; do
50542
50543   acl_save_prefix="$prefix"
50544   prefix="$acl_final_prefix"
50545   acl_save_exec_prefix="$exec_prefix"
50546   exec_prefix="$acl_final_exec_prefix"
50547   eval x=\"$x\"
50548   exec_prefix="$acl_save_exec_prefix"
50549   prefix="$acl_save_prefix"
50550
50551                           if test "X$x" = "X-L$additional_libdir"; then
50552                             haveit=yes
50553                             break
50554                           fi
50555                         done
50556                         if test -z "$haveit"; then
50557                           if test -d "$additional_libdir"; then
50558                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
50559                           fi
50560                         fi
50561                       fi
50562                     fi
50563                     ;;
50564                   -R*)
50565                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
50566                     if test "$enable_rpath" != no; then
50567                                                                   haveit=
50568                       for x in $rpathdirs; do
50569                         if test "X$x" = "X$dir"; then
50570                           haveit=yes
50571                           break
50572                         fi
50573                       done
50574                       if test -z "$haveit"; then
50575                         rpathdirs="$rpathdirs $dir"
50576                       fi
50577                                                                   haveit=
50578                       for x in $ltrpathdirs; do
50579                         if test "X$x" = "X$dir"; then
50580                           haveit=yes
50581                           break
50582                         fi
50583                       done
50584                       if test -z "$haveit"; then
50585                         ltrpathdirs="$ltrpathdirs $dir"
50586                       fi
50587                     fi
50588                     ;;
50589                   -l*)
50590                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
50591                     ;;
50592                   *.la)
50593                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
50594                     ;;
50595                   *)
50596                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
50597                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
50598                     ;;
50599                 esac
50600               done
50601             fi
50602           else
50603                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
50604             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
50605           fi
50606         fi
50607       fi
50608     done
50609   done
50610   if test "X$rpathdirs" != "X"; then
50611     if test -n "$hardcode_libdir_separator"; then
50612                         alldirs=
50613       for found_dir in $rpathdirs; do
50614         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
50615       done
50616             acl_save_libdir="$libdir"
50617       libdir="$alldirs"
50618       eval flag=\"$hardcode_libdir_flag_spec\"
50619       libdir="$acl_save_libdir"
50620       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
50621     else
50622             for found_dir in $rpathdirs; do
50623         acl_save_libdir="$libdir"
50624         libdir="$found_dir"
50625         eval flag=\"$hardcode_libdir_flag_spec\"
50626         libdir="$acl_save_libdir"
50627         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
50628       done
50629     fi
50630   fi
50631   if test "X$ltrpathdirs" != "X"; then
50632             for found_dir in $ltrpathdirs; do
50633       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
50634     done
50635   fi
50636
50637           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
50638 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
50639 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
50640   echo $ECHO_N "(cached) $ECHO_C" >&6
50641 else
50642   gt_save_CPPFLAGS="$CPPFLAGS"
50643             CPPFLAGS="$CPPFLAGS $INCINTL"
50644             gt_save_LIBS="$LIBS"
50645             LIBS="$LIBS $LIBINTL"
50646                         cat >conftest.$ac_ext <<_ACEOF
50647 /* confdefs.h.  */
50648 _ACEOF
50649 cat confdefs.h >>conftest.$ac_ext
50650 cat >>conftest.$ac_ext <<_ACEOF
50651 /* end confdefs.h.  */
50652 #include <libintl.h>
50653 extern int _nl_msg_cat_cntr;
50654 extern
50655 #ifdef __cplusplus
50656 "C"
50657 #endif
50658 const char *_nl_expand_alias ();
50659 int
50660 main ()
50661 {
50662 bindtextdomain ("", "");
50663 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
50664   ;
50665   return 0;
50666 }
50667 _ACEOF
50668 rm -f conftest.$ac_objext conftest$ac_exeext
50669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50670   (eval $ac_link) 2>conftest.er1
50671   ac_status=$?
50672   grep -v '^ *+' conftest.er1 >conftest.err
50673   rm -f conftest.er1
50674   cat conftest.err >&5
50675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50676   (exit $ac_status); } &&
50677          { ac_try='test -z "$ac_c_werror_flag"
50678                          || test ! -s conftest.err'
50679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50680   (eval $ac_try) 2>&5
50681   ac_status=$?
50682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50683   (exit $ac_status); }; } &&
50684          { ac_try='test -s conftest$ac_exeext'
50685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50686   (eval $ac_try) 2>&5
50687   ac_status=$?
50688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50689   (exit $ac_status); }; }; then
50690   gt_cv_func_gnugettext2_libintl=yes
50691 else
50692   echo "$as_me: failed program was:" >&5
50693 sed 's/^/| /' conftest.$ac_ext >&5
50694
50695 gt_cv_func_gnugettext2_libintl=no
50696 fi
50697 rm -f conftest.err conftest.$ac_objext \
50698       conftest$ac_exeext conftest.$ac_ext
50699                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
50700               LIBS="$LIBS $LIBICONV"
50701               cat >conftest.$ac_ext <<_ACEOF
50702 /* confdefs.h.  */
50703 _ACEOF
50704 cat confdefs.h >>conftest.$ac_ext
50705 cat >>conftest.$ac_ext <<_ACEOF
50706 /* end confdefs.h.  */
50707 #include <libintl.h>
50708 extern int _nl_msg_cat_cntr;
50709 extern
50710 #ifdef __cplusplus
50711 "C"
50712 #endif
50713 const char *_nl_expand_alias ();
50714 int
50715 main ()
50716 {
50717 bindtextdomain ("", "");
50718 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
50719   ;
50720   return 0;
50721 }
50722 _ACEOF
50723 rm -f conftest.$ac_objext conftest$ac_exeext
50724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50725   (eval $ac_link) 2>conftest.er1
50726   ac_status=$?
50727   grep -v '^ *+' conftest.er1 >conftest.err
50728   rm -f conftest.er1
50729   cat conftest.err >&5
50730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50731   (exit $ac_status); } &&
50732          { ac_try='test -z "$ac_c_werror_flag"
50733                          || test ! -s conftest.err'
50734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50735   (eval $ac_try) 2>&5
50736   ac_status=$?
50737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50738   (exit $ac_status); }; } &&
50739          { ac_try='test -s conftest$ac_exeext'
50740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50741   (eval $ac_try) 2>&5
50742   ac_status=$?
50743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50744   (exit $ac_status); }; }; then
50745   LIBINTL="$LIBINTL $LIBICONV"
50746                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
50747                 gt_cv_func_gnugettext2_libintl=yes
50748
50749 else
50750   echo "$as_me: failed program was:" >&5
50751 sed 's/^/| /' conftest.$ac_ext >&5
50752
50753 fi
50754 rm -f conftest.err conftest.$ac_objext \
50755       conftest$ac_exeext conftest.$ac_ext
50756             fi
50757             CPPFLAGS="$gt_save_CPPFLAGS"
50758             LIBS="$gt_save_LIBS"
50759 fi
50760 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
50761 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
50762         fi
50763
50764                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
50765            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
50766                 && test "$PACKAGE" != gettext-runtime \
50767                 && test "$PACKAGE" != gettext-tools; }; then
50768           gt_use_preinstalled_gnugettext=yes
50769         else
50770                     LIBINTL=
50771           LTLIBINTL=
50772           INCINTL=
50773         fi
50774
50775
50776
50777     if test "$gt_use_preinstalled_gnugettext" = "yes" \
50778        || test "$nls_cv_use_gnu_gettext" = "yes"; then
50779
50780 cat >>confdefs.h <<\_ACEOF
50781 #define ENABLE_NLS 1
50782 _ACEOF
50783
50784     else
50785       USE_NLS=no
50786     fi
50787   fi
50788
50789   echo "$as_me:$LINENO: checking whether to use NLS" >&5
50790 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
50791   echo "$as_me:$LINENO: result: $USE_NLS" >&5
50792 echo "${ECHO_T}$USE_NLS" >&6
50793   if test "$USE_NLS" = "yes"; then
50794     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
50795 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
50796     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
50797       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
50798         gt_source="external libintl"
50799       else
50800         gt_source="libc"
50801       fi
50802     else
50803       gt_source="included intl directory"
50804     fi
50805     echo "$as_me:$LINENO: result: $gt_source" >&5
50806 echo "${ECHO_T}$gt_source" >&6
50807   fi
50808
50809   if test "$USE_NLS" = "yes"; then
50810
50811     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
50812       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
50813         echo "$as_me:$LINENO: checking how to link with libintl" >&5
50814 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
50815         echo "$as_me:$LINENO: result: $LIBINTL" >&5
50816 echo "${ECHO_T}$LIBINTL" >&6
50817
50818   for element in $INCINTL; do
50819     haveit=
50820     for x in $CPPFLAGS; do
50821
50822   acl_save_prefix="$prefix"
50823   prefix="$acl_final_prefix"
50824   acl_save_exec_prefix="$exec_prefix"
50825   exec_prefix="$acl_final_exec_prefix"
50826   eval x=\"$x\"
50827   exec_prefix="$acl_save_exec_prefix"
50828   prefix="$acl_save_prefix"
50829
50830       if test "X$x" = "X$element"; then
50831         haveit=yes
50832         break
50833       fi
50834     done
50835     if test -z "$haveit"; then
50836       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
50837     fi
50838   done
50839
50840       fi
50841
50842
50843 cat >>confdefs.h <<\_ACEOF
50844 #define HAVE_GETTEXT 1
50845 _ACEOF
50846
50847
50848 cat >>confdefs.h <<\_ACEOF
50849 #define HAVE_DCGETTEXT 1
50850 _ACEOF
50851
50852     fi
50853
50854         POSUB=po
50855   fi
50856
50857
50858
50859     INTLLIBS="$LIBINTL"
50860
50861
50862
50863
50864
50865
50866
50867
50868                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile man/Makefile m4/Makefile po/Makefile.in src/Makefile tests/Makefile tests/basename/Makefile tests/chgrp/Makefile tests/chmod/Makefile tests/chown/Makefile tests/cp/Makefile tests/cut/Makefile tests/date/Makefile tests/dd/Makefile tests/dircolors/Makefile tests/du/Makefile tests/expr/Makefile tests/factor/Makefile tests/fmt/Makefile tests/head/Makefile tests/install/Makefile tests/join/Makefile tests/ln/Makefile tests/ls-2/Makefile tests/ls/Makefile tests/md5sum/Makefile tests/misc/Makefile tests/mkdir/Makefile tests/mv/Makefile tests/od/Makefile tests/pr/Makefile tests/rm/Makefile tests/rmdir/Makefile tests/seq/Makefile tests/sha1sum/Makefile tests/shred/Makefile tests/sort/Makefile tests/stty/Makefile tests/sum/Makefile tests/tac/Makefile tests/tail-2/Makefile tests/tail/Makefile tests/test/Makefile tests/touch/Makefile tests/tr/Makefile tests/tsort/Makefile tests/unexpand/Makefile tests/uniq/Makefile tests/wc/Makefile"
50869
50870 cat >confcache <<\_ACEOF
50871 # This file is a shell script that caches the results of configure
50872 # tests run on this system so they can be shared between configure
50873 # scripts and configure runs, see configure's option --config-cache.
50874 # It is not useful on other systems.  If it contains results you don't
50875 # want to keep, you may remove or edit it.
50876 #
50877 # config.status only pays attention to the cache file if you give it
50878 # the --recheck option to rerun configure.
50879 #
50880 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50881 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50882 # following values.
50883
50884 _ACEOF
50885
50886 # The following way of writing the cache mishandles newlines in values,
50887 # but we know of no workaround that is simple, portable, and efficient.
50888 # So, don't put newlines in cache variables' values.
50889 # Ultrix sh set writes to stderr and can't be redirected directly,
50890 # and sets the high bit in the cache file unless we assign to the vars.
50891 {
50892   (set) 2>&1 |
50893     case `(ac_space=' '; set | grep ac_space) 2>&1` in
50894     *ac_space=\ *)
50895       # `set' does not quote correctly, so add quotes (double-quote
50896       # substitution turns \\\\ into \\, and sed turns \\ into \).
50897       sed -n \
50898         "s/'/'\\\\''/g;
50899           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
50900       ;;
50901     *)
50902       # `set' quotes correctly as required by POSIX, so do not add quotes.
50903       sed -n \
50904         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
50905       ;;
50906     esac;
50907 } |
50908   sed '
50909      t clear
50910      : clear
50911      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50912      t end
50913      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50914      : end' >>confcache
50915 if diff $cache_file confcache >/dev/null 2>&1; then :; else
50916   if test -w $cache_file; then
50917     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
50918     cat confcache >$cache_file
50919   else
50920     echo "not updating unwritable cache $cache_file"
50921   fi
50922 fi
50923 rm -f confcache
50924
50925 test "x$prefix" = xNONE && prefix=$ac_default_prefix
50926 # Let make expand exec_prefix.
50927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50928
50929 # VPATH may cause trouble with some makes, so we remove $(srcdir),
50930 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50931 # trailing colons and then remove the whole line if VPATH becomes empty
50932 # (actually we leave an empty line to preserve line numbers).
50933 if test "x$srcdir" = x.; then
50934   ac_vpsub='/^[  ]*VPATH[        ]*=/{
50935 s/:*\$(srcdir):*/:/;
50936 s/:*\${srcdir}:*/:/;
50937 s/:*@srcdir@:*/:/;
50938 s/^\([^=]*=[     ]*\):*/\1/;
50939 s/:*$//;
50940 s/^[^=]*=[       ]*$//;
50941 }'
50942 fi
50943
50944 DEFS=-DHAVE_CONFIG_H
50945
50946 ac_libobjs=
50947 ac_ltlibobjs=
50948 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50949   # 1. Remove the extension, and $U if already installed.
50950   ac_i=`echo "$ac_i" |
50951          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
50952   # 2. Add them.
50953   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
50954   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
50955 done
50956 LIBOBJS=$ac_libobjs
50957
50958 LTLIBOBJS=$ac_ltlibobjs
50959
50960
50961 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
50962   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
50963 Usually this means the macro was only invoked conditionally." >&5
50964 echo "$as_me: error: conditional \"AMDEP\" was never defined.
50965 Usually this means the macro was only invoked conditionally." >&2;}
50966    { (exit 1); exit 1; }; }
50967 fi
50968 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
50969   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
50970 Usually this means the macro was only invoked conditionally." >&5
50971 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
50972 Usually this means the macro was only invoked conditionally." >&2;}
50973    { (exit 1); exit 1; }; }
50974 fi
50975 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
50976   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
50977 Usually this means the macro was only invoked conditionally." >&5
50978 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
50979 Usually this means the macro was only invoked conditionally." >&2;}
50980    { (exit 1); exit 1; }; }
50981 fi
50982
50983 : ${CONFIG_STATUS=./config.status}
50984 ac_clean_files_save=$ac_clean_files
50985 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50986 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50987 echo "$as_me: creating $CONFIG_STATUS" >&6;}
50988 cat >$CONFIG_STATUS <<_ACEOF
50989 #! $SHELL
50990 # Generated by $as_me.
50991 # Run this file to recreate the current configuration.
50992 # Compiler output produced by configure, useful for debugging
50993 # configure, is in config.log if it exists.
50994
50995 debug=false
50996 ac_cs_recheck=false
50997 ac_cs_silent=false
50998 SHELL=\${CONFIG_SHELL-$SHELL}
50999 _ACEOF
51000
51001 cat >>$CONFIG_STATUS <<\_ACEOF
51002 ## --------------------- ##
51003 ## M4sh Initialization.  ##
51004 ## --------------------- ##
51005
51006 # Be Bourne compatible
51007 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51008   emulate sh
51009   NULLCMD=:
51010   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51011   # is contrary to our usage.  Disable this feature.
51012   alias -g '${1+"$@"}'='"$@"'
51013 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51014   set -o posix
51015 fi
51016 DUALCASE=1; export DUALCASE # for MKS sh
51017
51018 # Support unset when possible.
51019 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51020   as_unset=unset
51021 else
51022   as_unset=false
51023 fi
51024
51025
51026 # Work around bugs in pre-3.0 UWIN ksh.
51027 $as_unset ENV MAIL MAILPATH
51028 PS1='$ '
51029 PS2='> '
51030 PS4='+ '
51031
51032 # NLS nuisances.
51033 for as_var in \
51034   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51035   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51036   LC_TELEPHONE LC_TIME
51037 do
51038   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51039     eval $as_var=C; export $as_var
51040   else
51041     $as_unset $as_var
51042   fi
51043 done
51044
51045 # Required to use basename.
51046 if expr a : '\(a\)' >/dev/null 2>&1; then
51047   as_expr=expr
51048 else
51049   as_expr=false
51050 fi
51051
51052 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
51053   as_basename=basename
51054 else
51055   as_basename=false
51056 fi
51057
51058
51059 # Name of the executable.
51060 as_me=`$as_basename "$0" ||
51061 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51062          X"$0" : 'X\(//\)$' \| \
51063          X"$0" : 'X\(/\)$' \| \
51064          .     : '\(.\)' 2>/dev/null ||
51065 echo X/"$0" |
51066     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51067           /^X\/\(\/\/\)$/{ s//\1/; q; }
51068           /^X\/\(\/\).*/{ s//\1/; q; }
51069           s/.*/./; q'`
51070
51071
51072 # PATH needs CR, and LINENO needs CR and PATH.
51073 # Avoid depending upon Character Ranges.
51074 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51075 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51076 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51077 as_cr_digits='0123456789'
51078 as_cr_alnum=$as_cr_Letters$as_cr_digits
51079
51080 # The user is always right.
51081 if test "${PATH_SEPARATOR+set}" != set; then
51082   echo "#! /bin/sh" >conf$$.sh
51083   echo  "exit 0"   >>conf$$.sh
51084   chmod +x conf$$.sh
51085   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51086     PATH_SEPARATOR=';'
51087   else
51088     PATH_SEPARATOR=:
51089   fi
51090   rm -f conf$$.sh
51091 fi
51092
51093
51094   as_lineno_1=$LINENO
51095   as_lineno_2=$LINENO
51096   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51097   test "x$as_lineno_1" != "x$as_lineno_2" &&
51098   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
51099   # Find who we are.  Look in the path if we contain no path at all
51100   # relative or not.
51101   case $0 in
51102     *[\\/]* ) as_myself=$0 ;;
51103     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51104 for as_dir in $PATH
51105 do
51106   IFS=$as_save_IFS
51107   test -z "$as_dir" && as_dir=.
51108   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51109 done
51110
51111        ;;
51112   esac
51113   # We did not find ourselves, most probably we were run as `sh COMMAND'
51114   # in which case we are not to be found in the path.
51115   if test "x$as_myself" = x; then
51116     as_myself=$0
51117   fi
51118   if test ! -f "$as_myself"; then
51119     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51120 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51121    { (exit 1); exit 1; }; }
51122   fi
51123   case $CONFIG_SHELL in
51124   '')
51125     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51126 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51127 do
51128   IFS=$as_save_IFS
51129   test -z "$as_dir" && as_dir=.
51130   for as_base in sh bash ksh sh5; do
51131          case $as_dir in
51132          /*)
51133            if ("$as_dir/$as_base" -c '
51134   as_lineno_1=$LINENO
51135   as_lineno_2=$LINENO
51136   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51137   test "x$as_lineno_1" != "x$as_lineno_2" &&
51138   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
51139              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51140              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51141              CONFIG_SHELL=$as_dir/$as_base
51142              export CONFIG_SHELL
51143              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51144            fi;;
51145          esac
51146        done
51147 done
51148 ;;
51149   esac
51150
51151   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51152   # uniformly replaced by the line number.  The first 'sed' inserts a
51153   # line-number line before each line; the second 'sed' does the real
51154   # work.  The second script uses 'N' to pair each line-number line
51155   # with the numbered line, and appends trailing '-' during
51156   # substitution so that $LINENO is not a special case at line end.
51157   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51158   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
51159   sed '=' <$as_myself |
51160     sed '
51161       N
51162       s,$,-,
51163       : loop
51164       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51165       t loop
51166       s,-$,,
51167       s,^['$as_cr_digits']*\n,,
51168     ' >$as_me.lineno &&
51169   chmod +x $as_me.lineno ||
51170     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51171 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51172    { (exit 1); exit 1; }; }
51173
51174   # Don't try to exec as it changes $[0], causing all sort of problems
51175   # (the dirname of $[0] is not the place where we might find the
51176   # original and so on.  Autoconf is especially sensible to this).
51177   . ./$as_me.lineno
51178   # Exit status is that of the last command.
51179   exit
51180 }
51181
51182
51183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51184   *c*,-n*) ECHO_N= ECHO_C='
51185 ' ECHO_T='      ' ;;
51186   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51187   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
51188 esac
51189
51190 if expr a : '\(a\)' >/dev/null 2>&1; then
51191   as_expr=expr
51192 else
51193   as_expr=false
51194 fi
51195
51196 rm -f conf$$ conf$$.exe conf$$.file
51197 echo >conf$$.file
51198 if ln -s conf$$.file conf$$ 2>/dev/null; then
51199   # We could just check for DJGPP; but this test a) works b) is more generic
51200   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51201   if test -f conf$$.exe; then
51202     # Don't use ln at all; we don't have any links
51203     as_ln_s='cp -p'
51204   else
51205     as_ln_s='ln -s'
51206   fi
51207 elif ln conf$$.file conf$$ 2>/dev/null; then
51208   as_ln_s=ln
51209 else
51210   as_ln_s='cp -p'
51211 fi
51212 rm -f conf$$ conf$$.exe conf$$.file
51213
51214 if mkdir -p . 2>/dev/null; then
51215   as_mkdir_p=:
51216 else
51217   test -d ./-p && rmdir ./-p
51218   as_mkdir_p=false
51219 fi
51220
51221 as_executable_p="test -f"
51222
51223 # Sed expression to map a string onto a valid CPP name.
51224 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51225
51226 # Sed expression to map a string onto a valid variable name.
51227 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51228
51229
51230 # IFS
51231 # We need space, tab and new line, in precisely that order.
51232 as_nl='
51233 '
51234 IFS="   $as_nl"
51235
51236 # CDPATH.
51237 $as_unset CDPATH
51238
51239 exec 6>&1
51240
51241 # Open the log real soon, to keep \$[0] and so on meaningful, and to
51242 # report actual input values of CONFIG_FILES etc. instead of their
51243 # values after options handling.  Logging --version etc. is OK.
51244 exec 5>>config.log
51245 {
51246   echo
51247   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51248 ## Running $as_me. ##
51249 _ASBOX
51250 } >&5
51251 cat >&5 <<_CSEOF
51252
51253 This file was extended by GNU coreutils $as_me 5.2.1, which was
51254 generated by GNU Autoconf 2.59.  Invocation command line was
51255
51256   CONFIG_FILES    = $CONFIG_FILES
51257   CONFIG_HEADERS  = $CONFIG_HEADERS
51258   CONFIG_LINKS    = $CONFIG_LINKS
51259   CONFIG_COMMANDS = $CONFIG_COMMANDS
51260   $ $0 $@
51261
51262 _CSEOF
51263 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51264 echo >&5
51265 _ACEOF
51266
51267 # Files that config.status was made for.
51268 if test -n "$ac_config_files"; then
51269   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51270 fi
51271
51272 if test -n "$ac_config_headers"; then
51273   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51274 fi
51275
51276 if test -n "$ac_config_links"; then
51277   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51278 fi
51279
51280 if test -n "$ac_config_commands"; then
51281   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51282 fi
51283
51284 cat >>$CONFIG_STATUS <<\_ACEOF
51285
51286 ac_cs_usage="\
51287 \`$as_me' instantiates files from templates according to the
51288 current configuration.
51289
51290 Usage: $0 [OPTIONS] [FILE]...
51291
51292   -h, --help       print this help, then exit
51293   -V, --version    print version number, then exit
51294   -q, --quiet      do not print progress messages
51295   -d, --debug      don't remove temporary files
51296       --recheck    update $as_me by reconfiguring in the same conditions
51297   --file=FILE[:TEMPLATE]
51298                    instantiate the configuration file FILE
51299   --header=FILE[:TEMPLATE]
51300                    instantiate the configuration header FILE
51301
51302 Configuration files:
51303 $config_files
51304
51305 Configuration headers:
51306 $config_headers
51307
51308 Configuration commands:
51309 $config_commands
51310
51311 Report bugs to <bug-autoconf@gnu.org>."
51312 _ACEOF
51313
51314 cat >>$CONFIG_STATUS <<_ACEOF
51315 ac_cs_version="\\
51316 GNU coreutils config.status 5.2.1
51317 configured by $0, generated by GNU Autoconf 2.59,
51318   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51319
51320 Copyright (C) 2003 Free Software Foundation, Inc.
51321 This config.status script is free software; the Free Software Foundation
51322 gives unlimited permission to copy, distribute and modify it."
51323 srcdir=$srcdir
51324 INSTALL="$INSTALL"
51325 _ACEOF
51326
51327 cat >>$CONFIG_STATUS <<\_ACEOF
51328 # If no file are specified by the user, then we need to provide default
51329 # value.  By we need to know if files were specified by the user.
51330 ac_need_defaults=:
51331 while test $# != 0
51332 do
51333   case $1 in
51334   --*=*)
51335     ac_option=`expr "x$1" : 'x\([^=]*\)='`
51336     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51337     ac_shift=:
51338     ;;
51339   -*)
51340     ac_option=$1
51341     ac_optarg=$2
51342     ac_shift=shift
51343     ;;
51344   *) # This is not an option, so the user has probably given explicit
51345      # arguments.
51346      ac_option=$1
51347      ac_need_defaults=false;;
51348   esac
51349
51350   case $ac_option in
51351   # Handling of the options.
51352 _ACEOF
51353 cat >>$CONFIG_STATUS <<\_ACEOF
51354   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51355     ac_cs_recheck=: ;;
51356   --version | --vers* | -V )
51357     echo "$ac_cs_version"; exit 0 ;;
51358   --he | --h)
51359     # Conflict between --help and --header
51360     { { echo "$as_me:$LINENO: error: ambiguous option: $1
51361 Try \`$0 --help' for more information." >&5
51362 echo "$as_me: error: ambiguous option: $1
51363 Try \`$0 --help' for more information." >&2;}
51364    { (exit 1); exit 1; }; };;
51365   --help | --hel | -h )
51366     echo "$ac_cs_usage"; exit 0 ;;
51367   --debug | --d* | -d )
51368     debug=: ;;
51369   --file | --fil | --fi | --f )
51370     $ac_shift
51371     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51372     ac_need_defaults=false;;
51373   --header | --heade | --head | --hea )
51374     $ac_shift
51375     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51376     ac_need_defaults=false;;
51377   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51378   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51379     ac_cs_silent=: ;;
51380
51381   # This is an error.
51382   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51383 Try \`$0 --help' for more information." >&5
51384 echo "$as_me: error: unrecognized option: $1
51385 Try \`$0 --help' for more information." >&2;}
51386    { (exit 1); exit 1; }; } ;;
51387
51388   *) ac_config_targets="$ac_config_targets $1" ;;
51389
51390   esac
51391   shift
51392 done
51393
51394 ac_configure_extra_args=
51395
51396 if $ac_cs_silent; then
51397   exec 6>/dev/null
51398   ac_configure_extra_args="$ac_configure_extra_args --silent"
51399 fi
51400
51401 _ACEOF
51402 cat >>$CONFIG_STATUS <<_ACEOF
51403 if \$ac_cs_recheck; then
51404   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51405   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51406 fi
51407
51408 _ACEOF
51409
51410 cat >>$CONFIG_STATUS <<_ACEOF
51411 #
51412 # INIT-COMMANDS section.
51413 #
51414
51415 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51416 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
51417     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
51418     # from automake.
51419     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
51420     # Capture the value of LINGUAS because we need it to compute CATALOGS.
51421     LINGUAS="${LINGUAS-%UNSET%}"
51422
51423
51424 _ACEOF
51425
51426
51427
51428 cat >>$CONFIG_STATUS <<\_ACEOF
51429 for ac_config_target in $ac_config_targets
51430 do
51431   case "$ac_config_target" in
51432   # Handling of arguments.
51433   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51434   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
51435   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
51436   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
51437   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
51438   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
51439   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
51440   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
51441   "tests/basename/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/basename/Makefile" ;;
51442   "tests/chgrp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
51443   "tests/chmod/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
51444   "tests/chown/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
51445   "tests/cp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
51446   "tests/cut/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
51447   "tests/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/date/Makefile" ;;
51448   "tests/dd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
51449   "tests/dircolors/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
51450   "tests/du/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
51451   "tests/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
51452   "tests/factor/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
51453   "tests/fmt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
51454   "tests/head/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
51455   "tests/install/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
51456   "tests/join/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
51457   "tests/ln/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
51458   "tests/ls-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
51459   "tests/ls/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
51460   "tests/md5sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
51461   "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
51462   "tests/mkdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
51463   "tests/mv/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
51464   "tests/od/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
51465   "tests/pr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
51466   "tests/rm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
51467   "tests/rmdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
51468   "tests/seq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
51469   "tests/sha1sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
51470   "tests/shred/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
51471   "tests/sort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
51472   "tests/stty/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
51473   "tests/sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
51474   "tests/tac/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
51475   "tests/tail-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
51476   "tests/tail/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
51477   "tests/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
51478   "tests/touch/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
51479   "tests/tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
51480   "tests/tsort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
51481   "tests/unexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
51482   "tests/uniq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
51483   "tests/wc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
51484   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51485   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
51486   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
51487   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51488 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51489    { (exit 1); exit 1; }; };;
51490   esac
51491 done
51492
51493 # If the user did not use the arguments to specify the items to instantiate,
51494 # then the envvar interface is used.  Set only those that are not.
51495 # We use the long form for the default assignment because of an extremely
51496 # bizarre bug on SunOS 4.1.3.
51497 if $ac_need_defaults; then
51498   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51499   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51500   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51501 fi
51502
51503 # Have a temporary directory for convenience.  Make it in the build tree
51504 # simply because there is no reason to put it here, and in addition,
51505 # creating and moving files from /tmp can sometimes cause problems.
51506 # Create a temporary directory, and hook for its removal unless debugging.
51507 $debug ||
51508 {
51509   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51510   trap '{ (exit 1); exit 1; }' 1 2 13 15
51511 }
51512
51513 # Create a (secure) tmp directory for tmp files.
51514
51515 {
51516   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51517   test -n "$tmp" && test -d "$tmp"
51518 }  ||
51519 {
51520   tmp=./confstat$$-$RANDOM
51521   (umask 077 && mkdir $tmp)
51522 } ||
51523 {
51524    echo "$me: cannot create a temporary directory in ." >&2
51525    { (exit 1); exit 1; }
51526 }
51527
51528 _ACEOF
51529
51530 cat >>$CONFIG_STATUS <<_ACEOF
51531
51532 #
51533 # CONFIG_FILES section.
51534 #
51535
51536 # No need to generate the scripts if there are no CONFIG_FILES.
51537 # This happens for instance when ./config.status config.h
51538 if test -n "\$CONFIG_FILES"; then
51539   # Protect against being on the right side of a sed subst in config.status.
51540   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51541    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51542 s,@SHELL@,$SHELL,;t t
51543 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51544 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51545 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51546 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51547 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51548 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51549 s,@exec_prefix@,$exec_prefix,;t t
51550 s,@prefix@,$prefix,;t t
51551 s,@program_transform_name@,$program_transform_name,;t t
51552 s,@bindir@,$bindir,;t t
51553 s,@sbindir@,$sbindir,;t t
51554 s,@libexecdir@,$libexecdir,;t t
51555 s,@datadir@,$datadir,;t t
51556 s,@sysconfdir@,$sysconfdir,;t t
51557 s,@sharedstatedir@,$sharedstatedir,;t t
51558 s,@localstatedir@,$localstatedir,;t t
51559 s,@libdir@,$libdir,;t t
51560 s,@includedir@,$includedir,;t t
51561 s,@oldincludedir@,$oldincludedir,;t t
51562 s,@infodir@,$infodir,;t t
51563 s,@mandir@,$mandir,;t t
51564 s,@build_alias@,$build_alias,;t t
51565 s,@host_alias@,$host_alias,;t t
51566 s,@target_alias@,$target_alias,;t t
51567 s,@DEFS@,$DEFS,;t t
51568 s,@ECHO_C@,$ECHO_C,;t t
51569 s,@ECHO_N@,$ECHO_N,;t t
51570 s,@ECHO_T@,$ECHO_T,;t t
51571 s,@LIBS@,$LIBS,;t t
51572 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51573 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51574 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51575 s,@CYGPATH_W@,$CYGPATH_W,;t t
51576 s,@PACKAGE@,$PACKAGE,;t t
51577 s,@VERSION@,$VERSION,;t t
51578 s,@ACLOCAL@,$ACLOCAL,;t t
51579 s,@AUTOCONF@,$AUTOCONF,;t t
51580 s,@AUTOMAKE@,$AUTOMAKE,;t t
51581 s,@AUTOHEADER@,$AUTOHEADER,;t t
51582 s,@MAKEINFO@,$MAKEINFO,;t t
51583 s,@AMTAR@,$AMTAR,;t t
51584 s,@install_sh@,$install_sh,;t t
51585 s,@STRIP@,$STRIP,;t t
51586 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
51587 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
51588 s,@mkdir_p@,$mkdir_p,;t t
51589 s,@AWK@,$AWK,;t t
51590 s,@SET_MAKE@,$SET_MAKE,;t t
51591 s,@am__leading_dot@,$am__leading_dot,;t t
51592 s,@DEFAULT_POSIX2_VERSION@,$DEFAULT_POSIX2_VERSION,;t t
51593 s,@CC@,$CC,;t t
51594 s,@CFLAGS@,$CFLAGS,;t t
51595 s,@LDFLAGS@,$LDFLAGS,;t t
51596 s,@CPPFLAGS@,$CPPFLAGS,;t t
51597 s,@ac_ct_CC@,$ac_ct_CC,;t t
51598 s,@EXEEXT@,$EXEEXT,;t t
51599 s,@OBJEXT@,$OBJEXT,;t t
51600 s,@DEPDIR@,$DEPDIR,;t t
51601 s,@am__include@,$am__include,;t t
51602 s,@am__quote@,$am__quote,;t t
51603 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
51604 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
51605 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
51606 s,@CCDEPMODE@,$CCDEPMODE,;t t
51607 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
51608 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
51609 s,@CPP@,$CPP,;t t
51610 s,@EGREP@,$EGREP,;t t
51611 s,@PERL@,$PERL,;t t
51612 s,@RANLIB@,$RANLIB,;t t
51613 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51614 s,@LN_S@,$LN_S,;t t
51615 s,@build@,$build,;t t
51616 s,@build_cpu@,$build_cpu,;t t
51617 s,@build_vendor@,$build_vendor,;t t
51618 s,@build_os@,$build_os,;t t
51619 s,@host@,$host,;t t
51620 s,@host_cpu@,$host_cpu,;t t
51621 s,@host_vendor@,$host_vendor,;t t
51622 s,@host_os@,$host_os,;t t
51623 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
51624 s,@HELP2MAN@,$HELP2MAN,;t t
51625 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
51626 s,@MAN@,$MAN,;t t
51627 s,@DF_PROG@,$DF_PROG,;t t
51628 s,@U@,$U,;t t
51629 s,@ANSI2KNR@,$ANSI2KNR,;t t
51630 s,@LIBOBJS@,$LIBOBJS,;t t
51631 s,@STDBOOL_H@,$STDBOOL_H,;t t
51632 s,@HAVE__BOOL@,$HAVE__BOOL,;t t
51633 s,@ALLOCA@,$ALLOCA,;t t
51634 s,@ALLOCA_H@,$ALLOCA_H,;t t
51635 s,@FNMATCH_H@,$FNMATCH_H,;t t
51636 s,@NEED_SETGID@,$NEED_SETGID,;t t
51637 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
51638 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
51639 s,@POW_LIB@,$POW_LIB,;t t
51640 s,@YACC@,$YACC,;t t
51641 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
51642 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
51643 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
51644 s,@GLIBC21@,$GLIBC21,;t t
51645 s,@LIBICONV@,$LIBICONV,;t t
51646 s,@LTLIBICONV@,$LTLIBICONV,;t t
51647 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
51648 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
51649 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
51650 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
51651 s,@USE_NLS@,$USE_NLS,;t t
51652 s,@MSGFMT@,$MSGFMT,;t t
51653 s,@GMSGFMT@,$GMSGFMT,;t t
51654 s,@XGETTEXT@,$XGETTEXT,;t t
51655 s,@MSGMERGE@,$MSGMERGE,;t t
51656 s,@INTLLIBS@,$INTLLIBS,;t t
51657 s,@LIBINTL@,$LIBINTL,;t t
51658 s,@LTLIBINTL@,$LTLIBINTL,;t t
51659 s,@POSUB@,$POSUB,;t t
51660 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51661 CEOF
51662
51663 _ACEOF
51664
51665   cat >>$CONFIG_STATUS <<\_ACEOF
51666   # Split the substitutions into bite-sized pieces for seds with
51667   # small command number limits, like on Digital OSF/1 and HP-UX.
51668   ac_max_sed_lines=48
51669   ac_sed_frag=1 # Number of current file.
51670   ac_beg=1 # First line for current file.
51671   ac_end=$ac_max_sed_lines # Line after last line for current file.
51672   ac_more_lines=:
51673   ac_sed_cmds=
51674   while $ac_more_lines; do
51675     if test $ac_beg -gt 1; then
51676       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51677     else
51678       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51679     fi
51680     if test ! -s $tmp/subs.frag; then
51681       ac_more_lines=false
51682     else
51683       # The purpose of the label and of the branching condition is to
51684       # speed up the sed processing (if there are no `@' at all, there
51685       # is no need to browse any of the substitutions).
51686       # These are the two extra sed commands mentioned above.
51687       (echo ':t
51688   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
51689       if test -z "$ac_sed_cmds"; then
51690         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
51691       else
51692         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
51693       fi
51694       ac_sed_frag=`expr $ac_sed_frag + 1`
51695       ac_beg=$ac_end
51696       ac_end=`expr $ac_end + $ac_max_sed_lines`
51697     fi
51698   done
51699   if test -z "$ac_sed_cmds"; then
51700     ac_sed_cmds=cat
51701   fi
51702 fi # test -n "$CONFIG_FILES"
51703
51704 _ACEOF
51705 cat >>$CONFIG_STATUS <<\_ACEOF
51706 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
51707   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51708   case $ac_file in
51709   - | *:- | *:-:* ) # input from stdin
51710         cat >$tmp/stdin
51711         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51712         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51713   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51714         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51715   * )   ac_file_in=$ac_file.in ;;
51716   esac
51717
51718   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
51719   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51720 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51721          X"$ac_file" : 'X\(//\)[^/]' \| \
51722          X"$ac_file" : 'X\(//\)$' \| \
51723          X"$ac_file" : 'X\(/\)' \| \
51724          .     : '\(.\)' 2>/dev/null ||
51725 echo X"$ac_file" |
51726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51727           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51728           /^X\(\/\/\)$/{ s//\1/; q; }
51729           /^X\(\/\).*/{ s//\1/; q; }
51730           s/.*/./; q'`
51731   { if $as_mkdir_p; then
51732     mkdir -p "$ac_dir"
51733   else
51734     as_dir="$ac_dir"
51735     as_dirs=
51736     while test ! -d "$as_dir"; do
51737       as_dirs="$as_dir $as_dirs"
51738       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51740          X"$as_dir" : 'X\(//\)[^/]' \| \
51741          X"$as_dir" : 'X\(//\)$' \| \
51742          X"$as_dir" : 'X\(/\)' \| \
51743          .     : '\(.\)' 2>/dev/null ||
51744 echo X"$as_dir" |
51745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51746           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51747           /^X\(\/\/\)$/{ s//\1/; q; }
51748           /^X\(\/\).*/{ s//\1/; q; }
51749           s/.*/./; q'`
51750     done
51751     test ! -n "$as_dirs" || mkdir $as_dirs
51752   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51753 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51754    { (exit 1); exit 1; }; }; }
51755
51756   ac_builddir=.
51757
51758 if test "$ac_dir" != .; then
51759   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51760   # A "../" for each directory in $ac_dir_suffix.
51761   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51762 else
51763   ac_dir_suffix= ac_top_builddir=
51764 fi
51765
51766 case $srcdir in
51767   .)  # No --srcdir option.  We are building in place.
51768     ac_srcdir=.
51769     if test -z "$ac_top_builddir"; then
51770        ac_top_srcdir=.
51771     else
51772        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51773     fi ;;
51774   [\\/]* | ?:[\\/]* )  # Absolute path.
51775     ac_srcdir=$srcdir$ac_dir_suffix;
51776     ac_top_srcdir=$srcdir ;;
51777   *) # Relative path.
51778     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51779     ac_top_srcdir=$ac_top_builddir$srcdir ;;
51780 esac
51781
51782 # Do not use `cd foo && pwd` to compute absolute paths, because
51783 # the directories may not exist.
51784 case `pwd` in
51785 .) ac_abs_builddir="$ac_dir";;
51786 *)
51787   case "$ac_dir" in
51788   .) ac_abs_builddir=`pwd`;;
51789   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51790   *) ac_abs_builddir=`pwd`/"$ac_dir";;
51791   esac;;
51792 esac
51793 case $ac_abs_builddir in
51794 .) ac_abs_top_builddir=${ac_top_builddir}.;;
51795 *)
51796   case ${ac_top_builddir}. in
51797   .) ac_abs_top_builddir=$ac_abs_builddir;;
51798   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51799   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51800   esac;;
51801 esac
51802 case $ac_abs_builddir in
51803 .) ac_abs_srcdir=$ac_srcdir;;
51804 *)
51805   case $ac_srcdir in
51806   .) ac_abs_srcdir=$ac_abs_builddir;;
51807   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51808   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51809   esac;;
51810 esac
51811 case $ac_abs_builddir in
51812 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51813 *)
51814   case $ac_top_srcdir in
51815   .) ac_abs_top_srcdir=$ac_abs_builddir;;
51816   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51817   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51818   esac;;
51819 esac
51820
51821
51822   case $INSTALL in
51823   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51824   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51825   esac
51826
51827   if test x"$ac_file" != x-; then
51828     { echo "$as_me:$LINENO: creating $ac_file" >&5
51829 echo "$as_me: creating $ac_file" >&6;}
51830     rm -f "$ac_file"
51831   fi
51832   # Let's still pretend it is `configure' which instantiates (i.e., don't
51833   # use $as_me), people would be surprised to read:
51834   #    /* config.h.  Generated by config.status.  */
51835   if test x"$ac_file" = x-; then
51836     configure_input=
51837   else
51838     configure_input="$ac_file.  "
51839   fi
51840   configure_input=$configure_input"Generated from `echo $ac_file_in |
51841                                      sed 's,.*/,,'` by configure."
51842
51843   # First look for the input files in the build tree, otherwise in the
51844   # src tree.
51845   ac_file_inputs=`IFS=:
51846     for f in $ac_file_in; do
51847       case $f in
51848       -) echo $tmp/stdin ;;
51849       [\\/$]*)
51850          # Absolute (can't be DOS-style, as IFS=:)
51851          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51852 echo "$as_me: error: cannot find input file: $f" >&2;}
51853    { (exit 1); exit 1; }; }
51854          echo "$f";;
51855       *) # Relative
51856          if test -f "$f"; then
51857            # Build tree
51858            echo "$f"
51859          elif test -f "$srcdir/$f"; then
51860            # Source tree
51861            echo "$srcdir/$f"
51862          else
51863            # /dev/null tree
51864            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51865 echo "$as_me: error: cannot find input file: $f" >&2;}
51866    { (exit 1); exit 1; }; }
51867          fi;;
51868       esac
51869     done` || { (exit 1); exit 1; }
51870 _ACEOF
51871 cat >>$CONFIG_STATUS <<_ACEOF
51872   sed "$ac_vpsub
51873 $extrasub
51874 _ACEOF
51875 cat >>$CONFIG_STATUS <<\_ACEOF
51876 :t
51877 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51878 s,@configure_input@,$configure_input,;t t
51879 s,@srcdir@,$ac_srcdir,;t t
51880 s,@abs_srcdir@,$ac_abs_srcdir,;t t
51881 s,@top_srcdir@,$ac_top_srcdir,;t t
51882 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51883 s,@builddir@,$ac_builddir,;t t
51884 s,@abs_builddir@,$ac_abs_builddir,;t t
51885 s,@top_builddir@,$ac_top_builddir,;t t
51886 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51887 s,@INSTALL@,$ac_INSTALL,;t t
51888 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51889   rm -f $tmp/stdin
51890   if test x"$ac_file" != x-; then
51891     mv $tmp/out $ac_file
51892   else
51893     cat $tmp/out
51894     rm -f $tmp/out
51895   fi
51896
51897 done
51898 _ACEOF
51899 cat >>$CONFIG_STATUS <<\_ACEOF
51900
51901 #
51902 # CONFIG_HEADER section.
51903 #
51904
51905 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51906 # NAME is the cpp macro being defined and VALUE is the value it is being given.
51907 #
51908 # ac_d sets the value in "#define NAME VALUE" lines.
51909 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
51910 ac_dB='[         ].*$,\1#\2'
51911 ac_dC=' '
51912 ac_dD=',;t'
51913 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
51914 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
51915 ac_uB='$,\1#\2define\3'
51916 ac_uC=' '
51917 ac_uD=',;t'
51918
51919 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51920   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51921   case $ac_file in
51922   - | *:- | *:-:* ) # input from stdin
51923         cat >$tmp/stdin
51924         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51925         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51926   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51927         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51928   * )   ac_file_in=$ac_file.in ;;
51929   esac
51930
51931   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51932 echo "$as_me: creating $ac_file" >&6;}
51933
51934   # First look for the input files in the build tree, otherwise in the
51935   # src tree.
51936   ac_file_inputs=`IFS=:
51937     for f in $ac_file_in; do
51938       case $f in
51939       -) echo $tmp/stdin ;;
51940       [\\/$]*)
51941          # Absolute (can't be DOS-style, as IFS=:)
51942          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51943 echo "$as_me: error: cannot find input file: $f" >&2;}
51944    { (exit 1); exit 1; }; }
51945          # Do quote $f, to prevent DOS paths from being IFS'd.
51946          echo "$f";;
51947       *) # Relative
51948          if test -f "$f"; then
51949            # Build tree
51950            echo "$f"
51951          elif test -f "$srcdir/$f"; then
51952            # Source tree
51953            echo "$srcdir/$f"
51954          else
51955            # /dev/null tree
51956            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51957 echo "$as_me: error: cannot find input file: $f" >&2;}
51958    { (exit 1); exit 1; }; }
51959          fi;;
51960       esac
51961     done` || { (exit 1); exit 1; }
51962   # Remove the trailing spaces.
51963   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
51964
51965 _ACEOF
51966
51967 # Transform confdefs.h into two sed scripts, `conftest.defines' and
51968 # `conftest.undefs', that substitutes the proper values into
51969 # config.h.in to produce config.h.  The first handles `#define'
51970 # templates, and the second `#undef' templates.
51971 # And first: Protect against being on the right side of a sed subst in
51972 # config.status.  Protect against being in an unquoted here document
51973 # in config.status.
51974 rm -f conftest.defines conftest.undefs
51975 # Using a here document instead of a string reduces the quoting nightmare.
51976 # Putting comments in sed scripts is not portable.
51977 #
51978 # `end' is used to avoid that the second main sed command (meant for
51979 # 0-ary CPP macros) applies to n-ary macro definitions.
51980 # See the Autoconf documentation for `clear'.
51981 cat >confdef2sed.sed <<\_ACEOF
51982 s/[\\&,]/\\&/g
51983 s,[\\$`],\\&,g
51984 t clear
51985 : clear
51986 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
51987 t end
51988 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
51989 : end
51990 _ACEOF
51991 # If some macros were called several times there might be several times
51992 # the same #defines, which is useless.  Nevertheless, we may not want to
51993 # sort them, since we want the *last* AC-DEFINE to be honored.
51994 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51995 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51996 rm -f confdef2sed.sed
51997
51998 # This sed command replaces #undef with comments.  This is necessary, for
51999 # example, in the case of _POSIX_SOURCE, which is predefined and required
52000 # on some systems where configure will not decide to define it.
52001 cat >>conftest.undefs <<\_ACEOF
52002 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
52003 _ACEOF
52004
52005 # Break up conftest.defines because some shells have a limit on the size
52006 # of here documents, and old seds have small limits too (100 cmds).
52007 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
52008 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
52009 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52010 echo '  :' >>$CONFIG_STATUS
52011 rm -f conftest.tail
52012 while grep . conftest.defines >/dev/null
52013 do
52014   # Write a limited-size here document to $tmp/defines.sed.
52015   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52016   # Speed up: don't consider the non `#define' lines.
52017   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
52018   # Work around the forget-to-reset-the-flag bug.
52019   echo 't clr' >>$CONFIG_STATUS
52020   echo ': clr' >>$CONFIG_STATUS
52021   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52022   echo 'CEOF
52023   sed -f $tmp/defines.sed $tmp/in >$tmp/out
52024   rm -f $tmp/in
52025   mv $tmp/out $tmp/in
52026 ' >>$CONFIG_STATUS
52027   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52028   rm -f conftest.defines
52029   mv conftest.tail conftest.defines
52030 done
52031 rm -f conftest.defines
52032 echo '  fi # grep' >>$CONFIG_STATUS
52033 echo >>$CONFIG_STATUS
52034
52035 # Break up conftest.undefs because some shells have a limit on the size
52036 # of here documents, and old seds have small limits too (100 cmds).
52037 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
52038 rm -f conftest.tail
52039 while grep . conftest.undefs >/dev/null
52040 do
52041   # Write a limited-size here document to $tmp/undefs.sed.
52042   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52043   # Speed up: don't consider the non `#undef'
52044   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
52045   # Work around the forget-to-reset-the-flag bug.
52046   echo 't clr' >>$CONFIG_STATUS
52047   echo ': clr' >>$CONFIG_STATUS
52048   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52049   echo 'CEOF
52050   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52051   rm -f $tmp/in
52052   mv $tmp/out $tmp/in
52053 ' >>$CONFIG_STATUS
52054   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52055   rm -f conftest.undefs
52056   mv conftest.tail conftest.undefs
52057 done
52058 rm -f conftest.undefs
52059
52060 cat >>$CONFIG_STATUS <<\_ACEOF
52061   # Let's still pretend it is `configure' which instantiates (i.e., don't
52062   # use $as_me), people would be surprised to read:
52063   #    /* config.h.  Generated by config.status.  */
52064   if test x"$ac_file" = x-; then
52065     echo "/* Generated by configure.  */" >$tmp/config.h
52066   else
52067     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
52068   fi
52069   cat $tmp/in >>$tmp/config.h
52070   rm -f $tmp/in
52071   if test x"$ac_file" != x-; then
52072     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52073       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52074 echo "$as_me: $ac_file is unchanged" >&6;}
52075     else
52076       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52077 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52078          X"$ac_file" : 'X\(//\)[^/]' \| \
52079          X"$ac_file" : 'X\(//\)$' \| \
52080          X"$ac_file" : 'X\(/\)' \| \
52081          .     : '\(.\)' 2>/dev/null ||
52082 echo X"$ac_file" |
52083     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52084           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52085           /^X\(\/\/\)$/{ s//\1/; q; }
52086           /^X\(\/\).*/{ s//\1/; q; }
52087           s/.*/./; q'`
52088       { if $as_mkdir_p; then
52089     mkdir -p "$ac_dir"
52090   else
52091     as_dir="$ac_dir"
52092     as_dirs=
52093     while test ! -d "$as_dir"; do
52094       as_dirs="$as_dir $as_dirs"
52095       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52097          X"$as_dir" : 'X\(//\)[^/]' \| \
52098          X"$as_dir" : 'X\(//\)$' \| \
52099          X"$as_dir" : 'X\(/\)' \| \
52100          .     : '\(.\)' 2>/dev/null ||
52101 echo X"$as_dir" |
52102     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52103           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52104           /^X\(\/\/\)$/{ s//\1/; q; }
52105           /^X\(\/\).*/{ s//\1/; q; }
52106           s/.*/./; q'`
52107     done
52108     test ! -n "$as_dirs" || mkdir $as_dirs
52109   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52110 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52111    { (exit 1); exit 1; }; }; }
52112
52113       rm -f $ac_file
52114       mv $tmp/config.h $ac_file
52115     fi
52116   else
52117     cat $tmp/config.h
52118     rm -f $tmp/config.h
52119   fi
52120 # Compute $ac_file's index in $config_headers.
52121 _am_stamp_count=1
52122 for _am_header in $config_headers :; do
52123   case $_am_header in
52124     $ac_file | $ac_file:* )
52125       break ;;
52126     * )
52127       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52128   esac
52129 done
52130 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
52131 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52132          X$ac_file : 'X\(//\)[^/]' \| \
52133          X$ac_file : 'X\(//\)$' \| \
52134          X$ac_file : 'X\(/\)' \| \
52135          .     : '\(.\)' 2>/dev/null ||
52136 echo X$ac_file |
52137     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52138           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52139           /^X\(\/\/\)$/{ s//\1/; q; }
52140           /^X\(\/\).*/{ s//\1/; q; }
52141           s/.*/./; q'`/stamp-h$_am_stamp_count
52142 done
52143 _ACEOF
52144 cat >>$CONFIG_STATUS <<\_ACEOF
52145
52146 #
52147 # CONFIG_COMMANDS section.
52148 #
52149 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52150   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52151   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52152   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52153 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52154          X"$ac_dest" : 'X\(//\)[^/]' \| \
52155          X"$ac_dest" : 'X\(//\)$' \| \
52156          X"$ac_dest" : 'X\(/\)' \| \
52157          .     : '\(.\)' 2>/dev/null ||
52158 echo X"$ac_dest" |
52159     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52160           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52161           /^X\(\/\/\)$/{ s//\1/; q; }
52162           /^X\(\/\).*/{ s//\1/; q; }
52163           s/.*/./; q'`
52164   { if $as_mkdir_p; then
52165     mkdir -p "$ac_dir"
52166   else
52167     as_dir="$ac_dir"
52168     as_dirs=
52169     while test ! -d "$as_dir"; do
52170       as_dirs="$as_dir $as_dirs"
52171       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52173          X"$as_dir" : 'X\(//\)[^/]' \| \
52174          X"$as_dir" : 'X\(//\)$' \| \
52175          X"$as_dir" : 'X\(/\)' \| \
52176          .     : '\(.\)' 2>/dev/null ||
52177 echo X"$as_dir" |
52178     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52179           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52180           /^X\(\/\/\)$/{ s//\1/; q; }
52181           /^X\(\/\).*/{ s//\1/; q; }
52182           s/.*/./; q'`
52183     done
52184     test ! -n "$as_dirs" || mkdir $as_dirs
52185   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52186 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52187    { (exit 1); exit 1; }; }; }
52188
52189   ac_builddir=.
52190
52191 if test "$ac_dir" != .; then
52192   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52193   # A "../" for each directory in $ac_dir_suffix.
52194   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52195 else
52196   ac_dir_suffix= ac_top_builddir=
52197 fi
52198
52199 case $srcdir in
52200   .)  # No --srcdir option.  We are building in place.
52201     ac_srcdir=.
52202     if test -z "$ac_top_builddir"; then
52203        ac_top_srcdir=.
52204     else
52205        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52206     fi ;;
52207   [\\/]* | ?:[\\/]* )  # Absolute path.
52208     ac_srcdir=$srcdir$ac_dir_suffix;
52209     ac_top_srcdir=$srcdir ;;
52210   *) # Relative path.
52211     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52212     ac_top_srcdir=$ac_top_builddir$srcdir ;;
52213 esac
52214
52215 # Do not use `cd foo && pwd` to compute absolute paths, because
52216 # the directories may not exist.
52217 case `pwd` in
52218 .) ac_abs_builddir="$ac_dir";;
52219 *)
52220   case "$ac_dir" in
52221   .) ac_abs_builddir=`pwd`;;
52222   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52223   *) ac_abs_builddir=`pwd`/"$ac_dir";;
52224   esac;;
52225 esac
52226 case $ac_abs_builddir in
52227 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52228 *)
52229   case ${ac_top_builddir}. in
52230   .) ac_abs_top_builddir=$ac_abs_builddir;;
52231   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52232   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52233   esac;;
52234 esac
52235 case $ac_abs_builddir in
52236 .) ac_abs_srcdir=$ac_srcdir;;
52237 *)
52238   case $ac_srcdir in
52239   .) ac_abs_srcdir=$ac_abs_builddir;;
52240   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52241   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52242   esac;;
52243 esac
52244 case $ac_abs_builddir in
52245 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52246 *)
52247   case $ac_top_srcdir in
52248   .) ac_abs_top_srcdir=$ac_abs_builddir;;
52249   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52250   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52251   esac;;
52252 esac
52253
52254
52255   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52256 echo "$as_me: executing $ac_dest commands" >&6;}
52257   case $ac_dest in
52258     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
52259   # Strip MF so we end up with the name of the file.
52260   mf=`echo "$mf" | sed -e 's/:.*$//'`
52261   # Check whether this is an Automake generated Makefile or not.
52262   # We used to match only the files named `Makefile.in', but
52263   # some people rename them; so instead we look at the file content.
52264   # Grep'ing the first line is not enough: some people post-process
52265   # each Makefile.in and add a new line on top of each file to say so.
52266   # So let's grep whole file.
52267   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
52268     dirpart=`(dirname "$mf") 2>/dev/null ||
52269 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52270          X"$mf" : 'X\(//\)[^/]' \| \
52271          X"$mf" : 'X\(//\)$' \| \
52272          X"$mf" : 'X\(/\)' \| \
52273          .     : '\(.\)' 2>/dev/null ||
52274 echo X"$mf" |
52275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52276           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52277           /^X\(\/\/\)$/{ s//\1/; q; }
52278           /^X\(\/\).*/{ s//\1/; q; }
52279           s/.*/./; q'`
52280   else
52281     continue
52282   fi
52283   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
52284   # Extract the definition of DEP_FILES from the Makefile without
52285   # running `make'.
52286   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52287   test -z "$DEPDIR" && continue
52288   # When using ansi2knr, U may be empty or an underscore; expand it
52289   U=`sed -n 's/^U = //p' < "$mf"`
52290   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
52291   # We invoke sed twice because it is the simplest approach to
52292   # changing $(DEPDIR) to its actual value in the expansion.
52293   for file in `sed -n '
52294     /^DEP_FILES = .*\\\\$/ {
52295       s/^DEP_FILES = //
52296       :loop
52297         s/\\\\$//
52298         p
52299         n
52300         /\\\\$/ b loop
52301       p
52302     }
52303     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
52304        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
52305     # Make sure the directory exists.
52306     test -f "$dirpart/$file" && continue
52307     fdir=`(dirname "$file") 2>/dev/null ||
52308 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52309          X"$file" : 'X\(//\)[^/]' \| \
52310          X"$file" : 'X\(//\)$' \| \
52311          X"$file" : 'X\(/\)' \| \
52312          .     : '\(.\)' 2>/dev/null ||
52313 echo X"$file" |
52314     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52315           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52316           /^X\(\/\/\)$/{ s//\1/; q; }
52317           /^X\(\/\).*/{ s//\1/; q; }
52318           s/.*/./; q'`
52319     { if $as_mkdir_p; then
52320     mkdir -p $dirpart/$fdir
52321   else
52322     as_dir=$dirpart/$fdir
52323     as_dirs=
52324     while test ! -d "$as_dir"; do
52325       as_dirs="$as_dir $as_dirs"
52326       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52327 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52328          X"$as_dir" : 'X\(//\)[^/]' \| \
52329          X"$as_dir" : 'X\(//\)$' \| \
52330          X"$as_dir" : 'X\(/\)' \| \
52331          .     : '\(.\)' 2>/dev/null ||
52332 echo X"$as_dir" |
52333     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52334           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52335           /^X\(\/\/\)$/{ s//\1/; q; }
52336           /^X\(\/\).*/{ s//\1/; q; }
52337           s/.*/./; q'`
52338     done
52339     test ! -n "$as_dirs" || mkdir $as_dirs
52340   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
52341 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
52342    { (exit 1); exit 1; }; }; }
52343
52344     # echo "creating $dirpart/$file"
52345     echo '# dummy' > "$dirpart/$file"
52346   done
52347 done
52348  ;;
52349     default-1 )
52350     for ac_file in $CONFIG_FILES; do
52351       # Support "outfile[:infile[:infile...]]"
52352       case "$ac_file" in
52353         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
52354       esac
52355       # PO directories have a Makefile.in generated from Makefile.in.in.
52356       case "$ac_file" in */Makefile.in)
52357         # Adjust a relative srcdir.
52358         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
52359         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
52360         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
52361         # In autoconf-2.13 it is called $ac_given_srcdir.
52362         # In autoconf-2.50 it is called $srcdir.
52363         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
52364         case "$ac_given_srcdir" in
52365           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
52366           /*) top_srcdir="$ac_given_srcdir" ;;
52367           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
52368         esac
52369         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
52370           rm -f "$ac_dir/POTFILES"
52371           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
52372           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
52373           POMAKEFILEDEPS="POTFILES.in"
52374           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
52375           # on $ac_dir but don't depend on user-specified configuration
52376           # parameters.
52377           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
52378             # The LINGUAS file contains the set of available languages.
52379             if test -n "$OBSOLETE_ALL_LINGUAS"; then
52380               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
52381             fi
52382             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
52383             # Hide the ALL_LINGUAS assigment from automake.
52384             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
52385             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
52386           else
52387             # The set of available languages was given in configure.in.
52388             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
52389           fi
52390           # Compute POFILES
52391           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
52392           # Compute UPDATEPOFILES
52393           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
52394           # Compute DUMMYPOFILES
52395           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
52396           # Compute GMOFILES
52397           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
52398           case "$ac_given_srcdir" in
52399             .) srcdirpre= ;;
52400             *) srcdirpre='$(srcdir)/' ;;
52401           esac
52402           POFILES=
52403           UPDATEPOFILES=
52404           DUMMYPOFILES=
52405           GMOFILES=
52406           for lang in $ALL_LINGUAS; do
52407             POFILES="$POFILES $srcdirpre$lang.po"
52408             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
52409             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
52410             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
52411           done
52412           # CATALOGS depends on both $ac_dir and the user's LINGUAS
52413           # environment variable.
52414           INST_LINGUAS=
52415           if test -n "$ALL_LINGUAS"; then
52416             for presentlang in $ALL_LINGUAS; do
52417               useit=no
52418               if test "%UNSET%" != "$LINGUAS"; then
52419                 desiredlanguages="$LINGUAS"
52420               else
52421                 desiredlanguages="$ALL_LINGUAS"
52422               fi
52423               for desiredlang in $desiredlanguages; do
52424                 # Use the presentlang catalog if desiredlang is
52425                 #   a. equal to presentlang, or
52426                 #   b. a variant of presentlang (because in this case,
52427                 #      presentlang can be used as a fallback for messages
52428                 #      which are not translated in the desiredlang catalog).
52429                 case "$desiredlang" in
52430                   "$presentlang"*) useit=yes;;
52431                 esac
52432               done
52433               if test $useit = yes; then
52434                 INST_LINGUAS="$INST_LINGUAS $presentlang"
52435               fi
52436             done
52437           fi
52438           CATALOGS=
52439           if test -n "$INST_LINGUAS"; then
52440             for lang in $INST_LINGUAS; do
52441               CATALOGS="$CATALOGS $lang.gmo"
52442             done
52443           fi
52444           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
52445           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"
52446           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
52447             if test -f "$f"; then
52448               case "$f" in
52449                 *.orig | *.bak | *~) ;;
52450                 *) cat "$f" >> "$ac_dir/Makefile" ;;
52451               esac
52452             fi
52453           done
52454         fi
52455         ;;
52456       esac
52457     done ;;
52458   esac
52459 done
52460 _ACEOF
52461
52462 cat >>$CONFIG_STATUS <<\_ACEOF
52463
52464 { (exit 0); exit 0; }
52465 _ACEOF
52466 chmod +x $CONFIG_STATUS
52467 ac_clean_files=$ac_clean_files_save
52468
52469
52470 # configure is writing to config.log, and then calls config.status.
52471 # config.status does its own redirection, appending to config.log.
52472 # Unfortunately, on DOS this fails, as config.log is still kept open
52473 # by configure, so config.status won't be able to write to it; its
52474 # output is simply discarded.  So we exec the FD to /dev/null,
52475 # effectively closing config.log, so it can be properly (re)opened and
52476 # appended to by config.status.  When coming back to configure, we
52477 # need to make the FD available again.
52478 if test "$no_create" != yes; then
52479   ac_cs_success=:
52480   ac_config_status_args=
52481   test "$silent" = yes &&
52482     ac_config_status_args="$ac_config_status_args --quiet"
52483   exec 5>/dev/null
52484   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52485   exec 5>>config.log
52486   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52487   # would make configure fail if this is the last instruction.
52488   $ac_cs_success || { (exit 1); exit 1; }
52489 fi
52490